@bwg-ui/core 1.2.22 → 1.2.23

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.
Files changed (37) hide show
  1. package/dist/chunks/{MenuReport-Bsz0OEet.js → MenuReport-B7wOCWJH.js} +26 -26
  2. package/dist/chunks/MenuReport-DWUqzoE_.cjs +1 -0
  3. package/dist/chunks/common-components-1B6Dgw0G.cjs +1109 -0
  4. package/dist/chunks/{common-components-aD7WLZ5f.js → common-components-DN-4Ydi7.js} +12693 -12233
  5. package/dist/chunks/{layout-components-OnRWLesF.js → layout-components-BO9fKUG7.js} +2 -2
  6. package/dist/chunks/{layout-components-CIO09Lhe.cjs → layout-components-CQYHdg88.cjs} +2 -2
  7. package/dist/components/common/index.cjs +1 -1
  8. package/dist/components/common/index.js +1 -1
  9. package/dist/components/guide/index.cjs +1 -1
  10. package/dist/components/guide/index.js +1 -1
  11. package/dist/components/layout/index.cjs +1 -1
  12. package/dist/components/layout/index.js +1 -1
  13. package/dist/components/pages/board/CMAdminBoardM01.d.ts.map +1 -1
  14. package/dist/components/popup/SearchOrganizationP01.d.ts +2 -0
  15. package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
  16. package/dist/components/popup/index.cjs +1 -1
  17. package/dist/components/popup/index.js +1 -1
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.js +227 -225
  20. package/dist/stores/index.cjs +1 -1
  21. package/dist/stores/index.js +1 -1
  22. package/dist/stores/userStore.d.ts +2 -0
  23. package/dist/stores/userStore.d.ts.map +1 -1
  24. package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
  25. package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
  26. package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
  27. package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
  28. package/dist/utils/gwUtils.d.ts.map +1 -1
  29. package/dist/utils/index.cjs +1 -1
  30. package/dist/utils/index.d.ts +2 -0
  31. package/dist/utils/index.d.ts.map +1 -1
  32. package/dist/utils/index.js +619 -613
  33. package/dist/utils/userUtils.d.ts +2 -0
  34. package/dist/utils/userUtils.d.ts.map +1 -1
  35. package/package.json +1 -1
  36. package/dist/chunks/MenuReport-PYufvmGR.cjs +0 -1
  37. package/dist/chunks/common-components-CdNJR00U.cjs +0 -1109
@@ -0,0 +1,1109 @@
1
+ "use strict";const ae=require("../utils/index.cjs"),mt=require("../stores/index.cjs"),o=require("react/jsx-runtime"),Z=require("@ant-design/icons"),p=require("antd"),y=require("react"),bt=require("../provider/index.cjs"),gO=require("dompurify"),rw=require("quill"),vO=require("react-quill"),Xg=require("quill-image-resize-module-react"),Li=require("react-dom"),Ct=require("realgrid"),Zg=require("realgrid-react"),yO=require("react-rnd"),xO=require("./layout-components-CQYHdg88.cjs"),$=require("../components/core/index.cjs"),Qg=require("react-router-dom"),jl=require("dayjs");function nw(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 Ri=nw(Z),w=nw(y),tp=({checkAuth:e=!1,buttons:t,gap:r=8})=>{const{user:n,getButtonAuth:i,setButtonAuth:a}=mt.useUserStore(),s=bt.useServiceCodeValue("AUTH_BTNS"),[l,c]=y.useState({});y.useEffect(()=>{const u=e?e.menuId:void 0,f=e?e.grpId:void 0;if(!u||!f){c({});return}const h=i(u,f);if(h){c(h);return}ae.callService(s,{crprCd:n?.crprCd,userId:n?.userId,grpId:f.toUpperCase(),menuId:u}).then(m=>{const g=Array.isArray(m?.data)?m.data:Array.isArray(m)?m:[],x={};(g||[]).forEach(v=>{const b=String(v?.btnId||"").trim();if(!b)return;const C=v?.enblYn==null?!0:String(v.enblYn).toUpperCase()==="Y";x[b]=C}),a(u,f,x),c(x)}).catch(m=>{console.error(m),c({})})},[s,n?.crprCd,n?.userId,e?e.menuId:void 0,e?e.grpId:void 0,i,a]);const d=y.useMemo(()=>!t||t.length===0?null:t.filter(u=>u?.visible!==!1).map(u=>{const f=!!u.disabled;if(!e)return o.jsx(p.Button,{type:u.type,disabled:f,loading:u.loading,className:u.className||"bwg-btn",style:u.style,icon:u.icon,onClick:u.onClick,children:u.label},u.id);const g=!(Object.prototype.hasOwnProperty.call(l,u.id)?!!l[u.id]:!1),x=f||g,v=o.jsx(p.Button,{type:u.type,disabled:x,loading:u.loading,className:u.className||"bwg-btn",style:u.style,icon:u.icon,onClick:u.onClick,children:u.label},u.id);if(g){const b=o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[o.jsx(Z.ExclamationCircleFilled,{style:{color:"#faad14",fontSize:16}}),o.jsx("span",{style:{fontWeight:600},children:`'${u.label}' 버튼에 대한 사용 권한이 없습니다.`})]}),C=o.jsx("div",{style:{display:"flex",flexDirection:"column",gap:4,paddingLeft:24},children:o.jsx("span",{style:{fontSize:12},children:"관리자에게 문의하세요."})});return o.jsx(p.Popover,{title:b,content:C,placement:"bottom",styles:{body:{backgroundColor:"#fffbe6"}},children:o.jsx("span",{children:v})},u.id)}return v}),[t,l,e]);return o.jsx(p.Flex,{gap:r,children:d})};var bO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wO(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch{}return i?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 i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}const rp=({grpId:e,menuId:t,btnEvent:r,layout:n="horizontal",size:i="middle",style:a,className:s,onButtonClick:l})=>{const c=bt.useServiceCodeValue("AUTH_BTNS"),{user:d}=mt.useUserStore(),[u,f]=y.useState([]),[h,m]=y.useState(!0),[g,x]=y.useState(null),[v,b]=y.useState({}),C=async()=>{try{m(!0),x(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,t);const j=await ae.callService(c,{userId:d?.userId,crprCd:d?.crprCd,grpId:e.toUpperCase(),menuId:t});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",j),j?.data&&Array.isArray(j.data)){const S=j.data.sort((O,k)=>O.btnSq-k.btnSq);f(S)}else f([])}catch(j){console.error("버튼 권한 조회 실패:",j),x("버튼 권한을 조회하는 중 오류가 발생했습니다."),f([])}finally{m(!1)}};y.useEffect(()=>{C()},[e,t]);const P=async(j,S)=>{b(O=>({...O,[j]:{loading:!0}}));try{const O=r?.[j];O?await O():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${j}`),l&&l(j,S,e)}catch(O){console.error("버튼 이벤트 실행 실패:",O),p.message.error("작업 중 오류가 발생했습니다.")}finally{b(O=>({...O,[j]:{loading:!1}}))}},E=j=>{const S=v[j.btnId]||{loading:!1};return o.jsxs(p.Button,{size:i,loading:S.loading,onClick:()=>P(j.btnId,j.btnNm),className:"bwg-btn",style:{...j.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[j.iconVal&&o.jsxs(o.Fragment,{children:[j.iconType==="ANTD"&&Ri[j.iconVal]&&y.createElement(Ri[j.iconVal],{style:{fontSize:"14px"}}),j.iconType!=="ANTD"&&o.jsx("span",{className:j.iconVal,style:{fontSize:"14px"}})]}),j.btnNm]},j.btnId)};return h?o.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${s||""}`,style:a,children:o.jsx(p.Space,{direction:n==="vertical"?"vertical":"horizontal",size:i,children:o.jsx(p.Button,{loading:!0,size:i,children:"권한 조회 중..."})})}):g?o.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${s||""}`,style:a,children:o.jsx(p.Alert,{message:"권한 오류",description:g,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):u.length===0?o.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${s||""}`,style:a,children:o.jsx(p.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):o.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${s||""}`,style:a,children:o.jsx(p.Flex,{gap:3,children:u.map(E)})})},CO=({content:e,layout:t="flex",gap:r=16,minWidth:n=120,maxWidth:i=300,style:a,className:s})=>{if(!(Array.isArray(e)&&e.length>0&&Array.isArray(e[0])))return o.jsx("div",{style:a,className:s,children:e});const c=e.filter(m=>m&&m.length>0),d=y.useMemo(()=>{const m=c[0];if(!m||m.length===0)return{totalCols:0,baseWidth:0};let g=0;const x=[];m.forEach(b=>{const C=b,P=C?.props?.["data-colspan"]?parseInt(String(C.props["data-colspan"])):1;g+=P,x.push(P)});const v=g>0?100/g:0;return{totalCols:g,baseWidth:v,componentWidths:x}},[c]),u=(m,g,x)=>{const v=m,b=v?.props?.["data-colspan"]?parseInt(String(v.props["data-colspan"])):1;switch(t){case"equal":return 100/x;case"auto":return 100/x;case"grid":return 100/d.totalCols*b;case"flex":default:const C=d.baseWidth*b;return Math.max(n,Math.min(i,C))}},f=m=>{if(!m||typeof m!="object")return m;const g=m;if(!g.props)return m;const v={...g.props.style||{},width:"100%"};return y.cloneElement(g,{...g.props,style:v})},h=(m,g)=>{if(!m||m.length===0)return null;const x=m.length;return t==="grid"?o.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${d.totalCols}, 1fr)`,gap:`${r}px`,width:"100%"},children:m.map((v,b)=>{const C=v?.props?.["data-colspan"]?parseInt(String(v.props["data-colspan"])):1,P=f(v);return o.jsx("div",{style:{gridColumn:`span ${C}`,minWidth:`${n}px`},className:"form-component-wrapper",children:P},`row-${g}-col-${b}`)})},`row-${g}`):o.jsx(p.Flex,{gap:r,className:"erp-cmm-form",wrap:t==="auto"?"wrap":"nowrap",style:{width:"100%"},children:m.map((v,b)=>{const C=u(v,b,x),P=f(v),E=t==="flex"?{width:`${C}px`,minWidth:`${n}px`,maxWidth:`${i}px`,flexShrink:0}:{width:`${C}%`,minWidth:`${n}px`};return o.jsx("div",{style:E,className:"form-component-wrapper",children:P},`row-${g}-col-${b}`)})},`row-${g}`)};return o.jsx(p.Flex,{gap:"small",vertical:!0,style:a,className:s,children:c.map((m,g)=>h(m,g+1))})},$e=({children:e,...t})=>o.jsx(p.Col,{...t,className:"bwg-col",children:e});var ia={},Fu={exports:{}},Jg;function Dc(){return Jg||(Jg=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})(Fu)),Fu.exports}var oa={},ev;function SO(){if(ev)return oa;ev=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.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 oa.default=e,oa}var aa={},sa={},la={},Vu={exports:{}},Hu={exports:{}},Wu={exports:{}},Uu={exports:{}},tv;function iw(){return tv||(tv=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})(Uu)),Uu.exports}var Ku={exports:{}},rv;function jO(){return rv||(rv=1,(function(e){var t=iw().default;function r(n,i){if(t(n)!="object"||!n)return n;var a=n[Symbol.toPrimitive];if(a!==void 0){var s=a.call(n,i||"default");if(t(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Ku)),Ku.exports}var nv;function PO(){return nv||(nv=1,(function(e){var t=iw().default,r=jO();function n(i){var a=r(i,"string");return t(a)=="symbol"?a:a+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Wu)),Wu.exports}var iv;function EO(){return iv||(iv=1,(function(e){var t=PO();function r(n,i,a){return(i=t(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Hu)),Hu.exports}var ov;function OO(){return ov||(ov=1,(function(e){var t=EO();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),s.push.apply(s,l)}return s}function n(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){t(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Vu)),Vu.exports}var ca={},av;function kO(){return av||(av=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.commonLocale=void 0,ca.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),ca}var sv;function TO(){if(sv)return la;sv=1;var e=Dc().default;Object.defineProperty(la,"__esModule",{value:!0}),la.default=void 0;var t=e(OO()),r=kO(),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 la.default=n,la}var ua={},lv;function ow(){if(lv)return ua;lv=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return ua.default=e,ua}var cv;function aw(){if(cv)return sa;cv=1;var e=Dc().default;Object.defineProperty(sa,"__esModule",{value:!0}),sa.default=void 0;var t=e(TO()),r=e(ow());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 sa.default=n,sa}var uv;function IO(){if(uv)return aa;uv=1;var e=Dc().default;Object.defineProperty(aa,"__esModule",{value:!0}),aa.default=void 0;var t=e(aw());return aa.default=t.default,aa}var dv;function MO(){if(dv)return ia;dv=1;var e=Dc().default;Object.defineProperty(ia,"__esModule",{value:!0}),ia.default=void 0;var t=e(SO()),r=e(IO()),n=e(aw()),i=e(ow());const a="${label} 유효하지 않은 ${type}",s={locale:"ko",Pagination:t.default,DatePicker:n.default,TimePicker:i.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:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},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 ia.default=s,ia}var qu,fv;function RO(){return fv||(fv=1,qu=MO()),qu}var AO=RO();const sw=jr(AO),lw=({children:e,customTheme:t,customComponentSize:r="middle",layout:n="comfortable",getPopupContainer:i})=>{const s=(()=>{const c={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:p.theme.defaultAlgorithm};switch(n){case"compact":return{...c,token:{...c.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...c,token:{...c.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...c,token:{...c.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),l={...s,...t,token:{...s.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)",buttonSolidCheckedBg:"var(--button-solid)",buttonSolidCheckedHoverBg:"var(--button-solid-hover)",buttonSolidCheckedActiveBg:"var(--button-solid-hover)"},Tree:{nodeHoverBg:"var(--tree-selected-bg)",nodeHoverColor:"var(--primary-color)",nodeSelectedBg:"var(--tree-selected-bg)",nodeSelectedColor:"var(--primary-color)",colorText:"var(--text-primary)"},Switch:{colorPrimary:"var(--switch-primary)",colorPrimaryHover:"var(--switch-primary)"},Tabs:{inkBarColor:"var(--primary-color)",itemSelectedColor:"var(--primary-color)",itemHoverColor:"var(--button-solid-hover)",itemActiveColor:"var(--button-solid-hover)",itemColor:"var(--text-primary)",horizontalItemGutter:0,horizontalItemPadding:"11px 24px"},Button:{borderColorDisabled:"var(--border-color)",defaultShadow:"none",dangerShadow:"none",iconGap:4},...t?.components??{}}};return o.jsx(p.ConfigProvider,{locale:sw,theme:l,componentSize:r,space:{size:r},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},getPopupContainer:i,children:e})},NO=({children:e})=>{const{activeDetailItem:t}=mt.useMenuViewStore();return o.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:o.jsx("div",{className:"bwgview-content",children:o.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[o.jsx(p.Breadcrumb,{separator:">",items:[{title:t?.prntInfo?.menuNm},{title:t?.viewLabel}]}),e]})})})},DO=5,_O=0,Le=({title:e,icons:t,tooltip:r,iconVisible:n=!0,paddingBottom:i,marginBottom:a,children:s})=>{const l=Ri.AppstoreTwoTone;y.useMemo(()=>t?.type==="antd"&&t.icon&&Ri[t.icon]||l,[t?.type,t?.icon]);const c=(f,h)=>(f??h).toString().padStart(2,"0"),d=`pb${c(i,_O)}`,u=`mb${c(a,DO)}`;return o.jsx(p.Flex,{vertical:!0,style:{width:"100%"},children:o.jsxs("div",{className:`bwg-title-box ${d} ${u}`,style:{display:"flex",justifyContent:"space-between"},children:[o.jsx("div",{className:"bwg-title-box-left",children:o.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o.jsx(p.Typography.Title,{level:4,children:o.jsx("span",{children:e})}),r&&o.jsx(p.Tooltip,{title:r.title,placement:r.placement,children:o.jsx(Ri.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),o.jsx("div",{className:"bwg-title-box-right",children:o.jsx(p.Flex,{gap:6,children:s})})]})})},{Panel:pv}=p.Collapse,_o=y.forwardRef(({reqRows:e,subRows:t,border:r=!1,labelDisplay:n,header:i},a)=>{const[s]=p.Form.useForm(),[l,c]=y.useState("1"),d=()=>n?{flex:n.md||n.lg||n.sm||"100px"}:{flex:"100px"};y.useImperativeHandle(a,()=>({getFormData:()=>s.getFieldsValue(),setFormData:f=>{s.setFieldsValue(f)},resetForm:()=>{s.resetFields()},validateForm:async()=>{try{return{success:!0,data:await s.validateFields()}}catch(f){return{success:!1,error:f}}}}));const u=()=>{c(f=>f.includes("subRows")?f.filter(h=>h!=="subRows"):[...f,"subRows"])};return o.jsxs("div",{style:r?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[i&&o.jsx(Le,{title:i.title,children:i.buttons}),o.jsx(p.Form,{form:s,layout:"inline",style:{width:"100%",paddingBottom:e||t?"10px":"0px"},labelCol:d(),labelAlign:"left",children:o.jsxs("div",{style:{position:"relative",width:"100%"},children:[t&&o.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:l.includes("subRows")?o.jsx(p.Tooltip,{title:"접기",children:o.jsx("span",{className:"search-collapsed-arrow",onClick:u,children:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:o.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"})})})}):o.jsx(p.Tooltip,{title:"펼치기",children:o.jsx("span",{className:"search-collapsed-arrow",onClick:u,children:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:o.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"})})})})}),o.jsx(p.ConfigProvider,{theme:{components:{Collapse:{}}},children:o.jsxs(p.Collapse,{activeKey:["reqRows",...l.includes("subRows")?["subRows"]:[]],onChange:c,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&o.jsx(pv,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),t&&o.jsx(pv,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:t},"subRows")]})})]})})]})}),dn=({children:e,showSearchBox:t,showCloseButton:r=!0,showEyesButton:n=!1,shotSettingButton:i=!0,styles:a,...s})=>{const[l,c]=y.useState(!0),[d,u]=y.useState(()=>{const b=s.placement;return b==="left"||b==="right"||b==="top"||b==="bottom"?b:"bottom"}),[f,h]=y.useState(!1),g=(b=>{const C={wrapper:{...s.width&&{width:s.width},...s.height&&{height:s.height},margin:"0 auto"},content:{},header:{backgroundColor:"var(--drawer-header-bg)",color:"var(--text-primary)"}};switch(b){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}})(d),x={wrapper:{...g?.wrapper,...a?.wrapper},content:{...g?.content,...a?.content},header:{...g?.header,...a?.header}},v=()=>{const b=[];if(i){const C=[{key:"top",label:"상단",icon:o.jsx(Z.CaretUpOutlined,{})},{key:"right",label:"우측",icon:o.jsx(Z.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:o.jsx(Z.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:o.jsx(Z.CaretLeftOutlined,{})}],P=o.jsx(p.Space.Compact,{children:C.map(E=>o.jsx(p.Button,{type:d===E.key?"primary":"default",size:"small",onClick:()=>{u(E.key),h(!1)},icon:E.icon},E.key))});b.push(o.jsx(p.Popover,{content:P,trigger:"click",placement:"left",open:f,onOpenChange:h,children:o.jsx(p.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:o.jsx(p.Button,{icon:o.jsx(Z.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return n&&b.push(o.jsx(p.Tooltip,{placement:"bottom",title:l?"배경 보기":"배경 숨기기",zIndex:2100,children:o.jsx(p.Button,{icon:o.jsx(Z.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>c(!l)})},"eyes")),s.extra&&b.push(o.jsx("div",{style:{margin:"0 8px"},children:s.extra},"extra")),r&&b.push(o.jsx(p.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:o.jsx(p.Button,{icon:o.jsx(Z.CloseOutlined,{}),onClick:s.onClose,type:"text",size:"middle"})},"close")),b};return o.jsx(p.Drawer,{className:"main-drawer",footer:!0,...s,placement:d,styles:x,maskClosable:!1,closable:!1,mask:l,extra:o.jsx(p.Space,{size:"small",align:"center",children:v()}),afterOpenChange:b=>{b||(c(!0),u(s.placement)),s.afterOpenChange?.(b)},destroyOnHidden:!0,children:t?o.jsxs(ze,{type:"vertical",children:[o.jsxs(p.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[o.jsx("div",{children:t.title}),o.jsx(p.Flex,{gap:2,children:t.extra})]}),o.jsx(_o,{...t.searchBox}),o.jsx(p.Divider,{}),e]}):e})},Te=({width:e="100%",height:t="100%",boxAlign:r,display:n="show",overflow:i,style:a,className:s,border:l=!0,children:c,ref:d})=>o.jsx("div",{style:{width:e,height:t,display:n==="show"?"":n,overflowX:i?.x,overflowY:i?.y,...a},className:`bwgview-content-box ${r?`content-box-${r}`:""} ${s||""} ${l?"":"none-box-st"}`,ref:d,children:c}),cw=Xg?.default??Xg;try{rw.register("modules/imageResize",cw)}catch(e){console.warn("quill-image-resize-module-react 로드 실패:",e)}const Ll=e=>gO.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}),zl=y.forwardRef(({border:e=!0,editorProps:t,value:r,defaultValue:n,onChange:i,onBlur:a,disabled:s,placeholder:l},c)=>{const{isEditing:d=!0,title:u,containerHeight:f="100%"}=t||{},h=y.useRef(null),m=y.useMemo(()=>{const E={toolbar:d?[[{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 cw?{...E,imageResize:{parchment:rw.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"}}}:E},[d]),g=y.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image","width","height"],[]),x=r!==void 0,[v,b]=y.useState(n??""),C=x?r:v,P=y.useCallback((E,j,S,O)=>{const k=Ll(E??"");x||b(k),i?.(k,j,S,O)},[x,i]);return y.useImperativeHandle(c,()=>({getHTML:()=>C??"",getText:()=>h.current?.getEditor()?.getText()??"",insertHTML:E=>{const j=h.current?.getEditor();if(!j)return;const S=j.getSelection(!0),O=Ll(E??"");j.clipboard.dangerouslyPasteHTML(S?S.index:j.getLength(),O)},insertImage:(E,j)=>{const S=h.current?.getEditor();if(!S)return;const O=S.getSelection(!0),k=typeof E=="string"?E:"";S.insertEmbed(O?O.index:S.getLength(),"image",k,"user")},getQuill:()=>h.current?.getEditor?.()??null})),o.jsx(Te,{border:e,style:{opacity:s?.6:1,pointerEvents:s?"none":"auto",height:typeof f=="number"?`${f}px`:f,minHeight:0},children:o.jsxs("div",{className:"bwg-editor-wrap",style:{width:"100%",height:"100%",display:"flex",flexDirection:"column"},children:[u&&o.jsx(Le,{...u,paddingBottom:10}),o.jsx(vO,{ref:h,theme:d?"snow":"bubble",readOnly:!d,value:C,onChange:P,onBlur:a,modules:m,formats:g,style:{width:"100%",display:"flex",flexDirection:"column",minHeight:0,flex:"1"},placeholder:l},d?"snow":"bubble")]})})}),BO=(e,t,r,n)=>Ll(e??""),$O=({itemProps:e,...t})=>{const{rules:r,shouldUpdate:n,dependencies:i,noStyle:a,...s}=e;return o.jsx(p.Form.Item,{valuePropName:"value",trigger:"onChange",getValueFromEvent:BO,normalize:l=>l??"",rules:r,shouldUpdate:n,dependencies:i,noStyle:a,...s,children:o.jsx(zl,{...t})})},LO=e=>{const{itemProps:t,onChange:r,editorProps:n,...i}=e,a=p.Form.useFormInstance();if(t?.name!=null){const s=t.name;return o.jsxs(o.Fragment,{children:[o.jsx(p.Form.Item,{hidden:!0,name:s,rules:t.rules,normalize:l=>l??"",children:o.jsx("input",{type:"hidden"})}),o.jsx(zl,{...i,editorProps:n,value:a.getFieldValue(s)??"",onChange:(l,c,d,u)=>{const f=Ll(l??"");a.setFieldValue(s,f),r?.(f,c,d,u)},onBlur:()=>{a.validateFields([s]).catch(()=>{})}})]})}return o.jsx(zl,{...e})},Dh=Object.assign(LO,{FormItem:$O,Core:zl});var ao={},hv;function zO(){if(hv)return ao;hv=1;var e=Li;if(process.env.NODE_ENV==="production")ao.createRoot=e.createRoot,ao.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ao.createRoot=function(r,n){t.usingClientEntryPoint=!0;try{return e.createRoot(r,n)}finally{t.usingClientEntryPoint=!1}},ao.hydrateRoot=function(r,n,i){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(r,n,i)}finally{t.usingClientEntryPoint=!1}}}return ao}var FO=zO();const os=y.forwardRef(({currentPage:e,totalPages:t,pageSize:r=10,totalData:n,onPageChange:i,pageSizeOptions:a=[10,20,50,100],gridRef:s,mode:l="client",onServerPageChange:c},d)=>{const[u,f]=y.useState(r),[h,m]=y.useState(1),[g,x]=y.useState(r),[v,b]=y.useState(0);y.useEffect(()=>{f(r)},[r]),y.useEffect(()=>{f(r)},[]),y.useImperativeHandle(d,()=>({currentPage:h,pageSize:g,totalData:v,totalPages:Math.ceil(v/g),setPage:I=>{m(I),c?.(I,g)},setPageSize:I=>{x(I),m(1),c?.(1,I)},setTotalData:I=>{b(I)},reset:()=>{m(1),x(r),b(0)}}),[h,g,v,c,r]);const C=l==="client",P=C?(e||0)+1:h,E=C?(t||0)>0:v>0,S=C?E?Math.ceil((n||0)/u):0:Math.ceil(v/g),O=C?E&&n||0:v,k=Math.min(P,S||1),D=`${u}-${S}-${k}`,B=I=>{C?i?.(I-1):(m(I),c?.(I,g))},M=I=>{if(C){f(I);try{s?.current?.gridView?(s.current.gridView.setPaging(!0,I),s.current.gridView.setPage(0)):i?.(0)}catch(_){console.warn("페이지 사이즈 변경 중 오류:",_),i?.(0)}}else x(I),m(1),c?.(1,I)};return o.jsxs("div",{className:"bwg-pagination-container",style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center",borderTop:"1px solid #dddddd",position:"relative"},children:[o.jsxs("div",{style:{position:"absolute",left:10,display:"flex",alignItems:"center",gap:"8px"},children:[o.jsx("span",{style:{fontSize:"12px",color:"#333333"},children:"페이지당"}),o.jsx("select",{value:C?u:g,onChange:I=>M(Number(I.target.value)),disabled:!E,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"6px",fontSize:"12px",color:"#333333",opacity:E?1:.5},children:a.map(I=>o.jsxs("option",{value:I,children:[I,"개"]},I))}),o.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:E?1:.5},children:["/ 총 ",O,"개"]})]}),o.jsx("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:o.jsxs(p.ConfigProvider,{theme:{components:{Button:{defaultBorderColor:"#e8e8e8",defaultHoverBorderColor:"var(--primary-color)",defaultHoverColor:"var(--text-primary)",contentFontSize:13,defaultColor:"var(--text-primary)",paddingInline:0}}},children:[o.jsxs(p.ConfigProvider,{theme:{components:{Button:{defaultColor:"#999999",defaultHoverColor:"var(--text-primary)"}}},children:[o.jsx(p.Button,{onClick:()=>B(1),disabled:!E||k===1,style:{width:"26px",height:"26px",border:0,background:!E||k===1?"#f1f1f1":"white",cursor:!E||k===1?"not-allowed":"pointer",opacity:E?1:.5},icon:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[o.jsx("path",{d:"M12 17L7 12L12 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),o.jsx("path",{d:"M17 17L12 12L17 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})}),o.jsx(p.Button,{onClick:()=>B(k-1),disabled:!E||k===1,style:{width:"26px",height:"26px",border:0,background:!E||k===1?"#f1f1f1":"white",cursor:!E||k===1?"not-allowed":"pointer",opacity:E?1:.5},icon:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:o.jsx("path",{d:"M14 17L9 12L14 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})})]}),o.jsx("div",{style:{display:"flex",alignItems:"center",gap:6},children:(()=>{if(!E||S===0)return o.jsx(p.Button,{disabled:!0,style:{width:"26px",height:"26px"},children:"1"});const I=5;let _=1,L=Math.min(I,S);k>3&&S>I&&(_=Math.max(1,k-2),L=Math.min(S,_+I-1),L===S&&(_=Math.max(1,L-I+1)));const R=[];for(let T=_;T<=L;T++)R.push(o.jsx(p.Button,{onClick:()=>B(T),style:{width:"26px",height:"26px",background:k===T?"var(--primary-color)":"#ffffff",color:k===T?"#ffffff":"#333333",cursor:"pointer"},children:T},T));return R})()},D),o.jsxs(p.ConfigProvider,{theme:{components:{Button:{defaultColor:"#999999",defaultHoverColor:"var(--text-primary)"}}},children:[o.jsx(p.Button,{onClick:()=>B(k+1),disabled:!E||k>=S,style:{width:"26px",height:"26px",border:0,background:!E||k>=S?"#f1f1f1":"white",cursor:!E||k>=S?"not-allowed":"pointer",opacity:E?1:.5},icon:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:o.jsx("path",{d:"M10 17L15 12L10 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})}),o.jsx(p.Button,{onClick:()=>B(S),disabled:!E||k>=S,style:{width:"26px",height:"26px",border:0,background:!E||k>=S?"#f1f1f1":"white",cursor:!E||k>=S?"not-allowed":"pointer",opacity:E?1:.5},icon:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[o.jsx("path",{d:"M12 17L17 12L12 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),o.jsx("path",{d:"M7 17L12 12L7 7",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})})]})]})})]})});os.displayName="BwgPagination";const VO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",HO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",WO=[{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"}],UO=[{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"}],KO=({children:e})=>{const[t,r]=y.useState(!1),[n,i]=y.useState(null);return t?o.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:o.jsx(p.Alert,{message:"리얼그리드 로드 실패",description:o.jsxs("div",{children:[o.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),o.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",n?.message||"알 수 없는 오류"]}),o.jsx(p.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{r(!1),i(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):o.jsx(qO,{onError:a=>{console.error("BwgGrid 에러:",a),i(a),r(!0)},children:e})};class qO extends y.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 Fe=y.forwardRef(({type:e="nrml",gridDivStyle:t,gridDivClassName:r,gridColumns:n,gridOptions:i,gridEvents:a,bindRef:s,gridContext:l,renderers:c,gridInitCallback:d},u)=>{const f=y.useRef(null),h=y.useRef(new Map),m=(W,z,X,Y)=>{let A=[],G=[];const K="treeNode";for(let te in W){let oe=W[te];A[oe[X]]=W[te];let fe=A[oe[z]];if(fe==null||fe=="-"){G.push(oe);continue}fe[K]==null&&(fe[K]=[]),fe[K].push(oe)}return G},g=y.useCallback(W=>{const z=Y=>{const A=[];return Y.forEach(G=>{G.children&&G.children.length>0?A.push(...z(G.children)):A.push(G)}),A};return z(W).map(Y=>({fieldName:Y.fieldName,dataType:Y.dataType||"text"}))},[]),x=y.useCallback(W=>{const z=Y=>{const A=[];return Y.forEach(G=>{G.children&&G.children.length>0?A.push(...z(G.children)):A.push(G)}),A};return z(W).map(Y=>({...Y,header:{...Y.header,template:Y.required?`<img src='${HO}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:Y.editable?`<img src='${VO}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:Y.header?.text??""},text:Y.header?.text||""},styleName:Y.dataType==="number"?"right":Y.styleName||"center"}))},[]);y.useImperativeHandle(u,()=>({addAllData(W,z){const X=f.current?.gridView.getCurrent().dataRow;if(f.current?.dataProvider instanceof Ct.LocalDataProvider){f.current.dataProvider.clearRows();try{f.current?.gridView.showLoading(),f.current.dataProvider.setRows(W)}catch(Y){console.error("fillJsonData 오류:",Y)}finally{f.current?.gridView.closeLoading()}}if(f.current?.dataProvider instanceof Ct.LocalTreeDataProvider){if(f.current.dataProvider.clearRows(),z?.treeOption?.dataField==null||z?.treeOption?.parentField==null)return;const Y={rows:"treeNode"};try{f.current?.gridView.showLoading();let A=m(W,z.treeOption?.parentField,z.treeOption?.dataField);f.current.dataProvider.fillJsonData({treeNode:A},Y),z.treeOption.isExpand&&f.current.gridView?.expandAll()}catch(A){console.error("fillJsonData 오류:",A)}finally{f.current?.gridView.closeLoading()}}z?.isCurrent?f.current?.gridView.setCurrent({dataRow:X}):f.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>f.current,getCurrentRow:()=>f.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>f.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(W){f.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!W?.indenting,header:"default",footer:"default",sheetName:"",fileName:W?.fileName||"sample.xlsx",...W})},getGridSaveData:()=>{const W=f.current?.dataProvider?.getAllStateRows();if(W===void 0)return[{}];let z=[];if(W.created!==void 0&&W.created.length>0)for(const X in W.created){let Y=f.current?.dataProvider?.getJsonRow(W.created[X]);Y={...Y,iudFlag:"I"},z.push(Y)}if(W.updated!==void 0&&W.updated.length>0)for(const X in W.updated){let Y=f.current?.dataProvider?.getJsonRow(W.updated[X]);Y={...Y,iudFlag:"U"},z.push(Y)}if(W.deleted!==void 0&&W.deleted.length>0)for(const X in W.deleted){let Y=f.current?.dataProvider?.getJsonRow(W.deleted[X]);Y={...Y,iudFlag:"D"},z.push(Y)}return z},deleteGridData:()=>{f?.current?.gridView?.getCheckedItems()?.map(z=>{let X=f?.current?.gridView?.getDataRow(z)??-1;const Y=f?.current?.dataProvider?.getRowState(X);Y==Ct.RowState.DELETED?(f?.current?.dataProvider?.setRowState(X,h.current.get(z)??Ct.RowState.NONE),h.current.delete(z)):Y==Ct.RowState.CREATED?f?.current?.dataProvider?.setRowState(X,Ct.RowState.CREATE_AND_DELETED):Y==Ct.RowState.CREATE_AND_DELETED?f?.current?.dataProvider?.setRowState(X,Ct.RowState.CREATED):(h.current.set(z,Y??Ct.RowState.NONE),f?.current?.dataProvider?.setRowState(X,Ct.RowState.DELETED)),f?.current?.gridView?.checkItem(z,!1)})},_oriRowState:[{}],dp:f.current?.dataProvider??null,vw:f.current?.gridView??null}));const v=y.useCallback((W,z,X)=>{if(s!==void 0&&X>=0){let Y=W.getDataSource().getJsonRow(X);s?.current?.setFieldsValue(Y)}else s!==void 0&&X<0&&s?.current?.resetFields();W.setCurrent({dataRow:0}),a?.onCurrentRowChanged&&a?.onCurrentRowChanged(W,z,X)},[s,a]),b=y.useCallback((W,z,X)=>{const Y=z.fieldName??"";s?.current?.getFieldInstance(Y)&&s?.current.setFieldValue(Y,X),a?.onEditChange&&a?.onEditChange(W,z,X)},[s,a]),C=y.useCallback((W,z,X)=>{const Y=W.getOrgFieldName(X),A=W.getValue(z,X);s?.current?.setFieldValue(Y,A)},[s]),P=y.useCallback((W,z,X,Y)=>{const A=W.getColumn(Y).name??"",G=W.getValue(z,Y);s?.current?.getFieldInstance(A)&&s?.current.setFieldValue(A,G),a?.onCellEdited&&a?.onCellEdited(W,z,X,Y)},[s,a]),E=y.useCallback((W,z,X,Y)=>{if(typeof z.dataRow=="number"&&z.dataRow!=-1){var A=W.getDataSource().getRowState(z.dataRow);if(A=="deleted"||A=="createAndDeleted")return!1}return a?.onShowEditor!=null&&a?.onShowEditor(W,z,X,Y),!0},[s,a]),j=y.useCallback(W=>{if(!f.current)return;const z=f.current.gridView,X=z.getDataSource();if(i?.container?.page){const Y=z.getPage(),A=z.getPageCount(),G=X.getRowCount();U({currentPage:Y,totalPages:A,totalData:G})}},[i?.container?.page]),S=y.useCallback(()=>{if(!f.current)return;const W=f.current.gridView,z=W.getDataSource(),X=["onKeyDown"],Y=["onRowInserted"];Object.keys(a??{}).map(A=>{X.includes(A)?W[A+"Add"]=a?.[A]:W[A]=a?.[A],Y.includes(A)?z[A+"Add"]=a?.[A]:z[A]=a?.[A]}),z instanceof Ct.LocalDataProvider&&(z.onRowInserted=(A,G)=>{G<0||(setTimeout(function(){W?.setCurrent({dataRow:G})},1),A.onRowInsertedAdd!==void 0&&A.onRowInsertedAdd(A,G))}),W.onKeyDown=function(A,G){if(G.code=="Space"){let K=A.getSelectedItems(!0);for(const te in K)A.isCheckable(K[te])&&(A.isCheckedItem(K[te])?A.checkItem(K[te],!1,!1):A.checkItem(K[te],!0,!1))}return A.onKeyDownAdd!==void 0&&A.onKeyDownAdd(A,G),!0},f.current.gridView.onCurrentRowChanged=v,f.current.gridView.onEditChange=b,f.current.gridView.getDataSource().onValueChanged=C,f.current.gridView.onCellEdited=P,f.current.gridView.onShowEditor=E,f.current.gridView.onDataLoadComplated=j},[v,b,C,P,E,j]),O=y.useCallback(W=>{if(W){try{W.gridView.setSortingOptions({enabled:!0}),W.gridView.sortMode=Ct.SortMode.EXPLICIT,W.gridView.editorOptions.viewGridInside=!0,W.gridView instanceof Ct.TreeView&&W.gridView.setTreeOptions({expandWhenSetData:Ct.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:Ct.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),W.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:i?.display?.minRowHeight||43,maxRowHeight:i?.display?.maxRowHeight||100,rowHeight:i?.display?.rowHeight||43,rowChangeDelay:i?.display?.rowChangeDelay||0,selectionStyle:i?.display?.selectionStyle||Ct.SelectionStyle.ROWS,fitStyle:i?.display?.fitStyle||Ct.GridFitStyle.FILL,useAlternateRowStyle:i?.display?.useAlternateRowStyle||!1}),W.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:i?.edit?.editable||!1,validateOnEdited:i?.edit?.validateOnEdited||!1}),W.gridView.setCopyOptions({singleMode:i?.copy?.singleMode||!1}),W.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),W.gridView.header.height=i?.header?.height||43,W.gridView.header.styleName=i?.header?.styleName||"bwgGridHeader",i?.container?.radio?W.gridView.setCheckBar({exclusive:i?.container?.radio||!1}):W.gridView.setCheckBar({visible:i?.container?.check||!1,showAll:i?.container?.checkAll||!1}),W.gridView.setStateBar({visible:i?.container?.state||!1}),W.gridView.rowIndicator.visible=i?.container?.indicator||!1,W.gridView instanceof Ct.GridView&&(W.gridView.groupPanel.visible=i?.container?.panel||!1),W.gridView.setFooters({visible:i?.container?.footer||!1}),W.gridView.setHeader({visible:i?.container?.header||!0,showTooltip:i?.container?.headerShowTooltip||!1}),W.gridView.formatOptions.numberFormat="#,##0"}catch(z){console.log("그리드 옵션 설정 중 오류:",z)}try{W.gridView instanceof Ct.TreeView?W.gridView.setContextMenu(UO):W.gridView.setContextMenu(WO),W.gridView.onContextMenuItemClicked=function(z,X,Y){if(!(!Y||!Y.column)){if(X.tag=="excel")_(z,{isTitle:!1},l?.excel);else if(X.tag=="showIndentExcel")_(z,{isTitle:!1,treeBlank:!0},l?.excel);else if(X.tag=="withTitleExcel")_(z,{isTitle:!0,treeBlank:!1},l?.excel);else if(X.tag=="filter")L(z,X);else if(X.tag=="fixedCol"){const G=z.getDataSource().getFieldIndex(Y.column);z.setFixedOptions({colCount:G})}else if(X.tag=="fixedRow")z.setFixedOptions({rowCount:(Y.itemIndex||0)+1});else if(X.tag=="fixedCancel")z.setFixedOptions({colCount:0,rowCount:0});else if(X.tag=="hide")z.setColumnProperty(Y.column,"visible",!1),z._hideCols[z._hideCols.length]=Y.column;else if(X.tag=="hideClear")for(var A=0;A<z._hideCols.length;A++)z.setColumnProperty(z._hideCols[A],"visible",!0)}}}catch(z){console.log("컨텍스트 설정 중 오류:",z)}}},[i]),k=W=>{if(!(!c||c.length===0))try{c.forEach(z=>{const{name:X,renderer:Y}=z;if(X&&Y){const A=typeof Y=="function"?new Y:Y;W.gridView.registerCustomRenderer(X,A)}})}catch(z){console.error("커스텀 렌더러 초기화 중 오류:",z)}},D=W=>{W.onPageChanged=(z,X)=>{U(Y=>({...Y,currentPage:X}))},W.onPageCountChanged=(z,X)=>{U(Y=>({...Y,totalPages:X}))}},B=W=>{f.current?.gridView&&f.current.gridView.setPage(W)},M=W=>{if(i?.layout?.colspan&&i.layout.colspan.length>0&&i?.layout?.colspan.forEach(z=>{const X=W.gridView.layoutByColumn(z.fieldName);if(X){const Y=z.span;X.spanCallback=function(A,G,K){return Y}}}),n&&n.length>0&&n.some(X=>X.children&&X.children.length>0))try{(()=>{const Y=JSON.parse(JSON.stringify(n)),A=[],G=K=>{const te=[];return K.children.map(oe=>{if(oe.children&&oe.children.length>0){const fe=G(oe),me=oe.header?.text||oe.fieldName,be=W.gridView.getColumnProperty(oe.fieldName,"header");delete oe.children,delete oe.header;let Me={name:oe.fieldName,header:{text:be?.text||me,template:be?.template,values:be?.values,visible:be?.visible??!0},items:fe,...oe};te.push(Me)}else te.push(oe.fieldName)}),te};Y.map(K=>{if(K.children&&K.children.length>0){const te=G(K),oe=K.header?.text||K.fieldName,fe=K.header?.visible??!0,me=W.gridView.getColumnProperty(K.fieldName,"header");delete K.children,delete K.header;const be={name:K.fieldName,header:{text:me?.text||oe,template:me?.template,values:me?.values,visible:me?.visible||fe},items:te,...K};A.push(be)}else A.push(K.fieldName)}),console.log("Final Layout!!",A),W.gridView.setColumnLayout(A)})()}catch(X){console.error("컬럼 레이아웃 설정 오류:",X)}},I=()=>{if(f.current){if(e==="nrml"){const W=f.current;if(O(W),k(W),n&&n.length>0){const z=g(n),X=x(n);W.gridView.getDataSource().setFields(z),W.gridView.setColumns(X)}if(M(W),i?.container?.page){const z=i?.pagingOption?.pageSize||10;W.gridView.setPaging(!0,z),D(W.gridView)}}else{const W=f.current;if(O(W),k(W),n&&n.length>0){const z=g(n),X=x(n);W.gridView.getDataSource().setFields(z),W.gridView.setColumns(X)}M(f.current)}setTimeout(()=>{if(d){const W=typeof u=="object"&&u!==null?u.current:null;d(W)}},0)}},_=(W,z,X)=>{const Y=W.getDataSource();let A=X?.footer==null?"default":X.footer;Y.getRowCount()<1&&(A="hidden");let G={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!z?.treeBlank,footer:A,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:X?.fileName||"sample.xlsx"};Y instanceof Ct.LocalTreeDataProvider&&(G.indenting=!!z?.treeBlank),X?.isCellMerge==!0&&(G.separateRows=!1),ae.isEmpty(X?.sheetName)==!1&&(G.sheetName=X?.sheetName),z?.isTitle&&(G.documentTitle={message:ae.isSafeEmpty(X?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},ae.isEmpty(X?.subTitle)==!1&&(G.documentSubtitle={message:X?.subTitle,visible:!0,styleName:"center",height:20}),ae.isEmpty(X?.tailTitle)==!1&&(G.documentTail={message:X?.tailTitle,visible:!0,styleName:"documentStyle"})),W.exportGrid(G)},L=(W,z)=>{const X=W.getDataSource(),Y=X.getOrgFieldNames();if(z.checked)for(var A=0;A<Y.length;A++){let K=[],te=X.getDistinctValues(Y[A])??[];if(te.length==0)continue;let oe=W.columnByName(Y[A]);for(var G=0;G<te.length;G++){if(te[G]==null)continue;let fe=oe.values!=null&&oe.values.indexOf(te[G])!=-1?oe?.labels?.[oe.values.indexOf(te[G])]:te[G];ae.isEmpty(fe)&&(ae.isEmpty(te[G])?fe=" ":fe=te[G]);let me="";te[G]==null?me="value="+te[G]:me="value='"+te[G]+"'",K.push({name:fe,criteria:me})}W.setColumnFilters(Y[A],K)}else for(var A=0;A<Y.length;A++)W.clearColumnFilters(Y[A]),W.activateAllColumnFilters(Y[A],!1),W.clearColumnFilters(Y[A])};y.useEffect(()=>{if(f.current&&f.current.gridView)if(e==="nrml"){const W=f.current;O(W)}else{const W=f.current;O(W)}},[e,i,O]),y.useEffect(()=>{!f.current||!n||n.length===0||I()},[n]),y.useEffect(()=>{f.current&&S()},[a,S]);const[R,T]=y.useState(!1),[N,F]=y.useState(""),V=y.useRef(null),[J,U]=y.useState({currentPage:0,totalPages:0,totalData:0});y.useEffect(()=>{U({currentPage:0,totalPages:0,totalData:0})},[]),y.useEffect(()=>{R&&setTimeout(()=>{V.current?.focus?.()},0)},[R]),y.useEffect(()=>()=>{if(f.current)try{const W=f.current;W.gridView&&(W.gridView.onDataLoadComplated=void 0,W.gridView.onCurrentRowChanged=void 0,W.gridView.onCellClicked=void 0,W.gridView.onCellDblClicked=void 0,W.gridView.onEditRowChanged=void 0,W.gridView.onItemChecked=void 0,W.gridView.onItemAllChecked=void 0,W.gridView.onColumnCheckedChanged=void 0,W.gridView.onCellButtonClicked=void 0,W.gridView.onEditChange=void 0,W.gridView.onCellEdited=void 0,W.gridView.onKeyUp=void 0,W.gridView.onKeyDown=void 0,W.gridView.onWheel=void 0,W.gridView.onValidateColumn=void 0,W.gridView.onValidateRow=void 0,W.gridView.onValidationFail=void 0,W.gridView.onRowInserting=void 0,W.gridView.onCellItemClicked=void 0,W.gridView.onShowEditor=void 0,W.gridView.getDataSource()&&(W.gridView.getDataSource().clearRows(),W.gridView.getDataSource().setFields([])),W.gridView.getDataSource().clearRows())}catch(W){console.warn("⚠️ BwgGrid cleanup error:",W)}},[]);const H=y.useCallback(W=>{Q(W)},[]),Q=y.useCallback(W=>{const z=f.current?.gridView;if(z?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(z?.commit(),ae.isEmpty(W))return;const X=z?.getCurrent().itemIndex??-1;if(X<0)return;const Y={value:W,startIndex:X+1,wrap:!0,caseSensitive:!1,partialMatch:!0},A=z?.searchCell(Y);z?.setCurrent(A)},[]),ie=y.useCallback(W=>{W.key==="Escape"&&(W.preventDefault(),T(!1))},[]),de=y.useCallback(W=>{W.ctrlKey&&W.code==="KeyF"&&(W.preventDefault(),F(""),T(!R))},[R]),le={searchRow:H,searchEnter:Q,handleCloseKeyword:ie,handleSearch:de},ve=y.useMemo(()=>({...t,position:"relative",width:t?.width||"100%",height:t?.height||"100%"}),[t]);return o.jsxs(KO,{children:[o.jsxs("div",{style:ve,className:r,onKeyDown:W=>le.handleSearch(W),children:[R&&o.jsx("div",{className:"grid-search-box",children:o.jsxs(p.Flex,{gap:3,children:[o.jsx(p.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:o.jsxs(p.Space.Compact,{children:[o.jsx(p.Button,{icon:o.jsx(Z.SearchOutlined,{})}),o.jsx(p.Input,{ref:V,value:N,name:"srchField",autoComplete:"off",onKeyUp:W=>le.handleCloseKeyword(W),onChange:W=>F(W.target.value),onPressEnter:W=>le.searchEnter(W)})]})}),o.jsx(p.Button,{variant:"solid",icon:o.jsx(Z.CloseOutlined,{}),onClick:()=>T(!1)})]})}),e==="nrml"?o.jsx(Zg.RealGridReact,{ref:f,autoGenerateField:!0,onInitialized:I}):o.jsx(Zg.RealTreeReact,{ref:f,autoGenerateField:!1,onInitialized:I})]}),i?.container?.page&&o.jsx(os,{currentPage:J.currentPage,totalPages:J.totalPages,pageSize:i?.pagingOption?.pageSize,totalData:J.totalData,onPageChange:B,pageSizeOptions:i?.pagingOption?.pageSizeOptions,gridRef:f})]})}),Nr=e=>({initContent(t){this._root=FO.createRoot(t)},render(t,r,n,i){const a=this._root;a&&e(t,r,n,i,a)},clearContent(t){const r=this._root;r&&setTimeout(()=>{r&&(r.unmount(),this._root=null)},0)},canClick(t){return!0},click(){return{}}}),fn=y.memo(({title:e,border:t,children:r,titleChildren:n})=>{const i=y.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return o.jsxs(ze,{type:"vertical",children:[o.jsx(Le,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:n}),o.jsx(Te,{border:!1,children:o.jsx(p.ConfigProvider,{theme:i,children:r})})]})}),ze=({type:e="horizontal",layoutAlign:t="left",verticalAlign:r,className:n,style:i,children:a})=>o.jsx("div",{style:i,className:`bwgview-content-layout ${e=="horizontal"?"hz-layout":"vt-layout"} layout-${t} ${r&&`vertical-${r}`} ${n||""}`,children:a}),mv=(e,t)=>{const r=window.innerWidth,n=window.innerHeight,i=Math.min(Math.max(e.x,0),Math.max(0,r-t.width)),a=Math.min(Math.max(e.y,0),Math.max(0,n-t.height));return{x:i,y:a}},YO=({buttons:e,onClose:t})=>{const r=(e||[]).filter(n=>n?.visible!==!1);return r.length===0?o.jsx(p.Button,{type:"default",className:"bwg-btn popup-btn",onClick:t,children:"닫기"}):o.jsxs("div",{style:{display:"flex",gap:6},children:[r.map(n=>o.jsx(p.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)),o.jsx(p.Button,{type:"default",className:"bwg-btn popup-btn",onClick:t,children:"닫기"})]})},Yi=({popup:e,popupEvent:t,onClose:r,children:n,buttons:i})=>{const a=y.useRef(null),s=e?.popupTitle||"팝업",l=e?.width||800,c=e?.height||600,[d,u]=y.useState(l),[f,h]=y.useState(c),m=y.useMemo(()=>{const E=Math.max(0,(window.innerWidth-l)/2),j=Math.max(0,(window.innerHeight-c)/2);return{x:E,y:j}},[l,c]),[g,x]=y.useState(m),v=(E,j)=>{const S=mv({x:j.x,y:j.y},{width:d,height:f});x(S)},b=(E,j,S,O,k)=>{const D={width:parseInt(S.style.width,10),height:parseInt(S.style.height,10)},B=mv(k,D);u(D.width),h(D.height),x(B)},C=()=>a.current??document.body,P=typeof e?.zIndex=="number"?e.zIndex:3e3;return o.jsxs("div",{style:{position:"fixed",inset:0,zIndex:P},children:[o.jsx("div",{onClick:r,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),o.jsxs(yO.Rnd,{className:"bwg-popup",size:{width:d,height:f},position:g,bounds:"window",minWidth:400,minHeight:300,onDragStop:v,onResizeStop:b,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:[o.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:o.jsx(lw,{getPopupContainer:C,children:o.jsx(ze,{type:"vertical",children:o.jsx(p.Card,{className:"popup-drag-container",title:o.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:s}),style:{width:"100%",height:"100%"},styles:{body:{height:"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:o.jsx(YO,{buttons:i,onClose:()=>e?.close?.()||r?.()}),children:o.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:o.jsx(bt.SearchBoxProvider,{children:n})})})})})}),o.jsx("div",{ref:a,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},St=({children:e,...t})=>o.jsx(p.Row,{...t,className:"bwg-row",children:e}),_c=({children:e})=>o.jsx("div",{style:{height:"100%",padding:"20px 30px 26px"},children:o.jsx("div",{style:{width:"100%",height:"100%",border:"1px solid #ddd",borderRadius:"15px",background:"#fff"},children:e})}),GO=({rowKey:e="id",columns:t,dataSource:r,loading:n=!1,rowSelection:i,size:a="middle",pagination:s=!1,...l})=>o.jsx(p.Table,{rowKey:e,columns:t,dataSource:r,loading:n,rowSelection:i,size:a,pagination:s,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...l}),lr=e=>{const{type:t="card",animated:r=!0,...n}=e;return o.jsx(p.Tabs,{type:t,animated:r,...n})};function np(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 XO(e){if(Array.isArray(e))return np(e)}function uw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _h(e,t){if(e){if(typeof e=="string")return np(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)?np(e,t):void 0}}function ZO(){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 Wt(e){return XO(e)||uw(e)||_h(e)||ZO()}function At(){return At=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},At.apply(null,arguments)}var QO={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 dw(e){if(Array.isArray(e))return e}function JO(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,l=[],c=!0,d=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(u){d=!0,i=u}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return l}}function fw(){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 xe(e,t){return dw(e)||JO(e,t)||_h(e,t)||fw()}function Ve(e){"@babel/helpers - typeof";return Ve=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},Ve(e)}function ek(e,t){if(Ve(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ve(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pw(e){var t=ek(e,"string");return Ve(t)=="symbol"?t:t+""}function ge(e,t,r){return(t=pw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tk(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 Jr(e,t){if(e==null)return{};var r,n,i=tk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Yu={exports:{}};/*!
4
+ Copyright (c) 2018 Jed Watson.
5
+ Licensed under the MIT License (MIT), see
6
+ http://jedwatson.github.io/classnames
7
+ */var gv;function rk(){return gv||(gv=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(a=i(a,n(l)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var s="";for(var l in a)t.call(a,l)&&a[l]&&(s=i(s,l));return s}function i(a,s){return s?a?a+" "+s:a+s:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Yu)),Yu.exports}var nk=rk();const Ae=jr(nk),Lt=Math.round;function Gu(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const vv=(e,t,r)=>r===0?e:e/100;function da(e,t){const r=t||255;return e>r?r:e<0?0:e}let Rt=class hw{constructor(t){ge(this,"isValid",!0),ge(this,"r",0),ge(this,"g",0),ge(this,"b",0),ge(this,"a",1),ge(this,"_h",void 0),ge(this,"_s",void 0),ge(this,"_l",void 0),ge(this,"_v",void 0),ge(this,"_max",void 0),ge(this,"_min",void 0),ge(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 i=function(a){return n.startsWith(a)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(t instanceof hw)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=da(t.r),this.g=da(t.g),this.b=da(t.b),this.a=typeof t.a=="number"?da(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(a){const s=a/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),i=t(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Lt(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 i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(t,r=50){const n=this._c(t),i=r/100,a=l=>(n[l]-this[l])*i+this[l],s={r:Lt(a("r")),g:Lt(a("g")),b:Lt(a("b")),a:Lt(a("a")*100)/100};return this._c(s)}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),i=a=>Lt((this[a]*this.a+r[a]*r.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("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 i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Lt(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Lt(this.getSaturation()*100),n=Lt(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 i=this.clone();return i[t]=da(r,n),i}_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(i,a){return parseInt(r[i]+r[a||i],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:i}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const h=Lt(n*255);this.r=h,this.g=h,this.b=h}let a=0,s=0,l=0;const c=t/60,d=(1-Math.abs(2*n-1))*r,u=d*(1-Math.abs(c%2-1));c>=0&&c<1?(a=d,s=u):c>=1&&c<2?(a=u,s=d):c>=2&&c<3?(s=d,l=u):c>=3&&c<4?(s=u,l=d):c>=4&&c<5?(a=u,l=d):c>=5&&c<6&&(a=d,l=u);const f=n-d/2;this.r=Lt((a+f)*255),this.g=Lt((s+f)*255),this.b=Lt((l+f)*255)}fromHsv({h:t,s:r,v:n,a:i}){this._h=t%360,this._s=r,this._v=n,this.a=typeof i=="number"?i:1;const a=Lt(n*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;const s=t/60,l=Math.floor(s),c=s-l,d=Lt(n*(1-r)*255),u=Lt(n*(1-r*c)*255),f=Lt(n*(1-r*(1-c))*255);switch(l){case 0:this.g=f,this.b=d;break;case 1:this.r=u,this.b=d;break;case 2:this.r=d,this.b=f;break;case 3:this.r=d,this.g=u;break;case 4:this.r=f,this.g=d;break;case 5:default:this.g=d,this.b=u;break}}fromHsvString(t){const r=Gu(t,vv);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=Gu(t,vv);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=Gu(t,(n,i)=>i.includes("%")?Lt(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Ws=2,yv=.16,ik=.05,ok=.05,ak=.15,mw=5,gw=4,sk=[{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 xv(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Ws*t:Math.round(e.h)+Ws*t:n=r?Math.round(e.h)+Ws*t:Math.round(e.h)-Ws*t,n<0?n+=360:n>=360&&(n-=360),n}function bv(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-yv*t:t===gw?n=e.s+yv:n=e.s+ik*t,n>1&&(n=1),r&&t===mw&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function wv(e,t,r){var n;return r?n=e.v+ok*t:n=e.v-ak*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Aa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new Rt(e),i=n.toHsv(),a=mw;a>0;a-=1){var s=new Rt({h:xv(i,a,!0),s:bv(i,a,!0),v:wv(i,a,!0)});r.push(s)}r.push(n);for(var l=1;l<=gw;l+=1){var c=new Rt({h:xv(i,l),s:bv(i,l),v:wv(i,l)});r.push(c)}return t.theme==="dark"?sk.map(function(d){var u=d.index,f=d.amount;return new Rt(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(d){return d.toHexString()})}var Xu={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"},ip=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ip.primary=ip[5];var op=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];op.primary=op[5];var ap=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ap.primary=ap[5];var Fl=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Fl.primary=Fl[5];var sp=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];sp.primary=sp[5];var lp=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];lp.primary=lp[5];var cp=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];cp.primary=cp[5];var up=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];up.primary=up[5];var Vl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Vl.primary=Vl[5];var dp=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];dp.primary=dp[5];var fp=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];fp.primary=fp[5];var pp=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];pp.primary=pp[5];var hp=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];hp.primary=hp[5];var Zu={red:ip,volcano:op,orange:ap,gold:Fl,yellow:sp,lime:lp,green:cp,cyan:up,blue:Vl,geekblue:dp,purple:fp,magenta:pp,grey:hp},Bh=y.createContext({});function Cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cv(Object(r),!0).forEach(function(n){ge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function or(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function lk(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 Sv="data-rc-order",jv="data-rc-priority",ck="rc-util-key",mp=new Map;function vw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):ck}function Bc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function uk(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function $h(e){return Array.from((mp.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function yw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!or())return null;var r=t.csp,n=t.prepend,i=t.priority,a=i===void 0?0:i,s=uk(n),l=s==="prependQueue",c=document.createElement("style");c.setAttribute(Sv,s),l&&a&&c.setAttribute(jv,"".concat(a)),r!=null&&r.nonce&&(c.nonce=r?.nonce),c.innerHTML=e;var d=Bc(t),u=d.firstChild;if(n){if(l){var f=(t.styles||$h(d)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(Sv)))return!1;var m=Number(h.getAttribute(jv)||0);return a>=m});if(f.length)return d.insertBefore(c,f[f.length-1].nextSibling),c}d.insertBefore(c,u)}else d.appendChild(c);return c}function xw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Bc(t);return(t.styles||$h(r)).find(function(n){return n.getAttribute(vw(t))===e})}function Na(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=xw(e,t);if(r){var n=Bc(t);n.removeChild(r)}}function dk(e,t){var r=mp.get(e);if(!r||!lk(document,r)){var n=yw("",t),i=n.parentNode;mp.set(e,i),e.removeChild(n)}}function Tn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Bc(r),i=$h(n),a=ue(ue({},r),{},{styles:i});dk(n,a);var s=xw(t,a);if(s){var l,c;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&s.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var d;s.nonce=(d=a.csp)===null||d===void 0?void 0:d.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var u=yw(e,a);return u.setAttribute(vw(a),t),u}function bw(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function fk(e){return bw(e)instanceof ShadowRoot}function Hl(e){return fk(e)?bw(e):null}var gp={},Lh=[],pk=function(t){Lh.push(t)};function Co(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Lh.reduce(function(n,i){return i(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function hk(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Lh.reduce(function(n,i){return i(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function ww(){gp={}}function Cw(e,t,r){!t&&!gp[r]&&(e(!1,r),gp[r]=!0)}function $n(e,t){Cw(Co,e,t)}function mk(e,t){Cw(hk,e,t)}$n.preMessage=pk;$n.resetWarned=ww;$n.noteOnce=mk;function gk(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function vk(e,t){$n(e,"[@ant-design/icons] ".concat(t))}function Pv(e){return Ve(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ve(e.icon)==="object"||typeof e.icon=="function")}function Ev(){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[gk(r)]=n}return t},{})}function vp(e,t,r){return r?y.createElement(e.tag,ue(ue({key:t},Ev(e.attrs)),r),(e.children||[]).map(function(n,i){return vp(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):y.createElement(e.tag,ue({key:t},Ev(e.attrs)),(e.children||[]).map(function(n,i){return vp(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Sw(e){return Aa(e)[0]}function jw(e){return e?Array.isArray(e)?e:[e]:[]}var yk=`
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
+ `,xk=function(t){var r=y.useContext(Bh),n=r.csp,i=r.prefixCls,a=r.layer,s=yk;i&&(s=s.replace(/anticon/g,i)),a&&(s="@layer ".concat(a,` {
63
+ `).concat(s,`
64
+ }`)),y.useEffect(function(){var l=t.current,c=Hl(l);Tn(s,"@ant-design-icons",{prepend:!a,csp:n,attachTo:c})},[])},bk=["icon","className","onClick","style","primaryColor","secondaryColor"],Oa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function wk(e){var t=e.primaryColor,r=e.secondaryColor;Oa.primaryColor=t,Oa.secondaryColor=r||Sw(t),Oa.calculated=!!r}function Ck(){return ue({},Oa)}var Bo=function(t){var r=t.icon,n=t.className,i=t.onClick,a=t.style,s=t.primaryColor,l=t.secondaryColor,c=Jr(t,bk),d=w.useRef(),u=Oa;if(s&&(u={primaryColor:s,secondaryColor:l||Sw(s)}),xk(d),vk(Pv(r),"icon should be icon definiton, but got ".concat(r)),!Pv(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=ue(ue({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),vp(f.icon,"svg-".concat(f.name),ue(ue({className:n,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:d}))};Bo.displayName="IconReact";Bo.getTwoToneColors=Ck;Bo.setTwoToneColors=wk;function Pw(e){var t=jw(e),r=xe(t,2),n=r[0],i=r[1];return Bo.setTwoToneColors({primaryColor:n,secondaryColor:i})}function Sk(){var e=Bo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var jk=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Pw(Vl.primary);var Ln=w.forwardRef(function(e,t){var r=e.className,n=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,d=Jr(e,jk),u=w.useContext(Bh),f=u.prefixCls,h=f===void 0?"anticon":f,m=u.rootClassName,g=Ae(m,h,ge(ge({},"".concat(h,"-").concat(n.name),!!n.name),"".concat(h,"-spin"),!!i||n.name==="loading"),r),x=s;x===void 0&&l&&(x=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=jw(c),C=xe(b,2),P=C[0],E=C[1];return w.createElement("span",At({role:"img","aria-label":n.name},d,{ref:t,tabIndex:x,onClick:l,className:g}),w.createElement(Bo,{icon:n,primaryColor:P,secondaryColor:E,style:v}))});Ln.displayName="AntdIcon";Ln.getTwoToneColor=Sk;Ln.setTwoToneColor=Pw;var Pk=function(t,r){return w.createElement(Ln,At({},t,{ref:r,icon:QO}))},Ew=w.forwardRef(Pk);process.env.NODE_ENV!=="production"&&(Ew.displayName="EditOutlined");var Ek=Symbol.for("react.element"),Ok=Symbol.for("react.transitional.element"),kk=Symbol.for("react.fragment");function Ow(e){return e&&Ve(e)==="object"&&(e.$$typeof===Ek||e.$$typeof===Ok)&&e.type===kk}function Da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return y.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Da(n)):Ow(n)&&n.props?r=r.concat(Da(n.props.children,t)):r.push(n))}),r}function _a(e){return e instanceof HTMLElement||e instanceof SVGElement}function Tk(e){return e&&Ve(e)==="object"&&_a(e.nativeElement)?e.nativeElement:_a(e)?e:null}function Pl(e){var t=Tk(e);if(t)return t;if(e instanceof y.Component){var r;return(r=Li.findDOMNode)===null||r===void 0?void 0:r.call(Li,e)}return null}var Us={exports:{}},qe={};/**
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 Ov;function Ik(){if(Ov)return qe;Ov=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function x(v){if(typeof v=="object"&&v!==null){var b=v.$$typeof;switch(b){case e:switch(v=v.type,v){case r:case i:case n:case d:case u:return v;default:switch(v=v&&v.$$typeof,v){case l:case s:case c:case h:case f:case a:return v;default:return b}}case t:return b}}}return qe.ContextConsumer=s,qe.ContextProvider=a,qe.Element=e,qe.ForwardRef=c,qe.Fragment=r,qe.Lazy=h,qe.Memo=f,qe.Portal=t,qe.Profiler=i,qe.StrictMode=n,qe.Suspense=d,qe.SuspenseList=u,qe.isAsyncMode=function(){return!1},qe.isConcurrentMode=function(){return!1},qe.isContextConsumer=function(v){return x(v)===s},qe.isContextProvider=function(v){return x(v)===a},qe.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},qe.isForwardRef=function(v){return x(v)===c},qe.isFragment=function(v){return x(v)===r},qe.isLazy=function(v){return x(v)===h},qe.isMemo=function(v){return x(v)===f},qe.isPortal=function(v){return x(v)===t},qe.isProfiler=function(v){return x(v)===i},qe.isStrictMode=function(v){return x(v)===n},qe.isSuspense=function(v){return x(v)===d},qe.isSuspenseList=function(v){return x(v)===u},qe.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===d||v===u||v===m||typeof v=="object"&&v!==null&&(v.$$typeof===h||v.$$typeof===f||v.$$typeof===a||v.$$typeof===s||v.$$typeof===c||v.$$typeof===g||v.getModuleId!==void 0)},qe.typeOf=x,qe}var Ye={};/**
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 kv;function Mk(){return kv||(kv=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"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=!1,x=!1,v=!1,b=!1,C=!1,P;P=Symbol.for("react.module.reference");function E(K){return!!(typeof K=="string"||typeof K=="function"||K===r||K===i||C||K===n||K===d||K===u||b||K===m||g||x||v||typeof K=="object"&&K!==null&&(K.$$typeof===h||K.$$typeof===f||K.$$typeof===a||K.$$typeof===s||K.$$typeof===c||K.$$typeof===P||K.getModuleId!==void 0))}function j(K){if(typeof K=="object"&&K!==null){var te=K.$$typeof;switch(te){case e:var oe=K.type;switch(oe){case r:case i:case n:case d:case u:return oe;default:var fe=oe&&oe.$$typeof;switch(fe){case l:case s:case c:case h:case f:case a:return fe;default:return te}}case t:return te}}}var S=s,O=a,k=e,D=c,B=r,M=h,I=f,_=t,L=i,R=n,T=d,N=u,F=!1,V=!1;function J(K){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(K){return V||(V=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(K){return j(K)===s}function Q(K){return j(K)===a}function ie(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function de(K){return j(K)===c}function le(K){return j(K)===r}function ve(K){return j(K)===h}function W(K){return j(K)===f}function z(K){return j(K)===t}function X(K){return j(K)===i}function Y(K){return j(K)===n}function A(K){return j(K)===d}function G(K){return j(K)===u}Ye.ContextConsumer=S,Ye.ContextProvider=O,Ye.Element=k,Ye.ForwardRef=D,Ye.Fragment=B,Ye.Lazy=M,Ye.Memo=I,Ye.Portal=_,Ye.Profiler=L,Ye.StrictMode=R,Ye.Suspense=T,Ye.SuspenseList=N,Ye.isAsyncMode=J,Ye.isConcurrentMode=U,Ye.isContextConsumer=H,Ye.isContextProvider=Q,Ye.isElement=ie,Ye.isForwardRef=de,Ye.isFragment=le,Ye.isLazy=ve,Ye.isMemo=W,Ye.isPortal=z,Ye.isProfiler=X,Ye.isStrictMode=Y,Ye.isSuspense=A,Ye.isSuspenseList=G,Ye.isValidElementType=E,Ye.typeOf=j})()),Ye}var Tv;function Rk(){return Tv||(Tv=1,process.env.NODE_ENV==="production"?Us.exports=Ik():Us.exports=Mk()),Us.exports}var El=Rk();function zh(e,t,r){var n=w.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Ak=Number(y.version.split(".")[0]),Fh=function(t,r){typeof t=="function"?t(r):Ve(t)==="object"&&t&&"current"in t&&(t.current=r)},as=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);return i.length<=1?i[0]:function(a){r.forEach(function(s){Fh(s,a)})}},Vh=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zh(function(){return as.apply(void 0,r)},r,function(i,a){return i.length!==a.length||i.every(function(s,l){return s!==a[l]})})},$c=function(t){var r,n;if(!t)return!1;if(kw(t)&&Ak>=19)return!0;var i=El.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((r=i.prototype)!==null&&r!==void 0&&r.render)&&i.$$typeof!==El.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==El.ForwardRef)};function kw(e){return y.isValidElement(e)&&!Ow(e)}var Hh=function(t){if(t&&kw(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},yp=w.createContext(null);function Nk(e){var t=e.children,r=e.onBatchResize,n=w.useRef(0),i=w.useRef([]),a=w.useContext(yp),s=w.useCallback(function(l,c,d){n.current+=1;var u=n.current;i.current.push({size:l,element:c,data:d}),Promise.resolve().then(function(){u===n.current&&(r?.(i.current),i.current=[])}),a?.(l,c,d)},[r,a]);return w.createElement(yp.Provider,{value:s},t)}var Tw=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,a){return i[0]===r?(n=a,!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),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,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 i=0,a=this.__entries__;i<a.length;i++){var s=a[i];r.call(n,s[1],s[0])}},t})()})(),xp=typeof window<"u"&&typeof document<"u"&&window.document===document,Wl=(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")()})(),Dk=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Wl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),_k=2;function Bk(e,t){var r=!1,n=!1,i=0;function a(){r&&(r=!1,e()),n&&l()}function s(){Dk(a)}function l(){var c=Date.now();if(r){if(c-i<_k)return;n=!0}else r=!0,n=!1,setTimeout(s,t);i=c}return l}var $k=20,Lk=["top","right","bottom","left","width","height","size","weight"],zk=typeof MutationObserver<"u",Fk=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Bk(this.refresh.bind(this),$k)}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(){!xp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),zk?(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(){!xp||!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,i=Lk.some(function(a){return!!~n.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Iw=(function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e}),So=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Wl}),Mw=Lc(0,0,0,0);function Ul(e){return parseFloat(e)||0}function Iv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var a=e["border-"+i+"-width"];return n+Ul(a)},0)}function Vk(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var a=i[n],s=e["padding-"+a];r[a]=Ul(s)}return r}function Hk(e){var t=e.getBBox();return Lc(0,0,t.width,t.height)}function Wk(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Mw;var n=So(e).getComputedStyle(e),i=Vk(n),a=i.left+i.right,s=i.top+i.bottom,l=Ul(n.width),c=Ul(n.height);if(n.boxSizing==="border-box"&&(Math.round(l+a)!==t&&(l-=Iv(n,"left","right")+a),Math.round(c+s)!==r&&(c-=Iv(n,"top","bottom")+s)),!Kk(e)){var d=Math.round(l+a)-t,u=Math.round(c+s)-r;Math.abs(d)!==1&&(l-=d),Math.abs(u)!==1&&(c-=u)}return Lc(i.left,i.top,l,c)}var Uk=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof So(e).SVGGraphicsElement}:function(e){return e instanceof So(e).SVGElement&&typeof e.getBBox=="function"}})();function Kk(e){return e===So(e).document.documentElement}function qk(e){return xp?Uk(e)?Hk(e):Wk(e):Mw}function Yk(e){var t=e.x,r=e.y,n=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(a.prototype);return Iw(s,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),s}function Lc(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Gk=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Lc(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=qk(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})(),Xk=(function(){function e(t,r){var n=Yk(r);Iw(this,{target:t,contentRect:n})}return e})(),Zk=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Tw,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 So(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Gk(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 So(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 Xk(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})(),Rw=typeof WeakMap<"u"?new WeakMap:new Tw,Aw=(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=Fk.getInstance(),n=new Zk(t,r,this);Rw.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Aw.prototype[e]=function(){var t;return(t=Rw.get(this))[e].apply(t,arguments)}});var Qk=(function(){return typeof Wl.ResizeObserver<"u"?Wl.ResizeObserver:Aw})(),En=new Map;function Nw(e){e.forEach(function(t){var r,n=t.target;(r=En.get(n))===null||r===void 0||r.forEach(function(i){return i(n)})})}var Dw=new Qk(Nw);process.env.NODE_ENV;process.env.NODE_ENV;function Jk(e,t){En.has(e)||(En.set(e,new Set),Dw.observe(e)),En.get(e).add(t)}function eT(e,t){En.has(e)&&(En.get(e).delete(t),En.get(e).size||(Dw.unobserve(e),En.delete(e)))}function Lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tT(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,pw(n.key),n)}}function zr(e,t,r){return t&&tT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bp(e,t){return bp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},bp(e,t)}function ss(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&&bp(e,t)}function Kl(e){return Kl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kl(e)}function _w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_w=function(){return!!e})()}function ka(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rT(e,t){if(t&&(Ve(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ka(e)}function ls(e){var t=_w();return function(){var r,n=Kl(e);if(t){var i=Kl(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return rT(this,r)}}var nT=(function(e){ss(r,e);var t=ls(r);function r(){return Lr(this,r),t.apply(this,arguments)}return zr(r,[{key:"render",value:function(){return this.props.children}}]),r})(w.Component);function iT(e,t){var r=e.children,n=e.disabled,i=w.useRef(null),a=w.useRef(null),s=w.useContext(yp),l=typeof r=="function",c=l?r(i):r,d=w.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&w.isValidElement(c)&&$c(c),f=u?Hh(c):null,h=Vh(f,i),m=function(){var b;return Pl(i.current)||(i.current&&Ve(i.current)==="object"?Pl((b=i.current)===null||b===void 0?void 0:b.nativeElement):null)||Pl(a.current)};w.useImperativeHandle(t,function(){return m()});var g=w.useRef(e);g.current=e;var x=w.useCallback(function(v){var b=g.current,C=b.onResize,P=b.data,E=v.getBoundingClientRect(),j=E.width,S=E.height,O=v.offsetWidth,k=v.offsetHeight,D=Math.floor(j),B=Math.floor(S);if(d.current.width!==D||d.current.height!==B||d.current.offsetWidth!==O||d.current.offsetHeight!==k){var M={width:D,height:B,offsetWidth:O,offsetHeight:k};d.current=M;var I=O===Math.round(j)?j:O,_=k===Math.round(S)?S:k,L=ue(ue({},M),{},{offsetWidth:I,offsetHeight:_});s?.(L,v,P),C&&Promise.resolve().then(function(){C(L,v)})}},[]);return w.useEffect(function(){var v=m();return v&&!n&&Jk(v,x),function(){return eT(v,x)}},[i.current,n]),w.createElement(nT,{ref:a},u?w.cloneElement(c,{ref:h}):c)}var Bw=w.forwardRef(iT);process.env.NODE_ENV!=="production"&&(Bw.displayName="SingleObserver");var oT="rc-observer-key";function aT(e,t){var r=e.children,n=typeof r=="function"?[r]:Da(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Co(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Co(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(i,a){var s=i?.key||"".concat(oT,"-").concat(a);return w.createElement(Bw,At({},e,{key:s,ref:a===0?t:void 0}),i)})}var $o=w.forwardRef(aT);process.env.NODE_ENV!=="production"&&($o.displayName="ResizeObserver");$o.Collection=Nk;var Mv=process.env.NODE_ENV!=="test"&&or()?w.useLayoutEffect:w.useEffect,ut=function(t,r){var n=w.useRef(!0);Mv(function(){return t(n.current)},r),Mv(function(){return n.current=!1,function(){n.current=!0}},[])},Rv=function(t,r){ut(function(n){if(!n)return t()},r)};function wr(e){var t=w.useRef();t.current=e;var r=w.useCallback(function(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(a))},[]);return r}function Ba(e){var t=w.useRef(!1),r=w.useState(e),n=xe(r,2),i=n[0],a=n[1];w.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(l,c){c&&t.current||a(l)}return[i,s]}function Qu(e){return e!==void 0}function jo(e,t){var r=t||{},n=r.defaultValue,i=r.value,a=r.onChange,s=r.postState,l=Ba(function(){return Qu(i)?i:Qu(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=xe(l,2),d=c[0],u=c[1],f=i!==void 0?i:d,h=s?s(f):f,m=wr(a),g=Ba([f]),x=xe(g,2),v=x[0],b=x[1];Rv(function(){var P=v[0];d!==P&&m(d,P)},[v]),Rv(function(){Qu(i)||u(i)},[i]);var C=wr(function(P,E){u(P,E),b([f],E)});return[h,C]}function $w(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var sT=function(t){if(or()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(i){return i in n.style})}return!1};function Av(e,t){return sT(e)}function $a(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=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(i){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 lT(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(a);if($n(!c,"Warning: There may be circular references"),c)return!1;if(a===s)return!0;if(r&&l>1)return!1;n.add(a);var d=l+1;if(Array.isArray(a)){if(!Array.isArray(s)||a.length!==s.length)return!1;for(var u=0;u<a.length;u++)if(!i(a[u],s[u],d))return!1;return!0}if(a&&s&&Ve(a)==="object"&&Ve(s)==="object"){var f=Object.keys(a);return f.length!==Object.keys(s).length?!1:f.every(function(h){return i(a[h],s[h],d)})}return!1}return i(e,t)}var cT="%";function wp(e){return e.join(cT)}var uT=(function(){function e(t){Lr(this,e),ge(this,"instanceId",void 0),ge(this,"cache",new Map),ge(this,"extracted",new Set),this.instanceId=t}return zr(e,[{key:"get",value:function(r){return this.opGet(wp(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(wp(r),n)}},{key:"opUpdate",value:function(r,n){var i=this.cache.get(r),a=n(i);a===null?this.cache.delete(r):this.cache.set(r,a)}}]),e})(),La="data-token-hash",cn="data-css-hash",dT="data-cache-path",li="__cssinjs_instance__";function fT(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(cn,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(i){i[li]=i[li]||e,i[li]===e&&document.head.insertBefore(i,r)});var n={};Array.from(document.querySelectorAll("style[".concat(cn,"]"))).forEach(function(i){var a=i.getAttribute(cn);if(n[a]){if(i[li]===e){var s;(s=i.parentNode)===null||s===void 0||s.removeChild(i)}}else n[a]=!0})}return new uT(e)}var cs=w.createContext({hashPriority:"low",cache:fT(),defaultCache:!0});function pT(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 Wh=(function(){function e(){Lr(this,e),ge(this,"cache",void 0),ge(this,"keys",void 0),ge(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return zr(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return r.forEach(function(l){if(!s)s=void 0;else{var c;s=(c=s)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(n=s)!==null&&n!==void 0&&n.value&&a&&(s.value[1]=this.cacheCallTimes++),(i=s)===null||i===void 0?void 0:i.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 i=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(d,u){var f=xe(d,2),h=f[1];return i.internalGet(u)[1]<h?[u,i.internalGet(u)[1]]:d},[this.keys[0],this.cacheCallTimes]),s=xe(a,1),l=s[0];this.delete(l)}this.keys.push(r)}var c=this.cache;r.forEach(function(d,u){if(u===r.length-1)c.set(d,{value:[n,i.cacheCallTimes++]});else{var f=c.get(d);f?f.map||(f.map=new Map):c.set(d,{map:new Map}),c=c.get(d).map}})}},{key:"deleteByPath",value:function(r,n){var i=r.get(n[0]);if(n.length===1){var a;return i.map?r.set(n[0],{map:i.map}):r.delete(n[0]),(a=i.value)===null||a===void 0?void 0:a[0]}var s=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&r.delete(n[0]),s}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!pT(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();ge(Wh,"MAX_CACHE_SIZE",20);ge(Wh,"MAX_CACHE_OFFSET",5);var Nv=0,Lw=(function(){function e(t){Lr(this,e),ge(this,"derivatives",void 0),ge(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Nv,t.length===0&&Co(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Nv+=1}return zr(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e})(),Ju=new Wh;function Cp(e){var t=Array.isArray(e)?e:[e];return Ju.has(t)||Ju.set(t,new Lw(t)),Ju.get(t)}var hT=new WeakMap,ed={};function mT(e,t){for(var r=hT,n=0;n<t.length;n+=1){var i=t[n];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(ed)||r.set(ed,e()),r.get(ed)}var Dv=new WeakMap;function Ta(e){var t=Dv.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof Lw?t+=n.id:n&&Ve(n)==="object"?t+=Ta(n):t+=n}),t=$a(t),Dv.set(e,t)),t}function _v(e,t){return $a("".concat(t,"_").concat(Ta(e)))}var Sp=or();function Je(e){return typeof e=="number"?"".concat(e,"px"):e}var Ol=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()},gT=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(i){var a=xe(i,2),s=a[0],l=a[1];return"".concat(s,":").concat(l,";")}).join(""),"}"):""},zw=function(t,r,n){var i={},a={};return Object.entries(t).forEach(function(s){var l,c,d=xe(s,2),u=d[0],f=d[1];if(n!=null&&(l=n.preserve)!==null&&l!==void 0&&l[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(c=n.ignore)!==null&&c!==void 0&&c[u])){var h,m=Ol(u,n?.prefix);i[m]=typeof f=="number"&&!(n!=null&&(h=n.unitless)!==null&&h!==void 0&&h[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(m,")")}}),[a,gT(i,r,{scope:n?.scope})]},vT=ue({},w),Bv=vT.useInsertionEffect,yT=function(t,r,n){w.useMemo(t,n),ut(function(){return r(!0)},n)},xT=Bv?function(e,t,r){return Bv(function(){return e(),t()},r)}:yT,bT=ue({},w),wT=bT.useInsertionEffect,CT=function(t){var r=[],n=!1;function i(a){if(n){process.env.NODE_ENV!=="production"&&Co(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(a)}return w.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(a){return a()})}},t),i},ST=function(){return function(t){t()}},jT=typeof wT<"u"?CT:ST;function PT(){return!1}var jp=!1;function ET(){return jp}const OT=process.env.NODE_ENV==="production"?PT:ET;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Ks&&typeof Ks.webpackHotUpdate=="function"){var kT=Ks.webpackHotUpdate;Ks.webpackHotUpdate=function(){return jp=!0,setTimeout(function(){jp=!1},0),kT.apply(void 0,arguments)}}}function Uh(e,t,r,n,i){var a=w.useContext(cs),s=a.cache,l=[e].concat(Wt(t)),c=wp(l),d=jT([c]),u=OT(),f=function(x){s.opUpdate(c,function(v){var b=v||[void 0,void 0],C=xe(b,2),P=C[0],E=P===void 0?0:P,j=C[1],S=j;process.env.NODE_ENV!=="production"&&j&&u&&(n?.(S,u),S=null);var O=S||r(),k=[E,O];return x?x(k):k})};w.useMemo(function(){f()},[c]);var h=s.opGet(c);process.env.NODE_ENV!=="production"&&!h&&(f(),h=s.opGet(c));var m=h[1];return xT(function(){i?.(m)},function(g){return f(function(x){var v=xe(x,2),b=v[0],C=v[1];return g&&b===0&&i?.(m),[b+1,C]}),function(){s.opUpdate(c,function(x){var v=x||[],b=xe(v,2),C=b[0],P=C===void 0?0:C,E=b[1],j=P-1;return j===0?(d(function(){(g||!s.opGet(c))&&n?.(E,!1)}),null):[P-1,E]})}},[c]),m}var TT={},IT=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",ki=new Map;function MT(e){ki.set(e,(ki.get(e)||0)+1)}function RT(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(La,'="').concat(e,'"]'));r.forEach(function(n){if(n[li]===t){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n)}})}}var AT=0;function NT(e,t){ki.set(e,(ki.get(e)||0)-1);var r=new Set;ki.forEach(function(n,i){n<=0&&r.add(i)}),ki.size-r.size>AT&&r.forEach(function(n){RT(n,t),ki.delete(n)})}var DT=function(t,r,n,i){var a=n.getDerivativeToken(t),s=ue(ue({},a),r);return i&&(s=i(s)),s},_T="token";function BT(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=y.useContext(cs),i=n.cache.instanceId,a=n.container,s=r.salt,l=s===void 0?"":s,c=r.override,d=c===void 0?TT:c,u=r.formatToken,f=r.getComputedToken,h=r.cssVar,m=mT(function(){return Object.assign.apply(Object,[{}].concat(Wt(t)))},t),g=Ta(m),x=Ta(d),v=h?Ta(h):"",b=Uh(_T,[l,e.id,g,x,v],function(){var C,P=f?f(m,d,e):DT(m,d,e,u),E=ue({},P),j="";if(h){var S=zw(P,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),O=xe(S,2);P=O[0],j=O[1]}var k=_v(P,l);P._tokenKey=k,E._tokenKey=_v(E,l);var D=(C=h?.key)!==null&&C!==void 0?C:k;P._themeKey=D,MT(D);var B="".concat(IT,"-").concat($a(k));return P._hashId=B,[P,B,E,j,h?.key||""]},function(C){NT(C[0]._themeKey,i)},function(C){var P=xe(C,4),E=P[0],j=P[3];if(h&&j){var S=Tn(j,$a("css-variables-".concat(E._themeKey)),{mark:cn,prepend:"queue",attachTo:a,priority:-999});S[li]=i,S.setAttribute(La,E._themeKey)}});return b}var $T={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},Fw="comm",Vw="rule",Hw="decl",LT="@import",zT="@namespace",FT="@keyframes",VT="@layer",Ww=Math.abs,Kh=String.fromCharCode;function Uw(e){return e.trim()}function kl(e,t,r){return e.replace(t,r)}function HT(e,t,r){return e.indexOf(t,r)}function xo(e,t){return e.charCodeAt(t)|0}function Po(e,t,r){return e.slice(t,r)}function sn(e){return e.length}function WT(e){return e.length}function qs(e,t){return t.push(e),e}var zc=1,Eo=1,Kw=0,Dr=0,Pt=0,Lo="";function qh(e,t,r,n,i,a,s,l){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:zc,column:Eo,length:s,return:"",siblings:l}}function UT(){return Pt}function KT(){return Pt=Dr>0?xo(Lo,--Dr):0,Eo--,Pt===10&&(Eo=1,zc--),Pt}function Xr(){return Pt=Dr<Kw?xo(Lo,Dr++):0,Eo++,Pt===10&&(Eo=1,zc++),Pt}function ci(){return xo(Lo,Dr)}function Tl(){return Dr}function Fc(e,t){return Po(Lo,e,t)}function za(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 qT(e){return zc=Eo=1,Kw=sn(Lo=e),Dr=0,[]}function YT(e){return Lo="",e}function td(e){return Uw(Fc(Dr-1,Pp(e===91?e+2:e===40?e+1:e)))}function GT(e){for(;(Pt=ci())&&Pt<33;)Xr();return za(e)>2||za(Pt)>3?"":" "}function XT(e,t){for(;--t&&Xr()&&!(Pt<48||Pt>102||Pt>57&&Pt<65||Pt>70&&Pt<97););return Fc(e,Tl()+(t<6&&ci()==32&&Xr()==32))}function Pp(e){for(;Xr();)switch(Pt){case e:return Dr;case 34:case 39:e!==34&&e!==39&&Pp(Pt);break;case 40:e===41&&Pp(e);break;case 92:Xr();break}return Dr}function ZT(e,t){for(;Xr()&&e+Pt!==57;)if(e+Pt===84&&ci()===47)break;return"/*"+Fc(t,Dr-1)+"*"+Kh(e===47?e:Xr())}function QT(e){for(;!za(ci());)Xr();return Fc(e,Dr)}function JT(e){return YT(Il("",null,null,null,[""],e=qT(e),0,[0],e))}function Il(e,t,r,n,i,a,s,l,c){for(var d=0,u=0,f=s,h=0,m=0,g=0,x=1,v=1,b=1,C=0,P="",E=i,j=a,S=n,O=P;v;)switch(g=C,C=Xr()){case 40:if(g!=108&&xo(O,f-1)==58){HT(O+=kl(td(C),"&","&\f"),"&\f",Ww(d?l[d-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:O+=td(C);break;case 9:case 10:case 13:case 32:O+=GT(g);break;case 92:O+=XT(Tl()-1,7);continue;case 47:switch(ci()){case 42:case 47:qs(eI(ZT(Xr(),Tl()),t,r,c),c),(za(g||1)==5||za(ci()||1)==5)&&sn(O)&&Po(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*x:l[d++]=sn(O)*b;case 125*x:case 59:case 0:switch(C){case 0:case 125:v=0;case 59+u:b==-1&&(O=kl(O,/\f/g,"")),m>0&&(sn(O)-f||x===0&&g===47)&&qs(m>32?Lv(O+";",n,r,f-1,c):Lv(kl(O," ","")+";",n,r,f-2,c),c);break;case 59:O+=";";default:if(qs(S=$v(O,t,r,d,u,i,l,P,E=[],j=[],f,a),a),C===123)if(u===0)Il(O,t,S,S,E,a,f,l,j);else{switch(h){case 99:if(xo(O,3)===110)break;case 108:if(xo(O,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Il(e,S,S,n&&qs($v(e,S,S,0,0,i,l,P,i,E=[],f,j),j),i,j,f,l,n?E:j):Il(O,S,S,S,[""],j,0,l,j)}}d=u=m=0,x=b=1,P=O="",f=s;break;case 58:f=1+sn(O),m=g;default:if(x<1){if(C==123)--x;else if(C==125&&x++==0&&KT()==125)continue}switch(O+=Kh(C),C*x){case 38:b=u>0?1:(O+="\f",-1);break;case 44:l[d++]=(sn(O)-1)*b,b=1;break;case 64:ci()===45&&(O+=td(Xr())),h=ci(),u=f=sn(P=O+=QT(Tl())),C++;break;case 45:g===45&&sn(O)==2&&(x=0)}}return a}function $v(e,t,r,n,i,a,s,l,c,d,u,f){for(var h=i-1,m=i===0?a:[""],g=WT(m),x=0,v=0,b=0;x<n;++x)for(var C=0,P=Po(e,h+1,h=Ww(v=s[x])),E=e;C<g;++C)(E=Uw(v>0?m[C]+" "+P:kl(P,/&\f/g,m[C])))&&(c[b++]=E);return qh(e,t,r,i===0?Vw:l,c,d,u,f)}function eI(e,t,r,n){return qh(e,t,r,Fw,Kh(UT()),Po(e,2,-2),0,n)}function Lv(e,t,r,n,i){return qh(e,t,r,Hw,Po(e,0,n),Po(e,n+1,-1),n,i)}function Ep(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function tI(e,t,r,n){switch(e.type){case VT:if(e.children.length)break;case LT:case zT:case Hw:return e.return=e.return||e.value;case Fw:return"";case FT:return e.return=e.value+"{"+Ep(e.children,n)+"}";case Vw:if(!sn(e.value=e.props.join(",")))return""}return sn(r=Ep(e.children,n))?e.return=e.value+"{"+r+"}":""}function qw(e,t){var r=t.path,n=t.parentSelectors;$n(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var rI=function(t,r,n){if(t==="content"){var i=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof r!="string"||a.indexOf(r)===-1&&!i.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&qw("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},nI=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&qw("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},zv="data-ant-cssinjs-cache-path",Yw="_FILE_STYLE__",Ai,Gw=!0;function iI(){if(!Ai&&(Ai={},or())){var e=document.createElement("div");e.className=zv,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(i){var a=i.split(":"),s=xe(a,2),l=s[0],c=s[1];Ai[l]=c});var r=document.querySelector("style[".concat(zv,"]"));if(r){var n;Gw=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function oI(e){return iI(),!!Ai[e]}function aI(e){var t=Ai[e],r=null;if(t&&or())if(Gw)r=Yw;else{var n=document.querySelector("style[".concat(cn,'="').concat(Ai[e],'"]'));n?r=n.innerHTML:delete Ai[e]}return[r,t]}var Xw="_skip_check_",Zw="_multi_value_";function rd(e){var t=Ep(JT(e),tI);return t.replace(/\{%%%\:[^;];}/g,";")}function sI(e){return Ve(e)==="object"&&e&&(Xw in e||Zw in e)}function Fv(e,t,r){if(!t)return e;var n=".".concat(t),i=r==="low"?":where(".concat(n,")"):n,a=e.split(",").map(function(s){var l,c=s.trim().split(/\s+/),d=c[0]||"",u=((l=d.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return d="".concat(u).concat(i).concat(d.slice(u.length)),[d].concat(Wt(c.slice(1))).join(" ")});return a.join(",")}var lI=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:[]},i=n.root,a=n.injectHash,s=n.parentSelectors,l=r.hashId,c=r.layer,d=r.path,u=r.hashPriority,f=r.transformers,h=f===void 0?[]:f,m=r.linters,g=m===void 0?[]:m,x="",v={};function b(E){var j=E.getName(l);if(!v[j]){var S=e(E.style,r,{root:!1,parentSelectors:s}),O=xe(S,1),k=O[0];v[j]="@keyframes ".concat(E.getName(l)).concat(k)}}function C(E){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.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(E){var j=typeof E=="string"&&!i?{}:E;if(typeof j=="string")x+="".concat(j,`
81
+ `);else if(j._keyframe)b(j);else{var S=h.reduce(function(O,k){var D;return(k==null||(D=k.visit)===null||D===void 0?void 0:D.call(k,O))||O},j);Object.keys(S).forEach(function(O){var k=S[O];if(Ve(k)==="object"&&k&&(O!=="animationName"||!k._keyframe)&&!sI(k)){var D=!1,B=O.trim(),M=!1;(i||a)&&l?B.startsWith("@")?D=!0:B==="&"?B=Fv("",l,u):B=Fv(O,l,u):i&&!l&&(B==="&"||B==="")&&(B="",M=!0);var I=e(k,r,{root:M,injectHash:D,parentSelectors:[].concat(Wt(s),[B])}),_=xe(I,2),L=_[0],R=_[1];v=ue(ue({},v),R),x+="".concat(B).concat(L)}else{let F=function(V,J){process.env.NODE_ENV!=="production"&&(Ve(k)!=="object"||!(k!=null&&k[Xw]))&&[rI,nI].concat(Wt(g)).forEach(function(Q){return Q(V,J,{path:d,hashId:l,parentSelectors:s})});var U=V.replace(/[A-Z]/g,function(Q){return"-".concat(Q.toLowerCase())}),H=J;!$T[V]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),V==="animationName"&&J!==null&&J!==void 0&&J._keyframe&&(b(J),H=J.getName(l)),x+="".concat(U,":").concat(H,";")};var T,N=(T=k?.value)!==null&&T!==void 0?T:k;Ve(k)==="object"&&k!==null&&k!==void 0&&k[Zw]&&Array.isArray(N)?N.forEach(function(V){F(O,V)}):F(O,N)}})}}),i?c&&(x&&(x="@layer ".concat(c.name," {").concat(x,"}")),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(c.name,";")}).join(`
82
+ `))):x="{".concat(x,"}"),[x,v]};function Qw(e,t){return $a("".concat(e.join("%")).concat(t))}function cI(){return null}var uI="style";function Op(e,t){var r=e.token,n=e.path,i=e.hashId,a=e.layer,s=e.nonce,l=e.clientOnly,c=e.order,d=c===void 0?0:c,u=w.useContext(cs),f=u.autoClear,h=u.mock,m=u.defaultCache,g=u.hashPriority,x=u.container,v=u.ssrInline,b=u.transformers,C=u.linters,P=u.cache,E=u.layer,j=r._tokenKey,S=[j];E&&S.push("layer"),S.push.apply(S,Wt(n));var O=Sp;process.env.NODE_ENV!=="production"&&h!==void 0&&(O=h==="client");var k=Uh(uI,S,function(){var _=S.join("|");if(oI(_)){var L=aI(_),R=xe(L,2),T=R[0],N=R[1];if(T)return[T,j,N,{},l,d]}var F=t(),V=lI(F,{hashId:i,hashPriority:g,layer:E?a:void 0,path:n.join("-"),transformers:b,linters:C}),J=xe(V,2),U=J[0],H=J[1],Q=rd(U),ie=Qw(S,Q);return[Q,j,ie,H,l,d]},function(_,L){var R=xe(_,3),T=R[2];(L||f)&&Sp&&Na(T,{mark:cn,attachTo:x})},function(_){var L=xe(_,4),R=L[0],T=L[2],N=L[3];if(O&&R!==Yw){var F={mark:cn,prepend:E?!1:"queue",attachTo:x,priority:d},V=typeof s=="function"?s():s;V&&(F.csp={nonce:V});var J=[],U=[];Object.keys(N).forEach(function(Q){Q.startsWith("@layer")?J.push(Q):U.push(Q)}),J.forEach(function(Q){Tn(rd(N[Q]),"_layer-".concat(Q),ue(ue({},F),{},{prepend:!0}))});var H=Tn(R,T,F);H[li]=P.instanceId,H.setAttribute(La,j),process.env.NODE_ENV!=="production"&&H.setAttribute(dT,S.join("|")),U.forEach(function(Q){Tn(rd(N[Q]),"_effect-".concat(Q),F)})}}),D=xe(k,3),B=D[0],M=D[1],I=D[2];return function(_){var L;return!v||O||!m?L=w.createElement(cI,null):L=w.createElement("style",At({},ge(ge({},La,M),cn,I),{dangerouslySetInnerHTML:{__html:B}})),w.createElement(w.Fragment,null,L,_)}}var dI="cssVar",fI=function(t,r){var n=t.key,i=t.prefix,a=t.unitless,s=t.ignore,l=t.token,c=t.scope,d=c===void 0?"":c,u=y.useContext(cs),f=u.cache.instanceId,h=u.container,m=l._tokenKey,g=[].concat(Wt(t.path),[n,d,m]),x=Uh(dI,g,function(){var v=r(),b=zw(v,n,{prefix:i,unitless:a,ignore:s,scope:d}),C=xe(b,2),P=C[0],E=C[1],j=Qw(g,E);return[P,E,j,n]},function(v){var b=xe(v,3),C=b[2];Sp&&Na(C,{mark:cn,attachTo:h})},function(v){var b=xe(v,3),C=b[1],P=b[2];if(C){var E=Tn(C,P,{mark:cn,prepend:"queue",attachTo:h,priority:-999});E[li]=f,E.setAttribute(La,n)}});return x},Fr=(function(){function e(t,r){Lr(this,e),ge(this,"name",void 0),ge(this,"style",void 0),ge(this,"_keyframe",!0),this.name=t,this.style=r}return zr(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 pI(e){return dw(e)||uw(e)||_h(e)||fw()}function kp(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function Jw(e,t,r,n){if(!t.length)return r;var i=pI(t),a=i[0],s=i.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=Wt(e):l=ue({},e),n&&r===void 0&&s.length===1?delete l[a][s[0]]:l[a]=Jw(l[a],s,r,n),l}function nd(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!kp(e,t.slice(0,-1))?e:Jw(e,t,r,n)}function hI(e){return Ve(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Vv(e){return Array.isArray(e)?[]:{}}var mI=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function gI(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Vv(t[0]);return t.forEach(function(i){function a(s,l){var c=new Set(l),d=kp(i,s),u=Array.isArray(d);if(u||hI(d)){if(!c.has(d)){c.add(d);var f=kp(n,s);u?n=nd(n,s,[]):(!f||Ve(f)!=="object")&&(n=nd(n,s,Vv(d))),mI(d).forEach(function(h){a([].concat(Wt(s),[h]),c)})}}else n=nd(n,s,d)}a([])}),n}function eC(){}let Cn=null;function vI(){Cn=null,ww()}let tC=eC;process.env.NODE_ENV!=="production"&&(tC=(e,t,r)=>{$n(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&vI()});const us=tC,rC=w.createContext({}),pn=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=w.useContext(rC),r=(n,i,a)=>{if(!n)if(t===!1&&i==="deprecated"){const s=Cn;Cn||(Cn={}),Cn[e]=Cn[e]||[],Cn[e].includes(a||"")||Cn[e].push(a||""),s||console.warn("[antd] There exists deprecated usage in your code:",Cn)}else process.env.NODE_ENV!=="production"&&us(n,e,a)};return r.deprecated=(n,i,a,s)=>{r(n,"deprecated",`\`${i}\` is deprecated. Please use \`${a}\` instead.${s?` ${s}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=eC,e},yI=y.createContext(void 0);var xI={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"},bI={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},wI=ue(ue({},bI),{},{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 nC={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Hv={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"]},wI),timePickerLocale:Object.assign({},nC)},hr="${label} is not a valid ${type}",Oo={locale:"en",Pagination:xI,DatePicker:Hv,TimePicker:nC,Calendar:Hv,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:hr,method:hr,array:hr,object:hr,number:hr,date:hr,boolean:hr,integer:hr,float:hr,regexp:hr,email:hr,url:hr,hex:hr},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({},Oo.Modal);let Ml=[];const Wv=()=>Ml.reduce((e,t)=>Object.assign(Object.assign({},e),t),Oo.Modal);function CI(e){if(e){const t=Object.assign({},e);return Ml.push(t),Wv(),()=>{Ml=Ml.filter(r=>r!==t),Wv()}}Object.assign({},Oo.Modal)}const Yh=y.createContext(void 0),SI=(e,t)=>{const r=w.useContext(Yh),n=w.useMemo(()=>{var a;const s=Oo[e],l=(a=r?.[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),l||{})},[e,t,r]),i=w.useMemo(()=>{const a=r?.locale;return r?.exist&&!a?Oo.locale:a},[r]);return[n,i]},iC="internalMark",oC=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const a=pn("LocaleProvider");process.env.NODE_ENV!=="production"&&a(n===iC,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}w.useEffect(()=>CI(t?.Modal),[t]);const i=w.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return w.createElement(Yh.Provider,{value:i},r)};process.env.NODE_ENV!=="production"&&(oC.displayName="LocaleProvider");const aC={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"},Fa=Object.assign(Object.assign({},aC),{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 jI(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:d}=e,u=t(l),f=t(n),h=t(i),m=t(a),g=t(s),x=r(c,d),v=e.colorLink||e.colorInfo,b=t(v),C=new Rt(m[1]).mix(new Rt(m[3]),50).toHexString();return Object.assign(Object.assign({},x),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:C,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Rt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const PI=e=>{let t=e,r=e,n=e,i=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?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}};function EI(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=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:i+1},PI(n))}const OI=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function kI(e){return(e+8)/e}function TI(e){const t=Array.from({length:10}).map((r,n)=>{const i=n-1,a=e*Math.pow(Math.E,i/5),s=n>1?Math.floor(a):Math.ceil(a);return Math.floor(s/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:kI(r)}))}const II=e=>{const t=TI(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),i=r[1],a=r[0],s=r[2],l=n[1],c=n[0],d=n[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:s,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:l,lineHeightLG:d,lineHeightSM:c,fontHeight:Math.round(l*i),fontHeightLG:Math.round(d*s),fontHeightSM:Math.round(c*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function MI(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 Or=(e,t)=>new Rt(e).setA(t).toRgbString(),fa=(e,t)=>new Rt(e).darken(t).toHexString(),RI=e=>{const t=Aa(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]}},AI=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Or(n,.88),colorTextSecondary:Or(n,.65),colorTextTertiary:Or(n,.45),colorTextQuaternary:Or(n,.25),colorFill:Or(n,.15),colorFillSecondary:Or(n,.06),colorFillTertiary:Or(n,.04),colorFillQuaternary:Or(n,.02),colorBgSolid:Or(n,1),colorBgSolidHover:Or(n,.75),colorBgSolidActive:Or(n,.95),colorBgLayout:fa(r,4),colorBgContainer:fa(r,0),colorBgElevated:fa(r,0),colorBgSpotlight:Or(n,.85),colorBgBlur:"transparent",colorBorder:fa(r,15),colorBorderSecondary:fa(r,6)}};function NI(e){Xu.pink=Xu.magenta,Zu.pink=Zu.magenta;const t=Object.keys(aC).map(r=>{const n=e[r]===Xu[r]?Zu[r]:Aa(e[r]);return Array.from({length:10},()=>1).reduce((i,a,s)=>(i[`${r}-${s+1}`]=n[s],i[`${r}${s+1}`]=n[s],i),{})}).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),jI(e,{generateColorPalettes:RI,generateNeutralColorPalettes:AI})),II(e.fontSize)),MI(e)),OI(e)),EI(e))}const sC=Cp(NI),Tp={token:Fa,override:{override:Fa},hashed:!0},lC=y.createContext(Tp),Ip="ant",Gh="anticon",DI=["outlined","borderless","filled","underlined"],_I=(e,t)=>t||(e?`${Ip}-${e}`:Ip),Rn=w.createContext({getPrefixCls:_I,iconPrefixCls:Gh}),Uv={};function Vc(e){const t=w.useContext(Rn),{getPrefixCls:r,direction:n,getPopupContainer:i}=t,a=t[e];return Object.assign(Object.assign({classNames:Uv,styles:Uv},a),{getPrefixCls:r,direction:n,getPopupContainer:i})}const BI=`-ant-${Date.now()}-${Math.random()}`;function $I(e,t){const r={},n=(s,l)=>{let c=s.clone();return c=l?.(c)||c,c.toRgbString()},i=(s,l)=>{const c=new Rt(s),d=Aa(c.toRgbString());r[`${l}-color`]=n(c),r[`${l}-color-disabled`]=d[1],r[`${l}-color-hover`]=d[4],r[`${l}-color-active`]=d[6],r[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),r[`${l}-color-deprecated-bg`]=d[0],r[`${l}-color-deprecated-border`]=d[2]};if(t.primaryColor){i(t.primaryColor,"primary");const s=new Rt(t.primaryColor),l=Aa(s.toRgbString());l.forEach((d,u)=>{r[`primary-${u+1}`]=d}),r["primary-color-deprecated-l-35"]=n(s,d=>d.lighten(35)),r["primary-color-deprecated-l-20"]=n(s,d=>d.lighten(20)),r["primary-color-deprecated-t-20"]=n(s,d=>d.tint(20)),r["primary-color-deprecated-t-50"]=n(s,d=>d.tint(50)),r["primary-color-deprecated-f-12"]=n(s,d=>d.setA(d.a*.12));const c=new Rt(l[0]);r["primary-color-active-deprecated-f-30"]=n(c,d=>d.setA(d.a*.3)),r["primary-color-active-deprecated-d-02"]=n(c,d=>d.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
85
+ :root {
86
+ ${Object.keys(r).map(s=>`--${e}-${s}: ${r[s]};`).join(`
87
+ `)}
88
+ }
89
+ `.trim()}function LI(e,t){const r=$I(e,t);or()?Tn(r,`${BI}-dynamic-theme`):process.env.NODE_ENV!=="production"&&us(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Va=w.createContext(!1),zI=({children:e,disabled:t})=>{const r=w.useContext(Va);return w.createElement(Va.Provider,{value:t??r},e)},ko=w.createContext(void 0),FI=({children:e,size:t})=>{const r=w.useContext(ko);return w.createElement(ko.Provider,{value:t||r},e)};function VI(){const e=y.useContext(Va),t=y.useContext(ko);return{componentDisabled:e,componentSize:t}}var cC=zr(function e(){Lr(this,e)}),uC="CALC_UNIT",HI=new RegExp(uC,"g");function id(e){return typeof e=="number"?"".concat(e).concat(uC):e}var WI=(function(e){ss(r,e);var t=ls(r);function r(n,i){var a;Lr(this,r),a=t.call(this),ge(ka(a),"result",""),ge(ka(a),"unitlessCssVar",void 0),ge(ka(a),"lowPriority",void 0);var s=Ve(n);return a.unitlessCssVar=i,n instanceof r?a.result="(".concat(n.result,")"):s==="number"?a.result=id(n):s==="string"&&(a.result=n),a}return zr(r,[{key:"add",value:function(i){return i instanceof r?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(id(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof r?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(id(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,s=i||{},l=s.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(d){return a.result.includes(d)})&&(c=!1),this.result=this.result.replace(HI,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(cC),UI=(function(e){ss(r,e);var t=ls(r);function r(n){var i;return Lr(this,r),i=t.call(this),ge(ka(i),"result",0),n instanceof r?i.result=n.result:typeof n=="number"&&(i.result=n),i}return zr(r,[{key:"add",value:function(i){return i instanceof r?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof r?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof r?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof r?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),r})(cC),KI=function(t,r){var n=t==="css"?WI:UI;return function(i){return new n(i,r)}},Kv=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 qv(e,t,r,n){var i=ue({},t[e]);if(n!=null&&n.deprecatedTokens){var a=n.deprecatedTokens;a.forEach(function(l){var c=xe(l,2),d=c[0],u=c[1];if(process.env.NODE_ENV!=="production"&&$n(!(i!=null&&i[d]),"Component Token `".concat(String(d),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),i!=null&&i[d]||i!=null&&i[u]){var f;(f=i[u])!==null&&f!==void 0||(i[u]=i?.[d])}})}var s=ue(ue({},r),i);return Object.keys(s).forEach(function(l){s[l]===t[l]&&delete s[l]}),s}var dC=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Mp=!0;function zn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!dC)return Object.assign.apply(Object,[{}].concat(t));Mp=!1;var n={};return t.forEach(function(i){if(Ve(i)==="object"){var a=Object.keys(i);a.forEach(function(s){Object.defineProperty(n,s,{configurable:!0,enumerable:!0,get:function(){return i[s]}})})}}),Mp=!0,n}var Yv={};function qI(){}var YI=function(t){var r,n=t,i=qI;return dC&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(s,l){if(Mp){var c;(c=r)===null||c===void 0||c.add(l)}return s[l]}}),i=function(s,l){var c;Yv[s]={global:Array.from(r),component:ue(ue({},(c=Yv[s])===null||c===void 0?void 0:c.component),l)}}),{token:n,keys:r,flush:i}};function Gv(e,t,r){if(typeof r=="function"){var n;return r(zn(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function GI(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"max(".concat(n.map(function(a){return Je(a)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"min(".concat(n.map(function(a){return Je(a)}).join(","),")")}}}var XI=1e3*60*10,ZI=(function(){function e(){Lr(this,e),ge(this,"map",new Map),ge(this,"objectIDMap",new WeakMap),ge(this,"nextID",0),ge(this,"lastAccessBeat",new Map),ge(this,"accessBeat",0)}return zr(e,[{key:"set",value:function(r,n){this.clear();var i=this.getCompositeKey(r);this.map.set(i,n),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),i=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(r){var n=this,i=r.map(function(a){return a&&Ve(a)==="object"?"obj_".concat(n.getObjectID(a)):"".concat(Ve(a),"_").concat(a)});return i.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(i,a){n-i>XI&&(r.map.delete(a),r.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e})(),Xv=new ZI;function QI(e,t){return y.useMemo(function(){var r=Xv.get(t);if(r)return r;var n=e();return Xv.set(t,n),n},t)}var JI=function(){return{}};function eM(e){var t=e.useCSP,r=t===void 0?JI:t,n=e.useToken,i=e.usePrefix,a=e.getResetStyles,s=e.getCommonStyle,l=e.getCompUnitless;function c(h,m,g,x){var v=Array.isArray(h)?h[0]:h;function b(k){return"".concat(String(v)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var C=x?.unitless||{},P=typeof l=="function"?l(h):{},E=ue(ue({},P),{},ge({},b("zIndexPopup"),!0));Object.keys(C).forEach(function(k){E[b(k)]=C[k]});var j=ue(ue({},x),{},{unitless:E,prefixToken:b}),S=u(h,m,g,j),O=d(v,g,j);return function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,B=S(k,D),M=xe(B,2),I=M[1],_=O(D),L=xe(_,2),R=L[0],T=L[1];return[R,I,T]}}function d(h,m,g){var x=g.unitless,v=g.injectStyle,b=v===void 0?!0:v,C=g.prefixToken,P=g.ignore,E=function(O){var k=O.rootCls,D=O.cssVar,B=D===void 0?{}:D,M=n(),I=M.realToken;return fI({path:[h],prefix:B.prefix,key:B.key,unitless:x,ignore:P,token:I,scope:k},function(){var _=Gv(h,I,m),L=qv(h,I,_,{deprecatedTokens:g?.deprecatedTokens});return Object.keys(_).forEach(function(R){L[C(R)]=L[R],delete L[R]}),L}),null},j=function(O){var k=n(),D=k.cssVar;return[function(B){return b&&D?y.createElement(y.Fragment,null,y.createElement(E,{rootCls:O,cssVar:D,component:h}),B):B},D?.key]};return j}function u(h,m,g){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(h)?h:[h,h],b=xe(v,1),C=b[0],P=v.join("-"),E=e.layer||{name:"antd"};return function(j){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,O=n(),k=O.theme,D=O.realToken,B=O.hashId,M=O.token,I=O.cssVar,_=i(),L=_.rootPrefixCls,R=_.iconPrefixCls,T=r(),N=I?"css":"js",F=QI(function(){var ie=new Set;return I&&Object.keys(x.unitless||{}).forEach(function(de){ie.add(Ol(de,I.prefix)),ie.add(Ol(de,Kv(C,I.prefix)))}),KI(N,ie)},[N,C,I?.prefix]),V=GI(N),J=V.max,U=V.min,H={theme:k,token:M,hashId:B,nonce:function(){return T.nonce},clientOnly:x.clientOnly,layer:E,order:x.order||-999};typeof a=="function"&&Op(ue(ue({},H),{},{clientOnly:!1,path:["Shared",L]}),function(){return a(M,{prefix:{rootPrefixCls:L,iconPrefixCls:R},csp:T})});var Q=Op(ue(ue({},H),{},{path:[P,j,R]}),function(){if(x.injectStyle===!1)return[];var ie=YI(M),de=ie.token,le=ie.flush,ve=Gv(C,D,g),W=".".concat(j),z=qv(C,D,ve,{deprecatedTokens:x.deprecatedTokens});I&&ve&&Ve(ve)==="object"&&Object.keys(ve).forEach(function(G){ve[G]="var(".concat(Ol(G,Kv(C,I.prefix)),")")});var X=zn(de,{componentCls:W,prefixCls:j,iconCls:".".concat(R),antCls:".".concat(L),calc:F,max:J,min:U},I?ve:z),Y=m(X,{hashId:B,prefixCls:j,rootPrefixCls:L,iconPrefixCls:R});le(C,z);var A=typeof s=="function"?s(X,j,S,x.resetFont):null;return[x.resetStyle===!1?null:A,Y]});return[Q,B]}}function f(h,m,g){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(h,m,g,ue({resetStyle:!1,order:-998},x)),b=function(P){var E=P.prefixCls,j=P.rootCls,S=j===void 0?E:j;return v(E,S),null};return process.env.NODE_ENV!=="production"&&(b.displayName="SubStyle_".concat(String(Array.isArray(h)?h.join("."):h))),b}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:u}}const ql=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],tM="5.27.6";function od(e){return e>=0&&e<=255}function Ys(e,t){const{r,g:n,b:i,a}=new Rt(e).toRgb();if(a<1)return e;const{r:s,g:l,b:c}=new Rt(t).toRgb();for(let d=.01;d<=1;d+=.01){const u=Math.round((r-s*(1-d))/d),f=Math.round((n-l*(1-d))/d),h=Math.round((i-c*(1-d))/d);if(od(u)&&od(f)&&od(h))return new Rt({r:u,g:f,b:h,a:Math.round(d*100)/100}).toRgbString()}return new Rt({r,g:n,b:i,a:1}).toRgbString()}var rM=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function fC(e){const{override:t}=e,r=rM(e,["override"]),n=Object.assign({},t);Object.keys(Fa).forEach(h=>{delete n[h]});const i=Object.assign(Object.assign({},r),n),a=480,s=576,l=768,c=992,d=1200,u=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Ys(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Ys(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Ys(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Ys(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.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:a,screenXSMin:a,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
102
+ 0 1px 2px -2px ${new Rt("rgba(0, 0, 0, 0.16)").toRgbString()},
103
+ 0 3px 6px 0 ${new Rt("rgba(0, 0, 0, 0.12)").toRgbString()},
104
+ 0 5px 12px 4px ${new Rt("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 Zv=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const pC={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},nM={motionBase:!0,motionUnit:!0},iM={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},hC=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:i}=t,a=Zv(t,["override"]);let s=Object.assign(Object.assign({},n),{override:i});return s=fC(s),a&&Object.entries(a).forEach(([l,c])=>{const{theme:d}=c,u=Zv(c,["theme"]);let f=u;d&&(f=hC(Object.assign(Object.assign({},s),u),{override:u},d)),s[l]=f}),s};function zo(){const{token:e,hashed:t,theme:r,override:n,cssVar:i}=y.useContext(lC),a=`${tM}-${t||""}`,s=r||sC,[l,c,d]=BT(s,[Fa,e],{salt:a,override:n,getComputedToken:hC,formatToken:fC,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:pC,ignore:nM,preserve:iM}});return[s,d,t?c:"",l,i]}const Xh=(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}),oM=()=>({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"}}),aM=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),sM=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"}}}),lM=(e,t,r,n)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=r?`.${r}`:i,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return n!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},l),s),{[i]:s})}},cM=(e,t)=>({outline:`${Je(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),uM=(e,t)=>({"&:focus-visible":cM(e,t)}),mC=e=>({[`.${e}`]:Object.assign(Object.assign({},oM()),{[`.${e} .${e}-icon`]:{display:"block"}})}),gC=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"},uM(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:ds}=eM({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=y.useContext(Rn);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,i]=zo();return{theme:e,realToken:t,hashId:r,token:n,cssVar:i}},useCSP:()=>{const{csp:e}=y.useContext(Rn);return e??{}},getResetStyles:(e,t)=>{var r;const n=sM(e);return[n,{"&":n},mC((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Gh)]},getCommonStyle:lM,getCompUnitless:()=>pC});function dM(e,t){return ql.reduce((r,n)=>{const i=e[`${n}1`],a=e[`${n}3`],s=e[`${n}6`],l=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:i,lightBorderColor:a,darkColor:s,textColor:l}))},{})}const fM=(e,t)=>{const[r,n]=zo();return Op({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>mC(e))},pM=Object.assign({},w),{useId:Qv}=pM,hM=()=>"",mM=typeof Qv>"u"?hM:Qv;function gM(e,t,r){var n,i;const a=pn("ConfigProvider"),s=e||{},l=s.inherit===!1||!t?Object.assign(Object.assign({},Tp),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:Tp.hashed,cssVar:t?.cssVar}):t,c=mM();if(process.env.NODE_ENV!=="production"){const d=s.cssVar||l.cssVar,u=!!(typeof s.cssVar=="object"&&(!((i=s.cssVar)===null||i===void 0)&&i.key)||c);process.env.NODE_ENV!=="production"&&a(!d||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return zh(()=>{var d,u;if(!e)return t;const f=Object.assign({},l.components);Object.keys(e.components||{}).forEach(g=>{f[g]=Object.assign(Object.assign({},f[g]),e.components[g])});const h=`css-var-${c.replace(/:/g,"")}`,m=((d=s.cssVar)!==null&&d!==void 0?d:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof s.cssVar=="object"?s.cssVar:{}),{key:typeof s.cssVar=="object"&&((u=s.cssVar)===null||u===void 0?void 0:u.key)||h});return Object.assign(Object.assign(Object.assign({},l),s),{token:Object.assign(Object.assign({},l.token),s.token),components:f,cssVar:m})},[s,l],(d,u)=>d.some((f,h)=>{const m=u[h];return!lT(f,m,!0)}))}var vM=["children"],vC=w.createContext({});function yM(e){var t=e.children,r=Jr(e,vM);return w.createElement(vC.Provider,{value:r},t)}var xM=(function(e){ss(r,e);var t=ls(r);function r(){return Lr(this,r),t.apply(this,arguments)}return zr(r,[{key:"render",value:function(){return this.props.children}}]),r})(w.Component);function bM(e){var t=w.useReducer(function(l){return l+1},0),r=xe(t,2),n=r[1],i=w.useRef(e),a=wr(function(){return i.current}),s=wr(function(l){i.current=typeof l=="function"?l(i.current):l,n()});return[a,s]}var ni="none",Gs="appear",Xs="enter",Zs="leave",Jv="none",Yr="prepare",po="start",ho="active",Zh="end",yC="prepared";function e0(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 wM(e,t){var r={animationend:e0("Animation","AnimationEnd"),transitionend:e0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var CM=wM(or(),typeof window<"u"?window:{}),xC={};if(or()){var SM=document.createElement("div");xC=SM.style}var Qs={};function bC(e){if(Qs[e])return Qs[e];var t=CM[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i<n;i+=1){var a=r[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in xC)return Qs[e]=t[a],Qs[e]}return""}var wC=bC("animationend"),CC=bC("transitionend"),jM=!!(wC&&CC),t0=wC||"animationend",r0=CC||"transitionend";function n0(e,t){if(!e)return null;if(Ve(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const PM=(function(e){var t=y.useRef();function r(i){i&&(i.removeEventListener(r0,e),i.removeEventListener(t0,e))}function n(i){t.current&&t.current!==i&&r(t.current),i&&i!==t.current&&(i.addEventListener(r0,e),i.addEventListener(t0,e),t.current=i)}return w.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var SC=or()?y.useLayoutEffect:y.useEffect,jC=function(t){return+setTimeout(t,16)},PC=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(jC=function(t){return window.requestAnimationFrame(t)},PC=function(t){return window.cancelAnimationFrame(t)});var i0=0,Hc=new Map;function EC(e){Hc.delete(e)}var To=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;i0+=1;var n=i0;function i(a){if(a===0)EC(n),t();else{var s=jC(function(){i(a-1)});Hc.set(n,s)}}return i(r),n};To.cancel=function(e){var t=Hc.get(e);return EC(e),PC(t)};process.env.NODE_ENV!=="production"&&(To.ids=function(){return Hc});const EM=(function(){var e=w.useRef(null);function t(){To.cancel(e.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=To(function(){i<=1?n({isCanceled:function(){return a!==e.current}}):r(n,i-1)});e.current=a}return w.useEffect(function(){return function(){t()}},[]),[r,t]});var OM=[Yr,po,ho,Zh],kM=[Yr,yC],OC=!1,TM=!0;function kC(e){return e===ho||e===Zh}const IM=(function(e,t,r){var n=Ba(Jv),i=xe(n,2),a=i[0],s=i[1],l=EM(),c=xe(l,2),d=c[0],u=c[1];function f(){s(Yr,!0)}var h=t?kM:OM;return SC(function(){if(a!==Jv&&a!==Zh){var m=h.indexOf(a),g=h[m+1],x=r(a);x===OC?s(g,!0):g&&d(function(v){function b(){v.isCanceled()||s(g,!0)}x===!0?b():Promise.resolve(x).then(b)})}},[e,a]),w.useEffect(function(){return function(){u()}},[]),[f,a]});function MM(e,t,r,n){var i=n.motionEnter,a=i===void 0?!0:i,s=n.motionAppear,l=s===void 0?!0:s,c=n.motionLeave,d=c===void 0?!0:c,u=n.motionDeadline,f=n.motionLeaveImmediately,h=n.onAppearPrepare,m=n.onEnterPrepare,g=n.onLeavePrepare,x=n.onAppearStart,v=n.onEnterStart,b=n.onLeaveStart,C=n.onAppearActive,P=n.onEnterActive,E=n.onLeaveActive,j=n.onAppearEnd,S=n.onEnterEnd,O=n.onLeaveEnd,k=n.onVisibleChanged,D=Ba(),B=xe(D,2),M=B[0],I=B[1],_=bM(ni),L=xe(_,2),R=L[0],T=L[1],N=Ba(null),F=xe(N,2),V=F[0],J=F[1],U=R(),H=y.useRef(!1),Q=y.useRef(null);function ie(){return r()}var de=y.useRef(!1);function le(){T(ni),J(null,!0)}var ve=wr(function(Ne){var De=R();if(De!==ni){var Ce=ie();if(!(Ne&&!Ne.deadline&&Ne.target!==Ce)){var q=de.current,re;De===Gs&&q?re=j?.(Ce,Ne):De===Xs&&q?re=S?.(Ce,Ne):De===Zs&&q&&(re=O?.(Ce,Ne)),q&&re!==!1&&le()}}}),W=PM(ve),z=xe(W,1),X=z[0],Y=function(De){switch(De){case Gs:return ge(ge(ge({},Yr,h),po,x),ho,C);case Xs:return ge(ge(ge({},Yr,m),po,v),ho,P);case Zs:return ge(ge(ge({},Yr,g),po,b),ho,E);default:return{}}},A=w.useMemo(function(){return Y(U)},[U]),G=IM(U,!e,function(Ne){if(Ne===Yr){var De=A[Yr];return De?De(ie()):OC}if(oe in A){var Ce;J(((Ce=A[oe])===null||Ce===void 0?void 0:Ce.call(A,ie(),null))||null)}return oe===ho&&U!==ni&&(X(ie()),u>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){ve({deadline:!0})},u))),oe===yC&&le(),TM}),K=xe(G,2),te=K[0],oe=K[1],fe=kC(oe);de.current=fe;var me=y.useRef(null);SC(function(){if(!(H.current&&me.current===t)){I(t);var Ne=H.current;H.current=!0;var De;!Ne&&t&&l&&(De=Gs),Ne&&t&&a&&(De=Xs),(Ne&&!t&&d||!Ne&&f&&!t&&d)&&(De=Zs);var Ce=Y(De);De&&(e||Ce[Yr])?(T(De),te()):T(ni),me.current=t}},[t]),y.useEffect(function(){(U===Gs&&!l||U===Xs&&!a||U===Zs&&!d)&&T(ni)},[l,a,d]),y.useEffect(function(){return function(){H.current=!1,clearTimeout(Q.current)}},[]);var be=w.useRef(!1);y.useEffect(function(){M&&(be.current=!0),M!==void 0&&U===ni&&((be.current||M)&&k?.(M),be.current=!0)},[M,U]);var Me=V;return A[Yr]&&oe===po&&(Me=ue({transition:"none"},Me)),[U,oe,Me,M??t]}function RM(e){var t=e;Ve(e)==="object"&&(t=e.transitionSupport);function r(i,a){return!!(i.motionName&&t&&a!==!1)}var n=w.forwardRef(function(i,a){var s=i.visible,l=s===void 0?!0:s,c=i.removeOnLeave,d=c===void 0?!0:c,u=i.forceRender,f=i.children,h=i.motionName,m=i.leavedClassName,g=i.eventProps,x=w.useContext(vC),v=x.motion,b=r(i,v),C=y.useRef(),P=y.useRef();function E(){try{return C.current instanceof HTMLElement?C.current:Pl(P.current)}catch{return null}}var j=MM(b,l,E,i),S=xe(j,4),O=S[0],k=S[1],D=S[2],B=S[3],M=w.useRef(B);B&&(M.current=!0);var I=w.useCallback(function(F){C.current=F,Fh(a,F)},[a]),_,L=ue(ue({},g),{},{visible:l});if(!f)_=null;else if(O===ni)B?_=f(ue({},L),I):!d&&M.current&&m?_=f(ue(ue({},L),{},{className:m}),I):u||!d&&!m?_=f(ue(ue({},L),{},{style:{display:"none"}}),I):_=null;else{var R;k===Yr?R="prepare":kC(k)?R="active":k===po&&(R="start");var T=n0(h,"".concat(O,"-").concat(R));_=f(ue(ue({},L),{},{className:Ae(n0(h,O),ge(ge({},T,T&&R),h,typeof h=="string")),style:D}),I)}if(w.isValidElement(_)&&$c(_)){var N=Hh(_);N||(_=w.cloneElement(_,{ref:I}))}return w.createElement(xM,{ref:P},_)});return n.displayName="CSSMotion",n}const TC=RM(jM),Rp=w.createContext(!0);process.env.NODE_ENV!=="production"&&(Rp.displayName="MotionCacheContext");function AM(e){const t=w.useContext(Rp),{children:r}=e,[,n]=zo(),{motion:i}=n,a=w.useRef(!1);return a.current||(a.current=t!==i),a.current?w.createElement(Rp.Provider,{value:i},w.createElement(yM,{motion:i},r)):r}const IC=w.memo(({dropdownMatchSelectWidth:e})=>(pn("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(IC.displayName="PropWarning");const NM=process.env.NODE_ENV!=="production"?IC:()=>null;var DM=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let Ap=!1;process.env.NODE_ENV;const _M=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let MC;function BM(){return MC||Ip}function $M(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const LM=e=>{const{prefixCls:t,theme:r}=e;t!==void 0&&(MC=t),r&&$M(r)&&(process.env.NODE_ENV!=="production"&&us(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),LI(BM(),r))},zM=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:i,anchor:a,form:s,locale:l,componentSize:c,direction:d,space:u,splitter:f,virtual:h,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:x,legacyLocale:v,parentContext:b,iconPrefixCls:C,theme:P,componentDisabled:E,segmented:j,statistic:S,spin:O,calendar:k,carousel:D,cascader:B,collapse:M,typography:I,checkbox:_,descriptions:L,divider:R,drawer:T,skeleton:N,steps:F,image:V,layout:J,list:U,mentions:H,modal:Q,progress:ie,result:de,slider:le,breadcrumb:ve,menu:W,pagination:z,input:X,textArea:Y,empty:A,badge:G,radio:K,rate:te,switch:oe,transfer:fe,avatar:me,message:be,tag:Me,table:Ne,card:De,tabs:Ce,timeline:q,timePicker:re,upload:ne,notification:ye,tree:ce,colorPicker:he,datePicker:pe,rangePicker:ke,flex:_e,wave:se,dropdown:Oe,warning:Be,tour:Pe,tooltip:Ie,popover:gt,popconfirm:vn,floatButton:yi,floatButtonGroup:eo,variant:Zo,inputNumber:to,treeSelect:Hr}=e,Yt=w.useCallback((Qe,yt)=>{const{prefixCls:rr}=e;if(yt)return yt;const Xt=rr||b.getPrefixCls("");return Qe?`${Xt}-${Qe}`:Xt},[b.getPrefixCls,e.prefixCls]),vt=C||b.iconPrefixCls||Gh,yn=r||b.csp;fM(vt,yn);const Gt=gM(P,b.theme,{prefixCls:Yt("")});process.env.NODE_ENV!=="production"&&(Ap=Ap||!!Gt);const Ge={csp:yn,autoInsertSpaceInButton:n,alert:i,anchor:a,locale:l||v,direction:d,space:u,splitter:f,virtual:h,popupMatchSelectWidth:g??m,popupOverflow:x,getPrefixCls:Yt,iconPrefixCls:vt,theme:Gt,segmented:j,statistic:S,spin:O,calendar:k,carousel:D,cascader:B,collapse:M,typography:I,checkbox:_,descriptions:L,divider:R,drawer:T,skeleton:N,steps:F,image:V,input:X,textArea:Y,layout:J,list:U,mentions:H,modal:Q,progress:ie,result:de,slider:le,breadcrumb:ve,menu:W,pagination:z,empty:A,badge:G,radio:K,rate:te,switch:oe,transfer:fe,avatar:me,message:be,tag:Me,table:Ne,card:De,tabs:Ce,timeline:q,timePicker:re,upload:ne,notification:ye,tree:ce,colorPicker:he,datePicker:pe,rangePicker:ke,flex:_e,wave:se,dropdown:Oe,warning:Be,tour:Pe,tooltip:Ie,popover:gt,popconfirm:vn,floatButton:yi,floatButtonGroup:eo,variant:Zo,inputNumber:to,treeSelect:Hr};process.env.NODE_ENV!=="production"&&pn("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Ke=Object.assign({},b);Object.keys(Ge).forEach(Qe=>{Ge[Qe]!==void 0&&(Ke[Qe]=Ge[Qe])}),_M.forEach(Qe=>{const yt=e[Qe];yt&&(Ke[Qe]=yt)}),typeof n<"u"&&(Ke.button=Object.assign({autoInsertSpace:n},Ke.button));const $t=zh(()=>Ke,Ke,(Qe,yt)=>{const rr=Object.keys(Qe),Xt=Object.keys(yt);return rr.length!==Xt.length||rr.some(nn=>Qe[nn]!==yt[nn])}),{layer:rn}=w.useContext(cs),sr=w.useMemo(()=>({prefixCls:vt,csp:yn,layer:rn?"antd":void 0}),[vt,yn,rn]);let pt=w.createElement(w.Fragment,null,w.createElement(NM,{dropdownMatchSelectWidth:m}),t);const qn=w.useMemo(()=>{var Qe,yt,rr,Xt;return gI(((Qe=Oo.Form)===null||Qe===void 0?void 0:Qe.defaultValidateMessages)||{},((rr=(yt=$t.locale)===null||yt===void 0?void 0:yt.Form)===null||rr===void 0?void 0:rr.defaultValidateMessages)||{},((Xt=$t.form)===null||Xt===void 0?void 0:Xt.validateMessages)||{},s?.validateMessages||{})},[$t,s?.validateMessages]);Object.keys(qn).length>0&&(pt=w.createElement(yI.Provider,{value:qn},pt)),l&&(pt=w.createElement(oC,{locale:l,_ANT_MARK__:iC},pt)),pt=w.createElement(Bh.Provider,{value:sr},pt),c&&(pt=w.createElement(FI,{size:c},pt)),pt=w.createElement(AM,null,pt);const xn=w.useMemo(()=>{const Qe=Gt||{},{algorithm:yt,token:rr,components:Xt,cssVar:nn}=Qe,ro=DM(Qe,["algorithm","token","components","cssVar"]),Wr=yt&&(!Array.isArray(yt)||yt.length>0)?Cp(yt):sC,Pr={};Object.entries(Xt||{}).forEach(([Ur,no])=>{const ot=Object.assign({},no);"algorithm"in ot&&(ot.algorithm===!0?ot.theme=Wr:(Array.isArray(ot.algorithm)||typeof ot.algorithm=="function")&&(ot.theme=Cp(ot.algorithm)),delete ot.algorithm),Pr[Ur]=ot});const on=Object.assign(Object.assign({},Fa),rr);return Object.assign(Object.assign({},ro),{theme:Wr,token:on,components:Pr,override:Object.assign({override:on},Pr),cssVar:nn})},[Gt]);return P&&(pt=w.createElement(lC.Provider,{value:xn},pt)),$t.warning&&(pt=w.createElement(rC.Provider,{value:$t.warning},pt)),E!==void 0&&(pt=w.createElement(zI,{disabled:E},pt)),w.createElement(Rn.Provider,{value:$t},pt)},Fo=e=>{const t=w.useContext(Rn),r=w.useContext(Yh);return w.createElement(zM,Object.assign({parentContext:t,legacyLocale:r},e))};Fo.ConfigContext=Rn;Fo.SizeContext=ko;Fo.config=LM;Fo.useConfig=VI;Object.defineProperty(Fo,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&us(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ko)});process.env.NODE_ENV!=="production"&&(Fo.displayName="ConfigProvider");function RC(e){var t=e.children,r=e.prefixCls,n=e.id,i=e.overlayInnerStyle,a=e.bodyClassName,s=e.className,l=e.style;return w.createElement("div",{className:Ae("".concat(r,"-content"),s),style:l},w.createElement("div",{className:Ae("".concat(r,"-inner"),a),id:n,role:"tooltip",style:i},typeof t=="function"?t():t))}var AC=w.createContext(null),o0=[];function FM(e,t){var r=w.useState(function(){if(!or())return null;var g=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&g.setAttribute("data-debug",t),g}),n=xe(r,1),i=n[0],a=w.useRef(!1),s=w.useContext(AC),l=w.useState(o0),c=xe(l,2),d=c[0],u=c[1],f=s||(a.current?void 0:function(g){u(function(x){var v=[g].concat(Wt(x));return v})});function h(){i.parentElement||document.body.appendChild(i),a.current=!0}function m(){var g;(g=i.parentElement)===null||g===void 0||g.removeChild(i),a.current=!1}return ut(function(){return e?s?s(h):h():m(),m},[e]),ut(function(){d.length&&(d.forEach(function(g){return g()}),u(o0))},[d]),[i,f]}function VM(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 i,a;if(e){var s=getComputedStyle(e);n.scrollbarColor=s.scrollbarColor,n.scrollbarWidth=s.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),d=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",f=d?"height: ".concat(l.height,";"):"";Tn(`
122
+ #`.concat(t,`::-webkit-scrollbar {
123
+ `).concat(u,`
124
+ `).concat(f,`
125
+ }`),t)}catch(g){console.error(g),i=c,a=d}}document.body.appendChild(r);var h=e&&i&&!isNaN(i)?i:r.offsetWidth-r.clientWidth,m=e&&a&&!isNaN(a)?a:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Na(t),{width:h,height:m}}function HM(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:VM(e)}function WM(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var UM="rc-util-locker-".concat(Date.now()),a0=0;function KM(e){var t=!!e,r=w.useState(function(){return a0+=1,"".concat(UM,"_").concat(a0)}),n=xe(r,1),i=n[0];ut(function(){if(t){var a=HM(document.body).width,s=WM();Tn(`
126
+ html body {
127
+ overflow-y: hidden;
128
+ `.concat(s?"width: calc(100% - ".concat(a,"px);"):"",`
129
+ }`),i)}else Na(i);return function(){Na(i)}},[t,i])}var qM=!1;function YM(e){return qM}var s0=function(t){return t===!1?!1:!or()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Qh=w.forwardRef(function(e,t){var r=e.open,n=e.autoLock,i=e.getContainer,a=e.debug,s=e.autoDestroy,l=s===void 0?!0:s,c=e.children,d=w.useState(r),u=xe(d,2),f=u[0],h=u[1],m=f||r;process.env.NODE_ENV!=="production"&&$n(or()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),w.useEffect(function(){(l||r)&&h(r)},[r,l]);var g=w.useState(function(){return s0(i)}),x=xe(g,2),v=x[0],b=x[1];w.useEffect(function(){var I=s0(i);b(I??null)});var C=FM(m&&!v,a),P=xe(C,2),E=P[0],j=P[1],S=v??E;KM(n&&r&&or()&&(S===E||S===document.body));var O=null;if(c&&$c(c)&&t){var k=c;O=k.ref}var D=Vh(O,t);if(!m||!or()||v===void 0)return null;var B=S===!1||YM(),M=c;return t&&(M=w.cloneElement(c,{ref:D})),w.createElement(AC.Provider,{value:j},B?M:Li.createPortal(M,S))});process.env.NODE_ENV!=="production"&&(Qh.displayName="Portal");function GM(){var e=ue({},w);return e.useId}var l0=0,c0=GM();const NC=c0?function(t){var r=c0();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=w.useState("ssr-id"),n=xe(r,2),i=n[0],a=n[1];return w.useEffect(function(){var s=l0;l0+=1,a("rc_unique_".concat(s))},[]),t||(process.env.NODE_ENV==="test"?"test-id":i)},XM=(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 ZM(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,a=n||{},s=a.className,l=a.content,c=i.x,d=c===void 0?0:c,u=i.y,f=u===void 0?0:u,h=w.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(r.autoArrow!==!1){var g=r.points[0],x=r.points[1],v=g[0],b=g[1],C=x[0],P=x[1];v===C||!["t","b"].includes(v)?m.top=f:v==="t"?m.top=0:m.bottom=0,b===P||!["l","r"].includes(b)?m.left=d:b==="l"?m.left=0:m.right=0}return w.createElement("div",{ref:h,className:Ae("".concat(t,"-arrow"),s),style:m},l)}function QM(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,a=e.motion;return i?w.createElement(TC,At({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(s){var l=s.className;return w.createElement("div",{style:{zIndex:n},className:Ae("".concat(t,"-mask"),l)})}):null}var DC=w.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(DC.displayName="PopupContent");var _C=w.forwardRef(function(e,t){var r=e.popup,n=e.className,i=e.prefixCls,a=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,d=e.keepDom,u=e.fresh,f=e.onClick,h=e.mask,m=e.arrow,g=e.arrowPos,x=e.align,v=e.motion,b=e.maskMotion,C=e.forceRender,P=e.getPopupContainer,E=e.autoDestroy,j=e.portal,S=e.zIndex,O=e.onMouseEnter,k=e.onMouseLeave,D=e.onPointerEnter,B=e.onPointerDownCapture,M=e.ready,I=e.offsetX,_=e.offsetY,L=e.offsetR,R=e.offsetB,T=e.onAlign,N=e.onPrepare,F=e.stretch,V=e.targetWidth,J=e.targetHeight,U=typeof r=="function"?r():r,H=c||d,Q=P?.length>0,ie=w.useState(!P||!Q),de=xe(ie,2),le=de[0],ve=de[1];if(ut(function(){!le&&Q&&s&&ve(!0)},[le,Q,s]),!le)return null;var W="auto",z={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(M||!c){var X,Y=x.points,A=x.dynamicInset||((X=x._experimental)===null||X===void 0?void 0:X.dynamicInset),G=A&&Y[0][1]==="r",K=A&&Y[0][0]==="b";G?(z.right=L,z.left=W):(z.left=I,z.right=W),K?(z.bottom=R,z.top=W):(z.top=_,z.bottom=W)}var te={};return F&&(F.includes("height")&&J?te.height=J:F.includes("minHeight")&&J&&(te.minHeight=J),F.includes("width")&&V?te.width=V:F.includes("minWidth")&&V&&(te.minWidth=V)),c||(te.pointerEvents="none"),w.createElement(j,{open:C||H,getContainer:P&&function(){return P(s)},autoDestroy:E},w.createElement(QM,{prefixCls:i,open:c,zIndex:S,mask:h,motion:b}),w.createElement($o,{onResize:T,disabled:!c},function(oe){return w.createElement(TC,At({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:N,onEnterPrepare:N,visible:c,onVisibleChanged:function(me){var be;v==null||(be=v.onVisibleChanged)===null||be===void 0||be.call(v,me),l(me)}}),function(fe,me){var be=fe.className,Me=fe.style,Ne=Ae(i,be,n);return w.createElement("div",{ref:as(oe,t,me),className:Ne,style:ue(ue(ue(ue({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},z),te),Me),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:O,onMouseLeave:k,onPointerEnter:D,onClick:f,onPointerDownCapture:B},m&&w.createElement(ZM,{prefixCls:i,arrow:m,arrowPos:g,align:x}),w.createElement(DC,{cache:!c&&!u},U))})}))});process.env.NODE_ENV!=="production"&&(_C.displayName="Popup");var BC=w.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=$c(r),a=w.useCallback(function(l){Fh(t,n?n(l):l)},[n]),s=Vh(a,Hh(r));return i?w.cloneElement(r,{ref:s}):r});process.env.NODE_ENV!=="production"&&(BC.displayName="TriggerWrapper");var u0=w.createContext(null);function d0(e){return e?Array.isArray(e)?e:[e]:[]}function JM(e,t,r,n){return w.useMemo(function(){var i=d0(r??t),a=d0(n??t),s=new Set(i),l=new Set(a);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[s,l]},[e,t,r,n])}const eR=(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 i=e.getBoundingClientRect(),a=i.width,s=i.height;if(a||s)return!0}}return!1});function tR(){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 rR(e,t,r,n){for(var i=r.points,a=Object.keys(e),s=0;s<a.length;s+=1){var l,c=a[s];if(tR((l=e[c])===null||l===void 0?void 0:l.points,i,n))return"".concat(t,"-placement-").concat(c)}return""}function f0(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function fs(e){return e.ownerDocument.defaultView}function Np(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=fs(r).getComputedStyle(r),a=i.overflowX,s=i.overflowY,l=i.overflow;[a,s,l].some(function(c){return n.includes(c)})&&t.push(r),r=r.parentElement}return t}function Ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function pa(e){return Ha(parseFloat(e),0)}function p0(e,t){var r=ue({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=fs(n).getComputedStyle(n),a=i.overflow,s=i.overflowClipMargin,l=i.borderTopWidth,c=i.borderBottomWidth,d=i.borderLeftWidth,u=i.borderRightWidth,f=n.getBoundingClientRect(),h=n.offsetHeight,m=n.clientHeight,g=n.offsetWidth,x=n.clientWidth,v=pa(l),b=pa(c),C=pa(d),P=pa(u),E=Ha(Math.round(f.width/g*1e3)/1e3),j=Ha(Math.round(f.height/h*1e3)/1e3),S=(g-x-C-P)*E,O=(h-m-v-b)*j,k=v*j,D=b*j,B=C*E,M=P*E,I=0,_=0;if(a==="clip"){var L=pa(s);I=L*E,_=L*j}var R=f.x+B-I,T=f.y+k-_,N=R+f.width+2*I-B-M-S,F=T+f.height+2*_-k-D-O;r.left=Math.max(r.left,R),r.top=Math.max(r.top,T),r.right=Math.min(r.right,N),r.bottom=Math.min(r.bottom,F)}}),r}function h0(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 m0(e,t){var r=t||[],n=xe(r,2),i=n[0],a=n[1];return[h0(e.width,i),h0(e.height,a)]}function g0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function so(e,t){var r=t[0],n=t[1],i,a;return r==="t"?a=e.y:r==="b"?a=e.y+e.height:a=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function Qn(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,i){return i===t?r[n]||"c":n}).join("")}function nR(e,t,r,n,i,a,s){var l=w.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),c=xe(l,2),d=c[0],u=c[1],f=w.useRef(0),h=w.useMemo(function(){return t?Np(t):[]},[t]),m=w.useRef({}),g=function(){m.current={}};e||g();var x=wr(function(){if(t&&r&&e){let Er=function(ra,bn){var Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:re,na=H.x+ra,Fs=H.y+bn,Bu=na+K,$u=Fs+G,Lu=Math.max(na,Zn.left),Se=Math.max(Fs,Zn.top),Re=Math.min(Bu,Zn.right),at=Math.min($u,Zn.bottom);return Math.max(0,(Re-Lu)*(at-Se))},oo=function(){Wr=H.y+Ke,Pr=Wr+G,on=H.x+Ge,Ur=on+K};var C,P,E,j,S=t,O=S.ownerDocument,k=fs(S),D=k.getComputedStyle(S),B=D.position,M=S.style.left,I=S.style.top,_=S.style.right,L=S.style.bottom,R=S.style.overflow,T=ue(ue({},i[n]),a),N=O.createElement("div");(C=S.parentElement)===null||C===void 0||C.appendChild(N),N.style.left="".concat(S.offsetLeft,"px"),N.style.top="".concat(S.offsetTop,"px"),N.style.position=B,N.style.height="".concat(S.offsetHeight,"px"),N.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 F;if(Array.isArray(r))F={x:r[0],y:r[1],width:0,height:0};else{var V,J,U=r.getBoundingClientRect();U.x=(V=U.x)!==null&&V!==void 0?V:U.left,U.y=(J=U.y)!==null&&J!==void 0?J:U.top,F={x:U.x,y:U.y,width:U.width,height:U.height}}var H=S.getBoundingClientRect(),Q=k.getComputedStyle(S),ie=Q.height,de=Q.width;H.x=(P=H.x)!==null&&P!==void 0?P:H.left,H.y=(E=H.y)!==null&&E!==void 0?E:H.top;var le=O.documentElement,ve=le.clientWidth,W=le.clientHeight,z=le.scrollWidth,X=le.scrollHeight,Y=le.scrollTop,A=le.scrollLeft,G=H.height,K=H.width,te=F.height,oe=F.width,fe={left:0,top:0,right:ve,bottom:W},me={left:-A,top:-Y,right:z-A,bottom:X-Y},be=T.htmlRegion,Me="visible",Ne="visibleFirst";be!=="scroll"&&be!==Ne&&(be=Me);var De=be===Ne,Ce=p0(me,h),q=p0(fe,h),re=be===Me?q:Ce,ne=De?q:re;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var ye=S.getBoundingClientRect();S.style.left=M,S.style.top=I,S.style.right=_,S.style.bottom=L,S.style.overflow=R,(j=S.parentElement)===null||j===void 0||j.removeChild(N);var ce=Ha(Math.round(K/parseFloat(de)*1e3)/1e3),he=Ha(Math.round(G/parseFloat(ie)*1e3)/1e3);if(ce===0||he===0||_a(r)&&!eR(r))return;var pe=T.offset,ke=T.targetOffset,_e=m0(H,pe),se=xe(_e,2),Oe=se[0],Be=se[1],Pe=m0(F,ke),Ie=xe(Pe,2),gt=Ie[0],vn=Ie[1];F.x-=gt,F.y-=vn;var yi=T.points||[],eo=xe(yi,2),Zo=eo[0],to=eo[1],Hr=g0(to),Yt=g0(Zo),vt=so(F,Hr),yn=so(H,Yt),Gt=ue({},T),Ge=vt.x-yn.x+Oe,Ke=vt.y-yn.y+Be,$t=Er(Ge,Ke),rn=Er(Ge,Ke,q),sr=so(F,["t","l"]),pt=so(H,["t","l"]),qn=so(F,["b","r"]),xn=so(H,["b","r"]),Qe=T.overflow||{},yt=Qe.adjustX,rr=Qe.adjustY,Xt=Qe.shiftX,nn=Qe.shiftY,ro=function(bn){return typeof bn=="boolean"?bn:bn>=0},Wr,Pr,on,Ur;oo();var no=ro(rr),ot=Yt[0]===Hr[0];if(no&&Yt[0]==="t"&&(Pr>ne.bottom||m.current.bt)){var xi=Ke;ot?xi-=G-te:xi=sr.y-xn.y-Be;var Rs=Er(Ge,xi),Eu=Er(Ge,xi,q);Rs>$t||Rs===$t&&(!De||Eu>=rn)?(m.current.bt=!0,Ke=xi,Be=-Be,Gt.points=[Qn(Yt,0),Qn(Hr,0)]):m.current.bt=!1}if(no&&Yt[0]==="b"&&(Wr<ne.top||m.current.tb)){var bi=Ke;ot?bi+=G-te:bi=qn.y-pt.y-Be;var As=Er(Ge,bi),Ou=Er(Ge,bi,q);As>$t||As===$t&&(!De||Ou>=rn)?(m.current.tb=!0,Ke=bi,Be=-Be,Gt.points=[Qn(Yt,0),Qn(Hr,0)]):m.current.tb=!1}var Ns=ro(yt),Ds=Yt[1]===Hr[1];if(Ns&&Yt[1]==="l"&&(Ur>ne.right||m.current.rl)){var wi=Ge;Ds?wi-=K-oe:wi=sr.x-xn.x-Oe;var Ci=Er(wi,Ke),Qo=Er(wi,Ke,q);Ci>$t||Ci===$t&&(!De||Qo>=rn)?(m.current.rl=!0,Ge=wi,Oe=-Oe,Gt.points=[Qn(Yt,1),Qn(Hr,1)]):m.current.rl=!1}if(Ns&&Yt[1]==="r"&&(on<ne.left||m.current.lr)){var Si=Ge;Ds?Si+=K-oe:Si=qn.x-pt.x-Oe;var Jo=Er(Si,Ke),io=Er(Si,Ke,q);Jo>$t||Jo===$t&&(!De||io>=rn)?(m.current.lr=!0,Ge=Si,Oe=-Oe,Gt.points=[Qn(Yt,1),Qn(Hr,1)]):m.current.lr=!1}oo();var Kr=Xt===!0?0:Xt;typeof Kr=="number"&&(on<q.left&&(Ge-=on-q.left-Oe,F.x+oe<q.left+Kr&&(Ge+=F.x-q.left+oe-Kr)),Ur>q.right&&(Ge-=Ur-q.right-Oe,F.x>q.right-Kr&&(Ge+=F.x-q.right+Kr)));var Yn=nn===!0?0:nn;typeof Yn=="number"&&(Wr<q.top&&(Ke-=Wr-q.top-Be,F.y+te<q.top+Yn&&(Ke+=F.y-q.top+te-Yn)),Pr>q.bottom&&(Ke-=Pr-q.bottom-Be,F.y>q.bottom-Yn&&(Ke+=F.y-q.bottom+Yn)));var Gn=H.x+Ge,Xn=Gn+K,ea=H.y+Ke,ku=ea+G,_s=F.x,Bs=_s+oe,$s=F.y,Tu=$s+te,Iu=Math.max(Gn,_s),Ls=Math.min(Xn,Bs),Mu=(Iu+Ls)/2,Ru=Mu-Gn,zs=Math.max(ea,$s),Au=Math.min(ku,Tu),Nu=(zs+Au)/2,Du=Nu-ea;s?.(t,Gt);var an=ye.right-H.x-(Ge+H.width),ta=ye.bottom-H.y-(Ke+H.height);ce===1&&(Ge=Math.round(Ge),an=Math.round(an)),he===1&&(Ke=Math.round(Ke),ta=Math.round(ta));var _u={ready:!0,offsetX:Ge/ce,offsetY:Ke/he,offsetR:an/ce,offsetB:ta/he,arrowX:Ru/ce,arrowY:Du/he,scaleX:ce,scaleY:he,align:Gt};u(_u)}}),v=function(){f.current+=1;var P=f.current;Promise.resolve().then(function(){f.current===P&&x()})},b=function(){u(function(P){return ue(ue({},P),{},{ready:!1})})};return ut(b,[n]),ut(function(){e||b()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,v]}function iR(e,t,r,n,i){ut(function(){if(e&&t&&r){let f=function(){n(),i()};var a=t,s=r,l=Np(a),c=Np(s),d=fs(s),u=new Set([d].concat(Wt(l),Wt(c)));return u.forEach(function(h){h.addEventListener("scroll",f,{passive:!0})}),d.addEventListener("resize",f,{passive:!0}),n(),function(){u.forEach(function(h){h.removeEventListener("scroll",f),d.removeEventListener("resize",f)})}}},[e,t,r])}function oR(e,t,r,n,i,a,s,l){var c=w.useRef(e);c.current=e;var d=w.useRef(!1);w.useEffect(function(){if(t&&n&&(!i||a)){var f=function(){d.current=!1},h=function(E){var j;c.current&&!s(((j=E.composedPath)===null||j===void 0||(j=j.call(E))===null||j===void 0?void 0:j[0])||E.target)&&!d.current&&l(!1)},m=fs(n);m.addEventListener("pointerdown",f,!0),m.addEventListener("mousedown",h,!0),m.addEventListener("contextmenu",h,!0);var g=Hl(r);if(g&&(g.addEventListener("mousedown",h,!0),g.addEventListener("contextmenu",h,!0)),process.env.NODE_ENV!=="production"){var x,v,b=r==null||(x=r.getRootNode)===null||x===void 0?void 0:x.call(r),C=(v=n.getRootNode)===null||v===void 0?void 0:v.call(n);Co(b===C,"trigger element and popup element should in same shadow root.")}return function(){m.removeEventListener("pointerdown",f,!0),m.removeEventListener("mousedown",h,!0),m.removeEventListener("contextmenu",h,!0),g&&(g.removeEventListener("mousedown",h,!0),g.removeEventListener("contextmenu",h,!0))}}},[t,r,n,i,a]);function u(){d.current=!0}return u}var aR=["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 sR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qh,t=w.forwardRef(function(r,n){var i=r.prefixCls,a=i===void 0?"rc-trigger-popup":i,s=r.children,l=r.action,c=l===void 0?"hover":l,d=r.showAction,u=r.hideAction,f=r.popupVisible,h=r.defaultPopupVisible,m=r.onPopupVisibleChange,g=r.afterPopupVisibleChange,x=r.mouseEnterDelay,v=r.mouseLeaveDelay,b=v===void 0?.1:v,C=r.focusDelay,P=r.blurDelay,E=r.mask,j=r.maskClosable,S=j===void 0?!0:j,O=r.getPopupContainer,k=r.forceRender,D=r.autoDestroy,B=r.destroyPopupOnHide,M=r.popup,I=r.popupClassName,_=r.popupStyle,L=r.popupPlacement,R=r.builtinPlacements,T=R===void 0?{}:R,N=r.popupAlign,F=r.zIndex,V=r.stretch,J=r.getPopupClassNameFromAlign,U=r.fresh,H=r.alignPoint,Q=r.onPopupClick,ie=r.onPopupAlign,de=r.arrow,le=r.popupMotion,ve=r.maskMotion,W=r.popupTransitionName,z=r.popupAnimation,X=r.maskTransitionName,Y=r.maskAnimation,A=r.className,G=r.getTriggerDOMNode,K=Jr(r,aR),te=D||B||!1,oe=w.useState(!1),fe=xe(oe,2),me=fe[0],be=fe[1];ut(function(){be(XM())},[]);var Me=w.useRef({}),Ne=w.useContext(u0),De=w.useMemo(function(){return{registerSubPopup:function(Re,at){Me.current[Re]=at,Ne?.registerSubPopup(Re,at)}}},[Ne]),Ce=NC(),q=w.useState(null),re=xe(q,2),ne=re[0],ye=re[1],ce=w.useRef(null),he=wr(function(Se){ce.current=Se,_a(Se)&&ne!==Se&&ye(Se),Ne?.registerSubPopup(Ce,Se)}),pe=w.useState(null),ke=xe(pe,2),_e=ke[0],se=ke[1],Oe=w.useRef(null),Be=wr(function(Se){_a(Se)&&_e!==Se&&(se(Se),Oe.current=Se)}),Pe=w.Children.only(s),Ie=Pe?.props||{},gt={},vn=wr(function(Se){var Re,at,kt=_e;return kt?.contains(Se)||((Re=Hl(kt))===null||Re===void 0?void 0:Re.host)===Se||Se===kt||ne?.contains(Se)||((at=Hl(ne))===null||at===void 0?void 0:at.host)===Se||Se===ne||Object.values(Me.current).some(function(ht){return ht?.contains(Se)||Se===ht})}),yi=f0(a,le,z,W),eo=f0(a,ve,Y,X),Zo=w.useState(h||!1),to=xe(Zo,2),Hr=to[0],Yt=to[1],vt=f??Hr,yn=wr(function(Se){f===void 0&&Yt(Se)});ut(function(){Yt(f||!1)},[f]);var Gt=w.useRef(vt);Gt.current=vt;var Ge=w.useRef([]);Ge.current=[];var Ke=wr(function(Se){var Re;yn(Se),((Re=Ge.current[Ge.current.length-1])!==null&&Re!==void 0?Re:vt)!==Se&&(Ge.current.push(Se),m?.(Se))}),$t=w.useRef(),rn=function(){clearTimeout($t.current)},sr=function(Re){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;rn(),at===0?Ke(Re):$t.current=setTimeout(function(){Ke(Re)},at*1e3)};w.useEffect(function(){return rn},[]);var pt=w.useState(!1),qn=xe(pt,2),xn=qn[0],Qe=qn[1];ut(function(Se){(!Se||vt)&&Qe(!0)},[vt]);var yt=w.useState(null),rr=xe(yt,2),Xt=rr[0],nn=rr[1],ro=w.useState(null),Wr=xe(ro,2),Pr=Wr[0],on=Wr[1],Ur=function(Re){on([Re.clientX,Re.clientY])},no=nR(vt,ne,H&&Pr!==null?Pr:_e,L,T,N,ie),ot=xe(no,11),xi=ot[0],Rs=ot[1],Eu=ot[2],bi=ot[3],As=ot[4],Ou=ot[5],Ns=ot[6],Ds=ot[7],wi=ot[8],Ci=ot[9],Qo=ot[10],Si=JM(me,c,d,u),Jo=xe(Si,2),io=Jo[0],Kr=Jo[1],Yn=io.has("click"),Gn=Kr.has("click")||Kr.has("contextMenu"),Xn=wr(function(){xn||Qo()}),ea=function(){Gt.current&&H&&Gn&&sr(!1)};iR(vt,_e,ne,Xn,ea),ut(function(){Xn()},[Pr,L]),ut(function(){vt&&!(T!=null&&T[L])&&Xn()},[JSON.stringify(N)]);var ku=w.useMemo(function(){var Se=rR(T,a,Ci,H);return Ae(Se,J?.(Ci))},[Ci,J,T,a,H]);w.useImperativeHandle(n,function(){return{nativeElement:Oe.current,popupElement:ce.current,forceAlign:Xn}});var _s=w.useState(0),Bs=xe(_s,2),$s=Bs[0],Tu=Bs[1],Iu=w.useState(0),Ls=xe(Iu,2),Mu=Ls[0],Ru=Ls[1],zs=function(){if(V&&_e){var Re=_e.getBoundingClientRect();Tu(Re.width),Ru(Re.height)}},Au=function(){zs(),Xn()},Nu=function(Re){Qe(!1),Qo(),g?.(Re)},Du=function(){return new Promise(function(Re){zs(),nn(function(){return Re})})};ut(function(){Xt&&(Qo(),Xt(),nn(null))},[Xt]);function an(Se,Re,at,kt){gt[Se]=function(ht){var Vs;kt?.(ht),sr(Re,at);for(var zu=arguments.length,Gg=new Array(zu>1?zu-1:0),Hs=1;Hs<zu;Hs++)Gg[Hs-1]=arguments[Hs];(Vs=Ie[Se])===null||Vs===void 0||Vs.call.apply(Vs,[Ie,ht].concat(Gg))}}(Yn||Gn)&&(gt.onClick=function(Se){var Re;Gt.current&&Gn?sr(!1):!Gt.current&&Yn&&(Ur(Se),sr(!0));for(var at=arguments.length,kt=new Array(at>1?at-1:0),ht=1;ht<at;ht++)kt[ht-1]=arguments[ht];(Re=Ie.onClick)===null||Re===void 0||Re.call.apply(Re,[Ie,Se].concat(kt))});var ta=oR(vt,Gn,_e,ne,E,S,vn,sr),_u=io.has("hover"),Er=Kr.has("hover"),oo,ra;_u&&(an("onMouseEnter",!0,x,function(Se){Ur(Se)}),an("onPointerEnter",!0,x,function(Se){Ur(Se)}),oo=function(Re){(vt||xn)&&ne!==null&&ne!==void 0&&ne.contains(Re.target)&&sr(!0,x)},H&&(gt.onMouseMove=function(Se){var Re;(Re=Ie.onMouseMove)===null||Re===void 0||Re.call(Ie,Se)})),Er&&(an("onMouseLeave",!1,b),an("onPointerLeave",!1,b),ra=function(){sr(!1,b)}),io.has("focus")&&an("onFocus",!0,C),Kr.has("focus")&&an("onBlur",!1,P),io.has("contextMenu")&&(gt.onContextMenu=function(Se){var Re;Gt.current&&Kr.has("contextMenu")?sr(!1):(Ur(Se),sr(!0)),Se.preventDefault();for(var at=arguments.length,kt=new Array(at>1?at-1:0),ht=1;ht<at;ht++)kt[ht-1]=arguments[ht];(Re=Ie.onContextMenu)===null||Re===void 0||Re.call.apply(Re,[Ie,Se].concat(kt))}),A&&(gt.className=Ae(Ie.className,A));var bn=w.useRef(!1);bn.current||(bn.current=k||vt||xn);var Zn=ue(ue({},Ie),gt),na={},Fs=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Fs.forEach(function(Se){K[Se]&&(na[Se]=function(){for(var Re,at=arguments.length,kt=new Array(at),ht=0;ht<at;ht++)kt[ht]=arguments[ht];(Re=Zn[Se])===null||Re===void 0||Re.call.apply(Re,[Zn].concat(kt)),K[Se].apply(K,kt)})});var Bu=w.cloneElement(Pe,ue(ue({},Zn),na)),$u={x:Ou,y:Ns},Lu=de?ue({},de!==!0?de:{}):null;return w.createElement(w.Fragment,null,w.createElement($o,{disabled:!vt,ref:Be,onResize:Au},w.createElement(BC,{getTriggerDOMNode:G},Bu)),bn.current&&w.createElement(u0.Provider,{value:De},w.createElement(_C,{portal:e,ref:he,prefixCls:a,popup:M,className:Ae(I,ku),style:_,target:_e,onMouseEnter:oo,onMouseLeave:ra,onPointerEnter:oo,zIndex:F,open:vt,keepDom:xn,fresh:U,onClick:Q,onPointerDownCapture:ta,mask:E,motion:yi,maskMotion:eo,onVisibleChanged:Nu,onPrepare:Du,forceRender:k,autoDestroy:te,getPopupContainer:O,align:Ci,arrow:Lu,arrowPos:$u,ready:xi,offsetX:Rs,offsetY:Eu,offsetR:bi,offsetB:As,onAlign:Xn,stretch:V,targetWidth:$s/Ds,targetHeight:Mu/wi})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const lR=sR(Qh);var lo={shiftX:64,adjustY:1},co={adjustX:1,shiftY:!0},kr=[0,0],cR={left:{points:["cr","cl"],overflow:co,offset:[-4,0],targetOffset:kr},right:{points:["cl","cr"],overflow:co,offset:[4,0],targetOffset:kr},top:{points:["bc","tc"],overflow:lo,offset:[0,-4],targetOffset:kr},bottom:{points:["tc","bc"],overflow:lo,offset:[0,4],targetOffset:kr},topLeft:{points:["bl","tl"],overflow:lo,offset:[0,-4],targetOffset:kr},leftTop:{points:["tr","tl"],overflow:co,offset:[-4,0],targetOffset:kr},topRight:{points:["br","tr"],overflow:lo,offset:[0,-4],targetOffset:kr},rightTop:{points:["tl","tr"],overflow:co,offset:[4,0],targetOffset:kr},bottomRight:{points:["tr","br"],overflow:lo,offset:[0,4],targetOffset:kr},rightBottom:{points:["bl","br"],overflow:co,offset:[4,0],targetOffset:kr},bottomLeft:{points:["tl","bl"],overflow:lo,offset:[0,4],targetOffset:kr},leftBottom:{points:["br","bl"],overflow:co,offset:[-4,0],targetOffset:kr}},uR=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],dR=function(t,r){var n=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,s=t.mouseEnterDelay,l=s===void 0?0:s,c=t.mouseLeaveDelay,d=c===void 0?.1:c,u=t.overlayStyle,f=t.prefixCls,h=f===void 0?"rc-tooltip":f,m=t.children,g=t.onVisibleChange,x=t.afterVisibleChange,v=t.transitionName,b=t.animation,C=t.motion,P=t.placement,E=P===void 0?"right":P,j=t.align,S=j===void 0?{}:j,O=t.destroyTooltipOnHide,k=O===void 0?!1:O,D=t.defaultVisible,B=t.getTooltipContainer,M=t.overlayInnerStyle,I=t.overlay,_=t.id,L=t.showArrow,R=L===void 0?!0:L,T=t.classNames,N=t.styles,F=Jr(t,uR),V=NC(_),J=y.useRef(null);y.useImperativeHandle(r,function(){return J.current});var U=ue({},F);"visible"in t&&(U.popupVisible=t.visible);var H=function(){return w.createElement(RC,{key:"content",prefixCls:h,id:V,bodyClassName:T?.body,overlayInnerStyle:ue(ue({},M),N?.body)},I)},Q=function(){var de=w.Children.only(m),le=de?.props||{},ve=ue(ue({},le),{},{"aria-describedby":I?V:null});return w.cloneElement(m,ve)};return w.createElement(lR,At({popupClassName:Ae(n,T?.root),prefixCls:h,popup:H,action:a,builtinPlacements:cR,popupPlacement:E,ref:J,popupAlign:S,getPopupContainer:B,onPopupVisibleChange:g,afterPopupVisibleChange:x,popupTransitionName:v,popupAnimation:b,popupMotion:C,defaultPopupVisible:D,autoDestroy:k,mouseLeaveDelay:d,popupStyle:ue(ue({},u),N?.root),mouseEnterDelay:l,arrow:R},U),Q())};const fR=y.forwardRef(dR),Wa=w.createContext({});process.env.NODE_ENV!=="production"&&(Wa.displayName="FormItemInputContext");const pR=({children:e,status:t,override:r})=>{const n=w.useContext(Wa),i=w.useMemo(()=>{const a=Object.assign({},n);return r&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,r,n]);return w.createElement(Wa.Provider,{value:i},e)},hR=w.createContext(void 0),$C=e=>{const t=y.useContext(ko);return y.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},LC=w.createContext(null),zC=(e,t)=>{const r=w.useContext(LC),n=w.useMemo(()=>{if(!r)return"";const{compactDirection:i,isFirstItem:a,isLastItem:s}=r,l=i==="vertical"?"-vertical-":"-";return Ae(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:s,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},mR=e=>{const{children:t}=e;return w.createElement(LC.Provider,{value:null},t)},Dp=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let i=n;return r&&(i=y.createElement(pR,{override:!0,status:!0},i)),t&&(i=y.createElement(mR,null,i)),i},Jh=y.createContext(void 0);process.env.NODE_ENV!=="production"&&(Jh.displayName="zIndexContext");const Sn=100,gR=10,vR=Sn*gR,yR=vR+Sn,FC={Modal:Sn,Drawer:Sn,Popover:Sn,Popconfirm:Sn,Tooltip:Sn,Tour:Sn,FloatButton:Sn},xR={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function bR(e){return e in FC}const wR=(e,t)=>{const[,r]=zo(),n=y.useContext(Jh),i=bR(e);let a;if(t!==void 0)a=[t,t];else{let s=n??0;i?s+=(n?0:r.zIndexPopupBase)+FC[e]:s+=xR[e],a=[n===void 0?t:s,s]}if(process.env.NODE_ENV!=="production"){const s=pn(e),l=r.zIndexPopupBase+yR,c=a[0]||0;process.env.NODE_ENV!=="production"&&s(t!==void 0||c<=l,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a},CR=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function SR(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,i=t/2,a=0,s=i,l=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),d=i-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*i-d,h=u,m=2*i-l,g=c,x=2*i-a,v=s,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),C=n*(Math.sqrt(2)-1),P=`polygon(${C}px 100%, 50% ${C}px, ${2*i-C}px 100%, ${C}px 100%)`,E=`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${d} ${u} A ${r} ${r} 0 0 1 ${f} ${h} L ${m} ${g} A ${n} ${n} 0 0 0 ${x} ${v} Z')`;return{arrowShadowWidth:b,arrowPath:E,arrowPolygon:P}}const jR=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:i,arrowPath:a,arrowShadowWidth:s,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Je(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},VC=8;function HC(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?VC:n}}function Js(e,t){return e?t:{}}function PR(e,t,r){const{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:s}=e,{arrowDistance:l=0,arrowPlacement:c={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"},jR(e,t,i)),{"&:before":{background:t}})]},Js(!!c.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:l,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":s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Je(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Js(!!c.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Je(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Js(!!c.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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:a},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:a}})),Js(!!c.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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:a},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:a}}))}}function ER(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+r,a.shiftX=!0,a.adjustX=!0;break}const s=Object.assign(Object.assign({},a),i);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const v0={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"]}},OR={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"]}},kR=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function TR(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:a}=e,s=t/2,l={},c=HC({contentRadius:a,limitVerticalRadius:!0});return Object.keys(v0).forEach(d=>{const u=n&&OR[d]||v0[d],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[d]=f,kR.has(d)&&(f.autoArrow=!1),d){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}if(n)switch(d){case"topLeft":case"bottomLeft":f.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-c.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=c.arrowOffsetHorizontal*2-s;break}f.overflow=ER(d,c,t,r),f.htmlRegion="visibleFirst"}),l}function IR(e){return e&&y.isValidElement(e)&&e.type===y.Fragment}const MR=(e,t,r)=>y.isValidElement(e)?y.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function WC(e,t){return MR(e,e,t)}const RR=e=>({animationDuration:e,animationFillMode:"both"}),AR=e=>({animationDuration:e,animationFillMode:"both"}),NR=(e,t,r,n,i=!1)=>{const a=i?"&":"";return{[`
130
+ ${a}${e}-enter,
131
+ ${a}${e}-appear
132
+ `]:Object.assign(Object.assign({},RR(n)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},AR(n)),{animationPlayState:"paused"}),[`
133
+ ${a}${e}-enter${e}-enter-active,
134
+ ${a}${e}-appear${e}-appear-active
135
+ `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},DR=new Fr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_R=new Fr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),y0=new Fr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),x0=new Fr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),BR=new Fr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),$R=new Fr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),LR=new Fr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),zR=new Fr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),FR=new Fr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),VR=new Fr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),HR=new Fr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),WR=new Fr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),UR={zoom:{inKeyframes:DR,outKeyframes:_R},"zoom-big":{inKeyframes:y0,outKeyframes:x0},"zoom-big-fast":{inKeyframes:y0,outKeyframes:x0},"zoom-left":{inKeyframes:LR,outKeyframes:zR},"zoom-right":{inKeyframes:FR,outKeyframes:VR},"zoom-up":{inKeyframes:BR,outKeyframes:$R},"zoom-down":{inKeyframes:HR,outKeyframes:WR}},KR=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:a}=UR[t];return[NR(n,i,a,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}}]},qR=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:s,zIndexPopup:l,controlHeight:c,boxShadowSecondary:d,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:h,sizePopupArrow:m}=e,g=t(s).add(m).add(h).equal(),x=t(s).mul(2).add(m).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},Xh(e)),{position:"absolute",zIndex:l,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":a,[`${r}-inner`]:{minWidth:x,minHeight:c,padding:`${Je(e.calc(u).div(2).equal())} ${Je(f)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:s,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:g},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(s,VC)}},[`${r}-content`]:{position:"relative"}}),dM(e,(v,{darkColor:b})=>({[`&${r}-${v}`]:{[`${r}-inner`]:{backgroundColor:b},[`${r}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},PR(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},YR=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},HC({contentRadius:e.borderRadius,limitVerticalRadius:!0})),SR(zn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),UC=(e,t=!0)=>ds("Tooltip",n=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:s}=n,l=zn(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:s});return[qR(l),KR(n,"zoom-big-fast")]},YR,{resetStyle:!1,injectStyle:t})(e),GR=ql.map(e=>`${e}-inverse`);function XR(e,t=!0){return t?[].concat(Wt(GR),Wt(ql)).includes(e):ql.includes(e)}const zt=Math.round;function ad(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const b0=(e,t,r)=>r===0?e:e/100;function ha(e,t){const r=t||255;return e>r?r:e<0?0:e}class Wc{constructor(t){ge(this,"isValid",!0),ge(this,"r",0),ge(this,"g",0),ge(this,"b",0),ge(this,"a",1),ge(this,"_h",void 0),ge(this,"_s",void 0),ge(this,"_l",void 0),ge(this,"_v",void 0),ge(this,"_max",void 0),ge(this,"_min",void 0),ge(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 i=function(a){return n.startsWith(a)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(t instanceof Wc)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=ha(t.r),this.g=ha(t.g),this.b=ha(t.b),this.a=typeof t.a=="number"?ha(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(a){const s=a/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),i=t(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=zt(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 i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(t,r=50){const n=this._c(t),i=r/100,a=l=>(n[l]-this[l])*i+this[l],s={r:zt(a("r")),g:zt(a("g")),b:zt(a("b")),a:zt(a("a")*100)/100};return this._c(s)}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),i=a=>zt((this[a]*this.a+r[a]*r.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("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 i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=zt(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=zt(this.getSaturation()*100),n=zt(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 i=this.clone();return i[t]=ha(r,n),i}_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(i,a){return parseInt(r[i]+r[a||i],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:i}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const h=zt(n*255);this.r=h,this.g=h,this.b=h}let a=0,s=0,l=0;const c=t/60,d=(1-Math.abs(2*n-1))*r,u=d*(1-Math.abs(c%2-1));c>=0&&c<1?(a=d,s=u):c>=1&&c<2?(a=u,s=d):c>=2&&c<3?(s=d,l=u):c>=3&&c<4?(s=u,l=d):c>=4&&c<5?(a=u,l=d):c>=5&&c<6&&(a=d,l=u);const f=n-d/2;this.r=zt((a+f)*255),this.g=zt((s+f)*255),this.b=zt((l+f)*255)}fromHsv({h:t,s:r,v:n,a:i}){this._h=t%360,this._s=r,this._v=n,this.a=typeof i=="number"?i:1;const a=zt(n*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;const s=t/60,l=Math.floor(s),c=s-l,d=zt(n*(1-r)*255),u=zt(n*(1-r*c)*255),f=zt(n*(1-r*(1-c))*255);switch(l){case 0:this.g=f,this.b=d;break;case 1:this.r=u,this.b=d;break;case 2:this.r=d,this.b=f;break;case 3:this.r=d,this.g=u;break;case 4:this.r=f,this.g=d;break;case 5:default:this.g=d,this.b=u;break}}fromHsvString(t){const r=ad(t,b0);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=ad(t,b0);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=ad(t,(n,i)=>i.includes("%")?zt(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var ZR=["b"],QR=["v"],sd=function(t){return Math.round(Number(t||0))},JR=function(t){if(t instanceof Wc)return t;if(t&&Ve(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,i=Jr(r,ZR);return ue(ue({},i),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},w0=(function(e){ss(r,e);var t=ls(r);function r(n){return Lr(this,r),t.call(this,JR(n))}return zr(r,[{key:"toHsbString",value:function(){var i=this.toHsb(),a=sd(i.s*100),s=sd(i.b*100),l=sd(i.h),c=i.a,d="hsb(".concat(l,", ").concat(a,"%, ").concat(s,"%)"),u="hsba(".concat(l,", ").concat(a,"%, ").concat(s,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?d:u}},{key:"toHsb",value:function(){var i=this.toHsv(),a=i.v,s=Jr(i,QR);return ue(ue({},s),{},{b:a,a:this.a})}}]),r})(Wc);const eA=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",tA=(e,t)=>e?eA(e,t):"";let C0=(function(){function e(t){Lr(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(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:i,percent:a})=>({color:new e(i),percent:a})),this.metaColor=new w0(this.colors[0].color.metaColor)):this.metaColor=new w0(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return zr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return tA(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(i=>`${i.color.toRgbString()} ${i.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,i)=>{const a=r.colors[i];return n.percent===a.percent&&n.color.equals(a.color)}):this.toHexString()===r.toHexString()}}])})();const rA=e=>e instanceof C0?e:new C0(e);function KC(e,t){const r=XR(t),n=Ae({[`${e}-${t}`]:t&&r}),i={},a={},s=rA(t).toRgb(),c=(.299*s.r+.587*s.g+.114*s.b)/255<.5?"#FFF":"#000";return t&&!r&&(i.background=t,i["--ant-tooltip-color"]=c,a["--antd-arrow-background-color"]=t),{className:n,overlayStyle:i,arrowStyle:a}}const nA=e=>{const{prefixCls:t,className:r,placement:n="top",title:i,color:a,overlayInnerStyle:s}=e,{getPrefixCls:l}=w.useContext(Rn),c=l("tooltip",t),[d,u,f]=UC(c),h=KC(c,a),m=h.arrowStyle,g=Object.assign(Object.assign({},s),h.overlayStyle),x=Ae(u,f,c,`${c}-pure`,`${c}-placement-${n}`,r,h.className);return d(w.createElement("div",{className:x,style:m},w.createElement("div",{className:`${c}-arrow`}),w.createElement(RC,Object.assign({},e,{className:u,prefixCls:c,overlayInnerStyle:g}),i)))};var iA=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const oA=w.forwardRef((e,t)=>{var r,n;const{prefixCls:i,openClassName:a,getTooltipContainer:s,color:l,overlayInnerStyle:c,children:d,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:h,destroyOnHidden:m,arrow:g=!0,title:x,overlay:v,builtinPlacements:b,arrowPointAtCenter:C=!1,autoAdjustOverflow:P=!0,getPopupContainer:E,placement:j="top",mouseEnterDelay:S=.1,mouseLeaveDelay:O=.1,overlayStyle:k,rootClassName:D,overlayClassName:B,styles:M,classNames:I}=e,_=iA(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"]),L=!!g,[,R]=zo(),{getPopupContainer:T,getPrefixCls:N,direction:F,className:V,style:J,classNames:U,styles:H}=Vc("tooltip"),Q=pn("Tooltip"),ie=w.useRef(null),de=()=>{var pe;(pe=ie.current)===null||pe===void 0||pe.forceAlign()};w.useImperativeHandle(t,()=>{var pe,ke;return{forceAlign:de,forcePopupAlign:()=>{Q.deprecated(!1,"forcePopupAlign","forceAlign"),de()},nativeElement:(pe=ie.current)===null||pe===void 0?void 0:pe.nativeElement,popupElement:(ke=ie.current)===null||ke===void 0?void 0:ke.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(([pe,ke])=>{Q.deprecated(!(pe in e),pe,ke)}),process.env.NODE_ENV!=="production"&&Q(!h||typeof h=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&Q(!g||typeof g=="boolean"||!("arrowPointAtCenter"in g),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[le,ve]=jo(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),W=!x&&!v&&x!==0,z=pe=>{var ke,_e;ve(W?!1:pe),W||((ke=e.onOpenChange)===null||ke===void 0||ke.call(e,pe),(_e=e.onVisibleChange)===null||_e===void 0||_e.call(e,pe))},X=w.useMemo(()=>{var pe,ke;let _e=C;return typeof g=="object"&&(_e=(ke=(pe=g.pointAtCenter)!==null&&pe!==void 0?pe:g.arrowPointAtCenter)!==null&&ke!==void 0?ke:C),b||TR({arrowPointAtCenter:_e,autoAdjustOverflow:P,arrowWidth:L?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS})},[C,g,b,R]),Y=w.useMemo(()=>x===0?x:v||x||"",[v,x]),A=w.createElement(Dp,{space:!0},typeof Y=="function"?Y():Y),G=N("tooltip",i),K=N(),te=e["data-popover-inject"];let oe=le;!("open"in e)&&!("visible"in e)&&W&&(oe=!1);const fe=w.isValidElement(d)&&!IR(d)?d:w.createElement("span",null,d),me=fe.props,be=!me.className||typeof me.className=="string"?Ae(me.className,a||`${G}-open`):me.className,[Me,Ne,De]=UC(G,!te),Ce=KC(G,l),q=Ce.arrowStyle,re=Ae(B,{[`${G}-rtl`]:F==="rtl"},Ce.className,D,Ne,De,V,U.root,I?.root),ne=Ae(U.body,I?.body),[ye,ce]=wR("Tooltip",_.zIndex),he=w.createElement(fR,Object.assign({},_,{zIndex:ye,showArrow:L,placement:j,mouseEnterDelay:S,mouseLeaveDelay:O,prefixCls:G,classNames:{root:re,body:ne},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},q),H.root),J),k),M?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},H.body),c),M?.body),Ce.overlayStyle)},getTooltipContainer:E||s||T,ref:ie,builtinPlacements:X,overlay:A,visible:oe,onVisibleChange:z,afterVisibleChange:u??f,arrowContent:w.createElement("span",{className:`${G}-arrow-content`}),motion:{motionName:CR(K,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!h}),oe?WC(fe,{className:be}):fe);return Me(w.createElement(Jh.Provider,{value:ce},he))}),ps=oA;process.env.NODE_ENV!=="production"&&(ps.displayName="Tooltip");ps._InternalPanelDoNotUseOrYouWillBeFired=nA;var aA={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"},sA=function(t,r){return w.createElement(Ln,At({},t,{ref:r,icon:aA}))},qC=w.forwardRef(sA);process.env.NODE_ENV!=="production"&&(qC.displayName="EnterOutlined");var S0={ENTER:13,ESC:27};function lA(e){return!!(e.addonBefore||e.addonAfter)}function cA(e){return!!(e.prefix||e.suffix||e.allowClear)}function j0(e,t,r){var n=t.cloneNode(!0),i=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)},i}function Yl(e,t,r,n){if(r){var i=t;if(t.type==="click"){i=j0(t,e,""),r(i);return}if(e.type!=="file"&&n!==void 0){i=j0(t,e,n),r(i);return}r(i)}}function YC(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var i=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var GC=y.forwardRef(function(e,t){var r,n,i,a=e.inputElement,s=e.children,l=e.prefixCls,c=e.prefix,d=e.suffix,u=e.addonBefore,f=e.addonAfter,h=e.className,m=e.style,g=e.disabled,x=e.readOnly,v=e.focused,b=e.triggerFocus,C=e.allowClear,P=e.value,E=e.handleReset,j=e.hidden,S=e.classes,O=e.classNames,k=e.dataAttrs,D=e.styles,B=e.components,M=e.onClear,I=s??a,_=B?.affixWrapper||"span",L=B?.groupWrapper||"span",R=B?.wrapper||"span",T=B?.groupAddon||"span",N=y.useRef(null),F=function(te){var oe;(oe=N.current)!==null&&oe!==void 0&&oe.contains(te.target)&&b?.()},V=cA(e),J=y.cloneElement(I,{value:P,className:Ae((r=I.props)===null||r===void 0?void 0:r.className,!V&&O?.variant)||null}),U=y.useRef(null);if(y.useImperativeHandle(t,function(){return{nativeElement:U.current||N.current}}),V){var H=null;if(C){var Q=!g&&!x&&P,ie="".concat(l,"-clear-icon"),de=Ve(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";H=y.createElement("button",{type:"button",tabIndex:-1,onClick:function(te){E?.(te),M?.()},onMouseDown:function(te){return te.preventDefault()},className:Ae(ie,ge(ge({},"".concat(ie,"-hidden"),!Q),"".concat(ie,"-has-suffix"),!!d))},de)}var le="".concat(l,"-affix-wrapper"),ve=Ae(le,ge(ge(ge(ge(ge({},"".concat(l,"-disabled"),g),"".concat(le,"-disabled"),g),"".concat(le,"-focused"),v),"".concat(le,"-readonly"),x),"".concat(le,"-input-with-clear-btn"),d&&C&&P),S?.affixWrapper,O?.affixWrapper,O?.variant),W=(d||C)&&y.createElement("span",{className:Ae("".concat(l,"-suffix"),O?.suffix),style:D?.suffix},H,d);J=y.createElement(_,At({className:ve,style:D?.affixWrapper,onClick:F},k?.affixWrapper,{ref:N}),c&&y.createElement("span",{className:Ae("".concat(l,"-prefix"),O?.prefix),style:D?.prefix},c),J,W)}if(lA(e)){var z="".concat(l,"-group"),X="".concat(z,"-addon"),Y="".concat(z,"-wrapper"),A=Ae("".concat(l,"-wrapper"),z,S?.wrapper,O?.wrapper),G=Ae(Y,ge({},"".concat(Y,"-disabled"),g),S?.group,O?.groupWrapper);J=y.createElement(L,{className:G,ref:U},y.createElement(R,{className:A},u&&y.createElement(T,{className:X},u),J,f&&y.createElement(T,{className:X},f)))}return y.cloneElement(J,{className:Ae((n=J.props)===null||n===void 0?void 0:n.className,h)||null,style:ue(ue({},(i=J.props)===null||i===void 0?void 0:i.style),m),hidden:j})}),uA=["show"];function XC(e,t){return w.useMemo(function(){var r={};t&&(r.show=Ve(t)==="object"&&t.formatter?t.formatter:!!t),r=ue(ue({},r),e);var n=r,i=n.show,a=Jr(n,uA);return ue(ue({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(s){return s.length}})},[e,t])}var dA=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],fA=y.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,i=e.onFocus,a=e.onBlur,s=e.onPressEnter,l=e.onKeyDown,c=e.onKeyUp,d=e.prefixCls,u=d===void 0?"rc-input":d,f=e.disabled,h=e.htmlSize,m=e.className,g=e.maxLength,x=e.suffix,v=e.showCount,b=e.count,C=e.type,P=C===void 0?"text":C,E=e.classes,j=e.classNames,S=e.styles,O=e.onCompositionStart,k=e.onCompositionEnd,D=Jr(e,dA),B=y.useState(!1),M=xe(B,2),I=M[0],_=M[1],L=y.useRef(!1),R=y.useRef(!1),T=y.useRef(null),N=y.useRef(null),F=function(q){T.current&&YC(T.current,q)},V=jo(e.defaultValue,{value:e.value}),J=xe(V,2),U=J[0],H=J[1],Q=U==null?"":String(U),ie=y.useState(null),de=xe(ie,2),le=de[0],ve=de[1],W=XC(b,v),z=W.max||g,X=W.strategy(Q),Y=!!z&&X>z;y.useImperativeHandle(t,function(){var Ce;return{focus:F,blur:function(){var re;(re=T.current)===null||re===void 0||re.blur()},setSelectionRange:function(re,ne,ye){var ce;(ce=T.current)===null||ce===void 0||ce.setSelectionRange(re,ne,ye)},select:function(){var re;(re=T.current)===null||re===void 0||re.select()},input:T.current,nativeElement:((Ce=N.current)===null||Ce===void 0?void 0:Ce.nativeElement)||T.current}}),y.useEffect(function(){R.current&&(R.current=!1),_(function(Ce){return Ce&&f?!1:Ce})},[f]);var A=function(q,re,ne){var ye=re;if(!L.current&&W.exceedFormatter&&W.max&&W.strategy(re)>W.max){if(ye=W.exceedFormatter(re,{max:W.max}),re!==ye){var ce,he;ve([((ce=T.current)===null||ce===void 0?void 0:ce.selectionStart)||0,((he=T.current)===null||he===void 0?void 0:he.selectionEnd)||0])}}else if(ne.source==="compositionEnd")return;H(ye),T.current&&Yl(T.current,q,n,ye)};y.useEffect(function(){if(le){var Ce;(Ce=T.current)===null||Ce===void 0||Ce.setSelectionRange.apply(Ce,Wt(le))}},[le]);var G=function(q){A(q,q.target.value,{source:"change"})},K=function(q){L.current=!1,A(q,q.currentTarget.value,{source:"compositionEnd"}),k?.(q)},te=function(q){s&&q.key==="Enter"&&!R.current&&(R.current=!0,s(q)),l?.(q)},oe=function(q){q.key==="Enter"&&(R.current=!1),c?.(q)},fe=function(q){_(!0),i?.(q)},me=function(q){R.current&&(R.current=!1),_(!1),a?.(q)},be=function(q){H(""),F(),T.current&&Yl(T.current,q,n)},Me=Y&&"".concat(u,"-out-of-range"),Ne=function(){var q=$w(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return y.createElement("input",At({autoComplete:r},q,{onChange:G,onFocus:fe,onBlur:me,onKeyDown:te,onKeyUp:oe,className:Ae(u,ge({},"".concat(u,"-disabled"),f),j?.input),style:S?.input,ref:T,size:h,type:P,onCompositionStart:function(ne){L.current=!0,O?.(ne)},onCompositionEnd:K}))},De=function(){var q=Number(z)>0;if(x||W.show){var re=W.showFormatter?W.showFormatter({value:Q,count:X,maxLength:z}):"".concat(X).concat(q?" / ".concat(z):"");return y.createElement(y.Fragment,null,W.show&&y.createElement("span",{className:Ae("".concat(u,"-show-count-suffix"),ge({},"".concat(u,"-show-count-has-suffix"),!!x),j?.count),style:ue({},S?.count)},re),x)}return null};return y.createElement(GC,At({},D,{prefixCls:u,className:Ae(m,Me),handleReset:be,value:Q,focused:I,triggerFocus:F,suffix:De(),disabled:f,classes:E,classNames:j,styles:S,ref:N}),Ne())}),pA=`
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
+ `,hA=["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"],ld={},mr;function mA(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&&ld[r])return ld[r];var n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),s=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),l=hA.map(function(d){return"".concat(d,":").concat(n.getPropertyValue(d))}).join(";"),c={sizingStyle:l,paddingSize:a,borderSize:s,boxSizing:i};return t&&r&&(ld[r]=c),c}function gA(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;mr||(mr=document.createElement("textarea"),mr.setAttribute("tab-index","-1"),mr.setAttribute("aria-hidden","true"),mr.setAttribute("name","hiddenTextarea"),document.body.appendChild(mr)),e.getAttribute("wrap")?mr.setAttribute("wrap",e.getAttribute("wrap")):mr.removeAttribute("wrap");var i=mA(e,t),a=i.paddingSize,s=i.borderSize,l=i.boxSizing,c=i.sizingStyle;mr.setAttribute("style","".concat(c,";").concat(pA)),mr.value=e.value||e.placeholder||"";var d=void 0,u=void 0,f,h=mr.scrollHeight;if(l==="border-box"?h+=s:l==="content-box"&&(h-=a),r!==null||n!==null){mr.value=" ";var m=mr.scrollHeight-a;r!==null&&(d=m*r,l==="border-box"&&(d=d+a+s),h=Math.max(d,h)),n!==null&&(u=m*n,l==="border-box"&&(u=u+a+s),f=h>u?"":"hidden",h=Math.min(u,h))}var g={height:h,overflowY:f,resize:"none"};return d&&(g.minHeight=d),u&&(g.maxHeight=u),g}var vA=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],cd=0,ud=1,dd=2,yA=w.forwardRef(function(e,t){var r=e,n=r.prefixCls,i=r.defaultValue,a=r.value,s=r.autoSize,l=r.onResize,c=r.className,d=r.style,u=r.disabled,f=r.onChange,h=r.onInternalAutoSize,m=Jr(r,vA),g=jo(i,{value:a,postState:function(ie){return ie??""}}),x=xe(g,2),v=x[0],b=x[1],C=function(ie){b(ie.target.value),f?.(ie)},P=w.useRef();w.useImperativeHandle(t,function(){return{textArea:P.current}});var E=w.useMemo(function(){return s&&Ve(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),j=xe(E,2),S=j[0],O=j[1],k=!!s,D=w.useState(dd),B=xe(D,2),M=B[0],I=B[1],_=w.useState(),L=xe(_,2),R=L[0],T=L[1],N=function(){I(cd),process.env.NODE_ENV==="test"&&h?.()};ut(function(){k&&N()},[a,S,O,k]),ut(function(){if(M===cd)I(ud);else if(M===ud){var Q=gA(P.current,!1,S,O);I(dd),T(Q)}},[M]);var F=w.useRef(),V=function(){To.cancel(F.current)},J=function(ie){M===dd&&(l?.(ie),s&&(V(),F.current=To(function(){N()})))};w.useEffect(function(){return V},[]);var U=k?R:null,H=ue(ue({},d),U);return(M===cd||M===ud)&&(H.overflowY="hidden",H.overflowX="hidden"),w.createElement($o,{onResize:J,disabled:!(s||l)},w.createElement("textarea",At({},m,{ref:P,style:H,className:Ae(n,c,ge({},"".concat(n,"-disabled"),u)),disabled:u,value:v,onChange:C})))}),xA=["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"],bA=y.forwardRef(function(e,t){var r,n=e.defaultValue,i=e.value,a=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,d=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,h=e.suffix,m=e.prefixCls,g=m===void 0?"rc-textarea":m,x=e.showCount,v=e.count,b=e.className,C=e.style,P=e.disabled,E=e.hidden,j=e.classNames,S=e.styles,O=e.onResize,k=e.onClear,D=e.onPressEnter,B=e.readOnly,M=e.autoSize,I=e.onKeyDown,_=Jr(e,xA),L=jo(n,{value:i,defaultValue:n}),R=xe(L,2),T=R[0],N=R[1],F=T==null?"":String(T),V=y.useState(!1),J=xe(V,2),U=J[0],H=J[1],Q=y.useRef(!1),ie=y.useState(null),de=xe(ie,2),le=de[0],ve=de[1],W=y.useRef(null),z=y.useRef(null),X=function(){var Oe;return(Oe=z.current)===null||Oe===void 0?void 0:Oe.textArea},Y=function(){X().focus()};y.useImperativeHandle(t,function(){var se;return{resizableTextArea:z.current,focus:Y,blur:function(){X().blur()},nativeElement:((se=W.current)===null||se===void 0?void 0:se.nativeElement)||X()}}),y.useEffect(function(){H(function(se){return!P&&se})},[P]);var A=y.useState(null),G=xe(A,2),K=G[0],te=G[1];y.useEffect(function(){if(K){var se;(se=X()).setSelectionRange.apply(se,Wt(K))}},[K]);var oe=XC(v,x),fe=(r=oe.max)!==null&&r!==void 0?r:d,me=Number(fe)>0,be=oe.strategy(F),Me=!!fe&&be>fe,Ne=function(Oe,Be){var Pe=Be;!Q.current&&oe.exceedFormatter&&oe.max&&oe.strategy(Be)>oe.max&&(Pe=oe.exceedFormatter(Be,{max:oe.max}),Be!==Pe&&te([X().selectionStart||0,X().selectionEnd||0])),N(Pe),Yl(Oe.currentTarget,Oe,l,Pe)},De=function(Oe){Q.current=!0,u?.(Oe)},Ce=function(Oe){Q.current=!1,Ne(Oe,Oe.currentTarget.value),f?.(Oe)},q=function(Oe){Ne(Oe,Oe.target.value)},re=function(Oe){Oe.key==="Enter"&&D&&D(Oe),I?.(Oe)},ne=function(Oe){H(!0),a?.(Oe)},ye=function(Oe){H(!1),s?.(Oe)},ce=function(Oe){N(""),Y(),Yl(X(),Oe,l)},he=h,pe;oe.show&&(oe.showFormatter?pe=oe.showFormatter({value:F,count:be,maxLength:fe}):pe="".concat(be).concat(me?" / ".concat(fe):""),he=y.createElement(y.Fragment,null,he,y.createElement("span",{className:Ae("".concat(g,"-data-count"),j?.count),style:S?.count},pe)));var ke=function(Oe){var Be;O?.(Oe),(Be=X())!==null&&Be!==void 0&&Be.style.height&&ve(!0)},_e=!M&&!x&&!c;return y.createElement(GC,{ref:W,value:F,allowClear:c,handleReset:ce,suffix:he,prefixCls:g,classNames:ue(ue({},j),{},{affixWrapper:Ae(j?.affixWrapper,ge(ge({},"".concat(g,"-show-count"),x),"".concat(g,"-textarea-allow-clear"),c))}),disabled:P,focused:U,className:Ae(b,Me&&"".concat(g,"-out-of-range")),style:ue(ue({},C),le&&!_e?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof pe=="string"?pe:void 0}},hidden:E,readOnly:B,onClear:k},y.createElement(yA,At({},_,{autoSize:M,maxLength:d,onKeyDown:re,onChange:q,onFocus:ne,onBlur:ye,onCompositionStart:De,onCompositionEnd:Ce,className:Ae(j?.textarea),style:ue(ue({},S?.textarea),{},{resize:C?.resize}),disabled:P,prefixCls:g,onResize:ke,ref:z,readOnly:B})))}),wA={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"},CA=function(t,r){return w.createElement(Ln,At({},t,{ref:r,icon:wA}))},ZC=w.forwardRef(CA);process.env.NODE_ENV!=="production"&&(ZC.displayName="CloseCircleFilled");const QC=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:y.createElement(ZC,null)}),t};function _p(e,t,r){return Ae({[`${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 JC=(e,t)=>t||e,eS=e=>{const[,,,,t]=zo();return t?`${e}-css-var`:""},tS=(e,t,r=void 0)=>{var n,i;const{variant:a,[e]:s}=w.useContext(Rn),l=w.useContext(hR),c=s?.variant;let d;typeof t<"u"?d=t:r===!1?d="borderless":d=(i=(n=l??c)!==null&&n!==void 0?n:a)!==null&&i!==void 0?i:"outlined";const u=DI.includes(d);return[d,u]};function SA(e,t){const r=y.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var i,a,s,l;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((s=e.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return y.useEffect(()=>(n(),()=>r.current.forEach(i=>{i&&clearTimeout(i)})),[]),n}function jA(e,t,r,n){const{focusElCls:i,focus:a,borderElCls:s}=r,l=s?"> *":"",c=["hover",a?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${l}`).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({[c]:{zIndex:3}},i?{[`&${i}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function PA(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function EA(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},jA(e,n,t,r)),PA(r,n,t))}}function em(e){return zn(e,{inputAffixPadding:e.paddingXXS})}const tm=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:i,controlHeightSM:a,controlHeightLG:s,fontSizeLG:l,lineHeightLG:c,paddingSM:d,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:h,colorPrimaryHover:m,colorPrimary:g,controlOutlineWidth:x,controlOutline:v,colorErrorOutline:b,colorWarningOutline:C,colorBgContainer:P,inputFontSize:E,inputFontSizeLG:j,inputFontSizeSM:S}=e,O=E||r,k=S||O,D=j||l,B=Math.round((t-O*n)/2*10)/10-i,M=Math.round((a-k*n)/2*10)/10-i,I=Math.ceil((s-D*c)/2*10)/10-i;return{paddingBlock:Math.max(B,0),paddingBlockSM:Math.max(M,0),paddingBlockLG:Math.max(I,0),paddingInline:d-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:h,activeBorderColor:g,hoverBorderColor:m,activeShadow:`0 0 0 ${x}px ${v}`,errorActiveShadow:`0 0 0 ${x}px ${b}`,warningActiveShadow:`0 0 0 ${x}px ${C}`,hoverBg:P,activeBg:P,inputFontSize:O,inputFontSizeLG:D,inputFontSizeSM:k}},OA=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),rm=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({},OA(zn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),rS=(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}}),P0=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},rS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),kA=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rS(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},rm(e))}),P0(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),P0(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),E0=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),TA=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},E0(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),E0(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},rm(e))}})}),IA=(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)}},nS=(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}}},O0=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},nS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),MA=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nS(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},rm(e))}),O0(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),O0(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),k0=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),RA=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},k0(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),k0(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:`${Je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),iS=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Je(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}}),T0=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},iS(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`}}),AA=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},iS(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"}}),T0(e,{status:"error",borderColor:e.colorError,activeBorderColor:e.colorError,affixColor:e.colorError})),T0(e,{status:"warning",borderColor:e.colorWarning,activeBorderColor:e.colorWarning,affixColor:e.colorWarning})),t)}),NA=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),oS=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:i}=e;return{padding:`${Je(t)} ${Je(i)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},aS=e=>({padding:`${Je(e.paddingBlockSM)} ${Je(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),sS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Je(e.paddingBlock)} ${Je(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},NA(e.colorTextPlaceholder)),{"&-lg":Object.assign({},oS(e)),"&-sm":Object.assign({},aS(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),DA=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({},oS(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},aS(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 ${Je(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Je(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Je(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:`${Je(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${Je(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"},aM()),{[`${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}}}})}},_A=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:i}=e,s=i(r).sub(i(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xh(e)),sS(e)),kA(e)),MA(e)),IA(e)),AA(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},BA=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 ${Je(e.inputAffixPadding)}`}}}},$A=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:a,colorIconHover:s,iconCls:l}=e,c=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},sS(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}}}),BA(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:s}}}),[`${t}-underlined`]:{borderRadius:0},[d]:{[`${l}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},LA=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Xh(e)),DA(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}}},TA(e)),RA(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}}})})}},zA=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):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,"&:not([disabled]):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}}}}},FA=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},lS=ds(["Input","Shared"],e=>{const t=zn(e,em(e));return[_A(t),$A(t)]},tm,{resetFont:!1}),VA=ds(["Input","Component"],e=>{const t=zn(e,em(e));return[LA(t),zA(t),FA(t),EA(t)]},tm,{resetFont:!1});function HA(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var WA=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const UA=y.forwardRef((e,t)=>{const{prefixCls:r,bordered:n=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:d,allowClear:u,addonAfter:f,addonBefore:h,className:m,style:g,styles:x,rootClassName:v,onChange:b,classNames:C,variant:P}=e,E=WA(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:be}=pn("Input");be(!("bordered"in e),"bordered","variant")}const{getPrefixCls:j,direction:S,allowClear:O,autoComplete:k,className:D,style:B,classNames:M,styles:I}=Vc("input"),_=j("input",r),L=y.useRef(null),R=eS(_),[T,N,F]=lS(_,v),[V]=VA(_,R),{compactSize:J,compactItemClassnames:U}=zC(_,S),H=$C(be=>{var Me;return(Me=a??J)!==null&&Me!==void 0?Me:be}),Q=y.useContext(Va),ie=s??Q,{status:de,hasFeedback:le,feedbackIcon:ve}=y.useContext(Wa),W=JC(de,i),z=HA(e)||!!le,X=y.useRef(z);if(process.env.NODE_ENV!=="production"){const be=pn("Input");y.useEffect(()=>{var Me;z&&!X.current&&process.env.NODE_ENV!=="production"&&be(document.activeElement===((Me=L.current)===null||Me===void 0?void 0:Me.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"),X.current=z},[z])}const Y=SA(L),A=be=>{Y(),l?.(be)},G=be=>{Y(),c?.(be)},K=be=>{Y(),b?.(be)},te=(le||d)&&y.createElement(y.Fragment,null,d,le&&ve),oe=QC(u??O),[fe,me]=tS("input",P,n);return T(V(y.createElement(fA,Object.assign({ref:as(t,L),prefixCls:_,autoComplete:k},E,{disabled:ie,onBlur:A,onFocus:G,style:Object.assign(Object.assign({},B),g),styles:Object.assign(Object.assign({},I),x),suffix:te,allowClear:oe,className:Ae(m,v,F,R,U,D),onChange:K,addonBefore:h&&y.createElement(Dp,{form:!0,space:!0},h),addonAfter:f&&y.createElement(Dp,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},C),M),{input:Ae({[`${_}-sm`]:H==="small",[`${_}-lg`]:H==="large",[`${_}-rtl`]:S==="rtl"},C?.input,M.input,N),variant:Ae({[`${_}-${fe}`]:me},_p(_,W)),affixWrapper:Ae({[`${_}-affix-wrapper-sm`]:H==="small",[`${_}-affix-wrapper-lg`]:H==="large",[`${_}-affix-wrapper-rtl`]:S==="rtl"},N),wrapper:Ae({[`${_}-group-rtl`]:S==="rtl"},N),groupWrapper:Ae({[`${_}-group-wrapper-sm`]:H==="small",[`${_}-group-wrapper-lg`]:H==="large",[`${_}-group-wrapper-rtl`]:S==="rtl",[`${_}-group-wrapper-${fe}`]:me},_p(`${_}-group-wrapper`,W,le),N)})}))))});process.env.NODE_ENV!=="production"&&(UA.displayName="Input");const KA=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}}}}}},qA=ds(["Input","TextArea"],e=>{const t=zn(e,em(e));return KA(t)},tm,{resetFont:!1});var YA=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const GA=y.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:i=!0,size:a,disabled:s,status:l,allowClear:c,classNames:d,rootClassName:u,className:f,style:h,styles:m,variant:g,showCount:x,onMouseDown:v,onResize:b}=e,C=YA(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:oe}=pn("TextArea");oe(!("bordered"in e),"bordered","variant")}const{getPrefixCls:P,direction:E,allowClear:j,autoComplete:S,className:O,style:k,classNames:D,styles:B}=Vc("textArea"),M=w.useContext(Va),I=s??M,{status:_,hasFeedback:L,feedbackIcon:R}=w.useContext(Wa),T=JC(_,l),N=w.useRef(null);w.useImperativeHandle(t,()=>{var oe;return{resizableTextArea:(oe=N.current)===null||oe===void 0?void 0:oe.resizableTextArea,focus:fe=>{var me,be;YC((be=(me=N.current)===null||me===void 0?void 0:me.resizableTextArea)===null||be===void 0?void 0:be.textArea,fe)},blur:()=>{var fe;return(fe=N.current)===null||fe===void 0?void 0:fe.blur()}}});const F=P("input",n),V=eS(F),[J,U,H]=lS(F,u),[Q]=qA(F,V),{compactSize:ie,compactItemClassnames:de}=zC(F,E),le=$C(oe=>{var fe;return(fe=a??ie)!==null&&fe!==void 0?fe:oe}),[ve,W]=tS("textArea",g,i),z=QC(c??j),[X,Y]=w.useState(!1),[A,G]=w.useState(!1),K=oe=>{Y(!0),v?.(oe);const fe=()=>{Y(!1),document.removeEventListener("mouseup",fe)};document.addEventListener("mouseup",fe)},te=oe=>{var fe,me;if(b?.(oe),X&&typeof getComputedStyle=="function"){const be=(me=(fe=N.current)===null||fe===void 0?void 0:fe.nativeElement)===null||me===void 0?void 0:me.querySelector("textarea");be&&getComputedStyle(be).resize==="both"&&G(!0)}};return J(Q(w.createElement(bA,Object.assign({autoComplete:S},C,{style:Object.assign(Object.assign({},k),h),styles:Object.assign(Object.assign({},B),m),disabled:I,allowClear:z,className:Ae(H,V,f,u,de,O,A&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),D),{textarea:Ae({[`${F}-sm`]:le==="small",[`${F}-lg`]:le==="large"},U,d?.textarea,D.textarea,X&&`${F}-mouse-active`),variant:Ae({[`${F}-${ve}`]:W},_p(F,T)),affixWrapper:Ae(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:E==="rtl",[`${F}-affix-wrapper-sm`]:le==="small",[`${F}-affix-wrapper-lg`]:le==="large",[`${F}-textarea-show-count`]:x||((r=e.count)===null||r===void 0?void 0:r.show)},U)}),prefixCls:F,suffix:L&&w.createElement("span",{className:`${F}-textarea-suffix`},R),showCount:x,ref:N,onResize:te,onMouseDown:K}))))}),XA=(e,t,r,n)=>{const{titleMarginBottom:i,fontWeightStrong:a}=n;return{marginBottom:i,color:r,fontWeight:a,fontSize:e,lineHeight:t}},ZA=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
+ `]=XA(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},QA=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},gC(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},JA=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:Fl[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}}),eN=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(n).div(-2).add(1).equal(),marginBottom:e.calc(n).div(2).sub(2).equal()},[`${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"}}}},tN=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),rN=()=>({"\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"}}),nN=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"}},ZA(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}}}),JA(e)),QA(e)),{[`
179
+ ${t}-expand,
180
+ ${t}-collapse,
181
+ ${t}-edit,
182
+ ${t}-copy
183
+ `]:Object.assign(Object.assign({},gC(e)),{marginInlineStart:e.marginXXS})}),eN(e)),tN(e)),rN()),{"&-rtl":{direction:"rtl"}})}},iN=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),cS=ds("Typography",nN,iN),oN=e=>{const{prefixCls:t,"aria-label":r,className:n,style:i,direction:a,maxLength:s,autoSize:l=!0,value:c,onSave:d,onCancel:u,onEnd:f,component:h,enterIcon:m=w.createElement(qC,null)}=e,g=w.useRef(null),x=w.useRef(!1),v=w.useRef(null),[b,C]=w.useState(c);w.useEffect(()=>{C(c)},[c]),w.useEffect(()=>{var L;if(!((L=g.current)===null||L===void 0)&&L.resizableTextArea){const{textArea:R}=g.current.resizableTextArea;R.focus();const{length:T}=R.value;R.setSelectionRange(T,T)}},[]);const P=({target:L})=>{C(L.value.replace(/[\n\r]/g,""))},E=()=>{x.current=!0},j=()=>{x.current=!1},S=({keyCode:L})=>{x.current||(v.current=L)},O=()=>{d(b.trim())},k=({keyCode:L,ctrlKey:R,altKey:T,metaKey:N,shiftKey:F})=>{v.current!==L||x.current||R||T||N||F||(L===S0.ENTER?(O(),f?.()):L===S0.ESC&&u())},D=()=>{O()},[B,M,I]=cS(t),_=Ae(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${h}`]:!!h},n,M,I);return B(w.createElement("div",{className:_,style:i},w.createElement(GA,{ref:g,maxLength:s,value:b,onChange:P,onKeyDown:S,onKeyUp:k,onCompositionStart:E,onCompositionEnd:j,onBlur:D,"aria-label":r,rows:1,autoSize:l}),m!==null?WC(m,{className:`${t}-edit-content-confirm`}):null))};var fd,I0;function aN(){return I0||(I0=1,fd=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(i){e.addRange(i)}),t&&t.focus()}}),fd}var pd,M0;function uS(){if(M0)return pd;M0=1;var e=aN(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(a){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,s)}function i(a,s){var l,c,d,u,f,h,m=!1;s||(s={}),l=s.debug||!1;try{d=e(),u=document.createRange(),f=document.getSelection(),h=document.createElement("span"),h.textContent=a,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(x){if(x.stopPropagation(),s.format)if(x.preventDefault(),typeof x.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=t[s.format]||t.default;window.clipboardData.setData(v,a)}else x.clipboardData.clearData(),x.clipboardData.setData(s.format,a);s.onCopy&&(x.preventDefault(),s.onCopy(x.clipboardData))}),document.body.appendChild(h),u.selectNodeContents(h),f.addRange(u);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");m=!0}catch(x){l&&console.error("unable to copy using execCommand: ",x),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",a),s.onCopy&&s.onCopy(window.clipboardData),m=!0}catch(v){l&&console.error("unable to copy using clipboardData: ",v),l&&console.error("falling back to prompt"),c=n("message"in s?s.message:r),window.prompt(c,a)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(u):f.removeAllRanges()),h&&document.body.removeChild(h),d()}return m}return pd=i,pd}var sN=uS();const lN=jr(sN),cN=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var uN=exports&&exports.__awaiter||function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(u){try{d(n.next(u))}catch(f){s(f)}}function c(u){try{d(n.throw(u))}catch(f){s(f)}}function d(u){u.done?a(u.value):i(u.value).then(l,c)}d((n=n.apply(e,t||[])).next())})};const dN=({copyConfig:e,children:t})=>{const[r,n]=w.useState(!1),[i,a]=w.useState(!1),s=w.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};e.format&&(c.format=e.format),w.useEffect(()=>l,[]);const d=wr(u=>uN(void 0,void 0,void 0,function*(){var f;u?.preventDefault(),u?.stopPropagation(),a(!0);try{const h=typeof e.text=="function"?yield e.text():e.text;lN(h||cN(t,!0).join("")||"",c),a(!1),n(!0),l(),s.current=setTimeout(()=>{n(!1)},3e3),(f=e.onCopy)===null||f===void 0||f.call(e,u)}catch(h){throw a(!1),h}}));return{copied:r,copyLoading:i,onClick:d}};function hd(e,t){return w.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const fN=e=>{const t=y.useRef(void 0);return y.useEffect(()=>{t.current=e}),t.current},pN=(e,t,r)=>y.useMemo(()=>e===!0?{title:t??r}:y.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]);var hN=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const dS=w.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:i,rootClassName:a,setContentRef:s,children:l,direction:c,style:d}=e,u=hN(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:h,className:m,style:g}=Vc("typography"),x=c??h,v=s?as(t,s):t,b=f("typography",r);process.env.NODE_ENV!=="production"&&pn("Typography").deprecated(!s,"setContentRef","ref");const[C,P,E]=cS(b),j=Ae(b,m,{[`${b}-rtl`]:x==="rtl"},i,a,P,E),S=Object.assign(Object.assign({},g),d);return C(w.createElement(n,Object.assign({className:j,style:S,ref:v},u),l))});process.env.NODE_ENV!=="production"&&(dS.displayName="Typography");var mN={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"},gN=function(t,r){return w.createElement(Ln,At({},t,{ref:r,icon:mN}))},fS=w.forwardRef(gN);process.env.NODE_ENV!=="production"&&(fS.displayName="CheckOutlined");var vN={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"},yN=function(t,r){return w.createElement(Ln,At({},t,{ref:r,icon:vN}))},pS=w.forwardRef(yN);process.env.NODE_ENV!=="production"&&(pS.displayName="CopyOutlined");var xN={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"},bN=function(t,r){return w.createElement(Ln,At({},t,{ref:r,icon:xN}))},hS=w.forwardRef(bN);process.env.NODE_ENV!=="production"&&(hS.displayName="LoadingOutlined");function R0(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function md(e,t,r){return e===!0||e===void 0?t:e||r&&t}function wN(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 nm=e=>["string","number"].includes(typeof e),CN=({prefixCls:e,copied:t,locale:r,iconOnly:n,tooltips:i,icon:a,tabIndex:s,onCopy:l,loading:c})=>{const d=R0(i),u=R0(a),{copied:f,copy:h}=r??{},m=t?f:h,g=md(d[t?1:0],m),x=typeof g=="string"?g:m;return w.createElement(ps,{title:g},w.createElement("button",{type:"button",className:Ae(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:n}),onClick:l,"aria-label":x,tabIndex:s},t?md(u[1],w.createElement(fS,null),!0):md(u[0],c?w.createElement(hS,null):w.createElement(pS,null),!0)))},el=w.forwardRef(({style:e,children:t},r)=>{const n=w.useRef(null);return w.useImperativeHandle(r,()=>({isExceed:()=>{const i=n.current;return i.scrollHeight>i.clientHeight},getHeight:()=>n.current.clientHeight})),w.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)}),SN=e=>e.reduce((t,r)=>t+(nm(r)?String(r).length:1),0);function A0(e,t){let r=0;const n=[];for(let i=0;i<e.length;i+=1){if(r===t)return n;const a=e[i],l=nm(a)?String(a).length:1,c=r+l;if(c>t){const d=t-r;return n.push(String(a).slice(0,d)),n}n.push(a),r=c}return e}const gd=0,vd=1,yd=2,xd=3,N0=4,tl={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function jN(e){const{enableMeasure:t,width:r,text:n,children:i,rows:a,expanded:s,miscDeps:l,onEllipsis:c}=e,d=w.useMemo(()=>Da(n),[n]),u=w.useMemo(()=>SN(d),[n]),f=w.useMemo(()=>i(d,!1),[n]),[h,m]=w.useState(null),g=w.useRef(null),x=w.useRef(null),v=w.useRef(null),b=w.useRef(null),C=w.useRef(null),[P,E]=w.useState(!1),[j,S]=w.useState(gd),[O,k]=w.useState(0),[D,B]=w.useState(null);ut(()=>{S(t&&r&&u?vd:gd)},[r,n,a,t,d]),ut(()=>{var L,R,T,N;if(j===vd){S(yd);const F=x.current&&getComputedStyle(x.current).whiteSpace;B(F)}else if(j===yd){const F=!!(!((L=v.current)===null||L===void 0)&&L.isExceed());S(F?xd:N0),m(F?[0,u]:null),E(F);const V=((R=v.current)===null||R===void 0?void 0:R.getHeight())||0,J=a===1?0:((T=b.current)===null||T===void 0?void 0:T.getHeight())||0,U=((N=C.current)===null||N===void 0?void 0:N.getHeight())||0,H=Math.max(V,J+U);k(H+1),c(F)}},[j]);const M=h?Math.ceil((h[0]+h[1])/2):0;ut(()=>{var L;const[R,T]=h||[0,0];if(R!==T){const F=(((L=g.current)===null||L===void 0?void 0:L.getHeight())||0)>O;let V=M;T-R===1&&(V=F?R:T),m(F?[R,V]:[V,T])}},[h,M]);const I=w.useMemo(()=>{if(!t)return i(d,!1);if(j!==xd||!h||h[0]!==h[1]){const L=i(d,!1);return[N0,gd].includes(j)?L:w.createElement("span",{style:Object.assign(Object.assign({},tl),{WebkitLineClamp:a})},L)}return i(s?d:A0(d,h[0]),P)},[s,j,h,d].concat(Wt(l))),_={width:r,margin:0,padding:0,whiteSpace:D==="nowrap"?"normal":"inherit"};return w.createElement(w.Fragment,null,I,j===yd&&w.createElement(w.Fragment,null,w.createElement(el,{style:Object.assign(Object.assign(Object.assign({},_),tl),{WebkitLineClamp:a}),ref:v},f),w.createElement(el,{style:Object.assign(Object.assign(Object.assign({},_),tl),{WebkitLineClamp:a-1}),ref:b},f),w.createElement(el,{style:Object.assign(Object.assign(Object.assign({},_),tl),{WebkitLineClamp:1}),ref:C},i([],!0))),j===xd&&h&&h[0]!==h[1]&&w.createElement(el,{style:Object.assign(Object.assign({},_),{top:400}),ref:g},i(A0(d,M),!0)),j===vd&&w.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const mS=({enableEllipsis:e,isEllipsis:t,children:r,tooltipProps:n})=>!n?.title||!e?r:w.createElement(ps,Object.assign({open:t?void 0:!1},n),r);process.env.NODE_ENV!=="production"&&(mS.displayName="EllipsisTooltip");var PN=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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function EN({mark:e,code:t,underline:r,delete:n,strong:i,keyboard:a,italic:s},l){let c=l;function d(u,f){f&&(c=w.createElement(u,{},c))}return d("strong",i),d("u",r),d("del",n),d("code",t),d("mark",e),d("kbd",a),d("i",s),c}const ON="...",D0=["delete","mark","code","underline","strong","keyboard","italic"],kN=w.forwardRef((e,t)=>{var r;const{prefixCls:n,className:i,style:a,type:s,disabled:l,children:c,ellipsis:d,editable:u,copyable:f,component:h,title:m}=e,g=PN(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:v}=w.useContext(Rn),[b]=SI("Text"),C=w.useRef(null),P=w.useRef(null),E=x("typography",n),j=$w(g,D0),[S,O]=hd(u),[k,D]=jo(!1,{value:O.editing}),{triggerType:B=["icon"]}=O,M=Pe=>{var Ie;Pe&&((Ie=O.onStart)===null||Ie===void 0||Ie.call(O)),D(Pe)},I=fN(k);ut(()=>{var Pe;!k&&I&&((Pe=P.current)===null||Pe===void 0||Pe.focus())},[k]);const _=Pe=>{Pe?.preventDefault(),M(!0)},L=Pe=>{var Ie;(Ie=O.onChange)===null||Ie===void 0||Ie.call(O,Pe),M(!1)},R=()=>{var Pe;(Pe=O.onCancel)===null||Pe===void 0||Pe.call(O),M(!1)},[T,N]=hd(f),{copied:F,copyLoading:V,onClick:J}=dN({copyConfig:N,children:c}),[U,H]=w.useState(!1),[Q,ie]=w.useState(!1),[de,le]=w.useState(!1),[ve,W]=w.useState(!1),[z,X]=w.useState(!0),[Y,A]=hd(d,{expandable:!1,symbol:Pe=>Pe?b?.collapse:b?.expand}),[G,K]=jo(A.defaultExpanded||!1,{value:A.expanded}),te=Y&&(!G||A.expandable==="collapsible"),{rows:oe=1}=A,fe=w.useMemo(()=>te&&(A.suffix!==void 0||A.onEllipsis||A.expandable||S||T),[te,A,S,T]);ut(()=>{Y&&!fe&&(H(Av("webkitLineClamp")),ie(Av("textOverflow")))},[fe,Y]);const[me,be]=w.useState(te),Me=w.useMemo(()=>fe?!1:oe===1?Q:U,[fe,Q,U]);ut(()=>{be(Me&&te)},[Me,te]);const Ne=te&&(me?ve:de),De=te&&oe===1&&me,Ce=te&&oe>1&&me,q=(Pe,Ie)=>{var gt;K(Ie.expanded),(gt=A.onExpand)===null||gt===void 0||gt.call(A,Pe,Ie)},[re,ne]=w.useState(0),ye=({offsetWidth:Pe})=>{ne(Pe)},ce=Pe=>{var Ie;le(Pe),de!==Pe&&((Ie=A.onEllipsis)===null||Ie===void 0||Ie.call(A,Pe))};w.useEffect(()=>{const Pe=C.current;if(Y&&me&&Pe){const Ie=wN(Pe);ve!==Ie&&W(Ie)}},[Y,me,c,Ce,z,re]),w.useEffect(()=>{const Pe=C.current;if(typeof IntersectionObserver>"u"||!Pe||!me||!te)return;const Ie=new IntersectionObserver(()=>{X(!!Pe.offsetParent)});return Ie.observe(Pe),()=>{Ie.disconnect()}},[me,te]);const he=pN(A.tooltip,O.text,c),pe=w.useMemo(()=>{if(!(!Y||me))return[O.text,c,m,he.title].find(nm)},[Y,me,m,he.title,Ne]);if(k)return w.createElement(oN,{value:(r=O.text)!==null&&r!==void 0?r:typeof c=="string"?c:"",onSave:L,onCancel:R,onEnd:O.onEnd,prefixCls:E,className:i,style:a,direction:v,component:h,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const ke=()=>{const{expandable:Pe,symbol:Ie}=A;return Pe?w.createElement("button",{type:"button",key:"expand",className:`${E}-${G?"collapse":"expand"}`,onClick:gt=>q(gt,{expanded:!G}),"aria-label":G?b.collapse:b?.expand},typeof Ie=="function"?Ie(G):Ie):null},_e=()=>{if(!S)return;const{icon:Pe,tooltip:Ie,tabIndex:gt}=O,vn=Da(Ie)[0]||b?.edit,yi=typeof vn=="string"?vn:"";return B.includes("icon")?w.createElement(ps,{key:"edit",title:Ie===!1?"":vn},w.createElement("button",{type:"button",ref:P,className:`${E}-edit`,onClick:_,"aria-label":yi,tabIndex:gt},Pe||w.createElement(Ew,{role:"button"}))):null},se=()=>T?w.createElement(CN,Object.assign({key:"copy"},N,{prefixCls:E,copied:F,locale:b,onCopy:J,loading:V,iconOnly:c==null})):null,Oe=Pe=>[Pe&&ke(),_e(),se()],Be=Pe=>[Pe&&!G&&w.createElement("span",{"aria-hidden":!0,key:"ellipsis"},ON),A.suffix,Oe(Pe)];return w.createElement($o,{onResize:ye,disabled:!te},Pe=>w.createElement(mS,{tooltipProps:he,enableEllipsis:te,isEllipsis:Ne},w.createElement(dS,Object.assign({className:Ae({[`${E}-${s}`]:s,[`${E}-disabled`]:l,[`${E}-ellipsis`]:Y,[`${E}-ellipsis-single-line`]:De,[`${E}-ellipsis-multiple-line`]:Ce},i),prefixCls:n,style:Object.assign(Object.assign({},a),{WebkitLineClamp:Ce?oe:void 0}),component:h,ref:as(Pe,C,t),direction:v,onClick:B.includes("text")?_:void 0,"aria-label":pe?.toString(),title:m},j),w.createElement(jN,{enableMeasure:te&&!me,text:c,rows:oe,width:re,onEllipsis:ce,expanded:G,miscDeps:[F,G,V,S,T,b].concat(Wt(D0.map(Ie=>e[Ie])))},(Ie,gt)=>EN(e,w.createElement(w.Fragment,null,Ie.length>0&&gt&&!G&&pe?w.createElement("span",{key:"show-content","aria-hidden":!0},Ie):Ie,Be(gt)))))))}),TN=w.forwardRef((e,t)=>w.createElement(kN,Object.assign({ref:t},e,{component:"div"}))),gS=(e,t,r=null)=>{for(let n=0;n<e.length;n++){const i=e[n];if(i.key===t)return{node:i,ctx:{parent:r,index:n,siblings:e}};if(i.children?.length){const a=gS(i.children,t,i);if(a.node)return a}}return{node:null,ctx:null}},vS=(e,t)=>{if(!e.children)return!1;for(const r of e.children)if(r.key===t||vS(r,t))return!0;return!1};function IN({open:e,onClose:t}){const{nodes:r,rootIds:n,addFolder:i,editFolder:a,removeFolder:s,removeMenu:l,moveNode:c}=mt.useFavoriteStore(),d=y.useRef(null),[u,f]=y.useState([]),[h,m]=y.useState([]),[g,x]=y.useState(""),[v,b]=y.useState("ADD"),[C,P]=y.useState(!1),[E,j]=y.useState("");y.useEffect(()=>{e&&m(n)},[e]),y.useEffect(()=>{const k=S(r,n);f(k)},[r]),y.useEffect(()=>{C&&E&&(d.current.setFieldValue("prntBkmkId",E),d.current.setFieldValue("prntBkmkNm",r[E]?.bkmkNm??"-")),C&&v==="EDIT"&&(d.current.setFieldValue("bkmkId",E),d.current.setFieldValue("bkmkNm",r[E]?.bkmkNm)),!C&&v=="ADD"&&m(k=>[...k,E]),!C&&d.current&&(j("-"),d.current.resetFields())},[C,v,E,r]);const S=(k,D)=>{const B=(M,I="-")=>{const _=k[M];if(!_)return null;const L={key:_.bkmkId,type:_.type,title:_.type==="F"?_.bkmkNm:_.menuNm?`${_.menuNm} (${_.menuId})`:_.menuId,parentId:I,sortOrdr:_.sortOrdr??0};if(_.type==="F"){const T=(_.children??[]).map(N=>B(N,_.bkmkId)).filter(Boolean);return{...L,children:T}}return L};return D.map(M=>B(M,"-")).filter(Boolean)},O=()=>{if(b("ADD"),!g){j("-"),P(!0);return}const k=r[g];if(!k){j("-"),P(!0);return}k.type==="F"?j(k.bkmkId):j(k.prntBkmkId),P(!0)};return o.jsxs(p.ConfigProvider,{theme:{components:{Modal:{wireframe:!0},Button:{defaultColor:"var(--text-secondary)",defaultHoverColor:"var(--primary-color)",defaultHoverBorderColor:"var(--primary-color)",controlHeight:30,fontSize:13,borderRadius:"var(--border-radius-sm)"}}},children:[o.jsxs(p.Modal,{open:e,okButtonProps:{style:{display:"none"}},cancelText:"닫기",width:560,style:{zIndex:1001},styles:{body:{paddingTop:12,paddingBottom:12}},title:o.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:o.jsx(p.Typography.Text,{style:{fontSize:18},children:"북마크 관리"})}),onCancel:t,children:[o.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginBottom:10},children:[o.jsx(p.Button,{type:"primary",variant:"solid",className:"bwg-btn",icon:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[o.jsxs("g",{"clip-path":"url(#clip0_1298_1781)",children:[o.jsx("path",{d:"M9.3002 14.26H13.5702C14.4002 14.26 15.0702 13.59 15.0702 12.76V7.45999C15.0702 6.89999 14.6102 6.43999 14.0502 6.43999H8.8302L7.7102 3.48999H4.1702C3.6402 3.48999 3.2002 3.92999 3.2002 4.45999V8.10999",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),o.jsx("path",{d:"M8.18018 4.58997H14.0502C14.6102 4.58997 15.0702 5.04997 15.0702 5.60997V8.25997",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),o.jsx("path",{d:"M5.43018 9.52002V14.52",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),o.jsx("path",{d:"M7.93018 12.01H2.93018",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_1298_1781",children:o.jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),style:{padding:"0 10px",boxShadow:"none"},onClick:O,children:"새 폴더"}),o.jsx("div",{children:o.jsxs(p.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#333333",defaultHoverBorderColor:"#d9d9d9",defaultHoverBg:"#f1f1f1",defaultActiveColor:"#777777",defaultActiveBorderColor:"#d9d9d9",contentFontSize:13,defaultColor:"#777777"}}},children:[o.jsx(p.Tooltip,{title:"펼치기",children:o.jsx(p.Button,{icon:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:o.jsx("path",{d:"M2.6665 8H13.3332M7.99984 2.66667V13.3333",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28},onClick:()=>{const k=Object.values(r).filter(D=>D.type==="F").map(D=>D.bkmkId);m(k)}})}),o.jsx(p.Tooltip,{title:"접기",children:o.jsx(p.Button,{icon:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:o.jsx("path",{d:"M2.6665 8H13.3332",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28,marginLeft:5},onClick:()=>m([])})})]})})]}),o.jsxs("div",{style:{maxHeight:420,height:350,overflow:"auto",border:"1px solid #e0e0e0",borderRadius:8,padding:10},children:[u.length==0&&o.jsx(p.Empty,{description:o.jsxs(p.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",o.jsx("br",{}),"새로운 폴더를 생성해보세요."]})}),o.jsx(p.Tree,{blockNode:!0,draggable:!0,allowDrop:({dropNode:k,dropPosition:D})=>{const B=k.type==="F";return D===0?B:!0},onDrop:k=>{const{dragNode:D,node:B,dropPosition:M,dropToGap:I}=k;if(D.key===B.key||vS(D,B.key))return;let _,L;if(I){const T=gS(u,B.key).ctx,N=T.index;_=T.parent?T.parent.key:"-",L=M>0?N+1:N}else{if(B.type!=="F")return;const T=B.children||[];_=B.key,L=T.length}const R=ae.getUserId();if(D.type==="F")c({bkmkId:D.key,newPrntBkmkId:_,sortOrdr:L,userId:R}).catch(()=>{p.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(_==="-"){p.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}c({bkmkId:D.key,newPrntBkmkId:_,sortOrdr:L,userId:R}).catch(()=>{p.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}I===!1&&m(T=>Array.from(new Set([...T,B.key])))},showLine:!0,treeData:u,selectedKeys:[g],expandedKeys:h,onExpand:m,onSelect:k=>x(k[0]),titleRender:k=>o.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[o.jsxs("span",{children:[k.type==="F"?"📁":"📄"," ",k.title,k.isNew?o.jsx(p.Tag,{color:"gold",style:{marginLeft:4,fontSize:"10px",height:"16px",lineHeight:"16px",padding:"0 5px"},children:"N"}):null]}),o.jsxs("span",{style:{display:"inline-flex",gap:8},children:[k.type==="F"&&o.jsxs(o.Fragment,{children:[o.jsx(Z.PlusOutlined,{style:{opacity:.8},onClick:()=>{b("ADD"),j(k.key),P(!0)}}),o.jsx(Z.EditOutlined,{style:{opacity:.8},onClick:()=>{b("EDIT"),j(k.key),P(!0)}})]}),o.jsx(Z.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{k.type==="F"?p.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>s(k.key)}):p.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>l(k.key)})}})]})]})})]})]}),o.jsx(p.ConfigProvider,{theme:{components:{Modal:{titleColor:v==="ADD"?"var(--primary-color)":"#ff6767",headerBg:v==="ADD"?"var(--drawer-header-bg)":"#fff0f0",titleFontSize:18},Button:{defaultColor:"var(--text-secondary)",defaultHoverColor:"var(--primary-color)",defaultHoverBorderColor:"var(--primary-color)",controlHeight:30,fontSize:13,borderRadius:"var(--border-radius-sm)"}}},children:o.jsx(p.Modal,{title:o.jsx(o.Fragment,{children:o.jsxs(p.Typography.Text,{style:{fontSize:16,display:"flex",alignItems:"center",gap:6},children:[v==="ADD"?o.jsx("span",{className:"bookmark-folder-modal-icon ico-new-folder"}):o.jsx("span",{className:"bookmark-folder-modal-icon ico-edit-folder"}),"폴더",v==="ADD"?" 추가":"명 수정"]})}),open:C,okText:"저장",onOk:()=>{const k=d.current.getFieldValue("bkmkNm"),D=ae.getUserId();if(v==="ADD"){const B=__SYS_CD__??"KH",M=d.current.getFieldValue("prntBkmkId");i(k,M,B,D).then(()=>{P(!1)})}else{const B=d.current.getFieldValue("bkmkId");a(B,D,k).then(()=>{P(!1)})}},centered:!0,width:400,onCancel:()=>P(!1),okButtonProps:{className:"bwg-btn"},cancelButtonProps:{className:"bwg-btn"},styles:{body:{padding:20}},children:o.jsxs($.BwgForm,{ref:d,style:{padding:0},children:[o.jsx($.BwgInput,{itemProps:{name:v==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),o.jsx($.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:E==="-"||v==="EDIT"},inputProps:{disabled:!0}}),o.jsx($.BwgInput,{itemProps:{label:"폴더명",name:"bkmkNm"}})]})})})]})}function MN({triggerIcon:e}){const[t,r]=y.useState(!1),[n,i]=y.useState(""),[a,s]=y.useState(null),[l,c]=y.useState([]),[d,u]=y.useState([]),[f,h]=y.useState(!1),[m,g]=y.useState(!1),[x,v]=y.useState(!1),[b,C]=y.useState(null);mt.useFavoriteStore(V=>V.treeNodes);const{nodes:P,getPrntBkmkIdByMenuId:E,getNodeByMenuId:j,isMenuBookmarked:S,removeMenuByMenuId:O,addMenuToFolder:k,convertToAntTreeData:D}=mt.useFavoriteStore(),B=mt.useFavoriteStore(V=>V.rootIds),M=y.useMemo(()=>D(P,B,n,!0),[P,B,n]),I=mt.useMenuViewStore(V=>V.activeMenuItem??{menuId:"",menuNm:""}),_=y.useMemo(()=>{if(!I?.menuId)return"";const V=j(I.menuId);if(!V)return"";if(V.fullPath)return V.fullPath;const J=U=>{const H=P[U];if(!H)return"";if(H.prntBkmkId==="-")return`${H.bkmkNm||I?.menuNm}`;const Q=J(H.prntBkmkId);return Q?`${Q} > ${H.bkmkNm||I?.menuNm}`:H.bkmkNm||I?.menuNm};return console.log("bookmarkNode ::::: ",V),console.log(J(V.bkmkId)),J(V.bkmkId)},[I?.menuId,j,P]);y.useEffect(()=>{t&&I?.menuId&&S(I.menuId)?u([E(I.menuId)]):t&&I?.menuId&&!S(I.menuId)?u(B):(u([]),c([]),C(null),v(!1))},[t,I?.menuId,S,E]),y.useEffect(()=>{if(!x||!I?.menuId)return;const V=E(I.menuId);!V||!P[V]||(i(""),c([V]),C(V))},[x,I?.menuId,P,E]);const L=(V,J)=>{k(V,J).then(U=>{console.log("AddMenuToFolder ::::: ",U),U||u(H=>H.includes(V)?H:[...H,V])})},R=V=>{O(V)},T=async V=>{I?.menuId&&(await O(I.menuId),await k(V,I),v(!1),C(null),u(J=>J.includes(V)?J:[...J,V]))},N=()=>o.jsxs("div",{className:"bookmark-popover-wrap",style:{width:360},children:[o.jsx("div",{style:{padding:"20px 20px 15px",borderBottom:"1px solid #eeeeee"},children:o.jsxs(p.Space,{direction:"vertical",style:{width:"100%",rowGap:10},children:[o.jsxs(p.Typography.Text,{style:{fontSize:18,display:"flex",alignItems:"center",gap:6},children:[o.jsx(p.Button,{type:"text",icon:o.jsx(Z.ArrowLeftOutlined,{}),onClick:()=>v(!1),style:{width:26,height:26}}),"폴더 변경"]}),I&&o.jsxs(p.Typography.Text,{type:"secondary",style:{display:"inline-block",width:"100%",color:"#555555",fontWeight:"400",background:"#f0eff4",padding:"3px 10px",borderRadius:6},children:["현재 화면: ",o.jsx("b",{children:I.menuNm})," ",o.jsxs("span",{style:{color:"#939393"},children:["(",I.menuId,")"]})]})]})}),F(),o.jsxs("div",{style:{padding:"15px 20px",borderTop:"1px solid #eeeeee",display:"flex",justifyContent:"flex-end",gap:8},children:[o.jsx(p.Button,{type:"default",className:"bwg-btn",onClick:()=>{v(!1),C(null)},children:"취소"}),o.jsx(p.Button,{type:"primary",className:"bwg-btn",disabled:!b,onClick:()=>b&&T(String(b)),children:"이동"})]})]}),F=()=>o.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:"15px 20px 20px"},children:[o.jsxs(p.Space,{style:{width:"100%",marginBottom:12,display:"flex",justifyContent:"space-between",columnGap:10},children:[o.jsx(p.Input,{placeholder:"검색(폴더명)",prefix:o.jsx(Z.SearchOutlined,{}),allowClear:!0,value:n,onChange:V=>i(V.target.value),style:{width:"250px",height:28}}),o.jsx(p.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#333333",defaultHoverBorderColor:"#d9d9d9",defaultHoverBg:"#f1f1f1",defaultActiveColor:"#777777",defaultActiveBorderColor:"#d9d9d9",contentFontSize:13,defaultColor:"#777777"}}},children:o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:5},children:[o.jsx(p.Button,{icon:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:o.jsx("path",{d:"M2.6665 8H13.3332M7.99984 2.66667V13.3333",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28},onClick:()=>{const V=Object.values(P).filter(J=>J.type==="F").map(J=>J.bkmkId);u(V)},title:"모두 확장"}),o.jsx(p.Button,{icon:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:o.jsx("path",{d:"M2.6665 8H13.3332",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),size:"small",style:{width:28,height:28},onClick:()=>u([]),title:"모두 축소"})]})})]}),M.length===0?o.jsx(p.Empty,{description:o.jsxs(p.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",o.jsx("br",{}),"새로운 폴더를 만들어 시작해보세요."]}),image:p.Empty.PRESENTED_IMAGE_SIMPLE}):o.jsx(p.Tree,{blockNode:!0,showLine:!0,treeData:M,selectedKeys:l,expandedKeys:d,onExpand:u,onSelect:V=>{c(V),C(V[0])},autoExpandParent:!0,titleRender:V=>{const J=String(V.key),U=a===J;return o.jsxs("div",{onMouseEnter:()=>s(J),onMouseLeave:()=>s(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[o.jsx("div",{children:V.title}),!S(I?.menuId)&&I&&U&&o.jsx(p.ConfigProvider,{theme:{components:{Button:{defaultColor:"rgba(0,0,0,0.5)",defaultHoverColor:"rgba(0,0,0,0.8)"}}},children:o.jsx(p.Button,{size:"small",type:"link",onClick:H=>{H.stopPropagation(),L(J,I)},style:{color:"rgba(0,0,0,0.5)"},children:"+ 현재화면 추가"})})]})}})]});return o.jsxs(o.Fragment,{children:[o.jsx(p.Popover,{open:t&&!f,onOpenChange:r,trigger:"click",placement:"bottomLeft",styles:{body:{padding:0,borderRadius:12,boxShadow:"0 12px 32px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.2)",background:"#ffffff",zIndex:1e3}},content:x?N():o.jsxs("div",{style:{width:360},children:[o.jsx("div",{style:{padding:"20px 20px 15px",borderBottom:"1px solid #eeeeee"},children:o.jsxs(p.Space,{direction:"vertical",style:{width:"100%",rowGap:10},children:[o.jsxs(p.Typography.Text,{style:{fontSize:18,display:"flex",alignItems:"center",gap:6},children:[o.jsx("span",{className:`bookmark-title-icon ${S(I?.menuId)?"saved":"add"}`}),"북마크"," ",S(I?.menuId)?"저장됨":"추가"]}),I&&o.jsxs(p.Typography.Text,{type:"secondary",style:{display:"inline-block",width:"100%",color:"#555555",fontWeight:"400",background:"#f0eff4",padding:"3px 10px",borderRadius:6},children:["현재 화면: ",o.jsx("b",{children:I.menuNm})," ",o.jsxs("span",{style:{color:"#939393"},children:["(",I.menuId,")"]})]})]})}),S(I?.menuId)?o.jsxs("div",{style:{padding:"10px 12px",margin:"15px 20px",borderRadius:8,backgroundColor:"#f7f6fB"},children:[o.jsx(p.Typography.Text,{type:"secondary",style:{fontSize:13},children:"저장 위치"}),o.jsx("div",{style:{marginTop:4},children:`📁 > ${_}`||"알 수 없음"})]}):F(),o.jsxs(ze,{style:{padding:"15px 20px",borderTop:"1px solid #eeeeee"},layoutAlign:"right",children:[I&&!S(I.menuId)?o.jsx(p.Button,{style:{padding:"0 10px"},type:"primary",className:"bwg-btn",icon:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:o.jsx("path",{d:"M3 9H15M9 3V15",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})}),onClick:()=>{const V=String(l[0]);let J="-";V&&P[V]&&(J=P[V].type=="M"?P[V].prntBkmkId:V),L(J,I)},children:"추가"}):o.jsxs(ze,{layoutAlign:"between",children:[o.jsx(p.Button,{type:"default",className:"bwg-btn",style:{padding:"0 10px"},icon:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[o.jsxs("g",{"clip-path":"url(#clip0_1289_1745)",children:[o.jsx("path",{d:"M13.9198 6.57H8.69982L7.57982 3.62H4.03982C3.50982 3.62 3.06982 4.06 3.06982 4.59V12.89C3.06982 13.72 3.73982 14.39 4.56982 14.39H13.4398C14.2698 14.39 14.9398 13.72 14.9398 12.89V7.59C14.9398 7.03 14.4798 6.57 13.9198 6.57Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),o.jsx("path",{d:"M8.0498 4.72H13.9198C14.4798 4.72 14.9398 5.18 14.9398 5.74V8.39",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_1289_1745",children:o.jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),onClick:()=>v(!0),children:"폴더 변경"}),o.jsx(p.Button,{type:"default",className:"bwg-btn",style:{padding:"0 10px"},color:"danger",variant:"solid",icon:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:o.jsx("path",{d:"M7.5 7.5V12M10.5 7.5V12M13.5 4.5V13.5C13.5 14.3284 12.8284 15 12 15H6C5.17157 15 4.5 14.3284 4.5 13.5V4.5M3 4.5H15M11.25 4.5V3.75C11.25 2.92157 10.5784 2.25 9.75 2.25H8.25C7.42157 2.25 6.75 2.92157 6.75 3.75V4.5",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})}),onClick:()=>R(I.menuId),children:"삭제"})]}),o.jsx(p.Button,{type:"default",className:"bwg-btn",style:{padding:"0 10px",marginLeft:5},icon:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[o.jsx("path",{d:"M8.25 2.25H9.75C10.1642 2.25 10.5 2.58579 10.5 3V3.42659C10.5 3.74744 10.7153 4.02619 11.0117 4.14921C11.3081 4.27229 11.6532 4.22538 11.8802 3.99842L12.182 3.69668C12.4748 3.40379 12.9497 3.40379 13.2426 3.69668L14.3033 4.75734C14.5962 5.05023 14.5962 5.52511 14.3033 5.818L14.0016 6.1197C13.7746 6.34667 13.7277 6.69185 13.8508 6.98831C13.9738 7.28465 14.2526 7.5 14.5734 7.5L15 7.5C15.4142 7.5 15.75 7.83579 15.75 8.25V9.75C15.75 10.1642 15.4142 10.5 15 10.5H14.5734C14.2526 10.5 13.9738 10.7153 13.8508 11.0117C13.7277 11.3081 13.7746 11.6533 14.0016 11.8803L14.3033 12.182C14.5962 12.4749 14.5962 12.9497 14.3033 13.2426L13.2426 14.3033C12.9497 14.5962 12.4749 14.5962 12.182 14.3033L11.8803 14.0016C11.6533 13.7746 11.3081 13.7277 11.0117 13.8508C10.7153 13.9738 10.5 14.2526 10.5 14.5734V15C10.5 15.4142 10.1642 15.75 9.75 15.75H8.25C7.83579 15.75 7.5 15.4142 7.5 15V14.5734C7.5 14.2526 7.28465 13.9738 6.98831 13.8508C6.69185 13.7277 6.34667 13.7746 6.1197 14.0016L5.81799 14.3033C5.5251 14.5962 5.05022 14.5962 4.75733 14.3033L3.69667 13.2426C3.40378 12.9497 3.40378 12.4749 3.69667 12.182L3.99842 11.8802C4.22538 11.6532 4.27229 11.3081 4.14921 11.0117C4.02619 10.7153 3.74744 10.5 3.42659 10.5H3C2.58579 10.5 2.25 10.1642 2.25 9.75V8.25C2.25 7.83579 2.58579 7.5 3 7.5L3.42657 7.5C3.74743 7.5 4.02619 7.28466 4.14922 6.98832C4.2723 6.69188 4.22539 6.34671 3.99842 6.11975L3.69668 5.818C3.40379 5.52511 3.40379 5.05024 3.69668 4.75734L4.75734 3.69668C5.05023 3.40379 5.52511 3.40379 5.818 3.69668L6.11974 3.99842C6.34671 4.22539 6.69187 4.2723 6.98832 4.14922C7.28466 4.02619 7.5 3.74743 7.5 3.42657V3C7.5 2.58579 7.83579 2.25 8.25 2.25Z",stroke:"currentColor"}),o.jsx("path",{d:"M10.5 9C10.5 9.82843 9.82843 10.5 9 10.5C8.17157 10.5 7.5 9.82843 7.5 9C7.5 8.17157 8.17157 7.5 9 7.5C9.82843 7.5 10.5 8.17157 10.5 9Z",stroke:"currentColor"})]}),onClick:()=>{g(t),h(!0)},children:"관리"})]})]}),children:o.jsx("span",{style:{cursor:"pointer",display:"inline-flex",alignItems:"center"},children:e})}),o.jsx(IN,{open:f,onClose:()=>{h(!1),m&&r(!0)}})]})}const RN=({reqRows:e,subRows:t})=>{const{searchBoxRef:r}=bt.useSearchBox();return o.jsx(_o,{ref:r,reqRows:e,subRows:t})},Vt=({children:e,searchBox:t,title:r,preRenderEvents:n=[],postRenderEvents:i=[],loading:a=!1,error:s=null,grantEvent:l={},customEvent:c={},buttons:d})=>{bt.useServiceCodeValue("AUTH_BTNS");const{user:u}=mt.useUserStore(),{activeMenuItem:f}=mt.useMenuViewStore(),{loadFavoritesIfNeeded:h,isMenuBookmarked:m}=mt.useFavoriteStore(),{loading:g}=mt.useLoadingStore(),[x,v]=y.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),{openCorePopup:b}=bt.usePopup(),C=async()=>{if(n.length===0){v(I=>({...I,preRenderComplete:!0}));return}try{for(const I of n)await I();v(I=>({...I,preRenderComplete:!0}))}catch(I){v(_=>({..._,error:I instanceof Error?I.message:"사전 렌더링 실패",preRenderComplete:!0}))}},P=async()=>{if(i.length===0){v(I=>({...I,postRenderComplete:!0}));return}try{for(const I of i)await I();v(I=>({...I,postRenderComplete:!0}))}catch(I){v(_=>({..._,error:I instanceof Error?I.message:"사후 렌더링 실패",postRenderComplete:!0}))}};y.useEffect(()=>{if(x.isInitialized)return;(async()=>{try{await C(),v(_=>({..._,isInitialized:!0,loading:!1}))}catch(_){console.error("BwgView 초기화 실패:",_),v(L=>({...L,isInitialized:!0,loading:!1}))}})()},[]),y.useEffect(()=>{u?.userId&&h(u.userId)},[h,u?.userId]);const E=y.useMemo(()=>f?.menuId?{menuId:f.menuId,grpId:"CUSTOM"}:!1,[f?.menuId]),j=y.useMemo(()=>f?.menuId?{menuId:f.menuId,grpId:"DEFAULT"}:!1,[f?.menuId]);y.useEffect(()=>{x.isInitialized&&x.preRenderComplete&&!x.isReady&&setTimeout(async()=>{await P(),v(_=>({..._,isReady:!0}))},100)},[x.isInitialized,x.preRenderComplete,x.isReady]),y.useEffect(()=>{s&&v(I=>({...I,error:s}))},[s]);const S=()=>o.jsxs("div",{className:"bwgview-header-container",children:[o.jsxs("div",{className:"bwgview-header",children:[o.jsx("div",{className:"bwgview-header-left",children:M.LEFT}),o.jsx("div",{className:"bwgview-header-right",children:M.RIGHT})]}),t&&o.jsx(RN,{reqRows:t.reqRows,subRows:t.subRows})]});if(y.useEffect(()=>{},[u,f]),x.error||s)return o.jsx("div",{style:{padding:"24px"},children:o.jsx(p.Alert,{message:"오류 발생",description:x.error||s,type:"error",showIcon:!0})});const O=()=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:o.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"})}),k=()=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:o.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"})}),D=I=>o.jsx(Z,{component:O,...I}),B=I=>o.jsx(Z,{component:k,...I}),M={LEFT:o.jsx("div",{className:"bwgview-header-left",children:o.jsxs(p.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[o.jsxs(p.Space,{children:[f&&o.jsx(MN,{triggerIcon:m(f.menuId)?o.jsx(D,{className:"bookmark-icon",style:{color:"#faad14"}}):o.jsx(B,{className:"bookmark-icon"})}),o.jsxs(p.Space.Compact,{style:{alignItems:"center"},children:[o.jsx("span",{className:"pageMenuNm",children:(()=>{let I="";return r?.useMenuTitle&&f?I=f.menuNm:r?.text?I=r.text:f&&(I=f.menuPrntId==="CM00"?f.menuNm.substring(f.menuNm.indexOf(" ")+1):f.menuNm),r?.prefix&&(I=`${r.prefix} ${I}`),r?.suffix&&(I=`${I} ${r.suffix}`),I})()}),f?.menuNo&&o.jsx(p.Tag,{className:"page-num-tag",children:f?.menuNo}),o.jsx(p.Tooltip,{title:"도움말",color:"geekblue",children:o.jsx(p.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:o.jsx(Z.QuestionCircleTwoTone,{twoToneColor:"orange"})})}),o.jsx(p.Tooltip,{title:"게시판",color:"geekblue",children:o.jsx(p.Button,{variant:"text",type:"text",onClick:()=>b("CORE_REPORT"),icon:o.jsx(Z.BugFilled,{style:{color:"#1890ff"}})})})]})]}),f?.scrnId&&ae.isLocal&&o.jsx(p.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:o.jsx(TN,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:f?.scrnId})})]})}),RIGHT:o.jsx("div",{className:"bwgview-header-right",children:o.jsx(p.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:o.jsxs(p.Space,{children:[o.jsx(p.Flex,{gap:8,children:o.jsx(tp,{checkAuth:E,buttons:d?.custom||[],gap:8})}),o.jsx(p.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:o.jsx(p.Divider,{type:"vertical"})}),o.jsx(p.Flex,{gap:8,className:"permission-buttons",children:o.jsx(tp,{checkAuth:j,buttons:d?.grant||[],gap:8})})]})})})};return o.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[S(),o.jsx("div",{className:"bwgview-content",children:o.jsxs("div",{className:"bwgview-content",children:[o.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(x.loading||a||g)&&o.jsx(xO.LoadingContainer,{dimStyle:"light",text:g?"처리 중...":"화면 로드 중..."})]})})]})},AN=({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:p.theme.defaultAlgorithm},i={...n,...t,token:{...n.token,...t?.token}};return o.jsx(p.ConfigProvider,{locale:sw,theme:i,componentSize:r,space:{size:r},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:e})},NN="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",DN="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",_N="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",BN=({children:e})=>{const[t,r]=y.useState({x:0,y:0}),[n,i]=y.useState(!1),[a,s]=y.useState({x:0,y:0}),[l,c]=y.useState(!1),[d,u]=y.useState(!0),f=y.useRef(null),h=[{id:"overtime",title:"시간 외 근무신청",icon:o.jsx("img",{src:_N,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:o.jsx("img",{src:NN,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:o.jsx("img",{src:DN,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:o.jsx(Z.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:o.jsx(Z.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:o.jsx(Z.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];y.useEffect(()=>{const C=()=>{const P=window.innerHeight,j=Math.max(64,(P-300)/3);r({x:0,y:j});const S=P/2;u(j<S)};return C(),window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[]);const m=C=>{if(C.preventDefault(),C.stopPropagation(),f.current){const P=f.current.getBoundingClientRect();s({x:C.clientX-P.left,y:C.clientY-P.top}),i(!0)}},g=C=>{if(n){const P=C.clientY-a.y,E=window.innerHeight-24,S=Math.max(64,Math.min(E,P));r({x:t.x,y:S});const O=window.innerHeight/2;u(S<O)}},x=()=>{i(!1)},v=()=>{c(!l)},b=C=>{C.onClick&&C.onClick()};return y.useEffect(()=>{if(n)return document.addEventListener("mousemove",g),document.addEventListener("mouseup",x),()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",x)}},[n,a]),o.jsxs("div",{className:"quick-tab-container",ref:f,style:{position:"fixed",right:0,top:t.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[o.jsxs("div",{className:"quick-tab",style:{position:"absolute",right:"40px",top:d?0:"auto",bottom:d?"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:d?`calc(100vh - ${t.y+12}px)`:`${t.y-12}px`,transform:l?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:d&&t.y<100?"32px":"0",marginBottom:!d&&t.y>window.innerHeight-100?"8px":"0"},children:[o.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:d?`calc(100vh - ${t.y+120}px)`:`${t.y-60}px`,padding:"14px 0"},children:h.map(C=>o.jsx(p.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:()=>b(C),onMouseEnter:P=>{},onMouseLeave:P=>{},children:o.jsxs("div",{className:"quick-tab-item-inner",children:[o.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:C.color,marginBottom:"5px"},children:C.icon}),o.jsx("div",{className:"quick-tab-items-title",children:C.title})]})},C.id))}),o.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:o.jsx("span",{className:"quick-tab-add-icon",children:o.jsx(Z.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})})]}),o.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:n?"grabbing":"grab",zIndex:1001},onMouseDown:C=>m(C)}),o.jsx(p.Button,{className:`quick-tab-toggle-btn ${l?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:v})]})},$N=()=>{const{verifyWithToken:e}=bt.useAuth(),t=Qg.useNavigate(),r=Qg.useLocation();return y.useEffect(()=>{const i=new URLSearchParams(r.search).get("token");if(!i){t("/login",{replace:!0});return}(async()=>{const a=await e(i);t(a?"/main":"/login",{replace:!0})})()},[r.search]),o.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:o.jsx(p.Spin,{tip:"인증중..."})})},LN=e=>{const{showPopup:t}=bt.usePopup(),r=y.useRef(null),n=y.useRef(null),i=y.useRef(null),a=y.useRef(null),[s,l]=y.useState(!1),[c]=y.useState(null),[d,u]=y.useState("common"),{getCodeColor:f,getCodeName:h,getCodeList:m}=bt.useCommonCode(),g=y.useMemo(()=>Nr((T,N,F,V,J)=>{const U=N.value,H=f?.(U)||"blue",Q=h?.(U)||U,ie=U?o.jsx(p.Tag,{color:H,style:{fontSize:"11px"},children:Q}):null;J.render(o.jsx("div",{style:{padding:"4px"},children:ie}))}),[f,h]),[x,v]=y.useState({crprCd:"",systId:"",authId:"",authNm:"",authDscr:"",authMenu:"",enblYn:"Y"}),[b,C]=y.useState(!1),P=y.useMemo(()=>[{fieldName:"authId",header:{text:"권한ID"},width:120,visible:!1},{fieldName:"menuId",header:{text:"메뉴ID"},width:120,visible:!1},{fieldName:"menuNm",header:{text:"메뉴명"},width:200,visible:!1},{fieldName:"grpId",header:{text:"그룹ID"},width:100},{fieldName:"btnId",header:{text:"버튼ID"},width:100},{fieldName:"btnNm",header:{text:"버튼명"},width:150},{fieldName:"btnSq",header:{text:"출력순서"},width:80,dataType:"number"},{fieldName:"enblYn",header:{text:"사용여부"},width:80,renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],[]),E={container:{check:!0,indicator:!0,footer:!0}},j={onCurrentRowChanged(T,N,F){console.log("공통 버튼 그리드 - 현재 행 변경:",{oldRow:N,newRow:F,activeTabKey:d})}},S={onCurrentRowChanged(T,N,F){console.log("커스텀 버튼 그리드 - 현재 행 변경:",{oldRow:N,newRow:F,activeTabKey:d})}},O=T=>{u(T)};y.useEffect(()=>{},[]),y.useEffect(()=>{const T=n.current?.vw?.getCurrent().itemIndex??-1;if(T<0)return;const N=n.current?.vw?.getValues(T);B.SCMAUTH00201({crprCd:N.crprCd,systId:N.systId,authId:N.authId,menuId:N.authMenu,grpId:d==="common"?"DEFAULT":"CUSTOM"})},[d]);const k=y.useMemo(()=>[{fieldName:"crprCd",header:{text:"회사코드"},width:80,visible:!1},{fieldName:"systId",header:{text:"업무분류"},width:80,renderer:"tag"},{fieldName:"authId",header:{text:"권한ID"},width:120,required:!0},{fieldName:"authNm",header:{text:"권한명칭"},width:200,styleName:"left",editable:!0},{fieldName:"enblYn",header:{text:"사용여부"},width:80,renderer:{type:"check",trueValues:"Y",falseValues:"N"}},{fieldName:"authMenu",header:{text:"메뉴"},width:100,visible:!1},{fieldName:"authMenuNm",header:{text:"메뉴"},width:100,styleName:"left"},{fieldName:"authDscr",header:{text:"권한설명"},width:300,visible:!1}],[]),D={onCurrentRowChanged(T,N,F){if(F<0)return;const V=T.getValues(F);console.log("권한 선택:",V),console.log("현재 activeTabKey:",d),r.current?.setFieldsValue(V),B.SCMAUTH00201({crprCd:V.crprCd,systId:V.systId,authId:V.authId,menuId:V.authMenu,grpId:d==="common"?"DEFAULT":"CUSTOM"})}},B={SCMAUTH00101:()=>{ae.callService("SCMAUTH00101",{crprCd:ae.getCrprCd()},{},e.appCd).then(T=>{n.current?.addAllData(T.data)})},SCMAUTH00102:T=>{ae.callService("SCMAUTH00102",{...T},{},e.appCd).then(N=>{N.result||r.current?.setFields([{name:"authId",errors:[N.message]}])})},SCMAUTH00201:T=>{ae.callService("SCMAUTH00201",{...T},{},e.appCd).then(N=>{d==="common"?i.current?.addAllData(N.data):a.current?.addAllData(N.data)}).catch(N=>{console.error("SCMAUTH00201 호출 실패:",N)})},SCMAUTH00301:async T=>{try{const N=await ae.callService("SCMAUTH00301",{...T,crprCd:ae.getCrprCd()},{},e.appCd);return console.log("권한 정보 저장 성공:",N),C(!1),B.SCMAUTH00101(),N}catch(N){throw console.error("권한 정보 저장 실패:",N),N}},SCMAUTH00401:async T=>{try{const N=await ae.callService("SCMAUTH00401",{...T,crprCd:ae.getCrprCd()},{},e.appCd);return console.log("권한 정보 수정 성공:",N),C(!1),B.SCMAUTH00101(),N}catch(N){throw console.error("권한 정보 수정 실패:",N),N}}},M={search:()=>{B.SCMAUTH00101()},new:()=>{C(!1),v({crprCd:String(ae.getCrprCd()||""),systId:"",authId:"",authNm:"",authDscr:"",authMenu:"",enblYn:"Y"}),l(!0)},edit:()=>{const T=n.current?.getCurrentRow();T&&typeof T=="object"&&(C(!0),v({crprCd:T.crprCd||String(ae.getCrprCd()||""),systId:T.systId||"",authId:T.authId||"",authNm:T.authNm||"",authDscr:T.authDscr||"",authMenu:T.authMenu||"",enblYn:T.enblYn||"Y"}),l(!0))}},I={test:()=>{console.log("test")}},_={openPopup:T=>{t("CMDprtSrchP02",{isDefault:T})},add:()=>{console.log("add")},modify:()=>{console.log("edit")},delete:()=>{console.log("delete")}},L=(T,N)=>{v(F=>({...F,[T]:N}))},R=async()=>{try{b||await B.SCMAUTH00102({auth:r.current?.getFieldsValue()})}catch(T){console.error("권한 정보 처리 실패:",T)}};return y.useEffect(()=>{B.SCMAUTH00101()},[]),y.useEffect(()=>{},[n.current?.getGridInstance()?.gridView]),o.jsx(Vt,{grantEvent:M,customEvent:I,children:o.jsxs(ze,{children:[o.jsxs(Te,{className:"w40",children:[o.jsx(Le,{title:"권한 관리",icons:{type:"antd"},children:o.jsx(p.Popover,{styles:{body:{border:"1px solid #ededed",background:"#ededed"}},content:o.jsxs(p.Flex,{gap:3,children:[o.jsx(p.Button,{type:"primary",onClick:()=>_.openPopup(!0),children:"공통권한버튼"}),o.jsx(p.Button,{onClick:()=>_.openPopup(!1),children:"커스텀 버튼"})]}),placement:"bottom",children:o.jsx(p.Button,{icon:o.jsx(Z.SettingTwoTone,{}),title:"버튼관리",children:"버튼관리"})})}),o.jsx(Fe,{type:"nrml",ref:n,gridColumns:k,renderers:[{name:"tag",renderer:g}],gridOptions:{container:{indicator:!0,check:!0,checkAll:!0}},gridEvents:D})]}),o.jsx(Te,{className:"w60",border:!0,children:o.jsxs(fn,{title:"권한 상세",children:[o.jsxs($.BwgForm,{ref:r,style:{padding:"10px 20px"},children:[o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:8,children:o.jsx($.BwgSelect,{itemProps:{label:"업무분류",name:"systId"},selectProps:{variant:"borderless",options:m("SYST"),copyable:!0,disabled:!0}})}),o.jsx(p.Col,{span:8,children:o.jsx($.BwgFormItem,{label:"사용여부",name:"enblYn",children:o.jsx(p.Select,{variant:"borderless",options:[{label:"사용",value:"Y"},{label:"미사용",value:"N"}],disabled:!0})})}),o.jsx(p.Col,{span:8})]}),o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:8,children:o.jsx($.BwgFormItem,{label:"권한ID",name:"authId",children:o.jsx(p.Input,{variant:"borderless",readOnly:!0})})}),o.jsx(p.Col,{span:16,children:o.jsx($.BwgFormItem,{label:"권한명",name:"authNm",children:o.jsx(p.Input,{variant:"borderless",readOnly:!0})})})]}),o.jsx(p.Row,{gutter:16,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgFormItem,{label:"권한메뉴",style:{width:"100%",marginBottom:0},validateStatus:"",help:"",children:o.jsxs(p.Space.Compact,{block:!0,children:[o.jsx(p.Form.Item,{name:"authMenu",style:{width:"40%"},validateStatus:"",help:"",children:o.jsx(p.Input,{readOnly:!0,variant:"filled"})}),o.jsx(p.Form.Item,{name:"authMenuNm",style:{width:"60%"},validateStatus:"",help:"",children:o.jsx(p.Input,{readOnly:!0})})]})})})}),o.jsx(p.Row,{gutter:16,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgFormItem,{label:"권한설명",name:"authDscr",children:o.jsx(p.Input.TextArea,{variant:"borderless",readOnly:!0})})})})]}),o.jsx(lr,{size:"small",activeKey:d,onChange:O,items:[{key:"common",label:"공통버튼",children:o.jsxs(Te,{children:[o.jsx(Le,{title:"공통 버튼 매핑",children:o.jsx(rp,{grpId:"AUTH",menuId:"CM010303",btnEvent:_})}),o.jsx(Fe,{ref:i,type:"nrml",gridColumns:P,gridOptions:E,gridEvents:j})]})},{key:"custom",label:"커스텀",children:o.jsxs(Te,{children:[o.jsx(Le,{title:"커스텀 버튼 매핑",children:o.jsx(rp,{grpId:"AUTH2",menuId:"CM010303"})}),o.jsx(Fe,{ref:a,type:"nrml",gridColumns:P,gridOptions:E,gridEvents:S})]})}],tabPosition:"left"})]})}),o.jsx(dn,{title:`권한별 메뉴 관리 - ${c?.authNm||""}`,open:s,placement:"right",onClose:()=>{l(!1),v({crprCd:"",systId:"",authId:"",authNm:"",authDscr:"",authMenu:"",enblYn:"Y"}),C(!1)},width:"40%",size:"large",afterOpenChange:T=>{console.log("afterOpenChange:",T)},footer:o.jsxs("div",{className:"drawer-footer-btn-group",children:[o.jsx(p.Button,{onClick:()=>{l(!1),r.current?.resetFields(),C(!1)},className:"bwg-btn",children:"취소"}),o.jsx(p.Button,{type:"primary",onClick:R,className:"bwg-btn",children:"저장"})]}),children:o.jsxs($.BwgForm,{ref:r,initialValues:x,children:[o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSearch,{itemProps:{name:["crprCd","crprNm"],label:"회사 코드"},placeholder:["회사 코드","회사 명칭"],popuCd:"CMAuthMstrP01"})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{itemProps:{name:"systId",label:"시스템 ID"},selectProps:{variant:"borderless",options:m("SYST"),copyable:!0,disabled:!0}})})]}),o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{name:"authId",label:"권한 ID",children:o.jsx(p.Input,{onChange:T=>L("authId",T.target.value),placeholder:"권한 ID를 입력하세요",disabled:b})})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{name:"enblYn",label:"사용여부",children:o.jsx(p.Select,{onChange:T=>L("enblYn",T),options:[{value:"Y",label:"사용"},{value:"N",label:"미사용"}]})})})]}),o.jsx(p.Row,{gutter:16,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgFormItem,{name:"authNm",label:"권한 명칭",children:o.jsx(p.Input,{onChange:T=>L("authNm",T.target.value),placeholder:"권한 명칭을 입력하세요"})})})}),o.jsx(p.Row,{gutter:16,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgFormItem,{name:"authDscr",label:"권한 설명",children:o.jsx(p.Input.TextArea,{onChange:T=>L("authDscr",T.target.value),placeholder:"권한 설명을 입력하세요",rows:2})})})}),o.jsx(p.Row,{gutter:16,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgSearch,{itemProps:{name:["authMenu","authMenuNm"],label:"권한 메뉴"},placeholder:["메뉴ID","메뉴명명"],popuCd:"CMMenuMstrP01"})})})]})})]})})},zN=e=>{const t=y.useRef(null),r=y.useRef(null),n=y.useRef(null),[i,a]=y.useState("menu"),s=y.useMemo(()=>Nr((g,x,v,b,C)=>{const P=g.getValue(x.index?.itemIndex,"systId"),E=g.getValue(x.index?.itemIndex,"roleId"),j=g.getValue(x.index?.itemIndex,"roleNm"),S=g.getValue(x.index?.itemIndex,"enblYn"),O=g.getValue(x.index?.itemIndex,"roleDscr");C.render(o.jsx(p.Card,{size:"small",style:{height:"95px"},children:o.jsxs(p.Flex,{style:{height:"95px"},children:[o.jsxs(Te,{className:"w60",style:{position:"relative",padding:"8px"},children:[o.jsx("div",{style:{position:"absolute",top:"8px",left:"8px"},children:o.jsx(p.Tag,{color:"blue",style:{fontSize:"13px"},children:P})}),o.jsx("div",{style:{position:"absolute",top:"30%",left:"50%",transform:"translate(-50%, -50%)",fontSize:"16px",fontWeight:"bold",color:"#262626",textAlign:"center"},children:j}),o.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translateX(-50%)",fontSize:"13px",color:"#8c8c8c",fontFamily:"monospace"},children:E}),o.jsx("div",{style:{position:"absolute",bottom:"8px",right:"8px",fontSize:"16px",color:S==="Y"?"#52c41a":"#ff4d4f"},children:S==="Y"?o.jsx(Z.CheckCircleOutlined,{style:{color:"#52c41a"}}):o.jsx(Z.CloseCircleOutlined,{style:{color:"#ff4d4f"}})})]}),o.jsx(p.Divider,{type:"vertical",style:{height:"95px"}}),o.jsx(Te,{className:"w40",children:O&&o.jsx(p.Typography.Text,{style:{fontSize:"13px",color:"#595959",lineHeight:"1.4",textAlign:"left",display:"block",wordBreak:"break-word",whiteSpace:"pre-wrap"},children:o.jsx("blockquote",{children:O})})})]})}))}),[]),l=y.useMemo(()=>[{fieldName:"crprCd",header:{text:"법인코드"},width:100,visible:!1},{fieldName:"systId",header:{text:"시스템ID"},width:100,renderer:"systCard"},{fieldName:"roleId",header:{text:"역할ID"},width:120},{fieldName:"roleNm",header:{text:"역할명"},width:150},{fieldName:"roleDscr",header:{text:"역할설명"},width:200,visible:!1},{fieldName:"sortOrd",header:{text:"정렬순서"},width:80,visible:!1},{fieldName:"enblYn",header:{text:"사용여부"},width:80,renderer:{type:"check",trueValues:"Y",falseValues:"N"},visible:!1}],[]),c=[{fieldName:"crprCd",header:{text:"법인코드"},width:100,visible:!1},{fieldName:"roleId",header:{text:"역할ID"},width:120,visible:!1},{fieldName:"dprtCd",header:{text:"부서코드"},width:120},{fieldName:"dprtNm",header:{text:"부서"},width:120},{fieldName:"subSyncYn",header:{text:"동기화여부"},width:100,renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],d=[{fieldName:"userId",header:{text:"사용자ID"},width:120},{fieldName:"userNm",header:{text:"사용자명"},width:150},{fieldName:"deptNm",header:{text:"부서명"},width:150},{fieldName:"email",header:{text:"이메일"},width:200,visible:!1},{fieldName:"enblYn",header:{text:"사용여부"},width:80,visible:!1}],u=y.useMemo(()=>({display:{rowHeight:100},layout:{colspan:[{fieldName:"systId",span:3}]},container:{state:!0,check:!0,checkAll:!0,indicator:!0,footer:!0}}),[]),f={onCurrentRowChanged(g,x,v){if(v<0)return;const b=g.getValues(v);switch(i){case"menu":break;case"dept":h.SCMROLE00103(b.roleId);break;case"user":h.SCMROLE00104(b.roleId);break}}},h={SCMROLE00101:()=>{ae.callService("SCMROLE00101",{crprCd:ae.getCrprCd()}).then(g=>{console.log("SCMROLE00101:",g),t.current?.addAllData(g.data)})},SCMROLE00102:g=>{ae.callService("SCMROLE00102",{crprCd:ae.getCrprCd(),roleId:g}).then(x=>{console.log("SCMROLE00102:",x)})},SCMROLE00103:g=>{ae.callService("SCMROLE00103",{crprCd:ae.getCrprCd(),roleId:g}).then(x=>{console.log("SCMROLE00103:",x),r.current?.addAllData(x.data)})},SCMROLE00104:g=>{ae.callService("SCMROLE00104",{crprCd:ae.getCrprCd(),roleId:g}).then(x=>{console.log("SCMROLE00104:",x),n.current?.addAllData(x.data)})}},m={search:()=>{h.SCMROLE00101()}};return y.useEffect(()=>{const g=t.current?.getCurrentIndex()??-1;if(g<0)return;const x=t.current?.vw?.getValue(g,"roleId");switch(i){case"menu":break;case"dept":h.SCMROLE00103(x);break;case"user":h.SCMROLE00104(x);break}},[i]),o.jsx(Vt,{grantEvent:m,children:o.jsxs(ze,{children:[o.jsxs(Te,{className:"w40",children:[o.jsx(Le,{title:"역할 목록",icons:{type:"antd"}}),o.jsx(Fe,{ref:t,type:"nrml",gridColumns:l,gridOptions:u,gridEvents:f,renderers:[{name:"systCard",renderer:s}]})]}),o.jsxs(Te,{className:"w60",children:[o.jsx(Le,{title:"역할별 관리"}),o.jsx(p.Tabs,{className:"bwg-tab",activeKey:i,onChange:g=>a(g),items:[{key:"menu",label:"역할별 메뉴",icon:o.jsx(Z.MenuOutlined,{}),children:o.jsx(Fe,{type:"tree",gridColumns:[{fieldName:"menuId",header:{text:"메뉴ID"},width:120},{fieldName:"menuNm",header:{text:"메뉴명"},width:200},{fieldName:"menuPath",header:{text:"메뉴경로"},width:300},{fieldName:"enblYn",header:{text:"사용여부"},width:80}],gridOptions:{display:{rowHeight:40}}})},{key:"dept",label:"역할별 부서",icon:o.jsx(Z.TeamOutlined,{}),children:o.jsxs(ze,{children:[o.jsx(Te,{className:"w50",children:o.jsx(Fe,{ref:r,type:"nrml",gridColumns:c,gridOptions:{display:{rowHeight:40}}})}),o.jsx(Te,{className:"w50",border:!0,children:o.jsx(fn,{title:"부서정보",children:"123"})})]})},{key:"user",label:"역할별 사용자",icon:o.jsx(Z.UserOutlined,{}),children:o.jsxs(ze,{children:[o.jsx(Te,{className:"w50",children:o.jsx(Fe,{ref:n,type:"nrml",gridColumns:d,gridOptions:{display:{rowHeight:40}}})}),o.jsx(Te,{className:"w50",border:!0,children:o.jsx(fn,{title:"사용자정보",children:"123"})})]})}]})]})]})})};var ma={},_0;function FN(){if(_0)return ma;_0=1;function e(j){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},e(j)}Object.defineProperty(ma,"__esModule",{value:!0}),ma.CopyToClipboard=void 0;var t=i(y),r=i(uS()),n=["text","onCopy","options","children"];function i(j){return j&&j.__esModule?j:{default:j}}function a(j,S){var O=Object.keys(j);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(j);S&&(k=k.filter(function(D){return Object.getOwnPropertyDescriptor(j,D).enumerable})),O.push.apply(O,k)}return O}function s(j){for(var S=1;S<arguments.length;S++){var O=arguments[S]!=null?arguments[S]:{};S%2?a(Object(O),!0).forEach(function(k){P(j,k,O[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(O)):a(Object(O)).forEach(function(k){Object.defineProperty(j,k,Object.getOwnPropertyDescriptor(O,k))})}return j}function l(j,S){if(j==null)return{};var O=c(j,S),k,D;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(j);for(D=0;D<B.length;D++)k=B[D],!(S.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(j,k)&&(O[k]=j[k])}return O}function c(j,S){if(j==null)return{};var O={},k=Object.keys(j),D,B;for(B=0;B<k.length;B++)D=k[B],!(S.indexOf(D)>=0)&&(O[D]=j[D]);return O}function d(j,S){if(!(j instanceof S))throw new TypeError("Cannot call a class as a function")}function u(j,S){for(var O=0;O<S.length;O++){var k=S[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(j,k.key,k)}}function f(j,S,O){return S&&u(j.prototype,S),Object.defineProperty(j,"prototype",{writable:!1}),j}function h(j,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(S&&S.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),S&&m(j,S)}function m(j,S){return m=Object.setPrototypeOf||function(k,D){return k.__proto__=D,k},m(j,S)}function g(j){var S=b();return function(){var k=C(j),D;if(S){var B=C(this).constructor;D=Reflect.construct(k,arguments,B)}else D=k.apply(this,arguments);return x(this,D)}}function x(j,S){if(S&&(e(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(j)}function v(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function C(j){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},C(j)}function P(j,S,O){return S in j?Object.defineProperty(j,S,{value:O,enumerable:!0,configurable:!0,writable:!0}):j[S]=O,j}var E=(function(j){h(O,j);var S=g(O);function O(){var k;d(this,O);for(var D=arguments.length,B=new Array(D),M=0;M<D;M++)B[M]=arguments[M];return k=S.call.apply(S,[this].concat(B)),P(v(k),"onClick",function(I){var _=k.props,L=_.text,R=_.onCopy,T=_.children,N=_.options,F=t.default.Children.only(T),V=(0,r.default)(L,N);R&&R(L,V),F&&F.props&&typeof F.props.onClick=="function"&&F.props.onClick(I)}),k}return f(O,[{key:"render",value:function(){var D=this.props,B=D.children,M=l(D,n),I=t.default.Children.only(B);return t.default.cloneElement(I,s(s({},M),{},{onClick:this.onClick}))}}]),O})(t.default.PureComponent);return ma.CopyToClipboard=E,P(E,"defaultProps",{onCopy:void 0,options:void 0}),ma}var bd,B0;function VN(){if(B0)return bd;B0=1;var e=FN(),t=e.CopyToClipboard;return t.CopyToClipboard=t,bd=t,bd}var HN=VN();const im=jr(HN),gr=({children:e,onClick:t,isActive:r=!1,icon:n})=>{const[i,a]=y.useState(!1),s={width:"100%",textAlign:"left",marginBottom:"8px",border:"none",borderRadius:"8px",padding:"12px 16px",fontWeight:500,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"hidden",background:r?"#00bcd4":"transparent",color:r?"#ffffff":"#595959",transform:i?"translateX(4px)":"translateX(0)",boxShadow:r?i?"0 4px 12px rgba(0, 188, 212, 0.3)":"none":i?"0 2px 8px rgba(0, 0, 0, 0.1)":"none"},l={position:"absolute",left:0,top:0,bottom:0,width:"4px",background:"#00bcd4",borderRadius:"0 2px 2px 0"};return o.jsxs(p.Button,{type:"text",onClick:t,style:s,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[r&&o.jsx("div",{style:l}),n&&o.jsx("span",{style:{marginRight:"8px",fontSize:"16px"},children:n}),o.jsx("span",{style:{fontSize:"14px",lineHeight:1.4},children:e})]})},vr=({importText:e,onCopy:t})=>o.jsx(im,{text:e,onCopy:()=>{p.message.success("import 문이 복사되었습니다!"),t?.()},children:o.jsxs("div",{style:{background:"#1e1e1e",border:"1px solid #3c3c3c",borderRadius:"6px",padding:"12px 16px",fontFamily:'Monaco, Menlo, "Ubuntu Mono", monospace',fontSize:"13px",color:"#d4d4d4",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",transition:"all 0.2s ease",userSelect:"none"},onMouseEnter:r=>{r.currentTarget.style.background="#2d2d30",r.currentTarget.style.borderColor="#4a4a4a"},onMouseLeave:r=>{r.currentTarget.style.background="#1e1e1e",r.currentTarget.style.borderColor="#3c3c3c"},children:[o.jsx("code",{children:e}),o.jsx(Z.CopyOutlined,{style:{color:"#858585",fontSize:"14px"}})]})}),qr=({selectedRowKeys:e,onSelectionChange:t,componentName:r})=>{const n=[{property:"label",description:"폼 아이템의 라벨 텍스트입니다. 필수 항목일 경우 자동으로 별표(*)가 추가됩니다.",type:"string | React.ReactNode"},{property:"name",description:"폼 필드의 이름입니다. Form.useForm과 함께 사용되어 필드 값을 관리합니다.",type:"string | string[]"},{property:"rules",description:'필드의 유효성 검사 규칙입니다. Ant Design의 Form.Item rules를 따릅니다. (예: [{ required: true, message: "필수 입력 항목입니다." }])',type:"Rule[]"},{property:"initialValue",description:"필드의 초기값을 설정합니다.",type:"any"}],i=()=>{if(e.length===0){p.message.warning("선택된 속성이 없습니다!");return}const a={label:"'라벨'",name:"'fieldName'",rules:"[{ required: true, message: '필수 항목입니다.' }]",initialValue:"'초기값'"},s=e.map(c=>` ${c}: ${a[c]||"true"}`).join(`,
184
+ `),l=`<${r}
185
+ itemProps={{
186
+ ${s}
187
+ }}
188
+ // ... other props
189
+ />`;navigator.clipboard.writeText(l),p.message.success("선택된 속성으로 코드가 복사되었습니다!")};return o.jsxs(p.Card,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[o.jsx(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:"BwgFormItem 컴포넌트의 모든 속성을 지원합니다. Ant Design의 Form.Item의 속성을 상속받으며, Form과 함께 사용할 때 폼 필드를 제어하는 데 사용됩니다."}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.length>0&&o.jsxs(p.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[e.length,"개 속성 선택됨"]}),o.jsx(p.Button,{onClick:i,disabled:e.length===0,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),o.jsx(p.Table,{rowSelection:{type:"checkbox",selectedRowKeys:e,onChange:(a,s)=>{t(a)}},rowKey:"property",pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center",width:"20%"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center",width:"25%"}],dataSource:n})]})},WN=()=>{const e=y.useRef(null),[t,r]=y.useState("ex_bwg_input"),[n,i]=y.useState([]),[a,s]=y.useState([]),[l,c]=y.useState([]),[d,u]=y.useState([]),[f,h]=y.useState([]),[m,g]=y.useState([]),[x,v]=y.useState([]),[b,C]=y.useState([]),[P,E]=y.useState([]),[j,S]=y.useState([]),[O,k]=y.useState([]),[D,B]=y.useState([]),[M,I]=y.useState([]),[_,L]=y.useState([]),[R,T]=y.useState([]),[N,F]=y.useState([]),[V,J]=y.useState([]),[U,H]=y.useState([]),[Q,ie]=y.useState([]),[de,le]=y.useState([]),[ve,W]=y.useState([]),[z,X]=y.useState([]);y.useState([]),y.useState([]);const Y=A=>{const G=document.getElementById(A);G&&e.current&&(e.current.scrollTo({top:G.offsetTop-20,behavior:"smooth"}),r(A))};return o.jsx(_c,{children:o.jsxs(p.Row,{style:{height:"100%"},children:[o.jsxs(p.Col,{span:4,style:{height:"100%",overflow:"auto"},children:[o.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(Le,{title:o.jsx("div",{children:"컴포넌트 목록"})})}),o.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[o.jsx(gr,{onClick:()=>Y("ex_bwg_input"),isActive:t==="ex_bwg_input",children:"BwgInput"}),o.jsx(gr,{onClick:()=>Y("ex_bwg_textarea"),isActive:t==="ex_bwg_textarea",children:"BwgTextArea"}),o.jsx(gr,{onClick:()=>Y("ex_bwg_number"),isActive:t==="ex_bwg_number",children:"BwgNumber"}),o.jsx(gr,{onClick:()=>Y("ex_bwg_search"),isActive:t==="ex_bwg_search",children:"BwgSearch"}),o.jsx(gr,{onClick:()=>Y("ex_bwg_select"),isActive:t==="ex_bwg_select",children:"BwgSelect"}),o.jsx(gr,{onClick:()=>Y("ex_bwg_multiselect"),isActive:t==="ex_bwg_multiselect",children:"BwgMultiSelect"}),o.jsx(gr,{onClick:()=>Y("ex_bwg_datepicker"),isActive:t==="ex_bwg_datepicker",children:"BwgDatePicker"}),o.jsx(gr,{onClick:()=>Y("ex_bwg_rangepicker"),isActive:t==="ex_bwg_rangepicker",children:"BwgRangePicker"}),o.jsx(gr,{onClick:()=>Y("ex_bwg_check"),isActive:t==="ex_bwg_check",children:"BwgCheck"}),o.jsx(gr,{onClick:()=>Y("ex_bwg_checklist"),isActive:t==="ex_bwg_checklist",children:"BwgCheckList"}),o.jsx(gr,{onClick:()=>Y("ex_bwg_radio"),isActive:t==="ex_bwg_radio",children:"BwgRadio"}),o.jsx(gr,{onClick:()=>Y("ex_bwg_uploader"),isActive:t==="ex_bwg_uploader",children:"BwgUploader"}),o.jsx(gr,{onClick:()=>Y("ex_bwg_largeuploader"),isActive:t==="ex_bwg_largeuploader",children:"BwgLargeUploader"})]})]}),o.jsxs(p.Col,{ref:e,id:"content-container",span:20,style:{height:"100%",background:"#f0f0f0",overflow:"auto",padding:"20px"},children:[o.jsx("div",{id:"ex_bwg_input",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgInput"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgInput 컴포넌트는 기본적인 텍스트 입력을 위한 컴포넌트입니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgInput } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsxs(p.Flex,{vertical:!0,gap:"16",children:[o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{inputProps:{placeholder:"기본 속성 적용"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{inputProps:{placeholder:"allowClear 속성 적용, 입력 후 클리어 버튼 표시",allowClear:!0}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{inputProps:{placeholder:"maxLength 속성 적용 ( 10자 제한 )",maxLength:10}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:6,children:o.jsx($.BwgInput,{inputProps:{variant:"outlined",placeholder:"variant 속성 적용 ( outlined )"}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgInput,{inputProps:{variant:"filled",placeholder:"variant 속성 적용 ( filled )"}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgInput,{inputProps:{variant:"borderless",placeholder:"variant 속성 적용 ( borderless )"}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgInput,{inputProps:{variant:"underlined",placeholder:"variant 속성 적용 ( underlined )"}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{inputProps:{placeholder:"status 속성 적용 ( warning )",status:"warning"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{inputProps:{placeholder:"status 속성 적용 ( error )",status:"error"}})})]}),o.jsx(p.Divider,{orientation:"left",children:"라벨 사용하기"}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{label:"일반"},inputProps:{placeholder:"일반"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{placeholder:"필수"}})})]})]})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(lr,{items:[{label:"입력 속성",key:"inputProps",children:o.jsxs(p.Card,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Input 컴포넌트의 모든 속성을 지원합니다.",o.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[D.length>0&&o.jsxs(p.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[D.length,"개 속성 선택됨"]}),o.jsx(p.Button,{onClick:()=>{if(D.length===0){p.message.warning("선택된 속성이 없습니다!");return}const A={placeholder:"'텍스트를 입력하세요'",disabled:"false",allowClear:"true",maxLength:"10",variant:"'outlined'",status:"'warning'"},K=`<BwgInput
190
+ inputProps={{
191
+ ${D.map(te=>` ${te}: ${A[te]||"true"}`).join(`,
192
+ `)}
193
+ }}
194
+ />`;navigator.clipboard.writeText(K),p.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:D.length===0,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),o.jsx(p.Table,{rowSelection:{type:"checkbox",selectedRowKeys:D,onChange:(A,G)=>{B(A),console.log(`selectedRowKeys: ${A}`,"selectedRows: ",G)}},rowKey:A=>A.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"입력 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"입력 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"maxLength",type:"number",description:"최대 입력 길이 제한"},{property:"variant",type:"outlined | filled | borderless | underlined",description:"스타일 변형"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:o.jsx(qr,{selectedRowKeys:n,onSelectionChange:i,componentName:"BwgInput"})}]})})]})]})}),o.jsx("div",{id:"ex_bwg_textarea",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgTextArea"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgTextArea 컴포넌트는 여러 줄의 텍스트 입력을 위한 컴포넌트입니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgTextArea } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsxs(p.Flex,{vertical:!0,gap:"16",children:[o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgTextArea,{inputProps:{placeholder:"기본 속성 적용"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgTextArea,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgTextArea,{inputProps:{placeholder:"allowClear 속성 적용, 입력 후 클리어 버튼 표시",allowClear:!0}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgTextArea,{inputProps:{placeholder:"maxLength 속성 적용 ( 100자 제한 )",maxLength:100}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgTextArea,{inputProps:{placeholder:"rows 속성 적용 ( 4줄 )",rows:4}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgTextArea,{inputProps:{placeholder:"autoSize 속성 적용",autoSize:{minRows:2,maxRows:6}}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgTextArea,{inputProps:{placeholder:"status 속성 적용 ( warning )",status:"warning"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgTextArea,{inputProps:{placeholder:"status 속성 적용 ( error )",status:"error"}})})]}),o.jsx(p.Divider,{orientation:"left",children:"라벨 사용하기"}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgTextArea,{itemProps:{label:"일반"},inputProps:{placeholder:"일반"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgTextArea,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{placeholder:"필수"}})})]})]})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(lr,{items:[{label:"입력 속성",key:"inputProps",children:o.jsxs(p.Card,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Input.TextArea 컴포넌트의 모든 속성을 지원합니다.",o.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[M.length>0&&o.jsxs(p.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[M.length,"개 속성 선택됨"]}),o.jsx(p.Button,{onClick:()=>{if(M.length===0){p.message.warning("선택된 속성이 없습니다!");return}const A={placeholder:"'텍스트를 입력하세요'",disabled:"false",allowClear:"true",maxLength:"100",rows:"4",autoSize:"{ minRows: 2, maxRows: 6 }",status:"'warning'"},K=`<BwgTextArea
195
+ inputProps={{
196
+ ${M.map(te=>` ${te}: ${A[te]||"true"}`).join(`,
197
+ `)}
198
+ }}
199
+ />`;navigator.clipboard.writeText(K),p.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:M.length===0,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),o.jsx(p.Table,{rowSelection:{type:"checkbox",selectedRowKeys:M,onChange:(A,G)=>{I(A),console.log(`selectedRowKeys: ${A}`,"selectedRows: ",G)}},rowKey:A=>A.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"입력 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"입력 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"maxLength",type:"number",description:"최대 입력 길이 제한"},{property:"rows",type:"number",description:"기본 행 수"},{property:"autoSize",type:"{ minRows: 2, maxRows: 6 } | boolean",description:"자동 크기 조절"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:o.jsx(qr,{selectedRowKeys:a,onSelectionChange:s,componentName:"BwgTextArea"})}]})})]})]})}),o.jsx("div",{id:"ex_bwg_number",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgNumber"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgNumber 컴포넌트는 숫자 입력을 위한 컴포넌트입니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgNumber } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsxs(p.Flex,{vertical:!0,gap:"16",children:[o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{inputProps:{placeholder:"기본 속성 적용"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{inputProps:{placeholder:"min, max 속성 적용 (0-100)",min:0,max:100}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{inputProps:{placeholder:"step 속성 적용 (0.5씩 증가)",step:.5}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{inputProps:{placeholder:"precision 속성 적용 (소수점 2자리)",precision:2}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{inputProps:{placeholder:"formatter 속성 적용 (원화 표시)",formatter:A=>`₩ ${A}`.replace(/\B(?=(\d{3})+(?!\d))/g,","),parser:A=>A.replace(/\₩\s?|(,*)/g,"")}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{inputProps:{placeholder:"status 속성 적용 ( warning )",status:"warning"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{inputProps:{placeholder:"status 속성 적용 ( error )",status:"error"}})})]}),o.jsx(p.Divider,{orientation:"left",children:"라벨 사용하기"}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{itemProps:{label:"일반"},inputProps:{placeholder:"일반"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{placeholder:"필수"}})})]})]})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(lr,{items:[{label:"입력 속성",key:"inputProps",children:o.jsxs(p.Card,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd InputNumber 컴포넌트의 모든 속성을 지원합니다.",o.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[_.length>0&&o.jsxs(p.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[_.length,"개 속성 선택됨"]}),o.jsx(p.Button,{onClick:()=>{if(_.length===0){p.message.warning("선택된 속성이 없습니다!");return}const A={placeholder:"'숫자를 입력하세요'",disabled:"false",min:"0",max:"100",step:"1",precision:"2",formatter:"value => `₩ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',')",parser:"value => value!.replace(/₩\\s?|(,*)/g, '')",status:"'warning'"},K=`<BwgNumber
200
+ inputProps={{
201
+ ${_.map(te=>` ${te}: ${A[te]||"true"}`).join(`,
202
+ `)}
203
+ }}
204
+ />`;navigator.clipboard.writeText(K),p.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:_.length===0,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),o.jsx(p.Table,{rowSelection:{type:"checkbox",selectedRowKeys:_,onChange:(A,G)=>{L(A),console.log(`selectedRowKeys: ${A}`,"selectedRows: ",G)}},rowKey:A=>A.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"입력 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"입력 필드 비활성화"},{property:"min",type:"number",description:"최소값"},{property:"max",type:"number",description:"최대값"},{property:"step",type:"number",description:"증감 단위"},{property:"precision",type:"number",description:"소수점 자릿수"},{property:"formatter",type:"function",description:"표시 형식 변환 함수"},{property:"parser",type:"function",description:"입력값 파싱 함수"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:o.jsx(qr,{selectedRowKeys:l,onSelectionChange:c,componentName:"BwgNumber"})}]})})]})]})}),o.jsx("div",{id:"ex_bwg_search",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgSearch"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgSearch 컴포넌트는 검색 기능을 위한 컴포넌트입니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgSearch } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsxs(p.Flex,{vertical:!0,gap:"16",children:[o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSearch,{placeholder:"기본 검색"})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgSearch,{placeholder:"disabled 속성 적용",disabled:!0})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSearch,{placeholder:"allowClear 속성 적용",allowClear:!0})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgSearch,{placeholder:"팝업 검색 기능",popuCd:"example"})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:6,children:o.jsx($.BwgSearch,{placeholder:"기본 검색"})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgSearch,{placeholder:"클리어 가능",allowClear:!0})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgSearch,{placeholder:"비활성화",disabled:!0})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgSearch,{placeholder:"warning 상태",status:"warning"})})]}),o.jsx(p.Divider,{orientation:"left",children:"Code/Value 팝업 검색"}),o.jsx(p.Typography.Text,{type:"secondary",style:{display:"block",marginBottom:"16px"},children:"`popupConfig`를 사용하면 팝업 검색창을 열 수 있습니다. `name` 속성으로 코드 필드를, `valueName` 속성으로 값(이름) 필드를 지정하여 선택된 값을 Form의 다른 필드에 자동으로 채울 수 있습니다."}),o.jsx(p.Form,{children:o.jsx(p.Row,{gutter:[8,16],align:"bottom",children:o.jsx(p.Col,{span:12,children:o.jsx($.BwgSearch,{itemProps:{label:"사용자",name:"user_cd"},popupConfig:!0})})})}),o.jsx(p.Divider,{orientation:"left",children:"라벨 사용하기"}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSearch,{itemProps:{label:"일반"},placeholder:"일반"})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgSearch,{itemProps:{label:"필수",rules:[{required:!0}]},placeholder:"필수"})})]})]})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(lr,{items:[{label:"입력 속성",key:"inputProps",children:o.jsxs(p.Card,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Input.Search 컴포넌트의 모든 속성을 지원합니다.",o.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[R.length>0&&o.jsxs(p.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[R.length,"개 속성 선택됨"]}),o.jsx(p.Button,{onClick:()=>{if(R.length===0){p.message.warning("선택된 속성이 없습니다!");return}const A={placeholder:"'검색어를 입력하세요'",disabled:"false",allowClear:"true",onSearch:"value => message.info(`검색: ${value}`)",status:"'warning'"},K=`<BwgSearch
205
+ ${R.map(te=>` ${te}: ${A[te]||"true"}`).join(`,
206
+ `)}
207
+ />`;navigator.clipboard.writeText(K),p.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:R.length===0,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),o.jsx(p.Table,{rowSelection:{type:"checkbox",selectedRowKeys:R,onChange:(A,G)=>{T(A),console.log(`selectedRowKeys: ${A}`,"selectedRows: ",G)}},rowKey:A=>A.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"검색 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"검색 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"onSearch",type:"function",description:"검색 버튼 클릭 시 실행되는 함수"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:o.jsx(qr,{selectedRowKeys:d,onSelectionChange:u,componentName:"BwgSearch"})}]})})]})]})}),o.jsx("div",{id:"ex_bwg_select",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgSelect"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgSelect 컴포넌트는 드롭다운 선택을 위한 컴포넌트입니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgSelect } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsxs(p.Flex,{vertical:!0,gap:"16",children:[o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{selectProps:{placeholder:"기본 선택",options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{selectProps:{placeholder:"disabled 속성 적용",disabled:!0,options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{selectProps:{placeholder:"allowClear 속성 적용",allowClear:!0,options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{selectProps:{placeholder:'mode="multiple" 속성 적용',mode:"multiple",options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{selectProps:{placeholder:"showSearch 속성 적용",showSearch:!0,options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{selectProps:{placeholder:"status 속성 적용 (warning)",status:"warning",options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]}),o.jsx(p.Divider,{orientation:"left",children:"라벨 사용하기"}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{itemProps:{label:"일반"},selectProps:{placeholder:"일반",options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{itemProps:{label:"필수",rules:[{required:!0}]},selectProps:{placeholder:"필수",options:[{label:"옵션 1",value:"1"}]}})})]})]})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(lr,{items:[{label:"선택 속성",key:"selectProps",children:o.jsxs(p.Card,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Select 컴포넌트의 모든 속성을 지원합니다.",o.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[N.length>0&&o.jsxs(p.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[N.length,"개 속성 선택됨"]}),o.jsx(p.Button,{onClick:()=>{if(N.length===0){p.message.warning("선택된 속성이 없습니다!");return}const A={placeholder:"'옵션을 선택하세요'",disabled:"false",allowClear:"true",mode:"'multiple'",status:"'warning'",options:"[{ label: '옵션 1', value: '1' }, { label: '옵션 2', value: '2' }]"},K=`<BwgSelect
208
+ selectProps={{
209
+ ${N.map(te=>` ${te}: ${A[te]||"true"}`).join(`,
210
+ `)}
211
+ }}
212
+ />`;navigator.clipboard.writeText(K),p.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:N.length===0,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),o.jsx(p.Table,{rowSelection:{type:"checkbox",selectedRowKeys:N,onChange:(A,G)=>{F(A),console.log(`selectedRowKeys: ${A}`,"selectedRows: ",G)}},rowKey:A=>A.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"선택 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"선택 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"mode",type:"multiple | tags",description:"다중 선택 모드"},{property:"status",type:"error | warning",description:"상태 표시"},{property:"options",type:"Array<{label, value}>",description:"선택 옵션 목록"}]})]})},{label:"폼 속성",key:"itemProps",children:o.jsx(qr,{selectedRowKeys:f,onSelectionChange:h,componentName:"BwgSelect"})}]})})]})]})}),o.jsx("div",{id:"ex_bwg_multiselect",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgMultiSelect"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgMultiSelect 컴포넌트는 다중 선택을 위한 컴포넌트입니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgMultiSelect } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsxs(p.Flex,{vertical:!0,gap:"16",children:[o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgMultiSelect,{inputProps:{placeholder:"기본 다중 선택",list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgMultiSelect,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0,list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgMultiSelect,{inputProps:{placeholder:"allowClear 속성 적용",allowClear:!0,list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgMultiSelect,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0,list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgMultiSelect,{inputProps:{placeholder:"maxTagCount 속성 적용",maxTagCount:2,list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"},{label:"옵션 4",value:"4"}]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgMultiSelect,{inputProps:{placeholder:'addField="ALL" 속성 적용',addField:"ALL",list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]}),o.jsx(p.Divider,{orientation:"left",children:"라벨 사용하기"}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgMultiSelect,{itemProps:{label:"일반"},inputProps:{placeholder:"일반",list:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgMultiSelect,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{placeholder:"필수",list:[{label:"옵션 1",value:"1"}]}})})]})]})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(lr,{items:[{label:"입력 속성",key:"inputProps",children:o.jsxs(p.Card,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Select 컴포넌트의 모든 속성을 지원합니다.",o.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[V.length>0&&o.jsxs(p.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[V.length,"개 속성 선택됨"]}),o.jsx(p.Button,{onClick:()=>{if(V.length===0){p.message.warning("선택된 속성이 없습니다!");return}const A={placeholder:"'다중 선택하세요'",disabled:"false",allowClear:"true",maxTagCount:"3",addField:"'ALL'",list:"[{ label: '옵션 1', value: '1' }, { label: '옵션 2', value: '2' }]"},K=`<BwgMultiSelect
213
+ inputProps={{
214
+ ${V.map(te=>` ${te}: ${A[te]||"true"}`).join(`,
215
+ `)}
216
+ }}
217
+ />`;navigator.clipboard.writeText(K),p.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:V.length===0,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),o.jsx(p.Table,{rowSelection:{type:"checkbox",selectedRowKeys:V,onChange:(A,G)=>{J(A),console.log(`selectedRowKeys: ${A}`,"selectedRows: ",G)}},rowKey:A=>A.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"선택 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"선택 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"maxTagCount",type:"number",description:"표시할 태그 최대 개수"},{property:"addField",type:"ALL | NULL",description:"추가 필드 옵션"},{property:"list",type:"Array<{label, value}>",description:"선택 옵션 목록"}]})]})},{label:"폼 속성",key:"itemProps",children:o.jsx(qr,{selectedRowKeys:m,onSelectionChange:g,componentName:"BwgMultiSelect"})}]})})]})]})}),o.jsx("div",{id:"ex_bwg_datepicker",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgDatePicker"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgDatePicker 컴포넌트는 날짜 선택을 위한 컴포넌트입니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgDatePicker } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsxs(p.Flex,{vertical:!0,gap:"16",children:[o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgDatePicker,{inputProps:{placeholder:"기본 날짜 선택"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgDatePicker,{inputProps:{placeholder:"disabled 속성 적용",disabled:!0}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgDatePicker,{inputProps:{placeholder:"allowClear 속성 적용",allowClear:!0}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgDatePicker,{inputProps:{placeholder:"showToday 속성 적용",showToday:!0}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgDatePicker,{inputProps:{placeholder:"format 속성 적용",format:"YYYY-MM-DD"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgDatePicker,{inputProps:{placeholder:"showTime 속성 적용",showTime:!0}})})]}),o.jsx(p.Divider,{orientation:"left",children:"라벨 사용하기"}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgDatePicker,{itemProps:{label:"일반"},inputProps:{placeholder:"일반"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgDatePicker,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{placeholder:"필수"}})})]})]})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(lr,{items:[{label:"날짜 선택 속성",key:"datePickerProps",children:o.jsxs(p.Card,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd DatePicker 컴포넌트의 모든 속성을 지원합니다.",o.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[U.length>0&&o.jsxs(p.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[U.length,"개 속성 선택됨"]}),o.jsx(p.Button,{onClick:()=>{if(U.length===0){p.message.warning("선택된 속성이 없습니다!");return}const A={placeholder:"'날짜를 선택하세요'",disabled:"false",allowClear:"true",format:"'YYYY-MM-DD'",showTime:"false"},K=`<BwgDatePicker
218
+ inputProps={{
219
+ ${U.map(te=>` ${te}: ${A[te]||"true"}`).join(`,
220
+ `)}
221
+ }}
222
+ />`;navigator.clipboard.writeText(K),p.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:U.length===0,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),o.jsx(p.Table,{rowSelection:{type:"checkbox",selectedRowKeys:U,onChange:(A,G)=>{H(A),console.log(`selectedRowKeys: ${A}`,"selectedRows: ",G)}},rowKey:A=>A.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"날짜 선택 필드의 힌트 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"날짜 선택 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"format",type:"string",description:"날짜 형식 (예: YYYY-MM-DD)"},{property:"showTime",type:"boolean",description:"시간 선택 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:o.jsx(qr,{selectedRowKeys:x,onSelectionChange:v,componentName:"BwgDatePicker"})}]})})]})]})}),o.jsx("div",{id:"ex_bwg_rangepicker",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgRangePicker"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgRangePicker 컴포넌트는 날짜 범위 선택을 위한 컴포넌트입니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgRangePicker } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsxs(p.Flex,{vertical:!0,gap:"16",children:[o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],disabled:!0}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],allowClear:!0}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],disabled:!0}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],format:"YYYY-MM-DD"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgRangePicker,{inputProps:{placeholder:["시작일","종료일"],showTime:!0}})})]}),o.jsx(p.Divider,{orientation:"left",children:"라벨 사용하기"}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgRangePicker,{itemProps:{label:"일반"},inputProps:{placeholder:["시작일","종료일"]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgRangePicker,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{placeholder:["시작일","종료일"]}})})]})]})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(lr,{items:[{label:"범위 선택 속성",key:"rangePickerProps",children:o.jsxs(p.Card,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd RangePicker 컴포넌트의 모든 속성을 지원합니다.",o.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[Q.length>0&&o.jsxs(p.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[Q.length,"개 속성 선택됨"]}),o.jsx(p.Button,{onClick:()=>{if(Q.length===0){p.message.warning("선택된 속성이 없습니다!");return}const A={placeholder:"['시작일', '종료일']",disabled:"false",allowClear:"true",format:"'YYYY-MM-DD'",showTime:"false"},K=`<BwgRangePicker
223
+ inputProps={{
224
+ ${Q.map(te=>` ${te}: ${A[te]||"true"}`).join(`,
225
+ `)}
226
+ }}
227
+ />`;navigator.clipboard.writeText(K),p.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:Q.length===0,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),o.jsx(p.Table,{rowSelection:{type:"checkbox",selectedRowKeys:Q,onChange:(A,G)=>{ie(A),console.log(`selectedRowKeys: ${A}`,"selectedRows: ",G)}},rowKey:A=>A.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"placeholder",description:"날짜 범위 선택 필드의 힌트 텍스트",type:"string[]"},{property:"disabled",type:"boolean",description:"날짜 범위 선택 필드 비활성화"},{property:"allowClear",type:"boolean",description:"클리어 버튼 표시"},{property:"format",type:"string",description:"날짜 형식 (예: YYYY-MM-DD)"},{property:"showTime",type:"boolean",description:"시간 선택 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:o.jsx(qr,{selectedRowKeys:b,onSelectionChange:C,componentName:"BwgRangePicker"})}]})})]})]})}),o.jsx("div",{id:"ex_bwg_check",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgCheck"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgCheck 컴포넌트는 체크박스를 위한 컴포넌트입니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgCheck } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsxs(p.Flex,{vertical:!0,gap:"16",children:[o.jsxs(p.Row,{gutter:[16,16],children:[o.jsxs(p.Col,{span:12,children:[o.jsx(p.Typography.Text,{strong:!0,children:"기본 체크박스"}),o.jsx($.BwgCheck,{inputProps:{children:"체크박스"}})]}),o.jsxs(p.Col,{span:12,children:[o.jsx(p.Typography.Text,{strong:!0,children:"disabled: true"}),o.jsx($.BwgCheck,{inputProps:{children:"비활성화된 체크박스",disabled:!0}})]})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsxs(p.Col,{span:12,children:[o.jsx(p.Typography.Text,{strong:!0,children:"indeterminate: true"}),o.jsx($.BwgCheck,{inputProps:{children:"부분 선택 체크박스",indeterminate:!0}})]}),o.jsxs(p.Col,{span:12,children:[o.jsx(p.Typography.Text,{strong:!0,children:"status: 'warning'"}),o.jsx($.BwgCheck,{inputProps:{children:"경고 상태 체크박스"}})]})]}),o.jsx(p.Divider,{orientation:"left",children:"라벨 사용하기"}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgCheck,{itemProps:{label:"일반"},inputProps:{children:"일반"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgCheck,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{children:"필수"}})})]})]})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(lr,{items:[{label:"입력 속성",key:"inputProps",children:o.jsxs(p.Card,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Checkbox 컴포넌트의 모든 속성을 지원합니다.",o.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[de.length>0&&o.jsxs(p.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[de.length,"개 속성 선택됨"]}),o.jsx(p.Button,{onClick:()=>{if(de.length===0){p.message.warning("선택된 속성이 없습니다!");return}const A={children:"'체크박스 라벨'",disabled:"false",indeterminate:"true",status:"'warning'"},K=`<BwgCheck
228
+ inputProps={{
229
+ ${de.map(te=>` ${te}: ${A[te]||"true"}`).join(`,
230
+ `)}
231
+ }}
232
+ />`;navigator.clipboard.writeText(K),p.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:de.length===0,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),o.jsx(p.Table,{rowSelection:{type:"checkbox",selectedRowKeys:de,onChange:(A,G)=>{le(A),console.log(`selectedRowKeys: ${A}`,"selectedRows: ",G)}},rowKey:A=>A.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"children",description:"체크박스 라벨 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"체크박스 비활성화"},{property:"indeterminate",type:"boolean",description:"부분 선택 상태"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:o.jsx(qr,{selectedRowKeys:P,onSelectionChange:E,componentName:"BwgCheck"})}]})})]})]})}),o.jsx("div",{id:"ex_bwg_checklist",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgCheckList"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgCheckList 컴포넌트는 체크리스트를 위한 컴포넌트입니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgCheckList } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsxs(p.Flex,{vertical:!0,gap:"16",children:[o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgCheckList,{inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgCheckList,{inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}],disabled:!0}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgCheckList,{inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"},{label:"옵션 3",value:"3"}]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgCheckList,{inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]}),o.jsx(p.Divider,{orientation:"left",children:"라벨 사용하기"}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgCheckList,{itemProps:{label:"일반"},inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgCheckList,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{options:[{label:"옵션 1",value:"1"},{label:"옵션 2",value:"2"}]}})})]})]})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(lr,{items:[{label:"입력 속성",key:"inputProps",children:o.jsxs(p.Card,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Checkbox.Group 컴포넌트의 모든 속성을 지원합니다.",o.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ve.length>0&&o.jsxs(p.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[ve.length,"개 속성 선택됨"]}),o.jsx(p.Button,{onClick:()=>{if(ve.length===0){p.message.warning("선택된 속성이 없습니다!");return}const A={options:"[{ label: '옵션 1', value: '1' }, { label: '옵션 2', value: '2' }]",disabled:"false",direction:"'horizontal'",status:"'warning'"},K=`<BwgCheckList
233
+ inputProps={{
234
+ ${ve.map(te=>` ${te}: ${A[te]||"true"}`).join(`,
235
+ `)}
236
+ }}
237
+ />`;navigator.clipboard.writeText(K),p.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:ve.length===0,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),o.jsx(p.Table,{rowSelection:{type:"checkbox",selectedRowKeys:ve,onChange:(A,G)=>{W(A),console.log(`selectedRowKeys: ${A}`,"selectedRows: ",G)}},rowKey:A=>A.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"options",description:"체크박스 옵션 목록",type:"Array<{label, value}>"},{property:"disabled",type:"boolean",description:"체크박스 그룹 비활성화"},{property:"direction",type:"horizontal | vertical",description:"배치 방향"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:o.jsx(qr,{selectedRowKeys:j,onSelectionChange:S,componentName:"BwgCheckList"})}]})})]})]})}),o.jsx("div",{id:"ex_bwg_radio",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgRadio"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgRadio 컴포넌트는 라디오 버튼을 위한 컴포넌트입니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgRadio } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsxs(p.Flex,{vertical:!0,gap:"16",children:[o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgRadio,{inputProps:{children:"기본 라디오 버튼"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgRadio,{inputProps:{children:"disabled 속성 적용",disabled:!0}})})]}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgRadio,{inputProps:{children:"status 속성 적용 (warning)"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgRadio,{inputProps:{children:"disabled 속성 적용",disabled:!0}})})]}),o.jsx(p.Divider,{orientation:"left",children:"라벨 사용하기"}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgRadio,{itemProps:{label:"일반"},inputProps:{children:"일반"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgRadio,{itemProps:{label:"필수",rules:[{required:!0}]},inputProps:{children:"필수"}})})]})]})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(lr,{items:[{label:"입력 속성",key:"inputProps",children:o.jsxs(p.Card,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"16px"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["Antd Radio 컴포넌트의 모든 속성을 지원합니다.",o.jsx("br",{}),"아래는 대표 속성들입니다. 그 외의 속성은 Ant Design 공식 문서를 참고하세요."]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[z.length>0&&o.jsxs(p.Typography.Text,{style:{color:"#52c41a",fontSize:"13px",whiteSpace:"nowrap",fontWeight:500},children:[z.length,"개 속성 선택됨"]}),o.jsx(p.Button,{onClick:()=>{if(z.length===0){p.message.warning("선택된 속성이 없습니다!");return}const A={children:"'라디오 버튼 라벨'",disabled:"false",status:"'warning'"},K=`<BwgRadio
238
+ inputProps={{
239
+ ${z.map(te=>` ${te}: ${A[te]||"true"}`).join(`,
240
+ `)}
241
+ }}
242
+ />`;navigator.clipboard.writeText(K),p.message.success("선택된 속성으로 코드가 복사되었습니다!")},disabled:z.length===0,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"선택된 속성으로 코드 생성 복사"})]})]}),o.jsx(p.Table,{rowSelection:{type:"checkbox",selectedRowKeys:z,onChange:(A,G)=>{X(A),console.log(`selectedRowKeys: ${A}`,"selectedRows: ",G)}},rowKey:A=>A.property,pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"children",description:"라디오 버튼 라벨 텍스트",type:"string"},{property:"disabled",type:"boolean",description:"라디오 버튼 비활성화"},{property:"status",type:"error | warning",description:"상태 표시"}]})]})},{label:"폼 속성",key:"itemProps",children:o.jsx(qr,{selectedRowKeys:O,onSelectionChange:k,componentName:"BwgRadio"})}]})})]})]})}),o.jsx("div",{id:"ex_bwg_uploader",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgUploader"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgUploader 컴포넌트는 단일 또는 다중 파일을 개별적으로 업로드하기 위한 컴포넌트입니다. 파일 선택 즉시 업로드가 시작됩니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgUploader } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsxs(p.Flex,{vertical:!0,gap:"16",children:[o.jsxs(p.Row,{gutter:[16,16],children:[o.jsxs(p.Col,{span:12,children:[o.jsx(p.Typography.Text,{strong:!0,children:"기본 업로더"}),o.jsx($.BwgUploader,{onUploadComplete:A=>{p.message.success(`[onUploadComplete] ${A.fileNameL} 업로드 완료`)}})]}),o.jsxs(p.Col,{span:12,children:[o.jsx(p.Typography.Text,{strong:!0,children:"거래코드(trxCd)와 함께 업로드"}),o.jsx($.BwgUploader,{})]})]}),o.jsx(p.Row,{gutter:[16,16],children:o.jsxs(p.Col,{span:12,children:[o.jsx(p.Typography.Text,{strong:!0,children:"확장자 및 파일 크기 제한"}),o.jsx($.BwgUploader,{allowedExtensions:[".jpg",".png"],maxFileSize:1,onUploadComplete:A=>{p.message.success(`[onUploadComplete] ${A.fileNameL} 업로드 완료`)}})]})})]})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(p.Card,{children:o.jsx(p.Table,{pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"onUploadComplete",description:"파일 업로드 성공 시 호출되는 콜백 함수",type:"(fileDetails: { fileNameP: string, fileNameL: string }) => void"},{property:"trxCd",description:"파일 업로드 시 함께 전송할 거래코드",type:"string"},{property:"allowedExtensions",description:"허용할 파일 확장자 배열. (기본값: 여러 일반적인 확장자)",type:"string[]"},{property:"maxFileSize",description:"최대 파일 크기 (MB 단위)",type:"number"}]})})})]})]})}),o.jsx("div",{id:"ex_bwg_largeuploader",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:"BwgLargeUploader"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ReadOutlined,{}),"설명"]}),o.jsx(p.Typography.Paragraph,{style:{fontSize:"14px",color:"#595959",lineHeight:1.5},children:o.jsx("blockquote",{children:"BwgLargeUploader 컴포넌트는 대용량 파일을 포함한 여러 파일을 일괄적으로 업로드하기 위한 컴포넌트입니다. 드래그 앤 드롭을 지원하며, 파일 목록을 확인하고 '일괄 업로드' 버튼으로 한 번에 업로드합니다."})})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.RocketOutlined,{}),"Import 하기"]}),o.jsx(vr,{importText:"import { BwgLargeUploader } from '@bwg/ui/core';"})]}),o.jsxs("div",{style:{marginBottom:"32px"},children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"16px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.ExperimentOutlined,{}),"사용 방법"]}),o.jsx("div",{style:{background:"#ffffff",border:"1px solid #e1e4e8",borderRadius:"8px",padding:"24px"},children:o.jsx(p.Flex,{vertical:!0,gap:"16",children:o.jsx(p.Row,{gutter:[16,16],children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgLargeUploader,{title:"대용량 파일 업로더",onUploadComplete:A=>{p.message.success(`[onUploadComplete] ${A.fileNameL} 업로드 완료`)}})})})})})]}),o.jsxs("div",{children:[o.jsxs(p.Typography.Title,{level:5,style:{marginBottom:"12px",color:"#262626",fontSize:"16px"},children:[o.jsx(Z.UnorderedListOutlined,{}),"속성 설명"]}),o.jsx("div",{style:{background:"#fafbfc",border:"1px solid #e1e4e8",borderRadius:"6px",padding:"16px"},children:o.jsx(p.Card,{children:o.jsx(p.Table,{pagination:!1,columns:[{title:"속성",dataIndex:"property",align:"center"},{title:"설명",dataIndex:"description"},{title:"타입",dataIndex:"type",align:"center"}],dataSource:[{property:"title",description:"업로더 카드의 제목",type:"string"},{property:"onUploadComplete",description:"개별 파일 업로드 성공 시 호출되는 콜백 함수",type:"(fileDetails: { fileNameP: string, fileNameL: string }) => void"},{property:"trxCd",description:"파일 업로드 시 함께 전송할 거래코드",type:"string"},{property:"allowedExtensions",description:"허용할 파일 확장자 배열. (기본값: 여러 일반적인 확장자)",type:"string[]"}]})})})]})]})})]})]})})},rl=({importText:e,onCopy:t})=>o.jsx(im,{text:e,onCopy:()=>{p.message.success("import 문이 복사되었습니다!"),t?.()},children:o.jsxs("div",{style:{background:"#1e1e1e",border:"1px solid #3c3c3c",borderRadius:"6px",padding:"12px 16px",fontFamily:'Monaco, Menlo, "Ubuntu Mono", monospace',fontSize:"13px",color:"#d4d4d4",cursor:"pointer",display:"flex",alignItems:"flex-start",justifyContent:"space-between",transition:"all 0.2s ease",userSelect:"none"},onMouseEnter:r=>{r.currentTarget.style.background="#2d2d30",r.currentTarget.style.borderColor="#4a4a4a"},onMouseLeave:r=>{r.currentTarget.style.background="#1e1e1e",r.currentTarget.style.borderColor="#3c3c3c"},children:[o.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",flex:1,lineHeight:"1.5"},children:o.jsx("code",{children:e})}),o.jsx(Z.CopyOutlined,{style:{color:"#858585",fontSize:"14px",marginLeft:"12px",flexShrink:0}})]})}),wn=({id:e,children:t,onClick:r,isActive:n=!1,icon:i})=>{const[a,s]=y.useState(!1),l={width:"100%",textAlign:"left",marginBottom:"8px",border:"none",borderRadius:"8px",padding:"12px 16px",fontWeight:500,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"hidden",background:n?"#00bcd4":"transparent",color:n?"#ffffff":"#595959",transform:a?"translateX(4px)":"translateX(0)",boxShadow:n?a?"0 4px 12px rgba(0, 188, 212, 0.3)":"none":a?"0 2px 8px rgba(0, 0, 0, 0.1)":"none"},c={position:"absolute",left:0,top:0,bottom:0,width:"4px",background:"#00bcd4",borderRadius:"0 2px 2px 0"};return o.jsxs(p.Button,{id:e,type:"text",onClick:r,style:l,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[n&&o.jsx("div",{style:c}),i&&o.jsx("span",{style:{marginRight:"8px",fontSize:"16px"},children:i}),o.jsx("span",{style:{fontSize:"14px",lineHeight:1.4},children:t})]})},UN=({visible:e,onCancel:t,onOk:r})=>{const[n,i]=y.useState([]),[a,s]=y.useState("100%"),l=[{value:"BwgInput",label:"BwgInput - 입력 필드"},{value:"BwgSelect",label:"BwgSelect - 선택 박스"},{value:"BwgSearch",label:"BwgSearch - 검색 필드"},{value:"BwgDatePicker",label:"BwgDatePicker - 날짜 선택"},{value:"BwgRangePicker",label:"BwgRangePicker - 날짜 범위 선택"},{value:"BwgRadio",label:"BwgRadio - 라디오 버튼"},{value:"BwgCheck",label:"BwgCheck - 체크박스"},{value:"BwgCheckList",label:"BwgCheckList - 체크박스 그룹"},{value:"BwgTextArea",label:"BwgTextArea - 텍스트 영역"},{value:"BwgNumber",label:"BwgNumber - 숫자 입력"},{value:"BwgMultiSelect",label:"BwgMultiSelect - 다중 선택"},{value:"BwgMaskedInput",label:"BwgMaskedInput - 마스크 입력"},{value:"BwgMaskedPicker",label:"BwgMaskedPicker - 마스크 날짜 선택"},{value:"BwgButton",label:"BwgButton - 버튼"},{value:"BwgUploader",label:"BwgUploader - 파일 업로드"},{value:"BwgLargeUploader",label:"BwgLargeUploader - 대용량 파일 업로드"}],c=[{label:"100%",value:"100%"},{label:"50%",value:"50%"},{label:"33%",value:"33%"},{label:"25%",value:"25%"}],d=()=>{n.length>0&&r(n,a)},f=(g=>{switch(g){case"100%":return 1;case"50%":return 2;case"33%":return 3;case"25%":return 4;default:return 1}})(a),h=n.length>f,m=()=>{i([]),s("100%"),t()};return o.jsx(p.Modal,{title:"필수검색 행 추가",open:e,onOk:d,onCancel:m,centered:!0,okText:"추가",cancelText:"취소",okButtonProps:{disabled:n.length===0||h},width:600,zIndex:1500,destroyOnHidden:!0,children:o.jsxs("div",{style:{padding:"20px 0"},children:[o.jsxs("div",{style:{marginBottom:"24px"},children:[o.jsx("div",{style:{marginBottom:"8px",fontWeight:500},children:"사이즈 선택"}),o.jsx(p.Radio.Group,{value:a,onChange:g=>s(g.target.value),optionType:"button",buttonStyle:"solid",children:c.map(g=>o.jsx(p.Radio.Button,{value:g.value,children:g.label},g.value))})]}),o.jsxs("div",{style:{marginBottom:"24px"},children:[o.jsx("div",{style:{marginBottom:"8px",fontWeight:500},children:"컴포넌트 선택"}),o.jsx(p.Select,{mode:"multiple",style:{width:"100%"},placeholder:`사용할 컴포넌트를 선택하세요 (최대 ${f}개)`,value:n,onChange:i,options:l,showSearch:!0,filterOption:(g,x)=>(x?.label??"").toLowerCase().includes(g.toLowerCase()),maxTagCount:"responsive",maxCount:f}),h&&o.jsxs("div",{style:{color:"#ff4d4f",fontSize:"12px",marginTop:"4px"},children:[a," 사이즈는 최대 ",f,"개까지만 선택 가능합니다."]})]})]})})},KN=({visible:e,onCancel:t,onOk:r})=>{const[n,i]=y.useState([]),[a,s]=y.useState("100%"),l=[{value:"BwgInput",label:"BwgInput - 입력 필드"},{value:"BwgSelect",label:"BwgSelect - 선택 박스"},{value:"BwgSearch",label:"BwgSearch - 검색 필드"},{value:"BwgDatePicker",label:"BwgDatePicker - 날짜 선택"},{value:"BwgRangePicker",label:"BwgRangePicker - 날짜 범위 선택"},{value:"BwgRadio",label:"BwgRadio - 라디오 버튼"},{value:"BwgCheck",label:"BwgCheck - 체크박스"},{value:"BwgCheckList",label:"BwgCheckList - 체크박스 그룹"},{value:"BwgTextArea",label:"BwgTextArea - 텍스트 영역"},{value:"BwgNumber",label:"BwgNumber - 숫자 입력"},{value:"BwgMultiSelect",label:"BwgMultiSelect - 다중 선택"},{value:"BwgMaskedInput",label:"BwgMaskedInput - 마스크 입력"},{value:"BwgMaskedPicker",label:"BwgMaskedPicker - 마스크 날짜 선택"},{value:"BwgButton",label:"BwgButton - 버튼"},{value:"BwgUploader",label:"BwgUploader - 파일 업로드"},{value:"BwgLargeUploader",label:"BwgLargeUploader - 대용량 파일 업로드"}],c=[{label:"100%",value:"100%"},{label:"50%",value:"50%"},{label:"33%",value:"33%"},{label:"25%",value:"25%"}],d=()=>{n.length>0&&r(n,a)},f=(g=>{switch(g){case"100%":return 1;case"50%":return 2;case"33%":return 3;case"25%":return 4;default:return 1}})(a),h=n.length>f,m=()=>{i([]),s("100%"),t()};return o.jsx(p.Modal,{title:"일반검색 행 추가",open:e,onOk:d,onCancel:m,centered:!0,okText:"추가",cancelText:"취소",okButtonProps:{disabled:n.length===0||h},width:600,zIndex:1500,destroyOnHidden:!0,children:o.jsxs("div",{style:{padding:"20px 0"},children:[o.jsxs("div",{style:{marginBottom:"24px"},children:[o.jsx("div",{style:{marginBottom:"8px",fontWeight:500},children:"사이즈 선택"}),o.jsx(p.Radio.Group,{value:a,onChange:g=>s(g.target.value),optionType:"button",buttonStyle:"solid",children:c.map(g=>o.jsx(p.Radio.Button,{value:g.value,children:g.label},g.value))})]}),o.jsxs("div",{style:{marginBottom:"24px"},children:[o.jsx("div",{style:{marginBottom:"8px",fontWeight:500},children:"컴포넌트 선택"}),o.jsx(p.Select,{mode:"multiple",style:{width:"100%"},placeholder:`사용할 컴포넌트를 선택하세요 (최대 ${f}개)`,value:n,onChange:i,options:l,showSearch:!0,filterOption:(g,x)=>(x?.label??"").toLowerCase().includes(g.toLowerCase()),maxTagCount:"responsive",maxCount:f}),h&&o.jsxs("div",{style:{color:"#ff4d4f",fontSize:"12px",marginTop:"4px"},children:[a," 사이즈는 최대 ",f,"개까지만 선택 가능합니다."]})]})]})})},ji=({title:e,subtitle:t})=>o.jsxs("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:[e,o.jsx("span",{id:"subtitle",style:{marginLeft:"10px",color:"#00bcd4",fontSize:"14px",fontWeight:400},children:t})]}),ga=({onReset:e=()=>{},onAddRequiredSearch:t=()=>{},onAddGeneralSearch:r=()=>{},onCopyCode:n=()=>{},copyButtonDisabled:i=!1})=>o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[o.jsx(p.Button,{icon:o.jsx(Z.UndoOutlined,{}),onClick:e,type:"default",danger:!0,children:"초기화"}),o.jsx(p.Popover,{content:o.jsx("div",{style:{padding:"12px 0"},children:o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},children:[o.jsx(p.Button,{icon:o.jsx(Z.PlusOutlined,{}),style:{width:"100%"},onClick:t,children:"필수검색 행 추가"}),o.jsx(p.Button,{icon:o.jsx(Z.PlusOutlined,{}),style:{width:"100%"},onClick:r,children:"일반검색 행 추가"})]})}),title:"편집 옵션",placement:"bottom",trigger:"click",children:o.jsx(p.Button,{icon:o.jsx(Z.SettingOutlined,{}),children:"편집"})}),o.jsx(p.Button,{onClick:n,disabled:i,type:"primary",icon:o.jsx(Z.CopyOutlined,{}),children:"코드 복사"})]}),Jn=[{fieldName:"id",header:{text:"사번"}},{fieldName:"name",header:{text:"이름"}},{fieldName:"age",header:{text:"나이"}},{fieldName:"gender",header:{text:"성별"}}],qN=()=>{const{showPopup:e}=bt.usePopup(),t=y.useRef(null),[r,n]=y.useState("readme"),[i,a]=y.useState(!1),[s,l]=y.useState(!1),[c,d]=y.useState(""),[u,f]=y.useState({}),h=y.useRef(null),m=y.useRef(null),g=y.useRef(null),x=y.useRef(null),v=y.useRef(null),b=y.useRef(null),C=y.useRef(null),[P,E]=y.useState(null),j=y.useRef(null),S=y.useRef(null),O=y.useRef(null),k=y.useRef(null),[D,B]=y.useState(!1),[M,I]=y.useState(!1),[_,L]=y.useState(!1),[R,T]=y.useState(!1),N=A=>{const G=document.getElementById(A);G&&t.current&&(t.current.scrollTo({top:G.offsetTop-20,behavior:"smooth"}),n(A))},F=A=>{d(A),a(!0)},V=A=>{d(A),l(!0)},J=(A,G)=>{console.log(`템플릿 ${c}에 필수검색으로 ${A.join(", ")} 컴포넌트들을 ${G} 사이즈로 추가`),f(K=>({...K,[c]:{...K[c],required:{components:A,size:G}}})),a(!1)},U=(A,G)=>{console.log(`템플릿 ${c}에 일반검색으로 ${A.join(", ")} 컴포넌트들을 ${G} 사이즈로 추가`),f(K=>({...K,[c]:{...K[c],general:{components:A,size:G}}})),l(!1)},H=(A,G)=>{const K={itemProps:{label:"예제",name:"exam"},key:`${A}_${G}`};switch(A){case"BwgInput":return o.jsx($.BwgInput,{...K});case"BwgSelect":return o.jsx($.BwgSelect,{...K});case"BwgSearch":return o.jsx($.BwgSearch,{...K});case"BwgDatePicker":return o.jsx($.BwgDatePicker,{...K});case"BwgRangePicker":return o.jsx($.BwgRangePicker,{...K});case"BwgRadio":return o.jsx($.BwgRadio,{...K});case"BwgCheck":return o.jsx($.BwgCheck,{...K});case"BwgCheckList":return o.jsx($.BwgCheckList,{...K});case"BwgTextArea":return o.jsx($.BwgTextArea,{...K});case"BwgNumber":return o.jsx($.BwgNumber,{...K});case"BwgMultiSelect":return o.jsx($.BwgMultiSelect,{...K});case"BwgMaskedInput":return o.jsx($.BwgMaskedInput,{...K,mask:"0000-00-00"});case"BwgMaskedPicker":return o.jsx($.BwgMaskedPicker,{...K});case"BwgButton":return o.jsx($.BwgButton,{...K,children:"버튼"});case"BwgUploader":return o.jsx($.BwgUploader,{...K});case"BwgLargeUploader":return o.jsx($.BwgLargeUploader,{...K});default:return o.jsx($.BwgInput,{...K})}},Q=A=>{const G=u[A];if(!G)return{};const K={};if(G.required){const{components:te,size:oe}=G.required,fe=oe==="100%"?1:oe==="50%"?2:oe==="33%"?3:4,me=te.map((be,Me)=>H(be,Me));for(;me.length<fe;)me.push(o.jsx(o.Fragment,{}));K.reqArea={row1:me}}else K.reqArea={row1:[o.jsx($.BwgInput,{itemProps:{label:"입력예제",name:"keyword"}})]};if(G.general){const{components:te,size:oe}=G.general,fe=oe==="100%"?1:oe==="50%"?2:oe==="33%"?3:4,me=te.map((be,Me)=>H(be,Me));for(;me.length<fe;)me.push(o.jsx(o.Fragment,{}));K.subArea={row1:me}}return K},ie=()=>{a(!1)},de=()=>{l(!1)},le=A=>{f(G=>({...G,[A]:void 0}))},ve=A=>{const G=u[A];let K="";if(G?.required||G?.general){if(K=`searchBox={{
243
+ `,G.required){const{components:fe,size:me}=G.required,be=me==="100%"?1:me==="50%"?2:me==="33%"?3:4;K+=` reqArea: {
244
+ `,K+=` row1: [
245
+ `,fe.forEach((Me,Ne)=>{K+=` <${Me} itemProps={{ label: '예제', name: 'exam' }} />,
246
+ `});for(let Me=fe.length;Me<be;Me++)K+=` <></>,
247
+ `;K+=` ]
248
+ `,K+=" }"}if(G.general){G.required&&(K+=`,
249
+ `);const{components:fe,size:me}=G.general,be=me==="100%"?1:me==="50%"?2:me==="33%"?3:4;K+=` subArea: {
250
+ `,K+=` row1: [
251
+ `,fe.forEach((Me,Ne)=>{K+=` <${Me} itemProps={{ label: '예제', name: 'exam' }} />,
252
+ `});for(let Me=fe.length;Me<be;Me++)K+=` <></>,
253
+ `;K+=` ]
254
+ `,K+=" }"}K+=`
255
+ }}`}let te="";switch(A){case"bwgpageTmpl01":te=` <ContentLayOut>
256
+ <ContentBox style={{ height: '300px' }}>
257
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
258
+ </ContentBox>
259
+ </ContentLayOut>`;break;case"bwgpageTmpl02":te=` <ContentLayOut>
260
+ <ContentBox className="w50 mr20" style={{ height: '300px' }}>
261
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
262
+ </ContentBox>
263
+ <ContentBox className="w50" style={{ height: '300px' }}>
264
+ <BwgInfoArea title="상세정보">
265
+ <div>이곳에 각종 컴포넌트들을 구현하세요.</div>
266
+ </BwgInfoArea>
267
+ </ContentBox>
268
+ </ContentLayOut>`;break;case"bwgpageTmpl03":te=` <ContentLayOut type="vertical">
269
+ <ContentBox style={{ height: '300px' }} className="mb20">
270
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
271
+ </ContentBox>
272
+ <ContentBox style={{ height: '300px' }}>
273
+ <BwgInfoArea title="상세정보">
274
+ <div>이곳에 각종 컴포넌트들을 구현하세요.</div>
275
+ </BwgInfoArea>
276
+ </ContentBox>
277
+ </ContentLayOut>`;break;case"bwgpageTmpl04":te=` <ContentLayOut>
278
+ <ContentBox className="w50 mr20" style={{ height: '300px' }}>
279
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
280
+ </ContentBox>
281
+ <ContentBox className="w50" style={{ height: '300px' }}>
282
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
283
+ </ContentBox>
284
+ </ContentLayOut>`;break;case"bwgpageTmpl05":te=` <ContentLayOut type="vertical">
285
+ <ContentBox style={{ height: '300px' }} className="mb20">
286
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
287
+ </ContentBox>
288
+ <ContentBox style={{ height: '300px' }}>
289
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
290
+ </ContentBox>
291
+ </ContentLayOut>`;break;default:te=` <ContentLayOut>
292
+ <ContentBox style={{ height: '300px' }}>
293
+ <BwgGrid ref={gridRef} gridColumns={gridColumns}></BwgGrid>
294
+ </ContentBox>
295
+ </ContentLayOut>`}return`// 아래 코드를 return 영역에 붙여 넣으시기 바랍니다.
296
+ <BwgView${K?" "+K:""}>
297
+ ${te}
298
+ </BwgView>`},W=A=>{const G=ve(A);navigator.clipboard.writeText(G).then(()=>{p.message.success("코드가 클립보드에 복사되었습니다!")}).catch(()=>{const K=document.createElement("textarea");K.value=G,K.select(),document.execCommand("copy"),document.body.removeChild(K),p.message.success("코드가 클립보드에 복사되었습니다!")})},z=[{title:"공통버튼 영역",description:o.jsxs("div",{style:{padding:"8px 0"},children:[o.jsx("p",{style:{marginBottom:"16px",fontSize:"14px",lineHeight:"1.6",color:"#262626"},children:"공통버튼 영역은 권한 등록을 통해 자동으로 생성됩니다."}),o.jsxs("div",{style:{background:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef"},children:[o.jsx("h4",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600,color:"#495057"},children:"※ 공통버튼 사용하기"}),o.jsxs("ol",{style:{margin:0,paddingLeft:"20px",fontSize:"13px",lineHeight:"1.8",color:"#495057"},children:[o.jsx("li",{children:"메뉴등록"}),o.jsx("li",{children:"권한등록"}),o.jsx("li",{children:"권한별 버튼 등록"}),o.jsx("li",{children:"역할에 권한 부여"})]})]})]}),target:()=>j.current},{title:"공통(조회)버튼 사용",description:o.jsxs("div",{style:{padding:"8px 0"},children:[o.jsxs("p",{style:{marginBottom:"16px",fontSize:"14px",lineHeight:"1.6",color:"#262626"},children:["BwgView 컴포넌트의 grantEvent 속성을 사용하여 이벤트 매핑을 합니다.",o.jsx("br",{}),"이벤트 객체 생성시, 함수명과 버튼ID로 매핑되어 버튼에 적용됩니다."]}),o.jsxs("div",{style:{marginBottom:"20px"},children:[o.jsxs("h4",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600,color:"#495057",display:"flex",alignItems:"center"},children:[o.jsx("span",{style:{background:"#007bff",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",marginRight:"8px"},children:"1"}),"객체 선언 예시"]}),o.jsx(rl,{importText:`const grantEvent = {
299
+ search: () => {
300
+ // getFormData() 함수는 searchBox의 모든 컴포넌트의 값을 가져옵니다.
301
+ console.log('search :: ', getFormData());
302
+ },
303
+ };`})]}),o.jsxs("div",{children:[o.jsxs("h4",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600,color:"#495057",display:"flex",alignItems:"center"},children:[o.jsx("span",{style:{background:"#28a745",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",marginRight:"8px"},children:"2"}),"적용 예시"]}),o.jsx(rl,{importText:"<BwgView grantEvent={grantEvent}></BwgView>"})]})]}),target:()=>S.current}],X=[{title:"팝업 사용하기",description:o.jsxs("div",{style:{padding:"8px 0"},children:[o.jsxs("p",{style:{marginBottom:"16px",fontSize:"14px",lineHeight:"1.6",color:"#262626"},children:["usePopup 훅을 사용하여 팝업을 쉽게 열 수 있습니다.",o.jsx("br",{}),"팝업 ID와 파라미터를 전달하여 동적으로 팝업을 호출합니다."]}),o.jsxs("div",{style:{background:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef"},children:[o.jsx("h4",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600,color:"#495057"},children:"※ 팝업 사용 방법"}),o.jsxs("ol",{style:{margin:0,paddingLeft:"20px",fontSize:"13px",lineHeight:"1.8",color:"#495057"},children:[o.jsx("li",{children:"usePopup 훅 import"}),o.jsx("li",{children:"showPopup 함수로 팝업 호출"}),o.jsx("li",{children:"팝업 ID와 파라미터 전달"})]})]}),o.jsx("div",{style:{marginTop:"16px",textAlign:"center"},children:o.jsx(p.Button,{type:"primary",size:"small",onClick:()=>{e("CMTestP01",{})},style:{background:"#007bff",borderColor:"#007bff",borderRadius:"6px",fontSize:"13px",padding:"6px 16px",height:"auto"},children:"예제팝업 열어보기"})})]}),target:()=>O.current}],Y=[{title:"드로어 사용하기",description:o.jsxs("div",{style:{padding:"8px 0"},children:[o.jsxs("p",{style:{marginBottom:"16px",fontSize:"14px",lineHeight:"1.6",color:"#262626"},children:["BwgDrawer 컴포넌트를 사용하여 사이드 패널을 구현할 수 있습니다.",o.jsx("br",{}),"상태 관리와 함께 사용하여 드로어의 열림/닫힘을 제어합니다."]}),o.jsxs("div",{style:{background:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef"},children:[o.jsx("h4",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600,color:"#495057"},children:"※ 드로어 사용 방법"}),o.jsxs("ol",{style:{margin:0,paddingLeft:"20px",fontSize:"13px",lineHeight:"1.8",color:"#495057"},children:[o.jsx("li",{children:"드로어 상태 관리 (useState)"}),o.jsx("li",{children:"BwgDrawer 컴포넌트 추가"}),o.jsx("li",{children:"open, onClose 속성 설정"})]})]}),o.jsx("div",{style:{marginTop:"16px",textAlign:"center"},children:o.jsx(p.Button,{type:"primary",size:"small",onClick:()=>{T(!0)},style:{background:"#28a745",borderColor:"#28a745",borderRadius:"6px",fontSize:"13px",padding:"6px 16px",height:"auto"},children:"예제드로어 열어보기"})})]}),target:()=>k.current}];return o.jsxs(_c,{children:[o.jsxs(p.Row,{style:{height:"100%"},children:[o.jsxs(p.Col,{span:4,style:{height:"100%",overflow:"auto"},children:[o.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(Le,{title:o.jsx("div",{children:"개요"})})}),o.jsx("div",{id:"nav-container",style:{padding:"10px"},children:o.jsx(wn,{id:"readmeBtn",onClick:()=>{E("readmeBtn"),N("readme")},isActive:r==="readme",children:"준비하기"})}),o.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(Le,{title:o.jsx("div",{children:"템플릿 목록"})})}),o.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[o.jsx(wn,{id:"bwgpageTmpl01Btn",onClick:()=>{E("bwgpageTmpl01Btn"),N("bwgpageTmpl01")},isActive:r==="bwgpageTmpl01",children:"검색+그리드"}),o.jsx(wn,{id:"bwgpageTmpl02Btn",onClick:()=>{E("bwgpageTmpl02Btn"),N("bwgpageTmpl02")},isActive:r==="bwgpageTmpl02",children:"검색+그리드(좌)+상세(우)"}),o.jsx(wn,{id:"bwgpageTmpl03Btn",onClick:()=>{E("bwgpageTmpl03Btn"),N("bwgpageTmpl03")},isActive:r==="bwgpageTmpl03",children:"검색+그리드(상)+상세(하)"}),o.jsx(wn,{id:"bwgpageTmpl04Btn",onClick:()=>{E("bwgpageTmpl04Btn"),N("bwgpageTmpl04")},isActive:r==="bwgpageTmpl04",children:"검색+그리드(좌)+그리드(우)"}),o.jsx(wn,{id:"bwgpageTmpl05Btn",onClick:()=>{E("bwgpageTmpl05Btn"),N("bwgpageTmpl05")},isActive:r==="bwgpageTmpl05",children:"검색+그리드(상)+그리드(하)"})]}),o.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(Le,{title:o.jsx("div",{children:"공통기능 활용"})})}),o.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[o.jsx(wn,{id:"buttonsBtn",onClick:()=>{E("buttonsBtn"),N("application"),B(!0)},isActive:r==="buttons",children:"공통버튼 활용하기"}),o.jsx(wn,{id:"popupBtn",onClick:()=>{E("popupBtn"),N("application"),I(!0)},isActive:r==="popup",children:"팝업 활용하기"}),o.jsx(wn,{id:"drawerBtn",onClick:()=>{E("drawerBtn"),N("application"),L(!0)},isActive:r==="drawer",children:"드로어 활용하기"})]})]}),o.jsxs(p.Col,{ref:t,id:"content-container",span:20,style:{height:"100%",background:"#f0f0f0",overflow:"auto",padding:"20px"},children:[o.jsx("div",{id:"readme",style:{marginBottom:"60px"},children:o.jsx(p.Card,{title:o.jsx(ji,{title:"준비사항",subtitle:"꼭 읽어주세요!"}),style:{borderRadius:"12px",boxShadow:"0 4px 12px rgba(0,0,0,0.08)",border:"1px solid #f0f0f0"},children:o.jsxs("div",{style:{padding:"20px 0"},children:[o.jsxs("div",{style:{marginBottom:"24px"},children:[o.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:"12px",padding:"12px 16px",background:"#f5f5f5",borderRadius:"6px",border:"1px solid #e8e8e8",fontSize:"15px",fontWeight:600,color:"#262626"},children:"1. @bwg/ui 패키지 설치 확인"}),o.jsxs("div",{style:{padding:"16px",background:"#fafafa",borderRadius:"6px",border:"1px solid #f0f0f0",marginLeft:"16px"},children:[o.jsx("div",{style:{color:"#595959",fontSize:"14px",fontWeight:500,marginBottom:"8px"},children:"설치방법:"}),o.jsx("code",{style:{background:"#f0f0f0",padding:"6px 10px",borderRadius:"4px",fontSize:"13px",color:"#262626",fontFamily:'Monaco, Consolas, "Courier New", monospace'},children:"npm install @bwg/ui"})]})]}),o.jsxs("div",{style:{marginBottom:"24px"},children:[o.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:"12px",padding:"12px 16px",background:"#f5f5f5",borderRadius:"6px",border:"1px solid #e8e8e8",fontSize:"15px",fontWeight:600,color:"#262626"},children:"2. VS Code 스니펫 설정 확인"}),o.jsxs("div",{style:{padding:"16px",background:"#fafafa",borderRadius:"6px",border:"1px solid #f0f0f0",marginLeft:"16px"},children:[o.jsx("div",{style:{color:"#595959",fontSize:"14px",fontWeight:500,marginBottom:"12px"},children:"확인방법:"}),o.jsxs("div",{style:{marginBottom:"8px"},children:[o.jsx("span",{style:{display:"inline-block",width:"18px",height:"18px",background:"#8c8c8c",color:"white",borderRadius:"50%",textAlign:"center",lineHeight:"18px",fontSize:"11px",fontWeight:"bold",marginRight:"8px"},children:"1"}),o.jsxs("span",{style:{color:"#595959",fontSize:"14px"},children:["프로젝트 루트 디렉토리에"," ",o.jsx("code",{style:{background:"#f0f0f0",padding:"2px 6px",borderRadius:"3px",fontSize:"12px"},children:".vscode"})," ","폴더 확인"]})]}),o.jsxs("div",{children:[o.jsx("span",{style:{display:"inline-block",width:"18px",height:"18px",background:"#8c8c8c",color:"white",borderRadius:"50%",textAlign:"center",lineHeight:"18px",fontSize:"11px",fontWeight:"bold",marginRight:"8px"},children:"2"}),o.jsxs("span",{style:{color:"#595959",fontSize:"14px"},children:[o.jsx("code",{style:{background:"#f0f0f0",padding:"2px 6px",borderRadius:"3px",fontSize:"12px"},children:"bwg-code-assist.code-snippets"})," ","파일 유무 확인"]})]})]})]}),o.jsx("div",{style:{padding:"12px 16px",background:"#f6ffed",borderRadius:"6px",border:"1px solid #b7eb8f",textAlign:"center"},children:o.jsx("div",{style:{color:"#52c41a",fontSize:"14px",fontWeight:500},children:"💡 위 준비사항을 모두 확인하신 후 템플릿을 사용하시기 바랍니다!"})})]})})}),o.jsx("div",{id:"bwgpageTmpl01",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx(ji,{title:"템플릿01",subtitle:"검색조건 + 그리드"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:[o.jsxs("div",{style:{padding:"0px 30px",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["검색과 그리드 영역으로 이루어진 기본 템플릿입니다.",o.jsx("br",{}),"예약어 코드 : ",o.jsx("code",{children:"bwgpageTmpl01"})]}),o.jsx(ga,{onReset:()=>le("bwgpageTmpl01"),onAddRequiredSearch:()=>F("bwgpageTmpl01"),onAddGeneralSearch:()=>V("bwgpageTmpl01"),onCopyCode:()=>W("bwgpageTmpl01")})]}),o.jsx(Vt,{searchBox:Q("bwgpageTmpl01"),children:o.jsx(ze,{children:o.jsx(Te,{style:{height:"300px"},children:o.jsx(Fe,{ref:h,gridColumns:Jn})})})})]})}),o.jsx("div",{id:"bwgpageTmpl02",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx(ji,{title:"템플릿02",subtitle:"검색조건 + 그리드(좌) + 상세(우)"}),children:[o.jsxs("div",{style:{padding:"0px 30px",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["그리드 + 상세 영역이 좌/우 로 이루어진 기본 템플릿입니다.",o.jsx("br",{}),"예약어 코드 : ",o.jsx("code",{children:"bwgpageTmpl02"})]}),o.jsx(ga,{onReset:()=>le("bwgpageTmpl02"),onAddRequiredSearch:()=>F("bwgpageTmpl02"),onAddGeneralSearch:()=>V("bwgpageTmpl02"),onAddPermissionButton:()=>{console.log("템플릿02 - 권한버튼 추가")},onCopyCode:()=>W("bwgpageTmpl02")})]}),o.jsx(Vt,{searchBox:Q("bwgpageTmpl02"),children:o.jsxs(ze,{children:[o.jsx(Te,{className:"w50 mr20",style:{height:"300px"},children:o.jsx(Fe,{ref:m,gridColumns:Jn})}),o.jsx(Te,{className:"w50",style:{height:"300px"},children:o.jsx(fn,{title:"상세정보",children:o.jsx("div",{children:"이곳에 각종 컴포넌트들을 구현하세요."})})})]})})]})}),o.jsx("div",{id:"bwgpageTmpl03",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx(ji,{title:"템플릿03",subtitle:"검색조건 + 그리드(상) + 상세(하)"}),children:[o.jsxs("div",{style:{padding:"0px 30px",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["그리드 + 상세 영역이 상/하 로 이루어진 기본 템플릿입니다.",o.jsx("br",{}),"예약어 코드 : ",o.jsx("code",{children:"bwgpageTmpl03"})]}),o.jsx(ga,{onReset:()=>le("bwgpageTmpl03"),onAddRequiredSearch:()=>F("bwgpageTmpl03"),onAddGeneralSearch:()=>V("bwgpageTmpl03"),onAddPermissionButton:()=>{console.log("템플릿03 - 권한버튼 추가")},onCopyCode:()=>W("bwgpageTmpl03")})]}),o.jsx(Vt,{searchBox:Q("bwgpageTmpl03"),children:o.jsxs(ze,{type:"vertical",children:[o.jsx(Te,{style:{height:"300px"},className:"mb20",children:o.jsx(Fe,{ref:g,gridColumns:Jn})}),o.jsx(Te,{style:{height:"300px"},children:o.jsx(fn,{title:"상세정보",children:o.jsx("div",{children:"이곳에 각종 컴포넌트들을 구현하세요."})})})]})})]})}),o.jsx("div",{id:"bwgpageTmpl04",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx(ji,{title:"템플릿04",subtitle:"검색조건 + 그리드(좌) + 그리드(우)"}),children:[o.jsxs("div",{style:{padding:"0px 30px",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["그리드 + 그리드 영역이 좌/우 로 이루어진 기본 템플릿입니다.",o.jsx("br",{}),"예약어 코드 : ",o.jsx("code",{children:"bwgpageTmpl04"})]}),o.jsx(ga,{onReset:()=>le("bwgpageTmpl04"),onAddRequiredSearch:()=>F("bwgpageTmpl04"),onAddGeneralSearch:()=>V("bwgpageTmpl04"),onAddPermissionButton:()=>{console.log("템플릿04 - 권한버튼 추가")},onCopyCode:()=>W("bwgpageTmpl04")})]}),o.jsx(Vt,{searchBox:Q("bwgpageTmpl04"),children:o.jsxs(ze,{children:[o.jsx(Te,{className:"w50 mr20",style:{height:"300px"},children:o.jsx(Fe,{ref:x,gridColumns:Jn})}),o.jsx(Te,{className:"w50",style:{height:"300px"},children:o.jsx(Fe,{ref:x,gridColumns:Jn})})]})})]})}),o.jsx("div",{id:"bwgpageTmpl05",style:{marginBottom:"60px"},children:o.jsxs(p.Card,{title:o.jsx(ji,{title:"템플릿05",subtitle:"검색조건 + 그리드(상) + 그리드(하)"}),children:[o.jsxs("div",{style:{padding:"0px 30px",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[o.jsxs(p.Typography.Text,{style:{color:"#656d76",fontSize:"13px",flex:1,marginRight:"16px"},children:["그리드 + 그리드 영역이 상/하 로 이루어진 기본 템플릿입니다.",o.jsx("br",{}),"예약어 코드 : ",o.jsx("code",{children:"bwgpageTmpl05"})]}),o.jsx(ga,{onReset:()=>le("bwgpageTmpl05"),onAddRequiredSearch:()=>F("bwgpageTmpl05"),onAddGeneralSearch:()=>V("bwgpageTmpl05"),onAddPermissionButton:()=>{console.log("템플릿05 - 권한버튼 추가")},onCopyCode:()=>W("bwgpageTmpl05")})]}),o.jsx(Vt,{searchBox:Q("bwgpageTmpl05"),children:o.jsxs(ze,{type:"vertical",children:[o.jsx(Te,{style:{height:"300px"},className:"mb20",children:o.jsx(Fe,{ref:v,gridColumns:Jn})}),o.jsx(Te,{style:{height:"300px"},children:o.jsx(Fe,{ref:v,gridColumns:Jn})})]})})]})}),o.jsx("div",{id:"application",children:o.jsx(p.Card,{title:o.jsx(ji,{title:"공통기능 활용",subtitle:"공통버튼 / 팝업 / 드로어"}),children:o.jsx("div",{style:{padding:"0px 30px",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:o.jsxs("div",{className:"bwg-view main-view",style:{width:"100%",height:"100%",display:"flex",flexDirection:"column"},children:[o.jsx("div",{className:"bwgview-header-container",children:o.jsxs("div",{className:"bwgview-header",children:[o.jsx("div",{className:"bwgview-header-left",children:o.jsx(p.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:o.jsxs(p.Space,{children:[o.jsx(Z.StarFilled,{style:{color:"#faad14"}}),o.jsxs(p.Space.Compact,{style:{alignItems:"center"},children:[o.jsx("span",{className:"pageMenuNm",children:"임시메뉴"}),o.jsx(p.Tag,{className:"page-num-tag",children:"0000"}),o.jsx(p.Tooltip,{title:"도움말",color:"geekblue",children:o.jsx(p.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:o.jsx("span",{className:"bwgHelpIcon"})})})]})]})})}),o.jsx("div",{className:"bwgview-header-right",children:o.jsx(p.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:o.jsxs(p.Space,{children:[o.jsxs(p.Flex,{gap:8,children:[o.jsx(p.Button,{ref:O,className:"bwg-btn",children:"팝업열기"}),o.jsx(p.Button,{ref:k,className:"bwg-btn",onClick:()=>{T(!0)},children:"드로어열기"})]}),o.jsx(p.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:o.jsx(p.Divider,{type:"vertical"})}),o.jsxs(p.Flex,{ref:j,gap:8,className:"permission-buttons",children:[o.jsx(p.Button,{ref:S,className:"bwg-btn",onClick:()=>{},children:"조회"}),o.jsx(p.Button,{ref:C,className:"bwg-btn",onClick:()=>{},children:"신규"})]})]})})})]})}),o.jsx("div",{className:"bwgview-content",children:o.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:o.jsx(ze,{children:o.jsx(Te,{style:{height:"300px"},children:o.jsx(Fe,{ref:b,gridColumns:Jn})})})})})]})})})})]})]}),o.jsx(p.Tour,{open:D,onClose:()=>B(!1),steps:z}),o.jsx(p.Tour,{open:M,onClose:()=>I(!1),steps:X}),o.jsx(p.Tour,{open:_,onClose:()=>L(!1),steps:Y}),o.jsx(UN,{visible:i,onCancel:ie,onOk:J}),o.jsx(KN,{visible:s,onCancel:de,onOk:U}),o.jsx(dn,{title:"드로어 예제",width:600,open:R,onClose:()=>{T(!1),L(!1)},placement:"right",zIndex:1500,children:o.jsxs(ze,{type:"vertical",children:[o.jsxs(p.Card,{className:"w100 mb20",children:[o.jsx(Le,{title:"예제 코드 : 컴포넌트 안에 입력하세요."}),o.jsx(rl,{importText:"const [drawerOpen, setDrawerOpen] = useState<boolean>(false);"})]}),o.jsxs(p.Card,{className:"w100",children:[o.jsx(Le,{title:"예제 코드 : BwgView 안에 입력하세요."}),o.jsx(rl,{importText:`<BwgDrawer
304
+ title="드로어 예제"
305
+ open={drawerOpen}
306
+ onClose={() => {
307
+ setDrawerOpen(false);
308
+ }}
309
+ placement="right"
310
+ ><div>드로어 영역</div></BwgDrawer>`})]})]})})]})},tt=({importText:e,onCopy:t})=>o.jsx(im,{text:e,onCopy:()=>{p.message.success("코드가 복사되었습니다!"),t?.()},children:o.jsxs("div",{style:{background:"#1e1e1e",border:"1px solid #3c3c3c",borderRadius:"6px",padding:"12px 16px",fontFamily:'Monaco, Menlo, "Ubuntu Mono", monospace',fontSize:"13px",color:"#d4d4d4",cursor:"pointer",display:"flex",alignItems:"flex-start",justifyContent:"space-between",transition:"all 0.2s ease",userSelect:"none",marginBottom:"16px"},onMouseEnter:r=>{r.currentTarget.style.background="#2d2d30",r.currentTarget.style.borderColor="#4a4a4a"},onMouseLeave:r=>{r.currentTarget.style.background="#1e1e1e",r.currentTarget.style.borderColor="#3c3c3c"},children:[o.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",flex:1,lineHeight:"1.5"},children:o.jsx("code",{children:e})}),o.jsx(Z.CopyOutlined,{style:{color:"#858585",fontSize:"14px",marginLeft:"12px",flexShrink:0}})]})}),ei=({id:e,children:t,onClick:r,isActive:n=!1,icon:i})=>{const[a,s]=y.useState(!1),l={width:"100%",textAlign:"left",marginBottom:"8px",border:"none",borderRadius:"8px",padding:"12px 16px",fontWeight:500,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",overflow:"hidden",background:n?"#00bcd4":"transparent",color:n?"#ffffff":"#595959",transform:a?"translateX(4px)":"translateX(0)",boxShadow:n?a?"0 4px 12px rgba(0, 188, 212, 0.3)":"none":a?"0 2px 8px rgba(0, 0, 0, 0.1)":"none"},c={position:"absolute",left:0,top:0,bottom:0,width:"4px",background:"#00bcd4",borderRadius:"0 2px 2px 0"};return o.jsxs(p.Button,{id:e,type:"text",onClick:r,style:l,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[n&&o.jsx("div",{style:c}),i&&o.jsx("span",{style:{marginRight:"8px",fontSize:"16px"},children:i}),o.jsx("span",{style:{fontSize:"14px",lineHeight:1.4},children:t})]})},ti=({title:e,subtitle:t})=>o.jsxs("div",{style:{fontSize:"20px",fontWeight:600,color:"#262626"},children:[e,o.jsx("span",{id:"subtitle",style:{marginLeft:"10px",color:"#00bcd4",fontSize:"14px",fontWeight:400},children:t})]}),$0=()=>{const[e,t]=y.useState(0),[r,n]=y.useState("");return o.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[o.jsx("h4",{children:"실습 예제"}),o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},children:[o.jsxs("div",{children:[o.jsx("strong",{children:"카운터:"})," ",e,o.jsxs("div",{style:{marginTop:"8px"},children:[o.jsx(p.Button,{onClick:()=>t(e+1),style:{marginRight:"8px"},children:"증가"}),o.jsx(p.Button,{onClick:()=>t(e-1),children:"감소"})]})]}),o.jsxs("div",{children:[o.jsx("strong",{children:"이름 입력:"}),o.jsx(p.Input,{value:r,onChange:i=>n(i.target.value),placeholder:"이름을 입력하세요",style:{marginTop:"8px"}}),r&&o.jsxs("div",{style:{marginTop:"8px"},children:["안녕하세요, ",r,"님!"]})]})]})]})},L0=()=>{const e=y.useRef(null),t=y.useRef(0),[r,n]=y.useState(0),i=()=>{e.current?.focus()},a=()=>{t.current+=1,alert(`Ref 카운트: ${t.current}`)};return o.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[o.jsx("h4",{children:"실습 예제"}),o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},children:[o.jsxs("div",{children:[o.jsx(p.Input,{ref:e,placeholder:"이 입력 필드에 포커스됩니다"}),o.jsx(p.Button,{onClick:i,style:{marginTop:"8px"},children:"입력 필드에 포커스"})]}),o.jsx(p.Divider,{}),o.jsxs("div",{children:[o.jsxs("div",{children:["렌더링 횟수: ",r]}),o.jsxs("div",{children:["Ref 카운트: ",t.current," (렌더링과 무관)"]}),o.jsxs("div",{style:{marginTop:"8px"},children:[o.jsx(p.Button,{onClick:()=>n(r+1),style:{marginRight:"8px"},children:"리렌더링"}),o.jsx(p.Button,{onClick:a,children:"Ref 카운트 증가"})]})]})]})]})},z0=()=>{const[e,t]=y.useState(0),[r,n]=y.useState(["할 일 1","할 일 2"]),i=y.useMemo(()=>(console.log("비싼 계산 실행됨"),e*1e3),[e]),a=()=>{n([...r,`할 일 ${r.length+1}`])};return o.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[o.jsx("h4",{children:"실습 예제"}),o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},children:[o.jsxs("div",{children:[o.jsxs("div",{children:["카운트: ",e]}),o.jsxs("div",{children:["계산된 값 (useMemo): ",i]}),o.jsx(p.Button,{onClick:()=>t(e+1),style:{marginTop:"8px"},children:"카운트 증가"})]}),o.jsx(p.Divider,{}),o.jsxs("div",{children:[o.jsx("div",{children:"할 일 목록:"}),r.map((s,l)=>o.jsxs("div",{children:["• ",s]},l)),o.jsx(p.Button,{onClick:a,style:{marginTop:"8px"},children:"할 일 추가 (useMemo 재계산 안됨)"})]})]})]})},F0=()=>{const[e,t]=y.useState(0),[r,n]=y.useState(""),i=y.useCallback(()=>{t(s=>s+1)},[]),a=y.useCallback(s=>{n(s)},[]);return o.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[o.jsx("h4",{children:"실습 예제"}),o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},children:[o.jsxs("div",{children:[o.jsxs("div",{children:["카운트: ",e]}),o.jsx(p.Button,{onClick:i,style:{marginTop:"8px"},children:"증가 (useCallback 사용)"})]}),o.jsx(p.Divider,{}),o.jsxs("div",{children:[o.jsxs("div",{children:["이름: ",r]}),o.jsx(p.Input,{value:r,onChange:s=>a(s.target.value),placeholder:"이름 입력",style:{marginTop:"8px"}})]})]})]})},V0=()=>{const[e,t]=y.useState(0),[r,n]=y.useState(window.innerWidth);return y.useEffect(()=>(console.log("컴포넌트가 마운트되었습니다"),()=>{console.log("컴포넌트가 언마운트됩니다")}),[]),y.useEffect(()=>{document.title=`카운트: ${e}`},[e]),y.useEffect(()=>{const i=()=>{n(window.innerWidth)};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[]),o.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[o.jsx("h4",{children:"실습 예제"}),o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},children:[o.jsxs("div",{children:[o.jsxs("div",{children:["카운트: ",e," (브라우저 탭 제목 확인)"]}),o.jsx(p.Button,{onClick:()=>t(e+1),style:{marginTop:"8px"},children:"카운트 증가"})]}),o.jsx(p.Divider,{}),o.jsxs("div",{children:[o.jsxs("div",{children:["현재 윈도우 너비: ",r,"px"]}),o.jsx("div",{style:{fontSize:"12px",color:"#666"},children:"(브라우저 창 크기를 조절해보세요)"})]})]})]})},YN=y.forwardRef((e,t)=>{const[r,n]=y.useState("");return o.jsxs("div",{children:[o.jsx(p.Input,{ref:t,value:r,onChange:i=>n(i.target.value),placeholder:e.placeholder,style:{marginBottom:"8px"}}),o.jsxs("div",{style:{fontSize:"12px",color:"#666"},children:["현재 값: ",r]})]})}),GN=()=>{const e=y.useRef(null),t=()=>{e.current?.focus()},r=()=>{e.current?.select()};return o.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[o.jsx("h4",{children:"ForwardRef 실습 예제"}),o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},children:[o.jsx(YN,{ref:e,placeholder:"이 입력 필드는 ref가 전달됩니다"}),o.jsxs(p.Space,{children:[o.jsx(p.Button,{onClick:t,children:"포커스"}),o.jsx(p.Button,{onClick:r,children:"전체 선택"})]})]})]})},XN=()=>{const e=y.useRef(null),t=()=>{e.current?.focus()},r=()=>{e.current?.clear()},n=()=>{const i=e.current?.getValue();alert(`현재 값: ${i}`)};return o.jsxs("div",{style:{padding:"16px",background:"#f9f9f9",borderRadius:"8px"},children:[o.jsx("h4",{children:"useImperativeHandle 예제"}),o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},children:[o.jsx(ZN,{ref:e}),o.jsxs(p.Space,{children:[o.jsx(p.Button,{onClick:t,children:"포커스"}),o.jsx(p.Button,{onClick:r,children:"클리어"}),o.jsx(p.Button,{onClick:n,children:"값 가져오기"})]})]})]})},ZN=y.forwardRef((e,t)=>{const r=y.useRef(null),[n,i]=y.useState("");return y.useImperativeHandle(t,()=>({focus:()=>{r.current?.focus()},clear:()=>{i(""),r.current?.focus()},getValue:()=>n})),o.jsx(p.Input,{ref:r,value:n,onChange:a=>i(a.target.value),placeholder:"부모에서 제어되는 입력 필드"})}),QN=()=>{const e=y.useRef(null),[t,r]=y.useState("intro"),n=i=>{const a=document.getElementById(i);a&&e.current&&(e.current.scrollTo({top:a.offsetTop-20,behavior:"smooth"}),r(i))};return o.jsx(_c,{children:o.jsxs(p.Row,{style:{height:"100%"},children:[o.jsxs(p.Col,{span:4,style:{height:"100%",overflow:"auto"},children:[o.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(Le,{title:o.jsx("div",{children:"React Hooks 가이드"})})}),o.jsx("div",{id:"nav-container",style:{padding:"10px"},children:o.jsx(ei,{id:"introBtn",onClick:()=>{n("intro")},isActive:t==="intro",children:"소개"})}),o.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(Le,{title:o.jsx("div",{children:"Section 1: 기본 Hooks"})})}),o.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[o.jsx(ei,{id:"useStateBtn",onClick:()=>{n("useState")},isActive:t==="useState",children:"useState"}),o.jsx(ei,{id:"useRefBtn",onClick:()=>{n("useRef")},isActive:t==="useRef",children:"useRef"}),o.jsx(ei,{id:"useMemoBtn",onClick:()=>{n("useMemo")},isActive:t==="useMemo",children:"useMemo"}),o.jsx(ei,{id:"useCallbackBtn",onClick:()=>{n("useCallback")},isActive:t==="useCallback",children:"useCallback"}),o.jsx(ei,{id:"useEffectBtn",onClick:()=>{n("useEffect")},isActive:t==="useEffect",children:"useEffect"})]}),o.jsx("div",{style:{padding:"10px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(Le,{title:o.jsx("div",{children:"Section 2: 고급 Hooks"})})}),o.jsxs("div",{id:"nav-container",style:{padding:"10px"},children:[o.jsx(ei,{id:"forwardRefBtn",onClick:()=>{n("forwardRef")},isActive:t==="forwardRef",children:"forwardRef"}),o.jsx(ei,{id:"useImperativeHandleBtn",onClick:()=>{n("useImperativeHandle")},isActive:t==="useImperativeHandle",children:"useImperativeHandle"})]})]}),o.jsxs(p.Col,{ref:e,id:"content-container",span:20,style:{height:"100%",background:"#f0f0f0",overflow:"auto",padding:"20px"},children:[o.jsx("div",{id:"intro",style:{marginBottom:"60px"},children:o.jsx(p.Card,{title:o.jsx(ti,{title:"React Hooks 가이드",subtitle:"초보자를 위한 완벽 가이드"}),style:{borderRadius:"12px",boxShadow:"0 4px 12px rgba(0,0,0,0.08)",border:"1px solid #f0f0f0"},children:o.jsxs("div",{style:{padding:"20px 0"},children:[o.jsx(p.Alert,{message:"React Hooks란?",description:"React 16.8에서 도입된 기능으로, 함수형 컴포넌트에서도 state와 생명주기 메서드를 사용할 수 있게 해주는 특별한 함수들입니다.",type:"info",showIcon:!0,style:{marginBottom:"20px"}}),o.jsx(p.Typography.Paragraph,{children:"이 가이드는 두 섹션으로 구성되어 있습니다:"}),o.jsxs("div",{style:{marginBottom:"24px"},children:[o.jsx(p.Typography.Title,{level:5,style:{color:"#1890ff",marginBottom:"12px"},children:"📚 Section 1: 기본 Hooks"}),o.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.8"},children:[o.jsxs("li",{children:[o.jsx("strong",{children:"useState"})," - 상태 관리"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"useRef"})," - DOM 참조 및 값 저장"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"useMemo"})," - 값 메모이제이션"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"useCallback"})," - 함수 메모이제이션"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"useEffect"})," - 부수 효과 처리"]})]})]}),o.jsxs("div",{style:{marginBottom:"24px"},children:[o.jsx(p.Typography.Title,{level:5,style:{color:"#52c41a",marginBottom:"12px"},children:"🚀 Section 2: 고급 Hooks"}),o.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.8"},children:[o.jsxs("li",{children:[o.jsx("strong",{children:"forwardRef"})," - 컴포넌트 간 ref 전달"]}),o.jsxs("li",{children:[o.jsx("strong",{children:"useImperativeHandle"})," - 부모에게 노출할 인스턴스 값 커스터마이징"]})]})]})]})})}),o.jsx("div",{id:"useState",style:{marginBottom:"60px"},children:o.jsx(p.Card,{title:o.jsx(ti,{title:"useState",subtitle:"상태 관리의 기본"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[o.jsx(p.Alert,{message:"useState는 컴포넌트에서 변하는 값을 기억하고 화면에 반영하는 Hook입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),o.jsx(p.Typography.Paragraph,{children:"컴포넌트에서 변경 가능한 데이터를 관리할 때 사용합니다. 예: 사용자 입력, 카운터, 토글 상태 등"})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"📝 기본 문법"}),o.jsx(tt,{importText:`import React, { useState } from 'react';
311
+
312
+ const MyComponent = () => {
313
+ // [현재값, 값을변경하는함수] = useState(초기값)
314
+ const [count, setCount] = useState(0);
315
+ const [name, setName] = useState('');
316
+ const [isVisible, setIsVisible] = useState(true);
317
+
318
+ return (
319
+ <div>
320
+ <div>카운트: {count}</div>
321
+ <button onClick={() => setCount(count + 1)}>증가</button>
322
+ </div>
323
+ );
324
+ };`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"⚠️ 주의사항"}),o.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[o.jsx("li",{children:"상태는 직접 변경하지 말고 항상 set 함수를 사용하세요"}),o.jsx("li",{children:"객체나 배열 상태를 업데이트할 때는 새로운 객체/배열을 만들어야 합니다"}),o.jsx("li",{children:"이전 상태를 기반으로 업데이트할 때는 함수형 업데이트를 사용하세요"})]})]}),o.jsx($0,{}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🏢 실제 프로젝트 사용 예제"}),o.jsx(p.Alert,{message:"실제 프로젝트에서 useState 사용 사례",description:"다음은 KRX UI 프로젝트에서 실제로 사용되고 있는 useState 패턴들입니다.",type:"success",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{style:{marginBottom:"16px"},children:[o.jsx(p.Typography.Title,{level:5,children:"1. 사이드바 검색 기능 (Sidebar.tsx)"}),o.jsx(tt,{importText:`// 검색어와 활성 세그먼트 상태 관리
325
+ const [searchValue, setSearchValue] = useState('');
326
+ const [activeSegment, setActiveSegment] = useState<'category' | 'favorite'>(
327
+ 'category'
328
+ );
329
+
330
+ // 세그먼트 변경 처리
331
+ const handleSegmentChange = (value: 'category' | 'favorite') => {
332
+ setActiveSegment(value);
333
+ // 카테고리로 변경 시 검색값 초기화
334
+ if (value === 'category') {
335
+ setSearchValue('');
336
+ }
337
+ };`})]}),o.jsxs("div",{style:{marginBottom:"16px"},children:[o.jsx(p.Typography.Title,{level:5,children:"2. 시스템 코드 관리 (CMSystCodeM01.tsx)"}),o.jsx(tt,{importText:`// 선택된 시스템과 탭 상태 관리
338
+ const [selectedSystem, setSelectedSystem] = useState<SystemInfo | null>(null);
339
+ const [activeTab, setActiveTab] = useState<'group' | 'detail'>('group');
340
+
341
+ // 시스템 카드 클릭 처리
342
+ const handleSystemClick = (system: SystemInfo) => {
343
+ setSelectedSystem(system);
344
+ // 시스템 변경 시 그룹 탭으로 초기화
345
+ setActiveTab('group');
346
+ };`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:5,children:"3. 로딩 상태 관리 (Main.tsx)"}),o.jsx(tt,{importText:`// 전역 로딩 상태 관리
347
+ const [loading, setLoading] = useState(false);
348
+
349
+ // API 호출 시 로딩 상태 제어
350
+ const loadData = async () => {
351
+ setLoading(true);
352
+ try {
353
+ await fetchMenu({ crprCd, userId, prntGbcd: 1 });
354
+ await fetchCommonCodes();
355
+ } finally {
356
+ setLoading(false);
357
+ }
358
+ };`})]})]}),o.jsx($0,{})]})})}),o.jsx("div",{id:"useRef",style:{marginBottom:"60px"},children:o.jsx(p.Card,{title:o.jsx(ti,{title:"useRef",subtitle:"DOM 접근과 값 저장"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[o.jsx(p.Alert,{message:"useRef는 DOM 요소에 직접 접근하거나, 리렌더링 없이 값을 저장하는 Hook입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),o.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[o.jsx("li",{children:"DOM 요소에 직접 접근할 때 (focus, scroll 등)"}),o.jsx("li",{children:"리렌더링되지 않는 값을 저장할 때"}),o.jsx("li",{children:"이전 값을 기억해야 할 때"})]})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"📝 기본 문법"}),o.jsx(tt,{importText:`import React, { useRef } from 'react';
359
+
360
+ const MyComponent = () => {
361
+ // DOM 참조용
362
+ const inputRef = useRef<HTMLInputElement>(null);
363
+
364
+ // 값 저장용 (리렌더링 시에도 유지됨)
365
+ const countRef = useRef(0);
366
+
367
+ const focusInput = () => {
368
+ inputRef.current?.focus(); // DOM 요소에 접근
369
+ };
370
+
371
+ const incrementCount = () => {
372
+ countRef.current += 1; // 값 변경 (리렌더링 안됨)
373
+ console.log(countRef.current);
374
+ };
375
+
376
+ return (
377
+ <div>
378
+ <input ref={inputRef} />
379
+ <button onClick={focusInput}>포커스</button>
380
+ </div>
381
+ );
382
+ };`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🔍 useState vs useRef"}),o.jsxs("div",{style:{display:"flex",gap:"16px"},children:[o.jsxs("div",{style:{flex:1,background:"#f0f9ff",borderRadius:"6px"},children:[o.jsx("strong",{children:"useState"}),o.jsxs("ul",{style:{paddingLeft:"16px",fontSize:"14px"},children:[o.jsx("li",{children:"값이 변경되면 리렌더링"}),o.jsx("li",{children:"화면에 표시되는 데이터"}),o.jsx("li",{children:"사용자에게 보여야 하는 상태"})]})]}),o.jsxs("div",{style:{flex:1,padding:"12px",background:"#f0fdf4",borderRadius:"6px"},children:[o.jsx("strong",{children:"useRef"}),o.jsxs("ul",{style:{paddingLeft:"16px",fontSize:"14px"},children:[o.jsx("li",{children:"값이 변경되어도 리렌더링 안됨"}),o.jsx("li",{children:"내부적으로만 사용되는 데이터"}),o.jsx("li",{children:"DOM 요소 참조"})]})]})]})]}),o.jsx(L0,{}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🏢 실제 프로젝트 사용 예제"}),o.jsx(p.Alert,{message:"실제 프로젝트에서 useRef 사용 사례",description:"다음은 KRX UI 프로젝트에서 실제로 사용되고 있는 useRef 패턴들입니다.",type:"success",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{style:{marginBottom:"16px"},children:[o.jsx(p.Typography.Title,{level:5,children:"1. 그리드 참조 관리 (CMRoleMstrM01.tsx)"}),o.jsx(tt,{importText:`// 여러 그리드 컴포넌트에 대한 ref 관리
383
+ const roleGridRef = useRef<BwgGridRef>(null);
384
+ const dprtGridRef = useRef<BwgGridRef>(null);
385
+ const userGridRef = useRef<BwgGridRef>(null);
386
+
387
+ // 그리드 데이터 조작
388
+ const serviceEvent = {
389
+ SCMROLE00101: () => {
390
+ callService('SCMROLE00101', { crprCd: getCrprCd() }).then(response => {
391
+ // ref를 통해 그리드에 데이터 추가
392
+ roleGridRef.current?.addAllData(response.data);
393
+ });
394
+ }
395
+ };`})]}),o.jsxs("div",{style:{marginBottom:"16px"},children:[o.jsx(p.Typography.Title,{level:5,children:"2. 컴포넌트 캐싱 (Main.tsx)"}),o.jsx(tt,{importText:`// 컴포넌트 인스턴스를 캐싱하여 성능 최적화
396
+ const componentCache = useRef<Map<string, React.ComponentType>>(new Map());
397
+ const componentInstances = useRef<Map<string, React.ReactElement>>(new Map());
398
+
399
+ // 동적 컴포넌트 로딩 시 캐시 활용
400
+ const createViewLoader = (scrnPath: string) => {
401
+ // 캐시된 컴포넌트가 있으면 재사용
402
+ if (componentCache.current.has(scrnPath)) {
403
+ return componentCache.current.get(scrnPath);
404
+ }
405
+
406
+ // 새 컴포넌트 로드 후 캐시에 저장
407
+ const component = views[globKey];
408
+ componentCache.current.set(scrnPath, component);
409
+ return component;
410
+ };`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:5,children:"3. 스크롤 제어 (BwgReactGuideM01.tsx)"}),o.jsx(tt,{importText:`// 콘텐츠 영역 스크롤 제어
411
+ const contentRef = useRef<HTMLDivElement>(null);
412
+
413
+ const scrollToSection = (id: string) => {
414
+ const element = document.getElementById(id);
415
+ if (element && contentRef.current) {
416
+ // ref를 통해 스크롤 위치 제어
417
+ contentRef.current.scrollTo({
418
+ top: element.offsetTop - 20,
419
+ behavior: 'smooth',
420
+ });
421
+ }
422
+ };`})]})]}),o.jsx(L0,{})]})})}),o.jsx("div",{id:"useMemo",style:{marginBottom:"60px"},children:o.jsx(p.Card,{title:o.jsx(ti,{title:"useMemo",subtitle:"값 메모이제이션으로 성능 최적화"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[o.jsx(p.Alert,{message:"useMemo는 비싼 계산 결과를 기억해두고, 의존성이 바뀔 때만 다시 계산하는 Hook입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),o.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[o.jsx("li",{children:"계산 비용이 높은 연산 결과를 캐싱할 때"}),o.jsx("li",{children:"의존성이 변경되지 않으면 이전 결과를 재사용하고 싶을 때"}),o.jsx("li",{children:"불필요한 재계산을 방지하여 성능을 최적화할 때"})]})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"📝 기본 문법"}),o.jsx(tt,{importText:`import React, { useMemo, useState } from 'react';
423
+
424
+ const MyComponent = () => {
425
+ const [count, setCount] = useState(0);
426
+ const [todos, setTodos] = useState([]);
427
+
428
+ // 비싼 계산을 메모이제이션
429
+ const expensiveValue = useMemo(() => {
430
+ console.log('비싼 계산 실행!');
431
+ return count * 1000; // 실제로는 복잡한 계산
432
+ }, [count]); // count가 변경될 때만 재계산
433
+
434
+ return (
435
+ <div>
436
+ <div>결과: {expensiveValue}</div>
437
+ <button onClick={() => setCount(count + 1)}>
438
+ 카운트 증가
439
+ </button>
440
+ </div>
441
+ );
442
+ };`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"⚠️ 주의사항"}),o.jsx(p.Alert,{message:"남용하지 마세요!",description:"useMemo는 성능 최적화 도구입니다. 단순한 계산에는 오히려 오버헤드가 될 수 있으니, 정말 필요한 경우에만 사용하세요.",type:"warning",showIcon:!0})]}),o.jsx(z0,{}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🏢 실제 프로젝트 사용 예제"}),o.jsx(p.Alert,{message:"실제 프로젝트에서 useMemo 사용 사례",description:"다음은 KRX UI 프로젝트에서 실제로 사용되고 있는 useMemo 패턴들입니다.",type:"success",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{style:{marginBottom:"16px"},children:[o.jsx(p.Typography.Title,{level:5,children:"1. 메뉴 검색 옵션 최적화 (Sidebar.tsx)"}),o.jsx(tt,{importText:`// 메뉴 검색 옵션을 메모이제이션하여 성능 최적화
443
+ const menuSearchOptions = useMemo(() => {
444
+ if (!menuList || menuList.length === 0) {
445
+ return [];
446
+ }
447
+
448
+ const options: MenuSearchOption[] = [];
449
+
450
+ const addMenuOptions = (menus: MenuItem[], parentPath = '') => {
451
+ menus.forEach(menu => {
452
+ if (menu.menuNm && menu.scrnId) {
453
+ options.push({
454
+ value: menu.menuId,
455
+ label: parentPath ? \`\${parentPath} > \${menu.menuNm}\` : menu.menuNm,
456
+ menuItem: menu,
457
+ });
458
+ }
459
+
460
+ if (menu.children && menu.children.length > 0) {
461
+ const newParentPath = parentPath
462
+ ? \`\${parentPath} > \${menu.menuNm}\`
463
+ : menu.menuNm;
464
+ addMenuOptions(menu.children, newParentPath);
465
+ }
466
+ });
467
+ };
468
+
469
+ addMenuOptions(menuList);
470
+ return options;
471
+ }, [menuList]); // menuList가 변경될 때만 재계산`})]}),o.jsxs("div",{style:{marginBottom:"16px"},children:[o.jsx(p.Typography.Title,{level:5,children:"2. 필터링된 데이터 최적화 예제"}),o.jsx(tt,{importText:`// 대용량 데이터 필터링 시 useMemo 활용
472
+ const FilteredDataExample = () => {
473
+ const [searchTerm, setSearchTerm] = useState('');
474
+ const [data] = useState(largeDataSet); // 큰 데이터셋
475
+
476
+ // 검색어가 변경될 때만 필터링 재실행
477
+ const filteredData = useMemo(() => {
478
+ if (!searchTerm) return data;
479
+
480
+ return data.filter(item =>
481
+ item.name.toLowerCase().includes(searchTerm.toLowerCase()) ||
482
+ item.description.toLowerCase().includes(searchTerm.toLowerCase())
483
+ );
484
+ }, [data, searchTerm]);
485
+
486
+ // 통계 계산도 메모이제이션
487
+ const statistics = useMemo(() => {
488
+ return {
489
+ total: filteredData.length,
490
+ active: filteredData.filter(item => item.status === 'active').length,
491
+ inactive: filteredData.filter(item => item.status === 'inactive').length,
492
+ };
493
+ }, [filteredData]);
494
+
495
+ return (
496
+ <div>
497
+ <div>총 {statistics.total}개 항목</div>
498
+ <div>활성: {statistics.active}, 비활성: {statistics.inactive}</div>
499
+ </div>
500
+ );
501
+ };`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:5,children:"3. 복잡한 계산 최적화 예제"}),o.jsx(tt,{importText:`// 복잡한 차트 데이터 가공 시 useMemo 활용
502
+ const ChartDataExample = () => {
503
+ const [rawData, setRawData] = useState([]);
504
+ const [dateRange, setDateRange] = useState({ start: '', end: '' });
505
+
506
+ // 차트 데이터 가공 - 복잡한 계산이므로 메모이제이션
507
+ const chartData = useMemo(() => {
508
+ if (!rawData.length) return [];
509
+
510
+ // 날짜 필터링
511
+ const filteredData = rawData.filter(item => {
512
+ const itemDate = new Date(item.date);
513
+ const startDate = new Date(dateRange.start);
514
+ const endDate = new Date(dateRange.end);
515
+ return itemDate >= startDate && itemDate <= endDate;
516
+ });
517
+
518
+ // 데이터 그룹화 및 집계
519
+ const groupedData = filteredData.reduce((acc, item) => {
520
+ const key = item.category;
521
+ if (!acc[key]) {
522
+ acc[key] = { total: 0, count: 0, items: [] };
523
+ }
524
+ acc[key].total += item.value;
525
+ acc[key].count += 1;
526
+ acc[key].items.push(item);
527
+ return acc;
528
+ }, {});
529
+
530
+ // 차트용 형태로 변환
531
+ return Object.entries(groupedData).map(([category, data]) => ({
532
+ category,
533
+ value: data.total,
534
+ average: data.total / data.count,
535
+ count: data.count,
536
+ }));
537
+ }, [rawData, dateRange]); // rawData나 dateRange가 변경될 때만 재계산
538
+
539
+ return <Chart data={chartData} />;
540
+ };`})]})]}),o.jsx(z0,{})]})})}),o.jsx("div",{id:"useCallback",style:{marginBottom:"60px"},children:o.jsx(p.Card,{title:o.jsx(ti,{title:"useCallback",subtitle:"함수 메모이제이션"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[o.jsx(p.Alert,{message:"useCallback은 함수를 기억해두고, 의존성이 바뀔 때만 새로운 함수를 만드는 Hook입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),o.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[o.jsx("li",{children:"자식 컴포넌트에 함수를 props로 전달할 때"}),o.jsx("li",{children:"함수가 다른 Hook의 의존성 배열에 포함될 때"}),o.jsx("li",{children:"불필요한 리렌더링을 방지하고 싶을 때"})]})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"📝 기본 문법"}),o.jsx(tt,{importText:`import React, { useCallback, useState } from 'react';
541
+
542
+ const MyComponent = () => {
543
+ const [count, setCount] = useState(0);
544
+ const [name, setName] = useState('');
545
+
546
+ // 함수를 메모이제이션
547
+ const handleIncrement = useCallback(() => {
548
+ setCount(prev => prev + 1);
549
+ }, []); // 의존성이 없으므로 한 번만 생성
550
+
551
+ const handleNameChange = useCallback((newName: string) => {
552
+ setName(newName);
553
+ }, []); // 의존성이 없으므로 한 번만 생성
554
+
555
+ return (
556
+ <div>
557
+ <ChildComponent
558
+ onIncrement={handleIncrement}
559
+ onNameChange={handleNameChange}
560
+ />
561
+ </div>
562
+ );
563
+ };`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🔍 useMemo vs useCallback"}),o.jsxs("div",{style:{display:"flex",gap:"16px"},children:[o.jsxs("div",{style:{flex:1,padding:"12px",background:"#f0f9ff",borderRadius:"6px"},children:[o.jsx("strong",{children:"useMemo"}),o.jsxs("ul",{style:{paddingLeft:"16px",fontSize:"14px"},children:[o.jsx("li",{children:"값을 메모이제이션"}),o.jsx("li",{children:"계산 결과를 캐싱"})]})]}),o.jsxs("div",{style:{flex:1,padding:"12px",background:"#f0fdf4",borderRadius:"6px"},children:[o.jsx("strong",{children:"useCallback"}),o.jsxs("ul",{style:{paddingLeft:"16px",fontSize:"14px"},children:[o.jsx("li",{children:"함수를 메모이제이션"}),o.jsx("li",{children:"함수 참조를 캐싱"}),o.jsx("li",{children:"useCallback(fn, [deps])"})]})]})]})]}),o.jsx(F0,{}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🏢 실제 프로젝트 사용 예제"}),o.jsx(p.Alert,{message:"실제 프로젝트에서 useCallback 사용 사례",description:"다음은 KRX UI 프로젝트에서 실제로 사용되고 있는 useCallback 패턴들입니다.",type:"success",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{style:{marginBottom:"16px"},children:[o.jsx(p.Typography.Title,{level:5,children:"1. 즐겨찾기 토글 함수 (Sidebar.tsx)"}),o.jsx(tt,{importText:`// 즐겨찾기 토글 함수를 메모이제이션하여 불필요한 리렌더링 방지
564
+ const handleFavoriteToggle = useCallback(async (menuItem: MenuItem) => {
565
+ try {
566
+ // 메뉴 아이템 유효성 검증
567
+ if (!menuItem || !menuItem.menuId || !menuItem.menuNm) {
568
+ console.warn('Invalid menu item for favorite toggle:', menuItem);
569
+ return;
570
+ }
571
+
572
+ // 메뉴 ID 형식 검증
573
+ if (!/^[a-zA-Z0-9_-]+$/.test(menuItem.menuId)) {
574
+ console.warn('Invalid menu ID format:', menuItem.menuId);
575
+ return;
576
+ }
577
+
578
+ if (isFavorite(menuItem.menuId)) {
579
+ await removeFavorite(menuItem.menuId, 'testUser');
580
+ } else {
581
+ await addFavorite(menuItem, 'testUser');
582
+ }
583
+ } catch (error) {
584
+ console.error('즐겨찾기 토글 실패:', error);
585
+ }
586
+ }, [isFavorite, removeFavorite, addFavorite]); // 의존성 함수들이 변경될 때만 재생성`})]}),o.jsxs("div",{style:{marginBottom:"16px"},children:[o.jsx(p.Typography.Title,{level:5,children:"2. 이벤트 핸들러 최적화 예제"}),o.jsx(tt,{importText:`// 자식 컴포넌트에 전달되는 이벤트 핸들러 최적화
587
+ const OptimizedParent = () => {
588
+ const [items, setItems] = useState([]);
589
+ const [filter, setFilter] = useState('');
590
+
591
+ // 아이템 추가 핸들러 - 의존성 없이 안전하게 구현
592
+ const handleAddItem = useCallback((newItem: Item) => {
593
+ setItems(prev => [...prev, { ...newItem, id: Date.now() }]);
594
+ }, []); // 의존성 없음 - 함수형 업데이트 사용
595
+
596
+ // 아이템 삭제 핸들러
597
+ const handleDeleteItem = useCallback((itemId: number) => {
598
+ setItems(prev => prev.filter(item => item.id !== itemId));
599
+ }, []); // 의존성 없음 - 함수형 업데이트 사용
600
+
601
+ // 아이템 수정 핸들러
602
+ const handleUpdateItem = useCallback((itemId: number, updates: Partial<Item>) => {
603
+ setItems(prev => prev.map(item =>
604
+ item.id === itemId ? { ...item, ...updates } : item
605
+ ));
606
+ }, []); // 의존성 없음 - 함수형 업데이트 사용
607
+
608
+ return (
609
+ <div>
610
+ <ItemList
611
+ items={items}
612
+ onAdd={handleAddItem}
613
+ onDelete={handleDeleteItem}
614
+ onUpdate={handleUpdateItem}
615
+ />
616
+ </div>
617
+ );
618
+ };`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:5,children:"3. API 호출 함수 최적화"}),o.jsx(tt,{importText:`// API 호출 함수를 메모이제이션하여 useEffect 의존성 안정화
619
+ const DataComponent = () => {
620
+ const [data, setData] = useState([]);
621
+ const [loading, setLoading] = useState(false);
622
+ const [params, setParams] = useState({ page: 1, size: 10 });
623
+
624
+ // API 호출 함수 메모이제이션
625
+ const fetchData = useCallback(async (requestParams: RequestParams) => {
626
+ setLoading(true);
627
+ try {
628
+ const response = await callService('FETCH_DATA', requestParams);
629
+ setData(response.data);
630
+ } catch (error) {
631
+ console.error('데이터 로드 실패:', error);
632
+ } finally {
633
+ setLoading(false);
634
+ }
635
+ }, []); // API 호출 로직은 변하지 않으므로 의존성 없음
636
+
637
+ // params가 변경될 때마다 데이터 다시 로드
638
+ useEffect(() => {
639
+ fetchData(params);
640
+ }, [params, fetchData]); // fetchData가 메모이제이션되어 안정적
641
+
642
+ // 페이지 변경 핸들러
643
+ const handlePageChange = useCallback((page: number) => {
644
+ setParams(prev => ({ ...prev, page }));
645
+ }, []);
646
+
647
+ return (
648
+ <div>
649
+ {loading ? <Spinner /> : <DataTable data={data} />}
650
+ <Pagination onPageChange={handlePageChange} />
651
+ </div>
652
+ );
653
+ };`})]})]}),o.jsx(F0,{})]})})}),o.jsx("div",{id:"useEffect",style:{marginBottom:"60px"},children:o.jsx(p.Card,{title:o.jsx(ti,{title:"useEffect",subtitle:"부수 효과 처리"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[o.jsx(p.Alert,{message:"useEffect는 컴포넌트의 생명주기에 맞춰 부수 효과(API 호출, 타이머 등)를 처리하는 Hook입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),o.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[o.jsx("li",{children:"컴포넌트가 마운트/언마운트될 때 실행할 코드"}),o.jsx("li",{children:"API 호출, 타이머 설정, 이벤트 리스너 등록"}),o.jsx("li",{children:"특정 값이 변경될 때 실행할 코드"}),o.jsx("li",{children:"정리(cleanup) 작업이 필요한 경우"})]})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"📝 기본 문법"}),o.jsx(tt,{importText:`import React, { useEffect, useState } from 'react';
654
+
655
+ const MyComponent = () => {
656
+ const [count, setCount] = useState(0);
657
+
658
+ // 1. 매 렌더링마다 실행 (권장하지 않음)
659
+ useEffect(() => {
660
+ console.log('매번 실행됨');
661
+ });
662
+
663
+ // 2. 마운트/언마운트 시에만 실행
664
+ useEffect(() => {
665
+ console.log('컴포넌트 마운트됨');
666
+
667
+ return () => {
668
+ console.log('컴포넌트 언마운트됨');
669
+ };
670
+ }, []); // 빈 배열 = 한 번만 실행
671
+
672
+ // 3. count가 변경될 때만 실행
673
+ useEffect(() => {
674
+ document.title = \`카운트: \${count}\`;
675
+ }, [count]); // count가 의존성
676
+
677
+ return <div>카운트: {count}</div>;
678
+ };`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🔄 의존성 배열 패턴"}),o.jsxs("div",{style:{background:"#f9f9f9",padding:"16px",borderRadius:"8px"},children:[o.jsxs("div",{style:{marginBottom:"12px"},children:[o.jsx("code",{children:"useEffect(fn)"})," - 매 렌더링마다 실행 ❌"]}),o.jsxs("div",{style:{marginBottom:"12px"},children:[o.jsx("code",{children:"useEffect(fn, [])"})," - 마운트/언마운트 시에만 실행 ✅"]}),o.jsxs("div",{children:[o.jsx("code",{children:"useEffect(fn, [a, b])"})," - a 또는 b가 변경될 때 실행 ✅"]})]})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🧹 정리(Cleanup) 함수"}),o.jsx(tt,{importText:`useEffect(() => {
679
+ // 이벤트 리스너 등록
680
+ const handleResize = () => {
681
+ console.log('윈도우 크기 변경됨');
682
+ };
683
+
684
+ window.addEventListener('resize', handleResize);
685
+
686
+ // 정리 함수 - 컴포넌트 언마운트 시 실행
687
+ return () => {
688
+ window.removeEventListener('resize', handleResize);
689
+ };
690
+ }, []);`})]}),o.jsx(V0,{}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🏢 실제 프로젝트 사용 예제"}),o.jsx(p.Alert,{message:"실제 프로젝트에서 useEffect 사용 사례",description:"다음은 KRX UI 프로젝트에서 실제로 사용되고 있는 useEffect 패턴들입니다.",type:"success",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{style:{marginBottom:"16px"},children:[o.jsx(p.Typography.Title,{level:5,children:"1. 메뉴 데이터 로딩 (Main.tsx)"}),o.jsx(tt,{importText:`// 사용자 인증 확인 및 메뉴 데이터 가져오기
691
+ useEffect(() => {
692
+ const loadData = async () => {
693
+ if (!user?.userId) {
694
+ console.warn('사용자 정보가 없습니다. 로그인 페이지로 이동합니다.');
695
+ navigate('/login');
696
+ return;
697
+ }
698
+
699
+ console.log('사용자 인증 확인됨 - 메뉴 데이터 가져오기');
700
+
701
+ // 먼저 메뉴 데이터 가져오기
702
+ await fetchMenu({
703
+ crprCd: String(user.crprCd || '100'),
704
+ userId: user.userId,
705
+ prntGbcd: 1,
706
+ });
707
+
708
+ // 새로고침 시 공통코드가 없으면 다시 가져오기
709
+ if (!codeData) {
710
+ console.log('새로고침 감지 - 공통코드 다시 가져오기');
711
+ fetchCommonCodes();
712
+ }
713
+ };
714
+
715
+ loadData();
716
+ }, [
717
+ user?.userId,
718
+ user?.crprCd,
719
+ navigate,
720
+ fetchMenu,
721
+ fetchCommonCodes,
722
+ codeData,
723
+ ]); // 의존성 배열에 필요한 모든 값 포함`})]}),o.jsxs("div",{style:{marginBottom:"16px"},children:[o.jsx(p.Typography.Title,{level:5,children:"2. 탭 변경에 따른 데이터 로딩 (CMSystCodeM01.tsx)"}),o.jsx(tt,{importText:`// 선택된 시스템 변경 시 앱 데이터 로드
724
+ useEffect(() => {
725
+ if (selectedSystem) {
726
+ callService('SCMAPP00101', {
727
+ crprCd: getCrprCd(),
728
+ systId: selectedSystem.systId,
729
+ }).then(response => {
730
+ console.log('SCMAPP00101:', response);
731
+ appGridRef.current?.addAllData(response.data);
732
+ });
733
+ }
734
+ }, [selectedSystem]); // selectedSystem이 변경될 때만 실행
735
+
736
+ // 탭 변경 시 공통코드 데이터 로드
737
+ useEffect(() => {
738
+ if (selectedSystem) {
739
+ callService('SCMCODE00101', {
740
+ crprCd: getCrprCd(),
741
+ srchGb: activeTab === 'group' ? 'group' : 'detail',
742
+ }).then(response => {
743
+ console.log({ SCMCODE00101: response.data });
744
+ activeTab === 'group'
745
+ ? groupGridRef.current?.addAllData(response.data)
746
+ : detailGridRef.current?.addAllData(response.data);
747
+ });
748
+ }
749
+ }, [activeTab, selectedSystem]); // activeTab과 selectedSystem 변경 시 실행`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:5,children:"3. 팝업 데이터 초기화 (CMAuthMstrP01.tsx)"}),o.jsx(tt,{importText:`// 팝업 열릴 때 데이터 로드 및 초기화
750
+ useEffect(() => {
751
+ // 팝업 데이터에서 기존 선택된 메뉴 가져오기
752
+ const currentPopup: any = popups.find(p => p.popupId === activePopupId);
753
+ if (currentPopup?.data?.selectedMenus) {
754
+ setSelectedMenus(currentPopup.data.selectedMenus);
755
+ }
756
+
757
+ // 메뉴 데이터 로드
758
+ loadMenuData();
759
+ }, [popups, activePopupId]); // popups나 activePopupId 변경 시 실행
760
+
761
+ // 메뉴 데이터 로드 함수
762
+ const loadMenuData = async () => {
763
+ try {
764
+ const response = await callService('SCMMENU00101', {});
765
+ console.log('메뉴 데이터:', response.menus);
766
+
767
+ menuTreeRef.current?.addAllData(response.menus, {
768
+ treeOption: {
769
+ isExpand: true,
770
+ dataField: 'menuId',
771
+ parentField: 'menuPrntId',
772
+ },
773
+ });
774
+ } catch (error) {
775
+ console.error('메뉴 데이터 로드 실패:', error);
776
+ }
777
+ };`})]})]}),o.jsx(V0,{})]})})}),o.jsx("div",{id:"forwardRef",style:{marginBottom:"60px"},children:o.jsx(p.Card,{title:o.jsx(ti,{title:"forwardRef",subtitle:"컴포넌트 간 ref 전달"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[o.jsx(p.Alert,{message:"forwardRef는 부모 컴포넌트에서 자식 컴포넌트의 DOM 요소에 직접 접근할 수 있게 해주는 기능입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),o.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[o.jsx("li",{children:"부모 컴포넌트에서 자식 컴포넌트의 DOM 요소에 직접 접근할 때"}),o.jsx("li",{children:"재사용 가능한 컴포넌트 라이브러리를 만들 때"}),o.jsx("li",{children:"HOC(Higher-Order Component)나 래퍼 컴포넌트에서 ref를 전달할 때"})]})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"📝 기본 문법"}),o.jsx(tt,{importText:`import React, { forwardRef, useRef } from 'react';
778
+
779
+ // forwardRef를 사용한 컴포넌트 정의
780
+ const MyInput = forwardRef<HTMLInputElement, { placeholder?: string }>(
781
+ (props, ref) => {
782
+ return (
783
+ <input
784
+ ref={ref}
785
+ placeholder={props.placeholder}
786
+ style={{ padding: '8px', border: '1px solid #ccc' }}
787
+ />
788
+ );
789
+ }
790
+ );
791
+
792
+ // 부모 컴포넌트에서 사용
793
+ const Parent = () => {
794
+ const inputRef = useRef<HTMLInputElement>(null);
795
+
796
+ const focusInput = () => {
797
+ inputRef.current?.focus();
798
+ };
799
+
800
+ return (
801
+ <div>
802
+ <MyInput ref={inputRef} placeholder="포커스될 입력 필드" />
803
+ <button onClick={focusInput}>포커스</button>
804
+ </div>
805
+ );
806
+ };`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"⚠️ 주의사항"}),o.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[o.jsx("li",{children:"forwardRef는 함수형 컴포넌트에서만 사용 가능합니다"}),o.jsx("li",{children:"TypeScript 사용 시 제네릭으로 ref와 props 타입을 명시해야 합니다"}),o.jsx("li",{children:"남용하지 마세요. 대부분의 경우 props로 충분합니다"})]})]}),o.jsx(GN,{}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🏢 실제 프로젝트 사용 예제"}),o.jsx(p.Alert,{message:"실제 프로젝트에서 forwardRef와 useImperativeHandle 사용 사례",description:"다음은 KRX UI 프로젝트에서 실제로 사용할 수 있는 고급 패턴들입니다.",type:"success",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{style:{marginBottom:"16px"},children:[o.jsx(p.Typography.Title,{level:5,children:"1. 재사용 가능한 그리드 컴포넌트 (BwgGrid 스타일)"}),o.jsx(tt,{importText:`// 그리드 컴포넌트에 forwardRef와 useImperativeHandle 적용
807
+ interface GridRef {
808
+ addAllData: (data: any[]) => void;
809
+ getCurrentIndex: () => number;
810
+ clearData: () => void;
811
+ refresh: () => void;
812
+ }
813
+
814
+ const CustomGrid = forwardRef<GridRef, { columns: any[]; options?: any }>(
815
+ ({ columns, options }, ref) => {
816
+ const [data, setData] = useState([]);
817
+ const [currentIndex, setCurrentIndex] = useState(-1);
818
+ const gridInstanceRef = useRef(null);
819
+
820
+ useImperativeHandle(ref, () => ({
821
+ addAllData: (newData: any[]) => {
822
+ setData(newData);
823
+ setCurrentIndex(newData.length > 0 ? 0 : -1);
824
+ },
825
+ getCurrentIndex: () => currentIndex,
826
+ clearData: () => {
827
+ setData([]);
828
+ setCurrentIndex(-1);
829
+ },
830
+ refresh: () => {
831
+ // 그리드 새로고침 로직
832
+ gridInstanceRef.current?.refresh?.();
833
+ },
834
+ }), [currentIndex]);
835
+
836
+ return (
837
+ <div className="custom-grid">
838
+ {/* 실제 그리드 렌더링 로직 */}
839
+ <table ref={gridInstanceRef}>
840
+ {/* 그리드 내용 */}
841
+ </table>
842
+ </div>
843
+ );
844
+ }
845
+ );`})]}),o.jsxs("div",{style:{marginBottom:"16px"},children:[o.jsx(p.Typography.Title,{level:5,children:"2. 복합 입력 컴포넌트 (검색 필드)"}),o.jsx(tt,{importText:`// 검색 기능이 포함된 복합 입력 컴포넌트
846
+ interface SearchInputRef {
847
+ focus: () => void;
848
+ clear: () => void;
849
+ getValue: () => string;
850
+ search: () => void;
851
+ setSearchTerm: (term: string) => void;
852
+ }
853
+
854
+ const SearchInput = forwardRef<
855
+ SearchInputRef,
856
+ {
857
+ onSearch?: (term: string) => void;
858
+ placeholder?: string;
859
+ defaultValue?: string;
860
+ }
861
+ >(({ onSearch, placeholder, defaultValue = '' }, ref) => {
862
+ const [value, setValue] = useState(defaultValue);
863
+ const [isLoading, setIsLoading] = useState(false);
864
+ const inputRef = useRef<HTMLInputElement>(null);
865
+
866
+ const handleSearch = async () => {
867
+ if (!value.trim()) return;
868
+
869
+ setIsLoading(true);
870
+ try {
871
+ await onSearch?.(value);
872
+ } finally {
873
+ setIsLoading(false);
874
+ }
875
+ };
876
+
877
+ useImperativeHandle(ref, () => ({
878
+ focus: () => inputRef.current?.focus(),
879
+ clear: () => {
880
+ setValue('');
881
+ inputRef.current?.focus();
882
+ },
883
+ getValue: () => value,
884
+ search: handleSearch,
885
+ setSearchTerm: (term: string) => setValue(term),
886
+ }), [value, onSearch]);
887
+
888
+ return (
889
+ <div className="search-input-container">
890
+ <input
891
+ ref={inputRef}
892
+ value={value}
893
+ onChange={(e) => setValue(e.target.value)}
894
+ placeholder={placeholder}
895
+ onKeyDown={(e) => e.key === 'Enter' && handleSearch()}
896
+ />
897
+ <button
898
+ onClick={handleSearch}
899
+ disabled={isLoading}
900
+ >
901
+ {isLoading ? '검색중...' : '검색'}
902
+ </button>
903
+ </div>
904
+ );
905
+ });`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:5,children:"3. 모달 컴포넌트 제어 (팝업 스타일)"}),o.jsx(tt,{importText:`// 팝업/모달 컴포넌트의 외부 제어 인터페이스
906
+ interface ModalRef {
907
+ open: () => void;
908
+ close: () => void;
909
+ isOpen: () => boolean;
910
+ setTitle: (title: string) => void;
911
+ setContent: (content: React.ReactNode) => void;
912
+ }
913
+
914
+ const CustomModal = forwardRef<
915
+ ModalRef,
916
+ {
917
+ defaultTitle?: string;
918
+ onClose?: () => void;
919
+ children?: React.ReactNode;
920
+ }
921
+ >(({ defaultTitle = '', onClose, children }, ref) => {
922
+ const [isVisible, setIsVisible] = useState(false);
923
+ const [title, setTitle] = useState(defaultTitle);
924
+ const [content, setContent] = useState<React.ReactNode>(children);
925
+
926
+ const handleClose = () => {
927
+ setIsVisible(false);
928
+ onClose?.();
929
+ };
930
+
931
+ useImperativeHandle(ref, () => ({
932
+ open: () => setIsVisible(true),
933
+ close: handleClose,
934
+ isOpen: () => isVisible,
935
+ setTitle: (newTitle: string) => setTitle(newTitle),
936
+ setContent: (newContent: React.ReactNode) => setContent(newContent),
937
+ }), [isVisible, onClose]);
938
+
939
+ if (!isVisible) return null;
940
+
941
+ return (
942
+ <div className="modal-overlay" onClick={handleClose}>
943
+ <div className="modal-content" onClick={(e) => e.stopPropagation()}>
944
+ <div className="modal-header">
945
+ <h3>{title}</h3>
946
+ <button onClick={handleClose}>×</button>
947
+ </div>
948
+ <div className="modal-body">
949
+ {content}
950
+ </div>
951
+ </div>
952
+ </div>
953
+ );
954
+ });
955
+
956
+ // 사용 예시
957
+ const ParentComponent = () => {
958
+ const modalRef = useRef<ModalRef>(null);
959
+
960
+ const openModal = () => {
961
+ modalRef.current?.setTitle('동적 제목');
962
+ modalRef.current?.setContent(<div>동적 콘텐츠</div>);
963
+ modalRef.current?.open();
964
+ };
965
+
966
+ return (
967
+ <div>
968
+ <button onClick={openModal}>모달 열기</button>
969
+ <CustomModal ref={modalRef} />
970
+ </div>
971
+ );
972
+ };`})]})]})]})})}),o.jsx("div",{id:"useImperativeHandle",style:{marginBottom:"60px"},children:o.jsx(p.Card,{title:o.jsx(ti,{title:"useImperativeHandle",subtitle:"부모에게 노출할 인스턴스 값 커스터마이징"}),style:{borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.06)"},children:o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},size:"large",children:[o.jsx(p.Alert,{message:"useImperativeHandle은 부모 컴포넌트에게 노출할 메서드를 직접 정의할 수 있는 고급 Hook입니다.",type:"info",showIcon:!0,style:{marginBottom:"16px"}}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🎯 언제 사용하나요?"}),o.jsxs("ul",{style:{paddingLeft:"20px",lineHeight:"1.6"},children:[o.jsx("li",{children:"부모 컴포넌트에 특정 메서드만 노출하고 싶을 때"}),o.jsx("li",{children:"복잡한 컴포넌트의 내부 로직을 캡슐화하면서 필요한 기능만 제공할 때"}),o.jsx("li",{children:"라이브러리 컴포넌트에서 공개 API를 정의할 때"})]})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"📝 기본 문법"}),o.jsx(tt,{importText:`import React, { forwardRef, useImperativeHandle, useRef } from 'react';
973
+
974
+ // 자식 컴포넌트
975
+ const CustomInput = forwardRef<
976
+ { focus: () => void; clear: () => void; getValue: () => string },
977
+ { defaultValue?: string }
978
+ >((props, ref) => {
979
+ const inputRef = useRef<HTMLInputElement>(null);
980
+ const [value, setValue] = useState(props.defaultValue || '');
981
+
982
+ // 부모에게 노출할 메서드들을 정의
983
+ useImperativeHandle(ref, () => ({
984
+ focus: () => {
985
+ inputRef.current?.focus();
986
+ },
987
+ clear: () => {
988
+ setValue('');
989
+ inputRef.current?.focus();
990
+ },
991
+ getValue: () => {
992
+ return value;
993
+ }
994
+ }));
995
+
996
+ return (
997
+ <input
998
+ ref={inputRef}
999
+ value={value}
1000
+ onChange={(e) => setValue(e.target.value)}
1001
+ />
1002
+ );
1003
+ });
1004
+
1005
+ // 부모 컴포넌트
1006
+ const Parent = () => {
1007
+ const customInputRef = useRef<{
1008
+ focus: () => void;
1009
+ clear: () => void;
1010
+ getValue: () => string;
1011
+ }>(null);
1012
+
1013
+ const handleFocus = () => customInputRef.current?.focus();
1014
+ const handleClear = () => customInputRef.current?.clear();
1015
+ const handleGetValue = () => {
1016
+ const value = customInputRef.current?.getValue();
1017
+ alert(\`현재 값: \${value}\`);
1018
+ };
1019
+
1020
+ return (
1021
+ <div>
1022
+ <CustomInput ref={customInputRef} />
1023
+ <button onClick={handleFocus}>포커스</button>
1024
+ <button onClick={handleClear}>클리어</button>
1025
+ <button onClick={handleGetValue}>값 가져오기</button>
1026
+ </div>
1027
+ );
1028
+ };`})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"🔍 forwardRef vs useImperativeHandle"}),o.jsxs("div",{style:{display:"flex",gap:"16px"},children:[o.jsxs("div",{style:{flex:1,padding:"12px",background:"#f0f9ff",borderRadius:"6px"},children:[o.jsx("strong",{children:"forwardRef"}),o.jsxs("ul",{style:{paddingLeft:"16px",fontSize:"14px"},children:[o.jsx("li",{children:"DOM 요소를 그대로 전달"}),o.jsx("li",{children:"단순한 ref 전달"}),o.jsx("li",{children:"DOM의 모든 속성/메서드 접근 가능"})]})]}),o.jsxs("div",{style:{flex:1,padding:"12px",background:"#f0fdf4",borderRadius:"6px"},children:[o.jsx("strong",{children:"useImperativeHandle"}),o.jsxs("ul",{style:{paddingLeft:"16px",fontSize:"14px"},children:[o.jsx("li",{children:"커스텀 메서드만 노출"}),o.jsx("li",{children:"내부 구현 숨김"}),o.jsx("li",{children:"필요한 기능만 선택적 제공"})]})]})]})]}),o.jsxs("div",{children:[o.jsx(p.Typography.Title,{level:4,children:"⚠️ 주의사항"}),o.jsx(p.Alert,{message:"꼭 필요한 경우에만 사용하세요!",description:"useImperativeHandle은 React의 선언적 패러다임을 벗어나는 명령형 API입니다. 대부분의 경우 props와 state로 충분하므로, 정말 필요한 경우에만 사용하세요.",type:"warning",showIcon:!0})]}),o.jsx(XN,{})]})})})]})]})})},JN=e=>{y.useEffect(()=>{m.search()},[]);const t=y.useRef(null),r=y.useRef(null),n=y.useRef(null),[i,a]=y.useState(""),[s,l]=y.useState("");bt.useSearchBox();const c=y.useMemo(()=>[{fieldName:"crprCd",header:{text:"법인코드"},width:80,styleName:"center"},{fieldName:"sysCd",header:{text:"시스템코드"},width:100,styleName:"center"},{fieldName:"fileGrpKey",header:{text:"파일그룹키"},width:120,styleName:"center"},{fieldName:"fileKey",header:{text:"파일키"},width:200,styleName:"center"},{fieldName:"lgclFileNm",header:{text:"파일 논리명"},width:250,styleName:"left"},{fieldName:"fileSize",header:{text:"파일 크기"},width:100,styleName:"right",displayCallback:(g,x,v)=>{if(!v)return"0 Bytes";const b=Number(v);if(isNaN(b)||b===0)return"0 Bytes";const C=1024,P=["Bytes","KB","MB","GB","TB"],E=Math.floor(Math.log(b)/Math.log(C));return parseFloat((b/Math.pow(C,E)).toFixed(2))+" "+P[E]}},{fieldName:"fileExtn",header:{text:"파일 확장자"},width:100,styleName:"center"},{fieldName:"fileType",header:{text:"파일 타입"},width:120,styleName:"center"}],[]),d=y.useMemo(()=>[{fieldName:"fileGrpKey",header:{text:"파일 그룹키"},width:50,styleName:"center"},{fieldName:"fileKey",header:{text:"파일 키"},width:50,styleName:"center"},{fieldName:"fileSeq",header:{text:"파일 정렬순서"},width:50,styleName:"center"},{fieldName:"lgclFileNm",header:{text:"파일 논리명"},width:200,styleName:"left"},{fieldName:"physFileNm",header:{text:"파일 물리명"},width:200,styleName:"left"},{fieldName:"fileExtn",header:{text:"파일 확장자"},width:100},{fieldName:"mltpYn",header:{text:"대용량파일 여부"},width:100},{fieldName:"fileSize",header:{text:"파일 크기"},width:100,styleName:"right",displayCallback:(g,x,v)=>{if(!v)return"0 Bytes";const b=Number(v);if(isNaN(b)||b===0)return"0 Bytes";const C=1024,P=["Bytes","KB","MB","GB","TB"],E=Math.floor(Math.log(b)/Math.log(C));return parseFloat((b/Math.pow(C,E)).toFixed(2))+" "+P[E]}},{fieldName:"filePath",header:{text:"파일 경로"},width:100,styleName:"right"}],[]),u={onCurrentRowChanged(g,x,v){if(v<0)return;let b=g.getDataSource().getJsonRow(v);a(b.fileGrpKey),b.mltpYn=="Y"?ae.callService("SCMFILE00106",{crprCd:ae.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:b.fileGrpKey,fileKey:b.fileKey},{},e.appCd).then(C=>{n.current?.addAllData(C.sub)}):n.current?.dp?.clearRows()}},f={container:{check:!0,checkAll:!0,indicator:!0,footer:!0}},h={SCMFILE00101:()=>{ae.callService("SCMFILE00101",{crprCd:ae.getUserInfo()?.crprCd,sysCd:__SYS_CD__},{},e.appCd).then(g=>{r.current?.addAllData(g.sub)}).catch(g=>{console.error("오류:",g)})}},m={search:()=>{h.SCMFILE00101()},download:()=>{console.log("download");let g=r.current?.dp?.getJsonRow(r.current?.getCurrentRow());ae.downloadByFileKey(g.fileKey)}};return o.jsx(Vt,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{m.search()}},{id:"download",label:"다운로드",onClick:()=>{m.download()}}]},children:o.jsxs(ze,{type:"horizontal",children:[o.jsxs(Te,{className:"w60",children:[o.jsx(Le,{title:"파일 목록",children:o.jsx("div",{style:{float:"right"},children:o.jsx(p.Space,{children:o.jsx($.BwgButton,{onClick:()=>m.download(),children:"다운로드"})})})}),o.jsx(Fe,{ref:r,gridColumns:d,gridOptions:f,gridEvents:u})]}),o.jsx(Te,{className:"w40",border:!0,children:o.jsx(p.Tabs,{type:"card",defaultActiveKey:"1",style:{height:"100%"},items:[{label:"파일상세",key:"1",children:o.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[o.jsx(Le,{title:"dtls 그리드"}),o.jsx(Fe,{ref:n,gridColumns:c})]})},{label:"파일 샘플",key:"2",children:o.jsx("div",{style:{height:"100%",overflowY:"auto",padding:"10px"},children:o.jsx(fn,{title:"샘플 업로드",children:o.jsxs(p.Form,{layout:"vertical",ref:t,children:[o.jsx(p.Divider,{orientation:"left",style:{borderColor:"#7cb305"},children:"그리드 onCurrentRowChanged연동"}),o.jsx($.BwgInput,{itemProps:{label:"파일 그룹키 (fileGrpKey)"},inputProps:{value:i,onChange:g=>a(g.target.value)}}),o.jsx($.BwgUploader,{fileGrpKey:i}),o.jsx(p.Divider,{orientation:"left",style:{borderColor:"#7cb305"},children:"파일업로드시 fileGrpKey 채번 및 연동"}),o.jsx($.BwgInput,{itemProps:{label:"채번 그룹키 (fileGrpKey2)"},inputProps:{value:s,disabled:!0}}),o.jsx($.BwgUploader,{fileGrpKey:s,onUploadComplete:g=>{console.log(g),s||l(g.fileGrpKey)}}),o.jsx(p.Divider,{orientation:"left",style:{borderColor:"#7cb305"},children:"대용량파일 업로드(zip압축 후 업로드)"}),o.jsx($.BwgLargeUploader,{fileGrpKey:s})]})})})}]})})]})})},yS=({width:e="40%",searchContext:t,onOk:r,onClose:n,...i})=>{const a=y.useRef(null),s=y.useRef(null),[l,c]=y.useState([]),d=y.useMemo(()=>[{fieldName:"crprCd",visible:!1},{fieldName:"sysCd",visible:!1},{fieldName:"appCd",width:60,header:{text:"애플리케이션"},styleName:"left"},{fieldName:"prgrId",width:120,header:{text:"프로그램ID"},styleName:"left"},{fieldName:"prgrNm",width:200,header:{text:"프로그램명"},styleName:"left"},{fieldName:"enblYn",width:80,header:{text:"사용여부"},styleName:"center",renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],[]);y.useEffect(()=>{t?.sysCd&&(a.current?.setFormData({sysCd:t.sysCd}),g.SCMPRGR00101())},[t?.sysCd]);const u=()=>{g.SCMPRGR00101()},f=v=>{v.key==="Enter"&&u()},h=()=>{console.log("selectedRows:",l),l.length>0?r?.(l[0]):r?.({})},m=()=>{i.onCancel?.(),n?.()},g=y.useMemo(()=>({SCMPRGR00101:()=>{const v={...a.current?.getFormData()};ae.callService("SCMPRGR00101",v).then(b=>{console.log("response.programs:",b.data),s.current?.addAllData(b.data||[])}).catch(b=>{console.error("오류:",b)})}}),[]),x={onCurrentRowChanged:(v,b,C)=>{if(C>=0){const P=s.current?.vw?.getItemIndex(C),E=s.current?.vw?.getValues(P||0);c([E])}},onCellDblClicked:(v,b)=>{const C=b.itemIndex;if(C>=0){const P=s.current?.vw?.getValues(C);console.log(P),c([P]),r?.(P)}}};return o.jsx(p.ConfigProvider,{theme:{components:{Modal:{wireframe:!0,titleColor:"#08979c",headerBg:"#e6fffb"}}},children:o.jsx(p.Modal,{title:"프로그램 선택",width:e,maskClosable:!1,styles:{body:{paddingTop:"10px"}},okText:"적용",...i,onOk:h,onCancel:m,children:o.jsxs("div",{style:{padding:"8px 0"},children:[o.jsx(_o,{ref:a,reqRows:o.jsxs(p.Row,{gutter:[16,8],children:[o.jsx(p.Col,{span:8,children:o.jsx($.BwgSelect,{itemProps:{name:"sysCd",label:"시스템",style:{marginBottom:0},labelCol:{flex:"80px"}},selectProps:{options:[{label:"K-ERP",value:"KE"},{label:"K-HR",value:"KH"},{label:"K-업무지원",value:"KS"}],style:{fontSize:"12px"},onChange:g.SCMPRGR00101}})}),o.jsx(p.Col,{span:16,children:o.jsx($.BwgInput,{itemProps:{name:"keyword",label:"검색어",style:{marginBottom:0},labelCol:{flex:"90px"}},inputProps:{placeholder:"프로그램ID 또는 프로그램명을 입력하세요",suffix:o.jsx(Z.SearchOutlined,{style:{color:"#1890ff",cursor:"pointer"},onClick:u}),onKeyPress:f}})})]})}),o.jsx(Fe,{ref:s,gridColumns:d,gridOptions:{container:{radio:!0,footer:!1}},gridEvents:x,gridDivStyle:{marginTop:8,height:400}}),l.length>0&&o.jsxs("div",{style:{marginTop:16,padding:12,backgroundColor:"#f6ffed",border:"1px solid #b7eb8f",borderRadius:6},children:[o.jsx("strong",{children:"선택된 프로그램:"})," ",l[0]?.prgrNm," (",l[0]?.prgrId,")"]})]})})})},xS=({width:e="40%",searchContext:t,onOk:r,onClose:n,...i})=>{const a=y.useRef(null),s=y.useRef(null),[l,c]=y.useState([]),d=y.useMemo(()=>[{fieldName:"crprCd",visible:!1},{fieldName:"sysCd",visible:!1},{fieldName:"appCd",width:120,header:{text:"애플리케이션"},styleName:"left"},{fieldName:"menuGbCd",width:100,header:{text:"메뉴구분"},styleName:"center",lookupDisplay:!0,labels:["메인메뉴","서브메뉴","프로그램"],values:["CMPRGRM","CMPRGRS","CMPRGRP"],renderer:{type:"text",showTooltip:!1}},{fieldName:"menuId",width:120,header:{text:"메뉴ID"},styleName:"left"},{fieldName:"menuNm",width:200,header:{text:"메뉴명"},styleName:"left"},{fieldName:"menuPrntId",width:120,header:{text:"상위메뉴ID"},styleName:"left"}],[]);y.useEffect(()=>{setTimeout(()=>{s.current?.vw&&s.current.vw.setRowStyleCallback(function(C,P,E){const j=C.getValue(P.index,"menuGbCd");if(j==="CMPRGRM")return{style:{background:"#e8f0ff"}};if(j==="CMPRGRS")return{style:{background:"#f0f8ff"}}})},200)},[]),y.useEffect(()=>{t?.sysCd&&a.current?.setFormData({sysCd:t.sysCd,appCd:"",keyword:t.keyword||""})},[t?.sysCd,t?.keyword]);const u=()=>{x.SCMMENU00104()},f=b=>{b.key==="Enter"&&u()},h=()=>{a.current?.setFormData({sysCd:"",appCd:"",keyword:""})},m=()=>{console.log("selectedRows:",l),l.length>0?r?.(l[0]):r?.({})},g=()=>{i.onCancel?.(),n?.()},x=y.useMemo(()=>({SCMMENU00104:()=>{const b={crprCd:ae.getCrprCd(),...a.current?.getFormData()};ae.callService("SCMMENU00104",b).then(C=>{console.log("response.menus:",C.sub),s.current?.addAllData(C.sub,{treeOption:{isExpand:!0,dataField:"menuId",parentField:"menuPrntId"}})}).catch(C=>{console.error("오류:",C)})}}),[]),v=y.useMemo(()=>({onCurrentRowChanged:(b,C,P)=>{if(P>=0){const E=s.current?.vw?.getItemIndex(P),j=s?.current?.vw?.getValues(E||0);c([j])}},onCellDblClicked:(b,C)=>{const P=C.itemIndex;if(P>=0){const E=s.current?.vw?.getValues(P);console.log(E),c([E]),r?.(E)}}}),[r]);return o.jsx(p.ConfigProvider,{theme:{components:{Modal:{wireframe:!0,titleColor:"#08979c",headerBg:"#e6fffb"}}},children:o.jsx(p.Modal,{title:"상위 메뉴 선택",width:e,maskClosable:!1,styles:{body:{paddingTop:"10px"}},okText:"적용",...i,onOk:m,onCancel:g,children:o.jsxs("div",{style:{padding:"8px 0"},children:[o.jsx(_o,{border:!0,header:{title:"메뉴 선택",buttons:[o.jsx($.BwgButton,{onClick:()=>x.SCMMENU00104(),style:{marginRight:8},children:"검색"},"search"),o.jsx($.BwgButton,{onClick:h,children:"초기화"},"reset")]},ref:a,reqRows:o.jsxs(p.Row,{gutter:[20,5],children:[o.jsx(p.Col,{span:6,children:o.jsx($.BwgSelect,{itemProps:{name:"sysCd",label:"시스템",style:{marginBottom:0}},selectProps:{options:[{label:"K-ERP",value:"KE"},{label:"K-HR",value:"KH"},{label:"K-업무지원",value:"KS"}],style:{fontSize:"12px"},onChange:x.SCMMENU00104}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgSelect,{itemProps:{name:"appCd",label:"애플리케이션",style:{marginBottom:0}},selectProps:{options:[{label:"선택하세요",value:""},{label:"ERP",value:"ERP"},{label:"HR",value:"HR"},{label:"SUPPORT",value:"SUPPORT"}],style:{fontSize:"12px"}}})}),o.jsx(p.Col,{span:7,children:o.jsx($.BwgInput,{itemProps:{name:"keyword",label:"검색어",style:{marginBottom:0}},inputProps:{placeholder:"메뉴ID 또는 메뉴명을 입력하세요",style:{fontSize:"12px"},onKeyPress:f}})}),o.jsx(p.Col,{span:5,style:{textAlign:"right"}})]})}),o.jsx(Fe,{ref:s,type:"tree",gridColumns:d,gridOptions:{container:{radio:!0,footer:!1}},gridEvents:v,gridDivStyle:{marginTop:8,height:400}}),l.length>0&&o.jsxs("div",{style:{marginTop:16,padding:12,backgroundColor:"#f6ffed",border:"1px solid #b7eb8f",borderRadius:6},children:[o.jsx("strong",{children:"선택된 메뉴:"})," ",l[0]?.menuNm," (",l[0].menuId,")"]})]})})})},mo={KE:[{label:"재무회계",value:"FI"},{label:"예산관리",value:"FM"},{label:"구매계약",value:"MM"},{label:"영업관리",value:"SD"},{label:"파트너관리",value:"PMN"}],KH:[{label:"HR 솔루션",value:"HR"},{label:"연말정산",value:"YT"},{label:"평정",value:"PE"}],KS:[{label:"온통",value:"BCOM"},{label:"e-감사",value:"EAUD"},{label:"청령신고",value:"INR"},{label:"ITAM",value:"ITAM"},{label:"차량/회의실",value:"CMM"},{label:"OA전산물품관리",value:"OAM"},{label:"총무관리",value:"GAM"},{label:"출입관리",value:"ACM"},{label:"비품관리",value:"IVM"},{label:"인장서비스",value:"SGS"},{label:"사료관리",value:"HIS"},{label:"웹펙스서비스",value:"WFAX"},{label:"메시지서비스",value:"SMS"},{label:"경영공시",value:"BID"},{label:"언론미디어",value:"PAM"},{label:"심의자문위원회",value:"DAC"},{label:"지식재산권신청",value:"IPR"},{label:"정보공유게시판",value:"ISB"}]},eD={container:{check:!0,checkAll:!0,indicator:!0,footer:!0}},H0=({readOnly:e=!1,drawerMode:t=""})=>{const r=p.Form.useFormInstance(),[n,i]=y.useState(null),[a,s]=y.useState(null),[l,c]=y.useState([]),[d,u]=y.useState("CMPRGRP"),[f,h]=y.useState(!0),[m,g]=y.useState(!1),[x,v]=y.useState({}),[b,C]=y.useState(!1),[P,E]=y.useState({});y.useEffect(()=>{const D=r.getFieldValue("sysCd"),B=r.getFieldValue("appCd"),M=r.getFieldValue("menuGbCd"),I=r.getFieldValue("deftMenuNo");i(D??null),s(B??null),u(M??"CMPRGRP"),h(I??!0),D&&mo[D]?c(mo[D]):c([])},[r]);const j=D=>{i(D),D&&mo[D]?c(mo[D]):c([]),r.resetFields(["appCd","scrnId","scrnNm","menuPrntId","menuPrntNm"])},S=D=>{h(D),D&&r.setFieldsValue({menuNo:""})},O=D=>{D&&r.setFieldsValue({menuPrntId:D.menuId,menuPrntNm:D.menuNm}),g(!1),v({})},k=D=>{D&&r.setFieldsValue({scrnId:D.prgrId,scrnNm:D.prgrNm}),C(!1),E({})};return o.jsxs(o.Fragment,{children:[o.jsx(p.Row,{gutter:12,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgRadio,{itemProps:{name:"menuGbCd"},inputProps:{options:[{label:"메인메뉴",value:"CMPRGRM"},{label:"서브메뉴",value:"CMPRGRS"},{label:"프로그램",value:"CMPRGRP"}],defaultValue:"CMPRGRP",optionType:"button",size:"middle",style:{pointerEvents:e?"none":void 0},onChange:D=>{u(D.target.value)}}})})}),o.jsxs(p.Row,{gutter:12,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{itemProps:{name:"sysCd",label:"시스템"},selectProps:{options:[{label:"K-ERP",value:"KE"},{label:"K-HR",value:"KH"},{label:"K-업무지원",value:"KS"}],onChange:j,disabled:e||t==="EDIT",placeholder:"시스템을 선택하세요"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{itemProps:{name:"appCd",label:"애플리케이션"},selectProps:{options:l,disabled:e||!n||t==="EDIT",placeholder:"시스템을 먼저 선택하세요"}})})]}),o.jsxs(p.Row,{gutter:12,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{name:"menuId",label:"메뉴ID"},inputProps:{placeholder:"자동 채번",disabled:!0,readOnly:e,variant:e?"borderless":"outlined"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{name:"menuNm",label:"메뉴명"},inputProps:{readOnly:e,variant:e?"borderless":"outlined"}})})]}),d==="CMPRGRP"&&o.jsx(p.Row,{gutter:24,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgSearch,{itemProps:{label:"프로그램ID",name:["scrnId","scrnNm"]},readOnly:e,popupConfig:!0,onSearch:()=>{n?(C(!0),E({sysCd:n,keyword:r.getFieldValue("scrnNm")})):ae.showWarning("시스템을 선택하세요")}})})}),d!=="CMPRGRM"&&o.jsx(p.Row,{gutter:24,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgSearch,{itemProps:{label:"상위 메뉴",name:["menuPrntId","menuPrntNm"]},readOnly:e,onSearch:()=>{console.log("formSysCd:",n),n?(g(!0),v({sysCd:n,keyword:r.getFieldValue("menuPrntNm")})):ae.showWarning("시스템을 선택하세요")}})})}),o.jsxs(p.Row,{gutter:12,children:[d=="CMPRGRP"&&o.jsxs(o.Fragment,{children:[o.jsx(p.Col,{span:t=="NEW"?8:12,children:o.jsx($.BwgFormItem,{name:"menuNo",label:"메뉴번호",children:o.jsx(p.Input.OTP,{length:4,formatter:D=>D.replace(/\D/g,""),disabled:t=="NEW"?f:e,style:{width:"180px"}})})}),t=="NEW"&&o.jsx(p.Col,{span:3,offset:1,children:o.jsx($.BwgCheck,{itemProps:{name:"isAutoMenuNo",label:"자동채번"},inputProps:{defaultChecked:!0,onChange:D=>S(D.target.checked)}})})]}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgRadio,{itemProps:{name:"useYn",label:"사용여부"},inputProps:{defaultValue:"Y",options:[{label:"Y",value:"Y"},{label:"N",value:"N"}],optionType:"button",style:{pointerEvents:e?"none":void 0,width:"100%"}}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgNumber,{itemProps:{name:"sortOrdr",label:"정렬순서"},inputProps:{defaultValue:0,min:1,max:99,precision:0,controls:!0,readOnly:e,variant:e?"borderless":"outlined"}})}),d=="CMPRGRM"&&o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{name:"iconCd",label:"아이콘명"},inputProps:{readOnly:e,variant:e?"borderless":"outlined"}})})]}),o.jsx($.BwgTextArea,{itemProps:{name:"menuDscr",label:"메뉴 설명"},inputProps:{disabled:e,rows:3}}),o.jsx(yS,{open:b,searchContext:P,onOk:k,onClose:()=>{C(!1),E({})}}),o.jsx(xS,{open:m,searchContext:x,onOk:O,onClose:()=>{g(!1),v({})}})]})},tD=e=>{const t=y.useRef(null),r=y.useRef(null),n=y.useRef(null),i=mt.useCodeStore(),{getFormData:a,setFormData:s}=bt.useSearchBox(),[l,c]=y.useState([]),[d,u]=y.useState(!1),[f,h]=y.useState(""),[m,g]=y.useState(-1),x=y.useCallback(k=>{u(!0),h(k)},[]),v=y.useCallback(()=>{u(!1),h("")},[]),b=y.useMemo(()=>i.getGridLookup("CMPRGR"),[i]),C=y.useMemo(()=>[{fieldName:"crprCd",visible:!1},{fieldName:"sysCd",visible:!1},{fieldName:"appCd",visible:!1},{fieldName:"menuPrntId",visible:!1},{fieldName:"menuPrntNm",visible:!1},{fieldName:"menuId",header:{text:"메뉴ID"},width:100,styleName:"left"},{fieldName:"menuGbCd",header:{text:"메뉴구분"},width:100,styleName:"left",...b},{name:"menuNm",fieldName:"menuNm",header:{text:"메뉴명"},width:200,styleName:"left"},{fieldName:"scrnId",header:{text:"화면ID"},width:100,styleName:"left"},{fieldName:"scrnNm",header:{text:"화면이름"},width:100,styleName:"left"},{fieldName:"menuNo",header:{text:"메뉴번호"},width:100,styleName:"left"},{fieldName:"useYn",visible:!1},{fieldName:"sortOrdr",visible:!1},{fieldName:"iconCd",visible:!1},{fieldName:"menuDscr",visible:!1}],[b]);y.useEffect(()=>{if(f==="NEW")r.current?.setFieldsValue({useYn:"Y",deftMenuNo:!0,menuGbCd:"CMPRGRP"});else if(f==="EDIT"){const k=n.current?.getCurrentIndex();if(k!==void 0&&k>=0){const D=n.current?.vw?.getValues(k);r.current?.setFieldsValue(D)}}else r.current?.resetFields()},[f]),y.useEffect(()=>{setTimeout(()=>{n.current?.vw&&n.current.vw.setRowStyleCallback(function(D,B,M){const I=D.getValue(B.index,"menuGbCd");if(I==="CMPRGRM")return{style:{background:"#e8f0ff"}};if(I==="CMPRGRS")return{style:{background:"#f0f8ff"}};if(I==="CMPRGRP")return{style:{background:"#fff"}}})},200)},[]);const P=k=>{k&&mo[k]?c([{label:"전체",value:""},...mo[k]]):c([{label:"전체",value:""}]),s({appCd:""}),j.SCMMENU00101()},E=()=>{r.current?.validateFields().then(k=>{console.log("Form values:",k),(f==="NEW"||f==="EDIT")&&j.SCMMENU00102()}).catch(k=>{console.log("Validation failed:",k)})},j={SCMMENU00101:()=>{const k={crprCd:ae.getCrprCd(),...a()};console.log("Search data:",k),ae.callService("SCMMENU00101",k,{},e.appCd).then(D=>{n.current?.addAllData(D.menus,{treeOption:{isExpand:!0,dataField:"menuId",parentField:"menuPrntId"}})}).catch(D=>{console.error("오류:",D)})},SCMMENU00102:()=>{const k={iudFlag:f==="EDIT"?"U":"I",crprCd:ae.getCrprCd(),...r?.current?.getFieldsValue()};delete k.scrnNm,delete k.menuPrntNm,ae.callService("SCMMENU00102",k,{},e.appCd).then(D=>{console.log("Save response:",D),D.result>0&&(v(),j.SCMMENU00101())}).catch(D=>{console.error("저장 오류:",D)})},SCMMENU00103:()=>{const k={},D=n.current?.vw?.getCheckedRows(!1),B=[];D?.forEach(M=>{const I=n.current?.dp?.getJsonRow(M);B.push({crprCd:I.crprCd,sysCd:I.sysCd,appCd:I.appCd,menuId:I.menuId,menuGbCd:I.menuGbCd})}),k.sub=B,ae.callService("SCMMENU00103",k,{},e.appCd).then(M=>{console.log(M),M?.result>0&&j.SCMMENU00101()})}},S={search:()=>{j.SCMMENU00101()},new:()=>{x("NEW")},delete:()=>{const k=n.current?.vw?.getCheckedRows(!1);if(k?.length==0){ae.showWarning("삭제할 행을 체크하세요");return}else{let D=0,B=0,M=0;k?.forEach(I=>{const _=n.current?.dp?.getValue(I,"menuGbCd");_==="CMPRGRM"?D++:_==="CMPRGRS"?B++:_==="CMPRGRP"&&M++}),p.Modal.confirm({title:"삭제 안내",content:o.jsxs(o.Fragment,{children:[D>0&&o.jsx(o.Fragment,{children:o.jsxs(p.Tag,{color:"blue",children:["메인메뉴: ",D,"개"]})}),B>0&&o.jsx(o.Fragment,{children:o.jsxs(p.Tag,{color:"green",children:["서브메뉴: ",B,"개"]})}),M>0&&o.jsx(o.Fragment,{children:o.jsxs(p.Tag,{color:"orange",children:["프로그램: ",M,"개"]})}),"를 삭제하시겠습니까?"]}),onOk:()=>{j.SCMMENU00103()},onCancel:()=>{}})}}},O=y.useMemo(()=>({onCurrentRowChanged:(k,D,B)=>{g(B)},onItemChecked:(k,D,B)=>{if(!k._isUpdatingChildren)try{k._isUpdatingChildren=!0;const M=(I,_)=>{const L=k.getChildren(I);L&&L.length>0&&L.forEach(R=>{k.isCheckedItem(R)!==_&&(k.checkItem(R,_),M(R,_))})};M(D,B)}finally{setTimeout(()=>{k._isUpdatingChildren=!1},0)}}}),[]);return o.jsxs(Vt,{buttons:{grant:[{id:"search",label:"조회",onClick:S.search},{id:"new",label:"신규",onClick:S.new},{id:"delete",label:"삭제",onClick:S.delete}]},searchBox:{reqRows:o.jsxs(p.Row,{gutter:12,children:[o.jsx(p.Col,{span:6,children:o.jsx($.BwgSelect,{itemProps:{name:"sysCd",label:"시스템",initialValue:"",labelCol:{flex:"180px"}},selectProps:{options:[{label:"전체",value:""},{label:"K-ERP",value:"KE"},{label:"K-HR",value:"KH"},{label:"K-업무지원",value:"KS"}],onChange:P}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgSelect,{itemProps:{name:"appCd",label:"애플리케이션",initialValue:""},selectProps:{options:l,placeholder:"시스템코드를 먼저 선택해주세요",onChange:S.search}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgInput,{itemProps:{name:"keyword",label:"검색어"},inputProps:{placeholder:"메뉴ID/메뉴명을 입력하세요.",onPressEnter:S.search}})})]})},children:[o.jsxs(ze,{type:"horizontal",children:[o.jsxs(Te,{className:"w65 mr20",children:[o.jsx(Le,{title:"메뉴 트리"}),o.jsx(Fe,{ref:n,type:"tree",gridColumns:C,gridOptions:eD,gridEvents:O,bindRef:t})]}),o.jsx(Te,{className:"w35",border:!0,overflow:{x:"auto",y:"auto"},children:o.jsx(fn,{title:"메뉴 상세",titleChildren:o.jsx(o.Fragment,{children:m>=0&&o.jsx($.BwgButton,{color:"gold",onClick:()=>x("EDIT"),children:"변경"})}),children:o.jsx(p.Form,{layout:"vertical",ref:t,children:o.jsx(H0,{readOnly:!0})})})})]}),o.jsx(dn,{title:`메뉴 ${f==="EDIT"?"변경":"등록"}`,open:d,placement:"right",onClose:v,width:"30%",size:"large",afterOpenChange:k=>{console.log("Drawer afterOpenChange:",k)},footer:o.jsxs("div",{className:"drawer-footer-btn-group",children:[o.jsx(p.Button,{onClick:v,className:"bwg-btn",children:"취소"}),o.jsx(p.Button,{type:"primary",onClick:E,className:"bwg-btn",children:"저장"})]}),children:o.jsx(p.Form,{layout:"vertical",ref:r,className:"sub-form pd10",children:o.jsx(H0,{readOnly:!1,drawerMode:f})})})]})},rD=e=>{const t=y.useRef(null),r=y.useRef(null),n=y.useRef(null),i=mt.useCodeStore(),{showPopup:a}=bt.usePopup(),{getFormData:s}=bt.useSearchBox(),[l,c]=y.useState(!1),[d,u]=y.useState("new"),[f,h]=y.useState(null),[m,g]=y.useState([]),[x,v]=y.useState(""),[b,C]=y.useState(!1),[P,E]=y.useState(["조회","닫기"]),[j,S]=y.useState("");y.useEffect(()=>{console.log("SYST 공통코드 목록 :: ",i.getCodeList("SYST"))},[i]),y.useEffect(()=>()=>{r.current&&(r.current.resetFields(),console.log("CMPopuMstrM01: BwgInfoArea form 초기화 완료")),n.current&&(n.current.resetFields(),console.log("CMPopuMstrM01: Drawer form 초기화 완료")),h(null),g([]),v(""),C(!1),E(["조회","닫기"]),S(""),console.log("CMPopuMstrM01: 컴포넌트 언마운트 - 모든 상태 초기화 완료")},[]);const O=y.useMemo(()=>[{name:"crprCd",fieldName:"crprCd",width:80,header:{text:"회사코드"},visible:!1},{name:"systId",fieldName:"systId",width:80,header:{text:"시스템ID"},lookupDisplay:!0,editor:{type:"dropdown"},tag:"req"},{name:"popuCd",fieldName:"popuCd",width:120,header:{text:"팝업코드"},styleName:"left",tag:"req"},{name:"popuNm",fieldName:"popuNm",width:200,header:{text:"팝업명칭"},styleName:"left"},{name:"popuUrl",fieldName:"popuUrl",width:250,header:{text:"팝업호출URL"},styleName:"left"},{name:"popuWdth",fieldName:"popuWdth",width:80,header:{text:"팝업너비"},visible:!1},{name:"wdthUnit",fieldName:"wdthUnit",width:60,header:{text:"너비단위"},visible:!1},{name:"popuHght",fieldName:"popuHght",width:80,header:{text:"팝업높이"},visible:!1},{name:"hghtUnit",fieldName:"hghtUnit",width:60,header:{text:"높이단위"},visible:!1},{name:"enblYn",fieldName:"enblYn",width:60,header:{text:"사용여부"},renderer:{type:"check",trueValues:"Y",falseValues:"N"}},{name:"rmrk",fieldName:"rmrk",width:200,header:{text:"비고"},styleName:"left",visible:!1},{name:"inptDt",fieldName:"inptDt",width:150,header:{text:"입력일시"},visible:!1},{name:"inptId",fieldName:"inptId",width:100,header:{text:"입력자ID"},visible:!1},{name:"chngDt",fieldName:"chngDt",width:150,header:{text:"변경일시"},visible:!1},{name:"chngId",fieldName:"chngId",width:100,header:{text:"변경자ID"},visible:!1},{name:"dtlsInfo",fieldName:"dtlsInfo",width:100,header:{text:"버튼목록"},dataType:"json",visible:!1}],[]),k={display:{},edit:{editable:!1},copy:{singleMode:!0},container:{state:!0,check:!0,checkAll:!0,indicator:!0}},D={SCMPOPU00101:()=>{ae.callService("SCMPOPU00101",{},{},e.appCd).then(U=>{console.log("SCMPOPU00101:",U.data)}).catch(U=>{console.error("오류:",U)})},SCMPOPU00102:U=>{ae.callService("SCMPOPU00102",U,{},e.appCd).then(H=>{console.log("SCMPOPU00102:",H.data),t.current?.addAllData(H.data)}).catch(H=>{console.error("오류:",H)})},SCMPOPU00103:U=>{console.log("save params:",U),ae.callService("SCMPOPU00103",U,{},e.appCd).then(H=>{console.log("response:",H),H.result?(ae.showSuccess(d==="new"?"팝업이 등록되었습니다.":"팝업이 수정되었습니다."),c(!1),h(null),g([]),v(""),n.current?.resetFields(),D.SCMPOPU00102()):(ae.showDuplicateError("팝업코드"),n.current?.setFields([{name:"popuCd",errors:["이미 사용중인 팝업코드입니다."]}]))}).catch(H=>{console.error("오류:",H),ae.showError("저장 중 오류가 발생했습니다.")})}},B={formFinish:async()=>{try{const U=await n.current?.validateFields();if(m.length>0&&m.filter(Q=>!Q.btnId||Q.btnId.trim()==="").length>0){S("버튼ID가 입력되지 않은 버튼이 있습니다. 모든 버튼의 버튼ID를 입력해주세요.");return}S(""),D.SCMPOPU00103({edit:d!=="new",info:{crprCd:ae.getUserInfo()?.crprCd||"100",systId:U.systId,popuCd:U.popuCd,popuNm:U.popuNm,popuUrl:U.popuUrl,popuWdth:U.popuWdth,wdthUnit:U.wdthUnit,popuHght:U.popuHght,hghtUnit:U.hghtUnit,enblYn:U.enblYn,rmrk:U.rmrk,dtlsInfo:m}})}catch(U){console.error("폼 유효성 검사 실패:",U)}},addButton:()=>{const U=m.length>0?Math.max(...m.map(Q=>Q.btnSq||0)):0,H={key:Date.now().toString(),btnSq:U+1,btnId:"",btnNm:"",iconType:"ANTD",iconVal:"",enblYn:"Y"};g(Q=>[...Q,H]),v(H.key)},openDefaultModal:()=>{C(!0)},applyDefaultButtons:()=>{const U={조회:{btnId:"SEARCH",btnNm:"조회",iconType:"ANTD",iconVal:"SearchOutlined",enblYn:"Y"},선택적용:{btnId:"APPLY",btnNm:"선택적용",iconType:"ANTD",iconVal:"CheckOutlined",enblYn:"Y"},신규:{btnId:"NEW",btnNm:"신규",iconType:"ANTD",iconVal:"PlusOutlined",enblYn:"Y"},저장:{btnId:"SAVE",btnNm:"저장",iconType:"ANTD",iconVal:"SaveOutlined",enblYn:"Y"},삭제:{btnId:"DELETE",btnNm:"삭제",iconType:"ANTD",iconVal:"DeleteOutlined",enblYn:"Y"},닫기:{btnId:"CLOSE",btnNm:"닫기",iconType:"ANTD",iconVal:"CloseOutlined",enblYn:"Y"}},H=m.length>0?Math.max(...m.map(ie=>ie.btnSq||0)):0,Q=P.map((ie,de)=>({key:Date.now().toString()+Math.random(),btnSq:H+de+1,...U[ie]}));g(ie=>[...ie,...Q]),C(!1)},previewPopup:async()=>{let U=f;if(!U){const H=t.current?.getCurrentRow();if(H===void 0||H<0){ae.showError("미리보기할 팝업을 선택해주세요.");return}if(U=t.current?.vw?.getDataSource()?.getJsonRow(H),!U){ae.showError("팝업 데이터를 가져올 수 없습니다.");return}}try{console.log("미리보기 팝업 실행:",U.popuCd),await a(U.popuCd,{popupData:U,isPreview:!0}),console.log("미리보기 팝업 열기 완료")}catch(H){console.error("미리보기 팝업 열기 실패:",H),ae.showError("미리보기 팝업을 열 수 없습니다.")}}},M={onCurrentRowChanged(U,H,Q){if(Q<0)return;const ie=U.getValues(Q);console.log("onCurrentRowChanged rowData:",ie),r.current?.setFieldsValue(ie),h(ie)}},I={search:async()=>{try{const U=s();console.log("SearchBox FormData:",U);const H={...U,userId:ae.getUserInfo()?.userId};console.log("검색 파라미터:",H),D.SCMPOPU00102(H)}catch(U){console.error("SearchBox formData 접근 오류:",U),D.SCMPOPU00102()}},new:()=>{u("new"),h(null),g([]),c(!0),setTimeout(()=>{n.current?.resetFields()},100)},update:()=>{const U=t.current?.getCurrentRow();if(U===void 0||U<0){console.log("선택된 행이 없습니다.");return}const H=t.current?.vw?.getDataSource()?.getJsonRow(U);if(H){if(u("update"),h(H),c(!0),console.log("전체 rowData:",H),console.log("rowData.dtlsInfo 존재 여부:",!!H.dtlsInfo),console.log("rowData.dtlsInfo 타입:",typeof H.dtlsInfo),console.log("rowData.dtlsInfo 값:",H.dtlsInfo),H.dtlsInfo){console.log("rowData.dtlsInfo 원본:",H.dtlsInfo);let Q;if(Array.isArray(H.dtlsInfo)?(Q=H.dtlsInfo,console.log("dtlsInfo가 배열입니다:",Q)):typeof H.dtlsInfo=="object"?(Q=[H.dtlsInfo],console.log("dtlsInfo가 객체입니다. 배열로 변환:",Q)):(Q=[],console.log("dtlsInfo가 다른 타입입니다:",typeof H.dtlsInfo)),Q&&Q.length>0){console.log("최종 buttonListData:",Q);const ie=Q.map((de,le)=>({...de,key:de.key||`btn_${Date.now()}_${le}`,btnSq:de.btnSq||le+1}));console.log("처리된 buttonListWithKeys:",ie),g(ie)}else console.log("buttonListData가 비어있음, 빈 배열로 설정"),g([])}else console.log("dtlsInfo가 없음, 빈 배열로 설정"),g([]);setTimeout(()=>{const Q={...H,popuUrl:H.popuUrl?.startsWith("/popup/")?H.popuUrl.substring(8):H.popuUrl};n.current?.setFieldsValue(Q)},100)}}},_={previewPopup:B.previewPopup},L=[{title:"순서",key:"order",width:80,align:"center",render:(U,H)=>{const Q=m.findIndex(ie=>ie.key===H.key);return o.jsxs(p.Space,{direction:"vertical",size:"small",children:[o.jsx(p.Button,{type:"link",size:"small",icon:o.jsx(Z.UpOutlined,{}),disabled:Q===0,onClick:()=>V(H.key)}),o.jsx(p.Button,{type:"link",size:"small",icon:o.jsx(Z.DownOutlined,{}),disabled:Q===m.length-1,onClick:()=>J(H.key)})]})}},{title:"순번",dataIndex:"btnSq",key:"btnSq",width:60,align:"center",render:U=>U||"-"},{title:"버튼ID",dataIndex:"btnId",key:"btnId",width:120,render:(U,H)=>{const Q=H.key===x,ie=!U||U.trim()==="",de=j&&ie;return Q?o.jsx(p.Input,{value:U,status:de?"error":void 0,onChange:le=>{const ve=[...m],W=ve.find(z=>H.key===z.key);W&&(W.btnId=le.target.value,g(ve),le.target.value.trim()!==""&&S(""))}}):o.jsx("span",{style:{color:de?"#cf1322":"inherit",fontWeight:de?"bold":"normal"},children:U||(de?"입력 필요":"")})}},{title:"버튼명",dataIndex:"btnNm",key:"btnNm",width:150,render:(U,H)=>H.key===x?o.jsx(p.Input,{value:U,onChange:ie=>{const de=[...m],le=de.find(ve=>H.key===ve.key);le&&(le.btnNm=ie.target.value,g(de))}}):U},{title:"아이콘타입",dataIndex:"iconType",align:"center",key:"iconType",width:100,render:(U,H)=>H.key===x?o.jsx(p.Select,{value:U,style:{width:"100%"},onChange:ie=>{const de=[...m],le=de.find(ve=>H.key===ve.key);le&&(le.iconType=ie,g(de))},options:[{label:"ANTD",value:"ANTD"},{label:"CSS",value:"CSS"},{label:"SVG",value:"SVG"}]}):o.jsx(p.Tag,{color:U==="ANTD"?"blue":U==="CSS"?"green":"orange",children:U})},{title:"아이콘값",dataIndex:"iconVal",key:"iconVal",width:120,render:(U,H)=>H.key===x?o.jsx(p.Input,{value:U,onChange:ie=>{const de=[...m],le=de.find(ve=>H.key===ve.key);le&&(le.iconVal=ie.target.value,g(de))}}):U},{title:"사용여부",dataIndex:"enblYn",align:"center",key:"enblYn",width:80,render:(U,H)=>H.key===x?o.jsx(p.Switch,{checked:U==="Y",onChange:ie=>{const de=[...m],le=de.find(ve=>H.key===ve.key);le&&(le.enblYn=ie?"Y":"N",g(de))}}):o.jsx(p.Tag,{color:U==="Y"?"green":"red",children:U==="Y"?"사용":"미사용"})},{title:"작업",key:"action",align:"center",width:120,render:(U,H)=>H.key===x?o.jsxs(p.Space,{children:[o.jsx(p.Tooltip,{title:"저장",children:o.jsx(p.Button,{type:"link",size:"small",icon:o.jsx(Z.SaveOutlined,{}),onClick:()=>N()})}),o.jsx(p.Tooltip,{title:"취소",children:o.jsx(p.Button,{type:"link",size:"small",icon:o.jsx(Z.RedoOutlined,{}),onClick:T})})]}):o.jsxs(p.Space,{children:[o.jsx(p.Tooltip,{title:"편집",children:o.jsx(p.Button,{type:"link",size:"small",icon:o.jsx(Z.EditOutlined,{}),onClick:()=>R(H)})}),o.jsx(p.Tooltip,{title:"삭제",children:o.jsx(p.Button,{type:"link",size:"small",danger:!0,icon:o.jsx(Z.RestOutlined,{}),onClick:()=>F(H.key)})})]})}],R=U=>{v(U.key)},T=()=>{v("")},N=U=>{v("")},F=U=>{g(H=>H.filter(Q=>Q.key!==U))},V=U=>{g(H=>{const Q=H.findIndex(ie=>ie.key===U);if(Q>0){const ie=[...H];return[ie[Q],ie[Q-1]]=[ie[Q-1],ie[Q]],ie.forEach((de,le)=>{de.btnSq=le+1}),ie}return H})},J=U=>{g(H=>{const Q=H.findIndex(ie=>ie.key===U);if(Q<H.length-1){const ie=[...H];return[ie[Q],ie[Q+1]]=[ie[Q+1],ie[Q]],ie.forEach((de,le)=>{de.btnSq=le+1}),ie}return H})};return console.log("CMPopuMstrM01 grantEvent:",I),console.log("CMPopuMstrM01 customEvent:",_),console.log("grantEvent.update 함수 존재 여부:",!!I.update),o.jsx(Vt,{buttons:{grant:[{id:"search",label:"조회",onClick:I.search},{id:"new",label:"신규",onClick:I.new},{id:"update",label:"변경",onClick:I.update}],custom:[{id:"preview",label:"미리보기",onClick:_.previewPopup}]},searchBox:{reqRows:[o.jsx($.BwgFormItem,{name:"systId",label:"시스템ID",children:o.jsx(p.Select,{options:i.getCodeList("SYST"),placeholder:"검색어를 입력하세요",allowClear:!0},"input1")}),o.jsx($.BwgFormItem,{name:"keyword",label:"검색어",children:o.jsx(p.Input,{placeholder:"프로그램ID, 프로그램명, 페이지URL"})}),o.jsx(o.Fragment,{}),o.jsx(o.Fragment,{})]},children:o.jsxs(ze,{type:"horizontal",children:[o.jsxs(Te,{className:"w60",children:[o.jsx(Le,{title:"팝업 목록",icons:{type:"antd"}}),o.jsx(Fe,{type:"nrml",gridColumns:O,gridOptions:k,gridEvents:M,ref:t})]}),o.jsx(Te,{className:"w40",border:!0,children:o.jsx(fn,{title:"팝업 상세",children:o.jsxs(p.Form,{layout:"vertical",ref:r,style:{padding:"10px 20px"},children:[o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{itemProps:{label:"시스템ID",name:"systId"},selectProps:{variant:"borderless",options:[{label:"공통",value:"CM"},{label:"인사",value:"HR"}],copyable:!0,disabled:!0}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{label:"사용여부",name:"enblYn",children:o.jsx(p.Select,{variant:"borderless",options:[{label:"사용",value:"Y"},{label:"미사용",value:"N"}],disabled:!0})})})]}),o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{label:"팝업코드",name:"popuCd",children:o.jsx(p.Input,{variant:"borderless",readOnly:!0})})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{label:"팝업명",name:"popuNm",children:o.jsx(p.Input,{variant:"borderless",readOnly:!0})})})]}),o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{label:"팝업너비",name:"popuWdth",children:o.jsxs(p.Space.Compact,{style:{width:"100%"},children:[o.jsx(p.Form.Item,{name:"popuWdth",noStyle:!0,children:o.jsx(p.InputNumber,{variant:"borderless",style:{flex:1},readOnly:!0})}),o.jsx(p.Form.Item,{name:"wdthUnit",noStyle:!0,children:o.jsx(p.Select,{variant:"borderless",style:{width:"80px"},options:[{label:"px",value:"px"},{label:"%",value:"%"}],disabled:!0})})]})})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{label:"팝업높이",name:"popuHght",children:o.jsxs(p.Space.Compact,{style:{width:"100%"},children:[o.jsx(p.Form.Item,{name:"popuHght",noStyle:!0,children:o.jsx(p.InputNumber,{variant:"borderless",style:{flex:1},readOnly:!0})}),o.jsx(p.Form.Item,{name:"hghtUnit",noStyle:!0,children:o.jsx(p.Select,{variant:"borderless",style:{width:"80px"},options:[{label:"px",value:"px"},{label:"%",value:"%"}],disabled:!0})})]})})})]}),o.jsx($.BwgFormItem,{label:"팝업호출URL",name:"popuUrl",children:o.jsx(p.Input,{variant:"borderless",readOnly:!0})}),o.jsx($.BwgFormItem,{label:"비고",name:"rmrk",children:o.jsx(p.Input.TextArea,{variant:"borderless",readOnly:!0,rows:3})}),o.jsx($.BwgFormItem,{label:"할당버튼",name:"btnList",children:o.jsx("div",{style:{width:"100%"},children:o.jsx(p.Row,{gutter:[16,8],children:f?.dtlsInfo&&Array.isArray(f.dtlsInfo)?f.dtlsInfo.map((U,H)=>o.jsx(p.Col,{span:6,children:o.jsx(p.Button,{disabled:U.enblYn!=="Y",style:{width:"100%",marginBottom:"8px"},children:U.btnNm})},H)):o.jsx(p.Col,{span:24,children:o.jsx("div",{style:{textAlign:"center",color:"#999",padding:"20px"},children:"등록된 버튼이 없습니다."})})})})})]})})}),o.jsx(dn,{title:d==="new"?"팝업 등록":"팝업 수정",open:l,placement:"right",width:"40%",onClose:()=>{c(!1),h(null),g([]),v("")},children:o.jsxs($.BwgForm,{ref:n,style:{padding:"10px 20px"},initialValues:{popuWdth:400,wdthUnit:"px",popuHght:100,hghtUnit:"%"},children:[o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{itemProps:{label:"시스템ID",name:"systId"},selectProps:{placeholder:"시스템을 선택하세요",variant:"borderless",options:[{label:"공통",value:"CM"},{label:"인사",value:"HR"}]}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{label:"사용여부",name:"enblYn",initialValue:"Y",children:o.jsx(p.Select,{options:[{label:"사용",value:"Y"},{label:"미사용",value:"N"}]})})})]}),o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{label:"팝업코드",name:"popuCd",rules:[{required:!0,message:"팝업코드를 입력하세요"}],children:o.jsx(p.Input,{placeholder:"팝업코드를 입력하세요"})})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{label:"팝업명",name:"popuNm",rules:[{required:!0,message:"팝업명을 입력하세요"}],children:o.jsx(p.Input,{placeholder:"팝업명을 입력하세요"})})})]}),o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{label:"팝업너비",name:"popuWdth",rules:[{required:!0,message:"팝업너비를 입력하세요"}],children:o.jsxs(p.Space.Compact,{style:{width:"100%"},children:[o.jsx(p.Form.Item,{name:"popuWdth",noStyle:!0,children:o.jsx(p.InputNumber,{placeholder:"팝업너비를 입력하세요",style:{flex:1},min:1})}),o.jsx(p.Form.Item,{name:"wdthUnit",noStyle:!0,children:o.jsx(p.Select,{style:{width:"80px"},options:[{label:"px",value:"px"},{label:"%",value:"%"}]})})]})})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{label:"팝업높이",name:"popuHght",rules:[{required:!0,message:"팝업높이를 입력하세요"}],children:o.jsxs(p.Space.Compact,{style:{width:"100%"},children:[o.jsx(p.Form.Item,{name:"popuHght",noStyle:!0,children:o.jsx(p.InputNumber,{placeholder:"팝업높이를 입력하세요",style:{flex:1},min:1})}),o.jsx(p.Form.Item,{name:"hghtUnit",noStyle:!0,children:o.jsx(p.Select,{style:{width:"80px"},options:[{label:"px",value:"px"},{label:"%",value:"%"}]})})]})})})]}),o.jsx($.BwgFormItem,{label:"팝업호출URL",name:"popuUrl",rules:[{required:!0,message:"팝업호출URL을 입력하세요"}],children:o.jsx(p.Input,{placeholder:"팝업 URL을 입력하세요 (예: cm/TestPopup)",addonBefore:"popup/"})}),o.jsx($.BwgFormItem,{label:"비고",name:"rmrk",children:o.jsx(p.Input.TextArea,{placeholder:"비고를 입력하세요",rows:3})}),o.jsxs(Le,{title:"버튼 목록",iconVisible:!1,children:[o.jsx(p.Button,{icon:o.jsx(Z.SettingTwoTone,{}),onClick:B.openDefaultModal,children:"기본값"}),o.jsx(p.Button,{icon:o.jsx(Z.PlusOutlined,{}),onClick:B.addButton,children:"추가"})]}),o.jsx(p.Table,{columns:L,dataSource:m,pagination:!1,size:"small",bordered:!0,scroll:{x:600},rowKey:"key"}),j&&o.jsxs("div",{style:{marginTop:"8px",padding:"8px 12px",backgroundColor:"#fff2f0",border:"1px solid #ffccc7",borderRadius:"6px",color:"#cf1322",fontSize:"14px"},children:["⚠️ ",j]}),o.jsxs("div",{style:{textAlign:"right",marginTop:"16px"},children:[o.jsx(p.Button,{type:"primary",onClick:B.formFinish,style:{marginRight:"8px"},children:"저장"}),o.jsx(p.Button,{onClick:()=>{c(!1),h(null)},children:"취소"})]})]})}),o.jsxs(p.Modal,{title:"기본 버튼 선택",open:b,onOk:B.applyDefaultButtons,onCancel:()=>C(!1),okText:"적용",cancelText:"취소",children:[o.jsx("p",{children:"추가할 기본 버튼을 선택하세요:"}),o.jsx(p.Checkbox.Group,{value:P,onChange:U=>E(U),style:{width:"100%"},children:o.jsxs(p.Space,{direction:"vertical",style:{width:"100%"},children:[o.jsx(p.Checkbox,{value:"조회",children:"조회"}),o.jsx(p.Checkbox,{value:"선택적용",children:"선택적용"}),o.jsx(p.Checkbox,{value:"신규",children:"신규"}),o.jsx(p.Checkbox,{value:"저장",children:"저장"}),o.jsx(p.Checkbox,{value:"삭제",children:"삭제"}),o.jsx(p.Checkbox,{value:"닫기",children:"닫기"})]})})]})]})})},{confirm:nD}=p.Modal,Ti={KE:[{label:"재무회계",value:"FI"},{label:"예산관리",value:"FM"},{label:"구매계약",value:"MM"},{label:"영업관리",value:"SD"},{label:"파트너관리",value:"PMN"}],KH:[{label:"HR 솔루션",value:"HR"},{label:"연말정산",value:"YT"},{label:"평정",value:"PE"}],KS:[{label:"온통",value:"BCOM"},{label:"e-감사",value:"EAUD"},{label:"청령신고",value:"INR"},{label:"ITAM",value:"ITAM"},{label:"차량/회의실",value:"CMM"},{label:"OA전산물품관리",value:"OAM"},{label:"총무관리",value:"GAM"},{label:"출입관리",value:"ACM"},{label:"비품관리",value:"IVM"},{label:"인장서비스",value:"SGS"},{label:"사료관리",value:"HIS"},{label:"웹펙스서비스",value:"WFAX"},{label:"메시지서비스",value:"SMS"},{label:"경영공시",value:"BID"},{label:"언론미디어",value:"PAM"},{label:"심의자문위원회",value:"DAC"},{label:"지식재산권신청",value:"IPR"},{label:"정보공유게시판",value:"ISB"}]},iD=[{name:"appCd",fieldName:"appCd",visible:!1},{name:"sysCd",fieldName:"sysCd",width:80,header:{text:"업무"},tag:"req"},{name:"prgrId",fieldName:"prgrId",width:150,header:{text:"프로그램 코드"},styleName:"left",tag:"req"},{name:"prgrNm",fieldName:"prgrNm",width:200,header:{text:"프로그램 명칭"},styleName:"left"},{name:"prgrUrl",fieldName:"prgrUrl",width:250,header:{text:"프로그램 URL"},styleName:"left"},{name:"enblYn",fieldName:"enblYn",width:60,header:{text:"사용"},renderer:{type:"check",trueValues:"Y",falseValues:"N"}},{name:"prsnInfoYn",fieldName:"prsnInfoYn",visible:!1}],oD={display:{},edit:{editable:!1},copy:{singleMode:!0},container:{state:!0,check:!0,checkAll:!0,indicator:!0}},W0=({readOnly:e=!1,drawerMode:t=""})=>{const r=p.Form.useFormInstance(),[n,i]=y.useState(null),[a,s]=y.useState([]);y.useEffect(()=>{const c=r.getFieldValue("sysCd");i(c??null),c&&Ti[c]?s(Ti[c]):s([])},[r]);const l=c=>{i(c??null),c&&Ti[c]?s(Ti[c]):s([]),r.setFieldsValue({sysCd:c,appCd:null})};return o.jsxs(o.Fragment,{children:[o.jsxs(p.Row,{gutter:12,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{itemProps:{name:"sysCd",label:"시스템"},selectProps:{options:[{label:"K-ERP",value:"KE"},{label:"K-HR",value:"HR"},{label:"K-업무지원",value:"KS"}],onChange:l,disabled:e||t==="EDIT",placeholder:"시스템을 선택하세요"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{itemProps:{name:"appCd",label:"애플리케이션"},selectProps:{options:a,disabled:e||!n||t==="EDIT",placeholder:"시스템을 먼저 선택하세요"}})})]}),o.jsxs(p.Row,{gutter:12,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{name:"prgrId",label:"프로그램 코드"},inputProps:{disabled:t==="EDIT",readOnly:e,variant:e?"borderless":"outlined"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{name:"prgrNm",label:"프로그램 명칭"},inputProps:{readOnly:e,variant:e?"borderless":"outlined"}})})]}),o.jsxs(p.Row,{children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgRadio,{itemProps:{name:"enblYn",label:"사용여부"},inputProps:{defaultValue:"Y",options:[{label:"Y",value:"Y"},{label:"N",value:"N"}],optionType:"button",style:{pointerEvents:e?"none":void 0}}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgRadio,{itemProps:{name:"prsnInfoYn",label:"개인정보 포함여부"},inputProps:{defaultValue:"Y",options:[{label:"Y",value:"Y"},{label:"N",value:"N"}],optionType:"button",style:{pointerEvents:e?"none":void 0}}})})]}),o.jsx($.BwgInput,{itemProps:{name:"prgrUrl",label:"프로그램 URL"},inputProps:{readOnly:e,variant:e?"borderless":"outlined",placeholder:"/cm/rsrc/파일명 (.tsx 생략)"}}),o.jsx($.BwgTextArea,{itemProps:{name:"prgrDscr",label:"프로그램 설명"},inputProps:{readOnly:e,rows:4,variant:e?"borderless":"outlined"}})]})},aD=e=>{const t=y.useRef(null),r=y.useRef(null),n=y.useRef(null),{getFormData:i,setFormData:a}=bt.useSearchBox(),[s,l]=y.useState([]),[c,d]=y.useState(!1),[u,f]=y.useState(""),[h,m]=y.useState(-1),g=y.useCallback(S=>{d(!0),f(S)},[]),x=y.useCallback(()=>{d(!1),f("")},[]);y.useEffect(()=>{const S=mt.useSystemCode().findByAppCd(e.appCd);console.log("PRGR APPCD :: ",e.appCd),a({sysCd:S?.sysCd,appCd:S?.appCd})},[e.appCd]),y.useEffect(()=>{if(u=="NEW")n.current?.setFieldsValue({enblYn:"Y",prsnInfoYn:"Y"});else if(u=="EDIT"){const S=t.current?.getCurrentIndex()??-1,O=t.current?.vw?.getValues(S)??{};n.current?.setFieldsValue(O)}else n.current?.resetFields()},[u]);const v=y.useCallback(S=>{if(S==="ALL"){const O=Object.values(Ti).flat();l(O)}else S&&Ti[S]?l(Ti[S]):l([]);a({appCd:null}),C.search()},[a]),b=y.useCallback(()=>{P.SCMPRGR00102()},[u]),C={search:()=>{P.SCMPRGR00101()},new:()=>{g("NEW")},delete:()=>{const S=t.current?.vw?.getCheckedRows(!1)??[];if(S.length==0){ae.showWarning("삭제할 행을 체크하세요");return}nD({title:"삭제 안내",content:`${S.length}개 행을 삭제하시겠습니까?`,onOk:()=>{P.SCMPRGR00103()}})}},P={SCMPRGR00101:()=>{ae.callService("SCMPRGR00101",i(),{},e.appCd).then(S=>{t.current?.addAllData(S.data)})},SCMPRGR00102:()=>{const S={iudFlag:u==="EDIT"?"U":"I",...n.current?.getFieldsValue()??{}};ae.callService("SCMPRGR00102",S,{},e.appCd).then(O=>{O.result>0?(x(),P.SCMPRGR00101()):ae.showError(O.message)}).catch(O=>{console.error("오류:",O)})},SCMPRGR00103:()=>{const S={},O=t.current?.vw?.getCheckedRows(!1)??[],k=[];O.forEach(D=>{const B=t.current?.dp?.getJsonRow(D);k.push({sysCd:B.sysCd,appCd:B.appCd,prgrId:B.prgrId})}),S.sub=k,ae.callServiceBySysCd("SCMPRGR00103",S).then(D=>{D.result>0&&P.SCMPRGR00101()}).catch(D=>{console.error("오류:",D)})}},E={editForm:()=>{if((t.current?.getCurrentRow()??-1)<0){ae.showWarning("행 선택 후 변경 가능합니다.");return}g("EDIT")}},j={onCurrentRowChanged(S,O,k){m(k)}};return o.jsxs(Vt,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{C.search()}},{id:"new",label:"신규",onClick:()=>{C.new()}},{id:"delete",label:"삭제",onClick:()=>{C.delete()}}]},searchBox:{reqRows:o.jsxs(p.Row,{gutter:12,children:[o.jsx(p.Col,{span:6,children:o.jsx($.BwgSelect,{itemProps:{name:"sysCd",label:"시스템",initialValue:""},selectProps:{options:[{label:"전체",value:""},{label:"K-ERP",value:"KE"},{label:"K-HR",value:"KH"},{label:"K-업무지원",value:"KS"}],onChange:v}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgSelect,{itemProps:{name:"appCd",label:"애플리케이션"},selectProps:{options:s,placeholder:"시스템코드를 먼저 선택해주세요",onChange:C.search}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgInput,{itemProps:{name:"keyword",label:"프로그램명"},inputProps:{placeholder:"프로그램ID/프로그램명을 입력하세요.",onPressEnter:C.search}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgRadio,{itemProps:{name:"enblYn",label:"사용여부"},inputProps:{defaultValue:"",size:"small",options:[{label:"전체",value:""},{label:"Y",value:"Y"},{label:"N",value:"N"}]}})})]})},children:[o.jsxs(ze,{type:"horizontal",children:[o.jsxs(Te,{className:"w60 mr20",children:[o.jsx(Le,{title:"프로그램 목록",icons:{type:"antd"}}),o.jsx(Fe,{ref:t,gridColumns:iD,gridOptions:oD,gridEvents:j,bindRef:r})]}),o.jsx(Te,{className:"w40",border:!0,children:o.jsx(fn,{title:"프로그램 상세",titleChildren:o.jsx(o.Fragment,{children:h>=0&&o.jsx($.BwgButton,{type:"dashed",onClick:E.editForm,children:"변경"})}),children:o.jsx(p.Form,{layout:"vertical",ref:r,className:"sub-form pd10",children:o.jsx(W0,{readOnly:!0})})})})]}),o.jsx(dn,{title:`프로그램 ${u=="EDIT"?"변경":"등록"}`,open:c,placement:"right",onClose:x,width:"30%",size:"large",afterOpenChange:S=>{console.log("afterOpenChange:",S)},footer:o.jsxs("div",{className:"drawer-footer-btn-group",children:[o.jsx(p.Button,{onClick:()=>{x()},className:"bwg-btn",children:"취소"}),o.jsx(p.Button,{type:"primary",onClick:b,className:"bwg-btn",children:"저장"})]}),children:o.jsx(p.Form,{layout:"vertical",ref:n,className:"sub-form pd10",children:o.jsx(W0,{readOnly:!1,drawerMode:u})})})]})},sD=()=>{const e=y.useRef(null),t=y.useRef(null),r=y.useRef(null),{showPopup:n}=bt.usePopup(),i=y.useMemo(()=>[{fieldName:"seq",header:{text:"순번"},width:60,styleName:"center",visible:!1},{fieldName:"stndYmd",header:{text:"휴일일자"},width:100,styleName:"center",required:!0},{fieldName:"hldyDscr",header:{text:"휴일명"},width:150,styleName:"left",required:!0},{fieldName:"hldyYn",header:{text:"휴일여부"},width:100,styleName:"center"},{fieldName:"lglHldyYn",header:{text:"법정휴일여부"},width:100,styleName:"center"}],[]),a=y.useMemo(()=>[{fieldName:"seq",header:{text:"순번"},width:60,styleName:"center",visible:!1},{fieldName:"stndYmd",header:{text:"휴일일자"},width:100,styleName:"center",required:!0},{fieldName:"hldyDscr",header:{text:"휴일명"},width:150,styleName:"left",required:!0},{fieldName:"hldyYn",header:{text:"휴일여부"},width:100,styleName:"center",renderer:{type:"check",trueValues:"Y",falseValues:"N"}},{fieldName:"lglHldyYn",header:{text:"법정휴일여부"},width:100,styleName:"center",renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],[]),s={edit:{editable:!1},container:{indicator:!0,footer:!0}},l={edit:{editable:!0},container:{check:!0,checkAll:!0,indicator:!0,footer:!0,state:!0}},c={search:()=>{d.SCMHLDY00101()},edit:()=>{d.SCMHLDY00102()}};y.useEffect(()=>{r.current?.setFormData({stndYmd:jl().format("YYYY")}),c.search()},[]);const d={SCMHLDY00101:()=>{ae.callService("SCMHLDY00101",{...r.current?.getFormData()||{},crprCd:ae.getCrprCd(),sysCd:__SYS_CD__}).then(u=>{e.current?.addAllData(u.sub.filter(f=>f.sysCd==="CM")||[]),t.current?.addAllData(u.sub.filter(f=>f.sysCd!=="CM")||[])})},SCMHLDY00102:()=>{const u=t.current?.getGridSaveData();ae.callService("SCMHLDY00102",{sub:u,crprCd:ae.getCrprCd(),sysCd:__SYS_CD__}).then(f=>{c.search()})}};return o.jsx(Vt,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{c.search()}},{id:"edit",label:"수정",onClick:()=>{c.edit()}}]},children:o.jsxs(ze,{type:"horizontal",children:[o.jsxs(Te,{className:"w50",children:[o.jsx(Le,{title:"국경일/공휴일 API"}),o.jsx(Fe,{ref:e,type:"nrml",gridColumns:i,gridOptions:s})]}),o.jsxs(Te,{className:"w50",border:!0,children:[o.jsxs(Le,{title:"사업장 휴일",children:[o.jsx($.BwgButton,{type:"primary",onClick:()=>{t.current?.dp?.addRow?.({iudFlag:"I"})},children:"추가"}),o.jsx($.BwgButton,{type:"primary",onClick:()=>{t.current?.deleteGridData()},children:"삭제"}),o.jsx($.BwgButton,{onClick:()=>{n("CMHldyMstrP01")},children:"조회팝업"})]}),o.jsx(Fe,{ref:t,type:"nrml",gridColumns:a,gridOptions:l})]})]})})},lD=e=>o.jsx("div",{children:"CMSystCfgM01"}),cD=e=>{const[t,r]=y.useState(null),[n,i]=y.useState("group"),[a,s]=y.useState(null),l=y.useRef(null),c=y.useRef(null),d=y.useRef(null),u=[{id:"KH",name:"HR 솔루션",description:"인사 관리 시스템",icon:o.jsx(Z.UserOutlined,{}),color:"blue",status:"active"},{id:"KE",name:"K-ERP 서비스",description:"전사적 자원 관리 시스템",icon:o.jsx(Z.DatabaseOutlined,{}),color:"green",status:"active"},{id:"KS",name:"K-업무지원",description:"경영 지원 시스템",icon:o.jsx(Z.SettingOutlined,{}),color:"orange",status:"active"}],f=y.useMemo(()=>[{fieldName:"crprCd",visible:!1},{fieldName:"applCd",visible:!1},{fieldName:"systId",header:{text:"업무코드"},width:100},{fieldName:"systNm",header:{text:"업무명"},width:100},{fieldName:"systIco",header:{text:"업무아이콘"},width:100},{fieldName:"sortOrd",header:{text:"정렬순서"},width:100},{fieldName:"enblYn",header:{text:"사용여부"},width:60,renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],[]),h=y.useMemo(()=>[{fieldName:"cmmnCd",header:{text:"그룹코드"},width:120},{fieldName:"cmmnCdNm",header:{text:"그룹명"},width:150},{fieldName:"cmmnCdAbrv",header:{text:"설명"},width:200},{fieldName:"sortOrd",header:{text:"정렬순서"},width:80},{fieldName:"enblYn",header:{text:"사용여부"},width:80,renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],[]),m=y.useMemo(()=>[{fieldName:"grpCd",header:{text:"그룹코드"},width:120},{fieldName:"cmmnCd",header:{text:"코드"},width:100},{fieldName:"cmmnCdNm",header:{text:"코드명"},width:150},{fieldName:"sortOrd",header:{text:"정렬순서"},width:80},{fieldName:"useYn",header:{text:"사용여부"},width:80,renderer:{type:"check",trueValues:"Y",falseValues:"N"}}],[]),g={container:{indicator:!0}},x=b=>{r(b)},v=b=>{i(b),b==="group"&&s(null)};return y.useEffect(()=>{t&&ae.callService("SCMSYST00101",{crprCd:ae.getCrprCd(),applCd:t},{},e.appCd).then(b=>{console.log({SCMSYST00101:b.data}),l.current?.addAllData(b.data)})},[t]),y.useEffect(()=>{t&&ae.callService("SCMCODE00101",{crprCd:ae.getCrprCd(),srchGb:n==="group"?"group":"detail"},{},e.appCd).then(b=>{console.log({SCMCODE00101:b.data}),n==="group"?c.current?.addAllData(b.data):d.current?.addAllData(b.data)})},[n,t]),o.jsxs(Vt,{children:[o.jsx(Te,{style:{padding:"0px 20px",height:"200px",overflow:"hidden"},children:o.jsx(p.List,{grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:3,xxl:3},dataSource:u,renderItem:b=>o.jsx(p.List.Item,{children:o.jsx(p.Card,{hoverable:!0,style:{height:"100%",cursor:"pointer",border:t===b.id?"2px solid #1890ff":"1px solid #f0f0f0",backgroundColor:t===b.id?"#f0f8ff":"#ffffff",boxShadow:t===b.id?"0 4px 12px rgba(24, 144, 255, 0.15)":"0 2px 8px rgba(0, 0, 0, 0.06)",position:"relative",zIndex:t===b.id?1:0},onClick:()=>x(b.id),actions:[o.jsx(p.Tag,{color:b.color,children:b.status==="active"?"활성":"비활성"},"status")],children:o.jsx(p.Card.Meta,{avatar:o.jsx("div",{style:{fontSize:"24px",color:b.color==="blue"?"#1890ff":b.color==="green"?"#52c41a":"#fa8c16"},children:b.icon}),title:o.jsxs(p.Space,{children:[o.jsx("span",{style:{fontWeight:"bold",color:t===b.id?"#1890ff":"#333"},children:b.name}),o.jsx(p.Tag,{color:b.color,children:b.id})]}),description:o.jsx("div",{style:{marginTop:"8px"},children:o.jsx("p",{style:{color:t===b.id?"#1890ff":"#666",margin:0},children:b.description})})})})})})}),o.jsx(Te,{border:!0,children:o.jsxs(ze,{type:"horizontal",children:[o.jsxs(Te,{className:"w40",children:[o.jsxs(Le,{title:"업무코드 목록",children:[o.jsx(p.Button,{children:"신규"}),o.jsx(p.Button,{children:"변경"})]}),o.jsx(Fe,{ref:l,type:"nrml",gridColumns:f,gridOptions:g})]}),o.jsxs(Te,{className:"w60",children:[o.jsxs(Le,{title:"시스템 공통코드 목록",tooltip:{title:"시스템 전역에 배포될 코드 목록입니다."},children:[o.jsx(p.Button,{children:"신규"}),o.jsx(p.Button,{children:"변경"})]}),o.jsx(lr,{defaultActiveKey:"group",size:"small",tabPosition:"left",style:{height:"100%"},activeKey:n,onChange:v,items:[{key:"group",label:"그룹코드",icon:o.jsx(Z.GroupOutlined,{}),children:o.jsx(ze,{children:o.jsx(Te,{children:o.jsx(Fe,{ref:c,type:"nrml",gridColumns:h,gridOptions:g})})})},{key:"detail",label:"상세코드",icon:o.jsx(Z.UngroupOutlined,{}),children:o.jsx(Fe,{ref:d,type:"nrml",gridColumns:m,gridOptions:g})}]})]})]})})]})};function bS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=bS(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ze(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=bS(e))&&(n&&(n+=" "),n+=t);return n}var uD=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function om(e){if(typeof e!="string")return!1;var t=uD;return t.includes(e)}var dD=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function wS(e){if(typeof e!="string")return!1;var t=dD;return t.includes(e)}function CS(e){return typeof e=="string"&&e.startsWith("data-")}function Zr(e){var t=Object.entries(e).filter(r=>{var[n]=r;return wS(n)||CS(n)});return Object.fromEntries(t)}function Ua(e){if(e==null)return null;if(y.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Zr(t)}return typeof e=="object"&&!Array.isArray(e)?Zr(e):null}function _r(e){var t=Object.entries(e).filter(r=>{var[n]=r;return wS(n)||CS(n)||om(n)});return Object.fromEntries(t)}var fD=["children","width","height","viewBox","className","style","title","desc"];function Bp(){return Bp=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},Bp.apply(null,arguments)}function pD(e,t){if(e==null)return{};var r,n,i=hD(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function hD(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}var am=y.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:s,style:l,title:c,desc:d}=e,u=pD(e,fD),f=a||{width:n,height:i,x:0,y:0},h=Ze("recharts-surface",s);return w.createElement("svg",Bp({},_r(u),{className:h,width:n,height:i,style:l,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),w.createElement("title",null,c),w.createElement("desc",null,d),r)}),mD=["children","className"];function $p(){return $p=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},$p.apply(null,arguments)}function gD(e,t){if(e==null)return{};var r,n,i=vD(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function vD(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}var ar=w.forwardRef((e,t)=>{var{children:r,className:n}=e,i=gD(e,mD),a=Ze("recharts-layer",n);return w.createElement("g",$p({className:a},_r(i),{ref:t}),r)}),SS=y.createContext(null),yD=()=>y.useContext(SS);function rt(e){return function(){return e}}const jS=Math.cos,Gl=Math.sin,en=Math.sqrt,Xl=Math.PI,Uc=2*Xl,Lp=Math.PI,zp=2*Lp,Pi=1e-6,xD=zp-Pi;function PS(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function bD(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return PS;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class wD{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?PS:bD(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,s){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,l=this._y1,c=n-t,d=i-r,u=s-t,f=l-r,h=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Pi)if(!(Math.abs(f*c-d*u)>Pi)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-s,g=i-l,x=c*c+d*d,v=m*m+g*g,b=Math.sqrt(x),C=Math.sqrt(h),P=a*Math.tan((Lp-Math.acos((x+h-v)/(2*b*C)))/2),E=P/C,j=P/b;Math.abs(E-1)>Pi&&this._append`L${t+E*u},${r+E*f}`,this._append`A${a},${a},0,0,${+(f*m>u*g)},${this._x1=t+j*c},${this._y1=r+j*d}`}}arc(t,r,n,i,a,s){if(t=+t,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),c=n*Math.sin(i),d=t+l,u=r+c,f=1^s,h=s?i-a:a-i;this._x1===null?this._append`M${d},${u}`:(Math.abs(this._x1-d)>Pi||Math.abs(this._y1-u)>Pi)&&this._append`L${d},${u}`,n&&(h<0&&(h=h%zp+zp),h>xD?this._append`A${n},${n},0,1,${f},${t-l},${r-c}A${n},${n},0,1,${f},${this._x1=d},${this._y1=u}`:h>Pi&&this._append`A${n},${n},0,${+(h>=Lp)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function sm(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new wD(t)}function lm(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ES(e){this._context=e}ES.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Kc(e){return new ES(e)}function OS(e){return e[0]}function kS(e){return e[1]}function TS(e,t){var r=rt(!0),n=null,i=Kc,a=null,s=sm(l);e=typeof e=="function"?e:e===void 0?OS:rt(e),t=typeof t=="function"?t:t===void 0?kS:rt(t);function l(c){var d,u=(c=lm(c)).length,f,h=!1,m;for(n==null&&(a=i(m=s())),d=0;d<=u;++d)!(d<u&&r(f=c[d],d,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,d,c),+t(f,d,c));if(m)return a=null,m+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:rt(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:rt(+c),l):t},l.defined=function(c){return arguments.length?(r=typeof c=="function"?c:rt(!!c),l):r},l.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),l):i},l.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),l):n},l}function nl(e,t,r){var n=null,i=rt(!0),a=null,s=Kc,l=null,c=sm(d);e=typeof e=="function"?e:e===void 0?OS:rt(+e),t=typeof t=="function"?t:rt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?kS:rt(+r);function d(f){var h,m,g,x=(f=lm(f)).length,v,b=!1,C,P=new Array(x),E=new Array(x);for(a==null&&(l=s(C=c())),h=0;h<=x;++h){if(!(h<x&&i(v=f[h],h,f))===b)if(b=!b)m=h,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),g=h-1;g>=m;--g)l.point(P[g],E[g]);l.lineEnd(),l.areaEnd()}b&&(P[h]=+e(v,h,f),E[h]=+t(v,h,f),l.point(n?+n(v,h,f):P[h],r?+r(v,h,f):E[h]))}if(C)return l=null,C+""||null}function u(){return TS().defined(i).curve(s).context(a)}return d.x=function(f){return arguments.length?(e=typeof f=="function"?f:rt(+f),n=null,d):e},d.x0=function(f){return arguments.length?(e=typeof f=="function"?f:rt(+f),d):e},d.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:rt(+f),d):n},d.y=function(f){return arguments.length?(t=typeof f=="function"?f:rt(+f),r=null,d):t},d.y0=function(f){return arguments.length?(t=typeof f=="function"?f:rt(+f),d):t},d.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:rt(+f),d):r},d.lineX0=d.lineY0=function(){return u().x(e).y(t)},d.lineY1=function(){return u().x(e).y(r)},d.lineX1=function(){return u().x(n).y(t)},d.defined=function(f){return arguments.length?(i=typeof f=="function"?f:rt(!!f),d):i},d.curve=function(f){return arguments.length?(s=f,a!=null&&(l=s(a)),d):s},d.context=function(f){return arguments.length?(f==null?a=l=null:l=s(a=f),d):a},d}class IS{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function CD(e){return new IS(e,!0)}function SD(e){return new IS(e,!1)}const cm={draw(e,t){const r=en(t/Xl);e.moveTo(r,0),e.arc(0,0,r,0,Uc)}},jD={draw(e,t){const r=en(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},MS=en(1/3),PD=MS*2,ED={draw(e,t){const r=en(t/PD),n=r*MS;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},OD={draw(e,t){const r=en(t),n=-r/2;e.rect(n,n,r,r)}},kD=.8908130915292852,RS=Gl(Xl/10)/Gl(7*Xl/10),TD=Gl(Uc/10)*RS,ID=-jS(Uc/10)*RS,MD={draw(e,t){const r=en(t*kD),n=TD*r,i=ID*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const s=Uc*a/5,l=jS(s),c=Gl(s);e.lineTo(c*r,-l*r),e.lineTo(l*n-c*i,c*n+l*i)}e.closePath()}},wd=en(3),RD={draw(e,t){const r=-en(t/(wd*3));e.moveTo(0,r*2),e.lineTo(-wd*r,-r),e.lineTo(wd*r,-r),e.closePath()}},Tr=-.5,Ir=en(3)/2,Fp=1/en(12),AD=(Fp/2+1)*3,ND={draw(e,t){const r=en(t/AD),n=r/2,i=r*Fp,a=n,s=r*Fp+r,l=-a,c=s;e.moveTo(n,i),e.lineTo(a,s),e.lineTo(l,c),e.lineTo(Tr*n-Ir*i,Ir*n+Tr*i),e.lineTo(Tr*a-Ir*s,Ir*a+Tr*s),e.lineTo(Tr*l-Ir*c,Ir*l+Tr*c),e.lineTo(Tr*n+Ir*i,Tr*i-Ir*n),e.lineTo(Tr*a+Ir*s,Tr*s-Ir*a),e.lineTo(Tr*l+Ir*c,Tr*c-Ir*l),e.closePath()}};function DD(e,t){let r=null,n=sm(i);e=typeof e=="function"?e:rt(e||cm),t=typeof t=="function"?t:rt(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:rt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:rt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Zl(){}function Ql(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function AS(e){this._context=e}AS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ql(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ql(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _D(e){return new AS(e)}function NS(e){this._context=e}NS.prototype={areaStart:Zl,areaEnd:Zl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ql(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BD(e){return new NS(e)}function DS(e){this._context=e}DS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ql(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $D(e){return new DS(e)}function _S(e){this._context=e}_S.prototype={areaStart:Zl,areaEnd:Zl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function LD(e){return new _S(e)}function U0(e){return e<0?-1:1}function K0(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),s=(r-e._y1)/(i||n<0&&-0),l=(a*i+s*n)/(n+i);return(U0(a)+U0(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function q0(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Cd(e,t,r){var n=e._x0,i=e._y0,a=e._x1,s=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,s-l*r,a,s)}function Jl(e){this._context=e}Jl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Cd(this,this._t0,q0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Cd(this,q0(this,r=K0(this,e,t)),r);break;default:Cd(this,this._t0,r=K0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function BS(e){this._context=new $S(e)}(BS.prototype=Object.create(Jl.prototype)).point=function(e,t){Jl.prototype.point.call(this,t,e)};function $S(e){this._context=e}$S.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function zD(e){return new Jl(e)}function FD(e){return new BS(e)}function LS(e){this._context=e}LS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Y0(e),i=Y0(t),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Y0(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),s=new Array(r);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function VD(e){return new LS(e)}function qc(e,t){this._context=e,this._t=t}qc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function HD(e){return new qc(e,.5)}function WD(e){return new qc(e,0)}function UD(e){return new qc(e,1)}function Io(e,t){if((s=e.length)>1)for(var r=1,n,i,a=e[t[0]],s,l=a.length;r<s;++r)for(i=a,a=e[t[r]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Vp(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function KD(e,t){return e[t]}function qD(e){const t=[];return t.key=e,t}function YD(){var e=rt([]),t=Vp,r=Io,n=KD;function i(a){var s=Array.from(e.apply(this,arguments),qD),l,c=s.length,d=-1,u;for(const f of a)for(l=0,++d;l<c;++l)(s[l][d]=[0,+n(f,s[l].key,d,a)]).data=f;for(l=0,u=lm(t(s));l<c;++l)s[u[l]].index=l;return r(s,u),s}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:rt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:rt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Vp:typeof a=="function"?a:rt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Io,i):r},i}function GD(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,s;i<a;++i){for(s=r=0;r<n;++r)s+=e[r][i][1]||0;if(s)for(r=0;r<n;++r)e[r][i][1]/=s}Io(e,t)}}function XD(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var s=0,l=0;s<i;++s)l+=e[s][r][1]||0;n[r][1]+=n[r][0]=-l/2}Io(e,t)}}function ZD(e,t){if(!(!((s=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,s;n<a;++n){for(var l=0,c=0,d=0;l<s;++l){for(var u=e[t[l]],f=u[n][1]||0,h=u[n-1][1]||0,m=(f-h)/2,g=0;g<l;++g){var x=e[t[g]],v=x[n][1]||0,b=x[n-1][1]||0;m+=v-b}c+=f,d+=m*f}i[n-1][1]+=i[n-1][0]=r,c&&(r-=d/c)}i[n-1][1]+=i[n-1][0]=r,Io(e,t)}}var Sd={},jd={},G0;function QD(){return G0||(G0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(jd)),jd}var Pd={},X0;function zS(){return X0||(X0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Pd)),Pd}var Ed={},Z0;function um(){return Z0||(Z0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(Ed)),Ed}var Od={},kd={},Q0;function JD(){return Q0||(Q0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(kd)),kd}var J0;function dm(){return J0||(J0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=JD(),r=um();function n(i){if(Array.isArray(i))return i.map(r.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],s=i.length;if(s===0)return a;let l=0,c="",d="",u=!1;for(i.charCodeAt(0)===46&&(a.push(""),l++);l<s;){const f=i[l];d?f==="\\"&&l+1<s?(l++,c+=i[l]):f===d?d="":c+=f:u?f==='"'||f==="'"?d=f:f==="]"?(u=!1,a.push(c),c=""):c+=f:f==="["?(u=!0,c&&(a.push(c),c="")):f==="."?c&&(a.push(c),c=""):c+=f,l++}return c&&a.push(c),a}e.toPath=n})(Od)),Od}var ey;function fm(){return ey||(ey=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QD(),r=zS(),n=um(),i=dm();function a(l,c,d){if(l==null)return d;switch(typeof c){case"string":{if(t.isUnsafeProperty(c))return d;const u=l[c];return u===void 0?r.isDeepKey(c)?a(l,i.toPath(c),d):d:u}case"number":case"symbol":{typeof c=="number"&&(c=n.toKey(c));const u=l[c];return u===void 0?d:u}default:{if(Array.isArray(c))return s(l,c,d);if(Object.is(c?.valueOf(),-0)?c="-0":c=String(c),t.isUnsafeProperty(c))return d;const u=l[c];return u===void 0?d:u}}}function s(l,c,d){if(c.length===0)return d;let u=l;for(let f=0;f<c.length;f++){if(u==null||t.isUnsafeProperty(c[f]))return d;u=u[c[f]]}return u===void 0?d:u}e.get=a})(Sd)),Sd}var Td,ty;function e_(){return ty||(ty=1,Td=fm().get),Td}var t_=e_();const zi=jr(t_);var Ht=e=>e===0?0:e>0?1:-1,Qr=e=>typeof e=="number"&&e!=+e,An=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,Ee=e=>(typeof e=="number"||e instanceof Number)&&!Qr(e),hn=e=>Ee(e)||typeof e=="string",r_=0,Ka=e=>{var t=++r_;return"".concat(e||"").concat(t)},tr=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ee(t)&&typeof t!="string")return n;var a;if(An(t)){if(r==null)return n;var s=t.indexOf("%");a=r*parseFloat(t.slice(0,s))/100}else a=+t;return Qr(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},FS=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[e[n]])r[e[n]]=!0;else return!0;return!1};function Tt(e,t,r){return Ee(e)&&Ee(t)?e+r*(t-e):t}function n_(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):zi(n,t))===r)}var Ut=e=>e===null||typeof e>"u",hs=e=>Ut(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function i_(e){return e!=null}function Gi(){}var o_=["type","size","sizeType"];function Hp(){return Hp=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},Hp.apply(null,arguments)}function ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ny(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ry(Object(r),!0).forEach(function(n){a_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ry(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a_(e,t,r){return(t=s_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s_(e){var t=l_(e,"string");return typeof t=="symbol"?t:t+""}function l_(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c_(e,t){if(e==null)return{};var r,n,i=u_(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function u_(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}var VS={symbolCircle:cm,symbolCross:jD,symbolDiamond:ED,symbolSquare:OD,symbolStar:MD,symbolTriangle:RD,symbolWye:ND},d_=Math.PI/180,f_=e=>{var t="symbol".concat(hs(e));return VS[t]||cm},p_=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*d_;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},h_=(e,t)=>{VS["symbol".concat(hs(e))]=t},pm=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=c_(e,o_),a=ny(ny({},i),{},{type:t,size:r,sizeType:n}),s="circle";typeof t=="string"&&(s=t);var l=()=>{var h=f_(s),m=DD().type(h).size(p_(r,n,s)),g=m();if(g!==null)return g},{className:c,cx:d,cy:u}=a,f=_r(a);return Ee(d)&&Ee(u)&&Ee(r)?w.createElement("path",Hp({},f,{className:Ze("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(u,")"),d:l()})):null};pm.registerSymbol=h_;var HS=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,m_=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(y.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{om(i)&&(n[i]=(a=>r[i](r,a)))}),n},g_=(e,t,r)=>n=>(e(t,r,n),null),ms=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];om(i)&&typeof a=="function"&&(n||(n={}),n[i]=g_(a,t,r))}),n};function iy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function v_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iy(Object(r),!0).forEach(function(n){y_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y_(e,t,r){return(t=x_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x_(e){var t=b_(e,"string");return typeof t=="symbol"?t:t+""}function b_(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kt(e,t){var r=v_({},e),n=t,i=Object.keys(t),a=i.reduce((s,l)=>(s[l]===void 0&&n[l]!==void 0&&(s[l]=n[l]),s),r);return a}function ec(){return ec=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},ec.apply(null,arguments)}function oy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function w_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oy(Object(r),!0).forEach(function(n){C_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C_(e,t,r){return(t=S_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S_(e){var t=j_(e,"string");return typeof t=="symbol"?t:t+""}function j_(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rr=32,P_={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function E_(e){var{data:t,iconType:r,inactiveColor:n}=e,i=Rr/2,a=Rr/6,s=Rr/3,l=t.inactive?n:t.color,c=r??t.type;if(c==="none")return null;if(c==="plainline"){var d;return w.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:(d=t.payload)===null||d===void 0?void 0:d.strokeDasharray,x1:0,y1:i,x2:Rr,y2:i,className:"recharts-legend-icon"})}if(c==="line")return w.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(s,`
1029
+ A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(i,`
1030
+ H`).concat(Rr,"M").concat(2*s,",").concat(i,`
1031
+ A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(c==="rect")return w.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Rr/8,"h").concat(Rr,"v").concat(Rr*3/4,"h").concat(-Rr,"z"),className:"recharts-legend-icon"});if(w.isValidElement(t.legendIcon)){var u=w_({},t);return delete u.legendIcon,w.cloneElement(t.legendIcon,u)}return w.createElement(pm,{fill:l,cx:i,cy:i,size:Rr,sizeType:"diameter",type:c})}function O_(e){var{payload:t,iconSize:r,layout:n,formatter:i,inactiveColor:a,iconType:s}=e,l={x:0,y:0,width:Rr,height:Rr},c={display:n==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((u,f)=>{var h=u.formatter||i,m=Ze({"recharts-legend-item":!0,["legend-item-".concat(f)]:!0,inactive:u.inactive});if(u.type==="none")return null;var g=u.inactive?a:u.color,x=h?h(u.value,u,f):u.value;return w.createElement("li",ec({className:m,style:c,key:"legend-item-".concat(f)},ms(e,u,f)),w.createElement(am,{width:r,height:r,viewBox:l,style:d,"aria-label":"".concat(x," legend icon")},w.createElement(E_,{data:u,iconType:s,inactiveColor:a})),w.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},x))})}var k_=e=>{var t=Kt(e,P_),{payload:r,layout:n,align:i}=t;if(!r||!r.length)return null;var a={padding:0,margin:0,textAlign:n==="horizontal"?i:"left"};return w.createElement("ul",{className:"recharts-default-legend",style:a},w.createElement(O_,ec({},t,{payload:r})))},Id={},Md={},ay;function T_(){return ay||(ay=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let a=0;a<r.length;a++){const s=r[a],l=n(s);i.has(l)||i.set(l,s)}return Array.from(i.values())}e.uniqBy=t})(Md)),Md}var Rd={},sy;function WS(){return sy||(sy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(Rd)),Rd}var Ad={},Nd={},Dd={},ly;function I_(){return ly||(ly=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Dd)),Dd}var cy;function hm(){return cy||(cy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=I_();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(Nd)),Nd}var _d={},uy;function M_(){return uy||(uy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(_d)),_d}var dy;function R_(){return dy||(dy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hm(),r=M_();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n})(Ad)),Ad}var Bd={},$d={},fy;function A_(){return fy||(fy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fm();function r(n){return function(i){return t.get(i,n)}}e.property=r})($d)),$d}var Ld={},zd={},Fd={},Vd={},py;function US(){return py||(py=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(Vd)),Vd}var Hd={},hy;function KS(){return hy||(hy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(Hd)),Hd}var Wd={},my;function qS(){return my||(my=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.eq=t})(Wd)),Wd}var gy;function N_(){return gy||(gy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=US(),r=KS(),n=qS();function i(u,f,h){return typeof h!="function"?i(u,f,()=>{}):a(u,f,function m(g,x,v,b,C,P){const E=h(g,x,v,b,C,P);return E!==void 0?!!E:a(g,x,m,P)},new Map)}function a(u,f,h,m){if(f===u)return!0;switch(typeof f){case"object":return s(u,f,h,m);case"function":return Object.keys(f).length>0?a(u,{...f},h,m):n.eq(u,f);default:return t.isObject(u)?typeof f=="string"?f==="":!0:n.eq(u,f)}}function s(u,f,h,m){if(f==null)return!0;if(Array.isArray(f))return c(u,f,h,m);if(f instanceof Map)return l(u,f,h,m);if(f instanceof Set)return d(u,f,h,m);const g=Object.keys(f);if(u==null)return g.length===0;if(g.length===0)return!0;if(m?.has(f))return m.get(f)===u;m?.set(f,u);try{for(let x=0;x<g.length;x++){const v=g[x];if(!r.isPrimitive(u)&&!(v in u)||f[v]===void 0&&u[v]!==void 0||f[v]===null&&u[v]!==null||!h(u[v],f[v],v,u,f,m))return!1}return!0}finally{m?.delete(f)}}function l(u,f,h,m){if(f.size===0)return!0;if(!(u instanceof Map))return!1;for(const[g,x]of f.entries()){const v=u.get(g);if(h(v,x,g,u,f,m)===!1)return!1}return!0}function c(u,f,h,m){if(f.length===0)return!0;if(!Array.isArray(u))return!1;const g=new Set;for(let x=0;x<f.length;x++){const v=f[x];let b=!1;for(let C=0;C<u.length;C++){if(g.has(C))continue;const P=u[C];let E=!1;if(h(P,v,x,u,f,m)&&(E=!0),E){g.add(C),b=!0;break}}if(!b)return!1}return!0}function d(u,f,h,m){return f.size===0?!0:u instanceof Set?c([...u],[...f],h,m):!1}e.isMatchWith=i,e.isSetMatch=d})(Fd)),Fd}var vy;function YS(){return vy||(vy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=N_();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r})(zd)),zd}var Ud={},Kd={},qd={},yy;function D_(){return yy||(yy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(qd)),qd}var Yd={},xy;function GS(){return xy||(xy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(Yd)),Yd}var Gd={},by;function XS(){return by||(by=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",a="[object Arguments]",s="[object Symbol]",l="[object Date]",c="[object Map]",d="[object Set]",u="[object Array]",f="[object Function]",h="[object ArrayBuffer]",m="[object Object]",g="[object Error]",x="[object DataView]",v="[object Uint8Array]",b="[object Uint8ClampedArray]",C="[object Uint16Array]",P="[object Uint32Array]",E="[object BigUint64Array]",j="[object Int8Array]",S="[object Int16Array]",O="[object Int32Array]",k="[object BigInt64Array]",D="[object Float32Array]",B="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=h,e.arrayTag=u,e.bigInt64ArrayTag=k,e.bigUint64ArrayTag=E,e.booleanTag=i,e.dataViewTag=x,e.dateTag=l,e.errorTag=g,e.float32ArrayTag=D,e.float64ArrayTag=B,e.functionTag=f,e.int16ArrayTag=S,e.int32ArrayTag=O,e.int8ArrayTag=j,e.mapTag=c,e.numberTag=n,e.objectTag=m,e.regexpTag=t,e.setTag=d,e.stringTag=r,e.symbolTag=s,e.uint16ArrayTag=C,e.uint32ArrayTag=P,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=b})(Gd)),Gd}var Xd={},wy;function __(){return wy||(wy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(Xd)),Xd}var Cy;function ZS(){return Cy||(Cy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=D_(),r=GS(),n=XS(),i=KS(),a=__();function s(u,f){return l(u,void 0,u,new Map,f)}function l(u,f,h,m=new Map,g=void 0){const x=g?.(u,f,h,m);if(x!==void 0)return x;if(i.isPrimitive(u))return u;if(m.has(u))return m.get(u);if(Array.isArray(u)){const v=new Array(u.length);m.set(u,v);for(let b=0;b<u.length;b++)v[b]=l(u[b],b,h,m,g);return Object.hasOwn(u,"index")&&(v.index=u.index),Object.hasOwn(u,"input")&&(v.input=u.input),v}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const v=new RegExp(u.source,u.flags);return v.lastIndex=u.lastIndex,v}if(u instanceof Map){const v=new Map;m.set(u,v);for(const[b,C]of u)v.set(b,l(C,b,h,m,g));return v}if(u instanceof Set){const v=new Set;m.set(u,v);for(const b of u)v.add(l(b,void 0,h,m,g));return v}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(a.isTypedArray(u)){const v=new(Object.getPrototypeOf(u)).constructor(u.length);m.set(u,v);for(let b=0;b<u.length;b++)v[b]=l(u[b],b,h,m,g);return v}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const v=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return m.set(u,v),c(v,u,h,m,g),v}if(typeof File<"u"&&u instanceof File){const v=new File([u],u.name,{type:u.type});return m.set(u,v),c(v,u,h,m,g),v}if(typeof Blob<"u"&&u instanceof Blob){const v=new Blob([u],{type:u.type});return m.set(u,v),c(v,u,h,m,g),v}if(u instanceof Error){const v=new u.constructor;return m.set(u,v),v.message=u.message,v.name=u.name,v.stack=u.stack,v.cause=u.cause,c(v,u,h,m,g),v}if(u instanceof Boolean){const v=new Boolean(u.valueOf());return m.set(u,v),c(v,u,h,m,g),v}if(u instanceof Number){const v=new Number(u.valueOf());return m.set(u,v),c(v,u,h,m,g),v}if(u instanceof String){const v=new String(u.valueOf());return m.set(u,v),c(v,u,h,m,g),v}if(typeof u=="object"&&d(u)){const v=Object.create(Object.getPrototypeOf(u));return m.set(u,v),c(v,u,h,m,g),v}return u}function c(u,f,h=u,m,g){const x=[...Object.keys(f),...t.getSymbols(f)];for(let v=0;v<x.length;v++){const b=x[v],C=Object.getOwnPropertyDescriptor(u,b);(C==null||C.writable)&&(u[b]=l(f[b],b,h,m,g))}}function d(u){switch(r.getTag(u)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=s,e.cloneDeepWithImpl=l,e.copyProperties=c})(Kd)),Kd}var Sy;function B_(){return Sy||(Sy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ZS();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(Ud)),Ud}var jy;function $_(){return jy||(jy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=YS(),r=B_();function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n})(Ld)),Ld}var Zd={},Qd={},Jd={},Py;function L_(){return Py||(Py=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ZS(),r=XS();function n(i,a){return t.cloneDeepWith(i,(s,l,c,d)=>{const u=a?.(s,l,c,d);if(u!==void 0)return u;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case r.numberTag:case r.stringTag:case r.booleanTag:{const f=new i.constructor(i?.valueOf());return t.copyProperties(f,i),f}case r.argumentsTag:{const f={};return t.copyProperties(f,i),f.length=i.length,f[Symbol.iterator]=i[Symbol.iterator],f}default:return}})}e.cloneDeepWith=n})(Jd)),Jd}var Ey;function z_(){return Ey||(Ey=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=L_();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(Qd)),Qd}var ef={},tf={},Oy;function QS(){return Oy||(Oy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(tf)),tf}var rf={},ky;function F_(){return ky||(ky=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GS();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(rf)),rf}var Ty;function V_(){return Ty||(Ty=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zS(),r=QS(),n=F_(),i=dm();function a(s,l){let c;if(Array.isArray(l)?c=l:typeof l=="string"&&t.isDeepKey(l)&&s?.[l]==null?c=i.toPath(l):c=[l],c.length===0)return!1;let d=s;for(let u=0;u<c.length;u++){const f=c[u];if((d==null||!Object.hasOwn(d,f))&&!((Array.isArray(d)||n.isArguments(d))&&r.isIndex(f)&&f<d.length))return!1;d=d[f]}return!0}e.has=a})(ef)),ef}var Iy;function H_(){return Iy||(Iy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=YS(),r=um(),n=z_(),i=fm(),a=V_();function s(l,c){switch(typeof l){case"object":{Object.is(l?.valueOf(),-0)&&(l="-0");break}case"number":{l=r.toKey(l);break}}return c=n.cloneDeep(c),function(d){const u=i.get(d,l);return u===void 0?a.has(d,l):c===void 0?u===void 0:t.isMatch(u,c)}}e.matchesProperty=s})(Zd)),Zd}var My;function W_(){return My||(My=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=WS(),r=A_(),n=$_(),i=H_();function a(s){if(s==null)return t.identity;switch(typeof s){case"function":return s;case"object":return Array.isArray(s)&&s.length===2?i.matchesProperty(s[0],s[1]):n.matches(s);case"string":case"symbol":case"number":return r.property(s)}}e.iteratee=a})(Bd)),Bd}var Ry;function U_(){return Ry||(Ry=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=T_(),r=WS(),n=R_(),i=W_();function a(s,l=r.identity){return n.isArrayLikeObject(s)?t.uniqBy(Array.from(s),i.iteratee(l)):[]}e.uniqBy=a})(Id)),Id}var nf,Ay;function K_(){return Ay||(Ay=1,nf=U_().uniqBy),nf}var q_=K_();const Ny=jr(q_);function JS(e,t,r){return t===!0?Ny(e,r):typeof t=="function"?Ny(e,t):e}var il={exports:{}},of={},ol={exports:{}},af={};/**
1032
+ * @license React
1033
+ * use-sync-external-store-shim.production.js
1034
+ *
1035
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1036
+ *
1037
+ * This source code is licensed under the MIT license found in the
1038
+ * LICENSE file in the root directory of this source tree.
1039
+ */var Dy;function Y_(){if(Dy)return af;Dy=1;var e=y;function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function l(f,h){var m=h(),g=n({inst:{value:m,getSnapshot:h}}),x=g[0].inst,v=g[1];return a(function(){x.value=m,x.getSnapshot=h,c(x)&&v({inst:x})},[f,m,h]),i(function(){return c(x)&&v({inst:x}),f(function(){c(x)&&v({inst:x})})},[f]),s(m),m}function c(f){var h=f.getSnapshot;f=f.value;try{var m=h();return!r(f,m)}catch{return!0}}function d(f,h){return h()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return af.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,af}var sf={};/**
1040
+ * @license React
1041
+ * use-sync-external-store-shim.development.js
1042
+ *
1043
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1044
+ *
1045
+ * This source code is licensed under the MIT license found in the
1046
+ * LICENSE file in the root directory of this source tree.
1047
+ */var _y;function G_(){return _y||(_y=1,process.env.NODE_ENV!=="production"&&(function(){function e(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}function t(m,g){u||i.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var x=g();if(!f){var v=g();a(x,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=s({inst:{value:x,getSnapshot:g}});var b=v[0].inst,C=v[1];return c(function(){b.value=x,b.getSnapshot=g,r(b)&&C({inst:b})},[m,x,g]),l(function(){return r(b)&&C({inst:b}),m(function(){r(b)&&C({inst:b})})},[m]),d(x),x}function r(m){var g=m.getSnapshot;m=m.value;try{var x=g();return!a(m,x)}catch{return!0}}function n(m,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=y,a=typeof Object.is=="function"?Object.is:e,s=i.useState,l=i.useEffect,c=i.useLayoutEffect,d=i.useDebugValue,u=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;sf.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),sf}var By;function ej(){return By||(By=1,process.env.NODE_ENV==="production"?ol.exports=Y_():ol.exports=G_()),ol.exports}/**
1048
+ * @license React
1049
+ * use-sync-external-store-shim/with-selector.production.js
1050
+ *
1051
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1052
+ *
1053
+ * This source code is licensed under the MIT license found in the
1054
+ * LICENSE file in the root directory of this source tree.
1055
+ */var $y;function X_(){if($y)return of;$y=1;var e=y,t=ej();function r(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,l=e.useMemo,c=e.useDebugValue;return of.useSyncExternalStoreWithSelector=function(d,u,f,h,m){var g=a(null);if(g.current===null){var x={hasValue:!1,value:null};g.current=x}else x=g.current;g=l(function(){function b(S){if(!C){if(C=!0,P=S,S=h(S),m!==void 0&&x.hasValue){var O=x.value;if(m(O,S))return E=O}return E=S}if(O=E,n(P,S))return O;var k=h(S);return m!==void 0&&m(O,k)?(P=S,O):(P=S,E=k)}var C=!1,P,E,j=f===void 0?null:f;return[function(){return b(u())},j===null?void 0:function(){return b(j())}]},[u,f,h,m]);var v=i(d,g[0],g[1]);return s(function(){x.hasValue=!0,x.value=v},[v]),c(v),v},of}var lf={};/**
1056
+ * @license React
1057
+ * use-sync-external-store-shim/with-selector.development.js
1058
+ *
1059
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1060
+ *
1061
+ * This source code is licensed under the MIT license found in the
1062
+ * LICENSE file in the root directory of this source tree.
1063
+ */var Ly;function Z_(){return Ly||(Ly=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=y,r=ej(),n=typeof Object.is=="function"?Object.is:e,i=r.useSyncExternalStore,a=t.useRef,s=t.useEffect,l=t.useMemo,c=t.useDebugValue;lf.useSyncExternalStoreWithSelector=function(d,u,f,h,m){var g=a(null);if(g.current===null){var x={hasValue:!1,value:null};g.current=x}else x=g.current;g=l(function(){function b(S){if(!C){if(C=!0,P=S,S=h(S),m!==void 0&&x.hasValue){var O=x.value;if(m(O,S))return E=O}return E=S}if(O=E,n(P,S))return O;var k=h(S);return m!==void 0&&m(O,k)?(P=S,O):(P=S,E=k)}var C=!1,P,E,j=f===void 0?null:f;return[function(){return b(u())},j===null?void 0:function(){return b(j())}]},[u,f,h,m]);var v=i(d,g[0],g[1]);return s(function(){x.hasValue=!0,x.value=v},[v]),c(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),lf}var zy;function Q_(){return zy||(zy=1,process.env.NODE_ENV==="production"?il.exports=X_():il.exports=Z_()),il.exports}var J_=Q_(),mm=y.createContext(null),eB=e=>e,nt=()=>{var e=y.useContext(mm);return e?e.store.dispatch:eB},Rl=()=>{},tB=()=>Rl,rB=(e,t)=>e===t;function je(e){var t=y.useContext(mm);return J_.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:tB,t?t.store.getState:Rl,t?t.store.getState:Rl,t?e:Rl,rB)}var nB=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const i={};e(i)===i&&(n=!0)}catch{}if(n){let i;try{throw new Error}catch(a){({stack:i}=a)}console.warn(`The result function returned its own inputs without modification. e.g
1064
+ \`createSelector([state => state.todos], todos => todos)\`
1065
+ This could lead to inefficient memoization and unnecessary re-renders.
1066
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},iB=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:a,inputSelectorResultsCopy:s}=e,l=n(()=>({}),...i);if(!(l.apply(null,a)===l.apply(null,s))){let d;try{throw new Error}catch(u){({stack:d}=u)}console.warn(`An input selector returned a different result when passed same arguments.
1067
+ This means your output selector will likely run more frequently than intended.
1068
+ Avoid returning a new reference inside your input selector, e.g.
1069
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:a,secondInputs:s,stack:d})}},oB={inputStabilityCheck:"once",identityFunctionCheck:"once"};function aB(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function sB(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function lB(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Fy=e=>Array.isArray(e)?e:[e];function cB(e){const t=Array.isArray(e[0])?e[0]:e;return lB(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Vy(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var uB=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...oB,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:nB},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:iB}}},dB=class{constructor(e){this.value=e}deref(){return this.value}},fB=typeof WeakRef<"u"?WeakRef:dB,pB=0,Hy=1;function al(){return{s:pB,v:void 0,o:null,p:null}}function tj(e,t={}){let r=al();const{resultEqualityCheck:n}=t;let i,a=0;function s(){let l=r;const{length:c}=arguments;for(let f=0,h=c;f<h;f++){const m=arguments[f];if(typeof m=="function"||typeof m=="object"&&m!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const x=g.get(m);x===void 0?(l=al(),g.set(m,l)):l=x}else{let g=l.p;g===null&&(l.p=g=new Map);const x=g.get(m);x===void 0?(l=al(),g.set(m,l)):l=x}}const d=l;let u;if(l.s===Hy)u=l.v;else if(u=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,u)&&(u=f,a!==0&&a--),i=typeof u=="object"&&u!==null||typeof u=="function"?new fB(u):u}return d.s=Hy,d.v=u,u}return s.clearCache=()=>{r=al(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function hB(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,s=0,l,c={},d=i.pop();typeof d=="object"&&(c=d,d=i.pop()),aB(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const u={...r,...c},{memoize:f,memoizeOptions:h=[],argsMemoize:m=tj,argsMemoizeOptions:g=[],devModeChecks:x={}}=u,v=Fy(h),b=Fy(g),C=cB(i),P=f(function(){return a++,d.apply(null,arguments)},...v);let E=!0;const j=m(function(){s++;const O=Vy(C,arguments);if(l=P.apply(null,O),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:k,inputStabilityCheck:D}=uB(E,x);if(k.shouldRun&&k.run(d,O,l),D.shouldRun){const B=Vy(C,arguments);D.run({inputSelectorResults:O,inputSelectorResultsCopy:B},{memoize:f,memoizeOptions:v},arguments)}E&&(E=!1)}return l},...b);return Object.assign(j,{resultFunc:d,memoizedResultFunc:P,dependencies:C,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>l,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:m})};return Object.assign(n,{withTypes:()=>n}),n}var ee=hB(tj),mB=Object.assign((e,t=ee)=>{sB(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((s,l,c)=>(s[r[c]]=l,s),{}))},{withTypes:()=>mB}),cf={},uf={},df={},Wy;function gB(){return Wy||(Wy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const s=t(n),l=t(i);if(s===l&&s===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?l-s:s-l}return 0};e.compareValues=r})(df)),df}var ff={},pf={},Uy;function rj(){return Uy||(Uy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(pf)),pf}var Ky;function vB(){return Ky||(Ky=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rj(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,s){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||s!=null&&Object.hasOwn(s,a)}e.isKey=i})(ff)),ff}var qy;function yB(){return qy||(qy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gB(),r=vB(),n=dm();function i(a,s,l,c){if(a==null)return[];l=c?void 0:l,Array.isArray(a)||(a=Object.values(a)),Array.isArray(s)||(s=s==null?[null]:[s]),s.length===0&&(s=[null]),Array.isArray(l)||(l=l==null?[]:[l]),l=l.map(m=>String(m));const d=(m,g)=>{let x=m;for(let v=0;v<g.length&&x!=null;++v)x=x[g[v]];return x},u=(m,g)=>g==null||m==null?g:typeof m=="object"&&"key"in m?Object.hasOwn(g,m.key)?g[m.key]:d(g,m.path):typeof m=="function"?m(g):Array.isArray(m)?d(g,m):typeof g=="object"?g[m]:g,f=s.map(m=>(Array.isArray(m)&&m.length===1&&(m=m[0]),m==null||typeof m=="function"||Array.isArray(m)||r.isKey(m)?m:{key:m,path:n.toPath(m)}));return a.map(m=>({original:m,criteria:f.map(g=>u(g,m))})).slice().sort((m,g)=>{for(let x=0;x<f.length;x++){const v=t.compareValues(m.criteria[x],g.criteria[x],l[x]);if(v!==0)return v}return 0}).map(m=>m.original)}e.orderBy=i})(uf)),uf}var hf={},Yy;function xB(){return Yy||(Yy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),s=(l,c)=>{for(let d=0;d<l.length;d++){const u=l[d];Array.isArray(u)&&c<a?s(u,c+1):i.push(u)}};return s(r,0),i}e.flatten=t})(hf)),hf}var mf={},Gy;function nj(){return Gy||(Gy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QS(),r=hm(),n=US(),i=qS();function a(s,l,c){return n.isObject(c)&&(typeof l=="number"&&r.isArrayLike(c)&&t.isIndex(l)&&l<c.length||typeof l=="string"&&l in c)?i.eq(c[l],s):!1}e.isIterateeCall=a})(mf)),mf}var Xy;function bB(){return Xy||(Xy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yB(),r=xB(),n=nj();function i(a,...s){const l=s.length;return l>1&&n.isIterateeCall(a,s[0],s[1])?s=[]:l>2&&n.isIterateeCall(s[0],s[1],s[2])&&(s=[s[0]]),t.orderBy(a,r.flatten(s),["asc"])}e.sortBy=i})(cf)),cf}var gf,Zy;function wB(){return Zy||(Zy=1,gf=bB().sortBy),gf}var CB=wB();const Yc=jr(CB);var ij=e=>e.legend.settings,SB=e=>e.legend.size,jB=e=>e.legend.payload,PB=ee([jB,ij],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Yc(n,r):n});function EB(){return je(PB)}var sl=1;function oj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=y.useState({height:0,left:0,top:0,width:0}),n=y.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),s={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(s.height-t.height)>sl||Math.abs(s.left-t.left)>sl||Math.abs(s.top-t.top)>sl||Math.abs(s.width-t.width)>sl)&&r({height:s.height,left:s.left,top:s.top,width:s.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Zt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var OB=typeof Symbol=="function"&&Symbol.observable||"@@observable",Qy=OB,vf=()=>Math.random().toString(36).substring(7).split("").join("."),kB={INIT:`@@redux/INIT${vf()}`,REPLACE:`@@redux/REPLACE${vf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vf()}`},Ni=kB;function gs(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function TB(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(RB(e))return"date";if(MB(e))return"error";const r=IB(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function IB(e){return typeof e.constructor=="function"?e.constructor.name:null}function MB(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function RB(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ii(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=TB(e)),t}function aj(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Zt(2):`Expected the root reducer to be a function. Instead, received: '${ii(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Zt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Zt(1):`Expected the enhancer to be a function. Instead, received: '${ii(r)}'`);return r(aj)(e,t)}let n=e,i=t,a=new Map,s=a,l=0,c=!1;function d(){s===a&&(s=new Map,a.forEach((v,b)=>{s.set(b,v)}))}function u(){if(c)throw new Error(process.env.NODE_ENV==="production"?Zt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Zt(4):`Expected the listener to be a function. Instead, received: '${ii(v)}'`);if(c)throw new Error(process.env.NODE_ENV==="production"?Zt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let b=!0;d();const C=l++;return s.set(C,v),function(){if(b){if(c)throw new Error(process.env.NODE_ENV==="production"?Zt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");b=!1,d(),s.delete(C),a=null}}}function h(v){if(!gs(v))throw new Error(process.env.NODE_ENV==="production"?Zt(7):`Actions must be plain objects. Instead, the actual type was: '${ii(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?Zt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?Zt(17):`Action "type" property must be a string. Instead, the actual type was: '${ii(v.type)}'. Value was: '${v.type}' (stringified)`);if(c)throw new Error(process.env.NODE_ENV==="production"?Zt(9):"Reducers may not dispatch actions.");try{c=!0,i=n(i,v)}finally{c=!1}return(a=s).forEach(C=>{C()}),v}function m(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Zt(10):`Expected the nextReducer to be a function. Instead, received: '${ii(v)}`);n=v,h({type:Ni.REPLACE})}function g(){const v=f;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?Zt(11):`Expected the observer to be an object. Instead, received: '${ii(b)}'`);function C(){const E=b;E.next&&E.next(u())}return C(),{unsubscribe:v(C)}},[Qy](){return this}}}return h({type:Ni.INIT}),{dispatch:h,subscribe:f,getState:u,replaceReducer:m,[Qy]:g}}function Jy(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function AB(e,t,r,n){const i=Object.keys(t),a=r&&r.type===Ni.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!gs(e))return`The ${a} has unexpected type of "${ii(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const s=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!n[l]);if(s.forEach(l=>{n[l]=!0}),!(r&&r.type===Ni.REPLACE)&&s.length>0)return`Unexpected ${s.length>1?"keys":"key"} "${s.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function NB(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Ni.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Zt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Ni.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Zt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ni.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function sj(e){const t=Object.keys(e),r={};for(let s=0;s<t.length;s++){const l=t[s];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&Jy(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(r[l]=e[l])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let a;try{NB(r)}catch(s){a=s}return function(l={},c){if(a)throw a;if(process.env.NODE_ENV!=="production"){const f=AB(l,r,c,i);f&&Jy(f)}let d=!1;const u={};for(let f=0;f<n.length;f++){const h=n[f],m=r[h],g=l[h],x=m(g,c);if(typeof x>"u"){const v=c&&c.type;throw new Error(process.env.NODE_ENV==="production"?Zt(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[h]=x,d=d||x!==g}return d=d||n.length!==Object.keys(l).length,d?u:l}}function tc(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function DB(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?Zt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const s={getState:i.getState,dispatch:(c,...d)=>a(c,...d)},l=e.map(c=>c(s));return a=tc(...l)(i.dispatch),{...i,dispatch:a}}}function gm(e){return gs(e)&&"type"in e&&typeof e.type=="string"}var lj=Symbol.for("immer-nothing"),ex=Symbol.for("immer-draftable"),Sr=Symbol.for("immer-state"),_B=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ur(e,...t){if(process.env.NODE_ENV!=="production"){const r=_B[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var qa=Object.getPrototypeOf;function Fi(e){return!!e&&!!e[Sr]}function Nn(e){return e?cj(e)||Array.isArray(e)||!!e[ex]||!!e.constructor?.[ex]||vs(e)||Xc(e):!1}var BB=Object.prototype.constructor.toString(),tx=new WeakMap;function cj(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=tx.get(r);return n===void 0&&(n=Function.toString.call(r),tx.set(r,n)),n===BB}function rc(e,t,r=!0){Gc(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Gc(e){const t=e[Sr];return t?t.type_:Array.isArray(e)?1:vs(e)?2:Xc(e)?3:0}function Wp(e,t){return Gc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function uj(e,t,r){const n=Gc(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function $B(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function vs(e){return e instanceof Map}function Xc(e){return e instanceof Set}function Ei(e){return e.copy_||e.base_}function Up(e,t){if(vs(e))return new Map(e);if(Xc(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=cj(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Sr];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const s=i[a],l=n[s];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(n[s]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[s]})}return Object.create(qa(e),n)}else{const n=qa(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function vm(e,t=!1){return Zc(e)||Fi(e)||!Nn(e)||(Gc(e)>1&&Object.defineProperties(e,{set:ll,add:ll,clear:ll,delete:ll}),Object.freeze(e),t&&Object.values(e).forEach(r=>vm(r,!0))),e}function LB(){ur(2)}var ll={value:LB};function Zc(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var zB={};function Vi(e){const t=zB[e];return t||ur(0,e),t}var Ya;function dj(){return Ya}function FB(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function rx(e,t){t&&(Vi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Kp(e){qp(e),e.drafts_.forEach(VB),e.drafts_=null}function qp(e){e===Ya&&(Ya=e.parent_)}function nx(e){return Ya=FB(Ya,e)}function VB(e){const t=e[Sr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ix(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Sr].modified_&&(Kp(t),ur(4)),Nn(e)&&(e=nc(t,e),t.parent_||ic(t,e)),t.patches_&&Vi("Patches").generateReplacementPatches_(r[Sr].base_,e,t.patches_,t.inversePatches_)):e=nc(t,r,[]),Kp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==lj?e:void 0}function nc(e,t,r){if(Zc(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[Sr];if(!i)return rc(t,(a,s)=>ox(e,i,t,a,s,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return ic(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let s=a,l=!1;i.type_===3&&(s=new Set(a),a.clear(),l=!0),rc(s,(c,d)=>ox(e,i,a,c,d,r,l),n),ic(e,a,!1),r&&e.patches_&&Vi("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function ox(e,t,r,n,i,a,s){if(i==null||typeof i!="object"&&!s)return;const l=Zc(i);if(!(l&&!s)){if(process.env.NODE_ENV!=="production"&&i===r&&ur(5),Fi(i)){const c=a&&t&&t.type_!==3&&!Wp(t.assigned_,n)?a.concat(n):void 0,d=nc(e,i,c);if(uj(r,n,d),Fi(d))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(Nn(i)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&l)return;nc(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(vs(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&ic(e,i)}}}function ic(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&vm(t,r)}function HB(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:dj(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=ym;r&&(i=[n],a=Ga);const{revoke:s,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=s,l}var ym={get(e,t){if(t===Sr)return e;const r=Ei(e);if(!Wp(r,t))return WB(e,r,t);const n=r[t];return e.finalized_||!Nn(n)?n:n===yf(e.base_,t)?(xf(e),e.copy_[t]=Gp(n,e)):n},has(e,t){return t in Ei(e)},ownKeys(e){return Reflect.ownKeys(Ei(e))},set(e,t,r){const n=fj(Ei(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=yf(Ei(e),t),a=i?.[Sr];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if($B(r,i)&&(r!==void 0||Wp(e.base_,t)))return!0;xf(e),Yp(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return yf(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,xf(e),Yp(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ei(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ur(11)},getPrototypeOf(e){return qa(e.base_)},setPrototypeOf(){ur(12)}},Ga={};rc(ym,(e,t)=>{Ga[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ga.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ur(13),Ga.set.call(this,e,t,void 0)};Ga.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ur(14),ym.set.call(this,e[0],t,r,e[0])};function yf(e,t){const r=e[Sr];return(r?Ei(r):e)[t]}function WB(e,t,r){const n=fj(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function fj(e,t){if(!(t in e))return;let r=qa(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=qa(r)}}function Yp(e){e.modified_||(e.modified_=!0,e.parent_&&Yp(e.parent_))}function xf(e){e.copy_||(e.copy_=Up(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var UB=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const s=this;return function(c=a,...d){return s.produce(c,u=>r.call(this,u,...d))}}typeof r!="function"&&ur(6),n!==void 0&&typeof n!="function"&&ur(7);let i;if(Nn(t)){const a=nx(this),s=Gp(t,void 0);let l=!0;try{i=r(s),l=!1}finally{l?Kp(a):qp(a)}return rx(a,n),ix(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===lj&&(i=void 0),this.autoFreeze_&&vm(i,!0),n){const a=[],s=[];Vi("Patches").generateReplacementPatches_(t,i,a,s),n(a,s)}return i}else ur(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...l)=>this.produceWithPatches(s,c=>t(c,...l));let n,i;return[this.produce(t,r,(s,l)=>{n=s,i=l}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Nn(e)||ur(8),Fi(e)&&(e=In(e));const t=nx(this),r=Gp(e,void 0);return r[Sr].isManual_=!0,qp(t),r}finishDraft(e,t){const r=e&&e[Sr];(!r||!r.isManual_)&&ur(9);const{scope_:n}=r;return rx(n,t),ix(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Vi("Patches").applyPatches_;return Fi(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Gp(e,t){const r=vs(e)?Vi("MapSet").proxyMap_(e,t):Xc(e)?Vi("MapSet").proxySet_(e,t):HB(e,t);return(t?t.scope_:dj()).drafts_.push(r),r}function In(e){return Fi(e)||ur(10,e),pj(e)}function pj(e){if(!Nn(e)||Zc(e))return e;const t=e[Sr];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Up(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Up(e,!0);return rc(r,(i,a)=>{uj(r,i,pj(a))},n),t&&(t.finalized_=!1),r}var Xp=new UB,hj=Xp.produce,KB=Xp.setUseStrictIteration.bind(Xp);function mj(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var qB=mj(),YB=mj,GB=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?tc:tc.apply(null,arguments)},XB=e=>e&&typeof e.match=="function";function Br(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?Ue(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>gm(n)&&n.type===e,r}function ZB(e){return typeof e=="function"&&"type"in e&&XB(e)}function QB(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
1070
+ Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function JB(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=ZB}=e;return()=>r=>n=>(t(n)&&console.warn(QB(n.type)),r(n))}function gj(e,t){let r=0;return{measureTime(n){const i=Date.now();try{return n()}finally{const a=Date.now();r+=a-i}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
1071
+ If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
1072
+ It is disabled in production builds, so you don't need to worry about that.`)}}}var vj=class Pa extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Pa.prototype)}static get[Symbol.species](){return Pa}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Pa(...t[0].concat(this)):new Pa(...t.concat(this))}};function ax(e){return Nn(e)?hj(e,()=>{}):e}function cl(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function e6(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function t6(e,t,r){const n=yj(e,t,r);return{detectMutations(){return xj(e,t,n,r)}}}function yj(e,t=[],r,n="",i=new Set){const a={value:r};if(!e(r)&&!i.has(r)){i.add(r),a.children={};for(const s in r){const l=n?n+"."+s:s;t.length&&t.indexOf(l)!==-1||(a.children[s]=yj(e,t,r[s],l))}}return a}function xj(e,t=[],r,n,i=!1,a=""){const s=r?r.value:void 0,l=s===n;if(i&&!l&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(s)||e(n))return{wasMutated:!1};const c={};for(let u in r.children)c[u]=!0;for(let u in n)c[u]=!0;const d=t.length>0;for(let u in c){const f=a?a+"."+u:u;if(d&&t.some(g=>g instanceof RegExp?g.test(f):f===g))continue;const h=xj(e,t,r.children[u],n[u],l,f);if(h.wasMutated)return h}return{wasMutated:!1}}function r6(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(l,c,d,u){return JSON.stringify(l,r(c,u),d)},r=function(l,c){let d=[],u=[];return c||(c=function(f,h){return d[0]===h?"[Circular ~]":"[Circular ~."+u.slice(0,d.indexOf(h)).join(".")+"]"}),function(f,h){if(d.length>0){var m=d.indexOf(this);~m?d.splice(m+1):d.push(this),~m?u.splice(m,1/0,f):u.push(f),~d.indexOf(h)&&(h=c.call(this,f,h))}else d.push(h);return l==null?h:l.call(this,f,h)}},{isImmutable:n=e6,ignoredPaths:i,warnAfter:a=32}=e;const s=t6.bind(null,n,i);return({getState:l})=>{let c=l(),d=s(c),u;return f=>h=>{const m=gj(a,"ImmutableStateInvariantMiddleware");m.measureTime(()=>{if(c=l(),u=d.detectMutations(),d=s(c),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ue(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=f(h);return m.measureTime(()=>{if(c=l(),u=d.detectMutations(),d=s(c),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ue(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(h)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),m.warnIfExceeded(),g}}}}function bj(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||gs(e)}function Zp(e,t="",r=bj,n,i=[],a){let s;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||a?.has(e))return!1;const l=n!=null?n(e):Object.entries(e),c=i.length>0;for(const[d,u]of l){const f=t?t+"."+d:d;if(!(c&&i.some(m=>m instanceof RegExp?m.test(f):f===m))){if(!r(u))return{keyPath:f,value:u};if(typeof u=="object"&&(s=Zp(u,f,r,n,i,a),s))return s}}return a&&wj(e)&&a.add(e),!1}function wj(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!wj(t))return!1;return!0}function n6(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=bj,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:s=32,ignoreState:l=!1,ignoreActions:c=!1,disableCache:d=!1}=e,u=!d&&WeakSet?new WeakSet:void 0;return f=>h=>m=>{if(!gm(m))return h(m);const g=h(m),x=gj(s,"SerializableStateInvariantMiddleware");return!c&&!(n.length&&n.indexOf(m.type)!==-1)&&x.measureTime(()=>{const v=Zp(m,"",t,r,i,u);if(v){const{keyPath:b,value:C}=v;console.error(`A non-serializable value was detected in an action, in the path: \`${b}\`. Value:`,C,`
1073
+ Take a look at the logic that dispatched this action: `,m,`
1074
+ (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
1075
+ (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),l||(x.measureTime(()=>{const v=f.getState(),b=Zp(v,"",t,r,a,u);if(b){const{keyPath:C,value:P}=b;console.error(`A non-serializable value was detected in the state, in the path: \`${C}\`. Value:`,P,`
1076
+ Take a look at the reducer(s) handling this action type: ${m.type}.
1077
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),x.warnIfExceeded()),g}}}function ul(e){return typeof e=="boolean"}var i6=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new vj;if(r&&(ul(r)?s.push(qB):s.push(YB(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let l={};ul(n)||(l=n),s.unshift(r6(l))}if(i){let l={};ul(i)||(l=i),s.push(n6(l))}if(a){let l={};ul(a)||(l=a),s.unshift(JB(l))}}return s},Cj="RTK_autoBatch",Mt=()=>e=>({payload:e,meta:{[Cj]:!0}}),sx=e=>t=>{setTimeout(t,e)},Sj=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,s=!1;const l=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sx(10):e.type==="callback"?e.queueNotification:sx(e.timeout),d=()=>{s=!1,a&&(a=!1,l.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const f=()=>i&&u(),h=n.subscribe(f);return l.add(u),()=>{h(),l.delete(u)}},dispatch(u){try{return i=!u?.meta?.[Cj],a=!i,a&&(s||(s=!0,c(d))),n.dispatch(u)}finally{i=!0}}})},o6=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new vj(e);return n&&i.push(Sj(typeof n=="object"?n:void 0)),i};function a6(e){const t=i6(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=e||{};let c;if(typeof r=="function")c=r;else if(gs(r))c=sj(r);else throw new Error(process.env.NODE_ENV==="production"?Ue(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Ue(2):"`middleware` field must be a callback");let d;if(typeof n=="function"){if(d=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(d))throw new Error(process.env.NODE_ENV==="production"?Ue(3):"when using a middleware builder function, an array of middleware must be returned")}else d=t();if(process.env.NODE_ENV!=="production"&&d.some(x=>typeof x!="function"))throw new Error(process.env.NODE_ENV==="production"?Ue(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let x=new Set;d.forEach(v=>{if(x.has(v))throw new Error(process.env.NODE_ENV==="production"?Ue(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");x.add(v)})}let u=tc;i&&(u=GB({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=DB(...d),h=o6(f);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?Ue(5):"`enhancers` field must be a callback");let m=typeof l=="function"?l(h):h();if(process.env.NODE_ENV!=="production"&&!Array.isArray(m))throw new Error(process.env.NODE_ENV==="production"?Ue(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&m.some(x=>typeof x!="function"))throw new Error(process.env.NODE_ENV==="production"?Ue(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&d.length&&!m.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...m);return aj(c,s,g)}function jj(e){const t={},r=[];let n;const i={addCase(a,s){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?Ue(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?Ue(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?Ue(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?Ue(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=s,i},addAsyncThunk(a,s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Ue(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return s.pending&&(t[a.pending.type]=s.pending),s.rejected&&(t[a.rejected.type]=s.rejected),s.fulfilled&&(t[a.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Ue(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:s}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Ue(31):"`builder.addDefaultCase` can only be called once");return n=a,i}};return e(i),[t,r,n]}KB(!1);function s6(e){return typeof e=="function"}function l6(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Ue(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,i]=jj(t),a;if(s6(e))a=()=>ax(e());else{const l=ax(e);a=()=>l}function s(l=a(),c){let d=[r[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return d.filter(u=>!!u).length===0&&(d=[i]),d.reduce((u,f)=>{if(f)if(Fi(u)){const m=f(u,c);return m===void 0?u:m}else{if(Nn(u))return hj(u,h=>f(h,c));{const h=f(u,c);if(h===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return u},l)}return s.getInitialState=a,s}var c6="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",u6=(e=21)=>{let t="",r=e;for(;r--;)t+=c6[Math.random()*64|0];return t},d6=Symbol.for("rtk-slice-createasyncthunk");function f6(e,t){return`${e}/${t}`}function p6({creators:e}={}){const t=e?.asyncThunk?.[d6];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(process.env.NODE_ENV==="production"?Ue(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const s=(typeof n.reducers=="function"?n.reducers(m6()):n.reducers)||{},l=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(P,E){const j=typeof P=="string"?P:P.type;if(!j)throw new Error(process.env.NODE_ENV==="production"?Ue(12):"`context.addCase` cannot be called with an empty action type");if(j in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Ue(13):"`context.addCase` cannot be called with two reducers for the same action type: "+j);return c.sliceCaseReducersByType[j]=E,d},addMatcher(P,E){return c.sliceMatchers.push({matcher:P,reducer:E}),d},exposeAction(P,E){return c.actionCreators[P]=E,d},exposeCaseReducer(P,E){return c.sliceCaseReducersByName[P]=E,d}};l.forEach(P=>{const E=s[P],j={reducerName:P,type:f6(i,P),createNotation:typeof n.reducers=="function"};v6(E)?x6(j,E,d,t):g6(j,E,d)});function u(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Ue(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[P={},E=[],j=void 0]=typeof n.extraReducers=="function"?jj(n.extraReducers):[n.extraReducers],S={...P,...c.sliceCaseReducersByType};return l6(n.initialState,O=>{for(let k in S)O.addCase(k,S[k]);for(let k of c.sliceMatchers)O.addMatcher(k.matcher,k.reducer);for(let k of E)O.addMatcher(k.matcher,k.reducer);j&&O.addDefaultCase(j)})}const f=P=>P,h=new Map,m=new WeakMap;let g;function x(P,E){return g||(g=u()),g(P,E)}function v(){return g||(g=u()),g.getInitialState()}function b(P,E=!1){function j(O){let k=O[P];if(typeof k>"u"){if(E)k=cl(m,j,v);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ue(15):"selectSlice returned undefined for an uninjected slice reducer")}return k}function S(O=f){const k=cl(h,E,()=>new WeakMap);return cl(k,O,()=>{const D={};for(const[B,M]of Object.entries(n.selectors??{}))D[B]=h6(M,O,()=>cl(m,O,v),E);return D})}return{reducerPath:P,getSelectors:S,get selectors(){return S(j)},selectSlice:j}}const C={name:i,reducer:x,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:v,...b(a),injectInto(P,{reducerPath:E,...j}={}){const S=E??a;return P.inject({reducerPath:S,reducer:x},j),{...C,...b(S,!0)}}};return C}}function h6(e,t,r,n){function i(a,...s){let l=t(a);if(typeof l>"u"){if(n)l=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ue(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...s)}return i.unwrapped=e,i}var fr=p6();function m6(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function g6({type:e,reducerName:t,createNotation:r},n,i){let a,s;if("reducer"in n){if(r&&!y6(n))throw new Error(process.env.NODE_ENV==="production"?Ue(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=n.reducer,s=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?Br(e,s):Br(e))}function v6(e){return e._reducerDefinitionType==="asyncThunk"}function y6(e){return e._reducerDefinitionType==="reducerWithPrepare"}function x6({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?Ue(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:s,pending:l,rejected:c,settled:d,options:u}=r,f=i(e,a,u);n.exposeAction(t,f),s&&n.addCase(f.fulfilled,s),l&&n.addCase(f.pending,l),c&&n.addCase(f.rejected,c),d&&n.addMatcher(f.settled,d),n.exposeCaseReducer(t,{fulfilled:s||dl,pending:l||dl,rejected:c||dl,settled:d||dl})}function dl(){}var b6="task",Pj="listener",Ej="completed",xm="cancelled",w6=`task-${xm}`,C6=`task-${Ej}`,Qp=`${Pj}-${xm}`,S6=`${Pj}-${Ej}`,Qc=class{constructor(e){this.code=e,this.message=`${b6} ${xm} (reason: ${e})`}name="TaskAbortError";message},bm=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?Ue(32):`${t} is not a function`)},oc=()=>{},Oj=(e,t=oc)=>(e.catch(t),e),kj=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Di=(e,t)=>{const r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},_i=e=>{if(e.aborted){const{reason:t}=e;throw new Qc(t)}};function Tj(e,t){let r=oc;return new Promise((n,i)=>{const a=()=>i(new Qc(e.reason));if(e.aborted){a();return}r=kj(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=oc})}var j6=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Qc?"cancelled":"rejected",error:r}}finally{t?.()}},ac=e=>t=>Oj(Tj(e,t).then(r=>(_i(e),r))),Ij=e=>{const t=ac(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:bo}=Object,lx={},ys="listenerMiddleware",P6=(e,t)=>{const r=n=>kj(e,()=>Di(n,e.reason));return(n,i)=>{bm(n,"taskExecutor");const a=new AbortController;r(a);const s=j6(async()=>{_i(e),_i(a.signal);const l=await n({pause:ac(a.signal),delay:Ij(a.signal),signal:a.signal});return _i(a.signal),l},()=>Di(a,C6));return i?.autoJoin&&t.push(s.catch(oc)),{result:ac(e)(s),cancel(){Di(a,w6)}}}},E6=(e,t)=>{const r=async(n,i)=>{_i(t);let a=()=>{};const l=[new Promise((c,d)=>{let u=e({predicate:n,effect:(f,h)=>{h.unsubscribe(),c([f,h.getState(),h.getOriginalState()])}});a=()=>{u(),d()}})];i!=null&&l.push(new Promise(c=>setTimeout(c,i,null)));try{const c=await Tj(t,Promise.race(l));return _i(t),c}finally{a()}};return(n,i)=>Oj(r(n,i))},Mj=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Br(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(process.env.NODE_ENV==="production"?Ue(21):"Creating or removing a listener requires one of the known fields for matching an action");return bm(a,"options.listener"),{predicate:i,type:t,effect:a}},Rj=bo(e=>{const{type:t,predicate:r,effect:n}=Mj(e);return{id:u6(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?Ue(22):"Unsubscribe not initialized")}}},{withTypes:()=>Rj}),cx=(e,t)=>{const{type:r,effect:n,predicate:i}=Mj(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},Jp=e=>{e.pending.forEach(t=>{Di(t,Qp)})},O6=(e,t)=>()=>{for(const r of t.keys())Jp(r);e.clear()},ux=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Aj=bo(Br(`${ys}/add`),{withTypes:()=>Aj}),k6=Br(`${ys}/removeAll`),Nj=bo(Br(`${ys}/remove`),{withTypes:()=>Nj}),T6=(...e)=>{console.error(`${ys}/error`,...e)},xs=(e={})=>{const t=new Map,r=new Map,n=m=>{const g=r.get(m)??0;r.set(m,g+1)},i=m=>{const g=r.get(m)??1;g===1?r.delete(m):r.set(m,g-1)},{extra:a,onError:s=T6}=e;bm(s,"onError");const l=m=>(m.unsubscribe=()=>t.delete(m.id),t.set(m.id,m),g=>{m.unsubscribe(),g?.cancelActive&&Jp(m)}),c=m=>{const g=cx(t,m)??Rj(m);return l(g)};bo(c,{withTypes:()=>c});const d=m=>{const g=cx(t,m);return g&&(g.unsubscribe(),m.cancelActive&&Jp(g)),!!g};bo(d,{withTypes:()=>d});const u=async(m,g,x,v)=>{const b=new AbortController,C=E6(c,b.signal),P=[];try{m.pending.add(b),n(m),await Promise.resolve(m.effect(g,bo({},x,{getOriginalState:v,condition:(E,j)=>C(E,j).then(Boolean),take:C,delay:Ij(b.signal),pause:ac(b.signal),extra:a,signal:b.signal,fork:P6(b.signal,P),unsubscribe:m.unsubscribe,subscribe:()=>{t.set(m.id,m)},cancelActiveListeners:()=>{m.pending.forEach((E,j,S)=>{E!==b&&(Di(E,Qp),S.delete(E))})},cancel:()=>{Di(b,Qp),m.pending.delete(b)},throwIfCancelled:()=>{_i(b.signal)}})))}catch(E){E instanceof Qc||ux(s,E,{raisedBy:"effect"})}finally{await Promise.all(P),Di(b,S6),i(m),m.pending.delete(b)}},f=O6(t,r);return{middleware:m=>g=>x=>{if(!gm(x))return g(x);if(Aj.match(x))return c(x.payload);if(k6.match(x)){f();return}if(Nj.match(x))return d(x.payload);let v=m.getState();const b=()=>{if(v===lx)throw new Error(process.env.NODE_ENV==="production"?Ue(23):`${ys}: getOriginalState can only be called synchronously`);return v};let C;try{if(C=g(x),t.size>0){const P=m.getState(),E=Array.from(t.values());for(const j of E){let S=!1;try{S=j.predicate(x,P,v)}catch(O){S=!1,ux(s,O,{raisedBy:"predicate"})}S&&u(j,x,m,b)}}}finally{v=lx}return C},startListening:c,stopListening:d,clearListeners:f}};function Ue(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var I6={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Dj=fr({name:"chartLayout",initialState:I6,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:M6,setLayout:R6,setChartSize:A6,setScale:N6}=Dj.actions,D6=Dj.reducer;function _j(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function dx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function go(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dx(Object(r),!0).forEach(function(n){_6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _6(e,t,r){return(t=B6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B6(e){var t=$6(e,"string");return typeof t=="symbol"?t:t+""}function $6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dt(e,t,r){return Ut(e)||Ut(t)?r:hn(t)?zi(e,t,r):typeof t=="function"?t(e):r}var L6=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:s,layout:l}=t;if((l==="vertical"||l==="horizontal"&&s==="middle")&&a!=="center"&&Ee(e[a]))return go(go({},e),{},{[a]:e[a]+(n||0)});if((l==="horizontal"||l==="vertical"&&a==="center")&&s!=="middle"&&Ee(e[s]))return go(go({},e),{},{[s]:e[s]+(i||0)})}return e},Xi=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Bj=(e,t,r,n)=>{if(n)return e.map(l=>l.coordinate);var i,a,s=e.map(l=>(l.coordinate===t&&(i=!0),l.coordinate===r&&(a=!0),l.coordinate));return i||s.push(t),a||s.push(r),s},$j=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:s,realScaleType:l,isCategorical:c,categoricalDomain:d,tickCount:u,ticks:f,niceTicks:h,axisType:m}=e;if(!s)return null;var g=l==="scaleBand"&&s.bandwidth?s.bandwidth()/2:2,x=i==="category"&&s.bandwidth?s.bandwidth()/g:0;if(x=m==="angleAxis"&&a&&a.length>=2?Ht(a[0]-a[1])*2*x:x,f||h){var v=(f||h||[]).map((b,C)=>{var P=n?n.indexOf(b):b;return{coordinate:s(P)+x,value:b,offset:x,index:C}});return v.filter(b=>!Qr(b.coordinate))}return c&&d?d.map((b,C)=>({coordinate:s(b)+x,value:b,index:C,offset:x})):s.ticks&&u!=null?s.ticks(u).map((b,C)=>({coordinate:s(b)+x,value:b,offset:x,index:C})):s.domain().map((b,C)=>({coordinate:s(b)+x,value:n?n[b]:b,index:C,offset:x}))},fx=1e-4,z6=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-fx,a=Math.max(n[0],n[1])+fx,s=e(t[0]),l=e(t[r-1]);(s<i||s>a||l<i||l>a)&&e.domain([t[0],t[r-1]])}},F6=(e,t)=>{if(!t||t.length!==2||!Ee(t[0])||!Ee(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Ee(e[0])||e[0]<r)&&(i[0]=r),(!Ee(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},V6=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0,s=0;s<t;++s){var l=Qr(e[s][r][1])?e[s][r][0]:e[s][r][1];l>=0?(e[s][r][0]=i,e[s][r][1]=i+l,i=e[s][r][1]):(e[s][r][0]=a,e[s][r][1]=a+l,a=e[s][r][1])}},H6=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0;a<t;++a){var s=Qr(e[a][r][1])?e[a][r][0]:e[a][r][1];s>=0?(e[a][r][0]=i,e[a][r][1]=i+s,i=e[a][r][1]):(e[a][r][0]=0,e[a][r][1]=0)}},W6={sign:V6,expand:GD,none:Io,silhouette:XD,wiggle:ZD,positive:H6},U6=(e,t,r)=>{var n=W6[r],i=YD().keys(t).value((a,s)=>Number(dt(a,s,0))).order(Vp).offset(n);return i(e)};function K6(e){return e==null?void 0:String(e)}var px=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:s}=e;if(t.type==="category")return r[s]?r[s].coordinate+n:null;var l=dt(a,t.dataKey,t.scale.domain()[s]);return Ut(l)?null:t.scale(l)-i/2+n},q6=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},Y6=e=>{var t=e.flat(2).filter(Ee);return[Math.min(...t),Math.max(...t)]},G6=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],X6=(e,t,r)=>{if(e!=null)return G6(Object.keys(e).reduce((n,i)=>{var a=e[i],{stackedData:s}=a,l=s.reduce((c,d)=>{var u=_j(d,t,r),f=Y6(u);return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]))},hx=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mx=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sc=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Yc(t,u=>u.coordinate),a=1/0,s=1,l=i.length;s<l;s++){var c=i[s],d=i[s-1];a=Math.min((c.coordinate||0)-(d.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function gx(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return go(go({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Jc(e,t){if(e)return String(e);if(typeof t=="string")return t}var Z6=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},Q6=(e,t)=>t==="centric"?e.angle:e.radius,Fn=e=>e.layout.width,Vn=e=>e.layout.height,J6=e=>e.layout.scale,Lj=e=>e.layout.margin,eu=ee(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),tu=ee(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),zj="data-recharts-item-index",Fj="data-recharts-item-data-key",bs=60;function vx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vx(Object(r),!0).forEach(function(n){e5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e5(e,t,r){return(t=t5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t5(e){var t=r5(e,"string");return typeof t=="symbol"?t:t+""}function r5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n5=e=>e.brush.height;function i5(e){var t=tu(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:bs;return r+i}return r},0)}function o5(e){var t=tu(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:bs;return r+i}return r},0)}function a5(e){var t=eu(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function s5(e){var t=eu(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Nt=ee([Fn,Vn,Lj,n5,i5,o5,a5,s5,ij,SB],(e,t,r,n,i,a,s,l,c,d)=>{var u={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+s,bottom:(r.bottom||0)+l},h=fl(fl({},f),u),m=h.bottom;h.bottom+=n,h=L6(h,c,d);var g=e-h.left-h.right,x=t-h.top-h.bottom;return fl(fl({brushBottom:m},h),{},{width:Math.max(g,0),height:Math.max(x,0)})}),l5=ee(Nt,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),wm=ee(Fn,Vn,(e,t)=>({x:0,y:0,width:e,height:t})),c5=y.createContext(null),pr=()=>y.useContext(c5)!=null,ru=e=>e.brush,nu=ee([ru,Nt,Lj],(e,t,r)=>({height:e.height,x:Ee(e.x)?e.x:t.left,y:Ee(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:Ee(e.width)?e.width:t.width})),bf={},wf={},Cf={},yx;function u5(){return yx||(yx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let s,l=null;const c=a!=null&&a.includes("leading"),d=a==null||a.includes("trailing"),u=()=>{l!==null&&(r.apply(s,l),s=void 0,l=null)},f=()=>{d&&u(),x()};let h=null;const m=()=>{h!=null&&clearTimeout(h),h=setTimeout(()=>{h=null,f()},n)},g=()=>{h!==null&&(clearTimeout(h),h=null)},x=()=>{g(),s=void 0,l=null},v=()=>{u()},b=function(...C){if(i?.aborted)return;s=this,l=C;const P=h==null;m(),c&&P&&u()};return b.schedule=m,b.cancel=x,b.flush=v,i?.addEventListener("abort",x,{once:!0}),b}e.debounce=t})(Cf)),Cf}var xx;function d5(){return xx||(xx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=u5();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:s=!1,trailing:l=!0,maxWait:c}=a,d=Array(2);s&&(d[0]="leading"),l&&(d[1]="trailing");let u,f=null;const h=t.debounce(function(...x){u=n.apply(this,x),f=null},i,{edges:d}),m=function(...x){return c!=null&&(f===null&&(f=Date.now()),Date.now()-f>=c)?(u=n.apply(this,x),f=Date.now(),h.cancel(),h.schedule(),u):(h.apply(this,x),u)},g=()=>(h.flush(),u);return m.cancel=h.cancel,m.flush=g,m}e.debounce=r})(wf)),wf}var bx;function f5(){return bx||(bx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=d5();function r(n,i=0,a={}){const{leading:s=!0,trailing:l=!0}=a;return t.debounce(n,i,{leading:s,maxWait:i,trailing:l})}e.throttle=r})(bf)),bf}var Sf,wx;function p5(){return wx||(wx=1,Sf=f5().throttle),Sf}var h5=p5();const m5=jr(h5);var g5=process.env.NODE_ENV!=="production",lc=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(g5&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;console.warn(r.replace(/%s/g,()=>i[s++]))}},Vj=(e,t,r)=>{var{width:n="100%",height:i="100%",aspect:a,maxHeight:s}=r,l=An(n)?e:Number(n),c=An(i)?t:Number(i);return a&&a>0&&(l?c=l/a:c&&(l=c*a),s&&c!=null&&c>s&&(c=s)),{calculatedWidth:l,calculatedHeight:c}},v5={width:0,height:0,overflow:"visible"},y5={width:0,overflowX:"visible"},x5={height:0,overflowY:"visible"},b5={},w5=e=>{var{width:t,height:r}=e,n=An(t),i=An(r);return n&&i?v5:n?y5:i?x5:b5};function C5(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i="100%",a="100%"):i===void 0?i=n&&n>0?void 0:"100%":a===void 0&&(a=n&&n>0?void 0:"100%"),{width:i,height:a}}function wt(e){return Number.isFinite(e)}function mn(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function eh(){return eh=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},eh.apply(null,arguments)}function Cx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cx(Object(r),!0).forEach(function(n){S5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S5(e,t,r){return(t=j5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j5(e){var t=P5(e,"string");return typeof t=="symbol"?t:t+""}function P5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hj=y.createContext({width:-1,height:-1});function E5(e){return mn(e.width)&&mn(e.height)}function Wj(e){var{children:t,width:r,height:n}=e,i=y.useMemo(()=>({width:r,height:n}),[r,n]);return E5(i)?w.createElement(Hj.Provider,{value:i},t):null}var Cm=()=>y.useContext(Hj),O5=y.forwardRef((e,t)=>{var{aspect:r,initialDimension:n={width:-1,height:-1},width:i,height:a,minWidth:s=0,minHeight:l,maxHeight:c,children:d,debounce:u=0,id:f,className:h,onResize:m,style:g={}}=e,x=y.useRef(null),v=y.useRef();v.current=m,y.useImperativeHandle(t,()=>x.current);var[b,C]=y.useState({containerWidth:n.width,containerHeight:n.height}),P=y.useCallback((k,D)=>{C(B=>{var M=Math.round(k),I=Math.round(D);return B.containerWidth===M&&B.containerHeight===I?B:{containerWidth:M,containerHeight:I}})},[]);y.useEffect(()=>{if(x.current==null||typeof ResizeObserver>"u")return Gi;var k=I=>{var _,{width:L,height:R}=I[0].contentRect;P(L,R),(_=v.current)===null||_===void 0||_.call(v,L,R)};u>0&&(k=m5(k,u,{trailing:!0,leading:!1}));var D=new ResizeObserver(k),{width:B,height:M}=x.current.getBoundingClientRect();return P(B,M),D.observe(x.current),()=>{D.disconnect()}},[P,u]);var{containerWidth:E,containerHeight:j}=b;lc(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:S,calculatedHeight:O}=Vj(E,j,{width:i,height:a,aspect:r,maxHeight:c});return lc(S!=null&&S>0||O!=null&&O>0,`The width(%s) and height(%s) of chart should be greater than 0,
1078
+ please check the style of container, or the props width(%s) and height(%s),
1079
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
1080
+ height and width.`,S,O,i,a,s,l,r),w.createElement("div",{id:f?"".concat(f):void 0,className:Ze("recharts-responsive-container",h),style:Sx(Sx({},g),{},{width:i,height:a,minWidth:s,minHeight:l,maxHeight:c}),ref:x},w.createElement("div",{style:w5({width:i,height:a})},w.createElement(Wj,{width:S,height:O},d)))}),pl=y.forwardRef((e,t)=>{var r=Cm();if(mn(r.width)&&mn(r.height))return e.children;var{width:n,height:i}=C5({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:s}=Vj(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return Ee(a)&&Ee(s)?w.createElement(Wj,{width:a,height:s},e.children):w.createElement(O5,eh({},e,{width:n,height:i,ref:t}))});function Uj(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var iu=()=>{var e,t=pr(),r=je(l5),n=je(nu),i=(e=je(ru))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},k5={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Kj=()=>{var e;return(e=je(Nt))!==null&&e!==void 0?e:k5},Sm=()=>je(Fn),jm=()=>je(Vn),T5=()=>je(e=>e.layout.margin),We=e=>e.layout.layoutType,ou=()=>je(We),I5=()=>{var e=ou();return e!==void 0},au=e=>{var t=nt(),r=pr(),{width:n,height:i}=e,a=Cm(),s=n,l=i;return a&&(s=a.width>0?a.width:n,l=a.height>0?a.height:i),y.useEffect(()=>{!r&&mn(s)&&mn(l)&&t(A6({width:s,height:l}))},[t,r,s,l]),null},M5={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},qj=fr({name:"legend",initialState:M5,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Mt()},removeLegendPayload:{reducer(e,t){var r=In(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Mt()}}}),{setLegendSize:jx,setLegendSettings:R5,addLegendPayload:Yj,removeLegendPayload:Gj}=qj.actions,A5=qj.reducer,N5=["contextPayload"];function th(){return th=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},th.apply(null,arguments)}function Px(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Px(Object(r),!0).forEach(function(n){D5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Px(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D5(e,t,r){return(t=_5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _5(e){var t=B5(e,"string");return typeof t=="symbol"?t:t+""}function B5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $5(e,t){if(e==null)return{};var r,n,i=L5(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function L5(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 z5(e){return e.value}function F5(e){var{contextPayload:t}=e,r=$5(e,N5),n=JS(t,e.payloadUniqBy,z5),i=Mo(Mo({},r),{},{payload:n});return w.isValidElement(e.content)?w.cloneElement(e.content,i):typeof e.content=="function"?w.createElement(e.content,i):w.createElement(k_,i)}function V5(e,t,r,n,i,a){var{layout:s,align:l,verticalAlign:c}=t,d,u;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(l==="center"&&s==="vertical"?d={left:((n||0)-a.width)/2}:d=l==="right"?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(c==="middle"?u={top:((i||0)-a.height)/2}:u=c==="bottom"?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),Mo(Mo({},d),u)}function H5(e){var t=nt();return y.useEffect(()=>{t(R5(e))},[t,e]),null}function W5(e){var t=nt();return y.useEffect(()=>(t(jx(e)),()=>{t(jx({width:0,height:0}))}),[t,e]),null}function U5(e,t,r,n){return e==="vertical"&&Ee(t)?{height:t}:e==="horizontal"?{width:r||n}:null}var K5={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function Xj(e){var t=Kt(e,K5),r=EB(),n=yD(),i=T5(),{width:a,height:s,wrapperStyle:l,portal:c}=t,[d,u]=oj([r]),f=Sm(),h=jm();if(f==null||h==null)return null;var m=f-(i?.left||0)-(i?.right||0),g=U5(t.layout,s,a,m),x=c?l:Mo(Mo({position:"absolute",width:g?.width||a||"auto",height:g?.height||s||"auto"},V5(l,t,i,f,h,d)),l),v=c??n;if(v==null||r==null)return null;var b=w.createElement("div",{className:"recharts-legend-wrapper",style:x,ref:u},w.createElement(H5,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),w.createElement(W5,{width:d.width,height:d.height}),w.createElement(F5,th({},t,g,{margin:i,chartWidth:f,chartHeight:h,contextPayload:r})));return Li.createPortal(b,v)}Xj.displayName="Legend";function rh(){return rh=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},rh.apply(null,arguments)}function Ex(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ex(Object(r),!0).forEach(function(n){q5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ex(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q5(e,t,r){return(t=Y5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y5(e){var t=G5(e,"string");return typeof t=="symbol"?t:t+""}function G5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X5(e){return Array.isArray(e)&&hn(e[0])&&hn(e[1])?e.join(" ~ "):e}var Z5=e=>{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:i={},payload:a,formatter:s,itemSorter:l,wrapperClassName:c,labelClassName:d,label:u,labelFormatter:f,accessibilityLayer:h=!1}=e,m=()=>{if(a&&a.length){var j={padding:0,margin:0},S=(l?Yc(a,l):a).map((O,k)=>{if(O.type==="none")return null;var D=O.formatter||s||X5,{value:B,name:M}=O,I=B,_=M;if(D){var L=D(B,M,O,k,a);if(Array.isArray(L))[I,_]=L;else if(L!=null)I=L;else return null}var R=jf({display:"block",paddingTop:4,paddingBottom:4,color:O.color||"#000"},n);return w.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:R},hn(_)?w.createElement("span",{className:"recharts-tooltip-item-name"},_):null,hn(_)?w.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,w.createElement("span",{className:"recharts-tooltip-item-value"},I),w.createElement("span",{className:"recharts-tooltip-item-unit"},O.unit||""))});return w.createElement("ul",{className:"recharts-tooltip-item-list",style:j},S)}return null},g=jf({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),x=jf({margin:0},i),v=!Ut(u),b=v?u:"",C=Ze("recharts-default-tooltip",c),P=Ze("recharts-tooltip-label",d);v&&f&&a!==void 0&&a!==null&&(b=f(u,a));var E=h?{role:"status","aria-live":"assertive"}:{};return w.createElement("div",rh({className:C,style:g},E),w.createElement("p",{className:P,style:x},w.isValidElement(b)?b:"".concat(b)),m())},va="recharts-tooltip-wrapper",Q5={visibility:"hidden"};function J5(e){var{coordinate:t,translateX:r,translateY:n}=e;return Ze(va,{["".concat(va,"-right")]:Ee(r)&&t&&Ee(t.x)&&r>=t.x,["".concat(va,"-left")]:Ee(r)&&t&&Ee(t.x)&&r<t.x,["".concat(va,"-bottom")]:Ee(n)&&t&&Ee(t.y)&&n>=t.y,["".concat(va,"-top")]:Ee(n)&&t&&Ee(t.y)&&n<t.y})}function Ox(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:l,viewBox:c,viewBoxDimension:d}=e;if(a&&Ee(a[n]))return a[n];var u=r[n]-l-(i>0?i:0),f=r[n]+i;if(t[n])return s[n]?u:f;var h=c[n];if(h==null)return 0;if(s[n]){var m=u,g=h;return m<g?Math.max(f,h):Math.max(u,h)}if(d==null)return 0;var x=f+l,v=h+d;return x>v?Math.max(u,h):Math.max(f,h)}function e3(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function t3(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:l,viewBox:c}=e,d,u,f;return s.height>0&&s.width>0&&r?(u=Ox({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),f=Ox({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),d=e3({translateX:u,translateY:f,useTranslate3d:l})):d=Q5,{cssProperties:d,cssClasses:J5({translateX:u,translateY:f,coordinate:r})}}function kx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kx(Object(r),!0).forEach(function(n){nh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nh(e,t,r){return(t=r3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r3(e){var t=n3(e,"string");return typeof t=="symbol"?t:t+""}function n3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class i3 extends y.PureComponent{constructor(){super(...arguments),nh(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),nh(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:a,coordinate:s,hasPayload:l,isAnimationActive:c,offset:d,position:u,reverseDirection:f,useTranslate3d:h,viewBox:m,wrapperStyle:g,lastBoundingBox:x,innerRef:v,hasPortalFromProps:b}=this.props,{cssClasses:C,cssProperties:P}=t3({allowEscapeViewBox:r,coordinate:s,offsetTopLeft:d,position:u,reverseDirection:f,tooltipBox:{height:x.height,width:x.width},useTranslate3d:h,viewBox:m}),E=b?{}:hl(hl({transition:c&&t?"transform ".concat(n,"ms ").concat(i):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&l?"visible":"hidden",position:"absolute",top:0,left:0}),j=hl(hl({},E),{},{visibility:!this.state.dismissed&&t&&l?"visible":"hidden"},g);return w.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:C,style:j,ref:v},a)}}var o3=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Zi={devToolsEnabled:!1,isSsr:o3()},Zj=()=>{var e;return(e=je(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function ih(){return ih=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},ih.apply(null,arguments)}function Tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ix(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tx(Object(r),!0).forEach(function(n){a3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a3(e,t,r){return(t=s3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s3(e){var t=l3(e,"string");return typeof t=="symbol"?t:t+""}function l3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mx={curveBasisClosed:BD,curveBasisOpen:$D,curveBasis:_D,curveBumpX:CD,curveBumpY:SD,curveLinearClosed:LD,curveLinear:Kc,curveMonotoneX:zD,curveMonotoneY:FD,curveNatural:VD,curveStep:HD,curveStepAfter:UD,curveStepBefore:WD},cc=e=>wt(e.x)&&wt(e.y),Rx=e=>e.base!=null&&cc(e.base)&&cc(e),ya=e=>e.x,xa=e=>e.y,c3=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(hs(e));return(r==="curveMonotone"||r==="curveBump")&&t?Mx["".concat(r).concat(t==="vertical"?"Y":"X")]:Mx[r]||Kc},u3=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:a=!1}=e,s=c3(t,i),l=a?r.filter(cc):r,c;if(Array.isArray(n)){var d=r.map((m,g)=>Ix(Ix({},m),{},{base:n[g]}));i==="vertical"?c=nl().y(xa).x1(ya).x0(m=>m.base.x):c=nl().x(ya).y1(xa).y0(m=>m.base.y);var u=c.defined(Rx).curve(s),f=a?d.filter(Rx):d;return u(f)}i==="vertical"&&Ee(n)?c=nl().y(xa).x1(ya).x0(n):Ee(n)?c=nl().x(ya).y1(xa).y0(n):c=TS().x(ya).y(xa);var h=c.defined(cc).curve(s);return h(l)},Pm=e=>{var{className:t,points:r,path:n,pathRef:i}=e;if((!r||!r.length)&&!n)return null;var a=r&&r.length?u3(e):n;return w.createElement("path",ih({},Zr(e),m_(e),{className:Ze("recharts-curve",t),d:a===null?void 0:a,ref:i}))},d3=["x","y","top","left","width","height","className"];function oh(){return oh=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},oh.apply(null,arguments)}function Ax(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function f3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ax(Object(r),!0).forEach(function(n){p3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ax(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p3(e,t,r){return(t=h3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h3(e){var t=m3(e,"string");return typeof t=="symbol"?t:t+""}function m3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g3(e,t){if(e==null)return{};var r,n,i=v3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function v3(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}var y3=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),x3=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:s=0,className:l}=e,c=g3(e,d3),d=f3({x:t,y:r,top:n,left:i,width:a,height:s},c);return!Ee(t)||!Ee(r)||!Ee(a)||!Ee(s)||!Ee(n)||!Ee(i)?null:w.createElement("path",oh({},_r(d),{className:Ze("recharts-cross",l),d:y3(t,r,a,s,n,i)}))};function b3(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Nx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nx(Object(r),!0).forEach(function(n){w3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w3(e,t,r){return(t=C3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C3(e){var t=S3(e,"string");return typeof t=="symbol"?t:t+""}function S3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var j3=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),Qj=(e,t,r)=>e.map(n=>"".concat(j3(n)," ").concat(t,"ms ").concat(r)).join(","),P3=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Xa=(e,t)=>Object.keys(t).reduce((r,n)=>Dx(Dx({},r),{},{[n]:e(n,t[n])}),{});function _x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function It(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_x(Object(r),!0).forEach(function(n){E3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E3(e,t,r){return(t=O3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O3(e){var t=k3(e,"string");return typeof t=="symbol"?t:t+""}function k3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uc=(e,t,r)=>e+(t-e)*r,ah=e=>{var{from:t,to:r}=e;return t!==r},Jj=(e,t,r)=>{var n=Xa((i,a)=>{if(ah(a)){var[s,l]=e(a.from,a.to,a.velocity);return It(It({},a),{},{from:s,velocity:l})}return a},t);return r<1?Xa((i,a)=>ah(a)?It(It({},a),{},{velocity:uc(a.velocity,n[i].velocity,r),from:uc(a.from,n[i].from,r)}):a,t):Jj(e,n,r-1)};function T3(e,t,r,n,i,a){var s,l=n.reduce((h,m)=>It(It({},h),{},{[m]:{from:e[m],velocity:0,to:t[m]}}),{}),c=()=>Xa((h,m)=>m.from,l),d=()=>!Object.values(l).filter(ah).length,u=null,f=h=>{s||(s=h);var m=h-s,g=m/r.dt;l=Jj(r,l,g),i(It(It(It({},e),t),c())),s=h,d()||(u=a.setTimeout(f))};return()=>(u=a.setTimeout(f),()=>{var h;(h=u)===null||h===void 0||h()})}function I3(e,t,r,n,i,a,s){var l=null,c=i.reduce((f,h)=>It(It({},f),{},{[h]:[e[h],t[h]]}),{}),d,u=f=>{d||(d=f);var h=(f-d)/n,m=Xa((x,v)=>uc(...v,r(h)),c);if(a(It(It(It({},e),t),m)),h<1)l=s.setTimeout(u);else{var g=Xa((x,v)=>uc(...v,r(1)),c);a(It(It(It({},e),t),g))}};return()=>(l=s.setTimeout(u),()=>{var f;(f=l)===null||f===void 0||f()})}const M3=(e,t,r,n,i,a)=>{var s=P3(e,t);return r==null?()=>(i(It(It({},e),t)),()=>{}):r.isStepper===!0?T3(e,t,r,s,i,a):I3(e,t,r,n,s,i,a)};var dc=1e-4,e2=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],t2=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Bx=(e,t)=>r=>{var n=e2(e,t);return t2(n,r)},R3=(e,t)=>r=>{var n=e2(e,t),i=[...n.map((a,s)=>a*s).slice(1),0];return t2(i,r)},A3=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i,a=r[0].split("(");if(a[0]==="cubic-bezier"&&((i=a[1])===null||i===void 0?void 0:i.split(")")[0].split(",").length)===4){var s=a[1].split(")")[0].split(",").map(l=>parseFloat(l));return[s[0],s[1],s[2],s[3]]}}}return r.length===4?r:[0,0,1,1]},N3=(e,t,r,n)=>{var i=Bx(e,r),a=Bx(t,n),s=R3(e,r),l=d=>d>1?1:d<0?0:d,c=d=>{for(var u=d>1?1:d,f=u,h=0;h<8;++h){var m=i(f)-u,g=s(f);if(Math.abs(m-u)<dc||g<dc)return a(f);f=l(f-m/g)}return a(f)};return c.isStepper=!1,c},$x=function(){return N3(...A3(...arguments))},D3=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(s,l,c)=>{var d=-(s-l)*r,u=c*n,f=c+(d-u)*i/1e3,h=c*i/1e3+s;return Math.abs(h-l)<dc&&Math.abs(f)<dc?[l,0]:[h,f]};return a.isStepper=!0,a.dt=i,a},_3=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return $x(e);case"spring":return D3();default:if(e.split("(")[0]==="cubic-bezier")return $x(e)}return typeof e=="function"?e:null};function B3(e){var t,r=()=>null,n=!1,i=null,a=s=>{if(!n){if(Array.isArray(s)){if(!s.length)return;var l=s,[c,...d]=l;if(typeof c=="number"){i=e.setTimeout(a.bind(null,d),c);return}a(c),i=e.setTimeout(a.bind(null,d));return}typeof s=="string"&&(t=s,r(t)),typeof s=="object"&&(t=s,r(t)),typeof s=="function"&&s()}};return{stop:()=>{n=!0},start:s=>{n=!1,i&&(i(),i=null),a(s)},subscribe:s=>(r=s,()=>{r=()=>null}),getTimeoutController:()=>e}}class $3{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=s=>{s-n>=r?t(s):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function L3(){return B3(new $3)}var z3=y.createContext(L3);function F3(e,t){var r=y.useContext(z3);return y.useMemo(()=>t??r(e),[e,t,r])}var V3={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Lx={t:0},Pf={t:1};function su(e){var t=Kt(e,V3),{isActive:r,canBegin:n,duration:i,easing:a,begin:s,onAnimationEnd:l,onAnimationStart:c,children:d}=t,u=F3(t.animationId,t.animationManager),[f,h]=y.useState(r?Lx:Pf),m=y.useRef(null);return y.useEffect(()=>{r||h(Pf)},[r]),y.useEffect(()=>{if(!r||!n)return Gi;var g=M3(Lx,Pf,_3(a),i,h,u.getTimeoutController()),x=()=>{m.current=g()};return u.start([c,s,x,i,l]),()=>{u.stop(),m.current&&m.current(),l()}},[r,n,i,a,s,c,l,u]),d(f.t)}function lu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=y.useRef(Ka(t)),n=y.useRef(e);return n.current!==e&&(r.current=Ka(t),n.current=e),r.current}var H3=["radius"],W3=["radius"];function zx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zx(Object(r),!0).forEach(function(n){U3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U3(e,t,r){return(t=K3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K3(e){var t=q3(e,"string");return typeof t=="symbol"?t:t+""}function q3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fc(){return fc=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},fc.apply(null,arguments)}function Vx(e,t){if(e==null)return{};var r,n,i=Y3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Y3(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}var Hx=(e,t,r,n,i)=>{var a=Math.min(Math.abs(r)/2,Math.abs(n)/2),s=n>=0?1:-1,l=r>=0?1:-1,c=n>=0&&r>=0||n<0&&r<0?1:0,d;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],f=0,h=4;f<h;f++)u[f]=i[f]>a?a:i[f];d="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(d+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),d+="L ".concat(e+r-l*u[1],",").concat(t),u[1]>0&&(d+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,`,
1081
+ `).concat(e+r,",").concat(t+s*u[1])),d+="L ".concat(e+r,",").concat(t+n-s*u[2]),u[2]>0&&(d+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,`,
1082
+ `).concat(e+r-l*u[2],",").concat(t+n)),d+="L ".concat(e+l*u[3],",").concat(t+n),u[3]>0&&(d+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,`,
1083
+ `).concat(e,",").concat(t+n-s*u[3])),d+="Z"}else if(a>0&&i===+i&&i>0){var m=Math.min(a,i);d="M ".concat(e,",").concat(t+s*m,`
1084
+ A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(e+l*m,",").concat(t,`
1085
+ L `).concat(e+r-l*m,",").concat(t,`
1086
+ A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(e+r,",").concat(t+s*m,`
1087
+ L `).concat(e+r,",").concat(t+n-s*m,`
1088
+ A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(e+r-l*m,",").concat(t+n,`
1089
+ L `).concat(e+l*m,",").concat(t+n,`
1090
+ A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(e,",").concat(t+n-s*m," Z")}else d="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return d},Wx={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},r2=e=>{var t=Kt(e,Wx),r=y.useRef(null),[n,i]=y.useState(-1);y.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&i(T)}catch{}},[]);var{x:a,y:s,width:l,height:c,radius:d,className:u}=t,{animationEasing:f,animationDuration:h,animationBegin:m,isAnimationActive:g,isUpdateAnimationActive:x}=t,v=y.useRef(l),b=y.useRef(c),C=y.useRef(a),P=y.useRef(s),E=y.useMemo(()=>({x:a,y:s,width:l,height:c,radius:d}),[a,s,l,c,d]),j=lu(E,"rectangle-");if(a!==+a||s!==+s||l!==+l||c!==+c||l===0||c===0)return null;var S=Ze("recharts-rectangle",u);if(!x){var O=_r(t),k=Vx(O,H3);return w.createElement("path",fc({},k,{radius:typeof d=="number"?d:void 0,className:S,d:Hx(a,s,l,c,d)}))}var D=v.current,B=b.current,M=C.current,I=P.current,_="0px ".concat(n===-1?1:n,"px"),L="".concat(n,"px 0px"),R=Qj(["strokeDasharray"],h,typeof f=="string"?f:Wx.animationEasing);return w.createElement(su,{animationId:j,key:j,canBegin:n>0,duration:h,easing:f,isActive:x,begin:m},T=>{var N=Tt(D,l,T),F=Tt(B,c,T),V=Tt(M,a,T),J=Tt(I,s,T);r.current&&(v.current=N,b.current=F,C.current=V,P.current=J);var U;g?T>0?U={transition:R,strokeDasharray:L}:U={strokeDasharray:_}:U={strokeDasharray:L};var H=_r(t),Q=Vx(H,W3);return w.createElement("path",fc({},Q,{radius:typeof d=="number"?d:void 0,className:S,d:Hx(V,J,N,F,d),ref:r,style:Fx(Fx({},U),t.style)}))})};function Ux(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ux(Object(r),!0).forEach(function(n){G3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ux(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G3(e,t,r){return(t=X3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X3(e){var t=Z3(e,"string");return typeof t=="symbol"?t:t+""}function Z3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pc=Math.PI/180,Q3=e=>e*180/Math.PI,Et=(e,t,r,n)=>({x:e+Math.cos(-pc*n)*r,y:t+Math.sin(-pc*n)*r}),n2=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},J3=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},e$=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,s=J3({x:r,y:n},{x:i,y:a});if(s<=0)return{radius:s,angle:0};var l=(r-i)/s,c=Math.acos(l);return n>a&&(c=2*Math.PI-c),{radius:s,angle:Q3(c),angleInRadian:c}},t$=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},r$=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),s=Math.min(i,a);return e+s*360},n$=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:i,angle:a}=e$({x:r,y:n},t),{innerRadius:s,outerRadius:l}=t;if(i<s||i>l||i===0)return null;var{startAngle:c,endAngle:d}=t$(t),u=a,f;if(c<=d){for(;u>d;)u-=360;for(;u<c;)u+=360;f=u>=c&&u<=d}else{for(;u>c;)u-=360;for(;u<d;)u+=360;f=u>=d&&u<=c}return f?Kx(Kx({},t),{},{radius:i,angle:r$(u,t)}):null};function i2(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,s=Et(t,r,n,i),l=Et(t,r,n,a);return{points:[s,l],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function sh(){return sh=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},sh.apply(null,arguments)}var i$=(e,t)=>{var r=Ht(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},ml=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:s,cornerRadius:l,cornerIsExternal:c}=e,d=l*(s?1:-1)+n,u=Math.asin(l/d)/pc,f=c?i:i+a*u,h=Et(t,r,d,f),m=Et(t,r,n,f),g=c?i-a*u:i,x=Et(t,r,d*Math.cos(u*pc),g);return{center:h,circleTangency:m,lineTangency:x,theta:u}},o2=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:s}=e,l=i$(a,s),c=a+l,d=Et(t,r,i,a),u=Et(t,r,i,c),f="M ".concat(d.x,",").concat(d.y,`
1091
+ A `).concat(i,",").concat(i,`,0,
1092
+ `).concat(+(Math.abs(l)>180),",").concat(+(a>c),`,
1093
+ `).concat(u.x,",").concat(u.y,`
1094
+ `);if(n>0){var h=Et(t,r,n,a),m=Et(t,r,n,c);f+="L ".concat(m.x,",").concat(m.y,`
1095
+ A `).concat(n,",").concat(n,`,0,
1096
+ `).concat(+(Math.abs(l)>180),",").concat(+(a<=c),`,
1097
+ `).concat(h.x,",").concat(h.y," Z")}else f+="L ".concat(t,",").concat(r," Z");return f},o$=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:d}=e,u=Ht(d-c),{circleTangency:f,lineTangency:h,theta:m}=ml({cx:t,cy:r,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:l}),{circleTangency:g,lineTangency:x,theta:v}=ml({cx:t,cy:r,radius:i,angle:d,sign:-u,cornerRadius:a,cornerIsExternal:l}),b=l?Math.abs(c-d):Math.abs(c-d)-m-v;if(b<0)return s?"M ".concat(h.x,",").concat(h.y,`
1098
+ a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
1099
+ a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
1100
+ `):o2({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:c,endAngle:d});var C="M ".concat(h.x,",").concat(h.y,`
1101
+ A`).concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(f.x,",").concat(f.y,`
1102
+ A`).concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(g.x,",").concat(g.y,`
1103
+ A`).concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(x.x,",").concat(x.y,`
1104
+ `);if(n>0){var{circleTangency:P,lineTangency:E,theta:j}=ml({cx:t,cy:r,radius:n,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),{circleTangency:S,lineTangency:O,theta:k}=ml({cx:t,cy:r,radius:n,angle:d,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),D=l?Math.abs(c-d):Math.abs(c-d)-j-k;if(D<0&&a===0)return"".concat(C,"L").concat(t,",").concat(r,"Z");C+="L".concat(O.x,",").concat(O.y,`
1105
+ A`).concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(S.x,",").concat(S.y,`
1106
+ A`).concat(n,",").concat(n,",0,").concat(+(D>180),",").concat(+(u>0),",").concat(P.x,",").concat(P.y,`
1107
+ A`).concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(E.x,",").concat(E.y,"Z")}else C+="L".concat(t,",").concat(r,"Z");return C},a$={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},a2=e=>{var t=Kt(e,a$),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:s,forceCornerRadius:l,cornerIsExternal:c,startAngle:d,endAngle:u,className:f}=t;if(a<i||d===u)return null;var h=Ze("recharts-sector",f),m=a-i,g=tr(s,m,0,!0),x;return g>0&&Math.abs(d-u)<360?x=o$({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(g,m/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:d,endAngle:u}):x=o2({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:d,endAngle:u}),w.createElement("path",sh({},_r(t),{className:h,d:x}))};function s$(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(HS(t)){if(e==="centric"){var{cx:n,cy:i,innerRadius:a,outerRadius:s,angle:l}=t,c=Et(n,i,a,l),d=Et(n,i,s,l);return[{x:c.x,y:c.y},{x:d.x,y:d.y}]}return i2(t)}}var Ef={},Of={},kf={},qx;function l$(){return qx||(qx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rj();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(kf)),kf}var Yx;function c$(){return Yx||(Yx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=l$();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(Of)),Of}var Gx;function u$(){return Gx||(Gx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nj(),r=c$();function n(i,a,s){s&&typeof s!="number"&&t.isIterateeCall(i,a,s)&&(a=s=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),s=s===void 0?i<a?1:-1:r.toFinite(s);const l=Math.max(Math.ceil((a-i)/(s||1)),0),c=new Array(l);for(let d=0;d<l;d++)c[d]=i,i+=s;return c}e.range=n})(Ef)),Ef}var Tf,Xx;function d$(){return Xx||(Xx=1,Tf=u$().range),Tf}var f$=d$();const s2=jr(f$);function di(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function p$(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Em(e){let t,r,n;e.length!==2?(t=di,r=(l,c)=>di(e(l),c),n=(l,c)=>e(l)-c):(t=e===di||e===p$?e:h$,r=e,n=e);function i(l,c,d=0,u=l.length){if(d<u){if(t(c,c)!==0)return u;do{const f=d+u>>>1;r(l[f],c)<0?d=f+1:u=f}while(d<u)}return d}function a(l,c,d=0,u=l.length){if(d<u){if(t(c,c)!==0)return u;do{const f=d+u>>>1;r(l[f],c)<=0?d=f+1:u=f}while(d<u)}return d}function s(l,c,d=0,u=l.length){const f=i(l,c,d,u-1);return f>d&&n(l[f-1],c)>-n(l[f],c)?f-1:f}return{left:i,center:s,right:a}}function h$(){return 0}function l2(e){return e===null?NaN:+e}function*m$(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const g$=Em(di),ws=g$.right;Em(l2).center;class Zx extends Map{constructor(t,r=x$){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Qx(this,t))}has(t){return super.has(Qx(this,t))}set(t,r){return super.set(v$(this,t),r)}delete(t){return super.delete(y$(this,t))}}function Qx({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function v$({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function y$({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function x$(e){return e!==null&&typeof e=="object"?e.valueOf():e}function b$(e=di){if(e===di)return c2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function c2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const w$=Math.sqrt(50),C$=Math.sqrt(10),S$=Math.sqrt(2);function hc(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=w$?10:a>=C$?5:a>=S$?2:1;let l,c,d;return i<0?(d=Math.pow(10,-i)/s,l=Math.round(e*d),c=Math.round(t*d),l/d<e&&++l,c/d>t&&--c,d=-d):(d=Math.pow(10,i)*s,l=Math.round(e/d),c=Math.round(t/d),l*d<e&&++l,c*d>t&&--c),c<l&&.5<=r&&r<2?hc(e,t,r*2):[l,c,d]}function lh(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,s]=n?hc(t,e,r):hc(e,t,r);if(!(a>=i))return[];const l=a-i+1,c=new Array(l);if(n)if(s<0)for(let d=0;d<l;++d)c[d]=(a-d)/-s;else for(let d=0;d<l;++d)c[d]=(a-d)*s;else if(s<0)for(let d=0;d<l;++d)c[d]=(i+d)/-s;else for(let d=0;d<l;++d)c[d]=(i+d)*s;return c}function ch(e,t,r){return t=+t,e=+e,r=+r,hc(e,t,r)[2]}function uh(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?ch(t,e,r):ch(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Jx(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function eb(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function u2(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?c2:b$(i);n>r;){if(n-r>600){const c=n-r+1,d=t-r+1,u=Math.log(c),f=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*f*(c-f)/c)*(d-c/2<0?-1:1),m=Math.max(r,Math.floor(t-d*f/c+h)),g=Math.min(n,Math.floor(t+(c-d)*f/c+h));u2(e,t,m,g,i)}const a=e[t];let s=r,l=n;for(ba(e,r,t),i(e[n],a)>0&&ba(e,r,n);s<l;){for(ba(e,s,l),++s,--l;i(e[s],a)<0;)++s;for(;i(e[l],a)>0;)--l}i(e[r],a)===0?ba(e,r,l):(++l,ba(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function ba(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function j$(e,t,r){if(e=Float64Array.from(m$(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return eb(e);if(t>=1)return Jx(e);var n,i=(n-1)*t,a=Math.floor(i),s=Jx(u2(e,a).subarray(0,a+1)),l=eb(e.subarray(a+1));return s+(l-s)*(i-a)}}function P$(e,t,r=l2){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),s=+r(e[a],a,e),l=+r(e[a+1],a+1,e);return s+(l-s)*(i-a)}}function E$(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Vr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Hn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const dh=Symbol("implicit");function Om(){var e=new Zx,t=[],r=[],n=dh;function i(a){let s=e.get(a);if(s===void 0){if(n!==dh)return n;e.set(a,s=t.push(a)-1)}return r[s%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Zx;for(const s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Om(t,r).unknown(n)},Vr.apply(i,arguments),i}function km(){var e=Om().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,s,l=!1,c=0,d=0,u=.5;delete e.unknown;function f(){var h=t().length,m=i<n,g=m?i:n,x=m?n:i;a=(x-g)/Math.max(1,h-c+d*2),l&&(a=Math.floor(a)),g+=(x-g-a*(h-c))*u,s=a*(1-c),l&&(g=Math.round(g),s=Math.round(s));var v=E$(h).map(function(b){return g+a*b});return r(m?v.reverse():v)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,l=!0,f()},e.bandwidth=function(){return s},e.step=function(){return a},e.round=function(h){return arguments.length?(l=!!h,f()):l},e.padding=function(h){return arguments.length?(c=Math.min(1,d=+h),f()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),f()):c},e.paddingOuter=function(h){return arguments.length?(d=+h,f()):d},e.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),f()):u},e.copy=function(){return km(t(),[n,i]).round(l).paddingInner(c).paddingOuter(d).align(u)},Vr.apply(f(),arguments)}function d2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return d2(t())},e}function O$(){return d2(km.apply(null,arguments).paddingInner(1))}function Tm(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function f2(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Cs(){}var Za=.7,mc=1/Za,wo="\\s*([+-]?\\d+)\\s*",Qa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",un="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",k$=/^#([0-9a-f]{3,8})$/,T$=new RegExp(`^rgb\\(${wo},${wo},${wo}\\)$`),I$=new RegExp(`^rgb\\(${un},${un},${un}\\)$`),M$=new RegExp(`^rgba\\(${wo},${wo},${wo},${Qa}\\)$`),R$=new RegExp(`^rgba\\(${un},${un},${un},${Qa}\\)$`),A$=new RegExp(`^hsl\\(${Qa},${un},${un}\\)$`),N$=new RegExp(`^hsla\\(${Qa},${un},${un},${Qa}\\)$`),tb={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Tm(Cs,Ja,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rb,formatHex:rb,formatHex8:D$,formatHsl:_$,formatRgb:nb,toString:nb});function rb(){return this.rgb().formatHex()}function D$(){return this.rgb().formatHex8()}function _$(){return p2(this).formatHsl()}function nb(){return this.rgb().formatRgb()}function Ja(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=k$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ib(t):r===3?new dr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?gl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?gl(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=T$.exec(e))?new dr(t[1],t[2],t[3],1):(t=I$.exec(e))?new dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=M$.exec(e))?gl(t[1],t[2],t[3],t[4]):(t=R$.exec(e))?gl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=A$.exec(e))?sb(t[1],t[2]/100,t[3]/100,1):(t=N$.exec(e))?sb(t[1],t[2]/100,t[3]/100,t[4]):tb.hasOwnProperty(e)?ib(tb[e]):e==="transparent"?new dr(NaN,NaN,NaN,0):null}function ib(e){return new dr(e>>16&255,e>>8&255,e&255,1)}function gl(e,t,r,n){return n<=0&&(e=t=r=NaN),new dr(e,t,r,n)}function B$(e){return e instanceof Cs||(e=Ja(e)),e?(e=e.rgb(),new dr(e.r,e.g,e.b,e.opacity)):new dr}function fh(e,t,r,n){return arguments.length===1?B$(e):new dr(e,t,r,n??1)}function dr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Tm(dr,fh,f2(Cs,{brighter(e){return e=e==null?mc:Math.pow(mc,e),new dr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Za:Math.pow(Za,e),new dr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new dr(Bi(this.r),Bi(this.g),Bi(this.b),gc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ob,formatHex:ob,formatHex8:$$,formatRgb:ab,toString:ab}));function ob(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}`}function $$(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}${Ii((isNaN(this.opacity)?1:this.opacity)*255)}`}function ab(){const e=gc(this.opacity);return`${e===1?"rgb(":"rgba("}${Bi(this.r)}, ${Bi(this.g)}, ${Bi(this.b)}${e===1?")":`, ${e})`}`}function gc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Bi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ii(e){return e=Bi(e),(e<16?"0":"")+e.toString(16)}function sb(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Gr(e,t,r,n)}function p2(e){if(e instanceof Gr)return new Gr(e.h,e.s,e.l,e.opacity);if(e instanceof Cs||(e=Ja(e)),!e)return new Gr;if(e instanceof Gr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,l=a-i,c=(a+i)/2;return l?(t===a?s=(r-n)/l+(r<n)*6:r===a?s=(n-t)/l+2:s=(t-r)/l+4,l/=c<.5?a+i:2-a-i,s*=60):l=c>0&&c<1?0:s,new Gr(s,l,c,e.opacity)}function L$(e,t,r,n){return arguments.length===1?p2(e):new Gr(e,t,r,n??1)}function Gr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Tm(Gr,L$,f2(Cs,{brighter(e){return e=e==null?mc:Math.pow(mc,e),new Gr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Za:Math.pow(Za,e),new Gr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new dr(If(e>=240?e-240:e+120,i,n),If(e,i,n),If(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Gr(lb(this.h),vl(this.s),vl(this.l),gc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=gc(this.opacity);return`${e===1?"hsl(":"hsla("}${lb(this.h)}, ${vl(this.s)*100}%, ${vl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function lb(e){return e=(e||0)%360,e<0?e+360:e}function vl(e){return Math.max(0,Math.min(1,e||0))}function If(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Im=e=>()=>e;function z$(e,t){return function(r){return e+r*t}}function F$(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function V$(e){return(e=+e)==1?h2:function(t,r){return r-t?F$(t,r,e):Im(isNaN(t)?r:t)}}function h2(e,t){var r=t-e;return r?z$(e,r):Im(isNaN(e)?t:e)}const cb=(function e(t){var r=V$(t);function n(i,a){var s=r((i=fh(i)).r,(a=fh(a)).r),l=r(i.g,a.g),c=r(i.b,a.b),d=h2(i.opacity,a.opacity);return function(u){return i.r=s(u),i.g=l(u),i.b=c(u),i.opacity=d(u),i+""}}return n.gamma=e,n})(1);function H$(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function W$(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function U$(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),s;for(s=0;s<n;++s)i[s]=Vo(e[s],t[s]);for(;s<r;++s)a[s]=t[s];return function(l){for(s=0;s<n;++s)a[s]=i[s](l);return a}}function K$(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function vc(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function q$(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Vo(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var ph=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mf=new RegExp(ph.source,"g");function Y$(e){return function(){return e}}function G$(e){return function(t){return e(t)+""}}function X$(e,t){var r=ph.lastIndex=Mf.lastIndex=0,n,i,a,s=-1,l=[],c=[];for(e=e+"",t=t+"";(n=ph.exec(e))&&(i=Mf.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[s]?l[s]+=a:l[++s]=a),(n=n[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,c.push({i:s,x:vc(n,i)})),r=Mf.lastIndex;return r<t.length&&(a=t.slice(r),l[s]?l[s]+=a:l[++s]=a),l.length<2?c[0]?G$(c[0].x):Y$(t):(t=c.length,function(d){for(var u=0,f;u<t;++u)l[(f=c[u]).i]=f.x(d);return l.join("")})}function Vo(e,t){var r=typeof t,n;return t==null||r==="boolean"?Im(t):(r==="number"?vc:r==="string"?(n=Ja(t))?(t=n,cb):X$:t instanceof Ja?cb:t instanceof Date?K$:W$(t)?H$:Array.isArray(t)?U$:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?q$:vc)(e,t)}function Mm(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Z$(e,t){t===void 0&&(t=e,e=Vo);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(s){var l=Math.max(0,Math.min(n-1,Math.floor(s*=n)));return a[l](s-l)}}function Q$(e){return function(){return e}}function yc(e){return+e}var ub=[0,1];function ir(e){return e}function hh(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Q$(isNaN(t)?NaN:.5)}function J$(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function e4(e,t,r){var n=e[0],i=e[1],a=t[0],s=t[1];return i<n?(n=hh(i,n),a=r(s,a)):(n=hh(n,i),a=r(a,s)),function(l){return a(n(l))}}function t4(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),s=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<n;)i[s]=hh(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(l){var c=ws(e,l,1,n)-1;return a[c](i[c](l))}}function Ss(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function cu(){var e=ub,t=ub,r=Vo,n,i,a,s=ir,l,c,d;function u(){var h=Math.min(e.length,t.length);return s!==ir&&(s=J$(e[0],e[h-1])),l=h>2?t4:e4,c=d=null,f}function f(h){return h==null||isNaN(h=+h)?a:(c||(c=l(e.map(n),t,r)))(n(s(h)))}return f.invert=function(h){return s(i((d||(d=l(t,e.map(n),vc)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,yc),u()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=Mm,u()},f.clamp=function(h){return arguments.length?(s=h?!0:ir,u()):s!==ir},f.interpolate=function(h){return arguments.length?(r=h,u()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,m){return n=h,i=m,u()}}function Rm(){return cu()(ir,ir)}function r4(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function xc(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ro(e){return e=xc(Math.abs(e)),e?e[1]:NaN}function n4(e,t){return function(r,n){for(var i=r.length,a=[],s=0,l=e[0],c=0;i>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),a.push(r.substring(i-=l,i+l)),!((c+=l+1)>n));)l=e[s=(s+1)%e.length];return a.reverse().join(t)}}function i4(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var o4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function es(e){if(!(t=o4.exec(e)))throw new Error("invalid format: "+e);var t;return new Am({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}es.prototype=Am.prototype;function Am(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Am.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function a4(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var m2;function s4(e,t){var r=xc(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(m2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+xc(e,Math.max(0,t+a-1))[0]}function db(e,t){var r=xc(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const fb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:r4,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>db(e*100,t),r:db,s:s4,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function pb(e){return e}var hb=Array.prototype.map,mb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l4(e){var t=e.grouping===void 0||e.thousands===void 0?pb:n4(hb.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?pb:i4(hb.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function d(f){f=es(f);var h=f.fill,m=f.align,g=f.sign,x=f.symbol,v=f.zero,b=f.width,C=f.comma,P=f.precision,E=f.trim,j=f.type;j==="n"?(C=!0,j="g"):fb[j]||(P===void 0&&(P=12),E=!0,j="g"),(v||h==="0"&&m==="=")&&(v=!0,h="0",m="=");var S=x==="$"?r:x==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",O=x==="$"?n:/[%p]/.test(j)?s:"",k=fb[j],D=/[defgprs%]/.test(j);P=P===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P));function B(M){var I=S,_=O,L,R,T;if(j==="c")_=k(M)+_,M="";else{M=+M;var N=M<0||1/M<0;if(M=isNaN(M)?c:k(Math.abs(M),P),E&&(M=a4(M)),N&&+M==0&&g!=="+"&&(N=!1),I=(N?g==="("?g:l:g==="-"||g==="("?"":g)+I,_=(j==="s"?mb[8+m2/3]:"")+_+(N&&g==="("?")":""),D){for(L=-1,R=M.length;++L<R;)if(T=M.charCodeAt(L),48>T||T>57){_=(T===46?i+M.slice(L+1):M.slice(L))+_,M=M.slice(0,L);break}}}C&&!v&&(M=t(M,1/0));var F=I.length+M.length+_.length,V=F<b?new Array(b-F+1).join(h):"";switch(C&&v&&(M=t(V+M,V.length?b-_.length:1/0),V=""),m){case"<":M=I+M+_+V;break;case"=":M=I+V+M+_;break;case"^":M=V.slice(0,F=V.length>>1)+I+M+_+V.slice(F);break;default:M=V+I+M+_;break}return a(M)}return B.toString=function(){return f+""},B}function u(f,h){var m=d((f=es(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(Ro(h)/3)))*3,x=Math.pow(10,-g),v=mb[8+g/3];return function(b){return m(x*b)+v}}return{format:d,formatPrefix:u}}var yl,Nm,g2;c4({thousands:",",grouping:[3],currency:["$",""]});function c4(e){return yl=l4(e),Nm=yl.format,g2=yl.formatPrefix,yl}function u4(e){return Math.max(0,-Ro(Math.abs(e)))}function d4(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ro(t)/3)))*3-Ro(Math.abs(e)))}function f4(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ro(t)-Ro(e))+1}function v2(e,t,r,n){var i=uh(e,t,r),a;switch(n=es(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=d4(i,s))&&(n.precision=a),g2(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=f4(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=u4(i))&&(n.precision=a-(n.type==="%")*2);break}}return Nm(n)}function mi(e){var t=e.domain;return e.ticks=function(r){var n=t();return lh(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return v2(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,s=n[i],l=n[a],c,d,u=10;for(l<s&&(d=s,s=l,l=d,d=i,i=a,a=d);u-- >0;){if(d=ch(s,l,r),d===c)return n[i]=s,n[a]=l,t(n);if(d>0)s=Math.floor(s/d)*d,l=Math.ceil(l/d)*d;else if(d<0)s=Math.ceil(s*d)/d,l=Math.floor(l*d)/d;else break;c=d}return e},e}function y2(){var e=Rm();return e.copy=function(){return Ss(e,y2())},Vr.apply(e,arguments),mi(e)}function x2(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,yc),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return x2(e).unknown(t)},e=arguments.length?Array.from(e,yc):[0,1],mi(r)}function b2(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],s;return a<i&&(s=r,r=n,n=s,s=i,i=a,a=s),e[r]=t.floor(i),e[n]=t.ceil(a),e}function gb(e){return Math.log(e)}function vb(e){return Math.exp(e)}function p4(e){return-Math.log(-e)}function h4(e){return-Math.exp(-e)}function m4(e){return isFinite(e)?+("1e"+e):e<0?0:e}function g4(e){return e===10?m4:e===Math.E?Math.exp:t=>Math.pow(e,t)}function v4(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function yb(e){return(t,r)=>-e(-t,r)}function Dm(e){const t=e(gb,vb),r=t.domain;let n=10,i,a;function s(){return i=v4(n),a=g4(n),r()[0]<0?(i=yb(i),a=yb(a),e(p4,h4)):e(gb,vb),t}return t.base=function(l){return arguments.length?(n=+l,s()):n},t.domain=function(l){return arguments.length?(r(l),s()):r()},t.ticks=l=>{const c=r();let d=c[0],u=c[c.length-1];const f=u<d;f&&([d,u]=[u,d]);let h=i(d),m=i(u),g,x;const v=l==null?10:+l;let b=[];if(!(n%1)&&m-h<v){if(h=Math.floor(h),m=Math.ceil(m),d>0){for(;h<=m;++h)for(g=1;g<n;++g)if(x=h<0?g/a(-h):g*a(h),!(x<d)){if(x>u)break;b.push(x)}}else for(;h<=m;++h)for(g=n-1;g>=1;--g)if(x=h>0?g/a(-h):g*a(h),!(x<d)){if(x>u)break;b.push(x)}b.length*2<v&&(b=lh(d,u,v))}else b=lh(h,m,Math.min(m-h,v)).map(a);return f?b.reverse():b},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=es(c)).precision==null&&(c.trim=!0),c=Nm(c)),l===1/0)return c;const d=Math.max(1,n*l/t.ticks().length);return u=>{let f=u/a(Math.round(i(u)));return f*n<n-.5&&(f*=n),f<=d?c(u):""}},t.nice=()=>r(b2(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function w2(){const e=Dm(cu()).domain([1,10]);return e.copy=()=>Ss(e,w2()).base(e.base()),Vr.apply(e,arguments),e}function xb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _m(e){var t=1,r=e(xb(t),bb(t));return r.constant=function(n){return arguments.length?e(xb(t=+n),bb(t)):t},mi(r)}function C2(){var e=_m(cu());return e.copy=function(){return Ss(e,C2()).constant(e.constant())},Vr.apply(e,arguments)}function wb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function y4(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function x4(e){return e<0?-e*e:e*e}function Bm(e){var t=e(ir,ir),r=1;function n(){return r===1?e(ir,ir):r===.5?e(y4,x4):e(wb(r),wb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},mi(t)}function $m(){var e=Bm(cu());return e.copy=function(){return Ss(e,$m()).exponent(e.exponent())},Vr.apply(e,arguments),e}function b4(){return $m.apply(null,arguments).exponent(.5)}function Cb(e){return Math.sign(e)*e*e}function w4(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function S2(){var e=Rm(),t=[0,1],r=!1,n;function i(a){var s=w4(e(a));return isNaN(s)?n:r?Math.round(s):s}return i.invert=function(a){return e.invert(Cb(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,yc)).map(Cb)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return S2(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Vr.apply(i,arguments),mi(i)}function j2(){var e=[],t=[],r=[],n;function i(){var s=0,l=Math.max(1,t.length);for(r=new Array(l-1);++s<l;)r[s-1]=P$(e,s/l);return a}function a(s){return s==null||isNaN(s=+s)?n:t[ws(r,s)]}return a.invertExtent=function(s){var l=t.indexOf(s);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},a.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let l of s)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(di),i()},a.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},a.unknown=function(s){return arguments.length?(n=s,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return j2().domain(e).range(t).unknown(n)},Vr.apply(a,arguments)}function P2(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function s(c){return c!=null&&c<=c?i[ws(n,c,0,r)]:a}function l(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return s}return s.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},s.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,l()):i.slice()},s.invertExtent=function(c){var d=i.indexOf(c);return d<0?[NaN,NaN]:d<1?[e,n[0]]:d>=r?[n[r-1],t]:[n[d-1],n[d]]},s.unknown=function(c){return arguments.length&&(a=c),s},s.thresholds=function(){return n.slice()},s.copy=function(){return P2().domain([e,t]).range(i).unknown(a)},Vr.apply(mi(s),arguments)}function E2(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[ws(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var s=t.indexOf(a);return[e[s-1],e[s]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return E2().domain(e).range(t).unknown(r)},Vr.apply(i,arguments)}const Rf=new Date,Af=new Date;function Dt(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const s=i(a),l=i.ceil(a);return a-s<l-a?s:l},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,l)=>{const c=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<s)||!(l>0))return c;let d;do c.push(d=new Date(+a)),t(a,l),e(a);while(d<a&&a<s);return c},i.filter=a=>Dt(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!a(s););else for(;--l>=0;)for(;t(s,1),!a(s););}),r&&(i.count=(a,s)=>(Rf.setTime(+a),Af.setTime(+s),e(Rf),e(Af),Math.floor(r(Rf,Af))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const mh=Dt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);mh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Dt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):mh);const On=1e3,Ar=On*60,kn=Ar*60,Dn=kn*24,Lm=Dn*7,Sb=Dn*30,Nf=Dn*365,vo=Dt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*On)},(e,t)=>(t-e)/On,e=>e.getUTCSeconds()),O2=Dt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*On)},(e,t)=>{e.setTime(+e+t*Ar)},(e,t)=>(t-e)/Ar,e=>e.getMinutes()),k2=Dt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ar)},(e,t)=>(t-e)/Ar,e=>e.getUTCMinutes()),T2=Dt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*On-e.getMinutes()*Ar)},(e,t)=>{e.setTime(+e+t*kn)},(e,t)=>(t-e)/kn,e=>e.getHours()),I2=Dt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*kn)},(e,t)=>(t-e)/kn,e=>e.getUTCHours()),uu=Dt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ar)/Dn,e=>e.getDate()-1),zm=Dt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dn,e=>e.getUTCDate()-1),C4=Dt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dn,e=>Math.floor(e/Dn));function Qi(e){return Dt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ar)/Lm)}const Fm=Qi(0),gh=Qi(1);Qi(2);Qi(3);const ts=Qi(4);Qi(5);Qi(6);function Ji(e){return Dt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Lm)}const Vm=Ji(0),vh=Ji(1);Ji(2);Ji(3);const rs=Ji(4);Ji(5);Ji(6);const M2=Dt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),R2=Dt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),fi=Dt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());fi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});const pi=Dt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});function A2(e,t,r,n,i,a){const s=[[vo,1,On],[vo,5,5*On],[vo,15,15*On],[vo,30,30*On],[a,1,Ar],[a,5,5*Ar],[a,15,15*Ar],[a,30,30*Ar],[i,1,kn],[i,3,3*kn],[i,6,6*kn],[i,12,12*kn],[n,1,Dn],[n,2,2*Dn],[r,1,Lm],[t,1,Sb],[t,3,3*Sb],[e,1,Nf]];function l(d,u,f){const h=u<d;h&&([d,u]=[u,d]);const m=f&&typeof f.range=="function"?f:c(d,u,f),g=m?m.range(d,+u+1):[];return h?g.reverse():g}function c(d,u,f){const h=Math.abs(u-d)/f,m=Em(([,,v])=>v).right(s,h);if(m===s.length)return e.every(uh(d/Nf,u/Nf,f));if(m===0)return mh.every(Math.max(uh(d,u,f),1));const[g,x]=s[h/s[m-1][2]<s[m][2]/h?m-1:m];return g.every(x)}return[l,c]}const[S4,j4]=A2(pi,R2,Vm,C4,I2,k2),[P4,E4]=A2(fi,M2,Fm,uu,T2,O2);function Df(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function _f(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function wa(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function O4(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,s=e.shortDays,l=e.months,c=e.shortMonths,d=Ca(i),u=Sa(i),f=Ca(a),h=Sa(a),m=Ca(s),g=Sa(s),x=Ca(l),v=Sa(l),b=Ca(c),C=Sa(c),P={a:N,A:F,b:V,B:J,c:null,d:Tb,e:Tb,f:X4,g:a8,G:l8,H:q4,I:Y4,j:G4,L:N2,m:Z4,M:Q4,p:U,q:H,Q:Rb,s:Ab,S:J4,u:e8,U:t8,V:r8,w:n8,W:i8,x:null,X:null,y:o8,Y:s8,Z:c8,"%":Mb},E={a:Q,A:ie,b:de,B:le,c:null,d:Ib,e:Ib,f:p8,g:S8,G:P8,H:u8,I:d8,j:f8,L:_2,m:h8,M:m8,p:ve,q:W,Q:Rb,s:Ab,S:g8,u:v8,U:y8,V:x8,w:b8,W:w8,x:null,X:null,y:C8,Y:j8,Z:E8,"%":Mb},j={a:B,A:M,b:I,B:_,c:L,d:Ob,e:Ob,f:H4,g:Eb,G:Pb,H:kb,I:kb,j:L4,L:V4,m:$4,M:z4,p:D,q:B4,Q:U4,s:K4,S:F4,u:R4,U:A4,V:N4,w:M4,W:D4,x:R,X:T,y:Eb,Y:Pb,Z:_4,"%":W4};P.x=S(r,P),P.X=S(n,P),P.c=S(t,P),E.x=S(r,E),E.X=S(n,E),E.c=S(t,E);function S(z,X){return function(Y){var A=[],G=-1,K=0,te=z.length,oe,fe,me;for(Y instanceof Date||(Y=new Date(+Y));++G<te;)z.charCodeAt(G)===37&&(A.push(z.slice(K,G)),(fe=jb[oe=z.charAt(++G)])!=null?oe=z.charAt(++G):fe=oe==="e"?" ":"0",(me=X[oe])&&(oe=me(Y,fe)),A.push(oe),K=G+1);return A.push(z.slice(K,G)),A.join("")}}function O(z,X){return function(Y){var A=wa(1900,void 0,1),G=k(A,z,Y+="",0),K,te;if(G!=Y.length)return null;if("Q"in A)return new Date(A.Q);if("s"in A)return new Date(A.s*1e3+("L"in A?A.L:0));if(X&&!("Z"in A)&&(A.Z=0),"p"in A&&(A.H=A.H%12+A.p*12),A.m===void 0&&(A.m="q"in A?A.q:0),"V"in A){if(A.V<1||A.V>53)return null;"w"in A||(A.w=1),"Z"in A?(K=_f(wa(A.y,0,1)),te=K.getUTCDay(),K=te>4||te===0?vh.ceil(K):vh(K),K=zm.offset(K,(A.V-1)*7),A.y=K.getUTCFullYear(),A.m=K.getUTCMonth(),A.d=K.getUTCDate()+(A.w+6)%7):(K=Df(wa(A.y,0,1)),te=K.getDay(),K=te>4||te===0?gh.ceil(K):gh(K),K=uu.offset(K,(A.V-1)*7),A.y=K.getFullYear(),A.m=K.getMonth(),A.d=K.getDate()+(A.w+6)%7)}else("W"in A||"U"in A)&&("w"in A||(A.w="u"in A?A.u%7:"W"in A?1:0),te="Z"in A?_f(wa(A.y,0,1)).getUTCDay():Df(wa(A.y,0,1)).getDay(),A.m=0,A.d="W"in A?(A.w+6)%7+A.W*7-(te+5)%7:A.w+A.U*7-(te+6)%7);return"Z"in A?(A.H+=A.Z/100|0,A.M+=A.Z%100,_f(A)):Df(A)}}function k(z,X,Y,A){for(var G=0,K=X.length,te=Y.length,oe,fe;G<K;){if(A>=te)return-1;if(oe=X.charCodeAt(G++),oe===37){if(oe=X.charAt(G++),fe=j[oe in jb?X.charAt(G++):oe],!fe||(A=fe(z,Y,A))<0)return-1}else if(oe!=Y.charCodeAt(A++))return-1}return A}function D(z,X,Y){var A=d.exec(X.slice(Y));return A?(z.p=u.get(A[0].toLowerCase()),Y+A[0].length):-1}function B(z,X,Y){var A=m.exec(X.slice(Y));return A?(z.w=g.get(A[0].toLowerCase()),Y+A[0].length):-1}function M(z,X,Y){var A=f.exec(X.slice(Y));return A?(z.w=h.get(A[0].toLowerCase()),Y+A[0].length):-1}function I(z,X,Y){var A=b.exec(X.slice(Y));return A?(z.m=C.get(A[0].toLowerCase()),Y+A[0].length):-1}function _(z,X,Y){var A=x.exec(X.slice(Y));return A?(z.m=v.get(A[0].toLowerCase()),Y+A[0].length):-1}function L(z,X,Y){return k(z,t,X,Y)}function R(z,X,Y){return k(z,r,X,Y)}function T(z,X,Y){return k(z,n,X,Y)}function N(z){return s[z.getDay()]}function F(z){return a[z.getDay()]}function V(z){return c[z.getMonth()]}function J(z){return l[z.getMonth()]}function U(z){return i[+(z.getHours()>=12)]}function H(z){return 1+~~(z.getMonth()/3)}function Q(z){return s[z.getUTCDay()]}function ie(z){return a[z.getUTCDay()]}function de(z){return c[z.getUTCMonth()]}function le(z){return l[z.getUTCMonth()]}function ve(z){return i[+(z.getUTCHours()>=12)]}function W(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var X=S(z+="",P);return X.toString=function(){return z},X},parse:function(z){var X=O(z+="",!1);return X.toString=function(){return z},X},utcFormat:function(z){var X=S(z+="",E);return X.toString=function(){return z},X},utcParse:function(z){var X=O(z+="",!0);return X.toString=function(){return z},X}}}var jb={"-":"",_:" ",0:"0"},qt=/^\s*\d+/,k4=/^%/,T4=/[\\^$*+?|[\]().{}]/g;function He(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function I4(e){return e.replace(T4,"\\$&")}function Ca(e){return new RegExp("^(?:"+e.map(I4).join("|")+")","i")}function Sa(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function M4(e,t,r){var n=qt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function R4(e,t,r){var n=qt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function A4(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function N4(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function D4(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Pb(e,t,r){var n=qt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Eb(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function _4(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function B4(e,t,r){var n=qt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function $4(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Ob(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function L4(e,t,r){var n=qt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function kb(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function z4(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function F4(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function V4(e,t,r){var n=qt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function H4(e,t,r){var n=qt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function W4(e,t,r){var n=k4.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function U4(e,t,r){var n=qt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function K4(e,t,r){var n=qt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Tb(e,t){return He(e.getDate(),t,2)}function q4(e,t){return He(e.getHours(),t,2)}function Y4(e,t){return He(e.getHours()%12||12,t,2)}function G4(e,t){return He(1+uu.count(fi(e),e),t,3)}function N2(e,t){return He(e.getMilliseconds(),t,3)}function X4(e,t){return N2(e,t)+"000"}function Z4(e,t){return He(e.getMonth()+1,t,2)}function Q4(e,t){return He(e.getMinutes(),t,2)}function J4(e,t){return He(e.getSeconds(),t,2)}function e8(e){var t=e.getDay();return t===0?7:t}function t8(e,t){return He(Fm.count(fi(e)-1,e),t,2)}function D2(e){var t=e.getDay();return t>=4||t===0?ts(e):ts.ceil(e)}function r8(e,t){return e=D2(e),He(ts.count(fi(e),e)+(fi(e).getDay()===4),t,2)}function n8(e){return e.getDay()}function i8(e,t){return He(gh.count(fi(e)-1,e),t,2)}function o8(e,t){return He(e.getFullYear()%100,t,2)}function a8(e,t){return e=D2(e),He(e.getFullYear()%100,t,2)}function s8(e,t){return He(e.getFullYear()%1e4,t,4)}function l8(e,t){var r=e.getDay();return e=r>=4||r===0?ts(e):ts.ceil(e),He(e.getFullYear()%1e4,t,4)}function c8(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+He(t/60|0,"0",2)+He(t%60,"0",2)}function Ib(e,t){return He(e.getUTCDate(),t,2)}function u8(e,t){return He(e.getUTCHours(),t,2)}function d8(e,t){return He(e.getUTCHours()%12||12,t,2)}function f8(e,t){return He(1+zm.count(pi(e),e),t,3)}function _2(e,t){return He(e.getUTCMilliseconds(),t,3)}function p8(e,t){return _2(e,t)+"000"}function h8(e,t){return He(e.getUTCMonth()+1,t,2)}function m8(e,t){return He(e.getUTCMinutes(),t,2)}function g8(e,t){return He(e.getUTCSeconds(),t,2)}function v8(e){var t=e.getUTCDay();return t===0?7:t}function y8(e,t){return He(Vm.count(pi(e)-1,e),t,2)}function B2(e){var t=e.getUTCDay();return t>=4||t===0?rs(e):rs.ceil(e)}function x8(e,t){return e=B2(e),He(rs.count(pi(e),e)+(pi(e).getUTCDay()===4),t,2)}function b8(e){return e.getUTCDay()}function w8(e,t){return He(vh.count(pi(e)-1,e),t,2)}function C8(e,t){return He(e.getUTCFullYear()%100,t,2)}function S8(e,t){return e=B2(e),He(e.getUTCFullYear()%100,t,2)}function j8(e,t){return He(e.getUTCFullYear()%1e4,t,4)}function P8(e,t){var r=e.getUTCDay();return e=r>=4||r===0?rs(e):rs.ceil(e),He(e.getUTCFullYear()%1e4,t,4)}function E8(){return"+0000"}function Mb(){return"%"}function Rb(e){return+e}function Ab(e){return Math.floor(+e/1e3)}var xl,$2,L2;O8({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function O8(e){return xl=O4(e),$2=xl.format,L2=xl.utcFormat,xl}function k8(e){return new Date(e)}function T8(e){return e instanceof Date?+e:+new Date(+e)}function Hm(e,t,r,n,i,a,s,l,c,d){var u=Rm(),f=u.invert,h=u.domain,m=d(".%L"),g=d(":%S"),x=d("%I:%M"),v=d("%I %p"),b=d("%a %d"),C=d("%b %d"),P=d("%B"),E=d("%Y");function j(S){return(c(S)<S?m:l(S)<S?g:s(S)<S?x:a(S)<S?v:n(S)<S?i(S)<S?b:C:r(S)<S?P:E)(S)}return u.invert=function(S){return new Date(f(S))},u.domain=function(S){return arguments.length?h(Array.from(S,T8)):h().map(k8)},u.ticks=function(S){var O=h();return e(O[0],O[O.length-1],S??10)},u.tickFormat=function(S,O){return O==null?j:d(O)},u.nice=function(S){var O=h();return(!S||typeof S.range!="function")&&(S=t(O[0],O[O.length-1],S??10)),S?h(b2(O,S)):u},u.copy=function(){return Ss(u,Hm(e,t,r,n,i,a,s,l,c,d))},u}function I8(){return Vr.apply(Hm(P4,E4,fi,M2,Fm,uu,T2,O2,vo,$2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function M8(){return Vr.apply(Hm(S4,j4,pi,R2,Vm,zm,I2,k2,vo,L2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function du(){var e=0,t=1,r,n,i,a,s=ir,l=!1,c;function d(f){return f==null||isNaN(f=+f)?c:s(i===0?.5:(f=(a(f)-r)*i,l?Math.max(0,Math.min(1,f)):f))}d.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),d):[e,t]},d.clamp=function(f){return arguments.length?(l=!!f,d):l},d.interpolator=function(f){return arguments.length?(s=f,d):s};function u(f){return function(h){var m,g;return arguments.length?([m,g]=h,s=f(m,g),d):[s(0),s(1)]}}return d.range=u(Vo),d.rangeRound=u(Mm),d.unknown=function(f){return arguments.length?(c=f,d):c},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),d}}function gi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function z2(){var e=mi(du()(ir));return e.copy=function(){return gi(e,z2())},Hn.apply(e,arguments)}function F2(){var e=Dm(du()).domain([1,10]);return e.copy=function(){return gi(e,F2()).base(e.base())},Hn.apply(e,arguments)}function V2(){var e=_m(du());return e.copy=function(){return gi(e,V2()).constant(e.constant())},Hn.apply(e,arguments)}function Wm(){var e=Bm(du());return e.copy=function(){return gi(e,Wm()).exponent(e.exponent())},Hn.apply(e,arguments)}function R8(){return Wm.apply(null,arguments).exponent(.5)}function H2(){var e=[],t=ir;function r(n){if(n!=null&&!isNaN(n=+n))return t((ws(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(di),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>j$(e,a/n))},r.copy=function(){return H2(t).domain(e)},Hn.apply(r,arguments)}function fu(){var e=0,t=.5,r=1,n=1,i,a,s,l,c,d=ir,u,f=!1,h;function m(x){return isNaN(x=+x)?h:(x=.5+((x=+u(x))-a)*(n*x<n*a?l:c),d(f?Math.max(0,Math.min(1,x)):x))}m.domain=function(x){return arguments.length?([e,t,r]=x,i=u(e=+e),a=u(t=+t),s=u(r=+r),l=i===a?0:.5/(a-i),c=a===s?0:.5/(s-a),n=a<i?-1:1,m):[e,t,r]},m.clamp=function(x){return arguments.length?(f=!!x,m):f},m.interpolator=function(x){return arguments.length?(d=x,m):d};function g(x){return function(v){var b,C,P;return arguments.length?([b,C,P]=v,d=Z$(x,[b,C,P]),m):[d(0),d(.5),d(1)]}}return m.range=g(Vo),m.rangeRound=g(Mm),m.unknown=function(x){return arguments.length?(h=x,m):h},function(x){return u=x,i=x(e),a=x(t),s=x(r),l=i===a?0:.5/(a-i),c=a===s?0:.5/(s-a),n=a<i?-1:1,m}}function W2(){var e=mi(fu()(ir));return e.copy=function(){return gi(e,W2())},Hn.apply(e,arguments)}function U2(){var e=Dm(fu()).domain([.1,1,10]);return e.copy=function(){return gi(e,U2()).base(e.base())},Hn.apply(e,arguments)}function K2(){var e=_m(fu());return e.copy=function(){return gi(e,K2()).constant(e.constant())},Hn.apply(e,arguments)}function Um(){var e=Bm(fu());return e.copy=function(){return gi(e,Um()).exponent(e.exponent())},Hn.apply(e,arguments)}function A8(){return Um.apply(null,arguments).exponent(.5)}const Ea=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:km,scaleDiverging:W2,scaleDivergingLog:U2,scaleDivergingPow:Um,scaleDivergingSqrt:A8,scaleDivergingSymlog:K2,scaleIdentity:x2,scaleImplicit:dh,scaleLinear:y2,scaleLog:w2,scaleOrdinal:Om,scalePoint:O$,scalePow:$m,scaleQuantile:j2,scaleQuantize:P2,scaleRadial:S2,scaleSequential:z2,scaleSequentialLog:F2,scaleSequentialPow:Wm,scaleSequentialQuantile:H2,scaleSequentialSqrt:R8,scaleSequentialSymlog:V2,scaleSqrt:b4,scaleSymlog:C2,scaleThreshold:E2,scaleTime:I8,scaleUtc:M8,tickFormat:v2},Symbol.toStringTag,{value:"Module"}));var vi=e=>e.chartData,Km=ee([vi],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),qm=(e,t,r,n)=>n?Km(e):vi(e);function Hi(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(wt(t)&&wt(r))return!0}return!1}function Nb(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function q2(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(wt(r))i=r;else if(typeof r=="function")return;if(wt(n))a=n;else if(typeof n=="function")return;var s=[i,a];if(Hi(s))return s}}function N8(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Hi(n))return Nb(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,s,l;if(i==="auto")t!=null&&(s=Math.min(...t));else if(Ee(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[0]))}catch{}else if(typeof i=="string"&&hx.test(i)){var c=hx.exec(i);if(c==null||t==null)s=void 0;else{var d=+c[1];s=t[0]-d}}else s=t?.[0];if(a==="auto")t!=null&&(l=Math.max(...t));else if(Ee(a))l=a;else if(typeof a=="function")try{t!=null&&(l=a(t?.[1]))}catch{}else if(typeof a=="string"&&mx.test(a)){var u=mx.exec(a);if(u==null||t==null)l=void 0;else{var f=+u[1];l=t[1]+f}}else l=t?.[1];var h=[s,l];if(Hi(h))return t==null?h:Nb(h,t,r)}}}var Ho=1e9,D8={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Gm,lt=!0,$r="[DecimalError] ",$i=$r+"Invalid argument: ",Ym=$r+"Exponent out of range: ",Wo=Math.floor,Oi=Math.pow,_8=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Cr,Ft=1e7,it=7,Y2=9007199254740991,bc=Wo(Y2/it),we={};we.absoluteValue=we.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};we.comparedTo=we.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};we.decimalPlaces=we.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*it;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};we.dividedBy=we.div=function(e){return Mn(this,new this.constructor(e))};we.dividedToIntegerBy=we.idiv=function(e){var t=this,r=t.constructor;return et(Mn(t,new r(e),0,1),r.precision)};we.equals=we.eq=function(e){return!this.cmp(e)};we.exponent=function(){return Ot(this)};we.greaterThan=we.gt=function(e){return this.cmp(e)>0};we.greaterThanOrEqualTo=we.gte=function(e){return this.cmp(e)>=0};we.isInteger=we.isint=function(){return this.e>this.d.length-2};we.isNegative=we.isneg=function(){return this.s<0};we.isPositive=we.ispos=function(){return this.s>0};we.isZero=function(){return this.s===0};we.lessThan=we.lt=function(e){return this.cmp(e)<0};we.lessThanOrEqualTo=we.lte=function(e){return this.cmp(e)<1};we.logarithm=we.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Cr))throw Error($r+"NaN");if(r.s<1)throw Error($r+(r.s?"NaN":"-Infinity"));return r.eq(Cr)?new n(0):(lt=!1,t=Mn(ns(r,a),ns(e,a),a),lt=!0,et(t,i))};we.minus=we.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Z2(t,e):G2(t,(e.s=-e.s,e))};we.modulo=we.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error($r+"NaN");return r.s?(lt=!1,t=Mn(r,e,0,1).times(e),lt=!0,r.minus(t)):et(new n(r),i)};we.naturalExponential=we.exp=function(){return X2(this)};we.naturalLogarithm=we.ln=function(){return ns(this)};we.negated=we.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};we.plus=we.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?G2(t,e):Z2(t,(e.s=-e.s,e))};we.precision=we.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error($i+e);if(t=Ot(i)+1,n=i.d.length-1,r=n*it+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};we.squareRoot=we.sqrt=function(){var e,t,r,n,i,a,s,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error($r+"NaN")}for(e=Ot(l),lt=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=ln(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Wo((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=s=r+3;;)if(a=n,n=a.plus(Mn(l,a,s+2)).times(.5),ln(a.d).slice(0,s)===(t=ln(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(et(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;s+=4}return lt=!0,et(n,r)};we.times=we.mul=function(e){var t,r,n,i,a,s,l,c,d,u=this,f=u.constructor,h=u.d,m=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,r=u.e+e.e,c=h.length,d=m.length,c<d&&(a=h,h=m,m=a,s=c,c=d,d=s),a=[],s=c+d,n=s;n--;)a.push(0);for(n=d;--n>=0;){for(t=0,i=c+n;i>n;)l=a[i]+m[n]*h[i-n-1]+t,a[i--]=l%Ft|0,t=l/Ft|0;a[i]=(a[i]+t)%Ft|0}for(;!a[--s];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,lt?et(e,f.precision):e};we.toDecimalPlaces=we.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(gn(e,0,Ho),t===void 0?t=n.rounding:gn(t,0,8),et(r,e+Ot(r)+1,t))};we.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Wi(n,!0):(gn(e,0,Ho),t===void 0?t=i.rounding:gn(t,0,8),n=et(new i(n),e+1,t),r=Wi(n,!0,e+1)),r};we.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Wi(i):(gn(e,0,Ho),t===void 0?t=a.rounding:gn(t,0,8),n=et(new a(i),e+Ot(i)+1,t),r=Wi(n.abs(),!1,e+Ot(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};we.toInteger=we.toint=function(){var e=this,t=e.constructor;return et(new t(e),Ot(e)+1,t.rounding)};we.toNumber=function(){return+this};we.toPower=we.pow=function(e){var t,r,n,i,a,s,l=this,c=l.constructor,d=12,u=+(e=new c(e));if(!e.s)return new c(Cr);if(l=new c(l),!l.s){if(e.s<1)throw Error($r+"Infinity");return l}if(l.eq(Cr))return l;if(n=c.precision,e.eq(Cr))return et(l,n);if(t=e.e,r=e.d.length-1,s=t>=r,a=l.s,s){if((r=u<0?-u:u)<=Y2){for(i=new c(Cr),t=Math.ceil(n/it+4),lt=!1;r%2&&(i=i.times(l),_b(i.d,t)),r=Wo(r/2),r!==0;)l=l.times(l),_b(l.d,t);return lt=!0,e.s<0?new c(Cr).div(i):et(i,n)}}else if(a<0)throw Error($r+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,lt=!1,i=e.times(ns(l,n+d)),lt=!0,i=X2(i),i.s=a,i};we.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Ot(i),n=Wi(i,r<=a.toExpNeg||r>=a.toExpPos)):(gn(e,1,Ho),t===void 0?t=a.rounding:gn(t,0,8),i=et(new a(i),e,t),r=Ot(i),n=Wi(i,e<=r||r<=a.toExpNeg,e)),n};we.toSignificantDigits=we.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(gn(e,1,Ho),t===void 0?t=n.rounding:gn(t,0,8)),et(new n(r),e,t)};we.toString=we.valueOf=we.val=we.toJSON=we[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ot(e),r=e.constructor;return Wi(e,t<=r.toExpNeg||t>=r.toExpPos)};function G2(e,t){var r,n,i,a,s,l,c,d,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),lt?et(t,f):t;if(c=e.d,d=t.d,s=e.e,i=t.e,c=c.slice(),a=s-i,a){for(a<0?(n=c,a=-a,l=d.length):(n=d,i=s,l=c.length),s=Math.ceil(f/it),l=s>l?s+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=c.length,a=d.length,l-a<0&&(a=l,n=d,d=c,c=n),r=0;a;)r=(c[--a]=c[a]+d[a]+r)/Ft|0,c[a]%=Ft;for(r&&(c.unshift(r),++i),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=i,lt?et(t,f):t}function gn(e,t,r){if(e!==~~e||e<t||e>r)throw Error($i+e)}function ln(e){var t,r,n,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;t<i;t++)n=e[t]+"",r=it-n.length,r&&(a+=oi(r)),a+=n;s=e[t],n=s+"",r=it-n.length,r&&(a+=oi(r))}else if(s===0)return"0";for(;s%10===0;)s/=10;return a+s}var Mn=(function(){function e(n,i){var a,s=0,l=n.length;for(n=n.slice();l--;)a=n[l]*i+s,n[l]=a%Ft|0,s=a/Ft|0;return s&&n.unshift(s),n}function t(n,i,a,s){var l,c;if(a!=s)c=a>s?1:-1;else for(l=c=0;l<a;l++)if(n[l]!=i[l]){c=n[l]>i[l]?1:-1;break}return c}function r(n,i,a){for(var s=0;a--;)n[a]-=s,s=n[a]<i[a]?1:0,n[a]=s*Ft+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,s){var l,c,d,u,f,h,m,g,x,v,b,C,P,E,j,S,O,k,D=n.constructor,B=n.s==i.s?1:-1,M=n.d,I=i.d;if(!n.s)return new D(n);if(!i.s)throw Error($r+"Division by zero");for(c=n.e-i.e,O=I.length,j=M.length,m=new D(B),g=m.d=[],d=0;I[d]==(M[d]||0);)++d;if(I[d]>(M[d]||0)&&--c,a==null?C=a=D.precision:s?C=a+(Ot(n)-Ot(i))+1:C=a,C<0)return new D(0);if(C=C/it+2|0,d=0,O==1)for(u=0,I=I[0],C++;(d<j||u)&&C--;d++)P=u*Ft+(M[d]||0),g[d]=P/I|0,u=P%I|0;else{for(u=Ft/(I[0]+1)|0,u>1&&(I=e(I,u),M=e(M,u),O=I.length,j=M.length),E=O,x=M.slice(0,O),v=x.length;v<O;)x[v++]=0;k=I.slice(),k.unshift(0),S=I[0],I[1]>=Ft/2&&++S;do u=0,l=t(I,x,O,v),l<0?(b=x[0],O!=v&&(b=b*Ft+(x[1]||0)),u=b/S|0,u>1?(u>=Ft&&(u=Ft-1),f=e(I,u),h=f.length,v=x.length,l=t(f,x,h,v),l==1&&(u--,r(f,O<h?k:I,h))):(u==0&&(l=u=1),f=I.slice()),h=f.length,h<v&&f.unshift(0),r(x,f,v),l==-1&&(v=x.length,l=t(I,x,O,v),l<1&&(u++,r(x,O<v?k:I,v))),v=x.length):l===0&&(u++,x=[0]),g[d++]=u,l&&x[0]?x[v++]=M[E]||0:(x=[M[E]],v=1);while((E++<j||x[0]!==void 0)&&C--)}return g[0]||g.shift(),m.e=c,et(m,s?a+Ot(m)+1:a)}})();function X2(e,t){var r,n,i,a,s,l,c=0,d=0,u=e.constructor,f=u.precision;if(Ot(e)>16)throw Error(Ym+Ot(e));if(!e.s)return new u(Cr);for(lt=!1,l=f,s=new u(.03125);e.abs().gte(.1);)e=e.times(s),d+=5;for(n=Math.log(Oi(2,d))/Math.LN10*2+5|0,l+=n,r=i=a=new u(Cr),u.precision=l;;){if(i=et(i.times(e),l),r=r.times(++c),s=a.plus(Mn(i,r,l)),ln(s.d).slice(0,l)===ln(a.d).slice(0,l)){for(;d--;)a=et(a.times(a),l);return u.precision=f,t==null?(lt=!0,et(a,f)):a}a=s}}function Ot(e){for(var t=e.e*it,r=e.d[0];r>=10;r/=10)t++;return t}function Bf(e,t,r){if(t>e.LN10.sd())throw lt=!0,r&&(e.precision=r),Error($r+"LN10 precision limit exceeded");return et(new e(e.LN10),t)}function oi(e){for(var t="";e--;)t+="0";return t}function ns(e,t){var r,n,i,a,s,l,c,d,u,f=1,h=10,m=e,g=m.d,x=m.constructor,v=x.precision;if(m.s<1)throw Error($r+(m.s?"NaN":"-Infinity"));if(m.eq(Cr))return new x(0);if(t==null?(lt=!1,d=v):d=t,m.eq(10))return t==null&&(lt=!0),Bf(x,d);if(d+=h,x.precision=d,r=ln(g),n=r.charAt(0),a=Ot(m),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)m=m.times(e),r=ln(m.d),n=r.charAt(0),f++;a=Ot(m),n>1?(m=new x("0."+r),a++):m=new x(n+"."+r.slice(1))}else return c=Bf(x,d+2,v).times(a+""),m=ns(new x(n+"."+r.slice(1)),d-h).plus(c),x.precision=v,t==null?(lt=!0,et(m,v)):m;for(l=s=m=Mn(m.minus(Cr),m.plus(Cr),d),u=et(m.times(m),d),i=3;;){if(s=et(s.times(u),d),c=l.plus(Mn(s,new x(i),d)),ln(c.d).slice(0,d)===ln(l.d).slice(0,d))return l=l.times(2),a!==0&&(l=l.plus(Bf(x,d+2,v).times(a+""))),l=Mn(l,new x(f),d),x.precision=v,t==null?(lt=!0,et(l,v)):l;l=c,i+=2}}function Db(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Wo(r/it),e.d=[],n=(r+1)%it,r<0&&(n+=it),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=it;n<i;)e.d.push(+t.slice(n,n+=it));t=t.slice(n),n=it-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),lt&&(e.e>bc||e.e<-bc))throw Error(Ym+r)}else e.s=0,e.e=0,e.d=[0];return e}function et(e,t,r){var n,i,a,s,l,c,d,u,f=e.d;for(s=1,a=f[0];a>=10;a/=10)s++;if(n=t-s,n<0)n+=it,i=t,d=f[u=0];else{if(u=Math.ceil((n+1)/it),a=f.length,u>=a)return e;for(d=a=f[u],s=1;a>=10;a/=10)s++;n%=it,i=n-it+s}if(r!==void 0&&(a=Oi(10,s-i-1),l=d/a%10|0,c=t<0||f[u+1]!==void 0||d%a,c=r<4?(l||c)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||c||r==6&&(n>0?i>0?d/Oi(10,s-i):0:f[u-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(a=Ot(e),f.length=1,t=t-a-1,f[0]=Oi(10,(it-t%it)%it),e.e=Wo(-t/it)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=u,a=1,u--):(f.length=u+1,a=Oi(10,it-n),f[u]=i>0?(d/Oi(10,s-i)%Oi(10,i)|0)*a:0),c)for(;;)if(u==0){(f[0]+=a)==Ft&&(f[0]=1,++e.e);break}else{if(f[u]+=a,f[u]!=Ft)break;f[u--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(lt&&(e.e>bc||e.e<-bc))throw Error(Ym+Ot(e));return e}function Z2(e,t){var r,n,i,a,s,l,c,d,u,f,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),lt?et(t,m):t;if(c=e.d,f=t.d,n=t.e,d=e.e,c=c.slice(),s=d-n,s){for(u=s<0,u?(r=c,s=-s,l=f.length):(r=f,n=d,l=c.length),i=Math.max(Math.ceil(m/it),l)+2,s>i&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for(i=c.length,l=f.length,u=i<l,u&&(l=i),i=0;i<l;i++)if(c[i]!=f[i]){u=c[i]<f[i];break}s=0}for(u&&(r=c,c=f,f=r,t.s=-t.s),l=c.length,i=f.length-l;i>0;--i)c[l++]=0;for(i=f.length;i>s;){if(c[--i]<f[i]){for(a=i;a&&c[--a]===0;)c[a]=Ft-1;--c[a],c[i]+=Ft}c[i]-=f[i]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,lt?et(t,m):t):new h(0)}function Wi(e,t,r){var n,i=Ot(e),a=ln(e.d),s=a.length;return t?(r&&(n=r-s)>0?a=a.charAt(0)+"."+a.slice(1)+oi(n):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+oi(-i-1)+a,r&&(n=r-s)>0&&(a+=oi(n))):i>=s?(a+=oi(i+1-s),r&&(n=r-i-1)>0&&(a=a+"."+oi(n))):((n=i+1)<s&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-s)>0&&(i+1===s&&(a+="."),a+=oi(n))),e.s<0?"-"+a:a}function _b(e,t){if(e.length>t)return e.length=t,!0}function Q2(e){var t,r,n;function i(a){var s=this;if(!(s instanceof i))return new i(a);if(s.constructor=i,a instanceof i){s.s=a.s,s.e=a.e,s.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error($i+a);if(a>0)s.s=1;else if(a<0)a=-a,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(a===~~a&&a<1e7){s.e=0,s.d=[a];return}return Db(s,a.toString())}else if(typeof a!="string")throw Error($i+a);if(a.charCodeAt(0)===45?(a=a.slice(1),s.s=-1):s.s=1,_8.test(a))Db(s,a);else throw Error($i+a)}if(i.prototype=we,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Q2,i.config=i.set=B8,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function B8(e){if(!e||typeof e!="object")throw Error($r+"Object expected");var t,r,n,i=["precision",1,Ho,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Wo(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error($i+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error($i+r+": "+n);return this}var Gm=Q2(D8);Cr=new Gm(1);const Xe=Gm;var $8=e=>e,J2={},eP=e=>e===J2,Bb=e=>function t(){return arguments.length===0||arguments.length===1&&eP(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},tP=(e,t)=>e===1?t:Bb(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=n.filter(s=>s!==J2).length;return a>=e?t(...n):tP(e-a,Bb(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var d=n.map(u=>eP(u)?l.shift():u);return t(...d,...l)}))}),L8=e=>tP(e.length,e),yh=(e,t)=>{for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},z8=L8((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),F8=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return $8;var i=r.reverse(),a=i[0],s=i.slice(1);return function(){return s.reduce((l,c)=>c(l),a(...arguments))}},xh=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),rP=e=>{var t=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t&&i.every((s,l)=>{var c;return s===((c=t)===null||c===void 0?void 0:c[l])})||(t=i,r=e(...i)),r}};function nP(e){var t;return e===0?t=1:t=Math.floor(new Xe(e).abs().log(10).toNumber())+1,t}function iP(e,t,r){for(var n=new Xe(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var oP=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},aP=(e,t,r)=>{if(e.lte(0))return new Xe(0);var n=nP(e.toNumber()),i=new Xe(10).pow(n),a=e.div(i),s=n!==1?.05:.1,l=new Xe(Math.ceil(a.div(s).toNumber())).add(r).mul(s),c=l.mul(i);return t?new Xe(c.toNumber()):new Xe(Math.ceil(c.toNumber()))},V8=(e,t,r)=>{var n=new Xe(1),i=new Xe(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Xe(10).pow(nP(e)-1),i=new Xe(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Xe(Math.floor(e)))}else e===0?i=new Xe(Math.floor((t-1)/2)):r||(i=new Xe(Math.floor(e)));var s=Math.floor((t-1)/2),l=F8(z8(c=>i.add(new Xe(c-s).mul(n)).toNumber()),yh);return l(0,t)},sP=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new Xe(0),tickMin:new Xe(0),tickMax:new Xe(0)};var s=aP(new Xe(r).sub(t).div(n-1),i,a),l;t<=0&&r>=0?l=new Xe(0):(l=new Xe(t).add(r).div(2),l=l.sub(new Xe(l).mod(s)));var c=Math.ceil(l.sub(t).div(s).toNumber()),d=Math.ceil(new Xe(r).sub(l).div(s).toNumber()),u=c+d+1;return u>n?sP(t,r,n,i,a+1):(u<n&&(d=r>0?d+(n-u):d,c=r>0?c:c+(n-u)),{step:s,tickMin:l.sub(new Xe(c).mul(s)),tickMax:l.add(new Xe(d).mul(s))})};function H8(e){var[t,r]=e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(n,2),[s,l]=oP([t,r]);if(s===-1/0||l===1/0){var c=l===1/0?[s,...yh(0,n-1).map(()=>1/0)]:[...yh(0,n-1).map(()=>-1/0),l];return t>r?xh(c):c}if(s===l)return V8(s,n,i);var{step:d,tickMin:u,tickMax:f}=sP(s,l,a,i,0),h=iP(u,f.add(new Xe(.1).mul(d)),d);return t>r?xh(h):h}function W8(e,t){var[r,n]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=oP([r,n]);if(a===-1/0||s===1/0)return[r,n];if(a===s)return[a];var l=Math.max(t,2),c=aP(new Xe(s).sub(a).div(l-1),i,0),d=[...iP(new Xe(a),new Xe(s),c),s];return i===!1&&(d=d.map(u=>Math.round(u))),r>n?xh(d):d}var U8=rP(H8),K8=rP(W8),lP=e=>e.rootProps.maxBarSize,q8=e=>e.rootProps.barGap,cP=e=>e.rootProps.barCategoryGap,Y8=e=>e.rootProps.barSize,js=e=>e.rootProps.stackOffset,Xm=e=>e.options.chartName,Zm=e=>e.rootProps.syncId,uP=e=>e.rootProps.syncMethod,Qm=e=>e.options.eventEmitter,Qt={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},jn={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},br={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},pu=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},G8={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:jn.angleAxisId,includeHidden:!1,name:void 0,reversed:jn.reversed,scale:jn.scale,tick:jn.tick,tickCount:void 0,ticks:void 0,type:jn.type,unit:void 0},X8={allowDataOverflow:br.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:br.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:br.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:br.scale,tick:br.tick,tickCount:br.tickCount,ticks:void 0,type:br.type,unit:void 0},Z8={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:jn.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:jn.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:jn.scale,tick:jn.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Q8={allowDataOverflow:br.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:br.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:br.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:br.scale,tick:br.tick,tickCount:br.tickCount,ticks:void 0,type:"category",unit:void 0},Jm=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?Z8:G8,eg=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?Q8:X8,hu=e=>e.polarOptions,tg=ee([Fn,Vn,Nt],n2),dP=ee([hu,tg],(e,t)=>{if(e!=null)return tr(e.innerRadius,t,0)}),fP=ee([hu,tg],(e,t)=>{if(e!=null)return tr(e.outerRadius,t,t*.8)}),J8=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},pP=ee([hu],J8);ee([Jm,pP],pu);var hP=ee([tg,dP,fP],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});ee([eg,hP],pu);var mP=ee([We,hu,dP,fP,Fn,Vn],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:s,cy:l,startAngle:c,endAngle:d}=t;return{cx:tr(s,i,i/2),cy:tr(l,a,a/2),innerRadius:r,outerRadius:n,startAngle:c,endAngle:d,clockWise:!1}}}),ct=(e,t)=>t,Ps=(e,t,r)=>r;function rg(e){return e?.id}function gP(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,s=new Map;return e.forEach(l=>{var c,d=(c=l.data)!==null&&c!==void 0?c:n;if(!(d==null||d.length===0)){var u=rg(l);d.forEach((f,h)=>{var m=a==null||i?h:String(dt(f,a,null)),g=dt(f,l.dataKey,0),x;s.has(m)?x=s.get(m):x={},Object.assign(x,{[u]:g}),s.set(m,x)})}}),Array.from(s.values())}function mu(e){return e.stackId!=null&&e.dataKey!=null}var gu=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function vu(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function eL(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var _t=e=>{var t=We(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Uo=e=>e.tooltip.settings.axisId;function $b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$b(Object(r),!0).forEach(function(n){tL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tL(e,t,r){return(t=rL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rL(e){var t=nL(e,"string");return typeof t=="symbol"?t:t+""}function nL(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bh=[0,"auto"],yr={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},vP=(e,t)=>e.cartesianAxis.xAxis[t],Wn=(e,t)=>{var r=vP(e,t);return r??yr},xr={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:bh,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:bs},yP=(e,t)=>e.cartesianAxis.yAxis[t],Un=(e,t)=>{var r=yP(e,t);return r??xr},iL={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},ng=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??iL},ft=(e,t,r)=>{switch(t){case"xAxis":return Wn(e,r);case"yAxis":return Un(e,r);case"zAxis":return ng(e,r);case"angleAxis":return Jm(e,r);case"radiusAxis":return eg(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},oL=(e,t,r)=>{switch(t){case"xAxis":return Wn(e,r);case"yAxis":return Un(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Es=(e,t,r)=>{switch(t){case"xAxis":return Wn(e,r);case"yAxis":return Un(e,r);case"angleAxis":return Jm(e,r);case"radiusAxis":return eg(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},xP=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function ig(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var og=e=>e.graphicalItems.cartesianItems,aL=ee([ct,Ps],ig),ag=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),Os=ee([og,ft,aL],ag,{memoizeOptions:{resultEqualityCheck:vu}}),bP=ee([Os],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(mu)),wP=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),sL=ee([Os],wP),sg=e=>e.map(t=>t.data).filter(Boolean).flat(1),lL=ee([Os],sg,{memoizeOptions:{resultEqualityCheck:vu}}),lg=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},cg=ee([lL,qm],lg),ug=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:dt(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:dt(i,n)}))):e.map(n=>({value:n})),yu=ee([cg,ft,Os],ug);function CP(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Al(e){if(hn(e)||e instanceof Date){var t=Number(e);if(wt(t))return t}}function Lb(e){if(Array.isArray(e)){var t=[Al(e[0]),Al(e[1])];return Hi(t)?t:void 0}var r=Al(e);if(r!=null)return[r,r]}function _n(e){return e.map(Al).filter(i_)}function cL(e,t,r){return!r||typeof t!="number"||Qr(t)?[]:r.length?_n(r.flatMap(n=>{var i=dt(e,n.dataKey),a,s;if(Array.isArray(i)?[a,s]=i:a=s=i,!(!wt(a)||!wt(s)))return[t-a,t+s]})):[]}var Bt=e=>{var t=_t(e),r=Uo(e);return Es(e,t,r)},SP=ee([Bt],e=>e?.dataKey),uL=ee([bP,qm,Bt],gP),jP=(e,t,r)=>{var n={},i=t.reduce((a,s)=>(s.stackId==null||(a[s.stackId]==null&&(a[s.stackId]=[]),a[s.stackId].push(s)),a),n);return Object.fromEntries(Object.entries(i).map(a=>{var[s,l]=a,c=l.map(rg);return[s,{stackedData:U6(e,c,r),graphicalItems:l}]}))},wh=ee([uL,bP,js],jP),PP=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var s=X6(e,i,a);if(!(s!=null&&s[0]===0&&s[1]===0))return s}},dL=ee([ft],e=>e.allowDataOverflow),dg=e=>{var t;if(e==null||!("domain"in e))return bh;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var r=_n(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:bh},fg=ee([ft],dg),pg=ee([fg,dL],q2),fL=ee([wh,vi,ct,pg],PP,{memoizeOptions:{resultEqualityCheck:gu}}),xu=e=>e.errorBars,pL=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>CP(r,n)),Cc=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),s=Math.min(...a),l=Math.max(...a);return[s,l]}},hg=(e,t,r,n,i)=>{var a,s;if(r.length>0&&e.forEach(l=>{r.forEach(c=>{var d,u,f=(d=n[c.id])===null||d===void 0?void 0:d.filter(b=>CP(i,b)),h=dt(l,(u=t.dataKey)!==null&&u!==void 0?u:c.dataKey),m=cL(l,h,f);if(m.length>=2){var g=Math.min(...m),x=Math.max(...m);(a==null||g<a)&&(a=g),(s==null||x>s)&&(s=x)}var v=Lb(h);v!=null&&(a=a==null?v[0]:Math.min(a,v[0]),s=s==null?v[1]:Math.max(s,v[1]))})}),t?.dataKey!=null&&e.forEach(l=>{var c=Lb(dt(l,t.dataKey));c!=null&&(a=a==null?c[0]:Math.min(a,c[0]),s=s==null?c[1]:Math.max(s,c[1]))}),wt(a)&&wt(s))return[a,s]},hL=ee([cg,ft,sL,xu,ct],hg,{memoizeOptions:{resultEqualityCheck:gu}});function mL(e){var{value:t}=e;if(hn(t)||t instanceof Date)return t}var gL=(e,t,r)=>{var n=e.map(mL).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&FS(n))?s2(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},EP=e=>e.referenceElements.dots,Ko=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),vL=ee([EP,ct,Ps],Ko),OP=e=>e.referenceElements.areas,yL=ee([OP,ct,Ps],Ko),kP=e=>e.referenceElements.lines,xL=ee([kP,ct,Ps],Ko),TP=(e,t)=>{var r=_n(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},bL=ee(vL,ct,TP),IP=(e,t)=>{var r=_n(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},wL=ee([yL,ct],IP);function CL(e){var t;if(e.x!=null)return _n([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:_n(r)}function SL(e){var t;if(e.y!=null)return _n([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:_n(r)}var MP=(e,t)=>{var r=e.flatMap(n=>t==="xAxis"?CL(n):SL(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},jL=ee([xL,ct],MP),PL=ee(bL,jL,wL,(e,t,r)=>Cc(e,r,t)),mg=(e,t,r,n,i,a,s,l)=>{if(r!=null)return r;var c=s==="vertical"&&l==="xAxis"||s==="horizontal"&&l==="yAxis",d=c?Cc(n,a,i):Cc(a,i);return N8(t,d,e.allowDataOverflow)},EL=ee([ft,fg,pg,fL,hL,PL,We,ct],mg,{memoizeOptions:{resultEqualityCheck:gu}}),OL=[0,1],gg=(e,t,r,n,i,a,s)=>{if(!((e==null||r==null||r.length===0)&&s===void 0)){var{dataKey:l,type:c}=e,d=Xi(t,a);if(d&&l==null){var u;return s2(0,(u=r?.length)!==null&&u!==void 0?u:0)}return c==="category"?gL(n,e,d):i==="expand"?OL:s}},vg=ee([ft,We,cg,yu,js,ct,EL],gg),RP=(e,t,r,n,i)=>{if(e!=null){var{scale:a,type:s}=e;if(a==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?"point":s==="category"?"band":"linear";if(typeof a=="string"){var l="scale".concat(hs(a));return l in Ea?l:"point"}}},qo=ee([ft,We,xP,Xm,ct],RP);function kL(e){if(e!=null){if(e in Ea)return Ea[e]();var t="scale".concat(hs(e));if(t in Ea)return Ea[t]()}}function yg(e,t,r,n){if(!(r==null||n==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(n);var i=kL(t);if(i!=null){var a=i.domain(r).range(n);return z6(a),a}}}var xg=(e,t,r)=>{var n=dg(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Hi(e))return U8(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Hi(e))return K8(e,t.tickCount,t.allowDecimals)}},bg=ee([vg,Es,qo],xg),wg=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Hi(t)&&Array.isArray(r)&&r.length>0){var i=t[0],a=r[0],s=t[1],l=r[r.length-1];return[Math.min(i,a),Math.max(s,l)]}return t},TL=ee([ft,vg,bg,ct],wg),IL=ee(yu,ft,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(_n(e.map(l=>l.value))).sort((l,c)=>l-c);if(n.length<2)return 1/0;var i=n[n.length-1]-n[0];if(i===0)return 1/0;for(var a=0;a<n.length-1;a++){var s=n[a+1]-n[a];r=Math.min(r,s)}return r/i}}),AP=ee(IL,We,cP,Nt,(e,t,r,n)=>n,(e,t,r,n,i)=>{if(!wt(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var s=tr(r,e*a),l=e*a/2;return l-s-(l-s)/a*s}return 0}),ML=(e,t)=>{var r=Wn(e,t);return r==null||typeof r.padding!="string"?0:AP(e,"xAxis",t,r.padding)},RL=(e,t)=>{var r=Un(e,t);return r==null||typeof r.padding!="string"?0:AP(e,"yAxis",t,r.padding)},AL=ee(Wn,ML,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),NL=ee(Un,RL,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),DL=ee([Nt,AL,nu,ru,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),_L=ee([Nt,We,NL,nu,ru,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:s}=i;return a?[n.height-s.bottom,s.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),ks=(e,t,r,n)=>{var i;switch(t){case"xAxis":return DL(e,r,n);case"yAxis":return _L(e,r,n);case"zAxis":return(i=ng(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return pP(e);case"radiusAxis":return hP(e,r);default:return}},NP=ee([ft,ks],pu),Yo=ee([ft,qo,TL,NP],yg);ee([Os,xu,ct],pL);function DP(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var bu=(e,t)=>t,wu=(e,t,r)=>r,BL=ee(eu,bu,wu,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(DP)),$L=ee(tu,bu,wu,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(DP)),_P=(e,t)=>({width:e.width,height:t.height}),LL=(e,t)=>{var r=typeof t.width=="number"?t.width:bs;return{width:r,height:e.height}},BP=ee(Nt,Wn,_P),zL=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},FL=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},VL=ee(Vn,Nt,BL,bu,wu,(e,t,r,n,i)=>{var a={},s;return r.forEach(l=>{var c=_P(t,l);s==null&&(s=zL(t,n,e));var d=n==="top"&&!i||n==="bottom"&&i;a[l.id]=s-Number(d)*c.height,s+=(d?-1:1)*c.height}),a}),HL=ee(Fn,Nt,$L,bu,wu,(e,t,r,n,i)=>{var a={},s;return r.forEach(l=>{var c=LL(t,l);s==null&&(s=FL(t,n,e));var d=n==="left"&&!i||n==="right"&&i;a[l.id]=s-Number(d)*c.width,s+=(d?-1:1)*c.width}),a}),WL=(e,t)=>{var r=Wn(e,t);if(r!=null)return VL(e,r.orientation,r.mirror)},UL=ee([Nt,Wn,WL,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),KL=(e,t)=>{var r=Un(e,t);if(r!=null)return HL(e,r.orientation,r.mirror)},qL=ee([Nt,Un,KL,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),$P=ee(Nt,Un,(e,t)=>{var r=typeof t.width=="number"?t.width:bs;return{width:r,height:e.height}}),zb=(e,t,r)=>{switch(t){case"xAxis":return BP(e,r).width;case"yAxis":return $P(e,r).height;default:return}},LP=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:s}=r,l=Xi(e,n),c=t.map(d=>d.value);if(s&&l&&a==="category"&&i&&FS(c))return c}},Cg=ee([We,yu,ft,ct],LP),zP=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,s=Xi(e,n);if(s&&(i==="number"||a!=="auto"))return t.map(l=>l.value)}},Sg=ee([We,yu,Es,ct],zP),Fb=ee([We,oL,qo,Yo,Cg,Sg,ks,bg,ct],(e,t,r,n,i,a,s,l,c)=>{if(t!=null){var d=Xi(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:a,duplicateDomain:i,isCategorical:d,niceTicks:l,range:s,realScaleType:r,scale:n}}}),YL=(e,t,r,n,i,a,s,l,c)=>{if(!(t==null||n==null)){var d=Xi(e,c),{type:u,ticks:f,tickCount:h}=t,m=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,g=u==="category"&&n.bandwidth?n.bandwidth()/m:0;g=c==="angleAxis"&&a!=null&&a.length>=2?Ht(a[0]-a[1])*2*g:g;var x=f||i;if(x){var v=x.map((b,C)=>{var P=s?s.indexOf(b):b;return{index:C,coordinate:n(P)+g,value:b,offset:g}});return v.filter(b=>wt(b.coordinate))}return d&&l?l.map((b,C)=>({coordinate:n(b)+g,value:b,index:C,offset:g})).filter(b=>wt(b.coordinate)):n.ticks?n.ticks(h).map(b=>({coordinate:n(b)+g,value:b,offset:g})):n.domain().map((b,C)=>({coordinate:n(b)+g,value:s?s[b]:b,index:C,offset:g}))}},FP=ee([We,Es,qo,Yo,bg,ks,Cg,Sg,ct],YL),GL=(e,t,r,n,i,a,s)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var l=Xi(e,s),{tickCount:c}=t,d=0;return d=s==="angleAxis"&&n?.length>=2?Ht(n[0]-n[1])*2*d:d,l&&a?a.map((u,f)=>({coordinate:r(u)+d,value:u,index:f,offset:d})):r.ticks?r.ticks(c).map(u=>({coordinate:r(u)+d,value:u,offset:d})):r.domain().map((u,f)=>({coordinate:r(u)+d,value:i?i[u]:u,index:f,offset:d}))}},Ao=ee([We,Es,Yo,ks,Cg,Sg,ct],GL),No=ee(ft,Yo,(e,t)=>{if(!(e==null||t==null))return wc(wc({},e),{},{scale:t})}),XL=ee([ft,qo,vg,NP],yg);ee((e,t,r)=>ng(e,r),XL,(e,t)=>{if(!(e==null||t==null))return wc(wc({},e),{},{scale:t})});var ZL=ee([We,eu,tu],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),VP=e=>e.options.defaultTooltipEventType,HP=e=>e.options.validateTooltipEventTypes;function WP(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function jg(e,t){var r=VP(e),n=HP(e);return WP(t,r,n)}function QL(e){return je(t=>jg(t,e))}var UP=(e,t)=>{var r,n=Number(t);if(!(Qr(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},JL=e=>e.tooltip.settings,si={active:!1,index:null,dataKey:void 0,coordinate:void 0},ez={itemInteraction:{click:si,hover:si},axisInteraction:{click:si,hover:si},keyboardInteraction:si,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},KP=fr({name:"tooltip",initialState:ez,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Mt()},removeTooltipEntrySettings:{reducer(e,t){var r=In(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Mt()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:tz,removeTooltipEntrySettings:rz,setTooltipSettingsState:nz,setActiveMouseOverItemIndex:qP,mouseLeaveItem:iz,mouseLeaveChart:YP,setActiveClickItemIndex:oz,setMouseOverAxisIndex:GP,setMouseClickAxisIndex:az,setSyncInteraction:Ch,setKeyboardInteraction:Sh}=KP.actions,sz=KP.reducer;function Vb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vb(Object(r),!0).forEach(function(n){lz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lz(e,t,r){return(t=cz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cz(e){var t=uz(e,"string");return typeof t=="symbol"?t:t+""}function uz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dz(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function fz(e){return e.index!=null}var XP=(e,t,r,n)=>{if(t==null)return si;var i=dz(e,t,r);if(i==null)return si;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(fz(i)){if(a)return bl(bl({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n};return bl(bl({},si),{},{coordinate:i.coordinate})},Pg=(e,t)=>{var r=e?.index;if(r==null)return null;var n=Number(r);if(!wt(n))return r;var i=0,a=1/0;return t.length>0&&(a=t.length-1),String(Math.max(i,Math.min(n,a)))},ZP=(e,t,r,n,i,a,s,l)=>{if(!(a==null||l==null)){var c=s[0],d=c==null?void 0:l(c.positions,a);if(d!=null)return d;var u=i?.[Number(a)];if(u)switch(r){case"horizontal":return{x:u.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:u.coordinate}}}},QP=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return r==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&n!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.dataKey)===i})},Ts=e=>e.options.tooltipPayloadSearcher,Go=e=>e.tooltip;function Hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hb(Object(r),!0).forEach(function(n){pz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pz(e,t,r){return(t=hz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hz(e){var t=mz(e,"string");return typeof t=="symbol"?t:t+""}function mz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gz(e,t){return e??t}var JP=(e,t,r,n,i,a,s)=>{if(!(t==null||a==null)){var{chartData:l,computedData:c,dataStartIndex:d,dataEndIndex:u}=r,f=[];return e.reduce((h,m)=>{var g,{dataDefinedOnItem:x,settings:v}=m,b=gz(x,l),C=Array.isArray(b)?_j(b,d,u):b,P=(g=v?.dataKey)!==null&&g!==void 0?g:n,E=v?.nameKey,j;if(n&&Array.isArray(C)&&!Array.isArray(C[0])&&s==="axis"?j=n_(C,n,i):j=a(C,t,c,E),Array.isArray(j))j.forEach(O=>{var k=Wb(Wb({},v),{},{name:O.name,unit:O.unit,color:void 0,fill:void 0});h.push(gx({tooltipEntrySettings:k,dataKey:O.dataKey,payload:O.payload,value:dt(O.payload,O.dataKey),name:O.name}))});else{var S;h.push(gx({tooltipEntrySettings:v,dataKey:P,payload:j,value:dt(j,P),name:(S=dt(j,E))!==null&&S!==void 0?S:v?.name}))}return h},f)}},Eg=ee([Bt,We,xP,Xm,_t],RP),vz=ee([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),yz=ee([_t,Uo],ig),Is=ee([vz,Bt,yz],ag,{memoizeOptions:{resultEqualityCheck:vu}}),xz=ee([Is],e=>e.filter(mu)),bz=ee([Is],sg,{memoizeOptions:{resultEqualityCheck:vu}}),Xo=ee([bz,vi],lg),wz=ee([xz,vi,Bt],gP),Og=ee([Xo,Bt,Is],ug),eE=ee([Bt],dg),Cz=ee([Bt],e=>e.allowDataOverflow),tE=ee([eE,Cz],q2),Sz=ee([Is],e=>e.filter(mu)),jz=ee([wz,Sz,js],jP),Pz=ee([jz,vi,_t,tE],PP),Ez=ee([Is],wP),Oz=ee([Xo,Bt,Ez,xu,_t],hg,{memoizeOptions:{resultEqualityCheck:gu}}),kz=ee([EP,_t,Uo],Ko),Tz=ee([kz,_t],TP),Iz=ee([OP,_t,Uo],Ko),Mz=ee([Iz,_t],IP),Rz=ee([kP,_t,Uo],Ko),Az=ee([Rz,_t],MP),Nz=ee([Tz,Az,Mz],Cc),Dz=ee([Bt,eE,tE,Pz,Oz,Nz,We,_t],mg),rE=ee([Bt,We,Xo,Og,js,_t,Dz],gg),_z=ee([rE,Bt,Eg],xg),Bz=ee([Bt,rE,_z,_t],wg),nE=e=>{var t=_t(e),r=Uo(e),n=!1;return ks(e,t,r,n)},iE=ee([Bt,nE],pu),oE=ee([Bt,Eg,Bz,iE],yg),$z=ee([We,Og,Bt,_t],LP),Lz=ee([We,Og,Bt,_t],zP),zz=(e,t,r,n,i,a,s,l)=>{if(t){var{type:c}=t,d=Xi(e,l);if(n){var u=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=c==="category"&&n.bandwidth?n.bandwidth()/u:0;return f=l==="angleAxis"&&i!=null&&i?.length>=2?Ht(i[0]-i[1])*2*f:f,d&&s?s.map((h,m)=>({coordinate:n(h)+f,value:h,index:m,offset:f})):n.domain().map((h,m)=>({coordinate:n(h)+f,value:a?a[h]:h,index:m,offset:f}))}}},Kn=ee([We,Bt,Eg,oE,nE,$z,Lz,_t],zz),kg=ee([VP,HP,JL],(e,t,r)=>WP(r.shared,e,t)),aE=e=>e.tooltip.settings.trigger,Tg=e=>e.tooltip.settings.defaultIndex,Cu=ee([Go,kg,aE,Tg],XP),Ui=ee([Cu,Xo],Pg),sE=ee([Kn,Ui],UP),lE=ee([Cu],e=>{if(e)return e.dataKey}),cE=ee([Go,kg,aE,Tg],QP),Fz=ee([Fn,Vn,We,Nt,Kn,Tg,cE,Ts],ZP),Vz=ee([Cu,Fz],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Hz=ee([Cu],e=>e.active),Wz=ee([cE,Ui,vi,SP,sE,Ts,kg],JP);ee([Wz],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Ub(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ub(Object(r),!0).forEach(function(n){Uz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ub(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uz(e,t,r){return(t=Kz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kz(e){var t=qz(e,"string");return typeof t=="symbol"?t:t+""}function qz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yz=()=>je(Bt),Gz=()=>{var e=Yz(),t=je(Kn),r=je(oE);return sc(!e||!r?void 0:Kb(Kb({},e),{},{scale:r}),t)};function qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qb(Object(r),!0).forEach(function(n){Xz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xz(e,t,r){return(t=Zz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zz(e){var t=Qz(e,"string");return typeof t=="symbol"?t:t+""}function Qz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jz=(e,t,r,n)=>{var i=t.find(a=>a&&a.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:i.coordinate}}return{x:0,y:0}},eF=(e,t,r,n)=>{var i=t.find(d=>d&&d.index===r);if(i){if(e==="centric"){var a=i.coordinate,{radius:s}=n;return uo(uo(uo({},n),Et(n.cx,n.cy,s,a)),{},{angle:a,radius:s})}var l=i.coordinate,{angle:c}=n;return uo(uo(uo({},n),Et(n.cx,n.cy,l,c)),{},{angle:c,radius:l})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function tF(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var uE=(e,t,r,n,i)=>{var a,s=-1,l=(a=t?.length)!==null&&a!==void 0?a:0;if(l<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var c=0;c<l;c++){var d=c>0?r[c-1].coordinate:r[l-1].coordinate,u=r[c].coordinate,f=c>=l-1?r[0].coordinate:r[c+1].coordinate,h=void 0;if(Ht(u-d)!==Ht(f-u)){var m=[];if(Ht(f-u)===Ht(i[1]-i[0])){h=f;var g=u+i[1]-i[0];m[0]=Math.min(g,(g+d)/2),m[1]=Math.max(g,(g+d)/2)}else{h=d;var x=f+i[1]-i[0];m[0]=Math.min(u,(x+u)/2),m[1]=Math.max(u,(x+u)/2)}var v=[Math.min(u,(h+u)/2),Math.max(u,(h+u)/2)];if(e>v[0]&&e<=v[1]||e>=m[0]&&e<=m[1]){({index:s}=r[c]);break}}else{var b=Math.min(d,f),C=Math.max(d,f);if(e>(b+u)/2&&e<=(C+u)/2){({index:s}=r[c]);break}}}else if(t){for(var P=0;P<l;P++)if(P===0&&e<=(t[P].coordinate+t[P+1].coordinate)/2||P>0&&P<l-1&&e>(t[P].coordinate+t[P-1].coordinate)/2&&e<=(t[P].coordinate+t[P+1].coordinate)/2||P===l-1&&e>(t[P].coordinate+t[P-1].coordinate)/2){({index:s}=t[P]);break}}return s},rF=()=>je(Xm),Ig=(e,t)=>t,dE=(e,t,r)=>r,Mg=(e,t,r,n)=>n,nF=ee(Kn,e=>Yc(e,t=>t.coordinate)),Rg=ee([Go,Ig,dE,Mg],XP),fE=ee([Rg,Xo],Pg),iF=(e,t,r)=>{if(t!=null){var n=Go(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},pE=ee([Go,Ig,dE,Mg],QP),Sc=ee([Fn,Vn,We,Nt,Kn,Mg,pE,Ts],ZP),oF=ee([Rg,Sc],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),hE=ee([Kn,fE],UP),aF=ee([pE,fE,vi,SP,hE,Ts,Ig],JP),sF=ee([Rg],e=>({isActive:e.active,activeIndex:e.index})),lF=(e,t,r,n,i,a,s)=>{if(!(!e||!r||!n||!i)&&tF(e,s)){var l=Z6(e,t),c=uE(l,a,i,r,n),d=Jz(t,i,c,e);return{activeIndex:String(c),activeCoordinate:d}}},cF=(e,t,r,n,i,a,s)=>{if(!(!e||!n||!i||!a||!r)){var l=n$(e,r);if(l){var c=Q6(l,t),d=uE(c,s,a,n,i),u=eF(t,a,d,l);return{activeIndex:String(d),activeCoordinate:u}}}},uF=(e,t,r,n,i,a,s,l)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?lF(e,t,n,i,a,s,l):cF(e,t,r,n,i,a,s)},dF=ee(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElementId:n.elementId}}),fF=ee(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(Qt)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:eL}});function Yb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yb(Object(r),!0).forEach(function(n){pF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pF(e,t,r){return(t=hF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hF(e){var t=mF(e,"string");return typeof t=="symbol"?t:t+""}function mF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gF={},vF={zIndexMap:Object.values(Qt).reduce((e,t)=>Gb(Gb({},e),{},{[t]:{elementId:void 0,panoramaElementId:void 0,consumers:0}}),gF)},yF=new Set(Object.values(Qt));function xF(e){return yF.has(e)}var mE=fr({name:"zIndex",initialState:vF,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,elementId:void 0,panoramaElementId:void 0}},prepare:Mt()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!xF(r)&&delete e.zIndexMap[r])},prepare:Mt()},registerZIndexPortalId:{reducer:(e,t)=>{var{zIndex:r,elementId:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElementId=n:e.zIndexMap[r].elementId=n:e.zIndexMap[r]={consumers:0,elementId:i?void 0:n,panoramaElementId:i?n:void 0}},prepare:Mt()},unregisterZIndexPortalId:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElementId=void 0:e.zIndexMap[r].elementId=void 0)},prepare:Mt()}}}),{registerZIndexPortal:bF,unregisterZIndexPortal:wF,registerZIndexPortalId:CF,unregisterZIndexPortalId:SF}=mE.actions,jF=mE.reducer;function tn(e){var{zIndex:t,children:r}=e,n=I5(),i=n&&t!==void 0&&t!==0,a=pr(),s=nt();y.useLayoutEffect(()=>i?(s(bF({zIndex:t})),()=>{s(wF({zIndex:t}))}):Gi,[s,t,i]);var l=je(d=>dF(d,t,a));if(!i)return r;if(!l)return null;var c=document.getElementById(l);return c?Li.createPortal(r,c):null}function jh(){return jh=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},jh.apply(null,arguments)}function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xb(Object(r),!0).forEach(function(n){PF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PF(e,t,r){return(t=EF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EF(e){var t=OF(e,"string");return typeof t=="symbol"?t:t+""}function OF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kF(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return y.isValidElement(t)?y.cloneElement(t,n):y.createElement(r,n)}function TF(e){var t,{coordinate:r,payload:n,index:i,offset:a,tooltipAxisBandSize:s,layout:l,cursor:c,tooltipEventType:d,chartName:u}=e,f=r,h=n,m=i;if(!c||!f||u!=="ScatterChart"&&d!=="axis")return null;var g,x,v;if(u==="ScatterChart")g=f,x=x3,v=Qt.cursorLine;else if(u==="BarChart")g=b3(l,f,a,s),x=r2,v=Qt.cursorRectangle;else if(l==="radial"&&HS(f)){var{cx:b,cy:C,radius:P,startAngle:E,endAngle:j}=i2(f);g={cx:b,cy:C,startAngle:E,endAngle:j,innerRadius:P,outerRadius:P},x=a2,v=Qt.cursorLine}else g={points:s$(l,f,a)},x=Pm,v=Qt.cursorLine;var S=typeof c=="object"&&"className"in c?c.className:void 0,O=wl(wl(wl(wl({stroke:"#ccc",pointerEvents:"none"},a),g),Ua(c)),{},{payload:h,payloadIndex:m,className:Ze("recharts-tooltip-cursor",S)});return w.createElement(tn,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:v},w.createElement(kF,{cursor:c,cursorComp:x,cursorProps:O}))}function IF(e){var t=Gz(),r=Kj(),n=ou(),i=rF();return t==null||r==null||n==null||i==null?null:w.createElement(TF,jh({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var gE=y.createContext(null),MF=()=>y.useContext(gE),$f={exports:{}},Zb;function RF(){return Zb||(Zb=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,d,u){this.fn=c,this.context=d,this.once=u||!1}function a(c,d,u,f,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var m=new i(u,f||c,h),g=r?r+d:d;return c._events[g]?c._events[g].fn?c._events[g]=[c._events[g],m]:c._events[g].push(m):(c._events[g]=m,c._eventsCount++),c}function s(c,d){--c._eventsCount===0?c._events=new n:delete c._events[d]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],u,f;if(this._eventsCount===0)return d;for(f in u=this._events)t.call(u,f)&&d.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(u)):d},l.prototype.listeners=function(d){var u=r?r+d:d,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,m=f.length,g=new Array(m);h<m;h++)g[h]=f[h].fn;return g},l.prototype.listenerCount=function(d){var u=r?r+d:d,f=this._events[u];return f?f.fn?1:f.length:0},l.prototype.emit=function(d,u,f,h,m,g){var x=r?r+d:d;if(!this._events[x])return!1;var v=this._events[x],b=arguments.length,C,P;if(v.fn){switch(v.once&&this.removeListener(d,v.fn,void 0,!0),b){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,f),!0;case 4:return v.fn.call(v.context,u,f,h),!0;case 5:return v.fn.call(v.context,u,f,h,m),!0;case 6:return v.fn.call(v.context,u,f,h,m,g),!0}for(P=1,C=new Array(b-1);P<b;P++)C[P-1]=arguments[P];v.fn.apply(v.context,C)}else{var E=v.length,j;for(P=0;P<E;P++)switch(v[P].once&&this.removeListener(d,v[P].fn,void 0,!0),b){case 1:v[P].fn.call(v[P].context);break;case 2:v[P].fn.call(v[P].context,u);break;case 3:v[P].fn.call(v[P].context,u,f);break;case 4:v[P].fn.call(v[P].context,u,f,h);break;default:if(!C)for(j=1,C=new Array(b-1);j<b;j++)C[j-1]=arguments[j];v[P].fn.apply(v[P].context,C)}}return!0},l.prototype.on=function(d,u,f){return a(this,d,u,f,!1)},l.prototype.once=function(d,u,f){return a(this,d,u,f,!0)},l.prototype.removeListener=function(d,u,f,h){var m=r?r+d:d;if(!this._events[m])return this;if(!u)return s(this,m),this;var g=this._events[m];if(g.fn)g.fn===u&&(!h||g.once)&&(!f||g.context===f)&&s(this,m);else{for(var x=0,v=[],b=g.length;x<b;x++)(g[x].fn!==u||h&&!g[x].once||f&&g[x].context!==f)&&v.push(g[x]);v.length?this._events[m]=v.length===1?v[0]:v:s(this,m)}return this},l.prototype.removeAllListeners=function(d){var u;return d?(u=r?r+d:d,this._events[u]&&s(this,u)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l})($f)),$f.exports}var AF=RF();const NF=jr(AF);var is=new NF,Ph="recharts.syncEvent.tooltip",Qb="recharts.syncEvent.brush";function vE(e,t){if(t){var r=Number.parseInt(t,10);if(!Qr(r))return e?.[r]}}var DF={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},yE=fr({name:"options",initialState:DF,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),_F=yE.reducer,{createEventEmitter:BF}=yE.actions;function $F(e){return e.tooltip.syncInteraction}var LF={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},xE=fr({name:"chartData",initialState:LF,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:Jb,setDataStartEndIndexes:zF}=xE.actions,FF=xE.reducer,VF=["x","y"];function e1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e1(Object(r),!0).forEach(function(n){HF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HF(e,t,r){return(t=WF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WF(e){var t=UF(e,"string");return typeof t=="symbol"?t:t+""}function UF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KF(e,t){if(e==null)return{};var r,n,i=qF(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function qF(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 YF(){var e=je(Zm),t=je(Qm),r=nt(),n=je(uP),i=je(Kn),a=ou(),s=iu(),l=je(c=>c.rootProps.className);y.useEffect(()=>{if(e==null)return Gi;var c=(d,u,f)=>{if(t!==f&&e===d){if(n==="index"){var h;if(s&&u!==null&&u!==void 0&&(h=u.payload)!==null&&h!==void 0&&h.coordinate&&u.payload.sourceViewBox){var m=u.payload.coordinate,{x:g,y:x}=m,v=KF(m,VF),{x:b,y:C,width:P,height:E}=u.payload.sourceViewBox,j=fo(fo({},v),{},{x:s.x+(P?(g-b)/P:0)*s.width,y:s.y+(E?(x-C)/E:0)*s.height});r(fo(fo({},u),{},{payload:fo(fo({},u.payload),{},{coordinate:j})}))}else r(u);return}if(i!=null){var S;if(typeof n=="function"){var O={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},k=n(i,O);S=i[k]}else n==="value"&&(S=i.find(T=>String(T.value)===u.payload.label));var{coordinate:D}=u.payload;if(S==null||u.payload.active===!1||D==null||s==null){r(Ch({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0}));return}var{x:B,y:M}=D,I=Math.min(B,s.x+s.width),_=Math.min(M,s.y+s.height),L={x:a==="horizontal"?S.coordinate:I,y:a==="horizontal"?_:S.coordinate},R=Ch({active:u.payload.active,coordinate:L,dataKey:u.payload.dataKey,index:String(S.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox});r(R)}}};return is.on(Ph,c),()=>{is.off(Ph,c)}},[l,r,t,e,n,i,a,s])}function GF(){var e=je(Zm),t=je(Qm),r=nt();y.useEffect(()=>{if(e==null)return Gi;var n=(i,a,s)=>{t!==s&&e===i&&r(zF(a))};return is.on(Qb,n),()=>{is.off(Qb,n)}},[r,t,e])}function XF(){var e=nt();y.useEffect(()=>{e(BF())},[e]),YF(),GF()}function ZF(e,t,r,n,i,a){var s=je(m=>iF(m,e,t)),l=je(Qm),c=je(Zm),d=je(uP),u=je($F),f=u?.active,h=iu();y.useEffect(()=>{if(!f&&c!=null&&l!=null){var m=Ch({active:a,coordinate:r,dataKey:s,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:h});is.emit(Ph,c,m,l)}},[f,r,s,i,n,l,c,d,a,h])}function t1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function r1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?t1(Object(r),!0).forEach(function(n){QF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QF(e,t,r){return(t=JF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JF(e){var t=e9(e,"string");return typeof t=="symbol"?t:t+""}function e9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function t9(e){return e.dataKey}function r9(e,t){return w.isValidElement(e)?w.cloneElement(e,t):typeof e=="function"?w.createElement(e,t):w.createElement(Z5,t)}var n1=[],n9={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!Zi.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Cl(e){var t,r,n=Kt(e,n9),{active:i,allowEscapeViewBox:a,animationDuration:s,animationEasing:l,content:c,filterNull:d,isAnimationActive:u,offset:f,payloadUniqBy:h,position:m,reverseDirection:g,useTranslate3d:x,wrapperStyle:v,cursor:b,shared:C,trigger:P,defaultIndex:E,portal:j,axisId:S}=n,O=nt(),k=typeof E=="number"?String(E):E;y.useEffect(()=>{O(nz({shared:C,trigger:P,axisId:S,active:i,defaultIndex:k}))},[O,C,P,S,i,k]);var D=iu(),B=Zj(),M=QL(C),{activeIndex:I,isActive:_}=(t=je(ve=>sF(ve,M,P,k)))!==null&&t!==void 0?t:{},L=je(ve=>aF(ve,M,P,k)),R=je(ve=>hE(ve,M,P,k)),T=je(ve=>oF(ve,M,P,k)),N=L,F=MF(),V=(r=i??_)!==null&&r!==void 0?r:!1,[J,U]=oj([N,V]),H=M==="axis"?R:void 0;ZF(M,P,T,H,I,V);var Q=j??F;if(Q==null||D==null||M==null)return null;var ie=N??n1;V||(ie=n1),d&&ie.length&&(ie=JS(ie.filter(ve=>ve.value!=null&&(ve.hide!==!0||n.includeHidden)),h,t9));var de=ie.length>0,le=w.createElement(i3,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:u,active:V,coordinate:T,hasPayload:de,offset:f,position:m,reverseDirection:g,useTranslate3d:x,viewBox:D,wrapperStyle:v,lastBoundingBox:J,innerRef:U,hasPortalFromProps:!!j},r9(c,r1(r1({},n),{},{payload:ie,label:H,active:V,activeIndex:I,coordinate:T,accessibilityLayer:B})));return w.createElement(w.Fragment,null,Li.createPortal(le,Q),V&&w.createElement(IF,{cursor:b,tooltipEventType:M,coordinate:T,payload:ie,index:I}))}var ui=e=>null;ui.displayName="Cell";function i9(e,t,r){return(t=o9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o9(e){var t=a9(e,"string");return typeof t=="symbol"?t:t+""}function a9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class s9{constructor(t){i9(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function i1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function l9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i1(Object(r),!0).forEach(function(n){c9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c9(e,t,r){return(t=u9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u9(e){var t=d9(e,"string");return typeof t=="symbol"?t:t+""}function d9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f9={cacheSize:2e3,enableCache:!0},bE=l9({},f9),o1=new s9(bE.cacheSize),p9={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},a1="recharts_measurement_span";function h9(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",s=t.letterSpacing||"",l=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(s,"|").concat(l)}var s1=(e,t)=>{try{var r=document.getElementById(a1);r||(r=document.createElement("span"),r.setAttribute("id",a1),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,p9,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Ia=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Zi.isSsr)return{width:0,height:0};if(!bE.enableCache)return s1(t,r);var n=h9(t,r),i=o1.get(n);if(i)return i;var a=s1(t,r);return o1.set(n,a),a},l1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,c1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,m9=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,g9=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,wE={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},v9=Object.keys(wE),yo="NaN";function y9(e,t){return e*wE[t]}class cr{static parse(t){var r,[,n,i]=(r=g9.exec(t))!==null&&r!==void 0?r:[];return new cr(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,Qr(t)&&(this.unit=""),r!==""&&!m9.test(r)&&(this.num=NaN,this.unit=""),v9.includes(r)&&(this.num=y9(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new cr(NaN,""):new cr(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new cr(NaN,""):new cr(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new cr(NaN,""):new cr(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new cr(NaN,""):new cr(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Qr(this.num)}}function CE(e){if(e.includes(yo))return yo;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=l1.exec(t))!==null&&r!==void 0?r:[],s=cr.parse(n??""),l=cr.parse(a??""),c=i==="*"?s.multiply(l):s.divide(l);if(c.isNaN())return yo;t=t.replace(l1,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,[,u,f,h]=(d=c1.exec(t))!==null&&d!==void 0?d:[],m=cr.parse(u??""),g=cr.parse(h??""),x=f==="+"?m.add(g):m.subtract(g);if(x.isNaN())return yo;t=t.replace(c1,x.toString())}return t}var u1=/\(([^()]*)\)/;function x9(e){for(var t=e,r;(r=u1.exec(t))!=null;){var[,n]=r;t=t.replace(u1,CE(n))}return t}function b9(e){var t=e.replace(/\s+/g,"");return t=x9(t),t=CE(t),t}function w9(e){try{return b9(e)}catch{return yo}}function Lf(e){var t=w9(e.slice(5,-1));return t===yo?"":t}var C9=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],S9=["dx","dy","angle","className","breakAll"];function Eh(){return Eh=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},Eh.apply(null,arguments)}function d1(e,t){if(e==null)return{};var r,n,i=j9(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function j9(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}var SE=/[ \f\n\r\t\v\u2028\u2029]+/,jE=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];Ut(t)||(r?i=t.toString().split(""):i=t.toString().split(SE));var a=i.map(l=>({word:l,width:Ia(l,n).width})),s=r?0:Ia(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}};function P9(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var PE=(e,t,r,n)=>e.reduce((i,a)=>{var{word:s,width:l}=a,c=i[i.length-1];if(c&&l!=null&&(t==null||n||c.width+l+r<Number(t)))c.words.push(s),c.width+=l+r;else{var d={words:[s],width:l};i.push(d)}return i},[]),EE=e=>e.reduce((t,r)=>t.width>r.width?t:r),E9="…",f1=(e,t,r,n,i,a,s,l)=>{var c=e.slice(0,t),d=jE({breakAll:r,style:n,children:c+E9});if(!d)return[!1,[]];var u=PE(d.wordsWithComputedWidth,a,s,l),f=u.length>i||EE(u).width>Number(a);return[f,u]},O9=(e,t,r,n,i)=>{var{maxLines:a,children:s,style:l,breakAll:c}=e,d=Ee(a),u=String(s),f=PE(t,n,r,i);if(!d||i)return f;var h=f.length>a||EE(f).width>Number(n);if(!h)return f;for(var m=0,g=u.length-1,x=0,v;m<=g&&x<=u.length-1;){var b=Math.floor((m+g)/2),C=b-1,[P,E]=f1(u,C,c,l,a,n,r,i),[j]=f1(u,b,c,l,a,n,r,i);if(!P&&!j&&(m=b+1),P&&j&&(g=b-1),!P&&j){v=E;break}x++}return v||f},p1=e=>{var t=Ut(e)?[]:e.toString().split(SE);return[{words:t,width:void 0}]},k9=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:s}=e;if((t||r)&&!Zi.isSsr){var l,c,d=jE({breakAll:a,children:n,style:i});if(d){var{wordsWithComputedWidth:u,spaceWidth:f}=d;l=u,c=f}else return p1(n);return O9({breakAll:a,children:n,maxLines:s,style:i},l,c,t,!!r)}return p1(n)},OE="#808080",T9={breakAll:!1,capHeight:"0.71em",fill:OE,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Su=y.forwardRef((e,t)=>{var r=Kt(e,T9),{x:n,y:i,lineHeight:a,capHeight:s,fill:l,scaleToFit:c,textAnchor:d,verticalAnchor:u}=r,f=d1(r,C9),h=y.useMemo(()=>k9({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:c,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,c,f.style,f.width]),{dx:m,dy:g,angle:x,className:v,breakAll:b}=f,C=d1(f,S9);if(!hn(n)||!hn(i)||h.length===0)return null;var P=Number(n)+(Ee(m)?m:0),E=Number(i)+(Ee(g)?g:0);if(!wt(P)||!wt(E))return null;var j;switch(u){case"start":j=Lf("calc(".concat(s,")"));break;case"middle":j=Lf("calc(".concat((h.length-1)/2," * -").concat(a," + (").concat(s," / 2))"));break;default:j=Lf("calc(".concat(h.length-1," * -").concat(a,")"));break}var S=[];if(c){var O=h[0].width,{width:k}=f;S.push("scale(".concat(Ee(k)&&Ee(O)?k/O:1,")"))}return x&&S.push("rotate(".concat(x,", ").concat(P,", ").concat(E,")")),S.length&&(C.transform=S.join(" ")),w.createElement("text",Eh({},_r(C),{ref:t,x:P,y:E,className:Ze("recharts-text",v),textAnchor:d,fill:l.includes("url")?OE:l}),h.map((D,B)=>{var M=D.words.join(b?"":" ");return w.createElement("tspan",{x:P,dy:B===0?j:a,key:"".concat(M,"-").concat(B)},M)}))});Su.displayName="Text";var I9=["labelRef"];function M9(e,t){if(e==null)return{};var r,n,i=R9(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function R9(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 h1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h1(Object(r),!0).forEach(function(n){A9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A9(e,t,r){return(t=N9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N9(e){var t=D9(e,"string");return typeof t=="symbol"?t:t+""}function D9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pn(){return Pn=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},Pn.apply(null,arguments)}var kE=y.createContext(null),_9=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:s,children:l}=e,c=y.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:s}),[t,r,n,i,a,s]);return w.createElement(kE.Provider,{value:c},l)},TE=()=>{var e=y.useContext(kE),t=iu();return e||Uj(t)},B9=y.createContext(null),$9=()=>{var e=y.useContext(B9),t=je(mP);return e||t},L9=e=>{var{value:t,formatter:r}=e,n=Ut(e.children)?t:e.children;return typeof r=="function"?r(n):n},Ag=e=>e!=null&&typeof e=="function",z9=(e,t)=>{var r=Ht(t-e),n=Math.min(Math.abs(t-e),360);return r*n},F9=(e,t,r,n,i)=>{var{offset:a,className:s}=e,{cx:l,cy:c,innerRadius:d,outerRadius:u,startAngle:f,endAngle:h,clockWise:m}=i,g=(d+u)/2,x=z9(f,h),v=x>=0?1:-1,b,C;switch(t){case"insideStart":b=f+v*a,C=m;break;case"insideEnd":b=h-v*a,C=!m;break;case"end":b=h+v*a,C=m;break;default:throw new Error("Unsupported position ".concat(t))}C=x<=0?C:!C;var P=Et(l,c,g,b),E=Et(l,c,g,b+(C?1:-1)*359),j="M".concat(P.x,",").concat(P.y,`
1108
+ A`).concat(g,",").concat(g,",0,1,").concat(C?0:1,`,
1109
+ `).concat(E.x,",").concat(E.y),S=Ut(e.id)?Ka("recharts-radial-line-"):e.id;return w.createElement("text",Pn({},n,{dominantBaseline:"central",className:Ze("recharts-radial-bar-label",s)}),w.createElement("defs",null,w.createElement("path",{id:S,d:j})),w.createElement("textPath",{xlinkHref:"#".concat(S)},r))},V9=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:s,startAngle:l,endAngle:c}=e,d=(l+c)/2;if(r==="outside"){var{x:u,y:f}=Et(n,i,s+t,d);return{x:u,y:f,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var h=(a+s)/2,{x:m,y:g}=Et(n,i,h,d);return{x:m,y:g,textAnchor:"middle",verticalAnchor:"middle"}},Oh=e=>"cx"in e&&Ee(e.cx),H9=(e,t)=>{var{parentViewBox:r,offset:n,position:i}=e,a;r!=null&&!Oh(r)&&(a=r);var{x:s,y:l,upperWidth:c,lowerWidth:d,height:u}=t,f=s,h=s+(c-d)/2,m=(f+h)/2,g=(c+d)/2,x=f+c/2,v=u>=0?1:-1,b=v*n,C=v>0?"end":"start",P=v>0?"start":"end",E=c>=0?1:-1,j=E*n,S=E>0?"end":"start",O=E>0?"start":"end";if(i==="top"){var k={x:f+c/2,y:l-b,textAnchor:"middle",verticalAnchor:C};return xt(xt({},k),a?{height:Math.max(l-a.y,0),width:c}:{})}if(i==="bottom"){var D={x:h+d/2,y:l+u+b,textAnchor:"middle",verticalAnchor:P};return xt(xt({},D),a?{height:Math.max(a.y+a.height-(l+u),0),width:d}:{})}if(i==="left"){var B={x:m-j,y:l+u/2,textAnchor:S,verticalAnchor:"middle"};return xt(xt({},B),a?{width:Math.max(B.x-a.x,0),height:u}:{})}if(i==="right"){var M={x:m+g+j,y:l+u/2,textAnchor:O,verticalAnchor:"middle"};return xt(xt({},M),a?{width:Math.max(a.x+a.width-M.x,0),height:u}:{})}var I=a?{width:g,height:u}:{};return i==="insideLeft"?xt({x:m+j,y:l+u/2,textAnchor:O,verticalAnchor:"middle"},I):i==="insideRight"?xt({x:m+g-j,y:l+u/2,textAnchor:S,verticalAnchor:"middle"},I):i==="insideTop"?xt({x:f+c/2,y:l+b,textAnchor:"middle",verticalAnchor:P},I):i==="insideBottom"?xt({x:h+d/2,y:l+u-b,textAnchor:"middle",verticalAnchor:C},I):i==="insideTopLeft"?xt({x:f+j,y:l+b,textAnchor:O,verticalAnchor:P},I):i==="insideTopRight"?xt({x:f+c-j,y:l+b,textAnchor:S,verticalAnchor:P},I):i==="insideBottomLeft"?xt({x:h+j,y:l+u-b,textAnchor:O,verticalAnchor:C},I):i==="insideBottomRight"?xt({x:h+d-j,y:l+u-b,textAnchor:S,verticalAnchor:C},I):i&&typeof i=="object"&&(Ee(i.x)||An(i.x))&&(Ee(i.y)||An(i.y))?xt({x:s+tr(i.x,g),y:l+tr(i.y,u),textAnchor:"end",verticalAnchor:"end"},I):xt({x,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},I)},W9={offset:5,zIndex:Qt.label};function ai(e){var t=Kt(e,W9),{viewBox:r,position:n,value:i,children:a,content:s,className:l="",textBreakAll:c,labelRef:d}=t,u=$9(),f=TE(),h=n==="center"?f:u??f,m,g,x;if(r==null?m=h:Oh(r)?m=r:m=Uj(r),!m||Ut(i)&&Ut(a)&&!y.isValidElement(s)&&typeof s!="function")return null;var v=xt(xt({},t),{},{viewBox:m});if(y.isValidElement(s)){var b=M9(v,I9);return y.cloneElement(s,b)}if(typeof s=="function"){if(g=y.createElement(s,v),y.isValidElement(g))return g}else g=L9(t);var C=_r(t);if(Oh(m)){if(n==="insideStart"||n==="insideEnd"||n==="end")return F9(t,n,g,C,m);x=V9(m,t.offset,t.position)}else x=H9(t,m);return w.createElement(tn,{zIndex:t.zIndex},w.createElement(Su,Pn({ref:d,className:Ze("recharts-label",l)},C,x,{textAnchor:P9(C.textAnchor)?C.textAnchor:x.textAnchor,breakAll:c}),g))}ai.displayName="Label";var U9=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?w.createElement(ai,Pn({key:"label-implicit"},n)):hn(e)?w.createElement(ai,Pn({key:"label-implicit",value:e},n)):y.isValidElement(e)?e.type===ai?y.cloneElement(e,xt({key:"label-implicit"},n)):w.createElement(ai,Pn({key:"label-implicit",content:e},n)):Ag(e)?w.createElement(ai,Pn({key:"label-implicit",content:e},n)):e&&typeof e=="object"?w.createElement(ai,Pn({},e,{key:"label-implicit"},n)):null};function K9(e){var{label:t,labelRef:r}=e,n=TE();return U9(t,n,r)||null}var zf={},Ff={},m1;function q9(){return m1||(m1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(Ff)),Ff}var Vf={},g1;function Y9(){return g1||(g1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(Vf)),Vf}var v1;function G9(){return v1||(v1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q9(),r=Y9(),n=hm();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i})(zf)),zf}var Hf,y1;function X9(){return y1||(y1=1,Hf=G9().last),Hf}var Z9=X9();const Q9=jr(Z9);var J9=["valueAccessor"],e7=["dataKey","clockWise","id","textBreakAll","zIndex"];function jc(){return jc=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},jc.apply(null,arguments)}function x1(e,t){if(e==null)return{};var r,n,i=t7(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function t7(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}var r7=e=>Array.isArray(e.value)?Q9(e.value):e.value,IE=y.createContext(void 0),n7=IE.Provider,ME=y.createContext(void 0),i7=ME.Provider;function o7(){return y.useContext(IE)}function a7(){return y.useContext(ME)}function Nl(e){var{valueAccessor:t=r7}=e,r=x1(e,J9),{dataKey:n,id:i,textBreakAll:a,zIndex:s}=r,l=x1(r,e7),c=o7(),d=a7(),u=c||d;return!u||!u.length?null:w.createElement(tn,{zIndex:s??Qt.label},w.createElement(ar,{className:"recharts-label-list"},u.map((f,h)=>{var m,g=Ut(n)?t(f,h):dt(f&&f.payload,n),x=Ut(i)?{}:{id:"".concat(i,"-").concat(h)};return w.createElement(ai,jc({key:"label-".concat(h)},_r(f),l,x,{fill:(m=r.fill)!==null&&m!==void 0?m:f.fill,parentViewBox:f.parentViewBox,value:g,textBreakAll:a,viewBox:f.viewBox,index:h,zIndex:0}))})))}Nl.displayName="LabelList";function RE(e){var{label:t}=e;return t?t===!0?w.createElement(Nl,{key:"labelList-implicit"}):w.isValidElement(t)||Ag(t)?w.createElement(Nl,{key:"labelList-implicit",content:t}):typeof t=="object"?w.createElement(Nl,jc({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var AE=e=>e.graphicalItems.polarItems,s7=ee([ct,Ps],ig),ju=ee([AE,ft,s7],ag),l7=ee([ju],sg),Pu=ee([l7,Km],lg),c7=ee([Pu,ft,ju],ug);ee([Pu,ft,ju],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(i=>{var a,s=dt(n,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:s,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:dt(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var b1=()=>{},u7=ee([Pu,ft,ju,xu,ct],hg),d7=ee([ft,fg,pg,b1,u7,b1,We,ct],mg),NE=ee([ft,We,Pu,c7,js,ct,d7],gg),f7=ee([NE,ft,qo],xg);ee([ft,NE,f7,ct],wg);var p7={radiusAxis:{},angleAxis:{}},h7=fr({name:"polarAxis",initialState:p7,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),m7=h7.reducer;function w1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function C1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w1(Object(r),!0).forEach(function(n){g7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g7(e,t,r){return(t=v7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v7(e){var t=y7(e,"string");return typeof t=="symbol"?t:t+""}function y7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x7=(e,t)=>t,Ng=ee([AE,x7],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),b7=[],Dg=(e,t,r)=>r?.length===0?b7:r,DE=ee([Km,Ng,Dg],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=n,(!i||!i.length)&&r!=null&&(i=r.map(a=>C1(C1({},t.presentationProps),a.props))),i!=null)return i}}),w7=ee([DE,Ng,Dg],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,i)=>{var a,s=dt(n,t.nameKey,t.name),l;return r!=null&&(a=r[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?l=r[i].props.fill:typeof n=="object"&&n!=null&&"fill"in n?l=n.fill:l=t.fill,{value:Jc(s,t.dataKey),color:l,payload:n,type:t.legendType}})}),C7=ee([DE,Ng,Dg,Nt],(e,t,r,n)=>{if(!(t==null||e==null))return bV({offset:n,pieSettings:t,displayedData:e,cells:r})}),S1=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",j1=null,Wf=null,_E=e=>{if(e===j1&&Array.isArray(Wf))return Wf;var t=[];return y.Children.forEach(e,r=>{Ut(r)||(El.isFragment(r)?t=t.concat(_E(r.props.children)):t.push(r))}),Wf=t,j1=e,t};function _g(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>S1(i)):n=[S1(t)],_E(e).forEach(i=>{var a=zi(i,"type.displayName")||zi(i,"type.name");a&&n.indexOf(a)!==-1&&r.push(i)}),r}var Uf={},P1;function S7(){return P1||(P1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(Uf)),Uf}var Kf,E1;function j7(){return E1||(E1=1,Kf=S7().isPlainObject),Kf}var P7=j7();const E7=jr(P7);function O1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O1(Object(r),!0).forEach(function(n){O7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O7(e,t,r){return(t=k7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k7(e){var t=T7(e,"string");return typeof t=="symbol"?t:t+""}function T7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pc(){return Pc=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},Pc.apply(null,arguments)}var T1=(e,t,r,n,i)=>{var a=r-n,s;return s="M ".concat(e,",").concat(t),s+="L ".concat(e+r,",").concat(t),s+="L ".concat(e+r-a/2,",").concat(t+i),s+="L ".concat(e+r-a/2-n,",").concat(t+i),s+="L ".concat(e,",").concat(t," Z"),s},I7={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},M7=e=>{var t=Kt(e,I7),{x:r,y:n,upperWidth:i,lowerWidth:a,height:s,className:l}=t,{animationEasing:c,animationDuration:d,animationBegin:u,isUpdateAnimationActive:f}=t,h=y.useRef(null),[m,g]=y.useState(-1),x=y.useRef(i),v=y.useRef(a),b=y.useRef(s),C=y.useRef(r),P=y.useRef(n),E=lu(e,"trapezoid-");if(y.useEffect(()=>{if(h.current&&h.current.getTotalLength)try{var L=h.current.getTotalLength();L&&g(L)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||s!==+s||i===0&&a===0||s===0)return null;var j=Ze("recharts-trapezoid",l);if(!f)return w.createElement("g",null,w.createElement("path",Pc({},_r(t),{className:j,d:T1(r,n,i,a,s)})));var S=x.current,O=v.current,k=b.current,D=C.current,B=P.current,M="0px ".concat(m===-1?1:m,"px"),I="".concat(m,"px 0px"),_=Qj(["strokeDasharray"],d,c);return w.createElement(su,{animationId:E,key:E,canBegin:m>0,duration:d,easing:c,isActive:f,begin:u},L=>{var R=Tt(S,i,L),T=Tt(O,a,L),N=Tt(k,s,L),F=Tt(D,r,L),V=Tt(B,n,L);h.current&&(x.current=R,v.current=T,b.current=N,C.current=F,P.current=V);var J=L>0?{transition:_,strokeDasharray:I}:{strokeDasharray:M};return w.createElement("path",Pc({},_r(t),{className:j,d:T1(F,V,R,T,N),ref:h,style:k1(k1({},J),t.style)}))})},R7=["option","shapeType","propTransformer","activeClassName","isActive"];function A7(e,t){if(e==null)return{};var r,n,i=N7(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function N7(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 I1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ec(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I1(Object(r),!0).forEach(function(n){D7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D7(e,t,r){return(t=_7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _7(e){var t=B7(e,"string");return typeof t=="symbol"?t:t+""}function B7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $7(e,t){return Ec(Ec({},t),e)}function L7(e,t){return e==="symbols"}function M1(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return w.createElement(r2,r);case"trapezoid":return w.createElement(M7,r);case"sector":return w.createElement(a2,r);case"symbols":if(L7(t))return w.createElement(pm,r);break;case"curve":return w.createElement(Pm,r);default:return null}}function z7(e){return y.isValidElement(e)?e.props:e}function BE(e){var{option:t,shapeType:r,propTransformer:n=$7,activeClassName:i="recharts-active-shape",isActive:a}=e,s=A7(e,R7),l;if(y.isValidElement(t))l=y.cloneElement(t,Ec(Ec({},s),z7(t)));else if(typeof t=="function")l=t(s);else if(E7(t)&&typeof t!="boolean"){var c=n(t,s);l=w.createElement(M1,{shapeType:r,elementProps:c})}else{var d=s;l=w.createElement(M1,{shapeType:r,elementProps:d})}return a?w.createElement(ar,{className:i},l):l}var Bg=(e,t)=>{var r=nt();return(n,i)=>a=>{e?.(n,i,a),r(qP({activeIndex:String(i),activeDataKey:t,activeCoordinate:n.tooltipPosition}))}},$g=e=>{var t=nt();return(r,n)=>i=>{e?.(r,n,i),t(iz())}},Lg=(e,t)=>{var r=nt();return(n,i)=>a=>{e?.(n,i,a),r(oz({activeIndex:String(i),activeDataKey:t,activeCoordinate:n.tooltipPosition}))}};function $E(e){var{fn:t,args:r}=e,n=nt(),i=pr();return y.useLayoutEffect(()=>{if(!i){var a=t(r);return n(tz(a)),()=>{n(rz(a))}}},[t,r,n,i]),null}function F7(e){var{legendPayload:t}=e,r=nt(),n=pr();return y.useLayoutEffect(()=>n?Gi:(r(Yj(t)),()=>{r(Gj(t))}),[r,n,t]),null}function V7(e){var{legendPayload:t}=e,r=nt(),n=je(We);return y.useLayoutEffect(()=>n!=="centric"&&n!=="radial"?Gi:(r(Yj(t)),()=>{r(Gj(t))}),[r,n,t]),null}var qf,H7=()=>{var[e]=w.useState(()=>Ka("uid-"));return e},W7=(qf=w.useId)!==null&&qf!==void 0?qf:H7;function LE(e,t){var r=W7();return t||(e?"".concat(e,"-").concat(r):r)}var U7=y.createContext(void 0),zE=e=>{var{id:t,type:r,children:n}=e,i=LE("recharts-".concat(r),t);return w.createElement(U7.Provider,{value:i},n(i))},K7={cartesianItems:[],polarItems:[]},FE=fr({name:"graphicalItems",initialState:K7,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Mt()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=In(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:Mt()},removeCartesianGraphicalItem:{reducer(e,t){var r=In(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Mt()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Mt()},removePolarGraphicalItem:{reducer(e,t){var r=In(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Mt()}}}),{addCartesianGraphicalItem:q7,replaceCartesianGraphicalItem:Y7,removeCartesianGraphicalItem:G7,addPolarGraphicalItem:X7,removePolarGraphicalItem:Z7}=FE.actions,Q7=FE.reducer;function J7(e){var t=nt(),r=y.useRef(null);return y.useLayoutEffect(()=>{r.current===null?t(q7(e)):r.current!==e&&t(Y7({prev:r.current,next:e})),r.current=e},[t,e]),y.useLayoutEffect(()=>()=>{r.current&&(t(G7(r.current)),r.current=null)},[t]),null}function eV(e){var t=nt();return y.useLayoutEffect(()=>(t(X7(e)),()=>{t(Z7(e))}),[t,e]),null}var tV=["onMouseEnter","onClick","onMouseLeave"],rV=["id"],nV=["id"];function zg(e,t){if(e==null)return{};var r,n,i=iV(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function iV(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 R1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R1(Object(r),!0).forEach(function(n){oV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oV(e,t,r){return(t=aV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aV(e){var t=sV(e,"string");return typeof t=="symbol"?t:t+""}function sV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hi(){return hi=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},hi.apply(null,arguments)}function lV(e){var t=y.useMemo(()=>_g(e.children,ui),[e.children]),r=je(n=>w7(n,e.id,t));return r==null?null:w.createElement(V7,{legendPayload:r})}function cV(e){var{dataKey:t,nameKey:r,sectors:n,stroke:i,strokeWidth:a,fill:s,name:l,hide:c,tooltipType:d}=e;return{dataDefinedOnItem:n.map(u=>u.tooltipPayload),positions:n.map(u=>u.tooltipPosition),settings:{stroke:i,strokeWidth:a,fill:s,dataKey:t,nameKey:r,name:Jc(l,t),hide:c,type:d,color:s,unit:""}}}var uV=(e,t)=>e>t?"start":e<t?"end":"middle",dV=(e,t,r)=>tr(typeof t=="function"?t(e):t,r,r*.8),fV=(e,t,r)=>{var{top:n,left:i,width:a,height:s}=t,l=n2(a,s),c=i+tr(e.cx,a,a/2),d=n+tr(e.cy,s,s/2),u=tr(e.innerRadius,l,0),f=dV(r,e.outerRadius,l),h=e.maxRadius||Math.sqrt(a*a+s*s)/2;return{cx:c,cy:d,innerRadius:u,outerRadius:f,maxRadius:h}},pV=(e,t)=>{var r=Ht(t-e),n=Math.min(Math.abs(t-e),360);return r*n};function hV(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var mV=(e,t)=>{if(w.isValidElement(e))return w.cloneElement(e,t);if(typeof e=="function")return e(t);var r=Ze("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return w.createElement(Pm,hi({},t,{type:"linear",className:r}))},gV=(e,t,r)=>{if(w.isValidElement(e))return w.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),w.isValidElement(n)))return n;var i=Ze("recharts-pie-label-text",hV(e));return w.createElement(Su,hi({},t,{alignmentBaseline:"middle",className:i}),n)};function vV(e){var{sectors:t,props:r,showLabels:n}=e,{label:i,labelLine:a,dataKey:s}=r;if(!n||!i||!t)return null;var l=Zr(r),c=Ua(i),d=Ua(a),u=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,f=t.map((h,m)=>{var g=(h.startAngle+h.endAngle)/2,x=Et(h.cx,h.cy,h.outerRadius+u,g),v=st(st(st(st({},l),h),{},{stroke:"none"},c),{},{index:m,textAnchor:uV(x.x,h.cx)},x),b=st(st(st(st({},l),h),{},{fill:"none",stroke:h.fill},d),{},{index:m,points:[Et(h.cx,h.cy,h.outerRadius,g),x],key:"line"});return w.createElement(tn,{zIndex:Qt.label,key:"label-".concat(h.startAngle,"-").concat(h.endAngle,"-").concat(h.midAngle,"-").concat(m)},w.createElement(ar,null,a&&mV(a,b),gV(i,v,dt(h,s))))});return w.createElement(ar,{className:"recharts-pie-labels"},f)}function yV(e){var{sectors:t,props:r,showLabels:n}=e,{label:i}=r;return typeof i=="object"&&i!=null&&"position"in i?w.createElement(RE,{label:i}):w.createElement(vV,{sectors:t,props:r,showLabels:n})}function xV(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:i}=e,a=je(Ui),{onMouseEnter:s,onClick:l,onMouseLeave:c}=i,d=zg(i,tV),u=Bg(s,i.dataKey),f=$g(c),h=Lg(l,i.dataKey);return t==null||t.length===0?null:w.createElement(w.Fragment,null,t.map((m,g)=>{if(m?.startAngle===0&&m?.endAngle===0&&t.length!==1)return null;var x=r&&String(g)===a,v=a?n:null,b=x?r:v,C=st(st({},m),{},{stroke:m.stroke,tabIndex:-1,[zj]:g,[Fj]:i.dataKey});return w.createElement(ar,hi({key:"sector-".concat(m?.startAngle,"-").concat(m?.endAngle,"-").concat(m.midAngle,"-").concat(g),tabIndex:-1,className:"recharts-pie-sector"},ms(d,m,g),{onMouseEnter:u(m,g),onMouseLeave:f(m,g),onClick:h(m,g)}),w.createElement(BE,hi({option:b,isActive:x,shapeType:"sector"},C)))}))}function bV(e){var t,{pieSettings:r,displayedData:n,cells:i,offset:a}=e,{cornerRadius:s,startAngle:l,endAngle:c,dataKey:d,nameKey:u,tooltipType:f}=r,h=Math.abs(r.minAngle),m=pV(l,c),g=Math.abs(m),x=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,v=n.filter(S=>dt(S,d,0)!==0).length,b=(g>=360?v:v-1)*x,C=g-v*h-b,P=n.reduce((S,O)=>{var k=dt(O,d,0);return S+(Ee(k)?k:0)},0),E;if(P>0){var j;E=n.map((S,O)=>{var k=dt(S,d,0),D=dt(S,u,O),B=fV(r,a,S),M=(Ee(k)?k:0)/P,I,_=st(st({},S),i&&i[O]&&i[O].props);O?I=j.endAngle+Ht(m)*x*(k!==0?1:0):I=l;var L=I+Ht(m)*((k!==0?h:0)+M*C),R=(I+L)/2,T=(B.innerRadius+B.outerRadius)/2,N=[{name:D,value:k,payload:_,dataKey:d,type:f}],F=Et(B.cx,B.cy,T,R);return j=st(st(st(st({},r.presentationProps),{},{percent:M,cornerRadius:typeof s=="string"?parseFloat(s):s,name:D,tooltipPayload:N,midAngle:R,middleRadius:T,tooltipPosition:F},_),B),{},{value:k,startAngle:I,endAngle:L,payload:_,paddingAngle:Ht(m)*x}),j})}return E}function wV(e){var{showLabels:t,sectors:r,children:n}=e,i=y.useMemo(()=>!t||!r?[]:r.map(a=>({value:a.value,payload:a.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:a.cx,cy:a.cy,innerRadius:a.innerRadius,outerRadius:a.outerRadius,startAngle:a.startAngle,endAngle:a.endAngle,clockWise:!1},fill:a.fill})),[r,t]);return w.createElement(i7,{value:t?i:void 0},n)}function CV(e){var{props:t,previousSectorsRef:r}=e,{sectors:n,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,activeShape:c,inactiveShape:d,onAnimationStart:u,onAnimationEnd:f}=t,h=lu(t,"recharts-pie-"),m=r.current,[g,x]=y.useState(!1),v=y.useCallback(()=>{typeof f=="function"&&f(),x(!1)},[f]),b=y.useCallback(()=>{typeof u=="function"&&u(),x(!0)},[u]);return w.createElement(wV,{showLabels:!g,sectors:n},w.createElement(su,{animationId:h,begin:a,duration:s,isActive:i,easing:l,onAnimationStart:b,onAnimationEnd:v,key:h},C=>{var P=[],E=n&&n[0],j=E?.startAngle;return n?.forEach((S,O)=>{var k=m&&m[O],D=O>0?zi(S,"paddingAngle",0):0;if(k){var B=Tt(k.endAngle-k.startAngle,S.endAngle-S.startAngle,C),M=st(st({},S),{},{startAngle:j+D,endAngle:j+B+D});P.push(M),j=M.endAngle}else{var{endAngle:I,startAngle:_}=S,L=Tt(0,I-_,C),R=st(st({},S),{},{startAngle:j+D,endAngle:j+L+D});P.push(R),j=R.endAngle}}),r.current=P,w.createElement(ar,null,w.createElement(xV,{sectors:P,activeShape:c,inactiveShape:d,allOtherPieProps:t}))}),w.createElement(yV,{showLabels:!g,sectors:n,props:t}),t.children)}var SV={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!Zi.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:Qt.area};function jV(e){var{id:t}=e,r=zg(e,rV),{hide:n,className:i,rootTabIndex:a}=e,s=y.useMemo(()=>_g(e.children,ui),[e.children]),l=je(u=>C7(u,t,s)),c=y.useRef(null),d=Ze("recharts-pie",i);return n||l==null?(c.current=null,w.createElement(ar,{tabIndex:a,className:d})):w.createElement(tn,{zIndex:e.zIndex},w.createElement($E,{fn:cV,args:st(st({},e),{},{sectors:l})}),w.createElement(ar,{tabIndex:a,className:d},w.createElement(CV,{props:st(st({},r),{},{sectors:l}),previousSectorsRef:c})))}function VE(e){var t=Kt(e,SV),{id:r}=t,n=zg(t,nV),i=Zr(n);return w.createElement(zE,{id:r,type:"pie"},a=>w.createElement(w.Fragment,null,w.createElement(eV,{type:"pie",id:a,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),w.createElement(lV,hi({},n,{id:a})),w.createElement(jV,hi({},n,{id:a}))))}VE.displayName="Pie";function A1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function N1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A1(Object(r),!0).forEach(function(n){PV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PV(e,t,r){return(t=EV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EV(e){var t=OV(e,"string");return typeof t=="symbol"?t:t+""}function OV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kV={xAxis:{},yAxis:{},zAxis:{}},HE=fr({name:"cartesianAxis",initialState:kV,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Mt()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Mt()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Mt()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Mt()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Mt()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Mt()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var a=i.widthHistory||[];if(a.length===3&&a[0]===a[2]&&n===a[1]&&n!==i.width&&Math.abs(n-a[0])<=1)return;var s=[...a,n].slice(-3);e.yAxis[r]=N1(N1({},e.yAxis[r]),{},{width:n,widthHistory:s})}}}}),{addXAxis:TV,removeXAxis:IV,addYAxis:MV,removeYAxis:RV,updateYAxisWidth:AV}=HE.actions,NV=HE.reducer,DV=ee([Nt],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),_V=ee([DV,Fn,Vn],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),WE=()=>je(_V),BV=process.env.NODE_ENV==="production",Yf="Invariant failed";function D1(e,t){if(BV)throw new Error(Yf);var r=typeof t=="function"?t():t,n=r?"".concat(Yf,": ").concat(r):Yf;throw new Error(n)}var $V=["x","y"];function kh(){return kh=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},kh.apply(null,arguments)}function _1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ja(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_1(Object(r),!0).forEach(function(n){LV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LV(e,t,r){return(t=zV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zV(e){var t=FV(e,"string");return typeof t=="symbol"?t:t+""}function FV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VV(e,t){if(e==null)return{};var r,n,i=HV(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function HV(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 WV(e,t){var{x:r,y:n}=e,i=VV(e,$V),a="".concat(r),s=parseInt(a,10),l="".concat(n),c=parseInt(l,10),d="".concat(t.height||i.height),u=parseInt(d,10),f="".concat(t.width||i.width),h=parseInt(f,10);return ja(ja(ja(ja(ja({},t),i),s?{x:s}:{}),c?{y:c}:{}),{},{height:u,width:h,name:t.name,radius:t.radius})}function Oc(e){return w.createElement(BE,kh({shapeType:"rectangle",propTransformer:WV,activeClassName:"recharts-active-bar"},e))}var UV=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,i)=>{if(Ee(t))return t;var a=Ee(n)||Ut(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?D1(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")):D1()),r)}},KV={},qV=fr({name:"errorBars",initialState:KV,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),YV=qV.reducer,GV=["children"];function XV(e,t){if(e==null)return{};var r,n,i=ZV(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ZV(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}var QV={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},JV=y.createContext(QV);function eH(e){var{children:t}=e,r=XV(e,GV);return w.createElement(JV.Provider,{value:r},t)}function UE(e,t){var r,n,i=je(d=>Wn(d,e)),a=je(d=>Un(d,t)),s=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:yr.allowDataOverflow,l=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:xr.allowDataOverflow,c=s||l;return{needClip:c,needClipX:s,needClipY:l}}function tH(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=WE(),{needClipX:a,needClipY:s,needClip:l}=UE(t,r);if(!l||!i)return null;var{x:c,y:d,width:u,height:f}=i;return w.createElement("clipPath",{id:"clipPath-".concat(n)},w.createElement("rect",{x:a?c:c-u/2,y:s?d:d-f/2,width:a?u:u*2,height:s?f:f*2}))}function rH(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&wt(e.zIndex)?e.zIndex:t}var nH=["onMouseEnter","onMouseLeave","onClick"],iH=["value","background","tooltipPosition"],oH=["id"],aH=["onMouseEnter","onClick","onMouseLeave"];function Bn(){return Bn=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},Bn.apply(null,arguments)}function B1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B1(Object(r),!0).forEach(function(n){sH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sH(e,t,r){return(t=lH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lH(e){var t=cH(e,"string");return typeof t=="symbol"?t:t+""}function cH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kc(e,t){if(e==null)return{};var r,n,i=uH(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function uH(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}var dH=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Jc(r,t),payload:e}]};function fH(e){var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:s,unit:l}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Jc(a,t),hide:s,type:e.tooltipType,color:e.fill,unit:l}}}function pH(e){var t=je(Ui),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:s,onMouseLeave:l,onClick:c}=a,d=kc(a,nH),u=Bg(s,n),f=$g(l),h=Lg(c,n);if(!i||r==null)return null;var m=Ua(i);return w.createElement(tn,{zIndex:rH(i,Qt.barBackground)},r.map((g,x)=>{var{background:v}=g,b=kc(g,iH);if(!v)return null;var C=u(g,x),P=f(g,x),E=h(g,x),j=nr(nr(nr(nr(nr({option:i,isActive:String(x)===t},b),{},{fill:"#eee"},v),m),ms(d,g,x)),{},{onMouseEnter:C,onMouseLeave:P,onClick:E,dataKey:n,index:x,className:"recharts-bar-background-rectangle"});return w.createElement(Oc,Bn({key:"background-bar-".concat(x)},j))}))}function hH(e){var{showLabels:t,children:r,rects:n}=e,i=n?.map(a=>{var s={x:a.x,y:a.y,width:a.width,lowerWidth:a.width,upperWidth:a.width,height:a.height};return nr(nr({},s),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:s,fill:a.fill})});return w.createElement(n7,{value:t?i:void 0},r)}function mH(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:s}=e,l=je(Ui),c=je(lE),d=r&&String(a)===l&&(c==null||s===c),u=d?r:t;return d?w.createElement(tn,{zIndex:Qt.activeBar},w.createElement(Oc,Bn({},n,{name:String(n.name)},i,{isActive:d,option:u,index:a,dataKey:s}))):w.createElement(Oc,Bn({},n,{name:String(n.name)},i,{isActive:d,option:u,index:a,dataKey:s}))}function gH(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return w.createElement(Oc,Bn({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:a}))}function vH(e){var t,{data:r,props:n}=e,i=(t=Zr(n))!==null&&t!==void 0?t:{},a=kc(i,oH),{shape:s,dataKey:l,activeBar:c}=n,{onMouseEnter:d,onClick:u,onMouseLeave:f}=n,h=kc(n,aH),m=Bg(d,l),g=$g(f),x=Lg(u,l);return r?w.createElement(w.Fragment,null,r.map((v,b)=>w.createElement(ar,Bn({key:"rectangle-".concat(v?.x,"-").concat(v?.y,"-").concat(v?.value,"-").concat(b),className:"recharts-bar-rectangle"},ms(h,v,b),{onMouseEnter:m(v,b),onMouseLeave:g(v,b),onClick:x(v,b)}),c?w.createElement(mH,{shape:s,activeBar:c,baseProps:a,entry:v,index:b,dataKey:l}):w.createElement(gH,{shape:s,baseProps:a,entry:v,index:b,dataKey:l})))):null}function yH(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:a,animationBegin:s,animationDuration:l,animationEasing:c,onAnimationEnd:d,onAnimationStart:u}=t,f=r.current,h=lu(t,"recharts-bar-"),[m,g]=y.useState(!1),x=!m,v=y.useCallback(()=>{typeof d=="function"&&d(),g(!1)},[d]),b=y.useCallback(()=>{typeof u=="function"&&u(),g(!0)},[u]);return w.createElement(hH,{showLabels:x,rects:n},w.createElement(su,{animationId:h,begin:s,duration:l,isActive:a,easing:c,onAnimationEnd:v,onAnimationStart:b,key:h},C=>{var P=C===1?n:n?.map((E,j)=>{var S=f&&f[j];if(S)return nr(nr({},E),{},{x:Tt(S.x,E.x,C),y:Tt(S.y,E.y,C),width:Tt(S.width,E.width,C),height:Tt(S.height,E.height,C)});if(i==="horizontal"){var O=Tt(0,E.height,C),k=Tt(E.stackedBarStart,E.y,C);return nr(nr({},E),{},{y:k,height:O})}var D=Tt(0,E.width,C),B=Tt(E.stackedBarStart,E.x,C);return nr(nr({},E),{},{width:D,x:B})});return C>0&&(r.current=P??null),P==null?null:w.createElement(ar,null,w.createElement(vH,{props:t,data:P}))}),w.createElement(RE,{label:t.label}),t.children)}function xH(e){var t=y.useRef(null);return w.createElement(yH,{previousRectanglesRef:t,props:e})}var KE=0,bH=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:dt(e,t)}};class wH extends y.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:a,yAxisId:s,needClip:l,background:c,id:d}=this.props;if(t||r==null)return null;var u=Ze("recharts-bar",i),f=d;return w.createElement(ar,{className:u,id:d},l&&w.createElement("defs",null,w.createElement(tH,{clipPathId:f,xAxisId:a,yAxisId:s})),w.createElement(ar,{className:"recharts-bar-rectangles",clipPath:l?"url(#clipPath-".concat(f,")"):void 0},w.createElement(pH,{data:r,dataKey:n,background:c,allOtherBarProps:this.props}),w.createElement(xH,this.props)))}}var CH={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!Zi.isSsr,legendType:"rect",minPointSize:KE,xAxisId:0,yAxisId:0,zIndex:Qt.bar};function SH(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:s,animationBegin:l,animationDuration:c,animationEasing:d,isAnimationActive:u}=e,{needClip:f}=UE(t,r),h=ou(),m=pr(),g=_g(e.children,ui),x=je(C=>ZH(C,t,r,m,e.id,g));if(h!=="vertical"&&h!=="horizontal")return null;var v,b=x?.[0];return b==null||b.height==null||b.width==null?v=0:v=h==="vertical"?b.height/2:b.width/2,w.createElement(eH,{xAxisId:t,yAxisId:r,data:x,dataPointFormatter:bH,errorBarOffset:v},w.createElement(wH,Bn({},e,{layout:h,needClip:f,data:x,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:s,animationBegin:l,animationDuration:c,animationEasing:d,isAnimationActive:u})))}function jH(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:i,bandSize:a,xAxis:s,yAxis:l,xAxisTicks:c,yAxisTicks:d,stackedData:u,displayedData:f,offset:h,cells:m,parentViewBox:g,dataStartIndex:x}=e,v=t==="horizontal"?l:s,b=u?v.scale.domain():null,C=q6({numericAxis:v}),P=v.scale(C);return f.map((E,j)=>{var S,O,k,D,B,M;u?S=F6(u[j+x],b):(S=dt(E,r),Array.isArray(S)||(S=[C,S]));var I=UV(n,KE)(S[1],j);if(t==="horizontal"){var _,[L,R]=[l.scale(S[0]),l.scale(S[1])];O=px({axis:s,ticks:c,bandSize:a,offset:i.offset,entry:E,index:j}),k=(_=R??L)!==null&&_!==void 0?_:void 0,D=i.size;var T=L-R;if(B=Qr(T)?0:T,M={x:O,y:h.top,width:D,height:h.height},Math.abs(I)>0&&Math.abs(B)<Math.abs(I)){var N=Ht(B||I)*(Math.abs(I)-Math.abs(B));k-=N,B+=N}}else{var[F,V]=[s.scale(S[0]),s.scale(S[1])];if(O=F,k=px({axis:l,ticks:d,bandSize:a,offset:i.offset,entry:E,index:j}),D=V-F,B=i.size,M={x:h.left,y:k,width:h.width,height:B},Math.abs(I)>0&&Math.abs(D)<Math.abs(I)){var J=Ht(D||I)*(Math.abs(I)-Math.abs(D));D+=J}}if(O==null||k==null||D==null||B==null)return null;var U=nr(nr({},E),{},{stackedBarStart:P,x:O,y:k,width:D,height:B,value:u?S:S[1],payload:E,background:M,tooltipPosition:{x:O+D/2,y:k+B/2},parentViewBox:g},m&&m[j]&&m[j].props);return U}).filter(Boolean)}function PH(e){var t=Kt(e,CH),r=pr();return w.createElement(zE,{id:t.id,type:"bar"},n=>w.createElement(w.Fragment,null,w.createElement(F7,{legendPayload:dH(t)}),w.createElement($E,{fn:fH,args:t}),w.createElement(J7,{type:"bar",id:n,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:K6(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r}),w.createElement(tn,{zIndex:t.zIndex},w.createElement(SH,Bn({},t,{id:n})))))}var Dl=w.memo(PH);Dl.displayName="Bar";function $1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$1(Object(r),!0).forEach(function(n){EH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EH(e,t,r){return(t=OH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OH(e){var t=kH(e,"string");return typeof t=="symbol"?t:t+""}function kH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TH=(e,t)=>t,IH=(e,t,r)=>r,MH=(e,t,r,n)=>n,RH=(e,t,r,n,i)=>i,Ms=ee([og,RH],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),AH=ee([Ms],e=>e?.maxBarSize),NH=(e,t,r,n,i,a)=>a,L1=(e,t,r)=>{var n=r??e;if(!Ut(n))return tr(n,t,0)},DH=ee([We,og,TH,IH,MH],(e,t,r,n,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===r:a.yAxisId===n).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),_H=(e,t,r,n)=>{var i=We(e);return i==="horizontal"?wh(e,"yAxis",r,n):wh(e,"xAxis",t,n)},BH=(e,t,r)=>{var n=We(e);return n==="horizontal"?zb(e,"xAxis",t):zb(e,"yAxis",r)},$H=(e,t,r)=>{var n={},i=e.filter(mu),a=e.filter(d=>d.stackId==null),s=i.reduce((d,u)=>(d[u.stackId]||(d[u.stackId]=[]),d[u.stackId].push(u),d),n),l=Object.entries(s).map(d=>{var[u,f]=d,h=f.map(g=>g.dataKey),m=L1(t,r,f[0].barSize);return{stackId:u,dataKeys:h,barSize:m}}),c=a.map(d=>{var u=[d.dataKey].filter(h=>h!=null),f=L1(t,r,d.barSize);return{stackId:void 0,dataKeys:u,barSize:f}});return[...l,...c]},LH=ee([DH,Y8,BH],$H),zH=(e,t,r,n,i)=>{var a,s,l=Ms(e,t,r,n,i);if(l!=null){var c=We(e),d=lP(e),{maxBarSize:u}=l,f=Ut(u)?d:u,h,m;return c==="horizontal"?(h=No(e,"xAxis",t,n),m=Ao(e,"xAxis",t,n)):(h=No(e,"yAxis",r,n),m=Ao(e,"yAxis",r,n)),(a=(s=sc(h,m,!0))!==null&&s!==void 0?s:f)!==null&&a!==void 0?a:0}},qE=(e,t,r,n)=>{var i=We(e),a,s;return i==="horizontal"?(a=No(e,"xAxis",t,n),s=Ao(e,"xAxis",t,n)):(a=No(e,"yAxis",r,n),s=Ao(e,"yAxis",r,n)),sc(a,s)};function FH(e,t,r,n,i){var a=n.length;if(!(a<1)){var s=tr(e,r,0,!0),l,c=[];if(wt(n[0].barSize)){var d=!1,u=r/a,f=n.reduce((b,C)=>b+(C.barSize||0),0);f+=(a-1)*s,f>=r&&(f-=(a-1)*s,s=0),f>=r&&u>0&&(d=!0,u*=.9,f=a*u);var h=(r-f)/2>>0,m={offset:h-s,size:0};l=n.reduce((b,C)=>{var P,E={stackId:C.stackId,dataKeys:C.dataKeys,position:{offset:m.offset+m.size+s,size:d?u:(P=C.barSize)!==null&&P!==void 0?P:0}},j=[...b,E];return m=j[j.length-1].position,j},c)}else{var g=tr(t,r,0,!0);r-2*g-(a-1)*s<=0&&(s=0);var x=(r-2*g-(a-1)*s)/a;x>1&&(x>>=0);var v=wt(i)?Math.min(x,i):x;l=n.reduce((b,C,P)=>[...b,{stackId:C.stackId,dataKeys:C.dataKeys,position:{offset:g+(x+s)*P+(x-v)/2,size:v}}],c)}return l}}var VH=(e,t,r,n,i,a,s)=>{var l=Ut(s)?t:s,c=FH(r,n,i!==a?i:a,e,l);return i!==a&&c!=null&&(c=c.map(d=>Sl(Sl({},d),{},{position:Sl(Sl({},d.position),{},{offset:d.position.offset-i/2})}))),c},HH=ee([LH,lP,q8,cP,zH,qE,AH],VH),WH=(e,t,r,n)=>No(e,"xAxis",t,n),UH=(e,t,r,n)=>No(e,"yAxis",r,n),KH=(e,t,r,n)=>Ao(e,"xAxis",t,n),qH=(e,t,r,n)=>Ao(e,"yAxis",r,n),YH=ee([HH,Ms],(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}}),GH=(e,t)=>{var r=rg(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var i=e[n];if(i){var{stackedData:a}=i;if(a)return a.find(s=>s.key===r)}}}},XH=ee([_H,Ms],GH),ZH=ee([Nt,wm,WH,UH,KH,qH,YH,We,qm,qE,XH,Ms,NH],(e,t,r,n,i,a,s,l,c,d,u,f,h)=>{var{chartData:m,dataStartIndex:g,dataEndIndex:x}=c;if(!(f==null||s==null||t==null||l!=="horizontal"&&l!=="vertical"||r==null||n==null||i==null||a==null||d==null)){var{data:v}=f,b;if(v!=null&&v.length>0?b=v:b=m?.slice(g,x+1),b!=null)return jH({layout:l,barSettings:f,pos:s,parentViewBox:t,bandSize:d,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:u,displayedData:b,offset:e,cells:h,dataStartIndex:g})}}),YE=e=>{var{chartData:t}=e,r=nt(),n=pr();return y.useEffect(()=>n?()=>{}:(r(Jb(t)),()=>{r(Jb(void 0))}),[t,r,n]),null},z1={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},QH=fr({name:"brush",initialState:z1,reducers:{setBrushSettings(e,t){return t.payload==null?z1:t.payload}}}),JH=QH.reducer;function eW(e,t,r){return(t=tW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tW(e){var t=rW(e,"string");return typeof t=="symbol"?t:t+""}function rW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Fg{static create(t){return new Fg(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:r,position:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(n)switch(n){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(r){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+s}return this.scale(t)}}isInRange(t){var r=this.range(),n=r[0],i=r[r.length-1];return n<=i?t>=n&&t<=i:t>=i&&t<=n}}eW(Fg,"EPS",1e-4);function nW(e){return(e%180+180)%180}var iW=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=nW(i),s=a*Math.PI/180,l=Math.atan(n/r),c=s>l&&s<Math.PI-l?n/Math.sin(s):r/Math.cos(s);return Math.abs(c)},oW={dots:[],areas:[],lines:[]},aW=fr({name:"referenceElements",initialState:oW,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=In(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=In(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=In(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),sW=aW.reducer,lW=y.createContext(void 0),cW=e=>{var{children:t}=e,[r]=y.useState("".concat(Ka("recharts"),"-clip")),n=WE();if(n==null)return null;var{x:i,y:a,width:s,height:l}=n;return w.createElement(lW.Provider,{value:r},w.createElement("defs",null,w.createElement("clipPath",{id:r},w.createElement("rect",{x:i,y:a,height:l,width:s}))),t)};function Do(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function GE(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;n<e.length;n+=t)r.push(e[n]);return r}function uW(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return iW(n,r)}function dW(e,t,r){var n=r==="width",{x:i,y:a,width:s,height:l}=e;return t===1?{start:n?i:a,end:n?i+s:a+l}:{start:n?i+s:a+l,end:n?i:a}}function Tc(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function fW(e,t){return GE(e,t+1)}function pW(e,t,r,n,i){for(var a=(n||[]).slice(),{start:s,end:l}=t,c=0,d=1,u=s,f=function(){var g=n?.[c];if(g===void 0)return{v:GE(n,d)};var x=c,v,b=()=>(v===void 0&&(v=r(g,x)),v),C=g.coordinate,P=c===0||Tc(e,C,b,u,l);P||(c=0,u=s,d+=1),P&&(u=C+e*(b()/2+i),c+=d)},h;d<=a.length;)if(h=f(),h)return h.v;return[]}function F1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F1(Object(r),!0).forEach(function(n){hW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hW(e,t,r){return(t=mW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mW(e){var t=gW(e,"string");return typeof t=="symbol"?t:t+""}function gW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vW(e,t,r,n,i){for(var a=(n||[]).slice(),s=a.length,{start:l}=t,{end:c}=t,d=function(h){var m=a[h],g,x=()=>(g===void 0&&(g=r(m,h)),g);if(h===s-1){var v=e*(m.coordinate+e*x()/2-c);a[h]=m=Jt(Jt({},m),{},{tickCoord:v>0?m.coordinate-v*e:m.coordinate})}else a[h]=m=Jt(Jt({},m),{},{tickCoord:m.coordinate});if(m.tickCoord!=null){var b=Tc(e,m.tickCoord,x,l,c);b&&(c=m.tickCoord-e*(x()/2+i),a[h]=Jt(Jt({},m),{},{isShow:!0}))}},u=s-1;u>=0;u--)d(u);return a}function yW(e,t,r,n,i,a){var s=(n||[]).slice(),l=s.length,{start:c,end:d}=t;if(a){var u=n[l-1],f=r(u,l-1),h=e*(u.coordinate+e*f/2-d);if(s[l-1]=u=Jt(Jt({},u),{},{tickCoord:h>0?u.coordinate-h*e:u.coordinate}),u.tickCoord!=null){var m=Tc(e,u.tickCoord,()=>f,c,d);m&&(d=u.tickCoord-e*(f/2+i),s[l-1]=Jt(Jt({},u),{},{isShow:!0}))}}for(var g=a?l-1:l,x=function(C){var P=s[C],E,j=()=>(E===void 0&&(E=r(P,C)),E);if(C===0){var S=e*(P.coordinate-e*j()/2-c);s[C]=P=Jt(Jt({},P),{},{tickCoord:S<0?P.coordinate-S*e:P.coordinate})}else s[C]=P=Jt(Jt({},P),{},{tickCoord:P.coordinate});if(P.tickCoord!=null){var O=Tc(e,P.tickCoord,j,c,d);O&&(c=P.tickCoord+e*(j()/2+i),s[C]=Jt(Jt({},P),{},{isShow:!0}))}},v=0;v<g;v++)x(v);return s}function Vg(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:s,orientation:l,interval:c,tickFormatter:d,unit:u,angle:f}=e;if(!i||!i.length||!n)return[];if(Ee(c)||Zi.isSsr){var h;return(h=fW(i,Ee(c)?c:0))!==null&&h!==void 0?h:[]}var m=[],g=l==="top"||l==="bottom"?"width":"height",x=u&&g==="width"?Ia(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=(P,E)=>{var j=typeof d=="function"?d(P.value,E):P.value;return g==="width"?uW(Ia(j,{fontSize:t,letterSpacing:r}),x,f):Ia(j,{fontSize:t,letterSpacing:r})[g]},b=i.length>=2?Ht(i[1].coordinate-i[0].coordinate):1,C=dW(a,b,g);return c==="equidistantPreserveStart"?pW(b,C,v,i,s):(c==="preserveStart"||c==="preserveStartEnd"?m=yW(b,C,v,i,s,c==="preserveStartEnd"):m=vW(b,C,v,i,s),m.filter(P=>P.isShow))}var xW=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,s=0;if(t){Array.from(t).forEach(u=>{if(u){var f=u.getBoundingClientRect();f.width>s&&(s=f.width)}});var l=r?r.getBoundingClientRect().width:0,c=i+a,d=s+c+l+(r?n:0);return Math.round(d)}return 0},bW=["axisLine","width","height","className","hide","ticks","axisType"],wW=["viewBox"],CW=["viewBox"];function Th(e,t){if(e==null)return{};var r,n,i=SW(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function SW(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 Ki(){return Ki=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},Ki.apply(null,arguments)}function V1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V1(Object(r),!0).forEach(function(n){jW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jW(e,t,r){return(t=PW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PW(e){var t=EW(e,"string");return typeof t=="symbol"?t:t+""}function EW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hg={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:Qt.axis};function OW(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:s,axisLine:l,otherSvgProps:c}=e;if(!l)return null;var d=jt(jt(jt({},c),Zr(l)),{},{fill:"none"});if(a==="top"||a==="bottom"){var u=+(a==="top"&&!s||a==="bottom"&&s);d=jt(jt({},d),{},{x1:t,y1:r+u*i,x2:t+n,y2:r+u*i})}else{var f=+(a==="left"&&!s||a==="right"&&s);d=jt(jt({},d),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return w.createElement("line",Ki({},d,{className:Ze("recharts-cartesian-axis-line",zi(l,"className"))}))}function kW(e,t,r,n,i,a,s,l,c){var d,u,f,h,m,g,x=l?-1:1,v=e.tickSize||s,b=Ee(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":d=u=e.coordinate,h=r+ +!l*i,f=h-x*v,g=f-x*c,m=b;break;case"left":f=h=e.coordinate,u=t+ +!l*n,d=u-x*v,m=d-x*c,g=b;break;case"right":f=h=e.coordinate,u=t+ +l*n,d=u+x*v,m=d+x*c,g=b;break;default:d=u=e.coordinate,h=r+ +l*i,f=h+x*v,g=f+x*c,m=b;break}return{line:{x1:d,y1:f,x2:u,y2:h},tick:{x:m,y:g}}}function TW(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function IW(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function MW(e){var{option:t,tickProps:r,value:n}=e,i,a=Ze(r.className,"recharts-cartesian-axis-tick-value");if(w.isValidElement(t))i=w.cloneElement(t,jt(jt({},r),{},{className:a}));else if(typeof t=="function")i=t(jt(jt({},r),{},{className:a}));else{var s="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(s=Ze(s,t?.className)),i=w.createElement(Su,Ki({},r,{className:s}),n)}return i}var RW=y.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:a,tickFormatter:s,unit:l,padding:c,tickTextProps:d,orientation:u,mirror:f,x:h,y:m,width:g,height:x,tickSize:v,tickMargin:b,fontSize:C,letterSpacing:P,getTicksConfig:E,events:j,axisType:S}=e,O=Vg(jt(jt({},E),{},{ticks:r}),C,P),k=TW(u,f),D=IW(u,f),B=Zr(E),M=Ua(n),I={};typeof i=="object"&&(I=i);var _=jt(jt({},B),{},{fill:"none"},I),L=O.map(N=>jt({entry:N},kW(N,h,m,g,x,u,v,f,b))),R=L.map(N=>{var{entry:F,line:V}=N;return w.createElement(ar,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(F.value,"-").concat(F.coordinate,"-").concat(F.tickCoord)},i&&w.createElement("line",Ki({},_,V,{className:Ze("recharts-cartesian-axis-tick-line",zi(i,"className"))})))}),T=L.map((N,F)=>{var{entry:V,tick:J}=N,U=jt(jt(jt(jt({textAnchor:k,verticalAnchor:D},B),{},{stroke:"none",fill:a},M),J),{},{index:F,payload:V,visibleTicksCount:O.length,tickFormatter:s,padding:c},d);return w.createElement(ar,Ki({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(V.value,"-").concat(V.coordinate,"-").concat(V.tickCoord)},ms(j,V,F)),n&&w.createElement(MW,{option:n,tickProps:U,value:"".concat(typeof s=="function"?s(V.value,F):V.value).concat(l||"")}))});return w.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(S,"-ticks")},T.length>0&&w.createElement(tn,{zIndex:Qt.label},w.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(S,"-tick-labels"),ref:t},T)),R.length>0&&w.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(S,"-tick-lines")},R))}),AW=y.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:s,ticks:l,axisType:c}=e,d=Th(e,bW),[u,f]=y.useState(""),[h,m]=y.useState(""),g=y.useRef(null);y.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var v;return xW({ticks:g.current,label:(v=e.labelRef)===null||v===void 0?void 0:v.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var x=y.useCallback(v=>{if(v){var b=v.getElementsByClassName("recharts-cartesian-axis-tick-value");g.current=b;var C=b[0];if(C){var P=window.getComputedStyle(C),E=P.fontSize,j=P.letterSpacing;(E!==u||j!==h)&&(f(E),m(j))}}},[u,h]);return s||n!=null&&n<=0||i!=null&&i<=0?null:w.createElement(tn,{zIndex:e.zIndex},w.createElement(ar,{className:Ze("recharts-cartesian-axis",a)},w.createElement(OW,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Zr(e)}),w.createElement(RW,{ref:x,axisType:c,events:d,fontSize:u,getTicksConfig:e,height:e.height,letterSpacing:h,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:l,unit:e.unit,width:e.width,x:e.x,y:e.y}),w.createElement(_9,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},w.createElement(K9,{label:e.label,labelRef:e.labelRef}),e.children)))}),NW=w.memo(AW,(e,t)=>{var{viewBox:r}=e,n=Th(e,wW),{viewBox:i}=t,a=Th(t,CW);return Do(r,i)&&Do(n,a)}),Wg=w.forwardRef((e,t)=>{var r=Kt(e,Hg);return w.createElement(NW,Ki({},r,{ref:t}))});Wg.displayName="CartesianAxis";var DW=["x1","y1","x2","y2","key"],_W=["offset"],BW=["xAxisId","yAxisId"],$W=["xAxisId","yAxisId"];function H1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H1(Object(r),!0).forEach(function(n){LW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LW(e,t,r){return(t=zW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zW(e){var t=FW(e,"string");return typeof t=="symbol"?t:t+""}function FW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mi(){return Mi=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},Mi.apply(null,arguments)}function Ic(e,t){if(e==null)return{};var r,n,i=VW(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function VW(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}var HW=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:s,ry:l}=e;return w.createElement("rect",{x:n,y:i,ry:l,width:a,height:s,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function XE(e){var{option:t,lineItemProps:r}=e,n;if(w.isValidElement(t))n=w.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var i,{x1:a,y1:s,x2:l,y2:c,key:d}=r,u=Ic(r,DW),f=(i=Zr(u))!==null&&i!==void 0?i:{},h=Ic(f,_W);n=w.createElement("line",Mi({},h,{x1:a,y1:s,x2:l,y2:c,fill:"none",key:d}))}return n}function WW(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var a=Ic(e,BW),s=i.map((l,c)=>{var d=er(er({},a),{},{x1:t,y1:l,x2:t+r,y2:l,key:"line-".concat(c),index:c});return w.createElement(XE,{key:"line-".concat(c),option:n,lineItemProps:d})});return w.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function UW(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var a=Ic(e,$W),s=i.map((l,c)=>{var d=er(er({},a),{},{x1:l,y1:t,x2:l,y2:t+r,key:"line-".concat(c),index:c});return w.createElement(XE,{option:n,lineItemProps:d,key:"line-".concat(c)})});return w.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function KW(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:s,horizontalPoints:l,horizontal:c=!0}=e;if(!c||!t||!t.length||l==null)return null;var d=l.map(f=>Math.round(f+i-i)).sort((f,h)=>f-h);i!==d[0]&&d.unshift(0);var u=d.map((f,h)=>{var m=!d[h+1],g=m?i+s-f:d[h+1]-f;if(g<=0)return null;var x=h%t.length;return w.createElement("rect",{key:"react-".concat(h),y:f,x:n,height:g,width:a,stroke:"none",fill:t[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return w.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function qW(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:s,height:l,verticalPoints:c}=e;if(!t||!r||!r.length)return null;var d=c.map(f=>Math.round(f+i-i)).sort((f,h)=>f-h);i!==d[0]&&d.unshift(0);var u=d.map((f,h)=>{var m=!d[h+1],g=m?i+s-f:d[h+1]-f;if(g<=0)return null;var x=h%r.length;return w.createElement("rect",{key:"react-".concat(h),x:f,y:a,width:g,height:l,stroke:"none",fill:r[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return w.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var YW=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return Bj(Vg(er(er(er({},Hg),r),{},{ticks:$j(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},GW=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return Bj(Vg(er(er(er({},Hg),r),{},{ticks:$j(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},XW={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Qt.grid};function _l(e){var t=Sm(),r=jm(),n=Kj(),i=er(er({},Kt(e,XW)),{},{x:Ee(e.x)?e.x:n.left,y:Ee(e.y)?e.y:n.top,width:Ee(e.width)?e.width:n.width,height:Ee(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:s,x:l,y:c,width:d,height:u,syncWithTicks:f,horizontalValues:h,verticalValues:m}=i,g=pr(),x=je(D=>Fb(D,"xAxis",a,g)),v=je(D=>Fb(D,"yAxis",s,g));if(!mn(d)||!mn(u)||!Ee(l)||!Ee(c))return null;var b=i.verticalCoordinatesGenerator||YW,C=i.horizontalCoordinatesGenerator||GW,{horizontalPoints:P,verticalPoints:E}=i;if((!P||!P.length)&&typeof C=="function"){var j=h&&h.length,S=C({yAxis:v?er(er({},v),{},{ticks:j?h:v.ticks}):void 0,width:t??d,height:r??u,offset:n},j?!0:f);lc(Array.isArray(S),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof S,"]")),Array.isArray(S)&&(P=S)}if((!E||!E.length)&&typeof b=="function"){var O=m&&m.length,k=b({xAxis:x?er(er({},x),{},{ticks:O?m:x.ticks}):void 0,width:t??d,height:r??u,offset:n},O?!0:f);lc(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof k,"]")),Array.isArray(k)&&(E=k)}return w.createElement(tn,{zIndex:i.zIndex},w.createElement("g",{className:"recharts-cartesian-grid"},w.createElement(HW,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),w.createElement(KW,Mi({},i,{horizontalPoints:P})),w.createElement(qW,Mi({},i,{verticalPoints:E})),w.createElement(WW,Mi({},i,{offset:n,horizontalPoints:P,xAxis:x,yAxis:v})),w.createElement(UW,Mi({},i,{offset:n,verticalPoints:E,xAxis:x,yAxis:v}))))}_l.displayName="CartesianGrid";var ZW=["dangerouslySetInnerHTML","ticks"],QW=["id"],JW=["domain"],eU=["domain"];function Ih(){return Ih=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},Ih.apply(null,arguments)}function Mc(e,t){if(e==null)return{};var r,n,i=tU(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function tU(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 rU(e){var t=nt();return y.useLayoutEffect(()=>(t(TV(e)),()=>{t(IV(e))}),[e,t]),null}var nU=e=>{var{xAxisId:t,className:r}=e,n=je(wm),i=pr(),a="xAxis",s=je(m=>Yo(m,a,t,i)),l=je(m=>FP(m,a,t,i)),c=je(m=>BP(m,t)),d=je(m=>UL(m,t)),u=je(m=>vP(m,t));if(c==null||d==null||u==null)return null;var f=Mc(e,ZW),h=Mc(u,QW);return w.createElement(Wg,Ih({},f,h,{scale:s,x:d.x,y:d.y,width:c.width,height:c.height,className:Ze("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:l,axisType:a}))},iU={allowDataOverflow:yr.allowDataOverflow,allowDecimals:yr.allowDecimals,allowDuplicatedCategory:yr.allowDuplicatedCategory,height:yr.height,hide:!1,mirror:yr.mirror,orientation:yr.orientation,padding:yr.padding,reversed:yr.reversed,scale:yr.scale,tickCount:yr.tickCount,type:yr.type,xAxisId:0},oU=e=>{var t,r,n,i,a,s=Kt(e,iU);return w.createElement(w.Fragment,null,w.createElement(rU,{interval:(t=s.interval)!==null&&t!==void 0?t:"preserveEnd",id:s.xAxisId,scale:s.scale,type:s.type,padding:s.padding,allowDataOverflow:s.allowDataOverflow,domain:s.domain,dataKey:s.dataKey,allowDuplicatedCategory:s.allowDuplicatedCategory,allowDecimals:s.allowDecimals,tickCount:s.tickCount,includeHidden:(r=s.includeHidden)!==null&&r!==void 0?r:!1,reversed:s.reversed,ticks:s.ticks,height:s.height,orientation:s.orientation,mirror:s.mirror,hide:s.hide,unit:s.unit,name:s.name,angle:(n=s.angle)!==null&&n!==void 0?n:0,minTickGap:(i=s.minTickGap)!==null&&i!==void 0?i:5,tick:(a=s.tick)!==null&&a!==void 0?a:!0,tickFormatter:s.tickFormatter}),w.createElement(nU,s))},aU=(e,t)=>{var{domain:r}=e,n=Mc(e,JW),{domain:i}=t,a=Mc(t,eU);return Do(n,a)?Array.isArray(r)&&r.length===2&&Array.isArray(i)&&i.length===2?r[0]===i[0]&&r[1]===i[1]:Do({domain:r},{domain:i}):!1},Bl=w.memo(oU,aU);Bl.displayName="XAxis";var sU=["dangerouslySetInnerHTML","ticks"],lU=["id"],cU=["domain"],uU=["domain"];function Mh(){return Mh=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},Mh.apply(null,arguments)}function Rc(e,t){if(e==null)return{};var r,n,i=dU(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function dU(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 fU(e){var t=nt();return y.useLayoutEffect(()=>(t(MV(e)),()=>{t(RV(e))}),[e,t]),null}var pU=e=>{var{yAxisId:t,className:r,width:n,label:i}=e,a=y.useRef(null),s=y.useRef(null),l=je(wm),c=pr(),d=nt(),u="yAxis",f=je(C=>Yo(C,u,t,c)),h=je(C=>$P(C,t)),m=je(C=>qL(C,t)),g=je(C=>FP(C,u,t,c)),x=je(C=>yP(C,t));if(y.useLayoutEffect(()=>{if(!(n!=="auto"||!h||Ag(i)||y.isValidElement(i)||x==null)){var C=a.current;if(C){var P=C.getCalculatedWidth();Math.round(h.width)!==Math.round(P)&&d(AV({id:t,width:P}))}}},[g,h,d,i,t,n,x]),h==null||m==null||x==null)return null;var v=Rc(e,sU),b=Rc(x,lU);return w.createElement(Wg,Mh({},v,b,{ref:a,labelRef:s,scale:f,x:m.x,y:m.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:h.width,height:h.height,className:Ze("recharts-".concat(u," ").concat(u),r),viewBox:l,ticks:g,axisType:u}))},hU={allowDataOverflow:xr.allowDataOverflow,allowDecimals:xr.allowDecimals,allowDuplicatedCategory:xr.allowDuplicatedCategory,hide:!1,mirror:xr.mirror,orientation:xr.orientation,padding:xr.padding,reversed:xr.reversed,scale:xr.scale,tickCount:xr.tickCount,type:xr.type,width:xr.width,yAxisId:0},mU=e=>{var t,r,n,i,a,s=Kt(e,hU);return w.createElement(w.Fragment,null,w.createElement(fU,{interval:(t=s.interval)!==null&&t!==void 0?t:"preserveEnd",id:s.yAxisId,scale:s.scale,type:s.type,domain:s.domain,allowDataOverflow:s.allowDataOverflow,dataKey:s.dataKey,allowDuplicatedCategory:s.allowDuplicatedCategory,allowDecimals:s.allowDecimals,tickCount:s.tickCount,padding:s.padding,includeHidden:(r=s.includeHidden)!==null&&r!==void 0?r:!1,reversed:s.reversed,ticks:s.ticks,width:s.width,orientation:s.orientation,mirror:s.mirror,hide:s.hide,unit:s.unit,name:s.name,angle:(n=s.angle)!==null&&n!==void 0?n:0,minTickGap:(i=s.minTickGap)!==null&&i!==void 0?i:5,tick:(a=s.tick)!==null&&a!==void 0?a:!0,tickFormatter:s.tickFormatter}),w.createElement(pU,s))},gU=(e,t)=>{var{domain:r}=e,n=Rc(e,cU),{domain:i}=t,a=Rc(t,uU);return Do(n,a)?Array.isArray(r)&&r.length===2&&Array.isArray(i)&&i.length===2?r[0]===i[0]&&r[1]===i[1]:Do({domain:r},{domain:i}):!1},$l=w.memo(mU,gU);$l.displayName="YAxis";function vU(e){e()}function yU(){let e=null,t=null;return{clear(){e=null,t=null},notify(){vU(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var W1={notify(){},get:()=>[]};function xU(e,t){let r,n=W1,i=0,a=!1;function s(x){u();const v=n.subscribe(x);let b=!1;return()=>{b||(b=!0,v(),f())}}function l(){n.notify()}function c(){g.onStateChange&&g.onStateChange()}function d(){return a}function u(){i++,r||(r=e.subscribe(c),n=yU())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=W1)}function h(){a||(a=!0,u())}function m(){a&&(a=!1,f())}const g={addNestedSub:s,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:d,trySubscribe:h,tryUnsubscribe:m,getListeners:()=>n};return g}var bU=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wU=bU(),CU=()=>typeof navigator<"u"&&navigator.product==="ReactNative",SU=CU(),jU=()=>wU||SU?w.useLayoutEffect:w.useEffect,PU=jU(),EU=Symbol.for("react-redux-context"),OU=typeof globalThis<"u"?globalThis:{};function kU(){if(!w.createContext)return{};const e=OU[EU]??=new Map;let t=e.get(w.createContext);return t||(t=w.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(w.createContext,t)),t}var TU=kU();function IU(e){const{children:t,context:r,serverState:n,store:i}=e,a=w.useMemo(()=>{const c=xU(i),d={store:i,subscription:c,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return d;{const{identityFunctionCheck:u="once",stabilityCheck:f="once"}=e;return Object.assign(d,{stabilityCheck:f,identityFunctionCheck:u})}},[i,n]),s=w.useMemo(()=>i.getState(),[i]);PU(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const l=r||TU;return w.createElement(l.Provider,{value:a},t)}var MU=IU,RU=(e,t)=>t,Ug=ee([RU,We,mP,_t,iE,Kn,nF,Nt],uF),Kg=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},ZE=Br("mouseClick"),QE=xs();QE.startListening({actionCreator:ZE,effect:(e,t)=>{var r=e.payload,n=Ug(t.getState(),Kg(r));n?.activeIndex!=null&&t.dispatch(az({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Rh=Br("mouseMove"),JE=xs();JE.startListening({actionCreator:Rh,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=jg(n,n.tooltip.settings.shared),a=Ug(n,Kg(r));i==="axis"&&(a?.activeIndex!=null?t.dispatch(GP({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(YP()))}});var U1={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0},eO=fr({name:"rootProps",initialState:U1,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:U1.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue}}}),AU=eO.reducer,{updateOptions:NU}=eO.actions,tO=fr({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:DU}=tO.actions,_U=tO.reducer,rO=Br("keyDown"),nO=Br("focus"),qg=xs();qg.startListening({actionCreator:rO,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var s=Number(Pg(i,Xo(r))),l=Kn(r);if(a==="Enter"){var c=Sc(r,"axis","hover",String(i.index));t.dispatch(Sh({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:c}));return}var d=ZL(r),u=d==="left-to-right"?1:-1,f=a==="ArrowRight"?1:-1,h=s+f*u;if(!(l==null||h>=l.length||h<0)){var m=Sc(r,"axis","hover",String(h));t.dispatch(Sh({active:!0,activeIndex:h.toString(),activeDataKey:void 0,activeCoordinate:m}))}}}}});qg.startListening({actionCreator:nO,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",s=Sc(r,"axis","hover",String(a));t.dispatch(Sh({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:s}))}}}});var Mr=Br("externalEvent"),iO=xs();iO.startListening({actionCreator:Mr,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),n={activeCoordinate:Vz(r),activeDataKey:lE(r),activeIndex:Ui(r),activeLabel:sE(r),activeTooltipIndex:Ui(r),isTooltipActive:Hz(r)};e.payload.handler(n,e.payload.reactEvent)}}});var BU=ee([Go],e=>e.tooltipItemPayloads),$U=ee([BU,Ts,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(l=>l.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var s=t(a,r);return s}}}),oO=Br("touchMove"),aO=xs();aO.startListening({actionCreator:oO,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),i=jg(n,n.tooltip.settings.shared);if(i==="axis"){var a=Ug(n,Kg({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(GP({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var s,l=r.touches[0];if(document.elementFromPoint==null)return;var c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var d=c.getAttribute(zj),u=(s=c.getAttribute(Fj))!==null&&s!==void 0?s:void 0,f=$U(t.getState(),d,u);t.dispatch(qP({activeDataKey:u,activeIndex:d,activeCoordinate:f}))}}}});var LU=sj({brush:JH,cartesianAxis:NV,chartData:FF,errorBars:YV,graphicalItems:Q7,layout:D6,legend:A5,options:_F,polarAxis:m7,polarOptions:_U,referenceElements:sW,rootProps:AU,tooltip:sz,zIndex:jF}),zU=function(t){return a6({reducer:LU,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([QE.middleware,JE.middleware,qg.middleware,iO.middleware,aO.middleware]),enhancers:r=>{var n=r;return typeof r=="function"&&(n=r()),n.concat(Sj({type:"raf"}))},devTools:Zi.devToolsEnabled})};function sO(e){var{preloadedState:t,children:r}=e,n=pr(),i=y.useRef(null);if(n)return r;i.current==null&&(i.current=zU(t));var a=mm;return w.createElement(MU,{context:a,store:i.current},r)}function lO(e){var{layout:t,margin:r}=e,n=nt(),i=pr();return y.useEffect(()=>{i||(n(R6(t)),n(M6(r)))},[n,i,t,r]),null}function cO(e){var t=nt();return y.useEffect(()=>{t(NU(e))},[t,e]),null}function K1(e){var{zIndex:t,isPanorama:r}=e,n=r?"recharts-zindex-panorama-":"recharts-zindex-",i=LE("".concat(n).concat(t)),a=nt();return y.useLayoutEffect(()=>(a(CF({zIndex:t,elementId:i,isPanorama:r})),()=>{a(SF({zIndex:t,isPanorama:r}))}),[a,t,i,r]),w.createElement("g",{id:i})}function q1(e){var{children:t,isPanorama:r}=e,n=je(fF);if(!n||n.length===0)return t;var i=n.filter(s=>s<0),a=n.filter(s=>s>0);return w.createElement(w.Fragment,null,i.map(s=>w.createElement(K1,{key:s,zIndex:s,isPanorama:r})),t,a.map(s=>w.createElement(K1,{key:s,zIndex:s,isPanorama:r})))}var FU=["children"];function VU(e,t){if(e==null)return{};var r,n,i=HU(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function HU(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 Ac(){return Ac=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},Ac.apply(null,arguments)}var WU={width:"100%",height:"100%",display:"block"},UU=y.forwardRef((e,t)=>{var r=Sm(),n=jm(),i=Zj();if(!mn(r)||!mn(n))return null;var{children:a,otherAttributes:s,title:l,desc:c}=e,d,u;return s!=null&&(typeof s.tabIndex=="number"?d=s.tabIndex:d=i?0:void 0,typeof s.role=="string"?u=s.role:u=i?"application":void 0),w.createElement(am,Ac({},s,{title:l,desc:c,role:u,tabIndex:d,width:r,height:n,style:WU,ref:t}),a)}),KU=e=>{var{children:t}=e,r=je(nu);if(!r)return null;var{width:n,height:i,y:a,x:s}=r;return w.createElement(am,{width:n,height:i,x:s,y:a},t)},Y1=y.forwardRef((e,t)=>{var{children:r}=e,n=VU(e,FU),i=pr();return i?w.createElement(KU,null,w.createElement(q1,{isPanorama:!0},r)):w.createElement(UU,Ac({ref:t},n),w.createElement(q1,{isPanorama:!1},r))});function qU(){var e=nt(),[t,r]=y.useState(null),n=je(J6);return y.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;wt(a)&&a!==n&&e(N6(a))}},[t,e,n]),r}function G1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G1(Object(r),!0).forEach(function(n){GU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GU(e,t,r){return(t=XU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XU(e){var t=ZU(e,"string");return typeof t=="symbol"?t:t+""}function ZU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qi(){return qi=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},qi.apply(null,arguments)}var QU=()=>(XF(),null);function Nc(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var JU=y.forwardRef((e,t)=>{var r,n,i=y.useRef(null),[a,s]=y.useState({containerWidth:Nc((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Nc((n=e.style)===null||n===void 0?void 0:n.height)}),l=y.useCallback((d,u)=>{s(f=>{var h=Math.round(d),m=Math.round(u);return f.containerWidth===h&&f.containerHeight===m?f:{containerWidth:h,containerHeight:m}})},[]),c=y.useCallback(d=>{if(typeof t=="function"&&t(d),d!=null&&typeof ResizeObserver<"u"){var{width:u,height:f}=d.getBoundingClientRect();l(u,f);var h=g=>{var{width:x,height:v}=g[0].contentRect;l(x,v)},m=new ResizeObserver(h);m.observe(d),i.current=m}},[t,l]);return y.useEffect(()=>()=>{var d=i.current;d?.disconnect()},[l]),w.createElement(w.Fragment,null,w.createElement(au,{width:a.containerWidth,height:a.containerHeight}),w.createElement("div",qi({ref:c},e)))}),eK=y.forwardRef((e,t)=>{var{width:r,height:n}=e,[i,a]=y.useState({containerWidth:Nc(r),containerHeight:Nc(n)}),s=y.useCallback((c,d)=>{a(u=>{var f=Math.round(c),h=Math.round(d);return u.containerWidth===f&&u.containerHeight===h?u:{containerWidth:f,containerHeight:h}})},[]),l=y.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null){var{width:d,height:u}=c.getBoundingClientRect();s(d,u)}},[t,s]);return w.createElement(w.Fragment,null,w.createElement(au,{width:i.containerWidth,height:i.containerHeight}),w.createElement("div",qi({ref:l},e)))}),tK=y.forwardRef((e,t)=>{var{width:r,height:n}=e;return w.createElement(w.Fragment,null,w.createElement(au,{width:r,height:n}),w.createElement("div",qi({ref:t},e)))}),rK=y.forwardRef((e,t)=>{var{width:r,height:n}=e;return An(r)||An(n)?w.createElement(eK,qi({},e,{ref:t})):w.createElement(tK,qi({},e,{ref:t}))});function nK(e){return e===!0?JU:rK}var iK=y.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:s,onDoubleClick:l,onMouseDown:c,onMouseEnter:d,onMouseLeave:u,onMouseMove:f,onMouseUp:h,onTouchEnd:m,onTouchMove:g,onTouchStart:x,style:v,width:b,responsive:C,dispatchTouchEvents:P=!0}=e,E=y.useRef(null),j=nt(),[S,O]=y.useState(null),[k,D]=y.useState(null),B=qU(),M=Cm(),I=M?.width>0?M.width:b,_=M?.height>0?M.height:i,L=y.useCallback(z=>{B(z),typeof t=="function"&&t(z),O(z),D(z),z!=null&&(E.current=z)},[B,t,O,D]),R=y.useCallback(z=>{j(ZE(z)),j(Mr({handler:a,reactEvent:z}))},[j,a]),T=y.useCallback(z=>{j(Rh(z)),j(Mr({handler:d,reactEvent:z}))},[j,d]),N=y.useCallback(z=>{j(YP()),j(Mr({handler:u,reactEvent:z}))},[j,u]),F=y.useCallback(z=>{j(Rh(z)),j(Mr({handler:f,reactEvent:z}))},[j,f]),V=y.useCallback(()=>{j(nO())},[j]),J=y.useCallback(z=>{j(rO(z.key))},[j]),U=y.useCallback(z=>{j(Mr({handler:s,reactEvent:z}))},[j,s]),H=y.useCallback(z=>{j(Mr({handler:l,reactEvent:z}))},[j,l]),Q=y.useCallback(z=>{j(Mr({handler:c,reactEvent:z}))},[j,c]),ie=y.useCallback(z=>{j(Mr({handler:h,reactEvent:z}))},[j,h]),de=y.useCallback(z=>{j(Mr({handler:x,reactEvent:z}))},[j,x]),le=y.useCallback(z=>{P&&j(oO(z)),j(Mr({handler:g,reactEvent:z}))},[j,P,g]),ve=y.useCallback(z=>{j(Mr({handler:m,reactEvent:z}))},[j,m]),W=nK(C);return w.createElement(gE.Provider,{value:S},w.createElement(SS.Provider,{value:k},w.createElement(W,{width:I??v?.width,height:_??v?.height,className:Ze("recharts-wrapper",n),style:YU({position:"relative",cursor:"default",width:I,height:_},v),onClick:R,onContextMenu:U,onDoubleClick:H,onFocus:V,onKeyDown:J,onMouseDown:Q,onMouseEnter:T,onMouseLeave:N,onMouseMove:F,onMouseUp:ie,onTouchEnd:ve,onTouchMove:le,onTouchStart:de,ref:L},w.createElement(QU,null),r)))}),oK=["width","height","responsive","children","className","style","compact","title","desc"];function aK(e,t){if(e==null)return{};var r,n,i=sK(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function sK(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}var uO=y.forwardRef((e,t)=>{var{width:r,height:n,responsive:i,children:a,className:s,style:l,compact:c,title:d,desc:u}=e,f=aK(e,oK),h=Zr(f);return c?w.createElement(w.Fragment,null,w.createElement(au,{width:r,height:n}),w.createElement(Y1,{otherAttributes:h,title:d,desc:u},a)):w.createElement(iK,{className:s,style:l,width:r,height:n,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},w.createElement(Y1,{otherAttributes:h,title:d,desc:u,ref:t},w.createElement(cW,null,a)))});function Ah(){return Ah=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},Ah.apply(null,arguments)}var lK={top:5,right:5,bottom:5,left:5},cK={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:lK,reverseStackOrder:!1,syncMethod:"index",responsive:!1},uK=y.forwardRef(function(t,r){var n,i=Kt(t.categoricalChartProps,cK),{chartName:a,defaultTooltipEventType:s,validateTooltipEventTypes:l,tooltipPayloadSearcher:c,categoricalChartProps:d}=t,u={chartName:a,defaultTooltipEventType:s,validateTooltipEventTypes:l,tooltipPayloadSearcher:c,eventEmitter:void 0};return w.createElement(sO,{preloadedState:{options:u},reduxStoreName:(n=d.id)!==null&&n!==void 0?n:a},w.createElement(YE,{chartData:d.data}),w.createElement(lO,{layout:i.layout,margin:i.margin}),w.createElement(cO,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),w.createElement(uO,Ah({},i,{ref:r})))}),dK=["axis","item"],Gf=y.forwardRef((e,t)=>w.createElement(uK,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:dK,tooltipPayloadSearcher:vE,categoricalChartProps:e,ref:t}));function fK(e){var t=nt();return y.useEffect(()=>{t(DU(e))},[t,e]),null}var pK=["layout"];function Nh(){return Nh=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},Nh.apply(null,arguments)}function hK(e,t){if(e==null)return{};var r,n,i=mK(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function mK(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}var gK={top:5,right:5,bottom:5,left:5},vK={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:gK,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1},yK=y.forwardRef(function(t,r){var n,i=Kt(t.categoricalChartProps,vK),{layout:a}=i,s=hK(i,pK),{chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:d,tooltipPayloadSearcher:u}=t,f={chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:d,tooltipPayloadSearcher:u,eventEmitter:void 0};return w.createElement(sO,{preloadedState:{options:f},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:l},w.createElement(YE,{chartData:i.data}),w.createElement(lO,{layout:a,margin:i.margin}),w.createElement(cO,{baseValue:void 0,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),w.createElement(fK,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),w.createElement(uO,Nh({},s,{ref:r})))}),xK=["item"],bK={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},wK=y.forwardRef((e,t)=>{var r=Kt(e,bK);return w.createElement(yK,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:xK,tooltipPayloadSearcher:vE,categoricalChartProps:r,ref:t})});const ri=["#4285F4","#34A853","#FBBC05","#EA4335","#9C27B0","#00ACC1","#8D6E63"],X1="28%",CK=({sysCd:e,appItCd:t,appCd:r})=>{const{getFormData:n}=bt.useSearchBox(),i=mt.useCodeStore(),a=mt.useSystemStore(),[s]=y.useState(""),[l]=y.useState(null),[c,d]=y.useState(!1),[u,f]=y.useState(!1),[h,m]=y.useState(!1),[g,x]=y.useState(!1),[v,b]=y.useState(null),[C,P]=y.useState([]),[E,j]=y.useState(null),[S,O]=y.useState(!1),[k,D]=y.useState({}),[B,M]=y.useState(!1),[I,_]=y.useState({}),L=y.useRef(null),R=y.useRef(null);y.useRef(null);const T=y.useRef(null),N=y.useRef(null),F=y.useRef(null),V=y.useRef({}),J=y.useMemo(()=>async q=>{const re=q.target.value?.trim();u||!re||(F.current&&clearTimeout(F.current),F.current=setTimeout(async()=>{O(!0),M(!1);try{const ne=T.current?.getFieldValue("sysCd"),ye=T.current?.getFieldValue("appItCd"),ce=T.current?.getFieldValue("appCd");if(!ne||!ye||!ce){O(!1);return}await Ce.SCMCODE00104({crprCd:T.current?.getFieldValue("crprCd")||"100",sysCd:ne,appItCd:ye,appCd:ce,grpCd:re})?(T.current?.setFields([{name:"grpCd",errors:["이미 사용중인 그룹코드입니다."]}]),p.message.error("이미 사용중인 그룹코드입니다."),M(!1)):(T.current?.setFields([{name:"grpCd",errors:[]}]),p.message.success("사용 가능한 그룹코드입니다."),M(!0))}catch(ne){console.error("그룹코드 중복 체크 실패:",ne),p.message.error("중복 체크 중 오류가 발생했습니다."),M(!1)}finally{O(!1)}},200))},[u]),U=y.useMemo(()=>async(q,re)=>{const ne=q.target.value?.trim();if(g){const ye=ne;if(!ye)return;V.current[-1]&&clearTimeout(V.current[-1]),V.current[-1]=setTimeout(async()=>{D(ce=>({...ce,[-1]:!0})),_(ce=>{const he={...ce};return delete he[-1],he});try{await Ce.SCMCODE00105({crprCd:N.current?.getFieldValue("crprCd")||"100",sysCd:N.current?.getFieldValue("sysCd")||"",appItCd:N.current?.getFieldValue("appItCd")||v?.appItCd||"CM",appCd:N.current?.getFieldValue("appCd")||v?.appCd||"CM",grpCd:N.current?.getFieldValue("grpCd")||"",dtlCd:ye})?(N.current?.setFields([{name:"dtlCd",errors:["이미 사용중인 상세코드입니다."]}]),p.message.error("이미 사용중인 상세코드입니다."),_(he=>{const pe={...he};return delete pe[-1],pe})):(N.current?.setFields([{name:"dtlCd",errors:[]}]),p.message.success("사용 가능한 상세코드입니다."),_(he=>({...he,[-1]:!0})))}catch(ce){console.error("상세코드 중복 체크 실패:",ce),p.message.error("중복 체크 중 오류가 발생했습니다."),_(he=>{const pe={...he};return delete pe[-1],pe})}finally{D(ce=>({...ce,[-1]:!1}))}},200);return}!ne||!v||(V.current[re]&&clearTimeout(V.current[re]),V.current[re]=setTimeout(async()=>{D(ye=>({...ye,[re]:!0})),_(ye=>{const ce={...ye};return delete ce[re],ce});try{if((N.current?.getFieldValue("details")||[]).some((pe,ke)=>ke!==re&&pe.dtlCd?.trim()===ne)){N.current?.setFields([{name:["details",re,"dtlCd"],errors:["같은 상세코드가 이미 입력되었습니다."]}]),p.message.error("같은 상세코드가 이미 입력되었습니다."),_(pe=>{const ke={...pe};return delete ke[re],ke}),D(pe=>({...pe,[re]:!1}));return}await Ce.SCMCODE00105({crprCd:v.crprCd||"100",sysCd:v.sysCd||"",appItCd:v.appItCd||"CM",appCd:v.appCd||"CM",grpCd:v.grpCd||"",dtlCd:ne})?(N.current?.setFields([{name:["details",re,"dtlCd"],errors:["이미 사용중인 상세코드입니다."]}]),p.message.error("이미 사용중인 상세코드입니다."),_(pe=>{const ke={...pe};return delete ke[re],ke})):(N.current?.setFields([{name:["details",re,"dtlCd"],errors:[]}]),p.message.success("사용 가능한 상세코드입니다."),_(pe=>({...pe,[re]:!0})))}catch(ye){console.error("상세코드 중복 체크 실패:",ye),p.message.error("중복 체크 중 오류가 발생했습니다."),_(ce=>{const he={...ce};return delete he[re],he})}finally{D(ye=>({...ye,[re]:!1}))}},500))},[g,v]),H=y.useMemo(()=>Nr((q,re,ne,ye,ce)=>{const he=re.index?.itemIndex;if(q.getValue(he,"metaYn")==="Y"){ce.render(o.jsx("div",{}));return}const ke=()=>{if(he===void 0||he<0)return;const se=L.current?.dp?.getJsonRow(he);se&&(f(!0),M(!1),d(!0),setTimeout(()=>{T.current?.setFieldsValue({crprCd:se.crprCd||"100",sysCd:se.sysCd||"",appItCd:se.appItCd||"CM",appCd:se.appCd||"CM",grpCd:se.grpCd||"",grpNm:se.grpNm||"",enblYn:se.enblYn||"N",sortOrd:se.sortOrd||0,rmrk:se.rmrk||""})},100))},_e=()=>{if(he===void 0||he<0)return;const se=L.current?.dp?.getJsonRow(he);se&&p.Modal.confirm({title:"삭제 확인",content:`그룹코드 '${se.grpCd} - ${se.grpNm}'을(를) 삭제하시겠습니까?`,okText:"확인",cancelText:"취소",onOk(){const Oe={crprCd:se.crprCd||"100",sysCd:se.sysCd||"",appItCd:se.appItCd||"CM",appCd:se.appCd||"CM",grpCd:se.grpCd||"",grpNm:se.grpNm||"",enblYn:se.enblYn||"N",sortOrd:se.sortOrd||0,rmrk:se.rmrk||""};Ce.SCMCODE00202(Oe)}})};ce.render(o.jsxs(p.Flex,{style:{justifyContent:"center",alignItems:"center",gap:8},children:[o.jsx(p.Button,{icon:o.jsx(Z.EditOutlined,{}),onClick:ke}),o.jsx(p.Button,{icon:o.jsx(Z.DeleteOutlined,{style:{color:"red"}}),onClick:_e})]}))}),[]),Q=y.useMemo(()=>Nr((q,re,ne,ye,ce)=>{const he=re.index?.itemIndex;if(q.getValue(he,"sysLockYn")==="Y"){ce.render(o.jsx("div",{}));return}const ke=()=>{if(he===void 0||he<0)return;const se=R.current?.dp?.getJsonRow(he);se&&(x(!0),m(!0),_({}),setTimeout(()=>{N.current?.setFieldsValue({crprCd:se.crprCd||"100",sysCd:se.sysCd||"",appItCd:se.appItCd||"CM",appCd:se.appCd||"CM",grpCd:se.grpCd||"",dtlCd:se.dtlCd||"",cmmnCd:se.cmmnCd||"",cmmnCdNm:se.cmmnCdNm||"",cmmnCdClr:se.cmmnCdClr||"",cmmnAbrv:se.cmmnAbrv||"",sysLockYn:se.sysLockYn||"N",enblYn:se.enblYn||"N",sortOrd:se.sortOrd||0,rmrk:se.rmrk||""})},100))},_e=()=>{if(he===void 0||he<0)return;const se=R.current?.dp?.getJsonRow(he);se&&p.Modal.confirm({title:"삭제 확인",content:o.jsxs("div",{children:[o.jsx("div",{children:`정말 "${se.cmmnCdNm} [${se.dtlCd}]" 을(를) 삭제하시겠습니까?`}),o.jsx("div",{style:{marginTop:8,fontSize:"12px",color:"#999"},children:"해당 작업이 진행되면 다시 되돌릴 수 없습니다."})]}),centered:!0,okText:"확인",cancelText:"취소",onOk(){const Oe={crprCd:se.crprCd||"100",sysCd:se.sysCd||"",appItCd:se.appItCd||"CM",appCd:se.appCd||"CM",grpCd:se.grpCd||"",dtlCd:se.dtlCd||"",cmmnCd:se.cmmnCd||"",cmmnCdNm:se.cmmnCdNm||"",cmmnCdClr:se.cmmnCdClr||"",cmmnAbrv:se.cmmnAbrv||"",sysLockYn:se.sysLockYn||"N",enblYn:se.enblYn||"N",sortOrd:se.sortOrd||0,rmrk:se.rmrk||""};Ce.SCMCODE00204(Oe)}})};ce.render(o.jsxs(p.Flex,{style:{justifyContent:"center",alignItems:"center",gap:8},children:[o.jsx(p.Button,{icon:o.jsx(Z.EditOutlined,{}),onClick:ke}),o.jsx(p.Button,{icon:o.jsx(Z.DeleteOutlined,{style:{color:"red"}}),onClick:_e})]}))}),[]),ie=y.useMemo(()=>Nr((q,re,ne,ye,ce)=>{q.getValue(re.index?.itemIndex,"sysLockYn")==="Y"?ce.render(o.jsx(Z.LockOutlined,{})):ce.render(o.jsx(Z.UnlockOutlined,{}))}),[]),de=y.useMemo(()=>[{fieldName:"crprCd",visible:!1},{fieldName:"metaYn",header:{text:"메타"},width:80,styleName:"center"},{fieldName:"sysCd",header:{text:"시스템코드"},width:80},{fieldName:"appItCd",header:{text:"앱 통합코드"},width:80},{fieldName:"appCd",header:{text:"앱 코드"},width:120},{fieldName:"grpCd",header:{text:"그룹코드"},width:140},{fieldName:"grpNm",header:{text:"그룹명칭"},width:220,styleName:"left"},{fieldName:"enblYn",header:{text:"사용여부"},width:100,styleName:"center",renderer:ae.realFormat.checkYdisabled},{fieldName:"sortOrd",visible:!1},{fieldName:"rmrk",visible:!1},{fieldName:"inptDt",visible:!1},{fieldName:"inptId",visible:!1},{fieldName:"chngDt",visible:!1},{fieldName:"chngId",visible:!1},{fieldName:"moreActions",header:{text:"액션"},renderer:"moreActions"}],[]),le=y.useMemo(()=>[{fieldName:"crprCd",visible:!1},{fieldName:"sysCd",visible:!1},{fieldName:"appItCd",visible:!1},{fieldName:"appCd",visible:!1},{fieldName:"grpCd",visible:!1},{fieldName:"dtlCd",header:{text:"상세코드"},width:140,styleName:"left",footer:{valueCallback:q=>{const re=q.getDataSource();return re?re.getRowCount()+"건":"0"}}},{fieldName:"cmmnCd",header:{text:"공통코드"},width:160,styleName:"left"},{fieldName:"cmmnCdNm",header:{text:"공통코드명"},width:220,styleName:"left"},{fieldName:"cmmnCdClr",visible:!1},{fieldName:"cmmnAbrv",header:{text:"약어"},width:120,styleName:"left"},{fieldName:"sysLockYn",header:{text:"시스템잠금"},width:110,styleName:"center",renderer:"sysLockYn"},{fieldName:"enblYn",header:{text:"사용여부"},width:100,styleName:"center",renderer:ae.realFormat.checkYdisabled},{fieldName:"sortOrd",visible:!1},{fieldName:"rmrk",visible:!1},{fieldName:"inptDt",visible:!1},{fieldName:"inptId",visible:!1},{fieldName:"chngDt",visible:!1},{fieldName:"chngId",visible:!1},{fieldName:"moreActions",header:{text:"액션"},renderer:"moreActions"}],[]),ve=y.useMemo(()=>({container:{indicator:!0,check:!0,page:!0},display:{rowHeight:30}}),[]),W=y.useMemo(()=>({container:{indicator:!0,page:!0},display:{rowHeight:20}}),[]);y.useMemo(()=>[{fieldName:"crprCd",header:{text:"회사코드"},width:120,styleName:"left"},{fieldName:"sysCd",header:{text:"시스템코드"},width:120,styleName:"left"},{fieldName:"appItCd",header:{text:"앱 통합코드"},width:140,styleName:"left"},{fieldName:"appCd",header:{text:"앱 코드"},width:120,styleName:"left"},{fieldName:"cmmnCd",header:{text:"공통코드"},width:140,styleName:"left"},{fieldName:"optnCd",header:{text:"옵션코드"},width:140,styleName:"left"},{fieldName:"optnNm",header:{text:"옵션명"},width:200,styleName:"left"},{fieldName:"optnDesc",header:{text:"옵션설명"},width:250,styleName:"left"},{fieldName:"enblYn",header:{text:"사용여부"},width:100,styleName:"center"},{fieldName:"sortOrd",header:{text:"정렬순서"},width:100,styleName:"right"},{fieldName:"inptDt",header:{text:"입력일시"},width:150,styleName:"center"},{fieldName:"inptId",header:{text:"입력자"},width:120,styleName:"left"},{fieldName:"chngDt",header:{text:"변경일시"},width:150,styleName:"center"},{fieldName:"chngId",header:{text:"변경자"},width:120,styleName:"left"}],[]),y.useMemo(()=>({container:{indicator:!0,footer:!0}}),[]);const z=q=>{const re=i.getAvailableGroupCodes(),ne=[];re.forEach(ce=>{const he=i.getCodeList(ce,{enabledOnly:!1,systemCodeOnly:q==="Y",sortByOrder:!1});let pe=!1;if(q==="")pe=he.length>0;else if(q==="Y")pe=he.length>0;else if(q==="N"){const ke=i.codeData;ke&&ke[ce]&&(pe=Object.values(ke[ce]).some(_e=>_e.systemCodeYn!=="Y"))}pe&&ne.push({grpCd:ce,grpNm:""})});const ye=s?ne.filter(ce=>ce.grpCd.toLowerCase().includes(s.toLowerCase())):ne;L.current?.addAllData(ye)},X=(q,re)=>{if(!q){R.current?.addAllData([]);return}const ne=i.codeData;if(!ne||!ne[q]){R.current?.addAllData([]);return}const he=Object.values(ne[q]).filter(pe=>!(re==="Y"&&pe.systemCodeYn!=="Y"||re==="N"&&pe.systemCodeYn==="Y")).sort((pe,ke)=>pe.sortOrder!==ke.sortOrder?pe.sortOrder-ke.sortOrder:pe.codeValue.localeCompare(ke.codeValue)).map(pe=>({commonCode:pe.commonCode,codeNm:pe.codeNm,codeValue:pe.codeValue,labelColor:pe.labelColor,sortOrder:pe.sortOrder,enblYn:pe.enabled?"Y":"N",systemCodeYn:pe.systemCodeYn,rmrk:pe.originalData?.rmrk??null}));R.current?.addAllData(he)};y.useRef(!1),y.useEffect(()=>{Ce.SCMCODE00101()},[]),y.useEffect(()=>{const q=n()?.sysLockYn||"";z(q),X(l,q)},[s]);const Y=async()=>{Ce.SCMCODE00101()},A=y.useMemo(()=>Array.from(new Set(a.systemMap.map(q=>q.sysCd))).slice(0,6),[a.systemMap]),G=y.useMemo(()=>Array.from(new Set(a.systemMap.map(q=>q.appItCd))).slice(0,8),[a.systemMap]),K=y.useMemo(()=>Array.from(new Set(a.systemMap.map(q=>q.appCd))).slice(0,8),[a.systemMap]),te=q=>{if(q<=0)return[];const re=Array.from({length:q},()=>Math.random()+.2),ne=re.reduce((ye,ce)=>ye+ce,0);return re.map(ye=>Math.round(ye/ne*100))},oe=y.useMemo(()=>{const q=Math.max(30,Math.round(Math.random()*70)),re=100-q;return[{name:"시스템코드",value:q},{name:"사용자코드",value:re}]},[]),fe=y.useMemo(()=>{const q=te(A.length);return A.map((re,ne)=>({name:re,value:q[ne]??0}))},[A]),me=y.useMemo(()=>{const q=te(G.length);return G.map((re,ne)=>({name:re,value:q[ne]??0}))},[G]),be=y.useMemo(()=>{const q=te(K.length);return K.map((re,ne)=>({name:re,value:q[ne]??0}))},[K]),Me=y.useMemo(()=>{const re=[{sysCd:"KE",sysNm:"K-ERP"},{sysCd:"CH",sysNm:"파트너관리"},{sysCd:"HR",sysNm:"K-HR"},{sysCd:"YT",sysNm:"연말정산"},{sysCd:"CM",sysNm:"공통"},{sysCd:"PA",sysNm:"평정"},{sysCd:"KS",sysNm:"K-업무지원"},{sysCd:"DE",sysNm:"온통"}].map(ne=>({label:ne.sysNm,value:ne.sysCd}));return[{label:"전체",value:""},...re]},[]),Ne=y.useMemo(()=>{const re=[{code:"KERP",name:""},{code:"KHR",name:"인사"},{code:"KHYT",name:"연말정산"},{code:"KCM",name:"공통"},{code:"KHPE",name:"평정"},{code:"EAUD",name:"감사 01"},{code:"INR",name:"감사 02"},{code:"ITAM",name:"자산 01"},{code:"CMM",name:"자산 02"},{code:"OAM",name:"자산 03"},{code:"KSGA",name:"총무"},{code:"HIS",name:"문헌"},{code:"WFAX",name:"IT서비스 0"},{code:"SMS",name:"IT서비스 0"},{code:"BID",name:"기타업무서비스 01"},{code:"PAM",name:"기타업무서비스 02"},{code:"DAC",name:"기타업무서비스 03"},{code:"IPR",name:"기타업무서비스 04"},{code:"ISB",name:"정보공유게시판"},{code:"ITSM",name:"ITSM"},{code:"BCOM",name:"소통"}].map(ne=>({label:ne.name?`${ne.code} (${ne.name})`:ne.code,value:ne.code}));return[{label:"전체",value:""},...re]},[]),De=y.useMemo(()=>{const re=[{code:"FI",name:"재무회계"},{code:"FM",name:"예산관리"},{code:"MM",name:"구매계약"},{code:"SD",name:"영업관리"},{code:"PMN",name:"파트너관리"},{code:"HR",name:"HR 솔루션"},{code:"YT",name:"연말정산"},{code:"CM",name:"프레임워크 공통"},{code:"PE",name:"평정"},{code:"EAUD",name:"e-감사"},{code:"INR",name:"청렴신고"},{code:"ITAM",name:"ITAM"},{code:"CMM",name:"차량/회의실"},{code:"OAM",name:"OA전산물품 관리"},{code:"GAM",name:"총무관리"},{code:"ACM",name:"출입관리"},{code:"IVM",name:"비품관리"},{code:"SGS",name:"인장서비스"},{code:"HIS",name:"사료관리"},{code:"ITSM",name:"ITSM"},{code:"WFAX",name:"웹펙스서비스"},{code:"SMS",name:"메시지서비스"},{code:"BID",name:"경영공시"},{code:"PAM",name:"언론미디어"},{code:"DAC",name:"심의자문위원회"},{code:"IPR",name:"지식재산권 신청"},{code:"ISB",name:"정보공유게시판"},{code:"BCOM",name:"온통"}].map(ne=>({label:`${ne.code} (${ne.name})`,value:ne.code}));return[{label:"전체",value:""},...re]},[]),Ce=y.useMemo(()=>({SCMCODE00101:()=>{const q=n(),re={crprCd:q?.crprCd||"100",sysCd:q?.sysCd||"",appItCd:q?.appItCd||"",appCd:q?.appCd||"",sysLockYn:q?.sysLockYn||"",keyword:q?.keyword||""};ae.callService("SCMCODE00101",re).then(ne=>{L.current?.addAllData(ne.data||[])}).catch(ne=>{p.message.error("그룹코드 조회에 실패했습니다.")})},SCMCODE00102:q=>{ae.callService("SCMCODE00102",q,{showLoading:!1}).then(re=>{R.current?.addAllData(re.data||[])}).catch(re=>{p.message.error("상세코드 조회에 실패했습니다.")})},SCMCODE00104:q=>{const re={grp:q};return ae.callService("SCMCODE00104",re,{showLoading:!1}).then(ne=>ne.dup===!0).catch(ne=>(console.error("그룹코드 중복 체크 실패:",ne),!1))},SCMCODE00105:q=>{const re={dtl:q};return ae.callService("SCMCODE00105",re,{showLoading:!1}).then(ne=>ne.dup===!0).catch(ne=>(console.error("상세코드 중복 체크 실패:",ne),!1))},SCMCODE00201:(q,re)=>{const ne={flag:q,grp:re};return ae.callService("SCMCODE00201",ne).then(ye=>(p.message.success(q==="I"?"그룹코드가 등록되었습니다.":"그룹코드가 수정되었습니다."),Ce.SCMCODE00101(),ye)).catch(ye=>{throw console.error("그룹코드 저장 실패:",ye),ye})},SCMCODE00202:q=>{const re={grp:q};return ae.callService("SCMCODE00202",re).then(ne=>(p.message.success("그룹코드가 삭제되었습니다."),Ce.SCMCODE00101(),ne)).catch(ne=>{throw p.message.error("그룹코드 삭제에 실패했습니다."),ne})},SCMCODE00203:(q,re,ne)=>{const ye={flag:q,dtlCnt:re,dtl:ne};return ae.callService("SCMCODE00203",ye).then(ce=>(p.message.success(q==="I"?"상세코드가 등록되었습니다.":"상세코드가 수정되었습니다."),v&&Ce.SCMCODE00102({sysCd:v.sysCd,appItCd:v.appItCd,appCd:v.appCd,grpCd:v.grpCd}),ce)).catch(ce=>{throw console.error("상세코드 저장 실패:",ce),p.message.error(q==="I"?"상세코드 등록에 실패했습니다.":"상세코드 수정에 실패했습니다."),ce})},SCMCODE00204:q=>{const re={dtl:q};return ae.callService("SCMCODE00204",re).then(ne=>(p.message.success("상세코드가 삭제되었습니다."),v&&Ce.SCMCODE00102({sysCd:v.sysCd,appItCd:v.appItCd,appCd:v.appCd,grpCd:v.grpCd}),ne)).catch(ne=>{throw p.message.error("상세코드 삭제에 실패했습니다."),ne})}}),[]);return o.jsxs(Vt,{buttons:{grant:[{id:"search",label:"조회",onClick:Y}]},searchBox:{reqRows:o.jsxs(o.Fragment,{children:[o.jsxs(p.Row,{gutter:[16,8],style:{marginBottom:8},children:[o.jsx(p.Col,{span:6,children:o.jsx($.BwgSelect,{itemProps:{label:"시스템코드",name:"sysCd",initialValue:""},selectProps:{placeholder:"시스템코드를 선택하세요",options:Me}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgSelect,{itemProps:{label:"통합코드",name:"appItCd",initialValue:""},selectProps:{placeholder:"통합코드를 선택하세요",options:Ne}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgSelect,{itemProps:{label:"앱코드",name:"appCd",initialValue:""},selectProps:{placeholder:"앱코드를 선택하세요",options:De}})})]}),o.jsxs(p.Row,{gutter:[16,8],children:[o.jsx(p.Col,{span:6,children:o.jsx($.BwgSelect,{itemProps:{label:"코드구분",name:"sysLockYn",initialValue:""},selectProps:{options:[{label:"전체",value:""},{label:"시스템코드",value:"Y"},{label:"업무코드",value:"N"}]}})}),o.jsx(p.Col,{span:6,children:o.jsx($.BwgInput,{itemProps:{label:"검색어",name:"keyword",initialValue:""},inputProps:{placeholder:"검색어를 입력하세요."}})})]})]})},children:[o.jsxs(ze,{type:"horizontal",style:{height:"calc(100vh - 120px)",gap:12,overflow:"hidden"},children:[o.jsxs(Te,{border:!0,style:{flex:`0 0 ${X1}`,maxWidth:X1,height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},children:[o.jsx(Le,{title:"공통코드 현황"}),o.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:o.jsxs(p.Space,{direction:"vertical",style:{width:"100%",padding:"8px 0"},size:12,children:[o.jsxs(p.Card,{bodyStyle:{height:200,padding:8,borderRadius:12},children:[o.jsx("div",{style:{fontWeight:600,marginBottom:6},children:"시스템코드 대비 사용자코드"}),o.jsx(pl,{width:"100%",height:160,children:o.jsxs(wK,{children:[o.jsx(VE,{data:oe,dataKey:"value",nameKey:"name",outerRadius:65,label:!0,children:oe.map((q,re)=>o.jsx(ui,{fill:ri[re%ri.length]},`c1-${re}`))}),o.jsx(Cl,{}),o.jsx(Xj,{})]})})]}),o.jsxs(p.Card,{bodyStyle:{height:200,padding:8,borderRadius:12},children:[o.jsx("div",{style:{fontWeight:600,marginBottom:6},children:"시스템코드별 백분율"}),o.jsx(pl,{width:"100%",height:160,children:o.jsxs(Gf,{data:fe,margin:{top:10,right:10,left:0,bottom:0},children:[o.jsx(_l,{strokeDasharray:"3 3"}),o.jsx(Bl,{dataKey:"name",hide:!0}),o.jsx($l,{hide:!0,domain:[0,100]}),o.jsx(Cl,{}),o.jsx(Dl,{dataKey:"value",children:fe.map((q,re)=>o.jsx(ui,{fill:ri[re%ri.length]},`c2-${re}`))})]})})]}),o.jsxs(p.Card,{bodyStyle:{height:200,padding:8,borderRadius:12},children:[o.jsx("div",{style:{fontWeight:600,marginBottom:6},children:"통합코드별 백분율"}),o.jsx(pl,{width:"100%",height:160,children:o.jsxs(Gf,{data:me,margin:{top:10,right:10,left:0,bottom:0},children:[o.jsx(_l,{strokeDasharray:"3 3"}),o.jsx(Bl,{dataKey:"name",hide:!0}),o.jsx($l,{hide:!0,domain:[0,100]}),o.jsx(Cl,{}),o.jsx(Dl,{dataKey:"value",children:me.map((q,re)=>o.jsx(ui,{fill:ri[re%ri.length]},`c3-${re}`))})]})})]}),o.jsxs(p.Card,{bodyStyle:{height:200,padding:8,borderRadius:12},children:[o.jsx("div",{style:{fontWeight:600,marginBottom:6},children:"앱별 백분율"}),o.jsx(pl,{width:"100%",height:160,children:o.jsxs(Gf,{data:be,margin:{top:10,right:10,left:0,bottom:0},children:[o.jsx(_l,{strokeDasharray:"3 3"}),o.jsx(Bl,{dataKey:"name",hide:!0}),o.jsx($l,{hide:!0,domain:[0,100]}),o.jsx(Cl,{}),o.jsx(Dl,{dataKey:"value",children:be.map((q,re)=>o.jsx(ui,{fill:ri[re%ri.length]},`c4-${re}`))})]})})]})]})})]}),o.jsxs(Te,{border:!0,style:{flex:"1 1 auto",height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"},children:[o.jsx(Le,{title:"그룹코드",children:o.jsx($.BwgButton,{type:"primary",onClick:()=>{f(!1),M(!1),d(!0),setTimeout(()=>{T.current?.resetFields(),T.current?.setFieldsValue({crprCd:"100",sysCd:__SYS_CD__||"",appItCd:"CM",appCd:"CM",enblYn:"Y",sortOrd:0})},100)},children:"그룹코드 등록"})}),o.jsx("div",{style:{flex:"0 0 45%",overflow:"hidden",display:"flex",flexDirection:"column"},children:o.jsx(Fe,{ref:L,gridColumns:de,gridOptions:ve,gridEvents:y.useMemo(()=>({onCurrentRowChanged:(q,re,ne)=>{if(ne<0){b(null);return}const ye=L.current?.dp?.getValue(ne,"sysCd")||"",ce=L.current?.dp?.getValue(ne,"appItCd")||"",he=L.current?.dp?.getValue(ne,"appCd")||"",pe=L.current?.dp?.getValue(ne,"grpCd")||"",ke=L.current?.dp?.getJsonRow(ne);b(ke),pe&&Ce.SCMCODE00102({sysCd:ye,appItCd:ce,appCd:he,grpCd:pe})}}),[Ce]),renderers:[{name:"moreActions",renderer:H}]})}),o.jsxs("div",{style:{flex:"1 1 auto",overflow:"hidden",display:"flex",flexDirection:"column",marginTop:12},children:[o.jsx(Le,{title:"상세코드",children:o.jsx($.BwgButton,{type:"primary",onClick:()=>{if(!v){p.message.warning("그룹코드를 먼저 선택하세요.");return}x(!1),m(!0),j(null),_({}),P([{dtlCd:"",cmmnCd:"",cmmnCdNm:"",cmmnCdClr:"",cmmnAbrv:"",enblYn:"Y",sortOrd:0,rmrk:""}])},disabled:!v,children:"상세코드 등록"})}),o.jsx("div",{style:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},children:o.jsx(Fe,{ref:R,gridColumns:le,gridOptions:W,renderers:[{name:"moreActions",renderer:Q},{name:"sysLockYn",renderer:ie}]})})]})]})]}),o.jsx(dn,{title:u?"그룹코드 수정":"그룹코드 등록",open:c,placement:"right",width:"40%",onClose:()=>{d(!1),f(!1),M(!1),T.current?.resetFields()},footer:o.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:[o.jsx(p.Button,{onClick:()=>{d(!1),f(!1),M(!1),T.current?.resetFields()},children:"취소"}),o.jsx(p.Button,{type:"primary",disabled:!u&&!B,onClick:async()=>{try{const q=await T.current?.validateFields();if(!q)return;const re={crprCd:q.crprCd||"100",sysCd:q.sysCd||"",appItCd:q.appItCd||"CM",appCd:q.appCd||"CM",grpCd:q.grpCd||"",grpNm:q.grpNm||"",enblYn:q.enblYn==="Y"?"Y":"N",sortOrd:q.sortOrd||0,rmrk:q.rmrk||""};if(!u&&!B){p.message.warning("그룹코드 중복체크를 먼저 완료해주세요.");return}await Ce.SCMCODE00201(u?"U":"I",re),d(!1),f(!1),M(!1),T.current?.resetFields()}catch(q){console.error(u?"그룹코드 수정 실패:":"그룹코드 등록 실패:",q)}},children:"저장"})]}),children:o.jsxs($.BwgForm,{ref:T,style:{padding:"10px 20px"},initialValues:{crprCd:"100",sysCd:__SYS_CD__||"",appItCd:"CM",appCd:"CM",enblYn:"Y",sortOrd:0},children:[o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{itemProps:{label:"시스템코드",name:"sysCd",rules:[{required:!0,message:"시스템코드를 선택하세요."}]},selectProps:{placeholder:"시스템코드를 선택하세요",options:Me.filter(q=>q.value!==""),disabled:u}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{itemProps:{label:"앱 통합코드",name:"appItCd",rules:[{required:!0,message:"앱 통합코드를 선택하세요."}]},selectProps:{placeholder:"앱 통합코드를 선택하세요",options:Ne.filter(q=>q.value!==""),disabled:u}})})]}),o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgSelect,{itemProps:{label:"앱 코드",name:"appCd",rules:[{required:!0,message:"앱 코드를 선택하세요."}]},selectProps:{placeholder:"앱 코드를 선택하세요",options:De.filter(q=>q.value!==""),disabled:u}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{label:"그룹코드",name:"grpCd",rules:[{required:!0,message:"그룹코드를 입력하세요."},{max:5,message:"그룹코드는 5자 이하여야 합니다."}]},inputProps:{placeholder:"그룹코드를 입력하세요",maxLength:5,showCount:!0,count:{max:5},disabled:u,suffix:S?o.jsx(Z.ReloadOutlined,{spin:!0,style:{color:"#1890ff"}}):B&&!u?o.jsx(Z.CheckCircleOutlined,{style:{color:"#52c41a"}}):void 0,onKeyDown:q=>{if(u){q.preventDefault();return}q.target.value.length>=5&&!["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter"].includes(q.key)&&(q.preventDefault(),p.message.warning("입력은 다섯글자까지입니다."))},onChange:q=>{if(u){q.preventDefault();return}q.target.value.length>5&&(p.message.warning("입력은 다섯글자까지입니다."),q.target.value=q.target.value.slice(0,5)),B&&M(!1),T.current?.getFieldError("grpCd")?.length&&T.current?.setFields([{name:"grpCd",errors:[]}])},onBlur:J}})})]}),o.jsx(p.Row,{gutter:16,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgInput,{itemProps:{label:"그룹명칭",name:"grpNm",rules:[{required:!0,message:"그룹명칭을 입력하세요."}]},inputProps:{placeholder:"그룹명칭을 입력하세요"}})})}),o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgCheck,{itemProps:{label:"사용여부",name:"enblYn",getValueProps:q=>({checked:q==="Y"})},inputProps:{title:"사용",format:"YN"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{itemProps:{label:"정렬순서",name:"sortOrd"},inputProps:{placeholder:"정렬순서를 입력하세요",min:0}})})]}),o.jsx(p.Row,{gutter:16,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgTextArea,{itemProps:{label:"비고",name:"rmrk"},inputProps:{placeholder:"비고를 입력하세요",rows:3}})})})]})}),o.jsx(dn,{title:g?"상세코드 수정":"상세코드 등록",open:h,placement:"right",width:"50%",onClose:()=>{m(!1),x(!1),P([]),j(null),_({}),N.current?.resetFields()},footer:o.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:[o.jsx(p.Button,{onClick:()=>{m(!1),x(!1),P([]),j(null),_({}),N.current?.resetFields()},children:"취소"}),o.jsx(p.Form.Item,{shouldUpdate:!0,children:()=>{const q=N.current?.getFieldValue("details")||[];let re=!1;if(g)re=!0;else if(q.length>0){const ne=q.every(ce=>ce?.dtlCd?.trim()),ye=q.every((ce,he)=>ce?.dtlCd?.trim()&&I[he]===!0);re=ne&&ye}return o.jsx(p.Button,{type:"primary",disabled:!re,onClick:async()=>{try{const ne=await N.current?.validateFields();if(!ne)return;if(!g&&ne.details){if(!ne.details.every((he,pe)=>!he.dtlCd?.trim()||I[pe]===!0)){p.message.warning("모든 상세코드의 중복체크를 완료해주세요.");return}for(let he=0;he<ne.details.length;he++){const ke=ne.details[he].dtlCd?.trim();if(!ke)continue;if(ne.details.some((se,Oe)=>Oe!==he&&se.dtlCd?.trim()===ke)){N.current?.setFields([{name:["details",he,"dtlCd"],errors:["같은 상세코드가 이미 입력되었습니다."]}]),p.message.error("중복된 상세코드가 있습니다.");return}}}const ye=g?[{...ne,crprCd:ne.crprCd||"100",sysCd:ne.sysCd||"",appItCd:ne.appItCd||v?.appItCd||"CM",appCd:ne.appCd||v?.appCd||"CM",grpCd:ne.grpCd||"",enblYn:ne.enblYn==="Y"?"Y":"N",sysLockYn:ne.sysLockYn==="Y"?"Y":"N"}]:(ne.details||[]).map(ce=>{const he=v?.sysCd||"",pe=v?.grpCd||"",ke=ce.dtlCd||"",_e=`${he}${pe}${ke}`;return{...ce,crprCd:v?.crprCd||"100",sysCd:he,appItCd:v?.appItCd||"CM",appCd:v?.appCd||"CM",grpCd:pe,cmmnCd:_e,enblYn:ce.enblYn==="Y"?"Y":"N",sysLockYn:ce.sysLockYn==="Y"?"Y":"N",sortOrd:ce.sortOrd||0}});await Ce.SCMCODE00203(g?"U":"I",ye.length,ye),m(!1),x(!1),P([]),j(null),_({}),N.current?.resetFields()}catch(ne){console.error(g?"상세코드 수정 실패:":"상세코드 등록 실패:",ne)}},children:"저장"})}})]}),children:o.jsxs($.BwgForm,{ref:N,style:{padding:"10px 20px"},children:[v&&o.jsx(p.Card,{style:{marginBottom:16,background:"#f5f5f5"},children:o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:8,children:o.jsxs("div",{children:[o.jsx("strong",{children:"시스템코드:"})," ",v.sysCd||""]})}),o.jsx(p.Col,{span:8,children:o.jsxs("div",{children:[o.jsx("strong",{children:"그룹코드:"})," ",v.grpCd||""]})}),o.jsx(p.Col,{span:8,children:o.jsxs("div",{children:[o.jsx("strong",{children:"그룹명칭:"})," ",v.grpNm||""]})})]})}),g?o.jsxs(o.Fragment,{children:[o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{label:"시스템코드",name:"sysCd"},inputProps:{disabled:!0}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{label:"그룹코드",name:"grpCd"},inputProps:{disabled:!0}})})]}),o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{label:"상세코드",name:"dtlCd",rules:[{required:!0,message:"상세코드를 입력하세요."}]},inputProps:{placeholder:"상세코드를 입력하세요",disabled:!0,suffix:k[-1]?o.jsx(Z.ReloadOutlined,{spin:!0,style:{color:"#1890ff"}}):I[-1]?o.jsx(Z.CheckCircleOutlined,{style:{color:"#52c41a"}}):void 0}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{label:"공통코드",name:"cmmnCd",rules:[{required:!0,message:"공통코드를 입력하세요."}]},inputProps:{placeholder:"공통코드를 입력하세요",disabled:!0}})})]}),o.jsx(p.Row,{gutter:16,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgInput,{itemProps:{label:"공통코드명",name:"cmmnCdNm",rules:[{required:!0,message:"공통코드명을 입력하세요."}]},inputProps:{placeholder:"공통코드명을 입력하세요"}})})}),o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{label:"색상",name:"cmmnCdClr",getValueFromEvent:q=>q&&typeof q.toHexString=="function"?q.toHexString():q||"",children:o.jsx(p.ColorPicker,{format:"hex",showText:!0,presets:[{label:"추천 색상",colors:["#FF4D4F","#FF7A45","#FFA940","#FFC53D","#FFEC3D","#BAE637","#73D13D","#36CFC9","#40A9FF","#1890FF","#2F54EB","#722ED1","#EB2F96","#F5222D","#FA541C","#FA8C16","#FADB14","#A0D911","#13C2C2","#096DD9","#0050B3","#531DAB","#C41D7F","#CF1322","#D4380D","#D46B08","#D4B106","#7CB305","#08979C","#0050B3"]}]})})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{label:"약어",name:"cmmnAbrv"},inputProps:{placeholder:"약어를 입력하세요"}})})]}),o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgCheck,{itemProps:{label:"사용여부",name:"enblYn",getValueProps:q=>({checked:q==="Y"})},inputProps:{title:"사용",format:"YN"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{itemProps:{label:"정렬순서",name:"sortOrd"},inputProps:{placeholder:"정렬순서를 입력하세요",min:0}})})]}),o.jsx(p.Row,{gutter:16,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgTextArea,{itemProps:{label:"비고",name:"rmrk"},inputProps:{placeholder:"비고를 입력하세요",rows:3}})})})]}):o.jsx(p.Form.List,{name:"details",initialValue:C,children:(q,{add:re,remove:ne})=>o.jsxs(o.Fragment,{children:[q.map((ye,ce)=>{const he=E===ce,pe=v?.sysCd||"",ke=v?.grpCd||"";return o.jsx(p.Card,{style:{marginBottom:16},children:o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:20,children:o.jsx(p.Form.Item,{noStyle:!0,shouldUpdate:(_e,se)=>{const Oe=_e?.details?.[ye.name]?.dtlCd,Be=se?.details?.[ye.name]?.dtlCd;return Oe!==Be},children:({getFieldValue:_e})=>{const se=_e(["details",ye.name,"dtlCd"])||"",Oe=`${pe}${ke}${se}`;return se&&N.current&&_e(["details",ye.name,"cmmnCd"])!==Oe&&setTimeout(()=>{N.current?.setFieldValue(["details",ye.name,"cmmnCd"],Oe)},0),o.jsxs(o.Fragment,{children:[o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{label:"상세코드",name:[ye.name,"dtlCd"],rules:[{required:!0,message:"상세코드를 입력하세요."}]},inputProps:{placeholder:"상세코드를 입력하세요",suffix:k[ce]?o.jsx(Z.ReloadOutlined,{spin:!0,style:{color:"#1890ff"}}):I[ce]?o.jsx(Z.CheckCircleOutlined,{style:{color:"#52c41a"}}):void 0,onChange:Be=>{I[ce]&&_(Pe=>{const Ie={...Pe};return delete Ie[ce],Ie}),N.current?.getFieldError(["details",ce,"dtlCd"])?.length&&N.current?.setFields([{name:["details",ce,"dtlCd"],errors:[]}])},onBlur:Be=>U(Be,ce)}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{label:"공통코드",name:[ye.name,"cmmnCd"]},inputProps:{disabled:!0,placeholder:"자동 생성됩니다",value:Oe}})})]}),o.jsx(p.Row,{gutter:16,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgInput,{itemProps:{label:"공통코드명",name:[ye.name,"cmmnCdNm"],rules:[{required:!0,message:"공통코드명을 입력하세요."}]},inputProps:{placeholder:"공통코드명을 입력하세요"}})})}),he&&o.jsxs(o.Fragment,{children:[o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgFormItem,{label:"색상",name:[ye.name,"cmmnCdClr"],getValueFromEvent:Be=>Be&&typeof Be.toHexString=="function"?Be.toHexString():Be||"",children:o.jsx(p.ColorPicker,{format:"hex",showText:!0,presets:[{label:"추천 색상",colors:["#FF4D4F","#FF7A45","#FFA940","#FFC53D","#FFEC3D","#BAE637","#73D13D","#36CFC9","#40A9FF","#1890FF","#2F54EB","#722ED1","#EB2F96","#F5222D","#FA541C","#FA8C16","#FADB14","#A0D911","#13C2C2","#096DD9","#0050B3","#531DAB","#C41D7F","#CF1322","#D4380D","#D46B08","#D4B106","#7CB305","#08979C","#0050B3"]}]})})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgInput,{itemProps:{label:"약어",name:[ye.name,"cmmnAbrv"]},inputProps:{placeholder:"약어를 입력하세요"}})})]}),o.jsxs(p.Row,{gutter:16,children:[o.jsx(p.Col,{span:12,children:o.jsx($.BwgCheck,{itemProps:{label:"사용여부",name:[ye.name,"enblYn"],getValueProps:Be=>({checked:Be==="Y"})},inputProps:{title:"사용",format:"YN"}})}),o.jsx(p.Col,{span:12,children:o.jsx($.BwgNumber,{itemProps:{label:"정렬순서",name:[ye.name,"sortOrd"]},inputProps:{placeholder:"정렬순서를 입력하세요",min:0}})})]}),o.jsx(p.Row,{gutter:16,children:o.jsx(p.Col,{span:24,children:o.jsx($.BwgTextArea,{itemProps:{label:"비고",name:[ye.name,"rmrk"]},inputProps:{placeholder:"비고를 입력하세요",rows:3}})})})]})]})}})}),o.jsx(p.Col,{span:4,style:{display:"flex",alignItems:"flex-start",justifyContent:"flex-end",paddingTop:30},children:o.jsxs(p.Space,{size:"small",children:[o.jsx(p.Button,{type:"link",size:"small",icon:he?o.jsx(Z.UpOutlined,{}):o.jsx(Z.DownOutlined,{}),onClick:()=>{j(he?null:ce)},style:{fontSize:"12px",padding:0},children:he?"간단입력":"추가입력"}),q.length>1&&o.jsx(p.Button,{type:"link",danger:!0,size:"small",icon:o.jsx(Z.DeleteOutlined,{}),onClick:()=>{ne(ye.name),E===ce&&j(null)},style:{fontSize:"12px",padding:0},children:"삭제"})]})})]})},ye.key)}),o.jsx(p.Button,{type:"dashed",onClick:()=>{re({dtlCd:"",cmmnCd:"",cmmnCdNm:"",cmmnCdClr:"",cmmnAbrv:"",enblYn:"Y",sortOrd:0,rmrk:""})},block:!0,style:{marginTop:16},children:"+ 행 추가"})]})})]})})]})},SK=e=>{const t=y.useRef(null),r=y.useMemo(()=>[{fieldName:"userId",header:{text:"아이디"}},{fieldName:"userName",header:{text:"이름"}},{fieldName:"email",header:{text:"이메일"}},{fieldName:"createdAt",header:{text:"생성일"}}],[]);return o.jsx(Vt,{buttons:{grant:[{id:"search",label:"조회",onClick:()=>{}}]},searchBox:{},children:o.jsx(ze,{children:o.jsx(Te,{style:{height:"300px"},children:o.jsx(Fe,{ref:t,gridColumns:r})})})})},{TextArea:jK}=p.Input,Yg=({boardMstrId:e,isCompleted:t=!1})=>{const{user:r}=mt.useUserStore(),[n,i]=y.useState(!1),[a]=y.useState(!1),[s,l]=y.useState(15),[c,d]=y.useState([]),[u,f]=y.useState(""),h=y.useRef(null),m=b=>{i(!0),ae.callService("SCMBoardDtls0001",{boardMstrId:b},{isPopup:!0,showLoading:!1}).then(C=>{if(C&&C.subList){const P=C.subList.map(E=>({id:E.seq,author:E.userNm||E.regUserId,regUserId:E.regUserId,content:E.content,regDt:E.regDt}));d(P)}else d([])}).catch(C=>{console.error("게시글 댓글 목록 조회 실패:",C)}).finally(()=>{i(!1),l(15)})},g=()=>{e&&m(e)},x=()=>{if(!u.trim()){p.message.warning("댓글 상세내용 작성");return}if(!e){p.message.error("게시글 정보가 없습니다.");return}i(!0),ae.callService("SCMBoardDtls0002",{boardMstrId:e,content:u.trim()},{isPopup:!0,showLoading:!1}).then(b=>{b&&b.result===1?(console.log("댓글이 등록되었습니다."),f(""),m(e),setTimeout(()=>{h.current&&(h.current.scrollTop=h.current.scrollHeight)},100)):console.error("댓글 등록에 실패했습니다.",b)}).catch(b=>{console.error("댓글 등록 중 오류가 발생했습니다.",b)}).finally(()=>{i(!1)})},v=b=>{const C=c.find(P=>P.id===b);if(C&&C.regUserId!==r?.userId){p.message.error("본인이 작성한 댓글만 삭제할 수 있습니다.");return}if(!e){p.message.error("게시글 정보가 없습니다.");return}i(!0),ae.callService("SCMBoardDtls0003",{boardMstrId:e,seq:b},{isPopup:!0,showLoading:!1}).then(P=>{P&&P.result===1?(console.log("댓글이 삭제되었습니다."),m(e)):console.error("댓글 삭제에 실패했습니다.",P)}).catch(P=>{console.error("댓글 삭제 중 오류가 발생했습니다.",P)}).finally(()=>{i(!1)})};return y.useEffect(()=>{e?m(e):d([])},[e]),o.jsxs(Te,{style:{flex:"0 0 400px",display:"flex",flexDirection:"column"},children:[o.jsxs("div",{style:{borderBottom:"1px solid #e8e8e8",paddingBottom:"12px",marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[o.jsx("span",{style:{fontSize:"14px",fontWeight:"600",color:"#262626"},children:"댓글"}),o.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[o.jsx(p.Button,{type:"text",icon:o.jsx(Z.ReloadOutlined,{spin:a||n}),onClick:g,disabled:a||n,size:"small",style:{fontSize:"12px",color:t?"#d9d9d9":n?"#8c8c8c":"#595959",height:"24px",padding:"0 8px"}}),!t&&o.jsx("span",{style:{position:"absolute",top:"-4px",right:"-4px",fontSize:"10px",fontWeight:"700",color:a?"#8c8c8c":"#1890ff",minWidth:"14px",height:"14px",lineHeight:"14px",textAlign:"center",borderRadius:"50%",pointerEvents:"none"},children:s})]})]}),o.jsx("div",{ref:h,style:{flex:1,overflowY:"auto",marginBottom:"16px",minHeight:0,position:"relative"},children:n?o.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"200px",color:"#8c8c8c"},children:[o.jsx("div",{style:{marginBottom:"12px"},children:o.jsx(Z.ReloadOutlined,{spin:!0,style:{fontSize:"24px"}})}),o.jsx("div",{style:{fontSize:"13px"},children:"댓글을 불러오는 중..."})]}):c.length===0?o.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"200px",color:"#8c8c8c"},children:o.jsx("div",{style:{fontSize:"13px"},children:"등록된 댓글이 없습니다."})}):o.jsx(p.List,{dataSource:c,renderItem:b=>o.jsxs(p.List.Item,{style:{position:"relative",paddingRight:"20px",padding:"12px 20px 12px 12px",borderBottom:"1px solid #f0f0f0"},children:[o.jsx(p.List.Item.Meta,{avatar:o.jsx(p.Avatar,{size:32,style:{backgroundColor:"#1890ff",fontSize:"13px"},children:b.author[0]}),title:o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"4px"},children:[o.jsx("span",{style:{fontWeight:"500",fontSize:"13px",color:"#262626"},children:b.author}),o.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:b.regDt})]}),description:o.jsx("span",{style:{fontSize:"13px",color:"#595959",lineHeight:"1.5"},children:b.content})}),b.regUserId===r?.userId&&o.jsx(p.Button,{type:"text",danger:!0,icon:o.jsx(Z.DeleteOutlined,{style:{fontSize:"12px"}}),size:"small",onClick:()=>v(b.id),disabled:n,style:{position:"absolute",right:"8px",top:"62%",transform:"translateY(-50%)",opacity:n?.3:.5,height:"24px",width:"24px",padding:0},onMouseEnter:C=>{n||(C.currentTarget.style.opacity="1")},onMouseLeave:C=>{C.currentTarget.style.opacity=n?"0.3":"0.5"}})]},b.id)})}),o.jsx("div",{style:{padding:"12px",borderTop:"1px solid #e8e8e8",backgroundColor:t?"#f5f5f5":"#fafafa",flexShrink:0,marginTop:"auto"},children:t?o.jsxs("div",{style:{textAlign:"center",padding:"20px",color:"#8c8c8c",fontSize:"13px",backgroundColor:"#ffffff",borderRadius:"6px",border:"1px solid #e8e8e8"},children:[o.jsx("div",{style:{marginBottom:"8px"},children:o.jsx(Z.AlertTwoTone,{twoToneColor:"#faad14"})}),o.jsx("div",{children:"이미 완료처리된 게시글입니다."}),o.jsx("div",{style:{fontSize:"11px",marginTop:"4px"},children:"댓글을 작성할 수 없습니다."})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{style:{marginBottom:"8px"},children:o.jsx(jK,{rows:2,placeholder:n?"댓글 처리 중...":"댓글을 입력하세요...",value:u,onChange:b=>f(b.target.value),maxLength:300,disabled:n,style:{borderRadius:"6px",border:"1px solid #d9d9d9",resize:"none",fontSize:"13px",backgroundColor:n?"#f5f5f5":"#ffffff",color:n?"#8c8c8c":"#000000"},onFocus:b=>{n||(b.currentTarget.style.borderColor="#1890ff",b.currentTarget.style.boxShadow="0 0 0 2px rgba(24, 144, 255, 0.05)")},onBlur:b=>{b.target.style.borderColor="#d9d9d9",b.target.style.boxShadow="none"}})}),o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:n?"처리 중...":`${u.length} / 300자`}),o.jsx(p.Button,{type:"primary",onClick:x,size:"small",loading:n,style:{borderRadius:"4px",fontSize:"12px",height:"28px",padding:"0 16px",fontWeight:"500"},disabled:!u.trim()||n,children:n?"등록 중...":"등록"})]})]})})]})},Xf=[{label:"요청",value:"RQST"},{label:"문의",value:"INQR"}],Z1=[{label:"대기",value:"READY"},{label:"담당자 지정",value:"ASSIGNED"},{label:"처리중",value:"PROCESSING"},{label:"처리완료",value:"COMPLETED"},{label:"반려",value:"REJECTED"}],PK={READY:"gray",ASSIGNED:"blue",PROCESSING:"yellow",COMPLETED:"green",REJECTED:"red"},Q1={READY:0,ASSIGNED:25,PROCESSING:50,COMPLETED:100,REJECTED:100},EK={INQR:"blue",RQST:"green",RPRT:"red",SGSN:"purple"},OK=({sysCd:e=__SYS_CD__,appCd:t=__APP_CD__})=>{const r=y.useRef(null),[n]=p.Form.useForm(),[i,a]=y.useState(!1),{searchBoxRef:s}=bt.useSearchBox(),{openTabByMenuId:l}=mt.useMenuViewStore(),{openCorePopup:c}=bt.usePopup(),d=y.useRef(null),[u,f]=y.useState(n.getFieldValue("status")),h=u==="COMPLETED",m=y.useMemo(()=>[{fieldName:"boardMstrId",header:{text:"번호"},width:80},{fieldName:"menuId",header:{text:"메뉴ID"},width:100,button:!0,styleName:"center"},{fieldName:"menuNm",header:{text:"메뉴명"},width:120,styleName:"left"},{fieldName:"type",header:{text:"등록구분"},width:80,renderer:"tagType",styleName:"center"},{fieldName:"title",header:{text:"제목"},width:200,styleName:"left"},{fieldName:"content",header:{text:"내용"},width:200,visible:!1},{fieldName:"status",header:{text:"상태"},width:90,renderer:"statusTag",styleName:"center"},{fieldName:"rgstUserId",visible:!1},{fieldName:"rgstUserNm",header:{text:"작성자"},width:60,styleName:"left"},{fieldName:"rgstDt",header:{text:"등록일자"},width:100,textFormat:ae.realFormat.formatYmd,styleName:"right"},{fieldName:"dueDt",header:{text:"마감요청일자"},width:100,textFormat:ae.realFormat.formatYmd,styleName:"right"},{fieldName:"urgentYn",header:{text:"긴급여부"},width:80,renderer:"alert",styleName:"center"},{fieldName:"prcsUserId",visible:!1},{fieldName:"prcsUserNm",header:{text:"처리담당자"},width:60,styleName:"left"},{fieldName:"prcsDt",header:{text:"처리일자"},width:120,textFormat:ae.realFormat.formatYmd,styleName:"right",visible:!1}],[]),g=y.useMemo(()=>({container:{indicator:!1}}),[]),x={onCellDblClicked(B,M){const I=M.itemIndex??-1;if(I<0)return;const _=B.getValues(I);n.setFieldsValue(_),f(_.status),a(!0)},onCellClicked(B,M){if(M.fieldName==="menuId"){if((M.itemIndex??-1)<0)return;M.value&&l(M.value)}}},v=y.useMemo(()=>({SCMBoardMstr0001:async(B,M)=>{const I=B||d.current?.currentPage||1,_=M||d.current?.pageSize||20,L={...s?.current?.getFormData(),sysCd:e,appCd:t,pageNum:I,pageCount:_};console.log("🔍 서버 모드 페이징 요청:",L);try{const R=await ae.callService("SCMBoardMstr0001",L,{isPopup:!0});if(console.log("🔍 서버 모드 페이징 응답:",R),R&&R.pageList){const T=R.pageCnt||0;d.current?.setTotalData(T),r.current?.addAllData(R.pageList)}else d.current?.setTotalData(0),r.current?.addAllData([]),console.log("📭 서버 모드 페이징 데이터 없음")}catch(R){console.error("❌ SCMBoardMstr0001 호출 실패:",R)}},SCMBoardMstr0004:B=>{ae.callService("SCMBoardMstr0004",{...B,boardMstrId:n.getFieldValue("boardMstrId"),sysCd:e,appCd:t},{isPopup:!0}).then(M=>{n.resetFields(),v.SCMBoardMstr0001()}).catch(M=>{console.error("문의/신고 변경 실패:",M)})}}),[s,n]),b=y.useMemo(()=>Nr((B,M,I,_,L)=>{const R=B.getValue(M.index?.itemIndex,"type");L.render(o.jsx(p.Tag,{color:EK[R],children:Xf.find(T=>T.value===R)?.label}))}),[]),C=y.useMemo(()=>Nr((B,M,I,_,L)=>{const R=B.getValue(M.index?.itemIndex,"status");L.render(o.jsx(p.Tag,{color:PK[R],children:Z1.find(T=>T.value===R)?.label}))}),[]),P=y.useMemo(()=>Nr((B,M,I,_,L)=>{B.getValue(M.index?.itemIndex,"urgentYn")==="Y"?L.render(o.jsx(Z.AlertTwoTone,{twoToneColor:"red"})):L.render(o.jsx(o.Fragment,{}))}),[]),E=()=>{try{n.validateFields().then(B=>{p.Modal.confirm({title:"변경 확인",content:"게시물 정보를 변경하시겠습니까?",okText:"변경",cancelText:"취소",onOk:()=>{v.SCMBoardMstr0004(B),a(!1)}})})}catch(B){console.error("게시물 정보 변경 실패:",B)}},j=()=>{c("CORE_ORGANIZATION_01",{onSelect:B=>{console.log("처리담당자 선택:",B),n.setFieldsValue({prcsUserId:B.empNo,prcsUserNm:B.empNm,status:"ASSIGNED"}),f("ASSIGNED")}})},S=()=>{c("CORE_PRGR_02",{callback:B=>{s?.current?.setFormData({menuId:B.menuId,menuNm:B.menuNm})}})},O=B=>{if(n.setFieldValue("status",B),f(B),B==="COMPLETED"||B==="REJECTED"){const M=ae.format(ae.now(),"yyyy-mm-dd");n.setFieldsValue({prcsDt:M})}else n.setFieldsValue({prcsDt:""})};y.useEffect(()=>{setTimeout(()=>{v.SCMBoardMstr0001()},100)},[v]);const k={ref:s,reqRows:o.jsxs(o.Fragment,{children:[o.jsxs(St,{gutter:[12,8],style:{marginBottom:"8px"},children:[o.jsx($e,{span:7,children:o.jsx($.BwgRangePicker,{itemProps:{label:"등록일자",name:"rgstDt"},inputProps:{allowEmpty:!0}})}),o.jsx($e,{span:4,children:o.jsx($.BwgSelect,{itemProps:{label:"구분",name:"type"},selectProps:{options:Xf,placeholder:"전체"}})}),o.jsx($e,{span:6,children:o.jsx($.BwgSearch,{itemProps:{label:"작성자",name:["rgstUserId","rgstUserNm"]},onSearch:()=>{c("CORE_ORGANIZATION_01",{onSelect:B=>{s?.current?.setFormData({rgstUserId:B.empNo,rgstUserNm:B.empNm})}})}})}),o.jsx($e,{span:6,style:{marginLeft:"12px"},children:o.jsx($.BwgSwitch,{itemProps:{name:"myPrcs",label:"나의 처리건만"},inputProps:{format:"YN"}})})]}),o.jsxs(St,{gutter:[12,8],children:[o.jsx($e,{span:7,children:o.jsx($.BwgSearch,{itemProps:{label:"메뉴",name:["menuId","menuNm"]},onSearch:S})}),o.jsx($e,{span:4,children:o.jsx($.BwgSelect,{itemProps:{label:"상태",name:"status"},selectProps:{options:Z1,placeholder:"전체"}})}),o.jsx($e,{span:8,children:o.jsx($.BwgInput,{itemProps:{label:"제목 및 내용",name:"keyword"}})})]})]})},D=y.useMemo(()=>({grant:[{id:"search",label:"조회",onClick:()=>{v.SCMBoardMstr0001(d.current?.currentPage,d.current?.pageSize)}},{id:"edit",label:"변경",onClick:()=>{const B=r.current?.getCurrentIndex?.()??-1;if(B<0)return;const M=r.current?.vw?.getValues(B);M&&(n.setFieldsValue(M),f(n.getFieldValue("status")),a(!0))}}]}),[d,v,n,r]);return o.jsx(Vt,{searchBox:k,buttons:D,children:o.jsx(ze,{children:o.jsxs(Te,{children:[o.jsx(Fe,{ref:r,type:"nrml",gridColumns:m,gridOptions:g,gridEvents:x,renderers:[{name:"tagType",renderer:b},{name:"statusTag",renderer:C},{name:"alert",renderer:P}]}),o.jsx(dn,{title:"게시물 상세",open:i,onClose:()=>{a(!1),n.resetFields(),v.SCMBoardMstr0001()},showCloseButton:!0,showEyesButton:!0,size:"large",placement:"right",width:1200,maskClosable:!0,extra:o.jsx(p.ConfigProvider,{theme:{components:{Button:{fontSize:13}}},children:o.jsx(p.Space,{children:o.jsx(p.Button,{type:"primary",onClick:E,children:"변경"})})}),children:o.jsxs(p.Splitter,{children:[o.jsx(p.Splitter.Panel,{defaultSize:"70%",min:"60%",max:"80%",style:{paddingRight:"15px",overflowX:"hidden",overflowY:"hidden"},children:o.jsx(Te,{children:o.jsxs($.BwgForm,{form:n,children:[o.jsx(St,{gutter:[12,8],style:{marginBottom:"20px"},children:o.jsx($e,{span:24,children:o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"0 5px"},children:[o.jsx(p.Avatar,{size:40,style:{backgroundColor:"#1890ff",fontSize:"13px"},children:n.getFieldValue("rgstUserNm")?.[0]??""}),o.jsx("div",{style:{flex:1},children:o.jsxs("div",{style:{display:"flex",flexDirection:"column",marginBottom:"4px",marginTop:"2px"},children:[o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[o.jsx("span",{style:{fontWeight:500,fontSize:"16px",color:"#262626"},children:n.getFieldValue("rgstUserNm")??n.getFieldValue("rgstUserId")??""}),o.jsx("span",{style:{fontSize:"13px",color:"#8c8c8c",marginTop:"3px",marginLeft:"4px"},children:n.getFieldValue("rgstDt")?ae.format(n.getFieldValue("rgstDt"),"YYYY-MM-DD"):""})]}),o.jsx("span",{style:{fontSize:"12px",color:"#8c8c8c",marginLeft:"1px"},children:n.getFieldValue("rgstUserId")??""})]})})]})})}),o.jsx(St,{gutter:[12,8],children:o.jsx($e,{span:24,children:o.jsx($.BwgInput,{itemProps:{name:"title"},inputProps:{size:"large",placeholder:"제목을 입력하세요",style:{fontWeight:"bold"},variant:"borderless"}})})}),o.jsx(St,{gutter:[12,8],style:{marginBottom:"15px"},children:o.jsx($e,{span:24,children:o.jsx("div",{style:{borderBottom:"1px solid #d9d9d9",marginBottom:"8px"}})})}),o.jsxs(St,{gutter:[12,8],style:{marginBottom:"10px"},children:[o.jsx($e,{span:8,children:o.jsx($.BwgSelect,{itemProps:{label:"구분",name:"type"},selectProps:{disabled:!0,options:Xf}})}),o.jsx($e,{span:10,children:o.jsx($.BwgFormItem,{label:"메뉴 정보",children:o.jsxs(p.Space.Compact,{style:{width:"100%"},children:[o.jsx(p.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:o.jsx(p.Input,{disabled:!0})}),o.jsx(p.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:o.jsx(p.Input,{disabled:!0})})]})})}),o.jsx($e,{span:6,children:o.jsx($.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),o.jsx(St,{gutter:[12,8],style:{marginBottom:"10px"},children:o.jsx($e,{span:24,children:o.jsx($.BwgFormItem,{label:"상태",name:"status",children:o.jsxs(p.Space,{children:[o.jsx(p.Button,{icon:o.jsx(Z.ReloadOutlined,{}),type:u==="READY"?"primary":"default",onClick:()=>O("READY"),children:"대기"}),o.jsx(p.Button,{icon:o.jsx(Z.UserAddOutlined,{}),onClick:j,type:u==="ASSIGNED"?"primary":"default",children:"담당자 지정"}),o.jsx(p.Button,{icon:o.jsx(Z.ClockCircleOutlined,{}),type:u==="PROCESSING"?"primary":"default",onClick:()=>O("PROCESSING"),children:"처리중"}),o.jsx(p.Button,{icon:o.jsx(Z.CheckOutlined,{}),onClick:()=>O("COMPLETED"),type:u==="COMPLETED"?"primary":"default",children:"처리완료"}),o.jsx(p.Button,{icon:o.jsx(Z.CloseOutlined,{}),onClick:()=>O("REJECTED"),type:u==="REJECTED"?"primary":"default",children:"반려"})]})})})}),o.jsxs(St,{gutter:[12,8],style:{marginBottom:"8px"},children:[o.jsx($e,{span:12,children:o.jsx($.BwgDatePicker,{itemProps:{label:"마감요청일자",name:"dueDt"},inputProps:{disabled:!0,format:"YYYY-MM-DD"}})}),o.jsx($e,{span:12,children:o.jsxs(p.Flex,{vertical:!0,gap:3,children:[o.jsx("span",{style:{fontSize:"12px",color:"#000000E0"},children:"진척률"}),o.jsx(p.Progress,{percent:Q1[n.getFieldValue("status")],status:Q1[n.getFieldValue("status")]>0?"active":"normal",size:"small",format:B=>`${B}%`})]})})]}),o.jsxs(St,{gutter:[12,8],style:{marginBottom:"8px"},children:[o.jsx($e,{span:12,children:o.jsx($.BwgSearch,{itemProps:{label:"처리담당자",name:["prcsUserId","prcsUserNm"]},onSearch:j})}),o.jsx($e,{span:12,children:o.jsx($.BwgDatePicker,{itemProps:{label:"처리일자",name:"prcsDt"},inputProps:{disabled:!0,format:"YYYY-MM-DD"}})})]}),o.jsx(St,{gutter:[12,8],children:o.jsx($e,{span:24,children:o.jsx(Dh,{itemProps:{label:"내용",name:"content"}})})})]})})}),o.jsx(p.Splitter.Panel,{collapsible:!0,style:{paddingLeft:"15px"},children:o.jsx(Yg,{boardMstrId:n.getFieldValue("boardMstrId"),isCompleted:h})})]})}),o.jsx(os,{ref:d,mode:"server",onServerPageChange:(B,M)=>{v.SCMBoardMstr0001(B,M)},pageSizeOptions:[10,20,50]})]})})})},Zf=[{label:"요청",value:"RQST"},{label:"문의",value:"INQR"}],Qf=[{label:"대기",value:"READY"},{label:"담당자 지정",value:"ASSIGNED"},{label:"처리중",value:"PROCESSING"},{label:"처리완료",value:"COMPLETED"},{label:"반려",value:"REJECTED"}],J1={READY:"gray",ASSIGNED:"blue",PROCESSING:"yellow",COMPLETED:"green",REJECTED:"red"},ew={READY:0,ASSIGNED:25,PROCESSING:50,COMPLETED:100,REJECTED:100},kK={INQR:"blue",RQST:"green",RPRT:"red",SGSN:"purple"},TK=({sysCd:e=__SYS_CD__,appCd:t=__APP_CD__})=>{const r=y.useRef(null),[n,i]=y.useState(!1),{searchBoxRef:a}=bt.useSearchBox(),{user:s}=mt.useUserStore(),[l]=p.Form.useForm(),{openCorePopup:c}=bt.usePopup(),d=y.useRef(null),[u,f]=y.useState(!1),m=p.Form.useWatch("status",l)??l.getFieldValue("status")??"READY",g=u||m==="READY",[x,v]=y.useState(!1),b=m==="COMPLETED"||m==="REJECTED",C=y.useMemo(()=>[{fieldName:"boardMstrId",header:{text:"글 번호"},width:80},{fieldName:"menuId",header:{text:"메뉴ID"},width:100,styleName:"center"},{fieldName:"menuNm",header:{text:"메뉴명"},width:100,styleName:"left"},{fieldName:"type",header:{text:"등록구분"},width:80,renderer:"tagType",styleName:"center"},{fieldName:"title",header:{text:"제목"},width:200,styleName:"left"},{fieldName:"content",header:{text:"내용"},width:200,visible:!1},{fieldName:"status",header:{text:"상태"},width:80,renderer:"statusTag",styleName:"center"},{fieldName:"rgstUserId",header:{text:"작성자ID"},visible:!1},{fieldName:"rgstDt",header:{text:"작성일자"},width:120,textFormat:ae.realFormat.formatYmd,styleName:"right"},{fieldName:"dueDt",header:{text:"마감요청일자"},width:120,textFormat:ae.realFormat.formatYmd,styleName:"right"},{fieldName:"urgentYn",header:{text:"긴급여부"},width:80,renderer:"alert",styleName:"center"},{fieldName:"prcsUserId",visible:!1},{fieldName:"prcsUserNm",header:{text:"처리담당자"},width:100,styleName:"left"},{fieldName:"prcsDt",header:{text:"처리일자"},width:120,textFormat:ae.realFormat.formatYmd,styleName:"right"}],[]),P=y.useMemo(()=>({container:{indicator:!1}}),[]),E={onCellDblClicked(_,L){const R=L.itemIndex??-1;if(R<0)return;const T=_.getValues(R);T&&(l.setFieldsValue({...T}),f(!1),i(!0))}},j=y.useMemo(()=>({SCMBoardMstr0001:async(_,L)=>{const R=_||d.current?.currentPage||1,T=L||d.current?.pageSize||20,N={...a?.current?.getFormData(),sysCd:e,appCd:t,myArticle:"Y",pageNum:R,pageCount:T},F=await ae.callService("SCMBoardMstr0001",N,{isPopup:!0});F&&F.pageList&&(d.current?.setTotalData(F.pageCnt||0),r.current?.addAllData(F.pageList))},SCMBoardMstr0003:_=>{ae.callService("SCMBoardMstr0003",{sysCd:e,appCd:t,..._,status:"READY",rgstUserId:s?.userId,rgstUserNm:s?.userNm},{isPopup:!0}).then(L=>{l.resetFields(),j.SCMBoardMstr0001()}).catch(L=>{console.error("게시물 제출 실패:",L)})},SCMBoardMstr0004:_=>{ae.callService("SCMBoardMstr0004",{sysCd:e,appCd:t,boardMstrId:l.getFieldValue("boardMstrId"),..._},{isPopup:!0}).then(()=>{l.resetFields(),j.SCMBoardMstr0001()}).catch(L=>{console.error("게시물 변경 실패:",L)})}}),[a,l]),S=y.useMemo(()=>Nr((_,L,R,T,N)=>{const F=_.getValue(L.index?.itemIndex,"type");N.render(o.jsx(p.Tag,{color:kK[F],children:Zf.find(V=>V.value===F)?.label}))}),[]),O=y.useMemo(()=>Nr((_,L,R,T,N)=>{const F=_.getValue(L.index?.itemIndex,"status");N.render(o.jsx(p.Tag,{color:J1[F],children:Qf.find(V=>V.value===F)?.label}))}),[]),k=y.useMemo(()=>Nr((_,L,R,T,N)=>{_.getValue(L.index?.itemIndex,"urgentYn")==="Y"?N.render(o.jsx(Z.AlertTwoTone,{twoToneColor:"red"})):N.render(o.jsx(o.Fragment,{}))}),[]),D=()=>{try{l.validateFields().then(_=>{p.Modal.confirm({title:u?"등록 확인":"변경 확인",content:u?"게시물 내용 등록하시겠습니까?":"게시물 내용 변경하시겠습니까?",okText:u?"등록":"변경",cancelText:"취소",onOk:()=>{u?j.SCMBoardMstr0003(_):j.SCMBoardMstr0004(_),i(!1)}})})}catch(_){console.error("게시물 제출 실패:",_)}},B=()=>{c("CORE_PRGR_02",{callback:_=>{l.setFieldsValue({menuId:_.menuId,menuNm:_.menuNm})}})};y.useEffect(()=>{setTimeout(()=>{j.SCMBoardMstr0001()},100)},[j]);const M={ref:a,reqRows:o.jsxs(o.Fragment,{children:[o.jsxs(St,{gutter:[12,8],style:{marginBottom:"8px"},children:[o.jsx($e,{span:8,children:o.jsx($.BwgRangePicker,{itemProps:{label:"작성일자",name:"rgstDt"},inputProps:{allowEmpty:!0}})}),o.jsx($e,{span:8,children:o.jsx($.BwgSearch,{itemProps:{label:"메뉴",name:["menuId","menuNm"]},onSearch:()=>{c("CORE_PRGR_02",{callback:_=>{a?.current?.setFormData({menuId:_.menuId,menuNm:_.menuNm})}})}})})]}),o.jsxs(St,{gutter:[12,8],children:[o.jsx($e,{span:4,children:o.jsx($.BwgSelect,{itemProps:{label:"구분",name:"type"},selectProps:{options:Zf,placeholder:"전체"}})}),o.jsx($e,{span:4,children:o.jsx($.BwgSelect,{itemProps:{label:"상태",name:"status"},selectProps:{options:Qf,placeholder:"전체"}})}),o.jsx($e,{span:8,children:o.jsx($.BwgInput,{itemProps:{label:"제목 및 내용",name:"keyword"}})})]})]})},I=y.useMemo(()=>({grant:[{id:"search",label:"조회",onClick:()=>{j.SCMBoardMstr0001()}},{id:"new",label:"등록",onClick:()=>{f(!0),l.resetFields(),l.setFieldsValue({rgstUserId:s?.userId,rgstUserNm:s?.userNm,rgstDt:ae.now().format(),status:"READY"}),i(!0)}},{id:"edit",label:"변경",onClick:()=>{const _=r.current?.getCurrentIndex?.()??-1;if(_<0)return;const L=r.current?.vw?.getValues(_);L&&(l.setFieldsValue({...L}),f(!1),i(!0))}}]}),[j,l,r,s]);return o.jsx(Vt,{searchBox:M,buttons:I,children:o.jsx(ze,{children:o.jsxs(Te,{children:[o.jsx(Fe,{ref:r,type:"nrml",gridColumns:C,gridOptions:P,gridEvents:E,renderers:[{name:"tagType",renderer:S},{name:"statusTag",renderer:O},{name:"alert",renderer:k}]}),o.jsx(dn,{title:`게시물 ${u?"등록":"변경"}`,open:n,onClose:()=>i(!1),showCloseButton:!1,size:"large",placement:"right",width:u?800:1200,extra:o.jsx(p.ConfigProvider,{theme:{components:{Button:{fontSize:13}}},children:o.jsxs(p.Space,{children:[o.jsx(p.Button,{onClick:()=>i(!1),children:"취소"}),o.jsx(p.Button,{type:"primary",onClick:D,children:u?"등록":"변경"})]})}),children:o.jsxs(p.Splitter,{children:[o.jsx(p.Splitter.Panel,{defaultSize:u?"100%":"70%",min:u?"100%":"60%",max:u?"100%":"80%",style:{paddingRight:u?"0px":"15px",overflowX:"hidden",overflowY:"hidden"},children:o.jsx(Te,{children:o.jsxs($.BwgForm,{form:l,onFinish:D,initialValues:{rgstUserId:s?.userId||"",rgstUserNm:s?.userNm||""},children:[o.jsx(St,{gutter:[12,8],children:o.jsx($e,{span:24,children:o.jsx($.BwgInput,{itemProps:{name:"title"},inputProps:{size:"large",placeholder:"제목을 입력하세요",style:{fontWeight:"bold"},variant:"borderless"}})})}),o.jsx(St,{gutter:[12,8],style:{marginBottom:"15px"},children:o.jsx($e,{span:24,children:o.jsx("div",{style:{borderBottom:"1px solid #d9d9d9",marginBottom:"8px"}})})}),o.jsxs(St,{gutter:[12,8],style:{marginBottom:"8px"},children:[o.jsx($e,{span:8,children:o.jsx($.BwgSelect,{itemProps:{label:"구분",name:"type",rules:[{required:!0}]},selectProps:{options:Zf,disabled:!g}})}),o.jsx($e,{span:16,children:o.jsx($.BwgSearch,{itemProps:{label:"메뉴",name:["menuId","menuNm"],rules:[{required:!0}]},onSearch:B,readOnly:!g})})]}),o.jsxs(St,{gutter:[12,8],style:{marginBottom:"8px"},children:[!u&&o.jsx($e,{span:12,children:o.jsx($.BwgFormItem,{label:"상태",children:o.jsx("div",{style:{marginBottom:4},children:l.getFieldValue("status")&&o.jsx(p.Tag,{color:J1[l.getFieldValue("status")],children:Qf.find(_=>_.value===l.getFieldValue("status"))?.label})})})}),o.jsx($e,{span:u?24:12,children:o.jsx($.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"},inputProps:{disabled:!g}})})]}),o.jsxs(St,{gutter:[12,8],style:{marginBottom:"8px"},children:[o.jsx($e,{span:12,children:o.jsx($.BwgDatePicker,{itemProps:{label:"마감요청일자",name:"dueDt",rules:[{required:!0}]},inputProps:{disabled:!g,format:"YYYY-MM-DD"}})}),!u&&o.jsx($e,{span:12,children:o.jsxs(p.Flex,{vertical:!0,gap:3,children:[o.jsx("span",{style:{fontSize:"12px",color:"#000000E0"},children:"진척률"}),o.jsx(p.Progress,{percent:ew[l.getFieldValue("status")],status:ew[l.getFieldValue("status")]>0?"active":"normal",size:"small",format:_=>`${_}%`})]})})]}),o.jsx(St,{gutter:[12,8],style:{marginBottom:"8px"},children:o.jsx($e,{span:24,children:o.jsx(Dh,{border:!1,itemProps:{name:"content",rules:[{required:!0}]},editorProps:{isEditing:g&&!x,title:{title:o.jsxs(o.Fragment,{children:[o.jsx(Z.EditOutlined,{style:{marginRight:"5px"}})," ","상세내용 작성"]}),children:g&&o.jsx(p.Button,{icon:o.jsx(Z.EyeFilled,{}),onClick:()=>v(!x),children:"미리보기"})}}})})})]})})}),!u&&o.jsx(p.Splitter.Panel,{collapsible:!0,style:{paddingLeft:"15px"},children:o.jsx(Yg,{boardMstrId:l.getFieldValue("boardMstrId"),isCompleted:b})})]})}),o.jsx(os,{ref:d,mode:"server",onServerPageChange:(_,L)=>{j.SCMBoardMstr0001(_,L)},pageSizeOptions:[10,20,50]})]})})})},IK=e=>{if(e==null)return"";const t=String(e).trim();return!t||t.toUpperCase()==="NULL"?"":t.toUpperCase()},Jf=(e,t=0)=>{const r=Number(e);return Number.isFinite(r)?r:t};function Ma(e){return{crprCd:e.crprCd||void 0,wkplCd:e.wkplCd||void 0,deptCd:IK(e.deptCd),deptNm:(e.deptNm??"").toString().trim(),hrnkDeptCd:e.hrnkDeptCd||null,hrnkDeptNm:e.hrnkDeptNm||null,deptGbCd:e.deptGbCd||null,deptLvl:Jf(e.deptLvl,e.hrnkDeptCd?2:1),orgSortOrd:Jf(e.orgSortOrd,0),orgOtptOrd:Jf(e.orgOtptOrd,0),deptAbrv:e.deptAbrv||null,deptFullNm:e.deptFullNm||null,deptEnglNm:e.deptEnglNm||null,isLeaf:e.isLeaf||null}}function MK(e){const t=new Set,r=e.map(Ma).filter(l=>l.deptCd).filter(l=>(l.deptCd===l.hrnkDeptCd&&(l.hrnkDeptCd=""),!0)).filter(l=>t.has(l.deptCd)?!1:(t.add(l.deptCd),!0));r.sort((l,c)=>(l.deptLvl||0)-(c.deptLvl||0)||(l.orgSortOrd||0)-(c.orgSortOrd||0)||l.deptCd.localeCompare(c.deptCd));const n=new Map;for(const l of r)n.set(l.deptCd,{...l,children:[]});const i=[];for(const l of r){const c=n.get(l.deptCd),d=l.hrnkDeptCd;d&&n.has(d)?n.get(d).children.push(c):i.push(c)}const a=l=>{!l||l.length===0||(l.sort((c,d)=>c.deptCd.localeCompare(d.deptCd)),l.forEach(c=>a(c.children)))};a(i);const s=l=>{if(!l.children||l.children.length===0){delete l.children;return}l.children.forEach(s)};if(i.forEach(s),i.length>1){const l=i.find(c=>c.deptCd==="D00");if(l)return[l]}return i}function RK(e){const t=e.map(Ma),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 dO=({popup:e,onClose:t})=>{const[r,n]=y.useState(""),[i,a]=y.useState([]),[s,l]=y.useState([]),[c,d]=y.useState([]),[u,f]=y.useState(!1),h=y.useCallback(async S=>{try{f(!0);const O=await ae.callService("SCMUTIL00103",{...e?.popupParams,...S}),k=Array.isArray(O?.data)?O.data:Array.isArray(O?.deptList)?O.deptList:Array.isArray(O)?O:[],D=MK(k);d(D);const B=RK(k);a(B);const M=D[0]?.deptCd||Ma(k.find(I=>Ma(I).deptLvl===1)||{}).deptCd||Ma(k[0]||{}).deptCd||"";l(M?[M]:[])}catch{p.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{f(!1)}},[e?.popupParams]);y.useEffect(()=>{h()},[h]);const m=y.useCallback((S,O)=>{for(const k of S){if(k.deptCd===O)return k;if(k.children){const D=m(k.children,O);if(D)return D}}return null},[]),g=y.useMemo(()=>{const S=s[0];return S?m(c,S):null},[s,c,m]),x=y.useMemo(()=>{const S=k=>k.map(D=>({title:D.deptNm,key:D.deptCd,meta:D,children:D.children?S(D.children):void 0}));return S(c)},[c]),v=y.useMemo(()=>{const S=r.trim().toLowerCase();if(!S)return x;const O=k=>k.map(D=>{const B=D.meta,M=(B?.deptNm||"").toLowerCase().includes(S)||(B?.deptCd||"").toLowerCase().includes(S),I=D.children?O(D.children):void 0;return M||I&&I.length?{...D,children:I}:null}).filter(Boolean);return O(x)},[x,r]),b=y.useCallback(S=>{l(S.slice(0,1).map(String))},[]),C=y.useCallback(S=>a(S.map(String)),[]),P=y.useCallback((S,O)=>{if(S.stopPropagation(),!O.children||O.children.length===0)return;const k=i.includes(O.key);a(D=>k?D.filter(B=>B!==O.key):[...D,O.key])},[i]),E=y.useCallback(()=>l([]),[]),j={confirm:()=>{if(!g){p.message.error("부서를 선택해주세요.");return}const S={deptCd:g.deptCd,deptNm:g.deptNm,hrnkDeptCd:g.hrnkDeptCd,hrnkDeptNm:g.hrnkDeptNm,deptLvl:g.deptLvl,orgSortOrd:g.orgSortOrd},O=e?.config;O?.onSelect?O.onSelect(S):e?.config?.callback&&e.config.callback(JSON.stringify(S)),O?.onClose&&O.onClose(),e?.close?.()},cancel:()=>{const S=e?.config;S?.onCancel&&S.onCancel(),e?.close?.()}};return o.jsx(Yi,{popup:e,buttons:[{id:"confirm",label:"확인",onClick:()=>{j.confirm()}}],popupEvent:j,onClose:()=>{e?.close?.(),t?.()},children:o.jsx(ze,{children:o.jsx(Te,{border:!1,style:{paddingBottom:20},children:o.jsxs(p.Splitter,{layout:"vertical",style:{height:"100%"},children:[o.jsxs(p.Splitter.Panel,{defaultSize:"70%",min:"70%",max:"75%",children:[o.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:8},children:o.jsxs(p.Flex,{gap:8,vertical:!0,style:{marginBottom:6},children:[o.jsx(Le,{title:"조직도"}),o.jsx(p.Row,{gutter:[16,16],children:o.jsx(p.Col,{span:24,children:o.jsx(p.Input,{placeholder:"부서명, 부서코드 검색",prefix:o.jsx(Z.SearchOutlined,{}),value:r,allowClear:!0,onChange:S=>n(S.target.value)})})})]})}),o.jsx("div",{style:{padding:16,overflowY:"hidden"},children:o.jsx(p.Spin,{spinning:u,children:o.jsx(p.Tree,{treeData:v,expandedKeys:i,selectedKeys:s,onSelect:b,onExpand:C,onDoubleClick:P,showLine:!0,showIcon:!1,selectable:!0,style:{overflow:"hidden"},titleRender:S=>{const O=S.meta;return o.jsxs("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"2px 4px",width:"100%",fontWeight:s.includes(S.key)?"bold":"normal"},children:[o.jsx("span",{children:O.deptNm}),o.jsx("span",{style:{fontSize:11,color:"#999",marginLeft:8},children:O.deptCd})]})}})})})]}),o.jsx(p.Splitter.Panel,{collapsible:!0,children:o.jsxs("div",{style:{padding:16,overflowY:"hidden",height:"100%"},children:[o.jsx("h3",{style:{margin:"0 0 12px 0",fontSize:16,fontWeight:700},children:"선택된 부서"}),g?o.jsxs("div",{style:{display:"flex",alignItems:"center",padding:14,border:"1px solid #e0e0e0",borderRadius:12,background:"#fafafa"},children:[o.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:o.jsx(Z.TeamOutlined,{})}),o.jsxs("div",{style:{flex:1,minWidth:0},children:[o.jsxs("div",{style:{fontSize:15,fontWeight:700,marginBottom:4},children:[g.deptNm," ",o.jsxs("span",{style:{color:"#8c8c8c",fontSize:12},children:["(",g.deptCd,")"]})]}),o.jsxs("div",{style:{fontSize:12,color:"#666",marginBottom:2},children:["상위부서: ",g.hrnkDeptNm||"-"]})]}),o.jsx(p.Button,{type:"text",onClick:E,icon:o.jsx(Z.RestOutlined,{style:{fontSize:24,color:"#FF6363"}})})]}):o.jsx("div",{style:{color:"#999",fontSize:14},children:"부서를 선택해주세요."})]})})]})})})})},AK=Object.freeze(Object.defineProperty({__proto__:null,default:dO},Symbol.toStringTag,{value:"Module"})),NK=e=>{if(e==null)return"";const t=String(e).trim();return!t||t.toUpperCase()==="NULL"?"":t.toUpperCase()},ep=(e,t=0)=>{const r=Number(e);return Number.isFinite(r)?r:t};function Ra(e){return{crprCd:e.crprCd||void 0,wkplCd:e.wkplCd||void 0,deptCd:NK(e.deptCd),deptNm:(e.deptNm??"").toString().trim(),hrnkDeptCd:e.hrnkDeptCd||null,hrnkDeptNm:e.hrnkDeptNm||null,deptGbCd:e.deptGbCd||null,deptLvl:ep(e.deptLvl,e.hrnkDeptCd?2:1),orgSortOrd:ep(e.orgSortOrd,0),orgOtptOrd:ep(e.orgOtptOrd,0),deptAbrv:e.deptAbrv||null,deptFullNm:e.deptFullNm||null,deptEnglNm:e.deptEnglNm||null,isLeaf:e.isLeaf||null}}function DK(e){const t=new Set,r=e.map(Ra).filter(l=>l.deptCd).filter(l=>(l.deptCd===l.hrnkDeptCd&&(l.hrnkDeptCd=""),!0)).filter(l=>t.has(l.deptCd)?!1:(t.add(l.deptCd),!0));r.sort((l,c)=>(l.deptLvl||0)-(c.deptLvl||0)||(l.orgSortOrd||0)-(c.orgSortOrd||0)||l.deptCd.localeCompare(c.deptCd));const n=new Map;for(const l of r)n.set(l.deptCd,{...l,children:[]});const i=[];for(const l of r){const c=n.get(l.deptCd),d=l.hrnkDeptCd;d&&n.has(d)?n.get(d).children.push(c):i.push(c)}const a=l=>{!l||l.length===0||(l.sort((c,d)=>c.deptCd.localeCompare(d.deptCd)),l.forEach(c=>a(c.children)))};a(i);const s=l=>{if(!l.children||l.children.length===0){delete l.children;return}l.children.forEach(s)};if(i.forEach(s),i.length>1){const l=i.find(c=>c.deptCd==="D00");if(l)return[l]}return i}function _K(e){const t=e.map(Ra),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 fO=({popup:e,onClose:t})=>{const[r,n]=y.useState(""),[i,a]=y.useState(""),[s,l]=y.useState([]),[c,d]=y.useState([]),[u,f]=y.useState([]),[h,m]=y.useState(!1),[g,x]=y.useState([]),[v,b]=y.useState(!1),C=y.useCallback(async R=>{try{b(!0);const T=await ae.callService("SCMUTIL00103",{...e?.popupParams,...R}),N=Array.isArray(T?.data)?T.data:Array.isArray(T?.deptList)?T.deptList:Array.isArray(T)?T:[],F=DK(N);x(F);const V=_K(N);l(V);const J=F[0]?.deptCd||Ra(N.find(U=>Ra(U).deptLvl===1)||{}).deptCd||Ra(N[0]||{}).deptCd||"";d(J?[J]:[])}catch{p.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{b(!1)}},[e?.popupParams]);y.useEffect(()=>{C()},[C]);const P=y.useCallback((R,T)=>{for(const N of R){if(N.deptCd===T)return N;if(N.children){const F=P(N.children,T);if(F)return F}}return null},[g]),E=y.useMemo(()=>u.map(R=>{const T=P(g,R);if(!T)return null;const{children:N,...F}=T;return F}).filter(Boolean),[u,g,P]),j=y.useMemo(()=>{const R=T=>T.map(N=>({title:N.deptNm,key:N.deptCd,meta:N,children:N.children?R(N.children):void 0,isLeaf:!N.children||N.children.length===0}));return R(g)},[g]),S=y.useMemo(()=>{const R=r.trim().toLowerCase();if(!R)return j;const T=N=>N.map(F=>{const V=F.meta,J=(V?.deptNm||"").toLowerCase().includes(R)||(V?.deptCd||"").toLowerCase().includes(R),U=F.children?T(F.children):void 0;return J||U&&U.length>0?{...F,children:U}:null}).filter(Boolean);return T(j)},[j,r]),O=y.useCallback(R=>{const T=[],N=F=>{for(const V of F)if(V.deptCd===R&&V.children){const J=U=>{for(const H of U)T.push(H.deptCd),H.children&&J(H.children)};J(V.children)}else V.children&&N(V.children)};return N(g),T},[g]),k=y.useCallback((R,T)=>{let N=Array.isArray(R)?R:R?.checked??[];if(h&&T?.node?.key){const F=T.node.key,V=O(F);if(T.checked){const J=new Set(N);for(const U of V)J.add(U);N=Array.from(J)}else{const J=new Set([F,...V]);N=N.filter(U=>!J.has(U))}}f(N)},[h,O]),D=y.useCallback(R=>{const T=R.map(String);if(d(T),T.length>0){const N=T[0],F=(J,U)=>{for(const H of J){if(H.deptCd===U)return H.deptNm;if(H.children){const Q=F(H.children,U);if(Q)return Q}}return null},V=F(g,N);V&&a(V)}},[g]),B=y.useCallback(R=>l(R.map(String)),[]),M=y.useCallback((R,T)=>{if(R.stopPropagation(),T.children&&T.children.length>0){const N=s.includes(T.key);l(F=>N?F.filter(V=>V!==T.key):[...F,T.key])}},[s]),I=y.useCallback(R=>{f(T=>T.filter(N=>N!==R))},[]),_=y.useCallback(()=>{f([])},[]),L={confirm:()=>{if(u.length===0){p.message.error("부서를 선택해주세요.");return}const T=Array.from(new Set(u)).map(F=>{const V=P(g,F);return V?{deptCd:V.deptCd,deptNm:V.deptNm,hrnkDeptCd:V.hrnkDeptCd,hrnkDeptNm:V.hrnkDeptNm}:null}).filter(Boolean),N=e?.config;N?.onSelect?N.onSelect(T):e?.config?.callback&&e.config.callback(JSON.stringify(T)),N?.onClose&&N.onClose(),e?.close?.()},cancel:()=>{const R=e?.config;R?.onCancel&&R.onCancel(),e?.close?.()}};return o.jsx(Yi,{popup:e,buttons:[{id:"confirm",label:"확인",onClick:()=>{L.confirm()}}],popupEvent:L,onClose:()=>{e?.close?.(),t?.()},children:o.jsx(ze,{children:o.jsx(Te,{border:!1,style:{paddingBottom:20},children:o.jsxs(p.Splitter,{layout:"vertical",style:{height:"100%"},children:[o.jsxs(p.Splitter.Panel,{defaultSize:"60%",min:"20%",max:"80%",children:[o.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:"8px"},children:o.jsxs(p.Flex,{gap:8,vertical:!0,style:{marginBottom:6},children:[o.jsx(Le,{title:"조직도"}),o.jsx("div",{style:{fontSize:14,color:"#666",padding:8,backgroundColor:"#f8f8f8",borderRadius:4},children:i}),o.jsxs(p.Row,{gutter:[16,16],children:[o.jsx(p.Col,{span:18,children:o.jsx(p.Input,{placeholder:"부서명, 부서장명, 부서코드 검색",prefix:o.jsx(Z.SearchOutlined,{}),value:r,allowClear:!0,onChange:R=>n(R.target.value)})}),o.jsx(p.Col,{span:6,style:{justifyContent:"center",display:"flex",alignItems:"center"},children:o.jsx(p.Checkbox,{checked:h,onChange:R=>m(R.target.checked),children:"하위까지 선택"})})]})]})}),o.jsx("div",{style:{padding:16,overflowY:"hidden"},children:o.jsx(p.Spin,{spinning:v,children:o.jsx(p.Tree,{className:"bwg-ogrn-tree",treeData:S,expandedKeys:s,selectedKeys:c,checkedKeys:u,checkable:!0,checkStrictly:!0,showLine:!0,showIcon:!1,selectable:!0,onSelect:D,onExpand:B,onCheck:k,onDoubleClick:M,style:{overflow:"hidden"},titleRender:R=>{const T=R.meta;return o.jsxs("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"2px 4px",width:"100%"},children:[o.jsx("span",{style:{fontWeight:c.includes(R.key)?"bold":"normal"},children:T.deptNm}),o.jsx("span",{style:{fontSize:11,color:"#999",marginLeft:8},children:T.deptCd})]})}})})})]}),o.jsx(p.Splitter.Panel,{collapsible:!0,children:o.jsxs("div",{style:{padding:16,overflowY:"hidden"},children:[o.jsxs("div",{style:{marginBottom:12,display:"flex",alignItems:"center",gap:8},children:[o.jsxs("h3",{style:{margin:0,fontSize:16,fontWeight:700},children:["선택된 부서 (",E.length,"개)"]}),E.length>0&&o.jsx("button",{onClick:_,style:{border:"none",background:"transparent",color:"#8c8c8c",cursor:"pointer",fontSize:12,padding:4},title:"전체 해제",children:"전체 해제"})]}),o.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"flex-start",minHeight:48},children:E.length===0?o.jsx("div",{style:{color:"#999",fontSize:14},children:"선택된 부서가 없습니다."}):E.map(R=>o.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:`${R.deptNm}`,children:[o.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:o.jsx(Z.TeamOutlined,{})}),o.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",gap:2,overflow:"hidden"},children:[o.jsx("span",{style:{fontSize:13,fontWeight:600,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:180},children:R.deptNm}),o.jsx("span",{style:{fontSize:11,color:"#8c8c8c",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:180},children:R.deptCd})]}),o.jsx("button",{onClick:()=>I(R.deptCd),style:{border:"none",background:"transparent",color:"#8c8c8c",cursor:"pointer",padding:2,lineHeight:0},"aria-label":`${R.deptNm} 선택 해제`,title:"선택 해제",children:"×"})]},R.deptCd))})]})})]})})})})},BK=Object.freeze(Object.defineProperty({__proto__:null,default:fO},Symbol.toStringTag,{value:"Module"})),pO=({popup:e,onClose:t})=>{const[r,n]=y.useState(""),[i,a]=y.useState(""),[s,l]=y.useState([]),[c,d]=y.useState([]),[u,f]=y.useState(null),[h,m]=y.useState([]),[g,x]=y.useState(!1),v=y.useCallback(async()=>{try{x(!0);const M=await ae.callService("SCMUTIL00105",{...e?.popupParams});console.log("📊 조직도 API 응답:",M);const I=Array.isArray(M?.data)?M.data:Array.isArray(M?.orgnList)?M.orgnList:Array.isArray(M)?M:[];if(I.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const _=b(I);console.log("🌳 구성된 조직도 트리:",_),m(_);const L=I.filter(R=>R.deptLvl<=2).map(R=>R.deptCd);if(l(L),_.length>0){const R=_[0];d([R.deptCd]),a(R.deptNm)}console.log("✅ 조직도 데이터 로딩 완료")}catch(M){console.error("❌ 조직도 데이터 로딩 실패:",M),p.message.error("조직도 데이터를 불러오는 중 오류가 발생했습니다.")}finally{x(!1)}},[e?.popupParams]),b=y.useCallback(M=>{const I=[...M].sort((T,N)=>T.deptLvl-N.deptLvl||T.orgSortOrd-N.orgSortOrd||T.deptCd.localeCompare(N.deptCd)),_=new Map;for(const T of I)_.set(T.deptCd,{...T,children:[]});const L=[];for(const T of I){const N=_.get(T.deptCd),F=T.hrnkDeptCd;F&&_.has(F)?_.get(F).children.push(N):L.push(N)}const R=T=>{if(!T.children||T.children.length===0){delete T.children;return}T.children.forEach(R)};return L.forEach(R),L},[]);y.useEffect(()=>{v()},[v]);const C=y.useMemo(()=>{const M=L=>{let R=[];return L.forEach(T=>{T.employees&&(R=R.concat(T.employees)),T.children&&(R=R.concat(M(T.children)))}),R},I=M(h),_=I.filter((L,R,T)=>R===T.findIndex(N=>N.empNo===L.empNo));return console.log(`👥 전체 사원 수: ${I.length}, 중복 제거 후: ${_.length}`),_},[h]),P=y.useMemo(()=>{const M=I=>I.map(_=>({title:_.deptNm,key:_.deptCd,children:_.children?M(_.children):void 0,isLeaf:!_.children||_.children.length===0}));return M(h)},[h]),E=y.useMemo(()=>{if(!r.trim())return P;const M=I=>I.map(_=>{const L=_.title.toLowerCase().includes(r.toLowerCase()),R=_.children?M(_.children):void 0;return L||R&&R.length>0?{..._,children:R}:null}).filter(Boolean);return M(P)},[P,r]),j=y.useMemo(()=>{if(!r.trim()){const M=T=>{let N=[];return T.forEach(F=>{F.employees&&(N=N.concat(F.employees)),F.children&&(N=N.concat(M(F.children)))}),N},I=(T,N)=>{for(const F of T){if(F.deptCd===N){let V=[...F.employees||[]];return F.children&&(V=V.concat(M(F.children))),V}if(F.children){const V=I(F.children,N);if(V.length>0)return V}}return[]},_=c[0];if(!_)return[];const L=I(h,_),R=L.filter((T,N,F)=>N===F.findIndex(V=>V.empNo===T.empNo));return console.log(`🔍 선택된 부서: ${_}, 반환된 사원 수: ${L.length}, 중복 제거 후: ${R.length}`),R}return C.filter(M=>M.empNm.toLowerCase().includes(r.toLowerCase())||M.empNo.toLowerCase().includes(r.toLowerCase())||M.deptNm.toLowerCase().includes(r.toLowerCase())||M.jbpsCd.includes(r)||M.jbgdCd.includes(r)||M.emplyStCd.includes(r))},[r,c,C,h]),S=y.useCallback(M=>{f(M)},[]),O=y.useCallback(M=>{const I=M.map(String);if(console.log(`🌳 트리 선택: ${I.join(", ")}`),d(I),I.length>0){const _=I[0],L=(T,N)=>{for(const F of T){if(F.deptCd===N)return F.deptNm;if(F.children){const V=L(F.children,N);if(V)return V}}return null},R=L(h,_);R&&a(R)}},[h]),k=y.useCallback(M=>{l(M.map(String))},[]),D=y.useCallback((M,I)=>{if(M.stopPropagation(),I.children&&I.children.length>0){const _=s.includes(I.key);l(_?L=>L.filter(R=>R!==I.key):L=>[...L,I.key])}},[s]),B={confirm:()=>{if(u){const M=e?.config;M?.onSelect?M.onSelect(u):e?.popupParams?.onSelect?e.popupParams.onSelect(u):e?.config?.callback&&e.config.callback(JSON.stringify(u,null,2)),M?.onClose&&M.onClose(),e?.close?.()}else p.message.error("사원을 선택해주세요.")},cancel:()=>{const M=e?.config;M?.onCancel&&M.onCancel(),e?.close?.()}};return o.jsx(Yi,{popup:e,buttons:[{id:"confirm",label:"확인",onClick:()=>{B.confirm()}}],popupEvent:B,onClose:()=>{e?.close?.(),t?.()},children:o.jsx(ze,{children:o.jsx(Te,{border:!1,style:{paddingBottom:20},children:o.jsxs(p.Splitter,{layout:"vertical",style:{height:"100%"},children:[o.jsxs(p.Splitter.Panel,{defaultSize:"60%",min:"20%",max:"80%",children:[o.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:"8px"},children:o.jsxs(p.Flex,{gap:8,vertical:!0,style:{marginBottom:"6px"},children:[o.jsx(Le,{title:"조직도"}),o.jsx(p.Input,{placeholder:"이름, 소속, 전화번호 검색",prefix:o.jsx(Z.SearchOutlined,{}),value:r,allowClear:!0,onChange:M=>n(M.target.value)})]})}),o.jsx("div",{style:{padding:"16px",overflowY:"hidden"},children:o.jsx(p.Spin,{spinning:g,children:o.jsx(p.Tree,{className:"bwg-ogrn-tree",treeData:E,expandedKeys:s,selectedKeys:c,onSelect:O,onExpand:k,onDoubleClick:D,showLine:!0,showIcon:!1,style:{overflow:"hidden"},titleRender:M=>o.jsx("span",{style:{padding:"4px 8px",borderRadius:"4px",fontWeight:c.includes(M.key)?"bold":"normal",display:"inline-block",width:"100%"},children:M.title})})})})]}),o.jsx(p.Splitter.Panel,{collapsible:!0,children:o.jsxs("div",{style:{padding:"16px",overflowY:"hidden"},children:[o.jsx("div",{style:{marginBottom:"16px"},children:o.jsx("h3",{style:{margin:"0 0 8px 0",fontSize:"16px",fontWeight:"bold"},children:r?"검색 결과":i})}),o.jsxs("div",{style:{overflow:"hidden",height:"100%"},children:[j.map(M=>o.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"12px",border:"1px solid #e0e0e0",borderRadius:"8px",marginBottom:"8px",cursor:"pointer",backgroundColor:u&&u.crprCd===M.crprCd&&u.wkplCd===M.wkplCd&&u.empNo===M.empNo&&u.jbpsCd===M.jbpsCd&&u.jbgdCd===M.jbgdCd&&u.empMarkOrd===M.empMarkOrd?"#efebff":"white"},onClick:()=>S(M),children:[o.jsx("div",{style:{marginRight:"12px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px"},onClick:I=>{I.stopPropagation(),f(M)},children:u&&u.crprCd===M.crprCd&&u.wkplCd===M.wkplCd&&u.empNo===M.empNo&&u.jbpsCd===M.jbpsCd&&u.jbgdCd===M.jbgdCd&&u.empMarkOrd===M.empMarkOrd?o.jsx(Z.CheckCircleFilled,{style:{fontSize:"20px",color:"#6449fc"}}):o.jsx(Z.CheckCircleOutlined,{style:{fontSize:"20px",color:"#d9d9d9"}})}),o.jsx("div",{style:{width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",fontSize:"18px",color:"#666"},children:o.jsx(Z.UserOutlined,{})}),o.jsxs("div",{style:{flex:1},children:[o.jsxs("div",{style:{fontSize:"14px",fontWeight:"bold",marginBottom:"4px"},children:[M.empNm,o.jsxs("span",{style:{fontSize:"12px",fontWeight:"normal",color:"#666",marginLeft:"8px"},children:["(",M.empNo,")"]})]}),o.jsxs("div",{style:{fontSize:"12px",color:"#666",marginBottom:"2px"},children:[M.deptNm," (",M.deptCd,") | 직급:"," ",M.jbpsCd," | 등급: ",M.jbgdCd]})]})]},`emp-${M.crprCd}-${M.wkplCd}-${M.empNo}-${M.jbpsCd}-${M.jbgdCd}-${M.empMarkOrd}`)),j.length===0&&o.jsx("div",{style:{textAlign:"center",padding:"40px",color:"#999",fontSize:"14px"},children:r?"검색 결과가 없습니다.":"해당 부서에 직원이 없습니다."})]})]})})]})})})})},$K=Object.freeze(Object.defineProperty({__proto__:null,default:pO},Symbol.toStringTag,{value:"Module"})),hO=({popup:e,onClose:t})=>{const[r,n]=y.useState(""),[i,a]=y.useState(""),[s,l]=y.useState([]),[c,d]=y.useState([]),[u,f]=y.useState([]),[h,m]=y.useState(!1),[g,x]=y.useState({}),v=y.useCallback(async()=>{try{m(!0);const R=await ae.callService("SCMUTIL00105",{...e?.popupParams});console.log("📊 조직도 API 응답:",R);const T=Array.isArray(R?.data)?R.data:Array.isArray(R?.orgnList)?R.orgnList:Array.isArray(R)?R:[];if(T.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const N=b(T);console.log("🌳 구성된 조직도 트리:",N),f(N);const F=T.filter(V=>V.deptLvl<=2).map(V=>V.deptCd);if(l(F),N.length>0){const V=N[0];d([V.deptCd]),a(V.deptNm)}console.log("✅ 조직도 데이터 로딩 완료")}catch(R){console.error("❌ 조직도 데이터 로딩 실패:",R),p.message.error("조직도 데이터를 불러오는 중 오류가 발생했습니다.")}finally{m(!1)}},[e?.popupParams]),b=y.useCallback(R=>{const T=[...R].sort((J,U)=>J.deptLvl-U.deptLvl||J.orgSortOrd-U.orgSortOrd||J.deptCd.localeCompare(U.deptCd)),N=new Map;for(const J of T)N.set(J.deptCd,{...J,children:[]});const F=[];for(const J of T){const U=N.get(J.deptCd),H=J.hrnkDeptCd;H&&N.has(H)?N.get(H).children.push(U):F.push(U)}const V=J=>{if(!J.children||J.children.length===0){delete J.children;return}J.children.forEach(V)};return F.forEach(V),F},[]);y.useEffect(()=>{v()},[v]);const C=y.useMemo(()=>{const R=F=>{let V=[];return F.forEach(J=>{J.employees&&(V=V.concat(J.employees)),J.children&&(V=V.concat(R(J.children)))}),V},T=R(u),N=T.filter((F,V,J)=>V===J.findIndex(U=>U.empNo===F.empNo));return console.log(`👥 전체 사원 수: ${T.length}, 중복 제거 후: ${N.length}`),N},[u]),P=y.useMemo(()=>{const R=T=>T.map(N=>({title:N.deptNm,key:N.deptCd,children:N.children?R(N.children):void 0,isLeaf:!N.children||N.children.length===0}));return R(u)},[u]),E=y.useMemo(()=>{if(!r.trim())return P;const R=T=>T.map(N=>{const F=N.title.toLowerCase().includes(r.toLowerCase()),V=N.children?R(N.children):void 0;return F||V&&V.length>0?{...N,children:V}:null}).filter(Boolean);return R(P)},[P,r]),j=y.useMemo(()=>{if(!r.trim()){const R=J=>{let U=[];return J.forEach(H=>{H.employees&&(U=U.concat(H.employees)),H.children&&(U=U.concat(R(H.children)))}),U},T=(J,U)=>{for(const H of J){if(H.deptCd===U){let Q=[...H.employees||[]];return H.children&&(Q=Q.concat(R(H.children))),Q}if(H.children){const Q=T(H.children,U);if(Q.length>0)return Q}}return[]},N=c[0];if(!N)return[];const F=T(u,N),V=F.filter((J,U,H)=>U===H.findIndex(Q=>Q.empNo===J.empNo));return console.log(`🔍 선택된 부서: ${N}, 반환된 사원 수: ${F.length}, 중복 제거 후: ${V.length}`),V}return C.filter(R=>R.empNm.toLowerCase().includes(r.toLowerCase())||R.empNo.toLowerCase().includes(r.toLowerCase())||R.deptNm.toLowerCase().includes(r.toLowerCase())||R.jbpsCd.includes(r)||R.jbgdCd.includes(r)||R.emplyStCd.includes(r))},[r,c,C,u]),S=y.useCallback(R=>{x(T=>{const N={...T};return N[R.empNo]?delete N[R.empNo]:N[R.empNo]=R,N})},[]),O=y.useCallback(R=>{x(T=>{const N={...T};return delete N[R],N})},[]),k=y.useCallback(()=>x({}),[]),D=y.useCallback(()=>{x(R=>{const T={...R};for(const N of j)T[N.empNo]=N;return T})},[j]),B=y.useCallback(()=>{x(R=>{const T={...R};for(const N of j)delete T[N.empNo];return T})},[j]),M=y.useCallback(R=>{const T=R.map(String);if(console.log(`🌳 트리 선택: ${T.join(", ")}`),d(T),T.length>0){const N=T[0],F=(J,U)=>{for(const H of J){if(H.deptCd===U)return H.deptNm;if(H.children){const Q=F(H.children,U);if(Q)return Q}}return null},V=F(u,N);V&&a(V)}},[u]),I=y.useCallback(R=>{l(R.map(String))},[]),_=y.useCallback((R,T)=>{if(R.stopPropagation(),!T.children||!T.children.length)return;const N=s.includes(T.key);l(F=>N?F.filter(V=>V!==T.key):[...F,T.key])},[s]),L={confirm:()=>{const R=Object.values(g).map(N=>({crprCd:N.crprCd,wkplCd:N.wkplCd,empNo:N.empNo,deptCd:N.deptCd,deptNm:N.deptNm,empNm:N.empNm,jbpsCd:N.jbpsCd,jbgdCd:N.jbgdCd,empMarkOrd:N.empMarkOrd,emplyStCd:N.emplyStCd}));if(R.length===0){p.message.error("직원을 선택해주세요.");return}const T=e?.config;T?.onSelect?T.onSelect(R):e?.config?.callback&&e.config.callback(JSON.stringify(R)),T?.onClose&&T.onClose(),e?.close?.()},cancel:()=>{const R=e?.config;R?.onCancel&&R.onCancel(),e?.close?.()}};return o.jsx(Yi,{popup:e,buttons:[{id:"confirm",label:"확인",onClick:()=>{L.confirm()}}],popupEvent:L,onClose:()=>{e?.close?.(),t?.()},children:o.jsx(ze,{children:o.jsx(Te,{border:!1,style:{paddingBottom:20},children:o.jsxs(p.Splitter,{style:{height:"100%"},children:[o.jsx(p.Splitter.Panel,{defaultSize:"50%",min:"50%",max:"70%",children:o.jsxs(p.Splitter,{layout:"vertical",style:{height:"100%"},children:[o.jsxs(p.Splitter.Panel,{defaultSize:"60%",min:"35%",max:"75%",children:[o.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:8},children:o.jsxs(p.Flex,{gap:8,vertical:!0,style:{marginBottom:6},children:[o.jsx(Le,{title:"조직도"}),o.jsx(p.Input,{placeholder:"이름, 소속, 직급/직위, 사번 검색",prefix:o.jsx(Z.SearchOutlined,{}),value:r,allowClear:!0,onChange:R=>n(R.target.value)})]})}),o.jsx("div",{style:{padding:16,overflowY:"hidden"},children:o.jsx(p.Spin,{spinning:h,children:o.jsx(p.Tree,{className:"bwg-ogrn-tree",treeData:E,expandedKeys:s,selectedKeys:c,onSelect:M,onExpand:I,onDoubleClick:_,showLine:!0,showIcon:!1,style:{overflow:"hidden"},titleRender:R=>o.jsx("span",{style:{padding:"4px 8px",borderRadius:4,fontWeight:c.includes(R.key)?"bold":"normal",display:"inline-block",width:"100%"},children:R.title})})})})]}),o.jsx(p.Splitter.Panel,{children:o.jsxs("div",{style:{padding:16,height:"100%",display:"flex",flexDirection:"column"},children:[o.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[o.jsx("h3",{style:{margin:0,fontSize:16,fontWeight:700},children:r?"검색 결과":`${i} 사용자`}),o.jsxs("div",{style:{display:"flex",gap:8},children:[o.jsx(p.Button,{size:"small",onClick:D,children:"현재 목록 전체 선택"}),o.jsx(p.Button,{size:"small",onClick:B,children:"현재 목록 전체 해제"})]})]}),o.jsx(p.Divider,{style:{margin:"8px 0"}}),o.jsxs("div",{style:{overflowY:"auto"},children:[j.map(R=>{const T=!!g[R.empNo];return o.jsxs("div",{style:{display:"flex",alignItems:"center",padding:10,border:"1px solid #e0e0e0",borderRadius:8,marginBottom:8,cursor:"pointer",background:T?"#efebff":"#fff"},onClick:()=>S(R),children:[o.jsx("div",{style:{marginRight:12,width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},onClick:N=>{N.stopPropagation(),S(R)},children:T?o.jsx(Z.CheckCircleFilled,{style:{fontSize:20,color:"#6449fc"}}):o.jsx(Z.CheckCircleOutlined,{style:{fontSize:20,color:"#d9d9d9"}})}),o.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:o.jsx(Z.UserOutlined,{})}),o.jsxs("div",{style:{flex:1,minWidth:0},children:[o.jsxs("div",{style:{fontSize:14,fontWeight:600,marginBottom:2},children:[R.empNm,o.jsxs("span",{style:{fontSize:12,fontWeight:"normal",color:"#666",marginLeft:"8px"},children:["(",R.empNo,")"]})]}),o.jsxs("div",{style:{fontSize:12,color:"#666"},children:[R.deptNm," (",R.deptCd,") | 직급: ",R.jbpsCd," ","| 등급: ",R.jbgdCd]})]})]},`emp-${R.crprCd}-${R.wkplCd}-${R.empNo}-${R.jbpsCd}-${R.jbgdCd}-${R.empMarkOrd}`)}),j.length===0&&o.jsx("div",{style:{textAlign:"center",padding:32,color:"#999",fontSize:14},children:r?"검색 결과가 없습니다.":"해당 부서에 사용자 없음"})]})]})})]})}),o.jsx(p.Splitter.Panel,{collapsible:!0,children:o.jsxs("div",{style:{padding:16,height:"100%",display:"flex",flexDirection:"column"},children:[o.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[o.jsx(Le,{title:`선택된 사용자 (${Object.keys(g).length})`}),o.jsx(p.Button,{type:"link",size:"small",onClick:k,children:"전체 해제"})]}),o.jsx(p.Divider,{style:{margin:"8px 0"}}),o.jsxs("div",{style:{overflowY:"auto",flex:1},children:[Object.values(g).map(R=>o.jsxs("div",{style:{display:"flex",alignItems:"center",padding:10,border:"1px solid #e0e0e0",borderRadius:8,marginBottom:8,background:"#fafafa"},children:[o.jsx("div",{style:{width:32,height:32,borderRadius:"50%",backgroundColor:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",marginRight:10,color:"#666"},children:o.jsx(Z.UserOutlined,{})}),o.jsxs("div",{style:{flex:1,minWidth:0},children:[o.jsxs("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:[R.empNm,o.jsxs("span",{style:{fontSize:11,fontWeight:"normal",color:"#666",marginLeft:"6px"},children:["(",R.empNo,")"]})]}),o.jsxs("div",{style:{fontSize:12,color:"#666"},children:[R.deptNm," (",R.deptCd,") | 직급: ",R.jbpsCd," | 등급: ",R.jbgdCd]})]}),o.jsx(p.Button,{type:"text",shape:"circle",icon:o.jsx(Z.CloseOutlined,{}),onClick:()=>O(R.empNo)})]},`selected-${R.crprCd}-${R.wkplCd}-${R.empNo}-${R.jbpsCd}-${R.jbgdCd}-${R.empMarkOrd}`)),Object.keys(g).length===0&&o.jsx("div",{style:{color:"#999",fontSize:14,textAlign:"center",padding:24},children:"선택된 사용자가 없습니다."})]})]})})]})})})})},LK=Object.freeze(Object.defineProperty({__proto__:null,default:hO},Symbol.toStringTag,{value:"Module"})),{Text:tw,Title:zK}=p.Typography,FK=({popup:e})=>{const[t,r]=y.useState(jl()),[n,i]=y.useState(jl()),[a,s]=y.useState([]),[l,c]=y.useState([]),[d,u]=y.useState("month");mt.useCodeStore();const{token:f}=p.theme.useToken(),h=(b,C,P=d)=>{const E=C.filter(j=>{if(P==="year"){const S=j.stndYmd.substring(0,6),O=b.format("YYYYMM");return S===O}else{const S=b.format("YYYYMMDD");return j.stndYmd===S}});s(E)},m=b=>{r(b),h(b,l,d)},g=(b,C)=>{i(b),u(C),v.SCMHLDY00101(C,b)};y.useEffect(()=>{v.SCMHLDY00101()},[]);const x=b=>{const C=l.filter(P=>{if(d==="year"){const E=P.stndYmd.substring(0,6),j=b.format("YYYYMM");return E===j}else{const E=b.format("YYYYMMDD");return P.stndYmd===E}});return C.length>0?o.jsx("div",{style:{position:"absolute",bottom:"1px",left:"1px",right:"1px",height:"3px",display:"flex",gap:"1px"},children:C.map((P,E)=>o.jsx("div",{style:{flex:1,height:"3px",background:P.hldyYn==="Y"?f.colorError:f.colorSuccess,borderRadius:"1px"}},E))}):null},v={SCMHLDY00101:async(b=d,C=t)=>{try{let P;b==="year"?P=C.format("YYYY"):P=C.format("YYYYMM");const E=await ae.callService("SCMHLDY00101",{crprCd:ae.getUserInfo()?.crprCd||"",sysCd:__SYS_CD__,stndYmd:P});c(E.sub||[]),h(C,E.sub||[],b)}catch(P){console.error("휴일 데이터 로드 실패:",P),p.message.error("휴일 데이터를 불러오는데 실패했습니다.")}}};return o.jsx(Yi,{popup:e,children:o.jsx(ze,{children:o.jsx(Te,{children:o.jsxs(p.Row,{gutter:f.padding,style:{marginTop:f.padding},children:[o.jsx(p.Col,{span:12,children:o.jsx(p.Card,{title:o.jsxs(p.Space,{children:[o.jsx(Z.CalendarOutlined,{}),o.jsx("span",{children:"휴일 달력"})]}),style:{height:"500px"},children:o.jsx(p.Calendar,{fullscreen:!1,value:t,onSelect:m,onPanelChange:g,cellRender:x,style:{height:"400px"},mode:d})})}),o.jsx(p.Col,{span:12,children:o.jsx(p.Card,{title:o.jsxs(p.Space,{children:[o.jsx(Z.CalendarOutlined,{}),o.jsx("span",{children:d==="year"?`${t.format("YYYY년 MM월")} 휴일 목록`:`${t.format("YYYY년 MM월 DD일")} 휴일 목록`})]}),style:{height:"500px"},children:o.jsx("div",{style:{height:"400px",overflowY:"auto"},children:a.length>0?o.jsx(p.Space,{direction:"vertical",style:{width:"100%"},size:"small",children:a.map((b,C)=>o.jsx(p.Card,{size:"small",style:{border:`${f.lineWidth}px solid ${f.colorBorder}`,borderRadius:f.borderRadiusLG},children:o.jsxs("div",{style:{padding:`${f.paddingXS}px 0`},children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:f.paddingXS},children:[o.jsx(zK,{level:5,style:{margin:0,color:f.colorPrimary},children:b.hldyDscr||"휴일명 미입력"}),b.hldyYn==="Y"&&o.jsx(p.Tag,{color:f.colorSuccess,children:"휴일"})]}),o.jsx("div",{style:{marginBottom:f.paddingXXS},children:o.jsx(tw,{type:"secondary",style:{fontSize:f.fontSizeSM},children:jl(b.stndYmd).format("YYYY년 MM월 DD일 dddd")})}),b.hldyDscr&&o.jsx("div",{children:o.jsx(tw,{style:{fontSize:f.fontSizeSM+1},children:b.hldyDscr})})]})},C))}):o.jsx(p.Empty,{description:"선택된 날짜에 등록된 휴일이 없습니다.",style:{marginTop:"100px"}})})})})]})})})})},mO=({popup:e})=>{const t=y.useRef(null),[r,n]=y.useState(""),{menuList:i}=mt.useMenuModelStore(),[a,s]=y.useState(void 0),[l,c]=y.useState(null),d=y.useCallback(C=>{const P=[],E=j=>{j.forEach(S=>{S.children&&S.children.length>0&&(P.push(S.menuId),E(S.children))})};return E(C),P},[]),[u,f]=y.useState(()=>d([])),h=y.useCallback((C,P,E)=>{const j=(P||"").trim().toLowerCase(),S=k=>{const D=!j||k.menuNm?.toLowerCase().includes(j)||k.menuId?.toLowerCase().includes(j),B=!E||k.sysCd===E;return D&&B},O=k=>k.map(D=>{const B=D.children?O(D.children):[];return S(D)||B.length>0?{...D,children:B}:null}).filter(Boolean);return O(C||[])},[]),m=y.useMemo(()=>h(i,r,a),[i,r,a,h]),g=y.useCallback(C=>C.map(P=>({key:P.menuId,label:o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(!P.children||P.children.length===0)&&o.jsx(p.Tag,{color:"blue",style:{margin:0},children:P.menuId}),o.jsx("span",{children:P.menuNm})]}),children:P.children&&P.children.length>0?g(P.children):void 0,icon:x(P.iconCd,P.menuGbCd)})),[]),x=(C,P)=>{if(C){const E=Ri[C];if(E)return o.jsx(E,{})}if(P)switch(P){case"CMPRGRM":return o.jsx(Ri.HomeOutlined,{});case"CMPRGRS":return null;case"CMPRGRP":return null;default:return null}return null},v=y.useCallback((C,P)=>{for(const E of C){if(E.menuId===P)return E;if(E.children&&E.children.length>0){const j=v(E.children,P);if(j)return j}}return null},[]);y.useEffect(()=>{r&&f(d(m))},[r,m,d]);const b=[{id:"confirm",label:"확인",onClick:()=>{if(!l)return;const C=v(m,l);C&&(e?.config?.callback?.({menuId:C.menuId,menuNm:C.menuNm}),e?.close?.())}}];return o.jsx(Yi,{popup:e,buttons:b,children:o.jsx(ze,{children:o.jsxs(Te,{border:!1,children:[o.jsx(_o,{ref:t,reqRows:o.jsx(o.Fragment,{children:o.jsxs(St,{gutter:[12,8],style:{marginBottom:"8px"},children:[o.jsx($e,{span:8,children:o.jsx($.BwgSelect,{itemProps:{name:"sysCd",label:"시스템 코드"},selectProps:{options:[{label:"공통",value:"CM"},{label:"K-ERP",value:"KE"},{label:"K-HR",value:"HR"},{label:"K-업무지원",value:"KS"}],onChange:C=>s(C),placeholder:"전체"}})}),o.jsx($e,{span:8,children:o.jsx(p.Input,{placeholder:"메뉴 이름, ID 검색",prefix:o.jsx(Z.SearchOutlined,{}),value:r,allowClear:!0,onChange:C=>{n(C.target.value)}})})]})})}),o.jsx(p.Menu,{mode:"inline",theme:"light",items:g(m),openKeys:u,onOpenChange:f,onClick:({key:C})=>{c(String(C))},style:{overflow:"auto"}})]})})})},VK=Object.freeze(Object.defineProperty({__proto__:null,default:mO},Symbol.toStringTag,{value:"Module"}));exports.ButtonAccessController=tp;exports.BwgButtonGroup=rp;exports.BwgCmptArea=CO;exports.BwgCol=$e;exports.BwgComponentGuideM01=WN;exports.BwgConfigProvider=lw;exports.BwgDetail=NO;exports.BwgDeveloperGuideM01=qN;exports.BwgDrawer=dn;exports.BwgEditor=Dh;exports.BwgGrid=Fe;exports.BwgInfoArea=fn;exports.BwgPagination=os;exports.BwgPopup=Yi;exports.BwgReactGuideM01=QN;exports.BwgRow=St;exports.BwgSpace=_c;exports.BwgTable=GO;exports.BwgTabs=lr;exports.BwgTitleBox=Le;exports.BwgView=Vt;exports.CMAdminBoardM01=OK;exports.CMAuthMstrM01=LN;exports.CMBoardCommentS01=Yg;exports.CMFileMstrM01=JN;exports.CMHldyCfg=sD;exports.CMHldyMstrP01=FK;exports.CMMenuMstrM01=tD;exports.CMMenuPrgrSelectModal=yS;exports.CMMenuPrntSelectModal=xS;exports.CMMyBoardM01=TK;exports.CMPopuMstrM01=rD;exports.CMPrgrMstrM01=aD;exports.CMPrgrMstrP02=mO;exports.CMPrgrMstrP02$1=VK;exports.CMRoleMstrM01=zN;exports.CMSystCfgM01=lD;exports.CMSystCodeM01=cD;exports.CMUserMstrM01=SK;exports.ContentBox=Te;exports.ContentLayOut=ze;exports.GlobalConfigProvider=AN;exports.QuickServiceToggle=BN;exports.SSOHandler=$N;exports.SearchBox=_o;exports.SearchDepartmentP01=dO;exports.SearchDepartmentP01$1=AK;exports.SearchDepartmentP02=fO;exports.SearchDepartmentP02$1=BK;exports.SearchOrganizationP01=pO;exports.SearchOrganizationP01$1=$K;exports.SearchOrganizationP02=hO;exports.SearchOrganizationP02$1=LK;exports.SystemCodeManage=CK;exports.commonjsGlobal=bO;exports.createBwgGridRenderer=Nr;exports.getAugmentedNamespace=wO;exports.getDefaultExportFromCjs=jr;