@bwg-ui/core 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/dist/chunks/MenuReport-CiL4ggPy.js +1244 -0
- package/dist/chunks/MenuReport-DIkKwvta.cjs +1 -0
- package/dist/chunks/common-components-B4mah7DM.cjs +183 -0
- package/dist/chunks/{common-components-CnAjT_Gi.js → common-components-G-FELsbw.js} +7510 -7094
- package/dist/chunks/{core-MOICJvq5.cjs → core-CXP75zcn.cjs} +1 -1
- package/dist/chunks/{core-C5T-8H8j.js → core-pjW5SaWA.js} +13 -13
- package/dist/chunks/{enc-base64-8MLFBYmR.cjs → enc-base64-Bg9x86kU.cjs} +1 -1
- package/dist/chunks/{enc-base64-Ciw6cw8D.js → enc-base64-DtP_G7ev.js} +2 -2
- package/dist/chunks/layout-components-De-k79AV.cjs +35 -0
- package/dist/chunks/layout-components-mRRx1BIz.js +1616 -0
- package/dist/chunks/{sha256-CsieizMm.js → sha256-BTxiV_cX.js} +2 -2
- package/dist/chunks/{sha256-CpH38gS4.cjs → sha256-CFa0dyCj.cjs} +1 -1
- package/dist/components/common/ButtonAccessController.d.ts +5 -0
- package/dist/components/common/ButtonAccessController.d.ts.map +1 -0
- package/dist/components/common/BwgEditor.d.ts +3 -3
- package/dist/components/common/BwgEditor.d.ts.map +1 -1
- package/dist/components/common/BwgPopup.d.ts +15 -0
- package/dist/components/common/BwgPopup.d.ts.map +1 -1
- package/dist/components/common/BwgView.d.ts +2 -23
- package/dist/components/common/BwgView.d.ts.map +1 -1
- package/dist/components/common/SearchBox.d.ts +1 -57
- package/dist/components/common/SearchBox.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.d.ts +5 -3
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +24 -23
- package/dist/components/common/type.d.ts +132 -0
- package/dist/components/common/type.d.ts.map +1 -0
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +1 -1
- package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
- package/dist/components/layout/default/LocalPopupContainer.d.ts +3 -0
- package/dist/components/layout/default/LocalPopupContainer.d.ts.map +1 -0
- package/dist/components/layout/default/PopupContainer.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -35
- package/dist/components/layout/index.js +13 -1558
- package/dist/components/popup/MenuReport.d.ts +2 -5
- package/dist/components/popup/MenuReport.d.ts.map +1 -1
- package/dist/components/popup/SearchDepartmentP01.d.ts +4 -5
- package/dist/components/popup/SearchDepartmentP01.d.ts.map +1 -1
- package/dist/components/popup/SearchDepartmentP02.d.ts +3 -5
- package/dist/components/popup/SearchDepartmentP02.d.ts.map +1 -1
- package/dist/components/popup/SearchEmployeeP01.d.ts +3 -1
- package/dist/components/popup/SearchEmployeeP01.d.ts.map +1 -1
- package/dist/components/popup/SearchEmployeeP02.d.ts +3 -1
- package/dist/components/popup/SearchEmployeeP02.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts +2 -4
- package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP02.d.ts +3 -4
- package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -1
- package/dist/components/popup/config/localPopupRegistry.d.ts +8 -0
- package/dist/components/popup/config/localPopupRegistry.d.ts.map +1 -0
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.d.ts +2 -4
- package/dist/components/popup/index.d.ts.map +1 -1
- package/dist/components/popup/index.js +5 -1739
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +154 -147
- package/dist/provider/hooks/usePopup.d.ts +1 -0
- package/dist/provider/hooks/usePopup.d.ts.map +1 -1
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +205 -188
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.js +253 -200
- package/dist/stores/popupStore.d.ts +9 -1
- package/dist/stores/popupStore.d.ts.map +1 -1
- package/dist/utils/gwUtils.d.ts +23 -0
- package/dist/utils/gwUtils.d.ts.map +1 -0
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +9 -8
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +588 -486
- package/package.json +4 -4
- package/dist/chunks/common-components-Bhr_MU0K.cjs +0 -183
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";const ot=require("../utils/index.cjs"),gt=require("../stores/index.cjs"),c=require("react/jsx-runtime"),ce=require("@ant-design/icons"),M=require("antd"),g=require("react"),dr=require("../provider/index.cjs"),zu=require("dompurify"),yl=require("quill"),Lu=require("react-quill"),Na=require("quill-image-resize-module-react"),lo=require("react-dom"),Ke=require("realgrid"),Aa=require("realgrid-react"),Bu=require("react-rnd"),Hu=require("./layout-components-De-k79AV.cjs"),Vn=require("../components/core/index.cjs"),Ma=require("react-router-dom");function xl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const nn=xl(ce),h=xl(g),$i=({checkAuth:e=!1,buttons:t,gap:r=8})=>{const{user:n}=gt.useUserStore(),o=dr.useServiceCodeValue("AUTH_BTNS"),[i,a]=g.useState({});g.useEffect(()=>{const l=e?e.menuId:void 0,u=e?e.grpId:void 0;if(!l||!u){a({});return}ot.callService(o,{crprCd:n?.crprCd,userId:n?.userId,grpId:u.toUpperCase(),menuId:l}).then(f=>{const d=Array.isArray(f?.data)?f.data:Array.isArray(f)?f:[];console.log("@@ 권한 버튼 조회결과(list)",d);const p={};(d||[]).forEach(w=>{const v=String(w?.btnId||"").trim();if(!v)return;const x=w?.enblYn==null?!0:String(w.enblYn).toUpperCase()==="Y";p[v]=x}),a(p)}).catch(f=>{console.error(f),a({})})},[o,n?.crprCd,n?.userId,e?e.menuId:void 0,e?e.grpId:void 0]);const s=g.useMemo(()=>!t||t.length===0?null:t.filter(l=>l?.visible!==!1).map(l=>{const u=!!l.disabled;if(!e)return c.jsx(M.Button,{type:l.type,disabled:u,loading:l.loading,className:l.className||"bwg-btn",style:l.style,icon:l.icon,onClick:l.onClick,children:l.label},l.id);const p=!(Object.prototype.hasOwnProperty.call(i,l.id)?!!i[l.id]:!1),w=u||p,v=c.jsx(M.Button,{type:l.type,disabled:w,loading:l.loading,className:l.className||"bwg-btn",style:l.style,icon:l.icon,onClick:l.onClick,children:l.label},l.id);if(p){const x=c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[c.jsx(ce.ExclamationCircleFilled,{style:{color:"#faad14",fontSize:16}}),c.jsx("span",{style:{fontWeight:600},children:`'${l.label}' 버튼에 대한 사용 권한이 없습니다.`})]}),m=c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:4,paddingLeft:24},children:c.jsx("span",{style:{fontSize:12},children:"관리자에게 문의하세요."})});return c.jsx(M.Popover,{title:x,content:m,placement:"bottom",styles:{body:{backgroundColor:"#fffbe6"}},children:c.jsx("span",{children:v})},l.id)}return v}),[t,i,e]);return c.jsx(M.Flex,{gap:r,children:s})};var Fu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vu(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}const Wu=({grpId:e,menuId:t,btnEvent:r,layout:n="horizontal",size:o="middle",style:i,className:a,onButtonClick:s})=>{const l=dr.useServiceCodeValue("AUTH_BTNS"),{user:u}=gt.useUserStore(),[f,d]=g.useState([]),[p,w]=g.useState(!0),[v,x]=g.useState(null),[m,$]=g.useState({}),C=async()=>{try{w(!0),x(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,t);const j=await ot.callService(l,{userId:u?.userId,crprCd:u?.crprCd,grpId:e.toUpperCase(),menuId:t});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",j),j?.data&&Array.isArray(j.data)){const S=j.data.sort((E,k)=>E.btnSq-k.btnSq);d(S)}else d([])}catch(j){console.error("버튼 권한 조회 실패:",j),x("버튼 권한을 조회하는 중 오류가 발생했습니다."),d([])}finally{w(!1)}};g.useEffect(()=>{C()},[e,t]);const P=async(j,S)=>{$(E=>({...E,[j]:{loading:!0}}));try{const E=r?.[j];E?await E():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${j}`),s&&s(j,S,e)}catch(E){console.error("버튼 이벤트 실행 실패:",E),M.message.error("작업 중 오류가 발생했습니다.")}finally{$(E=>({...E,[j]:{loading:!1}}))}},T=j=>{const S=m[j.btnId]||{loading:!1};return c.jsxs(M.Button,{size:o,loading:S.loading,onClick:()=>P(j.btnId,j.btnNm),className:"bwg-btn",style:{...j.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[j.iconVal&&c.jsxs(c.Fragment,{children:[j.iconType==="ANTD"&&nn[j.iconVal]&&g.createElement(nn[j.iconVal],{style:{fontSize:"14px"}}),j.iconType!=="ANTD"&&c.jsx("span",{className:j.iconVal,style:{fontSize:"14px"}})]}),j.btnNm]},j.btnId)};return p?c.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:c.jsx(M.Space,{direction:n==="vertical"?"vertical":"horizontal",size:o,children:c.jsx(M.Button,{loading:!0,size:o,children:"권한 조회 중..."})})}):v?c.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:c.jsx(M.Alert,{message:"권한 오류",description:v,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):f.length===0?c.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:c.jsx(M.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):c.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:c.jsx(M.Flex,{gap:3,children:f.map(T)})})},Ku=({content:e,layout:t="flex",gap:r=16,minWidth:n=120,maxWidth:o=300,style:i,className:a})=>{if(!(Array.isArray(e)&&e.length>0&&Array.isArray(e[0])))return c.jsx("div",{style:i,className:a,children:e});const l=e.filter(w=>w&&w.length>0),u=g.useMemo(()=>{const w=l[0];if(!w||w.length===0)return{totalCols:0,baseWidth:0};let v=0;const x=[];w.forEach($=>{const C=$,P=C?.props?.["data-colspan"]?parseInt(String(C.props["data-colspan"])):1;v+=P,x.push(P)});const m=v>0?100/v:0;return{totalCols:v,baseWidth:m,componentWidths:x}},[l]),f=(w,v,x)=>{const m=w,$=m?.props?.["data-colspan"]?parseInt(String(m.props["data-colspan"])):1;switch(t){case"equal":return 100/x;case"auto":return 100/x;case"grid":return 100/u.totalCols*$;case"flex":default:const C=u.baseWidth*$;return Math.max(n,Math.min(o,C))}},d=w=>{if(!w||typeof w!="object")return w;const v=w;if(!v.props)return w;const m={...v.props.style||{},width:"100%"};return g.cloneElement(v,{...v.props,style:m})},p=(w,v)=>{if(!w||w.length===0)return null;const x=w.length;return t==="grid"?c.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${u.totalCols}, 1fr)`,gap:`${r}px`,width:"100%"},children:w.map((m,$)=>{const C=m?.props?.["data-colspan"]?parseInt(String(m.props["data-colspan"])):1,P=d(m);return c.jsx("div",{style:{gridColumn:`span ${C}`,minWidth:`${n}px`},className:"form-component-wrapper",children:P},`row-${v}-col-${$}`)})},`row-${v}`):c.jsx(M.Flex,{gap:r,className:"erp-cmm-form",wrap:t==="auto"?"wrap":"nowrap",style:{width:"100%"},children:w.map((m,$)=>{const C=f(m,$,x),P=d(m),T=t==="flex"?{width:`${C}px`,minWidth:`${n}px`,maxWidth:`${o}px`,flexShrink:0}:{width:`${C}%`,minWidth:`${n}px`};return c.jsx("div",{style:T,className:"form-component-wrapper",children:P},`row-${v}-col-${$}`)})},`row-${v}`)};return c.jsx(M.Flex,{gap:"small",vertical:!0,style:i,className:a,children:l.map((w,v)=>p(w,v+1))})},qu=({children:e,...t})=>c.jsx(M.Col,{...t,className:"bwg-col",children:e});var qr={},Ko={exports:{}},Ia;function Co(){return Ia||(Ia=1,(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ko)),Ko.exports}var Ur={},Da;function Uu(){if(Da)return Ur;Da=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=void 0;var e={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:"페이지 크기"};return Ur.default=e,Ur}var Gr={},Yr={},Xr={},qo={exports:{}},Uo={exports:{}},Go={exports:{}},Yo={exports:{}},za;function Cl(){return za||(za=1,(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Yo)),Yo.exports}var Xo={exports:{}},La;function Gu(){return La||(La=1,(function(e){var t=Cl().default;function r(n,o){if(t(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var a=i.call(n,o||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Xo)),Xo.exports}var Ba;function Yu(){return Ba||(Ba=1,(function(e){var t=Cl().default,r=Gu();function n(o){var i=r(o,"string");return t(i)=="symbol"?i:i+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Go)),Go.exports}var Ha;function Xu(){return Ha||(Ha=1,(function(e){var t=Yu();function r(n,o,i){return(o=t(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Uo)),Uo.exports}var Fa;function Qu(){return Fa||(Fa=1,(function(e){var t=Xu();function r(o,i){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);i&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),a.push.apply(a,s)}return a}function n(o){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?r(Object(a),!0).forEach(function(s){t(o,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(a,s))})}return o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(qo)),qo.exports}var Qr={},Va;function Zu(){return Va||(Va=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.commonLocale=void 0,Qr.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),Qr}var Wa;function Ju(){if(Wa)return Xr;Wa=1;var e=Co().default;Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.default=void 0;var t=e(Qu()),r=Zu(),n=(0,t.default)((0,t.default)({},r.commonLocale),{},{locale:"ko_KR",today:"오늘",now:"현재 시각",backToToday:"오늘로 돌아가기",ok:"확인",clear:"지우기",week:"주",month:"월",year:"년",timeSelect:"시간 선택",dateSelect:"날짜 선택",monthSelect:"달 선택",yearSelect:"연 선택",decadeSelect:"연대 선택",yearFormat:"YYYY년",dateFormat:"YYYY-MM-DD",dateTimeFormat:"YYYY-MM-DD HH:mm:ss",monthBeforeYear:!1,previousMonth:"이전 달 (PageUp)",nextMonth:"다음 달 (PageDown)",previousYear:"이전 해 (Control + left)",nextYear:"다음 해 (Control + right)",previousDecade:"이전 연대",nextDecade:"다음 연대",previousCentury:"이전 세기",nextCentury:"다음 세기"});return Xr.default=n,Xr}var Zr={},Ka;function Sl(){if(Ka)return Zr;Ka=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return Zr.default=e,Zr}var qa;function wl(){if(qa)return Yr;qa=1;var e=Co().default;Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.default=void 0;var t=e(Ju()),r=e(Sl());const n={lang:Object.assign({placeholder:"날짜 선택",yearPlaceholder:"연도 선택",quarterPlaceholder:"분기 선택",monthPlaceholder:"월 선택",weekPlaceholder:"주 선택",rangePlaceholder:["시작일","종료일"],rangeYearPlaceholder:["시작 연도","종료 연도"],rangeMonthPlaceholder:["시작 월","종료 월"],rangeQuarterPlaceholder:["시작 분기","종료 분기"],rangeWeekPlaceholder:["시작 주","종료 주"],shortWeekDays:["일","월","화","수","목","금","토"],shortMonths:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},t.default),timePickerLocale:Object.assign({},r.default)};return Yr.default=n,Yr}var Ua;function ed(){if(Ua)return Gr;Ua=1;var e=Co().default;Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.default=void 0;var t=e(wl());return Gr.default=t.default,Gr}var Ga;function td(){if(Ga)return qr;Ga=1;var e=Co().default;Object.defineProperty(qr,"__esModule",{value:!0}),qr.default=void 0;var t=e(Uu()),r=e(ed()),n=e(wl()),o=e(Sl());const i="${label} 유효하지 않은 ${type}",a={locale:"ko",Pagination:t.default,DatePicker:n.default,TimePicker:o.default,Calendar:r.default,global:{placeholder:"선택하세요",close:"닫기"},Table:{filterTitle:"필터 메뉴",filterConfirm:"확인",filterReset:"초기화",filterEmptyText:"필터 없음",filterCheckAll:"전체 선택",filterSearchPlaceholder:"필터 검색",emptyText:"데이터 없음",selectAll:"전체 선택",selectInvert:"선택 반전",selectNone:"없음",selectionAll:"전체 선택",sortTitle:"정렬",expand:"펼치기",collapse:"접기",triggerDesc:"내림차순으로 정렬하기",triggerAsc:"오름차순으로 정렬하기",cancelSort:"정렬 취소하기"},Tour:{Next:"다음",Previous:"이전",Finish:"종료"},Modal:{okText:"확인",cancelText:"취소",justOkText:"확인"},Popconfirm:{okText:"확인",cancelText:"취소"},Transfer:{titles:["",""],searchPlaceholder:"여기에 검색하세요",itemUnit:"개",itemsUnit:"개",remove:"삭제",selectCurrent:"현재 페이지 선택",removeCurrent:"현재 페이지 삭제",selectAll:"전체 선택",removeAll:"전체 삭제",selectInvert:"선택 반전"},Upload:{uploading:"업로드 중...",removeFile:"파일 삭제",uploadError:"업로드 실패",previewFile:"파일 미리보기",downloadFile:"파일 다운로드"},Empty:{description:"데이터 없음"},Icon:{icon:"아이콘"},Text:{edit:"수정",copy:"복사",copied:"복사 됨",expand:"확장"},Form:{optional:"(선택사항)",defaultValidateMessages:{default:"필드 유효성 검사 오류 ${label}",required:"${label} 값을 입력해 주세요",enum:"${label} [${enum}] 중에 하나여야 합니다",whitespace:"${label} 비워둘 수 없습니다",date:{format:"${label} 유효하지 않은 날짜 형식입니다",parse:"${label} 날짜 형식으로 변환될 수 없습니다",invalid:"${label} 유효하지 않은 날짜입니다"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label} ${len}글자여야 합니다",min:"${label} 적어도 ${min}글자 이상이어야 합니다",max:"${label} ${max}글자 이하여야 합니다",range:"${label} ${min}-${max}글자 사이어야 합니다"},number:{len:"${label} 값은 ${len}이어야 합니다",min:"${label} 최솟값은 ${min}입니다",max:"${label} 최댓값은 ${max}입니다",range:"${label} 값은 ${min}-${max} 사이어야 합니다"},array:{len:"${len}이어야 합니다 ${label}",min:"최소 ${min}이어야 합니다 ${label}",max:"최대 ${max}이어야 합니다 ${label}",range:"${label} ${min}-${max} 사이어야 합니다"},pattern:{mismatch:"${label} ${pattern} 패턴과 일치하지 않습니다"}}},Image:{preview:"미리보기"},QRCode:{expired:"만료된 QR 코드",refresh:"새로고침"},ColorPicker:{presetEmpty:"미정",transparent:"투명",singleColor:"단색",gradientColor:"그라데이션"}};return qr.default=a,qr}var Qo,Ya;function rd(){return Ya||(Ya=1,Qo=td()),Qo}var nd=rd();const El=xo(nd),jl=({children:e,customTheme:t,customComponentSize:r="middle",layout:n="comfortable",getPopupContainer:o})=>{const a=(()=>{const l={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'"Noto Sans KR", sans-serif',fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:M.theme.defaultAlgorithm};switch(n){case"compact":return{...l,token:{...l.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...l,token:{...l.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...l,token:{...l.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),s={...a,...t,token:{...a.token,...t?.token},components:{Checkbox:{colorPrimary:"var(--check-primary)",colorPrimaryBorder:"var(--check-primary)",colorPrimaryHover:"var(--check-primary-active)",colorText:"var(--text-primary)"},Radio:{colorPrimary:"var(--check-primary)",colorPrimaryActive:"var(--check-primary-active)",colorPrimaryHover:"var(--check-primary-active)"},Tree:{nodeHoverBg:"var(--tree-selected-bg)",nodeHoverColor:"var(--primary-color)",nodeSelectedBg:"var(--tree-selected-bg)",nodeSelectedColor:"var(--primary-color)",colorText:"var(--text-primary)"},...t?.components??{}}};return c.jsx(M.ConfigProvider,{locale:El,theme:s,componentSize:r,space:{size:r},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},getPopupContainer:o,children:e})},od=({children:e})=>{const{activeDetailItem:t}=gt.useMenuViewStore();return c.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:c.jsx("div",{className:"bwgview-content",children:c.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[c.jsx(M.Breadcrumb,{separator:">",items:[{title:t?.prntInfo?.menuNm},{title:t?.viewLabel}]}),e]})})})},Vt=({title:e,icons:t,tooltip:r,iconVisible:n=!0,paddingBottom:o=0,marginBottom:i=0,children:a})=>{const s=nn.AppstoreTwoTone;return g.useMemo(()=>t?.type==="antd"&&t.icon&&nn[t.icon]||s,[t?.type,t?.icon]),c.jsx(M.Flex,{vertical:!0,style:{width:"100%"},children:c.jsxs("div",{className:`bwg-title-box ${o?`pb${o}`:""} ${i?`mb${i}`:""}`,style:{display:"flex",justifyContent:"space-between"},children:[c.jsx("div",{className:"bwg-title-box-left",children:c.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[c.jsx(M.Typography.Title,{level:4,children:c.jsx("span",{children:e})}),r&&c.jsx(M.Tooltip,{title:r.title,placement:r.placement,children:c.jsx(nn.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),c.jsx("div",{className:"bwg-title-box-right",children:c.jsx(M.Flex,{gap:6,children:a})})]})})},{Panel:Xa}=M.Collapse,la=g.forwardRef(({reqRows:e,subRows:t,border:r=!1,labelDisplay:n,header:o},i)=>{const[a]=M.Form.useForm(),[s,l]=g.useState("1"),u=()=>n?{flex:n.md||n.lg||n.sm||"100px"}:{flex:"100px"};g.useImperativeHandle(i,()=>({getFormData:()=>a.getFieldsValue(),setFormData:d=>{a.setFieldsValue(d)},resetForm:()=>{a.resetFields()},validateForm:async()=>{try{return{success:!0,data:await a.validateFields()}}catch(d){return{success:!1,error:d}}}}));const f=()=>{l(d=>d.includes("subRows")?d.filter(p=>p!=="subRows"):[...d,"subRows"])};return c.jsxs("div",{style:r?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[o&&c.jsx(Vt,{title:o.title,children:o.buttons}),c.jsx(M.Form,{form:a,layout:"inline",style:{width:"100%",paddingBottom:e||t?"10px":"0px"},labelCol:u(),labelAlign:"left",children:c.jsxs("div",{style:{position:"relative",width:"100%"},children:[t&&c.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:s.includes("subRows")?c.jsx(M.Tooltip,{title:"접기",children:c.jsx("span",{className:"search-collapsed-arrow",onClick:f,children:c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:c.jsx("path",{d:"M5.28321 0.986589C4.88285 0.482264 4.11715 0.482265 3.71679 0.986589L1.0243 4.37824C0.50404 5.0336 0.970753 6 1.80751 6L7.19249 6C8.02925 6 8.49596 5.0336 7.9757 4.37824L5.28321 0.986589Z",fill:"#AEB9C4"})})})}):c.jsx(M.Tooltip,{title:"펼치기",children:c.jsx("span",{className:"search-collapsed-arrow",onClick:f,children:c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:c.jsx("path",{d:"M5.28321 5.01341C4.88285 5.51774 4.11715 5.51773 3.71679 5.01341L1.0243 1.62176C0.50404 0.966397 0.970753 1.64312e-07 1.80751 2.37464e-07L7.19249 7.08234e-07C8.02925 7.81386e-07 8.49596 0.966399 7.9757 1.62176L5.28321 5.01341Z",fill:"#AEB9C4"})})})})}),c.jsx(M.ConfigProvider,{theme:{components:{Collapse:{}}},children:c.jsxs(M.Collapse,{activeKey:["reqRows",...s.includes("subRows")?["subRows"]:[]],onChange:l,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&c.jsx(Xa,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),t&&c.jsx(Xa,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:t},"subRows")]})})]})})]})}),id=({children:e,showSearchBox:t,showCloseButton:r=!0,showEyesButton:n=!1,shotSettingButton:o=!0,styles:i,...a})=>{const[s,l]=g.useState(!0),[u,f]=g.useState(()=>{const $=a.placement;return $==="left"||$==="right"||$==="top"||$==="bottom"?$:"bottom"}),[d,p]=g.useState(!1),v=($=>{const C={wrapper:{...a.width&&{width:a.width},...a.height&&{height:a.height},margin:"0 auto"},content:{},header:{backgroundColor:"var(--drawer-header-bg)",color:"var(--text-primary)"}};switch($){case"bottom":return{...C,wrapper:{...C.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...C.header,borderRadius:"30px 30px 0 0"}};case"top":return{...C,wrapper:{...C.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...C.header}};case"left":return{...C,wrapper:{...C.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...C.header,borderRadius:"0 30px 0 0"}};case"right":return{...C,wrapper:{...C.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...C.header,borderRadius:"30px 0 0 0"}};default:return C}})(u),x={wrapper:{...v?.wrapper,...i?.wrapper},content:{...v?.content,...i?.content},header:{...v?.header,...i?.header}},m=()=>{const $=[];if(o){const C=[{key:"top",label:"상단",icon:c.jsx(ce.CaretUpOutlined,{})},{key:"right",label:"우측",icon:c.jsx(ce.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:c.jsx(ce.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:c.jsx(ce.CaretLeftOutlined,{})}],P=c.jsx(M.Space.Compact,{children:C.map(T=>c.jsx(M.Button,{type:u===T.key?"primary":"default",size:"small",onClick:()=>{f(T.key),p(!1)},icon:T.icon},T.key))});$.push(c.jsx(M.Popover,{content:P,trigger:"click",placement:"left",open:d,onOpenChange:p,children:c.jsx(M.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:c.jsx(M.Button,{icon:c.jsx(ce.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return n&&$.push(c.jsx(M.Tooltip,{placement:"bottom",title:s?"배경 보기":"배경 숨기기",zIndex:2100,children:c.jsx(M.Button,{icon:c.jsx(ce.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>l(!s)})},"eyes")),a.extra&&$.push(c.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),r&&$.push(c.jsx(M.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:c.jsx(M.Button,{icon:c.jsx(ce.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),$};return c.jsx(M.Drawer,{className:"main-drawer",footer:!0,...a,placement:u,styles:x,maskClosable:!1,closable:!1,mask:s,extra:c.jsx(M.Space,{size:"small",align:"center",children:m()}),afterOpenChange:$=>{$||(l(!0),f(a.placement)),a.afterOpenChange?.($)},destroyOnHidden:!0,children:t?c.jsxs(Nt,{type:"vertical",children:[c.jsxs(M.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[c.jsx("div",{children:t.title}),c.jsx(M.Flex,{gap:2,children:t.extra})]}),c.jsx(la,{...t.searchBox}),c.jsx(M.Divider,{}),e]}):e})},fr=({width:e="100%",height:t="100%",boxAlign:r,display:n="show",overflow:o,style:i,className:a,border:s=!0,children:l,ref:u})=>c.jsx("div",{style:{width:e,height:t,display:n==="show"?"":n,overflowX:o?.x,overflowY:o?.y,...i},className:`bwgview-content-box ${r?`content-box-${r}`:""} ${a||""} ${s?"":"none-box-st"}`,ref:u,children:l}),Rl=Na?.default??Na;try{yl.register("modules/imageResize",Rl)}catch(e){console.warn("quill-image-resize-module-react 로드 실패:",e)}const co=e=>zu.sanitize(e??"",{ALLOWED_TAGS:["p","br","div","span","strong","b","em","i","u","s","blockquote","pre","code","ul","ol","li","h1","h2","h3","h4","h5","h6","a","img"],ALLOWED_ATTR:["style","class","href","target","rel","src","alt","width","height","data-*","align"],ALLOWED_URI_REGEXP:/^(?:(?:https?|data|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,KEEP_CONTENT:!0,RETURN_TRUSTED_TYPE:!1}),uo=g.forwardRef(({border:e=!0,editorProps:t,value:r,defaultValue:n,onChange:o,onBlur:i,disabled:a,placeholder:s},l)=>{const{isEditing:u=!0,title:f,containerHeight:d="100%"}=t||{},p=g.useRef(null),w=g.useMemo(()=>{const E={toolbar:u?[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{align:[]}],["link","image"],["clean"]]:!1};return Rl?{...E,imageResize:{parchment:yl.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"}}}:E},[u]),v=g.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image","width","height"],[]),x=r!==void 0,[m,$]=g.useState(n??""),C=x?r:m,P=g.useCallback((E,k,L,I)=>{const _=co(E??"");x||$(_),o?.(_,k,L,I)},[x,o]),S=`calc(100% - ${u?"42px":"0px"} - ${f?"40px":"0px"})`;return g.useImperativeHandle(l,()=>({getHTML:()=>C??"",getText:()=>p.current?.getEditor()?.getText()??"",insertHTML:E=>{const k=p.current?.getEditor();if(!k)return;const L=k.getSelection(!0),I=co(E??"");k.clipboard.dangerouslyPasteHTML(L?L.index:k.getLength(),I)},insertImage:(E,k)=>{const L=p.current?.getEditor();if(!L)return;const I=L.getSelection(!0),_=typeof E=="string"?E:"";L.insertEmbed(I?I.index:L.getLength(),"image",_,"user")},getQuill:()=>p.current?.getEditor?.()??null})),c.jsxs(fr,{border:e,style:{opacity:a?.6:1,pointerEvents:a?"none":"auto",height:typeof d=="number"?`${d}px`:d},children:[f&&c.jsx(Vt,{...f,paddingBottom:10}),c.jsx(Lu,{ref:p,theme:u?"snow":"bubble",readOnly:!u,value:C,onChange:P,onBlur:i,modules:w,formats:v,style:{width:"100%",height:S},placeholder:s},u?"snow":"bubble")]})}),ad=(e,t,r,n)=>co(e??""),sd=({itemProps:e,...t})=>{const{rules:r,shouldUpdate:n,dependencies:o,noStyle:i,...a}=e;return c.jsx(M.Form.Item,{valuePropName:"value",trigger:"onChange",getValueFromEvent:ad,normalize:s=>s??"",rules:r,shouldUpdate:n,dependencies:o,noStyle:i,...a,children:c.jsx(uo,{...t})})},ld=e=>{const{itemProps:t,onChange:r,editorProps:n,...o}=e,i=M.Form.useFormInstance();if(t?.name!=null){const a=t.name;return c.jsxs(c.Fragment,{children:[c.jsx(M.Form.Item,{hidden:!0,name:a,rules:t.rules,normalize:s=>s??"",children:c.jsx("input",{type:"hidden"})}),c.jsx(uo,{...o,editorProps:n,value:i.getFieldValue(a)??"",onChange:(s,l,u,f)=>{const d=co(s??"");i.setFieldValue(a,d),r?.(d,l,u,f)},onBlur:()=>{i.validateFields([a]).catch(()=>{})}})]})}return c.jsx(uo,{...e})},cd=Object.assign(ld,{FormItem:sd,Core:uo});var yr={},Qa;function ud(){if(Qa)return yr;Qa=1;var e=lo;if(process.env.NODE_ENV==="production")yr.createRoot=e.createRoot,yr.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;yr.createRoot=function(r,n){t.usingClientEntryPoint=!0;try{return e.createRoot(r,n)}finally{t.usingClientEntryPoint=!1}},yr.hydrateRoot=function(r,n,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(r,n,o)}finally{t.usingClientEntryPoint=!1}}}return yr}var dd=ud();const ca=g.forwardRef(({currentPage:e,totalPages:t,pageSize:r=10,totalData:n,onPageChange:o,pageSizeOptions:i=[10,20,50,100],gridRef:a,mode:s="client",onServerPageChange:l},u)=>{const[f,d]=g.useState(r),[p,w]=g.useState(1),[v,x]=g.useState(r),[m,$]=g.useState(0);g.useEffect(()=>{d(r)},[r]),g.useEffect(()=>{d(r)},[]),g.useImperativeHandle(u,()=>({currentPage:p,pageSize:v,totalData:m,totalPages:Math.ceil(m/v),setPage:N=>{w(N),l?.(N,v)},setPageSize:N=>{x(N),w(1),l?.(1,N)},setTotalData:N=>{$(N)},reset:()=>{w(1),x(r),$(0)}}),[p,v,m,l,r]);const C=s==="client",P=C?(e||0)+1:p,T=C?(t||0)>0:m>0,S=C?T?Math.ceil((n||0)/f):0:Math.ceil(m/v),E=C?T&&n||0:m,k=Math.min(P,S||1),L=`${f}-${S}-${k}`,I=N=>{C?o?.(N-1):(w(N),l?.(N,v))},_=N=>{if(C){d(N);try{a?.current?.gridView?(a.current.gridView.setPaging(!0,N),a.current.gridView.setPage(0)):o?.(0)}catch(z){console.warn("페이지 사이즈 변경 중 오류:",z),o?.(0)}}else x(N),w(1),l?.(1,N)};return c.jsxs("div",{style:{padding:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:"1px solid #f0f0f0",backgroundColor:"#fafafa"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[c.jsx("span",{style:{fontSize:"12px"},children:"페이지당"}),c.jsx("select",{value:C?f:v,onChange:N=>_(Number(N.target.value)),disabled:!T,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"4px",fontSize:"12px",opacity:T?1:.5},children:i.map(N=>c.jsxs("option",{value:N,children:[N,"개"]},N))}),c.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:T?1:.5},children:["/ 총 ",E,"개"]})]}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[c.jsx(M.Button,{onClick:()=>I(1),disabled:!T||k===1,style:{width:"30px",height:"24px",background:!T||k===1?"#f5f5f5":"white",cursor:!T||k===1?"not-allowed":"pointer",opacity:T?1:.5},icon:c.jsx(ce.DoubleLeftOutlined,{})}),c.jsx(M.Button,{onClick:()=>I(k-1),disabled:!T||k===1,style:{width:"30px",height:"24px",background:!T||k===1?"#f5f5f5":"white",cursor:!T||k===1?"not-allowed":"pointer",opacity:T?1:.5},icon:c.jsx(ce.LeftOutlined,{})}),c.jsx("div",{children:(()=>{if(!T||S===0)return c.jsx(M.Button,{disabled:!0,style:{width:"30px",height:"24px"},children:"1"});const N=5;let z=1,B=Math.min(N,S);k>3&&S>N&&(z=Math.max(1,k-2),B=Math.min(S,z+N-1),B===S&&(z=Math.max(1,B-N+1)));const b=[];for(let y=z;y<=B;y++)b.push(c.jsx(M.Button,{onClick:()=>I(y),style:{width:"30px",height:"24px",background:k===y?"#1890ff":"white",color:k===y?"white":"black",cursor:"pointer"},children:y},y));return b})()},L),c.jsx(M.Button,{onClick:()=>I(k+1),disabled:!T||k>=S,style:{width:"30px",height:"24px",background:!T||k>=S?"#f5f5f5":"white",cursor:!T||k>=S?"not-allowed":"pointer",opacity:T?1:.5},icon:c.jsx(ce.RightOutlined,{})}),c.jsx(M.Button,{onClick:()=>I(S),disabled:!T||k>=S,style:{width:"30px",height:"24px",background:!T||k>=S?"#f5f5f5":"white",cursor:!T||k>=S?"not-allowed":"pointer",opacity:T?1:.5},icon:c.jsx(ce.DoubleRightOutlined,{})})]})]})});ca.displayName="BwgPagination";const fd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",hd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",pd=[{label:"엑셀다운로드",tag:"excel"},{label:"엑셀(제목포함)",tag:"withTitleExcel"},{label:"-"},{label:"필터",type:"check",checked:!1,tag:"filter"},{label:"열고정",tag:"fixedCol"},{label:"행고정",tag:"fixedRow"},{label:"고정해제",tag:"fixedCancel"},{label:"-"},{label:"숨기기",tag:"hide"},{label:"숨기기해제",tag:"hideClear"}],gd=[{label:"엑셀다운로드",tag:"excel"},{label:"엑셀(들여쓰기 표시)",tag:"showIndentExcel"},{label:"엑셀(제목포함)",tag:"withTitleExcel"},{label:"-"},{label:"필터",type:"check",checked:!1,tag:"filter"},{label:"열고정",tag:"fixedCol"},{label:"행고정",tag:"fixedRow"},{label:"고정해제",tag:"fixedCancel"},{label:"-"},{label:"숨기기",tag:"hide"},{label:"숨기기해제",tag:"hideClear"}],md=({children:e})=>{const[t,r]=g.useState(!1),[n,o]=g.useState(null);return t?c.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:c.jsx(M.Alert,{message:"리얼그리드 로드 실패",description:c.jsxs("div",{children:[c.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),c.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",n?.message||"알 수 없는 오류"]}),c.jsx(M.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{r(!1),o(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):c.jsx(vd,{onError:i=>{console.error("BwgGrid 에러:",i),o(i),r(!0)},children:e})};class vd extends g.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,r){this.props.onError(t)}render(){return this.state.hasError?null:this.props.children}}const bd=g.forwardRef(({type:e="nrml",gridDivStyle:t,gridDivClassName:r,gridColumns:n,gridOptions:o,gridEvents:i,bindRef:a,gridContext:s,renderers:l,gridInitCallback:u},f)=>{const d=g.useRef(null),p=g.useRef(new Map),w=(R,H,K,W)=>{let q=[],Y=[];const G="treeNode";for(let J in R){let X=R[J];q[X[K]]=R[J];let ne=q[X[H]];if(ne==null||ne=="-"){Y.push(X);continue}ne[G]==null&&(ne[G]=[]),ne[G].push(X)}return Y},v=g.useCallback(R=>{const H=W=>{const q=[];return W.forEach(Y=>{Y.children&&Y.children.length>0?q.push(...H(Y.children)):q.push(Y)}),q};return H(R).map(W=>({fieldName:W.fieldName,dataType:W.dataType||"text"}))},[]),x=g.useCallback(R=>{const H=W=>{const q=[];return W.forEach(Y=>{Y.children&&Y.children.length>0?q.push(...H(Y.children)):q.push(Y)}),q};return H(R).map(W=>({...W,header:{template:W.required?`<img src='${hd}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:W.editable?`<img src='${fd}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:W.header?.text??""},text:W.header?.text||""},styleName:W.dataType==="number"?"right":W.styleName||"center"}))},[]);g.useImperativeHandle(f,()=>({addAllData(R,H){const K=d.current?.gridView.getCurrent().dataRow;if(d.current?.dataProvider instanceof Ke.LocalDataProvider){d.current.dataProvider.clearRows();try{d.current?.gridView.showLoading(),d.current.dataProvider.setRows(R)}catch(W){console.error("fillJsonData 오류:",W)}finally{d.current?.gridView.closeLoading()}}if(d.current?.dataProvider instanceof Ke.LocalTreeDataProvider){if(d.current.dataProvider.clearRows(),H?.treeOption?.dataField==null||H?.treeOption?.parentField==null)return;const W={rows:"treeNode"};try{d.current?.gridView.showLoading();let q=w(R,H.treeOption?.parentField,H.treeOption?.dataField);d.current.dataProvider.fillJsonData({treeNode:q},W),H.treeOption.isExpand&&d.current.gridView?.expandAll()}catch(q){console.error("fillJsonData 오류:",q)}finally{d.current?.gridView.closeLoading()}}H?.isCurrent?d.current?.gridView.setCurrent({dataRow:K}):d.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>d.current,getCurrentRow:()=>d.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>d.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(R){d.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!R?.indenting,header:"default",footer:"default",sheetName:"",fileName:R?.fileName||"sample.xlsx",...R})},getGridSaveData:()=>{const R=d.current?.dataProvider?.getAllStateRows();if(R===void 0)return[{}];let H=[];if(R.created!==void 0&&R.created.length>0)for(const K in R.created){let W=d.current?.dataProvider?.getJsonRow(R.created[K]);W={...W,iudFlag:"I"},H.push(W)}if(R.updated!==void 0&&R.updated.length>0)for(const K in R.updated){let W=d.current?.dataProvider?.getJsonRow(R.updated[K]);W={...W,iudFlag:"U"},H.push(W)}if(R.deleted!==void 0&&R.deleted.length>0)for(const K in R.deleted){let W=d.current?.dataProvider?.getJsonRow(R.deleted[K]);W={...W,iudFlag:"D"},H.push(W)}return H},deleteGridData:()=>{d?.current?.gridView?.getCheckedItems()?.map(H=>{let K=d?.current?.gridView?.getDataRow(H)??-1;const W=d?.current?.dataProvider?.getRowState(K);W==Ke.RowState.DELETED?(d?.current?.dataProvider?.setRowState(K,p.current.get(H)??Ke.RowState.NONE),p.current.delete(H)):W==Ke.RowState.CREATED?d?.current?.dataProvider?.setRowState(K,Ke.RowState.CREATE_AND_DELETED):W==Ke.RowState.CREATE_AND_DELETED?d?.current?.dataProvider?.setRowState(K,Ke.RowState.CREATED):(p.current.set(H,W??Ke.RowState.NONE),d?.current?.dataProvider?.setRowState(K,Ke.RowState.DELETED)),d?.current?.gridView?.checkItem(H,!1)})},_oriRowState:[{}],dp:d.current?.dataProvider??null,vw:d.current?.gridView??null}));const m=g.useCallback((R,H,K)=>{if(a!==void 0&&K>=0){let W=R.getDataSource().getJsonRow(K);a?.current?.setFieldsValue(W)}else a!==void 0&&K<0&&a?.current?.resetFields();R.setCurrent({dataRow:0}),i?.onCurrentRowChanged&&i?.onCurrentRowChanged(R,H,K)},[a,i]),$=g.useCallback((R,H,K)=>{const W=H.fieldName??"";a?.current?.getFieldInstance(W)&&a?.current.setFieldValue(W,K),i?.onEditChange&&i?.onEditChange(R,H,K)},[a,i]),C=g.useCallback((R,H,K)=>{const W=R.getOrgFieldName(K),q=R.getValue(H,K);a?.current?.setFieldValue(W,q)},[a]),P=g.useCallback((R,H,K,W)=>{const q=R.getColumn(W).name??"",Y=R.getValue(H,W);a?.current?.getFieldInstance(q)&&a?.current.setFieldValue(q,Y),i?.onCellEdited&&i?.onCellEdited(R,H,K,W)},[a,i]),T=g.useCallback((R,H,K,W)=>{if(typeof H.dataRow=="number"&&H.dataRow!=-1){var q=R.getDataSource().getRowState(H.dataRow);if(q=="deleted"||q=="createAndDeleted")return!1}return i?.onShowEditor!=null&&i?.onShowEditor(R,H,K,W),!0},[a,i]),j=g.useCallback(R=>{if(!d.current)return;const H=d.current.gridView,K=H.getDataSource();if(o?.container?.page){const W=H.getPage(),q=H.getPageCount(),Y=K.getRowCount();U({currentPage:W,totalPages:q,totalData:Y})}},[o?.container?.page]),S=g.useCallback(()=>{if(!d.current)return;const R=d.current.gridView,H=R.getDataSource(),K=["onKeyDown"],W=["onRowInserted"];Object.keys(i??{}).map(q=>{K.includes(q)?R[q+"Add"]=i?.[q]:R[q]=i?.[q],W.includes(q)?H[q+"Add"]=i?.[q]:H[q]=i?.[q]}),H instanceof Ke.LocalDataProvider&&(H.onRowInserted=(q,Y)=>{Y<0||(setTimeout(function(){R?.setCurrent({dataRow:Y})},1),q.onRowInsertedAdd!==void 0&&q.onRowInsertedAdd(q,Y))}),R.onKeyDown=function(q,Y){if(Y.code=="Space"){let G=q.getSelectedItems(!0);for(const J in G)q.isCheckable(G[J])&&(q.isCheckedItem(G[J])?q.checkItem(G[J],!1,!1):q.checkItem(G[J],!0,!1))}return q.onKeyDownAdd!==void 0&&q.onKeyDownAdd(q,Y),!0},d.current.gridView.onCurrentRowChanged=m,d.current.gridView.onEditChange=$,d.current.gridView.getDataSource().onValueChanged=C,d.current.gridView.onCellEdited=P,d.current.gridView.onShowEditor=T,d.current.gridView.onDataLoadComplated=j},[m,$,C,P,T,j]),E=g.useCallback(R=>{if(R){try{R.gridView.setSortingOptions({enabled:!0}),R.gridView.sortMode=Ke.SortMode.EXPLICIT,R.gridView.editorOptions.viewGridInside=!0,R.gridView instanceof Ke.TreeView&&R.gridView.setTreeOptions({expandWhenSetData:Ke.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:Ke.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),R.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:o?.display?.minRowHeight||43,maxRowHeight:o?.display?.maxRowHeight||100,rowHeight:o?.display?.rowHeight||43,rowChangeDelay:o?.display?.rowChangeDelay||0,selectionStyle:o?.display?.selectionStyle||Ke.SelectionStyle.ROWS,fitStyle:o?.display?.fitStyle||Ke.GridFitStyle.FILL,useAlternateRowStyle:o?.display?.useAlternateRowStyle||!1}),R.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:o?.edit?.editable||!1,validateOnEdited:o?.edit?.validateOnEdited||!1}),R.gridView.setCopyOptions({singleMode:o?.copy?.singleMode||!1}),R.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),R.gridView.header.height=o?.header?.height||43,R.gridView.header.styleName=o?.header?.styleName||"bwgGridHeader",o?.container?.radio?R.gridView.setCheckBar({exclusive:o?.container?.radio||!1}):R.gridView.setCheckBar({visible:o?.container?.check||!1,showAll:o?.container?.checkAll||!1}),R.gridView.setStateBar({visible:o?.container?.state||!1}),R.gridView.rowIndicator.visible=o?.container?.indicator||!1,R.gridView instanceof Ke.GridView&&(R.gridView.groupPanel.visible=o?.container?.panel||!1),R.gridView.setFooters({visible:o?.container?.footer||!1}),R.gridView.setHeader({visible:o?.container?.header||!0}),R.gridView.formatOptions.numberFormat="#,##0"}catch(H){console.log("그리드 옵션 설정 중 오류:",H)}try{R.gridView instanceof Ke.TreeView?R.gridView.setContextMenu(gd):R.gridView.setContextMenu(pd),R.gridView.onContextMenuItemClicked=function(H,K,W){if(!(!W||!W.column)){if(K.tag=="excel")z(H,{isTitle:!1},s?.excel);else if(K.tag=="showIndentExcel")z(H,{isTitle:!1,treeBlank:!0},s?.excel);else if(K.tag=="withTitleExcel")z(H,{isTitle:!0,treeBlank:!1},s?.excel);else if(K.tag=="filter")B(H,K);else if(K.tag=="fixedCol"){const Y=H.getDataSource().getFieldIndex(W.column);H.setFixedOptions({colCount:Y})}else if(K.tag=="fixedRow")H.setFixedOptions({rowCount:(W.itemIndex||0)+1});else if(K.tag=="fixedCancel")H.setFixedOptions({colCount:0,rowCount:0});else if(K.tag=="hide")H.setColumnProperty(W.column,"visible",!1),H._hideCols[H._hideCols.length]=W.column;else if(K.tag=="hideClear")for(var q=0;q<H._hideCols.length;q++)H.setColumnProperty(H._hideCols[q],"visible",!0)}}}catch(H){console.log("컨텍스트 설정 중 오류:",H)}}},[o]),k=R=>{if(!(!l||l.length===0))try{l.forEach(H=>{const{name:K,renderer:W}=H;if(K&&W){const q=typeof W=="function"?new W:W;R.gridView.registerCustomRenderer(K,q)}})}catch(H){console.error("커스텀 렌더러 초기화 중 오류:",H)}},L=R=>{R.onPageChanged=(H,K)=>{U(W=>({...W,currentPage:K}))},R.onPageCountChanged=(H,K)=>{U(W=>({...W,totalPages:K}))}},I=R=>{d.current?.gridView&&d.current.gridView.setPage(R)},_=R=>{if(o?.layout?.colspan&&o.layout.colspan.length>0&&o?.layout?.colspan.forEach(H=>{const K=R.gridView.layoutByColumn(H.fieldName);if(K){const W=H.span;K.spanCallback=function(q,Y,G){return W}}}),n&&n.length>0&&n.some(K=>K.children&&K.children.length>0))try{(()=>{const W=JSON.parse(JSON.stringify(n)),q=[],Y=G=>{const J=[];return G.children.map(X=>{if(X.children&&X.children.length>0){const ne=Y(X),se=X.header?.text||X.fieldName,le=R.gridView.getColumnProperty(X.fieldName,"header");delete X.children,delete X.header;let Se={name:X.fieldName,header:{text:le?.text||se,template:le?.template,values:le?.values,visible:le?.visible??!0},items:ne,...X};J.push(Se)}else J.push(X.fieldName)}),J};W.map(G=>{if(G.children&&G.children.length>0){const J=Y(G),X=G.header?.text||G.fieldName,ne=G.header?.visible??!0,se=R.gridView.getColumnProperty(G.fieldName,"header");delete G.children,delete G.header;const le={name:G.fieldName,header:{text:se?.text||X,template:se?.template,values:se?.values,visible:se?.visible||ne},items:J,...G};q.push(le)}else q.push(G.fieldName)}),console.log("Final Layout!!",q),R.gridView.setColumnLayout(q)})()}catch(K){console.error("컬럼 레이아웃 설정 오류:",K)}},N=()=>{if(d.current){if(e==="nrml"){const R=d.current;if(E(R),k(R),n&&n.length>0){const H=v(n),K=x(n);R.gridView.getDataSource().setFields(H),R.gridView.setColumns(K)}if(_(R),o?.container?.page){const H=o?.pagingOption?.pageSize||10;R.gridView.setPaging(!0,H),L(R.gridView)}}else{const R=d.current;if(E(R),k(R),n&&n.length>0){const H=v(n),K=x(n);R.gridView.getDataSource().setFields(H),R.gridView.setColumns(K)}_(d.current)}setTimeout(()=>{if(u){const R=typeof f=="object"&&f!==null?f.current:null;u(R)}},0)}},z=(R,H,K)=>{const W=R.getDataSource();let q=K?.footer==null?"default":K.footer;W.getRowCount()<1&&(q="hidden");let Y={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!H?.treeBlank,footer:q,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:K?.fileName||"sample.xlsx"};W instanceof Ke.LocalTreeDataProvider&&(Y.indenting=!!H?.treeBlank),K?.isCellMerge==!0&&(Y.separateRows=!1),ot.isEmpty(K?.sheetName)==!1&&(Y.sheetName=K?.sheetName),H?.isTitle&&(Y.documentTitle={message:ot.isSafeEmpty(K?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},ot.isEmpty(K?.subTitle)==!1&&(Y.documentSubtitle={message:K?.subTitle,visible:!0,styleName:"center",height:20}),ot.isEmpty(K?.tailTitle)==!1&&(Y.documentTail={message:K?.tailTitle,visible:!0,styleName:"documentStyle"})),R.exportGrid(Y)},B=(R,H)=>{const K=R.getDataSource(),W=K.getOrgFieldNames();if(H.checked)for(var q=0;q<W.length;q++){let G=[],J=K.getDistinctValues(W[q])??[];if(J.length==0)continue;let X=R.columnByName(W[q]);for(var Y=0;Y<J.length;Y++){if(J[Y]==null)continue;let ne=X.values!=null&&X.values.indexOf(J[Y])!=-1?X?.labels?.[X.values.indexOf(J[Y])]:J[Y];ot.isEmpty(ne)&&(ot.isEmpty(J[Y])?ne=" ":ne=J[Y]);let se="";J[Y]==null?se="value="+J[Y]:se="value='"+J[Y]+"'",G.push({name:ne,criteria:se})}R.setColumnFilters(W[q],G)}else for(var q=0;q<W.length;q++)R.clearColumnFilters(W[q]),R.activateAllColumnFilters(W[q],!1),R.clearColumnFilters(W[q])};g.useEffect(()=>{if(d.current&&d.current.gridView)if(e==="nrml"){const R=d.current;E(R)}else{const R=d.current;E(R)}},[e,o,E]),g.useEffect(()=>{!d.current||!n||n.length===0||N()},[n]),g.useEffect(()=>{d.current&&S()},[i,S]);const[b,y]=g.useState(!1),[O,A]=g.useState(""),D=g.useRef(null),[F,U]=g.useState({currentPage:0,totalPages:0,totalData:0});g.useEffect(()=>{U({currentPage:0,totalPages:0,totalData:0})},[]),g.useEffect(()=>{b&&setTimeout(()=>{D.current?.focus?.()},0)},[b]),g.useEffect(()=>()=>{if(d.current)try{const R=d.current;R.gridView&&(R.gridView.onDataLoadComplated=void 0,R.gridView.onCurrentRowChanged=void 0,R.gridView.onCellClicked=void 0,R.gridView.onCellDblClicked=void 0,R.gridView.onEditRowChanged=void 0,R.gridView.onItemChecked=void 0,R.gridView.onItemAllChecked=void 0,R.gridView.onColumnCheckedChanged=void 0,R.gridView.onCellButtonClicked=void 0,R.gridView.onEditChange=void 0,R.gridView.onCellEdited=void 0,R.gridView.onKeyUp=void 0,R.gridView.onKeyDown=void 0,R.gridView.onWheel=void 0,R.gridView.onValidateColumn=void 0,R.gridView.onValidateRow=void 0,R.gridView.onValidationFail=void 0,R.gridView.onRowInserting=void 0,R.gridView.onCellItemClicked=void 0,R.gridView.onShowEditor=void 0,R.gridView.getDataSource()&&(R.gridView.getDataSource().clearRows(),R.gridView.getDataSource().setFields([])),R.gridView.getDataSource().clearRows())}catch(R){console.warn("⚠️ BwgGrid cleanup error:",R)}},[]);const V=g.useCallback(R=>{Z(R)},[]),Z=g.useCallback(R=>{const H=d.current?.gridView;if(H?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(H?.commit(),ot.isEmpty(R))return;const K=H?.getCurrent().itemIndex??-1;if(K<0)return;const W={value:R,startIndex:K+1,wrap:!0,caseSensitive:!1,partialMatch:!0},q=H?.searchCell(W);H?.setCurrent(q)},[]),ae=g.useCallback(R=>{R.key==="Escape"&&(R.preventDefault(),y(!1))},[]),me=g.useCallback(R=>{R.ctrlKey&&R.code==="KeyF"&&(R.preventDefault(),A(""),y(!b))},[b]),ue={searchRow:V,searchEnter:Z,handleCloseKeyword:ae,handleSearch:me},be=g.useMemo(()=>({...t,position:"relative",width:t?.width||"100%",height:t?.height||"100%"}),[t]);return c.jsxs(md,{children:[c.jsxs("div",{style:be,className:r,onKeyDown:R=>ue.handleSearch(R),children:[b&&c.jsx("div",{className:"grid-search-box",children:c.jsxs(M.Flex,{gap:3,children:[c.jsx(M.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:c.jsxs(M.Space.Compact,{children:[c.jsx(M.Button,{icon:c.jsx(ce.SearchOutlined,{})}),c.jsx(M.Input,{ref:D,value:O,name:"srchField",autoComplete:"off",onKeyUp:R=>ue.handleCloseKeyword(R),onChange:R=>A(R.target.value),onPressEnter:R=>ue.searchEnter(R)})]})}),c.jsx(M.Button,{variant:"solid",icon:c.jsx(ce.CloseOutlined,{}),onClick:()=>y(!1)})]})}),e==="nrml"?c.jsx(Aa.RealGridReact,{ref:d,autoGenerateField:!0,onInitialized:N}):c.jsx(Aa.RealTreeReact,{ref:d,autoGenerateField:!1,onInitialized:N})]}),o?.container?.page&&c.jsx(ca,{currentPage:F.currentPage,totalPages:F.totalPages,pageSize:o?.pagingOption?.pageSize,totalData:F.totalData,onPageChange:I,pageSizeOptions:o?.pagingOption?.pageSizeOptions,gridRef:d})]})}),yd=e=>({initContent(t){this._root=dd.createRoot(t)},render(t,r,n,o){const i=this._root;i&&e(t,r,n,o,i)},clearContent(t){const r=this._root;r&&setTimeout(()=>{r&&(r.unmount(),this._root=null)},0)},canClick(t){return!0},click(){return{}}}),xd=g.memo(({title:e,border:t,children:r,titleChildren:n})=>{const o=g.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return c.jsxs(Nt,{type:"vertical",children:[c.jsx(Vt,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:n}),c.jsx(fr,{border:!1,children:c.jsx(M.ConfigProvider,{theme:o,children:r})})]})}),Nt=({type:e="horizontal",layoutAlign:t="left",verticalAlign:r,className:n,style:o,children:i})=>c.jsx("div",{style:o,className:`bwgview-content-layout ${e=="horizontal"?"hz-layout":"vt-layout"} layout-${t} ${r&&`vertical-${r}`} ${n||""}`,children:i}),Za=(e,t)=>{const r=window.innerWidth,n=window.innerHeight,o=Math.min(Math.max(e.x,0),Math.max(0,r-t.width)),i=Math.min(Math.max(e.y,0),Math.max(0,n-t.height));return{x:o,y:i}},Cd=({buttons:e,onClose:t})=>{const r=(e||[]).filter(n=>n?.visible!==!1);return r.length===0?c.jsx(M.Button,{type:"default",className:"bwg-btn popup-btn",onClick:t,children:"닫기"}):c.jsxs("div",{style:{display:"flex",gap:6},children:[r.map(n=>c.jsx(M.Button,{type:n.type,disabled:!!n.disabled,loading:n.loading,className:n.className||"bwg-btn popup-btn",style:n.style,icon:n.icon,onClick:n.onClick,children:n.label},n.id)),c.jsx(M.Button,{type:"default",className:"bwg-btn popup-btn",onClick:t,children:"닫기"})]})},Sn=({popup:e,popupEvent:t,onClose:r,children:n,buttons:o})=>{const i=g.useRef(null),a=e?.popupTitle||"팝업",s=e?.width||800,l=e?.height||600,[u,f]=g.useState(s),[d,p]=g.useState(l),w=g.useMemo(()=>{const T=Math.max(0,(window.innerWidth-s)/2),j=Math.max(0,(window.innerHeight-l)/2);return{x:T,y:j}},[s,l]),[v,x]=g.useState(w),m=(T,j)=>{const S=Za({x:j.x,y:j.y},{width:u,height:d});x(S)},$=(T,j,S,E,k)=>{const L={width:parseInt(S.style.width,10),height:parseInt(S.style.height,10)},I=Za(k,L);f(L.width),p(L.height),x(I)},C=()=>i.current??document.body,P=typeof e?.zIndex=="number"?e.zIndex:3e3;return c.jsxs("div",{style:{position:"fixed",inset:0,zIndex:P},children:[c.jsx("div",{onClick:r,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),c.jsxs(Bu.Rnd,{className:"bwg-popup",size:{width:u,height:d},position:v,bounds:"window",minWidth:400,minHeight:300,onDragStop:m,onResizeStop:$,dragHandleClassName:"drag-handle",cancel:".rnd-cancel",enableUserSelectHack:!1,style:{backgroundColor:"white",borderRadius:20,boxShadow:"0 4px 15px rgba(0,0,0,0.25)",overflow:"visible",position:"absolute",zIndex:1},children:[c.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:c.jsx(jl,{getPopupContainer:C,children:c.jsx(Nt,{type:"vertical",children:c.jsx(M.Card,{className:"popup-drag-container",title:c.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:a}),style:{width:"100%",height:"100%"},styles:{body:{height:"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:c.jsx(Cd,{buttons:o,onClose:()=>e?.close?.()||r?.()}),children:c.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:c.jsx(dr.SearchBoxProvider,{children:n})})})})})}),c.jsx("div",{ref:i,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},Sd=({children:e,...t})=>c.jsx(M.Row,{...t,className:"bwg-row",children:e}),wd=({children:e})=>c.jsx("div",{style:{height:"100%",padding:"20px 30px 26px"},children:c.jsx("div",{style:{width:"100%",height:"100%",border:"1px solid #ddd",borderRadius:"15px",background:"#fff"},children:e})}),Ed=({rowKey:e="id",columns:t,dataSource:r,loading:n=!1,rowSelection:o,size:i="middle",pagination:a=!1,...s})=>c.jsx(M.Table,{rowKey:e,columns:t,dataSource:r,loading:n,rowSelection:o,size:i,pagination:a,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...s}),jd=e=>{const{type:t="card",animated:r=!0,...n}=e;return c.jsx(M.Tabs,{type:t,animated:r,...n})};function ki(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Rd(e){if(Array.isArray(e))return ki(e)}function $l(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ua(e,t){if(e){if(typeof e=="string")return ki(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ki(e,t):void 0}}function $d(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function et(e){return Rd(e)||$l(e)||ua(e)||$d()}function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xe.apply(null,arguments)}var kd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function kl(e){if(Array.isArray(e))return e}function Od(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,o=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function Ol(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(e,t){return kl(e)||Od(e,t)||ua(e,t)||Ol()}function we(e){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},we(e)}function Td(e,t){if(we(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(we(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tl(e){var t=Td(e,"string");return we(t)=="symbol"?t:t+""}function ee(e,t,r){return(t=Tl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _d(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Rt(e,t){if(e==null)return{};var r,n,o=_d(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Zo={exports:{}};/*!
|
|
4
|
+
Copyright (c) 2018 Jed Watson.
|
|
5
|
+
Licensed under the MIT License (MIT), see
|
|
6
|
+
http://jedwatson.github.io/classnames
|
|
7
|
+
*/var Ja;function Pd(){return Ja||(Ja=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Zo)),Zo.exports}var Nd=Pd();const pe=xo(Nd),Ze=Math.round;function Jo(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const es=(e,t,r)=>r===0?e:e/100;function Jr(e,t){const r=t||255;return e>r?r:e<0?0:e}let Ye=class _l{constructor(t){ee(this,"isValid",!0),ee(this,"r",0),ee(this,"g",0),ee(this,"b",0),ee(this,"a",1),ee(this,"_h",void 0),ee(this,"_s",void 0),ee(this,"_l",void 0),ee(this,"_v",void 0),ee(this,"_max",void 0),ee(this,"_min",void 0),ee(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof _l)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Jr(t.r),this.g=Jr(t.g),this.b=Jr(t.b),this.a=typeof t.a=="number"?Jr(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ze(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:Ze(i("r")),g:Ze(i("g")),b:Ze(i("b")),a:Ze(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>Ze((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Ze(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Ze(this.getSaturation()*100),n=Ze(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=Jr(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const p=Ze(n*255);this.r=p,this.g=p,this.b=p}let i=0,a=0,s=0;const l=t/60,u=(1-Math.abs(2*n-1))*r,f=u*(1-Math.abs(l%2-1));l>=0&&l<1?(i=u,a=f):l>=1&&l<2?(i=f,a=u):l>=2&&l<3?(a=u,s=f):l>=3&&l<4?(a=f,s=u):l>=4&&l<5?(i=f,s=u):l>=5&&l<6&&(i=u,s=f);const d=n-u/2;this.r=Ze((i+d)*255),this.g=Ze((a+d)*255),this.b=Ze((s+d)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const i=Ze(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const a=t/60,s=Math.floor(a),l=a-s,u=Ze(n*(1-r)*255),f=Ze(n*(1-r*l)*255),d=Ze(n*(1-r*(1-l))*255);switch(s){case 0:this.g=d,this.b=u;break;case 1:this.r=f,this.b=u;break;case 2:this.r=u,this.b=d;break;case 3:this.r=u,this.g=f;break;case 4:this.r=d,this.g=u;break;case 5:default:this.g=u,this.b=f;break}}fromHsvString(t){const r=Jo(t,es);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=Jo(t,es);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=Jo(t,(n,o)=>o.includes("%")?Ze(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Wn=2,ts=.16,Ad=.05,Md=.05,Id=.15,Pl=5,Nl=4,Dd=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function rs(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Wn*t:Math.round(e.h)+Wn*t:n=r?Math.round(e.h)+Wn*t:Math.round(e.h)-Wn*t,n<0?n+=360:n>=360&&(n-=360),n}function ns(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-ts*t:t===Nl?n=e.s+ts:n=e.s+Ad*t,n>1&&(n=1),r&&t===Pl&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function os(e,t,r){var n;return r?n=e.v+Md*t:n=e.v-Id*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function un(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new Ye(e),o=n.toHsv(),i=Pl;i>0;i-=1){var a=new Ye({h:rs(o,i,!0),s:ns(o,i,!0),v:os(o,i,!0)});r.push(a)}r.push(n);for(var s=1;s<=Nl;s+=1){var l=new Ye({h:rs(o,s),s:ns(o,s),v:os(o,s)});r.push(l)}return t.theme==="dark"?Dd.map(function(u){var f=u.index,d=u.amount;return new Ye(t.backgroundColor||"#141414").mix(r[f],d).toHexString()}):r.map(function(u){return u.toHexString()})}var ei={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Oi=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Oi.primary=Oi[5];var Ti=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ti.primary=Ti[5];var _i=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];_i.primary=_i[5];var fo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];fo.primary=fo[5];var Pi=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Pi.primary=Pi[5];var Ni=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ni.primary=Ni[5];var Ai=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ai.primary=Ai[5];var Mi=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Mi.primary=Mi[5];var ho=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ho.primary=ho[5];var Ii=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ii.primary=Ii[5];var Di=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Di.primary=Di[5];var zi=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];zi.primary=zi[5];var Li=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Li.primary=Li[5];var ti={red:Oi,volcano:Ti,orange:_i,gold:fo,yellow:Pi,lime:Ni,green:Ai,cyan:Mi,blue:ho,geekblue:Ii,purple:Di,magenta:zi,grey:Li},da=g.createContext({});function is(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?is(Object(r),!0).forEach(function(n){ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):is(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function at(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function zd(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var as="data-rc-order",ss="data-rc-priority",Ld="rc-util-key",Bi=new Map;function Al(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Ld}function So(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Bd(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function fa(e){return Array.from((Bi.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Ml(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!at())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=Bd(n),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(as,a),s&&i&&l.setAttribute(ss,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var u=So(t),f=u.firstChild;if(n){if(s){var d=(t.styles||fa(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(as)))return!1;var w=Number(p.getAttribute(ss)||0);return i>=w});if(d.length)return u.insertBefore(l,d[d.length-1].nextSibling),l}u.insertBefore(l,f)}else u.appendChild(l);return l}function Il(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=So(t);return(t.styles||fa(r)).find(function(n){return n.getAttribute(Al(t))===e})}function dn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Il(e,t);if(r){var n=So(t);n.removeChild(r)}}function Hd(e,t){var r=Bi.get(e);if(!r||!zd(document,r)){var n=Ml("",t),o=n.parentNode;Bi.set(e,o),e.removeChild(n)}}function Ft(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=So(r),o=fa(n),i=Q(Q({},r),{},{styles:o});Hd(n,i);var a=Il(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var u;a.nonce=(u=i.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var f=Ml(e,i);return f.setAttribute(Al(i),t),f}function Dl(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Fd(e){return Dl(e)instanceof ShadowRoot}function po(e){return Fd(e)?Dl(e):null}var Hi={},ha=[],Vd=function(t){ha.push(t)};function Rr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=ha.reduce(function(n,o){return o(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Wd(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=ha.reduce(function(n,o){return o(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function zl(){Hi={}}function Ll(e,t,r){!t&&!Hi[r]&&(e(!1,r),Hi[r]=!0)}function Kt(e,t){Ll(Rr,e,t)}function Kd(e,t){Ll(Wd,e,t)}Kt.preMessage=Vd;Kt.resetWarned=zl;Kt.noteOnce=Kd;function qd(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Ud(e,t){Kt(e,"[@ant-design/icons] ".concat(t))}function ls(e){return we(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(we(e.icon)==="object"||typeof e.icon=="function")}function cs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[qd(r)]=n}return t},{})}function Fi(e,t,r){return r?g.createElement(e.tag,Q(Q({key:t},cs(e.attrs)),r),(e.children||[]).map(function(n,o){return Fi(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):g.createElement(e.tag,Q({key:t},cs(e.attrs)),(e.children||[]).map(function(n,o){return Fi(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Bl(e){return un(e)[0]}function Hl(e){return e?Array.isArray(e)?e:[e]:[]}var Gd=`
|
|
8
|
+
.anticon {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
color: inherit;
|
|
12
|
+
font-style: normal;
|
|
13
|
+
line-height: 0;
|
|
14
|
+
text-align: center;
|
|
15
|
+
text-transform: none;
|
|
16
|
+
vertical-align: -0.125em;
|
|
17
|
+
text-rendering: optimizeLegibility;
|
|
18
|
+
-webkit-font-smoothing: antialiased;
|
|
19
|
+
-moz-osx-font-smoothing: grayscale;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.anticon > * {
|
|
23
|
+
line-height: 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.anticon svg {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.anticon::before {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.anticon .anticon-icon {
|
|
35
|
+
display: block;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.anticon[tabindex] {
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.anticon-spin::before,
|
|
43
|
+
.anticon-spin {
|
|
44
|
+
display: inline-block;
|
|
45
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
46
|
+
animation: loadingCircle 1s infinite linear;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@-webkit-keyframes loadingCircle {
|
|
50
|
+
100% {
|
|
51
|
+
-webkit-transform: rotate(360deg);
|
|
52
|
+
transform: rotate(360deg);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@keyframes loadingCircle {
|
|
57
|
+
100% {
|
|
58
|
+
-webkit-transform: rotate(360deg);
|
|
59
|
+
transform: rotate(360deg);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
`,Yd=function(t){var r=g.useContext(da),n=r.csp,o=r.prefixCls,i=r.layer,a=Gd;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
|
|
63
|
+
`).concat(a,`
|
|
64
|
+
}`)),g.useEffect(function(){var s=t.current,l=po(s);Ft(a,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])},Xd=["icon","className","onClick","style","primaryColor","secondaryColor"],on={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Qd(e){var t=e.primaryColor,r=e.secondaryColor;on.primaryColor=t,on.secondaryColor=r||Bl(t),on.calculated=!!r}function Zd(){return Q({},on)}var Ar=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Rt(t,Xd),u=h.useRef(),f=on;if(a&&(f={primaryColor:a,secondaryColor:s||Bl(a)}),Yd(u),Ud(ls(r),"icon should be icon definiton, but got ".concat(r)),!ls(r))return null;var d=r;return d&&typeof d.icon=="function"&&(d=Q(Q({},d),{},{icon:d.icon(f.primaryColor,f.secondaryColor)})),Fi(d.icon,"svg-".concat(d.name),Q(Q({className:n,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};Ar.displayName="IconReact";Ar.getTwoToneColors=Zd;Ar.setTwoToneColors=Qd;function Fl(e){var t=Hl(e),r=te(t,2),n=r[0],o=r[1];return Ar.setTwoToneColors({primaryColor:n,secondaryColor:o})}function Jd(){var e=Ar.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var ef=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Fl(ho.primary);var qt=h.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=Rt(e,ef),f=h.useContext(da),d=f.prefixCls,p=d===void 0?"anticon":d,w=f.rootClassName,v=pe(w,p,ee(ee({},"".concat(p,"-").concat(n.name),!!n.name),"".concat(p,"-spin"),!!o||n.name==="loading"),r),x=a;x===void 0&&s&&(x=-1);var m=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,$=Hl(l),C=te($,2),P=C[0],T=C[1];return h.createElement("span",Xe({role:"img","aria-label":n.name},u,{ref:t,tabIndex:x,onClick:s,className:v}),h.createElement(Ar,{icon:n,primaryColor:P,secondaryColor:T,style:m}))});qt.displayName="AntdIcon";qt.getTwoToneColor=Jd;qt.setTwoToneColor=Fl;var tf=function(t,r){return h.createElement(qt,Xe({},t,{ref:r,icon:kd}))},Vl=h.forwardRef(tf);process.env.NODE_ENV!=="production"&&(Vl.displayName="EditOutlined");var rf=Symbol.for("react.element"),nf=Symbol.for("react.transitional.element"),of=Symbol.for("react.fragment");function Wl(e){return e&&we(e)==="object"&&(e.$$typeof===rf||e.$$typeof===nf)&&e.type===of}function fn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return g.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(fn(n)):Wl(n)&&n.props?r=r.concat(fn(n.props.children,t)):r.push(n))}),r}function hn(e){return e instanceof HTMLElement||e instanceof SVGElement}function af(e){return e&&we(e)==="object"&&hn(e.nativeElement)?e.nativeElement:hn(e)?e:null}function ro(e){var t=af(e);if(t)return t;if(e instanceof g.Component){var r;return(r=lo.findDOMNode)===null||r===void 0?void 0:r.call(lo,e)}return null}var Kn={exports:{}},Re={};/**
|
|
65
|
+
* @license React
|
|
66
|
+
* react-is.production.min.js
|
|
67
|
+
*
|
|
68
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the MIT license found in the
|
|
71
|
+
* LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/var us;function sf(){if(us)return Re;us=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function x(m){if(typeof m=="object"&&m!==null){var $=m.$$typeof;switch($){case e:switch(m=m.type,m){case r:case o:case n:case u:case f:return m;default:switch(m=m&&m.$$typeof,m){case s:case a:case l:case p:case d:case i:return m;default:return $}}case t:return $}}}return Re.ContextConsumer=a,Re.ContextProvider=i,Re.Element=e,Re.ForwardRef=l,Re.Fragment=r,Re.Lazy=p,Re.Memo=d,Re.Portal=t,Re.Profiler=o,Re.StrictMode=n,Re.Suspense=u,Re.SuspenseList=f,Re.isAsyncMode=function(){return!1},Re.isConcurrentMode=function(){return!1},Re.isContextConsumer=function(m){return x(m)===a},Re.isContextProvider=function(m){return x(m)===i},Re.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Re.isForwardRef=function(m){return x(m)===l},Re.isFragment=function(m){return x(m)===r},Re.isLazy=function(m){return x(m)===p},Re.isMemo=function(m){return x(m)===d},Re.isPortal=function(m){return x(m)===t},Re.isProfiler=function(m){return x(m)===o},Re.isStrictMode=function(m){return x(m)===n},Re.isSuspense=function(m){return x(m)===u},Re.isSuspenseList=function(m){return x(m)===f},Re.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===o||m===n||m===u||m===f||m===w||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===d||m.$$typeof===i||m.$$typeof===a||m.$$typeof===l||m.$$typeof===v||m.getModuleId!==void 0)},Re.typeOf=x,Re}var $e={};/**
|
|
73
|
+
* @license React
|
|
74
|
+
* react-is.development.js
|
|
75
|
+
*
|
|
76
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the MIT license found in the
|
|
79
|
+
* LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/var ds;function lf(){return ds||(ds=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),v=!1,x=!1,m=!1,$=!1,C=!1,P;P=Symbol.for("react.module.reference");function T(G){return!!(typeof G=="string"||typeof G=="function"||G===r||G===o||C||G===n||G===u||G===f||$||G===w||v||x||m||typeof G=="object"&&G!==null&&(G.$$typeof===p||G.$$typeof===d||G.$$typeof===i||G.$$typeof===a||G.$$typeof===l||G.$$typeof===P||G.getModuleId!==void 0))}function j(G){if(typeof G=="object"&&G!==null){var J=G.$$typeof;switch(J){case e:var X=G.type;switch(X){case r:case o:case n:case u:case f:return X;default:var ne=X&&X.$$typeof;switch(ne){case s:case a:case l:case p:case d:case i:return ne;default:return J}}case t:return J}}}var S=a,E=i,k=e,L=l,I=r,_=p,N=d,z=t,B=o,b=n,y=u,O=f,A=!1,D=!1;function F(G){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(G){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(G){return j(G)===a}function Z(G){return j(G)===i}function ae(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function me(G){return j(G)===l}function ue(G){return j(G)===r}function be(G){return j(G)===p}function R(G){return j(G)===d}function H(G){return j(G)===t}function K(G){return j(G)===o}function W(G){return j(G)===n}function q(G){return j(G)===u}function Y(G){return j(G)===f}$e.ContextConsumer=S,$e.ContextProvider=E,$e.Element=k,$e.ForwardRef=L,$e.Fragment=I,$e.Lazy=_,$e.Memo=N,$e.Portal=z,$e.Profiler=B,$e.StrictMode=b,$e.Suspense=y,$e.SuspenseList=O,$e.isAsyncMode=F,$e.isConcurrentMode=U,$e.isContextConsumer=V,$e.isContextProvider=Z,$e.isElement=ae,$e.isForwardRef=me,$e.isFragment=ue,$e.isLazy=be,$e.isMemo=R,$e.isPortal=H,$e.isProfiler=K,$e.isStrictMode=W,$e.isSuspense=q,$e.isSuspenseList=Y,$e.isValidElementType=T,$e.typeOf=j})()),$e}var fs;function cf(){return fs||(fs=1,process.env.NODE_ENV==="production"?Kn.exports=sf():Kn.exports=lf()),Kn.exports}var ri=cf();function pa(e,t,r){var n=h.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var uf=Number(g.version.split(".")[0]),ga=function(t,r){typeof t=="function"?t(r):we(t)==="object"&&t&&"current"in t&&(t.current=r)},wn=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);return o.length<=1?o[0]:function(i){r.forEach(function(a){ga(a,i)})}},ma=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return pa(function(){return wn.apply(void 0,r)},r,function(o,i){return o.length!==i.length||o.every(function(a,s){return a!==i[s]})})},wo=function(t){var r,n;if(!t)return!1;if(Kl(t)&&uf>=19)return!0;var o=ri.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==ri.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==ri.ForwardRef)};function Kl(e){return g.isValidElement(e)&&!Wl(e)}var va=function(t){if(t&&Kl(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},Vi=h.createContext(null);function df(e){var t=e.children,r=e.onBatchResize,n=h.useRef(0),o=h.useRef([]),i=h.useContext(Vi),a=h.useCallback(function(s,l,u){n.current+=1;var f=n.current;o.current.push({size:s,element:l,data:u}),Promise.resolve().then(function(){f===n.current&&(r?.(o.current),o.current=[])}),i?.(s,l,u)},[r,i]);return h.createElement(Vi.Provider,{value:a},t)}var ql=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];r.call(n,a[1],a[0])}},t})()})(),Wi=typeof window<"u"&&typeof document<"u"&&window.document===document,go=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),ff=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(go):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),hf=2;function pf(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&s()}function a(){ff(i)}function s(){var l=Date.now();if(r){if(l-o<hf)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=l}return s}var gf=20,mf=["top","right","bottom","left","width","height","size","weight"],vf=typeof MutationObserver<"u",bf=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=pf(this.refresh.bind(this),gf)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Wi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vf?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Wi||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=mf.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Ul=(function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),$r=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||go}),Gl=Eo(0,0,0,0);function mo(e){return parseFloat(e)||0}function hs(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var i=e["border-"+o+"-width"];return n+mo(i)},0)}function yf(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var i=o[n],a=e["padding-"+i];r[i]=mo(a)}return r}function xf(e){var t=e.getBBox();return Eo(0,0,t.width,t.height)}function Cf(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Gl;var n=$r(e).getComputedStyle(e),o=yf(n),i=o.left+o.right,a=o.top+o.bottom,s=mo(n.width),l=mo(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=hs(n,"left","right")+i),Math.round(l+a)!==r&&(l-=hs(n,"top","bottom")+a)),!wf(e)){var u=Math.round(s+i)-t,f=Math.round(l+a)-r;Math.abs(u)!==1&&(s-=u),Math.abs(f)!==1&&(l-=f)}return Eo(o.left,o.top,s,l)}var Sf=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof $r(e).SVGGraphicsElement}:function(e){return e instanceof $r(e).SVGElement&&typeof e.getBBox=="function"}})();function wf(e){return e===$r(e).document.documentElement}function Ef(e){return Wi?Sf(e)?xf(e):Cf(e):Gl}function jf(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Ul(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}function Eo(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Rf=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Eo(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Ef(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),$f=(function(){function e(t,r){var n=jf(r);Ul(this,{target:t,contentRect:n})}return e})(),kf=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new ql,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof $r(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Rf(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof $r(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new $f(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Yl=typeof WeakMap<"u"?new WeakMap:new ql,Xl=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=bf.getInstance(),n=new kf(t,r,this);Yl.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Xl.prototype[e]=function(){var t;return(t=Yl.get(this))[e].apply(t,arguments)}});var Of=(function(){return typeof go.ResizeObserver<"u"?go.ResizeObserver:Xl})(),Ht=new Map;function Ql(e){e.forEach(function(t){var r,n=t.target;(r=Ht.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var Zl=new Of(Ql);process.env.NODE_ENV;process.env.NODE_ENV;function Tf(e,t){Ht.has(e)||(Ht.set(e,new Set),Zl.observe(e)),Ht.get(e).add(t)}function _f(e,t){Ht.has(e)&&(Ht.get(e).delete(t),Ht.get(e).size||(Zl.unobserve(e),Ht.delete(e)))}function vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tl(n.key),n)}}function bt(e,t,r){return t&&Pf(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ki(e,t){return Ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ki(e,t)}function En(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ki(e,t)}function vo(e){return vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vo(e)}function Jl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jl=function(){return!!e})()}function an(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nf(e,t){if(t&&(we(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return an(e)}function jn(e){var t=Jl();return function(){var r,n=vo(e);if(t){var o=vo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Nf(this,r)}}var Af=(function(e){En(r,e);var t=jn(r);function r(){return vt(this,r),t.apply(this,arguments)}return bt(r,[{key:"render",value:function(){return this.props.children}}]),r})(h.Component);function Mf(e,t){var r=e.children,n=e.disabled,o=h.useRef(null),i=h.useRef(null),a=h.useContext(Vi),s=typeof r=="function",l=s?r(o):r,u=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!s&&h.isValidElement(l)&&wo(l),d=f?va(l):null,p=ma(d,o),w=function(){var $;return ro(o.current)||(o.current&&we(o.current)==="object"?ro(($=o.current)===null||$===void 0?void 0:$.nativeElement):null)||ro(i.current)};h.useImperativeHandle(t,function(){return w()});var v=h.useRef(e);v.current=e;var x=h.useCallback(function(m){var $=v.current,C=$.onResize,P=$.data,T=m.getBoundingClientRect(),j=T.width,S=T.height,E=m.offsetWidth,k=m.offsetHeight,L=Math.floor(j),I=Math.floor(S);if(u.current.width!==L||u.current.height!==I||u.current.offsetWidth!==E||u.current.offsetHeight!==k){var _={width:L,height:I,offsetWidth:E,offsetHeight:k};u.current=_;var N=E===Math.round(j)?j:E,z=k===Math.round(S)?S:k,B=Q(Q({},_),{},{offsetWidth:N,offsetHeight:z});a?.(B,m,P),C&&Promise.resolve().then(function(){C(B,m)})}},[]);return h.useEffect(function(){var m=w();return m&&!n&&Tf(m,x),function(){return _f(m,x)}},[o.current,n]),h.createElement(Af,{ref:i},f?h.cloneElement(l,{ref:p}):l)}var ec=h.forwardRef(Mf);process.env.NODE_ENV!=="production"&&(ec.displayName="SingleObserver");var If="rc-observer-key";function Df(e,t){var r=e.children,n=typeof r=="function"?[r]:fn(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Rr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Rr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(o,i){var a=o?.key||"".concat(If,"-").concat(i);return h.createElement(ec,Xe({},e,{key:a,ref:i===0?t:void 0}),o)})}var Mr=h.forwardRef(Df);process.env.NODE_ENV!=="production"&&(Mr.displayName="ResizeObserver");Mr.Collection=df;var ps=process.env.NODE_ENV!=="test"&&at()?h.useLayoutEffect:h.useEffect,Le=function(t,r){var n=h.useRef(!0);ps(function(){return t(n.current)},r),ps(function(){return n.current=!1,function(){n.current=!0}},[])},gs=function(t,r){Le(function(n){if(!n)return t()},r)};function ut(e){var t=h.useRef();t.current=e;var r=h.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}function pn(e){var t=h.useRef(!1),r=h.useState(e),n=te(r,2),o=n[0],i=n[1];h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function ni(e){return e!==void 0}function kr(e,t){var r=t||{},n=r.defaultValue,o=r.value,i=r.onChange,a=r.postState,s=pn(function(){return ni(o)?o:ni(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=te(s,2),u=l[0],f=l[1],d=o!==void 0?o:u,p=a?a(d):d,w=ut(i),v=pn([d]),x=te(v,2),m=x[0],$=x[1];gs(function(){var P=m[0];u!==P&&w(u,P)},[m]),gs(function(){ni(o)||f(o)},[o]);var C=ut(function(P,T){f(P,T),$([d],T)});return[p,C]}function tc(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var zf=function(t){if(at()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(o){return o in n.style})}return!1};function ms(e,t){return zf(e)}function gn(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Lf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(Kt(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&s>1)return!1;n.add(i);var u=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var f=0;f<i.length;f++)if(!o(i[f],a[f],u))return!1;return!0}if(i&&a&&we(i)==="object"&&we(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(p){return o(i[p],a[p],u)})}return!1}return o(e,t)}var Bf="%";function qi(e){return e.join(Bf)}var Hf=(function(){function e(t){vt(this,e),ee(this,"instanceId",void 0),ee(this,"cache",new Map),ee(this,"extracted",new Set),this.instanceId=t}return bt(e,[{key:"get",value:function(r){return this.opGet(qi(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(qi(r),n)}},{key:"opUpdate",value:function(r,n){var o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e})(),mn="data-token-hash",Pt="data-css-hash",Ff="data-cache-path",tr="__cssinjs_instance__";function Vf(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Pt,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[tr]=o[tr]||e,o[tr]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Pt,"]"))).forEach(function(o){var i=o.getAttribute(Pt);if(n[i]){if(o[tr]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else n[i]=!0})}return new Hf(e)}var Rn=h.createContext({hashPriority:"low",cache:Vf(),defaultCache:!0});function Wf(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var ba=(function(){function e(){vt(this,e),ee(this,"cache",void 0),ee(this,"keys",void 0),ee(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return bt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(u,f){var d=te(u,2),p=d[1];return o.internalGet(f)[1]<p?[f,o.internalGet(f)[1]]:u},[this.keys[0],this.cacheCallTimes]),a=te(i,1),s=a[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(u,f){if(f===r.length-1)l.set(u,{value:[n,o.cacheCallTimes++]});else{var d=l.get(u);d?d.map||(d.map=new Map):l.set(u,{map:new Map}),l=l.get(u).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var i;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!Wf(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();ee(ba,"MAX_CACHE_SIZE",20);ee(ba,"MAX_CACHE_OFFSET",5);var vs=0,rc=(function(){function e(t){vt(this,e),ee(this,"derivatives",void 0),ee(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=vs,t.length===0&&Rr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),vs+=1}return bt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e})(),oi=new ba;function Ui(e){var t=Array.isArray(e)?e:[e];return oi.has(t)||oi.set(t,new rc(t)),oi.get(t)}var Kf=new WeakMap,ii={};function qf(e,t){for(var r=Kf,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(ii)||r.set(ii,e()),r.get(ii)}var bs=new WeakMap;function sn(e){var t=bs.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof rc?t+=n.id:n&&we(n)==="object"?t+=sn(n):t+=n}),t=gn(t),bs.set(e,t)),t}function ys(e,t){return gn("".concat(t,"_").concat(sn(e)))}var Gi=at();function Oe(e){return typeof e=="number"?"".concat(e,"px"):e}var no=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Uf=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var i=te(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},nc=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,u=te(a,2),f=u[0],d=u[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[f])i[f]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[f])){var p,w=no(f,n?.prefix);o[w]=typeof d=="number"&&!(n!=null&&(p=n.unitless)!==null&&p!==void 0&&p[f])?"".concat(d,"px"):String(d),i[f]="var(".concat(w,")")}}),[i,Uf(o,r,{scope:n?.scope})]},Gf=Q({},h),xs=Gf.useInsertionEffect,Yf=function(t,r,n){h.useMemo(t,n),Le(function(){return r(!0)},n)},Xf=xs?function(e,t,r){return xs(function(){return e(),t()},r)}:Yf,Qf=Q({},h),Zf=Qf.useInsertionEffect,Jf=function(t){var r=[],n=!1;function o(i){if(n){process.env.NODE_ENV!=="production"&&Rr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(i)}return h.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},eh=function(){return function(t){t()}},th=typeof Zf<"u"?Jf:eh;function rh(){return!1}var Yi=!1;function nh(){return Yi}const oh=process.env.NODE_ENV==="production"?rh:nh;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var qn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(qn&&typeof qn.webpackHotUpdate=="function"){var ih=qn.webpackHotUpdate;qn.webpackHotUpdate=function(){return Yi=!0,setTimeout(function(){Yi=!1},0),ih.apply(void 0,arguments)}}}function ya(e,t,r,n,o){var i=h.useContext(Rn),a=i.cache,s=[e].concat(et(t)),l=qi(s),u=th([l]),f=oh(),d=function(x){a.opUpdate(l,function(m){var $=m||[void 0,void 0],C=te($,2),P=C[0],T=P===void 0?0:P,j=C[1],S=j;process.env.NODE_ENV!=="production"&&j&&f&&(n?.(S,f),S=null);var E=S||r(),k=[T,E];return x?x(k):k})};h.useMemo(function(){d()},[l]);var p=a.opGet(l);process.env.NODE_ENV!=="production"&&!p&&(d(),p=a.opGet(l));var w=p[1];return Xf(function(){o?.(w)},function(v){return d(function(x){var m=te(x,2),$=m[0],C=m[1];return v&&$===0&&o?.(w),[$+1,C]}),function(){a.opUpdate(l,function(x){var m=x||[],$=te(m,2),C=$[0],P=C===void 0?0:C,T=$[1],j=P-1;return j===0?(u(function(){(v||!a.opGet(l))&&n?.(T,!1)}),null):[P-1,T]})}},[l]),w}var ah={},sh=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",cr=new Map;function lh(e){cr.set(e,(cr.get(e)||0)+1)}function ch(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(mn,'="').concat(e,'"]'));r.forEach(function(n){if(n[tr]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var uh=0;function dh(e,t){cr.set(e,(cr.get(e)||0)-1);var r=new Set;cr.forEach(function(n,o){n<=0&&r.add(o)}),cr.size-r.size>uh&&r.forEach(function(n){ch(n,t),cr.delete(n)})}var fh=function(t,r,n,o){var i=n.getDerivativeToken(t),a=Q(Q({},i),r);return o&&(a=o(a)),a},hh="token";function ph(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=g.useContext(Rn),o=n.cache.instanceId,i=n.container,a=r.salt,s=a===void 0?"":a,l=r.override,u=l===void 0?ah:l,f=r.formatToken,d=r.getComputedToken,p=r.cssVar,w=qf(function(){return Object.assign.apply(Object,[{}].concat(et(t)))},t),v=sn(w),x=sn(u),m=p?sn(p):"",$=ya(hh,[s,e.id,v,x,m],function(){var C,P=d?d(w,u,e):fh(w,u,e,f),T=Q({},P),j="";if(p){var S=nc(P,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),E=te(S,2);P=E[0],j=E[1]}var k=ys(P,s);P._tokenKey=k,T._tokenKey=ys(T,s);var L=(C=p?.key)!==null&&C!==void 0?C:k;P._themeKey=L,lh(L);var I="".concat(sh,"-").concat(gn(k));return P._hashId=I,[P,I,T,j,p?.key||""]},function(C){dh(C[0]._themeKey,o)},function(C){var P=te(C,4),T=P[0],j=P[3];if(p&&j){var S=Ft(j,gn("css-variables-".concat(T._themeKey)),{mark:Pt,prepend:"queue",attachTo:i,priority:-999});S[tr]=o,S.setAttribute(mn,T._themeKey)}});return $}var gh={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},oc="comm",ic="rule",ac="decl",mh="@import",vh="@namespace",bh="@keyframes",yh="@layer",sc=Math.abs,xa=String.fromCharCode;function lc(e){return e.trim()}function oo(e,t,r){return e.replace(t,r)}function xh(e,t,r){return e.indexOf(t,r)}function jr(e,t){return e.charCodeAt(t)|0}function Or(e,t,r){return e.slice(t,r)}function _t(e){return e.length}function Ch(e){return e.length}function Un(e,t){return t.push(e),e}var jo=1,Tr=1,cc=0,mt=0,qe=0,Ir="";function Ca(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:jo,column:Tr,length:a,return:"",siblings:s}}function Sh(){return qe}function wh(){return qe=mt>0?jr(Ir,--mt):0,Tr--,qe===10&&(Tr=1,jo--),qe}function jt(){return qe=mt<cc?jr(Ir,mt++):0,Tr++,qe===10&&(Tr=1,jo++),qe}function rr(){return jr(Ir,mt)}function io(){return mt}function Ro(e,t){return Or(Ir,e,t)}function vn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Eh(e){return jo=Tr=1,cc=_t(Ir=e),mt=0,[]}function jh(e){return Ir="",e}function ai(e){return lc(Ro(mt-1,Xi(e===91?e+2:e===40?e+1:e)))}function Rh(e){for(;(qe=rr())&&qe<33;)jt();return vn(e)>2||vn(qe)>3?"":" "}function $h(e,t){for(;--t&&jt()&&!(qe<48||qe>102||qe>57&&qe<65||qe>70&&qe<97););return Ro(e,io()+(t<6&&rr()==32&&jt()==32))}function Xi(e){for(;jt();)switch(qe){case e:return mt;case 34:case 39:e!==34&&e!==39&&Xi(qe);break;case 40:e===41&&Xi(e);break;case 92:jt();break}return mt}function kh(e,t){for(;jt()&&e+qe!==57;)if(e+qe===84&&rr()===47)break;return"/*"+Ro(t,mt-1)+"*"+xa(e===47?e:jt())}function Oh(e){for(;!vn(rr());)jt();return Ro(e,mt)}function Th(e){return jh(ao("",null,null,null,[""],e=Eh(e),0,[0],e))}function ao(e,t,r,n,o,i,a,s,l){for(var u=0,f=0,d=a,p=0,w=0,v=0,x=1,m=1,$=1,C=0,P="",T=o,j=i,S=n,E=P;m;)switch(v=C,C=jt()){case 40:if(v!=108&&jr(E,d-1)==58){xh(E+=oo(ai(C),"&","&\f"),"&\f",sc(u?s[u-1]:0))!=-1&&($=-1);break}case 34:case 39:case 91:E+=ai(C);break;case 9:case 10:case 13:case 32:E+=Rh(v);break;case 92:E+=$h(io()-1,7);continue;case 47:switch(rr()){case 42:case 47:Un(_h(kh(jt(),io()),t,r,l),l),(vn(v||1)==5||vn(rr()||1)==5)&&_t(E)&&Or(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*x:s[u++]=_t(E)*$;case 125*x:case 59:case 0:switch(C){case 0:case 125:m=0;case 59+f:$==-1&&(E=oo(E,/\f/g,"")),w>0&&(_t(E)-d||x===0&&v===47)&&Un(w>32?Ss(E+";",n,r,d-1,l):Ss(oo(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(Un(S=Cs(E,t,r,u,f,o,s,P,T=[],j=[],d,i),i),C===123)if(f===0)ao(E,t,S,S,T,i,d,s,j);else{switch(p){case 99:if(jr(E,3)===110)break;case 108:if(jr(E,2)===97)break;default:f=0;case 100:case 109:case 115:}f?ao(e,S,S,n&&Un(Cs(e,S,S,0,0,o,s,P,o,T=[],d,j),j),o,j,d,s,n?T:j):ao(E,S,S,S,[""],j,0,s,j)}}u=f=w=0,x=$=1,P=E="",d=a;break;case 58:d=1+_t(E),w=v;default:if(x<1){if(C==123)--x;else if(C==125&&x++==0&&wh()==125)continue}switch(E+=xa(C),C*x){case 38:$=f>0?1:(E+="\f",-1);break;case 44:s[u++]=(_t(E)-1)*$,$=1;break;case 64:rr()===45&&(E+=ai(jt())),p=rr(),f=d=_t(P=E+=Oh(io())),C++;break;case 45:v===45&&_t(E)==2&&(x=0)}}return i}function Cs(e,t,r,n,o,i,a,s,l,u,f,d){for(var p=o-1,w=o===0?i:[""],v=Ch(w),x=0,m=0,$=0;x<n;++x)for(var C=0,P=Or(e,p+1,p=sc(m=a[x])),T=e;C<v;++C)(T=lc(m>0?w[C]+" "+P:oo(P,/&\f/g,w[C])))&&(l[$++]=T);return Ca(e,t,r,o===0?ic:s,l,u,f,d)}function _h(e,t,r,n){return Ca(e,t,r,oc,xa(Sh()),Or(e,2,-2),0,n)}function Ss(e,t,r,n,o){return Ca(e,t,r,ac,Or(e,0,n),Or(e,n+1,-1),n,o)}function Qi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Ph(e,t,r,n){switch(e.type){case yh:if(e.children.length)break;case mh:case vh:case ac:return e.return=e.return||e.value;case oc:return"";case bh:return e.return=e.value+"{"+Qi(e.children,n)+"}";case ic:if(!_t(e.value=e.props.join(",")))return""}return _t(r=Qi(e.children,n))?e.return=e.value+"{"+r+"}":""}function uc(e,t){var r=t.path,n=t.parentSelectors;Kt(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var Nh=function(t,r,n){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof r!="string"||i.indexOf(r)===-1&&!o.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&uc("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},Ah=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&uc("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},ws="data-ant-cssinjs-cache-path",dc="_FILE_STYLE__",ur,fc=!0;function Mh(){if(!ur&&(ur={},at())){var e=document.createElement("div");e.className=ws,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=te(i,2),s=a[0],l=a[1];ur[s]=l});var r=document.querySelector("style[".concat(ws,"]"));if(r){var n;fc=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Ih(e){return Mh(),!!ur[e]}function Dh(e){var t=ur[e],r=null;if(t&&at())if(fc)r=dc;else{var n=document.querySelector("style[".concat(Pt,'="').concat(ur[e],'"]'));n?r=n.innerHTML:delete ur[e]}return[r,t]}var hc="_skip_check_",pc="_multi_value_";function si(e){var t=Qi(Th(e),Ph);return t.replace(/\{%%%\:[^;];}/g,";")}function zh(e){return we(e)==="object"&&e&&(hc in e||pc in e)}function Es(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),u=l[0]||"",f=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(f).concat(o).concat(u.slice(f.length)),[u].concat(et(l.slice(1))).join(" ")});return i.join(",")}var Lh=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer,u=r.path,f=r.hashPriority,d=r.transformers,p=d===void 0?[]:d,w=r.linters,v=w===void 0?[]:w,x="",m={};function $(T){var j=T.getName(s);if(!m[j]){var S=e(T.style,r,{root:!1,parentSelectors:a}),E=te(S,1),k=E[0];m[j]="@keyframes ".concat(T.getName(s)).concat(k)}}function C(T){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return T.forEach(function(S){Array.isArray(S)?C(S,j):S&&j.push(S)}),j}var P=C(Array.isArray(t)?t:[t]);return P.forEach(function(T){var j=typeof T=="string"&&!o?{}:T;if(typeof j=="string")x+="".concat(j,`
|
|
81
|
+
`);else if(j._keyframe)$(j);else{var S=p.reduce(function(E,k){var L;return(k==null||(L=k.visit)===null||L===void 0?void 0:L.call(k,E))||E},j);Object.keys(S).forEach(function(E){var k=S[E];if(we(k)==="object"&&k&&(E!=="animationName"||!k._keyframe)&&!zh(k)){var L=!1,I=E.trim(),_=!1;(o||i)&&s?I.startsWith("@")?L=!0:I==="&"?I=Es("",s,f):I=Es(E,s,f):o&&!s&&(I==="&"||I==="")&&(I="",_=!0);var N=e(k,r,{root:_,injectHash:L,parentSelectors:[].concat(et(a),[I])}),z=te(N,2),B=z[0],b=z[1];m=Q(Q({},m),b),x+="".concat(I).concat(B)}else{let A=function(D,F){process.env.NODE_ENV!=="production"&&(we(k)!=="object"||!(k!=null&&k[hc]))&&[Nh,Ah].concat(et(v)).forEach(function(Z){return Z(D,F,{path:u,hashId:s,parentSelectors:a})});var U=D.replace(/[A-Z]/g,function(Z){return"-".concat(Z.toLowerCase())}),V=F;!gh[D]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),D==="animationName"&&F!==null&&F!==void 0&&F._keyframe&&($(F),V=F.getName(s)),x+="".concat(U,":").concat(V,";")};var y,O=(y=k?.value)!==null&&y!==void 0?y:k;we(k)==="object"&&k!==null&&k!==void 0&&k[pc]&&Array.isArray(O)?O.forEach(function(D){A(E,D)}):A(E,O)}})}}),o?l&&(x&&(x="@layer ".concat(l.name," {").concat(x,"}")),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map(function(T){return"@layer ".concat(T,", ").concat(l.name,";")}).join(`
|
|
82
|
+
`))):x="{".concat(x,"}"),[x,m]};function gc(e,t){return gn("".concat(e.join("%")).concat(t))}function Bh(){return null}var Hh="style";function Zi(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,u=l===void 0?0:l,f=h.useContext(Rn),d=f.autoClear,p=f.mock,w=f.defaultCache,v=f.hashPriority,x=f.container,m=f.ssrInline,$=f.transformers,C=f.linters,P=f.cache,T=f.layer,j=r._tokenKey,S=[j];T&&S.push("layer"),S.push.apply(S,et(n));var E=Gi;process.env.NODE_ENV!=="production"&&p!==void 0&&(E=p==="client");var k=ya(Hh,S,function(){var z=S.join("|");if(Ih(z)){var B=Dh(z),b=te(B,2),y=b[0],O=b[1];if(y)return[y,j,O,{},s,u]}var A=t(),D=Lh(A,{hashId:o,hashPriority:v,layer:T?i:void 0,path:n.join("-"),transformers:$,linters:C}),F=te(D,2),U=F[0],V=F[1],Z=si(U),ae=gc(S,Z);return[Z,j,ae,V,s,u]},function(z,B){var b=te(z,3),y=b[2];(B||d)&&Gi&&dn(y,{mark:Pt,attachTo:x})},function(z){var B=te(z,4),b=B[0],y=B[2],O=B[3];if(E&&b!==dc){var A={mark:Pt,prepend:T?!1:"queue",attachTo:x,priority:u},D=typeof a=="function"?a():a;D&&(A.csp={nonce:D});var F=[],U=[];Object.keys(O).forEach(function(Z){Z.startsWith("@layer")?F.push(Z):U.push(Z)}),F.forEach(function(Z){Ft(si(O[Z]),"_layer-".concat(Z),Q(Q({},A),{},{prepend:!0}))});var V=Ft(b,y,A);V[tr]=P.instanceId,V.setAttribute(mn,j),process.env.NODE_ENV!=="production"&&V.setAttribute(Ff,S.join("|")),U.forEach(function(Z){Ft(si(O[Z]),"_effect-".concat(Z),A)})}}),L=te(k,3),I=L[0],_=L[1],N=L[2];return function(z){var B;return!m||E||!w?B=h.createElement(Bh,null):B=h.createElement("style",Xe({},ee(ee({},mn,_),Pt,N),{dangerouslySetInnerHTML:{__html:I}})),h.createElement(h.Fragment,null,B,z)}}var Fh="cssVar",Vh=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,f=g.useContext(Rn),d=f.cache.instanceId,p=f.container,w=s._tokenKey,v=[].concat(et(t.path),[n,u,w]),x=ya(Fh,v,function(){var m=r(),$=nc(m,n,{prefix:o,unitless:i,ignore:a,scope:u}),C=te($,2),P=C[0],T=C[1],j=gc(v,T);return[P,T,j,n]},function(m){var $=te(m,3),C=$[2];Gi&&dn(C,{mark:Pt,attachTo:p})},function(m){var $=te(m,3),C=$[1],P=$[2];if(C){var T=Ft(C,P,{mark:Pt,prepend:"queue",attachTo:p,priority:-999});T[tr]=d,T.setAttribute(mn,n)}});return x},yt=(function(){function e(t,r){vt(this,e),ee(this,"name",void 0),ee(this,"style",void 0),ee(this,"_keyframe",!0),this.name=t,this.style=r}return bt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e})();function Wh(e){return kl(e)||$l(e)||ua(e)||Ol()}function Ji(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function mc(e,t,r,n){if(!t.length)return r;var o=Wh(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=et(e):s=Q({},e),n&&r===void 0&&a.length===1?delete s[i][a[0]]:s[i]=mc(s[i],a,r,n),s}function li(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Ji(e,t.slice(0,-1))?e:mc(e,t,r,n)}function Kh(e){return we(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function js(e){return Array.isArray(e)?[]:{}}var qh=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Uh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=js(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),u=Ji(o,a),f=Array.isArray(u);if(f||Kh(u)){if(!l.has(u)){l.add(u);var d=Ji(n,a);f?n=li(n,a,[]):(!d||we(d)!=="object")&&(n=li(n,a,js(u))),qh(u).forEach(function(p){i([].concat(et(a),[p]),l)})}}else n=li(n,a,u)}i([])}),n}function vc(){}let Lt=null;function Gh(){Lt=null,zl()}let bc=vc;process.env.NODE_ENV!=="production"&&(bc=(e,t,r)=>{Kt(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Gh()});const $n=bc,yc=h.createContext({}),At=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=h.useContext(yc),r=(n,o,i)=>{if(!n)if(t===!1&&o==="deprecated"){const a=Lt;Lt||(Lt={}),Lt[e]=Lt[e]||[],Lt[e].includes(i||"")||Lt[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",Lt)}else process.env.NODE_ENV!=="production"&&$n(n,e,i)};return r.deprecated=(n,o,i,a)=>{r(n,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=vc,e},Yh=g.createContext(void 0);var Xh={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},Qh={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Zh=Q(Q({},Qh),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const xc={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Rs={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Zh),timePickerLocale:Object.assign({},xc)},lt="${label} is not a valid ${type}",_r={locale:"en",Pagination:Xh,DatePicker:Rs,TimePicker:xc,Calendar:Rs,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:lt,method:lt,array:lt,object:lt,number:lt,date:lt,boolean:lt,integer:lt,float:lt,regexp:lt,email:lt,url:lt,hex:lt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},_r.Modal);let so=[];const $s=()=>so.reduce((e,t)=>Object.assign(Object.assign({},e),t),_r.Modal);function Jh(e){if(e){const t=Object.assign({},e);return so.push(t),$s(),()=>{so=so.filter(r=>r!==t),$s()}}Object.assign({},_r.Modal)}const Sa=g.createContext(void 0),ep=(e,t)=>{const r=h.useContext(Sa),n=h.useMemo(()=>{var i;const a=_r[e],s=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),o=h.useMemo(()=>{const i=r?.locale;return r?.exist&&!i?_r.locale:i},[r]);return[n,o]},Cc="internalMark",Sc=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const i=At("LocaleProvider");process.env.NODE_ENV!=="production"&&i(n===Cc,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}h.useEffect(()=>Jh(t?.Modal),[t]);const o=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(Sa.Provider,{value:o},r)};process.env.NODE_ENV!=="production"&&(Sc.displayName="LocaleProvider");const wc={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},bn=Object.assign(Object.assign({},wc),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
83
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
84
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function tp(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:u}=e,f=t(s),d=t(n),p=t(o),w=t(i),v=t(a),x=r(l,u),m=e.colorLink||e.colorInfo,$=t(m),C=new Ye(w[1]).mix(new Ye(w[3]),50).toHexString();return Object.assign(Object.assign({},x),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:w[1],colorErrorBgHover:w[2],colorErrorBgFilledHover:C,colorErrorBgActive:w[3],colorErrorBorder:w[3],colorErrorBorderHover:w[4],colorErrorHover:w[5],colorError:w[6],colorErrorActive:w[7],colorErrorTextHover:w[8],colorErrorText:w[9],colorErrorTextActive:w[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new Ye("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const rp=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function np(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},rp(n))}const op=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ip(e){return(e+8)/e}function ap(e){const t=Array.from({length:10}).map((r,n)=>{const o=n-1,i=e*Math.pow(Math.E,o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:ip(r)}))}const sp=e=>{const t=ap(e),r=t.map(f=>f.size),n=t.map(f=>f.lineHeight),o=r[1],i=r[0],a=r[2],s=n[1],l=n[0],u=n[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:u,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function lp(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const ht=(e,t)=>new Ye(e).setA(t).toRgbString(),en=(e,t)=>new Ye(e).darken(t).toHexString(),cp=e=>{const t=un(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},up=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:ht(n,.88),colorTextSecondary:ht(n,.65),colorTextTertiary:ht(n,.45),colorTextQuaternary:ht(n,.25),colorFill:ht(n,.15),colorFillSecondary:ht(n,.06),colorFillTertiary:ht(n,.04),colorFillQuaternary:ht(n,.02),colorBgSolid:ht(n,1),colorBgSolidHover:ht(n,.75),colorBgSolidActive:ht(n,.95),colorBgLayout:en(r,4),colorBgContainer:en(r,0),colorBgElevated:en(r,0),colorBgSpotlight:ht(n,.85),colorBgBlur:"transparent",colorBorder:en(r,15),colorBorderSecondary:en(r,6)}};function dp(e){ei.pink=ei.magenta,ti.pink=ti.magenta;const t=Object.keys(wc).map(r=>{const n=e[r]===ei[r]?ti[r]:un(e[r]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),tp(e,{generateColorPalettes:cp,generateNeutralColorPalettes:up})),sp(e.fontSize)),lp(e)),op(e)),np(e))}const Ec=Ui(dp),ea={token:bn,override:{override:bn},hashed:!0},jc=g.createContext(ea),ta="ant",wa="anticon",fp=["outlined","borderless","filled","underlined"],hp=(e,t)=>t||(e?`${ta}-${e}`:ta),Wt=h.createContext({getPrefixCls:hp,iconPrefixCls:wa}),ks={};function $o(e){const t=h.useContext(Wt),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:ks,styles:ks},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}const pp=`-ant-${Date.now()}-${Math.random()}`;function gp(e,t){const r={},n=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},o=(a,s)=>{const l=new Ye(a),u=un(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=u[1],r[`${s}-color-hover`]=u[4],r[`${s}-color-active`]=u[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=u[0],r[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Ye(t.primaryColor),s=un(a.toRgbString());s.forEach((u,f)=>{r[`primary-${f+1}`]=u}),r["primary-color-deprecated-l-35"]=n(a,u=>u.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,u=>u.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,u=>u.tint(20)),r["primary-color-deprecated-t-50"]=n(a,u=>u.tint(50)),r["primary-color-deprecated-f-12"]=n(a,u=>u.setA(u.a*.12));const l=new Ye(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,u=>u.setA(u.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
85
|
+
:root {
|
|
86
|
+
${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
|
|
87
|
+
`)}
|
|
88
|
+
}
|
|
89
|
+
`.trim()}function mp(e,t){const r=gp(e,t);at()?Ft(r,`${pp}-dynamic-theme`):process.env.NODE_ENV!=="production"&&$n(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const yn=h.createContext(!1),vp=({children:e,disabled:t})=>{const r=h.useContext(yn);return h.createElement(yn.Provider,{value:t??r},e)},Pr=h.createContext(void 0),bp=({children:e,size:t})=>{const r=h.useContext(Pr);return h.createElement(Pr.Provider,{value:t||r},e)};function yp(){const e=g.useContext(yn),t=g.useContext(Pr);return{componentDisabled:e,componentSize:t}}var Rc=bt(function e(){vt(this,e)}),$c="CALC_UNIT",xp=new RegExp($c,"g");function ci(e){return typeof e=="number"?"".concat(e).concat($c):e}var Cp=(function(e){En(r,e);var t=jn(r);function r(n,o){var i;vt(this,r),i=t.call(this),ee(an(i),"result",""),ee(an(i),"unitlessCssVar",void 0),ee(an(i),"lowPriority",void 0);var a=we(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=ci(n):a==="string"&&(i.result=n),i}return bt(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(ci(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(ci(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(u){return i.result.includes(u)})&&(l=!1),this.result=this.result.replace(xp,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(Rc),Sp=(function(e){En(r,e);var t=jn(r);function r(n){var o;return vt(this,r),o=t.call(this),ee(an(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return bt(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r})(Rc),wp=function(t,r){var n=t==="css"?Cp:Sp;return function(o){return new n(o,r)}},Os=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ts(e,t,r,n){var o=Q({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(s){var l=te(s,2),u=l[0],f=l[1];if(process.env.NODE_ENV!=="production"&&Kt(!(o!=null&&o[u]),"Component Token `".concat(String(u),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(f),"` instead.")),o!=null&&o[u]||o!=null&&o[f]){var d;(d=o[f])!==null&&d!==void 0||(o[f]=o?.[u])}})}var a=Q(Q({},r),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var kc=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",ra=!0;function Ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!kc)return Object.assign.apply(Object,[{}].concat(t));ra=!1;var n={};return t.forEach(function(o){if(we(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),ra=!0,n}var _s={};function Ep(){}var jp=function(t){var r,n=t,o=Ep;return kc&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(a,s){if(ra){var l;(l=r)===null||l===void 0||l.add(s)}return a[s]}}),o=function(a,s){var l;_s[a]={global:Array.from(r),component:Q(Q({},(l=_s[a])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:o}};function Ps(e,t,r){if(typeof r=="function"){var n;return r(Ut(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Rp(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"max(".concat(n.map(function(i){return Oe(i)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"min(".concat(n.map(function(i){return Oe(i)}).join(","),")")}}}var $p=1e3*60*10,kp=(function(){function e(){vt(this,e),ee(this,"map",new Map),ee(this,"objectIDMap",new WeakMap),ee(this,"nextID",0),ee(this,"lastAccessBeat",new Map),ee(this,"accessBeat",0)}return bt(e,[{key:"set",value:function(r,n){this.clear();var o=this.getCompositeKey(r);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(r){var n=this,o=r.map(function(i){return i&&we(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(we(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,i){n-o>$p&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e})(),Ns=new kp;function Op(e,t){return g.useMemo(function(){var r=Ns.get(t);if(r)return r;var n=e();return Ns.set(t,n),n},t)}var Tp=function(){return{}};function _p(e){var t=e.useCSP,r=t===void 0?Tp:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(p,w,v,x){var m=Array.isArray(p)?p[0]:p;function $(k){return"".concat(String(m)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var C=x?.unitless||{},P=typeof s=="function"?s(p):{},T=Q(Q({},P),{},ee({},$("zIndexPopup"),!0));Object.keys(C).forEach(function(k){T[$(k)]=C[k]});var j=Q(Q({},x),{},{unitless:T,prefixToken:$}),S=f(p,w,v,j),E=u(m,v,j);return function(k){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,I=S(k,L),_=te(I,2),N=_[1],z=E(L),B=te(z,2),b=B[0],y=B[1];return[b,N,y]}}function u(p,w,v){var x=v.unitless,m=v.injectStyle,$=m===void 0?!0:m,C=v.prefixToken,P=v.ignore,T=function(E){var k=E.rootCls,L=E.cssVar,I=L===void 0?{}:L,_=n(),N=_.realToken;return Vh({path:[p],prefix:I.prefix,key:I.key,unitless:x,ignore:P,token:N,scope:k},function(){var z=Ps(p,N,w),B=Ts(p,N,z,{deprecatedTokens:v?.deprecatedTokens});return Object.keys(z).forEach(function(b){B[C(b)]=B[b],delete B[b]}),B}),null},j=function(E){var k=n(),L=k.cssVar;return[function(I){return $&&L?g.createElement(g.Fragment,null,g.createElement(T,{rootCls:E,cssVar:L,component:p}),I):I},L?.key]};return j}function f(p,w,v){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(p)?p:[p,p],$=te(m,1),C=$[0],P=m.join("-"),T=e.layer||{name:"antd"};return function(j){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,E=n(),k=E.theme,L=E.realToken,I=E.hashId,_=E.token,N=E.cssVar,z=o(),B=z.rootPrefixCls,b=z.iconPrefixCls,y=r(),O=N?"css":"js",A=Op(function(){var ae=new Set;return N&&Object.keys(x.unitless||{}).forEach(function(me){ae.add(no(me,N.prefix)),ae.add(no(me,Os(C,N.prefix)))}),wp(O,ae)},[O,C,N?.prefix]),D=Rp(O),F=D.max,U=D.min,V={theme:k,token:_,hashId:I,nonce:function(){return y.nonce},clientOnly:x.clientOnly,layer:T,order:x.order||-999};typeof i=="function"&&Zi(Q(Q({},V),{},{clientOnly:!1,path:["Shared",B]}),function(){return i(_,{prefix:{rootPrefixCls:B,iconPrefixCls:b},csp:y})});var Z=Zi(Q(Q({},V),{},{path:[P,j,b]}),function(){if(x.injectStyle===!1)return[];var ae=jp(_),me=ae.token,ue=ae.flush,be=Ps(C,L,v),R=".".concat(j),H=Ts(C,L,be,{deprecatedTokens:x.deprecatedTokens});N&&be&&we(be)==="object"&&Object.keys(be).forEach(function(Y){be[Y]="var(".concat(no(Y,Os(C,N.prefix)),")")});var K=Ut(me,{componentCls:R,prefixCls:j,iconCls:".".concat(b),antCls:".".concat(B),calc:A,max:F,min:U},N?be:H),W=w(K,{hashId:I,prefixCls:j,rootPrefixCls:B,iconPrefixCls:b});ue(C,H);var q=typeof a=="function"?a(K,j,S,x.resetFont):null;return[x.resetStyle===!1?null:q,W]});return[Z,I]}}function d(p,w,v){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=f(p,w,v,Q({resetStyle:!1,order:-998},x)),$=function(P){var T=P.prefixCls,j=P.rootCls,S=j===void 0?T:j;return m(T,S),null};return process.env.NODE_ENV!=="production"&&($.displayName="SubStyle_".concat(String(Array.isArray(p)?p.join("."):p))),$}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:f}}const bo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Pp="5.27.1";function ui(e){return e>=0&&e<=255}function Gn(e,t){const{r,g:n,b:o,a:i}=new Ye(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Ye(t).toRgb();for(let u=.01;u<=1;u+=.01){const f=Math.round((r-a*(1-u))/u),d=Math.round((n-s*(1-u))/u),p=Math.round((o-l*(1-u))/u);if(ui(f)&&ui(d)&&ui(p))return new Ye({r:f,g:d,b:p,a:Math.round(u*100)/100}).toRgbString()}return new Ye({r,g:n,b:o,a:1}).toRgbString()}var Np=exports&&exports.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Oc(e){const{override:t}=e,r=Np(e,["override"]),n=Object.assign({},t);Object.keys(bn).forEach(p=>{delete n[p]});const o=Object.assign(Object.assign({},r),n),i=480,a=576,s=768,l=992,u=1200,f=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Gn(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Gn(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Gn(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Gn(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
90
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
91
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
92
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
93
|
+
`,boxShadowSecondary:`
|
|
94
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
95
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
96
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
97
|
+
`,boxShadowTertiary:`
|
|
98
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
99
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
100
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
101
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
102
|
+
0 1px 2px -2px ${new Ye("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
103
|
+
0 3px 6px 0 ${new Ye("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
104
|
+
0 5px 12px 4px ${new Ye("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
105
|
+
`,boxShadowDrawerRight:`
|
|
106
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
107
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
108
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
109
|
+
`,boxShadowDrawerLeft:`
|
|
110
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
111
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
112
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
113
|
+
`,boxShadowDrawerUp:`
|
|
114
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
115
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
116
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
117
|
+
`,boxShadowDrawerDown:`
|
|
118
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
119
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
120
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
121
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var As=exports&&exports.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Tc={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Ap={motionBase:!0,motionUnit:!0},Mp={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},_c=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,i=As(t,["override"]);let a=Object.assign(Object.assign({},n),{override:o});return a=Oc(a),i&&Object.entries(i).forEach(([s,l])=>{const{theme:u}=l,f=As(l,["theme"]);let d=f;u&&(d=_c(Object.assign(Object.assign({},a),f),{override:f},u)),a[s]=d}),a};function Dr(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=g.useContext(jc),i=`${Pp}-${t||""}`,a=r||Ec,[s,l,u]=ph(a,[bn,e],{salt:i,override:n,getComputedToken:_c,formatToken:Oc,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Tc,ignore:Ap,preserve:Mp}});return[a,u,t?l:"",s,o]}const Ea=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Ip=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Dp=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),zp=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Lp=(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},Bp=(e,t)=>({outline:`${Oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Hp=(e,t)=>({"&:focus-visible":Bp(e,t)}),Pc=e=>({[`.${e}`]:Object.assign(Object.assign({},Ip()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Nc=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Hp(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:kn}=_p({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=g.useContext(Wt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Dr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=g.useContext(Wt);return e??{}},getResetStyles:(e,t)=>{var r;const n=zp(e);return[n,{"&":n},Pc((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:wa)]},getCommonStyle:Lp,getCompUnitless:()=>Tc});function Fp(e,t){return bo.reduce((r,n)=>{const o=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const Vp=(e,t)=>{const[r,n]=Dr();return Zi({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>Pc(e))},Wp=Object.assign({},h),{useId:Ms}=Wp,Kp=()=>"",qp=typeof Ms>"u"?Kp:Ms;function Up(e,t,r){var n,o;const i=At("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},ea),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:ea.hashed,cssVar:t?.cssVar}):t,l=qp();if(process.env.NODE_ENV!=="production"){const u=a.cssVar||s.cssVar,f=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||l);process.env.NODE_ENV!=="production"&&i(!u||f,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return pa(()=>{var u,f;if(!e)return t;const d=Object.assign({},s.components);Object.keys(e.components||{}).forEach(v=>{d[v]=Object.assign(Object.assign({},d[v]),e.components[v])});const p=`css-var-${l.replace(/:/g,"")}`,w=((u=a.cssVar)!==null&&u!==void 0?u:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((f=a.cssVar)===null||f===void 0?void 0:f.key)||p});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:d,cssVar:w})},[a,s],(u,f)=>u.some((d,p)=>{const w=f[p];return!Lf(d,w,!0)}))}var Gp=["children"],Ac=h.createContext({});function Yp(e){var t=e.children,r=Rt(e,Gp);return h.createElement(Ac.Provider,{value:r},t)}var Xp=(function(e){En(r,e);var t=jn(r);function r(){return vt(this,r),t.apply(this,arguments)}return bt(r,[{key:"render",value:function(){return this.props.children}}]),r})(h.Component);function Qp(e){var t=h.useReducer(function(s){return s+1},0),r=te(t,2),n=r[1],o=h.useRef(e),i=ut(function(){return o.current}),a=ut(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[i,a]}var er="none",Yn="appear",Xn="enter",Qn="leave",Is="none",Et="prepare",wr="start",Er="active",ja="end",Mc="prepared";function Ds(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Zp(e,t){var r={animationend:Ds("Animation","AnimationEnd"),transitionend:Ds("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Jp=Zp(at(),typeof window<"u"?window:{}),Ic={};if(at()){var eg=document.createElement("div");Ic=eg.style}var Zn={};function Dc(e){if(Zn[e])return Zn[e];var t=Jp[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var i=r[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Ic)return Zn[e]=t[i],Zn[e]}return""}var zc=Dc("animationend"),Lc=Dc("transitionend"),tg=!!(zc&&Lc),zs=zc||"animationend",Ls=Lc||"transitionend";function Bs(e,t){if(!e)return null;if(we(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const rg=(function(e){var t=g.useRef();function r(o){o&&(o.removeEventListener(Ls,e),o.removeEventListener(zs,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(Ls,e),o.addEventListener(zs,e),t.current=o)}return h.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var Bc=at()?g.useLayoutEffect:g.useEffect,Hc=function(t){return+setTimeout(t,16)},Fc=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Hc=function(t){return window.requestAnimationFrame(t)},Fc=function(t){return window.cancelAnimationFrame(t)});var Hs=0,ko=new Map;function Vc(e){ko.delete(e)}var Nr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Hs+=1;var n=Hs;function o(i){if(i===0)Vc(n),t();else{var a=Hc(function(){o(i-1)});ko.set(n,a)}}return o(r),n};Nr.cancel=function(e){var t=ko.get(e);return Vc(e),Fc(t)};process.env.NODE_ENV!=="production"&&(Nr.ids=function(){return ko});const ng=(function(){var e=h.useRef(null);function t(){Nr.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Nr(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return h.useEffect(function(){return function(){t()}},[]),[r,t]});var og=[Et,wr,Er,ja],ig=[Et,Mc],Wc=!1,ag=!0;function Kc(e){return e===Er||e===ja}const sg=(function(e,t,r){var n=pn(Is),o=te(n,2),i=o[0],a=o[1],s=ng(),l=te(s,2),u=l[0],f=l[1];function d(){a(Et,!0)}var p=t?ig:og;return Bc(function(){if(i!==Is&&i!==ja){var w=p.indexOf(i),v=p[w+1],x=r(i);x===Wc?a(v,!0):v&&u(function(m){function $(){m.isCanceled()||a(v,!0)}x===!0?$():Promise.resolve(x).then($)})}},[e,i]),h.useEffect(function(){return function(){f()}},[]),[d,i]});function lg(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,u=l===void 0?!0:l,f=n.motionDeadline,d=n.motionLeaveImmediately,p=n.onAppearPrepare,w=n.onEnterPrepare,v=n.onLeavePrepare,x=n.onAppearStart,m=n.onEnterStart,$=n.onLeaveStart,C=n.onAppearActive,P=n.onEnterActive,T=n.onLeaveActive,j=n.onAppearEnd,S=n.onEnterEnd,E=n.onLeaveEnd,k=n.onVisibleChanged,L=pn(),I=te(L,2),_=I[0],N=I[1],z=Qp(er),B=te(z,2),b=B[0],y=B[1],O=pn(null),A=te(O,2),D=A[0],F=A[1],U=b(),V=g.useRef(!1),Z=g.useRef(null);function ae(){return r()}var me=g.useRef(!1);function ue(){y(er),F(null,!0)}var be=ut(function(ve){var Ce=b();if(Ce!==er){var de=ae();if(!(ve&&!ve.deadline&&ve.target!==de)){var re=me.current,ye;Ce===Yn&&re?ye=j?.(de,ve):Ce===Xn&&re?ye=S?.(de,ve):Ce===Qn&&re&&(ye=E?.(de,ve)),re&&ye!==!1&&ue()}}}),R=rg(be),H=te(R,1),K=H[0],W=function(Ce){switch(Ce){case Yn:return ee(ee(ee({},Et,p),wr,x),Er,C);case Xn:return ee(ee(ee({},Et,w),wr,m),Er,P);case Qn:return ee(ee(ee({},Et,v),wr,$),Er,T);default:return{}}},q=h.useMemo(function(){return W(U)},[U]),Y=sg(U,!e,function(ve){if(ve===Et){var Ce=q[Et];return Ce?Ce(ae()):Wc}if(X in q){var de;F(((de=q[X])===null||de===void 0?void 0:de.call(q,ae(),null))||null)}return X===Er&&U!==er&&(K(ae()),f>0&&(clearTimeout(Z.current),Z.current=setTimeout(function(){be({deadline:!0})},f))),X===Mc&&ue(),ag}),G=te(Y,2),J=G[0],X=G[1],ne=Kc(X);me.current=ne;var se=g.useRef(null);Bc(function(){if(!(V.current&&se.current===t)){N(t);var ve=V.current;V.current=!0;var Ce;!ve&&t&&s&&(Ce=Yn),ve&&t&&i&&(Ce=Xn),(ve&&!t&&u||!ve&&d&&!t&&u)&&(Ce=Qn);var de=W(Ce);Ce&&(e||de[Et])?(y(Ce),J()):y(er),se.current=t}},[t]),g.useEffect(function(){(U===Yn&&!s||U===Xn&&!i||U===Qn&&!u)&&y(er)},[s,i,u]),g.useEffect(function(){return function(){V.current=!1,clearTimeout(Z.current)}},[]);var le=h.useRef(!1);g.useEffect(function(){_&&(le.current=!0),_!==void 0&&U===er&&((le.current||_)&&k?.(_),le.current=!0)},[_,U]);var Se=D;return q[Et]&&X===wr&&(Se=Q({transition:"none"},Se)),[U,X,Se,_??t]}function cg(e){var t=e;we(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=h.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,u=l===void 0?!0:l,f=o.forceRender,d=o.children,p=o.motionName,w=o.leavedClassName,v=o.eventProps,x=h.useContext(Ac),m=x.motion,$=r(o,m),C=g.useRef(),P=g.useRef();function T(){try{return C.current instanceof HTMLElement?C.current:ro(P.current)}catch{return null}}var j=lg($,s,T,o),S=te(j,4),E=S[0],k=S[1],L=S[2],I=S[3],_=h.useRef(I);I&&(_.current=!0);var N=h.useCallback(function(A){C.current=A,ga(i,A)},[i]),z,B=Q(Q({},v),{},{visible:s});if(!d)z=null;else if(E===er)I?z=d(Q({},B),N):!u&&_.current&&w?z=d(Q(Q({},B),{},{className:w}),N):f||!u&&!w?z=d(Q(Q({},B),{},{style:{display:"none"}}),N):z=null;else{var b;k===Et?b="prepare":Kc(k)?b="active":k===wr&&(b="start");var y=Bs(p,"".concat(E,"-").concat(b));z=d(Q(Q({},B),{},{className:pe(Bs(p,E),ee(ee({},y,y&&b),p,typeof p=="string")),style:L}),N)}if(h.isValidElement(z)&&wo(z)){var O=va(z);O||(z=h.cloneElement(z,{ref:N}))}return h.createElement(Xp,{ref:P},z)});return n.displayName="CSSMotion",n}const qc=cg(tg),na=h.createContext(!0);process.env.NODE_ENV!=="production"&&(na.displayName="MotionCacheContext");function ug(e){const t=h.useContext(na),{children:r}=e,[,n]=Dr(),{motion:o}=n,i=h.useRef(!1);return i.current||(i.current=t!==o),i.current?h.createElement(na.Provider,{value:o},h.createElement(Yp,{motion:o},r)):r}const Uc=h.memo(({dropdownMatchSelectWidth:e})=>(At("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Uc.displayName="PropWarning");const dg=process.env.NODE_ENV!=="production"?Uc:()=>null;var fg=exports&&exports.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let oa=!1;process.env.NODE_ENV;const hg=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Gc;function pg(){return Gc||ta}function gg(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const mg=e=>{const{prefixCls:t,theme:r}=e;t!==void 0&&(Gc=t),r&&gg(r)&&(process.env.NODE_ENV!=="production"&&$n(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),mp(pg(),r))},vg=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:u,space:f,splitter:d,virtual:p,dropdownMatchSelectWidth:w,popupMatchSelectWidth:v,popupOverflow:x,legacyLocale:m,parentContext:$,iconPrefixCls:C,theme:P,componentDisabled:T,segmented:j,statistic:S,spin:E,calendar:k,carousel:L,cascader:I,collapse:_,typography:N,checkbox:z,descriptions:B,divider:b,drawer:y,skeleton:O,steps:A,image:D,layout:F,list:U,mentions:V,modal:Z,progress:ae,result:me,slider:ue,breadcrumb:be,menu:R,pagination:H,input:K,textArea:W,empty:q,badge:Y,radio:G,rate:J,switch:X,transfer:ne,avatar:se,message:le,tag:Se,table:ve,card:Ce,tabs:de,timeline:re,timePicker:ye,upload:Ee,notification:Ue,tree:Pe,colorPicker:Ne,datePicker:xe,rangePicker:Ae,flex:ze,wave:Te,dropdown:ge,warning:Me,tour:ie,tooltip:fe,popover:Fe,popconfirm:Mt,floatButton:nr,floatButtonGroup:hr,variant:Lr,inputNumber:pr,treeSelect:xt}=e,tt=h.useCallback((_e,We)=>{const{prefixCls:it}=e;if(We)return We;const nt=it||$.getPrefixCls("");return _e?`${nt}-${_e}`:nt},[$.getPrefixCls,e.prefixCls]),Ve=C||$.iconPrefixCls||wa,It=r||$.csp;Vp(Ve,It);const rt=Up(P,$.theme,{prefixCls:tt("")});process.env.NODE_ENV!=="production"&&(oa=oa||!!rt);const ke={csp:It,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:s||m,direction:u,space:f,splitter:d,virtual:p,popupMatchSelectWidth:v??w,popupOverflow:x,getPrefixCls:tt,iconPrefixCls:Ve,theme:rt,segmented:j,statistic:S,spin:E,calendar:k,carousel:L,cascader:I,collapse:_,typography:N,checkbox:z,descriptions:B,divider:b,drawer:y,skeleton:O,steps:A,image:D,input:K,textArea:W,layout:F,list:U,mentions:V,modal:Z,progress:ae,result:me,slider:ue,breadcrumb:be,menu:R,pagination:H,empty:q,badge:Y,radio:G,rate:J,switch:X,transfer:ne,avatar:se,message:le,tag:Se,table:ve,card:Ce,tabs:de,timeline:re,timePicker:ye,upload:Ee,notification:Ue,tree:Pe,colorPicker:Ne,datePicker:xe,rangePicker:Ae,flex:ze,wave:Te,dropdown:ge,warning:Me,tour:ie,tooltip:fe,popover:Fe,popconfirm:Mt,floatButton:nr,floatButtonGroup:hr,variant:Lr,inputNumber:pr,treeSelect:xt};process.env.NODE_ENV!=="production"&&At("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const je=Object.assign({},$);Object.keys(ke).forEach(_e=>{ke[_e]!==void 0&&(je[_e]=ke[_e])}),hg.forEach(_e=>{const We=e[_e];We&&(je[_e]=We)}),typeof n<"u"&&(je.button=Object.assign({autoInsertSpace:n},je.button));const Qe=pa(()=>je,je,(_e,We)=>{const it=Object.keys(_e),nt=Object.keys(We);return it.length!==nt.length||it.some(kt=>_e[kt]!==We[kt])}),{layer:$t}=h.useContext(Rn),st=h.useMemo(()=>({prefixCls:Ve,csp:It,layer:$t?"antd":void 0}),[Ve,It,$t]);let Be=h.createElement(h.Fragment,null,h.createElement(dg,{dropdownMatchSelectWidth:w}),t);const Gt=h.useMemo(()=>{var _e,We,it,nt;return Uh(((_e=_r.Form)===null||_e===void 0?void 0:_e.defaultValidateMessages)||{},((it=(We=Qe.locale)===null||We===void 0?void 0:We.Form)===null||it===void 0?void 0:it.defaultValidateMessages)||{},((nt=Qe.form)===null||nt===void 0?void 0:nt.validateMessages)||{},a?.validateMessages||{})},[Qe,a?.validateMessages]);Object.keys(Gt).length>0&&(Be=h.createElement(Yh.Provider,{value:Gt},Be)),s&&(Be=h.createElement(Sc,{locale:s,_ANT_MARK__:Cc},Be)),Be=h.createElement(da.Provider,{value:st},Be),l&&(Be=h.createElement(bp,{size:l},Be)),Be=h.createElement(ug,null,Be);const Dt=h.useMemo(()=>{const _e=rt||{},{algorithm:We,token:it,components:nt,cssVar:kt}=_e,gr=fg(_e,["algorithm","token","components","cssVar"]),Ct=We&&(!Array.isArray(We)||We.length>0)?Ui(We):Ec,dt={};Object.entries(nt||{}).forEach(([St,mr])=>{const Ie=Object.assign({},mr);"algorithm"in Ie&&(Ie.algorithm===!0?Ie.theme=Ct:(Array.isArray(Ie.algorithm)||typeof Ie.algorithm=="function")&&(Ie.theme=Ui(Ie.algorithm)),delete Ie.algorithm),dt[St]=Ie});const Ot=Object.assign(Object.assign({},bn),it);return Object.assign(Object.assign({},gr),{theme:Ct,token:Ot,components:dt,override:Object.assign({override:Ot},dt),cssVar:kt})},[rt]);return P&&(Be=h.createElement(jc.Provider,{value:Dt},Be)),Qe.warning&&(Be=h.createElement(yc.Provider,{value:Qe.warning},Be)),T!==void 0&&(Be=h.createElement(vp,{disabled:T},Be)),h.createElement(Wt.Provider,{value:Qe},Be)},zr=e=>{const t=h.useContext(Wt),r=h.useContext(Sa);return h.createElement(vg,Object.assign({parentContext:t,legacyLocale:r},e))};zr.ConfigContext=Wt;zr.SizeContext=Pr;zr.config=mg;zr.useConfig=yp;Object.defineProperty(zr,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&$n(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Pr)});process.env.NODE_ENV!=="production"&&(zr.displayName="ConfigProvider");function Yc(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return h.createElement("div",{className:pe("".concat(r,"-content"),a),style:s},h.createElement("div",{className:pe("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var Xc=h.createContext(null),Fs=[];function bg(e,t){var r=h.useState(function(){if(!at())return null;var v=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&v.setAttribute("data-debug",t),v}),n=te(r,1),o=n[0],i=h.useRef(!1),a=h.useContext(Xc),s=h.useState(Fs),l=te(s,2),u=l[0],f=l[1],d=a||(i.current?void 0:function(v){f(function(x){var m=[v].concat(et(x));return m})});function p(){o.parentElement||document.body.appendChild(o),i.current=!0}function w(){var v;(v=o.parentElement)===null||v===void 0||v.removeChild(o),i.current=!1}return Le(function(){return e?a?a(p):p():w(),w},[e]),Le(function(){u.length&&(u.forEach(function(v){return v()}),f(Fs))},[u]),[o,d]}function yg(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var f=l?"width: ".concat(s.width,";"):"",d=u?"height: ".concat(s.height,";"):"";Ft(`
|
|
122
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
123
|
+
`).concat(f,`
|
|
124
|
+
`).concat(d,`
|
|
125
|
+
}`),t)}catch(v){console.error(v),o=l,i=u}}document.body.appendChild(r);var p=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,w=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),dn(t),{width:p,height:w}}function xg(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:yg(e)}function Cg(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Sg="rc-util-locker-".concat(Date.now()),Vs=0;function wg(e){var t=!!e,r=h.useState(function(){return Vs+=1,"".concat(Sg,"_").concat(Vs)}),n=te(r,1),o=n[0];Le(function(){if(t){var i=xg(document.body).width,a=Cg();Ft(`
|
|
126
|
+
html body {
|
|
127
|
+
overflow-y: hidden;
|
|
128
|
+
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
129
|
+
}`),o)}else dn(o);return function(){dn(o)}},[t,o])}var Eg=!1;function jg(e){return Eg}var Ws=function(t){return t===!1?!1:!at()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Ra=h.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,u=h.useState(r),f=te(u,2),d=f[0],p=f[1],w=d||r;process.env.NODE_ENV!=="production"&&Kt(at()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),h.useEffect(function(){(s||r)&&p(r)},[r,s]);var v=h.useState(function(){return Ws(o)}),x=te(v,2),m=x[0],$=x[1];h.useEffect(function(){var N=Ws(o);$(N??null)});var C=bg(w&&!m,i),P=te(C,2),T=P[0],j=P[1],S=m??T;wg(n&&r&&at()&&(S===T||S===document.body));var E=null;if(l&&wo(l)&&t){var k=l;E=k.ref}var L=ma(E,t);if(!w||!at()||m===void 0)return null;var I=S===!1||jg(),_=l;return t&&(_=h.cloneElement(l,{ref:L})),h.createElement(Xc.Provider,{value:j},I?_:lo.createPortal(_,S))});process.env.NODE_ENV!=="production"&&(Ra.displayName="Portal");function Rg(){var e=Q({},h);return e.useId}var Ks=0,qs=Rg();const Qc=qs?function(t){var r=qs();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=h.useState("ssr-id"),n=te(r,2),o=n[0],i=n[1];return h.useEffect(function(){var a=Ks;Ks+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)},$g=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))});function kg(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},a=i.className,s=i.content,l=o.x,u=l===void 0?0:l,f=o.y,d=f===void 0?0:f,p=h.useRef();if(!r||!r.points)return null;var w={position:"absolute"};if(r.autoArrow!==!1){var v=r.points[0],x=r.points[1],m=v[0],$=v[1],C=x[0],P=x[1];m===C||!["t","b"].includes(m)?w.top=d:m==="t"?w.top=0:w.bottom=0,$===P||!["l","r"].includes($)?w.left=u:$==="l"?w.left=0:w.right=0}return h.createElement("div",{ref:p,className:pe("".concat(t,"-arrow"),a),style:w},s)}function Og(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(qc,Xe({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return h.createElement("div",{style:{zIndex:n},className:pe("".concat(t,"-mask"),s)})}):null}var Zc=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Zc.displayName="PopupContent");var Jc=h.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,f=e.fresh,d=e.onClick,p=e.mask,w=e.arrow,v=e.arrowPos,x=e.align,m=e.motion,$=e.maskMotion,C=e.forceRender,P=e.getPopupContainer,T=e.autoDestroy,j=e.portal,S=e.zIndex,E=e.onMouseEnter,k=e.onMouseLeave,L=e.onPointerEnter,I=e.onPointerDownCapture,_=e.ready,N=e.offsetX,z=e.offsetY,B=e.offsetR,b=e.offsetB,y=e.onAlign,O=e.onPrepare,A=e.stretch,D=e.targetWidth,F=e.targetHeight,U=typeof r=="function"?r():r,V=l||u,Z=P?.length>0,ae=h.useState(!P||!Z),me=te(ae,2),ue=me[0],be=me[1];if(Le(function(){!ue&&Z&&a&&be(!0)},[ue,Z,a]),!ue)return null;var R="auto",H={left:"-1000vw",top:"-1000vh",right:R,bottom:R};if(_||!l){var K,W=x.points,q=x.dynamicInset||((K=x._experimental)===null||K===void 0?void 0:K.dynamicInset),Y=q&&W[0][1]==="r",G=q&&W[0][0]==="b";Y?(H.right=B,H.left=R):(H.left=N,H.right=R),G?(H.bottom=b,H.top=R):(H.top=z,H.bottom=R)}var J={};return A&&(A.includes("height")&&F?J.height=F:A.includes("minHeight")&&F&&(J.minHeight=F),A.includes("width")&&D?J.width=D:A.includes("minWidth")&&D&&(J.minWidth=D)),l||(J.pointerEvents="none"),h.createElement(j,{open:C||V,getContainer:P&&function(){return P(a)},autoDestroy:T},h.createElement(Og,{prefixCls:o,open:l,zIndex:S,mask:p,motion:$}),h.createElement(Mr,{onResize:y,disabled:!l},function(X){return h.createElement(qc,Xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:O,onEnterPrepare:O,visible:l,onVisibleChanged:function(se){var le;m==null||(le=m.onVisibleChanged)===null||le===void 0||le.call(m,se),s(se)}}),function(ne,se){var le=ne.className,Se=ne.style,ve=pe(o,le,n);return h.createElement("div",{ref:wn(X,t,se),className:ve,style:Q(Q(Q(Q({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},H),J),Se),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:E,onMouseLeave:k,onPointerEnter:L,onClick:d,onPointerDownCapture:I},w&&h.createElement(kg,{prefixCls:o,arrow:w,arrowPos:v,align:x}),h.createElement(Zc,{cache:!l&&!f},U))})}))});process.env.NODE_ENV!=="production"&&(Jc.displayName="Popup");var eu=h.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=wo(r),i=h.useCallback(function(s){ga(t,n?n(s):s)},[n]),a=ma(i,va(r));return o?h.cloneElement(r,{ref:a}):r});process.env.NODE_ENV!=="production"&&(eu.displayName="TriggerWrapper");var Us=h.createContext(null);function Gs(e){return e?Array.isArray(e)?e:[e]:[]}function Tg(e,t,r,n){return h.useMemo(function(){var o=Gs(r??t),i=Gs(n??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}const _g=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1});function Pg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Ng(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(Pg((s=e[l])===null||s===void 0?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}function Ys(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function On(e){return e.ownerDocument.defaultView}function ia(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=On(r).getComputedStyle(r),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function xn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function tn(e){return xn(parseFloat(e),0)}function Xs(e,t){var r=Q({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=On(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,u=o.borderLeftWidth,f=o.borderRightWidth,d=n.getBoundingClientRect(),p=n.offsetHeight,w=n.clientHeight,v=n.offsetWidth,x=n.clientWidth,m=tn(s),$=tn(l),C=tn(u),P=tn(f),T=xn(Math.round(d.width/v*1e3)/1e3),j=xn(Math.round(d.height/p*1e3)/1e3),S=(v-x-C-P)*T,E=(p-w-m-$)*j,k=m*j,L=$*j,I=C*T,_=P*T,N=0,z=0;if(i==="clip"){var B=tn(a);N=B*T,z=B*j}var b=d.x+I-N,y=d.y+k-z,O=b+d.width+2*N-I-_-S,A=y+d.height+2*z-k-L-E;r.left=Math.max(r.left,b),r.top=Math.max(r.top,y),r.right=Math.min(r.right,O),r.bottom=Math.min(r.bottom,A)}}),r}function Qs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function Zs(e,t){var r=t||[],n=te(r,2),o=n[0],i=n[1];return[Qs(e.width,o),Qs(e.height,i)]}function Js(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function xr(e,t){var r=t[0],n=t[1],o,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Jt(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function Ag(e,t,r,n,o,i,a){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=te(s,2),u=l[0],f=l[1],d=h.useRef(0),p=h.useMemo(function(){return t?ia(t):[]},[t]),w=h.useRef({}),v=function(){w.current={}};e||v();var x=ut(function(){if(t&&r&&e){let ft=function(Wr,zt){var Zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye,Kr=V.x+Wr,Bn=V.y+zt,Ho=Kr+G,Fo=Bn+Y,Vo=Math.max(Kr,Zt.left),oe=Math.max(Bn,Zt.top),he=Math.min(Ho,Zt.right),De=Math.min(Fo,Zt.bottom);return Math.max(0,(he-Vo)*(De-oe))},br=function(){Ct=V.y+je,dt=Ct+Y,Ot=V.x+ke,St=Ot+G};var C,P,T,j,S=t,E=S.ownerDocument,k=On(S),L=k.getComputedStyle(S),I=L.position,_=S.style.left,N=S.style.top,z=S.style.right,B=S.style.bottom,b=S.style.overflow,y=Q(Q({},o[n]),i),O=E.createElement("div");(C=S.parentElement)===null||C===void 0||C.appendChild(O),O.style.left="".concat(S.offsetLeft,"px"),O.style.top="".concat(S.offsetTop,"px"),O.style.position=I,O.style.height="".concat(S.offsetHeight,"px"),O.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var A;if(Array.isArray(r))A={x:r[0],y:r[1],width:0,height:0};else{var D,F,U=r.getBoundingClientRect();U.x=(D=U.x)!==null&&D!==void 0?D:U.left,U.y=(F=U.y)!==null&&F!==void 0?F:U.top,A={x:U.x,y:U.y,width:U.width,height:U.height}}var V=S.getBoundingClientRect(),Z=k.getComputedStyle(S),ae=Z.height,me=Z.width;V.x=(P=V.x)!==null&&P!==void 0?P:V.left,V.y=(T=V.y)!==null&&T!==void 0?T:V.top;var ue=E.documentElement,be=ue.clientWidth,R=ue.clientHeight,H=ue.scrollWidth,K=ue.scrollHeight,W=ue.scrollTop,q=ue.scrollLeft,Y=V.height,G=V.width,J=A.height,X=A.width,ne={left:0,top:0,right:be,bottom:R},se={left:-q,top:-W,right:H-q,bottom:K-W},le=y.htmlRegion,Se="visible",ve="visibleFirst";le!=="scroll"&&le!==ve&&(le=Se);var Ce=le===ve,de=Xs(se,p),re=Xs(ne,p),ye=le===Se?re:de,Ee=Ce?re:ye;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var Ue=S.getBoundingClientRect();S.style.left=_,S.style.top=N,S.style.right=z,S.style.bottom=B,S.style.overflow=b,(j=S.parentElement)===null||j===void 0||j.removeChild(O);var Pe=xn(Math.round(G/parseFloat(me)*1e3)/1e3),Ne=xn(Math.round(Y/parseFloat(ae)*1e3)/1e3);if(Pe===0||Ne===0||hn(r)&&!_g(r))return;var xe=y.offset,Ae=y.targetOffset,ze=Zs(V,xe),Te=te(ze,2),ge=Te[0],Me=Te[1],ie=Zs(A,Ae),fe=te(ie,2),Fe=fe[0],Mt=fe[1];A.x-=Fe,A.y-=Mt;var nr=y.points||[],hr=te(nr,2),Lr=hr[0],pr=hr[1],xt=Js(pr),tt=Js(Lr),Ve=xr(A,xt),It=xr(V,tt),rt=Q({},y),ke=Ve.x-It.x+ge,je=Ve.y-It.y+Me,Qe=ft(ke,je),$t=ft(ke,je,re),st=xr(A,["t","l"]),Be=xr(V,["t","l"]),Gt=xr(A,["b","r"]),Dt=xr(V,["b","r"]),_e=y.overflow||{},We=_e.adjustX,it=_e.adjustY,nt=_e.shiftX,kt=_e.shiftY,gr=function(zt){return typeof zt=="boolean"?zt:zt>=0},Ct,dt,Ot,St;br();var mr=gr(it),Ie=tt[0]===xt[0];if(mr&&tt[0]==="t"&&(dt>Ee.bottom||w.current.bt)){var or=je;Ie?or-=Y-J:or=st.y-Dt.y-Me;var _n=ft(ke,or),To=ft(ke,or,re);_n>Qe||_n===Qe&&(!Ce||To>=$t)?(w.current.bt=!0,je=or,Me=-Me,rt.points=[Jt(tt,0),Jt(xt,0)]):w.current.bt=!1}if(mr&&tt[0]==="b"&&(Ct<Ee.top||w.current.tb)){var ir=je;Ie?ir+=Y-J:ir=Gt.y-Be.y-Me;var Pn=ft(ke,ir),_o=ft(ke,ir,re);Pn>Qe||Pn===Qe&&(!Ce||_o>=$t)?(w.current.tb=!0,je=ir,Me=-Me,rt.points=[Jt(tt,0),Jt(xt,0)]):w.current.tb=!1}var Nn=gr(We),An=tt[1]===xt[1];if(Nn&&tt[1]==="l"&&(St>Ee.right||w.current.rl)){var ar=ke;An?ar-=G-X:ar=st.x-Dt.x-ge;var sr=ft(ar,je),Br=ft(ar,je,re);sr>Qe||sr===Qe&&(!Ce||Br>=$t)?(w.current.rl=!0,ke=ar,ge=-ge,rt.points=[Jt(tt,1),Jt(xt,1)]):w.current.rl=!1}if(Nn&&tt[1]==="r"&&(Ot<Ee.left||w.current.lr)){var lr=ke;An?lr+=G-X:lr=Gt.x-Be.x-ge;var Hr=ft(lr,je),vr=ft(lr,je,re);Hr>Qe||Hr===Qe&&(!Ce||vr>=$t)?(w.current.lr=!0,ke=lr,ge=-ge,rt.points=[Jt(tt,1),Jt(xt,1)]):w.current.lr=!1}br();var wt=nt===!0?0:nt;typeof wt=="number"&&(Ot<re.left&&(ke-=Ot-re.left-ge,A.x+X<re.left+wt&&(ke+=A.x-re.left+X-wt)),St>re.right&&(ke-=St-re.right-ge,A.x>re.right-wt&&(ke+=A.x-re.right+wt)));var Yt=kt===!0?0:kt;typeof Yt=="number"&&(Ct<re.top&&(je-=Ct-re.top-Me,A.y+J<re.top+Yt&&(je+=A.y-re.top+J-Yt)),dt>re.bottom&&(je-=dt-re.bottom-Me,A.y>re.bottom-Yt&&(je+=A.y-re.bottom+Yt)));var Xt=V.x+ke,Qt=Xt+G,Fr=V.y+je,Po=Fr+Y,Mn=A.x,In=Mn+X,Dn=A.y,No=Dn+J,Ao=Math.max(Xt,Mn),zn=Math.min(Qt,In),Mo=(Ao+zn)/2,Io=Mo-Xt,Ln=Math.max(Fr,Dn),Do=Math.min(Po,No),zo=(Ln+Do)/2,Lo=zo-Fr;a?.(t,rt);var Tt=Ue.right-V.x-(ke+V.width),Vr=Ue.bottom-V.y-(je+V.height);Pe===1&&(ke=Math.round(ke),Tt=Math.round(Tt)),Ne===1&&(je=Math.round(je),Vr=Math.round(Vr));var Bo={ready:!0,offsetX:ke/Pe,offsetY:je/Ne,offsetR:Tt/Pe,offsetB:Vr/Ne,arrowX:Io/Pe,arrowY:Lo/Ne,scaleX:Pe,scaleY:Ne,align:rt};f(Bo)}}),m=function(){d.current+=1;var P=d.current;Promise.resolve().then(function(){d.current===P&&x()})},$=function(){f(function(P){return Q(Q({},P),{},{ready:!1})})};return Le($,[n]),Le(function(){e||$()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,m]}function Mg(e,t,r,n,o){Le(function(){if(e&&t&&r){let d=function(){n(),o()};var i=t,a=r,s=ia(i),l=ia(a),u=On(a),f=new Set([u].concat(et(s),et(l)));return f.forEach(function(p){p.addEventListener("scroll",d,{passive:!0})}),u.addEventListener("resize",d,{passive:!0}),n(),function(){f.forEach(function(p){p.removeEventListener("scroll",d),u.removeEventListener("resize",d)})}}},[e,t,r])}function Ig(e,t,r,n,o,i,a,s){var l=h.useRef(e);l.current=e;var u=h.useRef(!1);h.useEffect(function(){if(t&&n&&(!o||i)){var d=function(){u.current=!1},p=function(T){var j;l.current&&!a(((j=T.composedPath)===null||j===void 0||(j=j.call(T))===null||j===void 0?void 0:j[0])||T.target)&&!u.current&&s(!1)},w=On(n);w.addEventListener("pointerdown",d,!0),w.addEventListener("mousedown",p,!0),w.addEventListener("contextmenu",p,!0);var v=po(r);if(v&&(v.addEventListener("mousedown",p,!0),v.addEventListener("contextmenu",p,!0)),process.env.NODE_ENV!=="production"){var x,m,$=r==null||(x=r.getRootNode)===null||x===void 0?void 0:x.call(r),C=(m=n.getRootNode)===null||m===void 0?void 0:m.call(n);Rr($===C,"trigger element and popup element should in same shadow root.")}return function(){w.removeEventListener("pointerdown",d,!0),w.removeEventListener("mousedown",p,!0),w.removeEventListener("contextmenu",p,!0),v&&(v.removeEventListener("mousedown",p,!0),v.removeEventListener("contextmenu",p,!0))}}},[t,r,n,o,i]);function f(){u.current=!0}return f}var Dg=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function zg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ra,t=h.forwardRef(function(r,n){var o=r.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=r.children,s=r.action,l=s===void 0?"hover":s,u=r.showAction,f=r.hideAction,d=r.popupVisible,p=r.defaultPopupVisible,w=r.onPopupVisibleChange,v=r.afterPopupVisibleChange,x=r.mouseEnterDelay,m=r.mouseLeaveDelay,$=m===void 0?.1:m,C=r.focusDelay,P=r.blurDelay,T=r.mask,j=r.maskClosable,S=j===void 0?!0:j,E=r.getPopupContainer,k=r.forceRender,L=r.autoDestroy,I=r.destroyPopupOnHide,_=r.popup,N=r.popupClassName,z=r.popupStyle,B=r.popupPlacement,b=r.builtinPlacements,y=b===void 0?{}:b,O=r.popupAlign,A=r.zIndex,D=r.stretch,F=r.getPopupClassNameFromAlign,U=r.fresh,V=r.alignPoint,Z=r.onPopupClick,ae=r.onPopupAlign,me=r.arrow,ue=r.popupMotion,be=r.maskMotion,R=r.popupTransitionName,H=r.popupAnimation,K=r.maskTransitionName,W=r.maskAnimation,q=r.className,Y=r.getTriggerDOMNode,G=Rt(r,Dg),J=L||I||!1,X=h.useState(!1),ne=te(X,2),se=ne[0],le=ne[1];Le(function(){le($g())},[]);var Se=h.useRef({}),ve=h.useContext(Us),Ce=h.useMemo(function(){return{registerSubPopup:function(he,De){Se.current[he]=De,ve?.registerSubPopup(he,De)}}},[ve]),de=Qc(),re=h.useState(null),ye=te(re,2),Ee=ye[0],Ue=ye[1],Pe=h.useRef(null),Ne=ut(function(oe){Pe.current=oe,hn(oe)&&Ee!==oe&&Ue(oe),ve?.registerSubPopup(de,oe)}),xe=h.useState(null),Ae=te(xe,2),ze=Ae[0],Te=Ae[1],ge=h.useRef(null),Me=ut(function(oe){hn(oe)&&ze!==oe&&(Te(oe),ge.current=oe)}),ie=h.Children.only(a),fe=ie?.props||{},Fe={},Mt=ut(function(oe){var he,De,Ge=ze;return Ge?.contains(oe)||((he=po(Ge))===null||he===void 0?void 0:he.host)===oe||oe===Ge||Ee?.contains(oe)||((De=po(Ee))===null||De===void 0?void 0:De.host)===oe||oe===Ee||Object.values(Se.current).some(function(He){return He?.contains(oe)||oe===He})}),nr=Ys(i,ue,H,R),hr=Ys(i,be,W,K),Lr=h.useState(p||!1),pr=te(Lr,2),xt=pr[0],tt=pr[1],Ve=d??xt,It=ut(function(oe){d===void 0&&tt(oe)});Le(function(){tt(d||!1)},[d]);var rt=h.useRef(Ve);rt.current=Ve;var ke=h.useRef([]);ke.current=[];var je=ut(function(oe){var he;It(oe),((he=ke.current[ke.current.length-1])!==null&&he!==void 0?he:Ve)!==oe&&(ke.current.push(oe),w?.(oe))}),Qe=h.useRef(),$t=function(){clearTimeout(Qe.current)},st=function(he){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;$t(),De===0?je(he):Qe.current=setTimeout(function(){je(he)},De*1e3)};h.useEffect(function(){return $t},[]);var Be=h.useState(!1),Gt=te(Be,2),Dt=Gt[0],_e=Gt[1];Le(function(oe){(!oe||Ve)&&_e(!0)},[Ve]);var We=h.useState(null),it=te(We,2),nt=it[0],kt=it[1],gr=h.useState(null),Ct=te(gr,2),dt=Ct[0],Ot=Ct[1],St=function(he){Ot([he.clientX,he.clientY])},mr=Ag(Ve,Ee,V&&dt!==null?dt:ze,B,y,O,ae),Ie=te(mr,11),or=Ie[0],_n=Ie[1],To=Ie[2],ir=Ie[3],Pn=Ie[4],_o=Ie[5],Nn=Ie[6],An=Ie[7],ar=Ie[8],sr=Ie[9],Br=Ie[10],lr=Tg(se,l,u,f),Hr=te(lr,2),vr=Hr[0],wt=Hr[1],Yt=vr.has("click"),Xt=wt.has("click")||wt.has("contextMenu"),Qt=ut(function(){Dt||Br()}),Fr=function(){rt.current&&V&&Xt&&st(!1)};Mg(Ve,ze,Ee,Qt,Fr),Le(function(){Qt()},[dt,B]),Le(function(){Ve&&!(y!=null&&y[B])&&Qt()},[JSON.stringify(O)]);var Po=h.useMemo(function(){var oe=Ng(y,i,sr,V);return pe(oe,F?.(sr))},[sr,F,y,i,V]);h.useImperativeHandle(n,function(){return{nativeElement:ge.current,popupElement:Pe.current,forceAlign:Qt}});var Mn=h.useState(0),In=te(Mn,2),Dn=In[0],No=In[1],Ao=h.useState(0),zn=te(Ao,2),Mo=zn[0],Io=zn[1],Ln=function(){if(D&&ze){var he=ze.getBoundingClientRect();No(he.width),Io(he.height)}},Do=function(){Ln(),Qt()},zo=function(he){_e(!1),Br(),v?.(he)},Lo=function(){return new Promise(function(he){Ln(),kt(function(){return he})})};Le(function(){nt&&(Br(),nt(),kt(null))},[nt]);function Tt(oe,he,De,Ge){Fe[oe]=function(He){var Hn;Ge?.(He),st(he,De);for(var Wo=arguments.length,Pa=new Array(Wo>1?Wo-1:0),Fn=1;Fn<Wo;Fn++)Pa[Fn-1]=arguments[Fn];(Hn=fe[oe])===null||Hn===void 0||Hn.call.apply(Hn,[fe,He].concat(Pa))}}(Yt||Xt)&&(Fe.onClick=function(oe){var he;rt.current&&Xt?st(!1):!rt.current&&Yt&&(St(oe),st(!0));for(var De=arguments.length,Ge=new Array(De>1?De-1:0),He=1;He<De;He++)Ge[He-1]=arguments[He];(he=fe.onClick)===null||he===void 0||he.call.apply(he,[fe,oe].concat(Ge))});var Vr=Ig(Ve,Xt,ze,Ee,T,S,Mt,st),Bo=vr.has("hover"),ft=wt.has("hover"),br,Wr;Bo&&(Tt("onMouseEnter",!0,x,function(oe){St(oe)}),Tt("onPointerEnter",!0,x,function(oe){St(oe)}),br=function(he){(Ve||Dt)&&Ee!==null&&Ee!==void 0&&Ee.contains(he.target)&&st(!0,x)},V&&(Fe.onMouseMove=function(oe){var he;(he=fe.onMouseMove)===null||he===void 0||he.call(fe,oe)})),ft&&(Tt("onMouseLeave",!1,$),Tt("onPointerLeave",!1,$),Wr=function(){st(!1,$)}),vr.has("focus")&&Tt("onFocus",!0,C),wt.has("focus")&&Tt("onBlur",!1,P),vr.has("contextMenu")&&(Fe.onContextMenu=function(oe){var he;rt.current&&wt.has("contextMenu")?st(!1):(St(oe),st(!0)),oe.preventDefault();for(var De=arguments.length,Ge=new Array(De>1?De-1:0),He=1;He<De;He++)Ge[He-1]=arguments[He];(he=fe.onContextMenu)===null||he===void 0||he.call.apply(he,[fe,oe].concat(Ge))}),q&&(Fe.className=pe(fe.className,q));var zt=h.useRef(!1);zt.current||(zt.current=k||Ve||Dt);var Zt=Q(Q({},fe),Fe),Kr={},Bn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Bn.forEach(function(oe){G[oe]&&(Kr[oe]=function(){for(var he,De=arguments.length,Ge=new Array(De),He=0;He<De;He++)Ge[He]=arguments[He];(he=Zt[oe])===null||he===void 0||he.call.apply(he,[Zt].concat(Ge)),G[oe].apply(G,Ge)})});var Ho=h.cloneElement(ie,Q(Q({},Zt),Kr)),Fo={x:_o,y:Nn},Vo=me?Q({},me!==!0?me:{}):null;return h.createElement(h.Fragment,null,h.createElement(Mr,{disabled:!Ve,ref:Me,onResize:Do},h.createElement(eu,{getTriggerDOMNode:Y},Ho)),zt.current&&h.createElement(Us.Provider,{value:Ce},h.createElement(Jc,{portal:e,ref:Ne,prefixCls:i,popup:_,className:pe(N,Po),style:z,target:ze,onMouseEnter:br,onMouseLeave:Wr,onPointerEnter:br,zIndex:A,open:Ve,keepDom:Dt,fresh:U,onClick:Z,onPointerDownCapture:Vr,mask:T,motion:nr,maskMotion:hr,onVisibleChanged:zo,onPrepare:Lo,forceRender:k,autoDestroy:J,getPopupContainer:E,align:sr,arrow:Vo,arrowPos:Fo,ready:or,offsetX:_n,offsetY:To,offsetR:ir,offsetB:Pn,onAlign:Qt,stretch:D,targetWidth:Dn/An,targetHeight:Mo/ar})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const Lg=zg(Ra);var Cr={shiftX:64,adjustY:1},Sr={adjustX:1,shiftY:!0},pt=[0,0],Bg={left:{points:["cr","cl"],overflow:Sr,offset:[-4,0],targetOffset:pt},right:{points:["cl","cr"],overflow:Sr,offset:[4,0],targetOffset:pt},top:{points:["bc","tc"],overflow:Cr,offset:[0,-4],targetOffset:pt},bottom:{points:["tc","bc"],overflow:Cr,offset:[0,4],targetOffset:pt},topLeft:{points:["bl","tl"],overflow:Cr,offset:[0,-4],targetOffset:pt},leftTop:{points:["tr","tl"],overflow:Sr,offset:[-4,0],targetOffset:pt},topRight:{points:["br","tr"],overflow:Cr,offset:[0,-4],targetOffset:pt},rightTop:{points:["tl","tr"],overflow:Sr,offset:[4,0],targetOffset:pt},bottomRight:{points:["tr","br"],overflow:Cr,offset:[0,4],targetOffset:pt},rightBottom:{points:["bl","br"],overflow:Sr,offset:[4,0],targetOffset:pt},bottomLeft:{points:["tl","bl"],overflow:Cr,offset:[0,4],targetOffset:pt},leftBottom:{points:["br","bl"],overflow:Sr,offset:[-4,0],targetOffset:pt}},Hg=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Fg=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,u=l===void 0?.1:l,f=t.overlayStyle,d=t.prefixCls,p=d===void 0?"rc-tooltip":d,w=t.children,v=t.onVisibleChange,x=t.afterVisibleChange,m=t.transitionName,$=t.animation,C=t.motion,P=t.placement,T=P===void 0?"right":P,j=t.align,S=j===void 0?{}:j,E=t.destroyTooltipOnHide,k=E===void 0?!1:E,L=t.defaultVisible,I=t.getTooltipContainer,_=t.overlayInnerStyle,N=t.overlay,z=t.id,B=t.showArrow,b=B===void 0?!0:B,y=t.classNames,O=t.styles,A=Rt(t,Hg),D=Qc(z),F=g.useRef(null);g.useImperativeHandle(r,function(){return F.current});var U=Q({},A);"visible"in t&&(U.popupVisible=t.visible);var V=function(){return h.createElement(Yc,{key:"content",prefixCls:p,id:D,bodyClassName:y?.body,overlayInnerStyle:Q(Q({},_),O?.body)},N)},Z=function(){var me=h.Children.only(w),ue=me?.props||{},be=Q(Q({},ue),{},{"aria-describedby":N?D:null});return h.cloneElement(w,be)};return h.createElement(Lg,Xe({popupClassName:pe(n,y?.root),prefixCls:p,popup:V,action:i,builtinPlacements:Bg,popupPlacement:T,ref:F,popupAlign:S,getPopupContainer:I,onPopupVisibleChange:v,afterPopupVisibleChange:x,popupTransitionName:m,popupAnimation:$,popupMotion:C,defaultPopupVisible:L,autoDestroy:k,mouseLeaveDelay:u,popupStyle:Q(Q({},f),O?.root),mouseEnterDelay:s,arrow:b},U),Z())};const Vg=g.forwardRef(Fg),Cn=h.createContext({});process.env.NODE_ENV!=="production"&&(Cn.displayName="FormItemInputContext");const Wg=({children:e,status:t,override:r})=>{const n=h.useContext(Cn),o=h.useMemo(()=>{const i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return h.createElement(Cn.Provider,{value:o},e)},Kg=h.createContext(void 0),tu=e=>{const t=g.useContext(Pr);return g.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},ru=h.createContext(null),nu=(e,t)=>{const r=h.useContext(ru),n=h.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=r,s=o==="vertical"?"-vertical-":"-";return pe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},qg=e=>{const{children:t}=e;return h.createElement(ru.Provider,{value:null},t)},aa=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=g.createElement(Wg,{override:!0,status:!0},o)),t&&(o=g.createElement(qg,null,o)),o},$a=g.createContext(void 0);process.env.NODE_ENV!=="production"&&($a.displayName="zIndexContext");const Bt=100,Ug=10,Gg=Bt*Ug,Yg=Gg+Bt,ou={Modal:Bt,Drawer:Bt,Popover:Bt,Popconfirm:Bt,Tooltip:Bt,Tour:Bt,FloatButton:Bt},Xg={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Qg(e){return e in ou}const Zg=(e,t)=>{const[,r]=Dr(),n=g.useContext($a),o=Qg(e);let i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+ou[e]:a+=Xg[e],i=[n===void 0?t:a,a]}if(process.env.NODE_ENV!=="production"){const a=At(e),s=r.zIndexPopupBase+Yg,l=i[0]||0;process.env.NODE_ENV!=="production"&&a(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i},Jg=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function em(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,a=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),u=o-r*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*o-u,p=f,w=2*o-s,v=l,x=2*o-i,m=a,$=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),C=n*(Math.sqrt(2)-1),P=`polygon(${C}px 100%, 50% ${C}px, ${2*o-C}px 100%, ${C}px 100%)`,T=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${u} ${f} A ${r} ${r} 0 0 1 ${d} ${p} L ${w} ${v} A ${n} ${n} 0 0 0 ${x} ${m} Z')`;return{arrowShadowWidth:$,arrowPath:T,arrowPolygon:P}}const tm=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Oe(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},iu=8;function au(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?iu:n}}function Jn(e,t){return e?t:{}}function rm(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},tm(e,t,o)),{"&:before":{background:t}})]},Jn(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Oe(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Jn(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Oe(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Jn(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),Jn(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function nm(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const el={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},om={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},im=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function am(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i}=e,a=t/2,s={},l=au({contentRadius:i,limitVerticalRadius:!0});return Object.keys(el).forEach(u=>{const f=n&&om[u]||el[u],d=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(s[u]=d,im.has(u)&&(d.autoArrow=!1),u){case"top":case"topLeft":case"topRight":d.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=a+o;break}if(n)switch(u){case"topLeft":case"bottomLeft":d.offset[0]=-l.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":d.offset[0]=l.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":d.offset[1]=-l.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":d.offset[1]=l.arrowOffsetHorizontal*2-a;break}d.overflow=nm(u,l,t,r),d.htmlRegion="visibleFirst"}),s}function sm(e){return e&&g.isValidElement(e)&&e.type===g.Fragment}const lm=(e,t,r)=>g.isValidElement(e)?g.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function su(e,t){return lm(e,e,t)}const cm=e=>({animationDuration:e,animationFillMode:"both"}),um=e=>({animationDuration:e,animationFillMode:"both"}),dm=(e,t,r,n,o=!1)=>{const i=o?"&":"";return{[`
|
|
130
|
+
${i}${e}-enter,
|
|
131
|
+
${i}${e}-appear
|
|
132
|
+
`]:Object.assign(Object.assign({},cm(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},um(n)),{animationPlayState:"paused"}),[`
|
|
133
|
+
${i}${e}-enter${e}-enter-active,
|
|
134
|
+
${i}${e}-appear${e}-appear-active
|
|
135
|
+
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},fm=new yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),hm=new yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),tl=new yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),rl=new yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),pm=new yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),gm=new yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),mm=new yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),vm=new yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),bm=new yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ym=new yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),xm=new yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Cm=new yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Sm={zoom:{inKeyframes:fm,outKeyframes:hm},"zoom-big":{inKeyframes:tl,outKeyframes:rl},"zoom-big-fast":{inKeyframes:tl,outKeyframes:rl},"zoom-left":{inKeyframes:mm,outKeyframes:vm},"zoom-right":{inKeyframes:bm,outKeyframes:ym},"zoom-up":{inKeyframes:pm,outKeyframes:gm},"zoom-down":{inKeyframes:xm,outKeyframes:Cm}},wm=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=Sm[t];return[dm(n,o,i,e.motionDurationFast),{[`
|
|
136
|
+
${n}-enter,
|
|
137
|
+
${n}-appear
|
|
138
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Em=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:u,paddingSM:f,paddingXS:d,arrowOffsetHorizontal:p,sizePopupArrow:w}=e,v=t(a).add(w).add(p).equal(),x=t(a).mul(2).add(w).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},Ea(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:x,minHeight:l,padding:`${Oe(e.calc(f).div(2).equal())} ${Oe(d)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,iu)}},[`${r}-content`]:{position:"relative"}}),Fp(e,(m,{darkColor:$})=>({[`&${r}-${m}`]:{[`${r}-inner`]:{backgroundColor:$},[`${r}-arrow`]:{"--antd-arrow-background-color":$}}}))),{"&-rtl":{direction:"rtl"}})},rm(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},jm=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},au({contentRadius:e.borderRadius,limitVerticalRadius:!0})),em(Ut(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),lu=(e,t=!0)=>kn("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,s=Ut(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[Em(s),wm(n,"zoom-big-fast")]},jm,{resetStyle:!1,injectStyle:t})(e),Rm=bo.map(e=>`${e}-inverse`);function $m(e,t=!0){return t?[].concat(et(Rm),et(bo)).includes(e):bo.includes(e)}const Je=Math.round;function di(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const nl=(e,t,r)=>r===0?e:e/100;function rn(e,t){const r=t||255;return e>r?r:e<0?0:e}class Oo{constructor(t){ee(this,"isValid",!0),ee(this,"r",0),ee(this,"g",0),ee(this,"b",0),ee(this,"a",1),ee(this,"_h",void 0),ee(this,"_s",void 0),ee(this,"_l",void 0),ee(this,"_v",void 0),ee(this,"_max",void 0),ee(this,"_min",void 0),ee(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof Oo)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=rn(t.r),this.g=rn(t.g),this.b=rn(t.b),this.a=typeof t.a=="number"?rn(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Je(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:Je(i("r")),g:Je(i("g")),b:Je(i("b")),a:Je(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>Je((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Je(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Je(this.getSaturation()*100),n=Je(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=rn(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const p=Je(n*255);this.r=p,this.g=p,this.b=p}let i=0,a=0,s=0;const l=t/60,u=(1-Math.abs(2*n-1))*r,f=u*(1-Math.abs(l%2-1));l>=0&&l<1?(i=u,a=f):l>=1&&l<2?(i=f,a=u):l>=2&&l<3?(a=u,s=f):l>=3&&l<4?(a=f,s=u):l>=4&&l<5?(i=f,s=u):l>=5&&l<6&&(i=u,s=f);const d=n-u/2;this.r=Je((i+d)*255),this.g=Je((a+d)*255),this.b=Je((s+d)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const i=Je(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const a=t/60,s=Math.floor(a),l=a-s,u=Je(n*(1-r)*255),f=Je(n*(1-r*l)*255),d=Je(n*(1-r*(1-l))*255);switch(s){case 0:this.g=d,this.b=u;break;case 1:this.r=f,this.b=u;break;case 2:this.r=u,this.b=d;break;case 3:this.r=u,this.g=f;break;case 4:this.r=d,this.g=u;break;case 5:default:this.g=u,this.b=f;break}}fromHsvString(t){const r=di(t,nl);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=di(t,nl);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=di(t,(n,o)=>o.includes("%")?Je(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var km=["b"],Om=["v"],fi=function(t){return Math.round(Number(t||0))},Tm=function(t){if(t instanceof Oo)return t;if(t&&we(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=Rt(r,km);return Q(Q({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ol=(function(e){En(r,e);var t=jn(r);function r(n){return vt(this,r),t.call(this,Tm(n))}return bt(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=fi(o.s*100),a=fi(o.b*100),s=fi(o.h),l=o.a,u="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),f="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?u:f}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=Rt(o,Om);return Q(Q({},a),{},{b:i,a:this.a})}}]),r})(Oo);const _m=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",Pm=(e,t)=>e?_m(e,t):"";let il=(function(){function e(t){vt(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new ol(this.colors[0].color.metaColor)):this.metaColor=new ol(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return bt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Pm(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{const i=r.colors[o];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])})();const Nm=e=>e instanceof il?e:new il(e);function cu(e,t){const r=$m(t),n=pe({[`${e}-${t}`]:t&&r}),o={},i={},a=Nm(t).toRgb(),l=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!r&&(o.background=t,o["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}const Am=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=h.useContext(Wt),l=s("tooltip",t),[u,f,d]=lu(l),p=cu(l,i),w=p.arrowStyle,v=Object.assign(Object.assign({},a),p.overlayStyle),x=pe(f,d,l,`${l}-pure`,`${l}-placement-${n}`,r,p.className);return u(h.createElement("div",{className:x,style:w},h.createElement("div",{className:`${l}-arrow`}),h.createElement(Yc,Object.assign({},e,{className:f,prefixCls:l,overlayInnerStyle:v}),o)))};var Mm=exports&&exports.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Im=h.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:u,afterOpenChange:f,afterVisibleChange:d,destroyTooltipOnHide:p,destroyOnHidden:w,arrow:v=!0,title:x,overlay:m,builtinPlacements:$,arrowPointAtCenter:C=!1,autoAdjustOverflow:P=!0,getPopupContainer:T,placement:j="top",mouseEnterDelay:S=.1,mouseLeaveDelay:E=.1,overlayStyle:k,rootClassName:L,overlayClassName:I,styles:_,classNames:N}=e,z=Mm(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),B=!!v,[,b]=Dr(),{getPopupContainer:y,getPrefixCls:O,direction:A,className:D,style:F,classNames:U,styles:V}=$o("tooltip"),Z=At("Tooltip"),ae=h.useRef(null),me=()=>{var xe;(xe=ae.current)===null||xe===void 0||xe.forceAlign()};h.useImperativeHandle(t,()=>{var xe,Ae;return{forceAlign:me,forcePopupAlign:()=>{Z.deprecated(!1,"forcePopupAlign","forceAlign"),me()},nativeElement:(xe=ae.current)===null||xe===void 0?void 0:xe.nativeElement,popupElement:(Ae=ae.current)===null||Ae===void 0?void 0:Ae.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([xe,Ae])=>{Z.deprecated(!(xe in e),xe,Ae)}),process.env.NODE_ENV!=="production"&&Z(!p||typeof p=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&Z(!v||typeof v=="boolean"||!("arrowPointAtCenter"in v),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[ue,be]=kr(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),R=!x&&!m&&x!==0,H=xe=>{var Ae,ze;be(R?!1:xe),R||((Ae=e.onOpenChange)===null||Ae===void 0||Ae.call(e,xe),(ze=e.onVisibleChange)===null||ze===void 0||ze.call(e,xe))},K=h.useMemo(()=>{var xe,Ae;let ze=C;return typeof v=="object"&&(ze=(Ae=(xe=v.pointAtCenter)!==null&&xe!==void 0?xe:v.arrowPointAtCenter)!==null&&Ae!==void 0?Ae:C),$||am({arrowPointAtCenter:ze,autoAdjustOverflow:P,arrowWidth:B?b.sizePopupArrow:0,borderRadius:b.borderRadius,offset:b.marginXXS})},[C,v,$,b]),W=h.useMemo(()=>x===0?x:m||x||"",[m,x]),q=h.createElement(aa,{space:!0},typeof W=="function"?W():W),Y=O("tooltip",o),G=O(),J=e["data-popover-inject"];let X=ue;!("open"in e)&&!("visible"in e)&&R&&(X=!1);const ne=h.isValidElement(u)&&!sm(u)?u:h.createElement("span",null,u),se=ne.props,le=!se.className||typeof se.className=="string"?pe(se.className,i||`${Y}-open`):se.className,[Se,ve,Ce]=lu(Y,!J),de=cu(Y,s),re=de.arrowStyle,ye=pe(I,{[`${Y}-rtl`]:A==="rtl"},de.className,L,ve,Ce,D,U.root,N?.root),Ee=pe(U.body,N?.body),[Ue,Pe]=Zg("Tooltip",z.zIndex),Ne=h.createElement(Vg,Object.assign({},z,{zIndex:Ue,showArrow:B,placement:j,mouseEnterDelay:S,mouseLeaveDelay:E,prefixCls:Y,classNames:{root:ye,body:Ee},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},re),V.root),F),k),_?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},V.body),l),_?.body),de.overlayStyle)},getTooltipContainer:T||a||y,ref:ae,builtinPlacements:K,overlay:q,visible:X,onVisibleChange:H,afterVisibleChange:f??d,arrowContent:h.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:Jg(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:w??!!p}),X?su(ne,{className:le}):ne);return Se(h.createElement($a.Provider,{value:Pe},Ne))}),Tn=Im;process.env.NODE_ENV!=="production"&&(Tn.displayName="Tooltip");Tn._InternalPanelDoNotUseOrYouWillBeFired=Am;var Dm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},zm=function(t,r){return h.createElement(qt,Xe({},t,{ref:r,icon:Dm}))},uu=h.forwardRef(zm);process.env.NODE_ENV!=="production"&&(uu.displayName="EnterOutlined");var al={ENTER:13,ESC:27};function Lm(e){return!!(e.addonBefore||e.addonAfter)}function Bm(e){return!!(e.prefix||e.suffix||e.allowClear)}function sl(e,t,r){var n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function yo(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=sl(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=sl(t,e,n),r(o);return}r(o)}}function du(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var fu=g.forwardRef(function(e,t){var r,n,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,u=e.suffix,f=e.addonBefore,d=e.addonAfter,p=e.className,w=e.style,v=e.disabled,x=e.readOnly,m=e.focused,$=e.triggerFocus,C=e.allowClear,P=e.value,T=e.handleReset,j=e.hidden,S=e.classes,E=e.classNames,k=e.dataAttrs,L=e.styles,I=e.components,_=e.onClear,N=a??i,z=I?.affixWrapper||"span",B=I?.groupWrapper||"span",b=I?.wrapper||"span",y=I?.groupAddon||"span",O=g.useRef(null),A=function(J){var X;(X=O.current)!==null&&X!==void 0&&X.contains(J.target)&&$?.()},D=Bm(e),F=g.cloneElement(N,{value:P,className:pe((r=N.props)===null||r===void 0?void 0:r.className,!D&&E?.variant)||null}),U=g.useRef(null);if(g.useImperativeHandle(t,function(){return{nativeElement:U.current||O.current}}),D){var V=null;if(C){var Z=!v&&!x&&P,ae="".concat(s,"-clear-icon"),me=we(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";V=g.createElement("button",{type:"button",tabIndex:-1,onClick:function(J){T?.(J),_?.()},onMouseDown:function(J){return J.preventDefault()},className:pe(ae,ee(ee({},"".concat(ae,"-hidden"),!Z),"".concat(ae,"-has-suffix"),!!u))},me)}var ue="".concat(s,"-affix-wrapper"),be=pe(ue,ee(ee(ee(ee(ee({},"".concat(s,"-disabled"),v),"".concat(ue,"-disabled"),v),"".concat(ue,"-focused"),m),"".concat(ue,"-readonly"),x),"".concat(ue,"-input-with-clear-btn"),u&&C&&P),S?.affixWrapper,E?.affixWrapper,E?.variant),R=(u||C)&&g.createElement("span",{className:pe("".concat(s,"-suffix"),E?.suffix),style:L?.suffix},V,u);F=g.createElement(z,Xe({className:be,style:L?.affixWrapper,onClick:A},k?.affixWrapper,{ref:O}),l&&g.createElement("span",{className:pe("".concat(s,"-prefix"),E?.prefix),style:L?.prefix},l),F,R)}if(Lm(e)){var H="".concat(s,"-group"),K="".concat(H,"-addon"),W="".concat(H,"-wrapper"),q=pe("".concat(s,"-wrapper"),H,S?.wrapper,E?.wrapper),Y=pe(W,ee({},"".concat(W,"-disabled"),v),S?.group,E?.groupWrapper);F=g.createElement(B,{className:Y,ref:U},g.createElement(b,{className:q},f&&g.createElement(y,{className:K},f),F,d&&g.createElement(y,{className:K},d)))}return g.cloneElement(F,{className:pe((n=F.props)===null||n===void 0?void 0:n.className,p)||null,style:Q(Q({},(o=F.props)===null||o===void 0?void 0:o.style),w),hidden:j})}),Hm=["show"];function hu(e,t){return h.useMemo(function(){var r={};t&&(r.show=we(t)==="object"&&t.formatter?t.formatter:!!t),r=Q(Q({},r),e);var n=r,o=n.show,i=Rt(n,Hm);return Q(Q({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var Fm=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Vm=g.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,u=e.prefixCls,f=u===void 0?"rc-input":u,d=e.disabled,p=e.htmlSize,w=e.className,v=e.maxLength,x=e.suffix,m=e.showCount,$=e.count,C=e.type,P=C===void 0?"text":C,T=e.classes,j=e.classNames,S=e.styles,E=e.onCompositionStart,k=e.onCompositionEnd,L=Rt(e,Fm),I=g.useState(!1),_=te(I,2),N=_[0],z=_[1],B=g.useRef(!1),b=g.useRef(!1),y=g.useRef(null),O=g.useRef(null),A=function(re){y.current&&du(y.current,re)},D=kr(e.defaultValue,{value:e.value}),F=te(D,2),U=F[0],V=F[1],Z=U==null?"":String(U),ae=g.useState(null),me=te(ae,2),ue=me[0],be=me[1],R=hu($,m),H=R.max||v,K=R.strategy(Z),W=!!H&&K>H;g.useImperativeHandle(t,function(){var de;return{focus:A,blur:function(){var ye;(ye=y.current)===null||ye===void 0||ye.blur()},setSelectionRange:function(ye,Ee,Ue){var Pe;(Pe=y.current)===null||Pe===void 0||Pe.setSelectionRange(ye,Ee,Ue)},select:function(){var ye;(ye=y.current)===null||ye===void 0||ye.select()},input:y.current,nativeElement:((de=O.current)===null||de===void 0?void 0:de.nativeElement)||y.current}}),g.useEffect(function(){b.current&&(b.current=!1),z(function(de){return de&&d?!1:de})},[d]);var q=function(re,ye,Ee){var Ue=ye;if(!B.current&&R.exceedFormatter&&R.max&&R.strategy(ye)>R.max){if(Ue=R.exceedFormatter(ye,{max:R.max}),ye!==Ue){var Pe,Ne;be([((Pe=y.current)===null||Pe===void 0?void 0:Pe.selectionStart)||0,((Ne=y.current)===null||Ne===void 0?void 0:Ne.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;V(Ue),y.current&&yo(y.current,re,n,Ue)};g.useEffect(function(){if(ue){var de;(de=y.current)===null||de===void 0||de.setSelectionRange.apply(de,et(ue))}},[ue]);var Y=function(re){q(re,re.target.value,{source:"change"})},G=function(re){B.current=!1,q(re,re.currentTarget.value,{source:"compositionEnd"}),k?.(re)},J=function(re){a&&re.key==="Enter"&&!b.current&&(b.current=!0,a(re)),s?.(re)},X=function(re){re.key==="Enter"&&(b.current=!1),l?.(re)},ne=function(re){z(!0),o?.(re)},se=function(re){b.current&&(b.current=!1),z(!1),i?.(re)},le=function(re){V(""),A(),y.current&&yo(y.current,re,n)},Se=W&&"".concat(f,"-out-of-range"),ve=function(){var re=tc(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return g.createElement("input",Xe({autoComplete:r},re,{onChange:Y,onFocus:ne,onBlur:se,onKeyDown:J,onKeyUp:X,className:pe(f,ee({},"".concat(f,"-disabled"),d),j?.input),style:S?.input,ref:y,size:p,type:P,onCompositionStart:function(Ee){B.current=!0,E?.(Ee)},onCompositionEnd:G}))},Ce=function(){var re=Number(H)>0;if(x||R.show){var ye=R.showFormatter?R.showFormatter({value:Z,count:K,maxLength:H}):"".concat(K).concat(re?" / ".concat(H):"");return g.createElement(g.Fragment,null,R.show&&g.createElement("span",{className:pe("".concat(f,"-show-count-suffix"),ee({},"".concat(f,"-show-count-has-suffix"),!!x),j?.count),style:Q({},S?.count)},ye),x)}return null};return g.createElement(fu,Xe({},L,{prefixCls:f,className:pe(w,Se),handleReset:le,value:Z,focused:N,triggerFocus:A,suffix:Ce(),disabled:d,classes:T,classNames:j,styles:S,ref:O}),ve())}),Wm=`
|
|
139
|
+
min-height:0 !important;
|
|
140
|
+
max-height:none !important;
|
|
141
|
+
height:0 !important;
|
|
142
|
+
visibility:hidden !important;
|
|
143
|
+
overflow:hidden !important;
|
|
144
|
+
position:absolute !important;
|
|
145
|
+
z-index:-1000 !important;
|
|
146
|
+
top:0 !important;
|
|
147
|
+
right:0 !important;
|
|
148
|
+
pointer-events: none !important;
|
|
149
|
+
`,Km=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],hi={},ct;function qm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&hi[r])return hi[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=Km.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&r&&(hi[r]=l),l}function Um(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ct||(ct=document.createElement("textarea"),ct.setAttribute("tab-index","-1"),ct.setAttribute("aria-hidden","true"),ct.setAttribute("name","hiddenTextarea"),document.body.appendChild(ct)),e.getAttribute("wrap")?ct.setAttribute("wrap",e.getAttribute("wrap")):ct.removeAttribute("wrap");var o=qm(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;ct.setAttribute("style","".concat(l,";").concat(Wm)),ct.value=e.value||e.placeholder||"";var u=void 0,f=void 0,d,p=ct.scrollHeight;if(s==="border-box"?p+=a:s==="content-box"&&(p-=i),r!==null||n!==null){ct.value=" ";var w=ct.scrollHeight-i;r!==null&&(u=w*r,s==="border-box"&&(u=u+i+a),p=Math.max(u,p)),n!==null&&(f=w*n,s==="border-box"&&(f=f+i+a),d=p>f?"":"hidden",p=Math.min(f,p))}var v={height:p,overflowY:d,resize:"none"};return u&&(v.minHeight=u),f&&(v.maxHeight=f),v}var Gm=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],pi=0,gi=1,mi=2,Ym=h.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,i=r.value,a=r.autoSize,s=r.onResize,l=r.className,u=r.style,f=r.disabled,d=r.onChange,p=r.onInternalAutoSize,w=Rt(r,Gm),v=kr(o,{value:i,postState:function(ae){return ae??""}}),x=te(v,2),m=x[0],$=x[1],C=function(ae){$(ae.target.value),d?.(ae)},P=h.useRef();h.useImperativeHandle(t,function(){return{textArea:P.current}});var T=h.useMemo(function(){return a&&we(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),j=te(T,2),S=j[0],E=j[1],k=!!a,L=h.useState(mi),I=te(L,2),_=I[0],N=I[1],z=h.useState(),B=te(z,2),b=B[0],y=B[1],O=function(){N(pi),process.env.NODE_ENV==="test"&&p?.()};Le(function(){k&&O()},[i,S,E,k]),Le(function(){if(_===pi)N(gi);else if(_===gi){var Z=Um(P.current,!1,S,E);N(mi),y(Z)}},[_]);var A=h.useRef(),D=function(){Nr.cancel(A.current)},F=function(ae){_===mi&&(s?.(ae),a&&(D(),A.current=Nr(function(){O()})))};h.useEffect(function(){return D},[]);var U=k?b:null,V=Q(Q({},u),U);return(_===pi||_===gi)&&(V.overflowY="hidden",V.overflowX="hidden"),h.createElement(Mr,{onResize:F,disabled:!(a||s)},h.createElement("textarea",Xe({},w,{ref:P,style:V,className:pe(n,l,ee({},"".concat(n,"-disabled"),f)),disabled:f,value:m,onChange:C})))}),Xm=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Qm=g.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,u=e.maxLength,f=e.onCompositionStart,d=e.onCompositionEnd,p=e.suffix,w=e.prefixCls,v=w===void 0?"rc-textarea":w,x=e.showCount,m=e.count,$=e.className,C=e.style,P=e.disabled,T=e.hidden,j=e.classNames,S=e.styles,E=e.onResize,k=e.onClear,L=e.onPressEnter,I=e.readOnly,_=e.autoSize,N=e.onKeyDown,z=Rt(e,Xm),B=kr(n,{value:o,defaultValue:n}),b=te(B,2),y=b[0],O=b[1],A=y==null?"":String(y),D=g.useState(!1),F=te(D,2),U=F[0],V=F[1],Z=g.useRef(!1),ae=g.useState(null),me=te(ae,2),ue=me[0],be=me[1],R=g.useRef(null),H=g.useRef(null),K=function(){var ge;return(ge=H.current)===null||ge===void 0?void 0:ge.textArea},W=function(){K().focus()};g.useImperativeHandle(t,function(){var Te;return{resizableTextArea:H.current,focus:W,blur:function(){K().blur()},nativeElement:((Te=R.current)===null||Te===void 0?void 0:Te.nativeElement)||K()}}),g.useEffect(function(){V(function(Te){return!P&&Te})},[P]);var q=g.useState(null),Y=te(q,2),G=Y[0],J=Y[1];g.useEffect(function(){if(G){var Te;(Te=K()).setSelectionRange.apply(Te,et(G))}},[G]);var X=hu(m,x),ne=(r=X.max)!==null&&r!==void 0?r:u,se=Number(ne)>0,le=X.strategy(A),Se=!!ne&&le>ne,ve=function(ge,Me){var ie=Me;!Z.current&&X.exceedFormatter&&X.max&&X.strategy(Me)>X.max&&(ie=X.exceedFormatter(Me,{max:X.max}),Me!==ie&&J([K().selectionStart||0,K().selectionEnd||0])),O(ie),yo(ge.currentTarget,ge,s,ie)},Ce=function(ge){Z.current=!0,f?.(ge)},de=function(ge){Z.current=!1,ve(ge,ge.currentTarget.value),d?.(ge)},re=function(ge){ve(ge,ge.target.value)},ye=function(ge){ge.key==="Enter"&&L&&L(ge),N?.(ge)},Ee=function(ge){V(!0),i?.(ge)},Ue=function(ge){V(!1),a?.(ge)},Pe=function(ge){O(""),W(),yo(K(),ge,s)},Ne=p,xe;X.show&&(X.showFormatter?xe=X.showFormatter({value:A,count:le,maxLength:ne}):xe="".concat(le).concat(se?" / ".concat(ne):""),Ne=g.createElement(g.Fragment,null,Ne,g.createElement("span",{className:pe("".concat(v,"-data-count"),j?.count),style:S?.count},xe)));var Ae=function(ge){var Me;E?.(ge),(Me=K())!==null&&Me!==void 0&&Me.style.height&&be(!0)},ze=!_&&!x&&!l;return g.createElement(fu,{ref:R,value:A,allowClear:l,handleReset:Pe,suffix:Ne,prefixCls:v,classNames:Q(Q({},j),{},{affixWrapper:pe(j?.affixWrapper,ee(ee({},"".concat(v,"-show-count"),x),"".concat(v,"-textarea-allow-clear"),l))}),disabled:P,focused:U,className:pe($,Se&&"".concat(v,"-out-of-range")),style:Q(Q({},C),ue&&!ze?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof xe=="string"?xe:void 0}},hidden:T,readOnly:I,onClear:k},g.createElement(Ym,Xe({},z,{autoSize:_,maxLength:u,onKeyDown:ye,onChange:re,onFocus:Ee,onBlur:Ue,onCompositionStart:Ce,onCompositionEnd:de,className:pe(j?.textarea),style:Q(Q({},S?.textarea),{},{resize:C?.resize}),disabled:P,prefixCls:v,onResize:Ae,ref:H,readOnly:I})))}),Zm={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Jm=function(t,r){return h.createElement(qt,Xe({},t,{ref:r,icon:Zm}))},pu=h.forwardRef(Jm);process.env.NODE_ENV!=="production"&&(pu.displayName="CloseCircleFilled");const gu=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:g.createElement(pu,null)}),t};function sa(e,t,r){return pe({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const mu=(e,t)=>t||e,vu=e=>{const[,,,,t]=Dr();return t?`${e}-css-var`:""},bu=(e,t,r=void 0)=>{var n,o;const{variant:i,[e]:a}=h.useContext(Wt),s=h.useContext(Kg),l=a?.variant;let u;typeof t<"u"?u=t:r===!1?u="borderless":u=(o=(n=s??l)!==null&&n!==void 0?n:i)!==null&&o!==void 0?o:"outlined";const f=fp.includes(u);return[u,f]};function e0(e,t){const r=g.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return g.useEffect(()=>(n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function t0(e,t,r,n){const{focusElCls:o,focus:i,borderElCls:a}=r,s=a?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function r0(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function n0(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},t0(e,n,t,r)),r0(r,n,t))}}function ka(e){return Ut(e,{inputAffixPadding:e.paddingXXS})}const Oa=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:f,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:w,colorPrimary:v,controlOutlineWidth:x,controlOutline:m,colorErrorOutline:$,colorWarningOutline:C,colorBgContainer:P,inputFontSize:T,inputFontSizeLG:j,inputFontSizeSM:S}=e,E=T||r,k=S||E,L=j||s,I=Math.round((t-E*n)/2*10)/10-o,_=Math.round((i-k*n)/2*10)/10-o,N=Math.ceil((a-L*l)/2*10)/10-o;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(_,0),paddingBlockLG:Math.max(N,0),paddingInline:u-o,paddingInlineSM:f-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:v,hoverBorderColor:w,activeShadow:`0 0 0 ${x}px ${m}`,errorActiveShadow:`0 0 0 ${x}px ${$}`,warningActiveShadow:`0 0 0 ${x}px ${C}`,hoverBg:P,activeBg:P,inputFontSize:E,inputFontSizeLG:L,inputFontSizeSM:k}},o0=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ta=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},o0(Ut(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),yu=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),ll=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},yu(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),i0=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yu(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ta(e))}),ll(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ll(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),cl=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),a0=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},cl(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),cl(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Ta(e))}})}),s0=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},xu=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t?.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},ul=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},xu(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),l0=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xu(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ta(e))}),ul(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ul(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),dl=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),c0=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},dl(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),dl(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Cu=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Oe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),fl=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Cu(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),u0=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cu(e,{borderColor:e.colorBorder,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),fl(e,{status:"error",borderColor:e.colorError,activeBorderColor:e.colorError,affixColor:e.colorError})),fl(e,{status:"warning",borderColor:e.colorWarning,activeBorderColor:e.colorWarning,affixColor:e.colorWarning})),t)}),d0=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Su=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${Oe(t)} ${Oe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},wu=e=>({padding:`${Oe(e.paddingBlockSM)} ${Oe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Eu=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Oe(e.paddingBlock)} ${Oe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},d0(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Su(e)),"&-sm":Object.assign({},wu(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),f0=e=>{const{componentCls:t,antCls:r}=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({},Su(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},wu(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${Oe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Oe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Oe(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Oe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${Oe(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},Dp()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
150
|
+
& > ${t}-affix-wrapper,
|
|
151
|
+
& > ${t}-number-affix-wrapper,
|
|
152
|
+
& > ${r}-picker-range
|
|
153
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
|
|
154
|
+
& > ${r}-select-auto-complete ${t},
|
|
155
|
+
& > ${r}-cascader-picker ${t},
|
|
156
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
157
|
+
& > ${r}-select:first-child > ${r}-select-selector,
|
|
158
|
+
& > ${r}-select-auto-complete:first-child ${t},
|
|
159
|
+
& > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
160
|
+
& > ${r}-select:last-child > ${r}-select-selector,
|
|
161
|
+
& > ${r}-cascader-picker:last-child ${t},
|
|
162
|
+
& > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${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}}}})}},h0=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,a=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ea(e)),Eu(e)),i0(e)),l0(e)),s0(e)),u0(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},p0=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Oe(e.inputAffixPadding)}`}}}},g0=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Eu(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-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:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),p0(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},m0=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ea(e)),f0(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},a0(e)),c0(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}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},v0=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-color-primary):not(${r}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
163
|
+
> ${t},
|
|
164
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},b0=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},ju=kn(["Input","Shared"],e=>{const t=Ut(e,ka(e));return[h0(t),g0(t)]},Oa,{resetFont:!1}),y0=kn(["Input","Component"],e=>{const t=Ut(e,ka(e));return[m0(t),v0(t),b0(t),n0(t)]},Oa,{resetFont:!1});function x0(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var C0=exports&&exports.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const S0=g.forwardRef((e,t)=>{const{prefixCls:r,bordered:n=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:u,allowClear:f,addonAfter:d,addonBefore:p,className:w,style:v,styles:x,rootClassName:m,onChange:$,classNames:C,variant:P}=e,T=C0(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:le}=At("Input");le(!("bordered"in e),"bordered","variant")}const{getPrefixCls:j,direction:S,allowClear:E,autoComplete:k,className:L,style:I,classNames:_,styles:N}=$o("input"),z=j("input",r),B=g.useRef(null),b=vu(z),[y,O,A]=ju(z,m),[D]=y0(z,b),{compactSize:F,compactItemClassnames:U}=nu(z,S),V=tu(le=>{var Se;return(Se=i??F)!==null&&Se!==void 0?Se:le}),Z=g.useContext(yn),ae=a??Z,{status:me,hasFeedback:ue,feedbackIcon:be}=g.useContext(Cn),R=mu(me,o),H=x0(e)||!!ue,K=g.useRef(H);if(process.env.NODE_ENV!=="production"){const le=At("Input");g.useEffect(()=>{var Se;H&&!K.current&&process.env.NODE_ENV!=="production"&&le(document.activeElement===((Se=B.current)===null||Se===void 0?void 0:Se.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),K.current=H},[H])}const W=e0(B),q=le=>{W(),s?.(le)},Y=le=>{W(),l?.(le)},G=le=>{W(),$?.(le)},J=(ue||u)&&g.createElement(g.Fragment,null,u,ue&&be),X=gu(f??E),[ne,se]=bu("input",P,n);return y(D(g.createElement(Vm,Object.assign({ref:wn(t,B),prefixCls:z,autoComplete:k},T,{disabled:ae,onBlur:q,onFocus:Y,style:Object.assign(Object.assign({},I),v),styles:Object.assign(Object.assign({},N),x),suffix:J,allowClear:X,className:pe(w,m,A,b,U,L),onChange:G,addonBefore:p&&g.createElement(aa,{form:!0,space:!0},p),addonAfter:d&&g.createElement(aa,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},C),_),{input:pe({[`${z}-sm`]:V==="small",[`${z}-lg`]:V==="large",[`${z}-rtl`]:S==="rtl"},C?.input,_.input,O),variant:pe({[`${z}-${ne}`]:se},sa(z,R)),affixWrapper:pe({[`${z}-affix-wrapper-sm`]:V==="small",[`${z}-affix-wrapper-lg`]:V==="large",[`${z}-affix-wrapper-rtl`]:S==="rtl"},O),wrapper:pe({[`${z}-group-rtl`]:S==="rtl"},O),groupWrapper:pe({[`${z}-group-wrapper-sm`]:V==="small",[`${z}-group-wrapper-lg`]:V==="large",[`${z}-group-wrapper-rtl`]:S==="rtl",[`${z}-group-wrapper-${ne}`]:se},sa(`${z}-group-wrapper`,R,ue),O)})}))))});process.env.NODE_ENV!=="production"&&(S0.displayName="Input");const w0=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
165
|
+
&-allow-clear > ${t},
|
|
166
|
+
&-affix-wrapper${n}-has-feedback ${t}
|
|
167
|
+
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},E0=kn(["Input","TextArea"],e=>{const t=Ut(e,ka(e));return w0(t)},Oa,{resetFont:!1});var j0=exports&&exports.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const R0=g.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:i,disabled:a,status:s,allowClear:l,classNames:u,rootClassName:f,className:d,style:p,styles:w,variant:v,showCount:x,onMouseDown:m,onResize:$}=e,C=j0(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:X}=At("TextArea");X(!("bordered"in e),"bordered","variant")}const{getPrefixCls:P,direction:T,allowClear:j,autoComplete:S,className:E,style:k,classNames:L,styles:I}=$o("textArea"),_=h.useContext(yn),N=a??_,{status:z,hasFeedback:B,feedbackIcon:b}=h.useContext(Cn),y=mu(z,s),O=h.useRef(null);h.useImperativeHandle(t,()=>{var X;return{resizableTextArea:(X=O.current)===null||X===void 0?void 0:X.resizableTextArea,focus:ne=>{var se,le;du((le=(se=O.current)===null||se===void 0?void 0:se.resizableTextArea)===null||le===void 0?void 0:le.textArea,ne)},blur:()=>{var ne;return(ne=O.current)===null||ne===void 0?void 0:ne.blur()}}});const A=P("input",n),D=vu(A),[F,U,V]=ju(A,f),[Z]=E0(A,D),{compactSize:ae,compactItemClassnames:me}=nu(A,T),ue=tu(X=>{var ne;return(ne=i??ae)!==null&&ne!==void 0?ne:X}),[be,R]=bu("textArea",v,o),H=gu(l??j),[K,W]=h.useState(!1),[q,Y]=h.useState(!1),G=X=>{W(!0),m?.(X);const ne=()=>{W(!1),document.removeEventListener("mouseup",ne)};document.addEventListener("mouseup",ne)},J=X=>{var ne,se;if($?.(X),K&&typeof getComputedStyle=="function"){const le=(se=(ne=O.current)===null||ne===void 0?void 0:ne.nativeElement)===null||se===void 0?void 0:se.querySelector("textarea");le&&getComputedStyle(le).resize==="both"&&Y(!0)}};return F(Z(h.createElement(Qm,Object.assign({autoComplete:S},C,{style:Object.assign(Object.assign({},k),p),styles:Object.assign(Object.assign({},I),w),disabled:N,allowClear:H,className:pe(V,D,d,f,me,E,q&&`${A}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),L),{textarea:pe({[`${A}-sm`]:ue==="small",[`${A}-lg`]:ue==="large"},U,u?.textarea,L.textarea,K&&`${A}-mouse-active`),variant:pe({[`${A}-${be}`]:R},sa(A,y)),affixWrapper:pe(`${A}-textarea-affix-wrapper`,{[`${A}-affix-wrapper-rtl`]:T==="rtl",[`${A}-affix-wrapper-sm`]:ue==="small",[`${A}-affix-wrapper-lg`]:ue==="large",[`${A}-textarea-show-count`]:x||((r=e.count)===null||r===void 0?void 0:r.show)},U)}),prefixCls:A,suffix:B&&h.createElement("span",{className:`${A}-textarea-suffix`},b),showCount:x,ref:O,onResize:J,onMouseDown:G}))))}),$0=(e,t,r,n)=>{const{titleMarginBottom:o,fontWeightStrong:i}=n;return{marginBottom:o,color:r,fontWeight:i,fontSize:e,lineHeight:t}},k0=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
|
|
168
|
+
h${n}&,
|
|
169
|
+
div&-h${n},
|
|
170
|
+
div&-h${n} > textarea,
|
|
171
|
+
h${n}
|
|
172
|
+
`]=$0(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},O0=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Nc(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},T0=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:fo[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),_0=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${Oe(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},P0=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),N0=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),A0=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},k0(e)),{[`
|
|
173
|
+
& + h1${t},
|
|
174
|
+
& + h2${t},
|
|
175
|
+
& + h3${t},
|
|
176
|
+
& + h4${t},
|
|
177
|
+
& + h5${t}
|
|
178
|
+
`]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),T0(e)),O0(e)),{[`
|
|
179
|
+
${t}-expand,
|
|
180
|
+
${t}-collapse,
|
|
181
|
+
${t}-edit,
|
|
182
|
+
${t}-copy
|
|
183
|
+
`]:Object.assign(Object.assign({},Nc(e)),{marginInlineStart:e.marginXXS})}),_0(e)),P0(e)),N0()),{"&-rtl":{direction:"rtl"}})}},M0=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Ru=kn("Typography",A0,M0),I0=e=>{const{prefixCls:t,"aria-label":r,className:n,style:o,direction:i,maxLength:a,autoSize:s=!0,value:l,onSave:u,onCancel:f,onEnd:d,component:p,enterIcon:w=h.createElement(uu,null)}=e,v=h.useRef(null),x=h.useRef(!1),m=h.useRef(null),[$,C]=h.useState(l);h.useEffect(()=>{C(l)},[l]),h.useEffect(()=>{var B;if(!((B=v.current)===null||B===void 0)&&B.resizableTextArea){const{textArea:b}=v.current.resizableTextArea;b.focus();const{length:y}=b.value;b.setSelectionRange(y,y)}},[]);const P=({target:B})=>{C(B.value.replace(/[\n\r]/g,""))},T=()=>{x.current=!0},j=()=>{x.current=!1},S=({keyCode:B})=>{x.current||(m.current=B)},E=()=>{u($.trim())},k=({keyCode:B,ctrlKey:b,altKey:y,metaKey:O,shiftKey:A})=>{m.current!==B||x.current||b||y||O||A||(B===al.ENTER?(E(),d?.()):B===al.ESC&&f())},L=()=>{E()},[I,_,N]=Ru(t),z=pe(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${p}`]:!!p},n,_,N);return I(h.createElement("div",{className:z,style:o},h.createElement(R0,{ref:v,maxLength:a,value:$,onChange:P,onKeyDown:S,onKeyUp:k,onCompositionStart:T,onCompositionEnd:j,onBlur:L,"aria-label":r,rows:1,autoSize:s}),w!==null?su(w,{className:`${t}-edit-content-confirm`}):null))};var vi,hl;function D0(){return hl||(hl=1,vi=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),vi}var bi,pl;function z0(){if(pl)return bi;pl=1;var e=D0(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,a)}function o(i,a){var s,l,u,f,d,p,w=!1;a||(a={}),s=a.debug||!1;try{u=e(),f=document.createRange(),d=document.getSelection(),p=document.createElement("span"),p.textContent=i,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(x){if(x.stopPropagation(),a.format)if(x.preventDefault(),typeof x.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=t[a.format]||t.default;window.clipboardData.setData(m,i)}else x.clipboardData.clearData(),x.clipboardData.setData(a.format,i);a.onCopy&&(x.preventDefault(),a.onCopy(x.clipboardData))}),document.body.appendChild(p),f.selectNodeContents(p),d.addRange(f);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");w=!0}catch(x){s&&console.error("unable to copy using execCommand: ",x),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",i),a.onCopy&&a.onCopy(window.clipboardData),w=!0}catch(m){s&&console.error("unable to copy using clipboardData: ",m),s&&console.error("falling back to prompt"),l=n("message"in a?a.message:r),window.prompt(l,i)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(f):d.removeAllRanges()),p&&document.body.removeChild(p),u()}return w}return bi=o,bi}var L0=z0();const B0=xo(L0),H0=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var F0=exports&&exports.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(f){try{u(n.next(f))}catch(d){a(d)}}function l(f){try{u(n.throw(f))}catch(d){a(d)}}function u(f){f.done?i(f.value):o(f.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const V0=({copyConfig:e,children:t})=>{const[r,n]=h.useState(!1),[o,i]=h.useState(!1),a=h.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},l={};e.format&&(l.format=e.format),h.useEffect(()=>s,[]);const u=ut(f=>F0(void 0,void 0,void 0,function*(){var d;f?.preventDefault(),f?.stopPropagation(),i(!0);try{const p=typeof e.text=="function"?yield e.text():e.text;B0(p||H0(t,!0).join("")||"",l),i(!1),n(!0),s(),a.current=setTimeout(()=>{n(!1)},3e3),(d=e.onCopy)===null||d===void 0||d.call(e,f)}catch(p){throw i(!1),p}}));return{copied:r,copyLoading:o,onClick:u}};function yi(e,t){return h.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const W0=e=>{const t=g.useRef(void 0);return g.useEffect(()=>{t.current=e}),t.current},K0=(e,t,r)=>g.useMemo(()=>e===!0?{title:t??r}:g.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]);var q0=exports&&exports.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const $u=h.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:o,rootClassName:i,setContentRef:a,children:s,direction:l,style:u}=e,f=q0(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:p,className:w,style:v}=$o("typography"),x=l??p,m=a?wn(t,a):t,$=d("typography",r);process.env.NODE_ENV!=="production"&&At("Typography").deprecated(!a,"setContentRef","ref");const[C,P,T]=Ru($),j=pe($,w,{[`${$}-rtl`]:x==="rtl"},o,i,P,T),S=Object.assign(Object.assign({},v),u);return C(h.createElement(n,Object.assign({className:j,style:S,ref:m},f),s))});process.env.NODE_ENV!=="production"&&($u.displayName="Typography");var U0={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"},G0=function(t,r){return h.createElement(qt,Xe({},t,{ref:r,icon:U0}))},ku=h.forwardRef(G0);process.env.NODE_ENV!=="production"&&(ku.displayName="CheckOutlined");var Y0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},X0=function(t,r){return h.createElement(qt,Xe({},t,{ref:r,icon:Y0}))},Ou=h.forwardRef(X0);process.env.NODE_ENV!=="production"&&(Ou.displayName="CopyOutlined");var Q0={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},Z0=function(t,r){return h.createElement(qt,Xe({},t,{ref:r,icon:Q0}))},Tu=h.forwardRef(Z0);process.env.NODE_ENV!=="production"&&(Tu.displayName="LoadingOutlined");function gl(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function xi(e,t,r){return e===!0||e===void 0?t:e||r&&t}function J0(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}const _a=e=>["string","number"].includes(typeof e),ev=({prefixCls:e,copied:t,locale:r,iconOnly:n,tooltips:o,icon:i,tabIndex:a,onCopy:s,loading:l})=>{const u=gl(o),f=gl(i),{copied:d,copy:p}=r??{},w=t?d:p,v=xi(u[t?1:0],w),x=typeof v=="string"?v:w;return h.createElement(Tn,{title:v,getPopupContainer:m=>m.parentNode},h.createElement("button",{type:"button",className:pe(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:n}),onClick:s,"aria-label":x,tabIndex:a},t?xi(f[1],h.createElement(ku,null),!0):xi(f[0],l?h.createElement(Tu,null):h.createElement(Ou,null),!0)))},eo=h.forwardRef(({style:e,children:t},r)=>{const n=h.useRef(null);return h.useImperativeHandle(r,()=>({isExceed:()=>{const o=n.current;return o.scrollHeight>o.clientHeight},getHeight:()=>n.current.clientHeight})),h.createElement("span",{"aria-hidden":!0,ref:n,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),tv=e=>e.reduce((t,r)=>t+(_a(r)?String(r).length:1),0);function ml(e,t){let r=0;const n=[];for(let o=0;o<e.length;o+=1){if(r===t)return n;const i=e[o],s=_a(i)?String(i).length:1,l=r+s;if(l>t){const u=t-r;return n.push(String(i).slice(0,u)),n}n.push(i),r=l}return e}const Ci=0,Si=1,wi=2,Ei=3,vl=4,to={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function rv(e){const{enableMeasure:t,width:r,text:n,children:o,rows:i,expanded:a,miscDeps:s,onEllipsis:l}=e,u=h.useMemo(()=>fn(n),[n]),f=h.useMemo(()=>tv(u),[n]),d=h.useMemo(()=>o(u,!1),[n]),[p,w]=h.useState(null),v=h.useRef(null),x=h.useRef(null),m=h.useRef(null),$=h.useRef(null),C=h.useRef(null),[P,T]=h.useState(!1),[j,S]=h.useState(Ci),[E,k]=h.useState(0),[L,I]=h.useState(null);Le(()=>{S(t&&r&&f?Si:Ci)},[r,n,i,t,u]),Le(()=>{var B,b,y,O;if(j===Si){S(wi);const A=x.current&&getComputedStyle(x.current).whiteSpace;I(A)}else if(j===wi){const A=!!(!((B=m.current)===null||B===void 0)&&B.isExceed());S(A?Ei:vl),w(A?[0,f]:null),T(A);const D=((b=m.current)===null||b===void 0?void 0:b.getHeight())||0,F=i===1?0:((y=$.current)===null||y===void 0?void 0:y.getHeight())||0,U=((O=C.current)===null||O===void 0?void 0:O.getHeight())||0,V=Math.max(D,F+U);k(V+1),l(A)}},[j]);const _=p?Math.ceil((p[0]+p[1])/2):0;Le(()=>{var B;const[b,y]=p||[0,0];if(b!==y){const A=(((B=v.current)===null||B===void 0?void 0:B.getHeight())||0)>E;let D=_;y-b===1&&(D=A?b:y),w(A?[b,D]:[D,y])}},[p,_]);const N=h.useMemo(()=>{if(!t)return o(u,!1);if(j!==Ei||!p||p[0]!==p[1]){const B=o(u,!1);return[vl,Ci].includes(j)?B:h.createElement("span",{style:Object.assign(Object.assign({},to),{WebkitLineClamp:i})},B)}return o(a?u:ml(u,p[0]),P)},[a,j,p,u].concat(et(s))),z={width:r,margin:0,padding:0,whiteSpace:L==="nowrap"?"normal":"inherit"};return h.createElement(h.Fragment,null,N,j===wi&&h.createElement(h.Fragment,null,h.createElement(eo,{style:Object.assign(Object.assign(Object.assign({},z),to),{WebkitLineClamp:i}),ref:m},d),h.createElement(eo,{style:Object.assign(Object.assign(Object.assign({},z),to),{WebkitLineClamp:i-1}),ref:$},d),h.createElement(eo,{style:Object.assign(Object.assign(Object.assign({},z),to),{WebkitLineClamp:1}),ref:C},o([],!0))),j===Ei&&p&&p[0]!==p[1]&&h.createElement(eo,{style:Object.assign(Object.assign({},z),{top:400}),ref:v},o(ml(u,_),!0)),j===Si&&h.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const _u=({enableEllipsis:e,isEllipsis:t,children:r,tooltipProps:n})=>!n?.title||!e?r:h.createElement(Tn,Object.assign({open:t?void 0:!1},n),r);process.env.NODE_ENV!=="production"&&(_u.displayName="EllipsisTooltip");var nv=exports&&exports.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function ov({mark:e,code:t,underline:r,delete:n,strong:o,keyboard:i,italic:a},s){let l=s;function u(f,d){d&&(l=h.createElement(f,{},l))}return u("strong",o),u("u",r),u("del",n),u("code",t),u("mark",e),u("kbd",i),u("i",a),l}const iv="...",bl=["delete","mark","code","underline","strong","keyboard","italic"],av=h.forwardRef((e,t)=>{var r;const{prefixCls:n,className:o,style:i,type:a,disabled:s,children:l,ellipsis:u,editable:f,copyable:d,component:p,title:w}=e,v=nv(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:m}=h.useContext(Wt),[$]=ep("Text"),C=h.useRef(null),P=h.useRef(null),T=x("typography",n),j=tc(v,bl),[S,E]=yi(f),[k,L]=kr(!1,{value:E.editing}),{triggerType:I=["icon"]}=E,_=ie=>{var fe;ie&&((fe=E.onStart)===null||fe===void 0||fe.call(E)),L(ie)},N=W0(k);Le(()=>{var ie;!k&&N&&((ie=P.current)===null||ie===void 0||ie.focus())},[k]);const z=ie=>{ie?.preventDefault(),_(!0)},B=ie=>{var fe;(fe=E.onChange)===null||fe===void 0||fe.call(E,ie),_(!1)},b=()=>{var ie;(ie=E.onCancel)===null||ie===void 0||ie.call(E),_(!1)},[y,O]=yi(d),{copied:A,copyLoading:D,onClick:F}=V0({copyConfig:O,children:l}),[U,V]=h.useState(!1),[Z,ae]=h.useState(!1),[me,ue]=h.useState(!1),[be,R]=h.useState(!1),[H,K]=h.useState(!0),[W,q]=yi(u,{expandable:!1,symbol:ie=>ie?$?.collapse:$?.expand}),[Y,G]=kr(q.defaultExpanded||!1,{value:q.expanded}),J=W&&(!Y||q.expandable==="collapsible"),{rows:X=1}=q,ne=h.useMemo(()=>J&&(q.suffix!==void 0||q.onEllipsis||q.expandable||S||y),[J,q,S,y]);Le(()=>{W&&!ne&&(V(ms("webkitLineClamp")),ae(ms("textOverflow")))},[ne,W]);const[se,le]=h.useState(J),Se=h.useMemo(()=>ne?!1:X===1?Z:U,[ne,Z,U]);Le(()=>{le(Se&&J)},[Se,J]);const ve=J&&(se?be:me),Ce=J&&X===1&&se,de=J&&X>1&&se,re=(ie,fe)=>{var Fe;G(fe.expanded),(Fe=q.onExpand)===null||Fe===void 0||Fe.call(q,ie,fe)},[ye,Ee]=h.useState(0),Ue=({offsetWidth:ie})=>{Ee(ie)},Pe=ie=>{var fe;ue(ie),me!==ie&&((fe=q.onEllipsis)===null||fe===void 0||fe.call(q,ie))};h.useEffect(()=>{const ie=C.current;if(W&&se&&ie){const fe=J0(ie);be!==fe&&R(fe)}},[W,se,l,de,H,ye]),h.useEffect(()=>{const ie=C.current;if(typeof IntersectionObserver>"u"||!ie||!se||!J)return;const fe=new IntersectionObserver(()=>{K(!!ie.offsetParent)});return fe.observe(ie),()=>{fe.disconnect()}},[se,J]);const Ne=K0(q.tooltip,E.text,l),xe=h.useMemo(()=>{if(!(!W||se))return[E.text,l,w,Ne.title].find(_a)},[W,se,w,Ne.title,ve]);if(k)return h.createElement(I0,{value:(r=E.text)!==null&&r!==void 0?r:typeof l=="string"?l:"",onSave:B,onCancel:b,onEnd:E.onEnd,prefixCls:T,className:o,style:i,direction:m,component:p,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const Ae=()=>{const{expandable:ie,symbol:fe}=q;return ie?h.createElement("button",{type:"button",key:"expand",className:`${T}-${Y?"collapse":"expand"}`,onClick:Fe=>re(Fe,{expanded:!Y}),"aria-label":Y?$.collapse:$?.expand},typeof fe=="function"?fe(Y):fe):null},ze=()=>{if(!S)return;const{icon:ie,tooltip:fe,tabIndex:Fe}=E,Mt=fn(fe)[0]||$?.edit,nr=typeof Mt=="string"?Mt:"";return I.includes("icon")?h.createElement(Tn,{key:"edit",title:fe===!1?"":Mt},h.createElement("button",{type:"button",ref:P,className:`${T}-edit`,onClick:z,"aria-label":nr,tabIndex:Fe},ie||h.createElement(Vl,{role:"button"}))):null},Te=()=>y?h.createElement(ev,Object.assign({key:"copy"},O,{prefixCls:T,copied:A,locale:$,onCopy:F,loading:D,iconOnly:l==null})):null,ge=ie=>[ie&&Ae(),ze(),Te()],Me=ie=>[ie&&!Y&&h.createElement("span",{"aria-hidden":!0,key:"ellipsis"},iv),q.suffix,ge(ie)];return h.createElement(Mr,{onResize:Ue,disabled:!J},ie=>h.createElement(_u,{tooltipProps:Ne,enableEllipsis:J,isEllipsis:ve},h.createElement($u,Object.assign({className:pe({[`${T}-${a}`]:a,[`${T}-disabled`]:s,[`${T}-ellipsis`]:W,[`${T}-ellipsis-single-line`]:Ce,[`${T}-ellipsis-multiple-line`]:de},o),prefixCls:n,style:Object.assign(Object.assign({},i),{WebkitLineClamp:de?X:void 0}),component:p,ref:wn(ie,C,t),direction:m,onClick:I.includes("text")?z:void 0,"aria-label":xe?.toString(),title:w},j),h.createElement(rv,{enableMeasure:J&&!se,text:l,rows:X,width:ye,onEllipsis:Pe,expanded:Y,miscDeps:[A,Y,D,S,y,$].concat(et(bl.map(fe=>e[fe])))},(fe,Fe)=>ov(e,h.createElement(h.Fragment,null,fe.length>0&&Fe&&!Y&&xe?h.createElement("span",{key:"show-content","aria-hidden":!0},fe):fe,Me(Fe)))))))}),sv=h.forwardRef((e,t)=>h.createElement(av,Object.assign({ref:t},e,{component:"div"}))),Pu=(e,t,r=null)=>{for(let n=0;n<e.length;n++){const o=e[n];if(o.key===t)return{node:o,ctx:{parent:r,index:n,siblings:e}};if(o.children?.length){const i=Pu(o.children,t,o);if(i.node)return i}}return{node:null,ctx:null}},Nu=(e,t)=>{if(!e.children)return!1;for(const r of e.children)if(r.key===t||Nu(r,t))return!0;return!1};function lv({open:e,onClose:t}){const{nodes:r,rootIds:n,addFolder:o,editFolder:i,removeFolder:a,removeMenu:s,moveNode:l}=gt.useFavoriteStore(),u=g.useRef(null),[f,d]=g.useState([]),[p,w]=g.useState([]),[v,x]=g.useState(""),[m,$]=g.useState("ADD"),[C,P]=g.useState(!1),[T,j]=g.useState("");g.useEffect(()=>{e&&w(n)},[e]),g.useEffect(()=>{const k=S(r,n);d(k)},[r]),g.useEffect(()=>{C&&T&&(u.current.setFieldValue("prntBkmkId",T),u.current.setFieldValue("prntBkmkNm",r[T]?.bkmkNm??"-")),C&&m==="EDIT"&&(u.current.setFieldValue("bkmkId",T),u.current.setFieldValue("bkmkNm",r[T]?.bkmkNm)),!C&&m=="ADD"&&w(k=>[...k,T]),!C&&u.current&&(j("-"),u.current.resetFields())},[C,m,T,r]);const S=(k,L)=>{const I=(_,N="-")=>{const z=k[_];if(!z)return null;const B={key:z.bkmkId,type:z.type,title:z.type==="F"?z.bkmkNm:z.menuNm?`${z.menuNm} (${z.menuId})`:z.menuId,parentId:N,sortOrdr:z.sortOrdr??0};if(z.type==="F"){const y=(z.children??[]).map(O=>I(O,z.bkmkId)).filter(Boolean);return{...B,children:y}}return B};return L.map(_=>I(_,"-")).filter(Boolean)},E=()=>{if($("ADD"),!v){j("-"),P(!0);return}const k=r[v];if(!k){j("-"),P(!0);return}k.type==="F"?j(k.bkmkId):j(k.prntBkmkId),P(!0)};return c.jsxs(M.ConfigProvider,{theme:{components:{Modal:{wireframe:!0}}},children:[c.jsxs(M.Modal,{open:e,okButtonProps:{style:{display:"none"}},cancelText:"닫기",width:560,style:{zIndex:1001},styles:{body:{paddingTop:"12px"}},title:c.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:c.jsxs(M.Typography.Text,{strong:!0,style:{fontSize:18},children:[c.jsx(ce.FolderOpenFilled,{style:{marginRight:10,fontSize:18,color:"#faad14"}}),"북마크 관리"]})}),onCancel:t,children:[c.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginBottom:10},children:[c.jsx(M.Button,{color:"blue",variant:"outlined",icon:c.jsx(ce.FolderAddOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:E,children:"새 폴더"}),c.jsxs("div",{children:[c.jsx(M.Tooltip,{title:"펼치기",children:c.jsx(M.Button,{icon:c.jsx(ce.PlusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>{const k=Object.values(r).filter(L=>L.type==="F").map(L=>L.bkmkId);w(k)}})}),c.jsx(M.Tooltip,{title:"접기",children:c.jsx(M.Button,{icon:c.jsx(ce.MinusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>w([])})})]})]}),c.jsxs("div",{style:{maxHeight:420,height:350,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:8,padding:8},children:[f.length==0&&c.jsx(M.Empty,{description:c.jsxs(M.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",c.jsx("br",{}),"새로운 폴더를 생성해보세요."]})}),c.jsx(M.Tree,{blockNode:!0,draggable:!0,allowDrop:({dropNode:k,dropPosition:L})=>{const I=k.type==="F";return L===0?I:!0},onDrop:k=>{const{dragNode:L,node:I,dropPosition:_,dropToGap:N}=k;if(L.key===I.key||Nu(L,I.key))return;let z,B;if(N){const y=Pu(f,I.key).ctx,O=y.index;z=y.parent?y.parent.key:"-",B=_>0?O+1:O}else{if(I.type!=="F")return;const y=I.children||[];z=I.key,B=y.length}const b=ot.getUserId();if(L.type==="F")l({bkmkId:L.key,newPrntBkmkId:z,sortOrdr:B,userId:b}).catch(()=>{M.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(z==="-"){M.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}l({bkmkId:L.key,newPrntBkmkId:z,sortOrdr:B,userId:b}).catch(()=>{M.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}N===!1&&w(y=>Array.from(new Set([...y,I.key])))},showLine:!0,treeData:f,selectedKeys:[v],expandedKeys:p,onExpand:w,onSelect:k=>x(k[0]),titleRender:k=>c.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[c.jsxs("span",{children:[k.type==="F"?"📁":"📄"," ",k.title,k.isNew?c.jsx(M.Tag,{color:"gold",style:{marginLeft:4,fontSize:"10px",height:"16px",lineHeight:"16px",padding:"0 5px"},children:"N"}):null]}),c.jsxs("span",{style:{display:"inline-flex",gap:8},children:[k.type==="F"&&c.jsxs(c.Fragment,{children:[c.jsx(ce.PlusOutlined,{style:{opacity:.8},onClick:()=>{$("ADD"),j(k.key),P(!0)}}),c.jsx(ce.EditOutlined,{style:{opacity:.8},onClick:()=>{$("EDIT"),j(k.key),P(!0)}})]}),c.jsx(ce.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{k.type==="F"?M.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>a(k.key)}):M.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>s(k.key)})}})]})]})})]})]}),c.jsx(M.ConfigProvider,{theme:{components:{Modal:{titleColor:m==="ADD"?"#0958d9":"#d46b08",headerBg:m==="ADD"?"#e6f4ff":"#fff7e6"}}},children:c.jsx(M.Modal,{title:c.jsxs(c.Fragment,{children:[m==="ADD"?c.jsx(ce.FolderAddOutlined,{style:{marginRight:10,fontSize:18,color:"#1677ff"}}):c.jsx(ce.EditOutlined,{style:{marginRight:10,fontSize:18,color:"#d46b08"}}),c.jsxs(M.Typography.Text,{strong:!0,style:{fontSize:17},children:["폴더",m==="ADD"?" 추가":"명 수정"]})]}),open:C,okText:"저장",onOk:()=>{const k=u.current.getFieldValue("bkmkNm"),L=ot.getUserId();if(m==="ADD"){const I=__SYS_CD__??"KH",_=u.current.getFieldValue("prntBkmkId");o(k,_,I,L).then(()=>{P(!1)})}else{const I=u.current.getFieldValue("bkmkId");i(I,L,k).then(()=>{P(!1)})}},centered:!0,width:400,onCancel:()=>P(!1),children:c.jsxs(Vn.BwgForm,{ref:u,children:[c.jsx(Vn.BwgInput,{itemProps:{name:m==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),c.jsx(Vn.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:T==="-"||m==="EDIT"},inputProps:{disabled:!0}}),c.jsx(Vn.BwgInput,{itemProps:{label:"폴더명",name:"bkmkNm"}})]})})})]})}function cv({triggerIcon:e}){const[t,r]=g.useState(!1),[n,o]=g.useState(""),[i,a]=g.useState(null),[s,l]=g.useState([]),[u,f]=g.useState([]),[d,p]=g.useState(!1),[w,v]=g.useState(!1),[x,m]=g.useState(!1),[$,C]=g.useState(null);gt.useFavoriteStore(D=>D.treeNodes);const{nodes:P,getPrntBkmkIdByMenuId:T,getNodeByMenuId:j,isMenuBookmarked:S,removeMenuByMenuId:E,addMenuToFolder:k,convertToAntTreeData:L}=gt.useFavoriteStore(),I=gt.useFavoriteStore(D=>D.rootIds),_=g.useMemo(()=>L(P,I,n,!0),[P,I,n]),N=gt.useMenuViewStore(D=>D.activeMenuItem??{menuId:"",menuNm:""}),z=g.useMemo(()=>{if(!N?.menuId)return"";const D=j(N.menuId);if(!D)return"";if(D.fullPath)return D.fullPath;const F=U=>{const V=P[U];if(!V)return"";if(V.prntBkmkId==="-")return`${V.bkmkNm||N?.menuNm}`;const Z=F(V.prntBkmkId);return Z?`${Z} > ${V.bkmkNm||N?.menuNm}`:V.bkmkNm||N?.menuNm};return console.log("bookmarkNode ::::: ",D),console.log(F(D.bkmkId)),F(D.bkmkId)},[N?.menuId,j,P]);g.useEffect(()=>{t&&N?.menuId&&S(N.menuId)?f([T(N.menuId)]):t&&N?.menuId&&!S(N.menuId)?f(I):(f([]),l([]),C(null),m(!1))},[t,N?.menuId,S,T]),g.useEffect(()=>{if(!x||!N?.menuId)return;const D=T(N.menuId);!D||!P[D]||(o(""),l([D]),C(D))},[x,N?.menuId,P,T]);const B=(D,F)=>{k(D,F).then(U=>{console.log("AddMenuToFolder ::::: ",U),U||f(V=>V.includes(D)?V:[...V,D])})},b=D=>{E(D)},y=async D=>{N?.menuId&&(await E(N.menuId),await k(D,N),m(!1),C(null),f(F=>F.includes(D)?F:[...F,D]))},O=()=>c.jsxs("div",{style:{width:360},children:[c.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:c.jsxs(M.Space,{direction:"vertical",style:{width:"100%"},children:[c.jsxs(M.Typography.Text,{strong:!0,style:{fontSize:18},children:[c.jsx(M.Button,{type:"text",icon:c.jsx(ce.ArrowLeftOutlined,{}),onClick:()=>m(!1),style:{marginRight:4}}),"폴더 변경"]}),N&&c.jsxs(M.Typography.Text,{type:"secondary",children:["현재 화면: ",c.jsx("b",{children:N.menuNm})," ",c.jsxs("span",{style:{opacity:.7},children:["(",N.menuId,")"]})]})]})}),A(),c.jsxs("div",{style:{padding:12,borderTop:"1px solid #f0f0f0",display:"flex",justifyContent:"flex-end",gap:8},children:[c.jsx(M.Button,{onClick:()=>{m(!1),C(null)},children:"취소"}),c.jsx(M.Button,{type:"primary",disabled:!$,onClick:()=>$&&y(String($)),children:"이동"})]})]}),A=()=>c.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:8},children:[c.jsxs(M.Space,{style:{width:"100%",marginBottom:8,display:"flex",justifyContent:"space-between"},children:[c.jsx(M.Input,{placeholder:"검색(폴더명)",prefix:c.jsx(ce.SearchOutlined,{}),allowClear:!0,value:n,onChange:D=>o(D.target.value),style:{width:"260px",height:28}}),c.jsxs(M.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#6f6f6f",defaultHoverBorderColor:"#6f6f6f"}}},children:[c.jsx(M.Button,{icon:c.jsx(ce.PlusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>{const D=Object.values(P).filter(F=>F.type==="F").map(F=>F.bkmkId);f(D)},title:"모두 확장"}),c.jsx(M.Button,{icon:c.jsx(ce.MinusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>f([]),title:"모두 축소"})]})]}),_.length===0?c.jsx(M.Empty,{description:c.jsxs(M.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",c.jsx("br",{}),"새로운 폴더를 만들어 시작해보세요."]}),image:M.Empty.PRESENTED_IMAGE_SIMPLE}):c.jsx(M.Tree,{blockNode:!0,showLine:!0,treeData:_,selectedKeys:s,expandedKeys:u,onExpand:f,onSelect:D=>{l(D),C(D[0])},autoExpandParent:!0,titleRender:D=>{const F=String(D.key),U=i===F;return c.jsxs("div",{onMouseEnter:()=>a(F),onMouseLeave:()=>a(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[c.jsx("div",{children:D.title}),!S(N?.menuId)&&N&&U&&c.jsx(M.Button,{size:"small",type:"link",onClick:V=>{V.stopPropagation(),B(F,N)},children:"+ 현재화면 추가"})]})}})]});return c.jsxs(c.Fragment,{children:[c.jsx(M.Popover,{open:t&&!d,onOpenChange:r,trigger:"click",placement:"bottomLeft",styles:{body:{padding:0,borderRadius:12,border:"1px solid #e8edf5",boxShadow:"0 12px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08)",background:"#fcfcff",zIndex:1e3}},content:x?O():c.jsxs("div",{style:{width:360},children:[c.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:c.jsxs(M.Space,{direction:"vertical",style:{width:"100%"},children:[c.jsxs(M.Typography.Text,{strong:!0,style:{fontSize:18},children:["📌 북마크"," ",S(N?.menuId)?"저장됨":"추가"]}),N&&c.jsxs(M.Typography.Text,{type:"secondary",children:["현재 화면: ",c.jsx("b",{children:N.menuNm})," ",c.jsxs("span",{style:{opacity:.7},children:["(",N.menuId,")"]})]})]})}),S(N?.menuId)?c.jsxs("div",{style:{padding:12,margin:8,borderRadius:8,backgroundColor:"#f5f5f5"},children:[c.jsx(M.Typography.Text,{type:"secondary",style:{fontSize:12},children:"저장 위치"}),c.jsx("div",{style:{marginTop:4},children:`📁 > ${z}`||"알 수 없음"})]}):A(),c.jsxs(Nt,{style:{padding:8,borderTop:"1px solid #f0f0f0"},layoutAlign:"right",children:[N&&!S(N.menuId)?c.jsx(M.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},type:"primary",icon:c.jsx(ce.PlusOutlined,{}),onClick:()=>{const D=String(s[0]);let F="-";D&&P[D]&&(F=P[D].type=="M"?P[D].prntBkmkId:D),B(F,N)},children:"추가"}):c.jsxs(Nt,{layoutAlign:"between",children:[c.jsx(M.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:c.jsx(ce.FolderOpenOutlined,{}),onClick:()=>m(!0),children:"폴더 변경"}),c.jsx(M.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},color:"danger",variant:"solid",icon:c.jsx(ce.MinusOutlined,{}),onClick:()=>b(N.menuId),children:"삭제"})]}),c.jsx(M.Button,{type:"text",style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:c.jsx(ce.SettingOutlined,{}),onClick:()=>{v(t),p(!0)},children:"관리"})]})]}),children:c.jsx("span",{style:{cursor:"pointer",display:"inline-flex",alignItems:"center"},children:e})}),c.jsx(lv,{open:d,onClose:()=>{p(!1),w&&r(!0)}})]})}const uv=({reqRows:e,subRows:t})=>{const{searchBoxRef:r}=dr.useSearchBox();return c.jsx(la,{ref:r,reqRows:e,subRows:t})},dv=({children:e,searchBox:t,title:r,preRenderEvents:n=[],postRenderEvents:o=[],loading:i=!1,error:a=null,grantEvent:s={},customEvent:l={},buttons:u})=>{dr.useServiceCodeValue("AUTH_BTNS");const{user:f}=gt.useUserStore(),{activeMenuItem:d}=gt.useMenuViewStore(),{loadFavoritesIfNeeded:p,isMenuBookmarked:w}=gt.useFavoriteStore(),{loading:v}=gt.useLoadingStore(),[x,m]=g.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),{openCorePopup:$}=dr.usePopup(),C=async()=>{if(n.length===0){m(I=>({...I,preRenderComplete:!0}));return}try{for(const I of n)await I();m(I=>({...I,preRenderComplete:!0}))}catch(I){m(_=>({..._,error:I instanceof Error?I.message:"사전 렌더링 실패",preRenderComplete:!0}))}},P=async()=>{if(o.length===0){m(I=>({...I,postRenderComplete:!0}));return}try{for(const I of o)await I();m(I=>({...I,postRenderComplete:!0}))}catch(I){m(_=>({..._,error:I instanceof Error?I.message:"사후 렌더링 실패",postRenderComplete:!0}))}};g.useEffect(()=>{if(x.isInitialized)return;(async()=>{try{await C(),m(_=>({..._,isInitialized:!0,loading:!1}))}catch(_){console.error("BwgView 초기화 실패:",_),m(N=>({...N,isInitialized:!0,loading:!1}))}})()},[]),g.useEffect(()=>{f?.userId&&p(f.userId)},[p,f?.userId]),g.useEffect(()=>{x.isInitialized&&x.preRenderComplete&&!x.isReady&&setTimeout(async()=>{await P(),m(_=>({..._,isReady:!0}))},100)},[x.isInitialized,x.preRenderComplete,x.isReady]),g.useEffect(()=>{a&&m(I=>({...I,error:a}))},[a]);const T=()=>c.jsxs("div",{className:"bwgview-header-container",children:[c.jsxs("div",{className:"bwgview-header",children:[c.jsx("div",{className:"bwgview-header-left",children:L.LEFT}),c.jsx("div",{className:"bwgview-header-right",children:L.RIGHT})]}),t&&c.jsx(uv,{reqRows:t.reqRows,subRows:t.subRows})]});if(g.useEffect(()=>{},[f,d]),x.error||a)return c.jsx("div",{style:{padding:"24px"},children:c.jsx(M.Alert,{message:"오류 발생",description:x.error||a,type:"error",showIcon:!0})});const j=()=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:c.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62179 6.15374 7.92513 5.5344L9.9348 1.4645Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10"})}),S=()=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:c.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62178 6.15374 7.92513 5.5344L9.9348 1.4645Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",fill:"none"})}),E=I=>c.jsx(ce,{component:j,...I}),k=I=>c.jsx(ce,{component:S,...I}),L={LEFT:c.jsx("div",{className:"bwgview-header-left",children:c.jsxs(M.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[c.jsxs(M.Space,{children:[d&&c.jsx(cv,{triggerIcon:w(d.menuId)?c.jsx(E,{className:"bookmark-icon",style:{color:"#faad14"}}):c.jsx(k,{className:"bookmark-icon"})}),c.jsxs(M.Space.Compact,{style:{alignItems:"center"},children:[c.jsx("span",{className:"pageMenuNm",children:(()=>{let I="";return r?.useMenuTitle&&d?I=d.menuNm:r?.text?I=r.text:d&&(I=d.menuPrntId==="CM00"?d.menuNm.substring(d.menuNm.indexOf(" ")+1):d.menuNm),r?.prefix&&(I=`${r.prefix} ${I}`),r?.suffix&&(I=`${I} ${r.suffix}`),I})()}),d?.menuNo&&c.jsx(M.Tag,{className:"page-num-tag",children:d?.menuNo}),c.jsx(M.Tooltip,{title:"도움말",color:"geekblue",children:c.jsx(M.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:c.jsx(ce.QuestionCircleTwoTone,{twoToneColor:"orange"})})}),c.jsx(M.Tooltip,{title:"게시판",color:"geekblue",children:c.jsx(M.Button,{variant:"text",type:"text",onClick:()=>$("CORE_REPORT"),icon:c.jsx(ce.BugFilled,{style:{color:"#1890ff"}})})})]})]}),d?.scrnId&&ot.isLocal&&c.jsx(M.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:c.jsx(sv,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:d?.scrnId})})]})}),RIGHT:c.jsx("div",{className:"bwgview-header-right",children:c.jsx(M.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:c.jsxs(M.Space,{children:[c.jsx(M.Flex,{gap:8,children:c.jsx($i,{checkAuth:d?.menuId?{menuId:d.menuId,grpId:"CUSTOM"}:!1,buttons:u?.custom||[],gap:8})}),c.jsx(M.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:c.jsx(M.Divider,{type:"vertical"})}),c.jsx(M.Flex,{gap:8,className:"permission-buttons",children:c.jsx($i,{checkAuth:d?.menuId?{menuId:d.menuId,grpId:"DEFAULT"}:!1,buttons:u?.grant||[],gap:8})})]})})})};return c.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[T(),c.jsxs("div",{className:"bwgview-content",children:[c.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(x.loading||i||v)&&c.jsx(Hu.LoadingContainer,{text:v?"처리 중...":"화면 로드 중..."})]})]})},fv=({children:e,customTheme:t,customComponentSize:r="middle"})=>{const n={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',fontSize:14,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,padding:16,margin:16,borderRadius:6,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:M.theme.defaultAlgorithm},o={...n,...t,token:{...n.token,...t?.token}};return c.jsx(M.ConfigProvider,{locale:El,theme:o,componentSize:r,space:{size:r},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:e})},hv="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9289)'%3e%3cpath%20d='M27.3705%2010.9919C28.5405%2010.9919%2029.489%2010.0434%2029.489%208.87338C29.489%207.70337%2028.5405%206.75488%2027.3705%206.75488C26.2004%206.75488%2025.252%207.70337%2025.252%208.87338C25.252%2010.0434%2026.2004%2010.9919%2027.3705%2010.9919Z'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M30.3053%2017.2998V32.3098H24.4248V17.2998'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M27.3701%2032.31V23.3135'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.2305%2022.1925V17.642V15.6945C22.2305%2014.3075%2023.3515%2013.1865%2024.7385%2013.1865H29.9825C31.3695%2013.1865%2032.4905%2014.3075%2032.4905%2015.6945V17.642V22.1925'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.2519%2021.4229H18.6199C19.1044%2021.4229%2019.5034%2021.8219%2019.5034%2022.3064V24.4154H16.3779V22.3064C16.3779%2021.8219%2016.7769%2021.4229%2017.2614%2021.4229H17.2519Z'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20.8339%2024.4062H15.0294C14.6254%2024.4062%2014.2979%2024.7338%2014.2979%2025.1377V31.6832C14.2979%2032.0872%2014.6254%2032.4147%2015.0294%2032.4147H20.8339C21.2378%2032.4147%2021.5654%2032.0872%2021.5654%2031.6832V25.1377C21.5654%2024.7338%2021.2378%2024.4062%2020.8339%2024.4062Z'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16.8252%2027.1895V29.631'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.0391%2027.1895V29.631'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.71875%2014.1642H8.53075C9.03425%2014.1642%209.49025%2013.8602%209.68025%2013.4042L10.3263%2011.8652'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.4991%205.54803L12.2266%2011.8655H17.5371L19.8836%205.51953L17.4991%205.54803Z'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.2017%2016.4639H6.57421C5.97571%2016.4639%205.49121%2015.9794%205.49121%2015.3809C5.49121%2013.4334%207.06821%2011.8564%209.01571%2011.8564H20.3492'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.56738%2032.4805H32.2909'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9289'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",pv="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9314)'%3e%3cpath%20d='M15.1807%2019.3994L18.7717%2029.7164'%20stroke='%23FF8CC3'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9033%209.25293L12.6063%2011.2574C12.6063%2011.2574%2010.7443%2014.7724%2013.2618%2022.0209'%20stroke='%23FF8CC4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9033%209.25293L12.6063%2011.2574C12.6063%2011.2574%2016.2448%2012.8534%2018.7718%2020.1019'%20stroke='%23FF8CC4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.8257%2016.71C22.2202%2012.112%2017.1947%209.67999%2012.5967%2011.276C7.99871%2012.8815%205.56671%2017.907%207.16271%2022.505L7.67571%2023.968L7.88471%2023.892C7.93221%2022.7235%208.67321%2021.6405%209.85121%2021.232C11.0292%2020.8235%2012.2737%2021.2035%2013.0432%2022.0965L13.4422%2021.954C13.4897%2020.7855%2014.2307%2019.7025%2015.4087%2019.294C16.5867%2018.8855%2017.8312%2019.2655%2018.6007%2020.1585L18.9997%2020.016C19.0472%2018.8475%2019.7882%2017.7645%2020.9662%2017.356C22.1442%2016.9475%2023.3887%2017.3275%2024.1582%2018.2205L24.3577%2018.154L23.8447%2016.691L23.8257%2016.71Z'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.37%2015.4193C23.636%2015.4858%2023.9115%2015.5238%2024.1965%2015.5238C26.068%2015.5238%2027.5785%2014.0038%2027.5785%2012.1418C27.5785%2010.2798%2026.0585%208.75977%2024.1965%208.75977C22.3345%208.75977%2020.8145%2010.2798%2020.8145%2012.1418'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M24.2061%206.12784V5.00684'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.8641%207.79018L19.1611%207.09668'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.5381%2016.4736L29.2411%2017.1766'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M30.21%2012.1318H31.331'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.5469%207.79018L29.2404%207.09668'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M29.3355%2029.8213H14.2305'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.2302%2029.8213L10.3447%2025.2803'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8527%2028.4531L7.76074%2032.9941'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.8447%2029.8213L27.4072%2032.9943'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9314'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",gv="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9273)'%3e%3cpath%20d='M25.9254%2020.8996C27.5151%2020.8996%2028.8039%2019.6108%2028.8039%2018.0211C28.8039%2016.4313%2027.5151%2015.1426%2025.9254%2015.1426C24.3356%2015.1426%2023.0469%2016.4313%2023.0469%2018.0211C23.0469%2019.6108%2024.3356%2020.8996%2025.9254%2020.8996Z'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M31.4825%2032.4711V25.9066C31.4825%2024.5671%2030.485%2023.4746%2029.2595%2023.4746H22.6C21.3745%2023.4746%2020.377%2024.5671%2020.377%2025.9066'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M25.2696%2026.7334H14.2686L16.5106%2032.6234H27.5021L25.2696%2026.7334Z'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.5617%2018.8385C6.1462%2017.4135%205.2627%2015.447%205.2627%2013.2715C5.2627%208.91095%208.7967%205.37695%2013.1572%205.37695C17.5177%205.37695%2021.0517%208.91095%2021.0517%2013.2715C21.0517%2015.124%2020.4152%2016.815%2019.3512%2018.164C18.0497%2019.8075%2016.1117%2020.919%2013.9172%2021.128'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.1572%2013.2715L16.0167%2015.5705'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.1572%208.62598V13.2715'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.35963%2016.1973L7.84663%2019.1328L4.91113%2018.6293'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.91113%2032.623H33.0881'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9273'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",mv=({children:e})=>{const[t,r]=g.useState({x:0,y:0}),[n,o]=g.useState(!1),[i,a]=g.useState({x:0,y:0}),[s,l]=g.useState(!1),[u,f]=g.useState(!0),d=g.useRef(null),p=[{id:"overtime",title:"시간 외 근무신청",icon:c.jsx("img",{src:gv,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:c.jsx("img",{src:hv,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:c.jsx("img",{src:pv,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:c.jsx(ce.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:c.jsx(ce.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:c.jsx(ce.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];g.useEffect(()=>{const C=()=>{const P=window.innerHeight,j=Math.max(64,(P-300)/3);r({x:0,y:j});const S=P/2;f(j<S)};return C(),window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[]);const w=C=>{if(C.preventDefault(),C.stopPropagation(),d.current){const P=d.current.getBoundingClientRect();a({x:C.clientX-P.left,y:C.clientY-P.top}),o(!0)}},v=C=>{if(n){const P=C.clientY-i.y,T=window.innerHeight-24,S=Math.max(64,Math.min(T,P));r({x:t.x,y:S});const E=window.innerHeight/2;f(S<E)}},x=()=>{o(!1)},m=()=>{l(!s)},$=C=>{C.onClick&&C.onClick()};return g.useEffect(()=>{if(n)return document.addEventListener("mousemove",v),document.addEventListener("mouseup",x),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",x)}},[n,i]),c.jsxs("div",{className:"quick-tab-container",ref:d,style:{position:"fixed",right:0,top:t.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[c.jsxs("div",{className:"quick-tab",style:{position:"absolute",right:"40px",top:u?0:"auto",bottom:u?"auto":0,display:"flex",flexDirection:"column",gap:"15px",border:"1px solid #E0DEEF",borderRadius:"15px",padding:"8px",boxShadow:"0 0 10px rgba(0, 0, 0, 0.3)",minWidth:"88px",maxWidth:"88px",maxHeight:u?`calc(100vh - ${t.y+12}px)`:`${t.y-12}px`,transform:s?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:u&&t.y<100?"32px":"0",marginBottom:!u&&t.y>window.innerHeight-100?"8px":"0"},children:[c.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:u?`calc(100vh - ${t.y+120}px)`:`${t.y-60}px`,padding:"14px 0"},children:p.map(C=>c.jsx(M.Card,{className:"quick-tab-items",size:"small",style:{border:"none",boxShadow:"none",marginBottom:"15px",cursor:"pointer",transition:"all 0.2s ease"},styles:{body:{padding:"0"}},onClick:()=>$(C),onMouseEnter:P=>{},onMouseLeave:P=>{},children:c.jsxs("div",{className:"quick-tab-item-inner",children:[c.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:C.color,marginBottom:"5px"},children:C.icon}),c.jsx("div",{className:"quick-tab-items-title",children:C.title})]})},C.id))}),c.jsx("div",{className:"quick-tab-add-btn",style:{height:"30px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",flexShrink:0,marginBottom:"7px"},onMouseEnter:C=>{},onMouseLeave:C=>{},children:c.jsx(ce.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),c.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:n?"grabbing":"grab",zIndex:1001},onMouseDown:C=>w(C)}),c.jsx(M.Button,{className:`quick-tab-toggle-btn ${s?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:m})]})},vv=()=>{const{verifyWithToken:e}=dr.useAuth(),t=Ma.useNavigate(),r=Ma.useLocation();return g.useEffect(()=>{const o=new URLSearchParams(r.search).get("token");if(!o){t("/login",{replace:!0});return}(async()=>{const i=await e(o);t(i?"/main":"/login",{replace:!0})})()},[r.search]),c.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:c.jsx(M.Spin,{tip:"인증중..."})})},bv=e=>{if(e==null)return"";const t=String(e).trim();return!t||t.toUpperCase()==="NULL"?"":t.toUpperCase()},ji=(e,t=0)=>{const r=Number(e);return Number.isFinite(r)?r:t};function ln(e){return{crprCd:e.crprCd||void 0,wkplCd:e.wkplCd||void 0,deptCd:bv(e.deptCd),deptNm:(e.deptNm??"").toString().trim(),hrnkDeptCd:e.hrnkDeptCd||null,hrnkDeptNm:e.hrnkDeptNm||null,deptGbCd:e.deptGbCd||null,deptLvl:ji(e.deptLvl,e.hrnkDeptCd?2:1),orgSortOrd:ji(e.orgSortOrd,0),orgOtptOrd:ji(e.orgOtptOrd,0),deptAbrv:e.deptAbrv||null,deptFullNm:e.deptFullNm||null,deptEnglNm:e.deptEnglNm||null,isLeaf:e.isLeaf||null}}function yv(e){const t=new Set,r=e.map(ln).filter(s=>s.deptCd).filter(s=>(s.deptCd===s.hrnkDeptCd&&(s.hrnkDeptCd=""),!0)).filter(s=>t.has(s.deptCd)?!1:(t.add(s.deptCd),!0));r.sort((s,l)=>(s.deptLvl||0)-(l.deptLvl||0)||(s.orgSortOrd||0)-(l.orgSortOrd||0)||s.deptCd.localeCompare(l.deptCd));const n=new Map;for(const s of r)n.set(s.deptCd,{...s,children:[]});const o=[];for(const s of r){const l=n.get(s.deptCd),u=s.hrnkDeptCd;u&&n.has(u)?n.get(u).children.push(l):o.push(l)}const i=s=>{!s||s.length===0||(s.sort((l,u)=>l.deptCd.localeCompare(u.deptCd)),s.forEach(l=>i(l.children)))};i(o);const a=s=>{if(!s.children||s.children.length===0){delete s.children;return}s.children.forEach(a)};if(o.forEach(a),o.length>1){const s=o.find(l=>l.deptCd==="D00");if(s)return[s]}return o}function xv(e){const t=e.map(ln),r=t.filter(n=>n.isLeaf!=="Y").map(n=>n.deptCd);return r.length>200?t.filter(n=>(n.deptLvl||0)<=2).map(n=>n.deptCd):r}const Au=({popup:e,onClose:t})=>{const[r,n]=g.useState(""),[o,i]=g.useState([]),[a,s]=g.useState([]),[l,u]=g.useState([]),[f,d]=g.useState(!1),p=g.useCallback(async S=>{try{d(!0);const E=await ot.callService("SCMUTIL00103",{...e?.popupParams,...S}),k=Array.isArray(E?.data)?E.data:Array.isArray(E?.deptList)?E.deptList:Array.isArray(E)?E:[],L=yv(k);u(L);const I=xv(k);i(I);const _=L[0]?.deptCd||ln(k.find(N=>ln(N).deptLvl===1)||{}).deptCd||ln(k[0]||{}).deptCd||"";s(_?[_]:[])}catch{M.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{d(!1)}},[e?.popupParams]);g.useEffect(()=>{p()},[p]);const w=g.useCallback((S,E)=>{for(const k of S){if(k.deptCd===E)return k;if(k.children){const L=w(k.children,E);if(L)return L}}return null},[]),v=g.useMemo(()=>{const S=a[0];return S?w(l,S):null},[a,l,w]),x=g.useMemo(()=>{const S=k=>k.map(L=>({title:L.deptNm,key:L.deptCd,meta:L,children:L.children?S(L.children):void 0}));return S(l)},[l]),m=g.useMemo(()=>{const S=r.trim().toLowerCase();if(!S)return x;const E=k=>k.map(L=>{const I=L.meta,_=(I?.deptNm||"").toLowerCase().includes(S)||(I?.deptCd||"").toLowerCase().includes(S),N=L.children?E(L.children):void 0;return _||N&&N.length?{...L,children:N}:null}).filter(Boolean);return E(x)},[x,r]),$=g.useCallback(S=>{s(S.slice(0,1).map(String))},[]),C=g.useCallback(S=>i(S.map(String)),[]),P=g.useCallback((S,E)=>{if(S.stopPropagation(),!E.children||E.children.length===0)return;const k=o.includes(E.key);i(L=>k?L.filter(I=>I!==E.key):[...L,E.key])},[o]),T=g.useCallback(()=>s([]),[]),j={confirm:()=>{if(!v){M.message.error("부서를 선택해주세요.");return}const S={deptCd:v.deptCd,deptNm:v.deptNm,hrnkDeptCd:v.hrnkDeptCd,hrnkDeptNm:v.hrnkDeptNm,deptLvl:v.deptLvl,orgSortOrd:v.orgSortOrd};e?.config?.callback?.(JSON.stringify(S)),e?.close?.()}};return c.jsx(Sn,{popup:e,buttons:[{id:"confirm",label:"확인",onClick:()=>{j.confirm()}}],popupEvent:j,onClose:()=>{e?.close?.(),t?.()},children:c.jsx(Nt,{children:c.jsx(fr,{border:!1,style:{paddingBottom:20},children:c.jsxs(M.Splitter,{layout:"vertical",style:{height:"100%"},children:[c.jsxs(M.Splitter.Panel,{defaultSize:"70%",min:"70%",max:"75%",children:[c.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:8},children:c.jsxs(M.Flex,{gap:8,vertical:!0,style:{marginBottom:6},children:[c.jsx(Vt,{title:"조직도"}),c.jsx(M.Row,{gutter:[16,16],children:c.jsx(M.Col,{span:24,children:c.jsx(M.Input,{placeholder:"부서명, 부서코드 검색",prefix:c.jsx(ce.SearchOutlined,{}),value:r,allowClear:!0,onChange:S=>n(S.target.value)})})})]})}),c.jsx("div",{style:{padding:16,overflowY:"hidden"},children:c.jsx(M.Spin,{spinning:f,children:c.jsx(M.Tree,{treeData:m,expandedKeys:o,selectedKeys:a,onSelect:$,onExpand:C,onDoubleClick:P,showLine:!0,showIcon:!1,selectable:!0,style:{overflow:"hidden"},titleRender:S=>{const E=S.meta;return c.jsxs("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"2px 4px",width:"100%",fontWeight:a.includes(S.key)?"bold":"normal"},children:[c.jsx("span",{children:E.deptNm}),c.jsx("span",{style:{fontSize:11,color:"#999",marginLeft:8},children:E.deptCd})]})}})})})]}),c.jsx(M.Splitter.Panel,{collapsible:!0,children:c.jsxs("div",{style:{padding:16,overflowY:"hidden",height:"100%"},children:[c.jsx("h3",{style:{margin:"0 0 12px 0",fontSize:16,fontWeight:700},children:"선택된 부서"}),v?c.jsxs("div",{style:{display:"flex",alignItems:"center",padding:14,border:"1px solid #e0e0e0",borderRadius:12,background:"#fafafa"},children:[c.jsx("div",{style:{width:42,height:42,borderRadius:"50%",border:"1px solid #e6e6e6",display:"flex",alignItems:"center",justifyContent:"center",marginRight:12,fontSize:18,color:"#8c8c8c",background:"#fff",flex:"0 0 auto"},children:c.jsx(ce.TeamOutlined,{})}),c.jsxs("div",{style:{flex:1,minWidth:0},children:[c.jsxs("div",{style:{fontSize:15,fontWeight:700,marginBottom:4},children:[v.deptNm," ",c.jsxs("span",{style:{color:"#8c8c8c",fontSize:12},children:["(",v.deptCd,")"]})]}),c.jsxs("div",{style:{fontSize:12,color:"#666",marginBottom:2},children:["상위부서: ",v.hrnkDeptNm||"-"]})]}),c.jsx(M.Button,{type:"text",onClick:T,icon:c.jsx(ce.RestOutlined,{style:{fontSize:24,color:"#FF6363"}})})]}):c.jsx("div",{style:{color:"#999",fontSize:14},children:"부서를 선택해주세요."})]})})]})})})})},Cv=Object.freeze(Object.defineProperty({__proto__:null,default:Au},Symbol.toStringTag,{value:"Module"})),Sv=e=>{if(e==null)return"";const t=String(e).trim();return!t||t.toUpperCase()==="NULL"?"":t.toUpperCase()},Ri=(e,t=0)=>{const r=Number(e);return Number.isFinite(r)?r:t};function cn(e){return{crprCd:e.crprCd||void 0,wkplCd:e.wkplCd||void 0,deptCd:Sv(e.deptCd),deptNm:(e.deptNm??"").toString().trim(),hrnkDeptCd:e.hrnkDeptCd||null,hrnkDeptNm:e.hrnkDeptNm||null,deptGbCd:e.deptGbCd||null,deptLvl:Ri(e.deptLvl,e.hrnkDeptCd?2:1),orgSortOrd:Ri(e.orgSortOrd,0),orgOtptOrd:Ri(e.orgOtptOrd,0),deptAbrv:e.deptAbrv||null,deptFullNm:e.deptFullNm||null,deptEnglNm:e.deptEnglNm||null,isLeaf:e.isLeaf||null}}function wv(e){const t=new Set,r=e.map(cn).filter(s=>s.deptCd).filter(s=>(s.deptCd===s.hrnkDeptCd&&(s.hrnkDeptCd=""),!0)).filter(s=>t.has(s.deptCd)?!1:(t.add(s.deptCd),!0));r.sort((s,l)=>(s.deptLvl||0)-(l.deptLvl||0)||(s.orgSortOrd||0)-(l.orgSortOrd||0)||s.deptCd.localeCompare(l.deptCd));const n=new Map;for(const s of r)n.set(s.deptCd,{...s,children:[]});const o=[];for(const s of r){const l=n.get(s.deptCd),u=s.hrnkDeptCd;u&&n.has(u)?n.get(u).children.push(l):o.push(l)}const i=s=>{!s||s.length===0||(s.sort((l,u)=>l.deptCd.localeCompare(u.deptCd)),s.forEach(l=>i(l.children)))};i(o);const a=s=>{if(!s.children||s.children.length===0){delete s.children;return}s.children.forEach(a)};if(o.forEach(a),o.length>1){const s=o.find(l=>l.deptCd==="D00");if(s)return[s]}return o}function Ev(e){const t=e.map(cn),r=t.filter(n=>n.isLeaf!=="Y").map(n=>n.deptCd);return r.length>200?t.filter(n=>(n.deptLvl||0)<=2).map(n=>n.deptCd):r}const Mu=({popup:e,onClose:t})=>{const[r,n]=g.useState(""),[o,i]=g.useState(""),[a,s]=g.useState([]),[l,u]=g.useState([]),[f,d]=g.useState([]),[p,w]=g.useState(!1),[v,x]=g.useState([]),[m,$]=g.useState(!1),C=g.useCallback(async b=>{try{$(!0);const y=await ot.callService("SCMUTIL00103",{...e?.popupParams,...b}),O=Array.isArray(y?.data)?y.data:Array.isArray(y?.deptList)?y.deptList:Array.isArray(y)?y:[],A=wv(O);x(A);const D=Ev(O);s(D);const F=A[0]?.deptCd||cn(O.find(U=>cn(U).deptLvl===1)||{}).deptCd||cn(O[0]||{}).deptCd||"";u(F?[F]:[])}catch{M.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{$(!1)}},[e?.popupParams]);g.useEffect(()=>{C()},[C]);const P=g.useCallback((b,y)=>{for(const O of b){if(O.deptCd===y)return O;if(O.children){const A=P(O.children,y);if(A)return A}}return null},[v]),T=g.useMemo(()=>f.map(b=>{const y=P(v,b);if(!y)return null;const{children:O,...A}=y;return A}).filter(Boolean),[f,v,P]),j=g.useMemo(()=>{const b=y=>y.map(O=>({title:O.deptNm,key:O.deptCd,meta:O,children:O.children?b(O.children):void 0,isLeaf:!O.children||O.children.length===0}));return b(v)},[v]),S=g.useMemo(()=>{const b=r.trim().toLowerCase();if(!b)return j;const y=O=>O.map(A=>{const D=A.meta,F=(D?.deptNm||"").toLowerCase().includes(b)||(D?.deptCd||"").toLowerCase().includes(b),U=A.children?y(A.children):void 0;return F||U&&U.length>0?{...A,children:U}:null}).filter(Boolean);return y(j)},[j,r]),E=g.useCallback(b=>{const y=[],O=A=>{for(const D of A)if(D.deptCd===b&&D.children){const F=U=>{for(const V of U)y.push(V.deptCd),V.children&&F(V.children)};F(D.children)}else D.children&&O(D.children)};return O(v),y},[v]),k=g.useCallback((b,y)=>{let O=Array.isArray(b)?b:b?.checked??[];if(p&&y?.node?.key){const A=y.node.key,D=E(A);if(y.checked){const F=new Set(O);for(const U of D)F.add(U);O=Array.from(F)}else{const F=new Set([A,...D]);O=O.filter(U=>!F.has(U))}}d(O)},[p,E]),L=g.useCallback(b=>{const y=b.map(String);if(u(y),y.length>0){const O=y[0],A=(F,U)=>{for(const V of F){if(V.deptCd===U)return V.deptNm;if(V.children){const Z=A(V.children,U);if(Z)return Z}}return null},D=A(v,O);D&&i(D)}},[v]),I=g.useCallback(b=>s(b.map(String)),[]),_=g.useCallback((b,y)=>{if(b.stopPropagation(),y.children&&y.children.length>0){const O=a.includes(y.key);s(A=>O?A.filter(D=>D!==y.key):[...A,y.key])}},[a]),N=g.useCallback(b=>{d(y=>y.filter(O=>O!==b))},[]),z=g.useCallback(()=>{d([])},[]),B={confirm:()=>{if(f.length===0){M.message.error("부서를 선택해주세요.");return}const y=Array.from(new Set(f)).map(O=>{const A=P(v,O);return A?{deptCd:A.deptCd,deptNm:A.deptNm,hrnkDeptCd:A.hrnkDeptCd,hrnkDeptNm:A.hrnkDeptNm}:null}).filter(Boolean);e?.config?.callback?.(JSON.stringify(y)),e?.close?.()}};return c.jsx(Sn,{popup:e,buttons:[{id:"confirm",label:"확인",onClick:()=>{B.confirm()}}],popupEvent:B,onClose:()=>{e?.close?.(),t?.()},children:c.jsx(Nt,{children:c.jsx(fr,{border:!1,style:{paddingBottom:20},children:c.jsxs(M.Splitter,{layout:"vertical",style:{height:"100%"},children:[c.jsxs(M.Splitter.Panel,{defaultSize:"60%",min:"20%",max:"80%",children:[c.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:"8px"},children:c.jsxs(M.Flex,{gap:8,vertical:!0,style:{marginBottom:6},children:[c.jsx(Vt,{title:"조직도"}),c.jsx("div",{style:{fontSize:14,color:"#666",padding:8,backgroundColor:"#f8f8f8",borderRadius:4},children:o}),c.jsxs(M.Row,{gutter:[16,16],children:[c.jsx(M.Col,{span:18,children:c.jsx(M.Input,{placeholder:"부서명, 부서장명, 부서코드 검색",prefix:c.jsx(ce.SearchOutlined,{}),value:r,allowClear:!0,onChange:b=>n(b.target.value)})}),c.jsx(M.Col,{span:6,style:{justifyContent:"center",display:"flex",alignItems:"center"},children:c.jsx(M.Checkbox,{checked:p,onChange:b=>w(b.target.checked),children:"하위까지 선택"})})]})]})}),c.jsx("div",{style:{padding:16,overflowY:"hidden"},children:c.jsx(M.Spin,{spinning:m,children:c.jsx(M.Tree,{className:"bwg-ogrn-tree",treeData:S,expandedKeys:a,selectedKeys:l,checkedKeys:f,checkable:!0,checkStrictly:!0,showLine:!0,showIcon:!1,selectable:!0,onSelect:L,onExpand:I,onCheck:k,onDoubleClick:_,style:{overflow:"hidden"},titleRender:b=>{const y=b.meta;return c.jsxs("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"2px 4px",width:"100%"},children:[c.jsx("span",{style:{fontWeight:l.includes(b.key)?"bold":"normal"},children:y.deptNm}),c.jsx("span",{style:{fontSize:11,color:"#999",marginLeft:8},children:y.deptCd})]})}})})})]}),c.jsx(M.Splitter.Panel,{collapsible:!0,children:c.jsxs("div",{style:{padding:16,overflowY:"hidden"},children:[c.jsxs("div",{style:{marginBottom:12,display:"flex",alignItems:"center",gap:8},children:[c.jsxs("h3",{style:{margin:0,fontSize:16,fontWeight:700},children:["선택된 부서 (",T.length,"개)"]}),T.length>0&&c.jsx("button",{onClick:z,style:{border:"none",background:"transparent",color:"#8c8c8c",cursor:"pointer",fontSize:12,padding:4},title:"전체 해제",children:"전체 해제"})]}),c.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"flex-start",minHeight:48},children:T.length===0?c.jsx("div",{style:{color:"#999",fontSize:14},children:"선택된 부서가 없습니다."}):T.map(b=>c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8,padding:"4px 8px",borderRadius:999,border:"1px solid #e6e6e6",background:"#fafafa",lineHeight:1.1,cursor:"default",maxWidth:260},title:`${b.deptNm}`,children:[c.jsx("span",{style:{width:18,height:18,borderRadius:"50%",border:"1px solid #e6e6e6",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:12,color:"#8c8c8c",background:"#fff",flex:"0 0 auto"},children:c.jsx(ce.TeamOutlined,{})}),c.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",gap:2,overflow:"hidden"},children:[c.jsx("span",{style:{fontSize:13,fontWeight:600,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:180},children:b.deptNm}),c.jsx("span",{style:{fontSize:11,color:"#8c8c8c",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:180},children:b.deptCd})]}),c.jsx("button",{onClick:()=>N(b.deptCd),style:{border:"none",background:"transparent",color:"#8c8c8c",cursor:"pointer",padding:2,lineHeight:0},"aria-label":`${b.deptNm} 선택 해제`,title:"선택 해제",children:"×"})]},b.deptCd))})]})})]})})})})},jv=Object.freeze(Object.defineProperty({__proto__:null,default:Mu},Symbol.toStringTag,{value:"Module"})),Iu=({popup:e,onClose:t})=>{const[r,n]=g.useState(""),[o,i]=g.useState(""),[a,s]=g.useState([]),[l,u]=g.useState([]),[f,d]=g.useState(null),[p,w]=g.useState([]),[v,x]=g.useState(!1),m=g.useCallback(async()=>{try{x(!0);const _=await ot.callService("SCMUTIL00105",{...e?.popupParams});console.log("📊 조직도 API 응답:",_);const N=Array.isArray(_?.data)?_.data:Array.isArray(_?.orgnList)?_.orgnList:Array.isArray(_)?_:[];if(N.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const z=$(N);console.log("🌳 구성된 조직도 트리:",z),w(z);const B=N.filter(b=>b.deptLvl<=2).map(b=>b.deptCd);if(s(B),z.length>0){const b=z[0];u([b.deptCd]),i(b.deptNm)}console.log("✅ 조직도 데이터 로딩 완료")}catch(_){console.error("❌ 조직도 데이터 로딩 실패:",_),M.message.error("조직도 데이터를 불러오는 중 오류가 발생했습니다.")}finally{x(!1)}},[e?.popupParams]),$=g.useCallback(_=>{const N=[..._].sort((y,O)=>y.deptLvl-O.deptLvl||y.orgSortOrd-O.orgSortOrd||y.deptCd.localeCompare(O.deptCd)),z=new Map;for(const y of N)z.set(y.deptCd,{...y,children:[]});const B=[];for(const y of N){const O=z.get(y.deptCd),A=y.hrnkDeptCd;A&&z.has(A)?z.get(A).children.push(O):B.push(O)}const b=y=>{if(!y.children||y.children.length===0){delete y.children;return}y.children.forEach(b)};return B.forEach(b),B},[]);g.useEffect(()=>{m()},[m]);const C=g.useMemo(()=>{const _=B=>{let b=[];return B.forEach(y=>{y.employees&&(b=b.concat(y.employees)),y.children&&(b=b.concat(_(y.children)))}),b},N=_(p),z=N.filter((B,b,y)=>b===y.findIndex(O=>O.empNo===B.empNo));return console.log(`👥 전체 사원 수: ${N.length}, 중복 제거 후: ${z.length}`),z},[p]),P=g.useMemo(()=>{const _=N=>N.map(z=>({title:z.deptNm,key:z.deptCd,children:z.children?_(z.children):void 0,isLeaf:!z.children||z.children.length===0}));return _(p)},[p]),T=g.useMemo(()=>{if(!r.trim())return P;const _=N=>N.map(z=>{const B=z.title.toLowerCase().includes(r.toLowerCase()),b=z.children?_(z.children):void 0;return B||b&&b.length>0?{...z,children:b}:null}).filter(Boolean);return _(P)},[P,r]),j=g.useMemo(()=>{if(!r.trim()){const _=y=>{let O=[];return y.forEach(A=>{A.employees&&(O=O.concat(A.employees)),A.children&&(O=O.concat(_(A.children)))}),O},N=(y,O)=>{for(const A of y){if(A.deptCd===O){let D=[...A.employees||[]];return A.children&&(D=D.concat(_(A.children))),D}if(A.children){const D=N(A.children,O);if(D.length>0)return D}}return[]},z=l[0];if(!z)return[];const B=N(p,z),b=B.filter((y,O,A)=>O===A.findIndex(D=>D.empNo===y.empNo));return console.log(`🔍 선택된 부서: ${z}, 반환된 사원 수: ${B.length}, 중복 제거 후: ${b.length}`),b}return C.filter(_=>_.empNm.toLowerCase().includes(r.toLowerCase())||_.empNo.toLowerCase().includes(r.toLowerCase())||_.deptNm.toLowerCase().includes(r.toLowerCase())||_.jbpsCd.includes(r)||_.jbgdCd.includes(r)||_.emplyStCd.includes(r))},[r,l,C,p]),S=g.useCallback(_=>{d(_)},[]),E=g.useCallback(_=>{const N=_.map(String);if(console.log(`🌳 트리 선택: ${N.join(", ")}`),u(N),N.length>0){const z=N[0],B=(y,O)=>{for(const A of y){if(A.deptCd===O)return A.deptNm;if(A.children){const D=B(A.children,O);if(D)return D}}return null},b=B(p,z);b&&i(b)}},[p]),k=g.useCallback(_=>{s(_.map(String))},[]),L=g.useCallback((_,N)=>{if(_.stopPropagation(),N.children&&N.children.length>0){const z=a.includes(N.key);s(z?B=>B.filter(b=>b!==N.key):B=>[...B,N.key])}},[a]),I={confirm:()=>{f?(e?.popupParams?.onSelect?e.popupParams.onSelect(f):e?.config?.callback&&e.config.callback(JSON.stringify(f,null,2)),e?.close?.()):M.message.error("사원을 선택해주세요.")}};return c.jsx(Sn,{popup:e,buttons:[{id:"confirm",label:"확인",onClick:()=>{I.confirm()}}],popupEvent:I,onClose:()=>{e?.close?.(),t?.()},children:c.jsx(Nt,{children:c.jsx(fr,{border:!1,style:{paddingBottom:20},children:c.jsxs(M.Splitter,{layout:"vertical",style:{height:"100%"},children:[c.jsxs(M.Splitter.Panel,{defaultSize:"60%",min:"20%",max:"80%",children:[c.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:"8px"},children:c.jsxs(M.Flex,{gap:8,vertical:!0,style:{marginBottom:"6px"},children:[c.jsx(Vt,{title:"조직도"}),c.jsx(M.Input,{placeholder:"이름, 소속, 전화번호 검색",prefix:c.jsx(ce.SearchOutlined,{}),value:r,allowClear:!0,onChange:_=>n(_.target.value)})]})}),c.jsx("div",{style:{padding:"16px",overflowY:"hidden"},children:c.jsx(M.Spin,{spinning:v,children:c.jsx(M.Tree,{className:"bwg-ogrn-tree",treeData:T,expandedKeys:a,selectedKeys:l,onSelect:E,onExpand:k,onDoubleClick:L,showLine:!0,showIcon:!1,style:{overflow:"hidden"},titleRender:_=>c.jsx("span",{style:{padding:"4px 8px",borderRadius:"4px",fontWeight:l.includes(_.key)?"bold":"normal",display:"inline-block",width:"100%"},children:_.title})})})})]}),c.jsx(M.Splitter.Panel,{collapsible:!0,children:c.jsxs("div",{style:{padding:"16px",overflowY:"hidden"},children:[c.jsx("div",{style:{marginBottom:"16px"},children:c.jsx("h3",{style:{margin:"0 0 8px 0",fontSize:"16px",fontWeight:"bold"},children:r?"검색 결과":o})}),c.jsxs("div",{style:{overflow:"hidden",height:"100%"},children:[j.map(_=>c.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"12px",border:"1px solid #e0e0e0",borderRadius:"8px",marginBottom:"8px",cursor:"pointer",backgroundColor:f&&f.crprCd===_.crprCd&&f.wkplCd===_.wkplCd&&f.empNo===_.empNo&&f.jbpsCd===_.jbpsCd&&f.jbgdCd===_.jbgdCd&&f.empMarkOrd===_.empMarkOrd?"#efebff":"white"},onClick:()=>S(_),children:[c.jsx("div",{style:{marginRight:"12px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px"},onClick:N=>{N.stopPropagation(),d(_)},children:f&&f.crprCd===_.crprCd&&f.wkplCd===_.wkplCd&&f.empNo===_.empNo&&f.jbpsCd===_.jbpsCd&&f.jbgdCd===_.jbgdCd&&f.empMarkOrd===_.empMarkOrd?c.jsx(ce.CheckCircleFilled,{style:{fontSize:"20px",color:"#6449fc"}}):c.jsx(ce.CheckCircleOutlined,{style:{fontSize:"20px",color:"#d9d9d9"}})}),c.jsx("div",{style:{width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",fontSize:"18px",color:"#666"},children:c.jsx(ce.UserOutlined,{})}),c.jsxs("div",{style:{flex:1},children:[c.jsxs("div",{style:{fontSize:"14px",fontWeight:"bold",marginBottom:"4px"},children:[_.empNm,c.jsxs("span",{style:{fontSize:"12px",fontWeight:"normal",color:"#666",marginLeft:"8px"},children:["(",_.empNo,")"]})]}),c.jsxs("div",{style:{fontSize:"12px",color:"#666",marginBottom:"2px"},children:[_.deptNm," (",_.deptCd,") | 직급:"," ",_.jbpsCd," | 등급: ",_.jbgdCd]})]})]},`emp-${_.crprCd}-${_.wkplCd}-${_.empNo}-${_.jbpsCd}-${_.jbgdCd}-${_.empMarkOrd}`)),j.length===0&&c.jsx("div",{style:{textAlign:"center",padding:"40px",color:"#999",fontSize:"14px"},children:r?"검색 결과가 없습니다.":"해당 부서에 직원이 없습니다."})]})]})})]})})})})},Rv=Object.freeze(Object.defineProperty({__proto__:null,default:Iu},Symbol.toStringTag,{value:"Module"})),Du=({popup:e,onClose:t})=>{const[r,n]=g.useState(""),[o,i]=g.useState(""),[a,s]=g.useState([]),[l,u]=g.useState([]),[f,d]=g.useState([]),[p,w]=g.useState(!1),[v,x]=g.useState({}),m=g.useCallback(async()=>{try{w(!0);const b=await ot.callService("SCMUTIL00105",{...e?.popupParams});console.log("📊 조직도 API 응답:",b);const y=Array.isArray(b?.data)?b.data:Array.isArray(b?.orgnList)?b.orgnList:Array.isArray(b)?b:[];if(y.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const O=$(y);console.log("🌳 구성된 조직도 트리:",O),d(O);const A=y.filter(D=>D.deptLvl<=2).map(D=>D.deptCd);if(s(A),O.length>0){const D=O[0];u([D.deptCd]),i(D.deptNm)}console.log("✅ 조직도 데이터 로딩 완료")}catch(b){console.error("❌ 조직도 데이터 로딩 실패:",b),M.message.error("조직도 데이터를 불러오는 중 오류가 발생했습니다.")}finally{w(!1)}},[e?.popupParams]),$=g.useCallback(b=>{const y=[...b].sort((F,U)=>F.deptLvl-U.deptLvl||F.orgSortOrd-U.orgSortOrd||F.deptCd.localeCompare(U.deptCd)),O=new Map;for(const F of y)O.set(F.deptCd,{...F,children:[]});const A=[];for(const F of y){const U=O.get(F.deptCd),V=F.hrnkDeptCd;V&&O.has(V)?O.get(V).children.push(U):A.push(U)}const D=F=>{if(!F.children||F.children.length===0){delete F.children;return}F.children.forEach(D)};return A.forEach(D),A},[]);g.useEffect(()=>{m()},[m]);const C=g.useMemo(()=>{const b=A=>{let D=[];return A.forEach(F=>{F.employees&&(D=D.concat(F.employees)),F.children&&(D=D.concat(b(F.children)))}),D},y=b(f),O=y.filter((A,D,F)=>D===F.findIndex(U=>U.empNo===A.empNo));return console.log(`👥 전체 사원 수: ${y.length}, 중복 제거 후: ${O.length}`),O},[f]),P=g.useMemo(()=>{const b=y=>y.map(O=>({title:O.deptNm,key:O.deptCd,children:O.children?b(O.children):void 0,isLeaf:!O.children||O.children.length===0}));return b(f)},[f]),T=g.useMemo(()=>{if(!r.trim())return P;const b=y=>y.map(O=>{const A=O.title.toLowerCase().includes(r.toLowerCase()),D=O.children?b(O.children):void 0;return A||D&&D.length>0?{...O,children:D}:null}).filter(Boolean);return b(P)},[P,r]),j=g.useMemo(()=>{if(!r.trim()){const b=F=>{let U=[];return F.forEach(V=>{V.employees&&(U=U.concat(V.employees)),V.children&&(U=U.concat(b(V.children)))}),U},y=(F,U)=>{for(const V of F){if(V.deptCd===U){let Z=[...V.employees||[]];return V.children&&(Z=Z.concat(b(V.children))),Z}if(V.children){const Z=y(V.children,U);if(Z.length>0)return Z}}return[]},O=l[0];if(!O)return[];const A=y(f,O),D=A.filter((F,U,V)=>U===V.findIndex(Z=>Z.empNo===F.empNo));return console.log(`🔍 선택된 부서: ${O}, 반환된 사원 수: ${A.length}, 중복 제거 후: ${D.length}`),D}return C.filter(b=>b.empNm.toLowerCase().includes(r.toLowerCase())||b.empNo.toLowerCase().includes(r.toLowerCase())||b.deptNm.toLowerCase().includes(r.toLowerCase())||b.jbpsCd.includes(r)||b.jbgdCd.includes(r)||b.emplyStCd.includes(r))},[r,l,C,f]),S=g.useCallback(b=>{x(y=>{const O={...y};return O[b.empNo]?delete O[b.empNo]:O[b.empNo]=b,O})},[]),E=g.useCallback(b=>{x(y=>{const O={...y};return delete O[b],O})},[]),k=g.useCallback(()=>x({}),[]),L=g.useCallback(()=>{x(b=>{const y={...b};for(const O of j)y[O.empNo]=O;return y})},[j]),I=g.useCallback(()=>{x(b=>{const y={...b};for(const O of j)delete y[O.empNo];return y})},[j]),_=g.useCallback(b=>{const y=b.map(String);if(console.log(`🌳 트리 선택: ${y.join(", ")}`),u(y),y.length>0){const O=y[0],A=(F,U)=>{for(const V of F){if(V.deptCd===U)return V.deptNm;if(V.children){const Z=A(V.children,U);if(Z)return Z}}return null},D=A(f,O);D&&i(D)}},[f]),N=g.useCallback(b=>{s(b.map(String))},[]),z=g.useCallback((b,y)=>{if(b.stopPropagation(),!y.children||!y.children.length)return;const O=a.includes(y.key);s(A=>O?A.filter(D=>D!==y.key):[...A,y.key])},[a]),B={confirm:()=>{const b=Object.values(v).map(y=>({crprCd:y.crprCd,wkplCd:y.wkplCd,empNo:y.empNo,deptCd:y.deptCd,deptNm:y.deptNm,empNm:y.empNm,jbpsCd:y.jbpsCd,jbgdCd:y.jbgdCd,empMarkOrd:y.empMarkOrd,emplyStCd:y.emplyStCd}));if(b.length===0){M.message.error("직원을 선택해주세요.");return}e?.config?.callback?.(JSON.stringify(b)),e?.close?.()}};return c.jsx(Sn,{popup:e,buttons:[{id:"confirm",label:"확인",onClick:()=>{B.confirm()}}],popupEvent:B,onClose:()=>{e?.close?.(),t?.()},children:c.jsx(Nt,{children:c.jsx(fr,{border:!1,style:{paddingBottom:20},children:c.jsxs(M.Splitter,{style:{height:"100%"},children:[c.jsx(M.Splitter.Panel,{defaultSize:"50%",min:"50%",max:"70%",children:c.jsxs(M.Splitter,{layout:"vertical",style:{height:"100%"},children:[c.jsxs(M.Splitter.Panel,{defaultSize:"60%",min:"35%",max:"75%",children:[c.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:8},children:c.jsxs(M.Flex,{gap:8,vertical:!0,style:{marginBottom:6},children:[c.jsx(Vt,{title:"조직도"}),c.jsx(M.Input,{placeholder:"이름, 소속, 직급/직위, 사번 검색",prefix:c.jsx(ce.SearchOutlined,{}),value:r,allowClear:!0,onChange:b=>n(b.target.value)})]})}),c.jsx("div",{style:{padding:16,overflowY:"hidden"},children:c.jsx(M.Spin,{spinning:p,children:c.jsx(M.Tree,{className:"bwg-ogrn-tree",treeData:T,expandedKeys:a,selectedKeys:l,onSelect:_,onExpand:N,onDoubleClick:z,showLine:!0,showIcon:!1,style:{overflow:"hidden"},titleRender:b=>c.jsx("span",{style:{padding:"4px 8px",borderRadius:4,fontWeight:l.includes(b.key)?"bold":"normal",display:"inline-block",width:"100%"},children:b.title})})})})]}),c.jsx(M.Splitter.Panel,{children:c.jsxs("div",{style:{padding:16,height:"100%",display:"flex",flexDirection:"column"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsx("h3",{style:{margin:0,fontSize:16,fontWeight:700},children:r?"검색 결과":`${o} 사용자`}),c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx(M.Button,{size:"small",onClick:L,children:"현재 목록 전체 선택"}),c.jsx(M.Button,{size:"small",onClick:I,children:"현재 목록 전체 해제"})]})]}),c.jsx(M.Divider,{style:{margin:"8px 0"}}),c.jsxs("div",{style:{overflowY:"auto"},children:[j.map(b=>{const y=!!v[b.empNo];return c.jsxs("div",{style:{display:"flex",alignItems:"center",padding:10,border:"1px solid #e0e0e0",borderRadius:8,marginBottom:8,cursor:"pointer",background:y?"#efebff":"#fff"},onClick:()=>S(b),children:[c.jsx("div",{style:{marginRight:12,width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},onClick:O=>{O.stopPropagation(),S(b)},children:y?c.jsx(ce.CheckCircleFilled,{style:{fontSize:20,color:"#6449fc"}}):c.jsx(ce.CheckCircleOutlined,{style:{fontSize:20,color:"#d9d9d9"}})}),c.jsx("div",{style:{width:36,height:36,borderRadius:"50%",backgroundColor:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",marginRight:12,fontSize:16,color:"#666",flex:"0 0 auto"},children:c.jsx(ce.UserOutlined,{})}),c.jsxs("div",{style:{flex:1,minWidth:0},children:[c.jsxs("div",{style:{fontSize:14,fontWeight:600,marginBottom:2},children:[b.empNm,c.jsxs("span",{style:{fontSize:12,fontWeight:"normal",color:"#666",marginLeft:"8px"},children:["(",b.empNo,")"]})]}),c.jsxs("div",{style:{fontSize:12,color:"#666"},children:[b.deptNm," (",b.deptCd,") | 직급: ",b.jbpsCd," ","| 등급: ",b.jbgdCd]})]})]},`emp-${b.crprCd}-${b.wkplCd}-${b.empNo}-${b.jbpsCd}-${b.jbgdCd}-${b.empMarkOrd}`)}),j.length===0&&c.jsx("div",{style:{textAlign:"center",padding:32,color:"#999",fontSize:14},children:r?"검색 결과가 없습니다.":"해당 부서에 사용자 없음"})]})]})})]})}),c.jsx(M.Splitter.Panel,{collapsible:!0,children:c.jsxs("div",{style:{padding:16,height:"100%",display:"flex",flexDirection:"column"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsx(Vt,{title:`선택된 사용자 (${Object.keys(v).length})`}),c.jsx(M.Button,{type:"link",size:"small",onClick:k,children:"전체 해제"})]}),c.jsx(M.Divider,{style:{margin:"8px 0"}}),c.jsxs("div",{style:{overflowY:"auto",flex:1},children:[Object.values(v).map(b=>c.jsxs("div",{style:{display:"flex",alignItems:"center",padding:10,border:"1px solid #e0e0e0",borderRadius:8,marginBottom:8,background:"#fafafa"},children:[c.jsx("div",{style:{width:32,height:32,borderRadius:"50%",backgroundColor:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",marginRight:10,color:"#666"},children:c.jsx(ce.UserOutlined,{})}),c.jsxs("div",{style:{flex:1,minWidth:0},children:[c.jsxs("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:[b.empNm,c.jsxs("span",{style:{fontSize:11,fontWeight:"normal",color:"#666",marginLeft:"6px"},children:["(",b.empNo,")"]})]}),c.jsxs("div",{style:{fontSize:12,color:"#666"},children:[b.deptNm," (",b.deptCd,") | 직급: ",b.jbpsCd," | 등급: ",b.jbgdCd]})]}),c.jsx(M.Button,{type:"text",shape:"circle",icon:c.jsx(ce.CloseOutlined,{}),onClick:()=>E(b.empNo)})]},`selected-${b.crprCd}-${b.wkplCd}-${b.empNo}-${b.jbpsCd}-${b.jbgdCd}-${b.empMarkOrd}`)),Object.keys(v).length===0&&c.jsx("div",{style:{color:"#999",fontSize:14,textAlign:"center",padding:24},children:"선택된 사용자가 없습니다."})]})]})})]})})})})},$v=Object.freeze(Object.defineProperty({__proto__:null,default:Du},Symbol.toStringTag,{value:"Module"}));exports.ButtonAccessController=$i;exports.BwgButtonGroup=Wu;exports.BwgCmptArea=Ku;exports.BwgCol=qu;exports.BwgConfigProvider=jl;exports.BwgDetail=od;exports.BwgDrawer=id;exports.BwgEditor=cd;exports.BwgGrid=bd;exports.BwgInfoArea=xd;exports.BwgPagination=ca;exports.BwgPopup=Sn;exports.BwgRow=Sd;exports.BwgSpace=wd;exports.BwgTable=Ed;exports.BwgTabs=jd;exports.BwgTitleBox=Vt;exports.BwgView=dv;exports.ContentBox=fr;exports.ContentLayOut=Nt;exports.GlobalConfigProvider=fv;exports.QuickServiceToggle=mv;exports.SSOHandler=vv;exports.SearchBox=la;exports.SearchDepartmentP01=Au;exports.SearchDepartmentP01$1=Cv;exports.SearchDepartmentP02=Mu;exports.SearchDepartmentP02$1=jv;exports.SearchOrganizationP01=Iu;exports.SearchOrganizationP01$1=Rv;exports.SearchOrganizationP02=Du;exports.SearchOrganizationP02$1=$v;exports.commonjsGlobal=Fu;exports.createBwgGridRenderer=yd;exports.getAugmentedNamespace=Vu;exports.getDefaultExportFromCjs=xo;
|