@bwg-ui/core 1.1.20 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{BwgDownload-CF_Zo2oU.js → BwgDownload-COsACbpJ.js} +3 -3
- package/dist/chunks/{BwgDownload-CF_Zo2oU.js.map → BwgDownload-COsACbpJ.js.map} +1 -1
- package/dist/chunks/{BwgDownload-DvCaLWCL.cjs → BwgDownload-i6w7ZD-i.cjs} +2 -2
- package/dist/chunks/{BwgDownload-DvCaLWCL.cjs.map → BwgDownload-i6w7ZD-i.cjs.map} +1 -1
- package/dist/chunks/{SSOHandler-Cr04mtMm.js → SSOHandler-B15Ssd5g.js} +627 -603
- package/dist/chunks/{SSOHandler-Cr04mtMm.js.map → SSOHandler-B15Ssd5g.js.map} +1 -1
- package/dist/chunks/{SSOHandler-C7echUZs.cjs → SSOHandler-oJlon6rn.cjs} +26 -26
- package/dist/chunks/{SSOHandler-C7echUZs.cjs.map → SSOHandler-oJlon6rn.cjs.map} +1 -1
- package/dist/chunks/{SearchBoxContext-C2ECWG9l.js → SearchBoxContext-BxJN-x3-.js} +2 -2
- package/dist/chunks/{SearchBoxContext-C2ECWG9l.js.map → SearchBoxContext-BxJN-x3-.js.map} +1 -1
- package/dist/chunks/{SearchBoxContext-aMXi2JmO.cjs → SearchBoxContext-DnQGaRgo.cjs} +2 -2
- package/dist/chunks/{SearchBoxContext-aMXi2JmO.cjs.map → SearchBoxContext-DnQGaRgo.cjs.map} +1 -1
- package/dist/chunks/{ViewContainer-DI7hvDi-.cjs → ViewContainer-HSyLfryI.cjs} +2 -2
- package/dist/chunks/{ViewContainer-DI7hvDi-.cjs.map → ViewContainer-HSyLfryI.cjs.map} +1 -1
- package/dist/chunks/{ViewContainer-DxhY26m3.js → ViewContainer-x2yzKkIG.js} +2 -2
- package/dist/chunks/{ViewContainer-DxhY26m3.js.map → ViewContainer-x2yzKkIG.js.map} +1 -1
- package/dist/chunks/apiUtils-CudW_FKE.cjs +3 -0
- package/dist/chunks/apiUtils-CudW_FKE.cjs.map +1 -0
- package/dist/chunks/apiUtils-DfPv_gmI.js +2064 -0
- package/dist/chunks/apiUtils-DfPv_gmI.js.map +1 -0
- package/dist/chunks/{codeStore-kuUEfWSS.js → codeStore-DefmZVgs.js} +2 -2
- package/dist/chunks/{codeStore-kuUEfWSS.js.map → codeStore-DefmZVgs.js.map} +1 -1
- package/dist/chunks/{codeStore-WWRT65Zk.cjs → codeStore-pQbDqWkZ.cjs} +2 -2
- package/dist/chunks/{codeStore-WWRT65Zk.cjs.map → codeStore-pQbDqWkZ.cjs.map} +1 -1
- package/dist/chunks/{favoriteStore-DdGoghEn.cjs → favoriteStore-BXBziAgB.cjs} +2 -2
- package/dist/chunks/{favoriteStore-DdGoghEn.cjs.map → favoriteStore-BXBziAgB.cjs.map} +1 -1
- package/dist/chunks/{favoriteStore-D40XfOmq.js → favoriteStore-DAPC01iF.js} +2 -2
- package/dist/chunks/{favoriteStore-D40XfOmq.js.map → favoriteStore-DAPC01iF.js.map} +1 -1
- package/dist/chunks/{popupStore-DKpp0bmC.cjs → popupStore-BV632k5p.cjs} +2 -2
- package/dist/chunks/{popupStore-DKpp0bmC.cjs.map → popupStore-BV632k5p.cjs.map} +1 -1
- package/dist/chunks/{popupStore-axohgTV-.js → popupStore-CcQg9AvK.js} +2 -2
- package/dist/chunks/{popupStore-axohgTV-.js.map → popupStore-CcQg9AvK.js.map} +1 -1
- package/dist/chunks/{usePopup-Dftb7Bbl.js → usePopup-Cw5xsOaH.js} +3 -3
- package/dist/chunks/{usePopup-Dftb7Bbl.js.map → usePopup-Cw5xsOaH.js.map} +1 -1
- package/dist/chunks/{usePopup-DYnRe9Th.cjs → usePopup-DoVGuobp.cjs} +2 -2
- package/dist/chunks/{usePopup-DYnRe9Th.cjs.map → usePopup-DoVGuobp.cjs.map} +1 -1
- package/dist/components/common/BwgView.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +9 -9
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +2 -2
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.js +6 -6
- package/dist/utils/commonUtils.d.ts +0 -6
- package/dist/utils/commonUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/apiUtils-BRaXRbjE.js +0 -1428
- package/dist/chunks/apiUtils-BRaXRbjE.js.map +0 -1
- package/dist/chunks/apiUtils-DL43X2ta.cjs +0 -3
- package/dist/chunks/apiUtils-DL43X2ta.cjs.map +0 -1
- package/dist/chunks/core-D7JhyoYH.cjs +0 -2
- package/dist/chunks/core-D7JhyoYH.cjs.map +0 -1
- package/dist/chunks/core-DLGhqegD.js +0 -514
- package/dist/chunks/core-DLGhqegD.js.map +0 -1
- package/dist/chunks/enc-base64-96WlVdPN.js +0 -102
- package/dist/chunks/enc-base64-96WlVdPN.js.map +0 -1
- package/dist/chunks/enc-base64-b9mIy966.cjs +0 -2
- package/dist/chunks/enc-base64-b9mIy966.cjs.map +0 -1
- package/dist/chunks/sha256-BMg1y0Py.js +0 -79
- package/dist/chunks/sha256-BMg1y0Py.js.map +0 -1
- package/dist/chunks/sha256-BxdSMFca.cjs +0 -2
- package/dist/chunks/sha256-BxdSMFca.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const P=require("./jsx-runtime-CeSfJrVB.cjs"),Ce=require("@ant-design/icons"),X=require("antd"),z=require("react"),Xi=require("./SearchBoxContext-aMXi2JmO.cjs"),Fe=require("./apiUtils-DL43X2ta.cjs"),eh=require("react-rnd"),$n=require("react-dom"),Nn=require("./favoriteStore-DdGoghEn.cjs"),qv=require("./LoadingOverlay-NX9Mo_6n.cjs"),Vv=require("dayjs"),Ct=require("realgrid"),gu=require("realgrid-react"),We=require("./BwgCheck-Dtzr-6rg.cjs"),zv=require("./AuthContext-CXng9fj0.cjs"),yu=require("react-router-dom");function th(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const In=th(Ce),M=th(z),Hv=({grpId:e,menuId:r,btnEvent:t,layout:i="horizontal",size:n="middle",style:o,className:a,onButtonClick:s})=>{const f=Xi.useServiceCodeValue("AUTH_BTNS"),{user:d}=Fe.useUserStore(),[c,l]=z.useState([]),[u,h]=z.useState(!0),[v,g]=z.useState(null),[p,y]=z.useState({}),m=async()=>{try{h(!0),g(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,r);const E=await Fe.callService(f,{userId:d?.userId,crprCd:d?.crprCd,grpId:e.toUpperCase(),menuId:r});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",E),E?.data&&Array.isArray(E.data)){const S=E.data.sort((w,_)=>w.btnSq-_.btnSq);l(S)}else l([])}catch(E){console.error("버튼 권한 조회 실패:",E),g("버튼 권한을 조회하는 중 오류가 발생했습니다."),l([])}finally{h(!1)}};z.useEffect(()=>{m()},[e,r]);const x=async(E,S)=>{y(w=>({...w,[E]:{loading:!0}}));try{const w=t?.[E];w?await w():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${E}`),s&&s(E,S,e)}catch(w){console.error("버튼 이벤트 실행 실패:",w),X.message.error("작업 중 오류가 발생했습니다.")}finally{y(w=>({...w,[E]:{loading:!1}}))}},b=E=>{const S=p[E.btnId]||{loading:!1};return P.jsxRuntimeExports.jsxs(X.Button,{size:n,loading:S.loading,onClick:()=>x(E.btnId,E.btnNm),className:"bwg-btn",style:{...E.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[E.iconVal&&P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[E.iconType==="ANTD"&&In[E.iconVal]&&z.createElement(In[E.iconVal],{style:{fontSize:"14px"}}),E.iconType!=="ANTD"&&P.jsxRuntimeExports.jsx("span",{className:E.iconVal,style:{fontSize:"14px"}})]}),E.btnNm]},E.btnId)};return u?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Space,{direction:i==="vertical"?"vertical":"horizontal",size:n,children:P.jsxRuntimeExports.jsx(X.Button,{loading:!0,size:n,children:"권한 조회 중..."})})}):v?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Alert,{message:"권한 오류",description:v,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):c.length===0?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Flex,{gap:3,children:c.map(b)})})},Uv=({content:e,layout:r="flex",gap:t=16,minWidth:i=120,maxWidth:n=300,style:o,className:a})=>{if(!(Array.isArray(e)&&e.length>0&&Array.isArray(e[0])))return P.jsxRuntimeExports.jsx("div",{style:o,className:a,children:e});const f=e.filter(h=>h&&h.length>0),d=z.useMemo(()=>{const h=f[0];if(!h||h.length===0)return{totalCols:0,baseWidth:0};let v=0;const g=[];h.forEach(y=>{const m=y,x=m?.props?.["data-colspan"]?parseInt(String(m.props["data-colspan"])):1;v+=x,g.push(x)});const p=v>0?100/v:0;return{totalCols:v,baseWidth:p,componentWidths:g}},[f]),c=(h,v,g)=>{const p=h,y=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1;switch(r){case"equal":return 100/g;case"auto":return 100/g;case"grid":return 100/d.totalCols*y;case"flex":default:const m=d.baseWidth*y;return Math.max(i,Math.min(n,m))}},l=h=>{if(!h||typeof h!="object")return h;const v=h;if(!v.props)return h;const p={...v.props.style||{},width:"100%"};return z.cloneElement(v,{...v.props,style:p})},u=(h,v)=>{if(!h||h.length===0)return null;const g=h.length;return r==="grid"?P.jsxRuntimeExports.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${d.totalCols}, 1fr)`,gap:`${t}px`,width:"100%"},children:h.map((p,y)=>{const m=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1,x=l(p);return P.jsxRuntimeExports.jsx("div",{style:{gridColumn:`span ${m}`,minWidth:`${i}px`},className:"form-component-wrapper",children:x},`row-${v}-col-${y}`)})},`row-${v}`):P.jsxRuntimeExports.jsx(X.Flex,{gap:t,className:"erp-cmm-form",wrap:r==="auto"?"wrap":"nowrap",style:{width:"100%"},children:h.map((p,y)=>{const m=c(p,y,g),x=l(p),b=r==="flex"?{width:`${m}px`,minWidth:`${i}px`,maxWidth:`${n}px`,flexShrink:0}:{width:`${m}%`,minWidth:`${i}px`};return P.jsxRuntimeExports.jsx("div",{style:b,className:"form-component-wrapper",children:x},`row-${v}-col-${y}`)})},`row-${v}`)};return P.jsxRuntimeExports.jsx(X.Flex,{gap:"small",vertical:!0,style:o,className:a,children:f.map((h,v)=>u(h,v+1))})},Wv=({children:e,...r})=>P.jsxRuntimeExports.jsx(X.Col,{...r,className:"bwg-col",children:e});var bn={},To={exports:{}},bu;function Zi(){return bu||(bu=1,(function(e){function r(t){return t&&t.__esModule?t:{default:t}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(To)),To.exports}var xn={},xu;function Kv(){if(xu)return xn;xu=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.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 xn.default=e,xn}var En={},wn={},Sn={},ko={exports:{}},Po={exports:{}},No={exports:{}},Io={exports:{}},Eu;function rh(){return Eu||(Eu=1,(function(e){function r(t){"@babel/helpers - typeof";return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Io)),Io.exports}var Mo={exports:{}},wu;function Gv(){return wu||(wu=1,(function(e){var r=rh().default;function t(i,n){if(r(i)!="object"||!i)return i;var o=i[Symbol.toPrimitive];if(o!==void 0){var a=o.call(i,n||"default");if(r(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Mo)),Mo.exports}var Su;function Yv(){return Su||(Su=1,(function(e){var r=rh().default,t=Gv();function i(n){var o=t(n,"string");return r(o)=="symbol"?o:o+""}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(No)),No.exports}var _u;function Xv(){return _u||(_u=1,(function(e){var r=Yv();function t(i,n,o){return(n=r(n))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Po)),Po.exports}var Cu;function Zv(){return Cu||(Cu=1,(function(e){var r=Xv();function t(n,o){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);o&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),a.push.apply(a,s)}return a}function i(n){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?t(Object(a),!0).forEach(function(s){r(n,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(a,s))})}return n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(ko)),ko.exports}var _n={},Ou;function Qv(){return Ou||(Ou=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.commonLocale=void 0,_n.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),_n}var Ru;function Jv(){if(Ru)return Sn;Ru=1;var e=Zi().default;Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var r=e(Zv()),t=Qv(),i=(0,r.default)((0,r.default)({},t.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 Sn.default=i,Sn}var Cn={},ju;function nh(){if(ju)return Cn;ju=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return Cn.default=e,Cn}var Au;function ih(){if(Au)return wn;Au=1;var e=Zi().default;Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var r=e(Jv()),t=e(nh());const i={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월"]},r.default),timePickerLocale:Object.assign({},t.default)};return wn.default=i,wn}var Tu;function em(){if(Tu)return En;Tu=1;var e=Zi().default;Object.defineProperty(En,"__esModule",{value:!0}),En.default=void 0;var r=e(ih());return En.default=r.default,En}var ku;function tm(){if(ku)return bn;ku=1;var e=Zi().default;Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var r=e(Kv()),t=e(em()),i=e(ih()),n=e(nh());const o="${label} 유효하지 않은 ${type}",a={locale:"ko",Pagination:r.default,DatePicker:i.default,TimePicker:n.default,Calendar:t.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:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},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 bn.default=a,bn}var Lo,Pu;function rm(){return Pu||(Pu=1,Lo=tm()),Lo}var nm=rm();const oh=Fe.getDefaultExportFromCjs(nm),Dl=({children:e,customTheme:r,customComponentSize:t="middle",layout:i="comfortable",getPopupContainer:n})=>{const a=(()=>{const f={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:X.theme.defaultAlgorithm};switch(i){case"compact":return{...f,token:{...f.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...f,token:{...f.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...f,token:{...f.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),s={...a,...r,token:{...a.token,...r?.token},components:{Checkbox:{colorPrimary:"var(--check-primary)",colorPrimaryBorder:"var(--check-primary)",colorPrimaryHover:"var(--check-primary-active)",colorText:"var(--text-primary)"},Radio:{colorPrimary:"var(--check-primary)",colorPrimaryActive:"var(--check-primary-active)",colorPrimaryHover:"var(--check-primary-active)"},Tree:{nodeHoverBg:"var(--tree-selected-bg)",nodeHoverColor:"var(--primary-color)",nodeSelectedBg:"var(--tree-selected-bg)",nodeSelectedColor:"var(--primary-color)",colorText:"var(--text-primary)"},...r?.components??{}}};return P.jsxRuntimeExports.jsx(X.ConfigProvider,{locale:oh,theme:s,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},getPopupContainer:n,children:e})},im=({children:e})=>{const{activeDetailItem:r}=Fe.useMenuViewStore();return P.jsxRuntimeExports.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:P.jsxRuntimeExports.jsx("div",{className:"bwgview-content",children:P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[P.jsxRuntimeExports.jsx(X.Breadcrumb,{separator:">",items:[{title:r?.prntInfo?.menuNm},{title:r?.viewLabel}]}),e]})})})},Qi=({title:e,icons:r,tooltip:t,iconVisible:i=!0,paddingBottom:n=0,marginBottom:o=0,children:a})=>{const s=In.AppstoreTwoTone;return z.useMemo(()=>r?.type==="antd"&&r.icon&&In[r.icon]||s,[r?.type,r?.icon]),P.jsxRuntimeExports.jsx(X.Flex,{vertical:!0,style:{width:"100%"},children:P.jsxRuntimeExports.jsxs("div",{className:`bwg-title-box ${n?`pb${n}`:""} ${o?`mb${o}`:""}`,style:{display:"flex",justifyContent:"space-between"},children:[P.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-left",children:P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[P.jsxRuntimeExports.jsx(X.Typography.Title,{level:4,children:P.jsxRuntimeExports.jsx("span",{children:e})}),t&&P.jsxRuntimeExports.jsx(X.Tooltip,{title:t.title,placement:t.placement,children:P.jsxRuntimeExports.jsx(In.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),P.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-right",children:P.jsxRuntimeExports.jsx(X.Flex,{gap:6,children:a})})]})})},{Panel:Nu}=X.Collapse,Ji=z.forwardRef(({reqRows:e,subRows:r,border:t=!1,labelDisplay:i,header:n},o)=>{const[a]=X.Form.useForm(),[s,f]=z.useState("1"),d=()=>i?{flex:i.md||i.lg||i.sm||"100px"}:{flex:"100px"};z.useImperativeHandle(o,()=>({getFormData:()=>a.getFieldsValue(),setFormData:l=>{a.setFieldsValue(l)},resetForm:()=>{a.resetFields()},validateForm:async()=>{try{return{success:!0,data:await a.validateFields()}}catch(l){return{success:!1,error:l}}}}));const c=()=>{f(l=>l.includes("subRows")?l.filter(u=>u!=="subRows"):[...l,"subRows"])};return P.jsxRuntimeExports.jsxs("div",{style:t?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[n&&P.jsxRuntimeExports.jsx(Qi,{title:n.title,children:n.buttons}),P.jsxRuntimeExports.jsx(X.Form,{form:a,layout:"inline",style:{width:"100%",paddingBottom:e||r?"10px":"0px"},labelCol:d(),labelAlign:"left",children:P.jsxRuntimeExports.jsxs("div",{style:{position:"relative",width:"100%"},children:[r&&P.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:s.includes("subRows")?P.jsxRuntimeExports.jsx(X.Tooltip,{title:"접기",children:P.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:c,children:P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:P.jsxRuntimeExports.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"})})})}):P.jsxRuntimeExports.jsx(X.Tooltip,{title:"펼치기",children:P.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:c,children:P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:P.jsxRuntimeExports.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"})})})})}),P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Collapse:{}}},children:P.jsxRuntimeExports.jsxs(X.Collapse,{activeKey:["reqRows",...s.includes("subRows")?["subRows"]:[]],onChange:f,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&P.jsxRuntimeExports.jsx(Nu,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),r&&P.jsxRuntimeExports.jsx(Nu,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:r},"subRows")]})})]})})]})}),om=({children:e,showSearchBox:r,showCloseButton:t=!0,showEyesButton:i=!1,shotSettingButton:n=!0,styles:o,...a})=>{const[s,f]=z.useState(!0),[d,c]=z.useState(()=>{const y=a.placement;return y==="left"||y==="right"||y==="top"||y==="bottom"?y:"bottom"}),[l,u]=z.useState(!1),v=(y=>{const m={wrapper:{...a.width&&{width:a.width},...a.height&&{height:a.height},margin:"0 auto"},content:{},header:{backgroundColor:"var(--drawer-header-bg)",color:"var(--text-primary)"}};switch(y){case"bottom":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...m.header,borderRadius:"30px 30px 0 0"}};case"top":return{...m,wrapper:{...m.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...m.header}};case"left":return{...m,wrapper:{...m.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...m.header,borderRadius:"0 30px 0 0"}};case"right":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...m.header,borderRadius:"30px 0 0 0"}};default:return m}})(d),g={wrapper:{...v?.wrapper,...o?.wrapper},content:{...v?.content,...o?.content},header:{...v?.header,...o?.header}},p=()=>{const y=[];if(n){const m=[{key:"top",label:"상단",icon:P.jsxRuntimeExports.jsx(Ce.CaretUpOutlined,{})},{key:"right",label:"우측",icon:P.jsxRuntimeExports.jsx(Ce.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:P.jsxRuntimeExports.jsx(Ce.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:P.jsxRuntimeExports.jsx(Ce.CaretLeftOutlined,{})}],x=P.jsxRuntimeExports.jsx(X.Space.Compact,{children:m.map(b=>P.jsxRuntimeExports.jsx(X.Button,{type:d===b.key?"primary":"default",size:"small",onClick:()=>{c(b.key),u(!1)},icon:b.icon},b.key))});y.push(P.jsxRuntimeExports.jsx(X.Popover,{content:x,trigger:"click",placement:"left",open:l,onOpenChange:u,children:P.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return i&&y.push(P.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:s?"배경 보기":"배경 숨기기",zIndex:2100,children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>f(!s)})},"eyes")),a.extra&&y.push(P.jsxRuntimeExports.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),t&&y.push(P.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),y};return P.jsxRuntimeExports.jsx(X.Drawer,{className:"main-drawer",footer:!0,...a,placement:d,styles:g,maskClosable:!1,closable:!1,mask:s,extra:P.jsxRuntimeExports.jsx(X.Space,{size:"small",align:"center",children:p()}),afterOpenChange:y=>{y||(f(!0),c(a.placement)),a.afterOpenChange?.(y)},destroyOnHidden:!0,children:r?P.jsxRuntimeExports.jsxs(jr,{type:"vertical",children:[P.jsxRuntimeExports.jsxs(X.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[P.jsxRuntimeExports.jsx("div",{children:r.title}),P.jsxRuntimeExports.jsx(X.Flex,{gap:2,children:r.extra})]}),P.jsxRuntimeExports.jsx(Ji,{...r.searchBox}),P.jsxRuntimeExports.jsx(X.Divider,{}),e]}):e})};var ki={exports:{}},am=ki.exports,Iu;function sm(){return Iu||(Iu=1,(function(e,r){(function(t,i){e.exports=i()})(am,function(){return(function(t){function i(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}var n={};return i.m=t,i.c=n,i.i=function(o){return o},i.d=function(o,a,s){i.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:s})},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=38)})([function(t,i){function n(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}t.exports=n},function(t,i,n){var o=n(22),a=typeof self=="object"&&self&&self.Object===Object&&self,s=o||a||Function("return this")();t.exports=s},function(t,i){function n(o){return o!=null&&typeof o=="object"}t.exports=n},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=n(75),s=n(76),f=n(77),d=n(78),c=n(79);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=f,o.prototype.has=d,o.prototype.set=c,t.exports=o},function(t,i,n){function o(s,f){for(var d=s.length;d--;)if(a(s[d][0],f))return d;return-1}var a=n(8);t.exports=o},function(t,i,n){function o(u){return u==null?u===void 0?c:d:l&&l in Object(u)?s(u):f(u)}var a=n(16),s=n(64),f=n(87),d="[object Null]",c="[object Undefined]",l=a?a.toStringTag:void 0;t.exports=o},function(t,i,n){function o(s,f){var d=s.__data__;return a(f)?d[typeof f=="string"?"string":"hash"]:d.map}var a=n(73);t.exports=o},function(t,i,n){var o=n(11),a=o(Object,"create");t.exports=a},function(t,i){function n(o,a){return o===a||o!==o&&a!==a}t.exports=n},function(t,i,n){function o(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}n.d(i,"a",function(){return a});var a=function s(f){o(this,s),this.onCreate=function(){},this.onDestroy=function(){},this.onUpdate=function(){},this.overlay=f.overlay,this.img=f.img,this.options=f.options,this.requestUpdate=f.onUpdate}},function(t,i,n){function o(s,f,d){f=="__proto__"&&a?a(s,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):s[f]=d}var a=n(21);t.exports=o},function(t,i,n){function o(f,d){var c=s(f,d);return a(c)?c:void 0}var a=n(48),s=n(65);t.exports=o},function(t,i,n){function o(f){return f!=null&&s(f.length)&&!a(f)}var a=n(13),s=n(30);t.exports=o},function(t,i,n){function o(u){if(!s(u))return!1;var h=a(u);return h==d||h==c||h==f||h==l}var a=n(5),s=n(0),f="[object AsyncFunction]",d="[object Function]",c="[object GeneratorFunction]",l="[object Proxy]";t.exports=o},function(t,i){t.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(t,i,n){var o=n(11),a=n(1),s=o(a,"Map");t.exports=s},function(t,i,n){var o=n(1),a=o.Symbol;t.exports=a},function(t,i){function n(o,a,s){switch(s.length){case 0:return o.call(a);case 1:return o.call(a,s[0]);case 2:return o.call(a,s[0],s[1]);case 3:return o.call(a,s[0],s[1],s[2])}return o.apply(a,s)}t.exports=n},function(t,i,n){function o(f,d,c){(c===void 0||s(f[d],c))&&(c!==void 0||d in f)||a(f,d,c)}var a=n(10),s=n(8);t.exports=o},function(t,i,n){function o(u,h,v,g,p){u!==h&&f(h,function(y,m){if(c(y))p||(p=new a),d(u,h,m,v,o,g,p);else{var x=g?g(u[m],y,m+"",u,h,p):void 0;x===void 0&&(x=y),s(u,m,x)}},l)}var a=n(41),s=n(18),f=n(46),d=n(51),c=n(0),l=n(32);t.exports=o},function(t,i,n){function o(d,c){return f(s(d,c,a),d+"")}var a=n(26),s=n(89),f=n(90);t.exports=o},function(t,i,n){var o=n(11),a=(function(){try{var s=o(Object,"defineProperty");return s({},"",{}),s}catch{}})();t.exports=a},function(t,i,n){(function(o){var a=typeof o=="object"&&o&&o.Object===Object&&o;t.exports=a}).call(i,n(107))},function(t,i,n){var o=n(88),a=o(Object.getPrototypeOf,Object);t.exports=a},function(t,i){function n(s,f){return!!(f=f??o)&&(typeof s=="number"||a.test(s))&&s>-1&&s%1==0&&s<f}var o=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,i){function n(a){var s=a&&a.constructor;return a===(typeof s=="function"&&s.prototype||o)}var o=Object.prototype;t.exports=n},function(t,i){function n(o){return o}t.exports=n},function(t,i,n){var o=n(47),a=n(2),s=Object.prototype,f=s.hasOwnProperty,d=s.propertyIsEnumerable,c=o((function(){return arguments})())?o:function(l){return a(l)&&f.call(l,"callee")&&!d.call(l,"callee")};t.exports=c},function(t,i){var n=Array.isArray;t.exports=n},function(t,i,n){(function(o){var a=n(1),s=n(102),f=typeof i=="object"&&i&&!i.nodeType&&i,d=f&&typeof o=="object"&&o&&!o.nodeType&&o,c=d&&d.exports===f,l=c?a.Buffer:void 0,u=l?l.isBuffer:void 0,h=u||s;o.exports=h}).call(i,n(14)(t))},function(t,i){function n(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=o}var o=9007199254740991;t.exports=n},function(t,i,n){var o=n(49),a=n(54),s=n(86),f=s&&s.isTypedArray,d=f?a(f):o;t.exports=d},function(t,i,n){function o(d){return f(d)?a(d,!0):s(d)}var a=n(43),s=n(50),f=n(12);t.exports=o},function(t,i,n){i.a={modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"-12px",right:"0",left:"0",height:"0",minWidth:"100px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"#333",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{display:"inline-block",width:"24px",height:"24px",background:"white",border:"1px solid #999",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}}},function(t,i,n){function o(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function a(c,l){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?c:l}function s(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}var f=n(9);n.d(i,"a",function(){return d});var d=(function(c){function l(){var u,h,v,g;o(this,l);for(var p=arguments.length,y=Array(p),m=0;m<p;m++)y[m]=arguments[m];return h=v=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(y))),v.onCreate=function(){v.display=document.createElement("div"),Object.assign(v.display.style,v.options.displayStyles),v.overlay.appendChild(v.display)},v.onDestroy=function(){},v.onUpdate=function(){if(v.display&&v.img){var x=v.getCurrentSize();if(v.display.innerHTML=x.join(" × "),x[0]>120&&x[1]>30)Object.assign(v.display.style,{right:"4px",bottom:"4px",left:"auto"});else if(v.img.style.float=="right"){var b=v.display.getBoundingClientRect();Object.assign(v.display.style,{right:"auto",bottom:"-"+(b.height+4)+"px",left:"-"+(b.width+4)+"px"})}else{var E=v.display.getBoundingClientRect();Object.assign(v.display.style,{right:"-"+(E.width+4)+"px",bottom:"-"+(E.height+4)+"px",left:"auto"})}}},v.getCurrentSize=function(){return[v.img.width,Math.round(v.img.width/v.img.naturalWidth*v.img.naturalHeight)]},g=h,a(v,g)}return s(l,c),l})(f.a)},function(t,i,n){function o(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function a(c,l){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?c:l}function s(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}var f=n(9);n.d(i,"a",function(){return d});var d=(function(c){function l(){var u,h,v,g;o(this,l);for(var p=arguments.length,y=Array(p),m=0;m<p;m++)y[m]=arguments[m];return h=v=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(y))),v.onCreate=function(){v.boxes=[],v.addBox("nwse-resize"),v.addBox("nesw-resize"),v.addBox("nwse-resize"),v.addBox("nesw-resize"),v.positionBoxes()},v.onDestroy=function(){v.setCursor("")},v.positionBoxes=function(){var x=-parseFloat(v.options.handleStyles.width)/2+"px",b=-parseFloat(v.options.handleStyles.height)/2+"px";[{left:x,top:b},{right:x,top:b},{right:x,bottom:b},{left:x,bottom:b}].forEach(function(E,S){Object.assign(v.boxes[S].style,E)})},v.addBox=function(x){var b=document.createElement("div");Object.assign(b.style,v.options.handleStyles),b.style.cursor=x,b.style.width=v.options.handleStyles.width+"px",b.style.height=v.options.handleStyles.height+"px",b.addEventListener("mousedown",v.handleMousedown,!1),v.overlay.appendChild(b),v.boxes.push(b)},v.handleMousedown=function(x){v.dragBox=x.target,v.dragStartX=x.clientX,v.preDragWidth=v.img.width||v.img.naturalWidth,v.setCursor(v.dragBox.style.cursor),document.addEventListener("mousemove",v.handleDrag,!1),document.addEventListener("mouseup",v.handleMouseup,!1)},v.handleMouseup=function(){v.setCursor(""),document.removeEventListener("mousemove",v.handleDrag),document.removeEventListener("mouseup",v.handleMouseup)},v.handleDrag=function(x){if(v.img){var b=x.clientX-v.dragStartX;v.dragBox===v.boxes[0]||v.dragBox===v.boxes[3]?v.img.width=Math.round(v.preDragWidth-b):v.img.width=Math.round(v.preDragWidth+b),v.requestUpdate()}},v.setCursor=function(x){[document.body,v.img].forEach(function(b){b.style.cursor=x})},g=h,a(v,g)}return s(l,c),l})(f.a)},function(t,i,n){function o(b,E){if(!(b instanceof E))throw new TypeError("Cannot call a class as a function")}function a(b,E){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!E||typeof E!="object"&&typeof E!="function"?b:E}function s(b,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);b.prototype=Object.create(E&&E.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(b,E):b.__proto__=E)}var f=n(105),d=n.n(f),c=n(104),l=n.n(c),u=n(106),h=n.n(u),v=n(9);n.d(i,"a",function(){return x});var g={},p={},y={},m={},x=(function(b){function E(){var S,w,_,A;o(this,E);for(var R=arguments.length,C=Array(R),O=0;O<R;O++)C[O]=arguments[O];return w=_=a(this,(S=E.__proto__||Object.getPrototypeOf(E)).call.apply(S,[this].concat(C))),_.onCreate=function(j){g=j,p=new g.Attributor.Style("float","float"),y=new g.Attributor.Style("margin","margin"),m=new g.Attributor.Style("display","display"),_.toolbar=document.createElement("div"),Object.assign(_.toolbar.style,_.options.toolbarStyles),_.overlay.appendChild(_.toolbar),_._defineAlignments(),_._addToolbarButtons()},_.onDestroy=function(){},_.onUpdate=function(){},_._defineAlignments=function(){_.alignments=[{icon:d.a,apply:function(){m.add(_.img,"inline"),p.add(_.img,"left"),y.add(_.img,"0 1em 1em 0")},isApplied:function(){return p.value(_.img)=="left"}},{icon:l.a,apply:function(){m.add(_.img,"block"),p.remove(_.img),y.add(_.img,"auto")},isApplied:function(){return y.value(_.img)=="auto"}},{icon:h.a,apply:function(){m.add(_.img,"inline"),p.add(_.img,"right"),y.add(_.img,"0 0 1em 1em")},isApplied:function(){return p.value(_.img)=="right"}}]},_._addToolbarButtons=function(){var j=[];_.alignments.forEach(function(k,I){var B=document.createElement("span");j.push(B),B.innerHTML=k.icon,B.addEventListener("click",function(){j.forEach(function(V){return V.style.filter=""}),k.isApplied()?(p.remove(_.img),y.remove(_.img),m.remove(_.img)):(_._selectButton(B),k.apply()),_.requestUpdate()}),Object.assign(B.style,_.options.toolbarButtonStyles),I>0&&(B.style.borderLeftWidth="0"),Object.assign(B.children[0].style,_.options.toolbarButtonSvgStyles),k.isApplied()&&_._selectButton(B),_.toolbar.appendChild(B)})},_._selectButton=function(j){j.style.filter="invert(20%)"},A=w,a(_,A)}return s(E,b),E})(v.a)},function(t,i,n){var o=n(17),a=n(20),s=n(63),f=n(101),d=a(function(c){return c.push(void 0,s),o(f,void 0,c)});t.exports=d},function(t,i,n){function o(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(i,"__esModule",{value:!0});var a=n(37),s=n.n(a),f=n(33),d=n(34),c=n(36),l=n(35),u={DisplaySize:d.a,Toolbar:c.a,Resize:l.a},h=function v(g){var p=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,v),this.initializeModules=function(){p.removeModules(),p.modules=p.moduleClasses.map(function(x){return new(u[x]||x)(p)}),p.modules.forEach(function(x){x.onCreate(p.parchment)}),p.onUpdate()},this.onUpdate=function(){p.repositionElements(),p.modules.forEach(function(x){x.onUpdate()})},this.removeModules=function(){p.modules.forEach(function(x){x.onDestroy()}),p.modules=[]},this.handleClick=function(x){if(x.target&&x.target.tagName&&x.target.tagName.toUpperCase()==="IMG"){if(p.img===x.target)return;p.img&&p.hide(),p.show(x.target)}else p.img&&p.hide()},this.show=function(x){p.img=x,p.showOverlay(),p.initializeModules()},this.showOverlay=function(){p.overlay&&p.hideOverlay(),p.quill.setSelection(null),p.setUserSelect("none"),document.addEventListener("keyup",p.checkImage,!0),p.quill.root.addEventListener("input",p.checkImage,!0),p.overlay=document.createElement("div"),Object.assign(p.overlay.style,p.options.overlayStyles),p.quill.root.parentNode.appendChild(p.overlay),p.repositionElements()},this.hideOverlay=function(){p.overlay&&(p.quill.root.parentNode.removeChild(p.overlay),p.overlay=void 0,document.removeEventListener("keyup",p.checkImage),p.quill.root.removeEventListener("input",p.checkImage),p.setUserSelect(""))},this.repositionElements=function(){if(p.overlay&&p.img){var x=p.quill.root.parentNode,b=p.img.getBoundingClientRect(),E=x.getBoundingClientRect();Object.assign(p.overlay.style,{left:b.left-E.left-1+x.scrollLeft+"px",top:b.top-E.top+x.scrollTop+"px",width:b.width+"px",height:b.height+"px"})}},this.hide=function(){p.hideOverlay(),p.removeModules(),p.img=void 0},this.setUserSelect=function(x){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(b){p.quill.root.style[b]=x,document.documentElement.style[b]=x})},this.checkImage=function(x){p.img&&(x.keyCode!=46&&x.keyCode!=8||window.Quill.find(p.img).deleteAt(0),p.hide())},this.quill=g;var m=!1;y.modules&&(m=y.modules.slice()),y.parchment&&(this.parchment=y.parchment),this.options=s()({},y,f.a),m!==!1&&(this.options.modules=m),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]};i.default=h,window.Quill&&window.Quill.register("modules/imageResize",h)},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=n(66),s=n(67),f=n(68),d=n(69),c=n(70);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=f,o.prototype.has=d,o.prototype.set=c,t.exports=o},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=n(80),s=n(81),f=n(82),d=n(83),c=n(84);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=f,o.prototype.has=d,o.prototype.set=c,t.exports=o},function(t,i,n){function o(u){var h=this.__data__=new a(u);this.size=h.size}var a=n(3),s=n(92),f=n(93),d=n(94),c=n(95),l=n(96);o.prototype.clear=s,o.prototype.delete=f,o.prototype.get=d,o.prototype.has=c,o.prototype.set=l,t.exports=o},function(t,i,n){var o=n(1),a=o.Uint8Array;t.exports=a},function(t,i,n){function o(v,g){var p=f(v),y=!p&&s(v),m=!p&&!y&&d(v),x=!p&&!y&&!m&&l(v),b=p||y||m||x,E=b?a(v.length,String):[],S=E.length;for(var w in v)!g&&!h.call(v,w)||b&&(w=="length"||m&&(w=="offset"||w=="parent")||x&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||c(w,S))||E.push(w);return E}var a=n(53),s=n(27),f=n(28),d=n(29),c=n(24),l=n(31),u=Object.prototype,h=u.hasOwnProperty;t.exports=o},function(t,i,n){function o(c,l,u){var h=c[l];d.call(c,l)&&s(h,u)&&(u!==void 0||l in c)||a(c,l,u)}var a=n(10),s=n(8),f=Object.prototype,d=f.hasOwnProperty;t.exports=o},function(t,i,n){var o=n(0),a=Object.create,s=(function(){function f(){}return function(d){if(!o(d))return{};if(a)return a(d);f.prototype=d;var c=new f;return f.prototype=void 0,c}})();t.exports=s},function(t,i,n){var o=n(62),a=o();t.exports=a},function(t,i,n){function o(d){return s(d)&&a(d)==f}var a=n(5),s=n(2),f="[object Arguments]";t.exports=o},function(t,i,n){function o(p){return!(!f(p)||s(p))&&(a(p)?g:c).test(d(p))}var a=n(13),s=n(74),f=n(0),d=n(97),c=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,h=l.toString,v=u.hasOwnProperty,g=RegExp("^"+h.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,i,n){function o(c){return f(c)&&s(c.length)&&!!d[a(c)]}var a=n(5),s=n(30),f=n(2),d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d["[object Arguments]"]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d["[object Map]"]=d["[object Number]"]=d["[object Object]"]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1,t.exports=o},function(t,i,n){function o(l){if(!a(l))return f(l);var u=s(l),h=[];for(var v in l)(v!="constructor"||!u&&c.call(l,v))&&h.push(v);return h}var a=n(0),s=n(25),f=n(85),d=Object.prototype,c=d.hasOwnProperty;t.exports=o},function(t,i,n){function o(b,E,S,w,_,A,R){var C=b[S],O=E[S],j=R.get(O);if(j)return void a(b,S,j);var k=A?A(C,O,S+"",b,E,R):void 0,I=k===void 0;if(I){var B=u(O),V=!B&&v(O),W=!B&&!V&&m(O);k=O,B||V||W?u(C)?k=C:h(C)?k=d(C):V?(I=!1,k=s(O,!0)):W?(I=!1,k=f(O,!0)):k=[]:y(O)||l(O)?(k=C,l(C)?k=x(C):(!p(C)||w&&g(C))&&(k=c(O))):I=!1}I&&(R.set(O,k),_(k,O,w,A,R),R.delete(O)),a(b,S,k)}var a=n(18),s=n(56),f=n(57),d=n(58),c=n(71),l=n(27),u=n(28),h=n(99),v=n(29),g=n(13),p=n(0),y=n(100),m=n(31),x=n(103);t.exports=o},function(t,i,n){var o=n(98),a=n(21),s=n(26),f=a?function(d,c){return a(d,"toString",{configurable:!0,enumerable:!1,value:o(c),writable:!0})}:s;t.exports=f},function(t,i){function n(o,a){for(var s=-1,f=Array(o);++s<o;)f[s]=a(s);return f}t.exports=n},function(t,i){function n(o){return function(a){return o(a)}}t.exports=n},function(t,i,n){function o(s){var f=new s.constructor(s.byteLength);return new a(f).set(new a(s)),f}var a=n(42);t.exports=o},function(t,i,n){(function(o){function a(h,v){if(v)return h.slice();var g=h.length,p=u?u(g):new h.constructor(g);return h.copy(p),p}var s=n(1),f=typeof i=="object"&&i&&!i.nodeType&&i,d=f&&typeof o=="object"&&o&&!o.nodeType&&o,c=d&&d.exports===f,l=c?s.Buffer:void 0,u=l?l.allocUnsafe:void 0;o.exports=a}).call(i,n(14)(t))},function(t,i,n){function o(s,f){var d=f?a(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}var a=n(55);t.exports=o},function(t,i){function n(o,a){var s=-1,f=o.length;for(a||(a=Array(f));++s<f;)a[s]=o[s];return a}t.exports=n},function(t,i,n){function o(f,d,c,l){var u=!c;c||(c={});for(var h=-1,v=d.length;++h<v;){var g=d[h],p=l?l(c[g],f[g],g,c,f):void 0;p===void 0&&(p=f[g]),u?s(c,g,p):a(c,g,p)}return c}var a=n(44),s=n(10);t.exports=o},function(t,i,n){var o=n(1),a=o["__core-js_shared__"];t.exports=a},function(t,i,n){function o(f){return a(function(d,c){var l=-1,u=c.length,h=u>1?c[u-1]:void 0,v=u>2?c[2]:void 0;for(h=f.length>3&&typeof h=="function"?(u--,h):void 0,v&&s(c[0],c[1],v)&&(h=u<3?void 0:h,u=1),d=Object(d);++l<u;){var g=c[l];g&&f(d,g,l,h)}return d})}var a=n(20),s=n(72);t.exports=o},function(t,i){function n(o){return function(a,s,f){for(var d=-1,c=Object(a),l=f(a),u=l.length;u--;){var h=l[o?u:++d];if(s(c[h],h,c)===!1)break}return a}}t.exports=n},function(t,i,n){function o(f,d,c,l,u,h){return s(f)&&s(d)&&(h.set(d,f),a(f,d,void 0,o,h),h.delete(d)),f}var a=n(19),s=n(0);t.exports=o},function(t,i,n){function o(l){var u=f.call(l,c),h=l[c];try{l[c]=void 0}catch{}var v=d.call(l);return u?l[c]=h:delete l[c],v}var a=n(16),s=Object.prototype,f=s.hasOwnProperty,d=s.toString,c=a?a.toStringTag:void 0;t.exports=o},function(t,i){function n(o,a){return o?.[a]}t.exports=n},function(t,i,n){function o(){this.__data__=a?a(null):{},this.size=0}var a=n(7);t.exports=o},function(t,i){function n(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}t.exports=n},function(t,i,n){function o(c){var l=this.__data__;if(a){var u=l[c];return u===s?void 0:u}return d.call(l,c)?l[c]:void 0}var a=n(7),s="__lodash_hash_undefined__",f=Object.prototype,d=f.hasOwnProperty;t.exports=o},function(t,i,n){function o(d){var c=this.__data__;return a?c[d]!==void 0:f.call(c,d)}var a=n(7),s=Object.prototype,f=s.hasOwnProperty;t.exports=o},function(t,i,n){function o(f,d){var c=this.__data__;return this.size+=this.has(f)?0:1,c[f]=a&&d===void 0?s:d,this}var a=n(7),s="__lodash_hash_undefined__";t.exports=o},function(t,i,n){function o(d){return typeof d.constructor!="function"||f(d)?{}:a(s(d))}var a=n(45),s=n(23),f=n(25);t.exports=o},function(t,i,n){function o(c,l,u){if(!d(u))return!1;var h=typeof l;return!!(h=="number"?s(u)&&f(l,u.length):h=="string"&&l in u)&&a(u[l],c)}var a=n(8),s=n(12),f=n(24),d=n(0);t.exports=o},function(t,i){function n(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}t.exports=n},function(t,i,n){function o(f){return!!s&&s in f}var a=n(60),s=(function(){var f=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})();t.exports=o},function(t,i){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,i,n){function o(d){var c=this.__data__,l=a(c,d);return!(l<0)&&(l==c.length-1?c.pop():f.call(c,l,1),--this.size,!0)}var a=n(4),s=Array.prototype,f=s.splice;t.exports=o},function(t,i,n){function o(s){var f=this.__data__,d=a(f,s);return d<0?void 0:f[d][1]}var a=n(4);t.exports=o},function(t,i,n){function o(s){return a(this.__data__,s)>-1}var a=n(4);t.exports=o},function(t,i,n){function o(s,f){var d=this.__data__,c=a(d,s);return c<0?(++this.size,d.push([s,f])):d[c][1]=f,this}var a=n(4);t.exports=o},function(t,i,n){function o(){this.size=0,this.__data__={hash:new a,map:new(f||s),string:new a}}var a=n(39),s=n(3),f=n(15);t.exports=o},function(t,i,n){function o(s){var f=a(this,s).delete(s);return this.size-=f?1:0,f}var a=n(6);t.exports=o},function(t,i,n){function o(s){return a(this,s).get(s)}var a=n(6);t.exports=o},function(t,i,n){function o(s){return a(this,s).has(s)}var a=n(6);t.exports=o},function(t,i,n){function o(s,f){var d=a(this,s),c=d.size;return d.set(s,f),this.size+=d.size==c?0:1,this}var a=n(6);t.exports=o},function(t,i){function n(o){var a=[];if(o!=null)for(var s in Object(o))a.push(s);return a}t.exports=n},function(t,i,n){(function(o){var a=n(22),s=typeof i=="object"&&i&&!i.nodeType&&i,f=s&&typeof o=="object"&&o&&!o.nodeType&&o,d=f&&f.exports===s,c=d&&a.process,l=(function(){try{return c&&c.binding&&c.binding("util")}catch{}})();o.exports=l}).call(i,n(14)(t))},function(t,i){function n(s){return a.call(s)}var o=Object.prototype,a=o.toString;t.exports=n},function(t,i){function n(o,a){return function(s){return o(a(s))}}t.exports=n},function(t,i,n){function o(f,d,c){return d=s(d===void 0?f.length-1:d,0),function(){for(var l=arguments,u=-1,h=s(l.length-d,0),v=Array(h);++u<h;)v[u]=l[d+u];u=-1;for(var g=Array(d+1);++u<d;)g[u]=l[u];return g[d]=c(v),a(f,this,g)}}var a=n(17),s=Math.max;t.exports=o},function(t,i,n){var o=n(52),a=n(91),s=a(o);t.exports=s},function(t,i){function n(f){var d=0,c=0;return function(){var l=s(),u=a-(l-c);if(c=l,u>0){if(++d>=o)return arguments[0]}else d=0;return f.apply(void 0,arguments)}}var o=800,a=16,s=Date.now;t.exports=n},function(t,i,n){function o(){this.__data__=new a,this.size=0}var a=n(3);t.exports=o},function(t,i){function n(o){var a=this.__data__,s=a.delete(o);return this.size=a.size,s}t.exports=n},function(t,i){function n(o){return this.__data__.get(o)}t.exports=n},function(t,i){function n(o){return this.__data__.has(o)}t.exports=n},function(t,i,n){function o(c,l){var u=this.__data__;if(u instanceof a){var h=u.__data__;if(!s||h.length<d-1)return h.push([c,l]),this.size=++u.size,this;u=this.__data__=new f(h)}return u.set(c,l),this.size=u.size,this}var a=n(3),s=n(15),f=n(40),d=200;t.exports=o},function(t,i){function n(s){if(s!=null){try{return a.call(s)}catch{}try{return s+""}catch{}}return""}var o=Function.prototype,a=o.toString;t.exports=n},function(t,i){function n(o){return function(){return o}}t.exports=n},function(t,i,n){function o(f){return s(f)&&a(f)}var a=n(12),s=n(2);t.exports=o},function(t,i,n){function o(g){if(!f(g)||a(g)!=d)return!1;var p=s(g);if(p===null)return!0;var y=h.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&u.call(y)==v}var a=n(5),s=n(23),f=n(2),d="[object Object]",c=Function.prototype,l=Object.prototype,u=c.toString,h=l.hasOwnProperty,v=u.call(Object);t.exports=o},function(t,i,n){var o=n(19),a=n(61),s=a(function(f,d,c,l){o(f,d,c,l)});t.exports=s},function(t,i){function n(){return!1}t.exports=n},function(t,i,n){function o(f){return a(f,s(f))}var a=n(59),s=n(32);t.exports=o},function(t,i){t.exports=`<svg viewbox="0 0 18 18">
|
|
1
|
+
"use strict";const P=require("./jsx-runtime-CeSfJrVB.cjs"),Ce=require("@ant-design/icons"),X=require("antd"),z=require("react"),Xi=require("./SearchBoxContext-DnQGaRgo.cjs"),Fe=require("./apiUtils-CudW_FKE.cjs"),eh=require("react-rnd"),$n=require("react-dom"),Nn=require("./favoriteStore-BXBziAgB.cjs"),qv=require("./LoadingOverlay-NX9Mo_6n.cjs"),Vv=require("dayjs"),Ct=require("realgrid"),gu=require("realgrid-react"),We=require("./BwgCheck-Dtzr-6rg.cjs"),zv=require("./AuthContext-CXng9fj0.cjs"),yu=require("react-router-dom");function th(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const In=th(Ce),M=th(z),Hv=({grpId:e,menuId:r,btnEvent:t,layout:i="horizontal",size:n="middle",style:o,className:a,onButtonClick:s})=>{const f=Xi.useServiceCodeValue("AUTH_BTNS"),{user:d}=Fe.useUserStore(),[c,l]=z.useState([]),[u,h]=z.useState(!0),[v,g]=z.useState(null),[p,y]=z.useState({}),m=async()=>{try{h(!0),g(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,r);const E=await Fe.callService(f,{userId:d?.userId,crprCd:d?.crprCd,grpId:e.toUpperCase(),menuId:r});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",E),E?.data&&Array.isArray(E.data)){const S=E.data.sort((w,_)=>w.btnSq-_.btnSq);l(S)}else l([])}catch(E){console.error("버튼 권한 조회 실패:",E),g("버튼 권한을 조회하는 중 오류가 발생했습니다."),l([])}finally{h(!1)}};z.useEffect(()=>{m()},[e,r]);const x=async(E,S)=>{y(w=>({...w,[E]:{loading:!0}}));try{const w=t?.[E];w?await w():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${E}`),s&&s(E,S,e)}catch(w){console.error("버튼 이벤트 실행 실패:",w),X.message.error("작업 중 오류가 발생했습니다.")}finally{y(w=>({...w,[E]:{loading:!1}}))}},b=E=>{const S=p[E.btnId]||{loading:!1};return P.jsxRuntimeExports.jsxs(X.Button,{size:n,loading:S.loading,onClick:()=>x(E.btnId,E.btnNm),className:"bwg-btn",style:{...E.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[E.iconVal&&P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[E.iconType==="ANTD"&&In[E.iconVal]&&z.createElement(In[E.iconVal],{style:{fontSize:"14px"}}),E.iconType!=="ANTD"&&P.jsxRuntimeExports.jsx("span",{className:E.iconVal,style:{fontSize:"14px"}})]}),E.btnNm]},E.btnId)};return u?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Space,{direction:i==="vertical"?"vertical":"horizontal",size:n,children:P.jsxRuntimeExports.jsx(X.Button,{loading:!0,size:n,children:"권한 조회 중..."})})}):v?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Alert,{message:"권한 오류",description:v,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):c.length===0?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:P.jsxRuntimeExports.jsx(X.Flex,{gap:3,children:c.map(b)})})},Uv=({content:e,layout:r="flex",gap:t=16,minWidth:i=120,maxWidth:n=300,style:o,className:a})=>{if(!(Array.isArray(e)&&e.length>0&&Array.isArray(e[0])))return P.jsxRuntimeExports.jsx("div",{style:o,className:a,children:e});const f=e.filter(h=>h&&h.length>0),d=z.useMemo(()=>{const h=f[0];if(!h||h.length===0)return{totalCols:0,baseWidth:0};let v=0;const g=[];h.forEach(y=>{const m=y,x=m?.props?.["data-colspan"]?parseInt(String(m.props["data-colspan"])):1;v+=x,g.push(x)});const p=v>0?100/v:0;return{totalCols:v,baseWidth:p,componentWidths:g}},[f]),c=(h,v,g)=>{const p=h,y=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1;switch(r){case"equal":return 100/g;case"auto":return 100/g;case"grid":return 100/d.totalCols*y;case"flex":default:const m=d.baseWidth*y;return Math.max(i,Math.min(n,m))}},l=h=>{if(!h||typeof h!="object")return h;const v=h;if(!v.props)return h;const p={...v.props.style||{},width:"100%"};return z.cloneElement(v,{...v.props,style:p})},u=(h,v)=>{if(!h||h.length===0)return null;const g=h.length;return r==="grid"?P.jsxRuntimeExports.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${d.totalCols}, 1fr)`,gap:`${t}px`,width:"100%"},children:h.map((p,y)=>{const m=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1,x=l(p);return P.jsxRuntimeExports.jsx("div",{style:{gridColumn:`span ${m}`,minWidth:`${i}px`},className:"form-component-wrapper",children:x},`row-${v}-col-${y}`)})},`row-${v}`):P.jsxRuntimeExports.jsx(X.Flex,{gap:t,className:"erp-cmm-form",wrap:r==="auto"?"wrap":"nowrap",style:{width:"100%"},children:h.map((p,y)=>{const m=c(p,y,g),x=l(p),b=r==="flex"?{width:`${m}px`,minWidth:`${i}px`,maxWidth:`${n}px`,flexShrink:0}:{width:`${m}%`,minWidth:`${i}px`};return P.jsxRuntimeExports.jsx("div",{style:b,className:"form-component-wrapper",children:x},`row-${v}-col-${y}`)})},`row-${v}`)};return P.jsxRuntimeExports.jsx(X.Flex,{gap:"small",vertical:!0,style:o,className:a,children:f.map((h,v)=>u(h,v+1))})},Wv=({children:e,...r})=>P.jsxRuntimeExports.jsx(X.Col,{...r,className:"bwg-col",children:e});var bn={},To={exports:{}},bu;function Zi(){return bu||(bu=1,(function(e){function r(t){return t&&t.__esModule?t:{default:t}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(To)),To.exports}var xn={},xu;function Kv(){if(xu)return xn;xu=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.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 xn.default=e,xn}var En={},wn={},Sn={},ko={exports:{}},Po={exports:{}},No={exports:{}},Io={exports:{}},Eu;function rh(){return Eu||(Eu=1,(function(e){function r(t){"@babel/helpers - typeof";return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Io)),Io.exports}var Mo={exports:{}},wu;function Gv(){return wu||(wu=1,(function(e){var r=rh().default;function t(i,n){if(r(i)!="object"||!i)return i;var o=i[Symbol.toPrimitive];if(o!==void 0){var a=o.call(i,n||"default");if(r(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Mo)),Mo.exports}var Su;function Yv(){return Su||(Su=1,(function(e){var r=rh().default,t=Gv();function i(n){var o=t(n,"string");return r(o)=="symbol"?o:o+""}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(No)),No.exports}var _u;function Xv(){return _u||(_u=1,(function(e){var r=Yv();function t(i,n,o){return(n=r(n))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Po)),Po.exports}var Cu;function Zv(){return Cu||(Cu=1,(function(e){var r=Xv();function t(n,o){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);o&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),a.push.apply(a,s)}return a}function i(n){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?t(Object(a),!0).forEach(function(s){r(n,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(a,s))})}return n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(ko)),ko.exports}var _n={},Ou;function Qv(){return Ou||(Ou=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.commonLocale=void 0,_n.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),_n}var Ru;function Jv(){if(Ru)return Sn;Ru=1;var e=Zi().default;Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var r=e(Zv()),t=Qv(),i=(0,r.default)((0,r.default)({},t.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 Sn.default=i,Sn}var Cn={},ju;function nh(){if(ju)return Cn;ju=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return Cn.default=e,Cn}var Au;function ih(){if(Au)return wn;Au=1;var e=Zi().default;Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var r=e(Jv()),t=e(nh());const i={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월"]},r.default),timePickerLocale:Object.assign({},t.default)};return wn.default=i,wn}var Tu;function em(){if(Tu)return En;Tu=1;var e=Zi().default;Object.defineProperty(En,"__esModule",{value:!0}),En.default=void 0;var r=e(ih());return En.default=r.default,En}var ku;function tm(){if(ku)return bn;ku=1;var e=Zi().default;Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var r=e(Kv()),t=e(em()),i=e(ih()),n=e(nh());const o="${label} 유효하지 않은 ${type}",a={locale:"ko",Pagination:r.default,DatePicker:i.default,TimePicker:n.default,Calendar:t.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:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},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 bn.default=a,bn}var Lo,Pu;function rm(){return Pu||(Pu=1,Lo=tm()),Lo}var nm=rm();const oh=Fe.getDefaultExportFromCjs(nm),Dl=({children:e,customTheme:r,customComponentSize:t="middle",layout:i="comfortable",getPopupContainer:n})=>{const a=(()=>{const f={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:X.theme.defaultAlgorithm};switch(i){case"compact":return{...f,token:{...f.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...f,token:{...f.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...f,token:{...f.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),s={...a,...r,token:{...a.token,...r?.token},components:{Checkbox:{colorPrimary:"var(--check-primary)",colorPrimaryBorder:"var(--check-primary)",colorPrimaryHover:"var(--check-primary-active)",colorText:"var(--text-primary)"},Radio:{colorPrimary:"var(--check-primary)",colorPrimaryActive:"var(--check-primary-active)",colorPrimaryHover:"var(--check-primary-active)"},Tree:{nodeHoverBg:"var(--tree-selected-bg)",nodeHoverColor:"var(--primary-color)",nodeSelectedBg:"var(--tree-selected-bg)",nodeSelectedColor:"var(--primary-color)",colorText:"var(--text-primary)"},...r?.components??{}}};return P.jsxRuntimeExports.jsx(X.ConfigProvider,{locale:oh,theme:s,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},getPopupContainer:n,children:e})},im=({children:e})=>{const{activeDetailItem:r}=Fe.useMenuViewStore();return P.jsxRuntimeExports.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:P.jsxRuntimeExports.jsx("div",{className:"bwgview-content",children:P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[P.jsxRuntimeExports.jsx(X.Breadcrumb,{separator:">",items:[{title:r?.prntInfo?.menuNm},{title:r?.viewLabel}]}),e]})})})},Qi=({title:e,icons:r,tooltip:t,iconVisible:i=!0,paddingBottom:n=0,marginBottom:o=0,children:a})=>{const s=In.AppstoreTwoTone;return z.useMemo(()=>r?.type==="antd"&&r.icon&&In[r.icon]||s,[r?.type,r?.icon]),P.jsxRuntimeExports.jsx(X.Flex,{vertical:!0,style:{width:"100%"},children:P.jsxRuntimeExports.jsxs("div",{className:`bwg-title-box ${n?`pb${n}`:""} ${o?`mb${o}`:""}`,style:{display:"flex",justifyContent:"space-between"},children:[P.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-left",children:P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[P.jsxRuntimeExports.jsx(X.Typography.Title,{level:4,children:P.jsxRuntimeExports.jsx("span",{children:e})}),t&&P.jsxRuntimeExports.jsx(X.Tooltip,{title:t.title,placement:t.placement,children:P.jsxRuntimeExports.jsx(In.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),P.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-right",children:P.jsxRuntimeExports.jsx(X.Flex,{gap:6,children:a})})]})})},{Panel:Nu}=X.Collapse,Ji=z.forwardRef(({reqRows:e,subRows:r,border:t=!1,labelDisplay:i,header:n},o)=>{const[a]=X.Form.useForm(),[s,f]=z.useState("1"),d=()=>i?{flex:i.md||i.lg||i.sm||"100px"}:{flex:"100px"};z.useImperativeHandle(o,()=>({getFormData:()=>a.getFieldsValue(),setFormData:l=>{a.setFieldsValue(l)},resetForm:()=>{a.resetFields()},validateForm:async()=>{try{return{success:!0,data:await a.validateFields()}}catch(l){return{success:!1,error:l}}}}));const c=()=>{f(l=>l.includes("subRows")?l.filter(u=>u!=="subRows"):[...l,"subRows"])};return P.jsxRuntimeExports.jsxs("div",{style:t?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[n&&P.jsxRuntimeExports.jsx(Qi,{title:n.title,children:n.buttons}),P.jsxRuntimeExports.jsx(X.Form,{form:a,layout:"inline",style:{width:"100%",paddingBottom:e||r?"10px":"0px"},labelCol:d(),labelAlign:"left",children:P.jsxRuntimeExports.jsxs("div",{style:{position:"relative",width:"100%"},children:[r&&P.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:s.includes("subRows")?P.jsxRuntimeExports.jsx(X.Tooltip,{title:"접기",children:P.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:c,children:P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:P.jsxRuntimeExports.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"})})})}):P.jsxRuntimeExports.jsx(X.Tooltip,{title:"펼치기",children:P.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:c,children:P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:P.jsxRuntimeExports.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"})})})})}),P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Collapse:{}}},children:P.jsxRuntimeExports.jsxs(X.Collapse,{activeKey:["reqRows",...s.includes("subRows")?["subRows"]:[]],onChange:f,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&P.jsxRuntimeExports.jsx(Nu,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),r&&P.jsxRuntimeExports.jsx(Nu,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:r},"subRows")]})})]})})]})}),om=({children:e,showSearchBox:r,showCloseButton:t=!0,showEyesButton:i=!1,shotSettingButton:n=!0,styles:o,...a})=>{const[s,f]=z.useState(!0),[d,c]=z.useState(()=>{const y=a.placement;return y==="left"||y==="right"||y==="top"||y==="bottom"?y:"bottom"}),[l,u]=z.useState(!1),v=(y=>{const m={wrapper:{...a.width&&{width:a.width},...a.height&&{height:a.height},margin:"0 auto"},content:{},header:{backgroundColor:"var(--drawer-header-bg)",color:"var(--text-primary)"}};switch(y){case"bottom":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...m.header,borderRadius:"30px 30px 0 0"}};case"top":return{...m,wrapper:{...m.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...m.header}};case"left":return{...m,wrapper:{...m.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...m.header,borderRadius:"0 30px 0 0"}};case"right":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...m.header,borderRadius:"30px 0 0 0"}};default:return m}})(d),g={wrapper:{...v?.wrapper,...o?.wrapper},content:{...v?.content,...o?.content},header:{...v?.header,...o?.header}},p=()=>{const y=[];if(n){const m=[{key:"top",label:"상단",icon:P.jsxRuntimeExports.jsx(Ce.CaretUpOutlined,{})},{key:"right",label:"우측",icon:P.jsxRuntimeExports.jsx(Ce.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:P.jsxRuntimeExports.jsx(Ce.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:P.jsxRuntimeExports.jsx(Ce.CaretLeftOutlined,{})}],x=P.jsxRuntimeExports.jsx(X.Space.Compact,{children:m.map(b=>P.jsxRuntimeExports.jsx(X.Button,{type:d===b.key?"primary":"default",size:"small",onClick:()=>{c(b.key),u(!1)},icon:b.icon},b.key))});y.push(P.jsxRuntimeExports.jsx(X.Popover,{content:x,trigger:"click",placement:"left",open:l,onOpenChange:u,children:P.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return i&&y.push(P.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:s?"배경 보기":"배경 숨기기",zIndex:2100,children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>f(!s)})},"eyes")),a.extra&&y.push(P.jsxRuntimeExports.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),t&&y.push(P.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),y};return P.jsxRuntimeExports.jsx(X.Drawer,{className:"main-drawer",footer:!0,...a,placement:d,styles:g,maskClosable:!1,closable:!1,mask:s,extra:P.jsxRuntimeExports.jsx(X.Space,{size:"small",align:"center",children:p()}),afterOpenChange:y=>{y||(f(!0),c(a.placement)),a.afterOpenChange?.(y)},destroyOnHidden:!0,children:r?P.jsxRuntimeExports.jsxs(jr,{type:"vertical",children:[P.jsxRuntimeExports.jsxs(X.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[P.jsxRuntimeExports.jsx("div",{children:r.title}),P.jsxRuntimeExports.jsx(X.Flex,{gap:2,children:r.extra})]}),P.jsxRuntimeExports.jsx(Ji,{...r.searchBox}),P.jsxRuntimeExports.jsx(X.Divider,{}),e]}):e})};var ki={exports:{}},am=ki.exports,Iu;function sm(){return Iu||(Iu=1,(function(e,r){(function(t,i){e.exports=i()})(am,function(){return(function(t){function i(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}var n={};return i.m=t,i.c=n,i.i=function(o){return o},i.d=function(o,a,s){i.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:s})},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=38)})([function(t,i){function n(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}t.exports=n},function(t,i,n){var o=n(22),a=typeof self=="object"&&self&&self.Object===Object&&self,s=o||a||Function("return this")();t.exports=s},function(t,i){function n(o){return o!=null&&typeof o=="object"}t.exports=n},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=n(75),s=n(76),f=n(77),d=n(78),c=n(79);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=f,o.prototype.has=d,o.prototype.set=c,t.exports=o},function(t,i,n){function o(s,f){for(var d=s.length;d--;)if(a(s[d][0],f))return d;return-1}var a=n(8);t.exports=o},function(t,i,n){function o(u){return u==null?u===void 0?c:d:l&&l in Object(u)?s(u):f(u)}var a=n(16),s=n(64),f=n(87),d="[object Null]",c="[object Undefined]",l=a?a.toStringTag:void 0;t.exports=o},function(t,i,n){function o(s,f){var d=s.__data__;return a(f)?d[typeof f=="string"?"string":"hash"]:d.map}var a=n(73);t.exports=o},function(t,i,n){var o=n(11),a=o(Object,"create");t.exports=a},function(t,i){function n(o,a){return o===a||o!==o&&a!==a}t.exports=n},function(t,i,n){function o(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}n.d(i,"a",function(){return a});var a=function s(f){o(this,s),this.onCreate=function(){},this.onDestroy=function(){},this.onUpdate=function(){},this.overlay=f.overlay,this.img=f.img,this.options=f.options,this.requestUpdate=f.onUpdate}},function(t,i,n){function o(s,f,d){f=="__proto__"&&a?a(s,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):s[f]=d}var a=n(21);t.exports=o},function(t,i,n){function o(f,d){var c=s(f,d);return a(c)?c:void 0}var a=n(48),s=n(65);t.exports=o},function(t,i,n){function o(f){return f!=null&&s(f.length)&&!a(f)}var a=n(13),s=n(30);t.exports=o},function(t,i,n){function o(u){if(!s(u))return!1;var h=a(u);return h==d||h==c||h==f||h==l}var a=n(5),s=n(0),f="[object AsyncFunction]",d="[object Function]",c="[object GeneratorFunction]",l="[object Proxy]";t.exports=o},function(t,i){t.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(t,i,n){var o=n(11),a=n(1),s=o(a,"Map");t.exports=s},function(t,i,n){var o=n(1),a=o.Symbol;t.exports=a},function(t,i){function n(o,a,s){switch(s.length){case 0:return o.call(a);case 1:return o.call(a,s[0]);case 2:return o.call(a,s[0],s[1]);case 3:return o.call(a,s[0],s[1],s[2])}return o.apply(a,s)}t.exports=n},function(t,i,n){function o(f,d,c){(c===void 0||s(f[d],c))&&(c!==void 0||d in f)||a(f,d,c)}var a=n(10),s=n(8);t.exports=o},function(t,i,n){function o(u,h,v,g,p){u!==h&&f(h,function(y,m){if(c(y))p||(p=new a),d(u,h,m,v,o,g,p);else{var x=g?g(u[m],y,m+"",u,h,p):void 0;x===void 0&&(x=y),s(u,m,x)}},l)}var a=n(41),s=n(18),f=n(46),d=n(51),c=n(0),l=n(32);t.exports=o},function(t,i,n){function o(d,c){return f(s(d,c,a),d+"")}var a=n(26),s=n(89),f=n(90);t.exports=o},function(t,i,n){var o=n(11),a=(function(){try{var s=o(Object,"defineProperty");return s({},"",{}),s}catch{}})();t.exports=a},function(t,i,n){(function(o){var a=typeof o=="object"&&o&&o.Object===Object&&o;t.exports=a}).call(i,n(107))},function(t,i,n){var o=n(88),a=o(Object.getPrototypeOf,Object);t.exports=a},function(t,i){function n(s,f){return!!(f=f??o)&&(typeof s=="number"||a.test(s))&&s>-1&&s%1==0&&s<f}var o=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,i){function n(a){var s=a&&a.constructor;return a===(typeof s=="function"&&s.prototype||o)}var o=Object.prototype;t.exports=n},function(t,i){function n(o){return o}t.exports=n},function(t,i,n){var o=n(47),a=n(2),s=Object.prototype,f=s.hasOwnProperty,d=s.propertyIsEnumerable,c=o((function(){return arguments})())?o:function(l){return a(l)&&f.call(l,"callee")&&!d.call(l,"callee")};t.exports=c},function(t,i){var n=Array.isArray;t.exports=n},function(t,i,n){(function(o){var a=n(1),s=n(102),f=typeof i=="object"&&i&&!i.nodeType&&i,d=f&&typeof o=="object"&&o&&!o.nodeType&&o,c=d&&d.exports===f,l=c?a.Buffer:void 0,u=l?l.isBuffer:void 0,h=u||s;o.exports=h}).call(i,n(14)(t))},function(t,i){function n(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=o}var o=9007199254740991;t.exports=n},function(t,i,n){var o=n(49),a=n(54),s=n(86),f=s&&s.isTypedArray,d=f?a(f):o;t.exports=d},function(t,i,n){function o(d){return f(d)?a(d,!0):s(d)}var a=n(43),s=n(50),f=n(12);t.exports=o},function(t,i,n){i.a={modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"-12px",right:"0",left:"0",height:"0",minWidth:"100px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"#333",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{display:"inline-block",width:"24px",height:"24px",background:"white",border:"1px solid #999",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}}},function(t,i,n){function o(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function a(c,l){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?c:l}function s(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}var f=n(9);n.d(i,"a",function(){return d});var d=(function(c){function l(){var u,h,v,g;o(this,l);for(var p=arguments.length,y=Array(p),m=0;m<p;m++)y[m]=arguments[m];return h=v=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(y))),v.onCreate=function(){v.display=document.createElement("div"),Object.assign(v.display.style,v.options.displayStyles),v.overlay.appendChild(v.display)},v.onDestroy=function(){},v.onUpdate=function(){if(v.display&&v.img){var x=v.getCurrentSize();if(v.display.innerHTML=x.join(" × "),x[0]>120&&x[1]>30)Object.assign(v.display.style,{right:"4px",bottom:"4px",left:"auto"});else if(v.img.style.float=="right"){var b=v.display.getBoundingClientRect();Object.assign(v.display.style,{right:"auto",bottom:"-"+(b.height+4)+"px",left:"-"+(b.width+4)+"px"})}else{var E=v.display.getBoundingClientRect();Object.assign(v.display.style,{right:"-"+(E.width+4)+"px",bottom:"-"+(E.height+4)+"px",left:"auto"})}}},v.getCurrentSize=function(){return[v.img.width,Math.round(v.img.width/v.img.naturalWidth*v.img.naturalHeight)]},g=h,a(v,g)}return s(l,c),l})(f.a)},function(t,i,n){function o(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function a(c,l){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?c:l}function s(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}var f=n(9);n.d(i,"a",function(){return d});var d=(function(c){function l(){var u,h,v,g;o(this,l);for(var p=arguments.length,y=Array(p),m=0;m<p;m++)y[m]=arguments[m];return h=v=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(y))),v.onCreate=function(){v.boxes=[],v.addBox("nwse-resize"),v.addBox("nesw-resize"),v.addBox("nwse-resize"),v.addBox("nesw-resize"),v.positionBoxes()},v.onDestroy=function(){v.setCursor("")},v.positionBoxes=function(){var x=-parseFloat(v.options.handleStyles.width)/2+"px",b=-parseFloat(v.options.handleStyles.height)/2+"px";[{left:x,top:b},{right:x,top:b},{right:x,bottom:b},{left:x,bottom:b}].forEach(function(E,S){Object.assign(v.boxes[S].style,E)})},v.addBox=function(x){var b=document.createElement("div");Object.assign(b.style,v.options.handleStyles),b.style.cursor=x,b.style.width=v.options.handleStyles.width+"px",b.style.height=v.options.handleStyles.height+"px",b.addEventListener("mousedown",v.handleMousedown,!1),v.overlay.appendChild(b),v.boxes.push(b)},v.handleMousedown=function(x){v.dragBox=x.target,v.dragStartX=x.clientX,v.preDragWidth=v.img.width||v.img.naturalWidth,v.setCursor(v.dragBox.style.cursor),document.addEventListener("mousemove",v.handleDrag,!1),document.addEventListener("mouseup",v.handleMouseup,!1)},v.handleMouseup=function(){v.setCursor(""),document.removeEventListener("mousemove",v.handleDrag),document.removeEventListener("mouseup",v.handleMouseup)},v.handleDrag=function(x){if(v.img){var b=x.clientX-v.dragStartX;v.dragBox===v.boxes[0]||v.dragBox===v.boxes[3]?v.img.width=Math.round(v.preDragWidth-b):v.img.width=Math.round(v.preDragWidth+b),v.requestUpdate()}},v.setCursor=function(x){[document.body,v.img].forEach(function(b){b.style.cursor=x})},g=h,a(v,g)}return s(l,c),l})(f.a)},function(t,i,n){function o(b,E){if(!(b instanceof E))throw new TypeError("Cannot call a class as a function")}function a(b,E){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!E||typeof E!="object"&&typeof E!="function"?b:E}function s(b,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);b.prototype=Object.create(E&&E.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(b,E):b.__proto__=E)}var f=n(105),d=n.n(f),c=n(104),l=n.n(c),u=n(106),h=n.n(u),v=n(9);n.d(i,"a",function(){return x});var g={},p={},y={},m={},x=(function(b){function E(){var S,w,_,A;o(this,E);for(var R=arguments.length,C=Array(R),O=0;O<R;O++)C[O]=arguments[O];return w=_=a(this,(S=E.__proto__||Object.getPrototypeOf(E)).call.apply(S,[this].concat(C))),_.onCreate=function(j){g=j,p=new g.Attributor.Style("float","float"),y=new g.Attributor.Style("margin","margin"),m=new g.Attributor.Style("display","display"),_.toolbar=document.createElement("div"),Object.assign(_.toolbar.style,_.options.toolbarStyles),_.overlay.appendChild(_.toolbar),_._defineAlignments(),_._addToolbarButtons()},_.onDestroy=function(){},_.onUpdate=function(){},_._defineAlignments=function(){_.alignments=[{icon:d.a,apply:function(){m.add(_.img,"inline"),p.add(_.img,"left"),y.add(_.img,"0 1em 1em 0")},isApplied:function(){return p.value(_.img)=="left"}},{icon:l.a,apply:function(){m.add(_.img,"block"),p.remove(_.img),y.add(_.img,"auto")},isApplied:function(){return y.value(_.img)=="auto"}},{icon:h.a,apply:function(){m.add(_.img,"inline"),p.add(_.img,"right"),y.add(_.img,"0 0 1em 1em")},isApplied:function(){return p.value(_.img)=="right"}}]},_._addToolbarButtons=function(){var j=[];_.alignments.forEach(function(k,I){var B=document.createElement("span");j.push(B),B.innerHTML=k.icon,B.addEventListener("click",function(){j.forEach(function(V){return V.style.filter=""}),k.isApplied()?(p.remove(_.img),y.remove(_.img),m.remove(_.img)):(_._selectButton(B),k.apply()),_.requestUpdate()}),Object.assign(B.style,_.options.toolbarButtonStyles),I>0&&(B.style.borderLeftWidth="0"),Object.assign(B.children[0].style,_.options.toolbarButtonSvgStyles),k.isApplied()&&_._selectButton(B),_.toolbar.appendChild(B)})},_._selectButton=function(j){j.style.filter="invert(20%)"},A=w,a(_,A)}return s(E,b),E})(v.a)},function(t,i,n){var o=n(17),a=n(20),s=n(63),f=n(101),d=a(function(c){return c.push(void 0,s),o(f,void 0,c)});t.exports=d},function(t,i,n){function o(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(i,"__esModule",{value:!0});var a=n(37),s=n.n(a),f=n(33),d=n(34),c=n(36),l=n(35),u={DisplaySize:d.a,Toolbar:c.a,Resize:l.a},h=function v(g){var p=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,v),this.initializeModules=function(){p.removeModules(),p.modules=p.moduleClasses.map(function(x){return new(u[x]||x)(p)}),p.modules.forEach(function(x){x.onCreate(p.parchment)}),p.onUpdate()},this.onUpdate=function(){p.repositionElements(),p.modules.forEach(function(x){x.onUpdate()})},this.removeModules=function(){p.modules.forEach(function(x){x.onDestroy()}),p.modules=[]},this.handleClick=function(x){if(x.target&&x.target.tagName&&x.target.tagName.toUpperCase()==="IMG"){if(p.img===x.target)return;p.img&&p.hide(),p.show(x.target)}else p.img&&p.hide()},this.show=function(x){p.img=x,p.showOverlay(),p.initializeModules()},this.showOverlay=function(){p.overlay&&p.hideOverlay(),p.quill.setSelection(null),p.setUserSelect("none"),document.addEventListener("keyup",p.checkImage,!0),p.quill.root.addEventListener("input",p.checkImage,!0),p.overlay=document.createElement("div"),Object.assign(p.overlay.style,p.options.overlayStyles),p.quill.root.parentNode.appendChild(p.overlay),p.repositionElements()},this.hideOverlay=function(){p.overlay&&(p.quill.root.parentNode.removeChild(p.overlay),p.overlay=void 0,document.removeEventListener("keyup",p.checkImage),p.quill.root.removeEventListener("input",p.checkImage),p.setUserSelect(""))},this.repositionElements=function(){if(p.overlay&&p.img){var x=p.quill.root.parentNode,b=p.img.getBoundingClientRect(),E=x.getBoundingClientRect();Object.assign(p.overlay.style,{left:b.left-E.left-1+x.scrollLeft+"px",top:b.top-E.top+x.scrollTop+"px",width:b.width+"px",height:b.height+"px"})}},this.hide=function(){p.hideOverlay(),p.removeModules(),p.img=void 0},this.setUserSelect=function(x){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(b){p.quill.root.style[b]=x,document.documentElement.style[b]=x})},this.checkImage=function(x){p.img&&(x.keyCode!=46&&x.keyCode!=8||window.Quill.find(p.img).deleteAt(0),p.hide())},this.quill=g;var m=!1;y.modules&&(m=y.modules.slice()),y.parchment&&(this.parchment=y.parchment),this.options=s()({},y,f.a),m!==!1&&(this.options.modules=m),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]};i.default=h,window.Quill&&window.Quill.register("modules/imageResize",h)},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=n(66),s=n(67),f=n(68),d=n(69),c=n(70);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=f,o.prototype.has=d,o.prototype.set=c,t.exports=o},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=n(80),s=n(81),f=n(82),d=n(83),c=n(84);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=f,o.prototype.has=d,o.prototype.set=c,t.exports=o},function(t,i,n){function o(u){var h=this.__data__=new a(u);this.size=h.size}var a=n(3),s=n(92),f=n(93),d=n(94),c=n(95),l=n(96);o.prototype.clear=s,o.prototype.delete=f,o.prototype.get=d,o.prototype.has=c,o.prototype.set=l,t.exports=o},function(t,i,n){var o=n(1),a=o.Uint8Array;t.exports=a},function(t,i,n){function o(v,g){var p=f(v),y=!p&&s(v),m=!p&&!y&&d(v),x=!p&&!y&&!m&&l(v),b=p||y||m||x,E=b?a(v.length,String):[],S=E.length;for(var w in v)!g&&!h.call(v,w)||b&&(w=="length"||m&&(w=="offset"||w=="parent")||x&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||c(w,S))||E.push(w);return E}var a=n(53),s=n(27),f=n(28),d=n(29),c=n(24),l=n(31),u=Object.prototype,h=u.hasOwnProperty;t.exports=o},function(t,i,n){function o(c,l,u){var h=c[l];d.call(c,l)&&s(h,u)&&(u!==void 0||l in c)||a(c,l,u)}var a=n(10),s=n(8),f=Object.prototype,d=f.hasOwnProperty;t.exports=o},function(t,i,n){var o=n(0),a=Object.create,s=(function(){function f(){}return function(d){if(!o(d))return{};if(a)return a(d);f.prototype=d;var c=new f;return f.prototype=void 0,c}})();t.exports=s},function(t,i,n){var o=n(62),a=o();t.exports=a},function(t,i,n){function o(d){return s(d)&&a(d)==f}var a=n(5),s=n(2),f="[object Arguments]";t.exports=o},function(t,i,n){function o(p){return!(!f(p)||s(p))&&(a(p)?g:c).test(d(p))}var a=n(13),s=n(74),f=n(0),d=n(97),c=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,h=l.toString,v=u.hasOwnProperty,g=RegExp("^"+h.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,i,n){function o(c){return f(c)&&s(c.length)&&!!d[a(c)]}var a=n(5),s=n(30),f=n(2),d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d["[object Arguments]"]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d["[object Map]"]=d["[object Number]"]=d["[object Object]"]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1,t.exports=o},function(t,i,n){function o(l){if(!a(l))return f(l);var u=s(l),h=[];for(var v in l)(v!="constructor"||!u&&c.call(l,v))&&h.push(v);return h}var a=n(0),s=n(25),f=n(85),d=Object.prototype,c=d.hasOwnProperty;t.exports=o},function(t,i,n){function o(b,E,S,w,_,A,R){var C=b[S],O=E[S],j=R.get(O);if(j)return void a(b,S,j);var k=A?A(C,O,S+"",b,E,R):void 0,I=k===void 0;if(I){var B=u(O),V=!B&&v(O),W=!B&&!V&&m(O);k=O,B||V||W?u(C)?k=C:h(C)?k=d(C):V?(I=!1,k=s(O,!0)):W?(I=!1,k=f(O,!0)):k=[]:y(O)||l(O)?(k=C,l(C)?k=x(C):(!p(C)||w&&g(C))&&(k=c(O))):I=!1}I&&(R.set(O,k),_(k,O,w,A,R),R.delete(O)),a(b,S,k)}var a=n(18),s=n(56),f=n(57),d=n(58),c=n(71),l=n(27),u=n(28),h=n(99),v=n(29),g=n(13),p=n(0),y=n(100),m=n(31),x=n(103);t.exports=o},function(t,i,n){var o=n(98),a=n(21),s=n(26),f=a?function(d,c){return a(d,"toString",{configurable:!0,enumerable:!1,value:o(c),writable:!0})}:s;t.exports=f},function(t,i){function n(o,a){for(var s=-1,f=Array(o);++s<o;)f[s]=a(s);return f}t.exports=n},function(t,i){function n(o){return function(a){return o(a)}}t.exports=n},function(t,i,n){function o(s){var f=new s.constructor(s.byteLength);return new a(f).set(new a(s)),f}var a=n(42);t.exports=o},function(t,i,n){(function(o){function a(h,v){if(v)return h.slice();var g=h.length,p=u?u(g):new h.constructor(g);return h.copy(p),p}var s=n(1),f=typeof i=="object"&&i&&!i.nodeType&&i,d=f&&typeof o=="object"&&o&&!o.nodeType&&o,c=d&&d.exports===f,l=c?s.Buffer:void 0,u=l?l.allocUnsafe:void 0;o.exports=a}).call(i,n(14)(t))},function(t,i,n){function o(s,f){var d=f?a(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}var a=n(55);t.exports=o},function(t,i){function n(o,a){var s=-1,f=o.length;for(a||(a=Array(f));++s<f;)a[s]=o[s];return a}t.exports=n},function(t,i,n){function o(f,d,c,l){var u=!c;c||(c={});for(var h=-1,v=d.length;++h<v;){var g=d[h],p=l?l(c[g],f[g],g,c,f):void 0;p===void 0&&(p=f[g]),u?s(c,g,p):a(c,g,p)}return c}var a=n(44),s=n(10);t.exports=o},function(t,i,n){var o=n(1),a=o["__core-js_shared__"];t.exports=a},function(t,i,n){function o(f){return a(function(d,c){var l=-1,u=c.length,h=u>1?c[u-1]:void 0,v=u>2?c[2]:void 0;for(h=f.length>3&&typeof h=="function"?(u--,h):void 0,v&&s(c[0],c[1],v)&&(h=u<3?void 0:h,u=1),d=Object(d);++l<u;){var g=c[l];g&&f(d,g,l,h)}return d})}var a=n(20),s=n(72);t.exports=o},function(t,i){function n(o){return function(a,s,f){for(var d=-1,c=Object(a),l=f(a),u=l.length;u--;){var h=l[o?u:++d];if(s(c[h],h,c)===!1)break}return a}}t.exports=n},function(t,i,n){function o(f,d,c,l,u,h){return s(f)&&s(d)&&(h.set(d,f),a(f,d,void 0,o,h),h.delete(d)),f}var a=n(19),s=n(0);t.exports=o},function(t,i,n){function o(l){var u=f.call(l,c),h=l[c];try{l[c]=void 0}catch{}var v=d.call(l);return u?l[c]=h:delete l[c],v}var a=n(16),s=Object.prototype,f=s.hasOwnProperty,d=s.toString,c=a?a.toStringTag:void 0;t.exports=o},function(t,i){function n(o,a){return o?.[a]}t.exports=n},function(t,i,n){function o(){this.__data__=a?a(null):{},this.size=0}var a=n(7);t.exports=o},function(t,i){function n(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}t.exports=n},function(t,i,n){function o(c){var l=this.__data__;if(a){var u=l[c];return u===s?void 0:u}return d.call(l,c)?l[c]:void 0}var a=n(7),s="__lodash_hash_undefined__",f=Object.prototype,d=f.hasOwnProperty;t.exports=o},function(t,i,n){function o(d){var c=this.__data__;return a?c[d]!==void 0:f.call(c,d)}var a=n(7),s=Object.prototype,f=s.hasOwnProperty;t.exports=o},function(t,i,n){function o(f,d){var c=this.__data__;return this.size+=this.has(f)?0:1,c[f]=a&&d===void 0?s:d,this}var a=n(7),s="__lodash_hash_undefined__";t.exports=o},function(t,i,n){function o(d){return typeof d.constructor!="function"||f(d)?{}:a(s(d))}var a=n(45),s=n(23),f=n(25);t.exports=o},function(t,i,n){function o(c,l,u){if(!d(u))return!1;var h=typeof l;return!!(h=="number"?s(u)&&f(l,u.length):h=="string"&&l in u)&&a(u[l],c)}var a=n(8),s=n(12),f=n(24),d=n(0);t.exports=o},function(t,i){function n(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}t.exports=n},function(t,i,n){function o(f){return!!s&&s in f}var a=n(60),s=(function(){var f=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})();t.exports=o},function(t,i){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,i,n){function o(d){var c=this.__data__,l=a(c,d);return!(l<0)&&(l==c.length-1?c.pop():f.call(c,l,1),--this.size,!0)}var a=n(4),s=Array.prototype,f=s.splice;t.exports=o},function(t,i,n){function o(s){var f=this.__data__,d=a(f,s);return d<0?void 0:f[d][1]}var a=n(4);t.exports=o},function(t,i,n){function o(s){return a(this.__data__,s)>-1}var a=n(4);t.exports=o},function(t,i,n){function o(s,f){var d=this.__data__,c=a(d,s);return c<0?(++this.size,d.push([s,f])):d[c][1]=f,this}var a=n(4);t.exports=o},function(t,i,n){function o(){this.size=0,this.__data__={hash:new a,map:new(f||s),string:new a}}var a=n(39),s=n(3),f=n(15);t.exports=o},function(t,i,n){function o(s){var f=a(this,s).delete(s);return this.size-=f?1:0,f}var a=n(6);t.exports=o},function(t,i,n){function o(s){return a(this,s).get(s)}var a=n(6);t.exports=o},function(t,i,n){function o(s){return a(this,s).has(s)}var a=n(6);t.exports=o},function(t,i,n){function o(s,f){var d=a(this,s),c=d.size;return d.set(s,f),this.size+=d.size==c?0:1,this}var a=n(6);t.exports=o},function(t,i){function n(o){var a=[];if(o!=null)for(var s in Object(o))a.push(s);return a}t.exports=n},function(t,i,n){(function(o){var a=n(22),s=typeof i=="object"&&i&&!i.nodeType&&i,f=s&&typeof o=="object"&&o&&!o.nodeType&&o,d=f&&f.exports===s,c=d&&a.process,l=(function(){try{return c&&c.binding&&c.binding("util")}catch{}})();o.exports=l}).call(i,n(14)(t))},function(t,i){function n(s){return a.call(s)}var o=Object.prototype,a=o.toString;t.exports=n},function(t,i){function n(o,a){return function(s){return o(a(s))}}t.exports=n},function(t,i,n){function o(f,d,c){return d=s(d===void 0?f.length-1:d,0),function(){for(var l=arguments,u=-1,h=s(l.length-d,0),v=Array(h);++u<h;)v[u]=l[d+u];u=-1;for(var g=Array(d+1);++u<d;)g[u]=l[u];return g[d]=c(v),a(f,this,g)}}var a=n(17),s=Math.max;t.exports=o},function(t,i,n){var o=n(52),a=n(91),s=a(o);t.exports=s},function(t,i){function n(f){var d=0,c=0;return function(){var l=s(),u=a-(l-c);if(c=l,u>0){if(++d>=o)return arguments[0]}else d=0;return f.apply(void 0,arguments)}}var o=800,a=16,s=Date.now;t.exports=n},function(t,i,n){function o(){this.__data__=new a,this.size=0}var a=n(3);t.exports=o},function(t,i){function n(o){var a=this.__data__,s=a.delete(o);return this.size=a.size,s}t.exports=n},function(t,i){function n(o){return this.__data__.get(o)}t.exports=n},function(t,i){function n(o){return this.__data__.has(o)}t.exports=n},function(t,i,n){function o(c,l){var u=this.__data__;if(u instanceof a){var h=u.__data__;if(!s||h.length<d-1)return h.push([c,l]),this.size=++u.size,this;u=this.__data__=new f(h)}return u.set(c,l),this.size=u.size,this}var a=n(3),s=n(15),f=n(40),d=200;t.exports=o},function(t,i){function n(s){if(s!=null){try{return a.call(s)}catch{}try{return s+""}catch{}}return""}var o=Function.prototype,a=o.toString;t.exports=n},function(t,i){function n(o){return function(){return o}}t.exports=n},function(t,i,n){function o(f){return s(f)&&a(f)}var a=n(12),s=n(2);t.exports=o},function(t,i,n){function o(g){if(!f(g)||a(g)!=d)return!1;var p=s(g);if(p===null)return!0;var y=h.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&u.call(y)==v}var a=n(5),s=n(23),f=n(2),d="[object Object]",c=Function.prototype,l=Object.prototype,u=c.toString,h=l.hasOwnProperty,v=u.call(Object);t.exports=o},function(t,i,n){var o=n(19),a=n(61),s=a(function(f,d,c,l){o(f,d,c,l)});t.exports=s},function(t,i){function n(){return!1}t.exports=n},function(t,i,n){function o(f){return a(f,s(f))}var a=n(59),s=n(32);t.exports=o},function(t,i){t.exports=`<svg viewbox="0 0 18 18">
|
|
2
2
|
<line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>
|
|
3
3
|
<line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"></line>
|
|
4
4
|
<line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"></line>
|
|
@@ -19,30 +19,30 @@
|
|
|
19
19
|
`;for(var h=f.iterator(this.ops),v=new c,g=0;h.hasNext();){if(h.peekType()!=="insert")return;var p=h.peek(),y=f.length(p)-h.peekLength(),m=typeof p.insert=="string"?p.insert.indexOf(u,y)-y:-1;if(m<0)v.push(h.next());else if(m>0)v.push(h.next(m));else{if(l(v,h.next(1).attributes||{},g)===!1)return;g+=1,v=new c}}v.length()>0&&l(v,{},g)},c.prototype.transform=function(l,u){if(u=!!u,typeof l=="number")return this.transformPosition(l,u);for(var h=f.iterator(this.ops),v=f.iterator(l.ops),g=new c;h.hasNext()||v.hasNext();)if(h.peekType()==="insert"&&(u||v.peekType()!=="insert"))g.retain(f.length(h.next()));else if(v.peekType()==="insert")g.push(v.next());else{var p=Math.min(h.peekLength(),v.peekLength()),y=h.next(p),m=v.next(p);if(y.delete)continue;m.delete?g.push(m):g.retain(p,f.attributes.transform(y.attributes,m.attributes,u))}return g.chop()},c.prototype.transformPosition=function(l,u){u=!!u;for(var h=f.iterator(this.ops),v=0;h.hasNext()&&v<=l;){var g=h.peekLength(),p=h.peekType();if(h.next(),p==="delete"){l-=Math.min(g,l-v);continue}else p==="insert"&&(v<l||!u)&&(l+=g);v+=g}return l},t.exports=c}),(function(t,i){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f=function(h){return typeof Array.isArray=="function"?Array.isArray(h):o.call(h)==="[object Array]"},d=function(h){if(!h||o.call(h)!=="[object Object]")return!1;var v=n.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&n.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!v&&!g)return!1;var p;for(p in h);return typeof p>"u"||n.call(h,p)},c=function(h,v){a&&v.name==="__proto__"?a(h,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):h[v.name]=v.newValue},l=function(h,v){if(v==="__proto__")if(n.call(h,v)){if(s)return s(h,v).value}else return;return h[v]};t.exports=function u(){var h,v,g,p,y,m,x=arguments[0],b=1,E=arguments.length,S=!1;for(typeof x=="boolean"&&(S=x,x=arguments[1]||{},b=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});b<E;++b)if(h=arguments[b],h!=null)for(v in h)g=l(x,v),p=l(h,v),x!==p&&(S&&p&&(d(p)||(y=f(p)))?(y?(y=!1,m=g&&f(g)?g:[]):m=g&&d(g)?g:{},c(x,{name:v,newValue:u(S,m,p)})):typeof p<"u"&&c(x,{name:v,newValue:p}));return x}}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BlockEmbed=i.bubbleFormats=void 0;var o=(function(){function C(O,j){for(var k=0;k<j.length;k++){var I=j[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(O,I.key,I)}}return function(O,j,k){return j&&C(O.prototype,j),k&&C(O,k),O}})(),a=function C(O,j,k){O===null&&(O=Function.prototype);var I=Object.getOwnPropertyDescriptor(O,j);if(I===void 0){var B=Object.getPrototypeOf(O);return B===null?void 0:C(B,j,k)}else{if("value"in I)return I.value;var V=I.get;return V===void 0?void 0:V.call(k)}},s=n(3),f=x(s),d=n(2),c=x(d),l=n(0),u=x(l),h=n(16),v=x(h),g=n(6),p=x(g),y=n(7),m=x(y);function x(C){return C&&C.__esModule?C:{default:C}}function b(C,O){if(!(C instanceof O))throw new TypeError("Cannot call a class as a function")}function E(C,O){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:C}function S(C,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);C.prototype=Object.create(O&&O.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(C,O):C.__proto__=O)}var w=1,_=(function(C){S(O,C);function O(){return b(this,O),E(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return o(O,[{key:"attach",value:function(){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"attach",this).call(this),this.attributes=new u.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new c.default().insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(k,I){var B=u.default.query(k,u.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,I)}},{key:"formatAt",value:function(k,I,B,V){this.format(B,V)}},{key:"insertAt",value:function(k,I,B){if(typeof I=="string"&&I.endsWith(`
|
|
20
20
|
`)){var V=u.default.create(A.blotName);this.parent.insertBefore(V,k===0?this:this.next),V.insertAt(0,I.slice(0,-1))}else a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,k,I,B)}}]),O})(u.default.Embed);_.scope=u.default.Scope.BLOCK_BLOT;var A=(function(C){S(O,C);function O(j){b(this,O);var k=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,j));return k.cache={},k}return o(O,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(u.default.Leaf).reduce(function(k,I){return I.length()===0?k:k.insert(I.value(),R(I))},new c.default).insert(`
|
|
21
21
|
`,R(this))),this.cache.delta}},{key:"deleteAt",value:function(k,I){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,k,I),this.cache={}}},{key:"formatAt",value:function(k,I,B,V){I<=0||(u.default.query(B,u.default.Scope.BLOCK)?k+I===this.length()&&this.format(B,V):a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,k,Math.min(I,this.length()-k-1),B,V),this.cache={})}},{key:"insertAt",value:function(k,I,B){if(B!=null)return a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,k,I,B);if(I.length!==0){var V=I.split(`
|
|
22
|
-
`),W=V.shift();W.length>0&&(k<this.length()-1||this.children.tail==null?a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(k,this.length()-1),W):this.children.tail.insertAt(this.children.tail.length(),W),this.cache={});var F=this;V.reduce(function($,N){return F=F.split($,!0),F.insertAt(0,N),N.length},k+W.length)}}},{key:"insertBefore",value:function(k,I){var B=this.children.head;a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,k,I),B instanceof v.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(k,I){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,k,I),this.cache={}}},{key:"optimize",value:function(k){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,k),this.cache={}}},{key:"path",value:function(k){return a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,k,!0)}},{key:"removeChild",value:function(k){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,k),this.cache={}}},{key:"split",value:function(k){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(I&&(k===0||k>=this.length()-w)){var B=this.clone();return k===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var V=a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,k,I);return this.cache={},V}}}]),O})(u.default.Block);A.blotName="block",A.tagName="P",A.defaultChild="break",A.allowedChildren=[p.default,u.default.Embed,m.default];function R(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(O=(0,f.default)(O,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?O:R(C.parent,O)}i.bubbleFormats=R,i.BlockEmbed=_,i.default=A}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.overload=i.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},a=(function(){function F($,N){var L=[],q=!0,K=!1,G=void 0;try{for(var T=$[Symbol.iterator](),D;!(q=(D=T.next()).done)&&(L.push(D.value),!(N&&L.length===N));q=!0);}catch(H){K=!0,G=H}finally{try{!q&&T.return&&T.return()}finally{if(K)throw G}}return L}return function($,N){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return F($,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function F($,N){for(var L=0;L<N.length;L++){var q=N[L];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty($,q.key,q)}}return function($,N,L){return N&&F($.prototype,N),L&&F($,L),$}})();n(50);var f=n(2),d=R(f),c=n(14),l=R(c),u=n(8),h=R(u),v=n(9),g=R(v),p=n(0),y=R(p),m=n(15),x=R(m),b=n(3),E=R(b),S=n(10),w=R(S),_=n(34),A=R(_);function R(F){return F&&F.__esModule?F:{default:F}}function C(F,$,N){return $ in F?Object.defineProperty(F,$,{value:N,enumerable:!0,configurable:!0,writable:!0}):F[$]=N,F}function O(F,$){if(!(F instanceof $))throw new TypeError("Cannot call a class as a function")}var j=(0,w.default)("quill"),k=(function(){s(F,null,[{key:"debug",value:function(N){N===!0&&(N="log"),w.default.level(N)}},{key:"find",value:function(N){return N.__quill||y.default.find(N)}},{key:"import",value:function(N){return this.imports[N]==null&&j.error("Cannot import "+N+". Are you sure it was registered?"),this.imports[N]}},{key:"register",value:function(N,L){var q=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof N!="string"){var G=N.attrName||N.blotName;typeof G=="string"?this.register("formats/"+G,N,L):Object.keys(N).forEach(function(T){q.register(T,N[T],L)})}else this.imports[N]!=null&&!K&&j.warn("Overwriting "+N+" with",L),this.imports[N]=L,(N.startsWith("blots/")||N.startsWith("formats/"))&&L.blotName!=="abstract"?y.default.register(L):N.startsWith("modules")&&typeof L.register=="function"&&L.register()}}]);function F($){var N=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,F),this.options=I($,L),this.container=this.options.container,this.container==null)return j.error("Invalid Quill container",$);this.options.debug&&F.debug(this.options.debug);var q=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new x.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(G){G===h.default.events.TEXT_CHANGE&&N.root.classList.toggle("ql-blank",N.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(G,T){var D=N.selection.lastRange,H=D&&D.length===0?D.index:void 0;B.call(N,function(){return N.editor.update(null,T,H)},G)});var K=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+q+"<p><br></p></div>");this.setContents(K),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(F,[{key:"addContainer",value:function(N){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof N=="string"){var q=N;N=document.createElement("div"),N.classList.add(q)}return this.container.insertBefore(N,L),N}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(N,L,q){var K=this,G=V(N,L,q),T=a(G,4);return N=T[0],L=T[1],q=T[3],B.call(this,function(){return K.editor.deleteText(N,L)},q,N,-1*L)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(N),this.container.classList.toggle("ql-disabled",!N)}},{key:"focus",value:function(){var N=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=N,this.scrollIntoView()}},{key:"format",value:function(N,L){var q=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return B.call(this,function(){var G=q.getSelection(!0),T=new d.default;if(G==null)return T;if(y.default.query(N,y.default.Scope.BLOCK))T=q.editor.formatLine(G.index,G.length,C({},N,L));else{if(G.length===0)return q.selection.format(N,L),T;T=q.editor.formatText(G.index,G.length,C({},N,L))}return q.setSelection(G,h.default.sources.SILENT),T},K)}},{key:"formatLine",value:function(N,L,q,K,G){var T=this,D=void 0,H=V(N,L,q,K,G),U=a(H,4);return N=U[0],L=U[1],D=U[2],G=U[3],B.call(this,function(){return T.editor.formatLine(N,L,D)},G,N,0)}},{key:"formatText",value:function(N,L,q,K,G){var T=this,D=void 0,H=V(N,L,q,K,G),U=a(H,4);return N=U[0],L=U[1],D=U[2],G=U[3],B.call(this,function(){return T.editor.formatText(N,L,D)},G,N,0)}},{key:"getBounds",value:function(N){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=void 0;typeof N=="number"?q=this.selection.getBounds(N,L):q=this.selection.getBounds(N.index,N.length);var K=this.container.getBoundingClientRect();return{bottom:q.bottom-K.top,height:q.height,left:q.left-K.left,right:q.right-K.left,top:q.top-K.top,width:q.width}}},{key:"getContents",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-N,q=V(N,L),K=a(q,2);return N=K[0],L=K[1],this.editor.getContents(N,L)}},{key:"getFormat",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof N=="number"?this.editor.getFormat(N,L):this.editor.getFormat(N.index,N.length)}},{key:"getIndex",value:function(N){return N.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(N){return this.scroll.leaf(N)}},{key:"getLine",value:function(N){return this.scroll.line(N)}},{key:"getLines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof N!="number"?this.scroll.lines(N.index,N.length):this.scroll.lines(N,L)}},{key:"getModule",value:function(N){return this.theme.modules[N]}},{key:"getSelection",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return N&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-N,q=V(N,L),K=a(q,2);return N=K[0],L=K[1],this.editor.getText(N,L)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(N,L,q){var K=this,G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:F.sources.API;return B.call(this,function(){return K.editor.insertEmbed(N,L,q)},G,N)}},{key:"insertText",value:function(N,L,q,K,G){var T=this,D=void 0,H=V(N,0,q,K,G),U=a(H,4);return N=U[0],D=U[2],G=U[3],B.call(this,function(){return T.editor.insertText(N,L,D)},G,N,L.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(N,L,q){this.clipboard.dangerouslyPasteHTML(N,L,q)}},{key:"removeFormat",value:function(N,L,q){var K=this,G=V(N,L,q),T=a(G,4);return N=T[0],L=T[1],q=T[3],B.call(this,function(){return K.editor.removeFormat(N,L)},q,N)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(N){var L=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return B.call(this,function(){N=new d.default(N);var K=L.getLength(),G=L.editor.deleteText(0,K),T=L.editor.applyDelta(N),D=T.ops[T.ops.length-1];D!=null&&typeof D.insert=="string"&&D.insert[D.insert.length-1]===`
|
|
23
|
-
`&&(L.editor.deleteText(L.getLength()-1,1),T.delete(1));var H=G.compose(T);return H},q)}},{key:"setSelection",value:function(N,L,q){if(N==null)this.selection.setRange(null,L||F.sources.API);else{var K=V(N,L,q),G=a(K,4);N=G[0],L=G[1],q=G[3],this.selection.setRange(new m.Range(N,L),q),q!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(N){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,q=new d.default().insert(N);return this.setContents(q,L)}},{key:"update",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,L=this.scroll.update(N);return this.selection.update(N),L}},{key:"updateContents",value:function(N){var L=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return B.call(this,function(){return N=new d.default(N),L.editor.applyDelta(N,q)},q,!0)}}]),F})();k.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},k.events=h.default.events,k.sources=h.default.sources,k.version="1.3.7",k.imports={delta:d.default,parchment:y.default,"core/module":g.default,"core/theme":A.default};function I(F,$){if($=(0,E.default)(!0,{container:F,modules:{clipboard:!0,keyboard:!0,history:!0}},$),!$.theme||$.theme===k.DEFAULTS.theme)$.theme=A.default;else if($.theme=k.import("themes/"+$.theme),$.theme==null)throw new Error("Invalid theme "+$.theme+". Did you register it?");var N=(0,E.default)(!0,{},$.theme.DEFAULTS);[N,$].forEach(function(K){K.modules=K.modules||{},Object.keys(K.modules).forEach(function(G){K.modules[G]===!0&&(K.modules[G]={})})});var L=Object.keys(N.modules).concat(Object.keys($.modules)),q=L.reduce(function(K,G){var T=k.import("modules/"+G);return T==null?j.error("Cannot load "+G+" module. Are you sure you registered it?"):K[G]=T.DEFAULTS||{},K},{});return $.modules!=null&&$.modules.toolbar&&$.modules.toolbar.constructor!==Object&&($.modules.toolbar={container:$.modules.toolbar}),$=(0,E.default)(!0,{},k.DEFAULTS,{modules:q},N,$),["bounds","container","scrollingContainer"].forEach(function(K){typeof $[K]=="string"&&($[K]=document.querySelector($[K]))}),$.modules=Object.keys($.modules).reduce(function(K,G){return $.modules[G]&&(K[G]=$.modules[G]),K},{}),$}function B(F,$,N,L){if(this.options.strict&&!this.isEnabled()&&$===h.default.sources.USER)return new d.default;var q=N==null?null:this.getSelection(),K=this.editor.delta,G=F();if(q!=null&&(N===!0&&(N=q.index),L==null?q=W(q,G,$):L!==0&&(q=W(q,N,L,$)),this.setSelection(q,h.default.sources.SILENT)),G.length()>0){var T,D=[h.default.events.TEXT_CHANGE,G,K,$];if((T=this.emitter).emit.apply(T,[h.default.events.EDITOR_CHANGE].concat(D)),$!==h.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,D)}}return G}function V(F,$,N,L,q){var K={};return typeof F.index=="number"&&typeof F.length=="number"?typeof $!="number"?(q=L,L=N,N=$,$=F.length,F=F.index):($=F.length,F=F.index):typeof $!="number"&&(q=L,L=N,N=$,$=0),(typeof N>"u"?"undefined":o(N))==="object"?(K=N,q=L):typeof N=="string"&&(L!=null?K[N]=L:q=N),q=q||h.default.sources.API,[F,$,K,q]}function W(F,$,N,L){if(F==null)return null;var q=void 0,K=void 0;if($ instanceof d.default){var G=[F.index,F.index+F.length].map(function(U){return $.transformPosition(U,L!==h.default.sources.USER)}),T=a(G,2);q=T[0],K=T[1]}else{var D=[F.index,F.index+F.length].map(function(U){return U<$||U===$&&L===h.default.sources.USER?U:N>=0?U+N:Math.max($,U+N)}),H=a(D,2);q=H[0],K=H[1]}return new m.Range(q,K-q)}i.expandConfig=I,i.overload=V,i.default=k}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(y,m){for(var x=0;x<m.length;x++){var b=m[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,m,x){return m&&p(y.prototype,m),x&&p(y,x),y}})(),a=function p(y,m,x){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,m);if(b===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:p(E,m,x)}else{if("value"in b)return b.value;var S=b.get;return S===void 0?void 0:S.call(x)}},s=n(7),f=l(s),d=n(0),c=l(d);function l(p){return p&&p.__esModule?p:{default:p}}function u(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function h(p,y){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:p}function v(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);p.prototype=Object.create(y&&y.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(p,y):p.__proto__=y)}var g=(function(p){v(y,p);function y(){return u(this,y),h(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"formatAt",value:function(x,b,E,S){if(y.compare(this.statics.blotName,E)<0&&c.default.query(E,c.default.Scope.BLOT)){var w=this.isolate(x,b);S&&w.wrap(E,S)}else a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,x,b,E,S)}},{key:"optimize",value:function(x){if(a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,x),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var b=this.parent.isolate(this.offset(),this.length());this.moveChildren(b),b.wrap(this)}}}],[{key:"compare",value:function(x,b){var E=y.order.indexOf(x),S=y.order.indexOf(b);return E>=0||S>=0?E-S:x===b?0:x<b?-1:1}}]),y})(c.default.Inline);g.allowedChildren=[g,c.default.Embed,f.default],g.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],i.default=g}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function f(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function c(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){c(h,u);function h(){return f(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default.Text);i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function m(x,b){for(var E=0;E<b.length;E++){var S=b[E];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,b,E){return b&&m(x.prototype,b),E&&m(x,E),x}})(),a=function m(x,b,E){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,b);if(S===void 0){var w=Object.getPrototypeOf(x);return w===null?void 0:m(w,b,E)}else{if("value"in S)return S.value;var _=S.get;return _===void 0?void 0:_.call(E)}},s=n(54),f=l(s),d=n(10),c=l(d);function l(m){return m&&m.__esModule?m:{default:m}}function u(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")}function h(m,x){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:m}function v(m,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);m.prototype=Object.create(x&&x.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(m,x):m.__proto__=x)}var g=(0,c.default)("quill:events"),p=["selectionchange","mousedown","mouseup","click"];p.forEach(function(m){document.addEventListener(m,function(){for(var x=arguments.length,b=Array(x),E=0;E<x;E++)b[E]=arguments[E];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var w;(w=S.__quill.emitter).handleDOM.apply(w,b)}})})});var y=(function(m){v(x,m);function x(){u(this,x);var b=h(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));return b.listeners={},b.on("error",g.error),b}return o(x,[{key:"emit",value:function(){g.log.apply(g,arguments),a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(E){for(var S=arguments.length,w=Array(S>1?S-1:0),_=1;_<S;_++)w[_-1]=arguments[_];(this.listeners[E.type]||[]).forEach(function(A){var R=A.node,C=A.handler;(E.target===R||R.contains(E.target))&&C.apply(void 0,[E].concat(w))})}},{key:"listenDOM",value:function(E,S,w){this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push({node:S,handler:w})}}]),x})(f.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},i.default=y}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});function o(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}var a=function s(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,s),this.quill=f,this.options=d};a.DEFAULTS={},i.default=a}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";function s(d){if(o.indexOf(d)<=o.indexOf(a)){for(var c,l=arguments.length,u=Array(l>1?l-1:0),h=1;h<l;h++)u[h-1]=arguments[h];(c=console)[d].apply(c,u)}}function f(d){return o.reduce(function(c,l){return c[l]=s.bind(console,l,d),c},{})}s.level=f.level=function(d){a=d},i.default=f}),(function(t,i,n){var o=Array.prototype.slice,a=n(52),s=n(53),f=t.exports=function(u,h,v){return v||(v={}),u===h?!0:u instanceof Date&&h instanceof Date?u.getTime()===h.getTime():!u||!h||typeof u!="object"&&typeof h!="object"?v.strict?u===h:u==h:l(u,h,v)};function d(u){return u==null}function c(u){return!(!u||typeof u!="object"||typeof u.length!="number"||typeof u.copy!="function"||typeof u.slice!="function"||u.length>0&&typeof u[0]!="number")}function l(u,h,v){var g,p;if(d(u)||d(h)||u.prototype!==h.prototype)return!1;if(s(u))return s(h)?(u=o.call(u),h=o.call(h),f(u,h,v)):!1;if(c(u)){if(!c(h)||u.length!==h.length)return!1;for(g=0;g<u.length;g++)if(u[g]!==h[g])return!1;return!0}try{var y=a(u),m=a(h)}catch{return!1}if(y.length!=m.length)return!1;for(y.sort(),m.sort(),g=y.length-1;g>=0;g--)if(y[g]!=m[g])return!1;for(g=y.length-1;g>=0;g--)if(p=y[g],!f(u[p],h[p],v))return!1;return typeof u==typeof h}}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(1),a=(function(){function s(f,d,c){c===void 0&&(c={}),this.attrName=f,this.keyName=d;var l=o.Scope.TYPE&o.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&o.Scope.LEVEL|l:this.scope=o.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return s.keys=function(f){return[].map.call(f.attributes,function(d){return d.name})},s.prototype.add=function(f,d){return this.canAdd(f,d)?(f.setAttribute(this.keyName,d),!0):!1},s.prototype.canAdd=function(f,d){var c=o.query(f,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof d=="string"?this.whitelist.indexOf(d.replace(/["']/g,""))>-1:this.whitelist.indexOf(d)>-1},s.prototype.remove=function(f){f.removeAttribute(this.keyName)},s.prototype.value=function(f){var d=f.getAttribute(this.keyName);return this.canAdd(f,d)&&d?d:""},s})();i.default=a}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Code=void 0;var o=(function(){function _(A,R){var C=[],O=!0,j=!1,k=void 0;try{for(var I=A[Symbol.iterator](),B;!(O=(B=I.next()).done)&&(C.push(B.value),!(R&&C.length===R));O=!0);}catch(V){j=!0,k=V}finally{try{!O&&I.return&&I.return()}finally{if(j)throw k}}return C}return function(A,R){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return _(A,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function _(A,R){for(var C=0;C<R.length;C++){var O=R[C];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,R,C){return R&&_(A.prototype,R),C&&_(A,C),A}})(),s=function _(A,R,C){A===null&&(A=Function.prototype);var O=Object.getOwnPropertyDescriptor(A,R);if(O===void 0){var j=Object.getPrototypeOf(A);return j===null?void 0:_(j,R,C)}else{if("value"in O)return O.value;var k=O.get;return k===void 0?void 0:k.call(C)}},f=n(2),d=m(f),c=n(0),l=m(c),u=n(4),h=m(u),v=n(6),g=m(v),p=n(7),y=m(p);function m(_){return _&&_.__esModule?_:{default:_}}function x(_,A){if(!(_ instanceof A))throw new TypeError("Cannot call a class as a function")}function b(_,A){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:_}function E(_,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);_.prototype=Object.create(A&&A.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(_,A):_.__proto__=A)}var S=(function(_){E(A,_);function A(){return x(this,A),b(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return A})(g.default);S.blotName="code",S.tagName="CODE";var w=(function(_){E(A,_);function A(){return x(this,A),b(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return a(A,[{key:"delta",value:function(){var C=this,O=this.domNode.textContent;return O.endsWith(`
|
|
22
|
+
`),W=V.shift();W.length>0&&(k<this.length()-1||this.children.tail==null?a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(k,this.length()-1),W):this.children.tail.insertAt(this.children.tail.length(),W),this.cache={});var L=this;V.reduce(function($,N){return L=L.split($,!0),L.insertAt(0,N),N.length},k+W.length)}}},{key:"insertBefore",value:function(k,I){var B=this.children.head;a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,k,I),B instanceof v.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(k,I){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,k,I),this.cache={}}},{key:"optimize",value:function(k){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,k),this.cache={}}},{key:"path",value:function(k){return a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,k,!0)}},{key:"removeChild",value:function(k){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,k),this.cache={}}},{key:"split",value:function(k){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(I&&(k===0||k>=this.length()-w)){var B=this.clone();return k===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var V=a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,k,I);return this.cache={},V}}}]),O})(u.default.Block);A.blotName="block",A.tagName="P",A.defaultChild="break",A.allowedChildren=[p.default,u.default.Embed,m.default];function R(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(O=(0,f.default)(O,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?O:R(C.parent,O)}i.bubbleFormats=R,i.BlockEmbed=_,i.default=A}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.overload=i.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},a=(function(){function L($,N){var F=[],q=!0,K=!1,G=void 0;try{for(var T=$[Symbol.iterator](),D;!(q=(D=T.next()).done)&&(F.push(D.value),!(N&&F.length===N));q=!0);}catch(H){K=!0,G=H}finally{try{!q&&T.return&&T.return()}finally{if(K)throw G}}return F}return function($,N){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return L($,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function L($,N){for(var F=0;F<N.length;F++){var q=N[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty($,q.key,q)}}return function($,N,F){return N&&L($.prototype,N),F&&L($,F),$}})();n(50);var f=n(2),d=R(f),c=n(14),l=R(c),u=n(8),h=R(u),v=n(9),g=R(v),p=n(0),y=R(p),m=n(15),x=R(m),b=n(3),E=R(b),S=n(10),w=R(S),_=n(34),A=R(_);function R(L){return L&&L.__esModule?L:{default:L}}function C(L,$,N){return $ in L?Object.defineProperty(L,$,{value:N,enumerable:!0,configurable:!0,writable:!0}):L[$]=N,L}function O(L,$){if(!(L instanceof $))throw new TypeError("Cannot call a class as a function")}var j=(0,w.default)("quill"),k=(function(){s(L,null,[{key:"debug",value:function(N){N===!0&&(N="log"),w.default.level(N)}},{key:"find",value:function(N){return N.__quill||y.default.find(N)}},{key:"import",value:function(N){return this.imports[N]==null&&j.error("Cannot import "+N+". Are you sure it was registered?"),this.imports[N]}},{key:"register",value:function(N,F){var q=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof N!="string"){var G=N.attrName||N.blotName;typeof G=="string"?this.register("formats/"+G,N,F):Object.keys(N).forEach(function(T){q.register(T,N[T],F)})}else this.imports[N]!=null&&!K&&j.warn("Overwriting "+N+" with",F),this.imports[N]=F,(N.startsWith("blots/")||N.startsWith("formats/"))&&F.blotName!=="abstract"?y.default.register(F):N.startsWith("modules")&&typeof F.register=="function"&&F.register()}}]);function L($){var N=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,L),this.options=I($,F),this.container=this.options.container,this.container==null)return j.error("Invalid Quill container",$);this.options.debug&&L.debug(this.options.debug);var q=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new x.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(G){G===h.default.events.TEXT_CHANGE&&N.root.classList.toggle("ql-blank",N.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(G,T){var D=N.selection.lastRange,H=D&&D.length===0?D.index:void 0;B.call(N,function(){return N.editor.update(null,T,H)},G)});var K=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+q+"<p><br></p></div>");this.setContents(K),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(L,[{key:"addContainer",value:function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof N=="string"){var q=N;N=document.createElement("div"),N.classList.add(q)}return this.container.insertBefore(N,F),N}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(N,F,q){var K=this,G=V(N,F,q),T=a(G,4);return N=T[0],F=T[1],q=T[3],B.call(this,function(){return K.editor.deleteText(N,F)},q,N,-1*F)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(N),this.container.classList.toggle("ql-disabled",!N)}},{key:"focus",value:function(){var N=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=N,this.scrollIntoView()}},{key:"format",value:function(N,F){var q=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return B.call(this,function(){var G=q.getSelection(!0),T=new d.default;if(G==null)return T;if(y.default.query(N,y.default.Scope.BLOCK))T=q.editor.formatLine(G.index,G.length,C({},N,F));else{if(G.length===0)return q.selection.format(N,F),T;T=q.editor.formatText(G.index,G.length,C({},N,F))}return q.setSelection(G,h.default.sources.SILENT),T},K)}},{key:"formatLine",value:function(N,F,q,K,G){var T=this,D=void 0,H=V(N,F,q,K,G),U=a(H,4);return N=U[0],F=U[1],D=U[2],G=U[3],B.call(this,function(){return T.editor.formatLine(N,F,D)},G,N,0)}},{key:"formatText",value:function(N,F,q,K,G){var T=this,D=void 0,H=V(N,F,q,K,G),U=a(H,4);return N=U[0],F=U[1],D=U[2],G=U[3],B.call(this,function(){return T.editor.formatText(N,F,D)},G,N,0)}},{key:"getBounds",value:function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=void 0;typeof N=="number"?q=this.selection.getBounds(N,F):q=this.selection.getBounds(N.index,N.length);var K=this.container.getBoundingClientRect();return{bottom:q.bottom-K.top,height:q.height,left:q.left-K.left,right:q.right-K.left,top:q.top-K.top,width:q.width}}},{key:"getContents",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-N,q=V(N,F),K=a(q,2);return N=K[0],F=K[1],this.editor.getContents(N,F)}},{key:"getFormat",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof N=="number"?this.editor.getFormat(N,F):this.editor.getFormat(N.index,N.length)}},{key:"getIndex",value:function(N){return N.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(N){return this.scroll.leaf(N)}},{key:"getLine",value:function(N){return this.scroll.line(N)}},{key:"getLines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof N!="number"?this.scroll.lines(N.index,N.length):this.scroll.lines(N,F)}},{key:"getModule",value:function(N){return this.theme.modules[N]}},{key:"getSelection",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return N&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-N,q=V(N,F),K=a(q,2);return N=K[0],F=K[1],this.editor.getText(N,F)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(N,F,q){var K=this,G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:L.sources.API;return B.call(this,function(){return K.editor.insertEmbed(N,F,q)},G,N)}},{key:"insertText",value:function(N,F,q,K,G){var T=this,D=void 0,H=V(N,0,q,K,G),U=a(H,4);return N=U[0],D=U[2],G=U[3],B.call(this,function(){return T.editor.insertText(N,F,D)},G,N,F.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(N,F,q){this.clipboard.dangerouslyPasteHTML(N,F,q)}},{key:"removeFormat",value:function(N,F,q){var K=this,G=V(N,F,q),T=a(G,4);return N=T[0],F=T[1],q=T[3],B.call(this,function(){return K.editor.removeFormat(N,F)},q,N)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(N){var F=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return B.call(this,function(){N=new d.default(N);var K=F.getLength(),G=F.editor.deleteText(0,K),T=F.editor.applyDelta(N),D=T.ops[T.ops.length-1];D!=null&&typeof D.insert=="string"&&D.insert[D.insert.length-1]===`
|
|
23
|
+
`&&(F.editor.deleteText(F.getLength()-1,1),T.delete(1));var H=G.compose(T);return H},q)}},{key:"setSelection",value:function(N,F,q){if(N==null)this.selection.setRange(null,F||L.sources.API);else{var K=V(N,F,q),G=a(K,4);N=G[0],F=G[1],q=G[3],this.selection.setRange(new m.Range(N,F),q),q!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,q=new d.default().insert(N);return this.setContents(q,F)}},{key:"update",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,F=this.scroll.update(N);return this.selection.update(N),F}},{key:"updateContents",value:function(N){var F=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return B.call(this,function(){return N=new d.default(N),F.editor.applyDelta(N,q)},q,!0)}}]),L})();k.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},k.events=h.default.events,k.sources=h.default.sources,k.version="1.3.7",k.imports={delta:d.default,parchment:y.default,"core/module":g.default,"core/theme":A.default};function I(L,$){if($=(0,E.default)(!0,{container:L,modules:{clipboard:!0,keyboard:!0,history:!0}},$),!$.theme||$.theme===k.DEFAULTS.theme)$.theme=A.default;else if($.theme=k.import("themes/"+$.theme),$.theme==null)throw new Error("Invalid theme "+$.theme+". Did you register it?");var N=(0,E.default)(!0,{},$.theme.DEFAULTS);[N,$].forEach(function(K){K.modules=K.modules||{},Object.keys(K.modules).forEach(function(G){K.modules[G]===!0&&(K.modules[G]={})})});var F=Object.keys(N.modules).concat(Object.keys($.modules)),q=F.reduce(function(K,G){var T=k.import("modules/"+G);return T==null?j.error("Cannot load "+G+" module. Are you sure you registered it?"):K[G]=T.DEFAULTS||{},K},{});return $.modules!=null&&$.modules.toolbar&&$.modules.toolbar.constructor!==Object&&($.modules.toolbar={container:$.modules.toolbar}),$=(0,E.default)(!0,{},k.DEFAULTS,{modules:q},N,$),["bounds","container","scrollingContainer"].forEach(function(K){typeof $[K]=="string"&&($[K]=document.querySelector($[K]))}),$.modules=Object.keys($.modules).reduce(function(K,G){return $.modules[G]&&(K[G]=$.modules[G]),K},{}),$}function B(L,$,N,F){if(this.options.strict&&!this.isEnabled()&&$===h.default.sources.USER)return new d.default;var q=N==null?null:this.getSelection(),K=this.editor.delta,G=L();if(q!=null&&(N===!0&&(N=q.index),F==null?q=W(q,G,$):F!==0&&(q=W(q,N,F,$)),this.setSelection(q,h.default.sources.SILENT)),G.length()>0){var T,D=[h.default.events.TEXT_CHANGE,G,K,$];if((T=this.emitter).emit.apply(T,[h.default.events.EDITOR_CHANGE].concat(D)),$!==h.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,D)}}return G}function V(L,$,N,F,q){var K={};return typeof L.index=="number"&&typeof L.length=="number"?typeof $!="number"?(q=F,F=N,N=$,$=L.length,L=L.index):($=L.length,L=L.index):typeof $!="number"&&(q=F,F=N,N=$,$=0),(typeof N>"u"?"undefined":o(N))==="object"?(K=N,q=F):typeof N=="string"&&(F!=null?K[N]=F:q=N),q=q||h.default.sources.API,[L,$,K,q]}function W(L,$,N,F){if(L==null)return null;var q=void 0,K=void 0;if($ instanceof d.default){var G=[L.index,L.index+L.length].map(function(U){return $.transformPosition(U,F!==h.default.sources.USER)}),T=a(G,2);q=T[0],K=T[1]}else{var D=[L.index,L.index+L.length].map(function(U){return U<$||U===$&&F===h.default.sources.USER?U:N>=0?U+N:Math.max($,U+N)}),H=a(D,2);q=H[0],K=H[1]}return new m.Range(q,K-q)}i.expandConfig=I,i.overload=V,i.default=k}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(y,m){for(var x=0;x<m.length;x++){var b=m[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,m,x){return m&&p(y.prototype,m),x&&p(y,x),y}})(),a=function p(y,m,x){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,m);if(b===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:p(E,m,x)}else{if("value"in b)return b.value;var S=b.get;return S===void 0?void 0:S.call(x)}},s=n(7),f=l(s),d=n(0),c=l(d);function l(p){return p&&p.__esModule?p:{default:p}}function u(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function h(p,y){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:p}function v(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);p.prototype=Object.create(y&&y.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(p,y):p.__proto__=y)}var g=(function(p){v(y,p);function y(){return u(this,y),h(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"formatAt",value:function(x,b,E,S){if(y.compare(this.statics.blotName,E)<0&&c.default.query(E,c.default.Scope.BLOT)){var w=this.isolate(x,b);S&&w.wrap(E,S)}else a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,x,b,E,S)}},{key:"optimize",value:function(x){if(a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,x),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var b=this.parent.isolate(this.offset(),this.length());this.moveChildren(b),b.wrap(this)}}}],[{key:"compare",value:function(x,b){var E=y.order.indexOf(x),S=y.order.indexOf(b);return E>=0||S>=0?E-S:x===b?0:x<b?-1:1}}]),y})(c.default.Inline);g.allowedChildren=[g,c.default.Embed,f.default],g.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],i.default=g}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function f(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function c(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){c(h,u);function h(){return f(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default.Text);i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function m(x,b){for(var E=0;E<b.length;E++){var S=b[E];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,b,E){return b&&m(x.prototype,b),E&&m(x,E),x}})(),a=function m(x,b,E){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,b);if(S===void 0){var w=Object.getPrototypeOf(x);return w===null?void 0:m(w,b,E)}else{if("value"in S)return S.value;var _=S.get;return _===void 0?void 0:_.call(E)}},s=n(54),f=l(s),d=n(10),c=l(d);function l(m){return m&&m.__esModule?m:{default:m}}function u(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")}function h(m,x){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:m}function v(m,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);m.prototype=Object.create(x&&x.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(m,x):m.__proto__=x)}var g=(0,c.default)("quill:events"),p=["selectionchange","mousedown","mouseup","click"];p.forEach(function(m){document.addEventListener(m,function(){for(var x=arguments.length,b=Array(x),E=0;E<x;E++)b[E]=arguments[E];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var w;(w=S.__quill.emitter).handleDOM.apply(w,b)}})})});var y=(function(m){v(x,m);function x(){u(this,x);var b=h(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));return b.listeners={},b.on("error",g.error),b}return o(x,[{key:"emit",value:function(){g.log.apply(g,arguments),a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(E){for(var S=arguments.length,w=Array(S>1?S-1:0),_=1;_<S;_++)w[_-1]=arguments[_];(this.listeners[E.type]||[]).forEach(function(A){var R=A.node,C=A.handler;(E.target===R||R.contains(E.target))&&C.apply(void 0,[E].concat(w))})}},{key:"listenDOM",value:function(E,S,w){this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push({node:S,handler:w})}}]),x})(f.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},i.default=y}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});function o(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}var a=function s(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,s),this.quill=f,this.options=d};a.DEFAULTS={},i.default=a}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";function s(d){if(o.indexOf(d)<=o.indexOf(a)){for(var c,l=arguments.length,u=Array(l>1?l-1:0),h=1;h<l;h++)u[h-1]=arguments[h];(c=console)[d].apply(c,u)}}function f(d){return o.reduce(function(c,l){return c[l]=s.bind(console,l,d),c},{})}s.level=f.level=function(d){a=d},i.default=f}),(function(t,i,n){var o=Array.prototype.slice,a=n(52),s=n(53),f=t.exports=function(u,h,v){return v||(v={}),u===h?!0:u instanceof Date&&h instanceof Date?u.getTime()===h.getTime():!u||!h||typeof u!="object"&&typeof h!="object"?v.strict?u===h:u==h:l(u,h,v)};function d(u){return u==null}function c(u){return!(!u||typeof u!="object"||typeof u.length!="number"||typeof u.copy!="function"||typeof u.slice!="function"||u.length>0&&typeof u[0]!="number")}function l(u,h,v){var g,p;if(d(u)||d(h)||u.prototype!==h.prototype)return!1;if(s(u))return s(h)?(u=o.call(u),h=o.call(h),f(u,h,v)):!1;if(c(u)){if(!c(h)||u.length!==h.length)return!1;for(g=0;g<u.length;g++)if(u[g]!==h[g])return!1;return!0}try{var y=a(u),m=a(h)}catch{return!1}if(y.length!=m.length)return!1;for(y.sort(),m.sort(),g=y.length-1;g>=0;g--)if(y[g]!=m[g])return!1;for(g=y.length-1;g>=0;g--)if(p=y[g],!f(u[p],h[p],v))return!1;return typeof u==typeof h}}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(1),a=(function(){function s(f,d,c){c===void 0&&(c={}),this.attrName=f,this.keyName=d;var l=o.Scope.TYPE&o.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&o.Scope.LEVEL|l:this.scope=o.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return s.keys=function(f){return[].map.call(f.attributes,function(d){return d.name})},s.prototype.add=function(f,d){return this.canAdd(f,d)?(f.setAttribute(this.keyName,d),!0):!1},s.prototype.canAdd=function(f,d){var c=o.query(f,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof d=="string"?this.whitelist.indexOf(d.replace(/["']/g,""))>-1:this.whitelist.indexOf(d)>-1},s.prototype.remove=function(f){f.removeAttribute(this.keyName)},s.prototype.value=function(f){var d=f.getAttribute(this.keyName);return this.canAdd(f,d)&&d?d:""},s})();i.default=a}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Code=void 0;var o=(function(){function _(A,R){var C=[],O=!0,j=!1,k=void 0;try{for(var I=A[Symbol.iterator](),B;!(O=(B=I.next()).done)&&(C.push(B.value),!(R&&C.length===R));O=!0);}catch(V){j=!0,k=V}finally{try{!O&&I.return&&I.return()}finally{if(j)throw k}}return C}return function(A,R){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return _(A,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function _(A,R){for(var C=0;C<R.length;C++){var O=R[C];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,R,C){return R&&_(A.prototype,R),C&&_(A,C),A}})(),s=function _(A,R,C){A===null&&(A=Function.prototype);var O=Object.getOwnPropertyDescriptor(A,R);if(O===void 0){var j=Object.getPrototypeOf(A);return j===null?void 0:_(j,R,C)}else{if("value"in O)return O.value;var k=O.get;return k===void 0?void 0:k.call(C)}},f=n(2),d=m(f),c=n(0),l=m(c),u=n(4),h=m(u),v=n(6),g=m(v),p=n(7),y=m(p);function m(_){return _&&_.__esModule?_:{default:_}}function x(_,A){if(!(_ instanceof A))throw new TypeError("Cannot call a class as a function")}function b(_,A){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:_}function E(_,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);_.prototype=Object.create(A&&A.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(_,A):_.__proto__=A)}var S=(function(_){E(A,_);function A(){return x(this,A),b(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return A})(g.default);S.blotName="code",S.tagName="CODE";var w=(function(_){E(A,_);function A(){return x(this,A),b(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return a(A,[{key:"delta",value:function(){var C=this,O=this.domNode.textContent;return O.endsWith(`
|
|
24
24
|
`)&&(O=O.slice(0,-1)),O.split(`
|
|
25
25
|
`).reduce(function(j,k){return j.insert(k).insert(`
|
|
26
|
-
`,C.formats())},new d.default)}},{key:"format",value:function(C,O){if(!(C===this.statics.blotName&&O)){var j=this.descendant(y.default,this.length()-1),k=o(j,1),I=k[0];I?.deleteAt(I.length()-1,1),s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,C,O)}}},{key:"formatAt",value:function(C,O,j,k){if(O!==0&&!(l.default.query(j,l.default.Scope.BLOCK)==null||j===this.statics.blotName&&k===this.statics.formats(this.domNode))){var I=this.newlineIndex(C);if(!(I<0||I>=C+O)){var B=this.newlineIndex(C,!0)+1,V=I-B+1,W=this.isolate(B,V),
|
|
26
|
+
`,C.formats())},new d.default)}},{key:"format",value:function(C,O){if(!(C===this.statics.blotName&&O)){var j=this.descendant(y.default,this.length()-1),k=o(j,1),I=k[0];I?.deleteAt(I.length()-1,1),s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,C,O)}}},{key:"formatAt",value:function(C,O,j,k){if(O!==0&&!(l.default.query(j,l.default.Scope.BLOCK)==null||j===this.statics.blotName&&k===this.statics.formats(this.domNode))){var I=this.newlineIndex(C);if(!(I<0||I>=C+O)){var B=this.newlineIndex(C,!0)+1,V=I-B+1,W=this.isolate(B,V),L=W.next;W.format(j,k),L instanceof A&&L.formatAt(0,C-B+O-V,j,k)}}}},{key:"insertAt",value:function(C,O,j){if(j==null){var k=this.descendant(y.default,C),I=o(k,2),B=I[0],V=I[1];B.insertAt(V,O)}}},{key:"length",value:function(){var C=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
|
|
27
27
|
`)?C:C+1}},{key:"newlineIndex",value:function(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(O)return this.domNode.textContent.slice(0,C).lastIndexOf(`
|
|
28
28
|
`);var j=this.domNode.textContent.slice(C).indexOf(`
|
|
29
29
|
`);return j>-1?C+j:-1}},{key:"optimize",value:function(C){this.domNode.textContent.endsWith(`
|
|
30
30
|
`)||this.appendChild(l.default.create("text",`
|
|
31
|
-
`)),s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,C);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===O.statics.formats(O.domNode)&&(O.optimize(C),O.moveChildren(this),O.remove())}},{key:"replace",value:function(C){s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var j=l.default.find(O);j==null?O.parentNode.removeChild(O):j instanceof l.default.Embed?j.remove():j.unwrap()})}}],[{key:"create",value:function(C){var O=s(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,C);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),A})(h.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",i.Code=S,i.default=w}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(
|
|
31
|
+
`)),s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,C);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===O.statics.formats(O.domNode)&&(O.optimize(C),O.moveChildren(this),O.remove())}},{key:"replace",value:function(C){s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var j=l.default.find(O);j==null?O.parentNode.removeChild(O):j instanceof l.default.Embed?j.remove():j.unwrap()})}}],[{key:"create",value:function(C){var O=s(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,C);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),A})(h.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",i.Code=S,i.default=w}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},a=(function(){function L($,N){var F=[],q=!0,K=!1,G=void 0;try{for(var T=$[Symbol.iterator](),D;!(q=(D=T.next()).done)&&(F.push(D.value),!(N&&F.length===N));q=!0);}catch(H){K=!0,G=H}finally{try{!q&&T.return&&T.return()}finally{if(K)throw G}}return F}return function($,N){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return L($,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function L($,N){for(var F=0;F<N.length;F++){var q=N[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty($,q.key,q)}}return function($,N,F){return N&&L($.prototype,N),F&&L($,F),$}})(),f=n(2),d=O(f),c=n(20),l=O(c),u=n(0),h=O(u),v=n(13),g=O(v),p=n(24),y=O(p),m=n(4),x=O(m),b=n(16),E=O(b),S=n(21),w=O(S),_=n(11),A=O(_),R=n(3),C=O(R);function O(L){return L&&L.__esModule?L:{default:L}}function j(L,$,N){return $ in L?Object.defineProperty(L,$,{value:N,enumerable:!0,configurable:!0,writable:!0}):L[$]=N,L}function k(L,$){if(!(L instanceof $))throw new TypeError("Cannot call a class as a function")}var I=/^[ -~]*$/,B=(function(){function L($){k(this,L),this.scroll=$,this.delta=this.getDelta()}return s(L,[{key:"applyDelta",value:function(N){var F=this,q=!1;this.scroll.update();var K=this.scroll.length();return this.scroll.batchStart(),N=W(N),N.reduce(function(G,T){var D=T.retain||T.delete||T.insert.length||1,H=T.attributes||{};if(T.insert!=null){if(typeof T.insert=="string"){var U=T.insert;U.endsWith(`
|
|
32
32
|
`)&&q&&(q=!1,U=U.slice(0,-1)),G>=K&&!U.endsWith(`
|
|
33
|
-
`)&&(q=!0),
|
|
33
|
+
`)&&(q=!0),F.scroll.insertAt(G,U);var Y=F.scroll.line(G),ee=a(Y,2),ie=ee[0],oe=ee[1],re=(0,C.default)({},(0,m.bubbleFormats)(ie));if(ie instanceof x.default){var ue=ie.descendant(h.default.Leaf,oe),ce=a(ue,1),he=ce[0];re=(0,C.default)(re,(0,m.bubbleFormats)(he))}H=l.default.attributes.diff(re,H)||{}}else if(o(T.insert)==="object"){var Q=Object.keys(T.insert)[0];if(Q==null)return G;F.scroll.insertAt(G,Q,T.insert[Q])}K+=D}return Object.keys(H).forEach(function(J){F.scroll.formatAt(G,D,J,H[J])}),G+D},0),N.reduce(function(G,T){return typeof T.delete=="number"?(F.scroll.deleteAt(G,T.delete),G):G+(T.retain||T.insert.length||1)},0),this.scroll.batchEnd(),this.update(N)}},{key:"deleteText",value:function(N,F){return this.scroll.deleteAt(N,F),this.update(new d.default().retain(N).delete(F))}},{key:"formatLine",value:function(N,F){var q=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(K).forEach(function(G){if(!(q.scroll.whitelist!=null&&!q.scroll.whitelist[G])){var T=q.scroll.lines(N,Math.max(F,1)),D=F;T.forEach(function(H){var U=H.length();if(!(H instanceof g.default))H.format(G,K[G]);else{var Y=N-H.offset(q.scroll),ee=H.newlineIndex(Y+D)-Y+1;H.formatAt(Y,ee,G,K[G])}D-=U})}}),this.scroll.optimize(),this.update(new d.default().retain(N).retain(F,(0,w.default)(K)))}},{key:"formatText",value:function(N,F){var q=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(K).forEach(function(G){q.scroll.formatAt(N,F,G,K[G])}),this.update(new d.default().retain(N).retain(F,(0,w.default)(K)))}},{key:"getContents",value:function(N,F){return this.delta.slice(N,N+F)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(N,F){return N.concat(F.delta())},new d.default)}},{key:"getFormat",value:function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=[],K=[];F===0?this.scroll.path(N).forEach(function(T){var D=a(T,1),H=D[0];H instanceof x.default?q.push(H):H instanceof h.default.Leaf&&K.push(H)}):(q=this.scroll.lines(N,F),K=this.scroll.descendants(h.default.Leaf,N,F));var G=[q,K].map(function(T){if(T.length===0)return{};for(var D=(0,m.bubbleFormats)(T.shift());Object.keys(D).length>0;){var H=T.shift();if(H==null)return D;D=V((0,m.bubbleFormats)(H),D)}return D});return C.default.apply(C.default,G)}},{key:"getText",value:function(N,F){return this.getContents(N,F).filter(function(q){return typeof q.insert=="string"}).map(function(q){return q.insert}).join("")}},{key:"insertEmbed",value:function(N,F,q){return this.scroll.insertAt(N,F,q),this.update(new d.default().retain(N).insert(j({},F,q)))}},{key:"insertText",value:function(N,F){var q=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F=F.replace(/\r\n/g,`
|
|
34
34
|
`).replace(/\r/g,`
|
|
35
|
-
`),this.scroll.insertAt(N,
|
|
36
|
-
`));var Y=this.getContents(N,
|
|
35
|
+
`),this.scroll.insertAt(N,F),Object.keys(K).forEach(function(G){q.scroll.formatAt(N,F.length,G,K[G])}),this.update(new d.default().retain(N).insert(F,(0,w.default)(K)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var N=this.scroll.children.head;return N.statics.blotName!==x.default.blotName||N.children.length>1?!1:N.children.head instanceof E.default}},{key:"removeFormat",value:function(N,F){var q=this.getText(N,F),K=this.scroll.line(N+F),G=a(K,2),T=G[0],D=G[1],H=0,U=new d.default;T!=null&&(T instanceof g.default?H=T.newlineIndex(D)-D+1:H=T.length()-D,U=T.delta().slice(D,D+H-1).insert(`
|
|
36
|
+
`));var Y=this.getContents(N,F+H),ee=Y.diff(new d.default().insert(q).concat(U)),ie=new d.default().retain(N).concat(ee);return this.applyDelta(ie)}},{key:"update",value:function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,K=this.delta;if(F.length===1&&F[0].type==="characterData"&&F[0].target.data.match(I)&&h.default.find(F[0].target)){var G=h.default.find(F[0].target),T=(0,m.bubbleFormats)(G),D=G.offset(this.scroll),H=F[0].oldValue.replace(y.default.CONTENTS,""),U=new d.default().insert(H),Y=new d.default().insert(G.value()),ee=new d.default().retain(D).concat(U.diff(Y,q));N=ee.reduce(function(ie,oe){return oe.insert?ie.insert(oe.insert,T):ie.push(oe)},new d.default),this.delta=K.compose(N)}else this.delta=this.getDelta(),(!N||!(0,A.default)(K.compose(N),this.delta))&&(N=K.diff(this.delta,q));return N}}]),L})();function V(L,$){return Object.keys($).reduce(function(N,F){return L[F]==null||($[F]===L[F]?N[F]=$[F]:Array.isArray($[F])?$[F].indexOf(L[F])<0&&(N[F]=$[F].concat([L[F]])):N[F]=[$[F],L[F]]),N},{})}function W(L){return L.reduce(function($,N){if(N.insert===1){var F=(0,w.default)(N.attributes);return delete F.image,$.insert({image:N.attributes.image},F)}if(N.attributes!=null&&(N.attributes.list===!0||N.attributes.bullet===!0)&&(N=(0,w.default)(N),N.attributes.list?N.attributes.list="ordered":(N.attributes.list="bullet",delete N.attributes.bullet)),typeof N.insert=="string"){var q=N.insert.replace(/\r\n/g,`
|
|
37
37
|
`).replace(/\r/g,`
|
|
38
|
-
`);return $.insert(q,N.attributes)}return $.push(N)},new d.default)}i.default=B}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Range=void 0;var o=(function(){function _(A,R){var C=[],O=!0,j=!1,k=void 0;try{for(var I=A[Symbol.iterator](),B;!(O=(B=I.next()).done)&&(C.push(B.value),!(R&&C.length===R));O=!0);}catch(V){j=!0,k=V}finally{try{!O&&I.return&&I.return()}finally{if(j)throw k}}return C}return function(A,R){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return _(A,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function _(A,R){for(var C=0;C<R.length;C++){var O=R[C];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,R,C){return R&&_(A.prototype,R),C&&_(A,C),A}})(),s=n(0),f=y(s),d=n(21),c=y(d),l=n(11),u=y(l),h=n(8),v=y(h),g=n(10),p=y(g);function y(_){return _&&_.__esModule?_:{default:_}}function m(_){if(Array.isArray(_)){for(var A=0,R=Array(_.length);A<_.length;A++)R[A]=_[A];return R}else return Array.from(_)}function x(_,A){if(!(_ instanceof A))throw new TypeError("Cannot call a class as a function")}var b=(0,p.default)("quill:selection"),E=function _(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;x(this,_),this.index=A,this.length=R},S=(function(){function _(A,R){var C=this;x(this,_),this.emitter=R,this.scroll=A,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=f.default.create("cursor",this),this.lastRange=this.savedRange=new E(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){C.mouseDown||setTimeout(C.update.bind(C,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(O,j){O===v.default.events.TEXT_CHANGE&&j.length()>0&&C.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var O=C.getNativeRange();O!=null&&O.start.node!==C.cursor.textNode&&C.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(O,j){if(j.range){var k=j.range,I=k.startNode,B=k.startOffset,V=k.endNode,W=k.endOffset;C.setNativeRange(I,B,V,W)}}),this.update(v.default.sources.SILENT)}return a(_,[{key:"handleComposition",value:function(){var R=this;this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){if(R.composing=!1,R.cursor.parent){var C=R.cursor.restore();if(!C)return;setTimeout(function(){R.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var R=this;this.emitter.listenDOM("mousedown",document.body,function(){R.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){R.mouseDown=!1,R.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(R,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[R])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||f.default.query(R,f.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var j=f.default.find(O.start.node,!1);if(j==null)return;if(j instanceof f.default.Leaf){var k=j.split(O.start.offset);j.parent.insertBefore(this.cursor,k)}else j.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format(R,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();R=Math.min(R,O-1),C=Math.min(R+C,O-1)-R;var j=void 0,k=this.scroll.leaf(R),I=o(k,2),B=I[0],V=I[1];if(B==null)return null;var W=B.position(V,!0),F=o(W,2);j=F[0],V=F[1];var $=document.createRange();if(C>0){$.setStart(j,V);var N=this.scroll.leaf(R+C),L=o(N,2);if(B=L[0],V=L[1],B==null)return null;var q=B.position(V,!0),K=o(q,2);return j=K[0],V=K[1],$.setEnd(j,V),$.getBoundingClientRect()}else{var G="left",T=void 0;return j instanceof Text?(V<j.data.length?($.setStart(j,V),$.setEnd(j,V+1)):($.setStart(j,V-1),$.setEnd(j,V),G="right"),T=$.getBoundingClientRect()):(T=B.domNode.getBoundingClientRect(),V>0&&(G="right")),{bottom:T.top+T.height,height:T.height,left:T[G],right:T[G],top:T.top,width:0}}}},{key:"getNativeRange",value:function(){var R=document.getSelection();if(R==null||R.rangeCount<=0)return null;var C=R.getRangeAt(0);if(C==null)return null;var O=this.normalizeNative(C);return b.info("getNativeRange",O),O}},{key:"getRange",value:function(){var R=this.getNativeRange();if(R==null)return[null,null];var C=this.normalizedToRange(R);return[C,R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(R){var C=this,O=[[R.start.node,R.start.offset]];R.native.collapsed||O.push([R.end.node,R.end.offset]);var j=O.map(function(B){var V=o(B,2),W=V[0],F=V[1],$=f.default.find(W,!0),N=$.offset(C.scroll);return F===0?N:$ instanceof f.default.Container?N+$.length():N+$.index(W,F)}),k=Math.min(Math.max.apply(Math,m(j)),this.scroll.length()-1),I=Math.min.apply(Math,[k].concat(m(j)));return new E(I,k-I)}},{key:"normalizeNative",value:function(R){if(!w(this.root,R.startContainer)||!R.collapsed&&!w(this.root,R.endContainer))return null;var C={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[C.start,C.end].forEach(function(O){for(var j=O.node,k=O.offset;!(j instanceof Text)&&j.childNodes.length>0;)if(j.childNodes.length>k)j=j.childNodes[k],k=0;else if(j.childNodes.length===k)j=j.lastChild,k=j instanceof Text?j.data.length:j.childNodes.length+1;else break;O.node=j,O.offset=k}),C}},{key:"rangeToNative",value:function(R){var C=this,O=R.collapsed?[R.index]:[R.index,R.index+R.length],j=[],k=this.scroll.length();return O.forEach(function(I,B){I=Math.min(k-1,I);var V=void 0,W=C.scroll.leaf(I),F=o(W,2),$=F[0],N=F[1],L=$.position(N,B!==0),q=o(L,2);V=q[0],N=q[1],j.push(V,N)}),j.length<2&&(j=j.concat(j)),j}},{key:"scrollIntoView",value:function(R){var C=this.lastRange;if(C!=null){var O=this.getBounds(C.index,C.length);if(O!=null){var j=this.scroll.length()-1,k=this.scroll.line(Math.min(C.index,j)),I=o(k,1),B=I[0],V=B;if(C.length>0){var W=this.scroll.line(Math.min(C.index+C.length,j)),F=o(W,1);V=F[0]}if(!(B==null||V==null)){var $=R.getBoundingClientRect();O.top<$.top?R.scrollTop-=$.top-O.top:O.bottom>$.bottom&&(R.scrollTop+=O.bottom-$.bottom)}}}}},{key:"setNativeRange",value:function(R,C){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:R,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(b.info("setNativeRange",R,C,O,j),!(R!=null&&(this.root.parentNode==null||R.parentNode==null||O.parentNode==null))){var I=document.getSelection();if(I!=null)if(R!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||k||R!==B.startContainer||C!==B.startOffset||O!==B.endContainer||j!==B.endOffset){R.tagName=="BR"&&(C=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode),O.tagName=="BR"&&(j=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var V=document.createRange();V.setStart(R,C),V.setEnd(O,j),I.removeAllRanges(),I.addRange(V)}}else I.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof C=="string"&&(O=C,C=!1),b.info("setRange",R),R!=null){var j=this.rangeToNative(R);this.setNativeRange.apply(this,m(j).concat([C]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,C=this.lastRange,O=this.getRange(),j=o(O,2),k=j[0],I=j[1];if(this.lastRange=k,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,u.default)(C,this.lastRange)){var B;!this.composing&&I!=null&&I.native.collapsed&&I.start.node!==this.cursor.textNode&&this.cursor.restore();var V=[v.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(C),R];if((B=this.emitter).emit.apply(B,[v.default.events.EDITOR_CHANGE].concat(V)),R!==v.default.sources.SILENT){var W;(W=this.emitter).emit.apply(W,V)}}}}]),_})();function w(_,A){try{A.parentNode}catch{return!1}return A instanceof Text&&(A=A.parentNode),_.contains(A)}i.Range=E,i.default=S}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(g,p){for(var y=0;y<p.length;y++){var m=p[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,p,y){return p&&v(g.prototype,p),y&&v(g,y),g}})(),a=function v(g,p,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,p);if(m===void 0){var x=Object.getPrototypeOf(g);return x===null?void 0:v(x,p,y)}else{if("value"in m)return m.value;var b=m.get;return b===void 0?void 0:b.call(y)}},s=n(0),f=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function l(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){u(g,v);function g(){return c(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"insertInto",value:function(y,m){y.children.length===0?a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertInto",this).call(this,y,m):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),g})(f.default.Embed);h.blotName="break",h.tagName="BR",i.default=h}),(function(t,i,n){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var v in h)h.hasOwnProperty(v)&&(u[v]=h[v])};return function(u,h){l(u,h);function v(){this.constructor=u}u.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(44),s=n(30),f=n(1),d=(function(l){o(u,l);function u(h){var v=l.call(this,h)||this;return v.build(),v}return u.prototype.appendChild=function(h){this.insertBefore(h)},u.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(h){h.attach()})},u.prototype.build=function(){var h=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var g=c(v);h.insertBefore(g,h.children.head||void 0)}catch(p){if(p instanceof f.ParchmentError)return;throw p}})},u.prototype.deleteAt=function(h,v){if(h===0&&v===this.length())return this.remove();this.children.forEachAt(h,v,function(g,p,y){g.deleteAt(p,y)})},u.prototype.descendant=function(h,v){var g=this.children.find(v),p=g[0],y=g[1];return h.blotName==null&&h(p)||h.blotName!=null&&p instanceof h?[p,y]:p instanceof u?p.descendant(h,y):[null,-1]},u.prototype.descendants=function(h,v,g){v===void 0&&(v=0),g===void 0&&(g=Number.MAX_VALUE);var p=[],y=g;return this.children.forEachAt(v,g,function(m,x,b){(h.blotName==null&&h(m)||h.blotName!=null&&m instanceof h)&&p.push(m),m instanceof u&&(p=p.concat(m.descendants(h,x,y))),y-=b}),p},u.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),l.prototype.detach.call(this)},u.prototype.formatAt=function(h,v,g,p){this.children.forEachAt(h,v,function(y,m,x){y.formatAt(m,x,g,p)})},u.prototype.insertAt=function(h,v,g){var p=this.children.find(h),y=p[0],m=p[1];if(y)y.insertAt(m,v,g);else{var x=g==null?f.create("text",v):f.create(v,g);this.appendChild(x)}},u.prototype.insertBefore=function(h,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(g){return h instanceof g}))throw new f.ParchmentError("Cannot insert "+h.statics.blotName+" into "+this.statics.blotName);h.insertInto(this,v)},u.prototype.length=function(){return this.children.reduce(function(h,v){return h+v.length()},0)},u.prototype.moveChildren=function(h,v){this.children.forEach(function(g){h.insertBefore(g,v)})},u.prototype.optimize=function(h){if(l.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var v=f.create(this.statics.defaultChild);this.appendChild(v),v.optimize(h)}else this.remove()},u.prototype.path=function(h,v){v===void 0&&(v=!1);var g=this.children.find(h,v),p=g[0],y=g[1],m=[[this,h]];return p instanceof u?m.concat(p.path(y,v)):(p!=null&&m.push([p,y]),m)},u.prototype.removeChild=function(h){this.children.remove(h)},u.prototype.replace=function(h){h instanceof u&&h.moveChildren(this),l.prototype.replace.call(this,h)},u.prototype.split=function(h,v){if(v===void 0&&(v=!1),!v){if(h===0)return this;if(h===this.length())return this.next}var g=this.clone();return this.parent.insertBefore(g,this.next),this.children.forEachAt(h,this.length(),function(p,y,m){p=p.split(y,v),g.appendChild(p)}),g},u.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},u.prototype.update=function(h,v){var g=this,p=[],y=[];h.forEach(function(m){m.target===g.domNode&&m.type==="childList"&&(p.push.apply(p,m.addedNodes),y.push.apply(y,m.removedNodes))}),y.forEach(function(m){if(!(m.parentNode!=null&&m.tagName!=="IFRAME"&&document.body.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var x=f.find(m);x!=null&&(x.domNode.parentNode==null||x.domNode.parentNode===g.domNode)&&x.detach()}}),p.filter(function(m){return m.parentNode==g.domNode}).sort(function(m,x){return m===x?0:m.compareDocumentPosition(x)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(m){var x=null;m.nextSibling!=null&&(x=f.find(m.nextSibling));var b=c(m);(b.next!=x||b.next==null)&&(b.parent!=null&&b.parent.removeChild(g),g.insertBefore(b,x||void 0))})},u})(s.default);function c(l){var u=f.find(l);if(u==null)try{u=f.create(l)}catch{u=f.create(f.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(v){u.domNode.appendChild(v)}),l.parentNode&&l.parentNode.replaceChild(u.domNode,l),u.attach()}return u}i.default=d}),(function(t,i,n){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var v in h)h.hasOwnProperty(v)&&(u[v]=h[v])};return function(u,h){l(u,h);function v(){this.constructor=u}u.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(12),s=n(31),f=n(17),d=n(1),c=(function(l){o(u,l);function u(h){var v=l.call(this,h)||this;return v.attributes=new s.default(v.domNode),v}return u.formats=function(h){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return h.tagName.toLowerCase()},u.prototype.format=function(h,v){var g=d.query(h);g instanceof a.default?this.attributes.attribute(g,v):v&&g!=null&&(h!==this.statics.blotName||this.formats()[h]!==v)&&this.replaceWith(h,v)},u.prototype.formats=function(){var h=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(h[this.statics.blotName]=v),h},u.prototype.replaceWith=function(h,v){var g=l.prototype.replaceWith.call(this,h,v);return this.attributes.copy(g),g},u.prototype.update=function(h,v){var g=this;l.prototype.update.call(this,h,v),h.some(function(p){return p.target===g.domNode&&p.type==="attributes"})&&this.attributes.build()},u.prototype.wrap=function(h,v){var g=l.prototype.wrap.call(this,h,v);return g instanceof u&&g.statics.scope===this.statics.scope&&this.attributes.move(g),g},u})(f.default);i.default=c}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var u in l)l.hasOwnProperty(u)&&(c[u]=l[u])};return function(c,l){d(c,l);function u(){this.constructor=c}c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(30),s=n(1),f=(function(d){o(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.value=function(l){return!0},c.prototype.index=function(l,u){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(u,1):-1},c.prototype.position=function(l,u){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(h+=1),[this.parent.domNode,h]},c.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},c.scope=s.Scope.INLINE_BLOT,c})(a.default);i.default=f}),(function(t,i,n){var o=n(11),a=n(3),s={attributes:{compose:function(d,c,l){typeof d!="object"&&(d={}),typeof c!="object"&&(c={});var u=a(!0,{},c);l||(u=Object.keys(u).reduce(function(v,g){return u[g]!=null&&(v[g]=u[g]),v},{}));for(var h in d)d[h]!==void 0&&c[h]===void 0&&(u[h]=d[h]);return Object.keys(u).length>0?u:void 0},diff:function(d,c){typeof d!="object"&&(d={}),typeof c!="object"&&(c={});var l=Object.keys(d).concat(Object.keys(c)).reduce(function(u,h){return o(d[h],c[h])||(u[h]=c[h]===void 0?null:c[h]),u},{});return Object.keys(l).length>0?l:void 0},transform:function(d,c,l){if(typeof d!="object")return c;if(typeof c=="object"){if(!l)return c;var u=Object.keys(c).reduce(function(h,v){return d[v]===void 0&&(h[v]=c[v]),h},{});return Object.keys(u).length>0?u:void 0}}},iterator:function(d){return new f(d)},length:function(d){return typeof d.delete=="number"?d.delete:typeof d.retain=="number"?d.retain:typeof d.insert=="string"?d.insert.length:1}};function f(d){this.ops=d,this.index=0,this.offset=0}f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(d){d||(d=1/0);var c=this.ops[this.index];if(c){var l=this.offset,u=s.length(c);if(d>=u-l?(d=u-l,this.index+=1,this.offset=0):this.offset+=d,typeof c.delete=="number")return{delete:d};var h={};return c.attributes&&(h.attributes=c.attributes),typeof c.retain=="number"?h.retain=d:typeof c.insert=="string"?h.insert=c.insert.substr(l,d):h.insert=c.insert,h}else return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},f.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},f.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var d=this.offset,c=this.index,l=this.next(),u=this.ops.slice(this.index);return this.offset=d,this.index=c,[l].concat(u)}else return[]},t.exports=s}),(function(t,i){var n=(function(){function o(g,p){return p!=null&&g instanceof p}var a;try{a=Map}catch{a=function(){}}var s;try{s=Set}catch{s=function(){}}var f;try{f=Promise}catch{f=function(){}}function d(g,p,y,m,x){typeof p=="object"&&(y=p.depth,m=p.prototype,x=p.includeNonEnumerable,p=p.circular);var b=[],E=[],S=typeof Buffer<"u";typeof p>"u"&&(p=!0),typeof y>"u"&&(y=1/0);function w(_,A){if(_===null)return null;if(A===0)return _;var R,C;if(typeof _!="object")return _;if(o(_,a))R=new a;else if(o(_,s))R=new s;else if(o(_,f))R=new f(function($,N){_.then(function(L){$(w(L,A-1))},function(L){N(w(L,A-1))})});else if(d.__isArray(_))R=[];else if(d.__isRegExp(_))R=new RegExp(_.source,v(_)),_.lastIndex&&(R.lastIndex=_.lastIndex);else if(d.__isDate(_))R=new Date(_.getTime());else{if(S&&Buffer.isBuffer(_))return Buffer.allocUnsafe?R=Buffer.allocUnsafe(_.length):R=new Buffer(_.length),_.copy(R),R;o(_,Error)?R=Object.create(_):typeof m>"u"?(C=Object.getPrototypeOf(_),R=Object.create(C)):(R=Object.create(m),C=m)}if(p){var O=b.indexOf(_);if(O!=-1)return E[O];b.push(_),E.push(R)}o(_,a)&&_.forEach(function($,N){var L=w(N,A-1),q=w($,A-1);R.set(L,q)}),o(_,s)&&_.forEach(function($){var N=w($,A-1);R.add(N)});for(var j in _){var k;C&&(k=Object.getOwnPropertyDescriptor(C,j)),!(k&&k.set==null)&&(R[j]=w(_[j],A-1))}if(Object.getOwnPropertySymbols)for(var I=Object.getOwnPropertySymbols(_),j=0;j<I.length;j++){var B=I[j],V=Object.getOwnPropertyDescriptor(_,B);V&&!V.enumerable&&!x||(R[B]=w(_[B],A-1),V.enumerable||Object.defineProperty(R,B,{enumerable:!1}))}if(x)for(var W=Object.getOwnPropertyNames(_),j=0;j<W.length;j++){var F=W[j],V=Object.getOwnPropertyDescriptor(_,F);V&&V.enumerable||(R[F]=w(_[F],A-1),Object.defineProperty(R,F,{enumerable:!1}))}return R}return w(g,y)}d.clonePrototype=function(p){if(p===null)return null;var y=function(){};return y.prototype=p,new y};function c(g){return Object.prototype.toString.call(g)}d.__objToStr=c;function l(g){return typeof g=="object"&&c(g)==="[object Date]"}d.__isDate=l;function u(g){return typeof g=="object"&&c(g)==="[object Array]"}d.__isArray=u;function h(g){return typeof g=="object"&&c(g)==="[object RegExp]"}d.__isRegExp=h;function v(g){var p="";return g.global&&(p+="g"),g.ignoreCase&&(p+="i"),g.multiline&&(p+="m"),p}return d.__getRegExpFlags=v,d})();typeof t=="object"&&t.exports&&(t.exports=n)}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function R(C,O){var j=[],k=!0,I=!1,B=void 0;try{for(var V=C[Symbol.iterator](),W;!(k=(W=V.next()).done)&&(j.push(W.value),!(O&&j.length===O));k=!0);}catch(F){I=!0,B=F}finally{try{!k&&V.return&&V.return()}finally{if(I)throw B}}return j}return function(C,O){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function R(C,O){for(var j=0;j<O.length;j++){var k=O[j];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(C,k.key,k)}}return function(C,O,j){return O&&R(C.prototype,O),j&&R(C,j),C}})(),s=function R(C,O,j){C===null&&(C=Function.prototype);var k=Object.getOwnPropertyDescriptor(C,O);if(k===void 0){var I=Object.getPrototypeOf(C);return I===null?void 0:R(I,O,j)}else{if("value"in k)return k.value;var B=k.get;return B===void 0?void 0:B.call(j)}},f=n(0),d=b(f),c=n(8),l=b(c),u=n(4),h=b(u),v=n(16),g=b(v),p=n(13),y=b(p),m=n(25),x=b(m);function b(R){return R&&R.__esModule?R:{default:R}}function E(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function S(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function w(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}function _(R){return R instanceof h.default||R instanceof u.BlockEmbed}var A=(function(R){w(C,R);function C(O,j){E(this,C);var k=S(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O));return k.emitter=j.emitter,Array.isArray(j.whitelist)&&(k.whitelist=j.whitelist.reduce(function(I,B){return I[B]=!0,I},{})),k.domNode.addEventListener("DOMNodeInserted",function(){}),k.optimize(),k.enable(),k}return a(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(j,k){var I=this.line(j),B=o(I,2),V=B[0],W=B[1],F=this.line(j+k),$=o(F,1),N=$[0];if(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,j,k),N!=null&&V!==N&&W>0){if(V instanceof u.BlockEmbed||N instanceof u.BlockEmbed){this.optimize();return}if(V instanceof y.default){var L=V.newlineIndex(V.length(),!0);if(L>-1&&(V=V.split(L+1),V===N)){this.optimize();return}}else if(N instanceof y.default){var q=N.newlineIndex(0);q>-1&&N.split(q+1)}var K=N.children.head instanceof g.default?null:N.children.head;V.moveChildren(N,K),V.remove()}this.optimize()}},{key:"enable",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",j)}},{key:"formatAt",value:function(j,k,I,B){this.whitelist!=null&&!this.whitelist[I]||(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,j,k,I,B),this.optimize())}},{key:"insertAt",value:function(j,k,I){if(!(I!=null&&this.whitelist!=null&&!this.whitelist[k])){if(j>=this.length())if(I==null||d.default.query(k,d.default.Scope.BLOCK)==null){var B=d.default.create(this.statics.defaultChild);this.appendChild(B),I==null&&k.endsWith(`
|
|
39
|
-
`)&&(k=k.slice(0,-1)),B.insertAt(0,k,I)}else{var V=d.default.create(k,I);this.appendChild(V)}else s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,j,k,I);this.optimize()}}},{key:"insertBefore",value:function(j,k){if(j.statics.scope===d.default.Scope.INLINE_BLOT){var I=d.default.create(this.statics.defaultChild);I.appendChild(j),j=I}s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,j,k)}},{key:"leaf",value:function(j){return this.path(j).pop()||[null,-1]}},{key:"line",value:function(j){return j===this.length()?this.line(j-1):this.descendant(_,j)}},{key:"lines",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,I=function B(V,W,
|
|
38
|
+
`);return $.insert(q,N.attributes)}return $.push(N)},new d.default)}i.default=B}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Range=void 0;var o=(function(){function _(A,R){var C=[],O=!0,j=!1,k=void 0;try{for(var I=A[Symbol.iterator](),B;!(O=(B=I.next()).done)&&(C.push(B.value),!(R&&C.length===R));O=!0);}catch(V){j=!0,k=V}finally{try{!O&&I.return&&I.return()}finally{if(j)throw k}}return C}return function(A,R){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return _(A,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function _(A,R){for(var C=0;C<R.length;C++){var O=R[C];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,R,C){return R&&_(A.prototype,R),C&&_(A,C),A}})(),s=n(0),f=y(s),d=n(21),c=y(d),l=n(11),u=y(l),h=n(8),v=y(h),g=n(10),p=y(g);function y(_){return _&&_.__esModule?_:{default:_}}function m(_){if(Array.isArray(_)){for(var A=0,R=Array(_.length);A<_.length;A++)R[A]=_[A];return R}else return Array.from(_)}function x(_,A){if(!(_ instanceof A))throw new TypeError("Cannot call a class as a function")}var b=(0,p.default)("quill:selection"),E=function _(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;x(this,_),this.index=A,this.length=R},S=(function(){function _(A,R){var C=this;x(this,_),this.emitter=R,this.scroll=A,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=f.default.create("cursor",this),this.lastRange=this.savedRange=new E(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){C.mouseDown||setTimeout(C.update.bind(C,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(O,j){O===v.default.events.TEXT_CHANGE&&j.length()>0&&C.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var O=C.getNativeRange();O!=null&&O.start.node!==C.cursor.textNode&&C.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(O,j){if(j.range){var k=j.range,I=k.startNode,B=k.startOffset,V=k.endNode,W=k.endOffset;C.setNativeRange(I,B,V,W)}}),this.update(v.default.sources.SILENT)}return a(_,[{key:"handleComposition",value:function(){var R=this;this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){if(R.composing=!1,R.cursor.parent){var C=R.cursor.restore();if(!C)return;setTimeout(function(){R.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var R=this;this.emitter.listenDOM("mousedown",document.body,function(){R.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){R.mouseDown=!1,R.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(R,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[R])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||f.default.query(R,f.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var j=f.default.find(O.start.node,!1);if(j==null)return;if(j instanceof f.default.Leaf){var k=j.split(O.start.offset);j.parent.insertBefore(this.cursor,k)}else j.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format(R,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();R=Math.min(R,O-1),C=Math.min(R+C,O-1)-R;var j=void 0,k=this.scroll.leaf(R),I=o(k,2),B=I[0],V=I[1];if(B==null)return null;var W=B.position(V,!0),L=o(W,2);j=L[0],V=L[1];var $=document.createRange();if(C>0){$.setStart(j,V);var N=this.scroll.leaf(R+C),F=o(N,2);if(B=F[0],V=F[1],B==null)return null;var q=B.position(V,!0),K=o(q,2);return j=K[0],V=K[1],$.setEnd(j,V),$.getBoundingClientRect()}else{var G="left",T=void 0;return j instanceof Text?(V<j.data.length?($.setStart(j,V),$.setEnd(j,V+1)):($.setStart(j,V-1),$.setEnd(j,V),G="right"),T=$.getBoundingClientRect()):(T=B.domNode.getBoundingClientRect(),V>0&&(G="right")),{bottom:T.top+T.height,height:T.height,left:T[G],right:T[G],top:T.top,width:0}}}},{key:"getNativeRange",value:function(){var R=document.getSelection();if(R==null||R.rangeCount<=0)return null;var C=R.getRangeAt(0);if(C==null)return null;var O=this.normalizeNative(C);return b.info("getNativeRange",O),O}},{key:"getRange",value:function(){var R=this.getNativeRange();if(R==null)return[null,null];var C=this.normalizedToRange(R);return[C,R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(R){var C=this,O=[[R.start.node,R.start.offset]];R.native.collapsed||O.push([R.end.node,R.end.offset]);var j=O.map(function(B){var V=o(B,2),W=V[0],L=V[1],$=f.default.find(W,!0),N=$.offset(C.scroll);return L===0?N:$ instanceof f.default.Container?N+$.length():N+$.index(W,L)}),k=Math.min(Math.max.apply(Math,m(j)),this.scroll.length()-1),I=Math.min.apply(Math,[k].concat(m(j)));return new E(I,k-I)}},{key:"normalizeNative",value:function(R){if(!w(this.root,R.startContainer)||!R.collapsed&&!w(this.root,R.endContainer))return null;var C={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[C.start,C.end].forEach(function(O){for(var j=O.node,k=O.offset;!(j instanceof Text)&&j.childNodes.length>0;)if(j.childNodes.length>k)j=j.childNodes[k],k=0;else if(j.childNodes.length===k)j=j.lastChild,k=j instanceof Text?j.data.length:j.childNodes.length+1;else break;O.node=j,O.offset=k}),C}},{key:"rangeToNative",value:function(R){var C=this,O=R.collapsed?[R.index]:[R.index,R.index+R.length],j=[],k=this.scroll.length();return O.forEach(function(I,B){I=Math.min(k-1,I);var V=void 0,W=C.scroll.leaf(I),L=o(W,2),$=L[0],N=L[1],F=$.position(N,B!==0),q=o(F,2);V=q[0],N=q[1],j.push(V,N)}),j.length<2&&(j=j.concat(j)),j}},{key:"scrollIntoView",value:function(R){var C=this.lastRange;if(C!=null){var O=this.getBounds(C.index,C.length);if(O!=null){var j=this.scroll.length()-1,k=this.scroll.line(Math.min(C.index,j)),I=o(k,1),B=I[0],V=B;if(C.length>0){var W=this.scroll.line(Math.min(C.index+C.length,j)),L=o(W,1);V=L[0]}if(!(B==null||V==null)){var $=R.getBoundingClientRect();O.top<$.top?R.scrollTop-=$.top-O.top:O.bottom>$.bottom&&(R.scrollTop+=O.bottom-$.bottom)}}}}},{key:"setNativeRange",value:function(R,C){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:R,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(b.info("setNativeRange",R,C,O,j),!(R!=null&&(this.root.parentNode==null||R.parentNode==null||O.parentNode==null))){var I=document.getSelection();if(I!=null)if(R!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||k||R!==B.startContainer||C!==B.startOffset||O!==B.endContainer||j!==B.endOffset){R.tagName=="BR"&&(C=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode),O.tagName=="BR"&&(j=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var V=document.createRange();V.setStart(R,C),V.setEnd(O,j),I.removeAllRanges(),I.addRange(V)}}else I.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof C=="string"&&(O=C,C=!1),b.info("setRange",R),R!=null){var j=this.rangeToNative(R);this.setNativeRange.apply(this,m(j).concat([C]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,C=this.lastRange,O=this.getRange(),j=o(O,2),k=j[0],I=j[1];if(this.lastRange=k,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,u.default)(C,this.lastRange)){var B;!this.composing&&I!=null&&I.native.collapsed&&I.start.node!==this.cursor.textNode&&this.cursor.restore();var V=[v.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(C),R];if((B=this.emitter).emit.apply(B,[v.default.events.EDITOR_CHANGE].concat(V)),R!==v.default.sources.SILENT){var W;(W=this.emitter).emit.apply(W,V)}}}}]),_})();function w(_,A){try{A.parentNode}catch{return!1}return A instanceof Text&&(A=A.parentNode),_.contains(A)}i.Range=E,i.default=S}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(g,p){for(var y=0;y<p.length;y++){var m=p[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,p,y){return p&&v(g.prototype,p),y&&v(g,y),g}})(),a=function v(g,p,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,p);if(m===void 0){var x=Object.getPrototypeOf(g);return x===null?void 0:v(x,p,y)}else{if("value"in m)return m.value;var b=m.get;return b===void 0?void 0:b.call(y)}},s=n(0),f=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function l(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){u(g,v);function g(){return c(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"insertInto",value:function(y,m){y.children.length===0?a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertInto",this).call(this,y,m):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),g})(f.default.Embed);h.blotName="break",h.tagName="BR",i.default=h}),(function(t,i,n){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var v in h)h.hasOwnProperty(v)&&(u[v]=h[v])};return function(u,h){l(u,h);function v(){this.constructor=u}u.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(44),s=n(30),f=n(1),d=(function(l){o(u,l);function u(h){var v=l.call(this,h)||this;return v.build(),v}return u.prototype.appendChild=function(h){this.insertBefore(h)},u.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(h){h.attach()})},u.prototype.build=function(){var h=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var g=c(v);h.insertBefore(g,h.children.head||void 0)}catch(p){if(p instanceof f.ParchmentError)return;throw p}})},u.prototype.deleteAt=function(h,v){if(h===0&&v===this.length())return this.remove();this.children.forEachAt(h,v,function(g,p,y){g.deleteAt(p,y)})},u.prototype.descendant=function(h,v){var g=this.children.find(v),p=g[0],y=g[1];return h.blotName==null&&h(p)||h.blotName!=null&&p instanceof h?[p,y]:p instanceof u?p.descendant(h,y):[null,-1]},u.prototype.descendants=function(h,v,g){v===void 0&&(v=0),g===void 0&&(g=Number.MAX_VALUE);var p=[],y=g;return this.children.forEachAt(v,g,function(m,x,b){(h.blotName==null&&h(m)||h.blotName!=null&&m instanceof h)&&p.push(m),m instanceof u&&(p=p.concat(m.descendants(h,x,y))),y-=b}),p},u.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),l.prototype.detach.call(this)},u.prototype.formatAt=function(h,v,g,p){this.children.forEachAt(h,v,function(y,m,x){y.formatAt(m,x,g,p)})},u.prototype.insertAt=function(h,v,g){var p=this.children.find(h),y=p[0],m=p[1];if(y)y.insertAt(m,v,g);else{var x=g==null?f.create("text",v):f.create(v,g);this.appendChild(x)}},u.prototype.insertBefore=function(h,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(g){return h instanceof g}))throw new f.ParchmentError("Cannot insert "+h.statics.blotName+" into "+this.statics.blotName);h.insertInto(this,v)},u.prototype.length=function(){return this.children.reduce(function(h,v){return h+v.length()},0)},u.prototype.moveChildren=function(h,v){this.children.forEach(function(g){h.insertBefore(g,v)})},u.prototype.optimize=function(h){if(l.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var v=f.create(this.statics.defaultChild);this.appendChild(v),v.optimize(h)}else this.remove()},u.prototype.path=function(h,v){v===void 0&&(v=!1);var g=this.children.find(h,v),p=g[0],y=g[1],m=[[this,h]];return p instanceof u?m.concat(p.path(y,v)):(p!=null&&m.push([p,y]),m)},u.prototype.removeChild=function(h){this.children.remove(h)},u.prototype.replace=function(h){h instanceof u&&h.moveChildren(this),l.prototype.replace.call(this,h)},u.prototype.split=function(h,v){if(v===void 0&&(v=!1),!v){if(h===0)return this;if(h===this.length())return this.next}var g=this.clone();return this.parent.insertBefore(g,this.next),this.children.forEachAt(h,this.length(),function(p,y,m){p=p.split(y,v),g.appendChild(p)}),g},u.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},u.prototype.update=function(h,v){var g=this,p=[],y=[];h.forEach(function(m){m.target===g.domNode&&m.type==="childList"&&(p.push.apply(p,m.addedNodes),y.push.apply(y,m.removedNodes))}),y.forEach(function(m){if(!(m.parentNode!=null&&m.tagName!=="IFRAME"&&document.body.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var x=f.find(m);x!=null&&(x.domNode.parentNode==null||x.domNode.parentNode===g.domNode)&&x.detach()}}),p.filter(function(m){return m.parentNode==g.domNode}).sort(function(m,x){return m===x?0:m.compareDocumentPosition(x)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(m){var x=null;m.nextSibling!=null&&(x=f.find(m.nextSibling));var b=c(m);(b.next!=x||b.next==null)&&(b.parent!=null&&b.parent.removeChild(g),g.insertBefore(b,x||void 0))})},u})(s.default);function c(l){var u=f.find(l);if(u==null)try{u=f.create(l)}catch{u=f.create(f.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(v){u.domNode.appendChild(v)}),l.parentNode&&l.parentNode.replaceChild(u.domNode,l),u.attach()}return u}i.default=d}),(function(t,i,n){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var v in h)h.hasOwnProperty(v)&&(u[v]=h[v])};return function(u,h){l(u,h);function v(){this.constructor=u}u.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(12),s=n(31),f=n(17),d=n(1),c=(function(l){o(u,l);function u(h){var v=l.call(this,h)||this;return v.attributes=new s.default(v.domNode),v}return u.formats=function(h){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return h.tagName.toLowerCase()},u.prototype.format=function(h,v){var g=d.query(h);g instanceof a.default?this.attributes.attribute(g,v):v&&g!=null&&(h!==this.statics.blotName||this.formats()[h]!==v)&&this.replaceWith(h,v)},u.prototype.formats=function(){var h=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(h[this.statics.blotName]=v),h},u.prototype.replaceWith=function(h,v){var g=l.prototype.replaceWith.call(this,h,v);return this.attributes.copy(g),g},u.prototype.update=function(h,v){var g=this;l.prototype.update.call(this,h,v),h.some(function(p){return p.target===g.domNode&&p.type==="attributes"})&&this.attributes.build()},u.prototype.wrap=function(h,v){var g=l.prototype.wrap.call(this,h,v);return g instanceof u&&g.statics.scope===this.statics.scope&&this.attributes.move(g),g},u})(f.default);i.default=c}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var u in l)l.hasOwnProperty(u)&&(c[u]=l[u])};return function(c,l){d(c,l);function u(){this.constructor=c}c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(30),s=n(1),f=(function(d){o(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.value=function(l){return!0},c.prototype.index=function(l,u){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(u,1):-1},c.prototype.position=function(l,u){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(h+=1),[this.parent.domNode,h]},c.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},c.scope=s.Scope.INLINE_BLOT,c})(a.default);i.default=f}),(function(t,i,n){var o=n(11),a=n(3),s={attributes:{compose:function(d,c,l){typeof d!="object"&&(d={}),typeof c!="object"&&(c={});var u=a(!0,{},c);l||(u=Object.keys(u).reduce(function(v,g){return u[g]!=null&&(v[g]=u[g]),v},{}));for(var h in d)d[h]!==void 0&&c[h]===void 0&&(u[h]=d[h]);return Object.keys(u).length>0?u:void 0},diff:function(d,c){typeof d!="object"&&(d={}),typeof c!="object"&&(c={});var l=Object.keys(d).concat(Object.keys(c)).reduce(function(u,h){return o(d[h],c[h])||(u[h]=c[h]===void 0?null:c[h]),u},{});return Object.keys(l).length>0?l:void 0},transform:function(d,c,l){if(typeof d!="object")return c;if(typeof c=="object"){if(!l)return c;var u=Object.keys(c).reduce(function(h,v){return d[v]===void 0&&(h[v]=c[v]),h},{});return Object.keys(u).length>0?u:void 0}}},iterator:function(d){return new f(d)},length:function(d){return typeof d.delete=="number"?d.delete:typeof d.retain=="number"?d.retain:typeof d.insert=="string"?d.insert.length:1}};function f(d){this.ops=d,this.index=0,this.offset=0}f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(d){d||(d=1/0);var c=this.ops[this.index];if(c){var l=this.offset,u=s.length(c);if(d>=u-l?(d=u-l,this.index+=1,this.offset=0):this.offset+=d,typeof c.delete=="number")return{delete:d};var h={};return c.attributes&&(h.attributes=c.attributes),typeof c.retain=="number"?h.retain=d:typeof c.insert=="string"?h.insert=c.insert.substr(l,d):h.insert=c.insert,h}else return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},f.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},f.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var d=this.offset,c=this.index,l=this.next(),u=this.ops.slice(this.index);return this.offset=d,this.index=c,[l].concat(u)}else return[]},t.exports=s}),(function(t,i){var n=(function(){function o(g,p){return p!=null&&g instanceof p}var a;try{a=Map}catch{a=function(){}}var s;try{s=Set}catch{s=function(){}}var f;try{f=Promise}catch{f=function(){}}function d(g,p,y,m,x){typeof p=="object"&&(y=p.depth,m=p.prototype,x=p.includeNonEnumerable,p=p.circular);var b=[],E=[],S=typeof Buffer<"u";typeof p>"u"&&(p=!0),typeof y>"u"&&(y=1/0);function w(_,A){if(_===null)return null;if(A===0)return _;var R,C;if(typeof _!="object")return _;if(o(_,a))R=new a;else if(o(_,s))R=new s;else if(o(_,f))R=new f(function($,N){_.then(function(F){$(w(F,A-1))},function(F){N(w(F,A-1))})});else if(d.__isArray(_))R=[];else if(d.__isRegExp(_))R=new RegExp(_.source,v(_)),_.lastIndex&&(R.lastIndex=_.lastIndex);else if(d.__isDate(_))R=new Date(_.getTime());else{if(S&&Buffer.isBuffer(_))return Buffer.allocUnsafe?R=Buffer.allocUnsafe(_.length):R=new Buffer(_.length),_.copy(R),R;o(_,Error)?R=Object.create(_):typeof m>"u"?(C=Object.getPrototypeOf(_),R=Object.create(C)):(R=Object.create(m),C=m)}if(p){var O=b.indexOf(_);if(O!=-1)return E[O];b.push(_),E.push(R)}o(_,a)&&_.forEach(function($,N){var F=w(N,A-1),q=w($,A-1);R.set(F,q)}),o(_,s)&&_.forEach(function($){var N=w($,A-1);R.add(N)});for(var j in _){var k;C&&(k=Object.getOwnPropertyDescriptor(C,j)),!(k&&k.set==null)&&(R[j]=w(_[j],A-1))}if(Object.getOwnPropertySymbols)for(var I=Object.getOwnPropertySymbols(_),j=0;j<I.length;j++){var B=I[j],V=Object.getOwnPropertyDescriptor(_,B);V&&!V.enumerable&&!x||(R[B]=w(_[B],A-1),V.enumerable||Object.defineProperty(R,B,{enumerable:!1}))}if(x)for(var W=Object.getOwnPropertyNames(_),j=0;j<W.length;j++){var L=W[j],V=Object.getOwnPropertyDescriptor(_,L);V&&V.enumerable||(R[L]=w(_[L],A-1),Object.defineProperty(R,L,{enumerable:!1}))}return R}return w(g,y)}d.clonePrototype=function(p){if(p===null)return null;var y=function(){};return y.prototype=p,new y};function c(g){return Object.prototype.toString.call(g)}d.__objToStr=c;function l(g){return typeof g=="object"&&c(g)==="[object Date]"}d.__isDate=l;function u(g){return typeof g=="object"&&c(g)==="[object Array]"}d.__isArray=u;function h(g){return typeof g=="object"&&c(g)==="[object RegExp]"}d.__isRegExp=h;function v(g){var p="";return g.global&&(p+="g"),g.ignoreCase&&(p+="i"),g.multiline&&(p+="m"),p}return d.__getRegExpFlags=v,d})();typeof t=="object"&&t.exports&&(t.exports=n)}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function R(C,O){var j=[],k=!0,I=!1,B=void 0;try{for(var V=C[Symbol.iterator](),W;!(k=(W=V.next()).done)&&(j.push(W.value),!(O&&j.length===O));k=!0);}catch(L){I=!0,B=L}finally{try{!k&&V.return&&V.return()}finally{if(I)throw B}}return j}return function(C,O){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function R(C,O){for(var j=0;j<O.length;j++){var k=O[j];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(C,k.key,k)}}return function(C,O,j){return O&&R(C.prototype,O),j&&R(C,j),C}})(),s=function R(C,O,j){C===null&&(C=Function.prototype);var k=Object.getOwnPropertyDescriptor(C,O);if(k===void 0){var I=Object.getPrototypeOf(C);return I===null?void 0:R(I,O,j)}else{if("value"in k)return k.value;var B=k.get;return B===void 0?void 0:B.call(j)}},f=n(0),d=b(f),c=n(8),l=b(c),u=n(4),h=b(u),v=n(16),g=b(v),p=n(13),y=b(p),m=n(25),x=b(m);function b(R){return R&&R.__esModule?R:{default:R}}function E(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function S(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function w(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}function _(R){return R instanceof h.default||R instanceof u.BlockEmbed}var A=(function(R){w(C,R);function C(O,j){E(this,C);var k=S(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O));return k.emitter=j.emitter,Array.isArray(j.whitelist)&&(k.whitelist=j.whitelist.reduce(function(I,B){return I[B]=!0,I},{})),k.domNode.addEventListener("DOMNodeInserted",function(){}),k.optimize(),k.enable(),k}return a(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(j,k){var I=this.line(j),B=o(I,2),V=B[0],W=B[1],L=this.line(j+k),$=o(L,1),N=$[0];if(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,j,k),N!=null&&V!==N&&W>0){if(V instanceof u.BlockEmbed||N instanceof u.BlockEmbed){this.optimize();return}if(V instanceof y.default){var F=V.newlineIndex(V.length(),!0);if(F>-1&&(V=V.split(F+1),V===N)){this.optimize();return}}else if(N instanceof y.default){var q=N.newlineIndex(0);q>-1&&N.split(q+1)}var K=N.children.head instanceof g.default?null:N.children.head;V.moveChildren(N,K),V.remove()}this.optimize()}},{key:"enable",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",j)}},{key:"formatAt",value:function(j,k,I,B){this.whitelist!=null&&!this.whitelist[I]||(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,j,k,I,B),this.optimize())}},{key:"insertAt",value:function(j,k,I){if(!(I!=null&&this.whitelist!=null&&!this.whitelist[k])){if(j>=this.length())if(I==null||d.default.query(k,d.default.Scope.BLOCK)==null){var B=d.default.create(this.statics.defaultChild);this.appendChild(B),I==null&&k.endsWith(`
|
|
39
|
+
`)&&(k=k.slice(0,-1)),B.insertAt(0,k,I)}else{var V=d.default.create(k,I);this.appendChild(V)}else s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,j,k,I);this.optimize()}}},{key:"insertBefore",value:function(j,k){if(j.statics.scope===d.default.Scope.INLINE_BLOT){var I=d.default.create(this.statics.defaultChild);I.appendChild(j),j=I}s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,j,k)}},{key:"leaf",value:function(j){return this.path(j).pop()||[null,-1]}},{key:"line",value:function(j){return j===this.length()?this.line(j-1):this.descendant(_,j)}},{key:"lines",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,I=function B(V,W,L){var $=[],N=L;return V.children.forEachAt(W,L,function(F,q,K){_(F)?$.push(F):F instanceof d.default.Container&&($=$.concat(B(F,q,N))),N-=K}),$};return I(this,j,k)}},{key:"optimize",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,j,k),j.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,j,k))}},{key:"path",value:function(j){return s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"path",this).call(this,j).slice(1)}},{key:"update",value:function(j){if(this.batch!==!0){var k=l.default.sources.USER;typeof j=="string"&&(k=j),Array.isArray(j)||(j=this.observer.takeRecords()),j.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,k,j),s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"update",this).call(this,j.concat([])),j.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,k,j)}}}]),C})(d.default.Scroll);A.blotName="scroll",A.className="ql-editor",A.tagName="DIV",A.defaultChild="block",A.allowedChildren=[h.default,u.BlockEmbed,x.default],i.default=A}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.SHORTKEY=i.default=void 0;var o=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},a=(function(){function T(D,H){var U=[],Y=!0,ee=!1,ie=void 0;try{for(var oe=D[Symbol.iterator](),re;!(Y=(re=oe.next()).done)&&(U.push(re.value),!(H&&U.length===H));Y=!0);}catch(ue){ee=!0,ie=ue}finally{try{!Y&&oe.return&&oe.return()}finally{if(ee)throw ie}}return U}return function(D,H){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return T(D,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function T(D,H){for(var U=0;U<H.length;U++){var Y=H[U];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(D,Y.key,Y)}}return function(D,H,U){return H&&T(D.prototype,H),U&&T(D,U),D}})(),f=n(21),d=R(f),c=n(11),l=R(c),u=n(3),h=R(u),v=n(2),g=R(v),p=n(20),y=R(p),m=n(0),x=R(m),b=n(5),E=R(b),S=n(10),w=R(S),_=n(9),A=R(_);function R(T){return T&&T.__esModule?T:{default:T}}function C(T,D,H){return D in T?Object.defineProperty(T,D,{value:H,enumerable:!0,configurable:!0,writable:!0}):T[D]=H,T}function O(T,D){if(!(T instanceof D))throw new TypeError("Cannot call a class as a function")}function j(T,D){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:T}function k(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);T.prototype=Object.create(D&&D.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(T,D):T.__proto__=D)}var I=(0,w.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",V=(function(T){k(D,T),s(D,null,[{key:"match",value:function(U,Y){return Y=G(Y),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ee){return!!Y[ee]!==U[ee]&&Y[ee]!==null})?!1:Y.key===(U.which||U.keyCode)}}]);function D(H,U){O(this,D);var Y=j(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,H,U));return Y.bindings={},Object.keys(Y.options.bindings).forEach(function(ee){ee==="list autofill"&&H.scroll.whitelist!=null&&!H.scroll.whitelist.list||Y.options.bindings[ee]&&Y.addBinding(Y.options.bindings[ee])}),Y.addBinding({key:D.keys.ENTER,shiftKey:null},F),Y.addBinding({key:D.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Y.addBinding({key:D.keys.BACKSPACE},{collapsed:!0},L),Y.addBinding({key:D.keys.DELETE},{collapsed:!0},$)):(Y.addBinding({key:D.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},L),Y.addBinding({key:D.keys.DELETE},{collapsed:!0,suffix:/^.?$/},$)),Y.addBinding({key:D.keys.BACKSPACE},{collapsed:!1},N),Y.addBinding({key:D.keys.DELETE},{collapsed:!1},N),Y.addBinding({key:D.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},L),Y.listen(),Y}return s(D,[{key:"addBinding",value:function(U){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ie=G(U);if(ie==null||ie.key==null)return I.warn("Attempted to add invalid keyboard binding",ie);typeof Y=="function"&&(Y={handler:Y}),typeof ee=="function"&&(ee={handler:ee}),ie=(0,h.default)(ie,Y,ee),this.bindings[ie.key]=this.bindings[ie.key]||[],this.bindings[ie.key].push(ie)}},{key:"listen",value:function(){var U=this;this.quill.root.addEventListener("keydown",function(Y){if(!Y.defaultPrevented){var ee=Y.which||Y.keyCode,ie=(U.bindings[ee]||[]).filter(function(Oe){return D.match(Y,Oe)});if(ie.length!==0){var oe=U.quill.getSelection();if(!(oe==null||!U.quill.hasFocus())){var re=U.quill.getLine(oe.index),ue=a(re,2),ce=ue[0],he=ue[1],Q=U.quill.getLeaf(oe.index),J=a(Q,2),le=J[0],se=J[1],ne=oe.length===0?[le,se]:U.quill.getLeaf(oe.index+oe.length),de=a(ne,2),ae=de[0],pe=de[1],_e=le instanceof x.default.Text?le.value().slice(0,se):"",Me=ae instanceof x.default.Text?ae.value().slice(pe):"",be={collapsed:oe.length===0,empty:oe.length===0&&ce.length()<=1,format:U.quill.getFormat(oe),offset:he,prefix:_e,suffix:Me},qe=ie.some(function(Oe){if(Oe.collapsed!=null&&Oe.collapsed!==be.collapsed||Oe.empty!=null&&Oe.empty!==be.empty||Oe.offset!=null&&Oe.offset!==be.offset)return!1;if(Array.isArray(Oe.format)){if(Oe.format.every(function(je){return be.format[je]==null}))return!1}else if(o(Oe.format)==="object"&&!Object.keys(Oe.format).every(function(je){return Oe.format[je]===!0?be.format[je]!=null:Oe.format[je]===!1?be.format[je]==null:(0,l.default)(Oe.format[je],be.format[je])}))return!1;return Oe.prefix!=null&&!Oe.prefix.test(be.prefix)||Oe.suffix!=null&&!Oe.suffix.test(be.suffix)?!1:Oe.handler.call(U,oe,be)!==!0});qe&&Y.preventDefault()}}}})}}]),D})(A.default);V.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},V.DEFAULTS={bindings:{bold:K("bold"),italic:K("italic"),underline:K("underline"),indent:{key:V.keys.TAB,format:["blockquote","indent","list"],handler:function(D,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","+1",E.default.sources.USER)}},outdent:{key:V.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(D,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","-1",E.default.sources.USER)}},"outdent backspace":{key:V.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(D,H){H.format.indent!=null?this.quill.format("indent","-1",E.default.sources.USER):H.format.list!=null&&this.quill.format("list",!1,E.default.sources.USER)}},"indent code-block":q(!0),"outdent code-block":q(!1),"remove tab":{key:V.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(D){this.quill.deleteText(D.index-1,1,E.default.sources.USER)}},tab:{key:V.keys.TAB,handler:function(D){this.quill.history.cutoff();var H=new g.default().retain(D.index).delete(D.length).insert(" ");this.quill.updateContents(H,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(D.index+1,E.default.sources.SILENT)}},"list empty enter":{key:V.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(D,H){this.quill.format("list",!1,E.default.sources.USER),H.format.indent&&this.quill.format("indent",!1,E.default.sources.USER)}},"checklist enter":{key:V.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(D){var H=this.quill.getLine(D.index),U=a(H,2),Y=U[0],ee=U[1],ie=(0,h.default)({},Y.formats(),{list:"checked"}),oe=new g.default().retain(D.index).insert(`
|
|
40
40
|
`,ie).retain(Y.length()-ee-1).retain(1,{list:"unchecked"});this.quill.updateContents(oe,E.default.sources.USER),this.quill.setSelection(D.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:V.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(D,H){var U=this.quill.getLine(D.index),Y=a(U,2),ee=Y[0],ie=Y[1],oe=new g.default().retain(D.index).insert(`
|
|
41
|
-
`,H.format).retain(ee.length()-ie-1).retain(1,{header:null});this.quill.updateContents(oe,E.default.sources.USER),this.quill.setSelection(D.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(D,H){var U=H.prefix.length,Y=this.quill.getLine(D.index),ee=a(Y,2),ie=ee[0],oe=ee[1];if(oe>U)return!0;var re=void 0;switch(H.prefix.trim()){case"[]":case"[ ]":re="unchecked";break;case"[x]":re="checked";break;case"-":case"*":re="bullet";break;default:re="ordered"}this.quill.insertText(D.index," ",E.default.sources.USER),this.quill.history.cutoff();var ue=new g.default().retain(D.index-oe).delete(U+1).retain(ie.length()-2-oe).retain(1,{list:re});this.quill.updateContents(ue,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(D.index-U,E.default.sources.SILENT)}},"code exit":{key:V.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(D){var H=this.quill.getLine(D.index),U=a(H,2),Y=U[0],ee=U[1],ie=new g.default().retain(D.index+Y.length()-ee-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ie,E.default.sources.USER)}},"embed left":W(V.keys.LEFT,!1),"embed left shift":W(V.keys.LEFT,!0),"embed right":W(V.keys.RIGHT,!1),"embed right shift":W(V.keys.RIGHT,!0)}};function W(T,D){var H,U=T===V.keys.LEFT?"prefix":"suffix";return H={key:T,shiftKey:D,altKey:null},C(H,U,/^$/),C(H,"handler",function(ee){var ie=ee.index;T===V.keys.RIGHT&&(ie+=ee.length+1);var oe=this.quill.getLeaf(ie),re=a(oe,1),ue=re[0];return ue instanceof x.default.Embed?(T===V.keys.LEFT?D?this.quill.setSelection(ee.index-1,ee.length+1,E.default.sources.USER):this.quill.setSelection(ee.index-1,E.default.sources.USER):D?this.quill.setSelection(ee.index,ee.length+1,E.default.sources.USER):this.quill.setSelection(ee.index+ee.length+1,E.default.sources.USER),!1):!0}),H}function
|
|
41
|
+
`,H.format).retain(ee.length()-ie-1).retain(1,{header:null});this.quill.updateContents(oe,E.default.sources.USER),this.quill.setSelection(D.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(D,H){var U=H.prefix.length,Y=this.quill.getLine(D.index),ee=a(Y,2),ie=ee[0],oe=ee[1];if(oe>U)return!0;var re=void 0;switch(H.prefix.trim()){case"[]":case"[ ]":re="unchecked";break;case"[x]":re="checked";break;case"-":case"*":re="bullet";break;default:re="ordered"}this.quill.insertText(D.index," ",E.default.sources.USER),this.quill.history.cutoff();var ue=new g.default().retain(D.index-oe).delete(U+1).retain(ie.length()-2-oe).retain(1,{list:re});this.quill.updateContents(ue,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(D.index-U,E.default.sources.SILENT)}},"code exit":{key:V.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(D){var H=this.quill.getLine(D.index),U=a(H,2),Y=U[0],ee=U[1],ie=new g.default().retain(D.index+Y.length()-ee-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ie,E.default.sources.USER)}},"embed left":W(V.keys.LEFT,!1),"embed left shift":W(V.keys.LEFT,!0),"embed right":W(V.keys.RIGHT,!1),"embed right shift":W(V.keys.RIGHT,!0)}};function W(T,D){var H,U=T===V.keys.LEFT?"prefix":"suffix";return H={key:T,shiftKey:D,altKey:null},C(H,U,/^$/),C(H,"handler",function(ee){var ie=ee.index;T===V.keys.RIGHT&&(ie+=ee.length+1);var oe=this.quill.getLeaf(ie),re=a(oe,1),ue=re[0];return ue instanceof x.default.Embed?(T===V.keys.LEFT?D?this.quill.setSelection(ee.index-1,ee.length+1,E.default.sources.USER):this.quill.setSelection(ee.index-1,E.default.sources.USER):D?this.quill.setSelection(ee.index,ee.length+1,E.default.sources.USER):this.quill.setSelection(ee.index+ee.length+1,E.default.sources.USER),!1):!0}),H}function L(T,D){if(!(T.index===0||this.quill.getLength()<=1)){var H=this.quill.getLine(T.index),U=a(H,1),Y=U[0],ee={};if(D.offset===0){var ie=this.quill.getLine(T.index-1),oe=a(ie,1),re=oe[0];if(re!=null&&re.length()>1){var ue=Y.formats(),ce=this.quill.getFormat(T.index-1,1);ee=y.default.attributes.diff(ue,ce)||{}}}var he=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(D.prefix)?2:1;this.quill.deleteText(T.index-he,he,E.default.sources.USER),Object.keys(ee).length>0&&this.quill.formatLine(T.index-he,he,ee,E.default.sources.USER),this.quill.focus()}}function $(T,D){var H=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(D.suffix)?2:1;if(!(T.index>=this.quill.getLength()-H)){var U={},Y=0,ee=this.quill.getLine(T.index),ie=a(ee,1),oe=ie[0];if(D.offset>=oe.length()-1){var re=this.quill.getLine(T.index+1),ue=a(re,1),ce=ue[0];if(ce){var he=oe.formats(),Q=this.quill.getFormat(T.index,1);U=y.default.attributes.diff(he,Q)||{},Y=ce.length()}}this.quill.deleteText(T.index,H,E.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(T.index+Y-1,H,U,E.default.sources.USER)}}function N(T){var D=this.quill.getLines(T),H={};if(D.length>1){var U=D[0].formats(),Y=D[D.length-1].formats();H=y.default.attributes.diff(Y,U)||{}}this.quill.deleteText(T,E.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(T.index,1,H,E.default.sources.USER),this.quill.setSelection(T.index,E.default.sources.SILENT),this.quill.focus()}function F(T,D){var H=this;T.length>0&&this.quill.scroll.deleteAt(T.index,T.length);var U=Object.keys(D.format).reduce(function(Y,ee){return x.default.query(ee,x.default.Scope.BLOCK)&&!Array.isArray(D.format[ee])&&(Y[ee]=D.format[ee]),Y},{});this.quill.insertText(T.index,`
|
|
42
42
|
`,U,E.default.sources.USER),this.quill.setSelection(T.index+1,E.default.sources.SILENT),this.quill.focus(),Object.keys(D.format).forEach(function(Y){U[Y]==null&&(Array.isArray(D.format[Y])||Y!=="link"&&H.quill.format(Y,D.format[Y],E.default.sources.USER))})}function q(T){return{key:V.keys.TAB,shiftKey:!T,format:{"code-block":!0},handler:function(H){var U=x.default.query("code-block"),Y=H.index,ee=H.length,ie=this.quill.scroll.descendant(U,Y),oe=a(ie,2),re=oe[0],ue=oe[1];if(re!=null){var ce=this.quill.getIndex(re),he=re.newlineIndex(ue,!0)+1,Q=re.newlineIndex(ce+ue+ee),J=re.domNode.textContent.slice(he,Q).split(`
|
|
43
43
|
`);ue=0,J.forEach(function(le,se){T?(re.insertAt(he+ue,U.TAB),ue+=U.TAB.length,se===0?Y+=U.TAB.length:ee+=U.TAB.length):le.startsWith(U.TAB)&&(re.deleteAt(he+ue,U.TAB.length),ue-=U.TAB.length,se===0?Y-=U.TAB.length:ee-=U.TAB.length),ue+=le.length+1}),this.quill.update(E.default.sources.USER),this.quill.setSelection(Y,ee,E.default.sources.SILENT)}}}}function K(T){return{key:T[0].toUpperCase(),shortKey:!0,handler:function(H,U){this.quill.format(T,!U.format[T],E.default.sources.USER)}}}function G(T){if(typeof T=="string"||typeof T=="number")return G({key:T});if((typeof T>"u"?"undefined":o(T))==="object"&&(T=(0,d.default)(T,!1)),typeof T.key=="string")if(V.keys[T.key.toUpperCase()]!=null)T.key=V.keys[T.key.toUpperCase()];else if(T.key.length===1)T.key=T.key.toUpperCase().charCodeAt(0);else return null;return T.shortKey&&(T[B]=T.shortKey,delete T.shortKey),T}i.default=V,i.SHORTKEY=B}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function y(m,x){var b=[],E=!0,S=!1,w=void 0;try{for(var _=m[Symbol.iterator](),A;!(E=(A=_.next()).done)&&(b.push(A.value),!(x&&b.length===x));E=!0);}catch(R){S=!0,w=R}finally{try{!E&&_.return&&_.return()}finally{if(S)throw w}}return b}return function(m,x){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return y(m,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function y(m,x,b){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,x);if(E===void 0){var S=Object.getPrototypeOf(m);return S===null?void 0:y(S,x,b)}else{if("value"in E)return E.value;var w=E.get;return w===void 0?void 0:w.call(b)}},s=(function(){function y(m,x){for(var b=0;b<x.length;b++){var E=x[b];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,x,b){return x&&y(m.prototype,x),b&&y(m,b),m}})(),f=n(0),d=u(f),c=n(7),l=u(c);function u(y){return y&&y.__esModule?y:{default:y}}function h(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function v(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function g(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var p=(function(y){g(m,y),s(m,null,[{key:"value",value:function(){}}]);function m(x,b){h(this,m);var E=v(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,x));return E.selection=b,E.textNode=document.createTextNode(m.CONTENTS),E.domNode.appendChild(E.textNode),E._length=0,E}return s(m,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(b,E){if(this._length!==0)return a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,b,E);for(var S=this,w=0;S!=null&&S.statics.scope!==d.default.Scope.BLOCK_BLOT;)w+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=m.CONTENTS.length,S.optimize(),S.formatAt(w,m.CONTENTS.length,b,E),this._length=0)}},{key:"index",value:function(b,E){return b===this.textNode?0:a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"index",this).call(this,b,E)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var b=this.textNode,E=this.selection.getNativeRange(),S=void 0,w=void 0,_=void 0;if(E!=null&&E.start.node===b&&E.end.node===b){var A=[b,E.start.offset,E.end.offset];S=A[0],w=A[1],_=A[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==m.CONTENTS){var R=this.textNode.data.split(m.CONTENTS).join("");this.next instanceof l.default?(S=this.next.domNode,this.next.insertAt(0,R),this.textNode.data=m.CONTENTS):(this.textNode.data=R,this.parent.insertBefore(d.default.create(this.textNode),this),this.textNode=document.createTextNode(m.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),w!=null){var C=[w,_].map(function(j){return Math.max(0,Math.min(S.data.length,j-1))}),O=o(C,2);return w=O[0],_=O[1],{startNode:S,startOffset:w,endNode:S,endOffset:_}}}}},{key:"update",value:function(b,E){var S=this;if(b.some(function(_){return _.type==="characterData"&&_.target===S.textNode})){var w=this.restore();w&&(E.range=w)}}},{key:"value",value:function(){return""}}]),m})(d.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\uFEFF",i.default=p}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(0),a=d(o),s=n(4),f=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function l(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){u(g,v);function g(){return c(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(a.default.Container);h.allowedChildren=[f.default,s.BlockEmbed,h],i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.ColorStyle=i.ColorClass=i.ColorAttributor=void 0;var o=(function(){function p(y,m){for(var x=0;x<m.length;x++){var b=m[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,m,x){return m&&p(y.prototype,m),x&&p(y,x),y}})(),a=function p(y,m,x){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,m);if(b===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:p(E,m,x)}else{if("value"in b)return b.value;var S=b.get;return S===void 0?void 0:S.call(x)}},s=n(0),f=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function c(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function l(p,y){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:p}function u(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);p.prototype=Object.create(y&&y.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(p,y):p.__proto__=y)}var h=(function(p){u(y,p);function y(){return c(this,y),l(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"value",value:function(x){var b=a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,x);return b.startsWith("rgb(")?(b=b.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+b.split(",").map(function(E){return("00"+parseInt(E).toString(16)).slice(-2)}).join("")):b}}]),y})(f.default.Attributor.Style),v=new f.default.Attributor.Class("color","ql-color",{scope:f.default.Scope.INLINE}),g=new h("color","color",{scope:f.default.Scope.INLINE});i.ColorAttributor=h,i.ColorClass=v,i.ColorStyle=g}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.sanitize=i.default=void 0;var o=(function(){function g(p,y){for(var m=0;m<y.length;m++){var x=y[m];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,y,m){return y&&g(p.prototype,y),m&&g(p,m),p}})(),a=function g(p,y,m){p===null&&(p=Function.prototype);var x=Object.getOwnPropertyDescriptor(p,y);if(x===void 0){var b=Object.getPrototypeOf(p);return b===null?void 0:g(b,y,m)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(m)}},s=n(6),f=d(s);function d(g){return g&&g.__esModule?g:{default:g}}function c(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function l(g,p){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:g}function u(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(g,p):g.__proto__=p)}var h=(function(g){u(p,g);function p(){return c(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return o(p,[{key:"format",value:function(m,x){if(m!==this.statics.blotName||!x)return a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"format",this).call(this,m,x);x=this.constructor.sanitize(x),this.domNode.setAttribute("href",x)}}],[{key:"create",value:function(m){var x=a(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,m);return m=this.sanitize(m),x.setAttribute("href",m),x.setAttribute("rel","noopener noreferrer"),x.setAttribute("target","_blank"),x}},{key:"formats",value:function(m){return m.getAttribute("href")}},{key:"sanitize",value:function(m){return v(m,this.PROTOCOL_WHITELIST)?m:this.SANITIZED_URL}}]),p})(f.default);h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(g,p){var y=document.createElement("a");y.href=g;var m=y.href.slice(0,y.href.indexOf(":"));return p.indexOf(m)>-1}i.default=h,i.sanitize=v}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},a=(function(){function p(y,m){for(var x=0;x<m.length;x++){var b=m[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,m,x){return m&&p(y.prototype,m),x&&p(y,x),y}})(),s=n(23),f=l(s),d=n(107),c=l(d);function l(p){return p&&p.__esModule?p:{default:p}}function u(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}var h=0;function v(p,y){p.setAttribute(y,p.getAttribute(y)!=="true")}var g=(function(){function p(y){var m=this;u(this,p),this.select=y,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){m.togglePicker()}),this.label.addEventListener("keydown",function(x){switch(x.keyCode){case f.default.keys.ENTER:m.togglePicker();break;case f.default.keys.ESCAPE:m.escape(),x.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return a(p,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(m){var x=this,b=document.createElement("span");return b.tabIndex="0",b.setAttribute("role","button"),b.classList.add("ql-picker-item"),m.hasAttribute("value")&&b.setAttribute("data-value",m.getAttribute("value")),m.textContent&&b.setAttribute("data-label",m.textContent),b.addEventListener("click",function(){x.selectItem(b,!0)}),b.addEventListener("keydown",function(E){switch(E.keyCode){case f.default.keys.ENTER:x.selectItem(b,!0),E.preventDefault();break;case f.default.keys.ESCAPE:x.escape(),E.preventDefault();break}}),b}},{key:"buildLabel",value:function(){var m=document.createElement("span");return m.classList.add("ql-picker-label"),m.innerHTML=c.default,m.tabIndex="0",m.setAttribute("role","button"),m.setAttribute("aria-expanded","false"),this.container.appendChild(m),m}},{key:"buildOptions",value:function(){var m=this,x=document.createElement("span");x.classList.add("ql-picker-options"),x.setAttribute("aria-hidden","true"),x.tabIndex="-1",x.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",x.id),this.options=x,[].slice.call(this.select.options).forEach(function(b){var E=m.buildItem(b);x.appendChild(E),b.selected===!0&&m.selectItem(E)}),this.container.appendChild(x)}},{key:"buildPicker",value:function(){var m=this;[].slice.call(this.select.attributes).forEach(function(x){m.container.setAttribute(x.name,x.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var m=this;this.close(),setTimeout(function(){return m.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(m){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=this.container.querySelector(".ql-selected");if(m!==b&&(b?.classList.remove("ql-selected"),m!=null&&(m.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(m.parentNode.children,m),m.hasAttribute("data-value")?this.label.setAttribute("data-value",m.getAttribute("data-value")):this.label.removeAttribute("data-value"),m.hasAttribute("data-label")?this.label.setAttribute("data-label",m.getAttribute("data-label")):this.label.removeAttribute("data-label"),x))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":o(Event))==="object"){var E=document.createEvent("Event");E.initEvent("change",!0,!0),this.select.dispatchEvent(E)}this.close()}}},{key:"update",value:function(){var m=void 0;if(this.select.selectedIndex>-1){var x=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];m=this.select.options[this.select.selectedIndex],this.selectItem(x)}else this.selectItem(null);var b=m!=null&&m!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",b)}}]),p})();i.default=g}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(0),a=I(o),s=n(5),f=I(s),d=n(4),c=I(d),l=n(16),u=I(l),h=n(25),v=I(h),g=n(24),p=I(g),y=n(35),m=I(y),x=n(6),b=I(x),E=n(22),S=I(E),w=n(7),_=I(w),A=n(55),R=I(A),C=n(42),O=I(C),j=n(23),k=I(j);function I(B){return B&&B.__esModule?B:{default:B}}f.default.register({"blots/block":c.default,"blots/block/embed":d.BlockEmbed,"blots/break":u.default,"blots/container":v.default,"blots/cursor":p.default,"blots/embed":m.default,"blots/inline":b.default,"blots/scroll":S.default,"blots/text":_.default,"modules/clipboard":R.default,"modules/history":O.default,"modules/keyboard":k.default}),a.default.register(c.default,u.default,p.default,b.default,S.default,_.default),i.default=f.default}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(1),a=(function(){function s(f){this.domNode=f,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(f){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var d;return Array.isArray(this.tagName)?(typeof f=="string"&&(f=f.toUpperCase(),parseInt(f).toString()===f&&(f=parseInt(f))),typeof f=="number"?d=document.createElement(this.tagName[f-1]):this.tagName.indexOf(f)>-1?d=document.createElement(f):d=document.createElement(this.tagName[0])):d=document.createElement(this.tagName),this.className&&d.classList.add(this.className),d},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var f=this.domNode.cloneNode(!1);return o.create(f)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},s.prototype.deleteAt=function(f,d){var c=this.isolate(f,d);c.remove()},s.prototype.formatAt=function(f,d,c,l){var u=this.isolate(f,d);if(o.query(c,o.Scope.BLOT)!=null&&l)u.wrap(c,l);else if(o.query(c,o.Scope.ATTRIBUTE)!=null){var h=o.create(this.statics.scope);u.wrap(h),h.format(c,l)}},s.prototype.insertAt=function(f,d,c){var l=c==null?o.create("text",d):o.create(d,c),u=this.split(f);this.parent.insertBefore(l,u)},s.prototype.insertInto=function(f,d){d===void 0&&(d=null),this.parent!=null&&this.parent.children.remove(this);var c=null;f.children.insertBefore(this,d),d!=null&&(c=d.domNode),(this.domNode.parentNode!=f.domNode||this.domNode.nextSibling!=c)&&f.domNode.insertBefore(this.domNode,c),this.parent=f,this.attach()},s.prototype.isolate=function(f,d){var c=this.split(f);return c.split(d),c},s.prototype.length=function(){return 1},s.prototype.offset=function(f){return f===void 0&&(f=this.parent),this.parent==null||this==f?0:this.parent.children.offset(this)+this.parent.offset(f)},s.prototype.optimize=function(f){this.domNode[o.DATA_KEY]!=null&&delete this.domNode[o.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(f){f.parent!=null&&(f.parent.insertBefore(this,f.next),f.remove())},s.prototype.replaceWith=function(f,d){var c=typeof f=="string"?o.create(f,d):f;return c.replace(this),c},s.prototype.split=function(f,d){return f===0?this:this.next},s.prototype.update=function(f,d){},s.prototype.wrap=function(f,d){var c=typeof f=="string"?o.create(f,d):f;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},s.blotName="abstract",s})();i.default=a}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(12),a=n(32),s=n(33),f=n(1),d=(function(){function c(l){this.attributes={},this.domNode=l,this.build()}return c.prototype.attribute=function(l,u){u?l.add(this.domNode,u)&&(l.value(this.domNode)!=null?this.attributes[l.attrName]=l:delete this.attributes[l.attrName]):(l.remove(this.domNode),delete this.attributes[l.attrName])},c.prototype.build=function(){var l=this;this.attributes={};var u=o.default.keys(this.domNode),h=a.default.keys(this.domNode),v=s.default.keys(this.domNode);u.concat(h).concat(v).forEach(function(g){var p=f.query(g,f.Scope.ATTRIBUTE);p instanceof o.default&&(l.attributes[p.attrName]=p)})},c.prototype.copy=function(l){var u=this;Object.keys(this.attributes).forEach(function(h){var v=u.attributes[h].value(u.domNode);l.format(h,v)})},c.prototype.move=function(l){var u=this;this.copy(l),Object.keys(this.attributes).forEach(function(h){u.attributes[h].remove(u.domNode)}),this.attributes={}},c.prototype.values=function(){var l=this;return Object.keys(this.attributes).reduce(function(u,h){return u[h]=l.attributes[h].value(l.domNode),u},{})},c})();i.default=d}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var u in l)l.hasOwnProperty(u)&&(c[u]=l[u])};return function(c,l){d(c,l);function u(){this.constructor=c}c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(12);function s(d,c){var l=d.getAttribute("class")||"";return l.split(/\s+/).filter(function(u){return u.indexOf(c+"-")===0})}var f=(function(d){o(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(u){return u.split("-").slice(0,-1).join("-")})},c.prototype.add=function(l,u){return this.canAdd(l,u)?(this.remove(l),l.classList.add(this.keyName+"-"+u),!0):!1},c.prototype.remove=function(l){var u=s(l,this.keyName);u.forEach(function(h){l.classList.remove(h)}),l.classList.length===0&&l.removeAttribute("class")},c.prototype.value=function(l){var u=s(l,this.keyName)[0]||"",h=u.slice(this.keyName.length+1);return this.canAdd(l,h)?h:""},c})(a.default);i.default=f}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var u in l)l.hasOwnProperty(u)&&(c[u]=l[u])};return function(c,l){d(c,l);function u(){this.constructor=c}c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(12);function s(d){var c=d.split("-"),l=c.slice(1).map(function(u){return u[0].toUpperCase()+u.slice(1)}).join("");return c[0]+l}var f=(function(d){o(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(u){var h=u.split(":");return h[0].trim()})},c.prototype.add=function(l,u){return this.canAdd(l,u)?(l.style[s(this.keyName)]=u,!0):!1},c.prototype.remove=function(l){l.style[s(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},c.prototype.value=function(l){var u=l.style[s(this.keyName)];return this.canAdd(l,u)?u:""},c})(a.default);i.default=f}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function f(d,c){for(var l=0;l<c.length;l++){var u=c[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,c,l){return c&&f(d.prototype,c),l&&f(d,l),d}})();function a(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}var s=(function(){function f(d,c){a(this,f),this.quill=d,this.options=c,this.modules={}}return o(f,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(l){c.modules[l]==null&&c.addModule(l)})}},{key:"addModule",value:function(c){var l=this.quill.constructor.import("modules/"+c);return this.modules[c]=new l(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),f})();s.DEFAULTS={modules:{}},s.themes={default:s},i.default=s}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function y(m,x){for(var b=0;b<x.length;b++){var E=x[b];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,x,b){return x&&y(m.prototype,x),b&&y(m,b),m}})(),a=function y(m,x,b){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,x);if(E===void 0){var S=Object.getPrototypeOf(m);return S===null?void 0:y(S,x,b)}else{if("value"in E)return E.value;var w=E.get;return w===void 0?void 0:w.call(b)}},s=n(0),f=l(s),d=n(7),c=l(d);function l(y){return y&&y.__esModule?y:{default:y}}function u(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function h(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function v(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var g="\uFEFF",p=(function(y){v(m,y);function m(x){u(this,m);var b=h(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,x));return b.contentNode=document.createElement("span"),b.contentNode.setAttribute("contenteditable",!1),[].slice.call(b.domNode.childNodes).forEach(function(E){b.contentNode.appendChild(E)}),b.leftGuard=document.createTextNode(g),b.rightGuard=document.createTextNode(g),b.domNode.appendChild(b.leftGuard),b.domNode.appendChild(b.contentNode),b.domNode.appendChild(b.rightGuard),b}return o(m,[{key:"index",value:function(b,E){return b===this.leftGuard?0:b===this.rightGuard?1:a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"index",this).call(this,b,E)}},{key:"restore",value:function(b){var E=void 0,S=void 0,w=b.data.split(g).join("");if(b===this.leftGuard)if(this.prev instanceof c.default){var _=this.prev.length();this.prev.insertAt(_,w),E={startNode:this.prev.domNode,startOffset:_+w.length}}else S=document.createTextNode(w),this.parent.insertBefore(f.default.create(S),this),E={startNode:S,startOffset:w.length};else b===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,w),E={startNode:this.next.domNode,startOffset:w.length}):(S=document.createTextNode(w),this.parent.insertBefore(f.default.create(S),this.next),E={startNode:S,startOffset:w.length}));return b.data=g,E}},{key:"update",value:function(b,E){var S=this;b.forEach(function(w){if(w.type==="characterData"&&(w.target===S.leftGuard||w.target===S.rightGuard)){var _=S.restore(w.target);_&&(E.range=_)}})}}]),m})(f.default.Embed);i.default=p}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.AlignStyle=i.AlignClass=i.AlignAttribute=void 0;var o=n(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}var f={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},d=new a.default.Attributor.Attribute("align","align",f),c=new a.default.Attributor.Class("align","ql-align",f),l=new a.default.Attributor.Style("align","text-align",f);i.AlignAttribute=d,i.AlignClass=c,i.AlignStyle=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.BackgroundStyle=i.BackgroundClass=void 0;var o=n(0),a=f(o),s=n(26);function f(l){return l&&l.__esModule?l:{default:l}}var d=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),c=new s.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});i.BackgroundClass=d,i.BackgroundStyle=c}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.DirectionStyle=i.DirectionClass=i.DirectionAttribute=void 0;var o=n(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}var f={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},d=new a.default.Attributor.Attribute("direction","dir",f),c=new a.default.Attributor.Class("direction","ql-direction",f),l=new a.default.Attributor.Style("direction","direction",f);i.DirectionAttribute=d,i.DirectionClass=c,i.DirectionStyle=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.FontClass=i.FontStyle=void 0;var o=(function(){function y(m,x){for(var b=0;b<x.length;b++){var E=x[b];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,x,b){return x&&y(m.prototype,x),b&&y(m,b),m}})(),a=function y(m,x,b){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,x);if(E===void 0){var S=Object.getPrototypeOf(m);return S===null?void 0:y(S,x,b)}else{if("value"in E)return E.value;var w=E.get;return w===void 0?void 0:w.call(b)}},s=n(0),f=d(s);function d(y){return y&&y.__esModule?y:{default:y}}function c(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function l(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function u(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var h={scope:f.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new f.default.Attributor.Class("font","ql-font",h),g=(function(y){u(m,y);function m(){return c(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"value",value:function(b){return a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,b).replace(/["']/g,"")}}]),m})(f.default.Attributor.Style),p=new g("font","font-family",h);i.FontStyle=p,i.FontClass=v}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.SizeStyle=i.SizeClass=void 0;var o=n(0),a=s(o);function s(c){return c&&c.__esModule?c:{default:c}}var f=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),d=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});i.SizeClass=f,i.SizeStyle=d}),(function(t,i,n){t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.getLastChangeIndex=i.default=void 0;var o=(function(){function x(b,E){for(var S=0;S<E.length;S++){var w=E[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,E,S){return E&&x(b.prototype,E),S&&x(b,S),b}})(),a=n(0),s=u(a),f=n(5),d=u(f),c=n(9),l=u(c);function u(x){return x&&x.__esModule?x:{default:x}}function h(x,b){if(!(x instanceof b))throw new TypeError("Cannot call a class as a function")}function v(x,b){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:x}function g(x,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);x.prototype=Object.create(b&&b.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(x,b):x.__proto__=b)}var p=(function(x){g(b,x);function b(E,S){h(this,b);var w=v(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,E,S));return w.lastRecorded=0,w.ignoreChange=!1,w.clear(),w.quill.on(d.default.events.EDITOR_CHANGE,function(_,A,R,C){_!==d.default.events.TEXT_CHANGE||w.ignoreChange||(!w.options.userOnly||C===d.default.sources.USER?w.record(A,R):w.transform(A))}),w.quill.keyboard.addBinding({key:"Z",shortKey:!0},w.undo.bind(w)),w.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},w.redo.bind(w)),/Win/i.test(navigator.platform)&&w.quill.keyboard.addBinding({key:"Y",shortKey:!0},w.redo.bind(w)),w}return o(b,[{key:"change",value:function(S,w){if(this.stack[S].length!==0){var _=this.stack[S].pop();this.stack[w].push(_),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(_[S],d.default.sources.USER),this.ignoreChange=!1;var A=m(_[S]);this.quill.setSelection(A)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,w){if(S.ops.length!==0){this.stack.redo=[];var _=this.quill.getContents().diff(w),A=Date.now();if(this.lastRecorded+this.options.delay>A&&this.stack.undo.length>0){var R=this.stack.undo.pop();_=_.compose(R.undo),S=R.redo.compose(S)}else this.lastRecorded=A;this.stack.undo.push({redo:S,undo:_}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(S){this.stack.undo.forEach(function(w){w.undo=S.transform(w.undo,!0),w.redo=S.transform(w.redo,!0)}),this.stack.redo.forEach(function(w){w.undo=S.transform(w.undo,!0),w.redo=S.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),b})(l.default);p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function y(x){var b=x.ops[x.ops.length-1];return b==null?!1:b.insert!=null?typeof b.insert=="string"&&b.insert.endsWith(`
|
|
44
|
-
`):b.attributes!=null?Object.keys(b.attributes).some(function(E){return s.default.query(E,s.default.Scope.BLOCK)!=null}):!1}function m(x){var b=x.reduce(function(S,w){return S+=w.delete||0,S},0),E=x.length()-b;return y(x)&&(E-=1),E}i.default=p,i.getLastChangeIndex=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BaseTooltip=void 0;var o=(function(){function L(q,K){for(var G=0;G<K.length;G++){var T=K[G];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(q,T.key,T)}}return function(q,K,G){return K&&L(q.prototype,K),G&&L(q,G),q}})(),a=function L(q,K,G){q===null&&(q=Function.prototype);var T=Object.getOwnPropertyDescriptor(q,K);if(T===void 0){var D=Object.getPrototypeOf(q);return D===null?void 0:L(D,K,G)}else{if("value"in T)return T.value;var H=T.get;return H===void 0?void 0:H.call(G)}},s=n(3),f=A(s),d=n(2),c=A(d),l=n(8),u=A(l),h=n(23),v=A(h),g=n(34),p=A(g),y=n(59),m=A(y),x=n(60),b=A(x),E=n(28),S=A(E),w=n(61),_=A(w);function A(L){return L&&L.__esModule?L:{default:L}}function R(L,q){if(!(L instanceof q))throw new TypeError("Cannot call a class as a function")}function C(L,q){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:L}function O(L,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);L.prototype=Object.create(q&&q.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(L,q):L.__proto__=q)}var j=[!1,"center","right","justify"],k=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],I=[!1,"serif","monospace"],B=["1","2","3",!1],V=["small",!1,"large","huge"],W=(function(L){O(q,L);function q(K,G){R(this,q);var T=C(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,K,G)),D=function H(U){if(!document.body.contains(K.root))return document.body.removeEventListener("click",H);T.tooltip!=null&&!T.tooltip.root.contains(U.target)&&document.activeElement!==T.tooltip.textbox&&!T.quill.hasFocus()&&T.tooltip.hide(),T.pickers!=null&&T.pickers.forEach(function(Y){Y.container.contains(U.target)||Y.close()})};return K.emitter.listenDOM("click",document.body,D),T}return o(q,[{key:"addModule",value:function(G){var T=a(q.prototype.__proto__||Object.getPrototypeOf(q.prototype),"addModule",this).call(this,G);return G==="toolbar"&&this.extendToolbar(T),T}},{key:"buildButtons",value:function(G,T){G.forEach(function(D){var H=D.getAttribute("class")||"";H.split(/\s+/).forEach(function(U){if(U.startsWith("ql-")&&(U=U.slice(3),T[U]!=null))if(U==="direction")D.innerHTML=T[U][""]+T[U].rtl;else if(typeof T[U]=="string")D.innerHTML=T[U];else{var Y=D.value||"";Y!=null&&T[U][Y]&&(D.innerHTML=T[U][Y])}})})}},{key:"buildPickers",value:function(G,T){var D=this;this.pickers=G.map(function(U){if(U.classList.contains("ql-align"))return U.querySelector("option")==null&&N(U,j),new b.default(U,T.align);if(U.classList.contains("ql-background")||U.classList.contains("ql-color")){var Y=U.classList.contains("ql-background")?"background":"color";return U.querySelector("option")==null&&N(U,k,Y==="background"?"#ffffff":"#000000"),new m.default(U,T[Y])}else return U.querySelector("option")==null&&(U.classList.contains("ql-font")?N(U,I):U.classList.contains("ql-header")?N(U,B):U.classList.contains("ql-size")&&N(U,V)),new S.default(U)});var H=function(){D.pickers.forEach(function(Y){Y.update()})};this.quill.on(u.default.events.EDITOR_CHANGE,H)}}]),q})(p.default);W.DEFAULTS=(0,f.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var q=this,K=this.container.querySelector("input.ql-image[type=file]");K==null&&(K=document.createElement("input"),K.setAttribute("type","file"),K.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),K.classList.add("ql-image"),K.addEventListener("change",function(){if(K.files!=null&&K.files[0]!=null){var G=new FileReader;G.onload=function(T){var D=q.quill.getSelection(!0);q.quill.updateContents(new c.default().retain(D.index).delete(D.length).insert({image:T.target.result}),u.default.sources.USER),q.quill.setSelection(D.index+1,u.default.sources.SILENT),K.value=""},G.readAsDataURL(K.files[0])}}),this.container.appendChild(K)),K.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var F=(function(L){O(q,L);function q(K,G){R(this,q);var T=C(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,K,G));return T.textbox=T.root.querySelector('input[type="text"]'),T.listen(),T}return o(q,[{key:"listen",value:function(){var G=this;this.textbox.addEventListener("keydown",function(T){v.default.match(T,"enter")?(G.save(),T.preventDefault()):v.default.match(T,"escape")&&(G.cancel(),T.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),T!=null?this.textbox.value=T:G!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+G)||""),this.root.setAttribute("data-mode",G)}},{key:"restoreFocus",value:function(){var G=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=G}},{key:"save",value:function(){var G=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var T=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",G,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",G,u.default.sources.USER)),this.quill.root.scrollTop=T;break}case"video":G=$(G);case"formula":{if(!G)break;var D=this.quill.getSelection(!0);if(D!=null){var H=D.index+D.length;this.quill.insertEmbed(H,this.root.getAttribute("data-mode"),G,u.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(H+1," ",u.default.sources.USER),this.quill.setSelection(H+2,u.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),q})(_.default);function $(L){var q=L.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||L.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return q?(q[1]||"https")+"://www.youtube.com/embed/"+q[2]+"?showinfo=0":(q=L.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(q[1]||"https")+"://player.vimeo.com/video/"+q[2]+"/":L}function N(L,q){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;q.forEach(function(G){var T=document.createElement("option");G===K?T.setAttribute("selected","selected"):T.setAttribute("value",G),L.appendChild(T)})}i.BaseTooltip=F,i.default=W}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},a.prototype.contains=function(s){for(var f,d=this.iterator();f=d();)if(f===s)return!0;return!1},a.prototype.insertBefore=function(s,f){s&&(s.next=f,f!=null?(s.prev=f.prev,f.prev!=null&&(f.prev.next=s),f.prev=s,f===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},a.prototype.offset=function(s){for(var f=0,d=this.head;d!=null;){if(d===s)return f;f+=d.length(),d=d.next}return-1},a.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},a.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var f=s;return s!=null&&(s=s.next),f}},a.prototype.find=function(s,f){f===void 0&&(f=!1);for(var d,c=this.iterator();d=c();){var l=d.length();if(s<l||f&&s===l&&(d.next==null||d.next.length()!==0))return[d,s];s-=l}return[null,0]},a.prototype.forEach=function(s){for(var f,d=this.iterator();f=d();)s(f)},a.prototype.forEachAt=function(s,f,d){if(!(f<=0))for(var c=this.find(s),l=c[0],u=c[1],h,v=s-u,g=this.iterator(l);(h=g())&&v<s+f;){var p=h.length();s>v?d(h,s-v,Math.min(f,v+p-s)):d(h,0,Math.min(p,s+f-v)),v+=p}},a.prototype.map=function(s){return this.reduce(function(f,d){return f.push(s(d)),f},[])},a.prototype.reduce=function(s,f){for(var d,c=this.iterator();d=c();)f=s(f,d);return f},a})();i.default=o}),(function(t,i,n){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var v in h)h.hasOwnProperty(v)&&(u[v]=h[v])};return function(u,h){l(u,h);function v(){this.constructor=u}u.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(17),s=n(1),f={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},d=100,c=(function(l){o(u,l);function u(h){var v=l.call(this,h)||this;return v.scroll=v,v.observer=new MutationObserver(function(g){v.update(g)}),v.observer.observe(v.domNode,f),v.attach(),v}return u.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},u.prototype.deleteAt=function(h,v){this.update(),h===0&&v===this.length()?this.children.forEach(function(g){g.remove()}):l.prototype.deleteAt.call(this,h,v)},u.prototype.formatAt=function(h,v,g,p){this.update(),l.prototype.formatAt.call(this,h,v,g,p)},u.prototype.insertAt=function(h,v,g){this.update(),l.prototype.insertAt.call(this,h,v,g)},u.prototype.optimize=function(h,v){var g=this;h===void 0&&(h=[]),v===void 0&&(v={}),l.prototype.optimize.call(this,v);for(var p=[].slice.call(this.observer.takeRecords());p.length>0;)h.push(p.pop());for(var y=function(E,S){S===void 0&&(S=!0),!(E==null||E===g)&&E.domNode.parentNode!=null&&(E.domNode[s.DATA_KEY].mutations==null&&(E.domNode[s.DATA_KEY].mutations=[]),S&&y(E.parent))},m=function(E){E.domNode[s.DATA_KEY]==null||E.domNode[s.DATA_KEY].mutations==null||(E instanceof a.default&&E.children.forEach(m),E.optimize(v))},x=h,b=0;x.length>0;b+=1){if(b>=d)throw new Error("[Parchment] Maximum optimize iterations reached");for(x.forEach(function(E){var S=s.find(E.target,!0);S!=null&&(S.domNode===E.target&&(E.type==="childList"?(y(s.find(E.previousSibling,!1)),[].forEach.call(E.addedNodes,function(w){var _=s.find(w,!1);y(_,!1),_ instanceof a.default&&_.children.forEach(function(A){y(A,!1)})})):E.type==="attributes"&&y(S.prev)),y(S))}),this.children.forEach(m),x=[].slice.call(this.observer.takeRecords()),p=x.slice();p.length>0;)h.push(p.pop())}},u.prototype.update=function(h,v){var g=this;v===void 0&&(v={}),h=h||this.observer.takeRecords(),h.map(function(p){var y=s.find(p.target,!0);return y==null?null:y.domNode[s.DATA_KEY].mutations==null?(y.domNode[s.DATA_KEY].mutations=[p],y):(y.domNode[s.DATA_KEY].mutations.push(p),null)}).forEach(function(p){p==null||p===g||p.domNode[s.DATA_KEY]==null||p.update(p.domNode[s.DATA_KEY].mutations||[],v)}),this.domNode[s.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,v),this.optimize(h,v)},u.blotName="scroll",u.defaultChild="block",u.scope=s.Scope.BLOCK_BLOT,u.tagName="DIV",u})(a.default);i.default=c}),(function(t,i,n){var o=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var h in u)u.hasOwnProperty(h)&&(l[h]=u[h])};return function(l,u){c(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(18),s=n(1);function f(c,l){if(Object.keys(c).length!==Object.keys(l).length)return!1;for(var u in c)if(c[u]!==l[u])return!1;return!0}var d=(function(c){o(l,c);function l(){return c!==null&&c.apply(this,arguments)||this}return l.formats=function(u){if(u.tagName!==l.tagName)return c.formats.call(this,u)},l.prototype.format=function(u,h){var v=this;u===this.statics.blotName&&!h?(this.children.forEach(function(g){g instanceof a.default||(g=g.wrap(l.blotName,!0)),v.attributes.copy(g)}),this.unwrap()):c.prototype.format.call(this,u,h)},l.prototype.formatAt=function(u,h,v,g){if(this.formats()[v]!=null||s.query(v,s.Scope.ATTRIBUTE)){var p=this.isolate(u,h);p.format(v,g)}else c.prototype.formatAt.call(this,u,h,v,g)},l.prototype.optimize=function(u){c.prototype.optimize.call(this,u);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var v=this.next;v instanceof l&&v.prev===this&&f(h,v.formats())&&(v.moveChildren(this),v.remove())},l.blotName="inline",l.scope=s.Scope.INLINE_BLOT,l.tagName="SPAN",l})(a.default);i.default=d}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var u in l)l.hasOwnProperty(u)&&(c[u]=l[u])};return function(c,l){d(c,l);function u(){this.constructor=c}c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(18),s=n(1),f=(function(d){o(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.formats=function(l){var u=s.query(c.blotName).tagName;if(l.tagName!==u)return d.formats.call(this,l)},c.prototype.format=function(l,u){s.query(l,s.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!u?this.replaceWith(c.blotName):d.prototype.format.call(this,l,u))},c.prototype.formatAt=function(l,u,h,v){s.query(h,s.Scope.BLOCK)!=null?this.format(h,v):d.prototype.formatAt.call(this,l,u,h,v)},c.prototype.insertAt=function(l,u,h){if(h==null||s.query(u,s.Scope.INLINE)!=null)d.prototype.insertAt.call(this,l,u,h);else{var v=this.split(l),g=s.create(u,h);v.parent.insertBefore(g,v)}},c.prototype.update=function(l,u){navigator.userAgent.match(/Trident/)?this.build():d.prototype.update.call(this,l,u)},c.blotName="block",c.scope=s.Scope.BLOCK_BLOT,c.tagName="P",c})(a.default);i.default=f}),(function(t,i,n){var o=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var l in c)c.hasOwnProperty(l)&&(d[l]=c[l])};return function(d,c){f(d,c);function l(){this.constructor=d}d.prototype=c===null?Object.create(c):(l.prototype=c.prototype,new l)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(19),s=(function(f){o(d,f);function d(){return f!==null&&f.apply(this,arguments)||this}return d.formats=function(c){},d.prototype.format=function(c,l){f.prototype.formatAt.call(this,0,this.length(),c,l)},d.prototype.formatAt=function(c,l,u,h){c===0&&l===this.length()?this.format(u,h):f.prototype.formatAt.call(this,c,l,u,h)},d.prototype.formats=function(){return this.statics.formats(this.domNode)},d})(a.default);i.default=s}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var u in l)l.hasOwnProperty(u)&&(c[u]=l[u])};return function(c,l){d(c,l);function u(){this.constructor=c}c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(19),s=n(1),f=(function(d){o(c,d);function c(l){var u=d.call(this,l)||this;return u.text=u.statics.value(u.domNode),u}return c.create=function(l){return document.createTextNode(l)},c.value=function(l){var u=l.data;return u.normalize&&(u=u.normalize()),u},c.prototype.deleteAt=function(l,u){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+u)},c.prototype.index=function(l,u){return this.domNode===l?u:-1},c.prototype.insertAt=function(l,u,h){h==null?(this.text=this.text.slice(0,l)+u+this.text.slice(l),this.domNode.data=this.text):d.prototype.insertAt.call(this,l,u,h)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(l){d.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(l,u){return[this.domNode,l]},c.prototype.split=function(l,u){if(u===void 0&&(u=!1),!u){if(l===0)return this;if(l===this.length())return this.next}var h=s.create(this.domNode.splitText(l));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},c.prototype.update=function(l,u){var h=this;l.some(function(v){return v.type==="characterData"&&v.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=s.Scope.INLINE_BLOT,c})(a.default);i.default=f}),(function(t,i,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,f){return arguments.length>1&&!this.contains(s)==!f?f:a.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,f){return f=f||0,this.substr(f,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,f){var d=this.toString();(typeof f!="number"||!isFinite(f)||Math.floor(f)!==f||f>d.length)&&(f=d.length),f-=s.length;var c=d.indexOf(s,f);return c!==-1&&c===f}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof f!="function")throw new TypeError("predicate must be a function");for(var d=Object(this),c=d.length>>>0,l=arguments[1],u,h=0;h<c;h++)if(u=d[h],f.call(l,u,h,d))return u}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(t,i){var n=-1,o=1,a=0;function s(b,E,S){if(b==E)return b?[[a,b]]:[];(S<0||b.length<S)&&(S=null);var w=l(b,E),_=b.substring(0,w);b=b.substring(w),E=E.substring(w),w=u(b,E);var A=b.substring(b.length-w);b=b.substring(0,b.length-w),E=E.substring(0,E.length-w);var R=f(b,E);return _&&R.unshift([a,_]),A&&R.push([a,A]),v(R),S!=null&&(R=y(R,S)),R=m(R),R}function f(b,E){var S;if(!b)return[[o,E]];if(!E)return[[n,b]];var w=b.length>E.length?b:E,_=b.length>E.length?E:b,A=w.indexOf(_);if(A!=-1)return S=[[o,w.substring(0,A)],[a,_],[o,w.substring(A+_.length)]],b.length>E.length&&(S[0][0]=S[2][0]=n),S;if(_.length==1)return[[n,b],[o,E]];var R=h(b,E);if(R){var C=R[0],O=R[1],j=R[2],k=R[3],I=R[4],B=s(C,j),V=s(O,k);return B.concat([[a,I]],V)}return d(b,E)}function d(b,E){for(var S=b.length,w=E.length,_=Math.ceil((S+w)/2),A=_,R=2*_,C=new Array(R),O=new Array(R),j=0;j<R;j++)C[j]=-1,O[j]=-1;C[A+1]=0,O[A+1]=0;for(var k=S-w,I=k%2!=0,B=0,V=0,W=0,F=0,$=0;$<_;$++){for(var N=-$+B;N<=$-V;N+=2){var L=A+N,q;N==-$||N!=$&&C[L-1]<C[L+1]?q=C[L+1]:q=C[L-1]+1;for(var K=q-N;q<S&&K<w&&b.charAt(q)==E.charAt(K);)q++,K++;if(C[L]=q,q>S)V+=2;else if(K>w)B+=2;else if(I){var G=A+k-N;if(G>=0&&G<R&&O[G]!=-1){var T=S-O[G];if(q>=T)return c(b,E,q,K)}}}for(var D=-$+W;D<=$-F;D+=2){var G=A+D,T;D==-$||D!=$&&O[G-1]<O[G+1]?T=O[G+1]:T=O[G-1]+1;for(var H=T-D;T<S&&H<w&&b.charAt(S-T-1)==E.charAt(w-H-1);)T++,H++;if(O[G]=T,T>S)F+=2;else if(H>w)W+=2;else if(!I){var L=A+k-D;if(L>=0&&L<R&&C[L]!=-1){var q=C[L],K=A+q-L;if(T=S-T,q>=T)return c(b,E,q,K)}}}}return[[n,b],[o,E]]}function c(b,E,S,w){var _=b.substring(0,S),A=E.substring(0,w),R=b.substring(S),C=E.substring(w),O=s(_,A),j=s(R,C);return O.concat(j)}function l(b,E){if(!b||!E||b.charAt(0)!=E.charAt(0))return 0;for(var S=0,w=Math.min(b.length,E.length),_=w,A=0;S<_;)b.substring(A,_)==E.substring(A,_)?(S=_,A=S):w=_,_=Math.floor((w-S)/2+S);return _}function u(b,E){if(!b||!E||b.charAt(b.length-1)!=E.charAt(E.length-1))return 0;for(var S=0,w=Math.min(b.length,E.length),_=w,A=0;S<_;)b.substring(b.length-_,b.length-A)==E.substring(E.length-_,E.length-A)?(S=_,A=S):w=_,_=Math.floor((w-S)/2+S);return _}function h(b,E){var S=b.length>E.length?b:E,w=b.length>E.length?E:b;if(S.length<4||w.length*2<S.length)return null;function _(V,W,F){for(var $=V.substring(F,F+Math.floor(V.length/4)),N=-1,L="",q,K,G,T;(N=W.indexOf($,N+1))!=-1;){var D=l(V.substring(F),W.substring(N)),H=u(V.substring(0,F),W.substring(0,N));L.length<H+D&&(L=W.substring(N-H,N)+W.substring(N,N+D),q=V.substring(0,F-H),K=V.substring(F+D),G=W.substring(0,N-H),T=W.substring(N+D))}return L.length*2>=V.length?[q,K,G,T,L]:null}var A=_(S,w,Math.ceil(S.length/4)),R=_(S,w,Math.ceil(S.length/2)),C;if(!A&&!R)return null;R?A?C=A[4].length>R[4].length?A:R:C=R:C=A;var O,j,k,I;b.length>E.length?(O=C[0],j=C[1],k=C[2],I=C[3]):(k=C[0],I=C[1],O=C[2],j=C[3]);var B=C[4];return[O,j,k,I,B]}function v(b){b.push([a,""]);for(var E=0,S=0,w=0,_="",A="",R;E<b.length;)switch(b[E][0]){case o:w++,A+=b[E][1],E++;break;case n:S++,_+=b[E][1],E++;break;case a:S+w>1?(S!==0&&w!==0&&(R=l(A,_),R!==0&&(E-S-w>0&&b[E-S-w-1][0]==a?b[E-S-w-1][1]+=A.substring(0,R):(b.splice(0,0,[a,A.substring(0,R)]),E++),A=A.substring(R),_=_.substring(R)),R=u(A,_),R!==0&&(b[E][1]=A.substring(A.length-R)+b[E][1],A=A.substring(0,A.length-R),_=_.substring(0,_.length-R))),S===0?b.splice(E-w,S+w,[o,A]):w===0?b.splice(E-S,S+w,[n,_]):b.splice(E-S-w,S+w,[n,_],[o,A]),E=E-S-w+(S?1:0)+(w?1:0)+1):E!==0&&b[E-1][0]==a?(b[E-1][1]+=b[E][1],b.splice(E,1)):E++,w=0,S=0,_="",A="";break}b[b.length-1][1]===""&&b.pop();var C=!1;for(E=1;E<b.length-1;)b[E-1][0]==a&&b[E+1][0]==a&&(b[E][1].substring(b[E][1].length-b[E-1][1].length)==b[E-1][1]?(b[E][1]=b[E-1][1]+b[E][1].substring(0,b[E][1].length-b[E-1][1].length),b[E+1][1]=b[E-1][1]+b[E+1][1],b.splice(E-1,1),C=!0):b[E][1].substring(0,b[E+1][1].length)==b[E+1][1]&&(b[E-1][1]+=b[E+1][1],b[E][1]=b[E][1].substring(b[E+1][1].length)+b[E+1][1],b.splice(E+1,1),C=!0)),E++;C&&v(b)}var g=s;g.INSERT=o,g.DELETE=n,g.EQUAL=a,t.exports=g;function p(b,E){if(E===0)return[a,b];for(var S=0,w=0;w<b.length;w++){var _=b[w];if(_[0]===n||_[0]===a){var A=S+_[1].length;if(E===A)return[w+1,b];if(E<A){b=b.slice();var R=E-S,C=[_[0],_[1].slice(0,R)],O=[_[0],_[1].slice(R)];return b.splice(w,1,C,O),[w+1,b]}else S=A}}throw new Error("cursor_pos is out of bounds!")}function y(b,E){var S=p(b,E),w=S[1],_=S[0],A=w[_],R=w[_+1];if(A==null)return b;if(A[0]!==a)return b;if(R!=null&&A[1]+R[1]===R[1]+A[1])return w.splice(_,2,R,A),x(w,_,2);if(R!=null&&R[1].indexOf(A[1])===0){w.splice(_,2,[R[0],A[1]],[0,A[1]]);var C=R[1].slice(A[1].length);return C.length>0&&w.splice(_+2,0,[R[0],C]),x(w,_,3)}else return b}function m(b){for(var E=!1,S=function(R){return R.charCodeAt(0)>=56320&&R.charCodeAt(0)<=57343},w=function(R){return R.charCodeAt(R.length-1)>=55296&&R.charCodeAt(R.length-1)<=56319},_=2;_<b.length;_+=1)b[_-2][0]===a&&w(b[_-2][1])&&b[_-1][0]===n&&S(b[_-1][1])&&b[_][0]===o&&S(b[_][1])&&(E=!0,b[_-1][1]=b[_-2][1].slice(-1)+b[_-1][1],b[_][1]=b[_-2][1].slice(-1)+b[_][1],b[_-2][1]=b[_-2][1].slice(0,-1));if(!E)return b;for(var A=[],_=0;_<b.length;_+=1)b[_][1].length>0&&A.push(b[_]);return A}function x(b,E,S){for(var w=E+S-1;w>=0&&w>=E-1;w--)if(w+1<b.length){var _=b[w],A=b[w+1];_[0]===A[1]&&b.splice(w,2,[_[0],_[1]+A[1]])}return b}}),(function(t,i){i=t.exports=typeof Object.keys=="function"?Object.keys:n,i.shim=n;function n(o){var a=[];for(var s in o)a.push(s);return a}}),(function(t,i){var n=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";i=t.exports=n?o:a,i.supported=o;function o(s){return Object.prototype.toString.call(s)=="[object Arguments]"}i.unsupported=a;function a(s){return s&&typeof s=="object"&&typeof s.length=="number"&&Object.prototype.hasOwnProperty.call(s,"callee")&&!Object.prototype.propertyIsEnumerable.call(s,"callee")||!1}}),(function(t,i){var n=Object.prototype.hasOwnProperty,o="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(o=!1));function s(d,c,l){this.fn=d,this.context=c,this.once=l||!1}function f(){this._events=new a,this._eventsCount=0}f.prototype.eventNames=function(){var c=[],l,u;if(this._eventsCount===0)return c;for(u in l=this._events)n.call(l,u)&&c.push(o?u.slice(1):u);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(l)):c},f.prototype.listeners=function(c,l){var u=o?o+c:c,h=this._events[u];if(l)return!!h;if(!h)return[];if(h.fn)return[h.fn];for(var v=0,g=h.length,p=new Array(g);v<g;v++)p[v]=h[v].fn;return p},f.prototype.emit=function(c,l,u,h,v,g){var p=o?o+c:c;if(!this._events[p])return!1;var y=this._events[p],m=arguments.length,x,b;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),m){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,l),!0;case 3:return y.fn.call(y.context,l,u),!0;case 4:return y.fn.call(y.context,l,u,h),!0;case 5:return y.fn.call(y.context,l,u,h,v),!0;case 6:return y.fn.call(y.context,l,u,h,v,g),!0}for(b=1,x=new Array(m-1);b<m;b++)x[b-1]=arguments[b];y.fn.apply(y.context,x)}else{var E=y.length,S;for(b=0;b<E;b++)switch(y[b].once&&this.removeListener(c,y[b].fn,void 0,!0),m){case 1:y[b].fn.call(y[b].context);break;case 2:y[b].fn.call(y[b].context,l);break;case 3:y[b].fn.call(y[b].context,l,u);break;case 4:y[b].fn.call(y[b].context,l,u,h);break;default:if(!x)for(S=1,x=new Array(m-1);S<m;S++)x[S-1]=arguments[S];y[b].fn.apply(y[b].context,x)}}return!0},f.prototype.on=function(c,l,u){var h=new s(l,u||this),v=o?o+c:c;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],h]:this._events[v].push(h):(this._events[v]=h,this._eventsCount++),this},f.prototype.once=function(c,l,u){var h=new s(l,u||this,!0),v=o?o+c:c;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],h]:this._events[v].push(h):(this._events[v]=h,this._eventsCount++),this},f.prototype.removeListener=function(c,l,u,h){var v=o?o+c:c;if(!this._events[v])return this;if(!l)return--this._eventsCount===0?this._events=new a:delete this._events[v],this;var g=this._events[v];if(g.fn)g.fn===l&&(!h||g.once)&&(!u||g.context===u)&&(--this._eventsCount===0?this._events=new a:delete this._events[v]);else{for(var p=0,y=[],m=g.length;p<m;p++)(g[p].fn!==l||h&&!g[p].once||u&&g[p].context!==u)&&y.push(g[p]);y.length?this._events[v]=y.length===1?y[0]:y:--this._eventsCount===0?this._events=new a:delete this._events[v]}return this},f.prototype.removeAllListeners=function(c){var l;return c?(l=o?o+c:c,this._events[l]&&(--this._eventsCount===0?this._events=new a:delete this._events[l])):(this._events=new a,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prototype.setMaxListeners=function(){return this},f.prefixed=o,f.EventEmitter=f,typeof t<"u"&&(t.exports=f)}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.matchText=i.matchSpacing=i.matchNewline=i.matchBlot=i.matchAttributor=i.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},a=(function(){function Q(J,le){var se=[],ne=!0,de=!1,ae=void 0;try{for(var pe=J[Symbol.iterator](),_e;!(ne=(_e=pe.next()).done)&&(se.push(_e.value),!(le&&se.length===le));ne=!0);}catch(Me){de=!0,ae=Me}finally{try{!ne&&pe.return&&pe.return()}finally{if(de)throw ae}}return se}return function(J,le){if(Array.isArray(J))return J;if(Symbol.iterator in Object(J))return Q(J,le);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function Q(J,le){for(var se=0;se<le.length;se++){var ne=le[se];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(J,ne.key,ne)}}return function(J,le,se){return le&&Q(J.prototype,le),se&&Q(J,se),J}})(),f=n(3),d=O(f),c=n(2),l=O(c),u=n(0),h=O(u),v=n(5),g=O(v),p=n(10),y=O(p),m=n(9),x=O(m),b=n(36),E=n(37),S=n(13),w=O(S),_=n(26),A=n(38),R=n(39),C=n(40);function O(Q){return Q&&Q.__esModule?Q:{default:Q}}function j(Q,J,le){return J in Q?Object.defineProperty(Q,J,{value:le,enumerable:!0,configurable:!0,writable:!0}):Q[J]=le,Q}function k(Q,J){if(!(Q instanceof J))throw new TypeError("Cannot call a class as a function")}function I(Q,J){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J&&(typeof J=="object"||typeof J=="function")?J:Q}function B(Q,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof J);Q.prototype=Object.create(J&&J.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),J&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,J):Q.__proto__=J)}var V=(0,y.default)("quill:clipboard"),W="__ql-matcher",F=[[Node.TEXT_NODE,he],[Node.TEXT_NODE,re],["br",ee],[Node.ELEMENT_NODE,re],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,ue],[Node.ELEMENT_NODE,U],[Node.ELEMENT_NODE,ce],["li",oe],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",ie]],$=[b.AlignAttribute,A.DirectionAttribute].reduce(function(Q,J){return Q[J.keyName]=J,Q},{}),N=[b.AlignStyle,E.BackgroundStyle,_.ColorStyle,A.DirectionStyle,R.FontStyle,C.SizeStyle].reduce(function(Q,J){return Q[J.keyName]=J,Q},{}),L=(function(Q){B(J,Q);function J(le,se){k(this,J);var ne=I(this,(J.__proto__||Object.getPrototypeOf(J)).call(this,le,se));return ne.quill.root.addEventListener("paste",ne.onPaste.bind(ne)),ne.container=ne.quill.addContainer("ql-clipboard"),ne.container.setAttribute("contenteditable",!0),ne.container.setAttribute("tabindex",-1),ne.matchers=[],F.concat(ne.options.matchers).forEach(function(de){var ae=a(de,2),pe=ae[0],_e=ae[1];!se.matchVisual&&_e===ue||ne.addMatcher(pe,_e)}),ne}return s(J,[{key:"addMatcher",value:function(se,ne){this.matchers.push([se,ne])}},{key:"convert",value:function(se){if(typeof se=="string")return this.container.innerHTML=se.replace(/\>\r?\n +\</g,"><"),this.convert();var ne=this.quill.getFormat(this.quill.selection.savedRange.index);if(ne[w.default.blotName]){var de=this.container.innerText;return this.container.innerHTML="",new l.default().insert(de,j({},w.default.blotName,ne[w.default.blotName]))}var ae=this.prepareMatching(),pe=a(ae,2),_e=pe[0],Me=pe[1],be=D(this.container,_e,Me);return G(be,`
|
|
45
|
-
`)&&be.ops[be.ops.length-1].attributes==null&&(be=be.compose(new l.default().retain(be.length()-1).delete(1))),V.log("convert",this.container.innerHTML,be),this.container.innerHTML="",be}},{key:"dangerouslyPasteHTML",value:function(se,ne){var de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;if(typeof se=="string")this.quill.setContents(this.convert(se),ne),this.quill.setSelection(0,g.default.sources.SILENT);else{var ae=this.convert(ne);this.quill.updateContents(new l.default().retain(se).concat(ae),de),this.quill.setSelection(se+ae.length(),g.default.sources.SILENT)}}},{key:"onPaste",value:function(se){var ne=this;if(!(se.defaultPrevented||!this.quill.isEnabled())){var de=this.quill.getSelection(),ae=new l.default().retain(de.index),pe=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(g.default.sources.SILENT),setTimeout(function(){ae=ae.concat(ne.convert()).delete(de.length),ne.quill.updateContents(ae,g.default.sources.USER),ne.quill.setSelection(ae.length()-de.length,g.default.sources.SILENT),ne.quill.scrollingContainer.scrollTop=pe,ne.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var se=this,ne=[],de=[];return this.matchers.forEach(function(ae){var pe=a(ae,2),_e=pe[0],Me=pe[1];switch(_e){case Node.TEXT_NODE:de.push(Me);break;case Node.ELEMENT_NODE:ne.push(Me);break;default:[].forEach.call(se.container.querySelectorAll(_e),function(be){be[W]=be[W]||[],be[W].push(Me)});break}}),[ne,de]}}]),J})(x.default);
|
|
44
|
+
`):b.attributes!=null?Object.keys(b.attributes).some(function(E){return s.default.query(E,s.default.Scope.BLOCK)!=null}):!1}function m(x){var b=x.reduce(function(S,w){return S+=w.delete||0,S},0),E=x.length()-b;return y(x)&&(E-=1),E}i.default=p,i.getLastChangeIndex=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BaseTooltip=void 0;var o=(function(){function F(q,K){for(var G=0;G<K.length;G++){var T=K[G];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(q,T.key,T)}}return function(q,K,G){return K&&F(q.prototype,K),G&&F(q,G),q}})(),a=function F(q,K,G){q===null&&(q=Function.prototype);var T=Object.getOwnPropertyDescriptor(q,K);if(T===void 0){var D=Object.getPrototypeOf(q);return D===null?void 0:F(D,K,G)}else{if("value"in T)return T.value;var H=T.get;return H===void 0?void 0:H.call(G)}},s=n(3),f=A(s),d=n(2),c=A(d),l=n(8),u=A(l),h=n(23),v=A(h),g=n(34),p=A(g),y=n(59),m=A(y),x=n(60),b=A(x),E=n(28),S=A(E),w=n(61),_=A(w);function A(F){return F&&F.__esModule?F:{default:F}}function R(F,q){if(!(F instanceof q))throw new TypeError("Cannot call a class as a function")}function C(F,q){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:F}function O(F,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);F.prototype=Object.create(q&&q.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(F,q):F.__proto__=q)}var j=[!1,"center","right","justify"],k=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],I=[!1,"serif","monospace"],B=["1","2","3",!1],V=["small",!1,"large","huge"],W=(function(F){O(q,F);function q(K,G){R(this,q);var T=C(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,K,G)),D=function H(U){if(!document.body.contains(K.root))return document.body.removeEventListener("click",H);T.tooltip!=null&&!T.tooltip.root.contains(U.target)&&document.activeElement!==T.tooltip.textbox&&!T.quill.hasFocus()&&T.tooltip.hide(),T.pickers!=null&&T.pickers.forEach(function(Y){Y.container.contains(U.target)||Y.close()})};return K.emitter.listenDOM("click",document.body,D),T}return o(q,[{key:"addModule",value:function(G){var T=a(q.prototype.__proto__||Object.getPrototypeOf(q.prototype),"addModule",this).call(this,G);return G==="toolbar"&&this.extendToolbar(T),T}},{key:"buildButtons",value:function(G,T){G.forEach(function(D){var H=D.getAttribute("class")||"";H.split(/\s+/).forEach(function(U){if(U.startsWith("ql-")&&(U=U.slice(3),T[U]!=null))if(U==="direction")D.innerHTML=T[U][""]+T[U].rtl;else if(typeof T[U]=="string")D.innerHTML=T[U];else{var Y=D.value||"";Y!=null&&T[U][Y]&&(D.innerHTML=T[U][Y])}})})}},{key:"buildPickers",value:function(G,T){var D=this;this.pickers=G.map(function(U){if(U.classList.contains("ql-align"))return U.querySelector("option")==null&&N(U,j),new b.default(U,T.align);if(U.classList.contains("ql-background")||U.classList.contains("ql-color")){var Y=U.classList.contains("ql-background")?"background":"color";return U.querySelector("option")==null&&N(U,k,Y==="background"?"#ffffff":"#000000"),new m.default(U,T[Y])}else return U.querySelector("option")==null&&(U.classList.contains("ql-font")?N(U,I):U.classList.contains("ql-header")?N(U,B):U.classList.contains("ql-size")&&N(U,V)),new S.default(U)});var H=function(){D.pickers.forEach(function(Y){Y.update()})};this.quill.on(u.default.events.EDITOR_CHANGE,H)}}]),q})(p.default);W.DEFAULTS=(0,f.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var q=this,K=this.container.querySelector("input.ql-image[type=file]");K==null&&(K=document.createElement("input"),K.setAttribute("type","file"),K.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),K.classList.add("ql-image"),K.addEventListener("change",function(){if(K.files!=null&&K.files[0]!=null){var G=new FileReader;G.onload=function(T){var D=q.quill.getSelection(!0);q.quill.updateContents(new c.default().retain(D.index).delete(D.length).insert({image:T.target.result}),u.default.sources.USER),q.quill.setSelection(D.index+1,u.default.sources.SILENT),K.value=""},G.readAsDataURL(K.files[0])}}),this.container.appendChild(K)),K.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var L=(function(F){O(q,F);function q(K,G){R(this,q);var T=C(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,K,G));return T.textbox=T.root.querySelector('input[type="text"]'),T.listen(),T}return o(q,[{key:"listen",value:function(){var G=this;this.textbox.addEventListener("keydown",function(T){v.default.match(T,"enter")?(G.save(),T.preventDefault()):v.default.match(T,"escape")&&(G.cancel(),T.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),T!=null?this.textbox.value=T:G!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+G)||""),this.root.setAttribute("data-mode",G)}},{key:"restoreFocus",value:function(){var G=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=G}},{key:"save",value:function(){var G=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var T=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",G,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",G,u.default.sources.USER)),this.quill.root.scrollTop=T;break}case"video":G=$(G);case"formula":{if(!G)break;var D=this.quill.getSelection(!0);if(D!=null){var H=D.index+D.length;this.quill.insertEmbed(H,this.root.getAttribute("data-mode"),G,u.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(H+1," ",u.default.sources.USER),this.quill.setSelection(H+2,u.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),q})(_.default);function $(F){var q=F.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||F.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return q?(q[1]||"https")+"://www.youtube.com/embed/"+q[2]+"?showinfo=0":(q=F.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(q[1]||"https")+"://player.vimeo.com/video/"+q[2]+"/":F}function N(F,q){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;q.forEach(function(G){var T=document.createElement("option");G===K?T.setAttribute("selected","selected"):T.setAttribute("value",G),F.appendChild(T)})}i.BaseTooltip=L,i.default=W}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},a.prototype.contains=function(s){for(var f,d=this.iterator();f=d();)if(f===s)return!0;return!1},a.prototype.insertBefore=function(s,f){s&&(s.next=f,f!=null?(s.prev=f.prev,f.prev!=null&&(f.prev.next=s),f.prev=s,f===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},a.prototype.offset=function(s){for(var f=0,d=this.head;d!=null;){if(d===s)return f;f+=d.length(),d=d.next}return-1},a.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},a.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var f=s;return s!=null&&(s=s.next),f}},a.prototype.find=function(s,f){f===void 0&&(f=!1);for(var d,c=this.iterator();d=c();){var l=d.length();if(s<l||f&&s===l&&(d.next==null||d.next.length()!==0))return[d,s];s-=l}return[null,0]},a.prototype.forEach=function(s){for(var f,d=this.iterator();f=d();)s(f)},a.prototype.forEachAt=function(s,f,d){if(!(f<=0))for(var c=this.find(s),l=c[0],u=c[1],h,v=s-u,g=this.iterator(l);(h=g())&&v<s+f;){var p=h.length();s>v?d(h,s-v,Math.min(f,v+p-s)):d(h,0,Math.min(p,s+f-v)),v+=p}},a.prototype.map=function(s){return this.reduce(function(f,d){return f.push(s(d)),f},[])},a.prototype.reduce=function(s,f){for(var d,c=this.iterator();d=c();)f=s(f,d);return f},a})();i.default=o}),(function(t,i,n){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var v in h)h.hasOwnProperty(v)&&(u[v]=h[v])};return function(u,h){l(u,h);function v(){this.constructor=u}u.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(17),s=n(1),f={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},d=100,c=(function(l){o(u,l);function u(h){var v=l.call(this,h)||this;return v.scroll=v,v.observer=new MutationObserver(function(g){v.update(g)}),v.observer.observe(v.domNode,f),v.attach(),v}return u.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},u.prototype.deleteAt=function(h,v){this.update(),h===0&&v===this.length()?this.children.forEach(function(g){g.remove()}):l.prototype.deleteAt.call(this,h,v)},u.prototype.formatAt=function(h,v,g,p){this.update(),l.prototype.formatAt.call(this,h,v,g,p)},u.prototype.insertAt=function(h,v,g){this.update(),l.prototype.insertAt.call(this,h,v,g)},u.prototype.optimize=function(h,v){var g=this;h===void 0&&(h=[]),v===void 0&&(v={}),l.prototype.optimize.call(this,v);for(var p=[].slice.call(this.observer.takeRecords());p.length>0;)h.push(p.pop());for(var y=function(E,S){S===void 0&&(S=!0),!(E==null||E===g)&&E.domNode.parentNode!=null&&(E.domNode[s.DATA_KEY].mutations==null&&(E.domNode[s.DATA_KEY].mutations=[]),S&&y(E.parent))},m=function(E){E.domNode[s.DATA_KEY]==null||E.domNode[s.DATA_KEY].mutations==null||(E instanceof a.default&&E.children.forEach(m),E.optimize(v))},x=h,b=0;x.length>0;b+=1){if(b>=d)throw new Error("[Parchment] Maximum optimize iterations reached");for(x.forEach(function(E){var S=s.find(E.target,!0);S!=null&&(S.domNode===E.target&&(E.type==="childList"?(y(s.find(E.previousSibling,!1)),[].forEach.call(E.addedNodes,function(w){var _=s.find(w,!1);y(_,!1),_ instanceof a.default&&_.children.forEach(function(A){y(A,!1)})})):E.type==="attributes"&&y(S.prev)),y(S))}),this.children.forEach(m),x=[].slice.call(this.observer.takeRecords()),p=x.slice();p.length>0;)h.push(p.pop())}},u.prototype.update=function(h,v){var g=this;v===void 0&&(v={}),h=h||this.observer.takeRecords(),h.map(function(p){var y=s.find(p.target,!0);return y==null?null:y.domNode[s.DATA_KEY].mutations==null?(y.domNode[s.DATA_KEY].mutations=[p],y):(y.domNode[s.DATA_KEY].mutations.push(p),null)}).forEach(function(p){p==null||p===g||p.domNode[s.DATA_KEY]==null||p.update(p.domNode[s.DATA_KEY].mutations||[],v)}),this.domNode[s.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,v),this.optimize(h,v)},u.blotName="scroll",u.defaultChild="block",u.scope=s.Scope.BLOCK_BLOT,u.tagName="DIV",u})(a.default);i.default=c}),(function(t,i,n){var o=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var h in u)u.hasOwnProperty(h)&&(l[h]=u[h])};return function(l,u){c(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(18),s=n(1);function f(c,l){if(Object.keys(c).length!==Object.keys(l).length)return!1;for(var u in c)if(c[u]!==l[u])return!1;return!0}var d=(function(c){o(l,c);function l(){return c!==null&&c.apply(this,arguments)||this}return l.formats=function(u){if(u.tagName!==l.tagName)return c.formats.call(this,u)},l.prototype.format=function(u,h){var v=this;u===this.statics.blotName&&!h?(this.children.forEach(function(g){g instanceof a.default||(g=g.wrap(l.blotName,!0)),v.attributes.copy(g)}),this.unwrap()):c.prototype.format.call(this,u,h)},l.prototype.formatAt=function(u,h,v,g){if(this.formats()[v]!=null||s.query(v,s.Scope.ATTRIBUTE)){var p=this.isolate(u,h);p.format(v,g)}else c.prototype.formatAt.call(this,u,h,v,g)},l.prototype.optimize=function(u){c.prototype.optimize.call(this,u);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var v=this.next;v instanceof l&&v.prev===this&&f(h,v.formats())&&(v.moveChildren(this),v.remove())},l.blotName="inline",l.scope=s.Scope.INLINE_BLOT,l.tagName="SPAN",l})(a.default);i.default=d}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var u in l)l.hasOwnProperty(u)&&(c[u]=l[u])};return function(c,l){d(c,l);function u(){this.constructor=c}c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(18),s=n(1),f=(function(d){o(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.formats=function(l){var u=s.query(c.blotName).tagName;if(l.tagName!==u)return d.formats.call(this,l)},c.prototype.format=function(l,u){s.query(l,s.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!u?this.replaceWith(c.blotName):d.prototype.format.call(this,l,u))},c.prototype.formatAt=function(l,u,h,v){s.query(h,s.Scope.BLOCK)!=null?this.format(h,v):d.prototype.formatAt.call(this,l,u,h,v)},c.prototype.insertAt=function(l,u,h){if(h==null||s.query(u,s.Scope.INLINE)!=null)d.prototype.insertAt.call(this,l,u,h);else{var v=this.split(l),g=s.create(u,h);v.parent.insertBefore(g,v)}},c.prototype.update=function(l,u){navigator.userAgent.match(/Trident/)?this.build():d.prototype.update.call(this,l,u)},c.blotName="block",c.scope=s.Scope.BLOCK_BLOT,c.tagName="P",c})(a.default);i.default=f}),(function(t,i,n){var o=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var l in c)c.hasOwnProperty(l)&&(d[l]=c[l])};return function(d,c){f(d,c);function l(){this.constructor=d}d.prototype=c===null?Object.create(c):(l.prototype=c.prototype,new l)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(19),s=(function(f){o(d,f);function d(){return f!==null&&f.apply(this,arguments)||this}return d.formats=function(c){},d.prototype.format=function(c,l){f.prototype.formatAt.call(this,0,this.length(),c,l)},d.prototype.formatAt=function(c,l,u,h){c===0&&l===this.length()?this.format(u,h):f.prototype.formatAt.call(this,c,l,u,h)},d.prototype.formats=function(){return this.statics.formats(this.domNode)},d})(a.default);i.default=s}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var u in l)l.hasOwnProperty(u)&&(c[u]=l[u])};return function(c,l){d(c,l);function u(){this.constructor=c}c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(19),s=n(1),f=(function(d){o(c,d);function c(l){var u=d.call(this,l)||this;return u.text=u.statics.value(u.domNode),u}return c.create=function(l){return document.createTextNode(l)},c.value=function(l){var u=l.data;return u.normalize&&(u=u.normalize()),u},c.prototype.deleteAt=function(l,u){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+u)},c.prototype.index=function(l,u){return this.domNode===l?u:-1},c.prototype.insertAt=function(l,u,h){h==null?(this.text=this.text.slice(0,l)+u+this.text.slice(l),this.domNode.data=this.text):d.prototype.insertAt.call(this,l,u,h)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(l){d.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(l,u){return[this.domNode,l]},c.prototype.split=function(l,u){if(u===void 0&&(u=!1),!u){if(l===0)return this;if(l===this.length())return this.next}var h=s.create(this.domNode.splitText(l));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},c.prototype.update=function(l,u){var h=this;l.some(function(v){return v.type==="characterData"&&v.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=s.Scope.INLINE_BLOT,c})(a.default);i.default=f}),(function(t,i,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,f){return arguments.length>1&&!this.contains(s)==!f?f:a.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,f){return f=f||0,this.substr(f,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,f){var d=this.toString();(typeof f!="number"||!isFinite(f)||Math.floor(f)!==f||f>d.length)&&(f=d.length),f-=s.length;var c=d.indexOf(s,f);return c!==-1&&c===f}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof f!="function")throw new TypeError("predicate must be a function");for(var d=Object(this),c=d.length>>>0,l=arguments[1],u,h=0;h<c;h++)if(u=d[h],f.call(l,u,h,d))return u}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(t,i){var n=-1,o=1,a=0;function s(b,E,S){if(b==E)return b?[[a,b]]:[];(S<0||b.length<S)&&(S=null);var w=l(b,E),_=b.substring(0,w);b=b.substring(w),E=E.substring(w),w=u(b,E);var A=b.substring(b.length-w);b=b.substring(0,b.length-w),E=E.substring(0,E.length-w);var R=f(b,E);return _&&R.unshift([a,_]),A&&R.push([a,A]),v(R),S!=null&&(R=y(R,S)),R=m(R),R}function f(b,E){var S;if(!b)return[[o,E]];if(!E)return[[n,b]];var w=b.length>E.length?b:E,_=b.length>E.length?E:b,A=w.indexOf(_);if(A!=-1)return S=[[o,w.substring(0,A)],[a,_],[o,w.substring(A+_.length)]],b.length>E.length&&(S[0][0]=S[2][0]=n),S;if(_.length==1)return[[n,b],[o,E]];var R=h(b,E);if(R){var C=R[0],O=R[1],j=R[2],k=R[3],I=R[4],B=s(C,j),V=s(O,k);return B.concat([[a,I]],V)}return d(b,E)}function d(b,E){for(var S=b.length,w=E.length,_=Math.ceil((S+w)/2),A=_,R=2*_,C=new Array(R),O=new Array(R),j=0;j<R;j++)C[j]=-1,O[j]=-1;C[A+1]=0,O[A+1]=0;for(var k=S-w,I=k%2!=0,B=0,V=0,W=0,L=0,$=0;$<_;$++){for(var N=-$+B;N<=$-V;N+=2){var F=A+N,q;N==-$||N!=$&&C[F-1]<C[F+1]?q=C[F+1]:q=C[F-1]+1;for(var K=q-N;q<S&&K<w&&b.charAt(q)==E.charAt(K);)q++,K++;if(C[F]=q,q>S)V+=2;else if(K>w)B+=2;else if(I){var G=A+k-N;if(G>=0&&G<R&&O[G]!=-1){var T=S-O[G];if(q>=T)return c(b,E,q,K)}}}for(var D=-$+W;D<=$-L;D+=2){var G=A+D,T;D==-$||D!=$&&O[G-1]<O[G+1]?T=O[G+1]:T=O[G-1]+1;for(var H=T-D;T<S&&H<w&&b.charAt(S-T-1)==E.charAt(w-H-1);)T++,H++;if(O[G]=T,T>S)L+=2;else if(H>w)W+=2;else if(!I){var F=A+k-D;if(F>=0&&F<R&&C[F]!=-1){var q=C[F],K=A+q-F;if(T=S-T,q>=T)return c(b,E,q,K)}}}}return[[n,b],[o,E]]}function c(b,E,S,w){var _=b.substring(0,S),A=E.substring(0,w),R=b.substring(S),C=E.substring(w),O=s(_,A),j=s(R,C);return O.concat(j)}function l(b,E){if(!b||!E||b.charAt(0)!=E.charAt(0))return 0;for(var S=0,w=Math.min(b.length,E.length),_=w,A=0;S<_;)b.substring(A,_)==E.substring(A,_)?(S=_,A=S):w=_,_=Math.floor((w-S)/2+S);return _}function u(b,E){if(!b||!E||b.charAt(b.length-1)!=E.charAt(E.length-1))return 0;for(var S=0,w=Math.min(b.length,E.length),_=w,A=0;S<_;)b.substring(b.length-_,b.length-A)==E.substring(E.length-_,E.length-A)?(S=_,A=S):w=_,_=Math.floor((w-S)/2+S);return _}function h(b,E){var S=b.length>E.length?b:E,w=b.length>E.length?E:b;if(S.length<4||w.length*2<S.length)return null;function _(V,W,L){for(var $=V.substring(L,L+Math.floor(V.length/4)),N=-1,F="",q,K,G,T;(N=W.indexOf($,N+1))!=-1;){var D=l(V.substring(L),W.substring(N)),H=u(V.substring(0,L),W.substring(0,N));F.length<H+D&&(F=W.substring(N-H,N)+W.substring(N,N+D),q=V.substring(0,L-H),K=V.substring(L+D),G=W.substring(0,N-H),T=W.substring(N+D))}return F.length*2>=V.length?[q,K,G,T,F]:null}var A=_(S,w,Math.ceil(S.length/4)),R=_(S,w,Math.ceil(S.length/2)),C;if(!A&&!R)return null;R?A?C=A[4].length>R[4].length?A:R:C=R:C=A;var O,j,k,I;b.length>E.length?(O=C[0],j=C[1],k=C[2],I=C[3]):(k=C[0],I=C[1],O=C[2],j=C[3]);var B=C[4];return[O,j,k,I,B]}function v(b){b.push([a,""]);for(var E=0,S=0,w=0,_="",A="",R;E<b.length;)switch(b[E][0]){case o:w++,A+=b[E][1],E++;break;case n:S++,_+=b[E][1],E++;break;case a:S+w>1?(S!==0&&w!==0&&(R=l(A,_),R!==0&&(E-S-w>0&&b[E-S-w-1][0]==a?b[E-S-w-1][1]+=A.substring(0,R):(b.splice(0,0,[a,A.substring(0,R)]),E++),A=A.substring(R),_=_.substring(R)),R=u(A,_),R!==0&&(b[E][1]=A.substring(A.length-R)+b[E][1],A=A.substring(0,A.length-R),_=_.substring(0,_.length-R))),S===0?b.splice(E-w,S+w,[o,A]):w===0?b.splice(E-S,S+w,[n,_]):b.splice(E-S-w,S+w,[n,_],[o,A]),E=E-S-w+(S?1:0)+(w?1:0)+1):E!==0&&b[E-1][0]==a?(b[E-1][1]+=b[E][1],b.splice(E,1)):E++,w=0,S=0,_="",A="";break}b[b.length-1][1]===""&&b.pop();var C=!1;for(E=1;E<b.length-1;)b[E-1][0]==a&&b[E+1][0]==a&&(b[E][1].substring(b[E][1].length-b[E-1][1].length)==b[E-1][1]?(b[E][1]=b[E-1][1]+b[E][1].substring(0,b[E][1].length-b[E-1][1].length),b[E+1][1]=b[E-1][1]+b[E+1][1],b.splice(E-1,1),C=!0):b[E][1].substring(0,b[E+1][1].length)==b[E+1][1]&&(b[E-1][1]+=b[E+1][1],b[E][1]=b[E][1].substring(b[E+1][1].length)+b[E+1][1],b.splice(E+1,1),C=!0)),E++;C&&v(b)}var g=s;g.INSERT=o,g.DELETE=n,g.EQUAL=a,t.exports=g;function p(b,E){if(E===0)return[a,b];for(var S=0,w=0;w<b.length;w++){var _=b[w];if(_[0]===n||_[0]===a){var A=S+_[1].length;if(E===A)return[w+1,b];if(E<A){b=b.slice();var R=E-S,C=[_[0],_[1].slice(0,R)],O=[_[0],_[1].slice(R)];return b.splice(w,1,C,O),[w+1,b]}else S=A}}throw new Error("cursor_pos is out of bounds!")}function y(b,E){var S=p(b,E),w=S[1],_=S[0],A=w[_],R=w[_+1];if(A==null)return b;if(A[0]!==a)return b;if(R!=null&&A[1]+R[1]===R[1]+A[1])return w.splice(_,2,R,A),x(w,_,2);if(R!=null&&R[1].indexOf(A[1])===0){w.splice(_,2,[R[0],A[1]],[0,A[1]]);var C=R[1].slice(A[1].length);return C.length>0&&w.splice(_+2,0,[R[0],C]),x(w,_,3)}else return b}function m(b){for(var E=!1,S=function(R){return R.charCodeAt(0)>=56320&&R.charCodeAt(0)<=57343},w=function(R){return R.charCodeAt(R.length-1)>=55296&&R.charCodeAt(R.length-1)<=56319},_=2;_<b.length;_+=1)b[_-2][0]===a&&w(b[_-2][1])&&b[_-1][0]===n&&S(b[_-1][1])&&b[_][0]===o&&S(b[_][1])&&(E=!0,b[_-1][1]=b[_-2][1].slice(-1)+b[_-1][1],b[_][1]=b[_-2][1].slice(-1)+b[_][1],b[_-2][1]=b[_-2][1].slice(0,-1));if(!E)return b;for(var A=[],_=0;_<b.length;_+=1)b[_][1].length>0&&A.push(b[_]);return A}function x(b,E,S){for(var w=E+S-1;w>=0&&w>=E-1;w--)if(w+1<b.length){var _=b[w],A=b[w+1];_[0]===A[1]&&b.splice(w,2,[_[0],_[1]+A[1]])}return b}}),(function(t,i){i=t.exports=typeof Object.keys=="function"?Object.keys:n,i.shim=n;function n(o){var a=[];for(var s in o)a.push(s);return a}}),(function(t,i){var n=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";i=t.exports=n?o:a,i.supported=o;function o(s){return Object.prototype.toString.call(s)=="[object Arguments]"}i.unsupported=a;function a(s){return s&&typeof s=="object"&&typeof s.length=="number"&&Object.prototype.hasOwnProperty.call(s,"callee")&&!Object.prototype.propertyIsEnumerable.call(s,"callee")||!1}}),(function(t,i){var n=Object.prototype.hasOwnProperty,o="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(o=!1));function s(d,c,l){this.fn=d,this.context=c,this.once=l||!1}function f(){this._events=new a,this._eventsCount=0}f.prototype.eventNames=function(){var c=[],l,u;if(this._eventsCount===0)return c;for(u in l=this._events)n.call(l,u)&&c.push(o?u.slice(1):u);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(l)):c},f.prototype.listeners=function(c,l){var u=o?o+c:c,h=this._events[u];if(l)return!!h;if(!h)return[];if(h.fn)return[h.fn];for(var v=0,g=h.length,p=new Array(g);v<g;v++)p[v]=h[v].fn;return p},f.prototype.emit=function(c,l,u,h,v,g){var p=o?o+c:c;if(!this._events[p])return!1;var y=this._events[p],m=arguments.length,x,b;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),m){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,l),!0;case 3:return y.fn.call(y.context,l,u),!0;case 4:return y.fn.call(y.context,l,u,h),!0;case 5:return y.fn.call(y.context,l,u,h,v),!0;case 6:return y.fn.call(y.context,l,u,h,v,g),!0}for(b=1,x=new Array(m-1);b<m;b++)x[b-1]=arguments[b];y.fn.apply(y.context,x)}else{var E=y.length,S;for(b=0;b<E;b++)switch(y[b].once&&this.removeListener(c,y[b].fn,void 0,!0),m){case 1:y[b].fn.call(y[b].context);break;case 2:y[b].fn.call(y[b].context,l);break;case 3:y[b].fn.call(y[b].context,l,u);break;case 4:y[b].fn.call(y[b].context,l,u,h);break;default:if(!x)for(S=1,x=new Array(m-1);S<m;S++)x[S-1]=arguments[S];y[b].fn.apply(y[b].context,x)}}return!0},f.prototype.on=function(c,l,u){var h=new s(l,u||this),v=o?o+c:c;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],h]:this._events[v].push(h):(this._events[v]=h,this._eventsCount++),this},f.prototype.once=function(c,l,u){var h=new s(l,u||this,!0),v=o?o+c:c;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],h]:this._events[v].push(h):(this._events[v]=h,this._eventsCount++),this},f.prototype.removeListener=function(c,l,u,h){var v=o?o+c:c;if(!this._events[v])return this;if(!l)return--this._eventsCount===0?this._events=new a:delete this._events[v],this;var g=this._events[v];if(g.fn)g.fn===l&&(!h||g.once)&&(!u||g.context===u)&&(--this._eventsCount===0?this._events=new a:delete this._events[v]);else{for(var p=0,y=[],m=g.length;p<m;p++)(g[p].fn!==l||h&&!g[p].once||u&&g[p].context!==u)&&y.push(g[p]);y.length?this._events[v]=y.length===1?y[0]:y:--this._eventsCount===0?this._events=new a:delete this._events[v]}return this},f.prototype.removeAllListeners=function(c){var l;return c?(l=o?o+c:c,this._events[l]&&(--this._eventsCount===0?this._events=new a:delete this._events[l])):(this._events=new a,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prototype.setMaxListeners=function(){return this},f.prefixed=o,f.EventEmitter=f,typeof t<"u"&&(t.exports=f)}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.matchText=i.matchSpacing=i.matchNewline=i.matchBlot=i.matchAttributor=i.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},a=(function(){function Q(J,le){var se=[],ne=!0,de=!1,ae=void 0;try{for(var pe=J[Symbol.iterator](),_e;!(ne=(_e=pe.next()).done)&&(se.push(_e.value),!(le&&se.length===le));ne=!0);}catch(Me){de=!0,ae=Me}finally{try{!ne&&pe.return&&pe.return()}finally{if(de)throw ae}}return se}return function(J,le){if(Array.isArray(J))return J;if(Symbol.iterator in Object(J))return Q(J,le);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function Q(J,le){for(var se=0;se<le.length;se++){var ne=le[se];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(J,ne.key,ne)}}return function(J,le,se){return le&&Q(J.prototype,le),se&&Q(J,se),J}})(),f=n(3),d=O(f),c=n(2),l=O(c),u=n(0),h=O(u),v=n(5),g=O(v),p=n(10),y=O(p),m=n(9),x=O(m),b=n(36),E=n(37),S=n(13),w=O(S),_=n(26),A=n(38),R=n(39),C=n(40);function O(Q){return Q&&Q.__esModule?Q:{default:Q}}function j(Q,J,le){return J in Q?Object.defineProperty(Q,J,{value:le,enumerable:!0,configurable:!0,writable:!0}):Q[J]=le,Q}function k(Q,J){if(!(Q instanceof J))throw new TypeError("Cannot call a class as a function")}function I(Q,J){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J&&(typeof J=="object"||typeof J=="function")?J:Q}function B(Q,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof J);Q.prototype=Object.create(J&&J.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),J&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,J):Q.__proto__=J)}var V=(0,y.default)("quill:clipboard"),W="__ql-matcher",L=[[Node.TEXT_NODE,he],[Node.TEXT_NODE,re],["br",ee],[Node.ELEMENT_NODE,re],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,ue],[Node.ELEMENT_NODE,U],[Node.ELEMENT_NODE,ce],["li",oe],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",ie]],$=[b.AlignAttribute,A.DirectionAttribute].reduce(function(Q,J){return Q[J.keyName]=J,Q},{}),N=[b.AlignStyle,E.BackgroundStyle,_.ColorStyle,A.DirectionStyle,R.FontStyle,C.SizeStyle].reduce(function(Q,J){return Q[J.keyName]=J,Q},{}),F=(function(Q){B(J,Q);function J(le,se){k(this,J);var ne=I(this,(J.__proto__||Object.getPrototypeOf(J)).call(this,le,se));return ne.quill.root.addEventListener("paste",ne.onPaste.bind(ne)),ne.container=ne.quill.addContainer("ql-clipboard"),ne.container.setAttribute("contenteditable",!0),ne.container.setAttribute("tabindex",-1),ne.matchers=[],L.concat(ne.options.matchers).forEach(function(de){var ae=a(de,2),pe=ae[0],_e=ae[1];!se.matchVisual&&_e===ue||ne.addMatcher(pe,_e)}),ne}return s(J,[{key:"addMatcher",value:function(se,ne){this.matchers.push([se,ne])}},{key:"convert",value:function(se){if(typeof se=="string")return this.container.innerHTML=se.replace(/\>\r?\n +\</g,"><"),this.convert();var ne=this.quill.getFormat(this.quill.selection.savedRange.index);if(ne[w.default.blotName]){var de=this.container.innerText;return this.container.innerHTML="",new l.default().insert(de,j({},w.default.blotName,ne[w.default.blotName]))}var ae=this.prepareMatching(),pe=a(ae,2),_e=pe[0],Me=pe[1],be=D(this.container,_e,Me);return G(be,`
|
|
45
|
+
`)&&be.ops[be.ops.length-1].attributes==null&&(be=be.compose(new l.default().retain(be.length()-1).delete(1))),V.log("convert",this.container.innerHTML,be),this.container.innerHTML="",be}},{key:"dangerouslyPasteHTML",value:function(se,ne){var de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;if(typeof se=="string")this.quill.setContents(this.convert(se),ne),this.quill.setSelection(0,g.default.sources.SILENT);else{var ae=this.convert(ne);this.quill.updateContents(new l.default().retain(se).concat(ae),de),this.quill.setSelection(se+ae.length(),g.default.sources.SILENT)}}},{key:"onPaste",value:function(se){var ne=this;if(!(se.defaultPrevented||!this.quill.isEnabled())){var de=this.quill.getSelection(),ae=new l.default().retain(de.index),pe=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(g.default.sources.SILENT),setTimeout(function(){ae=ae.concat(ne.convert()).delete(de.length),ne.quill.updateContents(ae,g.default.sources.USER),ne.quill.setSelection(ae.length()-de.length,g.default.sources.SILENT),ne.quill.scrollingContainer.scrollTop=pe,ne.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var se=this,ne=[],de=[];return this.matchers.forEach(function(ae){var pe=a(ae,2),_e=pe[0],Me=pe[1];switch(_e){case Node.TEXT_NODE:de.push(Me);break;case Node.ELEMENT_NODE:ne.push(Me);break;default:[].forEach.call(se.container.querySelectorAll(_e),function(be){be[W]=be[W]||[],be[W].push(Me)});break}}),[ne,de]}}]),J})(x.default);F.DEFAULTS={matchers:[],matchVisual:!0};function q(Q,J,le){return(typeof J>"u"?"undefined":o(J))==="object"?Object.keys(J).reduce(function(se,ne){return q(se,ne,J[ne])},Q):Q.reduce(function(se,ne){return ne.attributes&&ne.attributes[J]?se.push(ne):se.insert(ne.insert,(0,d.default)({},j({},J,le),ne.attributes))},new l.default)}function K(Q){if(Q.nodeType!==Node.ELEMENT_NODE)return{};var J="__ql-computed-style";return Q[J]||(Q[J]=window.getComputedStyle(Q))}function G(Q,J){for(var le="",se=Q.ops.length-1;se>=0&&le.length<J.length;--se){var ne=Q.ops[se];if(typeof ne.insert!="string")break;le=ne.insert+le}return le.slice(-1*J.length)===J}function T(Q){if(Q.childNodes.length===0)return!1;var J=K(Q);return["block","list-item"].indexOf(J.display)>-1}function D(Q,J,le){return Q.nodeType===Q.TEXT_NODE?le.reduce(function(se,ne){return ne(Q,se)},new l.default):Q.nodeType===Q.ELEMENT_NODE?[].reduce.call(Q.childNodes||[],function(se,ne){var de=D(ne,J,le);return ne.nodeType===Q.ELEMENT_NODE&&(de=J.reduce(function(ae,pe){return pe(ne,ae)},de),de=(ne[W]||[]).reduce(function(ae,pe){return pe(ne,ae)},de)),se.concat(de)},new l.default):new l.default}function H(Q,J,le){return q(le,Q,!0)}function U(Q,J){var le=h.default.Attributor.Attribute.keys(Q),se=h.default.Attributor.Class.keys(Q),ne=h.default.Attributor.Style.keys(Q),de={};return le.concat(se).concat(ne).forEach(function(ae){var pe=h.default.query(ae,h.default.Scope.ATTRIBUTE);pe!=null&&(de[pe.attrName]=pe.value(Q),de[pe.attrName])||(pe=$[ae],pe!=null&&(pe.attrName===ae||pe.keyName===ae)&&(de[pe.attrName]=pe.value(Q)||void 0),pe=N[ae],pe!=null&&(pe.attrName===ae||pe.keyName===ae)&&(pe=N[ae],de[pe.attrName]=pe.value(Q)||void 0))}),Object.keys(de).length>0&&(J=q(J,de)),J}function Y(Q,J){var le=h.default.query(Q);if(le==null)return J;if(le.prototype instanceof h.default.Embed){var se={},ne=le.value(Q);ne!=null&&(se[le.blotName]=ne,J=new l.default().insert(se,le.formats(Q)))}else typeof le.formats=="function"&&(J=q(J,le.blotName,le.formats(Q)));return J}function ee(Q,J){return G(J,`
|
|
46
46
|
`)||J.insert(`
|
|
47
47
|
`),J}function ie(){return new l.default}function oe(Q,J){var le=h.default.query(Q);if(le==null||le.blotName!=="list-item"||!G(J,`
|
|
48
48
|
`))return J;for(var se=-1,ne=Q.parentNode;!ne.classList.contains("ql-clipboard");)(h.default.query(ne)||{}).blotName==="list"&&(se+=1),ne=ne.parentNode;return se<=0?J:J.compose(new l.default().retain(J.length()-1).retain(1,{indent:se}))}function re(Q,J){return G(J,`
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
`),J}function ue(Q,J){if(T(Q)&&Q.nextElementSibling!=null&&!G(J,`
|
|
51
51
|
|
|
52
52
|
`)){var le=Q.offsetHeight+parseFloat(K(Q).marginTop)+parseFloat(K(Q).marginBottom);Q.nextElementSibling.offsetTop>Q.offsetTop+le*1.5&&J.insert(`
|
|
53
|
-
`)}return J}function ce(Q,J){var le={},se=Q.style||{};return se.fontStyle&&K(Q).fontStyle==="italic"&&(le.italic=!0),se.fontWeight&&(K(Q).fontWeight.startsWith("bold")||parseInt(K(Q).fontWeight)>=700)&&(le.bold=!0),Object.keys(le).length>0&&(J=q(J,le)),parseFloat(se.textIndent||0)>0&&(J=new l.default().insert(" ").concat(J)),J}function he(Q,J){var le=Q.data;if(Q.parentNode.tagName==="O:P")return J.insert(le.trim());if(le.trim().length===0&&Q.parentNode.classList.contains("ql-clipboard"))return J;if(!K(Q.parentNode).whiteSpace.startsWith("pre")){var se=function(de,ae){return ae=ae.replace(/[^\u00a0]/g,""),ae.length<1&&de?" ":ae};le=le.replace(/\r\n/g," ").replace(/\n/g," "),le=le.replace(/\s\s+/g,se.bind(se,!0)),(Q.previousSibling==null&&T(Q.parentNode)||Q.previousSibling!=null&&T(Q.previousSibling))&&(le=le.replace(/^\s+/,se.bind(se,!1))),(Q.nextSibling==null&&T(Q.parentNode)||Q.nextSibling!=null&&T(Q.nextSibling))&&(le=le.replace(/\s+$/,se.bind(se,!1)))}return J.insert(le)}i.default=L,i.matchAttributor=U,i.matchBlot=Y,i.matchNewline=re,i.matchSpacing=ue,i.matchText=he}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(g,p){for(var y=0;y<p.length;y++){var m=p[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,p,y){return p&&v(g.prototype,p),y&&v(g,y),g}})(),a=function v(g,p,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,p);if(m===void 0){var x=Object.getPrototypeOf(g);return x===null?void 0:v(x,p,y)}else{if("value"in m)return m.value;var b=m.get;return b===void 0?void 0:b.call(y)}},s=n(6),f=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function l(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){u(g,v);function g(){return c(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"optimize",value:function(y){a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),g})(f.default);h.blotName="bold",h.tagName=["STRONG","B"],i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.addControls=i.default=void 0;var o=(function(){function C(O,j){var k=[],I=!0,B=!1,V=void 0;try{for(var W=O[Symbol.iterator](),F;!(I=(F=W.next()).done)&&(k.push(F.value),!(j&&k.length===j));I=!0);}catch($){B=!0,V=$}finally{try{!I&&W.return&&W.return()}finally{if(B)throw V}}return k}return function(O,j){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return C(O,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function C(O,j){for(var k=0;k<j.length;k++){var I=j[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(O,I.key,I)}}return function(O,j,k){return j&&C(O.prototype,j),k&&C(O,k),O}})(),s=n(2),f=y(s),d=n(0),c=y(d),l=n(5),u=y(l),h=n(10),v=y(h),g=n(9),p=y(g);function y(C){return C&&C.__esModule?C:{default:C}}function m(C,O,j){return O in C?Object.defineProperty(C,O,{value:j,enumerable:!0,configurable:!0,writable:!0}):C[O]=j,C}function x(C,O){if(!(C instanceof O))throw new TypeError("Cannot call a class as a function")}function b(C,O){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:C}function E(C,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);C.prototype=Object.create(O&&O.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(C,O):C.__proto__=O)}var S=(0,v.default)("quill:toolbar"),w=(function(C){E(O,C);function O(j,k){x(this,O);var I=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,j,k));if(Array.isArray(I.options.container)){var B=document.createElement("div");A(B,I.options.container),j.container.parentNode.insertBefore(B,j.container),I.container=B}else typeof I.options.container=="string"?I.container=document.querySelector(I.options.container):I.container=I.options.container;if(!(I.container instanceof HTMLElement)){var V;return V=S.error("Container required for toolbar",I.options),b(I,V)}return I.container.classList.add("ql-toolbar"),I.controls=[],I.handlers={},Object.keys(I.options.handlers).forEach(function(W){I.addHandler(W,I.options.handlers[W])}),[].forEach.call(I.container.querySelectorAll("button, select"),function(W){I.attach(W)}),I.quill.on(u.default.events.EDITOR_CHANGE,function(W,F){W===u.default.events.SELECTION_CHANGE&&I.update(F)}),I.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){var W=I.quill.selection.getRange(),F=o(W,1),$=F[0];I.update($)}),I}return a(O,[{key:"addHandler",value:function(k,I){this.handlers[k]=I}},{key:"attach",value:function(k){var I=this,B=[].find.call(k.classList,function(W){return W.indexOf("ql-")===0});if(B){if(B=B.slice(3),k.tagName==="BUTTON"&&k.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){S.warn("ignoring attaching to disabled format",B,k);return}if(c.default.query(B)==null){S.warn("ignoring attaching to nonexistent format",B,k);return}}var V=k.tagName==="SELECT"?"change":"click";k.addEventListener(V,function(W){var F=void 0;if(k.tagName==="SELECT"){if(k.selectedIndex<0)return;var $=k.options[k.selectedIndex];$.hasAttribute("selected")?F=!1:F=$.value||!1}else k.classList.contains("ql-active")?F=!1:F=k.value||!k.hasAttribute("value"),W.preventDefault();I.quill.focus();var N=I.quill.selection.getRange(),L=o(N,1),q=L[0];if(I.handlers[B]!=null)I.handlers[B].call(I,F);else if(c.default.query(B).prototype instanceof c.default.Embed){if(F=prompt("Enter "+B),!F)return;I.quill.updateContents(new f.default().retain(q.index).delete(q.length).insert(m({},B,F)),u.default.sources.USER)}else I.quill.format(B,F,u.default.sources.USER);I.update(q)}),this.controls.push([B,k])}}},{key:"update",value:function(k){var I=k==null?{}:this.quill.getFormat(k);this.controls.forEach(function(B){var V=o(B,2),W=V[0],F=V[1];if(F.tagName==="SELECT"){var $=void 0;if(k==null)$=null;else if(I[W]==null)$=F.querySelector("option[selected]");else if(!Array.isArray(I[W])){var N=I[W];typeof N=="string"&&(N=N.replace(/\"/g,'\\"')),$=F.querySelector('option[value="'+N+'"]')}$==null?(F.value="",F.selectedIndex=-1):$.selected=!0}else if(k==null)F.classList.remove("ql-active");else if(F.hasAttribute("value")){var L=I[W]===F.getAttribute("value")||I[W]!=null&&I[W].toString()===F.getAttribute("value")||I[W]==null&&!F.getAttribute("value");F.classList.toggle("ql-active",L)}else F.classList.toggle("ql-active",I[W]!=null)})}}]),O})(p.default);w.DEFAULTS={};function _(C,O,j){var k=document.createElement("button");k.setAttribute("type","button"),k.classList.add("ql-"+O),j!=null&&(k.value=j),C.appendChild(k)}function A(C,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(j){var k=document.createElement("span");k.classList.add("ql-formats"),j.forEach(function(I){if(typeof I=="string")_(k,I);else{var B=Object.keys(I)[0],V=I[B];Array.isArray(V)?R(k,B,V):_(k,B,V)}}),C.appendChild(k)})}function R(C,O,j){var k=document.createElement("select");k.classList.add("ql-"+O),j.forEach(function(I){var B=document.createElement("option");I!==!1?B.setAttribute("value",I):B.setAttribute("selected","selected"),k.appendChild(B)}),C.appendChild(k)}w.DEFAULTS={container:null,handlers:{clean:function(){var O=this,j=this.quill.getSelection();if(j!=null)if(j.length==0){var k=this.quill.getFormat();Object.keys(k).forEach(function(I){c.default.query(I,c.default.Scope.INLINE)!=null&&O.quill.format(I,!1)})}else this.quill.removeFormat(j,u.default.sources.USER)},direction:function(O){var j=this.quill.getFormat().align;O==="rtl"&&j==null?this.quill.format("align","right",u.default.sources.USER):!O&&j==="right"&&this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",O,u.default.sources.USER)},indent:function(O){var j=this.quill.getSelection(),k=this.quill.getFormat(j),I=parseInt(k.indent||0);if(O==="+1"||O==="-1"){var B=O==="+1"?1:-1;k.direction==="rtl"&&(B*=-1),this.quill.format("indent",I+B,u.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,u.default.sources.USER)},list:function(O){var j=this.quill.getSelection(),k=this.quill.getFormat(j);O==="check"?k.list==="checked"||k.list==="unchecked"?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",O,u.default.sources.USER)}}},i.default=w,i.addControls=A}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(g,p){for(var y=0;y<p.length;y++){var m=p[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,p,y){return p&&v(g.prototype,p),y&&v(g,y),g}})(),a=function v(g,p,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,p);if(m===void 0){var x=Object.getPrototypeOf(g);return x===null?void 0:v(x,p,y)}else{if("value"in m)return m.value;var b=m.get;return b===void 0?void 0:b.call(y)}},s=n(28),f=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function l(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){u(g,v);function g(p,y){c(this,g);var m=l(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,p));return m.label.innerHTML=y,m.container.classList.add("ql-color-picker"),[].slice.call(m.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),m}return o(g,[{key:"buildItem",value:function(y){var m=a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"buildItem",this).call(this,y);return m.style.backgroundColor=y.getAttribute("value")||"",m}},{key:"selectItem",value:function(y,m){a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,y,m);var x=this.label.querySelector(".ql-color-label"),b=y&&y.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=b:x.style.fill=b)}}]),g})(f.default);i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(g,p){for(var y=0;y<p.length;y++){var m=p[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,p,y){return p&&v(g.prototype,p),y&&v(g,y),g}})(),a=function v(g,p,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,p);if(m===void 0){var x=Object.getPrototypeOf(g);return x===null?void 0:v(x,p,y)}else{if("value"in m)return m.value;var b=m.get;return b===void 0?void 0:b.call(y)}},s=n(28),f=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function l(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){u(g,v);function g(p,y){c(this,g);var m=l(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,p));return m.container.classList.add("ql-icon-picker"),[].forEach.call(m.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=y[x.getAttribute("data-value")||""]}),m.defaultItem=m.container.querySelector(".ql-selected"),m.selectItem(m.defaultItem),m}return o(g,[{key:"selectItem",value:function(y,m){a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,y,m),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),g})(f.default);i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function f(d,c){for(var l=0;l<c.length;l++){var u=c[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,c,l){return c&&f(d.prototype,c),l&&f(d,l),d}})();function a(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}var s=(function(){function f(d,c){var l=this;a(this,f),this.quill=d,this.boundsContainer=c||document.body,this.root=d.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return o(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var l=c.left+c.width/2-this.root.offsetWidth/2,u=c.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=u+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),g=0;if(v.right>h.right&&(g=h.right-v.right,this.root.style.left=l+g+"px"),v.left<h.left&&(g=h.left-v.left,this.root.style.left=l+g+"px"),v.bottom>h.bottom){var p=v.bottom-v.top,y=c.bottom-c.top+p;this.root.style.top=u-y+"px",this.root.classList.add("ql-flip")}return g}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f})();i.default=s}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function R(C,O){var j=[],k=!0,I=!1,B=void 0;try{for(var V=C[Symbol.iterator](),W;!(k=(W=V.next()).done)&&(j.push(W.value),!(O&&j.length===O));k=!0);}catch(F){I=!0,B=F}finally{try{!k&&V.return&&V.return()}finally{if(I)throw B}}return j}return function(C,O){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function R(C,O,j){C===null&&(C=Function.prototype);var k=Object.getOwnPropertyDescriptor(C,O);if(k===void 0){var I=Object.getPrototypeOf(C);return I===null?void 0:R(I,O,j)}else{if("value"in k)return k.value;var B=k.get;return B===void 0?void 0:B.call(j)}},s=(function(){function R(C,O){for(var j=0;j<O.length;j++){var k=O[j];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(C,k.key,k)}}return function(C,O,j){return O&&R(C.prototype,O),j&&R(C,j),C}})(),f=n(3),d=x(f),c=n(8),l=x(c),u=n(43),h=x(u),v=n(27),g=x(v),p=n(15),y=n(41),m=x(y);function x(R){return R&&R.__esModule?R:{default:R}}function b(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function E(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function S(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],_=(function(R){S(C,R);function C(O,j){b(this,C),j.modules.toolbar!=null&&j.modules.toolbar.container==null&&(j.modules.toolbar.container=w);var k=E(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,j));return k.quill.container.classList.add("ql-snow"),k}return s(C,[{key:"extendToolbar",value:function(j){j.container.classList.add("ql-snow"),this.buildButtons([].slice.call(j.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(j.container.querySelectorAll("select")),m.default),this.tooltip=new A(this.quill,this.options.bounds),j.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(k,I){j.handlers.link.call(j,!I.format.link)})}}]),C})(h.default);_.DEFAULTS=(0,d.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var O=this.quill.getSelection();if(O==null||O.length==0)return;var j=this.quill.getText(O);/^\S+@\S+\.\S+$/.test(j)&&j.indexOf("mailto:")!==0&&(j="mailto:"+j);var k=this.quill.theme.tooltip;k.edit("link",j)}else this.quill.format("link",!1)}}}}});var A=(function(R){S(C,R);function C(O,j){b(this,C);var k=E(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,j));return k.preview=k.root.querySelector("a.ql-preview"),k}return s(C,[{key:"listen",value:function(){var j=this;a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(k){j.root.classList.contains("ql-editing")?j.save():j.edit("link",j.preview.textContent),k.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(k){if(j.linkRange!=null){var I=j.linkRange;j.restoreFocus(),j.quill.formatText(I,"link",!1,l.default.sources.USER),delete j.linkRange}k.preventDefault(),j.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(k,I,B){if(k!=null){if(k.length===0&&B===l.default.sources.USER){var V=j.quill.scroll.descendant(g.default,k.index),W=o(V,2),F=W[0],$=W[1];if(F!=null){j.linkRange=new p.Range(k.index-$,F.length());var N=g.default.formats(F.domNode);j.preview.textContent=N,j.preview.setAttribute("href",N),j.show(),j.position(j.quill.getBounds(j.linkRange));return}}else delete j.linkRange;j.hide()}})}},{key:"show",value:function(){a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C})(u.BaseTooltip);A.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),i.default=_}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(29),a=ne(o),s=n(36),f=n(38),d=n(64),c=n(65),l=ne(c),u=n(66),h=ne(u),v=n(67),g=ne(v),p=n(37),y=n(26),m=n(39),x=n(40),b=n(56),E=ne(b),S=n(68),w=ne(S),_=n(27),A=ne(_),R=n(69),C=ne(R),O=n(70),j=ne(O),k=n(71),I=ne(k),B=n(72),V=ne(B),W=n(73),F=ne(W),$=n(13),N=ne($),L=n(74),q=ne(L),K=n(75),G=ne(K),T=n(57),D=ne(T),H=n(41),U=ne(H),Y=n(28),ee=ne(Y),ie=n(59),oe=ne(ie),re=n(60),ue=ne(re),ce=n(61),he=ne(ce),Q=n(108),J=ne(Q),le=n(62),se=ne(le);function ne(de){return de&&de.__esModule?de:{default:de}}a.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":x.SizeStyle},!0),a.default.register({"formats/align":s.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":d.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":m.FontClass,"formats/size":x.SizeClass,"formats/blockquote":l.default,"formats/code-block":N.default,"formats/header":h.default,"formats/list":g.default,"formats/bold":E.default,"formats/code":$.Code,"formats/italic":w.default,"formats/link":A.default,"formats/script":C.default,"formats/strike":j.default,"formats/underline":I.default,"formats/image":V.default,"formats/video":F.default,"formats/list/item":v.ListItem,"modules/formula":q.default,"modules/syntax":G.default,"modules/toolbar":D.default,"themes/bubble":J.default,"themes/snow":se.default,"ui/icons":U.default,"ui/picker":ee.default,"ui/icon-picker":ue.default,"ui/color-picker":oe.default,"ui/tooltip":he.default},!0),i.default=a.default}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.IndentClass=void 0;var o=(function(){function g(p,y){for(var m=0;m<y.length;m++){var x=y[m];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,y,m){return y&&g(p.prototype,y),m&&g(p,m),p}})(),a=function g(p,y,m){p===null&&(p=Function.prototype);var x=Object.getOwnPropertyDescriptor(p,y);if(x===void 0){var b=Object.getPrototypeOf(p);return b===null?void 0:g(b,y,m)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(m)}},s=n(0),f=d(s);function d(g){return g&&g.__esModule?g:{default:g}}function c(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function l(g,p){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:g}function u(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(g,p):g.__proto__=p)}var h=(function(g){u(p,g);function p(){return c(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return o(p,[{key:"add",value:function(m,x){if(x==="+1"||x==="-1"){var b=this.value(m)||0;x=x==="+1"?b+1:b-1}return x===0?(this.remove(m),!0):a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"add",this).call(this,m,x)}},{key:"canAdd",value:function(m,x){return a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"canAdd",this).call(this,m,x)||a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"canAdd",this).call(this,m,parseInt(x))}},{key:"value",value:function(m){return parseInt(a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"value",this).call(this,m))||void 0}}]),p})(f.default.Attributor.Class),v=new h("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});i.IndentClass=v}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(4),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function f(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function c(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){c(h,u);function h(){return f(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="blockquote",l.tagName="blockquote",i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function h(v,g){for(var p=0;p<g.length;p++){var y=g[p];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,g,p){return g&&h(v.prototype,g),p&&h(v,p),v}})(),a=n(4),s=f(a);function f(h){return h&&h.__esModule?h:{default:h}}function d(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function c(h,v){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:h}function l(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(h,v):h.__proto__=v)}var u=(function(h){l(v,h);function v(){return d(this,v),c(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,null,[{key:"formats",value:function(p){return this.tagName.indexOf(p.tagName)+1}}]),v})(s.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],i.default=u}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.ListItem=void 0;var o=(function(){function b(E,S){for(var w=0;w<S.length;w++){var _=S[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(E,_.key,_)}}return function(E,S,w){return S&&b(E.prototype,S),w&&b(E,w),E}})(),a=function b(E,S,w){E===null&&(E=Function.prototype);var _=Object.getOwnPropertyDescriptor(E,S);if(_===void 0){var A=Object.getPrototypeOf(E);return A===null?void 0:b(A,S,w)}else{if("value"in _)return _.value;var R=_.get;return R===void 0?void 0:R.call(w)}},s=n(0),f=h(s),d=n(4),c=h(d),l=n(25),u=h(l);function h(b){return b&&b.__esModule?b:{default:b}}function v(b,E,S){return E in b?Object.defineProperty(b,E,{value:S,enumerable:!0,configurable:!0,writable:!0}):b[E]=S,b}function g(b,E){if(!(b instanceof E))throw new TypeError("Cannot call a class as a function")}function p(b,E){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:b}function y(b,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);b.prototype=Object.create(E&&E.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(b,E):b.__proto__=E)}var m=(function(b){y(E,b);function E(){return g(this,E),p(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return o(E,[{key:"format",value:function(w,_){w===x.blotName&&!_?this.replaceWith(f.default.create(this.statics.scope)):a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,w,_)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(w,_){return this.parent.isolate(this.offset(this.parent),this.length()),w===this.parent.statics.blotName?(this.parent.replaceWith(w,_),this):(this.parent.unwrap(),a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,w,_))}}],[{key:"formats",value:function(w){return w.tagName===this.tagName?void 0:a(E.__proto__||Object.getPrototypeOf(E),"formats",this).call(this,w)}}]),E})(c.default);m.blotName="list-item",m.tagName="LI";var x=(function(b){y(E,b),o(E,null,[{key:"create",value:function(w){var _=w==="ordered"?"OL":"UL",A=a(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,_);return(w==="checked"||w==="unchecked")&&A.setAttribute("data-checked",w==="checked"),A}},{key:"formats",value:function(w){if(w.tagName==="OL")return"ordered";if(w.tagName==="UL")return w.hasAttribute("data-checked")?w.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function E(S){g(this,E);var w=p(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,S)),_=function(R){if(R.target.parentNode===S){var C=w.statics.formats(S),O=f.default.find(R.target);C==="checked"?O.format("list","unchecked"):C==="unchecked"&&O.format("list","checked")}};return S.addEventListener("touchstart",_),S.addEventListener("mousedown",_),w}return o(E,[{key:"format",value:function(w,_){this.children.length>0&&this.children.tail.format(w,_)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(w,_){if(w instanceof m)a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,w,_);else{var A=_==null?this.length():_.offset(this),R=this.split(A);R.parent.insertBefore(w,R)}}},{key:"optimize",value:function(w){a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,w);var _=this.next;_!=null&&_.prev===this&&_.statics.blotName===this.statics.blotName&&_.domNode.tagName===this.domNode.tagName&&_.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(_.moveChildren(this),_.remove())}},{key:"replace",value:function(w){if(w.statics.blotName!==this.statics.blotName){var _=f.default.create(this.statics.defaultChild);w.moveChildren(_),this.appendChild(_)}a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replace",this).call(this,w)}}]),E})(u.default);x.blotName="list",x.scope=f.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[m],i.ListItem=m,i.default=x}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(56),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function f(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function c(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){c(h,u);function h(){return f(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="italic",l.tagName=["EM","I"],i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(g,p){for(var y=0;y<p.length;y++){var m=p[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,p,y){return p&&v(g.prototype,p),y&&v(g,y),g}})(),a=function v(g,p,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,p);if(m===void 0){var x=Object.getPrototypeOf(g);return x===null?void 0:v(x,p,y)}else{if("value"in m)return m.value;var b=m.get;return b===void 0?void 0:b.call(y)}},s=n(6),f=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function l(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){u(g,v);function g(){return c(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):a(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),g})(f.default);h.blotName="script",h.tagName=["SUB","SUP"],i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function f(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function c(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){c(h,u);function h(){return f(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="strike",l.tagName="S",i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function f(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function c(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){c(h,u);function h(){return f(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="underline",l.tagName="U",i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(y,m){for(var x=0;x<m.length;x++){var b=m[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,m,x){return m&&p(y.prototype,m),x&&p(y,x),y}})(),a=function p(y,m,x){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,m);if(b===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:p(E,m,x)}else{if("value"in b)return b.value;var S=b.get;return S===void 0?void 0:S.call(x)}},s=n(0),f=c(s),d=n(27);function c(p){return p&&p.__esModule?p:{default:p}}function l(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function u(p,y){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:p}function h(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);p.prototype=Object.create(y&&y.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(p,y):p.__proto__=y)}var v=["alt","height","width"],g=(function(p){h(y,p);function y(){return l(this,y),u(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"format",value:function(x,b){v.indexOf(x)>-1?b?this.domNode.setAttribute(x,b):this.domNode.removeAttribute(x):a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,b)}}],[{key:"create",value:function(x){var b=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x);return typeof x=="string"&&b.setAttribute("src",this.sanitize(x)),b}},{key:"formats",value:function(x){return v.reduce(function(b,E){return x.hasAttribute(E)&&(b[E]=x.getAttribute(E)),b},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,d.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),y})(f.default.Embed);g.blotName="image",g.tagName="IMG",i.default=g}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(y,m){for(var x=0;x<m.length;x++){var b=m[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,m,x){return m&&p(y.prototype,m),x&&p(y,x),y}})(),a=function p(y,m,x){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,m);if(b===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:p(E,m,x)}else{if("value"in b)return b.value;var S=b.get;return S===void 0?void 0:S.call(x)}},s=n(4),f=n(27),d=c(f);function c(p){return p&&p.__esModule?p:{default:p}}function l(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function u(p,y){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:p}function h(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);p.prototype=Object.create(y&&y.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(p,y):p.__proto__=y)}var v=["height","width"],g=(function(p){h(y,p);function y(){return l(this,y),u(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"format",value:function(x,b){v.indexOf(x)>-1?b?this.domNode.setAttribute(x,b):this.domNode.removeAttribute(x):a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,b)}}],[{key:"create",value:function(x){var b=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x);return b.setAttribute("frameborder","0"),b.setAttribute("allowfullscreen",!0),b.setAttribute("src",this.sanitize(x)),b}},{key:"formats",value:function(x){return v.reduce(function(b,E){return x.hasAttribute(E)&&(b[E]=x.getAttribute(E)),b},{})}},{key:"sanitize",value:function(x){return d.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),y})(s.BlockEmbed);g.blotName="video",g.className="ql-video",g.tagName="IFRAME",i.default=g}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.FormulaBlot=void 0;var o=(function(){function x(b,E){for(var S=0;S<E.length;S++){var w=E[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,E,S){return E&&x(b.prototype,E),S&&x(b,S),b}})(),a=function x(b,E,S){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,E);if(w===void 0){var _=Object.getPrototypeOf(b);return _===null?void 0:x(_,E,S)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(S)}},s=n(35),f=h(s),d=n(5),c=h(d),l=n(9),u=h(l);function h(x){return x&&x.__esModule?x:{default:x}}function v(x,b){if(!(x instanceof b))throw new TypeError("Cannot call a class as a function")}function g(x,b){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:x}function p(x,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);x.prototype=Object.create(b&&b.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(x,b):x.__proto__=b)}var y=(function(x){p(b,x);function b(){return v(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,null,[{key:"create",value:function(S){var w=a(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,w,{throwOnError:!1,errorColor:"#f00"}),w.setAttribute("data-value",S)),w}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),b})(f.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var m=(function(x){p(b,x),o(b,null,[{key:"register",value:function(){c.default.register(y,!0)}}]);function b(){v(this,b);var E=g(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return E}return b})(u.default);i.FormulaBlot=y,i.default=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.CodeToken=i.CodeBlock=void 0;var o=(function(){function S(w,_){for(var A=0;A<_.length;A++){var R=_[A];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}return function(w,_,A){return _&&S(w.prototype,_),A&&S(w,A),w}})(),a=function S(w,_,A){w===null&&(w=Function.prototype);var R=Object.getOwnPropertyDescriptor(w,_);if(R===void 0){var C=Object.getPrototypeOf(w);return C===null?void 0:S(C,_,A)}else{if("value"in R)return R.value;var O=R.get;return O===void 0?void 0:O.call(A)}},s=n(0),f=g(s),d=n(5),c=g(d),l=n(9),u=g(l),h=n(13),v=g(h);function g(S){return S&&S.__esModule?S:{default:S}}function p(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function y(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function m(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var x=(function(S){m(w,S);function w(){return p(this,w),y(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return o(w,[{key:"replaceWith",value:function(A){this.domNode.textContent=this.domNode.textContent,this.attach(),a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,A)}},{key:"highlight",value:function(A){var R=this.domNode.textContent;this.cachedText!==R&&((R.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=A(R),this.domNode.normalize(),this.attach()),this.cachedText=R)}}]),w})(v.default);x.className="ql-syntax";var b=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),E=(function(S){m(w,S),o(w,null,[{key:"register",value:function(){c.default.register(b,!0),c.default.register(x,!0)}}]);function w(_,A){p(this,w);var R=y(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,_,A));if(typeof R.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return R.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){R.highlight(),C=null},R.options.interval)}),R.highlight(),R}return o(w,[{key:"highlight",value:function(){var A=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var R=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(C){C.highlight(A.options.highlight)}),this.quill.update(c.default.sources.SILENT),R!=null&&this.quill.setSelection(R,c.default.sources.SILENT)}}}]),w})(u.default);E.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(S){var w=window.hljs.highlightAuto(S);return w.value}})(),interval:1e3},i.CodeBlock=x,i.CodeToken=b,i.default=E}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(t,i){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(t,i){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(t,i){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(t,i){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BubbleTooltip=void 0;var o=function w(_,A,R){_===null&&(_=Function.prototype);var C=Object.getOwnPropertyDescriptor(_,A);if(C===void 0){var O=Object.getPrototypeOf(_);return O===null?void 0:w(O,A,R)}else{if("value"in C)return C.value;var j=C.get;return j===void 0?void 0:j.call(R)}},a=(function(){function w(_,A){for(var R=0;R<A.length;R++){var C=A[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(_,C.key,C)}}return function(_,A,R){return A&&w(_.prototype,A),R&&w(_,R),_}})(),s=n(3),f=p(s),d=n(8),c=p(d),l=n(43),u=p(l),h=n(15),v=n(41),g=p(v);function p(w){return w&&w.__esModule?w:{default:w}}function y(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")}function m(w,_){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:w}function x(w,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);w.prototype=Object.create(_&&_.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(w,_):w.__proto__=_)}var b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],E=(function(w){x(_,w);function _(A,R){y(this,_),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=b);var C=m(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,A,R));return C.quill.container.classList.add("ql-bubble"),C}return a(_,[{key:"extendToolbar",value:function(R){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(R.container),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),g.default)}}]),_})(u.default);E.DEFAULTS=(0,f.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_){_?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=(function(w){x(_,w);function _(A,R){y(this,_);var C=m(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,A,R));return C.quill.on(c.default.events.EDITOR_CHANGE,function(O,j,k,I){if(O===c.default.events.SELECTION_CHANGE)if(j!=null&&j.length>0&&I===c.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var B=C.quill.getLines(j.index,j.length);if(B.length===1)C.position(C.quill.getBounds(j));else{var V=B[B.length-1],W=C.quill.getIndex(V),F=Math.min(V.length()-1,j.index+j.length-W),$=C.quill.getBounds(new h.Range(W,F));C.position($)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return a(_,[{key:"listen",value:function(){var R=this;o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){R.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!R.root.classList.contains("ql-hidden")){var C=R.quill.getSelection();C!=null&&R.position(R.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(R){var C=o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"position",this).call(this,R),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",C===0)return C;O.style.marginLeft=-1*C-O.offsetWidth/2+"px"}}]),_})(l.BaseTooltip);S.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),i.BubbleTooltip=S,i.default=E}),(function(t,i,n){t.exports=n(63)})]).default})})(Pi)),Pi.exports}var Lt,yf;function Og(){if(yf)return Lt;yf=1;var e=Lt&&Lt.__extends||(function(){var c=function(l,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var g in v)v.hasOwnProperty(g)&&(h[g]=v[g])},c(l,u)};return function(l,u){c(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}})(),r=Lt&&Lt.__assign||function(){return r=Object.assign||function(c){for(var l,u=1,h=arguments.length;u<h;u++){l=arguments[u];for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(c[v]=l[v])}return c},r.apply(this,arguments)},t=Lt&&Lt.__spreadArrays||function(){for(var c=0,l=0,u=arguments.length;l<u;l++)c+=arguments[l].length;for(var h=Array(c),v=0,l=0;l<u;l++)for(var g=arguments[l],p=0,y=g.length;p<y;p++,v++)h[v]=g[p];return h},i=Lt&&Lt.__importDefault||function(c){return c&&c.__esModule?c:{default:c}},n=i(z),o=i($n),a=i(Sg()),s=i(Cg()),f=(function(c){e(l,c);function l(u){var h=c.call(this,u)||this;h.dirtyProps=["modules","formats","bounds","theme","children"],h.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],h.state={generation:0},h.selection=null,h.onEditorChange=function(g,p,y,m){var x,b,E,S;g==="text-change"?(b=(x=h).onEditorChangeText)===null||b===void 0||b.call(x,h.editor.root.innerHTML,p,m,h.unprivilegedEditor):g==="selection-change"&&((S=(E=h).onEditorChangeSelection)===null||S===void 0||S.call(E,p,m,h.unprivilegedEditor))};var v=h.isControlled()?u.value:u.defaultValue;return h.value=v??"",h}return l.prototype.validateProps=function(u){var h;if(n.default.Children.count(u.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(n.default.Children.count(u.children)){var v=n.default.Children.only(u.children);if(((h=v)===null||h===void 0?void 0:h.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&u.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},l.prototype.shouldComponentUpdate=function(u,h){var v=this,g;if(this.validateProps(u),!this.editor||this.state.generation!==h.generation)return!0;if("value"in u){var p=this.getEditorContents(),y=(g=u.value,g??"");this.isEqualValue(y,p)||this.setEditorContents(this.editor,y)}return u.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,u.readOnly),t(this.cleanProps,this.dirtyProps).some(function(m){return!a.default(u[m],v.props[m])})},l.prototype.shouldComponentRegenerate=function(u){var h=this;return this.dirtyProps.some(function(v){return!a.default(u[v],h.props[v])})},l.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},l.prototype.componentWillUnmount=function(){this.destroyEditor()},l.prototype.componentDidUpdate=function(u,h){var v=this;if(this.editor&&this.shouldComponentRegenerate(u)){var g=this.editor.getContents(),p=this.editor.getSelection();this.regenerationSnapshot={delta:g,selection:p},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==h.generation){var y=this.regenerationSnapshot,g=y.delta,m=y.selection;delete this.regenerationSnapshot,this.instantiateEditor();var x=this.editor;x.setContents(g),d(function(){return v.setEditorSelection(x,m)})}},l.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},l.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},l.prototype.isControlled=function(){return"value"in this.props},l.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},l.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},l.prototype.createEditor=function(u,h){var v=new s.default(u,h);return h.tabIndex!=null&&this.setEditorTabIndex(v,h.tabIndex),this.hookEditor(v),v},l.prototype.hookEditor=function(u){this.unprivilegedEditor=this.makeUnprivilegedEditor(u),u.on("editor-change",this.onEditorChange)},l.prototype.unhookEditor=function(u){u.off("editor-change",this.onEditorChange)},l.prototype.getEditorContents=function(){return this.value},l.prototype.getEditorSelection=function(){return this.selection},l.prototype.isDelta=function(u){return u&&u.ops},l.prototype.isEqualValue=function(u,h){return this.isDelta(u)&&this.isDelta(h)?a.default(u.ops,h.ops):a.default(u,h)},l.prototype.setEditorContents=function(u,h){var v=this;this.value=h;var g=this.getEditorSelection();typeof h=="string"?u.setContents(u.clipboard.convert(h)):u.setContents(h),d(function(){return v.setEditorSelection(u,g)})},l.prototype.setEditorSelection=function(u,h){if(this.selection=h,h){var v=u.getLength();h.index=Math.max(0,Math.min(h.index,v-1)),h.length=Math.max(0,Math.min(h.length,v-1-h.index)),u.setSelection(h)}},l.prototype.setEditorTabIndex=function(u,h){var v,g;!((g=(v=u)===null||v===void 0?void 0:v.scroll)===null||g===void 0)&&g.domNode&&(u.scroll.domNode.tabIndex=h)},l.prototype.setEditorReadOnly=function(u,h){h?u.disable():u.enable()},l.prototype.makeUnprivilegedEditor=function(u){var h=u;return{getHTML:function(){return h.root.innerHTML},getLength:h.getLength.bind(h),getText:h.getText.bind(h),getContents:h.getContents.bind(h),getSelection:h.getSelection.bind(h),getBounds:h.getBounds.bind(h)}},l.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var u=o.default.findDOMNode(this.editingArea);if(!u)throw new Error("Cannot find element for editing area");if(u.nodeType===3)throw new Error("Editing area cannot be a text node");return u},l.prototype.renderEditingArea=function(){var u=this,h=this.props,v=h.children,g=h.preserveWhitespace,p=this.state.generation,y={key:p,ref:function(m){u.editingArea=m}};return n.default.Children.count(v)?n.default.cloneElement(n.default.Children.only(v),y):g?n.default.createElement("pre",r({},y)):n.default.createElement("div",r({},y))},l.prototype.render=function(){var u;return n.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(u=this.props.className,u??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},l.prototype.onEditorChangeText=function(u,h,v,g){var p,y;if(this.editor){var m=this.isDelta(this.value)?g.getContents():g.getHTML();m!==this.getEditorContents()&&(this.lastDeltaChangeSet=h,this.value=m,(y=(p=this.props).onChange)===null||y===void 0||y.call(p,u,h,v,g))}},l.prototype.onEditorChangeSelection=function(u,h,v){var g,p,y,m,x,b;if(this.editor){var E=this.getEditorSelection(),S=!E&&u,w=E&&!u;a.default(u,E)||(this.selection=u,(p=(g=this.props).onChangeSelection)===null||p===void 0||p.call(g,u,h,v),S?(m=(y=this.props).onFocus)===null||m===void 0||m.call(y,u,h,v):w&&((b=(x=this.props).onBlur)===null||b===void 0||b.call(x,E,h,v)))}},l.prototype.focus=function(){this.editor&&this.editor.focus()},l.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},l.displayName="React Quill",l.Quill=s.default,l.defaultProps={theme:"snow",modules:{},readOnly:!1},l})(n.default.Component);function d(c){Promise.resolve().then(c)}return Lt=f,Lt}var zl=Og();const Rg=Fe.getDefaultExportFromCjs(zl),Cr=({width:e="100%",height:r="100%",boxAlign:t,display:i="show",overflow:n,style:o,className:a,border:s=!0,children:f,ref:d})=>P.jsxRuntimeExports.jsx("div",{style:{width:e,height:r,display:i==="show"?"":i,overflowX:n?.x,overflowY:n?.y,...o},className:`bwgview-content-box ${t?`content-box-${t}`:""} ${a||""} ${s?"":"none-box-st"}`,ref:d,children:f});zl.Quill.register("modules/imageResize",um);const jg=({name:e,value:r,itemProps:t})=>{const i=X.Form.useFormInstance();return z.useEffect(()=>{i?.setFieldValue(e,r??"")},[i,e,r]),P.jsxRuntimeExports.jsx(X.Form.Item,{...t,hidden:!0,children:P.jsxRuntimeExports.jsx(X.Input,{type:"hidden"})})},Us=({border:e=!0,itemProps:r,editorProps:t,value:i,defaultValue:n,onChange:o})=>{const{isEditing:a=!0,title:s,containerHeight:f="100%"}=t||{},d=z.useMemo(()=>({toolbar:a?[[{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,imageResize:{parchment:zl.Quill.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"},handleStyles:{}}}),[a]),c=z.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image"],[]),l=i!==void 0,[u,h]=z.useState(n??""),v=l?i:u,g=z.useCallback((x,b,E,S)=>{l||h(x),o?.(x,b,E,S)},[l,o]),m=`calc(100% - ${a?"42px":"0px"} - ${s?"40px":"0px"})`;return P.jsxRuntimeExports.jsxs(Cr,{border:e,children:[s&&P.jsxRuntimeExports.jsx(Qi,{...s,paddingBottom:10}),r?.name&&P.jsxRuntimeExports.jsx(jg,{name:r.name,value:v??"",itemProps:r}),P.jsxRuntimeExports.jsx(Rg,{readOnly:!a,value:v,onChange:g,modules:d,formats:c,style:{width:"100%",height:m}},a?"snow":"bubble")]})};var Lr={},bf;function Ag(){if(bf)return Lr;bf=1;var e=$n;if(process.env.NODE_ENV==="production")Lr.createRoot=e.createRoot,Lr.hydrateRoot=e.hydrateRoot;else{var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Lr.createRoot=function(t,i){r.usingClientEntryPoint=!0;try{return e.createRoot(t,i)}finally{r.usingClientEntryPoint=!1}},Lr.hydrateRoot=function(t,i,n){r.usingClientEntryPoint=!0;try{return e.hydrateRoot(t,i,n)}finally{r.usingClientEntryPoint=!1}}}return Lr}var Tg=Ag();const kg=({currentPage:e,totalPages:r,pageSize:t=10,totalData:i,onPageChange:n,pageSizeOptions:o=[10,20,50,100],gridRef:a})=>{const[s,f]=z.useState(t);z.useEffect(()=>{f(t)},[t]),z.useEffect(()=>{f(t)},[]);const d=e+1,c=r>0,u=c?Math.ceil(i/s):0,h=c?i:0,v=Math.min(d,u||1),g=`${s}-${u}-${v}`,p=m=>{n(m-1)},y=m=>{f(m);try{a?.current?.gridView?(a.current.gridView.setPaging(!0,m),a.current.gridView.setPage(0)):n(0)}catch(x){console.warn("페이지 사이즈 변경 중 오류:",x),n(0)}};return P.jsxRuntimeExports.jsxs("div",{style:{padding:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:"1px solid #f0f0f0",backgroundColor:"#fafafa"},children:[P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[P.jsxRuntimeExports.jsx("span",{style:{fontSize:"12px"},children:"페이지당"}),P.jsxRuntimeExports.jsx("select",{value:s,onChange:m=>y(Number(m.target.value)),disabled:!c,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"4px",fontSize:"12px",opacity:c?1:.5},children:o.map(m=>P.jsxRuntimeExports.jsxs("option",{value:m,children:[m,"개"]},m))}),P.jsxRuntimeExports.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:c?1:.5},children:["/ 총 ",h,"개"]})]}),P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>p(1),disabled:!c||v===1,style:{width:"30px",height:"24px",background:!c||v===1?"#f5f5f5":"white",cursor:!c||v===1?"not-allowed":"pointer",opacity:c?1:.5},icon:P.jsxRuntimeExports.jsx(Ce.DoubleLeftOutlined,{})}),P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>p(v-1),disabled:!c||v===1,style:{width:"30px",height:"24px",background:!c||v===1?"#f5f5f5":"white",cursor:!c||v===1?"not-allowed":"pointer",opacity:c?1:.5},icon:P.jsxRuntimeExports.jsx(Ce.LeftOutlined,{})}),P.jsxRuntimeExports.jsx("div",{children:(()=>{if(!c||u===0)return P.jsxRuntimeExports.jsx(X.Button,{disabled:!0,style:{width:"30px",height:"24px"},children:"1"});const m=5;let x=1,b=Math.min(m,u);v>3&&u>m&&(x=Math.max(1,v-2),b=Math.min(u,x+m-1),b===u&&(x=Math.max(1,b-m+1)));const E=[];for(let S=x;S<=b;S++)E.push(P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>p(S),style:{width:"30px",height:"24px",background:v===S?"#1890ff":"white",color:v===S?"white":"black",cursor:"pointer"},children:S},S));return E})()},g),P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>p(v+1),disabled:!c||v>=u,style:{width:"30px",height:"24px",background:!c||v>=u?"#f5f5f5":"white",cursor:!c||v>=u?"not-allowed":"pointer",opacity:c?1:.5},icon:P.jsxRuntimeExports.jsx(Ce.RightOutlined,{})}),P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>p(u),disabled:!c||v>=u,style:{width:"30px",height:"24px",background:!c||v>=u?"#f5f5f5":"white",cursor:!c||v>=u?"not-allowed":"pointer",opacity:c?1:.5},icon:P.jsxRuntimeExports.jsx(Ce.DoubleRightOutlined,{})})]})]})},Pg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",Ng="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",Ig=[{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"}],Mg=[{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"}],Lg=({children:e})=>{const[r,t]=z.useState(!1),[i,n]=z.useState(null);return r?P.jsxRuntimeExports.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:P.jsxRuntimeExports.jsx(X.Alert,{message:"리얼그리드 로드 실패",description:P.jsxRuntimeExports.jsxs("div",{children:[P.jsxRuntimeExports.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),P.jsxRuntimeExports.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",i?.message||"알 수 없는 오류"]}),P.jsxRuntimeExports.jsx(X.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{t(!1),n(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):P.jsxRuntimeExports.jsx(Fg,{onError:o=>{console.error("BwgGrid 에러:",o),n(o),t(!0)},children:e})};class Fg extends z.Component{constructor(r){super(r),this.state={hasError:!1}}static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r,t){this.props.onError(r)}render(){return this.state.hasError?null:this.props.children}}const mh=z.forwardRef(({type:e="nrml",gridDivStyle:r,gridDivClassName:t,gridColumns:i,gridOptions:n,gridEvents:o,bindRef:a,gridContext:s,renderers:f,gridInitCallback:d},c)=>{const l=z.useRef(null),u=(T,D,H,U)=>{let Y=[],ee=[];const ie="treeNode";for(let oe in T){let re=T[oe];Y[re[H]]=T[oe];let ue=Y[re[D]];if(ue==null||ue=="-"){ee.push(re);continue}ue[ie]==null&&(ue[ie]=[]),ue[ie].push(re)}return ee},h=z.useCallback(T=>{const D=U=>{const Y=[];return U.forEach(ee=>{ee.children&&ee.children.length>0?Y.push(...D(ee.children)):Y.push(ee)}),Y};return D(T).map(U=>({fieldName:U.fieldName,dataType:U.dataType||"text"}))},[]),v=z.useCallback(T=>{const D=U=>{const Y=[];return U.forEach(ee=>{ee.children&&ee.children.length>0?Y.push(...D(ee.children)):Y.push(ee)}),Y};return D(T).map(U=>({...U,header:{template:U.required?`<img src='${Ng}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:U.editable?`<img src='${Pg}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:U.header?.text??""},text:U.header?.text||""},styleName:U.dataType==="number"?"right":U.styleName||"center"}))},[]);z.useImperativeHandle(c,()=>({addAllData(T,D){const H=l.current?.gridView.getCurrent().dataRow;if(l.current?.dataProvider instanceof Ct.LocalDataProvider){l.current.dataProvider.clearRows();try{l.current.dataProvider.setRows(T)}catch(U){console.error("fillJsonData 오류:",U)}}if(l.current?.dataProvider instanceof Ct.LocalTreeDataProvider){if(l.current.dataProvider.clearRows(),D?.treeOption?.dataField==null||D?.treeOption?.parentField==null)return;const U={rows:"treeNode"};let Y=u(T,D.treeOption?.parentField,D.treeOption?.dataField);l.current.dataProvider.fillJsonData({treeNode:Y},U),D.treeOption.isExpand&&l.current.gridView?.expandAll()}D?.isCurrent?l.current?.gridView.setCurrent({dataRow:H}):l.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>l.current,getCurrentRow:()=>l.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>l.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(T){l.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!T?.indenting,header:"default",footer:"default",sheetName:"",fileName:T?.fileName||"sample.xlsx",...T})},dp:l.current?.dataProvider??null,vw:l.current?.gridView??null}));const g=z.useCallback((T,D,H)=>{if(a!==void 0&&H>=0){let U=T.getDataSource().getJsonRow(H);a?.current?.setFieldsValue(U)}else a!==void 0&&H<0&&a?.current?.resetFields();T.setCurrent({dataRow:0}),o?.onCurrentRowChanged&&o?.onCurrentRowChanged(T,D,H)},[a,o]),p=z.useCallback((T,D,H)=>{const U=D.fieldName??"";a?.current?.getFieldInstance(U)&&a?.current.setFieldValue(U,H),o?.onEditChange&&o?.onEditChange(T,D,H)},[a,o]),y=z.useCallback((T,D,H)=>{const U=T.getOrgFieldName(H),Y=T.getValue(D,H);a?.current?.setFieldValue(U,Y)},[a]),m=z.useCallback((T,D,H,U)=>{const Y=T.getColumn(U).name??"",ee=T.getValue(D,U);a?.current?.getFieldInstance(Y)&&a?.current.setFieldValue(Y,ee),o?.onCellEdited&&o?.onCellEdited(T,D,H,U)},[a,o]),x=z.useCallback(T=>{if(!l.current)return;const D=l.current.gridView,H=D.getDataSource();if(n?.container?.page){const U=D.getPage(),Y=D.getPageCount(),ee=H.getRowCount();F({currentPage:U,totalPages:Y,totalData:ee})}},[n?.container?.page]),b=z.useCallback(()=>{if(!l.current)return;const T=l.current.gridView,D=T.getDataSource(),H=["onKeyDown"],U=["onRowInserted"];Object.keys(o??{}).map(Y=>{H.includes(Y)?T[Y+"Add"]=o?.[Y]:T[Y]=o?.[Y],U.includes(Y)?D[Y+"Add"]=o?.[Y]:D[Y]=o?.[Y]}),D instanceof Ct.LocalDataProvider&&(D.onRowInserted=(Y,ee)=>{ee<0||(setTimeout(function(){T?.setCurrent({dataRow:ee})},1),Y.onRowInsertedAdd!==void 0&&Y.onRowInsertedAdd(Y,ee))}),T.onKeyDown=function(Y,ee){if(ee.code=="Space"){let ie=Y.getSelectedItems(!0);for(const oe in ie)Y.isCheckable(ie[oe])&&(Y.isCheckedItem(ie[oe])?Y.checkItem(ie[oe],!1,!1):Y.checkItem(ie[oe],!0,!1))}return Y.onKeyDownAdd!==void 0&&Y.onKeyDownAdd(Y,ee),!0},l.current.gridView.onCurrentRowChanged=g,l.current.gridView.onEditChange=p,l.current.gridView.getDataSource().onValueChanged=y,l.current.gridView.onCellEdited=m,l.current.gridView.onDataLoadComplated=x},[g,p,y,m,x]),E=z.useCallback(T=>{if(T){try{T.gridView.setSortingOptions({enabled:!0}),T.gridView.sortMode=Ct.SortMode.EXPLICIT,T.gridView.editorOptions.viewGridInside=!0,T.gridView instanceof Ct.TreeView&&T.gridView.setTreeOptions({expandWhenSetData:Ct.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:Ct.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),T.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:n?.display?.minRowHeight||43,maxRowHeight:n?.display?.maxRowHeight||100,rowHeight:n?.display?.rowHeight||43,rowChangeDelay:n?.display?.rowChangeDelay||0,selectionStyle:n?.display?.selectionStyle||Ct.SelectionStyle.ROWS,fitStyle:n?.display?.fitStyle||Ct.GridFitStyle.FILL,useAlternateRowStyle:n?.display?.useAlternateRowStyle||!1}),T.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:n?.edit?.editable||!1,validateOnEdited:n?.edit?.validateOnEdited||!1}),T.gridView.setCopyOptions({singleMode:n?.copy?.singleMode||!1}),T.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),T.gridView.header.height=n?.header?.height||43,T.gridView.header.styleName=n?.header?.styleName||"bwgGridHeader",n?.container?.radio?T.gridView.setCheckBar({exclusive:n?.container?.radio||!1}):T.gridView.setCheckBar({visible:n?.container?.check||!1,showAll:n?.container?.checkAll||!1}),T.gridView.setStateBar({visible:n?.container?.state||!1}),T.gridView.rowIndicator.visible=n?.container?.indicator||!1,T.gridView instanceof Ct.GridView&&(T.gridView.groupPanel.visible=n?.container?.panel||!1),T.gridView.setFooters({visible:n?.container?.footer||!1}),T.gridView.setHeader({visible:n?.container?.header||!0}),T.gridView.formatOptions.numberFormat="#,##0"}catch(D){console.log("그리드 옵션 설정 중 오류:",D)}try{T.gridView instanceof Ct.TreeView?T.gridView.setContextMenu(Mg):T.gridView.setContextMenu(Ig),T.gridView.onContextMenuItemClicked=function(D,H,U){if(!(!U||!U.column)){if(H.tag=="excel")C(D,{isTitle:!1},s?.excel);else if(H.tag=="showIndentExcel")C(D,{isTitle:!1,treeBlank:!0},s?.excel);else if(H.tag=="withTitleExcel")C(D,{isTitle:!0,treeBlank:!1},s?.excel);else if(H.tag=="filter")O(D,H);else if(H.tag=="fixedCol"){const ee=D.getDataSource().getFieldIndex(U.column);D.setFixedOptions({colCount:ee})}else if(H.tag=="fixedRow")D.setFixedOptions({rowCount:(U.itemIndex||0)+1});else if(H.tag=="fixedCancel")D.setFixedOptions({colCount:0,rowCount:0});else if(H.tag=="hide")D.setColumnProperty(U.column,"visible",!1),D._hideCols[D._hideCols.length]=U.column;else if(H.tag=="hideClear")for(var Y=0;Y<D._hideCols.length;Y++)D.setColumnProperty(D._hideCols[Y],"visible",!0)}}}catch(D){console.log("컨텍스트 설정 중 오류:",D)}}},[n]),S=T=>{if(!(!f||f.length===0))try{f.forEach(D=>{const{name:H,renderer:U}=D;if(H&&U){const Y=typeof U=="function"?new U:U;T.gridView.registerCustomRenderer(H,Y)}})}catch(D){console.error("커스텀 렌더러 초기화 중 오류:",D)}},w=T=>{T.onPageChanged=(D,H)=>{F(U=>({...U,currentPage:H}))},T.onPageCountChanged=(D,H)=>{F(U=>({...U,totalPages:H}))}},_=T=>{l.current?.gridView&&l.current.gridView.setPage(T)},A=T=>{if(n?.layout?.colspan&&n.layout.colspan.length>0&&n?.layout?.colspan.forEach(D=>{const H=T.gridView.layoutByColumn(D.fieldName);if(H){const U=D.span;H.spanCallback=function(Y,ee,ie){return U}}}),i&&i.length>0&&i.some(H=>H.children&&H.children.length>0))try{(()=>{const U=JSON.parse(JSON.stringify(i)),Y=[],ee=ie=>{const oe=[];return ie.children.map(re=>{if(re.children&&re.children.length>0){const ue=ee(re),ce=re.header?.text||re.fieldName,he=T.gridView.getColumnProperty(re.fieldName,"header");delete re.children,delete re.header;let Q={name:re.fieldName,header:{text:he?.text||ce,template:he?.template,values:he?.values,visible:he?.visible??!0},items:ue,...re};oe.push(Q)}else oe.push(re.fieldName)}),oe};U.map(ie=>{if(ie.children&&ie.children.length>0){const oe=ee(ie),re=ie.header?.text||ie.fieldName,ue=ie.header?.visible??!0,ce=T.gridView.getColumnProperty(ie.fieldName,"header");delete ie.children,delete ie.header;const he={name:ie.fieldName,header:{text:ce?.text||re,template:ce?.template,values:ce?.values,visible:ce?.visible||ue},items:oe,...ie};Y.push(he)}else Y.push(ie.fieldName)}),console.log("Final Layout!!",Y),T.gridView.setColumnLayout(Y)})()}catch(H){console.error("컬럼 레이아웃 설정 오류:",H)}},R=()=>{if(l.current){if(e==="nrml"){const T=l.current;if(E(T),S(T),i&&i.length>0){const D=h(i),H=v(i);T.gridView.getDataSource().setFields(D),T.gridView.setColumns(H)}if(A(T),n?.container?.page){const D=n?.pagingOption?.pageSize||10;T.gridView.setPaging(!0,D),w(T.gridView)}}else{const T=l.current;if(E(T),S(T),i&&i.length>0){const D=h(i),H=v(i);T.gridView.getDataSource().setFields(D),T.gridView.setColumns(H)}A(l.current)}setTimeout(()=>{if(d){const T=typeof c=="object"&&c!==null?c.current:null;d(T)}},0)}},C=(T,D,H)=>{const U=T.getDataSource();let Y=H?.footer==null?"default":H.footer;U.getRowCount()<1&&(Y="hidden");let ee={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!D?.treeBlank,footer:Y,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:H?.fileName||"sample.xlsx"};U instanceof Ct.LocalTreeDataProvider&&(ee.indenting=!!D?.treeBlank),H?.isCellMerge==!0&&(ee.separateRows=!1),Fe.isEmpty(H?.sheetName)==!1&&(ee.sheetName=H?.sheetName),D?.isTitle&&(ee.documentTitle={message:Fe.isSafeEmpty(H?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},Fe.isEmpty(H?.subTitle)==!1&&(ee.documentSubtitle={message:H?.subTitle,visible:!0,styleName:"center",height:20}),Fe.isEmpty(H?.tailTitle)==!1&&(ee.documentTail={message:H?.tailTitle,visible:!0,styleName:"documentStyle"})),T.exportGrid(ee)},O=(T,D)=>{const H=T.getDataSource(),U=H.getOrgFieldNames();if(D.checked)for(var Y=0;Y<U.length;Y++){let ie=[],oe=H.getDistinctValues(U[Y])??[];if(oe.length==0)continue;let re=T.columnByName(U[Y]);for(var ee=0;ee<oe.length;ee++){if(oe[ee]==null)continue;let ue=re.values!=null&&re.values.indexOf(oe[ee])!=-1?re?.labels?.[re.values.indexOf(oe[ee])]:oe[ee];Fe.isEmpty(ue)&&(Fe.isEmpty(oe[ee])?ue=" ":ue=oe[ee]);let ce="";oe[ee]==null?ce="value="+oe[ee]:ce="value='"+oe[ee]+"'",ie.push({name:ue,criteria:ce})}T.setColumnFilters(U[Y],ie)}else for(var Y=0;Y<U.length;Y++)T.clearColumnFilters(U[Y]),T.activateAllColumnFilters(U[Y],!1),T.clearColumnFilters(U[Y])};z.useEffect(()=>{if(l.current&&l.current.gridView)if(e==="nrml"){const T=l.current;E(T)}else{const T=l.current;E(T)}},[e,n,E]),z.useEffect(()=>{!l.current||!i||i.length===0||R()},[i]),z.useEffect(()=>{l.current&&b()},[o,b]);const[j,k]=z.useState(!1),[I,B]=z.useState(""),V=z.useRef(null),[W,F]=z.useState({currentPage:0,totalPages:0,totalData:0});z.useEffect(()=>{F({currentPage:0,totalPages:0,totalData:0})},[]),z.useEffect(()=>{j&&setTimeout(()=>{V.current?.focus?.()},0)},[j]),z.useEffect(()=>()=>{if(l.current)try{const T=l.current;T.gridView&&(T.gridView.onDataLoadComplated=void 0,T.gridView.onCurrentRowChanged=void 0,T.gridView.onCellClicked=void 0,T.gridView.onCellDblClicked=void 0,T.gridView.onEditRowChanged=void 0,T.gridView.onItemChecked=void 0,T.gridView.onItemAllChecked=void 0,T.gridView.onColumnCheckedChanged=void 0,T.gridView.onCellButtonClicked=void 0,T.gridView.onEditChange=void 0,T.gridView.onCellEdited=void 0,T.gridView.onKeyUp=void 0,T.gridView.onKeyDown=void 0,T.gridView.onWheel=void 0,T.gridView.onValidateColumn=void 0,T.gridView.onValidateRow=void 0,T.gridView.onValidationFail=void 0,T.gridView.onRowInserting=void 0,T.gridView.onCellItemClicked=void 0,T.gridView.onShowEditor=void 0,T.gridView.getDataSource()&&(T.gridView.getDataSource().clearRows(),T.gridView.getDataSource().setFields([])),T.gridView.getDataSource().clearRows())}catch(T){console.warn("⚠️ BwgGrid cleanup error:",T)}},[]);const $=z.useCallback(T=>{N(T)},[]),N=z.useCallback(T=>{const D=l.current?.gridView;if(D?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(D?.commit(),Fe.isEmpty(T))return;const H=D?.getCurrent().itemIndex??-1;if(H<0)return;const U={value:T,startIndex:H+1,wrap:!0,caseSensitive:!1,partialMatch:!0},Y=D?.searchCell(U);D?.setCurrent(Y)},[]),L=z.useCallback(T=>{T.key==="Escape"&&(T.preventDefault(),k(!1))},[]),q=z.useCallback(T=>{T.ctrlKey&&T.code==="KeyF"&&(T.preventDefault(),B(""),k(!j))},[j]),K={searchRow:$,searchEnter:N,handleCloseKeyword:L,handleSearch:q},G=z.useMemo(()=>({...r,position:"relative",width:r?.width||"100%",height:r?.height||"100%"}),[r]);return P.jsxRuntimeExports.jsxs(Lg,{children:[P.jsxRuntimeExports.jsxs("div",{style:G,className:t,onKeyDown:T=>K.handleSearch(T),children:[j&&P.jsxRuntimeExports.jsx("div",{className:"grid-search-box",children:P.jsxRuntimeExports.jsxs(X.Flex,{gap:3,children:[P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{children:[P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.SearchOutlined,{})}),P.jsxRuntimeExports.jsx(X.Input,{ref:V,value:I,name:"srchField",autoComplete:"off",onKeyUp:T=>K.handleCloseKeyword(T),onChange:T=>B(T.target.value),onPressEnter:T=>K.searchEnter(T)})]})}),P.jsxRuntimeExports.jsx(X.Button,{variant:"solid",icon:P.jsxRuntimeExports.jsx(Ce.CloseOutlined,{}),onClick:()=>k(!1)})]})}),e==="nrml"?P.jsxRuntimeExports.jsx(gu.RealGridReact,{ref:l,autoGenerateField:!0,onInitialized:R}):P.jsxRuntimeExports.jsx(gu.RealTreeReact,{ref:l,autoGenerateField:!1,onInitialized:R})]}),n?.container?.page&&P.jsxRuntimeExports.jsx(kg,{currentPage:W.currentPage,totalPages:W.totalPages,pageSize:n?.pagingOption?.pageSize,totalData:W.totalData,onPageChange:_,pageSizeOptions:n?.pagingOption?.pageSizeOptions,gridRef:l})]})}),$g=e=>({initContent(r){this._root=Tg.createRoot(r)},render(r,t,i,n){const o=this._root;o&&e(r,t,i,n,o)},clearContent(r){const t=this._root;t&&setTimeout(()=>{t&&(t.unmount(),this._root=null)},0)},canClick(r){return!0},click(){return{}}}),Dg=z.memo(({title:e,border:r,children:t,titleChildren:i})=>{const n=z.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return P.jsxRuntimeExports.jsxs(jr,{type:"vertical",children:[P.jsxRuntimeExports.jsx(Qi,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:i}),P.jsxRuntimeExports.jsx(Cr,{border:!1,children:P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:n,children:t})})]})}),jr=({type:e="horizontal",layoutAlign:r="left",verticalAlign:t,className:i,style:n,children:o})=>P.jsxRuntimeExports.jsx("div",{style:n,className:`bwgview-content-layout ${e=="horizontal"?"hz-layout":"vt-layout"} layout-${r} ${t&&`vertical-${t}`} ${i||""}`,children:o}),xf=(e,r)=>{const t=window.innerWidth,i=window.innerHeight,n=Math.min(Math.max(e.x,0),Math.max(0,t-r.width)),o=Math.min(Math.max(e.y,0),Math.max(0,i-r.height));return{x:n,y:o}},Bg=({buttons:e,popupData:r,onButtonClick:t})=>!e||e.length===0?null:P.jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:6},children:e.map(i=>P.jsxRuntimeExports.jsx(X.Button,{type:i.type||"default",danger:i.danger,disabled:i.disabled,onClick:()=>t?.(i.key,r),className:"bwg-btn popup-btn",children:i.text},i.key))}),qg=({popup:e,popupEvent:r,onClose:t,children:i})=>{const n=z.useRef(null);e?.popupId;const o=e?.popupTitle||"팝업",a=e?.width||800,s=e?.height||600,f=e?.buttonList?.map((S,w)=>({key:S.btnId||`btn_${w}`,text:S.btnNm,type:S.btnId==="CLOSE"?"default":"primary",disabled:S.enblYn!=="Y",danger:!1}))||[],c=f.some(S=>S.key==="CLOSE"||S.key==="close")?f:[...f,{key:"CLOSE",text:"닫기",type:"default",disabled:!1,danger:!1}],[l,u]=z.useState(a),[h,v]=z.useState(s),g=z.useMemo(()=>{const S=Math.max(0,(window.innerWidth-a)/2),w=Math.max(0,(window.innerHeight-s)/2);return{x:S,y:w}},[a,s]),[p,y]=z.useState(g),m=(S,w)=>{if(S==="CLOSE"||S==="close"){e?.close?.()||t?.();return}r&&r[S]?r[S]():e?.close?.()||t?.()},x=(S,w)=>{const _=xf({x:w.x,y:w.y},{width:l,height:h});y(_)},b=(S,w,_,A,R)=>{const C={width:parseInt(_.style.width,10),height:parseInt(_.style.height,10)},O=xf(R,C);u(C.width),v(C.height),y(O)},E=()=>n.current??document.body;return P.jsxRuntimeExports.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[P.jsxRuntimeExports.jsx("div",{onClick:t,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),P.jsxRuntimeExports.jsxs(eh.Rnd,{className:"bwg-popup",size:{width:l,height:h},position:p,bounds:"window",minWidth:400,minHeight:300,onDragStop:x,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:[P.jsxRuntimeExports.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:P.jsxRuntimeExports.jsx(Dl,{getPopupContainer:E,children:P.jsxRuntimeExports.jsx(jr,{type:"vertical",children:P.jsxRuntimeExports.jsx(X.Card,{className:"popup-drag-container",title:P.jsxRuntimeExports.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:o}),style:{width:"100%",height:"100%"},styles:{body:{height:"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:P.jsxRuntimeExports.jsx(Bg,{buttons:c,popupData:e,onButtonClick:m}),children:P.jsxRuntimeExports.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:i})})})})}),P.jsxRuntimeExports.jsx("div",{ref:n,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},Vg=({children:e,...r})=>P.jsxRuntimeExports.jsx(X.Row,{...r,className:"bwg-row",children:e}),zg=({rowKey:e="id",columns:r,dataSource:t,loading:i=!1,rowSelection:n,size:o="middle",pagination:a=!1,...s})=>P.jsxRuntimeExports.jsx(X.Table,{rowKey:e,columns:r,dataSource:t,loading:i,rowSelection:n,size:o,pagination:a,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...s}),Hg=e=>{const{type:r="card",animated:t=!0,...i}=e;return P.jsxRuntimeExports.jsx(X.Tabs,{type:r,animated:t,...i})};function Ws(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,i=Array(r);t<r;t++)i[t]=e[t];return i}function Ug(e){if(Array.isArray(e))return Ws(e)}function gh(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hl(e,r){if(e){if(typeof e=="string")return Ws(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ws(e,r):void 0}}function Wg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
53
|
+
`)}return J}function ce(Q,J){var le={},se=Q.style||{};return se.fontStyle&&K(Q).fontStyle==="italic"&&(le.italic=!0),se.fontWeight&&(K(Q).fontWeight.startsWith("bold")||parseInt(K(Q).fontWeight)>=700)&&(le.bold=!0),Object.keys(le).length>0&&(J=q(J,le)),parseFloat(se.textIndent||0)>0&&(J=new l.default().insert(" ").concat(J)),J}function he(Q,J){var le=Q.data;if(Q.parentNode.tagName==="O:P")return J.insert(le.trim());if(le.trim().length===0&&Q.parentNode.classList.contains("ql-clipboard"))return J;if(!K(Q.parentNode).whiteSpace.startsWith("pre")){var se=function(de,ae){return ae=ae.replace(/[^\u00a0]/g,""),ae.length<1&&de?" ":ae};le=le.replace(/\r\n/g," ").replace(/\n/g," "),le=le.replace(/\s\s+/g,se.bind(se,!0)),(Q.previousSibling==null&&T(Q.parentNode)||Q.previousSibling!=null&&T(Q.previousSibling))&&(le=le.replace(/^\s+/,se.bind(se,!1))),(Q.nextSibling==null&&T(Q.parentNode)||Q.nextSibling!=null&&T(Q.nextSibling))&&(le=le.replace(/\s+$/,se.bind(se,!1)))}return J.insert(le)}i.default=F,i.matchAttributor=U,i.matchBlot=Y,i.matchNewline=re,i.matchSpacing=ue,i.matchText=he}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(g,p){for(var y=0;y<p.length;y++){var m=p[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,p,y){return p&&v(g.prototype,p),y&&v(g,y),g}})(),a=function v(g,p,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,p);if(m===void 0){var x=Object.getPrototypeOf(g);return x===null?void 0:v(x,p,y)}else{if("value"in m)return m.value;var b=m.get;return b===void 0?void 0:b.call(y)}},s=n(6),f=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function l(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){u(g,v);function g(){return c(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"optimize",value:function(y){a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),g})(f.default);h.blotName="bold",h.tagName=["STRONG","B"],i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.addControls=i.default=void 0;var o=(function(){function C(O,j){var k=[],I=!0,B=!1,V=void 0;try{for(var W=O[Symbol.iterator](),L;!(I=(L=W.next()).done)&&(k.push(L.value),!(j&&k.length===j));I=!0);}catch($){B=!0,V=$}finally{try{!I&&W.return&&W.return()}finally{if(B)throw V}}return k}return function(O,j){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return C(O,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function C(O,j){for(var k=0;k<j.length;k++){var I=j[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(O,I.key,I)}}return function(O,j,k){return j&&C(O.prototype,j),k&&C(O,k),O}})(),s=n(2),f=y(s),d=n(0),c=y(d),l=n(5),u=y(l),h=n(10),v=y(h),g=n(9),p=y(g);function y(C){return C&&C.__esModule?C:{default:C}}function m(C,O,j){return O in C?Object.defineProperty(C,O,{value:j,enumerable:!0,configurable:!0,writable:!0}):C[O]=j,C}function x(C,O){if(!(C instanceof O))throw new TypeError("Cannot call a class as a function")}function b(C,O){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:C}function E(C,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);C.prototype=Object.create(O&&O.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(C,O):C.__proto__=O)}var S=(0,v.default)("quill:toolbar"),w=(function(C){E(O,C);function O(j,k){x(this,O);var I=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,j,k));if(Array.isArray(I.options.container)){var B=document.createElement("div");A(B,I.options.container),j.container.parentNode.insertBefore(B,j.container),I.container=B}else typeof I.options.container=="string"?I.container=document.querySelector(I.options.container):I.container=I.options.container;if(!(I.container instanceof HTMLElement)){var V;return V=S.error("Container required for toolbar",I.options),b(I,V)}return I.container.classList.add("ql-toolbar"),I.controls=[],I.handlers={},Object.keys(I.options.handlers).forEach(function(W){I.addHandler(W,I.options.handlers[W])}),[].forEach.call(I.container.querySelectorAll("button, select"),function(W){I.attach(W)}),I.quill.on(u.default.events.EDITOR_CHANGE,function(W,L){W===u.default.events.SELECTION_CHANGE&&I.update(L)}),I.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){var W=I.quill.selection.getRange(),L=o(W,1),$=L[0];I.update($)}),I}return a(O,[{key:"addHandler",value:function(k,I){this.handlers[k]=I}},{key:"attach",value:function(k){var I=this,B=[].find.call(k.classList,function(W){return W.indexOf("ql-")===0});if(B){if(B=B.slice(3),k.tagName==="BUTTON"&&k.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){S.warn("ignoring attaching to disabled format",B,k);return}if(c.default.query(B)==null){S.warn("ignoring attaching to nonexistent format",B,k);return}}var V=k.tagName==="SELECT"?"change":"click";k.addEventListener(V,function(W){var L=void 0;if(k.tagName==="SELECT"){if(k.selectedIndex<0)return;var $=k.options[k.selectedIndex];$.hasAttribute("selected")?L=!1:L=$.value||!1}else k.classList.contains("ql-active")?L=!1:L=k.value||!k.hasAttribute("value"),W.preventDefault();I.quill.focus();var N=I.quill.selection.getRange(),F=o(N,1),q=F[0];if(I.handlers[B]!=null)I.handlers[B].call(I,L);else if(c.default.query(B).prototype instanceof c.default.Embed){if(L=prompt("Enter "+B),!L)return;I.quill.updateContents(new f.default().retain(q.index).delete(q.length).insert(m({},B,L)),u.default.sources.USER)}else I.quill.format(B,L,u.default.sources.USER);I.update(q)}),this.controls.push([B,k])}}},{key:"update",value:function(k){var I=k==null?{}:this.quill.getFormat(k);this.controls.forEach(function(B){var V=o(B,2),W=V[0],L=V[1];if(L.tagName==="SELECT"){var $=void 0;if(k==null)$=null;else if(I[W]==null)$=L.querySelector("option[selected]");else if(!Array.isArray(I[W])){var N=I[W];typeof N=="string"&&(N=N.replace(/\"/g,'\\"')),$=L.querySelector('option[value="'+N+'"]')}$==null?(L.value="",L.selectedIndex=-1):$.selected=!0}else if(k==null)L.classList.remove("ql-active");else if(L.hasAttribute("value")){var F=I[W]===L.getAttribute("value")||I[W]!=null&&I[W].toString()===L.getAttribute("value")||I[W]==null&&!L.getAttribute("value");L.classList.toggle("ql-active",F)}else L.classList.toggle("ql-active",I[W]!=null)})}}]),O})(p.default);w.DEFAULTS={};function _(C,O,j){var k=document.createElement("button");k.setAttribute("type","button"),k.classList.add("ql-"+O),j!=null&&(k.value=j),C.appendChild(k)}function A(C,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(j){var k=document.createElement("span");k.classList.add("ql-formats"),j.forEach(function(I){if(typeof I=="string")_(k,I);else{var B=Object.keys(I)[0],V=I[B];Array.isArray(V)?R(k,B,V):_(k,B,V)}}),C.appendChild(k)})}function R(C,O,j){var k=document.createElement("select");k.classList.add("ql-"+O),j.forEach(function(I){var B=document.createElement("option");I!==!1?B.setAttribute("value",I):B.setAttribute("selected","selected"),k.appendChild(B)}),C.appendChild(k)}w.DEFAULTS={container:null,handlers:{clean:function(){var O=this,j=this.quill.getSelection();if(j!=null)if(j.length==0){var k=this.quill.getFormat();Object.keys(k).forEach(function(I){c.default.query(I,c.default.Scope.INLINE)!=null&&O.quill.format(I,!1)})}else this.quill.removeFormat(j,u.default.sources.USER)},direction:function(O){var j=this.quill.getFormat().align;O==="rtl"&&j==null?this.quill.format("align","right",u.default.sources.USER):!O&&j==="right"&&this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",O,u.default.sources.USER)},indent:function(O){var j=this.quill.getSelection(),k=this.quill.getFormat(j),I=parseInt(k.indent||0);if(O==="+1"||O==="-1"){var B=O==="+1"?1:-1;k.direction==="rtl"&&(B*=-1),this.quill.format("indent",I+B,u.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,u.default.sources.USER)},list:function(O){var j=this.quill.getSelection(),k=this.quill.getFormat(j);O==="check"?k.list==="checked"||k.list==="unchecked"?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",O,u.default.sources.USER)}}},i.default=w,i.addControls=A}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(g,p){for(var y=0;y<p.length;y++){var m=p[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,p,y){return p&&v(g.prototype,p),y&&v(g,y),g}})(),a=function v(g,p,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,p);if(m===void 0){var x=Object.getPrototypeOf(g);return x===null?void 0:v(x,p,y)}else{if("value"in m)return m.value;var b=m.get;return b===void 0?void 0:b.call(y)}},s=n(28),f=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function l(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){u(g,v);function g(p,y){c(this,g);var m=l(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,p));return m.label.innerHTML=y,m.container.classList.add("ql-color-picker"),[].slice.call(m.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),m}return o(g,[{key:"buildItem",value:function(y){var m=a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"buildItem",this).call(this,y);return m.style.backgroundColor=y.getAttribute("value")||"",m}},{key:"selectItem",value:function(y,m){a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,y,m);var x=this.label.querySelector(".ql-color-label"),b=y&&y.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=b:x.style.fill=b)}}]),g})(f.default);i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(g,p){for(var y=0;y<p.length;y++){var m=p[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,p,y){return p&&v(g.prototype,p),y&&v(g,y),g}})(),a=function v(g,p,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,p);if(m===void 0){var x=Object.getPrototypeOf(g);return x===null?void 0:v(x,p,y)}else{if("value"in m)return m.value;var b=m.get;return b===void 0?void 0:b.call(y)}},s=n(28),f=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function l(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){u(g,v);function g(p,y){c(this,g);var m=l(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,p));return m.container.classList.add("ql-icon-picker"),[].forEach.call(m.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=y[x.getAttribute("data-value")||""]}),m.defaultItem=m.container.querySelector(".ql-selected"),m.selectItem(m.defaultItem),m}return o(g,[{key:"selectItem",value:function(y,m){a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,y,m),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),g})(f.default);i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function f(d,c){for(var l=0;l<c.length;l++){var u=c[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,c,l){return c&&f(d.prototype,c),l&&f(d,l),d}})();function a(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}var s=(function(){function f(d,c){var l=this;a(this,f),this.quill=d,this.boundsContainer=c||document.body,this.root=d.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return o(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var l=c.left+c.width/2-this.root.offsetWidth/2,u=c.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=u+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),g=0;if(v.right>h.right&&(g=h.right-v.right,this.root.style.left=l+g+"px"),v.left<h.left&&(g=h.left-v.left,this.root.style.left=l+g+"px"),v.bottom>h.bottom){var p=v.bottom-v.top,y=c.bottom-c.top+p;this.root.style.top=u-y+"px",this.root.classList.add("ql-flip")}return g}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f})();i.default=s}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function R(C,O){var j=[],k=!0,I=!1,B=void 0;try{for(var V=C[Symbol.iterator](),W;!(k=(W=V.next()).done)&&(j.push(W.value),!(O&&j.length===O));k=!0);}catch(L){I=!0,B=L}finally{try{!k&&V.return&&V.return()}finally{if(I)throw B}}return j}return function(C,O){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function R(C,O,j){C===null&&(C=Function.prototype);var k=Object.getOwnPropertyDescriptor(C,O);if(k===void 0){var I=Object.getPrototypeOf(C);return I===null?void 0:R(I,O,j)}else{if("value"in k)return k.value;var B=k.get;return B===void 0?void 0:B.call(j)}},s=(function(){function R(C,O){for(var j=0;j<O.length;j++){var k=O[j];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(C,k.key,k)}}return function(C,O,j){return O&&R(C.prototype,O),j&&R(C,j),C}})(),f=n(3),d=x(f),c=n(8),l=x(c),u=n(43),h=x(u),v=n(27),g=x(v),p=n(15),y=n(41),m=x(y);function x(R){return R&&R.__esModule?R:{default:R}}function b(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function E(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function S(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],_=(function(R){S(C,R);function C(O,j){b(this,C),j.modules.toolbar!=null&&j.modules.toolbar.container==null&&(j.modules.toolbar.container=w);var k=E(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,j));return k.quill.container.classList.add("ql-snow"),k}return s(C,[{key:"extendToolbar",value:function(j){j.container.classList.add("ql-snow"),this.buildButtons([].slice.call(j.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(j.container.querySelectorAll("select")),m.default),this.tooltip=new A(this.quill,this.options.bounds),j.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(k,I){j.handlers.link.call(j,!I.format.link)})}}]),C})(h.default);_.DEFAULTS=(0,d.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var O=this.quill.getSelection();if(O==null||O.length==0)return;var j=this.quill.getText(O);/^\S+@\S+\.\S+$/.test(j)&&j.indexOf("mailto:")!==0&&(j="mailto:"+j);var k=this.quill.theme.tooltip;k.edit("link",j)}else this.quill.format("link",!1)}}}}});var A=(function(R){S(C,R);function C(O,j){b(this,C);var k=E(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,j));return k.preview=k.root.querySelector("a.ql-preview"),k}return s(C,[{key:"listen",value:function(){var j=this;a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(k){j.root.classList.contains("ql-editing")?j.save():j.edit("link",j.preview.textContent),k.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(k){if(j.linkRange!=null){var I=j.linkRange;j.restoreFocus(),j.quill.formatText(I,"link",!1,l.default.sources.USER),delete j.linkRange}k.preventDefault(),j.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(k,I,B){if(k!=null){if(k.length===0&&B===l.default.sources.USER){var V=j.quill.scroll.descendant(g.default,k.index),W=o(V,2),L=W[0],$=W[1];if(L!=null){j.linkRange=new p.Range(k.index-$,L.length());var N=g.default.formats(L.domNode);j.preview.textContent=N,j.preview.setAttribute("href",N),j.show(),j.position(j.quill.getBounds(j.linkRange));return}}else delete j.linkRange;j.hide()}})}},{key:"show",value:function(){a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C})(u.BaseTooltip);A.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),i.default=_}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(29),a=ne(o),s=n(36),f=n(38),d=n(64),c=n(65),l=ne(c),u=n(66),h=ne(u),v=n(67),g=ne(v),p=n(37),y=n(26),m=n(39),x=n(40),b=n(56),E=ne(b),S=n(68),w=ne(S),_=n(27),A=ne(_),R=n(69),C=ne(R),O=n(70),j=ne(O),k=n(71),I=ne(k),B=n(72),V=ne(B),W=n(73),L=ne(W),$=n(13),N=ne($),F=n(74),q=ne(F),K=n(75),G=ne(K),T=n(57),D=ne(T),H=n(41),U=ne(H),Y=n(28),ee=ne(Y),ie=n(59),oe=ne(ie),re=n(60),ue=ne(re),ce=n(61),he=ne(ce),Q=n(108),J=ne(Q),le=n(62),se=ne(le);function ne(de){return de&&de.__esModule?de:{default:de}}a.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":x.SizeStyle},!0),a.default.register({"formats/align":s.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":d.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":m.FontClass,"formats/size":x.SizeClass,"formats/blockquote":l.default,"formats/code-block":N.default,"formats/header":h.default,"formats/list":g.default,"formats/bold":E.default,"formats/code":$.Code,"formats/italic":w.default,"formats/link":A.default,"formats/script":C.default,"formats/strike":j.default,"formats/underline":I.default,"formats/image":V.default,"formats/video":L.default,"formats/list/item":v.ListItem,"modules/formula":q.default,"modules/syntax":G.default,"modules/toolbar":D.default,"themes/bubble":J.default,"themes/snow":se.default,"ui/icons":U.default,"ui/picker":ee.default,"ui/icon-picker":ue.default,"ui/color-picker":oe.default,"ui/tooltip":he.default},!0),i.default=a.default}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.IndentClass=void 0;var o=(function(){function g(p,y){for(var m=0;m<y.length;m++){var x=y[m];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,y,m){return y&&g(p.prototype,y),m&&g(p,m),p}})(),a=function g(p,y,m){p===null&&(p=Function.prototype);var x=Object.getOwnPropertyDescriptor(p,y);if(x===void 0){var b=Object.getPrototypeOf(p);return b===null?void 0:g(b,y,m)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(m)}},s=n(0),f=d(s);function d(g){return g&&g.__esModule?g:{default:g}}function c(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function l(g,p){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:g}function u(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(g,p):g.__proto__=p)}var h=(function(g){u(p,g);function p(){return c(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return o(p,[{key:"add",value:function(m,x){if(x==="+1"||x==="-1"){var b=this.value(m)||0;x=x==="+1"?b+1:b-1}return x===0?(this.remove(m),!0):a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"add",this).call(this,m,x)}},{key:"canAdd",value:function(m,x){return a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"canAdd",this).call(this,m,x)||a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"canAdd",this).call(this,m,parseInt(x))}},{key:"value",value:function(m){return parseInt(a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"value",this).call(this,m))||void 0}}]),p})(f.default.Attributor.Class),v=new h("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});i.IndentClass=v}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(4),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function f(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function c(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){c(h,u);function h(){return f(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="blockquote",l.tagName="blockquote",i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function h(v,g){for(var p=0;p<g.length;p++){var y=g[p];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,g,p){return g&&h(v.prototype,g),p&&h(v,p),v}})(),a=n(4),s=f(a);function f(h){return h&&h.__esModule?h:{default:h}}function d(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function c(h,v){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:h}function l(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(h,v):h.__proto__=v)}var u=(function(h){l(v,h);function v(){return d(this,v),c(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,null,[{key:"formats",value:function(p){return this.tagName.indexOf(p.tagName)+1}}]),v})(s.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],i.default=u}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.ListItem=void 0;var o=(function(){function b(E,S){for(var w=0;w<S.length;w++){var _=S[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(E,_.key,_)}}return function(E,S,w){return S&&b(E.prototype,S),w&&b(E,w),E}})(),a=function b(E,S,w){E===null&&(E=Function.prototype);var _=Object.getOwnPropertyDescriptor(E,S);if(_===void 0){var A=Object.getPrototypeOf(E);return A===null?void 0:b(A,S,w)}else{if("value"in _)return _.value;var R=_.get;return R===void 0?void 0:R.call(w)}},s=n(0),f=h(s),d=n(4),c=h(d),l=n(25),u=h(l);function h(b){return b&&b.__esModule?b:{default:b}}function v(b,E,S){return E in b?Object.defineProperty(b,E,{value:S,enumerable:!0,configurable:!0,writable:!0}):b[E]=S,b}function g(b,E){if(!(b instanceof E))throw new TypeError("Cannot call a class as a function")}function p(b,E){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:b}function y(b,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);b.prototype=Object.create(E&&E.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(b,E):b.__proto__=E)}var m=(function(b){y(E,b);function E(){return g(this,E),p(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return o(E,[{key:"format",value:function(w,_){w===x.blotName&&!_?this.replaceWith(f.default.create(this.statics.scope)):a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,w,_)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(w,_){return this.parent.isolate(this.offset(this.parent),this.length()),w===this.parent.statics.blotName?(this.parent.replaceWith(w,_),this):(this.parent.unwrap(),a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,w,_))}}],[{key:"formats",value:function(w){return w.tagName===this.tagName?void 0:a(E.__proto__||Object.getPrototypeOf(E),"formats",this).call(this,w)}}]),E})(c.default);m.blotName="list-item",m.tagName="LI";var x=(function(b){y(E,b),o(E,null,[{key:"create",value:function(w){var _=w==="ordered"?"OL":"UL",A=a(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,_);return(w==="checked"||w==="unchecked")&&A.setAttribute("data-checked",w==="checked"),A}},{key:"formats",value:function(w){if(w.tagName==="OL")return"ordered";if(w.tagName==="UL")return w.hasAttribute("data-checked")?w.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function E(S){g(this,E);var w=p(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,S)),_=function(R){if(R.target.parentNode===S){var C=w.statics.formats(S),O=f.default.find(R.target);C==="checked"?O.format("list","unchecked"):C==="unchecked"&&O.format("list","checked")}};return S.addEventListener("touchstart",_),S.addEventListener("mousedown",_),w}return o(E,[{key:"format",value:function(w,_){this.children.length>0&&this.children.tail.format(w,_)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(w,_){if(w instanceof m)a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,w,_);else{var A=_==null?this.length():_.offset(this),R=this.split(A);R.parent.insertBefore(w,R)}}},{key:"optimize",value:function(w){a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,w);var _=this.next;_!=null&&_.prev===this&&_.statics.blotName===this.statics.blotName&&_.domNode.tagName===this.domNode.tagName&&_.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(_.moveChildren(this),_.remove())}},{key:"replace",value:function(w){if(w.statics.blotName!==this.statics.blotName){var _=f.default.create(this.statics.defaultChild);w.moveChildren(_),this.appendChild(_)}a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replace",this).call(this,w)}}]),E})(u.default);x.blotName="list",x.scope=f.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[m],i.ListItem=m,i.default=x}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(56),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function f(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function c(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){c(h,u);function h(){return f(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="italic",l.tagName=["EM","I"],i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(g,p){for(var y=0;y<p.length;y++){var m=p[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,p,y){return p&&v(g.prototype,p),y&&v(g,y),g}})(),a=function v(g,p,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,p);if(m===void 0){var x=Object.getPrototypeOf(g);return x===null?void 0:v(x,p,y)}else{if("value"in m)return m.value;var b=m.get;return b===void 0?void 0:b.call(y)}},s=n(6),f=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function l(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var h=(function(v){u(g,v);function g(){return c(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):a(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),g})(f.default);h.blotName="script",h.tagName=["SUB","SUP"],i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function f(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function c(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){c(h,u);function h(){return f(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="strike",l.tagName="S",i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function f(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function c(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){c(h,u);function h(){return f(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="underline",l.tagName="U",i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(y,m){for(var x=0;x<m.length;x++){var b=m[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,m,x){return m&&p(y.prototype,m),x&&p(y,x),y}})(),a=function p(y,m,x){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,m);if(b===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:p(E,m,x)}else{if("value"in b)return b.value;var S=b.get;return S===void 0?void 0:S.call(x)}},s=n(0),f=c(s),d=n(27);function c(p){return p&&p.__esModule?p:{default:p}}function l(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function u(p,y){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:p}function h(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);p.prototype=Object.create(y&&y.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(p,y):p.__proto__=y)}var v=["alt","height","width"],g=(function(p){h(y,p);function y(){return l(this,y),u(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"format",value:function(x,b){v.indexOf(x)>-1?b?this.domNode.setAttribute(x,b):this.domNode.removeAttribute(x):a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,b)}}],[{key:"create",value:function(x){var b=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x);return typeof x=="string"&&b.setAttribute("src",this.sanitize(x)),b}},{key:"formats",value:function(x){return v.reduce(function(b,E){return x.hasAttribute(E)&&(b[E]=x.getAttribute(E)),b},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,d.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),y})(f.default.Embed);g.blotName="image",g.tagName="IMG",i.default=g}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(y,m){for(var x=0;x<m.length;x++){var b=m[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,m,x){return m&&p(y.prototype,m),x&&p(y,x),y}})(),a=function p(y,m,x){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,m);if(b===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:p(E,m,x)}else{if("value"in b)return b.value;var S=b.get;return S===void 0?void 0:S.call(x)}},s=n(4),f=n(27),d=c(f);function c(p){return p&&p.__esModule?p:{default:p}}function l(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function u(p,y){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:p}function h(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);p.prototype=Object.create(y&&y.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(p,y):p.__proto__=y)}var v=["height","width"],g=(function(p){h(y,p);function y(){return l(this,y),u(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"format",value:function(x,b){v.indexOf(x)>-1?b?this.domNode.setAttribute(x,b):this.domNode.removeAttribute(x):a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,b)}}],[{key:"create",value:function(x){var b=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x);return b.setAttribute("frameborder","0"),b.setAttribute("allowfullscreen",!0),b.setAttribute("src",this.sanitize(x)),b}},{key:"formats",value:function(x){return v.reduce(function(b,E){return x.hasAttribute(E)&&(b[E]=x.getAttribute(E)),b},{})}},{key:"sanitize",value:function(x){return d.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),y})(s.BlockEmbed);g.blotName="video",g.className="ql-video",g.tagName="IFRAME",i.default=g}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.FormulaBlot=void 0;var o=(function(){function x(b,E){for(var S=0;S<E.length;S++){var w=E[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,E,S){return E&&x(b.prototype,E),S&&x(b,S),b}})(),a=function x(b,E,S){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,E);if(w===void 0){var _=Object.getPrototypeOf(b);return _===null?void 0:x(_,E,S)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(S)}},s=n(35),f=h(s),d=n(5),c=h(d),l=n(9),u=h(l);function h(x){return x&&x.__esModule?x:{default:x}}function v(x,b){if(!(x instanceof b))throw new TypeError("Cannot call a class as a function")}function g(x,b){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:x}function p(x,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);x.prototype=Object.create(b&&b.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(x,b):x.__proto__=b)}var y=(function(x){p(b,x);function b(){return v(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,null,[{key:"create",value:function(S){var w=a(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,w,{throwOnError:!1,errorColor:"#f00"}),w.setAttribute("data-value",S)),w}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),b})(f.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var m=(function(x){p(b,x),o(b,null,[{key:"register",value:function(){c.default.register(y,!0)}}]);function b(){v(this,b);var E=g(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return E}return b})(u.default);i.FormulaBlot=y,i.default=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.CodeToken=i.CodeBlock=void 0;var o=(function(){function S(w,_){for(var A=0;A<_.length;A++){var R=_[A];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}return function(w,_,A){return _&&S(w.prototype,_),A&&S(w,A),w}})(),a=function S(w,_,A){w===null&&(w=Function.prototype);var R=Object.getOwnPropertyDescriptor(w,_);if(R===void 0){var C=Object.getPrototypeOf(w);return C===null?void 0:S(C,_,A)}else{if("value"in R)return R.value;var O=R.get;return O===void 0?void 0:O.call(A)}},s=n(0),f=g(s),d=n(5),c=g(d),l=n(9),u=g(l),h=n(13),v=g(h);function g(S){return S&&S.__esModule?S:{default:S}}function p(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function y(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function m(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var x=(function(S){m(w,S);function w(){return p(this,w),y(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return o(w,[{key:"replaceWith",value:function(A){this.domNode.textContent=this.domNode.textContent,this.attach(),a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,A)}},{key:"highlight",value:function(A){var R=this.domNode.textContent;this.cachedText!==R&&((R.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=A(R),this.domNode.normalize(),this.attach()),this.cachedText=R)}}]),w})(v.default);x.className="ql-syntax";var b=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),E=(function(S){m(w,S),o(w,null,[{key:"register",value:function(){c.default.register(b,!0),c.default.register(x,!0)}}]);function w(_,A){p(this,w);var R=y(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,_,A));if(typeof R.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return R.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){R.highlight(),C=null},R.options.interval)}),R.highlight(),R}return o(w,[{key:"highlight",value:function(){var A=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var R=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(C){C.highlight(A.options.highlight)}),this.quill.update(c.default.sources.SILENT),R!=null&&this.quill.setSelection(R,c.default.sources.SILENT)}}}]),w})(u.default);E.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(S){var w=window.hljs.highlightAuto(S);return w.value}})(),interval:1e3},i.CodeBlock=x,i.CodeToken=b,i.default=E}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(t,i){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(t,i){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(t,i){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(t,i){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BubbleTooltip=void 0;var o=function w(_,A,R){_===null&&(_=Function.prototype);var C=Object.getOwnPropertyDescriptor(_,A);if(C===void 0){var O=Object.getPrototypeOf(_);return O===null?void 0:w(O,A,R)}else{if("value"in C)return C.value;var j=C.get;return j===void 0?void 0:j.call(R)}},a=(function(){function w(_,A){for(var R=0;R<A.length;R++){var C=A[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(_,C.key,C)}}return function(_,A,R){return A&&w(_.prototype,A),R&&w(_,R),_}})(),s=n(3),f=p(s),d=n(8),c=p(d),l=n(43),u=p(l),h=n(15),v=n(41),g=p(v);function p(w){return w&&w.__esModule?w:{default:w}}function y(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")}function m(w,_){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:w}function x(w,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);w.prototype=Object.create(_&&_.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(w,_):w.__proto__=_)}var b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],E=(function(w){x(_,w);function _(A,R){y(this,_),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=b);var C=m(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,A,R));return C.quill.container.classList.add("ql-bubble"),C}return a(_,[{key:"extendToolbar",value:function(R){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(R.container),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),g.default)}}]),_})(u.default);E.DEFAULTS=(0,f.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_){_?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=(function(w){x(_,w);function _(A,R){y(this,_);var C=m(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,A,R));return C.quill.on(c.default.events.EDITOR_CHANGE,function(O,j,k,I){if(O===c.default.events.SELECTION_CHANGE)if(j!=null&&j.length>0&&I===c.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var B=C.quill.getLines(j.index,j.length);if(B.length===1)C.position(C.quill.getBounds(j));else{var V=B[B.length-1],W=C.quill.getIndex(V),L=Math.min(V.length()-1,j.index+j.length-W),$=C.quill.getBounds(new h.Range(W,L));C.position($)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return a(_,[{key:"listen",value:function(){var R=this;o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){R.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!R.root.classList.contains("ql-hidden")){var C=R.quill.getSelection();C!=null&&R.position(R.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(R){var C=o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"position",this).call(this,R),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",C===0)return C;O.style.marginLeft=-1*C-O.offsetWidth/2+"px"}}]),_})(l.BaseTooltip);S.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),i.BubbleTooltip=S,i.default=E}),(function(t,i,n){t.exports=n(63)})]).default})})(Pi)),Pi.exports}var Lt,yf;function Og(){if(yf)return Lt;yf=1;var e=Lt&&Lt.__extends||(function(){var c=function(l,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var g in v)v.hasOwnProperty(g)&&(h[g]=v[g])},c(l,u)};return function(l,u){c(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}})(),r=Lt&&Lt.__assign||function(){return r=Object.assign||function(c){for(var l,u=1,h=arguments.length;u<h;u++){l=arguments[u];for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(c[v]=l[v])}return c},r.apply(this,arguments)},t=Lt&&Lt.__spreadArrays||function(){for(var c=0,l=0,u=arguments.length;l<u;l++)c+=arguments[l].length;for(var h=Array(c),v=0,l=0;l<u;l++)for(var g=arguments[l],p=0,y=g.length;p<y;p++,v++)h[v]=g[p];return h},i=Lt&&Lt.__importDefault||function(c){return c&&c.__esModule?c:{default:c}},n=i(z),o=i($n),a=i(Sg()),s=i(Cg()),f=(function(c){e(l,c);function l(u){var h=c.call(this,u)||this;h.dirtyProps=["modules","formats","bounds","theme","children"],h.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],h.state={generation:0},h.selection=null,h.onEditorChange=function(g,p,y,m){var x,b,E,S;g==="text-change"?(b=(x=h).onEditorChangeText)===null||b===void 0||b.call(x,h.editor.root.innerHTML,p,m,h.unprivilegedEditor):g==="selection-change"&&((S=(E=h).onEditorChangeSelection)===null||S===void 0||S.call(E,p,m,h.unprivilegedEditor))};var v=h.isControlled()?u.value:u.defaultValue;return h.value=v??"",h}return l.prototype.validateProps=function(u){var h;if(n.default.Children.count(u.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(n.default.Children.count(u.children)){var v=n.default.Children.only(u.children);if(((h=v)===null||h===void 0?void 0:h.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&u.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},l.prototype.shouldComponentUpdate=function(u,h){var v=this,g;if(this.validateProps(u),!this.editor||this.state.generation!==h.generation)return!0;if("value"in u){var p=this.getEditorContents(),y=(g=u.value,g??"");this.isEqualValue(y,p)||this.setEditorContents(this.editor,y)}return u.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,u.readOnly),t(this.cleanProps,this.dirtyProps).some(function(m){return!a.default(u[m],v.props[m])})},l.prototype.shouldComponentRegenerate=function(u){var h=this;return this.dirtyProps.some(function(v){return!a.default(u[v],h.props[v])})},l.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},l.prototype.componentWillUnmount=function(){this.destroyEditor()},l.prototype.componentDidUpdate=function(u,h){var v=this;if(this.editor&&this.shouldComponentRegenerate(u)){var g=this.editor.getContents(),p=this.editor.getSelection();this.regenerationSnapshot={delta:g,selection:p},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==h.generation){var y=this.regenerationSnapshot,g=y.delta,m=y.selection;delete this.regenerationSnapshot,this.instantiateEditor();var x=this.editor;x.setContents(g),d(function(){return v.setEditorSelection(x,m)})}},l.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},l.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},l.prototype.isControlled=function(){return"value"in this.props},l.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},l.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},l.prototype.createEditor=function(u,h){var v=new s.default(u,h);return h.tabIndex!=null&&this.setEditorTabIndex(v,h.tabIndex),this.hookEditor(v),v},l.prototype.hookEditor=function(u){this.unprivilegedEditor=this.makeUnprivilegedEditor(u),u.on("editor-change",this.onEditorChange)},l.prototype.unhookEditor=function(u){u.off("editor-change",this.onEditorChange)},l.prototype.getEditorContents=function(){return this.value},l.prototype.getEditorSelection=function(){return this.selection},l.prototype.isDelta=function(u){return u&&u.ops},l.prototype.isEqualValue=function(u,h){return this.isDelta(u)&&this.isDelta(h)?a.default(u.ops,h.ops):a.default(u,h)},l.prototype.setEditorContents=function(u,h){var v=this;this.value=h;var g=this.getEditorSelection();typeof h=="string"?u.setContents(u.clipboard.convert(h)):u.setContents(h),d(function(){return v.setEditorSelection(u,g)})},l.prototype.setEditorSelection=function(u,h){if(this.selection=h,h){var v=u.getLength();h.index=Math.max(0,Math.min(h.index,v-1)),h.length=Math.max(0,Math.min(h.length,v-1-h.index)),u.setSelection(h)}},l.prototype.setEditorTabIndex=function(u,h){var v,g;!((g=(v=u)===null||v===void 0?void 0:v.scroll)===null||g===void 0)&&g.domNode&&(u.scroll.domNode.tabIndex=h)},l.prototype.setEditorReadOnly=function(u,h){h?u.disable():u.enable()},l.prototype.makeUnprivilegedEditor=function(u){var h=u;return{getHTML:function(){return h.root.innerHTML},getLength:h.getLength.bind(h),getText:h.getText.bind(h),getContents:h.getContents.bind(h),getSelection:h.getSelection.bind(h),getBounds:h.getBounds.bind(h)}},l.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var u=o.default.findDOMNode(this.editingArea);if(!u)throw new Error("Cannot find element for editing area");if(u.nodeType===3)throw new Error("Editing area cannot be a text node");return u},l.prototype.renderEditingArea=function(){var u=this,h=this.props,v=h.children,g=h.preserveWhitespace,p=this.state.generation,y={key:p,ref:function(m){u.editingArea=m}};return n.default.Children.count(v)?n.default.cloneElement(n.default.Children.only(v),y):g?n.default.createElement("pre",r({},y)):n.default.createElement("div",r({},y))},l.prototype.render=function(){var u;return n.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(u=this.props.className,u??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},l.prototype.onEditorChangeText=function(u,h,v,g){var p,y;if(this.editor){var m=this.isDelta(this.value)?g.getContents():g.getHTML();m!==this.getEditorContents()&&(this.lastDeltaChangeSet=h,this.value=m,(y=(p=this.props).onChange)===null||y===void 0||y.call(p,u,h,v,g))}},l.prototype.onEditorChangeSelection=function(u,h,v){var g,p,y,m,x,b;if(this.editor){var E=this.getEditorSelection(),S=!E&&u,w=E&&!u;a.default(u,E)||(this.selection=u,(p=(g=this.props).onChangeSelection)===null||p===void 0||p.call(g,u,h,v),S?(m=(y=this.props).onFocus)===null||m===void 0||m.call(y,u,h,v):w&&((b=(x=this.props).onBlur)===null||b===void 0||b.call(x,E,h,v)))}},l.prototype.focus=function(){this.editor&&this.editor.focus()},l.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},l.displayName="React Quill",l.Quill=s.default,l.defaultProps={theme:"snow",modules:{},readOnly:!1},l})(n.default.Component);function d(c){Promise.resolve().then(c)}return Lt=f,Lt}var zl=Og();const Rg=Fe.getDefaultExportFromCjs(zl),Cr=({width:e="100%",height:r="100%",boxAlign:t,display:i="show",overflow:n,style:o,className:a,border:s=!0,children:f,ref:d})=>P.jsxRuntimeExports.jsx("div",{style:{width:e,height:r,display:i==="show"?"":i,overflowX:n?.x,overflowY:n?.y,...o},className:`bwgview-content-box ${t?`content-box-${t}`:""} ${a||""} ${s?"":"none-box-st"}`,ref:d,children:f});zl.Quill.register("modules/imageResize",um);const jg=({name:e,value:r,itemProps:t})=>{const i=X.Form.useFormInstance();return z.useEffect(()=>{i?.setFieldValue(e,r??"")},[i,e,r]),P.jsxRuntimeExports.jsx(X.Form.Item,{...t,hidden:!0,children:P.jsxRuntimeExports.jsx(X.Input,{type:"hidden"})})},Us=({border:e=!0,itemProps:r,editorProps:t,value:i,defaultValue:n,onChange:o})=>{const{isEditing:a=!0,title:s,containerHeight:f="100%"}=t||{},d=z.useMemo(()=>({toolbar:a?[[{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,imageResize:{parchment:zl.Quill.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"},handleStyles:{}}}),[a]),c=z.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image"],[]),l=i!==void 0,[u,h]=z.useState(n??""),v=l?i:u,g=z.useCallback((x,b,E,S)=>{l||h(x),o?.(x,b,E,S)},[l,o]),m=`calc(100% - ${a?"42px":"0px"} - ${s?"40px":"0px"})`;return P.jsxRuntimeExports.jsxs(Cr,{border:e,children:[s&&P.jsxRuntimeExports.jsx(Qi,{...s,paddingBottom:10}),r?.name&&P.jsxRuntimeExports.jsx(jg,{name:r.name,value:v??"",itemProps:r}),P.jsxRuntimeExports.jsx(Rg,{readOnly:!a,value:v,onChange:g,modules:d,formats:c,style:{width:"100%",height:m}},a?"snow":"bubble")]})};var Lr={},bf;function Ag(){if(bf)return Lr;bf=1;var e=$n;if(process.env.NODE_ENV==="production")Lr.createRoot=e.createRoot,Lr.hydrateRoot=e.hydrateRoot;else{var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Lr.createRoot=function(t,i){r.usingClientEntryPoint=!0;try{return e.createRoot(t,i)}finally{r.usingClientEntryPoint=!1}},Lr.hydrateRoot=function(t,i,n){r.usingClientEntryPoint=!0;try{return e.hydrateRoot(t,i,n)}finally{r.usingClientEntryPoint=!1}}}return Lr}var Tg=Ag();const kg=({currentPage:e,totalPages:r,pageSize:t=10,totalData:i,onPageChange:n,pageSizeOptions:o=[10,20,50,100],gridRef:a})=>{const[s,f]=z.useState(t);z.useEffect(()=>{f(t)},[t]),z.useEffect(()=>{f(t)},[]);const d=e+1,c=r>0,u=c?Math.ceil(i/s):0,h=c?i:0,v=Math.min(d,u||1),g=`${s}-${u}-${v}`,p=m=>{n(m-1)},y=m=>{f(m);try{a?.current?.gridView?(a.current.gridView.setPaging(!0,m),a.current.gridView.setPage(0)):n(0)}catch(x){console.warn("페이지 사이즈 변경 중 오류:",x),n(0)}};return P.jsxRuntimeExports.jsxs("div",{style:{padding:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:"1px solid #f0f0f0",backgroundColor:"#fafafa"},children:[P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[P.jsxRuntimeExports.jsx("span",{style:{fontSize:"12px"},children:"페이지당"}),P.jsxRuntimeExports.jsx("select",{value:s,onChange:m=>y(Number(m.target.value)),disabled:!c,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"4px",fontSize:"12px",opacity:c?1:.5},children:o.map(m=>P.jsxRuntimeExports.jsxs("option",{value:m,children:[m,"개"]},m))}),P.jsxRuntimeExports.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:c?1:.5},children:["/ 총 ",h,"개"]})]}),P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>p(1),disabled:!c||v===1,style:{width:"30px",height:"24px",background:!c||v===1?"#f5f5f5":"white",cursor:!c||v===1?"not-allowed":"pointer",opacity:c?1:.5},icon:P.jsxRuntimeExports.jsx(Ce.DoubleLeftOutlined,{})}),P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>p(v-1),disabled:!c||v===1,style:{width:"30px",height:"24px",background:!c||v===1?"#f5f5f5":"white",cursor:!c||v===1?"not-allowed":"pointer",opacity:c?1:.5},icon:P.jsxRuntimeExports.jsx(Ce.LeftOutlined,{})}),P.jsxRuntimeExports.jsx("div",{children:(()=>{if(!c||u===0)return P.jsxRuntimeExports.jsx(X.Button,{disabled:!0,style:{width:"30px",height:"24px"},children:"1"});const m=5;let x=1,b=Math.min(m,u);v>3&&u>m&&(x=Math.max(1,v-2),b=Math.min(u,x+m-1),b===u&&(x=Math.max(1,b-m+1)));const E=[];for(let S=x;S<=b;S++)E.push(P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>p(S),style:{width:"30px",height:"24px",background:v===S?"#1890ff":"white",color:v===S?"white":"black",cursor:"pointer"},children:S},S));return E})()},g),P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>p(v+1),disabled:!c||v>=u,style:{width:"30px",height:"24px",background:!c||v>=u?"#f5f5f5":"white",cursor:!c||v>=u?"not-allowed":"pointer",opacity:c?1:.5},icon:P.jsxRuntimeExports.jsx(Ce.RightOutlined,{})}),P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>p(u),disabled:!c||v>=u,style:{width:"30px",height:"24px",background:!c||v>=u?"#f5f5f5":"white",cursor:!c||v>=u?"not-allowed":"pointer",opacity:c?1:.5},icon:P.jsxRuntimeExports.jsx(Ce.DoubleRightOutlined,{})})]})]})},Pg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",Ng="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",Ig=[{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"}],Mg=[{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"}],Lg=({children:e})=>{const[r,t]=z.useState(!1),[i,n]=z.useState(null);return r?P.jsxRuntimeExports.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:P.jsxRuntimeExports.jsx(X.Alert,{message:"리얼그리드 로드 실패",description:P.jsxRuntimeExports.jsxs("div",{children:[P.jsxRuntimeExports.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),P.jsxRuntimeExports.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",i?.message||"알 수 없는 오류"]}),P.jsxRuntimeExports.jsx(X.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{t(!1),n(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):P.jsxRuntimeExports.jsx(Fg,{onError:o=>{console.error("BwgGrid 에러:",o),n(o),t(!0)},children:e})};class Fg extends z.Component{constructor(r){super(r),this.state={hasError:!1}}static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r,t){this.props.onError(r)}render(){return this.state.hasError?null:this.props.children}}const mh=z.forwardRef(({type:e="nrml",gridDivStyle:r,gridDivClassName:t,gridColumns:i,gridOptions:n,gridEvents:o,bindRef:a,gridContext:s,renderers:f,gridInitCallback:d},c)=>{const l=z.useRef(null),u=(T,D,H,U)=>{let Y=[],ee=[];const ie="treeNode";for(let oe in T){let re=T[oe];Y[re[H]]=T[oe];let ue=Y[re[D]];if(ue==null||ue=="-"){ee.push(re);continue}ue[ie]==null&&(ue[ie]=[]),ue[ie].push(re)}return ee},h=z.useCallback(T=>{const D=U=>{const Y=[];return U.forEach(ee=>{ee.children&&ee.children.length>0?Y.push(...D(ee.children)):Y.push(ee)}),Y};return D(T).map(U=>({fieldName:U.fieldName,dataType:U.dataType||"text"}))},[]),v=z.useCallback(T=>{const D=U=>{const Y=[];return U.forEach(ee=>{ee.children&&ee.children.length>0?Y.push(...D(ee.children)):Y.push(ee)}),Y};return D(T).map(U=>({...U,header:{template:U.required?`<img src='${Ng}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:U.editable?`<img src='${Pg}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:U.header?.text??""},text:U.header?.text||""},styleName:U.dataType==="number"?"right":U.styleName||"center"}))},[]);z.useImperativeHandle(c,()=>({addAllData(T,D){const H=l.current?.gridView.getCurrent().dataRow;if(l.current?.dataProvider instanceof Ct.LocalDataProvider){l.current.dataProvider.clearRows();try{l.current.dataProvider.setRows(T)}catch(U){console.error("fillJsonData 오류:",U)}}if(l.current?.dataProvider instanceof Ct.LocalTreeDataProvider){if(l.current.dataProvider.clearRows(),D?.treeOption?.dataField==null||D?.treeOption?.parentField==null)return;const U={rows:"treeNode"};let Y=u(T,D.treeOption?.parentField,D.treeOption?.dataField);l.current.dataProvider.fillJsonData({treeNode:Y},U),D.treeOption.isExpand&&l.current.gridView?.expandAll()}D?.isCurrent?l.current?.gridView.setCurrent({dataRow:H}):l.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>l.current,getCurrentRow:()=>l.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>l.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(T){l.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!T?.indenting,header:"default",footer:"default",sheetName:"",fileName:T?.fileName||"sample.xlsx",...T})},dp:l.current?.dataProvider??null,vw:l.current?.gridView??null}));const g=z.useCallback((T,D,H)=>{if(a!==void 0&&H>=0){let U=T.getDataSource().getJsonRow(H);a?.current?.setFieldsValue(U)}else a!==void 0&&H<0&&a?.current?.resetFields();T.setCurrent({dataRow:0}),o?.onCurrentRowChanged&&o?.onCurrentRowChanged(T,D,H)},[a,o]),p=z.useCallback((T,D,H)=>{const U=D.fieldName??"";a?.current?.getFieldInstance(U)&&a?.current.setFieldValue(U,H),o?.onEditChange&&o?.onEditChange(T,D,H)},[a,o]),y=z.useCallback((T,D,H)=>{const U=T.getOrgFieldName(H),Y=T.getValue(D,H);a?.current?.setFieldValue(U,Y)},[a]),m=z.useCallback((T,D,H,U)=>{const Y=T.getColumn(U).name??"",ee=T.getValue(D,U);a?.current?.getFieldInstance(Y)&&a?.current.setFieldValue(Y,ee),o?.onCellEdited&&o?.onCellEdited(T,D,H,U)},[a,o]),x=z.useCallback(T=>{if(!l.current)return;const D=l.current.gridView,H=D.getDataSource();if(n?.container?.page){const U=D.getPage(),Y=D.getPageCount(),ee=H.getRowCount();L({currentPage:U,totalPages:Y,totalData:ee})}},[n?.container?.page]),b=z.useCallback(()=>{if(!l.current)return;const T=l.current.gridView,D=T.getDataSource(),H=["onKeyDown"],U=["onRowInserted"];Object.keys(o??{}).map(Y=>{H.includes(Y)?T[Y+"Add"]=o?.[Y]:T[Y]=o?.[Y],U.includes(Y)?D[Y+"Add"]=o?.[Y]:D[Y]=o?.[Y]}),D instanceof Ct.LocalDataProvider&&(D.onRowInserted=(Y,ee)=>{ee<0||(setTimeout(function(){T?.setCurrent({dataRow:ee})},1),Y.onRowInsertedAdd!==void 0&&Y.onRowInsertedAdd(Y,ee))}),T.onKeyDown=function(Y,ee){if(ee.code=="Space"){let ie=Y.getSelectedItems(!0);for(const oe in ie)Y.isCheckable(ie[oe])&&(Y.isCheckedItem(ie[oe])?Y.checkItem(ie[oe],!1,!1):Y.checkItem(ie[oe],!0,!1))}return Y.onKeyDownAdd!==void 0&&Y.onKeyDownAdd(Y,ee),!0},l.current.gridView.onCurrentRowChanged=g,l.current.gridView.onEditChange=p,l.current.gridView.getDataSource().onValueChanged=y,l.current.gridView.onCellEdited=m,l.current.gridView.onDataLoadComplated=x},[g,p,y,m,x]),E=z.useCallback(T=>{if(T){try{T.gridView.setSortingOptions({enabled:!0}),T.gridView.sortMode=Ct.SortMode.EXPLICIT,T.gridView.editorOptions.viewGridInside=!0,T.gridView instanceof Ct.TreeView&&T.gridView.setTreeOptions({expandWhenSetData:Ct.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:Ct.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),T.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:n?.display?.minRowHeight||43,maxRowHeight:n?.display?.maxRowHeight||100,rowHeight:n?.display?.rowHeight||43,rowChangeDelay:n?.display?.rowChangeDelay||0,selectionStyle:n?.display?.selectionStyle||Ct.SelectionStyle.ROWS,fitStyle:n?.display?.fitStyle||Ct.GridFitStyle.FILL,useAlternateRowStyle:n?.display?.useAlternateRowStyle||!1}),T.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:n?.edit?.editable||!1,validateOnEdited:n?.edit?.validateOnEdited||!1}),T.gridView.setCopyOptions({singleMode:n?.copy?.singleMode||!1}),T.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),T.gridView.header.height=n?.header?.height||43,T.gridView.header.styleName=n?.header?.styleName||"bwgGridHeader",n?.container?.radio?T.gridView.setCheckBar({exclusive:n?.container?.radio||!1}):T.gridView.setCheckBar({visible:n?.container?.check||!1,showAll:n?.container?.checkAll||!1}),T.gridView.setStateBar({visible:n?.container?.state||!1}),T.gridView.rowIndicator.visible=n?.container?.indicator||!1,T.gridView instanceof Ct.GridView&&(T.gridView.groupPanel.visible=n?.container?.panel||!1),T.gridView.setFooters({visible:n?.container?.footer||!1}),T.gridView.setHeader({visible:n?.container?.header||!0}),T.gridView.formatOptions.numberFormat="#,##0"}catch(D){console.log("그리드 옵션 설정 중 오류:",D)}try{T.gridView instanceof Ct.TreeView?T.gridView.setContextMenu(Mg):T.gridView.setContextMenu(Ig),T.gridView.onContextMenuItemClicked=function(D,H,U){if(!(!U||!U.column)){if(H.tag=="excel")C(D,{isTitle:!1},s?.excel);else if(H.tag=="showIndentExcel")C(D,{isTitle:!1,treeBlank:!0},s?.excel);else if(H.tag=="withTitleExcel")C(D,{isTitle:!0,treeBlank:!1},s?.excel);else if(H.tag=="filter")O(D,H);else if(H.tag=="fixedCol"){const ee=D.getDataSource().getFieldIndex(U.column);D.setFixedOptions({colCount:ee})}else if(H.tag=="fixedRow")D.setFixedOptions({rowCount:(U.itemIndex||0)+1});else if(H.tag=="fixedCancel")D.setFixedOptions({colCount:0,rowCount:0});else if(H.tag=="hide")D.setColumnProperty(U.column,"visible",!1),D._hideCols[D._hideCols.length]=U.column;else if(H.tag=="hideClear")for(var Y=0;Y<D._hideCols.length;Y++)D.setColumnProperty(D._hideCols[Y],"visible",!0)}}}catch(D){console.log("컨텍스트 설정 중 오류:",D)}}},[n]),S=T=>{if(!(!f||f.length===0))try{f.forEach(D=>{const{name:H,renderer:U}=D;if(H&&U){const Y=typeof U=="function"?new U:U;T.gridView.registerCustomRenderer(H,Y)}})}catch(D){console.error("커스텀 렌더러 초기화 중 오류:",D)}},w=T=>{T.onPageChanged=(D,H)=>{L(U=>({...U,currentPage:H}))},T.onPageCountChanged=(D,H)=>{L(U=>({...U,totalPages:H}))}},_=T=>{l.current?.gridView&&l.current.gridView.setPage(T)},A=T=>{if(n?.layout?.colspan&&n.layout.colspan.length>0&&n?.layout?.colspan.forEach(D=>{const H=T.gridView.layoutByColumn(D.fieldName);if(H){const U=D.span;H.spanCallback=function(Y,ee,ie){return U}}}),i&&i.length>0&&i.some(H=>H.children&&H.children.length>0))try{(()=>{const U=JSON.parse(JSON.stringify(i)),Y=[],ee=ie=>{const oe=[];return ie.children.map(re=>{if(re.children&&re.children.length>0){const ue=ee(re),ce=re.header?.text||re.fieldName,he=T.gridView.getColumnProperty(re.fieldName,"header");delete re.children,delete re.header;let Q={name:re.fieldName,header:{text:he?.text||ce,template:he?.template,values:he?.values,visible:he?.visible??!0},items:ue,...re};oe.push(Q)}else oe.push(re.fieldName)}),oe};U.map(ie=>{if(ie.children&&ie.children.length>0){const oe=ee(ie),re=ie.header?.text||ie.fieldName,ue=ie.header?.visible??!0,ce=T.gridView.getColumnProperty(ie.fieldName,"header");delete ie.children,delete ie.header;const he={name:ie.fieldName,header:{text:ce?.text||re,template:ce?.template,values:ce?.values,visible:ce?.visible||ue},items:oe,...ie};Y.push(he)}else Y.push(ie.fieldName)}),console.log("Final Layout!!",Y),T.gridView.setColumnLayout(Y)})()}catch(H){console.error("컬럼 레이아웃 설정 오류:",H)}},R=()=>{if(l.current){if(e==="nrml"){const T=l.current;if(E(T),S(T),i&&i.length>0){const D=h(i),H=v(i);T.gridView.getDataSource().setFields(D),T.gridView.setColumns(H)}if(A(T),n?.container?.page){const D=n?.pagingOption?.pageSize||10;T.gridView.setPaging(!0,D),w(T.gridView)}}else{const T=l.current;if(E(T),S(T),i&&i.length>0){const D=h(i),H=v(i);T.gridView.getDataSource().setFields(D),T.gridView.setColumns(H)}A(l.current)}setTimeout(()=>{if(d){const T=typeof c=="object"&&c!==null?c.current:null;d(T)}},0)}},C=(T,D,H)=>{const U=T.getDataSource();let Y=H?.footer==null?"default":H.footer;U.getRowCount()<1&&(Y="hidden");let ee={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!D?.treeBlank,footer:Y,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:H?.fileName||"sample.xlsx"};U instanceof Ct.LocalTreeDataProvider&&(ee.indenting=!!D?.treeBlank),H?.isCellMerge==!0&&(ee.separateRows=!1),Fe.isEmpty(H?.sheetName)==!1&&(ee.sheetName=H?.sheetName),D?.isTitle&&(ee.documentTitle={message:Fe.isSafeEmpty(H?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},Fe.isEmpty(H?.subTitle)==!1&&(ee.documentSubtitle={message:H?.subTitle,visible:!0,styleName:"center",height:20}),Fe.isEmpty(H?.tailTitle)==!1&&(ee.documentTail={message:H?.tailTitle,visible:!0,styleName:"documentStyle"})),T.exportGrid(ee)},O=(T,D)=>{const H=T.getDataSource(),U=H.getOrgFieldNames();if(D.checked)for(var Y=0;Y<U.length;Y++){let ie=[],oe=H.getDistinctValues(U[Y])??[];if(oe.length==0)continue;let re=T.columnByName(U[Y]);for(var ee=0;ee<oe.length;ee++){if(oe[ee]==null)continue;let ue=re.values!=null&&re.values.indexOf(oe[ee])!=-1?re?.labels?.[re.values.indexOf(oe[ee])]:oe[ee];Fe.isEmpty(ue)&&(Fe.isEmpty(oe[ee])?ue=" ":ue=oe[ee]);let ce="";oe[ee]==null?ce="value="+oe[ee]:ce="value='"+oe[ee]+"'",ie.push({name:ue,criteria:ce})}T.setColumnFilters(U[Y],ie)}else for(var Y=0;Y<U.length;Y++)T.clearColumnFilters(U[Y]),T.activateAllColumnFilters(U[Y],!1),T.clearColumnFilters(U[Y])};z.useEffect(()=>{if(l.current&&l.current.gridView)if(e==="nrml"){const T=l.current;E(T)}else{const T=l.current;E(T)}},[e,n,E]),z.useEffect(()=>{!l.current||!i||i.length===0||R()},[i]),z.useEffect(()=>{l.current&&b()},[o,b]);const[j,k]=z.useState(!1),[I,B]=z.useState(""),V=z.useRef(null),[W,L]=z.useState({currentPage:0,totalPages:0,totalData:0});z.useEffect(()=>{L({currentPage:0,totalPages:0,totalData:0})},[]),z.useEffect(()=>{j&&setTimeout(()=>{V.current?.focus?.()},0)},[j]),z.useEffect(()=>()=>{if(l.current)try{const T=l.current;T.gridView&&(T.gridView.onDataLoadComplated=void 0,T.gridView.onCurrentRowChanged=void 0,T.gridView.onCellClicked=void 0,T.gridView.onCellDblClicked=void 0,T.gridView.onEditRowChanged=void 0,T.gridView.onItemChecked=void 0,T.gridView.onItemAllChecked=void 0,T.gridView.onColumnCheckedChanged=void 0,T.gridView.onCellButtonClicked=void 0,T.gridView.onEditChange=void 0,T.gridView.onCellEdited=void 0,T.gridView.onKeyUp=void 0,T.gridView.onKeyDown=void 0,T.gridView.onWheel=void 0,T.gridView.onValidateColumn=void 0,T.gridView.onValidateRow=void 0,T.gridView.onValidationFail=void 0,T.gridView.onRowInserting=void 0,T.gridView.onCellItemClicked=void 0,T.gridView.onShowEditor=void 0,T.gridView.getDataSource()&&(T.gridView.getDataSource().clearRows(),T.gridView.getDataSource().setFields([])),T.gridView.getDataSource().clearRows())}catch(T){console.warn("⚠️ BwgGrid cleanup error:",T)}},[]);const $=z.useCallback(T=>{N(T)},[]),N=z.useCallback(T=>{const D=l.current?.gridView;if(D?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(D?.commit(),Fe.isEmpty(T))return;const H=D?.getCurrent().itemIndex??-1;if(H<0)return;const U={value:T,startIndex:H+1,wrap:!0,caseSensitive:!1,partialMatch:!0},Y=D?.searchCell(U);D?.setCurrent(Y)},[]),F=z.useCallback(T=>{T.key==="Escape"&&(T.preventDefault(),k(!1))},[]),q=z.useCallback(T=>{T.ctrlKey&&T.code==="KeyF"&&(T.preventDefault(),B(""),k(!j))},[j]),K={searchRow:$,searchEnter:N,handleCloseKeyword:F,handleSearch:q},G=z.useMemo(()=>({...r,position:"relative",width:r?.width||"100%",height:r?.height||"100%"}),[r]);return P.jsxRuntimeExports.jsxs(Lg,{children:[P.jsxRuntimeExports.jsxs("div",{style:G,className:t,onKeyDown:T=>K.handleSearch(T),children:[j&&P.jsxRuntimeExports.jsx("div",{className:"grid-search-box",children:P.jsxRuntimeExports.jsxs(X.Flex,{gap:3,children:[P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{children:[P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.SearchOutlined,{})}),P.jsxRuntimeExports.jsx(X.Input,{ref:V,value:I,name:"srchField",autoComplete:"off",onKeyUp:T=>K.handleCloseKeyword(T),onChange:T=>B(T.target.value),onPressEnter:T=>K.searchEnter(T)})]})}),P.jsxRuntimeExports.jsx(X.Button,{variant:"solid",icon:P.jsxRuntimeExports.jsx(Ce.CloseOutlined,{}),onClick:()=>k(!1)})]})}),e==="nrml"?P.jsxRuntimeExports.jsx(gu.RealGridReact,{ref:l,autoGenerateField:!0,onInitialized:R}):P.jsxRuntimeExports.jsx(gu.RealTreeReact,{ref:l,autoGenerateField:!1,onInitialized:R})]}),n?.container?.page&&P.jsxRuntimeExports.jsx(kg,{currentPage:W.currentPage,totalPages:W.totalPages,pageSize:n?.pagingOption?.pageSize,totalData:W.totalData,onPageChange:_,pageSizeOptions:n?.pagingOption?.pageSizeOptions,gridRef:l})]})}),$g=e=>({initContent(r){this._root=Tg.createRoot(r)},render(r,t,i,n){const o=this._root;o&&e(r,t,i,n,o)},clearContent(r){const t=this._root;t&&setTimeout(()=>{t&&(t.unmount(),this._root=null)},0)},canClick(r){return!0},click(){return{}}}),Dg=z.memo(({title:e,border:r,children:t,titleChildren:i})=>{const n=z.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return P.jsxRuntimeExports.jsxs(jr,{type:"vertical",children:[P.jsxRuntimeExports.jsx(Qi,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:i}),P.jsxRuntimeExports.jsx(Cr,{border:!1,children:P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:n,children:t})})]})}),jr=({type:e="horizontal",layoutAlign:r="left",verticalAlign:t,className:i,style:n,children:o})=>P.jsxRuntimeExports.jsx("div",{style:n,className:`bwgview-content-layout ${e=="horizontal"?"hz-layout":"vt-layout"} layout-${r} ${t&&`vertical-${t}`} ${i||""}`,children:o}),xf=(e,r)=>{const t=window.innerWidth,i=window.innerHeight,n=Math.min(Math.max(e.x,0),Math.max(0,t-r.width)),o=Math.min(Math.max(e.y,0),Math.max(0,i-r.height));return{x:n,y:o}},Bg=({buttons:e,popupData:r,onButtonClick:t})=>!e||e.length===0?null:P.jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:6},children:e.map(i=>P.jsxRuntimeExports.jsx(X.Button,{type:i.type||"default",danger:i.danger,disabled:i.disabled,onClick:()=>t?.(i.key,r),className:"bwg-btn popup-btn",children:i.text},i.key))}),qg=({popup:e,popupEvent:r,onClose:t,children:i})=>{const n=z.useRef(null);e?.popupId;const o=e?.popupTitle||"팝업",a=e?.width||800,s=e?.height||600,f=e?.buttonList?.map((S,w)=>({key:S.btnId||`btn_${w}`,text:S.btnNm,type:S.btnId==="CLOSE"?"default":"primary",disabled:S.enblYn!=="Y",danger:!1}))||[],c=f.some(S=>S.key==="CLOSE"||S.key==="close")?f:[...f,{key:"CLOSE",text:"닫기",type:"default",disabled:!1,danger:!1}],[l,u]=z.useState(a),[h,v]=z.useState(s),g=z.useMemo(()=>{const S=Math.max(0,(window.innerWidth-a)/2),w=Math.max(0,(window.innerHeight-s)/2);return{x:S,y:w}},[a,s]),[p,y]=z.useState(g),m=(S,w)=>{if(S==="CLOSE"||S==="close"){e?.close?.()||t?.();return}r&&r[S]?r[S]():e?.close?.()||t?.()},x=(S,w)=>{const _=xf({x:w.x,y:w.y},{width:l,height:h});y(_)},b=(S,w,_,A,R)=>{const C={width:parseInt(_.style.width,10),height:parseInt(_.style.height,10)},O=xf(R,C);u(C.width),v(C.height),y(O)},E=()=>n.current??document.body;return P.jsxRuntimeExports.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[P.jsxRuntimeExports.jsx("div",{onClick:t,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),P.jsxRuntimeExports.jsxs(eh.Rnd,{className:"bwg-popup",size:{width:l,height:h},position:p,bounds:"window",minWidth:400,minHeight:300,onDragStop:x,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:[P.jsxRuntimeExports.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:P.jsxRuntimeExports.jsx(Dl,{getPopupContainer:E,children:P.jsxRuntimeExports.jsx(jr,{type:"vertical",children:P.jsxRuntimeExports.jsx(X.Card,{className:"popup-drag-container",title:P.jsxRuntimeExports.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:o}),style:{width:"100%",height:"100%"},styles:{body:{height:"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:P.jsxRuntimeExports.jsx(Bg,{buttons:c,popupData:e,onButtonClick:m}),children:P.jsxRuntimeExports.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:i})})})})}),P.jsxRuntimeExports.jsx("div",{ref:n,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},Vg=({children:e,...r})=>P.jsxRuntimeExports.jsx(X.Row,{...r,className:"bwg-row",children:e}),zg=({rowKey:e="id",columns:r,dataSource:t,loading:i=!1,rowSelection:n,size:o="middle",pagination:a=!1,...s})=>P.jsxRuntimeExports.jsx(X.Table,{rowKey:e,columns:r,dataSource:t,loading:i,rowSelection:n,size:o,pagination:a,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...s}),Hg=e=>{const{type:r="card",animated:t=!0,...i}=e;return P.jsxRuntimeExports.jsx(X.Tabs,{type:r,animated:t,...i})};function Ws(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,i=Array(r);t<r;t++)i[t]=e[t];return i}function Ug(e){if(Array.isArray(e))return Ws(e)}function gh(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hl(e,r){if(e){if(typeof e=="string")return Ws(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ws(e,r):void 0}}function Wg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
54
54
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e){return Ug(e)||gh(e)||Hl(e)||Wg()}function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ve.apply(null,arguments)}var Kg={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 yh(e){if(Array.isArray(e))return e}function Gg(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var i,n,o,a,s=[],f=!0,d=!1;try{if(o=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(i=o.call(t)).done)&&(s.push(i.value),s.length!==r);f=!0);}catch(c){d=!0,n=c}finally{try{if(!f&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(d)throw n}}return s}}function bh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
55
55
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fe(e,r){return yh(e)||Gg(e,r)||Hl(e,r)||bh()}function we(e){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},we(e)}function Yg(e,r){if(we(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r);if(we(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function xh(e){var r=Yg(e,"string");return we(r)=="symbol"?r:r+""}function Z(e,r,t){return(r=xh(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Xg(e,r){if(e==null)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(r.indexOf(i)!==-1)continue;t[i]=e[i]}return t}function pt(e,r){if(e==null)return{};var t,i,n=Xg(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],r.indexOf(t)===-1&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}var ms={exports:{}};/*!
|
|
56
56
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -129,16 +129,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
129
129
|
*
|
|
130
130
|
* This source code is licensed under the MIT license found in the
|
|
131
131
|
* LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/var Nf;function Oy(){return Nf||(Nf=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=!1,g=!1,p=!1,y=!1,m=!1,x;x=Symbol.for("react.module.reference");function b(re){return!!(typeof re=="string"||typeof re=="function"||re===t||re===n||m||re===i||re===d||re===c||y||re===h||v||g||p||typeof re=="object"&&re!==null&&(re.$$typeof===u||re.$$typeof===l||re.$$typeof===o||re.$$typeof===a||re.$$typeof===f||re.$$typeof===x||re.getModuleId!==void 0))}function E(re){if(typeof re=="object"&&re!==null){var ue=re.$$typeof;switch(ue){case e:var ce=re.type;switch(ce){case t:case n:case i:case d:case c:return ce;default:var he=ce&&ce.$$typeof;switch(he){case s:case a:case f:case u:case l:case o:return he;default:return ue}}case r:return ue}}}var S=a,w=o,_=e,A=f,R=t,C=u,O=l,j=r,k=n,I=i,B=d,V=c,W=!1,F=!1;function $(re){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(re){return F||(F=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(re){return E(re)===a}function q(re){return E(re)===o}function K(re){return typeof re=="object"&&re!==null&&re.$$typeof===e}function G(re){return E(re)===f}function T(re){return E(re)===t}function D(re){return E(re)===u}function H(re){return E(re)===l}function U(re){return E(re)===r}function Y(re){return E(re)===n}function ee(re){return E(re)===i}function ie(re){return E(re)===d}function oe(re){return E(re)===c}Ie.ContextConsumer=S,Ie.ContextProvider=w,Ie.Element=_,Ie.ForwardRef=A,Ie.Fragment=R,Ie.Lazy=C,Ie.Memo=O,Ie.Portal=j,Ie.Profiler=k,Ie.StrictMode=I,Ie.Suspense=B,Ie.SuspenseList=V,Ie.isAsyncMode=$,Ie.isConcurrentMode=N,Ie.isContextConsumer=L,Ie.isContextProvider=q,Ie.isElement=K,Ie.isForwardRef=G,Ie.isFragment=T,Ie.isLazy=D,Ie.isMemo=H,Ie.isPortal=U,Ie.isProfiler=Y,Ie.isStrictMode=ee,Ie.isSuspense=ie,Ie.isSuspenseList=oe,Ie.isValidElementType=b,Ie.typeOf=E})()),Ie}var If;function Ry(){return If||(If=1,process.env.NODE_ENV==="production"?bi.exports=Cy():bi.exports=Oy()),bi.exports}var xs=Ry();function Gl(e,r,t){var i=M.useRef({});return(!("value"in i.current)||t(i.current.condition,r))&&(i.current.value=e(),i.current.condition=r),i.current.value}var jy=Number(z.version.split(".")[0]),Yl=function(r,t){typeof r=="function"?r(t):we(r)==="object"&&r&&"current"in r&&(r.current=t)},Zn=function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];var n=t.filter(Boolean);return n.length<=1?n[0]:function(o){t.forEach(function(a){Yl(a,o)})}},Xl=function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];return Gl(function(){return Zn.apply(void 0,t)},t,function(n,o){return n.length!==o.length||n.every(function(a,s){return a!==o[s]})})},so=function(r){var t,i;if(!r)return!1;if(Mh(r)&&jy>=19)return!0;var n=xs.isMemo(r)?r.type.type:r.type;return!(typeof n=="function"&&!((t=n.prototype)!==null&&t!==void 0&&t.render)&&n.$$typeof!==xs.ForwardRef||typeof r=="function"&&!((i=r.prototype)!==null&&i!==void 0&&i.render)&&r.$$typeof!==xs.ForwardRef)};function Mh(e){return z.isValidElement(e)&&!Ih(e)}var Zl=function(r){if(r&&Mh(r)){var t=r;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},sl=M.createContext(null);function Ay(e){var r=e.children,t=e.onBatchResize,i=M.useRef(0),n=M.useRef([]),o=M.useContext(sl),a=M.useCallback(function(s,f,d){i.current+=1;var c=i.current;n.current.push({size:s,element:f,data:d}),Promise.resolve().then(function(){c===i.current&&(t?.(n.current),n.current=[])}),o?.(s,f,d)},[t,o]);return M.createElement(sl.Provider,{value:a},r)}var Lh=(function(){if(typeof Map<"u")return Map;function e(r,t){var i=-1;return r.some(function(n,o){return n[0]===t?(i=o,!0):!1}),i}return(function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(t){var i=e(this.__entries__,t),n=this.__entries__[i];return n&&n[1]},r.prototype.set=function(t,i){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=i:this.__entries__.push([t,i])},r.prototype.delete=function(t){var i=this.__entries__,n=e(i,t);~n&&i.splice(n,1)},r.prototype.has=function(t){return!!~e(this.__entries__,t)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(t,i){i===void 0&&(i=null);for(var n=0,o=this.__entries__;n<o.length;n++){var a=o[n];t.call(i,a[1],a[0])}},r})()})(),ll=typeof window<"u"&&typeof document<"u"&&window.document===document,zi=(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")()})(),Ty=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(zi):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),ky=2;function Py(e,r){var t=!1,i=!1,n=0;function o(){t&&(t=!1,e()),i&&s()}function a(){Ty(o)}function s(){var f=Date.now();if(t){if(f-n<ky)return;i=!0}else t=!0,i=!1,setTimeout(a,r);n=f}return s}var Ny=20,Iy=["top","right","bottom","left","width","height","size","weight"],My=typeof MutationObserver<"u",Ly=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Py(this.refresh.bind(this),Ny)}return e.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},e.prototype.removeObserver=function(r){var t=this.observers_,i=t.indexOf(r);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var r=this.updateObservers_();r&&this.refresh()},e.prototype.updateObservers_=function(){var r=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return r.forEach(function(t){return t.broadcastActive()}),r.length>0},e.prototype.connect_=function(){!ll||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),My?(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(){!ll||!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(r){var t=r.propertyName,i=t===void 0?"":t,n=Iy.some(function(o){return!!~i.indexOf(o)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Fh=(function(e,r){for(var t=0,i=Object.keys(r);t<i.length;t++){var n=i[t];Object.defineProperty(e,n,{value:r[n],enumerable:!1,writable:!1,configurable:!0})}return e}),Zr=(function(e){var r=e&&e.ownerDocument&&e.ownerDocument.defaultView;return r||zi}),$h=lo(0,0,0,0);function Hi(e){return parseFloat(e)||0}function Mf(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return r.reduce(function(i,n){var o=e["border-"+n+"-width"];return i+Hi(o)},0)}function Fy(e){for(var r=["top","right","bottom","left"],t={},i=0,n=r;i<n.length;i++){var o=n[i],a=e["padding-"+o];t[o]=Hi(a)}return t}function $y(e){var r=e.getBBox();return lo(0,0,r.width,r.height)}function Dy(e){var r=e.clientWidth,t=e.clientHeight;if(!r&&!t)return $h;var i=Zr(e).getComputedStyle(e),n=Fy(i),o=n.left+n.right,a=n.top+n.bottom,s=Hi(i.width),f=Hi(i.height);if(i.boxSizing==="border-box"&&(Math.round(s+o)!==r&&(s-=Mf(i,"left","right")+o),Math.round(f+a)!==t&&(f-=Mf(i,"top","bottom")+a)),!qy(e)){var d=Math.round(s+o)-r,c=Math.round(f+a)-t;Math.abs(d)!==1&&(s-=d),Math.abs(c)!==1&&(f-=c)}return lo(n.left,n.top,s,f)}var By=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Zr(e).SVGGraphicsElement}:function(e){return e instanceof Zr(e).SVGElement&&typeof e.getBBox=="function"}})();function qy(e){return e===Zr(e).document.documentElement}function Vy(e){return ll?By(e)?$y(e):Dy(e):$h}function zy(e){var r=e.x,t=e.y,i=e.width,n=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Fh(a,{x:r,y:t,width:i,height:n,top:t,right:r+i,bottom:n+t,left:r}),a}function lo(e,r,t,i){return{x:e,y:r,width:t,height:i}}var Hy=(function(){function e(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=lo(0,0,0,0),this.target=r}return e.prototype.isActive=function(){var r=Vy(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},e})(),Uy=(function(){function e(r,t){var i=zy(t);Fh(this,{target:r,contentRect:i})}return e})(),Wy=(function(){function e(r,t,i){if(this.activeObservations_=[],this.observations_=new Lh,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof Zr(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)||(t.set(r,new Hy(r)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof Zr(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)&&(t.delete(r),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&r.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,t=this.activeObservations_.map(function(i){return new Uy(i.target,i.broadcastRect())});this.callback_.call(r,t,r),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Dh=typeof WeakMap<"u"?new WeakMap:new Lh,Bh=(function(){function e(r){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 t=Ly.getInstance(),i=new Wy(r,t,this);Dh.set(this,i)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Bh.prototype[e]=function(){var r;return(r=Dh.get(this))[e].apply(r,arguments)}});var Ky=(function(){return typeof zi.ResizeObserver<"u"?zi.ResizeObserver:Bh})(),tr=new Map;function qh(e){e.forEach(function(r){var t,i=r.target;(t=tr.get(i))===null||t===void 0||t.forEach(function(n){return n(i)})})}var Vh=new Ky(qh);process.env.NODE_ENV;process.env.NODE_ENV;function Gy(e,r){tr.has(e)||(tr.set(e,new Set),Vh.observe(e)),tr.get(e).add(r)}function Yy(e,r){tr.has(e)&&(tr.get(e).delete(r),tr.get(e).size||(Vh.unobserve(e),tr.delete(e)))}function lt(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Lf(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,xh(i.key),i)}}function ut(e,r,t){return r&&Lf(e.prototype,r),t&&Lf(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vn(e,r){return Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},Vn(e,r)}function mr(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Vn(e,r)}function zn(e){return zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zn(e)}function Ql(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ql=function(){return!!e})()}function Re(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xy(e,r){if(r&&(we(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Re(e)}function gr(e){var r=Ql();return function(){var t,i=zn(e);if(r){var n=zn(this).constructor;t=Reflect.construct(i,arguments,n)}else t=i.apply(this,arguments);return Xy(this,t)}}var Zy=(function(e){mr(t,e);var r=gr(t);function t(){return lt(this,t),r.apply(this,arguments)}return ut(t,[{key:"render",value:function(){return this.props.children}}]),t})(M.Component);function Qy(e,r){var t=e.children,i=e.disabled,n=M.useRef(null),o=M.useRef(null),a=M.useContext(sl),s=typeof t=="function",f=s?t(n):t,d=M.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=!s&&M.isValidElement(f)&&so(f),l=c?Zl(f):null,u=Xl(l,n),h=function(){var y;return Ni(n.current)||(n.current&&we(n.current)==="object"?Ni((y=n.current)===null||y===void 0?void 0:y.nativeElement):null)||Ni(o.current)};M.useImperativeHandle(r,function(){return h()});var v=M.useRef(e);v.current=e;var g=M.useCallback(function(p){var y=v.current,m=y.onResize,x=y.data,b=p.getBoundingClientRect(),E=b.width,S=b.height,w=p.offsetWidth,_=p.offsetHeight,A=Math.floor(E),R=Math.floor(S);if(d.current.width!==A||d.current.height!==R||d.current.offsetWidth!==w||d.current.offsetHeight!==_){var C={width:A,height:R,offsetWidth:w,offsetHeight:_};d.current=C;var O=w===Math.round(E)?E:w,j=_===Math.round(S)?S:_,k=te(te({},C),{},{offsetWidth:O,offsetHeight:j});a?.(k,p,x),m&&Promise.resolve().then(function(){m(k,p)})}},[]);return M.useEffect(function(){var p=h();return p&&!i&&Gy(p,g),function(){return Yy(p,g)}},[n.current,i]),M.createElement(Zy,{ref:o},c?M.cloneElement(f,{ref:u}):f)}var zh=M.forwardRef(Qy);process.env.NODE_ENV!=="production"&&(zh.displayName="SingleObserver");var Jy="rc-observer-key";function e0(e,r){var t=e.children,i=typeof t=="function"?[t]:Xr(t);return process.env.NODE_ENV!=="production"&&(i.length>1?Yr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):i.length===0&&Yr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),i.map(function(n,o){var a=n?.key||"".concat(Jy,"-").concat(o);return M.createElement(zh,Ve({},e,{key:a,ref:o===0?r:void 0}),n)})}var ln=M.forwardRef(e0);process.env.NODE_ENV!=="production"&&(ln.displayName="ResizeObserver");ln.Collection=Ay;var Ff=process.env.NODE_ENV!=="test"&>()?M.useLayoutEffect:M.useEffect,Ge=function(r,t){var i=M.useRef(!0);Ff(function(){return r(i.current)},t),Ff(function(){return i.current=!1,function(){i.current=!0}},[])},$f=function(r,t){Ge(function(i){if(!i)return r()},t)};function mt(e){var r=M.useRef();r.current=e;var t=M.useCallback(function(){for(var i,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(i=r.current)===null||i===void 0?void 0:i.call.apply(i,[r].concat(o))},[]);return t}function Hn(e){var r=M.useRef(!1),t=M.useState(e),i=fe(t,2),n=i[0],o=i[1];M.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]);function a(s,f){f&&r.current||o(s)}return[n,a]}function Es(e){return e!==void 0}function Ar(e,r){var t=r||{},i=t.defaultValue,n=t.value,o=t.onChange,a=t.postState,s=Hn(function(){return Es(n)?n:Es(i)?typeof i=="function"?i():i:typeof e=="function"?e():e}),f=fe(s,2),d=f[0],c=f[1],l=n!==void 0?n:d,u=a?a(l):l,h=mt(o),v=Hn([l]),g=fe(v,2),p=g[0],y=g[1];$f(function(){var x=p[0];d!==x&&h(d,x)},[p]),$f(function(){Es(n)||c(n)},[n]);var m=mt(function(x,b){c(x,b),y([l],b)});return[u,m]}function Hh(e,r){var t=Object.assign({},e);return Array.isArray(r)&&r.forEach(function(i){delete t[i]}),t}var t0=function(r){if(gt()&&window.document.documentElement){var t=Array.isArray(r)?r:[r],i=window.document.documentElement;return t.some(function(n){return n in i.style})}return!1};function Df(e,r){return t0(e)}function Un(e){for(var r=0,t,i=0,n=e.length;n>=4;++i,n-=4)t=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(n){case 3:r^=(e.charCodeAt(i+2)&255)<<16;case 2:r^=(e.charCodeAt(i+1)&255)<<8;case 1:r^=e.charCodeAt(i)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function ul(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function n(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=i.has(o);if(Ke(!f,"Warning: There may be circular references"),f)return!1;if(o===a)return!0;if(t&&s>1)return!1;i.add(o);var d=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var c=0;c<o.length;c++)if(!n(o[c],a[c],d))return!1;return!0}if(o&&a&&we(o)==="object"&&we(a)==="object"){var l=Object.keys(o);return l.length!==Object.keys(a).length?!1:l.every(function(u){return n(o[u],a[u],d)})}return!1}return n(e,r)}var r0="%";function cl(e){return e.join(r0)}var n0=(function(){function e(r){lt(this,e),Z(this,"instanceId",void 0),Z(this,"cache",new Map),Z(this,"extracted",new Set),this.instanceId=r}return ut(e,[{key:"get",value:function(t){return this.opGet(cl(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,i){return this.opUpdate(cl(t),i)}},{key:"opUpdate",value:function(t,i){var n=this.cache.get(t),o=i(n);o===null?this.cache.delete(t):this.cache.set(t,o)}}]),e})(),Qr="data-token-hash",Dt="data-css-hash",i0="data-cache-path",hr="__cssinjs_instance__";function o0(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var r=document.body.querySelectorAll("style[".concat(Dt,"]"))||[],t=document.head.firstChild;Array.from(r).forEach(function(n){n[hr]=n[hr]||e,n[hr]===e&&document.head.insertBefore(n,t)});var i={};Array.from(document.querySelectorAll("style[".concat(Dt,"]"))).forEach(function(n){var o=n.getAttribute(Dt);if(i[o]){if(n[hr]===e){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}}else i[o]=!0})}return new n0(e)}var Qn=M.createContext({hashPriority:"low",cache:o0(),defaultCache:!0});function a0(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}var Jl=(function(){function e(){lt(this,e),Z(this,"cache",void 0),Z(this,"keys",void 0),Z(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ut(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var i,n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return t.forEach(function(s){if(!a)a=void 0;else{var f;a=(f=a)===null||f===void 0||(f=f.map)===null||f===void 0?void 0:f.get(s)}}),(i=a)!==null&&i!==void 0&&i.value&&o&&(a.value[1]=this.cacheCallTimes++),(n=a)===null||n===void 0?void 0:n.value}},{key:"get",value:function(t){var i;return(i=this.internalGet(t,!0))===null||i===void 0?void 0:i[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,i){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(d,c){var l=fe(d,2),u=l[1];return n.internalGet(c)[1]<u?[c,n.internalGet(c)[1]]:d},[this.keys[0],this.cacheCallTimes]),a=fe(o,1),s=a[0];this.delete(s)}this.keys.push(t)}var f=this.cache;t.forEach(function(d,c){if(c===t.length-1)f.set(d,{value:[i,n.cacheCallTimes++]});else{var l=f.get(d);l?l.map||(l.map=new Map):f.set(d,{map:new Map}),f=f.get(d).map}})}},{key:"deleteByPath",value:function(t,i){var n=t.get(i[0]);if(i.length===1){var o;return n.map?t.set(i[0],{map:n.map}):t.delete(i[0]),(o=n.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(n.map,i.slice(1));return(!n.map||n.map.size===0)&&!n.value&&t.delete(i[0]),a}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(i){return!a0(i,t)}),this.deleteByPath(this.cache,t)}}]),e})();Z(Jl,"MAX_CACHE_SIZE",20);Z(Jl,"MAX_CACHE_OFFSET",5);var Bf=0,Uh=(function(){function e(r){lt(this,e),Z(this,"derivatives",void 0),Z(this,"id",void 0),this.derivatives=Array.isArray(r)?r:[r],this.id=Bf,r.length===0&&Yr(r.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Bf+=1}return ut(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(i,n){return n(t,i)},void 0)}}]),e})(),ws=new Jl;function fl(e){var r=Array.isArray(e)?e:[e];return ws.has(r)||ws.set(r,new Uh(r)),ws.get(r)}var s0=new WeakMap,Ss={};function l0(e,r){for(var t=s0,i=0;i<r.length;i+=1){var n=r[i];t.has(n)||t.set(n,new WeakMap),t=t.get(n)}return t.has(Ss)||t.set(Ss,e()),t.get(Ss)}var qf=new WeakMap;function Ln(e){var r=qf.get(e)||"";return r||(Object.keys(e).forEach(function(t){var i=e[t];r+=t,i instanceof Uh?r+=i.id:i&&we(i)==="object"?r+=Ln(i):r+=i}),r=Un(r),qf.set(e,r)),r}function Vf(e,r){return Un("".concat(r,"_").concat(Ln(e)))}var dl=gt();function $e(e){return typeof e=="number"?"".concat(e,"px"):e}function Ui(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n)return e;var o=te(te({},i),{},Z(Z({},Qr,r),Dt,t)),a=Object.keys(o).map(function(s){var f=o[s];return f?"".concat(s,'="').concat(f,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var Ii=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(r).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()},u0=function(r,t,i){return Object.keys(r).length?".".concat(t).concat(i!=null&&i.scope?".".concat(i.scope):"","{").concat(Object.entries(r).map(function(n){var o=fe(n,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Wh=function(r,t,i){var n={},o={};return Object.entries(r).forEach(function(a){var s,f,d=fe(a,2),c=d[0],l=d[1];if(i!=null&&(s=i.preserve)!==null&&s!==void 0&&s[c])o[c]=l;else if((typeof l=="string"||typeof l=="number")&&!(i!=null&&(f=i.ignore)!==null&&f!==void 0&&f[c])){var u,h=Ii(c,i?.prefix);n[h]=typeof l=="number"&&!(i!=null&&(u=i.unitless)!==null&&u!==void 0&&u[c])?"".concat(l,"px"):String(l),o[c]="var(".concat(h,")")}}),[o,u0(n,t,{scope:i?.scope})]},c0=te({},M),zf=c0.useInsertionEffect,f0=function(r,t,i){M.useMemo(r,i),Ge(function(){return t(!0)},i)},d0=zf?function(e,r,t){return zf(function(){return e(),r()},t)}:f0,h0=te({},M),p0=h0.useInsertionEffect,v0=function(r){var t=[],i=!1;function n(o){if(i){process.env.NODE_ENV!=="production"&&Yr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}t.push(o)}return M.useEffect(function(){return i=!1,function(){i=!0,t.length&&t.forEach(function(o){return o()})}},r),n},m0=function(){return function(r){r()}},g0=typeof p0<"u"?v0:m0;function y0(){return!1}var hl=!1;function b0(){return hl}const x0=process.env.NODE_ENV==="production"?y0:b0;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(xi&&typeof xi.webpackHotUpdate=="function"){var E0=xi.webpackHotUpdate;xi.webpackHotUpdate=function(){return hl=!0,setTimeout(function(){hl=!1},0),E0.apply(void 0,arguments)}}}function eu(e,r,t,i,n){var o=M.useContext(Qn),a=o.cache,s=[e].concat(ge(r)),f=cl(s),d=g0([f]),c=x0(),l=function(g){a.opUpdate(f,function(p){var y=p||[void 0,void 0],m=fe(y,2),x=m[0],b=x===void 0?0:x,E=m[1],S=E;process.env.NODE_ENV!=="production"&&E&&c&&(i?.(S,c),S=null);var w=S||t(),_=[b,w];return g?g(_):_})};M.useMemo(function(){l()},[f]);var u=a.opGet(f);process.env.NODE_ENV!=="production"&&!u&&(l(),u=a.opGet(f));var h=u[1];return d0(function(){n?.(h)},function(v){return l(function(g){var p=fe(g,2),y=p[0],m=p[1];return v&&y===0&&n?.(h),[y+1,m]}),function(){a.opUpdate(f,function(g){var p=g||[],y=fe(p,2),m=y[0],x=m===void 0?0:m,b=y[1],E=x-1;return E===0?(d(function(){(v||!a.opGet(f))&&i?.(b,!1)}),null):[x-1,b]})}},[f]),h}var w0={},S0=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",_r=new Map;function _0(e){_r.set(e,(_r.get(e)||0)+1)}function C0(e,r){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(Qr,'="').concat(e,'"]'));t.forEach(function(i){if(i[hr]===r){var n;(n=i.parentNode)===null||n===void 0||n.removeChild(i)}})}}var O0=0;function R0(e,r){_r.set(e,(_r.get(e)||0)-1);var t=new Set;_r.forEach(function(i,n){i<=0&&t.add(n)}),_r.size-t.size>O0&&t.forEach(function(i){C0(i,r),_r.delete(i)})}var j0=function(r,t,i,n){var o=i.getDerivativeToken(r),a=te(te({},o),t);return n&&(a=n(a)),a},Kh="token";function A0(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=z.useContext(Qn),n=i.cache.instanceId,o=i.container,a=t.salt,s=a===void 0?"":a,f=t.override,d=f===void 0?w0:f,c=t.formatToken,l=t.getComputedToken,u=t.cssVar,h=l0(function(){return Object.assign.apply(Object,[{}].concat(ge(r)))},r),v=Ln(h),g=Ln(d),p=u?Ln(u):"",y=eu(Kh,[s,e.id,v,g,p],function(){var m,x=l?l(h,d,e):j0(h,d,e,c),b=te({},x),E="";if(u){var S=Wh(x,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve}),w=fe(S,2);x=w[0],E=w[1]}var _=Vf(x,s);x._tokenKey=_,b._tokenKey=Vf(b,s);var A=(m=u?.key)!==null&&m!==void 0?m:_;x._themeKey=A,_0(A);var R="".concat(S0,"-").concat(Un(_));return x._hashId=R,[x,R,b,E,u?.key||""]},function(m){R0(m[0]._themeKey,n)},function(m){var x=fe(m,4),b=x[0],E=x[3];if(u&&E){var S=rr(E,Un("css-variables-".concat(b._themeKey)),{mark:Dt,prepend:"queue",attachTo:o,priority:-999});S[hr]=n,S.setAttribute(Qr,b._themeKey)}});return y}var T0=function(r,t,i){var n=fe(r,5),o=n[2],a=n[3],s=n[4],f=i||{},d=f.plain;if(!a)return null;var c=o._tokenKey,l=-999,u={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)},h=Ui(a,s,c,u,d);return[l,c,h]},k0={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},Gh="comm",Yh="rule",Xh="decl",P0="@import",N0="@namespace",I0="@keyframes",M0="@layer",Zh=Math.abs,tu=String.fromCharCode;function Qh(e){return e.trim()}function Mi(e,r,t){return e.replace(r,t)}function L0(e,r,t){return e.indexOf(r,t)}function Wr(e,r){return e.charCodeAt(r)|0}function Jr(e,r,t){return e.slice(r,t)}function Ut(e){return e.length}function F0(e){return e.length}function Ei(e,r){return r.push(e),e}var uo=1,en=1,Jh=0,At=0,tt=0,un="";function ru(e,r,t,i,n,o,a,s){return{value:e,root:r,parent:t,type:i,props:n,children:o,line:uo,column:en,length:a,return:"",siblings:s}}function $0(){return tt}function D0(){return tt=At>0?Wr(un,--At):0,en--,tt===10&&(en=1,uo--),tt}function Bt(){return tt=At<Jh?Wr(un,At++):0,en++,tt===10&&(en=1,uo++),tt}function pr(){return Wr(un,At)}function Li(){return At}function co(e,r){return Jr(un,e,r)}function Wn(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 B0(e){return uo=en=1,Jh=Ut(un=e),At=0,[]}function q0(e){return un="",e}function _s(e){return Qh(co(At-1,pl(e===91?e+2:e===40?e+1:e)))}function V0(e){for(;(tt=pr())&&tt<33;)Bt();return Wn(e)>2||Wn(tt)>3?"":" "}function z0(e,r){for(;--r&&Bt()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return co(e,Li()+(r<6&&pr()==32&&Bt()==32))}function pl(e){for(;Bt();)switch(tt){case e:return At;case 34:case 39:e!==34&&e!==39&&pl(tt);break;case 40:e===41&&pl(e);break;case 92:Bt();break}return At}function H0(e,r){for(;Bt()&&e+tt!==57;)if(e+tt===84&&pr()===47)break;return"/*"+co(r,At-1)+"*"+tu(e===47?e:Bt())}function U0(e){for(;!Wn(pr());)Bt();return co(e,At)}function W0(e){return q0(Fi("",null,null,null,[""],e=B0(e),0,[0],e))}function Fi(e,r,t,i,n,o,a,s,f){for(var d=0,c=0,l=a,u=0,h=0,v=0,g=1,p=1,y=1,m=0,x="",b=n,E=o,S=i,w=x;p;)switch(v=m,m=Bt()){case 40:if(v!=108&&Wr(w,l-1)==58){L0(w+=Mi(_s(m),"&","&\f"),"&\f",Zh(d?s[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=_s(m);break;case 9:case 10:case 13:case 32:w+=V0(v);break;case 92:w+=z0(Li()-1,7);continue;case 47:switch(pr()){case 42:case 47:Ei(K0(H0(Bt(),Li()),r,t,f),f),(Wn(v||1)==5||Wn(pr()||1)==5)&&Ut(w)&&Jr(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*g:s[d++]=Ut(w)*y;case 125*g:case 59:case 0:switch(m){case 0:case 125:p=0;case 59+c:y==-1&&(w=Mi(w,/\f/g,"")),h>0&&(Ut(w)-l||g===0&&v===47)&&Ei(h>32?Uf(w+";",i,t,l-1,f):Uf(Mi(w," ","")+";",i,t,l-2,f),f);break;case 59:w+=";";default:if(Ei(S=Hf(w,r,t,d,c,n,s,x,b=[],E=[],l,o),o),m===123)if(c===0)Fi(w,r,S,S,b,o,l,s,E);else{switch(u){case 99:if(Wr(w,3)===110)break;case 108:if(Wr(w,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Fi(e,S,S,i&&Ei(Hf(e,S,S,0,0,n,s,x,n,b=[],l,E),E),n,E,l,s,i?b:E):Fi(w,S,S,S,[""],E,0,s,E)}}d=c=h=0,g=y=1,x=w="",l=a;break;case 58:l=1+Ut(w),h=v;default:if(g<1){if(m==123)--g;else if(m==125&&g++==0&&D0()==125)continue}switch(w+=tu(m),m*g){case 38:y=c>0?1:(w+="\f",-1);break;case 44:s[d++]=(Ut(w)-1)*y,y=1;break;case 64:pr()===45&&(w+=_s(Bt())),u=pr(),c=l=Ut(x=w+=U0(Li())),m++;break;case 45:v===45&&Ut(w)==2&&(g=0)}}return o}function Hf(e,r,t,i,n,o,a,s,f,d,c,l){for(var u=n-1,h=n===0?o:[""],v=F0(h),g=0,p=0,y=0;g<i;++g)for(var m=0,x=Jr(e,u+1,u=Zh(p=a[g])),b=e;m<v;++m)(b=Qh(p>0?h[m]+" "+x:Mi(x,/&\f/g,h[m])))&&(f[y++]=b);return ru(e,r,t,n===0?Yh:s,f,d,c,l)}function K0(e,r,t,i){return ru(e,r,t,Gh,tu($0()),Jr(e,2,-2),0,i)}function Uf(e,r,t,i,n){return ru(e,r,t,Xh,Jr(e,0,i),Jr(e,i+1,-1),i,n)}function vl(e,r){for(var t="",i=0;i<e.length;i++)t+=r(e[i],i,e,r)||"";return t}function G0(e,r,t,i){switch(e.type){case M0:if(e.children.length)break;case P0:case N0:case Xh:return e.return=e.return||e.value;case Gh:return"";case I0:return e.return=e.value+"{"+vl(e.children,i)+"}";case Yh:if(!Ut(e.value=e.props.join(",")))return""}return Ut(t=vl(e.children,i))?e.return=e.value+"{"+t+"}":""}function ep(e,r){var t=r.path,i=r.parentSelectors;Ke(!1,"[Ant Design CSS-in-JS] ".concat(t?"Error in ".concat(t,": "):"").concat(e).concat(i.length?" Selector: ".concat(i.join(" | ")):""))}var Y0=function(r,t,i){if(r==="content"){var n=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof t!="string"||o.indexOf(t)===-1&&!n.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'"))&&ep("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),i)}},X0=function(r,t,i){r==="animation"&&i.hashId&&t!=="none"&&ep("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),i)},Wf="data-ant-cssinjs-cache-path",tp="_FILE_STYLE__",Rr,rp=!0;function Z0(){if(!Rr&&(Rr={},gt())){var e=document.createElement("div");e.className=Wf,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var r=getComputedStyle(e).content||"";r=r.replace(/^"/,"").replace(/"$/,""),r.split(";").forEach(function(n){var o=n.split(":"),a=fe(o,2),s=a[0],f=a[1];Rr[s]=f});var t=document.querySelector("style[".concat(Wf,"]"));if(t){var i;rp=!1,(i=t.parentNode)===null||i===void 0||i.removeChild(t)}document.body.removeChild(e)}}function Q0(e){return Z0(),!!Rr[e]}function J0(e){var r=Rr[e],t=null;if(r&>())if(rp)t=tp;else{var i=document.querySelector("style[".concat(Dt,'="').concat(Rr[e],'"]'));i?t=i.innerHTML:delete Rr[e]}return[t,r]}var np="_skip_check_",ip="_multi_value_";function $i(e){var r=vl(W0(e),G0);return r.replace(/\{%%%\:[^;];}/g,";")}function eb(e){return we(e)==="object"&&e&&(np in e||ip in e)}function Kf(e,r,t){if(!r)return e;var i=".".concat(r),n=t==="low"?":where(".concat(i,")"):i,o=e.split(",").map(function(a){var s,f=a.trim().split(/\s+/),d=f[0]||"",c=((s=d.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return d="".concat(c).concat(n).concat(d.slice(c.length)),[d].concat(ge(f.slice(1))).join(" ")});return o.join(",")}var tb=function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},n=i.root,o=i.injectHash,a=i.parentSelectors,s=t.hashId,f=t.layer,d=t.path,c=t.hashPriority,l=t.transformers,u=l===void 0?[]:l,h=t.linters,v=h===void 0?[]:h,g="",p={};function y(b){var E=b.getName(s);if(!p[E]){var S=e(b.style,t,{root:!1,parentSelectors:a}),w=fe(S,1),_=w[0];p[E]="@keyframes ".concat(b.getName(s)).concat(_)}}function m(b){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(S){Array.isArray(S)?m(S,E):S&&E.push(S)}),E}var x=m(Array.isArray(r)?r:[r]);return x.forEach(function(b){var E=typeof b=="string"&&!n?{}:b;if(typeof E=="string")g+="".concat(E,`
|
|
133
|
-
`);else if(E._keyframe)y(E);else{var S=u.reduce(function(w,_){var A;return(_==null||(A=_.visit)===null||A===void 0?void 0:A.call(_,w))||w},E);Object.keys(S).forEach(function(w){var _=S[w];if(we(_)==="object"&&_&&(w!=="animationName"||!_._keyframe)&&!eb(_)){var A=!1,R=w.trim(),C=!1;(n||o)&&s?R.startsWith("@")?A=!0:R==="&"?R=Kf("",s,c):R=Kf(w,s,c):n&&!s&&(R==="&"||R==="")&&(R="",C=!0);var O=e(_,t,{root:C,injectHash:A,parentSelectors:[].concat(ge(a),[R])}),j=fe(O,2),k=j[0],I=j[1];p=te(te({},p),I),g+="".concat(R).concat(k)}else{let W=function(
|
|
134
|
-
`))):g="{".concat(g,"}"),[g,p]};function op(e,r){return Un("".concat(e.join("%")).concat(r))}function rb(){return null}var ap="style";function ml(e,r){var t=e.token,i=e.path,n=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,f=e.order,d=f===void 0?0:f,c=M.useContext(Qn),l=c.autoClear,u=c.mock,h=c.defaultCache,v=c.hashPriority,g=c.container,p=c.ssrInline,y=c.transformers,m=c.linters,x=c.cache,b=c.layer,E=t._tokenKey,S=[E];b&&S.push("layer"),S.push.apply(S,ge(i));var w=dl;process.env.NODE_ENV!=="production"&&u!==void 0&&(w=u==="client");var _=eu(ap,S,function(){var j=S.join("|");if(Q0(j)){var k=J0(j),I=fe(k,2),B=I[0],V=I[1];if(B)return[B,E,V,{},s,d]}var W=r(),F=tb(W,{hashId:n,hashPriority:v,layer:b?o:void 0,path:i.join("-"),transformers:y,linters:m}),$=fe(F,2),N=$[0],L=$[1],q=$i(N),K=op(S,q);return[q,E,K,L,s,d]},function(j,k){var I=fe(j,3),B=I[2];(k||l)&&dl&&Bn(B,{mark:Dt,attachTo:g})},function(j){var k=fe(j,4),I=k[0];k[1];var B=k[2],V=k[3];if(w&&I!==tp){var W={mark:Dt,prepend:b?!1:"queue",attachTo:g,priority:d},F=typeof a=="function"?a():a;F&&(W.csp={nonce:F});var $=[],N=[];Object.keys(V).forEach(function(q){q.startsWith("@layer")?$.push(q):N.push(q)}),$.forEach(function(q){rr($i(V[q]),"_layer-".concat(q),te(te({},W),{},{prepend:!0}))});var L=rr(I,B,W);L[hr]=x.instanceId,L.setAttribute(Qr,E),process.env.NODE_ENV!=="production"&&L.setAttribute(i0,S.join("|")),N.forEach(function(q){rr($i(V[q]),"_effect-".concat(q),W)})}}),A=fe(_,3),R=A[0],C=A[1],O=A[2];return function(j){var k;return!p||w||!h?k=M.createElement(rb,null):k=M.createElement("style",Ve({},Z(Z({},Qr,C),Dt,O),{dangerouslySetInnerHTML:{__html:R}})),M.createElement(M.Fragment,null,k,j)}}var nb=function(r,t,i){var n=fe(r,6),o=n[0],a=n[1],s=n[2],f=n[3],d=n[4],c=n[5],l=i||{},u=l.plain;if(d)return null;var h=o,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return h=Ui(o,a,s,v,u),f&&Object.keys(f).forEach(function(g){if(!t[g]){t[g]=!0;var p=$i(f[g]),y=Ui(p,a,"_effect-".concat(g),v,u);g.startsWith("@layer")?h=y+h:h+=y}}),[c,s,h]},sp="cssVar",ib=function(r,t){var i=r.key,n=r.prefix,o=r.unitless,a=r.ignore,s=r.token,f=r.scope,d=f===void 0?"":f,c=z.useContext(Qn),l=c.cache.instanceId,u=c.container,h=s._tokenKey,v=[].concat(ge(r.path),[i,d,h]),g=eu(sp,v,function(){var p=t(),y=Wh(p,i,{prefix:n,unitless:o,ignore:a,scope:d}),m=fe(y,2),x=m[0],b=m[1],E=op(v,b);return[x,b,E,i]},function(p){var y=fe(p,3),m=y[2];dl&&Bn(m,{mark:Dt,attachTo:u})},function(p){var y=fe(p,3),m=y[1],x=y[2];if(m){var b=rr(m,x,{mark:Dt,prepend:"queue",attachTo:u,priority:-999});b[hr]=l,b.setAttribute(Qr,i)}});return g},ob=function(r,t,i){var n=fe(r,4),o=n[1],a=n[2],s=n[3],f=i||{},d=f.plain;if(!o)return null;var c=-999,l={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},u=Ui(o,s,a,l,d);return[c,a,u]};Z(Z(Z({},ap,nb),Kh,T0),sp,ob);var kt=(function(){function e(r,t){lt(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=r,this.style=t}return ut(e,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e})();function Fr(e){return e.notSplit=!0,e}Fr(["borderTop","borderBottom"]),Fr(["borderTop"]),Fr(["borderBottom"]),Fr(["borderLeft","borderRight"]),Fr(["borderLeft"]),Fr(["borderRight"]);function ab(e){return yh(e)||gh(e)||Hl(e)||bh()}function Wt(e,r){for(var t=e,i=0;i<r.length;i+=1){if(t==null)return;t=t[r[i]]}return t}function lp(e,r,t,i){if(!r.length)return t;var n=ab(r),o=n[0],a=n.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=ge(e):s=te({},e),i&&t===void 0&&a.length===1?delete s[o][a[0]]:s[o]=lp(s[o],a,t,i),s}function Ft(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&i&&t===void 0&&!Wt(e,r.slice(0,-1))?e:lp(e,r,t,i)}function sb(e){return we(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Gf(e){return Array.isArray(e)?[]:{}}var lb=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function zr(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=Gf(r[0]);return r.forEach(function(n){function o(a,s){var f=new Set(s),d=Wt(n,a),c=Array.isArray(d);if(c||sb(d)){if(!f.has(d)){f.add(d);var l=Wt(i,a);c?i=Ft(i,a,[]):(!l||we(l)!=="object")&&(i=Ft(i,a,Gf(d))),lb(d).forEach(function(u){o([].concat(ge(a),[u]),f)})}}else i=Ft(i,a,d)}o([])}),i}function up(){}let Jt=null;function ub(){Jt=null,jh()}let cp=up;process.env.NODE_ENV!=="production"&&(cp=(e,r,t)=>{Ke(e,`[antd: ${r}] ${t}`),process.env.NODE_ENV==="test"&&ub()});const Jn=cp,fp=M.createContext({}),Kt=process.env.NODE_ENV!=="production"?e=>{const{strict:r}=M.useContext(fp),t=(i,n,o)=>{if(!i)if(r===!1&&n==="deprecated"){const a=Jt;Jt||(Jt={}),Jt[e]=Jt[e]||[],Jt[e].includes(o||"")||Jt[e].push(o||""),a||console.warn("[antd] There exists deprecated usage in your code:",Jt)}else process.env.NODE_ENV!=="production"&&Jn(i,e,o)};return t.deprecated=(i,n,o,a)=>{t(i,"deprecated",`\`${n}\` is deprecated. Please use \`${o}\` instead.${a?` ${a}`:""}`)},t}:()=>{const e=()=>{};return e.deprecated=up,e},cb=z.createContext(void 0);var fb={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"},db={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},hb=te(te({},db),{},{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 dp={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Yf={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"]},hb),timePickerLocale:Object.assign({},dp)},bt="${label} is not a valid ${type}",tn={locale:"en",Pagination:fb,DatePicker:Yf,TimePicker:dp,Calendar:Yf,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:bt,method:bt,array:bt,object:bt,number:bt,date:bt,boolean:bt,integer:bt,float:bt,regexp:bt,email:bt,url:bt,hex:bt},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({},tn.Modal);let Di=[];const Xf=()=>Di.reduce((e,r)=>Object.assign(Object.assign({},e),r),tn.Modal);function pb(e){if(e){const r=Object.assign({},e);return Di.push(r),Xf(),()=>{Di=Di.filter(t=>t!==r),Xf()}}Object.assign({},tn.Modal)}const nu=z.createContext(void 0),vb=(e,r)=>{const t=M.useContext(nu),i=M.useMemo(()=>{var o;const a=tn[e],s=(o=t?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,r,t]),n=M.useMemo(()=>{const o=t?.locale;return t?.exist&&!o?tn.locale:o},[t]);return[i,n]},hp="internalMark",pp=e=>{const{locale:r={},children:t,_ANT_MARK__:i}=e;if(process.env.NODE_ENV!=="production"){const o=Kt("LocaleProvider");process.env.NODE_ENV!=="production"&&o(i===hp,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}M.useEffect(()=>pb(r?.Modal),[r]);const n=M.useMemo(()=>Object.assign(Object.assign({},r),{exist:!0}),[r]);return M.createElement(nu.Provider,{value:n},t)};process.env.NODE_ENV!=="production"&&(pp.displayName="LocaleProvider");const vp={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"},Kn=Object.assign(Object.assign({},vp),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
132
|
+
*/var Nf;function Oy(){return Nf||(Nf=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=!1,g=!1,p=!1,y=!1,m=!1,x;x=Symbol.for("react.module.reference");function b(re){return!!(typeof re=="string"||typeof re=="function"||re===t||re===n||m||re===i||re===d||re===c||y||re===h||v||g||p||typeof re=="object"&&re!==null&&(re.$$typeof===u||re.$$typeof===l||re.$$typeof===o||re.$$typeof===a||re.$$typeof===f||re.$$typeof===x||re.getModuleId!==void 0))}function E(re){if(typeof re=="object"&&re!==null){var ue=re.$$typeof;switch(ue){case e:var ce=re.type;switch(ce){case t:case n:case i:case d:case c:return ce;default:var he=ce&&ce.$$typeof;switch(he){case s:case a:case f:case u:case l:case o:return he;default:return ue}}case r:return ue}}}var S=a,w=o,_=e,A=f,R=t,C=u,O=l,j=r,k=n,I=i,B=d,V=c,W=!1,L=!1;function $(re){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(re){return L||(L=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(re){return E(re)===a}function q(re){return E(re)===o}function K(re){return typeof re=="object"&&re!==null&&re.$$typeof===e}function G(re){return E(re)===f}function T(re){return E(re)===t}function D(re){return E(re)===u}function H(re){return E(re)===l}function U(re){return E(re)===r}function Y(re){return E(re)===n}function ee(re){return E(re)===i}function ie(re){return E(re)===d}function oe(re){return E(re)===c}Ie.ContextConsumer=S,Ie.ContextProvider=w,Ie.Element=_,Ie.ForwardRef=A,Ie.Fragment=R,Ie.Lazy=C,Ie.Memo=O,Ie.Portal=j,Ie.Profiler=k,Ie.StrictMode=I,Ie.Suspense=B,Ie.SuspenseList=V,Ie.isAsyncMode=$,Ie.isConcurrentMode=N,Ie.isContextConsumer=F,Ie.isContextProvider=q,Ie.isElement=K,Ie.isForwardRef=G,Ie.isFragment=T,Ie.isLazy=D,Ie.isMemo=H,Ie.isPortal=U,Ie.isProfiler=Y,Ie.isStrictMode=ee,Ie.isSuspense=ie,Ie.isSuspenseList=oe,Ie.isValidElementType=b,Ie.typeOf=E})()),Ie}var If;function Ry(){return If||(If=1,process.env.NODE_ENV==="production"?bi.exports=Cy():bi.exports=Oy()),bi.exports}var xs=Ry();function Gl(e,r,t){var i=M.useRef({});return(!("value"in i.current)||t(i.current.condition,r))&&(i.current.value=e(),i.current.condition=r),i.current.value}var jy=Number(z.version.split(".")[0]),Yl=function(r,t){typeof r=="function"?r(t):we(r)==="object"&&r&&"current"in r&&(r.current=t)},Zn=function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];var n=t.filter(Boolean);return n.length<=1?n[0]:function(o){t.forEach(function(a){Yl(a,o)})}},Xl=function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];return Gl(function(){return Zn.apply(void 0,t)},t,function(n,o){return n.length!==o.length||n.every(function(a,s){return a!==o[s]})})},so=function(r){var t,i;if(!r)return!1;if(Mh(r)&&jy>=19)return!0;var n=xs.isMemo(r)?r.type.type:r.type;return!(typeof n=="function"&&!((t=n.prototype)!==null&&t!==void 0&&t.render)&&n.$$typeof!==xs.ForwardRef||typeof r=="function"&&!((i=r.prototype)!==null&&i!==void 0&&i.render)&&r.$$typeof!==xs.ForwardRef)};function Mh(e){return z.isValidElement(e)&&!Ih(e)}var Zl=function(r){if(r&&Mh(r)){var t=r;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},sl=M.createContext(null);function Ay(e){var r=e.children,t=e.onBatchResize,i=M.useRef(0),n=M.useRef([]),o=M.useContext(sl),a=M.useCallback(function(s,f,d){i.current+=1;var c=i.current;n.current.push({size:s,element:f,data:d}),Promise.resolve().then(function(){c===i.current&&(t?.(n.current),n.current=[])}),o?.(s,f,d)},[t,o]);return M.createElement(sl.Provider,{value:a},r)}var Lh=(function(){if(typeof Map<"u")return Map;function e(r,t){var i=-1;return r.some(function(n,o){return n[0]===t?(i=o,!0):!1}),i}return(function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(t){var i=e(this.__entries__,t),n=this.__entries__[i];return n&&n[1]},r.prototype.set=function(t,i){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=i:this.__entries__.push([t,i])},r.prototype.delete=function(t){var i=this.__entries__,n=e(i,t);~n&&i.splice(n,1)},r.prototype.has=function(t){return!!~e(this.__entries__,t)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(t,i){i===void 0&&(i=null);for(var n=0,o=this.__entries__;n<o.length;n++){var a=o[n];t.call(i,a[1],a[0])}},r})()})(),ll=typeof window<"u"&&typeof document<"u"&&window.document===document,zi=(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")()})(),Ty=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(zi):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),ky=2;function Py(e,r){var t=!1,i=!1,n=0;function o(){t&&(t=!1,e()),i&&s()}function a(){Ty(o)}function s(){var f=Date.now();if(t){if(f-n<ky)return;i=!0}else t=!0,i=!1,setTimeout(a,r);n=f}return s}var Ny=20,Iy=["top","right","bottom","left","width","height","size","weight"],My=typeof MutationObserver<"u",Ly=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Py(this.refresh.bind(this),Ny)}return e.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},e.prototype.removeObserver=function(r){var t=this.observers_,i=t.indexOf(r);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var r=this.updateObservers_();r&&this.refresh()},e.prototype.updateObservers_=function(){var r=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return r.forEach(function(t){return t.broadcastActive()}),r.length>0},e.prototype.connect_=function(){!ll||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),My?(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(){!ll||!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(r){var t=r.propertyName,i=t===void 0?"":t,n=Iy.some(function(o){return!!~i.indexOf(o)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Fh=(function(e,r){for(var t=0,i=Object.keys(r);t<i.length;t++){var n=i[t];Object.defineProperty(e,n,{value:r[n],enumerable:!1,writable:!1,configurable:!0})}return e}),Zr=(function(e){var r=e&&e.ownerDocument&&e.ownerDocument.defaultView;return r||zi}),$h=lo(0,0,0,0);function Hi(e){return parseFloat(e)||0}function Mf(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return r.reduce(function(i,n){var o=e["border-"+n+"-width"];return i+Hi(o)},0)}function Fy(e){for(var r=["top","right","bottom","left"],t={},i=0,n=r;i<n.length;i++){var o=n[i],a=e["padding-"+o];t[o]=Hi(a)}return t}function $y(e){var r=e.getBBox();return lo(0,0,r.width,r.height)}function Dy(e){var r=e.clientWidth,t=e.clientHeight;if(!r&&!t)return $h;var i=Zr(e).getComputedStyle(e),n=Fy(i),o=n.left+n.right,a=n.top+n.bottom,s=Hi(i.width),f=Hi(i.height);if(i.boxSizing==="border-box"&&(Math.round(s+o)!==r&&(s-=Mf(i,"left","right")+o),Math.round(f+a)!==t&&(f-=Mf(i,"top","bottom")+a)),!qy(e)){var d=Math.round(s+o)-r,c=Math.round(f+a)-t;Math.abs(d)!==1&&(s-=d),Math.abs(c)!==1&&(f-=c)}return lo(n.left,n.top,s,f)}var By=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Zr(e).SVGGraphicsElement}:function(e){return e instanceof Zr(e).SVGElement&&typeof e.getBBox=="function"}})();function qy(e){return e===Zr(e).document.documentElement}function Vy(e){return ll?By(e)?$y(e):Dy(e):$h}function zy(e){var r=e.x,t=e.y,i=e.width,n=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Fh(a,{x:r,y:t,width:i,height:n,top:t,right:r+i,bottom:n+t,left:r}),a}function lo(e,r,t,i){return{x:e,y:r,width:t,height:i}}var Hy=(function(){function e(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=lo(0,0,0,0),this.target=r}return e.prototype.isActive=function(){var r=Vy(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},e})(),Uy=(function(){function e(r,t){var i=zy(t);Fh(this,{target:r,contentRect:i})}return e})(),Wy=(function(){function e(r,t,i){if(this.activeObservations_=[],this.observations_=new Lh,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof Zr(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)||(t.set(r,new Hy(r)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof Zr(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)&&(t.delete(r),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&r.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,t=this.activeObservations_.map(function(i){return new Uy(i.target,i.broadcastRect())});this.callback_.call(r,t,r),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Dh=typeof WeakMap<"u"?new WeakMap:new Lh,Bh=(function(){function e(r){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 t=Ly.getInstance(),i=new Wy(r,t,this);Dh.set(this,i)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Bh.prototype[e]=function(){var r;return(r=Dh.get(this))[e].apply(r,arguments)}});var Ky=(function(){return typeof zi.ResizeObserver<"u"?zi.ResizeObserver:Bh})(),tr=new Map;function qh(e){e.forEach(function(r){var t,i=r.target;(t=tr.get(i))===null||t===void 0||t.forEach(function(n){return n(i)})})}var Vh=new Ky(qh);process.env.NODE_ENV;process.env.NODE_ENV;function Gy(e,r){tr.has(e)||(tr.set(e,new Set),Vh.observe(e)),tr.get(e).add(r)}function Yy(e,r){tr.has(e)&&(tr.get(e).delete(r),tr.get(e).size||(Vh.unobserve(e),tr.delete(e)))}function lt(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Lf(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,xh(i.key),i)}}function ut(e,r,t){return r&&Lf(e.prototype,r),t&&Lf(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vn(e,r){return Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},Vn(e,r)}function mr(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Vn(e,r)}function zn(e){return zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zn(e)}function Ql(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ql=function(){return!!e})()}function Re(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xy(e,r){if(r&&(we(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Re(e)}function gr(e){var r=Ql();return function(){var t,i=zn(e);if(r){var n=zn(this).constructor;t=Reflect.construct(i,arguments,n)}else t=i.apply(this,arguments);return Xy(this,t)}}var Zy=(function(e){mr(t,e);var r=gr(t);function t(){return lt(this,t),r.apply(this,arguments)}return ut(t,[{key:"render",value:function(){return this.props.children}}]),t})(M.Component);function Qy(e,r){var t=e.children,i=e.disabled,n=M.useRef(null),o=M.useRef(null),a=M.useContext(sl),s=typeof t=="function",f=s?t(n):t,d=M.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=!s&&M.isValidElement(f)&&so(f),l=c?Zl(f):null,u=Xl(l,n),h=function(){var y;return Ni(n.current)||(n.current&&we(n.current)==="object"?Ni((y=n.current)===null||y===void 0?void 0:y.nativeElement):null)||Ni(o.current)};M.useImperativeHandle(r,function(){return h()});var v=M.useRef(e);v.current=e;var g=M.useCallback(function(p){var y=v.current,m=y.onResize,x=y.data,b=p.getBoundingClientRect(),E=b.width,S=b.height,w=p.offsetWidth,_=p.offsetHeight,A=Math.floor(E),R=Math.floor(S);if(d.current.width!==A||d.current.height!==R||d.current.offsetWidth!==w||d.current.offsetHeight!==_){var C={width:A,height:R,offsetWidth:w,offsetHeight:_};d.current=C;var O=w===Math.round(E)?E:w,j=_===Math.round(S)?S:_,k=te(te({},C),{},{offsetWidth:O,offsetHeight:j});a?.(k,p,x),m&&Promise.resolve().then(function(){m(k,p)})}},[]);return M.useEffect(function(){var p=h();return p&&!i&&Gy(p,g),function(){return Yy(p,g)}},[n.current,i]),M.createElement(Zy,{ref:o},c?M.cloneElement(f,{ref:u}):f)}var zh=M.forwardRef(Qy);process.env.NODE_ENV!=="production"&&(zh.displayName="SingleObserver");var Jy="rc-observer-key";function e0(e,r){var t=e.children,i=typeof t=="function"?[t]:Xr(t);return process.env.NODE_ENV!=="production"&&(i.length>1?Yr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):i.length===0&&Yr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),i.map(function(n,o){var a=n?.key||"".concat(Jy,"-").concat(o);return M.createElement(zh,Ve({},e,{key:a,ref:o===0?r:void 0}),n)})}var ln=M.forwardRef(e0);process.env.NODE_ENV!=="production"&&(ln.displayName="ResizeObserver");ln.Collection=Ay;var Ff=process.env.NODE_ENV!=="test"&>()?M.useLayoutEffect:M.useEffect,Ge=function(r,t){var i=M.useRef(!0);Ff(function(){return r(i.current)},t),Ff(function(){return i.current=!1,function(){i.current=!0}},[])},$f=function(r,t){Ge(function(i){if(!i)return r()},t)};function mt(e){var r=M.useRef();r.current=e;var t=M.useCallback(function(){for(var i,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(i=r.current)===null||i===void 0?void 0:i.call.apply(i,[r].concat(o))},[]);return t}function Hn(e){var r=M.useRef(!1),t=M.useState(e),i=fe(t,2),n=i[0],o=i[1];M.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]);function a(s,f){f&&r.current||o(s)}return[n,a]}function Es(e){return e!==void 0}function Ar(e,r){var t=r||{},i=t.defaultValue,n=t.value,o=t.onChange,a=t.postState,s=Hn(function(){return Es(n)?n:Es(i)?typeof i=="function"?i():i:typeof e=="function"?e():e}),f=fe(s,2),d=f[0],c=f[1],l=n!==void 0?n:d,u=a?a(l):l,h=mt(o),v=Hn([l]),g=fe(v,2),p=g[0],y=g[1];$f(function(){var x=p[0];d!==x&&h(d,x)},[p]),$f(function(){Es(n)||c(n)},[n]);var m=mt(function(x,b){c(x,b),y([l],b)});return[u,m]}function Hh(e,r){var t=Object.assign({},e);return Array.isArray(r)&&r.forEach(function(i){delete t[i]}),t}var t0=function(r){if(gt()&&window.document.documentElement){var t=Array.isArray(r)?r:[r],i=window.document.documentElement;return t.some(function(n){return n in i.style})}return!1};function Df(e,r){return t0(e)}function Un(e){for(var r=0,t,i=0,n=e.length;n>=4;++i,n-=4)t=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(n){case 3:r^=(e.charCodeAt(i+2)&255)<<16;case 2:r^=(e.charCodeAt(i+1)&255)<<8;case 1:r^=e.charCodeAt(i)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function ul(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function n(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=i.has(o);if(Ke(!f,"Warning: There may be circular references"),f)return!1;if(o===a)return!0;if(t&&s>1)return!1;i.add(o);var d=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var c=0;c<o.length;c++)if(!n(o[c],a[c],d))return!1;return!0}if(o&&a&&we(o)==="object"&&we(a)==="object"){var l=Object.keys(o);return l.length!==Object.keys(a).length?!1:l.every(function(u){return n(o[u],a[u],d)})}return!1}return n(e,r)}var r0="%";function cl(e){return e.join(r0)}var n0=(function(){function e(r){lt(this,e),Z(this,"instanceId",void 0),Z(this,"cache",new Map),Z(this,"extracted",new Set),this.instanceId=r}return ut(e,[{key:"get",value:function(t){return this.opGet(cl(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,i){return this.opUpdate(cl(t),i)}},{key:"opUpdate",value:function(t,i){var n=this.cache.get(t),o=i(n);o===null?this.cache.delete(t):this.cache.set(t,o)}}]),e})(),Qr="data-token-hash",Dt="data-css-hash",i0="data-cache-path",hr="__cssinjs_instance__";function o0(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var r=document.body.querySelectorAll("style[".concat(Dt,"]"))||[],t=document.head.firstChild;Array.from(r).forEach(function(n){n[hr]=n[hr]||e,n[hr]===e&&document.head.insertBefore(n,t)});var i={};Array.from(document.querySelectorAll("style[".concat(Dt,"]"))).forEach(function(n){var o=n.getAttribute(Dt);if(i[o]){if(n[hr]===e){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}}else i[o]=!0})}return new n0(e)}var Qn=M.createContext({hashPriority:"low",cache:o0(),defaultCache:!0});function a0(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}var Jl=(function(){function e(){lt(this,e),Z(this,"cache",void 0),Z(this,"keys",void 0),Z(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ut(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var i,n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return t.forEach(function(s){if(!a)a=void 0;else{var f;a=(f=a)===null||f===void 0||(f=f.map)===null||f===void 0?void 0:f.get(s)}}),(i=a)!==null&&i!==void 0&&i.value&&o&&(a.value[1]=this.cacheCallTimes++),(n=a)===null||n===void 0?void 0:n.value}},{key:"get",value:function(t){var i;return(i=this.internalGet(t,!0))===null||i===void 0?void 0:i[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,i){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(d,c){var l=fe(d,2),u=l[1];return n.internalGet(c)[1]<u?[c,n.internalGet(c)[1]]:d},[this.keys[0],this.cacheCallTimes]),a=fe(o,1),s=a[0];this.delete(s)}this.keys.push(t)}var f=this.cache;t.forEach(function(d,c){if(c===t.length-1)f.set(d,{value:[i,n.cacheCallTimes++]});else{var l=f.get(d);l?l.map||(l.map=new Map):f.set(d,{map:new Map}),f=f.get(d).map}})}},{key:"deleteByPath",value:function(t,i){var n=t.get(i[0]);if(i.length===1){var o;return n.map?t.set(i[0],{map:n.map}):t.delete(i[0]),(o=n.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(n.map,i.slice(1));return(!n.map||n.map.size===0)&&!n.value&&t.delete(i[0]),a}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(i){return!a0(i,t)}),this.deleteByPath(this.cache,t)}}]),e})();Z(Jl,"MAX_CACHE_SIZE",20);Z(Jl,"MAX_CACHE_OFFSET",5);var Bf=0,Uh=(function(){function e(r){lt(this,e),Z(this,"derivatives",void 0),Z(this,"id",void 0),this.derivatives=Array.isArray(r)?r:[r],this.id=Bf,r.length===0&&Yr(r.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Bf+=1}return ut(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(i,n){return n(t,i)},void 0)}}]),e})(),ws=new Jl;function fl(e){var r=Array.isArray(e)?e:[e];return ws.has(r)||ws.set(r,new Uh(r)),ws.get(r)}var s0=new WeakMap,Ss={};function l0(e,r){for(var t=s0,i=0;i<r.length;i+=1){var n=r[i];t.has(n)||t.set(n,new WeakMap),t=t.get(n)}return t.has(Ss)||t.set(Ss,e()),t.get(Ss)}var qf=new WeakMap;function Ln(e){var r=qf.get(e)||"";return r||(Object.keys(e).forEach(function(t){var i=e[t];r+=t,i instanceof Uh?r+=i.id:i&&we(i)==="object"?r+=Ln(i):r+=i}),r=Un(r),qf.set(e,r)),r}function Vf(e,r){return Un("".concat(r,"_").concat(Ln(e)))}var dl=gt();function $e(e){return typeof e=="number"?"".concat(e,"px"):e}function Ui(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n)return e;var o=te(te({},i),{},Z(Z({},Qr,r),Dt,t)),a=Object.keys(o).map(function(s){var f=o[s];return f?"".concat(s,'="').concat(f,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var Ii=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(r).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()},u0=function(r,t,i){return Object.keys(r).length?".".concat(t).concat(i!=null&&i.scope?".".concat(i.scope):"","{").concat(Object.entries(r).map(function(n){var o=fe(n,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Wh=function(r,t,i){var n={},o={};return Object.entries(r).forEach(function(a){var s,f,d=fe(a,2),c=d[0],l=d[1];if(i!=null&&(s=i.preserve)!==null&&s!==void 0&&s[c])o[c]=l;else if((typeof l=="string"||typeof l=="number")&&!(i!=null&&(f=i.ignore)!==null&&f!==void 0&&f[c])){var u,h=Ii(c,i?.prefix);n[h]=typeof l=="number"&&!(i!=null&&(u=i.unitless)!==null&&u!==void 0&&u[c])?"".concat(l,"px"):String(l),o[c]="var(".concat(h,")")}}),[o,u0(n,t,{scope:i?.scope})]},c0=te({},M),zf=c0.useInsertionEffect,f0=function(r,t,i){M.useMemo(r,i),Ge(function(){return t(!0)},i)},d0=zf?function(e,r,t){return zf(function(){return e(),r()},t)}:f0,h0=te({},M),p0=h0.useInsertionEffect,v0=function(r){var t=[],i=!1;function n(o){if(i){process.env.NODE_ENV!=="production"&&Yr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}t.push(o)}return M.useEffect(function(){return i=!1,function(){i=!0,t.length&&t.forEach(function(o){return o()})}},r),n},m0=function(){return function(r){r()}},g0=typeof p0<"u"?v0:m0;function y0(){return!1}var hl=!1;function b0(){return hl}const x0=process.env.NODE_ENV==="production"?y0:b0;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(xi&&typeof xi.webpackHotUpdate=="function"){var E0=xi.webpackHotUpdate;xi.webpackHotUpdate=function(){return hl=!0,setTimeout(function(){hl=!1},0),E0.apply(void 0,arguments)}}}function eu(e,r,t,i,n){var o=M.useContext(Qn),a=o.cache,s=[e].concat(ge(r)),f=cl(s),d=g0([f]),c=x0(),l=function(g){a.opUpdate(f,function(p){var y=p||[void 0,void 0],m=fe(y,2),x=m[0],b=x===void 0?0:x,E=m[1],S=E;process.env.NODE_ENV!=="production"&&E&&c&&(i?.(S,c),S=null);var w=S||t(),_=[b,w];return g?g(_):_})};M.useMemo(function(){l()},[f]);var u=a.opGet(f);process.env.NODE_ENV!=="production"&&!u&&(l(),u=a.opGet(f));var h=u[1];return d0(function(){n?.(h)},function(v){return l(function(g){var p=fe(g,2),y=p[0],m=p[1];return v&&y===0&&n?.(h),[y+1,m]}),function(){a.opUpdate(f,function(g){var p=g||[],y=fe(p,2),m=y[0],x=m===void 0?0:m,b=y[1],E=x-1;return E===0?(d(function(){(v||!a.opGet(f))&&i?.(b,!1)}),null):[x-1,b]})}},[f]),h}var w0={},S0=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",_r=new Map;function _0(e){_r.set(e,(_r.get(e)||0)+1)}function C0(e,r){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(Qr,'="').concat(e,'"]'));t.forEach(function(i){if(i[hr]===r){var n;(n=i.parentNode)===null||n===void 0||n.removeChild(i)}})}}var O0=0;function R0(e,r){_r.set(e,(_r.get(e)||0)-1);var t=new Set;_r.forEach(function(i,n){i<=0&&t.add(n)}),_r.size-t.size>O0&&t.forEach(function(i){C0(i,r),_r.delete(i)})}var j0=function(r,t,i,n){var o=i.getDerivativeToken(r),a=te(te({},o),t);return n&&(a=n(a)),a},Kh="token";function A0(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=z.useContext(Qn),n=i.cache.instanceId,o=i.container,a=t.salt,s=a===void 0?"":a,f=t.override,d=f===void 0?w0:f,c=t.formatToken,l=t.getComputedToken,u=t.cssVar,h=l0(function(){return Object.assign.apply(Object,[{}].concat(ge(r)))},r),v=Ln(h),g=Ln(d),p=u?Ln(u):"",y=eu(Kh,[s,e.id,v,g,p],function(){var m,x=l?l(h,d,e):j0(h,d,e,c),b=te({},x),E="";if(u){var S=Wh(x,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve}),w=fe(S,2);x=w[0],E=w[1]}var _=Vf(x,s);x._tokenKey=_,b._tokenKey=Vf(b,s);var A=(m=u?.key)!==null&&m!==void 0?m:_;x._themeKey=A,_0(A);var R="".concat(S0,"-").concat(Un(_));return x._hashId=R,[x,R,b,E,u?.key||""]},function(m){R0(m[0]._themeKey,n)},function(m){var x=fe(m,4),b=x[0],E=x[3];if(u&&E){var S=rr(E,Un("css-variables-".concat(b._themeKey)),{mark:Dt,prepend:"queue",attachTo:o,priority:-999});S[hr]=n,S.setAttribute(Qr,b._themeKey)}});return y}var T0=function(r,t,i){var n=fe(r,5),o=n[2],a=n[3],s=n[4],f=i||{},d=f.plain;if(!a)return null;var c=o._tokenKey,l=-999,u={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)},h=Ui(a,s,c,u,d);return[l,c,h]},k0={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},Gh="comm",Yh="rule",Xh="decl",P0="@import",N0="@namespace",I0="@keyframes",M0="@layer",Zh=Math.abs,tu=String.fromCharCode;function Qh(e){return e.trim()}function Mi(e,r,t){return e.replace(r,t)}function L0(e,r,t){return e.indexOf(r,t)}function Wr(e,r){return e.charCodeAt(r)|0}function Jr(e,r,t){return e.slice(r,t)}function Ut(e){return e.length}function F0(e){return e.length}function Ei(e,r){return r.push(e),e}var uo=1,en=1,Jh=0,At=0,tt=0,un="";function ru(e,r,t,i,n,o,a,s){return{value:e,root:r,parent:t,type:i,props:n,children:o,line:uo,column:en,length:a,return:"",siblings:s}}function $0(){return tt}function D0(){return tt=At>0?Wr(un,--At):0,en--,tt===10&&(en=1,uo--),tt}function Bt(){return tt=At<Jh?Wr(un,At++):0,en++,tt===10&&(en=1,uo++),tt}function pr(){return Wr(un,At)}function Li(){return At}function co(e,r){return Jr(un,e,r)}function Wn(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 B0(e){return uo=en=1,Jh=Ut(un=e),At=0,[]}function q0(e){return un="",e}function _s(e){return Qh(co(At-1,pl(e===91?e+2:e===40?e+1:e)))}function V0(e){for(;(tt=pr())&&tt<33;)Bt();return Wn(e)>2||Wn(tt)>3?"":" "}function z0(e,r){for(;--r&&Bt()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return co(e,Li()+(r<6&&pr()==32&&Bt()==32))}function pl(e){for(;Bt();)switch(tt){case e:return At;case 34:case 39:e!==34&&e!==39&&pl(tt);break;case 40:e===41&&pl(e);break;case 92:Bt();break}return At}function H0(e,r){for(;Bt()&&e+tt!==57;)if(e+tt===84&&pr()===47)break;return"/*"+co(r,At-1)+"*"+tu(e===47?e:Bt())}function U0(e){for(;!Wn(pr());)Bt();return co(e,At)}function W0(e){return q0(Fi("",null,null,null,[""],e=B0(e),0,[0],e))}function Fi(e,r,t,i,n,o,a,s,f){for(var d=0,c=0,l=a,u=0,h=0,v=0,g=1,p=1,y=1,m=0,x="",b=n,E=o,S=i,w=x;p;)switch(v=m,m=Bt()){case 40:if(v!=108&&Wr(w,l-1)==58){L0(w+=Mi(_s(m),"&","&\f"),"&\f",Zh(d?s[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=_s(m);break;case 9:case 10:case 13:case 32:w+=V0(v);break;case 92:w+=z0(Li()-1,7);continue;case 47:switch(pr()){case 42:case 47:Ei(K0(H0(Bt(),Li()),r,t,f),f),(Wn(v||1)==5||Wn(pr()||1)==5)&&Ut(w)&&Jr(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*g:s[d++]=Ut(w)*y;case 125*g:case 59:case 0:switch(m){case 0:case 125:p=0;case 59+c:y==-1&&(w=Mi(w,/\f/g,"")),h>0&&(Ut(w)-l||g===0&&v===47)&&Ei(h>32?Uf(w+";",i,t,l-1,f):Uf(Mi(w," ","")+";",i,t,l-2,f),f);break;case 59:w+=";";default:if(Ei(S=Hf(w,r,t,d,c,n,s,x,b=[],E=[],l,o),o),m===123)if(c===0)Fi(w,r,S,S,b,o,l,s,E);else{switch(u){case 99:if(Wr(w,3)===110)break;case 108:if(Wr(w,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Fi(e,S,S,i&&Ei(Hf(e,S,S,0,0,n,s,x,n,b=[],l,E),E),n,E,l,s,i?b:E):Fi(w,S,S,S,[""],E,0,s,E)}}d=c=h=0,g=y=1,x=w="",l=a;break;case 58:l=1+Ut(w),h=v;default:if(g<1){if(m==123)--g;else if(m==125&&g++==0&&D0()==125)continue}switch(w+=tu(m),m*g){case 38:y=c>0?1:(w+="\f",-1);break;case 44:s[d++]=(Ut(w)-1)*y,y=1;break;case 64:pr()===45&&(w+=_s(Bt())),u=pr(),c=l=Ut(x=w+=U0(Li())),m++;break;case 45:v===45&&Ut(w)==2&&(g=0)}}return o}function Hf(e,r,t,i,n,o,a,s,f,d,c,l){for(var u=n-1,h=n===0?o:[""],v=F0(h),g=0,p=0,y=0;g<i;++g)for(var m=0,x=Jr(e,u+1,u=Zh(p=a[g])),b=e;m<v;++m)(b=Qh(p>0?h[m]+" "+x:Mi(x,/&\f/g,h[m])))&&(f[y++]=b);return ru(e,r,t,n===0?Yh:s,f,d,c,l)}function K0(e,r,t,i){return ru(e,r,t,Gh,tu($0()),Jr(e,2,-2),0,i)}function Uf(e,r,t,i,n){return ru(e,r,t,Xh,Jr(e,0,i),Jr(e,i+1,-1),i,n)}function vl(e,r){for(var t="",i=0;i<e.length;i++)t+=r(e[i],i,e,r)||"";return t}function G0(e,r,t,i){switch(e.type){case M0:if(e.children.length)break;case P0:case N0:case Xh:return e.return=e.return||e.value;case Gh:return"";case I0:return e.return=e.value+"{"+vl(e.children,i)+"}";case Yh:if(!Ut(e.value=e.props.join(",")))return""}return Ut(t=vl(e.children,i))?e.return=e.value+"{"+t+"}":""}function ep(e,r){var t=r.path,i=r.parentSelectors;Ke(!1,"[Ant Design CSS-in-JS] ".concat(t?"Error in ".concat(t,": "):"").concat(e).concat(i.length?" Selector: ".concat(i.join(" | ")):""))}var Y0=function(r,t,i){if(r==="content"){var n=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof t!="string"||o.indexOf(t)===-1&&!n.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'"))&&ep("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),i)}},X0=function(r,t,i){r==="animation"&&i.hashId&&t!=="none"&&ep("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),i)},Wf="data-ant-cssinjs-cache-path",tp="_FILE_STYLE__",Rr,rp=!0;function Z0(){if(!Rr&&(Rr={},gt())){var e=document.createElement("div");e.className=Wf,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var r=getComputedStyle(e).content||"";r=r.replace(/^"/,"").replace(/"$/,""),r.split(";").forEach(function(n){var o=n.split(":"),a=fe(o,2),s=a[0],f=a[1];Rr[s]=f});var t=document.querySelector("style[".concat(Wf,"]"));if(t){var i;rp=!1,(i=t.parentNode)===null||i===void 0||i.removeChild(t)}document.body.removeChild(e)}}function Q0(e){return Z0(),!!Rr[e]}function J0(e){var r=Rr[e],t=null;if(r&>())if(rp)t=tp;else{var i=document.querySelector("style[".concat(Dt,'="').concat(Rr[e],'"]'));i?t=i.innerHTML:delete Rr[e]}return[t,r]}var np="_skip_check_",ip="_multi_value_";function $i(e){var r=vl(W0(e),G0);return r.replace(/\{%%%\:[^;];}/g,";")}function eb(e){return we(e)==="object"&&e&&(np in e||ip in e)}function Kf(e,r,t){if(!r)return e;var i=".".concat(r),n=t==="low"?":where(".concat(i,")"):i,o=e.split(",").map(function(a){var s,f=a.trim().split(/\s+/),d=f[0]||"",c=((s=d.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return d="".concat(c).concat(n).concat(d.slice(c.length)),[d].concat(ge(f.slice(1))).join(" ")});return o.join(",")}var tb=function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},n=i.root,o=i.injectHash,a=i.parentSelectors,s=t.hashId,f=t.layer,d=t.path,c=t.hashPriority,l=t.transformers,u=l===void 0?[]:l,h=t.linters,v=h===void 0?[]:h,g="",p={};function y(b){var E=b.getName(s);if(!p[E]){var S=e(b.style,t,{root:!1,parentSelectors:a}),w=fe(S,1),_=w[0];p[E]="@keyframes ".concat(b.getName(s)).concat(_)}}function m(b){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(S){Array.isArray(S)?m(S,E):S&&E.push(S)}),E}var x=m(Array.isArray(r)?r:[r]);return x.forEach(function(b){var E=typeof b=="string"&&!n?{}:b;if(typeof E=="string")g+="".concat(E,`
|
|
133
|
+
`);else if(E._keyframe)y(E);else{var S=u.reduce(function(w,_){var A;return(_==null||(A=_.visit)===null||A===void 0?void 0:A.call(_,w))||w},E);Object.keys(S).forEach(function(w){var _=S[w];if(we(_)==="object"&&_&&(w!=="animationName"||!_._keyframe)&&!eb(_)){var A=!1,R=w.trim(),C=!1;(n||o)&&s?R.startsWith("@")?A=!0:R==="&"?R=Kf("",s,c):R=Kf(w,s,c):n&&!s&&(R==="&"||R==="")&&(R="",C=!0);var O=e(_,t,{root:C,injectHash:A,parentSelectors:[].concat(ge(a),[R])}),j=fe(O,2),k=j[0],I=j[1];p=te(te({},p),I),g+="".concat(R).concat(k)}else{let W=function(L,$){process.env.NODE_ENV!=="production"&&(we(_)!=="object"||!(_!=null&&_[np]))&&[Y0,X0].concat(ge(v)).forEach(function(q){return q(L,$,{path:d,hashId:s,parentSelectors:a})});var N=L.replace(/[A-Z]/g,function(q){return"-".concat(q.toLowerCase())}),F=$;!k0[L]&&typeof F=="number"&&F!==0&&(F="".concat(F,"px")),L==="animationName"&&$!==null&&$!==void 0&&$._keyframe&&(y($),F=$.getName(s)),g+="".concat(N,":").concat(F,";")};var B,V=(B=_?.value)!==null&&B!==void 0?B:_;we(_)==="object"&&_!==null&&_!==void 0&&_[ip]&&Array.isArray(V)?V.forEach(function(L){W(w,L)}):W(w,V)}})}}),n?f&&(g&&(g="@layer ".concat(f.name," {").concat(g,"}")),f.dependencies&&(p["@layer ".concat(f.name)]=f.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(f.name,";")}).join(`
|
|
134
|
+
`))):g="{".concat(g,"}"),[g,p]};function op(e,r){return Un("".concat(e.join("%")).concat(r))}function rb(){return null}var ap="style";function ml(e,r){var t=e.token,i=e.path,n=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,f=e.order,d=f===void 0?0:f,c=M.useContext(Qn),l=c.autoClear,u=c.mock,h=c.defaultCache,v=c.hashPriority,g=c.container,p=c.ssrInline,y=c.transformers,m=c.linters,x=c.cache,b=c.layer,E=t._tokenKey,S=[E];b&&S.push("layer"),S.push.apply(S,ge(i));var w=dl;process.env.NODE_ENV!=="production"&&u!==void 0&&(w=u==="client");var _=eu(ap,S,function(){var j=S.join("|");if(Q0(j)){var k=J0(j),I=fe(k,2),B=I[0],V=I[1];if(B)return[B,E,V,{},s,d]}var W=r(),L=tb(W,{hashId:n,hashPriority:v,layer:b?o:void 0,path:i.join("-"),transformers:y,linters:m}),$=fe(L,2),N=$[0],F=$[1],q=$i(N),K=op(S,q);return[q,E,K,F,s,d]},function(j,k){var I=fe(j,3),B=I[2];(k||l)&&dl&&Bn(B,{mark:Dt,attachTo:g})},function(j){var k=fe(j,4),I=k[0];k[1];var B=k[2],V=k[3];if(w&&I!==tp){var W={mark:Dt,prepend:b?!1:"queue",attachTo:g,priority:d},L=typeof a=="function"?a():a;L&&(W.csp={nonce:L});var $=[],N=[];Object.keys(V).forEach(function(q){q.startsWith("@layer")?$.push(q):N.push(q)}),$.forEach(function(q){rr($i(V[q]),"_layer-".concat(q),te(te({},W),{},{prepend:!0}))});var F=rr(I,B,W);F[hr]=x.instanceId,F.setAttribute(Qr,E),process.env.NODE_ENV!=="production"&&F.setAttribute(i0,S.join("|")),N.forEach(function(q){rr($i(V[q]),"_effect-".concat(q),W)})}}),A=fe(_,3),R=A[0],C=A[1],O=A[2];return function(j){var k;return!p||w||!h?k=M.createElement(rb,null):k=M.createElement("style",Ve({},Z(Z({},Qr,C),Dt,O),{dangerouslySetInnerHTML:{__html:R}})),M.createElement(M.Fragment,null,k,j)}}var nb=function(r,t,i){var n=fe(r,6),o=n[0],a=n[1],s=n[2],f=n[3],d=n[4],c=n[5],l=i||{},u=l.plain;if(d)return null;var h=o,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return h=Ui(o,a,s,v,u),f&&Object.keys(f).forEach(function(g){if(!t[g]){t[g]=!0;var p=$i(f[g]),y=Ui(p,a,"_effect-".concat(g),v,u);g.startsWith("@layer")?h=y+h:h+=y}}),[c,s,h]},sp="cssVar",ib=function(r,t){var i=r.key,n=r.prefix,o=r.unitless,a=r.ignore,s=r.token,f=r.scope,d=f===void 0?"":f,c=z.useContext(Qn),l=c.cache.instanceId,u=c.container,h=s._tokenKey,v=[].concat(ge(r.path),[i,d,h]),g=eu(sp,v,function(){var p=t(),y=Wh(p,i,{prefix:n,unitless:o,ignore:a,scope:d}),m=fe(y,2),x=m[0],b=m[1],E=op(v,b);return[x,b,E,i]},function(p){var y=fe(p,3),m=y[2];dl&&Bn(m,{mark:Dt,attachTo:u})},function(p){var y=fe(p,3),m=y[1],x=y[2];if(m){var b=rr(m,x,{mark:Dt,prepend:"queue",attachTo:u,priority:-999});b[hr]=l,b.setAttribute(Qr,i)}});return g},ob=function(r,t,i){var n=fe(r,4),o=n[1],a=n[2],s=n[3],f=i||{},d=f.plain;if(!o)return null;var c=-999,l={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},u=Ui(o,s,a,l,d);return[c,a,u]};Z(Z(Z({},ap,nb),Kh,T0),sp,ob);var kt=(function(){function e(r,t){lt(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=r,this.style=t}return ut(e,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e})();function Fr(e){return e.notSplit=!0,e}Fr(["borderTop","borderBottom"]),Fr(["borderTop"]),Fr(["borderBottom"]),Fr(["borderLeft","borderRight"]),Fr(["borderLeft"]),Fr(["borderRight"]);function ab(e){return yh(e)||gh(e)||Hl(e)||bh()}function Wt(e,r){for(var t=e,i=0;i<r.length;i+=1){if(t==null)return;t=t[r[i]]}return t}function lp(e,r,t,i){if(!r.length)return t;var n=ab(r),o=n[0],a=n.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=ge(e):s=te({},e),i&&t===void 0&&a.length===1?delete s[o][a[0]]:s[o]=lp(s[o],a,t,i),s}function Ft(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&i&&t===void 0&&!Wt(e,r.slice(0,-1))?e:lp(e,r,t,i)}function sb(e){return we(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Gf(e){return Array.isArray(e)?[]:{}}var lb=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function zr(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=Gf(r[0]);return r.forEach(function(n){function o(a,s){var f=new Set(s),d=Wt(n,a),c=Array.isArray(d);if(c||sb(d)){if(!f.has(d)){f.add(d);var l=Wt(i,a);c?i=Ft(i,a,[]):(!l||we(l)!=="object")&&(i=Ft(i,a,Gf(d))),lb(d).forEach(function(u){o([].concat(ge(a),[u]),f)})}}else i=Ft(i,a,d)}o([])}),i}function up(){}let Jt=null;function ub(){Jt=null,jh()}let cp=up;process.env.NODE_ENV!=="production"&&(cp=(e,r,t)=>{Ke(e,`[antd: ${r}] ${t}`),process.env.NODE_ENV==="test"&&ub()});const Jn=cp,fp=M.createContext({}),Kt=process.env.NODE_ENV!=="production"?e=>{const{strict:r}=M.useContext(fp),t=(i,n,o)=>{if(!i)if(r===!1&&n==="deprecated"){const a=Jt;Jt||(Jt={}),Jt[e]=Jt[e]||[],Jt[e].includes(o||"")||Jt[e].push(o||""),a||console.warn("[antd] There exists deprecated usage in your code:",Jt)}else process.env.NODE_ENV!=="production"&&Jn(i,e,o)};return t.deprecated=(i,n,o,a)=>{t(i,"deprecated",`\`${n}\` is deprecated. Please use \`${o}\` instead.${a?` ${a}`:""}`)},t}:()=>{const e=()=>{};return e.deprecated=up,e},cb=z.createContext(void 0);var fb={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"},db={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},hb=te(te({},db),{},{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 dp={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Yf={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"]},hb),timePickerLocale:Object.assign({},dp)},bt="${label} is not a valid ${type}",tn={locale:"en",Pagination:fb,DatePicker:Yf,TimePicker:dp,Calendar:Yf,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:bt,method:bt,array:bt,object:bt,number:bt,date:bt,boolean:bt,integer:bt,float:bt,regexp:bt,email:bt,url:bt,hex:bt},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({},tn.Modal);let Di=[];const Xf=()=>Di.reduce((e,r)=>Object.assign(Object.assign({},e),r),tn.Modal);function pb(e){if(e){const r=Object.assign({},e);return Di.push(r),Xf(),()=>{Di=Di.filter(t=>t!==r),Xf()}}Object.assign({},tn.Modal)}const nu=z.createContext(void 0),vb=(e,r)=>{const t=M.useContext(nu),i=M.useMemo(()=>{var o;const a=tn[e],s=(o=t?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,r,t]),n=M.useMemo(()=>{const o=t?.locale;return t?.exist&&!o?tn.locale:o},[t]);return[i,n]},hp="internalMark",pp=e=>{const{locale:r={},children:t,_ANT_MARK__:i}=e;if(process.env.NODE_ENV!=="production"){const o=Kt("LocaleProvider");process.env.NODE_ENV!=="production"&&o(i===hp,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}M.useEffect(()=>pb(r?.Modal),[r]);const n=M.useMemo(()=>Object.assign(Object.assign({},r),{exist:!0}),[r]);return M.createElement(nu.Provider,{value:n},t)};process.env.NODE_ENV!=="production"&&(pp.displayName="LocaleProvider");const vp={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"},Kn=Object.assign(Object.assign({},vp),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
135
135
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
136
136
|
'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 mb(e,{generateColorPalettes:r,generateNeutralColorPalettes:t}){const{colorSuccess:i,colorWarning:n,colorError:o,colorInfo:a,colorPrimary:s,colorBgBase:f,colorTextBase:d}=e,c=r(s),l=r(i),u=r(n),h=r(o),v=r(a),g=t(f,d),p=e.colorLink||e.colorInfo,y=r(p),m=new nt(h[1]).mix(new nt(h[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:c[1],colorPrimaryBgHover:c[2],colorPrimaryBorder:c[3],colorPrimaryBorderHover:c[4],colorPrimaryHover:c[5],colorPrimary:c[6],colorPrimaryActive:c[7],colorPrimaryTextHover:c[8],colorPrimaryText:c[9],colorPrimaryTextActive:c[10],colorSuccessBg:l[1],colorSuccessBgHover:l[2],colorSuccessBorder:l[3],colorSuccessBorderHover:l[4],colorSuccessHover:l[4],colorSuccess:l[6],colorSuccessActive:l[7],colorSuccessTextHover:l[8],colorSuccessText:l[9],colorSuccessTextActive:l[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:m,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:u[1],colorWarningBgHover:u[2],colorWarningBorder:u[3],colorWarningBorderHover:u[4],colorWarningHover:u[4],colorWarning:u[6],colorWarningActive:u[7],colorWarningTextHover:u[8],colorWarningText:u[9],colorWarningTextActive:u[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new nt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const gb=e=>{let r=e,t=e,i=e,n=e;return e<6&&e>=5?r=e+1:e<16&&e>=6?r=e+2:e>=16&&(r=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=8),e<6&&e>=2?i=1:e>=6&&(i=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:i,borderRadiusSM:t,borderRadiusLG:r,borderRadiusOuter:n}};function yb(e){const{motionUnit:r,motionBase:t,borderRadius:i,lineWidth:n}=e;return Object.assign({motionDurationFast:`${(t+r).toFixed(1)}s`,motionDurationMid:`${(t+r*2).toFixed(1)}s`,motionDurationSlow:`${(t+r*3).toFixed(1)}s`,lineWidthBold:n+1},gb(i))}const bb=e=>{const{controlHeight:r}=e;return{controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}};function xb(e){return(e+8)/e}function Eb(e){const r=Array.from({length:10}).map((t,i)=>{const n=i-1,o=e*Math.pow(Math.E,n/5),a=i>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return r[1]=e,r.map(t=>({size:t,lineHeight:xb(t)}))}const wb=e=>{const r=Eb(e),t=r.map(c=>c.size),i=r.map(c=>c.lineHeight),n=t[1],o=t[0],a=t[2],s=i[1],f=i[0],d=i[2];return{fontSizeSM:o,fontSize:n,fontSizeLG:a,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:s,lineHeightLG:d,lineHeightSM:f,fontHeight:Math.round(s*n),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(f*o),lineHeightHeading1:i[6],lineHeightHeading2:i[5],lineHeightHeading3:i[4],lineHeightHeading4:i[3],lineHeightHeading5:i[2]}};function Sb(e){const{sizeUnit:r,sizeStep:t}=e;return{sizeXXL:r*(t+8),sizeXL:r*(t+4),sizeLG:r*(t+2),sizeMD:r*(t+1),sizeMS:r*t,size:r*t,sizeSM:r*(t-1),sizeXS:r*(t-2),sizeXXS:r*(t-3)}}const Ot=(e,r)=>new nt(e).setA(r).toRgbString(),Rn=(e,r)=>new nt(e).darken(r).toHexString(),_b=e=>{const r=Dn(e);return{1:r[0],2:r[1],3:r[2],4:r[3],5:r[4],6:r[5],7:r[6],8:r[4],9:r[5],10:r[6]}},Cb=(e,r)=>{const t=e||"#fff",i=r||"#000";return{colorBgBase:t,colorTextBase:i,colorText:Ot(i,.88),colorTextSecondary:Ot(i,.65),colorTextTertiary:Ot(i,.45),colorTextQuaternary:Ot(i,.25),colorFill:Ot(i,.15),colorFillSecondary:Ot(i,.06),colorFillTertiary:Ot(i,.04),colorFillQuaternary:Ot(i,.02),colorBgSolid:Ot(i,1),colorBgSolidHover:Ot(i,.75),colorBgSolidActive:Ot(i,.95),colorBgLayout:Rn(t,4),colorBgContainer:Rn(t,0),colorBgElevated:Rn(t,0),colorBgSpotlight:Ot(i,.85),colorBgBlur:"transparent",colorBorder:Rn(t,15),colorBorderSecondary:Rn(t,6)}};function Ob(e){ys.pink=ys.magenta,bs.pink=bs.magenta;const r=Object.keys(vp).map(t=>{const i=e[t]===ys[t]?bs[t]:Dn(e[t]);return Array.from({length:10},()=>1).reduce((n,o,a)=>(n[`${t}-${a+1}`]=i[a],n[`${t}${a+1}`]=i[a],n),{})}).reduce((t,i)=>(t=Object.assign(Object.assign({},t),i),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),r),mb(e,{generateColorPalettes:_b,generateNeutralColorPalettes:Cb})),wb(e.fontSize)),Sb(e)),bb(e)),yb(e))}const mp=fl(Ob),gl={token:Kn,override:{override:Kn},hashed:!0},gp=z.createContext(gl),yl="ant",iu="anticon",Rb=["outlined","borderless","filled","underlined"],jb=(e,r)=>r||(e?`${yl}-${e}`:yl),Gt=M.createContext({getPrefixCls:jb,iconPrefixCls:iu}),{Consumer:G2}=Gt,Zf={};function fo(e){const r=M.useContext(Gt),{getPrefixCls:t,direction:i,getPopupContainer:n}=r,o=r[e];return Object.assign(Object.assign({classNames:Zf,styles:Zf},o),{getPrefixCls:t,direction:i,getPopupContainer:n})}const Ab=`-ant-${Date.now()}-${Math.random()}`;function Tb(e,r){const t={},i=(a,s)=>{let f=a.clone();return f=s?.(f)||f,f.toRgbString()},n=(a,s)=>{const f=new nt(a),d=Dn(f.toRgbString());t[`${s}-color`]=i(f),t[`${s}-color-disabled`]=d[1],t[`${s}-color-hover`]=d[4],t[`${s}-color-active`]=d[6],t[`${s}-color-outline`]=f.clone().setA(.2).toRgbString(),t[`${s}-color-deprecated-bg`]=d[0],t[`${s}-color-deprecated-border`]=d[2]};if(r.primaryColor){n(r.primaryColor,"primary");const a=new nt(r.primaryColor),s=Dn(a.toRgbString());s.forEach((d,c)=>{t[`primary-${c+1}`]=d}),t["primary-color-deprecated-l-35"]=i(a,d=>d.lighten(35)),t["primary-color-deprecated-l-20"]=i(a,d=>d.lighten(20)),t["primary-color-deprecated-t-20"]=i(a,d=>d.tint(20)),t["primary-color-deprecated-t-50"]=i(a,d=>d.tint(50)),t["primary-color-deprecated-f-12"]=i(a,d=>d.setA(d.a*.12));const f=new nt(s[0]);t["primary-color-active-deprecated-f-30"]=i(f,d=>d.setA(d.a*.3)),t["primary-color-active-deprecated-d-02"]=i(f,d=>d.darken(2))}return r.successColor&&n(r.successColor,"success"),r.warningColor&&n(r.warningColor,"warning"),r.errorColor&&n(r.errorColor,"error"),r.infoColor&&n(r.infoColor,"info"),`
|
|
137
137
|
:root {
|
|
138
138
|
${Object.keys(t).map(a=>`--${e}-${a}: ${t[a]};`).join(`
|
|
139
139
|
`)}
|
|
140
140
|
}
|
|
141
|
-
`.trim()}function kb(e,r){const t=Tb(e,r);gt()?rr(t,`${Ab}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Jn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Gn=M.createContext(!1),Pb=({children:e,disabled:r})=>{const t=M.useContext(Gn);return M.createElement(Gn.Provider,{value:r??t},e)},rn=M.createContext(void 0),Nb=({children:e,size:r})=>{const t=M.useContext(rn);return M.createElement(rn.Provider,{value:r||t},e)};function Ib(){const e=z.useContext(Gn),r=z.useContext(rn);return{componentDisabled:e,componentSize:r}}var yp=ut(function e(){lt(this,e)}),bp="CALC_UNIT",Mb=new RegExp(bp,"g");function Cs(e){return typeof e=="number"?"".concat(e).concat(bp):e}var Lb=(function(e){mr(t,e);var r=gr(t);function t(i,n){var o;lt(this,t),o=r.call(this),Z(Re(o),"result",""),Z(Re(o),"unitlessCssVar",void 0),Z(Re(o),"lowPriority",void 0);var a=we(i);return o.unitlessCssVar=n,i instanceof t?o.result="(".concat(i.result,")"):a==="number"?o.result=Cs(i):a==="string"&&(o.result=i),o}return ut(t,[{key:"add",value:function(n){return n instanceof t?this.result="".concat(this.result," + ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," + ").concat(Cs(n))),this.lowPriority=!0,this}},{key:"sub",value:function(n){return n instanceof t?this.result="".concat(this.result," - ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," - ").concat(Cs(n))),this.lowPriority=!0,this}},{key:"mul",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof t?this.result="".concat(this.result," * ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," * ").concat(n)),this.lowPriority=!1,this}},{key:"div",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof t?this.result="".concat(this.result," / ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," / ").concat(n)),this.lowPriority=!1,this}},{key:"getResult",value:function(n){return this.lowPriority||n?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(n){var o=this,a=n||{},s=a.unit,f=!0;return typeof s=="boolean"?f=s:Array.from(this.unitlessCssVar).some(function(d){return o.result.includes(d)})&&(f=!1),this.result=this.result.replace(Mb,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),t})(yp),Fb=(function(e){mr(t,e);var r=gr(t);function t(i){var n;return lt(this,t),n=r.call(this),Z(Re(n),"result",0),i instanceof t?n.result=i.result:typeof i=="number"&&(n.result=i),n}return ut(t,[{key:"add",value:function(n){return n instanceof t?this.result+=n.result:typeof n=="number"&&(this.result+=n),this}},{key:"sub",value:function(n){return n instanceof t?this.result-=n.result:typeof n=="number"&&(this.result-=n),this}},{key:"mul",value:function(n){return n instanceof t?this.result*=n.result:typeof n=="number"&&(this.result*=n),this}},{key:"div",value:function(n){return n instanceof t?this.result/=n.result:typeof n=="number"&&(this.result/=n),this}},{key:"equal",value:function(){return this.result}}]),t})(yp),$b=function(r,t){var i=r==="css"?Lb:Fb;return function(n){return new i(n,t)}},Qf=function(r,t){return"".concat([t,r.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Jf(e,r,t,i){var n=te({},r[e]);if(i!=null&&i.deprecatedTokens){var o=i.deprecatedTokens;o.forEach(function(s){var f=fe(s,2),d=f[0],c=f[1];if(process.env.NODE_ENV!=="production"&&Ke(!(n!=null&&n[d]),"Component Token `".concat(String(d),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(c),"` instead.")),n!=null&&n[d]||n!=null&&n[c]){var l;(l=n[c])!==null&&l!==void 0||(n[c]=n?.[d])}})}var a=te(te({},t),n);return Object.keys(a).forEach(function(s){a[s]===r[s]&&delete a[s]}),a}var xp=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",bl=!0;function or(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(!xp)return Object.assign.apply(Object,[{}].concat(r));bl=!1;var i={};return r.forEach(function(n){if(we(n)==="object"){var o=Object.keys(n);o.forEach(function(a){Object.defineProperty(i,a,{configurable:!0,enumerable:!0,get:function(){return n[a]}})})}}),bl=!0,i}var ed={};function Db(){}var Bb=function(r){var t,i=r,n=Db;return xp&&typeof Proxy<"u"&&(t=new Set,i=new Proxy(r,{get:function(a,s){if(bl){var f;(f=t)===null||f===void 0||f.add(s)}return a[s]}}),n=function(a,s){var f;ed[a]={global:Array.from(t),component:te(te({},(f=ed[a])===null||f===void 0?void 0:f.component),s)}}),{token:i,keys:t,flush:n}};function td(e,r,t){if(typeof t=="function"){var i;return t(or(r,(i=r[e])!==null&&i!==void 0?i:{}))}return t??{}}function qb(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return"max(".concat(i.map(function(o){return $e(o)}).join(","),")")},min:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return"min(".concat(i.map(function(o){return $e(o)}).join(","),")")}}}var Vb=1e3*60*10,zb=(function(){function e(){lt(this,e),Z(this,"map",new Map),Z(this,"objectIDMap",new WeakMap),Z(this,"nextID",0),Z(this,"lastAccessBeat",new Map),Z(this,"accessBeat",0)}return ut(e,[{key:"set",value:function(t,i){this.clear();var n=this.getCompositeKey(t);this.map.set(n,i),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(t){var i=this.getCompositeKey(t),n=this.map.get(i);return this.lastAccessBeat.set(i,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(t){var i=this,n=t.map(function(o){return o&&we(o)==="object"?"obj_".concat(i.getObjectID(o)):"".concat(we(o),"_").concat(o)});return n.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var i=this.nextID;return this.objectIDMap.set(t,i),this.nextID+=1,i}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var i=Date.now();this.lastAccessBeat.forEach(function(n,o){i-n>Vb&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),rd=new zb;function Hb(e,r){return z.useMemo(function(){var t=rd.get(r);if(t)return t;var i=e();return rd.set(r,i),i},r)}var Ub=function(){return{}};function Wb(e){var r=e.useCSP,t=r===void 0?Ub:r,i=e.useToken,n=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function f(u,h,v,g){var p=Array.isArray(u)?u[0]:u;function y(_){return"".concat(String(p)).concat(_.slice(0,1).toUpperCase()).concat(_.slice(1))}var m=g?.unitless||{},x=typeof s=="function"?s(u):{},b=te(te({},x),{},Z({},y("zIndexPopup"),!0));Object.keys(m).forEach(function(_){b[y(_)]=m[_]});var E=te(te({},g),{},{unitless:b,prefixToken:y}),S=c(u,h,v,E),w=d(p,v,E);return function(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,R=S(_,A),C=fe(R,2),O=C[1],j=w(A),k=fe(j,2),I=k[0],B=k[1];return[I,O,B]}}function d(u,h,v){var g=v.unitless,p=v.injectStyle,y=p===void 0?!0:p,m=v.prefixToken,x=v.ignore,b=function(w){var _=w.rootCls,A=w.cssVar,R=A===void 0?{}:A,C=i(),O=C.realToken;return ib({path:[u],prefix:R.prefix,key:R.key,unitless:g,ignore:x,token:O,scope:_},function(){var j=td(u,O,h),k=Jf(u,O,j,{deprecatedTokens:v?.deprecatedTokens});return Object.keys(j).forEach(function(I){k[m(I)]=k[I],delete k[I]}),k}),null},E=function(w){var _=i(),A=_.cssVar;return[function(R){return y&&A?z.createElement(z.Fragment,null,z.createElement(b,{rootCls:w,cssVar:A,component:u}),R):R},A?.key]};return E}function c(u,h,v){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(u)?u:[u,u],y=fe(p,1),m=y[0],x=p.join("-"),b=e.layer||{name:"antd"};return function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,w=i(),_=w.theme,A=w.realToken,R=w.hashId,C=w.token,O=w.cssVar,j=n(),k=j.rootPrefixCls,I=j.iconPrefixCls,B=t(),V=O?"css":"js",W=Hb(function(){var K=new Set;return O&&Object.keys(g.unitless||{}).forEach(function(G){K.add(Ii(G,O.prefix)),K.add(Ii(G,Qf(m,O.prefix)))}),$b(V,K)},[V,m,O?.prefix]),F=qb(V),$=F.max,N=F.min,L={theme:_,token:C,hashId:R,nonce:function(){return B.nonce},clientOnly:g.clientOnly,layer:b,order:g.order||-999};typeof o=="function"&&ml(te(te({},L),{},{clientOnly:!1,path:["Shared",k]}),function(){return o(C,{prefix:{rootPrefixCls:k,iconPrefixCls:I},csp:B})});var q=ml(te(te({},L),{},{path:[x,E,I]}),function(){if(g.injectStyle===!1)return[];var K=Bb(C),G=K.token,T=K.flush,D=td(m,A,v),H=".".concat(E),U=Jf(m,A,D,{deprecatedTokens:g.deprecatedTokens});O&&D&&we(D)==="object"&&Object.keys(D).forEach(function(oe){D[oe]="var(".concat(Ii(oe,Qf(m,O.prefix)),")")});var Y=or(G,{componentCls:H,prefixCls:E,iconCls:".".concat(I),antCls:".".concat(k),calc:W,max:$,min:N},O?D:U),ee=h(Y,{hashId:R,prefixCls:E,rootPrefixCls:k,iconPrefixCls:I});T(m,U);var ie=typeof a=="function"?a(Y,E,S,g.resetFont):null;return[g.resetStyle===!1?null:ie,ee]});return[q,R]}}function l(u,h,v){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=c(u,h,v,te({resetStyle:!1,order:-998},g)),y=function(x){var b=x.prefixCls,E=x.rootCls,S=E===void 0?b:E;return p(b,S),null};return process.env.NODE_ENV!=="production"&&(y.displayName="SubStyle_".concat(String(Array.isArray(u)?u.join("."):u))),y}return{genStyleHooks:f,genSubStyleComponent:l,genComponentStyleHook:c}}const Wi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Kb="5.27.1";function Os(e){return e>=0&&e<=255}function wi(e,r){const{r:t,g:i,b:n,a:o}=new nt(e).toRgb();if(o<1)return e;const{r:a,g:s,b:f}=new nt(r).toRgb();for(let d=.01;d<=1;d+=.01){const c=Math.round((t-a*(1-d))/d),l=Math.round((i-s*(1-d))/d),u=Math.round((n-f*(1-d))/d);if(Os(c)&&Os(l)&&Os(u))return new nt({r:c,g:l,b:u,a:Math.round(d*100)/100}).toRgbString()}return new nt({r:t,g:i,b:n,a:1}).toRgbString()}var Gb=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};function Ep(e){const{override:r}=e,t=Gb(e,["override"]),i=Object.assign({},r);Object.keys(Kn).forEach(u=>{delete i[u]});const n=Object.assign(Object.assign({},t),i),o=480,a=576,s=768,f=992,d=1200,c=1600;return n.motion===!1&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},n),{colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:wi(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:wi(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:wi(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:wi(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
|
|
141
|
+
`.trim()}function kb(e,r){const t=Tb(e,r);gt()?rr(t,`${Ab}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Jn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Gn=M.createContext(!1),Pb=({children:e,disabled:r})=>{const t=M.useContext(Gn);return M.createElement(Gn.Provider,{value:r??t},e)},rn=M.createContext(void 0),Nb=({children:e,size:r})=>{const t=M.useContext(rn);return M.createElement(rn.Provider,{value:r||t},e)};function Ib(){const e=z.useContext(Gn),r=z.useContext(rn);return{componentDisabled:e,componentSize:r}}var yp=ut(function e(){lt(this,e)}),bp="CALC_UNIT",Mb=new RegExp(bp,"g");function Cs(e){return typeof e=="number"?"".concat(e).concat(bp):e}var Lb=(function(e){mr(t,e);var r=gr(t);function t(i,n){var o;lt(this,t),o=r.call(this),Z(Re(o),"result",""),Z(Re(o),"unitlessCssVar",void 0),Z(Re(o),"lowPriority",void 0);var a=we(i);return o.unitlessCssVar=n,i instanceof t?o.result="(".concat(i.result,")"):a==="number"?o.result=Cs(i):a==="string"&&(o.result=i),o}return ut(t,[{key:"add",value:function(n){return n instanceof t?this.result="".concat(this.result," + ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," + ").concat(Cs(n))),this.lowPriority=!0,this}},{key:"sub",value:function(n){return n instanceof t?this.result="".concat(this.result," - ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," - ").concat(Cs(n))),this.lowPriority=!0,this}},{key:"mul",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof t?this.result="".concat(this.result," * ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," * ").concat(n)),this.lowPriority=!1,this}},{key:"div",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof t?this.result="".concat(this.result," / ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," / ").concat(n)),this.lowPriority=!1,this}},{key:"getResult",value:function(n){return this.lowPriority||n?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(n){var o=this,a=n||{},s=a.unit,f=!0;return typeof s=="boolean"?f=s:Array.from(this.unitlessCssVar).some(function(d){return o.result.includes(d)})&&(f=!1),this.result=this.result.replace(Mb,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),t})(yp),Fb=(function(e){mr(t,e);var r=gr(t);function t(i){var n;return lt(this,t),n=r.call(this),Z(Re(n),"result",0),i instanceof t?n.result=i.result:typeof i=="number"&&(n.result=i),n}return ut(t,[{key:"add",value:function(n){return n instanceof t?this.result+=n.result:typeof n=="number"&&(this.result+=n),this}},{key:"sub",value:function(n){return n instanceof t?this.result-=n.result:typeof n=="number"&&(this.result-=n),this}},{key:"mul",value:function(n){return n instanceof t?this.result*=n.result:typeof n=="number"&&(this.result*=n),this}},{key:"div",value:function(n){return n instanceof t?this.result/=n.result:typeof n=="number"&&(this.result/=n),this}},{key:"equal",value:function(){return this.result}}]),t})(yp),$b=function(r,t){var i=r==="css"?Lb:Fb;return function(n){return new i(n,t)}},Qf=function(r,t){return"".concat([t,r.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Jf(e,r,t,i){var n=te({},r[e]);if(i!=null&&i.deprecatedTokens){var o=i.deprecatedTokens;o.forEach(function(s){var f=fe(s,2),d=f[0],c=f[1];if(process.env.NODE_ENV!=="production"&&Ke(!(n!=null&&n[d]),"Component Token `".concat(String(d),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(c),"` instead.")),n!=null&&n[d]||n!=null&&n[c]){var l;(l=n[c])!==null&&l!==void 0||(n[c]=n?.[d])}})}var a=te(te({},t),n);return Object.keys(a).forEach(function(s){a[s]===r[s]&&delete a[s]}),a}var xp=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",bl=!0;function or(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(!xp)return Object.assign.apply(Object,[{}].concat(r));bl=!1;var i={};return r.forEach(function(n){if(we(n)==="object"){var o=Object.keys(n);o.forEach(function(a){Object.defineProperty(i,a,{configurable:!0,enumerable:!0,get:function(){return n[a]}})})}}),bl=!0,i}var ed={};function Db(){}var Bb=function(r){var t,i=r,n=Db;return xp&&typeof Proxy<"u"&&(t=new Set,i=new Proxy(r,{get:function(a,s){if(bl){var f;(f=t)===null||f===void 0||f.add(s)}return a[s]}}),n=function(a,s){var f;ed[a]={global:Array.from(t),component:te(te({},(f=ed[a])===null||f===void 0?void 0:f.component),s)}}),{token:i,keys:t,flush:n}};function td(e,r,t){if(typeof t=="function"){var i;return t(or(r,(i=r[e])!==null&&i!==void 0?i:{}))}return t??{}}function qb(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return"max(".concat(i.map(function(o){return $e(o)}).join(","),")")},min:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return"min(".concat(i.map(function(o){return $e(o)}).join(","),")")}}}var Vb=1e3*60*10,zb=(function(){function e(){lt(this,e),Z(this,"map",new Map),Z(this,"objectIDMap",new WeakMap),Z(this,"nextID",0),Z(this,"lastAccessBeat",new Map),Z(this,"accessBeat",0)}return ut(e,[{key:"set",value:function(t,i){this.clear();var n=this.getCompositeKey(t);this.map.set(n,i),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(t){var i=this.getCompositeKey(t),n=this.map.get(i);return this.lastAccessBeat.set(i,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(t){var i=this,n=t.map(function(o){return o&&we(o)==="object"?"obj_".concat(i.getObjectID(o)):"".concat(we(o),"_").concat(o)});return n.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var i=this.nextID;return this.objectIDMap.set(t,i),this.nextID+=1,i}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var i=Date.now();this.lastAccessBeat.forEach(function(n,o){i-n>Vb&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),rd=new zb;function Hb(e,r){return z.useMemo(function(){var t=rd.get(r);if(t)return t;var i=e();return rd.set(r,i),i},r)}var Ub=function(){return{}};function Wb(e){var r=e.useCSP,t=r===void 0?Ub:r,i=e.useToken,n=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function f(u,h,v,g){var p=Array.isArray(u)?u[0]:u;function y(_){return"".concat(String(p)).concat(_.slice(0,1).toUpperCase()).concat(_.slice(1))}var m=g?.unitless||{},x=typeof s=="function"?s(u):{},b=te(te({},x),{},Z({},y("zIndexPopup"),!0));Object.keys(m).forEach(function(_){b[y(_)]=m[_]});var E=te(te({},g),{},{unitless:b,prefixToken:y}),S=c(u,h,v,E),w=d(p,v,E);return function(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,R=S(_,A),C=fe(R,2),O=C[1],j=w(A),k=fe(j,2),I=k[0],B=k[1];return[I,O,B]}}function d(u,h,v){var g=v.unitless,p=v.injectStyle,y=p===void 0?!0:p,m=v.prefixToken,x=v.ignore,b=function(w){var _=w.rootCls,A=w.cssVar,R=A===void 0?{}:A,C=i(),O=C.realToken;return ib({path:[u],prefix:R.prefix,key:R.key,unitless:g,ignore:x,token:O,scope:_},function(){var j=td(u,O,h),k=Jf(u,O,j,{deprecatedTokens:v?.deprecatedTokens});return Object.keys(j).forEach(function(I){k[m(I)]=k[I],delete k[I]}),k}),null},E=function(w){var _=i(),A=_.cssVar;return[function(R){return y&&A?z.createElement(z.Fragment,null,z.createElement(b,{rootCls:w,cssVar:A,component:u}),R):R},A?.key]};return E}function c(u,h,v){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(u)?u:[u,u],y=fe(p,1),m=y[0],x=p.join("-"),b=e.layer||{name:"antd"};return function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,w=i(),_=w.theme,A=w.realToken,R=w.hashId,C=w.token,O=w.cssVar,j=n(),k=j.rootPrefixCls,I=j.iconPrefixCls,B=t(),V=O?"css":"js",W=Hb(function(){var K=new Set;return O&&Object.keys(g.unitless||{}).forEach(function(G){K.add(Ii(G,O.prefix)),K.add(Ii(G,Qf(m,O.prefix)))}),$b(V,K)},[V,m,O?.prefix]),L=qb(V),$=L.max,N=L.min,F={theme:_,token:C,hashId:R,nonce:function(){return B.nonce},clientOnly:g.clientOnly,layer:b,order:g.order||-999};typeof o=="function"&&ml(te(te({},F),{},{clientOnly:!1,path:["Shared",k]}),function(){return o(C,{prefix:{rootPrefixCls:k,iconPrefixCls:I},csp:B})});var q=ml(te(te({},F),{},{path:[x,E,I]}),function(){if(g.injectStyle===!1)return[];var K=Bb(C),G=K.token,T=K.flush,D=td(m,A,v),H=".".concat(E),U=Jf(m,A,D,{deprecatedTokens:g.deprecatedTokens});O&&D&&we(D)==="object"&&Object.keys(D).forEach(function(oe){D[oe]="var(".concat(Ii(oe,Qf(m,O.prefix)),")")});var Y=or(G,{componentCls:H,prefixCls:E,iconCls:".".concat(I),antCls:".".concat(k),calc:W,max:$,min:N},O?D:U),ee=h(Y,{hashId:R,prefixCls:E,rootPrefixCls:k,iconPrefixCls:I});T(m,U);var ie=typeof a=="function"?a(Y,E,S,g.resetFont):null;return[g.resetStyle===!1?null:ie,ee]});return[q,R]}}function l(u,h,v){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=c(u,h,v,te({resetStyle:!1,order:-998},g)),y=function(x){var b=x.prefixCls,E=x.rootCls,S=E===void 0?b:E;return p(b,S),null};return process.env.NODE_ENV!=="production"&&(y.displayName="SubStyle_".concat(String(Array.isArray(u)?u.join("."):u))),y}return{genStyleHooks:f,genSubStyleComponent:l,genComponentStyleHook:c}}const Wi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Kb="5.27.1";function Os(e){return e>=0&&e<=255}function wi(e,r){const{r:t,g:i,b:n,a:o}=new nt(e).toRgb();if(o<1)return e;const{r:a,g:s,b:f}=new nt(r).toRgb();for(let d=.01;d<=1;d+=.01){const c=Math.round((t-a*(1-d))/d),l=Math.round((i-s*(1-d))/d),u=Math.round((n-f*(1-d))/d);if(Os(c)&&Os(l)&&Os(u))return new nt({r:c,g:l,b:u,a:Math.round(d*100)/100}).toRgbString()}return new nt({r:t,g:i,b:n,a:1}).toRgbString()}var Gb=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};function Ep(e){const{override:r}=e,t=Gb(e,["override"]),i=Object.assign({},r);Object.keys(Kn).forEach(u=>{delete i[u]});const n=Object.assign(Object.assign({},t),i),o=480,a=576,s=768,f=992,d=1200,c=1600;return n.motion===!1&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},n),{colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:wi(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:wi(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:wi(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:wi(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
|
|
142
142
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
143
143
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
144
144
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -170,7 +170,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
170
170
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
171
171
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
172
172
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
173
|
-
`,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)"}),i)}var nd=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const wp={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},Yb={motionBase:!0,motionUnit:!0},Xb={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},Sp=(e,r,t)=>{const i=t.getDerivativeToken(e),{override:n}=r,o=nd(r,["override"]);let a=Object.assign(Object.assign({},i),{override:n});return a=Ep(a),o&&Object.entries(o).forEach(([s,f])=>{const{theme:d}=f,c=nd(f,["theme"]);let l=c;d&&(l=Sp(Object.assign(Object.assign({},a),c),{override:c},d)),a[s]=l}),a};function cn(){const{token:e,hashed:r,theme:t,override:i,cssVar:n}=z.useContext(gp),o=`${Kb}-${r||""}`,a=t||mp,[s,f,d]=A0(a,[Kn,e],{salt:o,override:i,getComputedToken:Sp,formatToken:Ep,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:wp,ignore:Yb,preserve:Xb}});return[a,d,r?f:"",s,n]}const ou=(e,r=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:r?"inherit":e.fontFamily}),Zb=()=>({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"}}),Qb=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Jb=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"}}}),e1=(e,r,t,i)=>{const n=`[class^="${r}"], [class*=" ${r}"]`,o=t?`.${t}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return i!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[n]:a})}},t1=(e,r)=>({outline:`${$e(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:r??1,transition:"outline-offset 0s, outline 0s"}),r1=(e,r)=>({"&:focus-visible":t1(e,r)}),_p=e=>({[`.${e}`]:Object.assign(Object.assign({},Zb()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Cp=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"},r1(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:ei}=Wb({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:r}=z.useContext(Gt);return{rootPrefixCls:e(),iconPrefixCls:r}},useToken:()=>{const[e,r,t,i,n]=cn();return{theme:e,realToken:r,hashId:t,token:i,cssVar:n}},useCSP:()=>{const{csp:e}=z.useContext(Gt);return e??{}},getResetStyles:(e,r)=>{var t;const i=Jb(e);return[i,{"&":i},_p((t=r?.prefix.iconPrefixCls)!==null&&t!==void 0?t:iu)]},getCommonStyle:e1,getCompUnitless:()=>wp});function n1(e,r){return Wi.reduce((t,i)=>{const n=e[`${i}1`],o=e[`${i}3`],a=e[`${i}6`],s=e[`${i}7`];return Object.assign(Object.assign({},t),r(i,{lightColor:n,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const i1=(e,r)=>{const[t,i]=cn();return ml({token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>r?.nonce,layer:{name:"antd"}},()=>_p(e))},o1=Object.assign({},M),{useId:id}=o1,a1=()=>"",s1=typeof id>"u"?a1:id;function l1(e,r,t){var i,n;const o=Kt("ConfigProvider"),a=e||{},s=a.inherit===!1||!r?Object.assign(Object.assign({},gl),{hashed:(i=r?.hashed)!==null&&i!==void 0?i:gl.hashed,cssVar:r?.cssVar}):r,f=s1();if(process.env.NODE_ENV!=="production"){const d=a.cssVar||s.cssVar,c=!!(typeof a.cssVar=="object"&&(!((n=a.cssVar)===null||n===void 0)&&n.key)||f);process.env.NODE_ENV!=="production"&&o(!d||c,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Gl(()=>{var d,c;if(!e)return r;const l=Object.assign({},s.components);Object.keys(e.components||{}).forEach(v=>{l[v]=Object.assign(Object.assign({},l[v]),e.components[v])});const u=`css-var-${f.replace(/:/g,"")}`,h=((d=a.cssVar)!==null&&d!==void 0?d:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:t?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||u});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:l,cssVar:h})},[a,s],(d,c)=>d.some((l,u)=>{const h=c[u];return!ul(l,h,!0)}))}var u1=["children"],Op=M.createContext({});function c1(e){var r=e.children,t=pt(e,u1);return M.createElement(Op.Provider,{value:t},r)}var f1=(function(e){mr(t,e);var r=gr(t);function t(){return lt(this,t),r.apply(this,arguments)}return ut(t,[{key:"render",value:function(){return this.props.children}}]),t})(M.Component);function d1(e){var r=M.useReducer(function(s){return s+1},0),t=fe(r,2),i=t[1],n=M.useRef(e),o=mt(function(){return n.current}),a=mt(function(s){n.current=typeof s=="function"?s(n.current):s,i()});return[o,a]}var dr="none",Si="appear",_i="enter",Ci="leave",od="none",$t="prepare",Hr="start",Ur="active",au="end",Rp="prepared";function ad(e,r){var t={};return t[e.toLowerCase()]=r.toLowerCase(),t["Webkit".concat(e)]="webkit".concat(r),t["Moz".concat(e)]="moz".concat(r),t["ms".concat(e)]="MS".concat(r),t["O".concat(e)]="o".concat(r.toLowerCase()),t}function h1(e,r){var t={animationend:ad("Animation","AnimationEnd"),transitionend:ad("Transition","TransitionEnd")};return e&&("AnimationEvent"in r||delete t.animationend.animation,"TransitionEvent"in r||delete t.transitionend.transition),t}var p1=h1(gt(),typeof window<"u"?window:{}),jp={};if(gt()){var v1=document.createElement("div");jp=v1.style}var Oi={};function Ap(e){if(Oi[e])return Oi[e];var r=p1[e];if(r)for(var t=Object.keys(r),i=t.length,n=0;n<i;n+=1){var o=t[n];if(Object.prototype.hasOwnProperty.call(r,o)&&o in jp)return Oi[e]=r[o],Oi[e]}return""}var Tp=Ap("animationend"),kp=Ap("transitionend"),Pp=!!(Tp&&kp),sd=Tp||"animationend",ld=kp||"transitionend";function ud(e,r){if(!e)return null;if(we(e)==="object"){var t=r.replace(/-\w/g,function(i){return i[1].toUpperCase()});return e[t]}return"".concat(e,"-").concat(r)}const m1=(function(e){var r=z.useRef();function t(n){n&&(n.removeEventListener(ld,e),n.removeEventListener(sd,e))}function i(n){r.current&&r.current!==n&&t(r.current),n&&n!==r.current&&(n.addEventListener(ld,e),n.addEventListener(sd,e),r.current=n)}return M.useEffect(function(){return function(){t(r.current)}},[]),[i,t]});var Np=gt()?z.useLayoutEffect:z.useEffect,Ip=function(r){return+setTimeout(r,16)},Mp=function(r){return clearTimeout(r)};typeof window<"u"&&"requestAnimationFrame"in window&&(Ip=function(r){return window.requestAnimationFrame(r)},Mp=function(r){return window.cancelAnimationFrame(r)});var cd=0,ho=new Map;function Lp(e){ho.delete(e)}var nn=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;cd+=1;var i=cd;function n(o){if(o===0)Lp(i),r();else{var a=Ip(function(){n(o-1)});ho.set(i,a)}}return n(t),i};nn.cancel=function(e){var r=ho.get(e);return Lp(e),Mp(r)};process.env.NODE_ENV!=="production"&&(nn.ids=function(){return ho});const g1=(function(){var e=M.useRef(null);function r(){nn.cancel(e.current)}function t(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;r();var o=nn(function(){n<=1?i({isCanceled:function(){return o!==e.current}}):t(i,n-1)});e.current=o}return M.useEffect(function(){return function(){r()}},[]),[t,r]});var y1=[$t,Hr,Ur,au],b1=[$t,Rp],Fp=!1,x1=!0;function $p(e){return e===Ur||e===au}const E1=(function(e,r,t){var i=Hn(od),n=fe(i,2),o=n[0],a=n[1],s=g1(),f=fe(s,2),d=f[0],c=f[1];function l(){a($t,!0)}var u=r?b1:y1;return Np(function(){if(o!==od&&o!==au){var h=u.indexOf(o),v=u[h+1],g=t(o);g===Fp?a(v,!0):v&&d(function(p){function y(){p.isCanceled()||a(v,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,o]),M.useEffect(function(){return function(){c()}},[]),[l,o]});function w1(e,r,t,i){var n=i.motionEnter,o=n===void 0?!0:n,a=i.motionAppear,s=a===void 0?!0:a,f=i.motionLeave,d=f===void 0?!0:f,c=i.motionDeadline,l=i.motionLeaveImmediately,u=i.onAppearPrepare,h=i.onEnterPrepare,v=i.onLeavePrepare,g=i.onAppearStart,p=i.onEnterStart,y=i.onLeaveStart,m=i.onAppearActive,x=i.onEnterActive,b=i.onLeaveActive,E=i.onAppearEnd,S=i.onEnterEnd,w=i.onLeaveEnd,_=i.onVisibleChanged,A=Hn(),R=fe(A,2),C=R[0],O=R[1],j=d1(dr),k=fe(j,2),I=k[0],B=k[1],V=Hn(null),W=fe(V,2),F=W[0],$=W[1],N=I(),L=z.useRef(!1),q=z.useRef(null);function K(){return t()}var G=z.useRef(!1);function T(){B(dr),$(null,!0)}var D=mt(function(se){var ne=I();if(ne!==dr){var de=K();if(!(se&&!se.deadline&&se.target!==de)){var ae=G.current,pe;ne===Si&&ae?pe=E?.(de,se):ne===_i&&ae?pe=S?.(de,se):ne===Ci&&ae&&(pe=w?.(de,se)),ae&&pe!==!1&&T()}}}),H=m1(D),U=fe(H,1),Y=U[0],ee=function(ne){switch(ne){case Si:return Z(Z(Z({},$t,u),Hr,g),Ur,m);case _i:return Z(Z(Z({},$t,h),Hr,p),Ur,x);case Ci:return Z(Z(Z({},$t,v),Hr,y),Ur,b);default:return{}}},ie=M.useMemo(function(){return ee(N)},[N]),oe=E1(N,!e,function(se){if(se===$t){var ne=ie[$t];return ne?ne(K()):Fp}if(ce in ie){var de;$(((de=ie[ce])===null||de===void 0?void 0:de.call(ie,K(),null))||null)}return ce===Ur&&N!==dr&&(Y(K()),c>0&&(clearTimeout(q.current),q.current=setTimeout(function(){D({deadline:!0})},c))),ce===Rp&&T(),x1}),re=fe(oe,2),ue=re[0],ce=re[1],he=$p(ce);G.current=he;var Q=z.useRef(null);Np(function(){if(!(L.current&&Q.current===r)){O(r);var se=L.current;L.current=!0;var ne;!se&&r&&s&&(ne=Si),se&&r&&o&&(ne=_i),(se&&!r&&d||!se&&l&&!r&&d)&&(ne=Ci);var de=ee(ne);ne&&(e||de[$t])?(B(ne),ue()):B(dr),Q.current=r}},[r]),z.useEffect(function(){(N===Si&&!s||N===_i&&!o||N===Ci&&!d)&&B(dr)},[s,o,d]),z.useEffect(function(){return function(){L.current=!1,clearTimeout(q.current)}},[]);var J=M.useRef(!1);z.useEffect(function(){C&&(J.current=!0),C!==void 0&&N===dr&&((J.current||C)&&_?.(C),J.current=!0)},[C,N]);var le=F;return ie[$t]&&ce===Hr&&(le=te({transition:"none"},le)),[N,ce,le,C??r]}function S1(e){var r=e;we(e)==="object"&&(r=e.transitionSupport);function t(n,o){return!!(n.motionName&&r&&o!==!1)}var i=M.forwardRef(function(n,o){var a=n.visible,s=a===void 0?!0:a,f=n.removeOnLeave,d=f===void 0?!0:f,c=n.forceRender,l=n.children,u=n.motionName,h=n.leavedClassName,v=n.eventProps,g=M.useContext(Op),p=g.motion,y=t(n,p),m=z.useRef(),x=z.useRef();function b(){try{return m.current instanceof HTMLElement?m.current:Ni(x.current)}catch{return null}}var E=w1(y,s,b,n),S=fe(E,4),w=S[0],_=S[1],A=S[2],R=S[3],C=M.useRef(R);R&&(C.current=!0);var O=M.useCallback(function(W){m.current=W,Yl(o,W)},[o]),j,k=te(te({},v),{},{visible:s});if(!l)j=null;else if(w===dr)R?j=l(te({},k),O):!d&&C.current&&h?j=l(te(te({},k),{},{className:h}),O):c||!d&&!h?j=l(te(te({},k),{},{style:{display:"none"}}),O):j=null;else{var I;_===$t?I="prepare":$p(_)?I="active":_===Hr&&(I="start");var B=ud(u,"".concat(w,"-").concat(I));j=l(te(te({},k),{},{className:ye(ud(u,w),Z(Z({},B,B&&I),u,typeof u=="string")),style:A}),O)}if(M.isValidElement(j)&&so(j)){var V=Zl(j);V||(j=M.cloneElement(j,{ref:O}))}return M.createElement(f1,{ref:x},j)});return i.displayName="CSSMotion",i}const su=S1(Pp);var xl="add",El="keep",wl="remove",Rs="removed";function _1(e){var r;return e&&we(e)==="object"&&"key"in e?r=e:r={key:e},te(te({},r),{},{key:String(r.key)})}function Sl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(_1)}function C1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=[],i=0,n=r.length,o=Sl(e),a=Sl(r);o.forEach(function(d){for(var c=!1,l=i;l<n;l+=1){var u=a[l];if(u.key===d.key){i<l&&(t=t.concat(a.slice(i,l).map(function(h){return te(te({},h),{},{status:xl})})),i=l),t.push(te(te({},u),{},{status:El})),i+=1,c=!0;break}}c||t.push(te(te({},d),{},{status:wl}))}),i<n&&(t=t.concat(a.slice(i).map(function(d){return te(te({},d),{},{status:xl})})));var s={};t.forEach(function(d){var c=d.key;s[c]=(s[c]||0)+1});var f=Object.keys(s).filter(function(d){return s[d]>1});return f.forEach(function(d){t=t.filter(function(c){var l=c.key,u=c.status;return l!==d||u!==wl}),t.forEach(function(c){c.key===d&&(c.status=El)})}),t}var O1=["component","children","onVisibleChanged","onAllRemoved"],R1=["status"],j1=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function A1(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:su,t=(function(i){mr(o,i);var n=gr(o);function o(){var a;lt(this,o);for(var s=arguments.length,f=new Array(s),d=0;d<s;d++)f[d]=arguments[d];return a=n.call.apply(n,[this].concat(f)),Z(Re(a),"state",{keyEntities:[]}),Z(Re(a),"removeKey",function(c){a.setState(function(l){var u=l.keyEntities.map(function(h){return h.key!==c?h:te(te({},h),{},{status:Rs})});return{keyEntities:u}},function(){var l=a.state.keyEntities,u=l.filter(function(h){var v=h.status;return v!==Rs}).length;u===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return ut(o,[{key:"render",value:function(){var s=this,f=this.state.keyEntities,d=this.props,c=d.component,l=d.children,u=d.onVisibleChanged;d.onAllRemoved;var h=pt(d,O1),v=c||M.Fragment,g={};return j1.forEach(function(p){g[p]=h[p],delete h[p]}),delete h.keys,M.createElement(v,h,f.map(function(p,y){var m=p.status,x=pt(p,R1),b=m===xl||m===El;return M.createElement(r,Ve({},g,{key:x.key,visible:b,eventProps:x,onVisibleChanged:function(S){u?.(S,{key:x.key}),S||s.removeKey(x.key)}}),function(E,S){return l(te(te({},E),{},{index:y}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,f){var d=s.keys,c=f.keyEntities,l=Sl(d),u=C1(c,l);return{keyEntities:u.filter(function(h){var v=c.find(function(g){var p=g.key;return h.key===p});return!(v&&v.status===Rs&&h.status===wl)})}}}]),o})(M.Component);return Z(t,"defaultProps",{component:"div"}),t}A1(Pp);const _l=M.createContext(!0);process.env.NODE_ENV!=="production"&&(_l.displayName="MotionCacheContext");function T1(e){const r=M.useContext(_l),{children:t}=e,[,i]=cn(),{motion:n}=i,o=M.useRef(!1);return o.current||(o.current=r!==n),o.current?M.createElement(_l.Provider,{value:n},M.createElement(c1,{motion:n},t)):t}const Dp=M.memo(({dropdownMatchSelectWidth:e})=>(Kt("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Dp.displayName="PropWarning");const k1=process.env.NODE_ENV!=="production"?Dp:()=>null;var P1=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};let Cl=!1;process.env.NODE_ENV;const N1=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Bp;function I1(){return Bp||yl}function M1(e){return Object.keys(e).some(r=>r.endsWith("Color"))}const L1=e=>{const{prefixCls:r,iconPrefixCls:t,theme:i,holderRender:n}=e;r!==void 0&&(Bp=r),i&&M1(i)&&(process.env.NODE_ENV!=="production"&&Jn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),kb(I1(),i))},F1=e=>{const{children:r,csp:t,autoInsertSpaceInButton:i,alert:n,anchor:o,form:a,locale:s,componentSize:f,direction:d,space:c,splitter:l,virtual:u,dropdownMatchSelectWidth:h,popupMatchSelectWidth:v,popupOverflow:g,legacyLocale:p,parentContext:y,iconPrefixCls:m,theme:x,componentDisabled:b,segmented:E,statistic:S,spin:w,calendar:_,carousel:A,cascader:R,collapse:C,typography:O,checkbox:j,descriptions:k,divider:I,drawer:B,skeleton:V,steps:W,image:F,layout:$,list:N,mentions:L,modal:q,progress:K,result:G,slider:T,breadcrumb:D,menu:H,pagination:U,input:Y,textArea:ee,empty:ie,badge:oe,radio:re,rate:ue,switch:ce,transfer:he,avatar:Q,message:J,tag:le,table:se,card:ne,tabs:de,timeline:ae,timePicker:pe,upload:_e,notification:Me,tree:be,colorPicker:qe,datePicker:Oe,rangePicker:je,flex:ke,wave:Te,dropdown:Se,warning:ze,tour:me,tooltip:xe,popover:Ze,popconfirm:Yt,floatButton:yr,floatButtonGroup:Tr,variant:dn,inputNumber:kr,treeSelect:Pt}=e,ct=M.useCallback((De,Je)=>{const{prefixCls:vt}=e;if(Je)return Je;const dt=vt||y.getPrefixCls("");return De?`${dt}-${De}`:dt},[y.getPrefixCls,e.prefixCls]),Qe=m||y.iconPrefixCls||iu,Xt=t||y.csp;i1(Qe,Xt);const ft=l1(x,y.theme,{prefixCls:ct("")});process.env.NODE_ENV!=="production"&&(Cl=Cl||!!ft);const Le={csp:Xt,autoInsertSpaceInButton:i,alert:n,anchor:o,locale:s||p,direction:d,space:c,splitter:l,virtual:u,popupMatchSelectWidth:v??h,popupOverflow:g,getPrefixCls:ct,iconPrefixCls:Qe,theme:ft,segmented:E,statistic:S,spin:w,calendar:_,carousel:A,cascader:R,collapse:C,typography:O,checkbox:j,descriptions:k,divider:I,drawer:B,skeleton:V,steps:W,image:F,input:Y,textArea:ee,layout:$,list:N,mentions:L,modal:q,progress:K,result:G,slider:T,breadcrumb:D,menu:H,pagination:U,empty:ie,badge:oe,radio:re,rate:ue,switch:ce,transfer:he,avatar:Q,message:J,tag:le,table:se,card:ne,tabs:de,timeline:ae,timePicker:pe,upload:_e,notification:Me,tree:be,colorPicker:qe,datePicker:Oe,rangePicker:je,flex:ke,wave:Te,dropdown:Se,warning:ze,tour:me,tooltip:xe,popover:Ze,popconfirm:Yt,floatButton:yr,floatButtonGroup:Tr,variant:dn,inputNumber:kr,treeSelect:Pt};process.env.NODE_ENV!=="production"&&Kt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Pe=Object.assign({},y);Object.keys(Le).forEach(De=>{Le[De]!==void 0&&(Pe[De]=Le[De])}),N1.forEach(De=>{const Je=e[De];Je&&(Pe[De]=Je)}),typeof i<"u"&&(Pe.button=Object.assign({autoInsertSpace:i},Pe.button));const ot=Gl(()=>Pe,Pe,(De,Je)=>{const vt=Object.keys(De),dt=Object.keys(Je);return vt.length!==dt.length||vt.some(Vt=>De[Vt]!==Je[Vt])}),{layer:qt}=M.useContext(Qn),yt=M.useMemo(()=>({prefixCls:Qe,csp:Xt,layer:qt?"antd":void 0}),[Qe,Xt,qt]);let Ye=M.createElement(M.Fragment,null,M.createElement(k1,{dropdownMatchSelectWidth:h}),r);const ar=M.useMemo(()=>{var De,Je,vt,dt;return zr(((De=tn.Form)===null||De===void 0?void 0:De.defaultValidateMessages)||{},((vt=(Je=ot.locale)===null||Je===void 0?void 0:Je.Form)===null||vt===void 0?void 0:vt.defaultValidateMessages)||{},((dt=ot.form)===null||dt===void 0?void 0:dt.validateMessages)||{},a?.validateMessages||{})},[ot,a?.validateMessages]);Object.keys(ar).length>0&&(Ye=M.createElement(cb.Provider,{value:ar},Ye)),s&&(Ye=M.createElement(pp,{locale:s,_ANT_MARK__:hp},Ye)),Ye=M.createElement(Ul.Provider,{value:yt},Ye),f&&(Ye=M.createElement(Nb,{size:f},Ye)),Ye=M.createElement(T1,null,Ye);const Zt=M.useMemo(()=>{const De=ft||{},{algorithm:Je,token:vt,components:dt,cssVar:Vt}=De,Pr=P1(De,["algorithm","token","components","cssVar"]),Nt=Je&&(!Array.isArray(Je)||Je.length>0)?fl(Je):mp,St={};Object.entries(dt||{}).forEach(([It,Nr])=>{const He=Object.assign({},Nr);"algorithm"in He&&(He.algorithm===!0?He.theme=Nt:(Array.isArray(He.algorithm)||typeof He.algorithm=="function")&&(He.theme=fl(He.algorithm)),delete He.algorithm),St[It]=He});const zt=Object.assign(Object.assign({},Kn),vt);return Object.assign(Object.assign({},Pr),{theme:Nt,token:zt,components:St,override:Object.assign({override:zt},St),cssVar:Vt})},[ft]);return x&&(Ye=M.createElement(gp.Provider,{value:Zt},Ye)),ot.warning&&(Ye=M.createElement(fp.Provider,{value:ot.warning},Ye)),b!==void 0&&(Ye=M.createElement(Pb,{disabled:b},Ye)),M.createElement(Gt.Provider,{value:ot},Ye)},fn=e=>{const r=M.useContext(Gt),t=M.useContext(nu);return M.createElement(F1,Object.assign({parentContext:r,legacyLocale:t},e))};fn.ConfigContext=Gt;fn.SizeContext=rn;fn.config=L1;fn.useConfig=Ib;Object.defineProperty(fn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Jn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),rn)});process.env.NODE_ENV!=="production"&&(fn.displayName="ConfigProvider");function qp(e){var r=e.children,t=e.prefixCls,i=e.id,n=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,s=e.style;return M.createElement("div",{className:ye("".concat(t,"-content"),a),style:s},M.createElement("div",{className:ye("".concat(t,"-inner"),o),id:i,role:"tooltip",style:n},typeof r=="function"?r():r))}var Vp=M.createContext(null),fd=[];function $1(e,r){var t=M.useState(function(){if(!gt())return null;var v=document.createElement("div");return process.env.NODE_ENV!=="production"&&r&&v.setAttribute("data-debug",r),v}),i=fe(t,1),n=i[0],o=M.useRef(!1),a=M.useContext(Vp),s=M.useState(fd),f=fe(s,2),d=f[0],c=f[1],l=a||(o.current?void 0:function(v){c(function(g){var p=[v].concat(ge(g));return p})});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function h(){var v;(v=n.parentElement)===null||v===void 0||v.removeChild(n),o.current=!1}return Ge(function(){return e?a?a(u):u():h(),h},[e]),Ge(function(){d.length&&(d.forEach(function(v){return v()}),c(fd))},[d]),[n,l]}function D1(e){var r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),t=document.createElement("div");t.id=r;var i=t.style;i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll";var n,o;if(e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),f=parseInt(s.width,10),d=parseInt(s.height,10);try{var c=f?"width: ".concat(s.width,";"):"",l=d?"height: ".concat(s.height,";"):"";rr(`
|
|
173
|
+
`,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)"}),i)}var nd=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const wp={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},Yb={motionBase:!0,motionUnit:!0},Xb={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},Sp=(e,r,t)=>{const i=t.getDerivativeToken(e),{override:n}=r,o=nd(r,["override"]);let a=Object.assign(Object.assign({},i),{override:n});return a=Ep(a),o&&Object.entries(o).forEach(([s,f])=>{const{theme:d}=f,c=nd(f,["theme"]);let l=c;d&&(l=Sp(Object.assign(Object.assign({},a),c),{override:c},d)),a[s]=l}),a};function cn(){const{token:e,hashed:r,theme:t,override:i,cssVar:n}=z.useContext(gp),o=`${Kb}-${r||""}`,a=t||mp,[s,f,d]=A0(a,[Kn,e],{salt:o,override:i,getComputedToken:Sp,formatToken:Ep,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:wp,ignore:Yb,preserve:Xb}});return[a,d,r?f:"",s,n]}const ou=(e,r=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:r?"inherit":e.fontFamily}),Zb=()=>({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"}}),Qb=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Jb=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"}}}),e1=(e,r,t,i)=>{const n=`[class^="${r}"], [class*=" ${r}"]`,o=t?`.${t}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return i!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[n]:a})}},t1=(e,r)=>({outline:`${$e(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:r??1,transition:"outline-offset 0s, outline 0s"}),r1=(e,r)=>({"&:focus-visible":t1(e,r)}),_p=e=>({[`.${e}`]:Object.assign(Object.assign({},Zb()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Cp=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"},r1(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:ei}=Wb({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:r}=z.useContext(Gt);return{rootPrefixCls:e(),iconPrefixCls:r}},useToken:()=>{const[e,r,t,i,n]=cn();return{theme:e,realToken:r,hashId:t,token:i,cssVar:n}},useCSP:()=>{const{csp:e}=z.useContext(Gt);return e??{}},getResetStyles:(e,r)=>{var t;const i=Jb(e);return[i,{"&":i},_p((t=r?.prefix.iconPrefixCls)!==null&&t!==void 0?t:iu)]},getCommonStyle:e1,getCompUnitless:()=>wp});function n1(e,r){return Wi.reduce((t,i)=>{const n=e[`${i}1`],o=e[`${i}3`],a=e[`${i}6`],s=e[`${i}7`];return Object.assign(Object.assign({},t),r(i,{lightColor:n,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const i1=(e,r)=>{const[t,i]=cn();return ml({token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>r?.nonce,layer:{name:"antd"}},()=>_p(e))},o1=Object.assign({},M),{useId:id}=o1,a1=()=>"",s1=typeof id>"u"?a1:id;function l1(e,r,t){var i,n;const o=Kt("ConfigProvider"),a=e||{},s=a.inherit===!1||!r?Object.assign(Object.assign({},gl),{hashed:(i=r?.hashed)!==null&&i!==void 0?i:gl.hashed,cssVar:r?.cssVar}):r,f=s1();if(process.env.NODE_ENV!=="production"){const d=a.cssVar||s.cssVar,c=!!(typeof a.cssVar=="object"&&(!((n=a.cssVar)===null||n===void 0)&&n.key)||f);process.env.NODE_ENV!=="production"&&o(!d||c,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Gl(()=>{var d,c;if(!e)return r;const l=Object.assign({},s.components);Object.keys(e.components||{}).forEach(v=>{l[v]=Object.assign(Object.assign({},l[v]),e.components[v])});const u=`css-var-${f.replace(/:/g,"")}`,h=((d=a.cssVar)!==null&&d!==void 0?d:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:t?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||u});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:l,cssVar:h})},[a,s],(d,c)=>d.some((l,u)=>{const h=c[u];return!ul(l,h,!0)}))}var u1=["children"],Op=M.createContext({});function c1(e){var r=e.children,t=pt(e,u1);return M.createElement(Op.Provider,{value:t},r)}var f1=(function(e){mr(t,e);var r=gr(t);function t(){return lt(this,t),r.apply(this,arguments)}return ut(t,[{key:"render",value:function(){return this.props.children}}]),t})(M.Component);function d1(e){var r=M.useReducer(function(s){return s+1},0),t=fe(r,2),i=t[1],n=M.useRef(e),o=mt(function(){return n.current}),a=mt(function(s){n.current=typeof s=="function"?s(n.current):s,i()});return[o,a]}var dr="none",Si="appear",_i="enter",Ci="leave",od="none",$t="prepare",Hr="start",Ur="active",au="end",Rp="prepared";function ad(e,r){var t={};return t[e.toLowerCase()]=r.toLowerCase(),t["Webkit".concat(e)]="webkit".concat(r),t["Moz".concat(e)]="moz".concat(r),t["ms".concat(e)]="MS".concat(r),t["O".concat(e)]="o".concat(r.toLowerCase()),t}function h1(e,r){var t={animationend:ad("Animation","AnimationEnd"),transitionend:ad("Transition","TransitionEnd")};return e&&("AnimationEvent"in r||delete t.animationend.animation,"TransitionEvent"in r||delete t.transitionend.transition),t}var p1=h1(gt(),typeof window<"u"?window:{}),jp={};if(gt()){var v1=document.createElement("div");jp=v1.style}var Oi={};function Ap(e){if(Oi[e])return Oi[e];var r=p1[e];if(r)for(var t=Object.keys(r),i=t.length,n=0;n<i;n+=1){var o=t[n];if(Object.prototype.hasOwnProperty.call(r,o)&&o in jp)return Oi[e]=r[o],Oi[e]}return""}var Tp=Ap("animationend"),kp=Ap("transitionend"),Pp=!!(Tp&&kp),sd=Tp||"animationend",ld=kp||"transitionend";function ud(e,r){if(!e)return null;if(we(e)==="object"){var t=r.replace(/-\w/g,function(i){return i[1].toUpperCase()});return e[t]}return"".concat(e,"-").concat(r)}const m1=(function(e){var r=z.useRef();function t(n){n&&(n.removeEventListener(ld,e),n.removeEventListener(sd,e))}function i(n){r.current&&r.current!==n&&t(r.current),n&&n!==r.current&&(n.addEventListener(ld,e),n.addEventListener(sd,e),r.current=n)}return M.useEffect(function(){return function(){t(r.current)}},[]),[i,t]});var Np=gt()?z.useLayoutEffect:z.useEffect,Ip=function(r){return+setTimeout(r,16)},Mp=function(r){return clearTimeout(r)};typeof window<"u"&&"requestAnimationFrame"in window&&(Ip=function(r){return window.requestAnimationFrame(r)},Mp=function(r){return window.cancelAnimationFrame(r)});var cd=0,ho=new Map;function Lp(e){ho.delete(e)}var nn=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;cd+=1;var i=cd;function n(o){if(o===0)Lp(i),r();else{var a=Ip(function(){n(o-1)});ho.set(i,a)}}return n(t),i};nn.cancel=function(e){var r=ho.get(e);return Lp(e),Mp(r)};process.env.NODE_ENV!=="production"&&(nn.ids=function(){return ho});const g1=(function(){var e=M.useRef(null);function r(){nn.cancel(e.current)}function t(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;r();var o=nn(function(){n<=1?i({isCanceled:function(){return o!==e.current}}):t(i,n-1)});e.current=o}return M.useEffect(function(){return function(){r()}},[]),[t,r]});var y1=[$t,Hr,Ur,au],b1=[$t,Rp],Fp=!1,x1=!0;function $p(e){return e===Ur||e===au}const E1=(function(e,r,t){var i=Hn(od),n=fe(i,2),o=n[0],a=n[1],s=g1(),f=fe(s,2),d=f[0],c=f[1];function l(){a($t,!0)}var u=r?b1:y1;return Np(function(){if(o!==od&&o!==au){var h=u.indexOf(o),v=u[h+1],g=t(o);g===Fp?a(v,!0):v&&d(function(p){function y(){p.isCanceled()||a(v,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,o]),M.useEffect(function(){return function(){c()}},[]),[l,o]});function w1(e,r,t,i){var n=i.motionEnter,o=n===void 0?!0:n,a=i.motionAppear,s=a===void 0?!0:a,f=i.motionLeave,d=f===void 0?!0:f,c=i.motionDeadline,l=i.motionLeaveImmediately,u=i.onAppearPrepare,h=i.onEnterPrepare,v=i.onLeavePrepare,g=i.onAppearStart,p=i.onEnterStart,y=i.onLeaveStart,m=i.onAppearActive,x=i.onEnterActive,b=i.onLeaveActive,E=i.onAppearEnd,S=i.onEnterEnd,w=i.onLeaveEnd,_=i.onVisibleChanged,A=Hn(),R=fe(A,2),C=R[0],O=R[1],j=d1(dr),k=fe(j,2),I=k[0],B=k[1],V=Hn(null),W=fe(V,2),L=W[0],$=W[1],N=I(),F=z.useRef(!1),q=z.useRef(null);function K(){return t()}var G=z.useRef(!1);function T(){B(dr),$(null,!0)}var D=mt(function(se){var ne=I();if(ne!==dr){var de=K();if(!(se&&!se.deadline&&se.target!==de)){var ae=G.current,pe;ne===Si&&ae?pe=E?.(de,se):ne===_i&&ae?pe=S?.(de,se):ne===Ci&&ae&&(pe=w?.(de,se)),ae&&pe!==!1&&T()}}}),H=m1(D),U=fe(H,1),Y=U[0],ee=function(ne){switch(ne){case Si:return Z(Z(Z({},$t,u),Hr,g),Ur,m);case _i:return Z(Z(Z({},$t,h),Hr,p),Ur,x);case Ci:return Z(Z(Z({},$t,v),Hr,y),Ur,b);default:return{}}},ie=M.useMemo(function(){return ee(N)},[N]),oe=E1(N,!e,function(se){if(se===$t){var ne=ie[$t];return ne?ne(K()):Fp}if(ce in ie){var de;$(((de=ie[ce])===null||de===void 0?void 0:de.call(ie,K(),null))||null)}return ce===Ur&&N!==dr&&(Y(K()),c>0&&(clearTimeout(q.current),q.current=setTimeout(function(){D({deadline:!0})},c))),ce===Rp&&T(),x1}),re=fe(oe,2),ue=re[0],ce=re[1],he=$p(ce);G.current=he;var Q=z.useRef(null);Np(function(){if(!(F.current&&Q.current===r)){O(r);var se=F.current;F.current=!0;var ne;!se&&r&&s&&(ne=Si),se&&r&&o&&(ne=_i),(se&&!r&&d||!se&&l&&!r&&d)&&(ne=Ci);var de=ee(ne);ne&&(e||de[$t])?(B(ne),ue()):B(dr),Q.current=r}},[r]),z.useEffect(function(){(N===Si&&!s||N===_i&&!o||N===Ci&&!d)&&B(dr)},[s,o,d]),z.useEffect(function(){return function(){F.current=!1,clearTimeout(q.current)}},[]);var J=M.useRef(!1);z.useEffect(function(){C&&(J.current=!0),C!==void 0&&N===dr&&((J.current||C)&&_?.(C),J.current=!0)},[C,N]);var le=L;return ie[$t]&&ce===Hr&&(le=te({transition:"none"},le)),[N,ce,le,C??r]}function S1(e){var r=e;we(e)==="object"&&(r=e.transitionSupport);function t(n,o){return!!(n.motionName&&r&&o!==!1)}var i=M.forwardRef(function(n,o){var a=n.visible,s=a===void 0?!0:a,f=n.removeOnLeave,d=f===void 0?!0:f,c=n.forceRender,l=n.children,u=n.motionName,h=n.leavedClassName,v=n.eventProps,g=M.useContext(Op),p=g.motion,y=t(n,p),m=z.useRef(),x=z.useRef();function b(){try{return m.current instanceof HTMLElement?m.current:Ni(x.current)}catch{return null}}var E=w1(y,s,b,n),S=fe(E,4),w=S[0],_=S[1],A=S[2],R=S[3],C=M.useRef(R);R&&(C.current=!0);var O=M.useCallback(function(W){m.current=W,Yl(o,W)},[o]),j,k=te(te({},v),{},{visible:s});if(!l)j=null;else if(w===dr)R?j=l(te({},k),O):!d&&C.current&&h?j=l(te(te({},k),{},{className:h}),O):c||!d&&!h?j=l(te(te({},k),{},{style:{display:"none"}}),O):j=null;else{var I;_===$t?I="prepare":$p(_)?I="active":_===Hr&&(I="start");var B=ud(u,"".concat(w,"-").concat(I));j=l(te(te({},k),{},{className:ye(ud(u,w),Z(Z({},B,B&&I),u,typeof u=="string")),style:A}),O)}if(M.isValidElement(j)&&so(j)){var V=Zl(j);V||(j=M.cloneElement(j,{ref:O}))}return M.createElement(f1,{ref:x},j)});return i.displayName="CSSMotion",i}const su=S1(Pp);var xl="add",El="keep",wl="remove",Rs="removed";function _1(e){var r;return e&&we(e)==="object"&&"key"in e?r=e:r={key:e},te(te({},r),{},{key:String(r.key)})}function Sl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(_1)}function C1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=[],i=0,n=r.length,o=Sl(e),a=Sl(r);o.forEach(function(d){for(var c=!1,l=i;l<n;l+=1){var u=a[l];if(u.key===d.key){i<l&&(t=t.concat(a.slice(i,l).map(function(h){return te(te({},h),{},{status:xl})})),i=l),t.push(te(te({},u),{},{status:El})),i+=1,c=!0;break}}c||t.push(te(te({},d),{},{status:wl}))}),i<n&&(t=t.concat(a.slice(i).map(function(d){return te(te({},d),{},{status:xl})})));var s={};t.forEach(function(d){var c=d.key;s[c]=(s[c]||0)+1});var f=Object.keys(s).filter(function(d){return s[d]>1});return f.forEach(function(d){t=t.filter(function(c){var l=c.key,u=c.status;return l!==d||u!==wl}),t.forEach(function(c){c.key===d&&(c.status=El)})}),t}var O1=["component","children","onVisibleChanged","onAllRemoved"],R1=["status"],j1=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function A1(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:su,t=(function(i){mr(o,i);var n=gr(o);function o(){var a;lt(this,o);for(var s=arguments.length,f=new Array(s),d=0;d<s;d++)f[d]=arguments[d];return a=n.call.apply(n,[this].concat(f)),Z(Re(a),"state",{keyEntities:[]}),Z(Re(a),"removeKey",function(c){a.setState(function(l){var u=l.keyEntities.map(function(h){return h.key!==c?h:te(te({},h),{},{status:Rs})});return{keyEntities:u}},function(){var l=a.state.keyEntities,u=l.filter(function(h){var v=h.status;return v!==Rs}).length;u===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return ut(o,[{key:"render",value:function(){var s=this,f=this.state.keyEntities,d=this.props,c=d.component,l=d.children,u=d.onVisibleChanged;d.onAllRemoved;var h=pt(d,O1),v=c||M.Fragment,g={};return j1.forEach(function(p){g[p]=h[p],delete h[p]}),delete h.keys,M.createElement(v,h,f.map(function(p,y){var m=p.status,x=pt(p,R1),b=m===xl||m===El;return M.createElement(r,Ve({},g,{key:x.key,visible:b,eventProps:x,onVisibleChanged:function(S){u?.(S,{key:x.key}),S||s.removeKey(x.key)}}),function(E,S){return l(te(te({},E),{},{index:y}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,f){var d=s.keys,c=f.keyEntities,l=Sl(d),u=C1(c,l);return{keyEntities:u.filter(function(h){var v=c.find(function(g){var p=g.key;return h.key===p});return!(v&&v.status===Rs&&h.status===wl)})}}}]),o})(M.Component);return Z(t,"defaultProps",{component:"div"}),t}A1(Pp);const _l=M.createContext(!0);process.env.NODE_ENV!=="production"&&(_l.displayName="MotionCacheContext");function T1(e){const r=M.useContext(_l),{children:t}=e,[,i]=cn(),{motion:n}=i,o=M.useRef(!1);return o.current||(o.current=r!==n),o.current?M.createElement(_l.Provider,{value:n},M.createElement(c1,{motion:n},t)):t}const Dp=M.memo(({dropdownMatchSelectWidth:e})=>(Kt("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Dp.displayName="PropWarning");const k1=process.env.NODE_ENV!=="production"?Dp:()=>null;var P1=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};let Cl=!1;process.env.NODE_ENV;const N1=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Bp;function I1(){return Bp||yl}function M1(e){return Object.keys(e).some(r=>r.endsWith("Color"))}const L1=e=>{const{prefixCls:r,iconPrefixCls:t,theme:i,holderRender:n}=e;r!==void 0&&(Bp=r),i&&M1(i)&&(process.env.NODE_ENV!=="production"&&Jn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),kb(I1(),i))},F1=e=>{const{children:r,csp:t,autoInsertSpaceInButton:i,alert:n,anchor:o,form:a,locale:s,componentSize:f,direction:d,space:c,splitter:l,virtual:u,dropdownMatchSelectWidth:h,popupMatchSelectWidth:v,popupOverflow:g,legacyLocale:p,parentContext:y,iconPrefixCls:m,theme:x,componentDisabled:b,segmented:E,statistic:S,spin:w,calendar:_,carousel:A,cascader:R,collapse:C,typography:O,checkbox:j,descriptions:k,divider:I,drawer:B,skeleton:V,steps:W,image:L,layout:$,list:N,mentions:F,modal:q,progress:K,result:G,slider:T,breadcrumb:D,menu:H,pagination:U,input:Y,textArea:ee,empty:ie,badge:oe,radio:re,rate:ue,switch:ce,transfer:he,avatar:Q,message:J,tag:le,table:se,card:ne,tabs:de,timeline:ae,timePicker:pe,upload:_e,notification:Me,tree:be,colorPicker:qe,datePicker:Oe,rangePicker:je,flex:ke,wave:Te,dropdown:Se,warning:ze,tour:me,tooltip:xe,popover:Ze,popconfirm:Yt,floatButton:yr,floatButtonGroup:Tr,variant:dn,inputNumber:kr,treeSelect:Pt}=e,ct=M.useCallback((De,Je)=>{const{prefixCls:vt}=e;if(Je)return Je;const dt=vt||y.getPrefixCls("");return De?`${dt}-${De}`:dt},[y.getPrefixCls,e.prefixCls]),Qe=m||y.iconPrefixCls||iu,Xt=t||y.csp;i1(Qe,Xt);const ft=l1(x,y.theme,{prefixCls:ct("")});process.env.NODE_ENV!=="production"&&(Cl=Cl||!!ft);const Le={csp:Xt,autoInsertSpaceInButton:i,alert:n,anchor:o,locale:s||p,direction:d,space:c,splitter:l,virtual:u,popupMatchSelectWidth:v??h,popupOverflow:g,getPrefixCls:ct,iconPrefixCls:Qe,theme:ft,segmented:E,statistic:S,spin:w,calendar:_,carousel:A,cascader:R,collapse:C,typography:O,checkbox:j,descriptions:k,divider:I,drawer:B,skeleton:V,steps:W,image:L,input:Y,textArea:ee,layout:$,list:N,mentions:F,modal:q,progress:K,result:G,slider:T,breadcrumb:D,menu:H,pagination:U,empty:ie,badge:oe,radio:re,rate:ue,switch:ce,transfer:he,avatar:Q,message:J,tag:le,table:se,card:ne,tabs:de,timeline:ae,timePicker:pe,upload:_e,notification:Me,tree:be,colorPicker:qe,datePicker:Oe,rangePicker:je,flex:ke,wave:Te,dropdown:Se,warning:ze,tour:me,tooltip:xe,popover:Ze,popconfirm:Yt,floatButton:yr,floatButtonGroup:Tr,variant:dn,inputNumber:kr,treeSelect:Pt};process.env.NODE_ENV!=="production"&&Kt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Pe=Object.assign({},y);Object.keys(Le).forEach(De=>{Le[De]!==void 0&&(Pe[De]=Le[De])}),N1.forEach(De=>{const Je=e[De];Je&&(Pe[De]=Je)}),typeof i<"u"&&(Pe.button=Object.assign({autoInsertSpace:i},Pe.button));const ot=Gl(()=>Pe,Pe,(De,Je)=>{const vt=Object.keys(De),dt=Object.keys(Je);return vt.length!==dt.length||vt.some(Vt=>De[Vt]!==Je[Vt])}),{layer:qt}=M.useContext(Qn),yt=M.useMemo(()=>({prefixCls:Qe,csp:Xt,layer:qt?"antd":void 0}),[Qe,Xt,qt]);let Ye=M.createElement(M.Fragment,null,M.createElement(k1,{dropdownMatchSelectWidth:h}),r);const ar=M.useMemo(()=>{var De,Je,vt,dt;return zr(((De=tn.Form)===null||De===void 0?void 0:De.defaultValidateMessages)||{},((vt=(Je=ot.locale)===null||Je===void 0?void 0:Je.Form)===null||vt===void 0?void 0:vt.defaultValidateMessages)||{},((dt=ot.form)===null||dt===void 0?void 0:dt.validateMessages)||{},a?.validateMessages||{})},[ot,a?.validateMessages]);Object.keys(ar).length>0&&(Ye=M.createElement(cb.Provider,{value:ar},Ye)),s&&(Ye=M.createElement(pp,{locale:s,_ANT_MARK__:hp},Ye)),Ye=M.createElement(Ul.Provider,{value:yt},Ye),f&&(Ye=M.createElement(Nb,{size:f},Ye)),Ye=M.createElement(T1,null,Ye);const Zt=M.useMemo(()=>{const De=ft||{},{algorithm:Je,token:vt,components:dt,cssVar:Vt}=De,Pr=P1(De,["algorithm","token","components","cssVar"]),Nt=Je&&(!Array.isArray(Je)||Je.length>0)?fl(Je):mp,St={};Object.entries(dt||{}).forEach(([It,Nr])=>{const He=Object.assign({},Nr);"algorithm"in He&&(He.algorithm===!0?He.theme=Nt:(Array.isArray(He.algorithm)||typeof He.algorithm=="function")&&(He.theme=fl(He.algorithm)),delete He.algorithm),St[It]=He});const zt=Object.assign(Object.assign({},Kn),vt);return Object.assign(Object.assign({},Pr),{theme:Nt,token:zt,components:St,override:Object.assign({override:zt},St),cssVar:Vt})},[ft]);return x&&(Ye=M.createElement(gp.Provider,{value:Zt},Ye)),ot.warning&&(Ye=M.createElement(fp.Provider,{value:ot.warning},Ye)),b!==void 0&&(Ye=M.createElement(Pb,{disabled:b},Ye)),M.createElement(Gt.Provider,{value:ot},Ye)},fn=e=>{const r=M.useContext(Gt),t=M.useContext(nu);return M.createElement(F1,Object.assign({parentContext:r,legacyLocale:t},e))};fn.ConfigContext=Gt;fn.SizeContext=rn;fn.config=L1;fn.useConfig=Ib;Object.defineProperty(fn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Jn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),rn)});process.env.NODE_ENV!=="production"&&(fn.displayName="ConfigProvider");function qp(e){var r=e.children,t=e.prefixCls,i=e.id,n=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,s=e.style;return M.createElement("div",{className:ye("".concat(t,"-content"),a),style:s},M.createElement("div",{className:ye("".concat(t,"-inner"),o),id:i,role:"tooltip",style:n},typeof r=="function"?r():r))}var Vp=M.createContext(null),fd=[];function $1(e,r){var t=M.useState(function(){if(!gt())return null;var v=document.createElement("div");return process.env.NODE_ENV!=="production"&&r&&v.setAttribute("data-debug",r),v}),i=fe(t,1),n=i[0],o=M.useRef(!1),a=M.useContext(Vp),s=M.useState(fd),f=fe(s,2),d=f[0],c=f[1],l=a||(o.current?void 0:function(v){c(function(g){var p=[v].concat(ge(g));return p})});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function h(){var v;(v=n.parentElement)===null||v===void 0||v.removeChild(n),o.current=!1}return Ge(function(){return e?a?a(u):u():h(),h},[e]),Ge(function(){d.length&&(d.forEach(function(v){return v()}),c(fd))},[d]),[n,l]}function D1(e){var r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),t=document.createElement("div");t.id=r;var i=t.style;i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll";var n,o;if(e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),f=parseInt(s.width,10),d=parseInt(s.height,10);try{var c=f?"width: ".concat(s.width,";"):"",l=d?"height: ".concat(s.height,";"):"";rr(`
|
|
174
174
|
#`.concat(r,`::-webkit-scrollbar {
|
|
175
175
|
`).concat(c,`
|
|
176
176
|
`).concat(l,`
|
|
@@ -178,7 +178,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
178
178
|
html body {
|
|
179
179
|
overflow-y: hidden;
|
|
180
180
|
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
181
|
-
}`),n)}else Bn(n);return function(){Bn(n)}},[r,n])}var H1=!1;function U1(e){return H1}var hd=function(r){return r===!1?!1:!gt()||!r?null:typeof r=="string"?document.querySelector(r):typeof r=="function"?r():r},lu=M.forwardRef(function(e,r){var t=e.open,i=e.autoLock,n=e.getContainer,o=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,f=e.children,d=M.useState(t),c=fe(d,2),l=c[0],u=c[1],h=l||t;process.env.NODE_ENV!=="production"&&Ke(gt()||!t,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),M.useEffect(function(){(s||t)&&u(t)},[t,s]);var v=M.useState(function(){return hd(n)}),g=fe(v,2),p=g[0],y=g[1];M.useEffect(function(){var O=hd(n);y(O??null)});var m=$1(h&&!p,o),x=fe(m,2),b=x[0],E=x[1],S=p??b;z1(i&&t&>()&&(S===b||S===document.body));var w=null;if(f&&so(f)&&r){var _=f;w=_.ref}var A=Xl(w,r);if(!h||!gt()||p===void 0)return null;var R=S===!1||U1(),C=f;return r&&(C=M.cloneElement(f,{ref:A})),M.createElement(Vp.Provider,{value:E},R?C:$n.createPortal(C,S))});process.env.NODE_ENV!=="production"&&(lu.displayName="Portal");function W1(){var e=te({},M);return e.useId}var pd=0,vd=W1();const zp=vd?function(r){var t=vd();return r||(process.env.NODE_ENV==="test"?"test-id":t)}:function(r){var t=M.useState("ssr-id"),i=fe(t,2),n=i[0],o=i[1];return M.useEffect(function(){var a=pd;pd+=1,o("rc_unique_".concat(a))},[]),r||(process.env.NODE_ENV==="test"?"test-id":n)},K1=(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 G1(e){var r=e.prefixCls,t=e.align,i=e.arrow,n=e.arrowPos,o=i||{},a=o.className,s=o.content,f=n.x,d=f===void 0?0:f,c=n.y,l=c===void 0?0:c,u=M.useRef();if(!t||!t.points)return null;var h={position:"absolute"};if(t.autoArrow!==!1){var v=t.points[0],g=t.points[1],p=v[0],y=v[1],m=g[0],x=g[1];p===m||!["t","b"].includes(p)?h.top=l:p==="t"?h.top=0:h.bottom=0,y===x||!["l","r"].includes(y)?h.left=d:y==="l"?h.left=0:h.right=0}return M.createElement("div",{ref:u,className:ye("".concat(r,"-arrow"),a),style:h},s)}function Y1(e){var r=e.prefixCls,t=e.open,i=e.zIndex,n=e.mask,o=e.motion;return n?M.createElement(su,Ve({},o,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(a){var s=a.className;return M.createElement("div",{style:{zIndex:i},className:ye("".concat(r,"-mask"),s)})}):null}var Hp=M.memo(function(e){var r=e.children;return r},function(e,r){return r.cache});process.env.NODE_ENV!=="production"&&(Hp.displayName="PopupContent");var Up=M.forwardRef(function(e,r){var t=e.popup,i=e.className,n=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,f=e.open,d=e.keepDom,c=e.fresh,l=e.onClick,u=e.mask,h=e.arrow,v=e.arrowPos,g=e.align,p=e.motion,y=e.maskMotion,m=e.forceRender,x=e.getPopupContainer,b=e.autoDestroy,E=e.portal,S=e.zIndex,w=e.onMouseEnter,_=e.onMouseLeave,A=e.onPointerEnter,R=e.onPointerDownCapture,C=e.ready,O=e.offsetX,j=e.offsetY,k=e.offsetR,I=e.offsetB,B=e.onAlign,V=e.onPrepare,W=e.stretch,F=e.targetWidth,$=e.targetHeight,N=typeof t=="function"?t():t,L=f||d,q=x?.length>0,K=M.useState(!x||!q),G=fe(K,2),T=G[0],D=G[1];if(Ge(function(){!T&&q&&a&&D(!0)},[T,q,a]),!T)return null;var H="auto",U={left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(C||!f){var Y,ee=g.points,ie=g.dynamicInset||((Y=g._experimental)===null||Y===void 0?void 0:Y.dynamicInset),oe=ie&&ee[0][1]==="r",re=ie&&ee[0][0]==="b";oe?(U.right=k,U.left=H):(U.left=O,U.right=H),re?(U.bottom=I,U.top=H):(U.top=j,U.bottom=H)}var ue={};return W&&(W.includes("height")&&$?ue.height=$:W.includes("minHeight")&&$&&(ue.minHeight=$),W.includes("width")&&F?ue.width=F:W.includes("minWidth")&&F&&(ue.minWidth=F)),f||(ue.pointerEvents="none"),M.createElement(E,{open:m||L,getContainer:x&&function(){return x(a)},autoDestroy:b},M.createElement(Y1,{prefixCls:n,open:f,zIndex:S,mask:u,motion:y}),M.createElement(ln,{onResize:B,disabled:!f},function(ce){return M.createElement(su,Ve({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(n,"-hidden")},p,{onAppearPrepare:V,onEnterPrepare:V,visible:f,onVisibleChanged:function(Q){var J;p==null||(J=p.onVisibleChanged)===null||J===void 0||J.call(p,Q),s(Q)}}),function(he,Q){var J=he.className,le=he.style,se=ye(n,J,i);return M.createElement("div",{ref:Zn(ce,r,Q),className:se,style:te(te(te(te({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},U),ue),le),{},{boxSizing:"border-box",zIndex:S},o),onMouseEnter:w,onMouseLeave:_,onPointerEnter:A,onClick:l,onPointerDownCapture:R},h&&M.createElement(G1,{prefixCls:n,arrow:h,arrowPos:v,align:g}),M.createElement(Hp,{cache:!f&&!c},N))})}))});process.env.NODE_ENV!=="production"&&(Up.displayName="Popup");var Wp=M.forwardRef(function(e,r){var t=e.children,i=e.getTriggerDOMNode,n=so(t),o=M.useCallback(function(s){Yl(r,i?i(s):s)},[i]),a=Xl(o,Zl(t));return n?M.cloneElement(t,{ref:a}):t});process.env.NODE_ENV!=="production"&&(Wp.displayName="TriggerWrapper");var md=M.createContext(null);function gd(e){return e?Array.isArray(e)?e:[e]:[]}function X1(e,r,t,i){return M.useMemo(function(){var n=gd(t??r),o=gd(i??r),a=new Set(n),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,r,t,i])}const Z1=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var r=e.getBBox(),t=r.width,i=r.height;if(t||i)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),o=n.width,a=n.height;if(o||a)return!0}}return!1});function Q1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?e[0]===r[0]:e[0]===r[0]&&e[1]===r[1]}function J1(e,r,t,i){for(var n=t.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,f=o[a];if(Q1((s=e[f])===null||s===void 0?void 0:s.points,n,i))return"".concat(r,"-placement-").concat(f)}return""}function yd(e,r,t,i){return r||(t?{motionName:"".concat(e,"-").concat(t)}:i?{motionName:i}:null)}function ti(e){return e.ownerDocument.defaultView}function Ol(e){for(var r=[],t=e?.parentElement,i=["hidden","scroll","clip","auto"];t;){var n=ti(t).getComputedStyle(t),o=n.overflowX,a=n.overflowY,s=n.overflow;[o,a,s].some(function(f){return i.includes(f)})&&r.push(t),t=t.parentElement}return r}function Yn(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?r:e}function jn(e){return Yn(parseFloat(e),0)}function bd(e,r){var t=te({},e);return(r||[]).forEach(function(i){if(!(i instanceof HTMLBodyElement||i instanceof HTMLHtmlElement)){var n=ti(i).getComputedStyle(i),o=n.overflow,a=n.overflowClipMargin,s=n.borderTopWidth,f=n.borderBottomWidth,d=n.borderLeftWidth,c=n.borderRightWidth,l=i.getBoundingClientRect(),u=i.offsetHeight,h=i.clientHeight,v=i.offsetWidth,g=i.clientWidth,p=jn(s),y=jn(f),m=jn(d),x=jn(c),b=Yn(Math.round(l.width/v*1e3)/1e3),E=Yn(Math.round(l.height/u*1e3)/1e3),S=(v-g-m-x)*b,w=(u-h-p-y)*E,_=p*E,A=y*E,R=m*b,C=x*b,O=0,j=0;if(o==="clip"){var k=jn(a);O=k*b,j=k*E}var I=l.x+R-O,B=l.y+_-j,V=I+l.width+2*O-R-C-S,W=B+l.height+2*j-_-A-w;t.left=Math.max(t.left,I),t.top=Math.max(t.top,B),t.right=Math.min(t.right,V),t.bottom=Math.min(t.bottom,W)}}),t}function xd(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t="".concat(r),i=t.match(/^(.*)\%$/);return i?e*(parseFloat(i[1])/100):parseFloat(t)}function Ed(e,r){var t=r||[],i=fe(t,2),n=i[0],o=i[1];return[xd(e.width,n),xd(e.height,o)]}function wd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function $r(e,r){var t=r[0],i=r[1],n,o;return t==="t"?o=e.y:t==="b"?o=e.y+e.height:o=e.y+e.height/2,i==="l"?n=e.x:i==="r"?n=e.x+e.width:n=e.x+e.width/2,{x:n,y:o}}function fr(e,r){var t={t:"b",b:"t",l:"r",r:"l"};return e.map(function(i,n){return n===r?t[i]||"c":i}).join("")}function ex(e,r,t,i,n,o,a){var s=M.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:n[i]||{}}),f=fe(s,2),d=f[0],c=f[1],l=M.useRef(0),u=M.useMemo(function(){return r?Ol(r):[]},[r]),h=M.useRef({}),v=function(){h.current={}};e||v();var g=mt(function(){if(r&&t&&e){let _t=function(gn,Qt){var cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,yn=L.x+gn,vi=L.y+Qt,Oo=yn+re,Ro=vi+oe,jo=Math.max(yn,cr.left),ve=Math.max(vi,cr.top),Ee=Math.min(Oo,cr.right),Ue=Math.min(Ro,cr.bottom);return Math.max(0,(Ee-jo)*(Ue-ve))},Mr=function(){Nt=L.y+Pe,St=Nt+oe,zt=L.x+Le,It=zt+re};var m,x,b,E,S=r,w=S.ownerDocument,_=ti(S),A=_.getComputedStyle(S),R=A.position,C=S.style.left,O=S.style.top,j=S.style.right,k=S.style.bottom,I=S.style.overflow,B=te(te({},n[i]),o),V=w.createElement("div");(m=S.parentElement)===null||m===void 0||m.appendChild(V),V.style.left="".concat(S.offsetLeft,"px"),V.style.top="".concat(S.offsetTop,"px"),V.style.position=R,V.style.height="".concat(S.offsetHeight,"px"),V.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 W;if(Array.isArray(t))W={x:t[0],y:t[1],width:0,height:0};else{var F,$,N=t.getBoundingClientRect();N.x=(F=N.x)!==null&&F!==void 0?F:N.left,N.y=($=N.y)!==null&&$!==void 0?$:N.top,W={x:N.x,y:N.y,width:N.width,height:N.height}}var L=S.getBoundingClientRect(),q=_.getComputedStyle(S),K=q.height,G=q.width;L.x=(x=L.x)!==null&&x!==void 0?x:L.left,L.y=(b=L.y)!==null&&b!==void 0?b:L.top;var T=w.documentElement,D=T.clientWidth,H=T.clientHeight,U=T.scrollWidth,Y=T.scrollHeight,ee=T.scrollTop,ie=T.scrollLeft,oe=L.height,re=L.width,ue=W.height,ce=W.width,he={left:0,top:0,right:D,bottom:H},Q={left:-ie,top:-ee,right:U-ie,bottom:Y-ee},J=B.htmlRegion,le="visible",se="visibleFirst";J!=="scroll"&&J!==se&&(J=le);var ne=J===se,de=bd(Q,u),ae=bd(he,u),pe=J===le?ae:de,_e=ne?ae:pe;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var Me=S.getBoundingClientRect();S.style.left=C,S.style.top=O,S.style.right=j,S.style.bottom=k,S.style.overflow=I,(E=S.parentElement)===null||E===void 0||E.removeChild(V);var be=Yn(Math.round(re/parseFloat(G)*1e3)/1e3),qe=Yn(Math.round(oe/parseFloat(K)*1e3)/1e3);if(be===0||qe===0||qn(t)&&!Z1(t))return;var Oe=B.offset,je=B.targetOffset,ke=Ed(L,Oe),Te=fe(ke,2),Se=Te[0],ze=Te[1],me=Ed(W,je),xe=fe(me,2),Ze=xe[0],Yt=xe[1];W.x-=Ze,W.y-=Yt;var yr=B.points||[],Tr=fe(yr,2),dn=Tr[0],kr=Tr[1],Pt=wd(kr),ct=wd(dn),Qe=$r(W,Pt),Xt=$r(L,ct),ft=te({},B),Le=Qe.x-Xt.x+Se,Pe=Qe.y-Xt.y+ze,ot=_t(Le,Pe),qt=_t(Le,Pe,ae),yt=$r(W,["t","l"]),Ye=$r(L,["t","l"]),ar=$r(W,["b","r"]),Zt=$r(L,["b","r"]),De=B.overflow||{},Je=De.adjustX,vt=De.adjustY,dt=De.shiftX,Vt=De.shiftY,Pr=function(Qt){return typeof Qt=="boolean"?Qt:Qt>=0},Nt,St,zt,It;Mr();var Nr=Pr(vt),He=ct[0]===Pt[0];if(Nr&&ct[0]==="t"&&(St>_e.bottom||h.current.bt)){var br=Pe;He?br-=oe-ue:br=yt.y-Zt.y-ze;var ai=_t(Le,br),vo=_t(Le,br,ae);ai>ot||ai===ot&&(!ne||vo>=qt)?(h.current.bt=!0,Pe=br,ze=-ze,ft.points=[fr(ct,0),fr(Pt,0)]):h.current.bt=!1}if(Nr&&ct[0]==="b"&&(Nt<_e.top||h.current.tb)){var xr=Pe;He?xr+=oe-ue:xr=ar.y-Ye.y-ze;var si=_t(Le,xr),mo=_t(Le,xr,ae);si>ot||si===ot&&(!ne||mo>=qt)?(h.current.tb=!0,Pe=xr,ze=-ze,ft.points=[fr(ct,0),fr(Pt,0)]):h.current.tb=!1}var li=Pr(Je),ui=ct[1]===Pt[1];if(li&&ct[1]==="l"&&(It>_e.right||h.current.rl)){var Er=Le;ui?Er-=re-ce:Er=yt.x-Zt.x-Se;var wr=_t(Er,Pe),hn=_t(Er,Pe,ae);wr>ot||wr===ot&&(!ne||hn>=qt)?(h.current.rl=!0,Le=Er,Se=-Se,ft.points=[fr(ct,1),fr(Pt,1)]):h.current.rl=!1}if(li&&ct[1]==="r"&&(zt<_e.left||h.current.lr)){var Sr=Le;ui?Sr+=re-ce:Sr=ar.x-Ye.x-Se;var pn=_t(Sr,Pe),Ir=_t(Sr,Pe,ae);pn>ot||pn===ot&&(!ne||Ir>=qt)?(h.current.lr=!0,Le=Sr,Se=-Se,ft.points=[fr(ct,1),fr(Pt,1)]):h.current.lr=!1}Mr();var Mt=dt===!0?0:dt;typeof Mt=="number"&&(zt<ae.left&&(Le-=zt-ae.left-Se,W.x+ce<ae.left+Mt&&(Le+=W.x-ae.left+ce-Mt)),It>ae.right&&(Le-=It-ae.right-Se,W.x>ae.right-Mt&&(Le+=W.x-ae.right+Mt)));var sr=Vt===!0?0:Vt;typeof sr=="number"&&(Nt<ae.top&&(Pe-=Nt-ae.top-ze,W.y+ue<ae.top+sr&&(Pe+=W.y-ae.top+ue-sr)),St>ae.bottom&&(Pe-=St-ae.bottom-ze,W.y>ae.bottom-sr&&(Pe+=W.y-ae.bottom+sr)));var lr=L.x+Le,ur=lr+re,vn=L.y+Pe,go=vn+oe,ci=W.x,fi=ci+ce,di=W.y,yo=di+ue,bo=Math.max(lr,ci),hi=Math.min(ur,fi),xo=(bo+hi)/2,Eo=xo-lr,pi=Math.max(vn,di),wo=Math.min(go,yo),So=(pi+wo)/2,_o=So-vn;a?.(r,ft);var Ht=Me.right-L.x-(Le+L.width),mn=Me.bottom-L.y-(Pe+L.height);be===1&&(Le=Math.round(Le),Ht=Math.round(Ht)),qe===1&&(Pe=Math.round(Pe),mn=Math.round(mn));var Co={ready:!0,offsetX:Le/be,offsetY:Pe/qe,offsetR:Ht/be,offsetB:mn/qe,arrowX:Eo/be,arrowY:_o/qe,scaleX:be,scaleY:qe,align:ft};c(Co)}}),p=function(){l.current+=1;var x=l.current;Promise.resolve().then(function(){l.current===x&&g()})},y=function(){c(function(x){return te(te({},x),{},{ready:!1})})};return Ge(y,[i]),Ge(function(){e||y()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,p]}function tx(e,r,t,i,n){Ge(function(){if(e&&r&&t){let l=function(){i(),n()};var o=r,a=t,s=Ol(o),f=Ol(a),d=ti(a),c=new Set([d].concat(ge(s),ge(f)));return c.forEach(function(u){u.addEventListener("scroll",l,{passive:!0})}),d.addEventListener("resize",l,{passive:!0}),i(),function(){c.forEach(function(u){u.removeEventListener("scroll",l),d.removeEventListener("resize",l)})}}},[e,r,t])}function rx(e,r,t,i,n,o,a,s){var f=M.useRef(e);f.current=e;var d=M.useRef(!1);M.useEffect(function(){if(r&&i&&(!n||o)){var l=function(){d.current=!1},u=function(b){var E;f.current&&!a(((E=b.composedPath)===null||E===void 0||(E=E.call(b))===null||E===void 0?void 0:E[0])||b.target)&&!d.current&&s(!1)},h=ti(i);h.addEventListener("pointerdown",l,!0),h.addEventListener("mousedown",u,!0),h.addEventListener("contextmenu",u,!0);var v=Vi(t);if(v&&(v.addEventListener("mousedown",u,!0),v.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var g,p,y=t==null||(g=t.getRootNode)===null||g===void 0?void 0:g.call(t),m=(p=i.getRootNode)===null||p===void 0?void 0:p.call(i);Yr(y===m,"trigger element and popup element should in same shadow root.")}return function(){h.removeEventListener("pointerdown",l,!0),h.removeEventListener("mousedown",u,!0),h.removeEventListener("contextmenu",u,!0),v&&(v.removeEventListener("mousedown",u,!0),v.removeEventListener("contextmenu",u,!0))}}},[r,t,i,n,o]);function c(){d.current=!0}return c}var nx=["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 ix(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lu,r=M.forwardRef(function(t,i){var n=t.prefixCls,o=n===void 0?"rc-trigger-popup":n,a=t.children,s=t.action,f=s===void 0?"hover":s,d=t.showAction,c=t.hideAction,l=t.popupVisible,u=t.defaultPopupVisible,h=t.onPopupVisibleChange,v=t.afterPopupVisibleChange,g=t.mouseEnterDelay,p=t.mouseLeaveDelay,y=p===void 0?.1:p,m=t.focusDelay,x=t.blurDelay,b=t.mask,E=t.maskClosable,S=E===void 0?!0:E,w=t.getPopupContainer,_=t.forceRender,A=t.autoDestroy,R=t.destroyPopupOnHide,C=t.popup,O=t.popupClassName,j=t.popupStyle,k=t.popupPlacement,I=t.builtinPlacements,B=I===void 0?{}:I,V=t.popupAlign,W=t.zIndex,F=t.stretch,$=t.getPopupClassNameFromAlign,N=t.fresh,L=t.alignPoint,q=t.onPopupClick,K=t.onPopupAlign,G=t.arrow,T=t.popupMotion,D=t.maskMotion,H=t.popupTransitionName,U=t.popupAnimation,Y=t.maskTransitionName,ee=t.maskAnimation,ie=t.className,oe=t.getTriggerDOMNode,re=pt(t,nx),ue=A||R||!1,ce=M.useState(!1),he=fe(ce,2),Q=he[0],J=he[1];Ge(function(){J(K1())},[]);var le=M.useRef({}),se=M.useContext(md),ne=M.useMemo(function(){return{registerSubPopup:function(Ee,Ue){le.current[Ee]=Ue,se?.registerSubPopup(Ee,Ue)}}},[se]),de=zp(),ae=M.useState(null),pe=fe(ae,2),_e=pe[0],Me=pe[1],be=M.useRef(null),qe=mt(function(ve){be.current=ve,qn(ve)&&_e!==ve&&Me(ve),se?.registerSubPopup(de,ve)}),Oe=M.useState(null),je=fe(Oe,2),ke=je[0],Te=je[1],Se=M.useRef(null),ze=mt(function(ve){qn(ve)&&ke!==ve&&(Te(ve),Se.current=ve)}),me=M.Children.only(a),xe=me?.props||{},Ze={},Yt=mt(function(ve){var Ee,Ue,rt=ke;return rt?.contains(ve)||((Ee=Vi(rt))===null||Ee===void 0?void 0:Ee.host)===ve||ve===rt||_e?.contains(ve)||((Ue=Vi(_e))===null||Ue===void 0?void 0:Ue.host)===ve||ve===_e||Object.values(le.current).some(function(Xe){return Xe?.contains(ve)||ve===Xe})}),yr=yd(o,T,U,H),Tr=yd(o,D,ee,Y),dn=M.useState(u||!1),kr=fe(dn,2),Pt=kr[0],ct=kr[1],Qe=l??Pt,Xt=mt(function(ve){l===void 0&&ct(ve)});Ge(function(){ct(l||!1)},[l]);var ft=M.useRef(Qe);ft.current=Qe;var Le=M.useRef([]);Le.current=[];var Pe=mt(function(ve){var Ee;Xt(ve),((Ee=Le.current[Le.current.length-1])!==null&&Ee!==void 0?Ee:Qe)!==ve&&(Le.current.push(ve),h?.(ve))}),ot=M.useRef(),qt=function(){clearTimeout(ot.current)},yt=function(Ee){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;qt(),Ue===0?Pe(Ee):ot.current=setTimeout(function(){Pe(Ee)},Ue*1e3)};M.useEffect(function(){return qt},[]);var Ye=M.useState(!1),ar=fe(Ye,2),Zt=ar[0],De=ar[1];Ge(function(ve){(!ve||Qe)&&De(!0)},[Qe]);var Je=M.useState(null),vt=fe(Je,2),dt=vt[0],Vt=vt[1],Pr=M.useState(null),Nt=fe(Pr,2),St=Nt[0],zt=Nt[1],It=function(Ee){zt([Ee.clientX,Ee.clientY])},Nr=ex(Qe,_e,L&&St!==null?St:ke,k,B,V,K),He=fe(Nr,11),br=He[0],ai=He[1],vo=He[2],xr=He[3],si=He[4],mo=He[5],li=He[6],ui=He[7],Er=He[8],wr=He[9],hn=He[10],Sr=X1(Q,f,d,c),pn=fe(Sr,2),Ir=pn[0],Mt=pn[1],sr=Ir.has("click"),lr=Mt.has("click")||Mt.has("contextMenu"),ur=mt(function(){Zt||hn()}),vn=function(){ft.current&&L&&lr&&yt(!1)};tx(Qe,ke,_e,ur,vn),Ge(function(){ur()},[St,k]),Ge(function(){Qe&&!(B!=null&&B[k])&&ur()},[JSON.stringify(V)]);var go=M.useMemo(function(){var ve=J1(B,o,wr,L);return ye(ve,$?.(wr))},[wr,$,B,o,L]);M.useImperativeHandle(i,function(){return{nativeElement:Se.current,popupElement:be.current,forceAlign:ur}});var ci=M.useState(0),fi=fe(ci,2),di=fi[0],yo=fi[1],bo=M.useState(0),hi=fe(bo,2),xo=hi[0],Eo=hi[1],pi=function(){if(F&&ke){var Ee=ke.getBoundingClientRect();yo(Ee.width),Eo(Ee.height)}},wo=function(){pi(),ur()},So=function(Ee){De(!1),hn(),v?.(Ee)},_o=function(){return new Promise(function(Ee){pi(),Vt(function(){return Ee})})};Ge(function(){dt&&(hn(),dt(),Vt(null))},[dt]);function Ht(ve,Ee,Ue,rt){Ze[ve]=function(Xe){var mi;rt?.(Xe),yt(Ee,Ue);for(var Ao=arguments.length,mu=new Array(Ao>1?Ao-1:0),gi=1;gi<Ao;gi++)mu[gi-1]=arguments[gi];(mi=xe[ve])===null||mi===void 0||mi.call.apply(mi,[xe,Xe].concat(mu))}}(sr||lr)&&(Ze.onClick=function(ve){var Ee;ft.current&&lr?yt(!1):!ft.current&&sr&&(It(ve),yt(!0));for(var Ue=arguments.length,rt=new Array(Ue>1?Ue-1:0),Xe=1;Xe<Ue;Xe++)rt[Xe-1]=arguments[Xe];(Ee=xe.onClick)===null||Ee===void 0||Ee.call.apply(Ee,[xe,ve].concat(rt))});var mn=rx(Qe,lr,ke,_e,b,S,Yt,yt),Co=Ir.has("hover"),_t=Mt.has("hover"),Mr,gn;Co&&(Ht("onMouseEnter",!0,g,function(ve){It(ve)}),Ht("onPointerEnter",!0,g,function(ve){It(ve)}),Mr=function(Ee){(Qe||Zt)&&_e!==null&&_e!==void 0&&_e.contains(Ee.target)&&yt(!0,g)},L&&(Ze.onMouseMove=function(ve){var Ee;(Ee=xe.onMouseMove)===null||Ee===void 0||Ee.call(xe,ve)})),_t&&(Ht("onMouseLeave",!1,y),Ht("onPointerLeave",!1,y),gn=function(){yt(!1,y)}),Ir.has("focus")&&Ht("onFocus",!0,m),Mt.has("focus")&&Ht("onBlur",!1,x),Ir.has("contextMenu")&&(Ze.onContextMenu=function(ve){var Ee;ft.current&&Mt.has("contextMenu")?yt(!1):(It(ve),yt(!0)),ve.preventDefault();for(var Ue=arguments.length,rt=new Array(Ue>1?Ue-1:0),Xe=1;Xe<Ue;Xe++)rt[Xe-1]=arguments[Xe];(Ee=xe.onContextMenu)===null||Ee===void 0||Ee.call.apply(Ee,[xe,ve].concat(rt))}),ie&&(Ze.className=ye(xe.className,ie));var Qt=M.useRef(!1);Qt.current||(Qt.current=_||Qe||Zt);var cr=te(te({},xe),Ze),yn={},vi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];vi.forEach(function(ve){re[ve]&&(yn[ve]=function(){for(var Ee,Ue=arguments.length,rt=new Array(Ue),Xe=0;Xe<Ue;Xe++)rt[Xe]=arguments[Xe];(Ee=cr[ve])===null||Ee===void 0||Ee.call.apply(Ee,[cr].concat(rt)),re[ve].apply(re,rt)})});var Oo=M.cloneElement(me,te(te({},cr),yn)),Ro={x:mo,y:li},jo=G?te({},G!==!0?G:{}):null;return M.createElement(M.Fragment,null,M.createElement(ln,{disabled:!Qe,ref:ze,onResize:wo},M.createElement(Wp,{getTriggerDOMNode:oe},Oo)),Qt.current&&M.createElement(md.Provider,{value:ne},M.createElement(Up,{portal:e,ref:qe,prefixCls:o,popup:C,className:ye(O,go),style:j,target:ke,onMouseEnter:Mr,onMouseLeave:gn,onPointerEnter:Mr,zIndex:W,open:Qe,keepDom:Zt,fresh:N,onClick:q,onPointerDownCapture:mn,mask:b,motion:yr,maskMotion:Tr,onVisibleChanged:So,onPrepare:_o,forceRender:_,autoDestroy:ue,getPopupContainer:w,align:wr,arrow:jo,arrowPos:Ro,ready:br,offsetX:ai,offsetY:vo,offsetR:xr,offsetB:si,onAlign:ur,stretch:F,targetWidth:di/ui,targetHeight:xo/Er})))});return process.env.NODE_ENV!=="production"&&(r.displayName="Trigger"),r}const ox=ix(lu);var Dr={shiftX:64,adjustY:1},Br={adjustX:1,shiftY:!0},Rt=[0,0],ax={left:{points:["cr","cl"],overflow:Br,offset:[-4,0],targetOffset:Rt},right:{points:["cl","cr"],overflow:Br,offset:[4,0],targetOffset:Rt},top:{points:["bc","tc"],overflow:Dr,offset:[0,-4],targetOffset:Rt},bottom:{points:["tc","bc"],overflow:Dr,offset:[0,4],targetOffset:Rt},topLeft:{points:["bl","tl"],overflow:Dr,offset:[0,-4],targetOffset:Rt},leftTop:{points:["tr","tl"],overflow:Br,offset:[-4,0],targetOffset:Rt},topRight:{points:["br","tr"],overflow:Dr,offset:[0,-4],targetOffset:Rt},rightTop:{points:["tl","tr"],overflow:Br,offset:[4,0],targetOffset:Rt},bottomRight:{points:["tr","br"],overflow:Dr,offset:[0,4],targetOffset:Rt},rightBottom:{points:["bl","br"],overflow:Br,offset:[4,0],targetOffset:Rt},bottomLeft:{points:["tl","bl"],overflow:Dr,offset:[0,4],targetOffset:Rt},leftBottom:{points:["br","bl"],overflow:Br,offset:[-4,0],targetOffset:Rt}},sx=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],lx=function(r,t){var i=r.overlayClassName,n=r.trigger,o=n===void 0?["hover"]:n,a=r.mouseEnterDelay,s=a===void 0?0:a,f=r.mouseLeaveDelay,d=f===void 0?.1:f,c=r.overlayStyle,l=r.prefixCls,u=l===void 0?"rc-tooltip":l,h=r.children,v=r.onVisibleChange,g=r.afterVisibleChange,p=r.transitionName,y=r.animation,m=r.motion,x=r.placement,b=x===void 0?"right":x,E=r.align,S=E===void 0?{}:E,w=r.destroyTooltipOnHide,_=w===void 0?!1:w,A=r.defaultVisible,R=r.getTooltipContainer,C=r.overlayInnerStyle;r.arrowContent;var O=r.overlay,j=r.id,k=r.showArrow,I=k===void 0?!0:k,B=r.classNames,V=r.styles,W=pt(r,sx),F=zp(j),$=z.useRef(null);z.useImperativeHandle(t,function(){return $.current});var N=te({},W);"visible"in r&&(N.popupVisible=r.visible);var L=function(){return M.createElement(qp,{key:"content",prefixCls:u,id:F,bodyClassName:B?.body,overlayInnerStyle:te(te({},C),V?.body)},O)},q=function(){var G=M.Children.only(h),T=G?.props||{},D=te(te({},T),{},{"aria-describedby":O?F:null});return M.cloneElement(h,D)};return M.createElement(ox,Ve({popupClassName:ye(i,B?.root),prefixCls:u,popup:L,action:o,builtinPlacements:ax,popupPlacement:b,ref:$,popupAlign:S,getPopupContainer:R,onPopupVisibleChange:v,afterPopupVisibleChange:g,popupTransitionName:p,popupAnimation:y,popupMotion:m,defaultPopupVisible:A,autoDestroy:_,mouseLeaveDelay:d,popupStyle:te(te({},c),V?.root),mouseEnterDelay:s,arrow:I},N),q())};const ux=z.forwardRef(lx);function Kp(e,r){this.v=e,this.k=r}function ht(e,r,t,i){var n=Object.defineProperty;try{n({},"",{})}catch{n=0}ht=function(a,s,f,d){function c(l,u){ht(a,l,function(h){return this._invoke(l,u,h)})}s?n?n(a,s,{value:f,enumerable:!d,configurable:!d,writable:!d}):a[s]=f:(c("next",0),c("throw",1),c("return",2))},ht(e,r,t,i)}function uu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,t=typeof Symbol=="function"?Symbol:{},i=t.iterator||"@@iterator",n=t.toStringTag||"@@toStringTag";function o(h,v,g,p){var y=v&&v.prototype instanceof s?v:s,m=Object.create(y.prototype);return ht(m,"_invoke",(function(x,b,E){var S,w,_,A=0,R=E||[],C=!1,O={p:0,n:0,v:e,a:j,f:j.bind(e,4),d:function(I,B){return S=I,w=0,_=e,O.n=B,a}};function j(k,I){for(w=k,_=I,r=0;!C&&A&&!B&&r<R.length;r++){var B,V=R[r],W=O.p,F=V[2];k>3?(B=F===I)&&(_=V[(w=V[4])?5:(w=3,3)],V[4]=V[5]=e):V[0]<=W&&((B=k<2&&W<V[1])?(w=0,O.v=I,O.n=V[1]):W<F&&(B=k<3||V[0]>I||I>F)&&(V[4]=k,V[5]=I,O.n=F,w=0))}if(B||k>1)return a;throw C=!0,I}return function(k,I,B){if(A>1)throw TypeError("Generator is already running");for(C&&I===1&&j(I,B),w=I,_=B;(r=w<2?e:_)||!C;){S||(w?w<3?(w>1&&(O.n=-1),j(w,_)):O.n=_:O.v=_);try{if(A=2,S){if(w||(k="next"),r=S[k]){if(!(r=r.call(S,_)))throw TypeError("iterator result is not an object");if(!r.done)return r;_=r.value,w<2&&(w=0)}else w===1&&(r=S.return)&&r.call(S),w<2&&(_=TypeError("The iterator does not provide a '"+k+"' method"),w=1);S=e}else if((r=(C=O.n<0)?_:x.call(b,O))!==a)break}catch(V){S=e,w=1,_=V}finally{A=1}}return{value:r,done:C}}})(h,g,p),!0),m}var a={};function s(){}function f(){}function d(){}r=Object.getPrototypeOf;var c=[][i]?r(r([][i]())):(ht(r={},i,function(){return this}),r),l=d.prototype=s.prototype=Object.create(c);function u(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,d):(h.__proto__=d,ht(h,n,"GeneratorFunction")),h.prototype=Object.create(l),h}return f.prototype=d,ht(l,"constructor",d),ht(d,"constructor",f),f.displayName="GeneratorFunction",ht(d,n,"GeneratorFunction"),ht(l),ht(l,n,"Generator"),ht(l,i,function(){return this}),ht(l,"toString",function(){return"[object Generator]"}),(uu=function(){return{w:o,m:u}})()}function Ki(e,r){function t(n,o,a,s){try{var f=e[n](o),d=f.value;return d instanceof Kp?r.resolve(d.v).then(function(c){t("next",c,a,s)},function(c){t("throw",c,a,s)}):r.resolve(d).then(function(c){f.value=c,a(f)},function(c){return t("throw",c,a,s)})}catch(c){s(c)}}var i;this.next||(ht(Ki.prototype),ht(Ki.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ht(this,"_invoke",function(n,o,a){function s(){return new r(function(f,d){t(n,a,f,d)})}return i=i?i.then(s,s):s()},!0)}function Gp(e,r,t,i,n){return new Ki(uu().w(e,r,t,i),n||Promise)}function cx(e,r,t,i,n){var o=Gp(e,r,t,i,n);return o.next().then(function(a){return a.done?a.value:o.next()})}function fx(e){var r=Object(e),t=[];for(var i in r)t.unshift(i);return function n(){for(;t.length;)if((i=t.pop())in r)return n.value=i,n.done=!1,n;return n.done=!0,n}}function Sd(e){if(e!=null){var r=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],t=0;if(r)return r.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(we(e)+" is not iterable")}function Tt(){var e=uu(),r=e.m(Tt),t=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function i(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===t||(s.displayName||s.name)==="GeneratorFunction")}var n={throw:1,return:2,break:3,continue:3};function o(a){var s,f;return function(d){s||(s={stop:function(){return f(d.a,2)},catch:function(){return d.v},abrupt:function(l,u){return f(d.a,n[l],u)},delegateYield:function(l,u,h){return s.resultName=u,f(d.d,Sd(l),h)},finish:function(l){return f(d.f,l)}},f=function(l,u,h){d.p=s.prev,d.n=s.next;try{return l(u,h)}finally{s.next=d.n}}),s.resultName&&(s[s.resultName]=d.v,s.resultName=void 0),s.sent=d.v,s.next=d.n;try{return a.call(this,s)}finally{d.p=s.prev,d.n=s.next}}}return(Tt=function(){return{wrap:function(f,d,c,l){return e.w(o(f),d,c,l&&l.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(f,d){return new Kp(f,d)},AsyncIterator:Ki,async:function(f,d,c,l,u){return(i(d)?Gp:cx)(o(f),d,c,l,u)},keys:fx,values:Sd}})()}function _d(e,r,t,i,n,o,a){try{var s=e[o](a),f=s.value}catch(d){return void t(d)}s.done?r(f):Promise.resolve(f).then(i,n)}function ri(e){return function(){var r=this,t=arguments;return new Promise(function(i,n){var o=e.apply(r,t);function a(f){_d(o,i,n,a,s,"next",f)}function s(f){_d(o,i,n,a,s,"throw",f)}a(void 0)})}}var Or="RC_FORM_INTERNAL_HOOKS",Be=function(){Ke(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},on=M.createContext({getFieldValue:Be,getFieldsValue:Be,getFieldError:Be,getFieldWarning:Be,getFieldsError:Be,isFieldsTouched:Be,isFieldTouched:Be,isFieldValidating:Be,isFieldsValidating:Be,resetFields:Be,setFields:Be,setFieldValue:Be,setFieldsValue:Be,validateFields:Be,submit:Be,getInternalHooks:function(){return Be(),{dispatch:Be,initEntityValue:Be,registerField:Be,useSubscribe:Be,setInitialValues:Be,destroyForm:Be,setCallbacks:Be,registerWatch:Be,getFields:Be,setValidateMessages:Be,setPreserve:Be,getInitialValue:Be}}}),Gi=M.createContext(null);function Rl(e){return e==null?[]:Array.isArray(e)?e:[e]}function dx(e){return e&&!!e._init}function jl(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var Al=jl();function hx(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function px(e,r,t){if(Ql())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,r);var n=new(e.bind.apply(e,i));return t&&Vn(n,t.prototype),n}function Tl(e){var r=typeof Map=="function"?new Map:void 0;return Tl=function(i){if(i===null||!hx(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(i))return r.get(i);r.set(i,n)}function n(){return px(i,arguments,zn(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Vn(n,i)},Tl(e)}var vx=/%[sdj%]/g,Yp=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Yp=function(r,t){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&t.every(function(i){return typeof i=="string"})&&console.warn(r,t)});function kl(e){if(!e||!e.length)return null;var r={};return e.forEach(function(t){var i=t.field;r[i]=r[i]||[],r[i].push(t)}),r}function wt(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),i=1;i<r;i++)t[i-1]=arguments[i];var n=0,o=t.length;if(typeof e=="function")return e.apply(null,t);if(typeof e=="string"){var a=e.replace(vx,function(s){if(s==="%%")return"%";if(n>=o)return s;switch(s){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function mx(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function it(e,r){return!!(e==null||r==="array"&&Array.isArray(e)&&!e.length||mx(r)&&typeof e=="string"&&!e)}function gx(e,r,t){var i=[],n=0,o=e.length;function a(s){i.push.apply(i,ge(s||[])),n++,n===o&&t(i)}e.forEach(function(s){r(s,a)})}function Cd(e,r,t){var i=0,n=e.length;function o(a){if(a&&a.length){t(a);return}var s=i;i=i+1,s<n?r(e[s],o):t([])}o([])}function yx(e){var r=[];return Object.keys(e).forEach(function(t){r.push.apply(r,ge(e[t]||[]))}),r}var Od=(function(e){mr(t,e);var r=gr(t);function t(i,n){var o;return lt(this,t),o=r.call(this,"Async Validation Error"),Z(Re(o),"errors",void 0),Z(Re(o),"fields",void 0),o.errors=i,o.fields=n,o}return ut(t)})(Tl(Error));function bx(e,r,t,i,n){if(r.first){var o=new Promise(function(u,h){var v=function(y){return i(y),y.length?h(new Od(y,kl(y))):u(n)},g=yx(e);Cd(g,t,v)});return o.catch(function(u){return u}),o}var a=r.firstFields===!0?Object.keys(e):r.firstFields||[],s=Object.keys(e),f=s.length,d=0,c=[],l=new Promise(function(u,h){var v=function(p){if(c.push.apply(c,p),d++,d===f)return i(c),c.length?h(new Od(c,kl(c))):u(n)};s.length||(i(c),u(n)),s.forEach(function(g){var p=e[g];a.indexOf(g)!==-1?Cd(p,t,v):gx(p,t,v)})});return l.catch(function(u){return u}),l}function xx(e){return!!(e&&e.message!==void 0)}function Ex(e,r){for(var t=e,i=0;i<r.length;i++){if(t==null)return t;t=t[r[i]]}return t}function Rd(e,r){return function(t){var i;return e.fullFields?i=Ex(r,e.fullFields):i=r[t.field||e.fullField],xx(t)?(t.field=t.field||e.fullField,t.fieldValue=i,t):{message:typeof t=="function"?t():t,fieldValue:i,field:t.field||e.fullField}}}function jd(e,r){if(r){for(var t in r)if(r.hasOwnProperty(t)){var i=r[t];we(i)==="object"&&we(e[t])==="object"?e[t]=te(te({},e[t]),i):e[t]=i}}return e}var qr="enum",wx=function(r,t,i,n,o){r[qr]=Array.isArray(r[qr])?r[qr]:[],r[qr].indexOf(t)===-1&&n.push(wt(o.messages[qr],r.fullField,r[qr].join(", ")))},Sx=function(r,t,i,n,o){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(t)||n.push(wt(o.messages.pattern.mismatch,r.fullField,t,r.pattern));else if(typeof r.pattern=="string"){var a=new RegExp(r.pattern);a.test(t)||n.push(wt(o.messages.pattern.mismatch,r.fullField,t,r.pattern))}}},_x=function(r,t,i,n,o){var a=typeof r.len=="number",s=typeof r.min=="number",f=typeof r.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,l=null,u=typeof t=="number",h=typeof t=="string",v=Array.isArray(t);if(u?l="number":h?l="string":v&&(l="array"),!l)return!1;v&&(c=t.length),h&&(c=t.replace(d,"_").length),a?c!==r.len&&n.push(wt(o.messages[l].len,r.fullField,r.len)):s&&!f&&c<r.min?n.push(wt(o.messages[l].min,r.fullField,r.min)):f&&!s&&c>r.max?n.push(wt(o.messages[l].max,r.fullField,r.max)):s&&f&&(c<r.min||c>r.max)&&n.push(wt(o.messages[l].range,r.fullField,r.min,r.max))},Xp=function(r,t,i,n,o,a){r.required&&(!i.hasOwnProperty(r.field)||it(t,a||r.type))&&n.push(wt(o.messages.required,r.fullField))},Ri;const Cx=(function(){if(Ri)return Ri;var e="[a-fA-F\\d:]",r=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",n=["(?:".concat(i,":){7}(?:").concat(i,"|:)"),"(?:".concat(i,":){6}(?:").concat(t,"|:").concat(i,"|:)"),"(?:".concat(i,":){5}(?::").concat(t,"|(?::").concat(i,"){1,2}|:)"),"(?:".concat(i,":){4}(?:(?::").concat(i,"){0,1}:").concat(t,"|(?::").concat(i,"){1,3}|:)"),"(?:".concat(i,":){3}(?:(?::").concat(i,"){0,2}:").concat(t,"|(?::").concat(i,"){1,4}|:)"),"(?:".concat(i,":){2}(?:(?::").concat(i,"){0,3}:").concat(t,"|(?::").concat(i,"){1,5}|:)"),"(?:".concat(i,":){1}(?:(?::").concat(i,"){0,4}:").concat(t,"|(?::").concat(i,"){1,6}|:)"),"(?::(?:(?::".concat(i,"){0,5}:").concat(t,"|(?::").concat(i,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(n.join("|"),")").concat(o),s=new RegExp("(?:^".concat(t,"$)|(?:^").concat(a,"$)")),f=new RegExp("^".concat(t,"$")),d=new RegExp("^".concat(a,"$")),c=function(S){return S&&S.exact?s:new RegExp("(?:".concat(r(S)).concat(t).concat(r(S),")|(?:").concat(r(S)).concat(a).concat(r(S),")"),"g")};c.v4=function(E){return E&&E.exact?f:new RegExp("".concat(r(E)).concat(t).concat(r(E)),"g")},c.v6=function(E){return E&&E.exact?d:new RegExp("".concat(r(E)).concat(a).concat(r(E)),"g")};var l="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",h=c.v4().source,v=c.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',b="(?:".concat(l,"|www\\.)").concat(u,"(?:localhost|").concat(h,"|").concat(v,"|").concat(g).concat(p).concat(y,")").concat(m).concat(x);return Ri=new RegExp("(?:^".concat(b,"$)"),"i"),Ri});var Ad={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Pn={integer:function(r){return Pn.number(r)&&parseInt(r,10)===r},float:function(r){return Pn.number(r)&&!Pn.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return we(r)==="object"&&!Pn.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(Ad.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(Cx())},hex:function(r){return typeof r=="string"&&!!r.match(Ad.hex)}},Ox=function(r,t,i,n,o){if(r.required&&t===void 0){Xp(r,t,i,n,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=r.type;a.indexOf(s)>-1?Pn[s](t)||n.push(wt(o.messages.types[s],r.fullField,r.type)):s&&we(t)!==r.type&&n.push(wt(o.messages.types[s],r.fullField,r.type))},Rx=function(r,t,i,n,o){(/^\s+$/.test(t)||t==="")&&n.push(wt(o.messages.whitespace,r.fullField))};const Ae={required:Xp,whitespace:Rx,type:Ox,range:_x,enum:wx,pattern:Sx};var jx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o)}i(a)},Ax=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(t==null&&!r.required)return i();Ae.required(r,t,n,a,o,"array"),t!=null&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},Tx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae.type(r,t,n,a,o)}i(a)},kx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t,"date")&&!r.required)return i();if(Ae.required(r,t,n,a,o),!it(t,"date")){var f;t instanceof Date?f=t:f=new Date(t),Ae.type(r,f,n,a,o),f&&Ae.range(r,f.getTime(),n,a,o)}}i(a)},Px="enum",Nx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae[Px](r,t,n,a,o)}i(a)},Ix=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},Mx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},Lx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae.type(r,t,n,a,o)}i(a)},Fx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(t===""&&(t=void 0),it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},$x=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae.type(r,t,n,a,o)}i(a)},Dx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t,"string")&&!r.required)return i();Ae.required(r,t,n,a,o),it(t,"string")||Ae.pattern(r,t,n,a,o)}i(a)},Bx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),it(t)||Ae.type(r,t,n,a,o)}i(a)},qx=function(r,t,i,n,o){var a=[],s=Array.isArray(t)?"array":we(t);Ae.required(r,t,n,a,o,s),i(a)},Vx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t,"string")&&!r.required)return i();Ae.required(r,t,n,a,o,"string"),it(t,"string")||(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o),Ae.pattern(r,t,n,a,o),r.whitespace===!0&&Ae.whitespace(r,t,n,a,o))}i(a)},js=function(r,t,i,n,o){var a=r.type,s=[],f=r.required||!r.required&&n.hasOwnProperty(r.field);if(f){if(it(t,a)&&!r.required)return i();Ae.required(r,t,n,s,o,a),it(t,a)||Ae.type(r,t,n,s,o)}i(s)};const Fn={string:Vx,method:Lx,number:Fx,boolean:Tx,regexp:Bx,integer:Mx,float:Ix,array:Ax,object:$x,enum:Nx,pattern:Dx,date:kx,url:js,hex:js,email:js,required:qx,any:jx};var ni=(function(){function e(r){lt(this,e),Z(this,"rules",null),Z(this,"_messages",Al),this.define(r)}return ut(e,[{key:"define",value:function(t){var i=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(we(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(n){var o=t[n];i.rules[n]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(t){return t&&(this._messages=jd(jl(),t)),this._messages}},{key:"validate",value:function(t){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,s=n,f=o;if(typeof s=="function"&&(f=s,s={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,a),Promise.resolve(a);function d(v){var g=[],p={};function y(x){if(Array.isArray(x)){var b;g=(b=g).concat.apply(b,ge(x))}else g.push(x)}for(var m=0;m<v.length;m++)y(v[m]);g.length?(p=kl(g),f(g,p)):f(null,a)}if(s.messages){var c=this.messages();c===Al&&(c=jl()),jd(c,s.messages),s.messages=c}else s.messages=this.messages();var l={},u=s.keys||Object.keys(this.rules);u.forEach(function(v){var g=i.rules[v],p=a[v];g.forEach(function(y){var m=y;typeof m.transform=="function"&&(a===t&&(a=te({},a)),p=a[v]=m.transform(p),p!=null&&(m.type=m.type||(Array.isArray(p)?"array":we(p)))),typeof m=="function"?m={validator:m}:m=te({},m),m.validator=i.getValidationMethod(m),m.validator&&(m.field=v,m.fullField=m.fullField||v,m.type=i.getType(m),l[v]=l[v]||[],l[v].push({rule:m,value:p,source:a,field:v}))})});var h={};return bx(l,s,function(v,g){var p=v.rule,y=(p.type==="object"||p.type==="array")&&(we(p.fields)==="object"||we(p.defaultField)==="object");y=y&&(p.required||!p.required&&v.value),p.field=v.field;function m(w,_){return te(te({},_),{},{fullField:"".concat(p.fullField,".").concat(w),fullFields:p.fullFields?[].concat(ge(p.fullFields),[w]):[w]})}function x(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_=Array.isArray(w)?w:[w];!s.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&p.message!==void 0&&(_=[].concat(p.message));var A=_.map(Rd(p,a));if(s.first&&A.length)return h[p.field]=1,g(A);if(!y)g(A);else{if(p.required&&!v.value)return p.message!==void 0?A=[].concat(p.message).map(Rd(p,a)):s.error&&(A=[s.error(p,wt(s.messages.required,p.field))]),g(A);var R={};p.defaultField&&Object.keys(v.value).map(function(j){R[j]=p.defaultField}),R=te(te({},R),v.rule.fields);var C={};Object.keys(R).forEach(function(j){var k=R[j],I=Array.isArray(k)?k:[k];C[j]=I.map(m.bind(null,j))});var O=new e(C);O.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),O.validate(v.value,v.rule.options||s,function(j){var k=[];A&&A.length&&k.push.apply(k,ge(A)),j&&j.length&&k.push.apply(k,ge(j)),g(k.length?k:null)})}}var b;if(p.asyncValidator)b=p.asyncValidator(p,v.value,x,v.source,s);else if(p.validator){try{b=p.validator(p,v.value,x,v.source,s)}catch(w){var E,S;(E=(S=console).error)===null||E===void 0||E.call(S,w),s.suppressValidatorError||setTimeout(function(){throw w},0),x(w.message)}b===!0?x():b===!1?x(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):b instanceof Array?x(b):b instanceof Error&&x(b.message)}b&&b.then&&b.then(function(){return x()},function(w){return x(w)})},function(v){d(v)},a)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Fn.hasOwnProperty(t.type))throw new Error(wt("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var i=Object.keys(t),n=i.indexOf("message");return n!==-1&&i.splice(n,1),i.length===1&&i[0]==="required"?Fn.required:Fn[this.getType(t)]||void 0}}]),e})();Z(ni,"register",function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Fn[r]=t});Z(ni,"warning",Yp);Z(ni,"messages",Al);Z(ni,"validators",Fn);var xt="'${name}' is not a valid ${type}",Zp={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:xt,method:xt,array:xt,object:xt,number:xt,date:xt,boolean:xt,integer:xt,float:xt,regexp:xt,email:xt,url:xt,hex:xt},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Td=ni;function zx(e,r){return e.replace(/\\?\$\{\w+\}/g,function(t){if(t.startsWith("\\"))return t.slice(1);var i=t.slice(2,-1);return r[i]})}var kd="CODE_LOGIC_ERROR";function Pl(e,r,t,i,n){return Nl.apply(this,arguments)}function Nl(){return Nl=ri(Tt().mark(function e(r,t,i,n,o){var a,s,f,d,c,l,u,h,v;return Tt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=te({},i),delete a.ruleIndex,Td.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(kd)}}),f=null,a&&a.type==="array"&&a.defaultField&&(f=a.defaultField,delete a.defaultField),d=new Td(Z({},r,[a])),c=zr(Zp,n.validateMessages),d.messages(c),l=[],p.prev=10,p.next=13,Promise.resolve(d.validate(Z({},r,t),te({},n)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(l=p.t0.errors.map(function(y,m){var x=y.message,b=x===kd?c.default:x;return M.isValidElement(b)?M.cloneElement(b,{key:"error_".concat(m)}):b}));case 18:if(!(!l.length&&f)){p.next=23;break}return p.next=21,Promise.all(t.map(function(y,m){return Pl("".concat(r,".").concat(m),y,f,n,o)}));case 21:return u=p.sent,p.abrupt("return",u.reduce(function(y,m){return[].concat(ge(y),ge(m))},[]));case 23:return h=te(te({},i),{},{name:r,enum:(i.enum||[]).join(", ")},o),v=l.map(function(y){return typeof y=="string"?zx(y,h):y}),p.abrupt("return",v);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),Nl.apply(this,arguments)}function Hx(e,r,t,i,n,o){var a=e.join("."),s=t.map(function(c,l){var u=c.validator,h=te(te({},c),{},{ruleIndex:l});return u&&(h.validator=function(v,g,p){var y=!1,m=function(){for(var E=arguments.length,S=new Array(E),w=0;w<E;w++)S[w]=arguments[w];Promise.resolve().then(function(){Ke(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||p.apply(void 0,S)})},x=u(v,g,m);y=x&&typeof x.then=="function"&&typeof x.catch=="function",Ke(y,"`callback` is deprecated. Please return a promise instead."),y&&x.then(function(){p()}).catch(function(b){p(b||" ")})}),h}).sort(function(c,l){var u=c.warningOnly,h=c.ruleIndex,v=l.warningOnly,g=l.ruleIndex;return!!u==!!v?h-g:u?1:-1}),f;if(n===!0)f=new Promise((function(){var c=ri(Tt().mark(function l(u,h){var v,g,p;return Tt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:v=0;case 1:if(!(v<s.length)){m.next=12;break}return g=s[v],m.next=5,Pl(a,r,g,i,o);case 5:if(p=m.sent,!p.length){m.next=9;break}return h([{errors:p,rule:g}]),m.abrupt("return");case 9:v+=1,m.next=1;break;case 12:u([]);case 13:case"end":return m.stop()}},l)}));return function(l,u){return c.apply(this,arguments)}})());else{var d=s.map(function(c){return Pl(a,r,c,i,o).then(function(l){return{errors:l,rule:c}})});f=(n?Wx(d):Ux(d)).then(function(c){return Promise.reject(c)})}return f.catch(function(c){return c}),f}function Ux(e){return Il.apply(this,arguments)}function Il(){return Il=ri(Tt().mark(function e(r){return Tt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.all(r).then(function(n){var o,a=(o=[]).concat.apply(o,ge(n));return a}));case 1:case"end":return i.stop()}},e)})),Il.apply(this,arguments)}function Wx(e){return Ml.apply(this,arguments)}function Ml(){return Ml=ri(Tt().mark(function e(r){var t;return Tt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t=0,n.abrupt("return",new Promise(function(o){r.forEach(function(a){a.then(function(s){s.errors.length&&o([s]),t+=1,t===r.length&&o([])})})}));case 2:case"end":return n.stop()}},e)})),Ml.apply(this,arguments)}function et(e){return Rl(e)}function Pd(e,r){var t={};return r.forEach(function(i){var n=Wt(e,i);t=Ft(t,i,n)}),t}function Kr(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(i){return Qp(r,i,t)})}function Qp(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!r||!t&&e.length!==r.length?!1:r.every(function(i,n){return e[n]===i})}function Kx(e,r){if(e===r)return!0;if(!e&&r||e&&!r||!e||!r||we(e)!=="object"||we(r)!=="object")return!1;var t=Object.keys(e),i=Object.keys(r),n=new Set([].concat(t,i));return ge(n).every(function(o){var a=e[o],s=r[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function Gx(e){var r=arguments.length<=1?void 0:arguments[1];return r&&r.target&&we(r.target)==="object"&&e in r.target?r.target[e]:r}function Nd(e,r,t){var i=e.length;if(r<0||r>=i||t<0||t>=i)return e;var n=e[r],o=r-t;return o>0?[].concat(ge(e.slice(0,t)),[n],ge(e.slice(t,r)),ge(e.slice(r+1,i))):o<0?[].concat(ge(e.slice(0,r)),ge(e.slice(r+1,t+1)),[n],ge(e.slice(t+1,i))):e}var Yx=["name"],jt=[];function As(e,r,t,i,n,o){return typeof e=="function"?e(r,t,"source"in o?{source:o.source}:{}):i!==n}var cu=(function(e){mr(t,e);var r=gr(t);function t(i){var n;if(lt(this,t),n=r.call(this,i),Z(Re(n),"state",{resetCount:0}),Z(Re(n),"cancelRegisterFunc",null),Z(Re(n),"mounted",!1),Z(Re(n),"touched",!1),Z(Re(n),"dirty",!1),Z(Re(n),"validatePromise",void 0),Z(Re(n),"prevValidating",void 0),Z(Re(n),"errors",jt),Z(Re(n),"warnings",jt),Z(Re(n),"cancelRegister",function(){var f=n.props,d=f.preserve,c=f.isListField,l=f.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(c,d,et(l)),n.cancelRegisterFunc=null}),Z(Re(n),"getNamePath",function(){var f=n.props,d=f.name,c=f.fieldContext,l=c.prefixName,u=l===void 0?[]:l;return d!==void 0?[].concat(ge(u),ge(d)):[]}),Z(Re(n),"getRules",function(){var f=n.props,d=f.rules,c=d===void 0?[]:d,l=f.fieldContext;return c.map(function(u){return typeof u=="function"?u(l):u})}),Z(Re(n),"refresh",function(){n.mounted&&n.setState(function(f){var d=f.resetCount;return{resetCount:d+1}})}),Z(Re(n),"metaCache",null),Z(Re(n),"triggerMetaEvent",function(f){var d=n.props.onMetaChange;if(d){var c=te(te({},n.getMeta()),{},{destroy:f});ul(n.metaCache,c)||d(c),n.metaCache=c}else n.metaCache=null}),Z(Re(n),"onStoreChange",function(f,d,c){var l=n.props,u=l.shouldUpdate,h=l.dependencies,v=h===void 0?[]:h,g=l.onReset,p=c.store,y=n.getNamePath(),m=n.getValue(f),x=n.getValue(p),b=d&&Kr(d,y);switch(c.type==="valueUpdate"&&c.source==="external"&&!ul(m,x)&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=jt,n.warnings=jt,n.triggerMetaEvent()),c.type){case"reset":if(!d||b){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=jt,n.warnings=jt,n.triggerMetaEvent(),g?.(),n.refresh();return}break;case"remove":{if(u&&As(u,f,p,m,x,c)){n.reRender();return}break}case"setField":{var E=c.data;if(b){"touched"in E&&(n.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(n.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(n.errors=E.errors||jt),"warnings"in E&&(n.warnings=E.warnings||jt),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}else if("value"in E&&Kr(d,y,!0)){n.reRender();return}if(u&&!y.length&&As(u,f,p,m,x,c)){n.reRender();return}break}case"dependenciesUpdate":{var S=v.map(et);if(S.some(function(w){return Kr(c.relatedFields,w)})){n.reRender();return}break}default:if(b||(!v.length||y.length||u)&&As(u,f,p,m,x,c)){n.reRender();return}break}u===!0&&n.reRender()}),Z(Re(n),"validateRules",function(f){var d=n.getNamePath(),c=n.getValue(),l=f||{},u=l.triggerName,h=l.validateOnly,v=h===void 0?!1:h,g=Promise.resolve().then(ri(Tt().mark(function p(){var y,m,x,b,E,S,w;return Tt().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(n.mounted){A.next=2;break}return A.abrupt("return",[]);case 2:if(y=n.props,m=y.validateFirst,x=m===void 0?!1:m,b=y.messageVariables,E=y.validateDebounce,S=n.getRules(),u&&(S=S.filter(function(R){return R}).filter(function(R){var C=R.validateTrigger;if(!C)return!0;var O=Rl(C);return O.includes(u)})),!(E&&u)){A.next=10;break}return A.next=8,new Promise(function(R){setTimeout(R,E)});case 8:if(n.validatePromise===g){A.next=10;break}return A.abrupt("return",[]);case 10:return w=Hx(d,c,S,f,x,b),w.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jt;if(n.validatePromise===g){var C;n.validatePromise=null;var O=[],j=[];(C=R.forEach)===null||C===void 0||C.call(R,function(k){var I=k.rule.warningOnly,B=k.errors,V=B===void 0?jt:B;I?j.push.apply(j,ge(V)):O.push.apply(O,ge(V))}),n.errors=O,n.warnings=j,n.triggerMetaEvent(),n.reRender()}}),A.abrupt("return",w);case 13:case"end":return A.stop()}},p)})));return v||(n.validatePromise=g,n.dirty=!0,n.errors=jt,n.warnings=jt,n.triggerMetaEvent(),n.reRender()),g}),Z(Re(n),"isFieldValidating",function(){return!!n.validatePromise}),Z(Re(n),"isFieldTouched",function(){return n.touched}),Z(Re(n),"isFieldDirty",function(){if(n.dirty||n.props.initialValue!==void 0)return!0;var f=n.props.fieldContext,d=f.getInternalHooks(Or),c=d.getInitialValue;return c(n.getNamePath())!==void 0}),Z(Re(n),"getErrors",function(){return n.errors}),Z(Re(n),"getWarnings",function(){return n.warnings}),Z(Re(n),"isListField",function(){return n.props.isListField}),Z(Re(n),"isList",function(){return n.props.isList}),Z(Re(n),"isPreserve",function(){return n.props.preserve}),Z(Re(n),"getMeta",function(){n.prevValidating=n.isFieldValidating();var f={touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:n.validatePromise===null};return f}),Z(Re(n),"getOnlyChild",function(f){if(typeof f=="function"){var d=n.getMeta();return te(te({},n.getOnlyChild(f(n.getControlled(),d,n.props.fieldContext))),{},{isFunction:!0})}var c=Xr(f);return c.length!==1||!M.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),Z(Re(n),"getValue",function(f){var d=n.props.fieldContext.getFieldsValue,c=n.getNamePath();return Wt(f||d(!0),c)}),Z(Re(n),"getControlled",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=n.props,c=d.name,l=d.trigger,u=d.validateTrigger,h=d.getValueFromEvent,v=d.normalize,g=d.valuePropName,p=d.getValueProps,y=d.fieldContext,m=u!==void 0?u:y.validateTrigger,x=n.getNamePath(),b=y.getInternalHooks,E=y.getFieldsValue,S=b(Or),w=S.dispatch,_=n.getValue(),A=p||function(k){return Z({},g,k)},R=f[l],C=c!==void 0?A(_):{};process.env.NODE_ENV!=="production"&&C&&Object.keys(C).forEach(function(k){Ke(typeof C[k]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(k,")"))});var O=te(te({},f),C);O[l]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var k,I=arguments.length,B=new Array(I),V=0;V<I;V++)B[V]=arguments[V];h?k=h.apply(void 0,B):k=Gx.apply(void 0,[g].concat(B)),v&&(k=v(k,_,E(!0))),k!==_&&w({type:"updateValue",namePath:x,value:k}),R&&R.apply(void 0,B)};var j=Rl(m||[]);return j.forEach(function(k){var I=O[k];O[k]=function(){I&&I.apply(void 0,arguments);var B=n.props.rules;B&&B.length&&w({type:"validateField",namePath:x,triggerName:k})}}),O}),i.fieldContext){var o=i.fieldContext.getInternalHooks,a=o(Or),s=a.initEntityValue;s(Re(n))}return n}return ut(t,[{key:"componentDidMount",value:function(){var n=this.props,o=n.shouldUpdate,a=n.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,f=s(Or),d=f.registerField;this.cancelRegisterFunc=d(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var n=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,f=a.isFunction,d;return f?d=s:M.isValidElement(s)?d=M.cloneElement(s,this.getControlled(s.props)):(Ke(!s,"`children` of Field is not validate ReactElement."),d=s),M.createElement(M.Fragment,{key:n},d)}}]),t})(M.Component);Z(cu,"contextType",on);Z(cu,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Jp(e){var r,t=e.name,i=pt(e,Yx),n=M.useContext(on),o=M.useContext(Gi),a=t!==void 0?et(t):void 0,s=(r=i.isListField)!==null&&r!==void 0?r:!!o,f="keep";return s||(f="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&i.preserve===!1&&s&&a.length<=1&&Ke(!1,"`preserve` should not apply on Form.List fields."),M.createElement(cu,Ve({key:f,name:a,isListField:s},i,{fieldContext:n}))}function Xx(e){var r=e.name,t=e.initialValue,i=e.children,n=e.rules,o=e.validateTrigger,a=e.isListField,s=M.useContext(on),f=M.useContext(Gi),d=M.useRef({keys:[],id:0}),c=d.current,l=M.useMemo(function(){var g=et(s.prefixName)||[];return[].concat(ge(g),ge(et(r)))},[s.prefixName,r]),u=M.useMemo(function(){return te(te({},s),{},{prefixName:l})},[s,l]),h=M.useMemo(function(){return{getKey:function(p){var y=l.length,m=p[y];return[c.keys[m],p.slice(y+1)]}}},[l]);if(typeof i!="function")return Ke(!1,"Form.List only accepts function as children."),null;var v=function(p,y,m){var x=m.source;return x==="internal"?!1:p!==y};return M.createElement(Gi.Provider,{value:h},M.createElement(on.Provider,{value:u},M.createElement(Jp,{name:[],shouldUpdate:v,rules:n,validateTrigger:o,initialValue:t,isList:!0,isListField:a??!!f},function(g,p){var y=g.value,m=y===void 0?[]:y,x=g.onChange,b=s.getFieldValue,E=function(){var A=b(l||[]);return A||[]},S={add:function(A,R){var C=E();R>=0&&R<=C.length?(c.keys=[].concat(ge(c.keys.slice(0,R)),[c.id],ge(c.keys.slice(R))),x([].concat(ge(C.slice(0,R)),[A],ge(C.slice(R))))):(process.env.NODE_ENV!=="production"&&(R<0||R>C.length)&&Ke(!1,"The second parameter of the add function should be a valid positive number."),c.keys=[].concat(ge(c.keys),[c.id]),x([].concat(ge(C),[A]))),c.id+=1},remove:function(A){var R=E(),C=new Set(Array.isArray(A)?A:[A]);C.size<=0||(c.keys=c.keys.filter(function(O,j){return!C.has(j)}),x(R.filter(function(O,j){return!C.has(j)})))},move:function(A,R){if(A!==R){var C=E();A<0||A>=C.length||R<0||R>=C.length||(c.keys=Nd(c.keys,A,R),x(Nd(C,A,R)))}}},w=m||[];return Array.isArray(w)||(w=[],process.env.NODE_ENV!=="production"&&Ke(!1,"Current value of '".concat(l.join(" > "),"' is not an array type."))),i(w.map(function(_,A){var R=c.keys[A];return R===void 0&&(c.keys[A]=c.id,R=c.keys[A],c.id+=1),{name:A,key:R,isListField:!0}}),S,p)})))}function Zx(e){var r=!1,t=e.length,i=[];return e.length?new Promise(function(n,o){e.forEach(function(a,s){a.catch(function(f){return r=!0,f}).then(function(f){t-=1,i[s]=f,!(t>0)&&(r&&o(i),n(i))})})}):Promise.resolve([])}var ev="__@field_split__";function Ts(e){return e.map(function(r){return"".concat(we(r),":").concat(r)}).join(ev)}var Vr=(function(){function e(){lt(this,e),Z(this,"kvs",new Map)}return ut(e,[{key:"set",value:function(t,i){this.kvs.set(Ts(t),i)}},{key:"get",value:function(t){return this.kvs.get(Ts(t))}},{key:"update",value:function(t,i){var n=this.get(t),o=i(n);o?this.set(t,o):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(Ts(t))}},{key:"map",value:function(t){return ge(this.kvs.entries()).map(function(i){var n=fe(i,2),o=n[0],a=n[1],s=o.split(ev);return t({key:s.map(function(f){var d=f.match(/^([^:]*):(.*)$/),c=fe(d,3),l=c[1],u=c[2];return l==="number"?Number(u):u}),value:a})})}},{key:"toJSON",value:function(){var t={};return this.map(function(i){var n=i.key,o=i.value;return t[n.join(".")]=o,null}),t}}]),e})(),Qx=["name"],Jx=ut(function e(r){var t=this;lt(this,e),Z(this,"formHooked",!1),Z(this,"forceRootUpdate",void 0),Z(this,"subscribable",!0),Z(this,"store",{}),Z(this,"fieldEntities",[]),Z(this,"initialValues",{}),Z(this,"callbacks",{}),Z(this,"validateMessages",null),Z(this,"preserve",null),Z(this,"lastValidatePromise",null),Z(this,"getForm",function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}}),Z(this,"getInternalHooks",function(i){return i===Or?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(Ke(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Z(this,"useSubscribe",function(i){t.subscribable=i}),Z(this,"prevWithoutPreserves",null),Z(this,"setInitialValues",function(i,n){if(t.initialValues=i||{},n){var o,a=zr(i,t.store);(o=t.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var f=s.key;a=Ft(a,f,Wt(i,f))}),t.prevWithoutPreserves=null,t.updateStore(a)}}),Z(this,"destroyForm",function(i){if(i)t.updateStore({});else{var n=new Vr;t.getFieldEntities(!0).forEach(function(o){t.isMergedPreserve(o.isPreserve())||n.set(o.getNamePath(),!0)}),t.prevWithoutPreserves=n}}),Z(this,"getInitialValue",function(i){var n=Wt(t.initialValues,i);return i.length?zr(n):n}),Z(this,"setCallbacks",function(i){t.callbacks=i}),Z(this,"setValidateMessages",function(i){t.validateMessages=i}),Z(this,"setPreserve",function(i){t.preserve=i}),Z(this,"watchList",[]),Z(this,"registerWatch",function(i){return t.watchList.push(i),function(){t.watchList=t.watchList.filter(function(n){return n!==i})}}),Z(this,"notifyWatch",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var n=t.getFieldsValue(),o=t.getFieldsValue(!0);t.watchList.forEach(function(a){a(n,o,i)})}}),Z(this,"timeoutId",null),Z(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!t.timeoutId&&typeof window<"u"&&(t.timeoutId=setTimeout(function(){t.timeoutId=null,t.formHooked||Ke(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),Z(this,"updateStore",function(i){t.store=i}),Z(this,"getFieldEntities",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return i?t.fieldEntities.filter(function(n){return n.getNamePath().length}):t.fieldEntities}),Z(this,"getFieldsMap",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=new Vr;return t.getFieldEntities(i).forEach(function(o){var a=o.getNamePath();n.set(a,o)}),n}),Z(this,"getFieldEntitiesForNamePathList",function(i){if(!i)return t.getFieldEntities(!0);var n=t.getFieldsMap(!0);return i.map(function(o){var a=et(o);return n.get(a)||{INVALIDATE_NAME_PATH:et(o)}})}),Z(this,"getFieldsValue",function(i,n){t.warningUnhooked();var o,a,s;if(i===!0||Array.isArray(i)?(o=i,a=n):i&&we(i)==="object"&&(s=i.strict,a=i.filter),o===!0&&!a)return t.store;var f=t.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),d=[];return f.forEach(function(c){var l,u,h="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(s){var v,g;if((v=(g=c).isList)!==null&&v!==void 0&&v.call(g))return}else if(!o&&(l=(u=c).isListField)!==null&&l!==void 0&&l.call(u))return;if(!a)d.push(h);else{var p="getMeta"in c?c.getMeta():null;a(p)&&d.push(h)}}),Pd(t.store,d.map(et))}),Z(this,"getFieldValue",function(i){t.warningUnhooked();var n=et(i);return Wt(t.store,n)}),Z(this,"getFieldsError",function(i){t.warningUnhooked();var n=t.getFieldEntitiesForNamePathList(i);return n.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:et(i[a]),errors:[],warnings:[]}})}),Z(this,"getFieldError",function(i){t.warningUnhooked();var n=et(i),o=t.getFieldsError([n])[0];return o.errors}),Z(this,"getFieldWarning",function(i){t.warningUnhooked();var n=et(i),o=t.getFieldsError([n])[0];return o.warnings}),Z(this,"isFieldsTouched",function(){t.warningUnhooked();for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];var a=n[0],s=n[1],f,d=!1;n.length===0?f=null:n.length===1?Array.isArray(a)?(f=a.map(et),d=!1):(f=null,d=a):(f=a.map(et),d=s);var c=t.getFieldEntities(!0),l=function(p){return p.isFieldTouched()};if(!f)return d?c.every(function(g){return l(g)||g.isList()}):c.some(l);var u=new Vr;f.forEach(function(g){u.set(g,[])}),c.forEach(function(g){var p=g.getNamePath();f.forEach(function(y){y.every(function(m,x){return p[x]===m})&&u.update(y,function(m){return[].concat(ge(m),[g])})})});var h=function(p){return p.some(l)},v=u.map(function(g){var p=g.value;return p});return d?v.every(h):v.some(h)}),Z(this,"isFieldTouched",function(i){return t.warningUnhooked(),t.isFieldsTouched([i])}),Z(this,"isFieldsValidating",function(i){t.warningUnhooked();var n=t.getFieldEntities();if(!i)return n.some(function(a){return a.isFieldValidating()});var o=i.map(et);return n.some(function(a){var s=a.getNamePath();return Kr(o,s)&&a.isFieldValidating()})}),Z(this,"isFieldValidating",function(i){return t.warningUnhooked(),t.isFieldsValidating([i])}),Z(this,"resetWithFieldInitialValue",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new Vr,o=t.getFieldEntities(!0);o.forEach(function(f){var d=f.props.initialValue,c=f.getNamePath();if(d!==void 0){var l=n.get(c)||new Set;l.add({entity:f,value:d}),n.set(c,l)}});var a=function(d){d.forEach(function(c){var l=c.props.initialValue;if(l!==void 0){var u=c.getNamePath(),h=t.getInitialValue(u);if(h!==void 0)Ke(!1,"Form already set 'initialValues' with path '".concat(u.join("."),"'. Field can not overwrite it."));else{var v=n.get(u);if(v&&v.size>1)Ke(!1,"Multiple Field with path '".concat(u.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var g=t.getFieldValue(u),p=c.isListField();!p&&(!i.skipExist||g===void 0)&&t.updateStore(Ft(t.store,u,ge(v)[0].value))}}}})},s;i.entities?s=i.entities:i.namePathList?(s=[],i.namePathList.forEach(function(f){var d=n.get(f);if(d){var c;(c=s).push.apply(c,ge(ge(d).map(function(l){return l.entity})))}})):s=o,a(s)}),Z(this,"resetFields",function(i){t.warningUnhooked();var n=t.store;if(!i){t.updateStore(zr(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(n,null,{type:"reset"}),t.notifyWatch();return}var o=i.map(et);o.forEach(function(a){var s=t.getInitialValue(a);t.updateStore(Ft(t.store,a,s))}),t.resetWithFieldInitialValue({namePathList:o}),t.notifyObservers(n,o,{type:"reset"}),t.notifyWatch(o)}),Z(this,"setFields",function(i){t.warningUnhooked();var n=t.store,o=[];i.forEach(function(a){var s=a.name,f=pt(a,Qx),d=et(s);o.push(d),"value"in f&&t.updateStore(Ft(t.store,d,f.value)),t.notifyObservers(n,[d],{type:"setField",data:a})}),t.notifyWatch(o)}),Z(this,"getFields",function(){var i=t.getFieldEntities(!0),n=i.map(function(o){var a=o.getNamePath(),s=o.getMeta(),f=te(te({},s),{},{name:a,value:t.getFieldValue(a)});return Object.defineProperty(f,"originRCField",{value:!0}),f});return n}),Z(this,"initEntityValue",function(i){var n=i.props.initialValue;if(n!==void 0){var o=i.getNamePath(),a=Wt(t.store,o);a===void 0&&t.updateStore(Ft(t.store,o,n))}}),Z(this,"isMergedPreserve",function(i){var n=i!==void 0?i:t.preserve;return n??!0}),Z(this,"registerField",function(i){t.fieldEntities.push(i);var n=i.getNamePath();if(t.notifyWatch([n]),i.props.initialValue!==void 0){var o=t.store;t.resetWithFieldInitialValue({entities:[i],skipExist:!0}),t.notifyObservers(o,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(l){return l!==i}),!t.isMergedPreserve(s)&&(!a||f.length>1)){var d=a?void 0:t.getInitialValue(n);if(n.length&&t.getFieldValue(n)!==d&&t.fieldEntities.every(function(l){return!Qp(l.getNamePath(),n)})){var c=t.store;t.updateStore(Ft(c,n,d,!0)),t.notifyObservers(c,[n],{type:"remove"}),t.triggerDependenciesUpdate(c,n)}}t.notifyWatch([n])}}),Z(this,"dispatch",function(i){switch(i.type){case"updateValue":{var n=i.namePath,o=i.value;t.updateValue(n,o);break}case"validateField":{var a=i.namePath,s=i.triggerName;t.validateFields([a],{triggerName:s});break}}}),Z(this,"notifyObservers",function(i,n,o){if(t.subscribable){var a=te(te({},o),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(s){var f=s.onStoreChange;f(i,n,a)})}else t.forceRootUpdate()}),Z(this,"triggerDependenciesUpdate",function(i,n){var o=t.getDependencyChildrenFields(n);return o.length&&t.validateFields(o),t.notifyObservers(i,o,{type:"dependenciesUpdate",relatedFields:[n].concat(ge(o))}),o}),Z(this,"updateValue",function(i,n){var o=et(i),a=t.store;t.updateStore(Ft(t.store,o,n)),t.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),t.notifyWatch([o]);var s=t.triggerDependenciesUpdate(a,o),f=t.callbacks.onValuesChange;if(f){var d=Pd(t.store,[o]);f(d,t.getFieldsValue())}t.triggerOnFieldsChange([o].concat(ge(s)))}),Z(this,"setFieldsValue",function(i){t.warningUnhooked();var n=t.store;if(i){var o=zr(t.store,i);t.updateStore(o)}t.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),Z(this,"setFieldValue",function(i,n){t.setFields([{name:i,value:n,errors:[],warnings:[]}])}),Z(this,"getDependencyChildrenFields",function(i){var n=new Set,o=[],a=new Vr;t.getFieldEntities().forEach(function(f){var d=f.props.dependencies;(d||[]).forEach(function(c){var l=et(c);a.update(l,function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return u.add(f),u})})});var s=function f(d){var c=a.get(d)||new Set;c.forEach(function(l){if(!n.has(l)){n.add(l);var u=l.getNamePath();l.isFieldDirty()&&u.length&&(o.push(u),f(u))}})};return s(i),o}),Z(this,"triggerOnFieldsChange",function(i,n){var o=t.callbacks.onFieldsChange;if(o){var a=t.getFields();if(n){var s=new Vr;n.forEach(function(d){var c=d.name,l=d.errors;s.set(c,l)}),a.forEach(function(d){d.errors=s.get(d.name)||d.errors})}var f=a.filter(function(d){var c=d.name;return Kr(i,c)});f.length&&o(f,a)}}),Z(this,"validateFields",function(i,n){t.warningUnhooked();var o,a;Array.isArray(i)||typeof i=="string"||typeof n=="string"?(o=i,a=n):a=i;var s=!!o,f=s?o.map(et):[],d=[],c=String(Date.now()),l=new Set,u=a||{},h=u.recursive,v=u.dirty;t.getFieldEntities(!0).forEach(function(m){if(s||f.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(v&&!m.isFieldDirty())){var x=m.getNamePath();if(l.add(x.join(c)),!s||Kr(f,x,h)){var b=m.validateRules(te({validateMessages:te(te({},Zp),t.validateMessages)},a));d.push(b.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(E){var S,w=[],_=[];return(S=E.forEach)===null||S===void 0||S.call(E,function(A){var R=A.rule.warningOnly,C=A.errors;R?_.push.apply(_,ge(C)):w.push.apply(w,ge(C))}),w.length?Promise.reject({name:x,errors:w,warnings:_}):{name:x,errors:w,warnings:_}}))}}});var g=Zx(d);t.lastValidatePromise=g,g.catch(function(m){return m}).then(function(m){var x=m.map(function(b){var E=b.name;return E});t.notifyObservers(t.store,x,{type:"validateFinish"}),t.triggerOnFieldsChange(x,m)});var p=g.then(function(){return t.lastValidatePromise===g?Promise.resolve(t.getFieldsValue(f)):Promise.reject([])}).catch(function(m){var x=m.filter(function(b){return b&&b.errors.length});return Promise.reject({values:t.getFieldsValue(f),errorFields:x,outOfDate:t.lastValidatePromise!==g})});p.catch(function(m){return m});var y=f.filter(function(m){return l.has(m.join(c))});return t.triggerOnFieldsChange(y),p}),Z(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(i){var n=t.callbacks.onFinish;if(n)try{n(i)}catch(o){console.error(o)}}).catch(function(i){var n=t.callbacks.onFinishFailed;n&&n(i)})}),this.forceRootUpdate=r});function tv(e){var r=M.useRef(),t=M.useState({}),i=fe(t,2),n=i[1];if(!r.current)if(e)r.current=e;else{var o=function(){n({})},a=new Jx(o);r.current=a.getForm()}return[r.current]}var Ll=M.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eE=function(r){var t=r.validateMessages,i=r.onFormChange,n=r.onFormFinish,o=r.children,a=M.useContext(Ll),s=M.useRef({});return M.createElement(Ll.Provider,{value:te(te({},a),{},{validateMessages:te(te({},a.validateMessages),t),triggerFormChange:function(d,c){i&&i(d,{changedFields:c,forms:s.current}),a.triggerFormChange(d,c)},triggerFormFinish:function(d,c){n&&n(d,{values:c,forms:s.current}),a.triggerFormFinish(d,c)},registerForm:function(d,c){d&&(s.current=te(te({},s.current),{},Z({},d,c))),a.registerForm(d,c)},unregisterForm:function(d){var c=te({},s.current);delete c[d],s.current=c,a.unregisterForm(d)}})},o)},tE=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],rE=function(r,t){var i=r.name,n=r.initialValues,o=r.fields,a=r.form,s=r.preserve,f=r.children,d=r.component,c=d===void 0?"form":d,l=r.validateMessages,u=r.validateTrigger,h=u===void 0?"onChange":u,v=r.onValuesChange,g=r.onFieldsChange,p=r.onFinish,y=r.onFinishFailed,m=r.clearOnDestroy,x=pt(r,tE),b=M.useRef(null),E=M.useContext(Ll),S=tv(a),w=fe(S,1),_=w[0],A=_.getInternalHooks(Or),R=A.useSubscribe,C=A.setInitialValues,O=A.setCallbacks,j=A.setValidateMessages,k=A.setPreserve,I=A.destroyForm;M.useImperativeHandle(t,function(){return te(te({},_),{},{nativeElement:b.current})}),M.useEffect(function(){return E.registerForm(i,_),function(){E.unregisterForm(i)}},[E,_,i]),j(te(te({},E.validateMessages),l)),O({onValuesChange:v,onFieldsChange:function(K){if(E.triggerFormChange(i,K),g){for(var G=arguments.length,T=new Array(G>1?G-1:0),D=1;D<G;D++)T[D-1]=arguments[D];g.apply(void 0,[K].concat(T))}},onFinish:function(K){E.triggerFormFinish(i,K),p&&p(K)},onFinishFailed:y}),k(s);var B=M.useRef(null);C(n,!B.current),B.current||(B.current=!0),M.useEffect(function(){return function(){return I(m)}},[]);var V,W=typeof f=="function";if(W){var F=_.getFieldsValue(!0);V=f(F,_)}else V=f;R(!W);var $=M.useRef();M.useEffect(function(){Kx($.current||[],o||[])||_.setFields(o||[]),$.current=o},[o,_]);var N=M.useMemo(function(){return te(te({},_),{},{validateTrigger:h})},[_,h]),L=M.createElement(Gi.Provider,{value:null},M.createElement(on.Provider,{value:N},V));return c===!1?L:M.createElement(c,Ve({},x,{ref:b,onSubmit:function(K){K.preventDefault(),K.stopPropagation(),_.submit()},onReset:function(K){var G;K.preventDefault(),_.resetFields(),(G=x.onReset)===null||G===void 0||G.call(x,K)}}),L)};function Id(e){try{return JSON.stringify(e)}catch{return Math.random()}}var nE=process.env.NODE_ENV!=="production"?function(e){var r=e.join("__RC_FIELD_FORM_SPLIT__"),t=z.useRef(r);Ke(t.current===r,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function iE(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=r[0],n=r[1],o=n===void 0?{}:n,a=dx(o)?{form:o}:o,s=a.form,f=z.useState(),d=fe(f,2),c=d[0],l=d[1],u=z.useMemo(function(){return Id(c)},[c]),h=z.useRef(u);h.current=u;var v=z.useContext(on),g=s||v,p=g&&g._init;process.env.NODE_ENV!=="production"&&Ke(r.length===2?s?p:!0:p,"useWatch requires a form instance since it can not auto detect from context.");var y=et(i),m=z.useRef(y);return m.current=y,nE(y),z.useEffect(function(){if(p){var x=g.getFieldsValue,b=g.getInternalHooks,E=b(Or),S=E.registerWatch,w=function(C,O){var j=a.preserve?O:C;return typeof i=="function"?i(j):Wt(j,m.current)},_=S(function(R,C){var O=w(R,C),j=Id(O);h.current!==j&&(h.current=j,l(O))}),A=w(x(),x(!0));return c!==A&&l(A),_}},[p]),c}var oE=M.forwardRef(rE),ii=oE;ii.FormProvider=eE;ii.Field=Jp;ii.List=Xx;ii.useForm=tv;ii.useWatch=iE;const Xn=M.createContext({});process.env.NODE_ENV!=="production"&&(Xn.displayName="FormItemInputContext");const aE=({children:e,status:r,override:t})=>{const i=M.useContext(Xn),n=M.useMemo(()=>{const o=Object.assign({},i);return t&&delete o.isFormItemInput,r&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[r,t,i]);return M.createElement(Xn.Provider,{value:n},e)},sE=M.createContext(void 0),rv=e=>{const r=z.useContext(rn);return z.useMemo(()=>e?typeof e=="string"?e??r:typeof e=="function"?e(r):r:r,[e,r])},nv=M.createContext(null),iv=(e,r)=>{const t=M.useContext(nv),i=M.useMemo(()=>{if(!t)return"";const{compactDirection:n,isFirstItem:o,isLastItem:a}=t,s=n==="vertical"?"-vertical-":"-";return ye(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:r==="rtl"})},[e,r,t]);return{compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:i}},lE=e=>{const{children:r}=e;return M.createElement(nv.Provider,{value:null},r)},Fl=e=>{const{space:r,form:t,children:i}=e;if(i==null)return null;let n=i;return t&&(n=z.createElement(aE,{override:!0,status:!0},n)),r&&(n=z.createElement(lE,null,n)),n},fu=z.createContext(void 0);process.env.NODE_ENV!=="production"&&(fu.displayName="zIndexContext");const er=100,uE=10,cE=er*uE,fE=cE+er,ov={Modal:er,Drawer:er,Popover:er,Popconfirm:er,Tooltip:er,Tour:er,FloatButton:er},dE={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function hE(e){return e in ov}const pE=(e,r)=>{const[,t]=cn(),i=z.useContext(fu),n=hE(e);let o;if(r!==void 0)o=[r,r];else{let a=i??0;n?a+=(i?0:t.zIndexPopupBase)+ov[e]:a+=dE[e],o=[i===void 0?r:a,a]}if(process.env.NODE_ENV!=="production"){const a=Kt(e),s=t.zIndexPopupBase+fE,f=o[0]||0;process.env.NODE_ENV!=="production"&&a(r!==void 0||f<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o},vE=(e,r,t)=>t!==void 0?t:`${e}-${r}`;function mE(e){const{sizePopupArrow:r,borderRadiusXS:t,borderRadiusOuter:i}=e,n=r/2,o=0,a=n,s=i*1/Math.sqrt(2),f=n-i*(1-1/Math.sqrt(2)),d=n-t*(1/Math.sqrt(2)),c=i*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),l=2*n-d,u=c,h=2*n-s,v=f,g=2*n-o,p=a,y=n*Math.sqrt(2)+i*(Math.sqrt(2)-2),m=i*(Math.sqrt(2)-1),x=`polygon(${m}px 100%, 50% ${m}px, ${2*n-m}px 100%, ${m}px 100%)`,b=`path('M ${o} ${a} A ${i} ${i} 0 0 0 ${s} ${f} L ${d} ${c} A ${t} ${t} 0 0 1 ${l} ${u} L ${h} ${v} A ${i} ${i} 0 0 0 ${g} ${p} Z')`;return{arrowShadowWidth:y,arrowPath:b,arrowPolygon:x}}const gE=(e,r,t)=>{const{sizePopupArrow:i,arrowPolygon:n,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:f}=e;return{pointerEvents:"none",width:i,height:i,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:i,height:f(i).div(2).equal(),background:r,clipPath:{_multi_value_:!0,value:[n,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${$e(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}},av=8;function sv(e){const{contentRadius:r,limitVerticalRadius:t}=e,i=r>12?r+2:12;return{arrowOffsetHorizontal:i,arrowOffsetVertical:t?av:i}}function ji(e,r){return e?r:{}}function yE(e,r,t){const{componentCls:i,boxShadowPopoverArrow:n,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}={};return{[i]:Object.assign(Object.assign(Object.assign(Object.assign({[`${i}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},gE(e,r,n)),{"&:before":{background:r}})]},ji(!!f.top,{[[`&-placement-top > ${i}-arrow`,`&-placement-topLeft > ${i}-arrow`,`&-placement-topRight > ${i}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${$e(a)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ji(!!f.bottom,{[[`&-placement-bottom > ${i}-arrow`,`&-placement-bottomLeft > ${i}-arrow`,`&-placement-bottomRight > ${i}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${$e(a)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ji(!!f.left,{[[`&-placement-left > ${i}-arrow`,`&-placement-leftTop > ${i}-arrow`,`&-placement-leftBottom > ${i}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${i}-arrow`]:{top:o},[`&-placement-leftBottom > ${i}-arrow`]:{bottom:o}})),ji(!!f.right,{[[`&-placement-right > ${i}-arrow`,`&-placement-rightTop > ${i}-arrow`,`&-placement-rightBottom > ${i}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${i}-arrow`]:{top:o},[`&-placement-rightBottom > ${i}-arrow`]:{bottom:o}}))}}function bE(e,r,t,i){if(i===!1)return{adjustX:!1,adjustY:!1};const n=i&&typeof i=="object"?i:{},o={};switch(e){case"top":case"bottom":o.shiftX=r.arrowOffsetHorizontal*2+t,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=r.arrowOffsetVertical*2+t,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),n);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Md={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"]}},xE={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"]}},EE=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function wE(e){const{arrowWidth:r,autoAdjustOverflow:t,arrowPointAtCenter:i,offset:n,borderRadius:o}=e,a=r/2,s={},f=sv({contentRadius:o,limitVerticalRadius:!0});return Object.keys(Md).forEach(d=>{const c=i&&xE[d]||Md[d],l=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[d]=l,EE.has(d)&&(l.autoArrow=!1),d){case"top":case"topLeft":case"topRight":l.offset[1]=-a-n;break;case"bottom":case"bottomLeft":case"bottomRight":l.offset[1]=a+n;break;case"left":case"leftTop":case"leftBottom":l.offset[0]=-a-n;break;case"right":case"rightTop":case"rightBottom":l.offset[0]=a+n;break}if(i)switch(d){case"topLeft":case"bottomLeft":l.offset[0]=-f.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":l.offset[0]=f.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":l.offset[1]=-f.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":l.offset[1]=f.arrowOffsetHorizontal*2-a;break}l.overflow=bE(d,f,r,t),l.htmlRegion="visibleFirst"}),s}function SE(e){return e&&z.isValidElement(e)&&e.type===z.Fragment}const _E=(e,r,t)=>z.isValidElement(e)?z.cloneElement(e,typeof t=="function"?t(e.props||{}):t):r;function lv(e,r){return _E(e,e,r)}const CE=e=>({animationDuration:e,animationFillMode:"both"}),OE=e=>({animationDuration:e,animationFillMode:"both"}),RE=(e,r,t,i,n=!1)=>{const o=n?"&":"";return{[`
|
|
181
|
+
}`),n)}else Bn(n);return function(){Bn(n)}},[r,n])}var H1=!1;function U1(e){return H1}var hd=function(r){return r===!1?!1:!gt()||!r?null:typeof r=="string"?document.querySelector(r):typeof r=="function"?r():r},lu=M.forwardRef(function(e,r){var t=e.open,i=e.autoLock,n=e.getContainer,o=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,f=e.children,d=M.useState(t),c=fe(d,2),l=c[0],u=c[1],h=l||t;process.env.NODE_ENV!=="production"&&Ke(gt()||!t,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),M.useEffect(function(){(s||t)&&u(t)},[t,s]);var v=M.useState(function(){return hd(n)}),g=fe(v,2),p=g[0],y=g[1];M.useEffect(function(){var O=hd(n);y(O??null)});var m=$1(h&&!p,o),x=fe(m,2),b=x[0],E=x[1],S=p??b;z1(i&&t&>()&&(S===b||S===document.body));var w=null;if(f&&so(f)&&r){var _=f;w=_.ref}var A=Xl(w,r);if(!h||!gt()||p===void 0)return null;var R=S===!1||U1(),C=f;return r&&(C=M.cloneElement(f,{ref:A})),M.createElement(Vp.Provider,{value:E},R?C:$n.createPortal(C,S))});process.env.NODE_ENV!=="production"&&(lu.displayName="Portal");function W1(){var e=te({},M);return e.useId}var pd=0,vd=W1();const zp=vd?function(r){var t=vd();return r||(process.env.NODE_ENV==="test"?"test-id":t)}:function(r){var t=M.useState("ssr-id"),i=fe(t,2),n=i[0],o=i[1];return M.useEffect(function(){var a=pd;pd+=1,o("rc_unique_".concat(a))},[]),r||(process.env.NODE_ENV==="test"?"test-id":n)},K1=(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 G1(e){var r=e.prefixCls,t=e.align,i=e.arrow,n=e.arrowPos,o=i||{},a=o.className,s=o.content,f=n.x,d=f===void 0?0:f,c=n.y,l=c===void 0?0:c,u=M.useRef();if(!t||!t.points)return null;var h={position:"absolute"};if(t.autoArrow!==!1){var v=t.points[0],g=t.points[1],p=v[0],y=v[1],m=g[0],x=g[1];p===m||!["t","b"].includes(p)?h.top=l:p==="t"?h.top=0:h.bottom=0,y===x||!["l","r"].includes(y)?h.left=d:y==="l"?h.left=0:h.right=0}return M.createElement("div",{ref:u,className:ye("".concat(r,"-arrow"),a),style:h},s)}function Y1(e){var r=e.prefixCls,t=e.open,i=e.zIndex,n=e.mask,o=e.motion;return n?M.createElement(su,Ve({},o,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(a){var s=a.className;return M.createElement("div",{style:{zIndex:i},className:ye("".concat(r,"-mask"),s)})}):null}var Hp=M.memo(function(e){var r=e.children;return r},function(e,r){return r.cache});process.env.NODE_ENV!=="production"&&(Hp.displayName="PopupContent");var Up=M.forwardRef(function(e,r){var t=e.popup,i=e.className,n=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,f=e.open,d=e.keepDom,c=e.fresh,l=e.onClick,u=e.mask,h=e.arrow,v=e.arrowPos,g=e.align,p=e.motion,y=e.maskMotion,m=e.forceRender,x=e.getPopupContainer,b=e.autoDestroy,E=e.portal,S=e.zIndex,w=e.onMouseEnter,_=e.onMouseLeave,A=e.onPointerEnter,R=e.onPointerDownCapture,C=e.ready,O=e.offsetX,j=e.offsetY,k=e.offsetR,I=e.offsetB,B=e.onAlign,V=e.onPrepare,W=e.stretch,L=e.targetWidth,$=e.targetHeight,N=typeof t=="function"?t():t,F=f||d,q=x?.length>0,K=M.useState(!x||!q),G=fe(K,2),T=G[0],D=G[1];if(Ge(function(){!T&&q&&a&&D(!0)},[T,q,a]),!T)return null;var H="auto",U={left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(C||!f){var Y,ee=g.points,ie=g.dynamicInset||((Y=g._experimental)===null||Y===void 0?void 0:Y.dynamicInset),oe=ie&&ee[0][1]==="r",re=ie&&ee[0][0]==="b";oe?(U.right=k,U.left=H):(U.left=O,U.right=H),re?(U.bottom=I,U.top=H):(U.top=j,U.bottom=H)}var ue={};return W&&(W.includes("height")&&$?ue.height=$:W.includes("minHeight")&&$&&(ue.minHeight=$),W.includes("width")&&L?ue.width=L:W.includes("minWidth")&&L&&(ue.minWidth=L)),f||(ue.pointerEvents="none"),M.createElement(E,{open:m||F,getContainer:x&&function(){return x(a)},autoDestroy:b},M.createElement(Y1,{prefixCls:n,open:f,zIndex:S,mask:u,motion:y}),M.createElement(ln,{onResize:B,disabled:!f},function(ce){return M.createElement(su,Ve({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(n,"-hidden")},p,{onAppearPrepare:V,onEnterPrepare:V,visible:f,onVisibleChanged:function(Q){var J;p==null||(J=p.onVisibleChanged)===null||J===void 0||J.call(p,Q),s(Q)}}),function(he,Q){var J=he.className,le=he.style,se=ye(n,J,i);return M.createElement("div",{ref:Zn(ce,r,Q),className:se,style:te(te(te(te({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},U),ue),le),{},{boxSizing:"border-box",zIndex:S},o),onMouseEnter:w,onMouseLeave:_,onPointerEnter:A,onClick:l,onPointerDownCapture:R},h&&M.createElement(G1,{prefixCls:n,arrow:h,arrowPos:v,align:g}),M.createElement(Hp,{cache:!f&&!c},N))})}))});process.env.NODE_ENV!=="production"&&(Up.displayName="Popup");var Wp=M.forwardRef(function(e,r){var t=e.children,i=e.getTriggerDOMNode,n=so(t),o=M.useCallback(function(s){Yl(r,i?i(s):s)},[i]),a=Xl(o,Zl(t));return n?M.cloneElement(t,{ref:a}):t});process.env.NODE_ENV!=="production"&&(Wp.displayName="TriggerWrapper");var md=M.createContext(null);function gd(e){return e?Array.isArray(e)?e:[e]:[]}function X1(e,r,t,i){return M.useMemo(function(){var n=gd(t??r),o=gd(i??r),a=new Set(n),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,r,t,i])}const Z1=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var r=e.getBBox(),t=r.width,i=r.height;if(t||i)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),o=n.width,a=n.height;if(o||a)return!0}}return!1});function Q1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?e[0]===r[0]:e[0]===r[0]&&e[1]===r[1]}function J1(e,r,t,i){for(var n=t.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,f=o[a];if(Q1((s=e[f])===null||s===void 0?void 0:s.points,n,i))return"".concat(r,"-placement-").concat(f)}return""}function yd(e,r,t,i){return r||(t?{motionName:"".concat(e,"-").concat(t)}:i?{motionName:i}:null)}function ti(e){return e.ownerDocument.defaultView}function Ol(e){for(var r=[],t=e?.parentElement,i=["hidden","scroll","clip","auto"];t;){var n=ti(t).getComputedStyle(t),o=n.overflowX,a=n.overflowY,s=n.overflow;[o,a,s].some(function(f){return i.includes(f)})&&r.push(t),t=t.parentElement}return r}function Yn(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?r:e}function jn(e){return Yn(parseFloat(e),0)}function bd(e,r){var t=te({},e);return(r||[]).forEach(function(i){if(!(i instanceof HTMLBodyElement||i instanceof HTMLHtmlElement)){var n=ti(i).getComputedStyle(i),o=n.overflow,a=n.overflowClipMargin,s=n.borderTopWidth,f=n.borderBottomWidth,d=n.borderLeftWidth,c=n.borderRightWidth,l=i.getBoundingClientRect(),u=i.offsetHeight,h=i.clientHeight,v=i.offsetWidth,g=i.clientWidth,p=jn(s),y=jn(f),m=jn(d),x=jn(c),b=Yn(Math.round(l.width/v*1e3)/1e3),E=Yn(Math.round(l.height/u*1e3)/1e3),S=(v-g-m-x)*b,w=(u-h-p-y)*E,_=p*E,A=y*E,R=m*b,C=x*b,O=0,j=0;if(o==="clip"){var k=jn(a);O=k*b,j=k*E}var I=l.x+R-O,B=l.y+_-j,V=I+l.width+2*O-R-C-S,W=B+l.height+2*j-_-A-w;t.left=Math.max(t.left,I),t.top=Math.max(t.top,B),t.right=Math.min(t.right,V),t.bottom=Math.min(t.bottom,W)}}),t}function xd(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t="".concat(r),i=t.match(/^(.*)\%$/);return i?e*(parseFloat(i[1])/100):parseFloat(t)}function Ed(e,r){var t=r||[],i=fe(t,2),n=i[0],o=i[1];return[xd(e.width,n),xd(e.height,o)]}function wd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function $r(e,r){var t=r[0],i=r[1],n,o;return t==="t"?o=e.y:t==="b"?o=e.y+e.height:o=e.y+e.height/2,i==="l"?n=e.x:i==="r"?n=e.x+e.width:n=e.x+e.width/2,{x:n,y:o}}function fr(e,r){var t={t:"b",b:"t",l:"r",r:"l"};return e.map(function(i,n){return n===r?t[i]||"c":i}).join("")}function ex(e,r,t,i,n,o,a){var s=M.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:n[i]||{}}),f=fe(s,2),d=f[0],c=f[1],l=M.useRef(0),u=M.useMemo(function(){return r?Ol(r):[]},[r]),h=M.useRef({}),v=function(){h.current={}};e||v();var g=mt(function(){if(r&&t&&e){let _t=function(gn,Qt){var cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,yn=F.x+gn,vi=F.y+Qt,Oo=yn+re,Ro=vi+oe,jo=Math.max(yn,cr.left),ve=Math.max(vi,cr.top),Ee=Math.min(Oo,cr.right),Ue=Math.min(Ro,cr.bottom);return Math.max(0,(Ee-jo)*(Ue-ve))},Mr=function(){Nt=F.y+Pe,St=Nt+oe,zt=F.x+Le,It=zt+re};var m,x,b,E,S=r,w=S.ownerDocument,_=ti(S),A=_.getComputedStyle(S),R=A.position,C=S.style.left,O=S.style.top,j=S.style.right,k=S.style.bottom,I=S.style.overflow,B=te(te({},n[i]),o),V=w.createElement("div");(m=S.parentElement)===null||m===void 0||m.appendChild(V),V.style.left="".concat(S.offsetLeft,"px"),V.style.top="".concat(S.offsetTop,"px"),V.style.position=R,V.style.height="".concat(S.offsetHeight,"px"),V.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 W;if(Array.isArray(t))W={x:t[0],y:t[1],width:0,height:0};else{var L,$,N=t.getBoundingClientRect();N.x=(L=N.x)!==null&&L!==void 0?L:N.left,N.y=($=N.y)!==null&&$!==void 0?$:N.top,W={x:N.x,y:N.y,width:N.width,height:N.height}}var F=S.getBoundingClientRect(),q=_.getComputedStyle(S),K=q.height,G=q.width;F.x=(x=F.x)!==null&&x!==void 0?x:F.left,F.y=(b=F.y)!==null&&b!==void 0?b:F.top;var T=w.documentElement,D=T.clientWidth,H=T.clientHeight,U=T.scrollWidth,Y=T.scrollHeight,ee=T.scrollTop,ie=T.scrollLeft,oe=F.height,re=F.width,ue=W.height,ce=W.width,he={left:0,top:0,right:D,bottom:H},Q={left:-ie,top:-ee,right:U-ie,bottom:Y-ee},J=B.htmlRegion,le="visible",se="visibleFirst";J!=="scroll"&&J!==se&&(J=le);var ne=J===se,de=bd(Q,u),ae=bd(he,u),pe=J===le?ae:de,_e=ne?ae:pe;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var Me=S.getBoundingClientRect();S.style.left=C,S.style.top=O,S.style.right=j,S.style.bottom=k,S.style.overflow=I,(E=S.parentElement)===null||E===void 0||E.removeChild(V);var be=Yn(Math.round(re/parseFloat(G)*1e3)/1e3),qe=Yn(Math.round(oe/parseFloat(K)*1e3)/1e3);if(be===0||qe===0||qn(t)&&!Z1(t))return;var Oe=B.offset,je=B.targetOffset,ke=Ed(F,Oe),Te=fe(ke,2),Se=Te[0],ze=Te[1],me=Ed(W,je),xe=fe(me,2),Ze=xe[0],Yt=xe[1];W.x-=Ze,W.y-=Yt;var yr=B.points||[],Tr=fe(yr,2),dn=Tr[0],kr=Tr[1],Pt=wd(kr),ct=wd(dn),Qe=$r(W,Pt),Xt=$r(F,ct),ft=te({},B),Le=Qe.x-Xt.x+Se,Pe=Qe.y-Xt.y+ze,ot=_t(Le,Pe),qt=_t(Le,Pe,ae),yt=$r(W,["t","l"]),Ye=$r(F,["t","l"]),ar=$r(W,["b","r"]),Zt=$r(F,["b","r"]),De=B.overflow||{},Je=De.adjustX,vt=De.adjustY,dt=De.shiftX,Vt=De.shiftY,Pr=function(Qt){return typeof Qt=="boolean"?Qt:Qt>=0},Nt,St,zt,It;Mr();var Nr=Pr(vt),He=ct[0]===Pt[0];if(Nr&&ct[0]==="t"&&(St>_e.bottom||h.current.bt)){var br=Pe;He?br-=oe-ue:br=yt.y-Zt.y-ze;var ai=_t(Le,br),vo=_t(Le,br,ae);ai>ot||ai===ot&&(!ne||vo>=qt)?(h.current.bt=!0,Pe=br,ze=-ze,ft.points=[fr(ct,0),fr(Pt,0)]):h.current.bt=!1}if(Nr&&ct[0]==="b"&&(Nt<_e.top||h.current.tb)){var xr=Pe;He?xr+=oe-ue:xr=ar.y-Ye.y-ze;var si=_t(Le,xr),mo=_t(Le,xr,ae);si>ot||si===ot&&(!ne||mo>=qt)?(h.current.tb=!0,Pe=xr,ze=-ze,ft.points=[fr(ct,0),fr(Pt,0)]):h.current.tb=!1}var li=Pr(Je),ui=ct[1]===Pt[1];if(li&&ct[1]==="l"&&(It>_e.right||h.current.rl)){var Er=Le;ui?Er-=re-ce:Er=yt.x-Zt.x-Se;var wr=_t(Er,Pe),hn=_t(Er,Pe,ae);wr>ot||wr===ot&&(!ne||hn>=qt)?(h.current.rl=!0,Le=Er,Se=-Se,ft.points=[fr(ct,1),fr(Pt,1)]):h.current.rl=!1}if(li&&ct[1]==="r"&&(zt<_e.left||h.current.lr)){var Sr=Le;ui?Sr+=re-ce:Sr=ar.x-Ye.x-Se;var pn=_t(Sr,Pe),Ir=_t(Sr,Pe,ae);pn>ot||pn===ot&&(!ne||Ir>=qt)?(h.current.lr=!0,Le=Sr,Se=-Se,ft.points=[fr(ct,1),fr(Pt,1)]):h.current.lr=!1}Mr();var Mt=dt===!0?0:dt;typeof Mt=="number"&&(zt<ae.left&&(Le-=zt-ae.left-Se,W.x+ce<ae.left+Mt&&(Le+=W.x-ae.left+ce-Mt)),It>ae.right&&(Le-=It-ae.right-Se,W.x>ae.right-Mt&&(Le+=W.x-ae.right+Mt)));var sr=Vt===!0?0:Vt;typeof sr=="number"&&(Nt<ae.top&&(Pe-=Nt-ae.top-ze,W.y+ue<ae.top+sr&&(Pe+=W.y-ae.top+ue-sr)),St>ae.bottom&&(Pe-=St-ae.bottom-ze,W.y>ae.bottom-sr&&(Pe+=W.y-ae.bottom+sr)));var lr=F.x+Le,ur=lr+re,vn=F.y+Pe,go=vn+oe,ci=W.x,fi=ci+ce,di=W.y,yo=di+ue,bo=Math.max(lr,ci),hi=Math.min(ur,fi),xo=(bo+hi)/2,Eo=xo-lr,pi=Math.max(vn,di),wo=Math.min(go,yo),So=(pi+wo)/2,_o=So-vn;a?.(r,ft);var Ht=Me.right-F.x-(Le+F.width),mn=Me.bottom-F.y-(Pe+F.height);be===1&&(Le=Math.round(Le),Ht=Math.round(Ht)),qe===1&&(Pe=Math.round(Pe),mn=Math.round(mn));var Co={ready:!0,offsetX:Le/be,offsetY:Pe/qe,offsetR:Ht/be,offsetB:mn/qe,arrowX:Eo/be,arrowY:_o/qe,scaleX:be,scaleY:qe,align:ft};c(Co)}}),p=function(){l.current+=1;var x=l.current;Promise.resolve().then(function(){l.current===x&&g()})},y=function(){c(function(x){return te(te({},x),{},{ready:!1})})};return Ge(y,[i]),Ge(function(){e||y()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,p]}function tx(e,r,t,i,n){Ge(function(){if(e&&r&&t){let l=function(){i(),n()};var o=r,a=t,s=Ol(o),f=Ol(a),d=ti(a),c=new Set([d].concat(ge(s),ge(f)));return c.forEach(function(u){u.addEventListener("scroll",l,{passive:!0})}),d.addEventListener("resize",l,{passive:!0}),i(),function(){c.forEach(function(u){u.removeEventListener("scroll",l),d.removeEventListener("resize",l)})}}},[e,r,t])}function rx(e,r,t,i,n,o,a,s){var f=M.useRef(e);f.current=e;var d=M.useRef(!1);M.useEffect(function(){if(r&&i&&(!n||o)){var l=function(){d.current=!1},u=function(b){var E;f.current&&!a(((E=b.composedPath)===null||E===void 0||(E=E.call(b))===null||E===void 0?void 0:E[0])||b.target)&&!d.current&&s(!1)},h=ti(i);h.addEventListener("pointerdown",l,!0),h.addEventListener("mousedown",u,!0),h.addEventListener("contextmenu",u,!0);var v=Vi(t);if(v&&(v.addEventListener("mousedown",u,!0),v.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var g,p,y=t==null||(g=t.getRootNode)===null||g===void 0?void 0:g.call(t),m=(p=i.getRootNode)===null||p===void 0?void 0:p.call(i);Yr(y===m,"trigger element and popup element should in same shadow root.")}return function(){h.removeEventListener("pointerdown",l,!0),h.removeEventListener("mousedown",u,!0),h.removeEventListener("contextmenu",u,!0),v&&(v.removeEventListener("mousedown",u,!0),v.removeEventListener("contextmenu",u,!0))}}},[r,t,i,n,o]);function c(){d.current=!0}return c}var nx=["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 ix(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lu,r=M.forwardRef(function(t,i){var n=t.prefixCls,o=n===void 0?"rc-trigger-popup":n,a=t.children,s=t.action,f=s===void 0?"hover":s,d=t.showAction,c=t.hideAction,l=t.popupVisible,u=t.defaultPopupVisible,h=t.onPopupVisibleChange,v=t.afterPopupVisibleChange,g=t.mouseEnterDelay,p=t.mouseLeaveDelay,y=p===void 0?.1:p,m=t.focusDelay,x=t.blurDelay,b=t.mask,E=t.maskClosable,S=E===void 0?!0:E,w=t.getPopupContainer,_=t.forceRender,A=t.autoDestroy,R=t.destroyPopupOnHide,C=t.popup,O=t.popupClassName,j=t.popupStyle,k=t.popupPlacement,I=t.builtinPlacements,B=I===void 0?{}:I,V=t.popupAlign,W=t.zIndex,L=t.stretch,$=t.getPopupClassNameFromAlign,N=t.fresh,F=t.alignPoint,q=t.onPopupClick,K=t.onPopupAlign,G=t.arrow,T=t.popupMotion,D=t.maskMotion,H=t.popupTransitionName,U=t.popupAnimation,Y=t.maskTransitionName,ee=t.maskAnimation,ie=t.className,oe=t.getTriggerDOMNode,re=pt(t,nx),ue=A||R||!1,ce=M.useState(!1),he=fe(ce,2),Q=he[0],J=he[1];Ge(function(){J(K1())},[]);var le=M.useRef({}),se=M.useContext(md),ne=M.useMemo(function(){return{registerSubPopup:function(Ee,Ue){le.current[Ee]=Ue,se?.registerSubPopup(Ee,Ue)}}},[se]),de=zp(),ae=M.useState(null),pe=fe(ae,2),_e=pe[0],Me=pe[1],be=M.useRef(null),qe=mt(function(ve){be.current=ve,qn(ve)&&_e!==ve&&Me(ve),se?.registerSubPopup(de,ve)}),Oe=M.useState(null),je=fe(Oe,2),ke=je[0],Te=je[1],Se=M.useRef(null),ze=mt(function(ve){qn(ve)&&ke!==ve&&(Te(ve),Se.current=ve)}),me=M.Children.only(a),xe=me?.props||{},Ze={},Yt=mt(function(ve){var Ee,Ue,rt=ke;return rt?.contains(ve)||((Ee=Vi(rt))===null||Ee===void 0?void 0:Ee.host)===ve||ve===rt||_e?.contains(ve)||((Ue=Vi(_e))===null||Ue===void 0?void 0:Ue.host)===ve||ve===_e||Object.values(le.current).some(function(Xe){return Xe?.contains(ve)||ve===Xe})}),yr=yd(o,T,U,H),Tr=yd(o,D,ee,Y),dn=M.useState(u||!1),kr=fe(dn,2),Pt=kr[0],ct=kr[1],Qe=l??Pt,Xt=mt(function(ve){l===void 0&&ct(ve)});Ge(function(){ct(l||!1)},[l]);var ft=M.useRef(Qe);ft.current=Qe;var Le=M.useRef([]);Le.current=[];var Pe=mt(function(ve){var Ee;Xt(ve),((Ee=Le.current[Le.current.length-1])!==null&&Ee!==void 0?Ee:Qe)!==ve&&(Le.current.push(ve),h?.(ve))}),ot=M.useRef(),qt=function(){clearTimeout(ot.current)},yt=function(Ee){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;qt(),Ue===0?Pe(Ee):ot.current=setTimeout(function(){Pe(Ee)},Ue*1e3)};M.useEffect(function(){return qt},[]);var Ye=M.useState(!1),ar=fe(Ye,2),Zt=ar[0],De=ar[1];Ge(function(ve){(!ve||Qe)&&De(!0)},[Qe]);var Je=M.useState(null),vt=fe(Je,2),dt=vt[0],Vt=vt[1],Pr=M.useState(null),Nt=fe(Pr,2),St=Nt[0],zt=Nt[1],It=function(Ee){zt([Ee.clientX,Ee.clientY])},Nr=ex(Qe,_e,F&&St!==null?St:ke,k,B,V,K),He=fe(Nr,11),br=He[0],ai=He[1],vo=He[2],xr=He[3],si=He[4],mo=He[5],li=He[6],ui=He[7],Er=He[8],wr=He[9],hn=He[10],Sr=X1(Q,f,d,c),pn=fe(Sr,2),Ir=pn[0],Mt=pn[1],sr=Ir.has("click"),lr=Mt.has("click")||Mt.has("contextMenu"),ur=mt(function(){Zt||hn()}),vn=function(){ft.current&&F&&lr&&yt(!1)};tx(Qe,ke,_e,ur,vn),Ge(function(){ur()},[St,k]),Ge(function(){Qe&&!(B!=null&&B[k])&&ur()},[JSON.stringify(V)]);var go=M.useMemo(function(){var ve=J1(B,o,wr,F);return ye(ve,$?.(wr))},[wr,$,B,o,F]);M.useImperativeHandle(i,function(){return{nativeElement:Se.current,popupElement:be.current,forceAlign:ur}});var ci=M.useState(0),fi=fe(ci,2),di=fi[0],yo=fi[1],bo=M.useState(0),hi=fe(bo,2),xo=hi[0],Eo=hi[1],pi=function(){if(L&&ke){var Ee=ke.getBoundingClientRect();yo(Ee.width),Eo(Ee.height)}},wo=function(){pi(),ur()},So=function(Ee){De(!1),hn(),v?.(Ee)},_o=function(){return new Promise(function(Ee){pi(),Vt(function(){return Ee})})};Ge(function(){dt&&(hn(),dt(),Vt(null))},[dt]);function Ht(ve,Ee,Ue,rt){Ze[ve]=function(Xe){var mi;rt?.(Xe),yt(Ee,Ue);for(var Ao=arguments.length,mu=new Array(Ao>1?Ao-1:0),gi=1;gi<Ao;gi++)mu[gi-1]=arguments[gi];(mi=xe[ve])===null||mi===void 0||mi.call.apply(mi,[xe,Xe].concat(mu))}}(sr||lr)&&(Ze.onClick=function(ve){var Ee;ft.current&&lr?yt(!1):!ft.current&&sr&&(It(ve),yt(!0));for(var Ue=arguments.length,rt=new Array(Ue>1?Ue-1:0),Xe=1;Xe<Ue;Xe++)rt[Xe-1]=arguments[Xe];(Ee=xe.onClick)===null||Ee===void 0||Ee.call.apply(Ee,[xe,ve].concat(rt))});var mn=rx(Qe,lr,ke,_e,b,S,Yt,yt),Co=Ir.has("hover"),_t=Mt.has("hover"),Mr,gn;Co&&(Ht("onMouseEnter",!0,g,function(ve){It(ve)}),Ht("onPointerEnter",!0,g,function(ve){It(ve)}),Mr=function(Ee){(Qe||Zt)&&_e!==null&&_e!==void 0&&_e.contains(Ee.target)&&yt(!0,g)},F&&(Ze.onMouseMove=function(ve){var Ee;(Ee=xe.onMouseMove)===null||Ee===void 0||Ee.call(xe,ve)})),_t&&(Ht("onMouseLeave",!1,y),Ht("onPointerLeave",!1,y),gn=function(){yt(!1,y)}),Ir.has("focus")&&Ht("onFocus",!0,m),Mt.has("focus")&&Ht("onBlur",!1,x),Ir.has("contextMenu")&&(Ze.onContextMenu=function(ve){var Ee;ft.current&&Mt.has("contextMenu")?yt(!1):(It(ve),yt(!0)),ve.preventDefault();for(var Ue=arguments.length,rt=new Array(Ue>1?Ue-1:0),Xe=1;Xe<Ue;Xe++)rt[Xe-1]=arguments[Xe];(Ee=xe.onContextMenu)===null||Ee===void 0||Ee.call.apply(Ee,[xe,ve].concat(rt))}),ie&&(Ze.className=ye(xe.className,ie));var Qt=M.useRef(!1);Qt.current||(Qt.current=_||Qe||Zt);var cr=te(te({},xe),Ze),yn={},vi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];vi.forEach(function(ve){re[ve]&&(yn[ve]=function(){for(var Ee,Ue=arguments.length,rt=new Array(Ue),Xe=0;Xe<Ue;Xe++)rt[Xe]=arguments[Xe];(Ee=cr[ve])===null||Ee===void 0||Ee.call.apply(Ee,[cr].concat(rt)),re[ve].apply(re,rt)})});var Oo=M.cloneElement(me,te(te({},cr),yn)),Ro={x:mo,y:li},jo=G?te({},G!==!0?G:{}):null;return M.createElement(M.Fragment,null,M.createElement(ln,{disabled:!Qe,ref:ze,onResize:wo},M.createElement(Wp,{getTriggerDOMNode:oe},Oo)),Qt.current&&M.createElement(md.Provider,{value:ne},M.createElement(Up,{portal:e,ref:qe,prefixCls:o,popup:C,className:ye(O,go),style:j,target:ke,onMouseEnter:Mr,onMouseLeave:gn,onPointerEnter:Mr,zIndex:W,open:Qe,keepDom:Zt,fresh:N,onClick:q,onPointerDownCapture:mn,mask:b,motion:yr,maskMotion:Tr,onVisibleChanged:So,onPrepare:_o,forceRender:_,autoDestroy:ue,getPopupContainer:w,align:wr,arrow:jo,arrowPos:Ro,ready:br,offsetX:ai,offsetY:vo,offsetR:xr,offsetB:si,onAlign:ur,stretch:L,targetWidth:di/ui,targetHeight:xo/Er})))});return process.env.NODE_ENV!=="production"&&(r.displayName="Trigger"),r}const ox=ix(lu);var Dr={shiftX:64,adjustY:1},Br={adjustX:1,shiftY:!0},Rt=[0,0],ax={left:{points:["cr","cl"],overflow:Br,offset:[-4,0],targetOffset:Rt},right:{points:["cl","cr"],overflow:Br,offset:[4,0],targetOffset:Rt},top:{points:["bc","tc"],overflow:Dr,offset:[0,-4],targetOffset:Rt},bottom:{points:["tc","bc"],overflow:Dr,offset:[0,4],targetOffset:Rt},topLeft:{points:["bl","tl"],overflow:Dr,offset:[0,-4],targetOffset:Rt},leftTop:{points:["tr","tl"],overflow:Br,offset:[-4,0],targetOffset:Rt},topRight:{points:["br","tr"],overflow:Dr,offset:[0,-4],targetOffset:Rt},rightTop:{points:["tl","tr"],overflow:Br,offset:[4,0],targetOffset:Rt},bottomRight:{points:["tr","br"],overflow:Dr,offset:[0,4],targetOffset:Rt},rightBottom:{points:["bl","br"],overflow:Br,offset:[4,0],targetOffset:Rt},bottomLeft:{points:["tl","bl"],overflow:Dr,offset:[0,4],targetOffset:Rt},leftBottom:{points:["br","bl"],overflow:Br,offset:[-4,0],targetOffset:Rt}},sx=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],lx=function(r,t){var i=r.overlayClassName,n=r.trigger,o=n===void 0?["hover"]:n,a=r.mouseEnterDelay,s=a===void 0?0:a,f=r.mouseLeaveDelay,d=f===void 0?.1:f,c=r.overlayStyle,l=r.prefixCls,u=l===void 0?"rc-tooltip":l,h=r.children,v=r.onVisibleChange,g=r.afterVisibleChange,p=r.transitionName,y=r.animation,m=r.motion,x=r.placement,b=x===void 0?"right":x,E=r.align,S=E===void 0?{}:E,w=r.destroyTooltipOnHide,_=w===void 0?!1:w,A=r.defaultVisible,R=r.getTooltipContainer,C=r.overlayInnerStyle;r.arrowContent;var O=r.overlay,j=r.id,k=r.showArrow,I=k===void 0?!0:k,B=r.classNames,V=r.styles,W=pt(r,sx),L=zp(j),$=z.useRef(null);z.useImperativeHandle(t,function(){return $.current});var N=te({},W);"visible"in r&&(N.popupVisible=r.visible);var F=function(){return M.createElement(qp,{key:"content",prefixCls:u,id:L,bodyClassName:B?.body,overlayInnerStyle:te(te({},C),V?.body)},O)},q=function(){var G=M.Children.only(h),T=G?.props||{},D=te(te({},T),{},{"aria-describedby":O?L:null});return M.cloneElement(h,D)};return M.createElement(ox,Ve({popupClassName:ye(i,B?.root),prefixCls:u,popup:F,action:o,builtinPlacements:ax,popupPlacement:b,ref:$,popupAlign:S,getPopupContainer:R,onPopupVisibleChange:v,afterPopupVisibleChange:g,popupTransitionName:p,popupAnimation:y,popupMotion:m,defaultPopupVisible:A,autoDestroy:_,mouseLeaveDelay:d,popupStyle:te(te({},c),V?.root),mouseEnterDelay:s,arrow:I},N),q())};const ux=z.forwardRef(lx);function Kp(e,r){this.v=e,this.k=r}function ht(e,r,t,i){var n=Object.defineProperty;try{n({},"",{})}catch{n=0}ht=function(a,s,f,d){function c(l,u){ht(a,l,function(h){return this._invoke(l,u,h)})}s?n?n(a,s,{value:f,enumerable:!d,configurable:!d,writable:!d}):a[s]=f:(c("next",0),c("throw",1),c("return",2))},ht(e,r,t,i)}function uu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,t=typeof Symbol=="function"?Symbol:{},i=t.iterator||"@@iterator",n=t.toStringTag||"@@toStringTag";function o(h,v,g,p){var y=v&&v.prototype instanceof s?v:s,m=Object.create(y.prototype);return ht(m,"_invoke",(function(x,b,E){var S,w,_,A=0,R=E||[],C=!1,O={p:0,n:0,v:e,a:j,f:j.bind(e,4),d:function(I,B){return S=I,w=0,_=e,O.n=B,a}};function j(k,I){for(w=k,_=I,r=0;!C&&A&&!B&&r<R.length;r++){var B,V=R[r],W=O.p,L=V[2];k>3?(B=L===I)&&(_=V[(w=V[4])?5:(w=3,3)],V[4]=V[5]=e):V[0]<=W&&((B=k<2&&W<V[1])?(w=0,O.v=I,O.n=V[1]):W<L&&(B=k<3||V[0]>I||I>L)&&(V[4]=k,V[5]=I,O.n=L,w=0))}if(B||k>1)return a;throw C=!0,I}return function(k,I,B){if(A>1)throw TypeError("Generator is already running");for(C&&I===1&&j(I,B),w=I,_=B;(r=w<2?e:_)||!C;){S||(w?w<3?(w>1&&(O.n=-1),j(w,_)):O.n=_:O.v=_);try{if(A=2,S){if(w||(k="next"),r=S[k]){if(!(r=r.call(S,_)))throw TypeError("iterator result is not an object");if(!r.done)return r;_=r.value,w<2&&(w=0)}else w===1&&(r=S.return)&&r.call(S),w<2&&(_=TypeError("The iterator does not provide a '"+k+"' method"),w=1);S=e}else if((r=(C=O.n<0)?_:x.call(b,O))!==a)break}catch(V){S=e,w=1,_=V}finally{A=1}}return{value:r,done:C}}})(h,g,p),!0),m}var a={};function s(){}function f(){}function d(){}r=Object.getPrototypeOf;var c=[][i]?r(r([][i]())):(ht(r={},i,function(){return this}),r),l=d.prototype=s.prototype=Object.create(c);function u(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,d):(h.__proto__=d,ht(h,n,"GeneratorFunction")),h.prototype=Object.create(l),h}return f.prototype=d,ht(l,"constructor",d),ht(d,"constructor",f),f.displayName="GeneratorFunction",ht(d,n,"GeneratorFunction"),ht(l),ht(l,n,"Generator"),ht(l,i,function(){return this}),ht(l,"toString",function(){return"[object Generator]"}),(uu=function(){return{w:o,m:u}})()}function Ki(e,r){function t(n,o,a,s){try{var f=e[n](o),d=f.value;return d instanceof Kp?r.resolve(d.v).then(function(c){t("next",c,a,s)},function(c){t("throw",c,a,s)}):r.resolve(d).then(function(c){f.value=c,a(f)},function(c){return t("throw",c,a,s)})}catch(c){s(c)}}var i;this.next||(ht(Ki.prototype),ht(Ki.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ht(this,"_invoke",function(n,o,a){function s(){return new r(function(f,d){t(n,a,f,d)})}return i=i?i.then(s,s):s()},!0)}function Gp(e,r,t,i,n){return new Ki(uu().w(e,r,t,i),n||Promise)}function cx(e,r,t,i,n){var o=Gp(e,r,t,i,n);return o.next().then(function(a){return a.done?a.value:o.next()})}function fx(e){var r=Object(e),t=[];for(var i in r)t.unshift(i);return function n(){for(;t.length;)if((i=t.pop())in r)return n.value=i,n.done=!1,n;return n.done=!0,n}}function Sd(e){if(e!=null){var r=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],t=0;if(r)return r.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(we(e)+" is not iterable")}function Tt(){var e=uu(),r=e.m(Tt),t=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function i(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===t||(s.displayName||s.name)==="GeneratorFunction")}var n={throw:1,return:2,break:3,continue:3};function o(a){var s,f;return function(d){s||(s={stop:function(){return f(d.a,2)},catch:function(){return d.v},abrupt:function(l,u){return f(d.a,n[l],u)},delegateYield:function(l,u,h){return s.resultName=u,f(d.d,Sd(l),h)},finish:function(l){return f(d.f,l)}},f=function(l,u,h){d.p=s.prev,d.n=s.next;try{return l(u,h)}finally{s.next=d.n}}),s.resultName&&(s[s.resultName]=d.v,s.resultName=void 0),s.sent=d.v,s.next=d.n;try{return a.call(this,s)}finally{d.p=s.prev,d.n=s.next}}}return(Tt=function(){return{wrap:function(f,d,c,l){return e.w(o(f),d,c,l&&l.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(f,d){return new Kp(f,d)},AsyncIterator:Ki,async:function(f,d,c,l,u){return(i(d)?Gp:cx)(o(f),d,c,l,u)},keys:fx,values:Sd}})()}function _d(e,r,t,i,n,o,a){try{var s=e[o](a),f=s.value}catch(d){return void t(d)}s.done?r(f):Promise.resolve(f).then(i,n)}function ri(e){return function(){var r=this,t=arguments;return new Promise(function(i,n){var o=e.apply(r,t);function a(f){_d(o,i,n,a,s,"next",f)}function s(f){_d(o,i,n,a,s,"throw",f)}a(void 0)})}}var Or="RC_FORM_INTERNAL_HOOKS",Be=function(){Ke(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},on=M.createContext({getFieldValue:Be,getFieldsValue:Be,getFieldError:Be,getFieldWarning:Be,getFieldsError:Be,isFieldsTouched:Be,isFieldTouched:Be,isFieldValidating:Be,isFieldsValidating:Be,resetFields:Be,setFields:Be,setFieldValue:Be,setFieldsValue:Be,validateFields:Be,submit:Be,getInternalHooks:function(){return Be(),{dispatch:Be,initEntityValue:Be,registerField:Be,useSubscribe:Be,setInitialValues:Be,destroyForm:Be,setCallbacks:Be,registerWatch:Be,getFields:Be,setValidateMessages:Be,setPreserve:Be,getInitialValue:Be}}}),Gi=M.createContext(null);function Rl(e){return e==null?[]:Array.isArray(e)?e:[e]}function dx(e){return e&&!!e._init}function jl(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var Al=jl();function hx(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function px(e,r,t){if(Ql())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,r);var n=new(e.bind.apply(e,i));return t&&Vn(n,t.prototype),n}function Tl(e){var r=typeof Map=="function"?new Map:void 0;return Tl=function(i){if(i===null||!hx(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(i))return r.get(i);r.set(i,n)}function n(){return px(i,arguments,zn(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Vn(n,i)},Tl(e)}var vx=/%[sdj%]/g,Yp=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Yp=function(r,t){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&t.every(function(i){return typeof i=="string"})&&console.warn(r,t)});function kl(e){if(!e||!e.length)return null;var r={};return e.forEach(function(t){var i=t.field;r[i]=r[i]||[],r[i].push(t)}),r}function wt(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),i=1;i<r;i++)t[i-1]=arguments[i];var n=0,o=t.length;if(typeof e=="function")return e.apply(null,t);if(typeof e=="string"){var a=e.replace(vx,function(s){if(s==="%%")return"%";if(n>=o)return s;switch(s){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function mx(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function it(e,r){return!!(e==null||r==="array"&&Array.isArray(e)&&!e.length||mx(r)&&typeof e=="string"&&!e)}function gx(e,r,t){var i=[],n=0,o=e.length;function a(s){i.push.apply(i,ge(s||[])),n++,n===o&&t(i)}e.forEach(function(s){r(s,a)})}function Cd(e,r,t){var i=0,n=e.length;function o(a){if(a&&a.length){t(a);return}var s=i;i=i+1,s<n?r(e[s],o):t([])}o([])}function yx(e){var r=[];return Object.keys(e).forEach(function(t){r.push.apply(r,ge(e[t]||[]))}),r}var Od=(function(e){mr(t,e);var r=gr(t);function t(i,n){var o;return lt(this,t),o=r.call(this,"Async Validation Error"),Z(Re(o),"errors",void 0),Z(Re(o),"fields",void 0),o.errors=i,o.fields=n,o}return ut(t)})(Tl(Error));function bx(e,r,t,i,n){if(r.first){var o=new Promise(function(u,h){var v=function(y){return i(y),y.length?h(new Od(y,kl(y))):u(n)},g=yx(e);Cd(g,t,v)});return o.catch(function(u){return u}),o}var a=r.firstFields===!0?Object.keys(e):r.firstFields||[],s=Object.keys(e),f=s.length,d=0,c=[],l=new Promise(function(u,h){var v=function(p){if(c.push.apply(c,p),d++,d===f)return i(c),c.length?h(new Od(c,kl(c))):u(n)};s.length||(i(c),u(n)),s.forEach(function(g){var p=e[g];a.indexOf(g)!==-1?Cd(p,t,v):gx(p,t,v)})});return l.catch(function(u){return u}),l}function xx(e){return!!(e&&e.message!==void 0)}function Ex(e,r){for(var t=e,i=0;i<r.length;i++){if(t==null)return t;t=t[r[i]]}return t}function Rd(e,r){return function(t){var i;return e.fullFields?i=Ex(r,e.fullFields):i=r[t.field||e.fullField],xx(t)?(t.field=t.field||e.fullField,t.fieldValue=i,t):{message:typeof t=="function"?t():t,fieldValue:i,field:t.field||e.fullField}}}function jd(e,r){if(r){for(var t in r)if(r.hasOwnProperty(t)){var i=r[t];we(i)==="object"&&we(e[t])==="object"?e[t]=te(te({},e[t]),i):e[t]=i}}return e}var qr="enum",wx=function(r,t,i,n,o){r[qr]=Array.isArray(r[qr])?r[qr]:[],r[qr].indexOf(t)===-1&&n.push(wt(o.messages[qr],r.fullField,r[qr].join(", ")))},Sx=function(r,t,i,n,o){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(t)||n.push(wt(o.messages.pattern.mismatch,r.fullField,t,r.pattern));else if(typeof r.pattern=="string"){var a=new RegExp(r.pattern);a.test(t)||n.push(wt(o.messages.pattern.mismatch,r.fullField,t,r.pattern))}}},_x=function(r,t,i,n,o){var a=typeof r.len=="number",s=typeof r.min=="number",f=typeof r.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,l=null,u=typeof t=="number",h=typeof t=="string",v=Array.isArray(t);if(u?l="number":h?l="string":v&&(l="array"),!l)return!1;v&&(c=t.length),h&&(c=t.replace(d,"_").length),a?c!==r.len&&n.push(wt(o.messages[l].len,r.fullField,r.len)):s&&!f&&c<r.min?n.push(wt(o.messages[l].min,r.fullField,r.min)):f&&!s&&c>r.max?n.push(wt(o.messages[l].max,r.fullField,r.max)):s&&f&&(c<r.min||c>r.max)&&n.push(wt(o.messages[l].range,r.fullField,r.min,r.max))},Xp=function(r,t,i,n,o,a){r.required&&(!i.hasOwnProperty(r.field)||it(t,a||r.type))&&n.push(wt(o.messages.required,r.fullField))},Ri;const Cx=(function(){if(Ri)return Ri;var e="[a-fA-F\\d:]",r=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",n=["(?:".concat(i,":){7}(?:").concat(i,"|:)"),"(?:".concat(i,":){6}(?:").concat(t,"|:").concat(i,"|:)"),"(?:".concat(i,":){5}(?::").concat(t,"|(?::").concat(i,"){1,2}|:)"),"(?:".concat(i,":){4}(?:(?::").concat(i,"){0,1}:").concat(t,"|(?::").concat(i,"){1,3}|:)"),"(?:".concat(i,":){3}(?:(?::").concat(i,"){0,2}:").concat(t,"|(?::").concat(i,"){1,4}|:)"),"(?:".concat(i,":){2}(?:(?::").concat(i,"){0,3}:").concat(t,"|(?::").concat(i,"){1,5}|:)"),"(?:".concat(i,":){1}(?:(?::").concat(i,"){0,4}:").concat(t,"|(?::").concat(i,"){1,6}|:)"),"(?::(?:(?::".concat(i,"){0,5}:").concat(t,"|(?::").concat(i,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(n.join("|"),")").concat(o),s=new RegExp("(?:^".concat(t,"$)|(?:^").concat(a,"$)")),f=new RegExp("^".concat(t,"$")),d=new RegExp("^".concat(a,"$")),c=function(S){return S&&S.exact?s:new RegExp("(?:".concat(r(S)).concat(t).concat(r(S),")|(?:").concat(r(S)).concat(a).concat(r(S),")"),"g")};c.v4=function(E){return E&&E.exact?f:new RegExp("".concat(r(E)).concat(t).concat(r(E)),"g")},c.v6=function(E){return E&&E.exact?d:new RegExp("".concat(r(E)).concat(a).concat(r(E)),"g")};var l="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",h=c.v4().source,v=c.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',b="(?:".concat(l,"|www\\.)").concat(u,"(?:localhost|").concat(h,"|").concat(v,"|").concat(g).concat(p).concat(y,")").concat(m).concat(x);return Ri=new RegExp("(?:^".concat(b,"$)"),"i"),Ri});var Ad={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Pn={integer:function(r){return Pn.number(r)&&parseInt(r,10)===r},float:function(r){return Pn.number(r)&&!Pn.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return we(r)==="object"&&!Pn.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(Ad.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(Cx())},hex:function(r){return typeof r=="string"&&!!r.match(Ad.hex)}},Ox=function(r,t,i,n,o){if(r.required&&t===void 0){Xp(r,t,i,n,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=r.type;a.indexOf(s)>-1?Pn[s](t)||n.push(wt(o.messages.types[s],r.fullField,r.type)):s&&we(t)!==r.type&&n.push(wt(o.messages.types[s],r.fullField,r.type))},Rx=function(r,t,i,n,o){(/^\s+$/.test(t)||t==="")&&n.push(wt(o.messages.whitespace,r.fullField))};const Ae={required:Xp,whitespace:Rx,type:Ox,range:_x,enum:wx,pattern:Sx};var jx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o)}i(a)},Ax=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(t==null&&!r.required)return i();Ae.required(r,t,n,a,o,"array"),t!=null&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},Tx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae.type(r,t,n,a,o)}i(a)},kx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t,"date")&&!r.required)return i();if(Ae.required(r,t,n,a,o),!it(t,"date")){var f;t instanceof Date?f=t:f=new Date(t),Ae.type(r,f,n,a,o),f&&Ae.range(r,f.getTime(),n,a,o)}}i(a)},Px="enum",Nx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae[Px](r,t,n,a,o)}i(a)},Ix=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},Mx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},Lx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae.type(r,t,n,a,o)}i(a)},Fx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(t===""&&(t=void 0),it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},$x=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae.type(r,t,n,a,o)}i(a)},Dx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t,"string")&&!r.required)return i();Ae.required(r,t,n,a,o),it(t,"string")||Ae.pattern(r,t,n,a,o)}i(a)},Bx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t)&&!r.required)return i();Ae.required(r,t,n,a,o),it(t)||Ae.type(r,t,n,a,o)}i(a)},qx=function(r,t,i,n,o){var a=[],s=Array.isArray(t)?"array":we(t);Ae.required(r,t,n,a,o,s),i(a)},Vx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(it(t,"string")&&!r.required)return i();Ae.required(r,t,n,a,o,"string"),it(t,"string")||(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o),Ae.pattern(r,t,n,a,o),r.whitespace===!0&&Ae.whitespace(r,t,n,a,o))}i(a)},js=function(r,t,i,n,o){var a=r.type,s=[],f=r.required||!r.required&&n.hasOwnProperty(r.field);if(f){if(it(t,a)&&!r.required)return i();Ae.required(r,t,n,s,o,a),it(t,a)||Ae.type(r,t,n,s,o)}i(s)};const Fn={string:Vx,method:Lx,number:Fx,boolean:Tx,regexp:Bx,integer:Mx,float:Ix,array:Ax,object:$x,enum:Nx,pattern:Dx,date:kx,url:js,hex:js,email:js,required:qx,any:jx};var ni=(function(){function e(r){lt(this,e),Z(this,"rules",null),Z(this,"_messages",Al),this.define(r)}return ut(e,[{key:"define",value:function(t){var i=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(we(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(n){var o=t[n];i.rules[n]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(t){return t&&(this._messages=jd(jl(),t)),this._messages}},{key:"validate",value:function(t){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,s=n,f=o;if(typeof s=="function"&&(f=s,s={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,a),Promise.resolve(a);function d(v){var g=[],p={};function y(x){if(Array.isArray(x)){var b;g=(b=g).concat.apply(b,ge(x))}else g.push(x)}for(var m=0;m<v.length;m++)y(v[m]);g.length?(p=kl(g),f(g,p)):f(null,a)}if(s.messages){var c=this.messages();c===Al&&(c=jl()),jd(c,s.messages),s.messages=c}else s.messages=this.messages();var l={},u=s.keys||Object.keys(this.rules);u.forEach(function(v){var g=i.rules[v],p=a[v];g.forEach(function(y){var m=y;typeof m.transform=="function"&&(a===t&&(a=te({},a)),p=a[v]=m.transform(p),p!=null&&(m.type=m.type||(Array.isArray(p)?"array":we(p)))),typeof m=="function"?m={validator:m}:m=te({},m),m.validator=i.getValidationMethod(m),m.validator&&(m.field=v,m.fullField=m.fullField||v,m.type=i.getType(m),l[v]=l[v]||[],l[v].push({rule:m,value:p,source:a,field:v}))})});var h={};return bx(l,s,function(v,g){var p=v.rule,y=(p.type==="object"||p.type==="array")&&(we(p.fields)==="object"||we(p.defaultField)==="object");y=y&&(p.required||!p.required&&v.value),p.field=v.field;function m(w,_){return te(te({},_),{},{fullField:"".concat(p.fullField,".").concat(w),fullFields:p.fullFields?[].concat(ge(p.fullFields),[w]):[w]})}function x(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_=Array.isArray(w)?w:[w];!s.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&p.message!==void 0&&(_=[].concat(p.message));var A=_.map(Rd(p,a));if(s.first&&A.length)return h[p.field]=1,g(A);if(!y)g(A);else{if(p.required&&!v.value)return p.message!==void 0?A=[].concat(p.message).map(Rd(p,a)):s.error&&(A=[s.error(p,wt(s.messages.required,p.field))]),g(A);var R={};p.defaultField&&Object.keys(v.value).map(function(j){R[j]=p.defaultField}),R=te(te({},R),v.rule.fields);var C={};Object.keys(R).forEach(function(j){var k=R[j],I=Array.isArray(k)?k:[k];C[j]=I.map(m.bind(null,j))});var O=new e(C);O.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),O.validate(v.value,v.rule.options||s,function(j){var k=[];A&&A.length&&k.push.apply(k,ge(A)),j&&j.length&&k.push.apply(k,ge(j)),g(k.length?k:null)})}}var b;if(p.asyncValidator)b=p.asyncValidator(p,v.value,x,v.source,s);else if(p.validator){try{b=p.validator(p,v.value,x,v.source,s)}catch(w){var E,S;(E=(S=console).error)===null||E===void 0||E.call(S,w),s.suppressValidatorError||setTimeout(function(){throw w},0),x(w.message)}b===!0?x():b===!1?x(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):b instanceof Array?x(b):b instanceof Error&&x(b.message)}b&&b.then&&b.then(function(){return x()},function(w){return x(w)})},function(v){d(v)},a)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Fn.hasOwnProperty(t.type))throw new Error(wt("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var i=Object.keys(t),n=i.indexOf("message");return n!==-1&&i.splice(n,1),i.length===1&&i[0]==="required"?Fn.required:Fn[this.getType(t)]||void 0}}]),e})();Z(ni,"register",function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Fn[r]=t});Z(ni,"warning",Yp);Z(ni,"messages",Al);Z(ni,"validators",Fn);var xt="'${name}' is not a valid ${type}",Zp={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:xt,method:xt,array:xt,object:xt,number:xt,date:xt,boolean:xt,integer:xt,float:xt,regexp:xt,email:xt,url:xt,hex:xt},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Td=ni;function zx(e,r){return e.replace(/\\?\$\{\w+\}/g,function(t){if(t.startsWith("\\"))return t.slice(1);var i=t.slice(2,-1);return r[i]})}var kd="CODE_LOGIC_ERROR";function Pl(e,r,t,i,n){return Nl.apply(this,arguments)}function Nl(){return Nl=ri(Tt().mark(function e(r,t,i,n,o){var a,s,f,d,c,l,u,h,v;return Tt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=te({},i),delete a.ruleIndex,Td.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(kd)}}),f=null,a&&a.type==="array"&&a.defaultField&&(f=a.defaultField,delete a.defaultField),d=new Td(Z({},r,[a])),c=zr(Zp,n.validateMessages),d.messages(c),l=[],p.prev=10,p.next=13,Promise.resolve(d.validate(Z({},r,t),te({},n)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(l=p.t0.errors.map(function(y,m){var x=y.message,b=x===kd?c.default:x;return M.isValidElement(b)?M.cloneElement(b,{key:"error_".concat(m)}):b}));case 18:if(!(!l.length&&f)){p.next=23;break}return p.next=21,Promise.all(t.map(function(y,m){return Pl("".concat(r,".").concat(m),y,f,n,o)}));case 21:return u=p.sent,p.abrupt("return",u.reduce(function(y,m){return[].concat(ge(y),ge(m))},[]));case 23:return h=te(te({},i),{},{name:r,enum:(i.enum||[]).join(", ")},o),v=l.map(function(y){return typeof y=="string"?zx(y,h):y}),p.abrupt("return",v);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),Nl.apply(this,arguments)}function Hx(e,r,t,i,n,o){var a=e.join("."),s=t.map(function(c,l){var u=c.validator,h=te(te({},c),{},{ruleIndex:l});return u&&(h.validator=function(v,g,p){var y=!1,m=function(){for(var E=arguments.length,S=new Array(E),w=0;w<E;w++)S[w]=arguments[w];Promise.resolve().then(function(){Ke(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||p.apply(void 0,S)})},x=u(v,g,m);y=x&&typeof x.then=="function"&&typeof x.catch=="function",Ke(y,"`callback` is deprecated. Please return a promise instead."),y&&x.then(function(){p()}).catch(function(b){p(b||" ")})}),h}).sort(function(c,l){var u=c.warningOnly,h=c.ruleIndex,v=l.warningOnly,g=l.ruleIndex;return!!u==!!v?h-g:u?1:-1}),f;if(n===!0)f=new Promise((function(){var c=ri(Tt().mark(function l(u,h){var v,g,p;return Tt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:v=0;case 1:if(!(v<s.length)){m.next=12;break}return g=s[v],m.next=5,Pl(a,r,g,i,o);case 5:if(p=m.sent,!p.length){m.next=9;break}return h([{errors:p,rule:g}]),m.abrupt("return");case 9:v+=1,m.next=1;break;case 12:u([]);case 13:case"end":return m.stop()}},l)}));return function(l,u){return c.apply(this,arguments)}})());else{var d=s.map(function(c){return Pl(a,r,c,i,o).then(function(l){return{errors:l,rule:c}})});f=(n?Wx(d):Ux(d)).then(function(c){return Promise.reject(c)})}return f.catch(function(c){return c}),f}function Ux(e){return Il.apply(this,arguments)}function Il(){return Il=ri(Tt().mark(function e(r){return Tt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.all(r).then(function(n){var o,a=(o=[]).concat.apply(o,ge(n));return a}));case 1:case"end":return i.stop()}},e)})),Il.apply(this,arguments)}function Wx(e){return Ml.apply(this,arguments)}function Ml(){return Ml=ri(Tt().mark(function e(r){var t;return Tt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t=0,n.abrupt("return",new Promise(function(o){r.forEach(function(a){a.then(function(s){s.errors.length&&o([s]),t+=1,t===r.length&&o([])})})}));case 2:case"end":return n.stop()}},e)})),Ml.apply(this,arguments)}function et(e){return Rl(e)}function Pd(e,r){var t={};return r.forEach(function(i){var n=Wt(e,i);t=Ft(t,i,n)}),t}function Kr(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(i){return Qp(r,i,t)})}function Qp(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!r||!t&&e.length!==r.length?!1:r.every(function(i,n){return e[n]===i})}function Kx(e,r){if(e===r)return!0;if(!e&&r||e&&!r||!e||!r||we(e)!=="object"||we(r)!=="object")return!1;var t=Object.keys(e),i=Object.keys(r),n=new Set([].concat(t,i));return ge(n).every(function(o){var a=e[o],s=r[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function Gx(e){var r=arguments.length<=1?void 0:arguments[1];return r&&r.target&&we(r.target)==="object"&&e in r.target?r.target[e]:r}function Nd(e,r,t){var i=e.length;if(r<0||r>=i||t<0||t>=i)return e;var n=e[r],o=r-t;return o>0?[].concat(ge(e.slice(0,t)),[n],ge(e.slice(t,r)),ge(e.slice(r+1,i))):o<0?[].concat(ge(e.slice(0,r)),ge(e.slice(r+1,t+1)),[n],ge(e.slice(t+1,i))):e}var Yx=["name"],jt=[];function As(e,r,t,i,n,o){return typeof e=="function"?e(r,t,"source"in o?{source:o.source}:{}):i!==n}var cu=(function(e){mr(t,e);var r=gr(t);function t(i){var n;if(lt(this,t),n=r.call(this,i),Z(Re(n),"state",{resetCount:0}),Z(Re(n),"cancelRegisterFunc",null),Z(Re(n),"mounted",!1),Z(Re(n),"touched",!1),Z(Re(n),"dirty",!1),Z(Re(n),"validatePromise",void 0),Z(Re(n),"prevValidating",void 0),Z(Re(n),"errors",jt),Z(Re(n),"warnings",jt),Z(Re(n),"cancelRegister",function(){var f=n.props,d=f.preserve,c=f.isListField,l=f.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(c,d,et(l)),n.cancelRegisterFunc=null}),Z(Re(n),"getNamePath",function(){var f=n.props,d=f.name,c=f.fieldContext,l=c.prefixName,u=l===void 0?[]:l;return d!==void 0?[].concat(ge(u),ge(d)):[]}),Z(Re(n),"getRules",function(){var f=n.props,d=f.rules,c=d===void 0?[]:d,l=f.fieldContext;return c.map(function(u){return typeof u=="function"?u(l):u})}),Z(Re(n),"refresh",function(){n.mounted&&n.setState(function(f){var d=f.resetCount;return{resetCount:d+1}})}),Z(Re(n),"metaCache",null),Z(Re(n),"triggerMetaEvent",function(f){var d=n.props.onMetaChange;if(d){var c=te(te({},n.getMeta()),{},{destroy:f});ul(n.metaCache,c)||d(c),n.metaCache=c}else n.metaCache=null}),Z(Re(n),"onStoreChange",function(f,d,c){var l=n.props,u=l.shouldUpdate,h=l.dependencies,v=h===void 0?[]:h,g=l.onReset,p=c.store,y=n.getNamePath(),m=n.getValue(f),x=n.getValue(p),b=d&&Kr(d,y);switch(c.type==="valueUpdate"&&c.source==="external"&&!ul(m,x)&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=jt,n.warnings=jt,n.triggerMetaEvent()),c.type){case"reset":if(!d||b){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=jt,n.warnings=jt,n.triggerMetaEvent(),g?.(),n.refresh();return}break;case"remove":{if(u&&As(u,f,p,m,x,c)){n.reRender();return}break}case"setField":{var E=c.data;if(b){"touched"in E&&(n.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(n.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(n.errors=E.errors||jt),"warnings"in E&&(n.warnings=E.warnings||jt),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}else if("value"in E&&Kr(d,y,!0)){n.reRender();return}if(u&&!y.length&&As(u,f,p,m,x,c)){n.reRender();return}break}case"dependenciesUpdate":{var S=v.map(et);if(S.some(function(w){return Kr(c.relatedFields,w)})){n.reRender();return}break}default:if(b||(!v.length||y.length||u)&&As(u,f,p,m,x,c)){n.reRender();return}break}u===!0&&n.reRender()}),Z(Re(n),"validateRules",function(f){var d=n.getNamePath(),c=n.getValue(),l=f||{},u=l.triggerName,h=l.validateOnly,v=h===void 0?!1:h,g=Promise.resolve().then(ri(Tt().mark(function p(){var y,m,x,b,E,S,w;return Tt().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(n.mounted){A.next=2;break}return A.abrupt("return",[]);case 2:if(y=n.props,m=y.validateFirst,x=m===void 0?!1:m,b=y.messageVariables,E=y.validateDebounce,S=n.getRules(),u&&(S=S.filter(function(R){return R}).filter(function(R){var C=R.validateTrigger;if(!C)return!0;var O=Rl(C);return O.includes(u)})),!(E&&u)){A.next=10;break}return A.next=8,new Promise(function(R){setTimeout(R,E)});case 8:if(n.validatePromise===g){A.next=10;break}return A.abrupt("return",[]);case 10:return w=Hx(d,c,S,f,x,b),w.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jt;if(n.validatePromise===g){var C;n.validatePromise=null;var O=[],j=[];(C=R.forEach)===null||C===void 0||C.call(R,function(k){var I=k.rule.warningOnly,B=k.errors,V=B===void 0?jt:B;I?j.push.apply(j,ge(V)):O.push.apply(O,ge(V))}),n.errors=O,n.warnings=j,n.triggerMetaEvent(),n.reRender()}}),A.abrupt("return",w);case 13:case"end":return A.stop()}},p)})));return v||(n.validatePromise=g,n.dirty=!0,n.errors=jt,n.warnings=jt,n.triggerMetaEvent(),n.reRender()),g}),Z(Re(n),"isFieldValidating",function(){return!!n.validatePromise}),Z(Re(n),"isFieldTouched",function(){return n.touched}),Z(Re(n),"isFieldDirty",function(){if(n.dirty||n.props.initialValue!==void 0)return!0;var f=n.props.fieldContext,d=f.getInternalHooks(Or),c=d.getInitialValue;return c(n.getNamePath())!==void 0}),Z(Re(n),"getErrors",function(){return n.errors}),Z(Re(n),"getWarnings",function(){return n.warnings}),Z(Re(n),"isListField",function(){return n.props.isListField}),Z(Re(n),"isList",function(){return n.props.isList}),Z(Re(n),"isPreserve",function(){return n.props.preserve}),Z(Re(n),"getMeta",function(){n.prevValidating=n.isFieldValidating();var f={touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:n.validatePromise===null};return f}),Z(Re(n),"getOnlyChild",function(f){if(typeof f=="function"){var d=n.getMeta();return te(te({},n.getOnlyChild(f(n.getControlled(),d,n.props.fieldContext))),{},{isFunction:!0})}var c=Xr(f);return c.length!==1||!M.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),Z(Re(n),"getValue",function(f){var d=n.props.fieldContext.getFieldsValue,c=n.getNamePath();return Wt(f||d(!0),c)}),Z(Re(n),"getControlled",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=n.props,c=d.name,l=d.trigger,u=d.validateTrigger,h=d.getValueFromEvent,v=d.normalize,g=d.valuePropName,p=d.getValueProps,y=d.fieldContext,m=u!==void 0?u:y.validateTrigger,x=n.getNamePath(),b=y.getInternalHooks,E=y.getFieldsValue,S=b(Or),w=S.dispatch,_=n.getValue(),A=p||function(k){return Z({},g,k)},R=f[l],C=c!==void 0?A(_):{};process.env.NODE_ENV!=="production"&&C&&Object.keys(C).forEach(function(k){Ke(typeof C[k]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(k,")"))});var O=te(te({},f),C);O[l]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var k,I=arguments.length,B=new Array(I),V=0;V<I;V++)B[V]=arguments[V];h?k=h.apply(void 0,B):k=Gx.apply(void 0,[g].concat(B)),v&&(k=v(k,_,E(!0))),k!==_&&w({type:"updateValue",namePath:x,value:k}),R&&R.apply(void 0,B)};var j=Rl(m||[]);return j.forEach(function(k){var I=O[k];O[k]=function(){I&&I.apply(void 0,arguments);var B=n.props.rules;B&&B.length&&w({type:"validateField",namePath:x,triggerName:k})}}),O}),i.fieldContext){var o=i.fieldContext.getInternalHooks,a=o(Or),s=a.initEntityValue;s(Re(n))}return n}return ut(t,[{key:"componentDidMount",value:function(){var n=this.props,o=n.shouldUpdate,a=n.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,f=s(Or),d=f.registerField;this.cancelRegisterFunc=d(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var n=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,f=a.isFunction,d;return f?d=s:M.isValidElement(s)?d=M.cloneElement(s,this.getControlled(s.props)):(Ke(!s,"`children` of Field is not validate ReactElement."),d=s),M.createElement(M.Fragment,{key:n},d)}}]),t})(M.Component);Z(cu,"contextType",on);Z(cu,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Jp(e){var r,t=e.name,i=pt(e,Yx),n=M.useContext(on),o=M.useContext(Gi),a=t!==void 0?et(t):void 0,s=(r=i.isListField)!==null&&r!==void 0?r:!!o,f="keep";return s||(f="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&i.preserve===!1&&s&&a.length<=1&&Ke(!1,"`preserve` should not apply on Form.List fields."),M.createElement(cu,Ve({key:f,name:a,isListField:s},i,{fieldContext:n}))}function Xx(e){var r=e.name,t=e.initialValue,i=e.children,n=e.rules,o=e.validateTrigger,a=e.isListField,s=M.useContext(on),f=M.useContext(Gi),d=M.useRef({keys:[],id:0}),c=d.current,l=M.useMemo(function(){var g=et(s.prefixName)||[];return[].concat(ge(g),ge(et(r)))},[s.prefixName,r]),u=M.useMemo(function(){return te(te({},s),{},{prefixName:l})},[s,l]),h=M.useMemo(function(){return{getKey:function(p){var y=l.length,m=p[y];return[c.keys[m],p.slice(y+1)]}}},[l]);if(typeof i!="function")return Ke(!1,"Form.List only accepts function as children."),null;var v=function(p,y,m){var x=m.source;return x==="internal"?!1:p!==y};return M.createElement(Gi.Provider,{value:h},M.createElement(on.Provider,{value:u},M.createElement(Jp,{name:[],shouldUpdate:v,rules:n,validateTrigger:o,initialValue:t,isList:!0,isListField:a??!!f},function(g,p){var y=g.value,m=y===void 0?[]:y,x=g.onChange,b=s.getFieldValue,E=function(){var A=b(l||[]);return A||[]},S={add:function(A,R){var C=E();R>=0&&R<=C.length?(c.keys=[].concat(ge(c.keys.slice(0,R)),[c.id],ge(c.keys.slice(R))),x([].concat(ge(C.slice(0,R)),[A],ge(C.slice(R))))):(process.env.NODE_ENV!=="production"&&(R<0||R>C.length)&&Ke(!1,"The second parameter of the add function should be a valid positive number."),c.keys=[].concat(ge(c.keys),[c.id]),x([].concat(ge(C),[A]))),c.id+=1},remove:function(A){var R=E(),C=new Set(Array.isArray(A)?A:[A]);C.size<=0||(c.keys=c.keys.filter(function(O,j){return!C.has(j)}),x(R.filter(function(O,j){return!C.has(j)})))},move:function(A,R){if(A!==R){var C=E();A<0||A>=C.length||R<0||R>=C.length||(c.keys=Nd(c.keys,A,R),x(Nd(C,A,R)))}}},w=m||[];return Array.isArray(w)||(w=[],process.env.NODE_ENV!=="production"&&Ke(!1,"Current value of '".concat(l.join(" > "),"' is not an array type."))),i(w.map(function(_,A){var R=c.keys[A];return R===void 0&&(c.keys[A]=c.id,R=c.keys[A],c.id+=1),{name:A,key:R,isListField:!0}}),S,p)})))}function Zx(e){var r=!1,t=e.length,i=[];return e.length?new Promise(function(n,o){e.forEach(function(a,s){a.catch(function(f){return r=!0,f}).then(function(f){t-=1,i[s]=f,!(t>0)&&(r&&o(i),n(i))})})}):Promise.resolve([])}var ev="__@field_split__";function Ts(e){return e.map(function(r){return"".concat(we(r),":").concat(r)}).join(ev)}var Vr=(function(){function e(){lt(this,e),Z(this,"kvs",new Map)}return ut(e,[{key:"set",value:function(t,i){this.kvs.set(Ts(t),i)}},{key:"get",value:function(t){return this.kvs.get(Ts(t))}},{key:"update",value:function(t,i){var n=this.get(t),o=i(n);o?this.set(t,o):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(Ts(t))}},{key:"map",value:function(t){return ge(this.kvs.entries()).map(function(i){var n=fe(i,2),o=n[0],a=n[1],s=o.split(ev);return t({key:s.map(function(f){var d=f.match(/^([^:]*):(.*)$/),c=fe(d,3),l=c[1],u=c[2];return l==="number"?Number(u):u}),value:a})})}},{key:"toJSON",value:function(){var t={};return this.map(function(i){var n=i.key,o=i.value;return t[n.join(".")]=o,null}),t}}]),e})(),Qx=["name"],Jx=ut(function e(r){var t=this;lt(this,e),Z(this,"formHooked",!1),Z(this,"forceRootUpdate",void 0),Z(this,"subscribable",!0),Z(this,"store",{}),Z(this,"fieldEntities",[]),Z(this,"initialValues",{}),Z(this,"callbacks",{}),Z(this,"validateMessages",null),Z(this,"preserve",null),Z(this,"lastValidatePromise",null),Z(this,"getForm",function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}}),Z(this,"getInternalHooks",function(i){return i===Or?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(Ke(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Z(this,"useSubscribe",function(i){t.subscribable=i}),Z(this,"prevWithoutPreserves",null),Z(this,"setInitialValues",function(i,n){if(t.initialValues=i||{},n){var o,a=zr(i,t.store);(o=t.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var f=s.key;a=Ft(a,f,Wt(i,f))}),t.prevWithoutPreserves=null,t.updateStore(a)}}),Z(this,"destroyForm",function(i){if(i)t.updateStore({});else{var n=new Vr;t.getFieldEntities(!0).forEach(function(o){t.isMergedPreserve(o.isPreserve())||n.set(o.getNamePath(),!0)}),t.prevWithoutPreserves=n}}),Z(this,"getInitialValue",function(i){var n=Wt(t.initialValues,i);return i.length?zr(n):n}),Z(this,"setCallbacks",function(i){t.callbacks=i}),Z(this,"setValidateMessages",function(i){t.validateMessages=i}),Z(this,"setPreserve",function(i){t.preserve=i}),Z(this,"watchList",[]),Z(this,"registerWatch",function(i){return t.watchList.push(i),function(){t.watchList=t.watchList.filter(function(n){return n!==i})}}),Z(this,"notifyWatch",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var n=t.getFieldsValue(),o=t.getFieldsValue(!0);t.watchList.forEach(function(a){a(n,o,i)})}}),Z(this,"timeoutId",null),Z(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!t.timeoutId&&typeof window<"u"&&(t.timeoutId=setTimeout(function(){t.timeoutId=null,t.formHooked||Ke(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),Z(this,"updateStore",function(i){t.store=i}),Z(this,"getFieldEntities",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return i?t.fieldEntities.filter(function(n){return n.getNamePath().length}):t.fieldEntities}),Z(this,"getFieldsMap",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=new Vr;return t.getFieldEntities(i).forEach(function(o){var a=o.getNamePath();n.set(a,o)}),n}),Z(this,"getFieldEntitiesForNamePathList",function(i){if(!i)return t.getFieldEntities(!0);var n=t.getFieldsMap(!0);return i.map(function(o){var a=et(o);return n.get(a)||{INVALIDATE_NAME_PATH:et(o)}})}),Z(this,"getFieldsValue",function(i,n){t.warningUnhooked();var o,a,s;if(i===!0||Array.isArray(i)?(o=i,a=n):i&&we(i)==="object"&&(s=i.strict,a=i.filter),o===!0&&!a)return t.store;var f=t.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),d=[];return f.forEach(function(c){var l,u,h="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(s){var v,g;if((v=(g=c).isList)!==null&&v!==void 0&&v.call(g))return}else if(!o&&(l=(u=c).isListField)!==null&&l!==void 0&&l.call(u))return;if(!a)d.push(h);else{var p="getMeta"in c?c.getMeta():null;a(p)&&d.push(h)}}),Pd(t.store,d.map(et))}),Z(this,"getFieldValue",function(i){t.warningUnhooked();var n=et(i);return Wt(t.store,n)}),Z(this,"getFieldsError",function(i){t.warningUnhooked();var n=t.getFieldEntitiesForNamePathList(i);return n.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:et(i[a]),errors:[],warnings:[]}})}),Z(this,"getFieldError",function(i){t.warningUnhooked();var n=et(i),o=t.getFieldsError([n])[0];return o.errors}),Z(this,"getFieldWarning",function(i){t.warningUnhooked();var n=et(i),o=t.getFieldsError([n])[0];return o.warnings}),Z(this,"isFieldsTouched",function(){t.warningUnhooked();for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];var a=n[0],s=n[1],f,d=!1;n.length===0?f=null:n.length===1?Array.isArray(a)?(f=a.map(et),d=!1):(f=null,d=a):(f=a.map(et),d=s);var c=t.getFieldEntities(!0),l=function(p){return p.isFieldTouched()};if(!f)return d?c.every(function(g){return l(g)||g.isList()}):c.some(l);var u=new Vr;f.forEach(function(g){u.set(g,[])}),c.forEach(function(g){var p=g.getNamePath();f.forEach(function(y){y.every(function(m,x){return p[x]===m})&&u.update(y,function(m){return[].concat(ge(m),[g])})})});var h=function(p){return p.some(l)},v=u.map(function(g){var p=g.value;return p});return d?v.every(h):v.some(h)}),Z(this,"isFieldTouched",function(i){return t.warningUnhooked(),t.isFieldsTouched([i])}),Z(this,"isFieldsValidating",function(i){t.warningUnhooked();var n=t.getFieldEntities();if(!i)return n.some(function(a){return a.isFieldValidating()});var o=i.map(et);return n.some(function(a){var s=a.getNamePath();return Kr(o,s)&&a.isFieldValidating()})}),Z(this,"isFieldValidating",function(i){return t.warningUnhooked(),t.isFieldsValidating([i])}),Z(this,"resetWithFieldInitialValue",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new Vr,o=t.getFieldEntities(!0);o.forEach(function(f){var d=f.props.initialValue,c=f.getNamePath();if(d!==void 0){var l=n.get(c)||new Set;l.add({entity:f,value:d}),n.set(c,l)}});var a=function(d){d.forEach(function(c){var l=c.props.initialValue;if(l!==void 0){var u=c.getNamePath(),h=t.getInitialValue(u);if(h!==void 0)Ke(!1,"Form already set 'initialValues' with path '".concat(u.join("."),"'. Field can not overwrite it."));else{var v=n.get(u);if(v&&v.size>1)Ke(!1,"Multiple Field with path '".concat(u.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var g=t.getFieldValue(u),p=c.isListField();!p&&(!i.skipExist||g===void 0)&&t.updateStore(Ft(t.store,u,ge(v)[0].value))}}}})},s;i.entities?s=i.entities:i.namePathList?(s=[],i.namePathList.forEach(function(f){var d=n.get(f);if(d){var c;(c=s).push.apply(c,ge(ge(d).map(function(l){return l.entity})))}})):s=o,a(s)}),Z(this,"resetFields",function(i){t.warningUnhooked();var n=t.store;if(!i){t.updateStore(zr(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(n,null,{type:"reset"}),t.notifyWatch();return}var o=i.map(et);o.forEach(function(a){var s=t.getInitialValue(a);t.updateStore(Ft(t.store,a,s))}),t.resetWithFieldInitialValue({namePathList:o}),t.notifyObservers(n,o,{type:"reset"}),t.notifyWatch(o)}),Z(this,"setFields",function(i){t.warningUnhooked();var n=t.store,o=[];i.forEach(function(a){var s=a.name,f=pt(a,Qx),d=et(s);o.push(d),"value"in f&&t.updateStore(Ft(t.store,d,f.value)),t.notifyObservers(n,[d],{type:"setField",data:a})}),t.notifyWatch(o)}),Z(this,"getFields",function(){var i=t.getFieldEntities(!0),n=i.map(function(o){var a=o.getNamePath(),s=o.getMeta(),f=te(te({},s),{},{name:a,value:t.getFieldValue(a)});return Object.defineProperty(f,"originRCField",{value:!0}),f});return n}),Z(this,"initEntityValue",function(i){var n=i.props.initialValue;if(n!==void 0){var o=i.getNamePath(),a=Wt(t.store,o);a===void 0&&t.updateStore(Ft(t.store,o,n))}}),Z(this,"isMergedPreserve",function(i){var n=i!==void 0?i:t.preserve;return n??!0}),Z(this,"registerField",function(i){t.fieldEntities.push(i);var n=i.getNamePath();if(t.notifyWatch([n]),i.props.initialValue!==void 0){var o=t.store;t.resetWithFieldInitialValue({entities:[i],skipExist:!0}),t.notifyObservers(o,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(l){return l!==i}),!t.isMergedPreserve(s)&&(!a||f.length>1)){var d=a?void 0:t.getInitialValue(n);if(n.length&&t.getFieldValue(n)!==d&&t.fieldEntities.every(function(l){return!Qp(l.getNamePath(),n)})){var c=t.store;t.updateStore(Ft(c,n,d,!0)),t.notifyObservers(c,[n],{type:"remove"}),t.triggerDependenciesUpdate(c,n)}}t.notifyWatch([n])}}),Z(this,"dispatch",function(i){switch(i.type){case"updateValue":{var n=i.namePath,o=i.value;t.updateValue(n,o);break}case"validateField":{var a=i.namePath,s=i.triggerName;t.validateFields([a],{triggerName:s});break}}}),Z(this,"notifyObservers",function(i,n,o){if(t.subscribable){var a=te(te({},o),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(s){var f=s.onStoreChange;f(i,n,a)})}else t.forceRootUpdate()}),Z(this,"triggerDependenciesUpdate",function(i,n){var o=t.getDependencyChildrenFields(n);return o.length&&t.validateFields(o),t.notifyObservers(i,o,{type:"dependenciesUpdate",relatedFields:[n].concat(ge(o))}),o}),Z(this,"updateValue",function(i,n){var o=et(i),a=t.store;t.updateStore(Ft(t.store,o,n)),t.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),t.notifyWatch([o]);var s=t.triggerDependenciesUpdate(a,o),f=t.callbacks.onValuesChange;if(f){var d=Pd(t.store,[o]);f(d,t.getFieldsValue())}t.triggerOnFieldsChange([o].concat(ge(s)))}),Z(this,"setFieldsValue",function(i){t.warningUnhooked();var n=t.store;if(i){var o=zr(t.store,i);t.updateStore(o)}t.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),Z(this,"setFieldValue",function(i,n){t.setFields([{name:i,value:n,errors:[],warnings:[]}])}),Z(this,"getDependencyChildrenFields",function(i){var n=new Set,o=[],a=new Vr;t.getFieldEntities().forEach(function(f){var d=f.props.dependencies;(d||[]).forEach(function(c){var l=et(c);a.update(l,function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return u.add(f),u})})});var s=function f(d){var c=a.get(d)||new Set;c.forEach(function(l){if(!n.has(l)){n.add(l);var u=l.getNamePath();l.isFieldDirty()&&u.length&&(o.push(u),f(u))}})};return s(i),o}),Z(this,"triggerOnFieldsChange",function(i,n){var o=t.callbacks.onFieldsChange;if(o){var a=t.getFields();if(n){var s=new Vr;n.forEach(function(d){var c=d.name,l=d.errors;s.set(c,l)}),a.forEach(function(d){d.errors=s.get(d.name)||d.errors})}var f=a.filter(function(d){var c=d.name;return Kr(i,c)});f.length&&o(f,a)}}),Z(this,"validateFields",function(i,n){t.warningUnhooked();var o,a;Array.isArray(i)||typeof i=="string"||typeof n=="string"?(o=i,a=n):a=i;var s=!!o,f=s?o.map(et):[],d=[],c=String(Date.now()),l=new Set,u=a||{},h=u.recursive,v=u.dirty;t.getFieldEntities(!0).forEach(function(m){if(s||f.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(v&&!m.isFieldDirty())){var x=m.getNamePath();if(l.add(x.join(c)),!s||Kr(f,x,h)){var b=m.validateRules(te({validateMessages:te(te({},Zp),t.validateMessages)},a));d.push(b.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(E){var S,w=[],_=[];return(S=E.forEach)===null||S===void 0||S.call(E,function(A){var R=A.rule.warningOnly,C=A.errors;R?_.push.apply(_,ge(C)):w.push.apply(w,ge(C))}),w.length?Promise.reject({name:x,errors:w,warnings:_}):{name:x,errors:w,warnings:_}}))}}});var g=Zx(d);t.lastValidatePromise=g,g.catch(function(m){return m}).then(function(m){var x=m.map(function(b){var E=b.name;return E});t.notifyObservers(t.store,x,{type:"validateFinish"}),t.triggerOnFieldsChange(x,m)});var p=g.then(function(){return t.lastValidatePromise===g?Promise.resolve(t.getFieldsValue(f)):Promise.reject([])}).catch(function(m){var x=m.filter(function(b){return b&&b.errors.length});return Promise.reject({values:t.getFieldsValue(f),errorFields:x,outOfDate:t.lastValidatePromise!==g})});p.catch(function(m){return m});var y=f.filter(function(m){return l.has(m.join(c))});return t.triggerOnFieldsChange(y),p}),Z(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(i){var n=t.callbacks.onFinish;if(n)try{n(i)}catch(o){console.error(o)}}).catch(function(i){var n=t.callbacks.onFinishFailed;n&&n(i)})}),this.forceRootUpdate=r});function tv(e){var r=M.useRef(),t=M.useState({}),i=fe(t,2),n=i[1];if(!r.current)if(e)r.current=e;else{var o=function(){n({})},a=new Jx(o);r.current=a.getForm()}return[r.current]}var Ll=M.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eE=function(r){var t=r.validateMessages,i=r.onFormChange,n=r.onFormFinish,o=r.children,a=M.useContext(Ll),s=M.useRef({});return M.createElement(Ll.Provider,{value:te(te({},a),{},{validateMessages:te(te({},a.validateMessages),t),triggerFormChange:function(d,c){i&&i(d,{changedFields:c,forms:s.current}),a.triggerFormChange(d,c)},triggerFormFinish:function(d,c){n&&n(d,{values:c,forms:s.current}),a.triggerFormFinish(d,c)},registerForm:function(d,c){d&&(s.current=te(te({},s.current),{},Z({},d,c))),a.registerForm(d,c)},unregisterForm:function(d){var c=te({},s.current);delete c[d],s.current=c,a.unregisterForm(d)}})},o)},tE=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],rE=function(r,t){var i=r.name,n=r.initialValues,o=r.fields,a=r.form,s=r.preserve,f=r.children,d=r.component,c=d===void 0?"form":d,l=r.validateMessages,u=r.validateTrigger,h=u===void 0?"onChange":u,v=r.onValuesChange,g=r.onFieldsChange,p=r.onFinish,y=r.onFinishFailed,m=r.clearOnDestroy,x=pt(r,tE),b=M.useRef(null),E=M.useContext(Ll),S=tv(a),w=fe(S,1),_=w[0],A=_.getInternalHooks(Or),R=A.useSubscribe,C=A.setInitialValues,O=A.setCallbacks,j=A.setValidateMessages,k=A.setPreserve,I=A.destroyForm;M.useImperativeHandle(t,function(){return te(te({},_),{},{nativeElement:b.current})}),M.useEffect(function(){return E.registerForm(i,_),function(){E.unregisterForm(i)}},[E,_,i]),j(te(te({},E.validateMessages),l)),O({onValuesChange:v,onFieldsChange:function(K){if(E.triggerFormChange(i,K),g){for(var G=arguments.length,T=new Array(G>1?G-1:0),D=1;D<G;D++)T[D-1]=arguments[D];g.apply(void 0,[K].concat(T))}},onFinish:function(K){E.triggerFormFinish(i,K),p&&p(K)},onFinishFailed:y}),k(s);var B=M.useRef(null);C(n,!B.current),B.current||(B.current=!0),M.useEffect(function(){return function(){return I(m)}},[]);var V,W=typeof f=="function";if(W){var L=_.getFieldsValue(!0);V=f(L,_)}else V=f;R(!W);var $=M.useRef();M.useEffect(function(){Kx($.current||[],o||[])||_.setFields(o||[]),$.current=o},[o,_]);var N=M.useMemo(function(){return te(te({},_),{},{validateTrigger:h})},[_,h]),F=M.createElement(Gi.Provider,{value:null},M.createElement(on.Provider,{value:N},V));return c===!1?F:M.createElement(c,Ve({},x,{ref:b,onSubmit:function(K){K.preventDefault(),K.stopPropagation(),_.submit()},onReset:function(K){var G;K.preventDefault(),_.resetFields(),(G=x.onReset)===null||G===void 0||G.call(x,K)}}),F)};function Id(e){try{return JSON.stringify(e)}catch{return Math.random()}}var nE=process.env.NODE_ENV!=="production"?function(e){var r=e.join("__RC_FIELD_FORM_SPLIT__"),t=z.useRef(r);Ke(t.current===r,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function iE(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=r[0],n=r[1],o=n===void 0?{}:n,a=dx(o)?{form:o}:o,s=a.form,f=z.useState(),d=fe(f,2),c=d[0],l=d[1],u=z.useMemo(function(){return Id(c)},[c]),h=z.useRef(u);h.current=u;var v=z.useContext(on),g=s||v,p=g&&g._init;process.env.NODE_ENV!=="production"&&Ke(r.length===2?s?p:!0:p,"useWatch requires a form instance since it can not auto detect from context.");var y=et(i),m=z.useRef(y);return m.current=y,nE(y),z.useEffect(function(){if(p){var x=g.getFieldsValue,b=g.getInternalHooks,E=b(Or),S=E.registerWatch,w=function(C,O){var j=a.preserve?O:C;return typeof i=="function"?i(j):Wt(j,m.current)},_=S(function(R,C){var O=w(R,C),j=Id(O);h.current!==j&&(h.current=j,l(O))}),A=w(x(),x(!0));return c!==A&&l(A),_}},[p]),c}var oE=M.forwardRef(rE),ii=oE;ii.FormProvider=eE;ii.Field=Jp;ii.List=Xx;ii.useForm=tv;ii.useWatch=iE;const Xn=M.createContext({});process.env.NODE_ENV!=="production"&&(Xn.displayName="FormItemInputContext");const aE=({children:e,status:r,override:t})=>{const i=M.useContext(Xn),n=M.useMemo(()=>{const o=Object.assign({},i);return t&&delete o.isFormItemInput,r&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[r,t,i]);return M.createElement(Xn.Provider,{value:n},e)},sE=M.createContext(void 0),rv=e=>{const r=z.useContext(rn);return z.useMemo(()=>e?typeof e=="string"?e??r:typeof e=="function"?e(r):r:r,[e,r])},nv=M.createContext(null),iv=(e,r)=>{const t=M.useContext(nv),i=M.useMemo(()=>{if(!t)return"";const{compactDirection:n,isFirstItem:o,isLastItem:a}=t,s=n==="vertical"?"-vertical-":"-";return ye(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:r==="rtl"})},[e,r,t]);return{compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:i}},lE=e=>{const{children:r}=e;return M.createElement(nv.Provider,{value:null},r)},Fl=e=>{const{space:r,form:t,children:i}=e;if(i==null)return null;let n=i;return t&&(n=z.createElement(aE,{override:!0,status:!0},n)),r&&(n=z.createElement(lE,null,n)),n},fu=z.createContext(void 0);process.env.NODE_ENV!=="production"&&(fu.displayName="zIndexContext");const er=100,uE=10,cE=er*uE,fE=cE+er,ov={Modal:er,Drawer:er,Popover:er,Popconfirm:er,Tooltip:er,Tour:er,FloatButton:er},dE={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function hE(e){return e in ov}const pE=(e,r)=>{const[,t]=cn(),i=z.useContext(fu),n=hE(e);let o;if(r!==void 0)o=[r,r];else{let a=i??0;n?a+=(i?0:t.zIndexPopupBase)+ov[e]:a+=dE[e],o=[i===void 0?r:a,a]}if(process.env.NODE_ENV!=="production"){const a=Kt(e),s=t.zIndexPopupBase+fE,f=o[0]||0;process.env.NODE_ENV!=="production"&&a(r!==void 0||f<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o},vE=(e,r,t)=>t!==void 0?t:`${e}-${r}`;function mE(e){const{sizePopupArrow:r,borderRadiusXS:t,borderRadiusOuter:i}=e,n=r/2,o=0,a=n,s=i*1/Math.sqrt(2),f=n-i*(1-1/Math.sqrt(2)),d=n-t*(1/Math.sqrt(2)),c=i*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),l=2*n-d,u=c,h=2*n-s,v=f,g=2*n-o,p=a,y=n*Math.sqrt(2)+i*(Math.sqrt(2)-2),m=i*(Math.sqrt(2)-1),x=`polygon(${m}px 100%, 50% ${m}px, ${2*n-m}px 100%, ${m}px 100%)`,b=`path('M ${o} ${a} A ${i} ${i} 0 0 0 ${s} ${f} L ${d} ${c} A ${t} ${t} 0 0 1 ${l} ${u} L ${h} ${v} A ${i} ${i} 0 0 0 ${g} ${p} Z')`;return{arrowShadowWidth:y,arrowPath:b,arrowPolygon:x}}const gE=(e,r,t)=>{const{sizePopupArrow:i,arrowPolygon:n,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:f}=e;return{pointerEvents:"none",width:i,height:i,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:i,height:f(i).div(2).equal(),background:r,clipPath:{_multi_value_:!0,value:[n,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${$e(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}},av=8;function sv(e){const{contentRadius:r,limitVerticalRadius:t}=e,i=r>12?r+2:12;return{arrowOffsetHorizontal:i,arrowOffsetVertical:t?av:i}}function ji(e,r){return e?r:{}}function yE(e,r,t){const{componentCls:i,boxShadowPopoverArrow:n,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}={};return{[i]:Object.assign(Object.assign(Object.assign(Object.assign({[`${i}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},gE(e,r,n)),{"&:before":{background:r}})]},ji(!!f.top,{[[`&-placement-top > ${i}-arrow`,`&-placement-topLeft > ${i}-arrow`,`&-placement-topRight > ${i}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${$e(a)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ji(!!f.bottom,{[[`&-placement-bottom > ${i}-arrow`,`&-placement-bottomLeft > ${i}-arrow`,`&-placement-bottomRight > ${i}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${$e(a)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ji(!!f.left,{[[`&-placement-left > ${i}-arrow`,`&-placement-leftTop > ${i}-arrow`,`&-placement-leftBottom > ${i}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${i}-arrow`]:{top:o},[`&-placement-leftBottom > ${i}-arrow`]:{bottom:o}})),ji(!!f.right,{[[`&-placement-right > ${i}-arrow`,`&-placement-rightTop > ${i}-arrow`,`&-placement-rightBottom > ${i}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${i}-arrow`]:{top:o},[`&-placement-rightBottom > ${i}-arrow`]:{bottom:o}}))}}function bE(e,r,t,i){if(i===!1)return{adjustX:!1,adjustY:!1};const n=i&&typeof i=="object"?i:{},o={};switch(e){case"top":case"bottom":o.shiftX=r.arrowOffsetHorizontal*2+t,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=r.arrowOffsetVertical*2+t,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),n);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Md={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"]}},xE={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"]}},EE=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function wE(e){const{arrowWidth:r,autoAdjustOverflow:t,arrowPointAtCenter:i,offset:n,borderRadius:o}=e,a=r/2,s={},f=sv({contentRadius:o,limitVerticalRadius:!0});return Object.keys(Md).forEach(d=>{const c=i&&xE[d]||Md[d],l=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[d]=l,EE.has(d)&&(l.autoArrow=!1),d){case"top":case"topLeft":case"topRight":l.offset[1]=-a-n;break;case"bottom":case"bottomLeft":case"bottomRight":l.offset[1]=a+n;break;case"left":case"leftTop":case"leftBottom":l.offset[0]=-a-n;break;case"right":case"rightTop":case"rightBottom":l.offset[0]=a+n;break}if(i)switch(d){case"topLeft":case"bottomLeft":l.offset[0]=-f.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":l.offset[0]=f.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":l.offset[1]=-f.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":l.offset[1]=f.arrowOffsetHorizontal*2-a;break}l.overflow=bE(d,f,r,t),l.htmlRegion="visibleFirst"}),s}function SE(e){return e&&z.isValidElement(e)&&e.type===z.Fragment}const _E=(e,r,t)=>z.isValidElement(e)?z.cloneElement(e,typeof t=="function"?t(e.props||{}):t):r;function lv(e,r){return _E(e,e,r)}const CE=e=>({animationDuration:e,animationFillMode:"both"}),OE=e=>({animationDuration:e,animationFillMode:"both"}),RE=(e,r,t,i,n=!1)=>{const o=n?"&":"";return{[`
|
|
182
182
|
${o}${e}-enter,
|
|
183
183
|
${o}${e}-appear
|
|
184
184
|
`]:Object.assign(Object.assign({},CE(i)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},OE(i)),{animationPlayState:"paused"}),[`
|
|
@@ -187,7 +187,7 @@ html body {
|
|
|
187
187
|
`]:{animationName:r,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}},jE=new kt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),AE=new kt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ld=new kt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Fd=new kt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),TE=new kt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),kE=new kt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),PE=new kt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),NE=new kt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),IE=new kt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ME=new kt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),LE=new kt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),FE=new kt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),$E={zoom:{inKeyframes:jE,outKeyframes:AE},"zoom-big":{inKeyframes:Ld,outKeyframes:Fd},"zoom-big-fast":{inKeyframes:Ld,outKeyframes:Fd},"zoom-left":{inKeyframes:PE,outKeyframes:NE},"zoom-right":{inKeyframes:IE,outKeyframes:ME},"zoom-up":{inKeyframes:TE,outKeyframes:kE},"zoom-down":{inKeyframes:LE,outKeyframes:FE}},DE=(e,r)=>{const{antCls:t}=e,i=`${t}-${r}`,{inKeyframes:n,outKeyframes:o}=$E[r];return[RE(i,n,o,e.motionDurationFast),{[`
|
|
188
188
|
${i}-enter,
|
|
189
189
|
${i}-appear
|
|
190
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},BE=e=>{const{calc:r,componentCls:t,tooltipMaxWidth:i,tooltipColor:n,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:f,boxShadowSecondary:d,paddingSM:c,paddingXS:l,arrowOffsetHorizontal:u,sizePopupArrow:h}=e,v=r(a).add(h).add(u).equal(),g=r(a).mul(2).add(h).equal();return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ou(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:i,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":o,[`${t}-inner`]:{minWidth:g,minHeight:f,padding:`${$e(e.calc(c).div(2).equal())} ${$e(l)}`,color:`var(--ant-tooltip-color, ${n})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,av)}},[`${t}-content`]:{position:"relative"}}),n1(e,(p,{darkColor:y})=>({[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}))),{"&-rtl":{direction:"rtl"}})},yE(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},qE=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},sv({contentRadius:e.borderRadius,limitVerticalRadius:!0})),mE(or(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),uv=(e,r=!0)=>ei("Tooltip",i=>{const{borderRadius:n,colorTextLightSolid:o,colorBgSpotlight:a}=i,s=or(i,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:n,tooltipBg:a});return[BE(s),DE(i,"zoom-big-fast")]},qE,{resetStyle:!1,injectStyle:r})(e),VE=Wi.map(e=>`${e}-inverse`);function zE(e,r=!0){return r?[].concat(ge(VE),ge(Wi)).includes(e):Wi.includes(e)}const st=Math.round;function ks(e,r){const t=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],i=t.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)i[n]=r(i[n]||0,t[n]||"",n);return t[3]?i[3]=t[3].includes("%")?i[3]/100:i[3]:i[3]=1,i}const $d=(e,r,t)=>t===0?e:e/100;function An(e,r){const t=r||255;return e>t?t:e<0?0:e}class po{constructor(r){Z(this,"isValid",!0),Z(this,"r",0),Z(this,"g",0),Z(this,"b",0),Z(this,"a",1),Z(this,"_h",void 0),Z(this,"_s",void 0),Z(this,"_l",void 0),Z(this,"_v",void 0),Z(this,"_max",void 0),Z(this,"_min",void 0),Z(this,"_brightness",void 0);function t(i){return i[0]in r&&i[1]in r&&i[2]in r}if(r)if(typeof r=="string"){let n=function(o){return i.startsWith(o)};const i=r.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):n("rgb")?this.fromRgbString(i):n("hsl")?this.fromHslString(i):(n("hsv")||n("hsb"))&&this.fromHsvString(i)}else if(r instanceof po)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._s=r._s,this._l=r._l,this._v=r._v;else if(t("rgb"))this.r=An(r.r),this.g=An(r.g),this.b=An(r.b),this.a=typeof r.a=="number"?An(r.a,1):1;else if(t("hsl"))this.fromHsl(r);else if(t("hsv"))this.fromHsv(r);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r))}setR(r){return this._sc("r",r)}setG(r){return this._sc("g",r)}setB(r){return this._sc("b",r)}setA(r){return this._sc("a",r,1)}setHue(r){const t=this.toHsv();return t.h=r,this._c(t)}getLuminance(){function r(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const t=r(this.r),i=r(this.g),n=r(this.b);return .2126*t+.7152*i+.0722*n}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=st(60*(this.r===this.getMax()?(this.g-this.b)/r+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/r+2:(this.r-this.g)/r+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const r=this.getMax()-this.getMin();r===0?this._s=0:this._s=r/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(r=10){const t=this.getHue(),i=this.getSaturation();let n=this.getLightness()-r/100;return n<0&&(n=0),this._c({h:t,s:i,l:n,a:this.a})}lighten(r=10){const t=this.getHue(),i=this.getSaturation();let n=this.getLightness()+r/100;return n>1&&(n=1),this._c({h:t,s:i,l:n,a:this.a})}mix(r,t=50){const i=this._c(r),n=t/100,o=s=>(i[s]-this[s])*n+this[s],a={r:st(o("r")),g:st(o("g")),b:st(o("b")),a:st(o("a")*100)/100};return this._c(a)}tint(r=10){return this.mix({r:255,g:255,b:255,a:1},r)}shade(r=10){return this.mix({r:0,g:0,b:0,a:1},r)}onBackground(r){const t=this._c(r),i=this.a+t.a*(1-this.a),n=o=>st((this[o]*this.a+t[o]*t.a*(1-this.a))/i);return this._c({r:n("r"),g:n("g"),b:n("b"),a:i})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(r){return this.r===r.r&&this.g===r.g&&this.b===r.b&&this.a===r.a}clone(){return this._c(this)}toHexString(){let r="#";const t=(this.r||0).toString(16);r+=t.length===2?t:"0"+t;const i=(this.g||0).toString(16);r+=i.length===2?i:"0"+i;const n=(this.b||0).toString(16);if(r+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=st(this.a*255).toString(16);r+=o.length===2?o:"0"+o}return r}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const r=this.getHue(),t=st(this.getSaturation()*100),i=st(this.getLightness()*100);return this.a!==1?`hsla(${r},${t}%,${i}%,${this.a})`:`hsl(${r},${t}%,${i}%)`}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(r,t,i){const n=this.clone();return n[r]=An(t,i),n}_c(r){return new this.constructor(r)}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(r){const t=r.replace("#","");function i(n,o){return parseInt(t[n]+t[o||n],16)}t.length<6?(this.r=i(0),this.g=i(1),this.b=i(2),this.a=t[3]?i(3)/255:1):(this.r=i(0,1),this.g=i(2,3),this.b=i(4,5),this.a=t[6]?i(6,7)/255:1)}fromHsl({h:r,s:t,l:i,a:n}){if(this._h=r%360,this._s=t,this._l=i,this.a=typeof n=="number"?n:1,t<=0){const u=st(i*255);this.r=u,this.g=u,this.b=u}let o=0,a=0,s=0;const f=r/60,d=(1-Math.abs(2*i-1))*t,c=d*(1-Math.abs(f%2-1));f>=0&&f<1?(o=d,a=c):f>=1&&f<2?(o=c,a=d):f>=2&&f<3?(a=d,s=c):f>=3&&f<4?(a=c,s=d):f>=4&&f<5?(o=c,s=d):f>=5&&f<6&&(o=d,s=c);const l=i-d/2;this.r=st((o+l)*255),this.g=st((a+l)*255),this.b=st((s+l)*255)}fromHsv({h:r,s:t,v:i,a:n}){this._h=r%360,this._s=t,this._v=i,this.a=typeof n=="number"?n:1;const o=st(i*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=r/60,s=Math.floor(a),f=a-s,d=st(i*(1-t)*255),c=st(i*(1-t*f)*255),l=st(i*(1-t*(1-f))*255);switch(s){case 0:this.g=l,this.b=d;break;case 1:this.r=c,this.b=d;break;case 2:this.r=d,this.b=l;break;case 3:this.r=d,this.g=c;break;case 4:this.r=l,this.g=d;break;case 5:default:this.g=d,this.b=c;break}}fromHsvString(r){const t=ks(r,$d);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(r){const t=ks(r,$d);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(r){const t=ks(r,(i,n)=>n.includes("%")?st(i/100*255):i);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var HE=["b"],UE=["v"],Ps=function(r){return Math.round(Number(r||0))},WE=function(r){if(r instanceof po)return r;if(r&&we(r)==="object"&&"h"in r&&"b"in r){var t=r,i=t.b,n=pt(t,HE);return te(te({},n),{},{v:i})}return typeof r=="string"&&/hsb/.test(r)?r.replace(/hsb/,"hsv"):r},vr=(function(e){mr(t,e);var r=gr(t);function t(i){return lt(this,t),r.call(this,WE(i))}return ut(t,[{key:"toHsbString",value:function(){var n=this.toHsb(),o=Ps(n.s*100),a=Ps(n.b*100),s=Ps(n.h),f=n.a,d="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),c="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(f.toFixed(f===0?0:2),")");return f===1?d:c}},{key:"toHsb",value:function(){var n=this.toHsv(),o=n.v,a=pt(n,UE);return te(te({},a),{},{b:o,a:this.a})}}]),t})(po),KE="rc-color-picker",Gr=function(r){return r instanceof vr?r:new vr(r)},GE=Gr("#1677ff"),cv=function(r){var t=r.offset,i=r.targetRef,n=r.containerRef,o=r.color,a=r.type,s=n.current.getBoundingClientRect(),f=s.width,d=s.height,c=i.current.getBoundingClientRect(),l=c.width,u=c.height,h=l/2,v=u/2,g=(t.x+h)/f,p=1-(t.y+v)/d,y=o.toHsb(),m=g,x=(t.x+h)/f*360;if(a)switch(a){case"hue":return Gr(te(te({},y),{},{h:x<=0?0:x}));case"alpha":return Gr(te(te({},y),{},{a:m<=0?0:m}))}return Gr({h:y.h,s:g<=0?0:g,b:p>=1?1:p,a:y.a})},fv=function(r,t){var i=r.toHsb();switch(t){case"hue":return{x:i.h/360*100,y:50};case"alpha":return{x:r.a*100,y:50};default:return{x:i.s*100,y:(1-i.b)*100}}},YE=function(r){var t=r.color,i=r.prefixCls,n=r.className,o=r.style,a=r.onClick,s="".concat(i,"-color-block");return z.createElement("div",{className:ye(s,n),style:o,onClick:a},z.createElement("div",{className:"".concat(s,"-inner"),style:{background:t}}))};function XE(e){var r="touches"in e?e.touches[0]:e,t=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,i=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:r.pageX-t,pageY:r.pageY-i}}function dv(e){var r=e.targetRef,t=e.containerRef,i=e.direction,n=e.onDragChange,o=e.onDragChangeComplete,a=e.calculate,s=e.color,f=e.disabledDrag,d=z.useState({x:0,y:0}),c=fe(d,2),l=c[0],u=c[1],h=z.useRef(null),v=z.useRef(null);z.useEffect(function(){u(a())},[s]),z.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null}},[]);var g=function(b){var E=XE(b),S=E.pageX,w=E.pageY,_=t.current.getBoundingClientRect(),A=_.x,R=_.y,C=_.width,O=_.height,j=r.current.getBoundingClientRect(),k=j.width,I=j.height,B=k/2,V=I/2,W=Math.max(0,Math.min(S-A,C))-B,F=Math.max(0,Math.min(w-R,O))-V,$={x:W,y:i==="x"?l.y:F};if(k===0&&I===0||k!==I)return!1;n?.($)},p=function(b){b.preventDefault(),g(b)},y=function(b){b.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null,o?.()},m=function(b){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),!f&&(g(b),document.addEventListener("mousemove",p),document.addEventListener("mouseup",y),document.addEventListener("touchmove",p),document.addEventListener("touchend",y),h.current=p,v.current=y)};return[l,m]}var hv=function(r){var t=r.size,i=t===void 0?"default":t,n=r.color,o=r.prefixCls;return z.createElement("div",{className:ye("".concat(o,"-handler"),Z({},"".concat(o,"-handler-sm"),i==="small")),style:{backgroundColor:n}})},pv=function(r){var t=r.children,i=r.style,n=r.prefixCls;return z.createElement("div",{className:"".concat(n,"-palette"),style:te({position:"relative"},i)},t)},vv=z.forwardRef(function(e,r){var t=e.children,i=e.x,n=e.y;return z.createElement("div",{ref:r,style:{position:"absolute",left:"".concat(i,"%"),top:"".concat(n,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},t)}),ZE=function(r){var t=r.color,i=r.onChange,n=r.prefixCls,o=r.onChangeComplete,a=r.disabled,s=z.useRef(),f=z.useRef(),d=z.useRef(t),c=mt(function(g){var p=cv({offset:g,targetRef:f,containerRef:s,color:t});d.current=p,i(p)}),l=dv({color:t,containerRef:s,targetRef:f,calculate:function(){return fv(t)},onDragChange:c,onDragChangeComplete:function(){return o?.(d.current)},disabledDrag:a}),u=fe(l,2),h=u[0],v=u[1];return z.createElement("div",{ref:s,className:"".concat(n,"-select"),onMouseDown:v,onTouchStart:v},z.createElement(pv,{prefixCls:n},z.createElement(vv,{x:h.x,y:h.y,ref:f},z.createElement(hv,{color:t.toRgbString(),prefixCls:n})),z.createElement("div",{className:"".concat(n,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},QE=function(r,t){var i=Ar(r,{value:t}),n=fe(i,2),o=n[0],a=n[1],s=z.useMemo(function(){return Gr(o)},[o]);return[s,a]},JE=function(r){var t=r.colors,i=r.children,n=r.direction,o=n===void 0?"to right":n,a=r.type,s=r.prefixCls,f=z.useMemo(function(){return t.map(function(d,c){var l=Gr(d);return a==="alpha"&&c===t.length-1&&(l=new vr(l.setA(1))),l.toRgbString()}).join(",")},[t,a]);return z.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(f,")")}},i)},ew=function(r){var t=r.prefixCls,i=r.colors,n=r.disabled,o=r.onChange,a=r.onChangeComplete,s=r.color,f=r.type,d=z.useRef(),c=z.useRef(),l=z.useRef(s),u=function(E){return f==="hue"?E.getHue():E.a*100},h=mt(function(b){var E=cv({offset:b,targetRef:c,containerRef:d,color:s,type:f});l.current=E,o(u(E))}),v=dv({color:s,targetRef:c,containerRef:d,calculate:function(){return fv(s,f)},onDragChange:h,onDragChangeComplete:function(){a(u(l.current))},direction:"x",disabledDrag:n}),g=fe(v,2),p=g[0],y=g[1],m=z.useMemo(function(){if(f==="hue"){var b=s.toHsb();b.s=1,b.b=1,b.a=1;var E=new vr(b);return E}return s},[s,f]),x=z.useMemo(function(){return i.map(function(b){return"".concat(b.color," ").concat(b.percent,"%")})},[i]);return z.createElement("div",{ref:d,className:ye("".concat(t,"-slider"),"".concat(t,"-slider-").concat(f)),onMouseDown:y,onTouchStart:y},z.createElement(pv,{prefixCls:t},z.createElement(vv,{x:p.x,y:p.y,ref:c},z.createElement(hv,{size:"small",color:m.toHexString(),prefixCls:t})),z.createElement(JE,{colors:x,type:f,prefixCls:t})))};function tw(e){return M.useMemo(function(){var r=e||{},t=r.slider;return[t||ew]},[e])}var rw=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],nw=z.forwardRef(function(e,r){var t=e.value,i=e.defaultValue,n=e.prefixCls,o=n===void 0?KE:n,a=e.onChange,s=e.onChangeComplete,f=e.className,d=e.style,c=e.panelRender,l=e.disabledAlpha,u=l===void 0?!1:l,h=e.disabled,v=h===void 0?!1:h,g=e.components,p=tw(g),y=fe(p,1),m=y[0],x=QE(i||GE,t),b=fe(x,2),E=b[0],S=b[1],w=z.useMemo(function(){return E.setA(1).toRgbString()},[E]),_=function(F,$){t||S(F),a?.(F,$)},A=function(F){return new vr(E.setHue(F))},R=function(F){return new vr(E.setA(F/100))},C=function(F){_(A(F),{type:"hue",value:F})},O=function(F){_(R(F),{type:"alpha",value:F})},j=function(F){s&&s(A(F))},k=function(F){s&&s(R(F))},I=ye("".concat(o,"-panel"),f,Z({},"".concat(o,"-panel-disabled"),v)),B={prefixCls:o,disabled:v,color:E},V=z.createElement(z.Fragment,null,z.createElement(ZE,Ve({onChange:_},B,{onChangeComplete:s})),z.createElement("div",{className:"".concat(o,"-slider-container")},z.createElement("div",{className:ye("".concat(o,"-slider-group"),Z({},"".concat(o,"-slider-group-disabled-alpha"),u))},z.createElement(m,Ve({},B,{type:"hue",colors:rw,min:0,max:359,value:E.getHue(),onChange:C,onChangeComplete:j})),!u&&z.createElement(m,Ve({},B,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:w}],min:0,max:100,value:E.a*100,onChange:O,onChangeComplete:k}))),z.createElement(YE,{color:E.toRgbString(),prefixCls:o})));return z.createElement("div",{className:I,style:d,ref:r},typeof c=="function"?c(V):V)});process.env.NODE_ENV!=="production"&&(nw.displayName="ColorPicker");const iw=(e,r)=>e?.replace(/[^\w/]/g,"").slice(0,r?8:6)||"",ow=(e,r)=>e?iw(e,r):"";let Dd=(function(){function e(r){lt(this,e);var t;if(this.cleared=!1,r instanceof e){this.metaColor=r.metaColor.clone(),this.colors=(t=r.colors)===null||t===void 0?void 0:t.map(n=>({color:new e(n.color),percent:n.percent})),this.cleared=r.cleared;return}const i=Array.isArray(r);i&&r.length?(this.colors=r.map(({color:n,percent:o})=>({color:new e(n),percent:o})),this.metaColor=new vr(this.colors[0].color.metaColor)):this.metaColor=new vr(i?"":r),(!r||i&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ut(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return ow(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:t}=this;return t?`linear-gradient(90deg, ${t.map(n=>`${n.color.toRgbString()} ${n.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(t){return!t||this.isGradient()!==t.isGradient()?!1:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((i,n)=>{const o=t.colors[n];return i.percent===o.percent&&i.color.equals(o.color)}):this.toHexString()===t.toHexString()}}])})();const aw=e=>e instanceof Dd?e:new Dd(e);function mv(e,r){const t=zE(r),i=ye({[`${e}-${r}`]:r&&t}),n={},o={},a=aw(r).toRgb(),f=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return r&&!t&&(n.background=r,n["--ant-tooltip-color"]=f,o["--antd-arrow-background-color"]=r),{className:i,overlayStyle:n,arrowStyle:o}}const sw=e=>{const{prefixCls:r,className:t,placement:i="top",title:n,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=M.useContext(Gt),f=s("tooltip",r),[d,c,l]=uv(f),u=mv(f,o),h=u.arrowStyle,v=Object.assign(Object.assign({},a),u.overlayStyle),g=ye(c,l,f,`${f}-pure`,`${f}-placement-${i}`,t,u.className);return d(M.createElement("div",{className:g,style:h},M.createElement("div",{className:`${f}-arrow`}),M.createElement(qp,Object.assign({},e,{className:c,prefixCls:f,overlayInnerStyle:v}),n)))};var lw=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const uw=M.forwardRef((e,r)=>{var t,i;const{prefixCls:n,openClassName:o,getTooltipContainer:a,color:s,overlayInnerStyle:f,children:d,afterOpenChange:c,afterVisibleChange:l,destroyTooltipOnHide:u,destroyOnHidden:h,arrow:v=!0,title:g,overlay:p,builtinPlacements:y,arrowPointAtCenter:m=!1,autoAdjustOverflow:x=!0,motion:b,getPopupContainer:E,placement:S="top",mouseEnterDelay:w=.1,mouseLeaveDelay:_=.1,overlayStyle:A,rootClassName:R,overlayClassName:C,styles:O,classNames:j}=e,k=lw(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"]),I=!!v,[,B]=cn(),{getPopupContainer:V,getPrefixCls:W,direction:F,className:$,style:N,classNames:L,styles:q}=fo("tooltip"),K=Kt("Tooltip"),G=M.useRef(null),T=()=>{var je;(je=G.current)===null||je===void 0||je.forceAlign()};M.useImperativeHandle(r,()=>{var je,ke;return{forceAlign:T,forcePopupAlign:()=>{K.deprecated(!1,"forcePopupAlign","forceAlign"),T()},nativeElement:(je=G.current)===null||je===void 0?void 0:je.nativeElement,popupElement:(ke=G.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(([je,ke])=>{K.deprecated(!(je in e),je,ke)}),process.env.NODE_ENV!=="production"&&K(!u||typeof u=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&K(!v||typeof v=="boolean"||!("arrowPointAtCenter"in v),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[D,H]=Ar(!1,{value:(t=e.open)!==null&&t!==void 0?t:e.visible,defaultValue:(i=e.defaultOpen)!==null&&i!==void 0?i:e.defaultVisible}),U=!g&&!p&&g!==0,Y=je=>{var ke,Te;H(U?!1:je),U||((ke=e.onOpenChange)===null||ke===void 0||ke.call(e,je),(Te=e.onVisibleChange)===null||Te===void 0||Te.call(e,je))},ee=M.useMemo(()=>{var je,ke;let Te=m;return typeof v=="object"&&(Te=(ke=(je=v.pointAtCenter)!==null&&je!==void 0?je:v.arrowPointAtCenter)!==null&&ke!==void 0?ke:m),y||wE({arrowPointAtCenter:Te,autoAdjustOverflow:x,arrowWidth:I?B.sizePopupArrow:0,borderRadius:B.borderRadius,offset:B.marginXXS})},[m,v,y,B]),ie=M.useMemo(()=>g===0?g:p||g||"",[p,g]),oe=M.createElement(Fl,{space:!0},typeof ie=="function"?ie():ie),re=W("tooltip",n),ue=W(),ce=e["data-popover-inject"];let he=D;!("open"in e)&&!("visible"in e)&&U&&(he=!1);const Q=M.isValidElement(d)&&!SE(d)?d:M.createElement("span",null,d),J=Q.props,le=!J.className||typeof J.className=="string"?ye(J.className,o||`${re}-open`):J.className,[se,ne,de]=uv(re,!ce),ae=mv(re,s),pe=ae.arrowStyle,_e=ye(C,{[`${re}-rtl`]:F==="rtl"},ae.className,R,ne,de,$,L.root,j?.root),Me=ye(L.body,j?.body),[be,qe]=pE("Tooltip",k.zIndex),Oe=M.createElement(ux,Object.assign({},k,{zIndex:be,showArrow:I,placement:S,mouseEnterDelay:w,mouseLeaveDelay:_,prefixCls:re,classNames:{root:_e,body:Me},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pe),q.root),N),A),O?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},q.body),f),O?.body),ae.overlayStyle)},getTooltipContainer:E||a||V,ref:G,builtinPlacements:ee,overlay:oe,visible:he,onVisibleChange:Y,afterVisibleChange:c??l,arrowContent:M.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:vE(ue,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!u}),he?lv(Q,{className:le}):Q);return se(M.createElement(fu.Provider,{value:qe},Oe))}),oi=uw;process.env.NODE_ENV!=="production"&&(oi.displayName="Tooltip");oi._InternalPanelDoNotUseOrYouWillBeFired=sw;var cw={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"},fw=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:cw}))},gv=M.forwardRef(fw);process.env.NODE_ENV!=="production"&&(gv.displayName="EnterOutlined");var Bd={ENTER:13,ESC:27};function dw(e){return!!(e.addonBefore||e.addonAfter)}function hw(e){return!!(e.prefix||e.suffix||e.allowClear)}function qd(e,r,t){var i=r.cloneNode(!0),n=Object.create(e,{target:{value:i},currentTarget:{value:i}});return i.value=t,typeof r.selectionStart=="number"&&typeof r.selectionEnd=="number"&&(i.selectionStart=r.selectionStart,i.selectionEnd=r.selectionEnd),i.setSelectionRange=function(){r.setSelectionRange.apply(r,arguments)},n}function Yi(e,r,t,i){if(t){var n=r;if(r.type==="click"){n=qd(r,e,""),t(n);return}if(e.type!=="file"&&i!==void 0){n=qd(r,e,i),t(n);return}t(n)}}function yv(e,r){if(e){e.focus(r);var t=r||{},i=t.cursor;if(i){var n=e.value.length;switch(i){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}var bv=z.forwardRef(function(e,r){var t,i,n,o=e.inputElement,a=e.children,s=e.prefixCls,f=e.prefix,d=e.suffix,c=e.addonBefore,l=e.addonAfter,u=e.className,h=e.style,v=e.disabled,g=e.readOnly,p=e.focused,y=e.triggerFocus,m=e.allowClear,x=e.value,b=e.handleReset,E=e.hidden,S=e.classes,w=e.classNames,_=e.dataAttrs,A=e.styles,R=e.components,C=e.onClear,O=a??o,j=R?.affixWrapper||"span",k=R?.groupWrapper||"span",I=R?.wrapper||"span",B=R?.groupAddon||"span",V=z.useRef(null),W=function(ue){var ce;(ce=V.current)!==null&&ce!==void 0&&ce.contains(ue.target)&&y?.()},F=hw(e),$=z.cloneElement(O,{value:x,className:ye((t=O.props)===null||t===void 0?void 0:t.className,!F&&w?.variant)||null}),N=z.useRef(null);if(z.useImperativeHandle(r,function(){return{nativeElement:N.current||V.current}}),F){var L=null;if(m){var q=!v&&!g&&x,K="".concat(s,"-clear-icon"),G=we(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";L=z.createElement("button",{type:"button",tabIndex:-1,onClick:function(ue){b?.(ue),C?.()},onMouseDown:function(ue){return ue.preventDefault()},className:ye(K,Z(Z({},"".concat(K,"-hidden"),!q),"".concat(K,"-has-suffix"),!!d))},G)}var T="".concat(s,"-affix-wrapper"),D=ye(T,Z(Z(Z(Z(Z({},"".concat(s,"-disabled"),v),"".concat(T,"-disabled"),v),"".concat(T,"-focused"),p),"".concat(T,"-readonly"),g),"".concat(T,"-input-with-clear-btn"),d&&m&&x),S?.affixWrapper,w?.affixWrapper,w?.variant),H=(d||m)&&z.createElement("span",{className:ye("".concat(s,"-suffix"),w?.suffix),style:A?.suffix},L,d);$=z.createElement(j,Ve({className:D,style:A?.affixWrapper,onClick:W},_?.affixWrapper,{ref:V}),f&&z.createElement("span",{className:ye("".concat(s,"-prefix"),w?.prefix),style:A?.prefix},f),$,H)}if(dw(e)){var U="".concat(s,"-group"),Y="".concat(U,"-addon"),ee="".concat(U,"-wrapper"),ie=ye("".concat(s,"-wrapper"),U,S?.wrapper,w?.wrapper),oe=ye(ee,Z({},"".concat(ee,"-disabled"),v),S?.group,w?.groupWrapper);$=z.createElement(k,{className:oe,ref:N},z.createElement(I,{className:ie},c&&z.createElement(B,{className:Y},c),$,l&&z.createElement(B,{className:Y},l)))}return z.cloneElement($,{className:ye((i=$.props)===null||i===void 0?void 0:i.className,u)||null,style:te(te({},(n=$.props)===null||n===void 0?void 0:n.style),h),hidden:E})}),pw=["show"];function xv(e,r){return M.useMemo(function(){var t={};r&&(t.show=we(r)==="object"&&r.formatter?r.formatter:!!r),t=te(te({},t),e);var i=t,n=i.show,o=pt(i,pw);return te(te({},o),{},{show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:o.strategy||function(a){return a.length}})},[e,r])}var vw=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],mw=z.forwardRef(function(e,r){var t=e.autoComplete,i=e.onChange,n=e.onFocus,o=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,f=e.onKeyUp,d=e.prefixCls,c=d===void 0?"rc-input":d,l=e.disabled,u=e.htmlSize,h=e.className,v=e.maxLength,g=e.suffix,p=e.showCount,y=e.count,m=e.type,x=m===void 0?"text":m,b=e.classes,E=e.classNames,S=e.styles,w=e.onCompositionStart,_=e.onCompositionEnd,A=pt(e,vw),R=z.useState(!1),C=fe(R,2),O=C[0],j=C[1],k=z.useRef(!1),I=z.useRef(!1),B=z.useRef(null),V=z.useRef(null),W=function(ae){B.current&&yv(B.current,ae)},F=Ar(e.defaultValue,{value:e.value}),$=fe(F,2),N=$[0],L=$[1],q=N==null?"":String(N),K=z.useState(null),G=fe(K,2),T=G[0],D=G[1],H=xv(y,p),U=H.max||v,Y=H.strategy(q),ee=!!U&&Y>U;z.useImperativeHandle(r,function(){var de;return{focus:W,blur:function(){var pe;(pe=B.current)===null||pe===void 0||pe.blur()},setSelectionRange:function(pe,_e,Me){var be;(be=B.current)===null||be===void 0||be.setSelectionRange(pe,_e,Me)},select:function(){var pe;(pe=B.current)===null||pe===void 0||pe.select()},input:B.current,nativeElement:((de=V.current)===null||de===void 0?void 0:de.nativeElement)||B.current}}),z.useEffect(function(){I.current&&(I.current=!1),j(function(de){return de&&l?!1:de})},[l]);var ie=function(ae,pe,_e){var Me=pe;if(!k.current&&H.exceedFormatter&&H.max&&H.strategy(pe)>H.max){if(Me=H.exceedFormatter(pe,{max:H.max}),pe!==Me){var be,qe;D([((be=B.current)===null||be===void 0?void 0:be.selectionStart)||0,((qe=B.current)===null||qe===void 0?void 0:qe.selectionEnd)||0])}}else if(_e.source==="compositionEnd")return;L(Me),B.current&&Yi(B.current,ae,i,Me)};z.useEffect(function(){if(T){var de;(de=B.current)===null||de===void 0||de.setSelectionRange.apply(de,ge(T))}},[T]);var oe=function(ae){ie(ae,ae.target.value,{source:"change"})},re=function(ae){k.current=!1,ie(ae,ae.currentTarget.value,{source:"compositionEnd"}),_?.(ae)},ue=function(ae){a&&ae.key==="Enter"&&!I.current&&(I.current=!0,a(ae)),s?.(ae)},ce=function(ae){ae.key==="Enter"&&(I.current=!1),f?.(ae)},he=function(ae){j(!0),n?.(ae)},Q=function(ae){I.current&&(I.current=!1),j(!1),o?.(ae)},J=function(ae){L(""),W(),B.current&&Yi(B.current,ae,i)},le=ee&&"".concat(c,"-out-of-range"),se=function(){var ae=Hh(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return z.createElement("input",Ve({autoComplete:t},ae,{onChange:oe,onFocus:he,onBlur:Q,onKeyDown:ue,onKeyUp:ce,className:ye(c,Z({},"".concat(c,"-disabled"),l),E?.input),style:S?.input,ref:B,size:u,type:x,onCompositionStart:function(_e){k.current=!0,w?.(_e)},onCompositionEnd:re}))},ne=function(){var ae=Number(U)>0;if(g||H.show){var pe=H.showFormatter?H.showFormatter({value:q,count:Y,maxLength:U}):"".concat(Y).concat(ae?" / ".concat(U):"");return z.createElement(z.Fragment,null,H.show&&z.createElement("span",{className:ye("".concat(c,"-show-count-suffix"),Z({},"".concat(c,"-show-count-has-suffix"),!!g),E?.count),style:te({},S?.count)},pe),g)}return null};return z.createElement(bv,Ve({},A,{prefixCls:c,className:ye(h,le),handleReset:J,value:q,focused:O,triggerFocus:W,suffix:ne(),disabled:l,classes:b,classNames:E,styles:S,ref:V}),se())}),gw=`
|
|
190
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},BE=e=>{const{calc:r,componentCls:t,tooltipMaxWidth:i,tooltipColor:n,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:f,boxShadowSecondary:d,paddingSM:c,paddingXS:l,arrowOffsetHorizontal:u,sizePopupArrow:h}=e,v=r(a).add(h).add(u).equal(),g=r(a).mul(2).add(h).equal();return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ou(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:i,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":o,[`${t}-inner`]:{minWidth:g,minHeight:f,padding:`${$e(e.calc(c).div(2).equal())} ${$e(l)}`,color:`var(--ant-tooltip-color, ${n})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,av)}},[`${t}-content`]:{position:"relative"}}),n1(e,(p,{darkColor:y})=>({[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}))),{"&-rtl":{direction:"rtl"}})},yE(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},qE=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},sv({contentRadius:e.borderRadius,limitVerticalRadius:!0})),mE(or(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),uv=(e,r=!0)=>ei("Tooltip",i=>{const{borderRadius:n,colorTextLightSolid:o,colorBgSpotlight:a}=i,s=or(i,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:n,tooltipBg:a});return[BE(s),DE(i,"zoom-big-fast")]},qE,{resetStyle:!1,injectStyle:r})(e),VE=Wi.map(e=>`${e}-inverse`);function zE(e,r=!0){return r?[].concat(ge(VE),ge(Wi)).includes(e):Wi.includes(e)}const st=Math.round;function ks(e,r){const t=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],i=t.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)i[n]=r(i[n]||0,t[n]||"",n);return t[3]?i[3]=t[3].includes("%")?i[3]/100:i[3]:i[3]=1,i}const $d=(e,r,t)=>t===0?e:e/100;function An(e,r){const t=r||255;return e>t?t:e<0?0:e}class po{constructor(r){Z(this,"isValid",!0),Z(this,"r",0),Z(this,"g",0),Z(this,"b",0),Z(this,"a",1),Z(this,"_h",void 0),Z(this,"_s",void 0),Z(this,"_l",void 0),Z(this,"_v",void 0),Z(this,"_max",void 0),Z(this,"_min",void 0),Z(this,"_brightness",void 0);function t(i){return i[0]in r&&i[1]in r&&i[2]in r}if(r)if(typeof r=="string"){let n=function(o){return i.startsWith(o)};const i=r.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):n("rgb")?this.fromRgbString(i):n("hsl")?this.fromHslString(i):(n("hsv")||n("hsb"))&&this.fromHsvString(i)}else if(r instanceof po)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._s=r._s,this._l=r._l,this._v=r._v;else if(t("rgb"))this.r=An(r.r),this.g=An(r.g),this.b=An(r.b),this.a=typeof r.a=="number"?An(r.a,1):1;else if(t("hsl"))this.fromHsl(r);else if(t("hsv"))this.fromHsv(r);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r))}setR(r){return this._sc("r",r)}setG(r){return this._sc("g",r)}setB(r){return this._sc("b",r)}setA(r){return this._sc("a",r,1)}setHue(r){const t=this.toHsv();return t.h=r,this._c(t)}getLuminance(){function r(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const t=r(this.r),i=r(this.g),n=r(this.b);return .2126*t+.7152*i+.0722*n}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=st(60*(this.r===this.getMax()?(this.g-this.b)/r+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/r+2:(this.r-this.g)/r+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const r=this.getMax()-this.getMin();r===0?this._s=0:this._s=r/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(r=10){const t=this.getHue(),i=this.getSaturation();let n=this.getLightness()-r/100;return n<0&&(n=0),this._c({h:t,s:i,l:n,a:this.a})}lighten(r=10){const t=this.getHue(),i=this.getSaturation();let n=this.getLightness()+r/100;return n>1&&(n=1),this._c({h:t,s:i,l:n,a:this.a})}mix(r,t=50){const i=this._c(r),n=t/100,o=s=>(i[s]-this[s])*n+this[s],a={r:st(o("r")),g:st(o("g")),b:st(o("b")),a:st(o("a")*100)/100};return this._c(a)}tint(r=10){return this.mix({r:255,g:255,b:255,a:1},r)}shade(r=10){return this.mix({r:0,g:0,b:0,a:1},r)}onBackground(r){const t=this._c(r),i=this.a+t.a*(1-this.a),n=o=>st((this[o]*this.a+t[o]*t.a*(1-this.a))/i);return this._c({r:n("r"),g:n("g"),b:n("b"),a:i})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(r){return this.r===r.r&&this.g===r.g&&this.b===r.b&&this.a===r.a}clone(){return this._c(this)}toHexString(){let r="#";const t=(this.r||0).toString(16);r+=t.length===2?t:"0"+t;const i=(this.g||0).toString(16);r+=i.length===2?i:"0"+i;const n=(this.b||0).toString(16);if(r+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=st(this.a*255).toString(16);r+=o.length===2?o:"0"+o}return r}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const r=this.getHue(),t=st(this.getSaturation()*100),i=st(this.getLightness()*100);return this.a!==1?`hsla(${r},${t}%,${i}%,${this.a})`:`hsl(${r},${t}%,${i}%)`}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(r,t,i){const n=this.clone();return n[r]=An(t,i),n}_c(r){return new this.constructor(r)}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(r){const t=r.replace("#","");function i(n,o){return parseInt(t[n]+t[o||n],16)}t.length<6?(this.r=i(0),this.g=i(1),this.b=i(2),this.a=t[3]?i(3)/255:1):(this.r=i(0,1),this.g=i(2,3),this.b=i(4,5),this.a=t[6]?i(6,7)/255:1)}fromHsl({h:r,s:t,l:i,a:n}){if(this._h=r%360,this._s=t,this._l=i,this.a=typeof n=="number"?n:1,t<=0){const u=st(i*255);this.r=u,this.g=u,this.b=u}let o=0,a=0,s=0;const f=r/60,d=(1-Math.abs(2*i-1))*t,c=d*(1-Math.abs(f%2-1));f>=0&&f<1?(o=d,a=c):f>=1&&f<2?(o=c,a=d):f>=2&&f<3?(a=d,s=c):f>=3&&f<4?(a=c,s=d):f>=4&&f<5?(o=c,s=d):f>=5&&f<6&&(o=d,s=c);const l=i-d/2;this.r=st((o+l)*255),this.g=st((a+l)*255),this.b=st((s+l)*255)}fromHsv({h:r,s:t,v:i,a:n}){this._h=r%360,this._s=t,this._v=i,this.a=typeof n=="number"?n:1;const o=st(i*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=r/60,s=Math.floor(a),f=a-s,d=st(i*(1-t)*255),c=st(i*(1-t*f)*255),l=st(i*(1-t*(1-f))*255);switch(s){case 0:this.g=l,this.b=d;break;case 1:this.r=c,this.b=d;break;case 2:this.r=d,this.b=l;break;case 3:this.r=d,this.g=c;break;case 4:this.r=l,this.g=d;break;case 5:default:this.g=d,this.b=c;break}}fromHsvString(r){const t=ks(r,$d);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(r){const t=ks(r,$d);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(r){const t=ks(r,(i,n)=>n.includes("%")?st(i/100*255):i);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var HE=["b"],UE=["v"],Ps=function(r){return Math.round(Number(r||0))},WE=function(r){if(r instanceof po)return r;if(r&&we(r)==="object"&&"h"in r&&"b"in r){var t=r,i=t.b,n=pt(t,HE);return te(te({},n),{},{v:i})}return typeof r=="string"&&/hsb/.test(r)?r.replace(/hsb/,"hsv"):r},vr=(function(e){mr(t,e);var r=gr(t);function t(i){return lt(this,t),r.call(this,WE(i))}return ut(t,[{key:"toHsbString",value:function(){var n=this.toHsb(),o=Ps(n.s*100),a=Ps(n.b*100),s=Ps(n.h),f=n.a,d="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),c="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(f.toFixed(f===0?0:2),")");return f===1?d:c}},{key:"toHsb",value:function(){var n=this.toHsv(),o=n.v,a=pt(n,UE);return te(te({},a),{},{b:o,a:this.a})}}]),t})(po),KE="rc-color-picker",Gr=function(r){return r instanceof vr?r:new vr(r)},GE=Gr("#1677ff"),cv=function(r){var t=r.offset,i=r.targetRef,n=r.containerRef,o=r.color,a=r.type,s=n.current.getBoundingClientRect(),f=s.width,d=s.height,c=i.current.getBoundingClientRect(),l=c.width,u=c.height,h=l/2,v=u/2,g=(t.x+h)/f,p=1-(t.y+v)/d,y=o.toHsb(),m=g,x=(t.x+h)/f*360;if(a)switch(a){case"hue":return Gr(te(te({},y),{},{h:x<=0?0:x}));case"alpha":return Gr(te(te({},y),{},{a:m<=0?0:m}))}return Gr({h:y.h,s:g<=0?0:g,b:p>=1?1:p,a:y.a})},fv=function(r,t){var i=r.toHsb();switch(t){case"hue":return{x:i.h/360*100,y:50};case"alpha":return{x:r.a*100,y:50};default:return{x:i.s*100,y:(1-i.b)*100}}},YE=function(r){var t=r.color,i=r.prefixCls,n=r.className,o=r.style,a=r.onClick,s="".concat(i,"-color-block");return z.createElement("div",{className:ye(s,n),style:o,onClick:a},z.createElement("div",{className:"".concat(s,"-inner"),style:{background:t}}))};function XE(e){var r="touches"in e?e.touches[0]:e,t=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,i=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:r.pageX-t,pageY:r.pageY-i}}function dv(e){var r=e.targetRef,t=e.containerRef,i=e.direction,n=e.onDragChange,o=e.onDragChangeComplete,a=e.calculate,s=e.color,f=e.disabledDrag,d=z.useState({x:0,y:0}),c=fe(d,2),l=c[0],u=c[1],h=z.useRef(null),v=z.useRef(null);z.useEffect(function(){u(a())},[s]),z.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null}},[]);var g=function(b){var E=XE(b),S=E.pageX,w=E.pageY,_=t.current.getBoundingClientRect(),A=_.x,R=_.y,C=_.width,O=_.height,j=r.current.getBoundingClientRect(),k=j.width,I=j.height,B=k/2,V=I/2,W=Math.max(0,Math.min(S-A,C))-B,L=Math.max(0,Math.min(w-R,O))-V,$={x:W,y:i==="x"?l.y:L};if(k===0&&I===0||k!==I)return!1;n?.($)},p=function(b){b.preventDefault(),g(b)},y=function(b){b.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null,o?.()},m=function(b){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),!f&&(g(b),document.addEventListener("mousemove",p),document.addEventListener("mouseup",y),document.addEventListener("touchmove",p),document.addEventListener("touchend",y),h.current=p,v.current=y)};return[l,m]}var hv=function(r){var t=r.size,i=t===void 0?"default":t,n=r.color,o=r.prefixCls;return z.createElement("div",{className:ye("".concat(o,"-handler"),Z({},"".concat(o,"-handler-sm"),i==="small")),style:{backgroundColor:n}})},pv=function(r){var t=r.children,i=r.style,n=r.prefixCls;return z.createElement("div",{className:"".concat(n,"-palette"),style:te({position:"relative"},i)},t)},vv=z.forwardRef(function(e,r){var t=e.children,i=e.x,n=e.y;return z.createElement("div",{ref:r,style:{position:"absolute",left:"".concat(i,"%"),top:"".concat(n,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},t)}),ZE=function(r){var t=r.color,i=r.onChange,n=r.prefixCls,o=r.onChangeComplete,a=r.disabled,s=z.useRef(),f=z.useRef(),d=z.useRef(t),c=mt(function(g){var p=cv({offset:g,targetRef:f,containerRef:s,color:t});d.current=p,i(p)}),l=dv({color:t,containerRef:s,targetRef:f,calculate:function(){return fv(t)},onDragChange:c,onDragChangeComplete:function(){return o?.(d.current)},disabledDrag:a}),u=fe(l,2),h=u[0],v=u[1];return z.createElement("div",{ref:s,className:"".concat(n,"-select"),onMouseDown:v,onTouchStart:v},z.createElement(pv,{prefixCls:n},z.createElement(vv,{x:h.x,y:h.y,ref:f},z.createElement(hv,{color:t.toRgbString(),prefixCls:n})),z.createElement("div",{className:"".concat(n,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},QE=function(r,t){var i=Ar(r,{value:t}),n=fe(i,2),o=n[0],a=n[1],s=z.useMemo(function(){return Gr(o)},[o]);return[s,a]},JE=function(r){var t=r.colors,i=r.children,n=r.direction,o=n===void 0?"to right":n,a=r.type,s=r.prefixCls,f=z.useMemo(function(){return t.map(function(d,c){var l=Gr(d);return a==="alpha"&&c===t.length-1&&(l=new vr(l.setA(1))),l.toRgbString()}).join(",")},[t,a]);return z.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(f,")")}},i)},ew=function(r){var t=r.prefixCls,i=r.colors,n=r.disabled,o=r.onChange,a=r.onChangeComplete,s=r.color,f=r.type,d=z.useRef(),c=z.useRef(),l=z.useRef(s),u=function(E){return f==="hue"?E.getHue():E.a*100},h=mt(function(b){var E=cv({offset:b,targetRef:c,containerRef:d,color:s,type:f});l.current=E,o(u(E))}),v=dv({color:s,targetRef:c,containerRef:d,calculate:function(){return fv(s,f)},onDragChange:h,onDragChangeComplete:function(){a(u(l.current))},direction:"x",disabledDrag:n}),g=fe(v,2),p=g[0],y=g[1],m=z.useMemo(function(){if(f==="hue"){var b=s.toHsb();b.s=1,b.b=1,b.a=1;var E=new vr(b);return E}return s},[s,f]),x=z.useMemo(function(){return i.map(function(b){return"".concat(b.color," ").concat(b.percent,"%")})},[i]);return z.createElement("div",{ref:d,className:ye("".concat(t,"-slider"),"".concat(t,"-slider-").concat(f)),onMouseDown:y,onTouchStart:y},z.createElement(pv,{prefixCls:t},z.createElement(vv,{x:p.x,y:p.y,ref:c},z.createElement(hv,{size:"small",color:m.toHexString(),prefixCls:t})),z.createElement(JE,{colors:x,type:f,prefixCls:t})))};function tw(e){return M.useMemo(function(){var r=e||{},t=r.slider;return[t||ew]},[e])}var rw=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],nw=z.forwardRef(function(e,r){var t=e.value,i=e.defaultValue,n=e.prefixCls,o=n===void 0?KE:n,a=e.onChange,s=e.onChangeComplete,f=e.className,d=e.style,c=e.panelRender,l=e.disabledAlpha,u=l===void 0?!1:l,h=e.disabled,v=h===void 0?!1:h,g=e.components,p=tw(g),y=fe(p,1),m=y[0],x=QE(i||GE,t),b=fe(x,2),E=b[0],S=b[1],w=z.useMemo(function(){return E.setA(1).toRgbString()},[E]),_=function(L,$){t||S(L),a?.(L,$)},A=function(L){return new vr(E.setHue(L))},R=function(L){return new vr(E.setA(L/100))},C=function(L){_(A(L),{type:"hue",value:L})},O=function(L){_(R(L),{type:"alpha",value:L})},j=function(L){s&&s(A(L))},k=function(L){s&&s(R(L))},I=ye("".concat(o,"-panel"),f,Z({},"".concat(o,"-panel-disabled"),v)),B={prefixCls:o,disabled:v,color:E},V=z.createElement(z.Fragment,null,z.createElement(ZE,Ve({onChange:_},B,{onChangeComplete:s})),z.createElement("div",{className:"".concat(o,"-slider-container")},z.createElement("div",{className:ye("".concat(o,"-slider-group"),Z({},"".concat(o,"-slider-group-disabled-alpha"),u))},z.createElement(m,Ve({},B,{type:"hue",colors:rw,min:0,max:359,value:E.getHue(),onChange:C,onChangeComplete:j})),!u&&z.createElement(m,Ve({},B,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:w}],min:0,max:100,value:E.a*100,onChange:O,onChangeComplete:k}))),z.createElement(YE,{color:E.toRgbString(),prefixCls:o})));return z.createElement("div",{className:I,style:d,ref:r},typeof c=="function"?c(V):V)});process.env.NODE_ENV!=="production"&&(nw.displayName="ColorPicker");const iw=(e,r)=>e?.replace(/[^\w/]/g,"").slice(0,r?8:6)||"",ow=(e,r)=>e?iw(e,r):"";let Dd=(function(){function e(r){lt(this,e);var t;if(this.cleared=!1,r instanceof e){this.metaColor=r.metaColor.clone(),this.colors=(t=r.colors)===null||t===void 0?void 0:t.map(n=>({color:new e(n.color),percent:n.percent})),this.cleared=r.cleared;return}const i=Array.isArray(r);i&&r.length?(this.colors=r.map(({color:n,percent:o})=>({color:new e(n),percent:o})),this.metaColor=new vr(this.colors[0].color.metaColor)):this.metaColor=new vr(i?"":r),(!r||i&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ut(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return ow(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:t}=this;return t?`linear-gradient(90deg, ${t.map(n=>`${n.color.toRgbString()} ${n.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(t){return!t||this.isGradient()!==t.isGradient()?!1:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((i,n)=>{const o=t.colors[n];return i.percent===o.percent&&i.color.equals(o.color)}):this.toHexString()===t.toHexString()}}])})();const aw=e=>e instanceof Dd?e:new Dd(e);function mv(e,r){const t=zE(r),i=ye({[`${e}-${r}`]:r&&t}),n={},o={},a=aw(r).toRgb(),f=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return r&&!t&&(n.background=r,n["--ant-tooltip-color"]=f,o["--antd-arrow-background-color"]=r),{className:i,overlayStyle:n,arrowStyle:o}}const sw=e=>{const{prefixCls:r,className:t,placement:i="top",title:n,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=M.useContext(Gt),f=s("tooltip",r),[d,c,l]=uv(f),u=mv(f,o),h=u.arrowStyle,v=Object.assign(Object.assign({},a),u.overlayStyle),g=ye(c,l,f,`${f}-pure`,`${f}-placement-${i}`,t,u.className);return d(M.createElement("div",{className:g,style:h},M.createElement("div",{className:`${f}-arrow`}),M.createElement(qp,Object.assign({},e,{className:c,prefixCls:f,overlayInnerStyle:v}),n)))};var lw=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const uw=M.forwardRef((e,r)=>{var t,i;const{prefixCls:n,openClassName:o,getTooltipContainer:a,color:s,overlayInnerStyle:f,children:d,afterOpenChange:c,afterVisibleChange:l,destroyTooltipOnHide:u,destroyOnHidden:h,arrow:v=!0,title:g,overlay:p,builtinPlacements:y,arrowPointAtCenter:m=!1,autoAdjustOverflow:x=!0,motion:b,getPopupContainer:E,placement:S="top",mouseEnterDelay:w=.1,mouseLeaveDelay:_=.1,overlayStyle:A,rootClassName:R,overlayClassName:C,styles:O,classNames:j}=e,k=lw(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"]),I=!!v,[,B]=cn(),{getPopupContainer:V,getPrefixCls:W,direction:L,className:$,style:N,classNames:F,styles:q}=fo("tooltip"),K=Kt("Tooltip"),G=M.useRef(null),T=()=>{var je;(je=G.current)===null||je===void 0||je.forceAlign()};M.useImperativeHandle(r,()=>{var je,ke;return{forceAlign:T,forcePopupAlign:()=>{K.deprecated(!1,"forcePopupAlign","forceAlign"),T()},nativeElement:(je=G.current)===null||je===void 0?void 0:je.nativeElement,popupElement:(ke=G.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(([je,ke])=>{K.deprecated(!(je in e),je,ke)}),process.env.NODE_ENV!=="production"&&K(!u||typeof u=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&K(!v||typeof v=="boolean"||!("arrowPointAtCenter"in v),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[D,H]=Ar(!1,{value:(t=e.open)!==null&&t!==void 0?t:e.visible,defaultValue:(i=e.defaultOpen)!==null&&i!==void 0?i:e.defaultVisible}),U=!g&&!p&&g!==0,Y=je=>{var ke,Te;H(U?!1:je),U||((ke=e.onOpenChange)===null||ke===void 0||ke.call(e,je),(Te=e.onVisibleChange)===null||Te===void 0||Te.call(e,je))},ee=M.useMemo(()=>{var je,ke;let Te=m;return typeof v=="object"&&(Te=(ke=(je=v.pointAtCenter)!==null&&je!==void 0?je:v.arrowPointAtCenter)!==null&&ke!==void 0?ke:m),y||wE({arrowPointAtCenter:Te,autoAdjustOverflow:x,arrowWidth:I?B.sizePopupArrow:0,borderRadius:B.borderRadius,offset:B.marginXXS})},[m,v,y,B]),ie=M.useMemo(()=>g===0?g:p||g||"",[p,g]),oe=M.createElement(Fl,{space:!0},typeof ie=="function"?ie():ie),re=W("tooltip",n),ue=W(),ce=e["data-popover-inject"];let he=D;!("open"in e)&&!("visible"in e)&&U&&(he=!1);const Q=M.isValidElement(d)&&!SE(d)?d:M.createElement("span",null,d),J=Q.props,le=!J.className||typeof J.className=="string"?ye(J.className,o||`${re}-open`):J.className,[se,ne,de]=uv(re,!ce),ae=mv(re,s),pe=ae.arrowStyle,_e=ye(C,{[`${re}-rtl`]:L==="rtl"},ae.className,R,ne,de,$,F.root,j?.root),Me=ye(F.body,j?.body),[be,qe]=pE("Tooltip",k.zIndex),Oe=M.createElement(ux,Object.assign({},k,{zIndex:be,showArrow:I,placement:S,mouseEnterDelay:w,mouseLeaveDelay:_,prefixCls:re,classNames:{root:_e,body:Me},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pe),q.root),N),A),O?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},q.body),f),O?.body),ae.overlayStyle)},getTooltipContainer:E||a||V,ref:G,builtinPlacements:ee,overlay:oe,visible:he,onVisibleChange:Y,afterVisibleChange:c??l,arrowContent:M.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:vE(ue,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!u}),he?lv(Q,{className:le}):Q);return se(M.createElement(fu.Provider,{value:qe},Oe))}),oi=uw;process.env.NODE_ENV!=="production"&&(oi.displayName="Tooltip");oi._InternalPanelDoNotUseOrYouWillBeFired=sw;var cw={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"},fw=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:cw}))},gv=M.forwardRef(fw);process.env.NODE_ENV!=="production"&&(gv.displayName="EnterOutlined");var Bd={ENTER:13,ESC:27};function dw(e){return!!(e.addonBefore||e.addonAfter)}function hw(e){return!!(e.prefix||e.suffix||e.allowClear)}function qd(e,r,t){var i=r.cloneNode(!0),n=Object.create(e,{target:{value:i},currentTarget:{value:i}});return i.value=t,typeof r.selectionStart=="number"&&typeof r.selectionEnd=="number"&&(i.selectionStart=r.selectionStart,i.selectionEnd=r.selectionEnd),i.setSelectionRange=function(){r.setSelectionRange.apply(r,arguments)},n}function Yi(e,r,t,i){if(t){var n=r;if(r.type==="click"){n=qd(r,e,""),t(n);return}if(e.type!=="file"&&i!==void 0){n=qd(r,e,i),t(n);return}t(n)}}function yv(e,r){if(e){e.focus(r);var t=r||{},i=t.cursor;if(i){var n=e.value.length;switch(i){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}var bv=z.forwardRef(function(e,r){var t,i,n,o=e.inputElement,a=e.children,s=e.prefixCls,f=e.prefix,d=e.suffix,c=e.addonBefore,l=e.addonAfter,u=e.className,h=e.style,v=e.disabled,g=e.readOnly,p=e.focused,y=e.triggerFocus,m=e.allowClear,x=e.value,b=e.handleReset,E=e.hidden,S=e.classes,w=e.classNames,_=e.dataAttrs,A=e.styles,R=e.components,C=e.onClear,O=a??o,j=R?.affixWrapper||"span",k=R?.groupWrapper||"span",I=R?.wrapper||"span",B=R?.groupAddon||"span",V=z.useRef(null),W=function(ue){var ce;(ce=V.current)!==null&&ce!==void 0&&ce.contains(ue.target)&&y?.()},L=hw(e),$=z.cloneElement(O,{value:x,className:ye((t=O.props)===null||t===void 0?void 0:t.className,!L&&w?.variant)||null}),N=z.useRef(null);if(z.useImperativeHandle(r,function(){return{nativeElement:N.current||V.current}}),L){var F=null;if(m){var q=!v&&!g&&x,K="".concat(s,"-clear-icon"),G=we(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";F=z.createElement("button",{type:"button",tabIndex:-1,onClick:function(ue){b?.(ue),C?.()},onMouseDown:function(ue){return ue.preventDefault()},className:ye(K,Z(Z({},"".concat(K,"-hidden"),!q),"".concat(K,"-has-suffix"),!!d))},G)}var T="".concat(s,"-affix-wrapper"),D=ye(T,Z(Z(Z(Z(Z({},"".concat(s,"-disabled"),v),"".concat(T,"-disabled"),v),"".concat(T,"-focused"),p),"".concat(T,"-readonly"),g),"".concat(T,"-input-with-clear-btn"),d&&m&&x),S?.affixWrapper,w?.affixWrapper,w?.variant),H=(d||m)&&z.createElement("span",{className:ye("".concat(s,"-suffix"),w?.suffix),style:A?.suffix},F,d);$=z.createElement(j,Ve({className:D,style:A?.affixWrapper,onClick:W},_?.affixWrapper,{ref:V}),f&&z.createElement("span",{className:ye("".concat(s,"-prefix"),w?.prefix),style:A?.prefix},f),$,H)}if(dw(e)){var U="".concat(s,"-group"),Y="".concat(U,"-addon"),ee="".concat(U,"-wrapper"),ie=ye("".concat(s,"-wrapper"),U,S?.wrapper,w?.wrapper),oe=ye(ee,Z({},"".concat(ee,"-disabled"),v),S?.group,w?.groupWrapper);$=z.createElement(k,{className:oe,ref:N},z.createElement(I,{className:ie},c&&z.createElement(B,{className:Y},c),$,l&&z.createElement(B,{className:Y},l)))}return z.cloneElement($,{className:ye((i=$.props)===null||i===void 0?void 0:i.className,u)||null,style:te(te({},(n=$.props)===null||n===void 0?void 0:n.style),h),hidden:E})}),pw=["show"];function xv(e,r){return M.useMemo(function(){var t={};r&&(t.show=we(r)==="object"&&r.formatter?r.formatter:!!r),t=te(te({},t),e);var i=t,n=i.show,o=pt(i,pw);return te(te({},o),{},{show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:o.strategy||function(a){return a.length}})},[e,r])}var vw=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],mw=z.forwardRef(function(e,r){var t=e.autoComplete,i=e.onChange,n=e.onFocus,o=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,f=e.onKeyUp,d=e.prefixCls,c=d===void 0?"rc-input":d,l=e.disabled,u=e.htmlSize,h=e.className,v=e.maxLength,g=e.suffix,p=e.showCount,y=e.count,m=e.type,x=m===void 0?"text":m,b=e.classes,E=e.classNames,S=e.styles,w=e.onCompositionStart,_=e.onCompositionEnd,A=pt(e,vw),R=z.useState(!1),C=fe(R,2),O=C[0],j=C[1],k=z.useRef(!1),I=z.useRef(!1),B=z.useRef(null),V=z.useRef(null),W=function(ae){B.current&&yv(B.current,ae)},L=Ar(e.defaultValue,{value:e.value}),$=fe(L,2),N=$[0],F=$[1],q=N==null?"":String(N),K=z.useState(null),G=fe(K,2),T=G[0],D=G[1],H=xv(y,p),U=H.max||v,Y=H.strategy(q),ee=!!U&&Y>U;z.useImperativeHandle(r,function(){var de;return{focus:W,blur:function(){var pe;(pe=B.current)===null||pe===void 0||pe.blur()},setSelectionRange:function(pe,_e,Me){var be;(be=B.current)===null||be===void 0||be.setSelectionRange(pe,_e,Me)},select:function(){var pe;(pe=B.current)===null||pe===void 0||pe.select()},input:B.current,nativeElement:((de=V.current)===null||de===void 0?void 0:de.nativeElement)||B.current}}),z.useEffect(function(){I.current&&(I.current=!1),j(function(de){return de&&l?!1:de})},[l]);var ie=function(ae,pe,_e){var Me=pe;if(!k.current&&H.exceedFormatter&&H.max&&H.strategy(pe)>H.max){if(Me=H.exceedFormatter(pe,{max:H.max}),pe!==Me){var be,qe;D([((be=B.current)===null||be===void 0?void 0:be.selectionStart)||0,((qe=B.current)===null||qe===void 0?void 0:qe.selectionEnd)||0])}}else if(_e.source==="compositionEnd")return;F(Me),B.current&&Yi(B.current,ae,i,Me)};z.useEffect(function(){if(T){var de;(de=B.current)===null||de===void 0||de.setSelectionRange.apply(de,ge(T))}},[T]);var oe=function(ae){ie(ae,ae.target.value,{source:"change"})},re=function(ae){k.current=!1,ie(ae,ae.currentTarget.value,{source:"compositionEnd"}),_?.(ae)},ue=function(ae){a&&ae.key==="Enter"&&!I.current&&(I.current=!0,a(ae)),s?.(ae)},ce=function(ae){ae.key==="Enter"&&(I.current=!1),f?.(ae)},he=function(ae){j(!0),n?.(ae)},Q=function(ae){I.current&&(I.current=!1),j(!1),o?.(ae)},J=function(ae){F(""),W(),B.current&&Yi(B.current,ae,i)},le=ee&&"".concat(c,"-out-of-range"),se=function(){var ae=Hh(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return z.createElement("input",Ve({autoComplete:t},ae,{onChange:oe,onFocus:he,onBlur:Q,onKeyDown:ue,onKeyUp:ce,className:ye(c,Z({},"".concat(c,"-disabled"),l),E?.input),style:S?.input,ref:B,size:u,type:x,onCompositionStart:function(_e){k.current=!0,w?.(_e)},onCompositionEnd:re}))},ne=function(){var ae=Number(U)>0;if(g||H.show){var pe=H.showFormatter?H.showFormatter({value:q,count:Y,maxLength:U}):"".concat(Y).concat(ae?" / ".concat(U):"");return z.createElement(z.Fragment,null,H.show&&z.createElement("span",{className:ye("".concat(c,"-show-count-suffix"),Z({},"".concat(c,"-show-count-has-suffix"),!!g),E?.count),style:te({},S?.count)},pe),g)}return null};return z.createElement(bv,Ve({},A,{prefixCls:c,className:ye(h,le),handleReset:J,value:q,focused:O,triggerFocus:W,suffix:ne(),disabled:l,classes:b,classNames:E,styles:S,ref:V}),se())}),gw=`
|
|
191
191
|
min-height:0 !important;
|
|
192
192
|
max-height:none !important;
|
|
193
193
|
height:0 !important;
|
|
@@ -198,7 +198,7 @@ html body {
|
|
|
198
198
|
top:0 !important;
|
|
199
199
|
right:0 !important;
|
|
200
200
|
pointer-events: none !important;
|
|
201
|
-
`,yw=["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"],Ns={},Et;function bw(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(r&&Ns[t])return Ns[t];var i=window.getComputedStyle(e),n=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),o=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),a=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),s=yw.map(function(d){return"".concat(d,":").concat(i.getPropertyValue(d))}).join(";"),f={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:n};return r&&t&&(Ns[t]=f),f}function xw(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Et||(Et=document.createElement("textarea"),Et.setAttribute("tab-index","-1"),Et.setAttribute("aria-hidden","true"),Et.setAttribute("name","hiddenTextarea"),document.body.appendChild(Et)),e.getAttribute("wrap")?Et.setAttribute("wrap",e.getAttribute("wrap")):Et.removeAttribute("wrap");var n=bw(e,r),o=n.paddingSize,a=n.borderSize,s=n.boxSizing,f=n.sizingStyle;Et.setAttribute("style","".concat(f,";").concat(gw)),Et.value=e.value||e.placeholder||"";var d=void 0,c=void 0,l,u=Et.scrollHeight;if(s==="border-box"?u+=a:s==="content-box"&&(u-=o),t!==null||i!==null){Et.value=" ";var h=Et.scrollHeight-o;t!==null&&(d=h*t,s==="border-box"&&(d=d+o+a),u=Math.max(d,u)),i!==null&&(c=h*i,s==="border-box"&&(c=c+o+a),l=u>c?"":"hidden",u=Math.min(c,u))}var v={height:u,overflowY:l,resize:"none"};return d&&(v.minHeight=d),c&&(v.maxHeight=c),v}var Ew=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Is=0,Ms=1,Ls=2,ww=M.forwardRef(function(e,r){var t=e,i=t.prefixCls,n=t.defaultValue,o=t.value,a=t.autoSize,s=t.onResize,f=t.className,d=t.style,c=t.disabled,l=t.onChange,u=t.onInternalAutoSize,h=pt(t,Ew),v=Ar(n,{value:o,postState:function(K){return K??""}}),g=fe(v,2),p=g[0],y=g[1],m=function(K){y(K.target.value),l?.(K)},x=M.useRef();M.useImperativeHandle(r,function(){return{textArea:x.current}});var b=M.useMemo(function(){return a&&we(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),E=fe(b,2),S=E[0],w=E[1],_=!!a,A=M.useState(Ls),R=fe(A,2),C=R[0],O=R[1],j=M.useState(),k=fe(j,2),I=k[0],B=k[1],V=function(){O(Is),process.env.NODE_ENV==="test"&&u?.()};Ge(function(){_&&V()},[o,S,w,_]),Ge(function(){if(C===Is)O(Ms);else if(C===Ms){var q=xw(x.current,!1,S,w);O(Ls),B(q)}},[C]);var W=M.useRef(),F=function(){nn.cancel(W.current)},$=function(K){C===Ls&&(s?.(K),a&&(F(),W.current=nn(function(){V()})))};M.useEffect(function(){return F},[]);var N=_?I:null,L=te(te({},d),N);return(C===Is||C===Ms)&&(L.overflowY="hidden",L.overflowX="hidden"),M.createElement(ln,{onResize:$,disabled:!(a||s)},M.createElement("textarea",Ve({},h,{ref:x,style:L,className:ye(i,f,Z({},"".concat(i,"-disabled"),c)),disabled:c,value:p,onChange:m})))}),Sw=["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"],_w=z.forwardRef(function(e,r){var t,i=e.defaultValue,n=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,f=e.allowClear,d=e.maxLength,c=e.onCompositionStart,l=e.onCompositionEnd,u=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,g=e.showCount,p=e.count,y=e.className,m=e.style,x=e.disabled,b=e.hidden,E=e.classNames,S=e.styles,w=e.onResize,_=e.onClear,A=e.onPressEnter,R=e.readOnly,C=e.autoSize,O=e.onKeyDown,j=pt(e,Sw),k=Ar(i,{value:n,defaultValue:i}),I=fe(k,2),B=I[0],V=I[1],W=B==null?"":String(B),F=z.useState(!1),$=fe(F,2),N=$[0],L=$[1],q=z.useRef(!1),K=z.useState(null),G=fe(K,2),T=G[0],D=G[1],H=z.useRef(null),U=z.useRef(null),Y=function(){var Se;return(Se=U.current)===null||Se===void 0?void 0:Se.textArea},ee=function(){Y().focus()};z.useImperativeHandle(r,function(){var Te;return{resizableTextArea:U.current,focus:ee,blur:function(){Y().blur()},nativeElement:((Te=H.current)===null||Te===void 0?void 0:Te.nativeElement)||Y()}}),z.useEffect(function(){L(function(Te){return!x&&Te})},[x]);var ie=z.useState(null),oe=fe(ie,2),re=oe[0],ue=oe[1];z.useEffect(function(){if(re){var Te;(Te=Y()).setSelectionRange.apply(Te,ge(re))}},[re]);var ce=xv(p,g),he=(t=ce.max)!==null&&t!==void 0?t:d,Q=Number(he)>0,J=ce.strategy(W),le=!!he&&J>he,se=function(Se,ze){var me=ze;!q.current&&ce.exceedFormatter&&ce.max&&ce.strategy(ze)>ce.max&&(me=ce.exceedFormatter(ze,{max:ce.max}),ze!==me&&ue([Y().selectionStart||0,Y().selectionEnd||0])),V(me),Yi(Se.currentTarget,Se,s,me)},ne=function(Se){q.current=!0,c?.(Se)},de=function(Se){q.current=!1,se(Se,Se.currentTarget.value),l?.(Se)},ae=function(Se){se(Se,Se.target.value)},pe=function(Se){Se.key==="Enter"&&A&&A(Se),O?.(Se)},_e=function(Se){L(!0),o?.(Se)},Me=function(Se){L(!1),a?.(Se)},be=function(Se){V(""),ee(),Yi(Y(),Se,s)},qe=u,Oe;ce.show&&(ce.showFormatter?Oe=ce.showFormatter({value:W,count:J,maxLength:he}):Oe="".concat(J).concat(Q?" / ".concat(he):""),qe=z.createElement(z.Fragment,null,qe,z.createElement("span",{className:ye("".concat(v,"-data-count"),E?.count),style:S?.count},Oe)));var je=function(Se){var ze;w?.(Se),(ze=Y())!==null&&ze!==void 0&&ze.style.height&&D(!0)},ke=!C&&!g&&!f;return z.createElement(bv,{ref:H,value:W,allowClear:f,handleReset:be,suffix:qe,prefixCls:v,classNames:te(te({},E),{},{affixWrapper:ye(E?.affixWrapper,Z(Z({},"".concat(v,"-show-count"),g),"".concat(v,"-textarea-allow-clear"),f))}),disabled:x,focused:N,className:ye(y,le&&"".concat(v,"-out-of-range")),style:te(te({},m),T&&!ke?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Oe=="string"?Oe:void 0}},hidden:b,readOnly:R,onClear:_},z.createElement(ww,Ve({},j,{autoSize:C,maxLength:d,onKeyDown:pe,onChange:ae,onFocus:_e,onBlur:Me,onCompositionStart:ne,onCompositionEnd:de,className:ye(E?.textarea),style:te(te({},S?.textarea),{},{resize:m?.resize}),disabled:x,prefixCls:v,onResize:je,ref:U,readOnly:R})))}),Cw={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"},Ow=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:Cw}))},Ev=M.forwardRef(Ow);process.env.NODE_ENV!=="production"&&(Ev.displayName="CloseCircleFilled");const wv=e=>{let r;return typeof e=="object"&&e?.clearIcon?r=e:e&&(r={clearIcon:z.createElement(Ev,null)}),r};function $l(e,r,t){return ye({[`${e}-status-success`]:r==="success",[`${e}-status-warning`]:r==="warning",[`${e}-status-error`]:r==="error",[`${e}-status-validating`]:r==="validating",[`${e}-has-feedback`]:t})}const Sv=(e,r)=>r||e,_v=e=>{const[,,,,r]=cn();return r?`${e}-css-var`:""},Cv=(e,r,t=void 0)=>{var i,n;const{variant:o,[e]:a}=M.useContext(Gt),s=M.useContext(sE),f=a?.variant;let d;typeof r<"u"?d=r:t===!1?d="borderless":d=(n=(i=s??f)!==null&&i!==void 0?i:o)!==null&&n!==void 0?n:"outlined";const c=Rb.includes(d);return[d,c]};function Rw(e,r){const t=z.useRef([]),i=()=>{t.current.push(setTimeout(()=>{var n,o,a,s;!((n=e.current)===null||n===void 0)&&n.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return z.useEffect(()=>(i(),()=>t.current.forEach(n=>{n&&clearTimeout(n)})),[]),i}function jw(e,r,t,i){const{focusElCls:n,focus:o,borderElCls:a}=t,s=a?"> *":"",f=["hover",o?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${s}`).join(",");return{[`&-item:not(${r}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${i}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[f]:{zIndex:3}},n?{[`&${n}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function Aw(e,r,t){const{borderElCls:i}=t,n=i?`> ${i}`:"";return{[`&-item:not(${r}-first-item):not(${r}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${r}-last-item)${r}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${r}-first-item)${r}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Tw(e,r={focus:!0}){const{componentCls:t}=e,i=`${t}-compact`;return{[i]:Object.assign(Object.assign({},jw(e,i,r,t)),Aw(t,i,r))}}function du(e){return or(e,{inputAffixPadding:e.paddingXXS})}const hu=e=>{const{controlHeight:r,fontSize:t,lineHeight:i,lineWidth:n,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:f,paddingSM:d,controlPaddingHorizontalSM:c,controlPaddingHorizontal:l,colorFillAlter:u,colorPrimaryHover:h,colorPrimary:v,controlOutlineWidth:g,controlOutline:p,colorErrorOutline:y,colorWarningOutline:m,colorBgContainer:x,inputFontSize:b,inputFontSizeLG:E,inputFontSizeSM:S}=e,w=b||t,_=S||w,A=E||s,R=Math.round((r-w*i)/2*10)/10-n,C=Math.round((o-_*i)/2*10)/10-n,O=Math.ceil((a-A*f)/2*10)/10-n;return{paddingBlock:Math.max(R,0),paddingBlockSM:Math.max(C,0),paddingBlockLG:Math.max(O,0),paddingInline:d-n,paddingInlineSM:c-n,paddingInlineLG:l-n,addonBg:u,activeBorderColor:v,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${p}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${m}`,hoverBg:x,activeBg:x,inputFontSize:w,inputFontSizeLG:A,inputFontSizeSM:_}},kw=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),pu=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({},kw(or(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Ov=(e,r)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:r.borderColor,"&:hover":{borderColor:r.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:r.activeBorderColor,boxShadow:r.activeShadow,outline:0,backgroundColor:e.activeBg}}),Vd=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ov(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}),[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:r.borderColor}}),Pw=(e,r)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ov(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},pu(e))}),Vd(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Vd(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),r)}),zd=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:r.addonBorderColor,color:r.addonColor}}}),Nw=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},zd(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),zd(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},pu(e))}})}),Iw=(e,r)=>{const{componentCls:t}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${t}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${t}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${t}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},r)}},Rv=(e,r)=>{var t;return{background:r.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(t=r?.inputColor)!==null&&t!==void 0?t:"unset"},"&:hover":{background:r.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:r.activeBorderColor,backgroundColor:e.activeBg}}},Hd=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Rv(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}})}),Mw=(e,r)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},pu(e))}),Hd(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Hd(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),r)}),Ud=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{background:r.addonBg,color:r.addonColor}}}),Lw=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Ud(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Ud(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:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),jv=(e,r)=>({background:e.colorBgContainer,borderWidth:`${$e(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${r.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${r.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${r.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Wd=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},jv(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}),[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${r.borderColor} transparent`}}),Fw=(e,r)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${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"}}),Wd(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Wd(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),r)}),$w=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Av=e=>{const{paddingBlockLG:r,lineHeightLG:t,borderRadiusLG:i,paddingInlineLG:n}=e;return{padding:`${$e(r)} ${$e(n)}`,fontSize:e.inputFontSizeLG,lineHeight:t,borderRadius:i}},Tv=e=>({padding:`${$e(e.paddingBlockSM)} ${$e(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),kv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${$e(e.paddingBlock)} ${$e(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},$w(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Av(e)),"&-sm":Object.assign({},Tv(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Dw=e=>{const{componentCls:r,antCls:t}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${r}, &-lg > ${r}-group-addon`]:Object.assign({},Av(e)),[`&-sm ${r}, &-sm > ${r}-group-addon`]:Object.assign({},Tv(e)),[`&-lg ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightSM},[`> ${r}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${r}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${$e(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`${$e(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${$e(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${t}-select-single:not(${t}-select-customize-input):not(${t}-pagination-size-changer)`]:{[`${t}-select-selector`]:{backgroundColor:"inherit",border:`${$e(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${t}-cascader-picker`]:{margin:`-9px ${$e(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${t}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[r]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${r}-search-with-button &`]:{zIndex:0}}},[`> ${r}:first-child, ${r}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}-affix-wrapper`]:{[`&:not(:first-child) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}:last-child, ${r}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${r}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${r}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${r}-group-compact`]:Object.assign(Object.assign({display:"block"},Qb()),{[`${r}-group-addon, ${r}-group-wrap, > ${r}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
201
|
+
`,yw=["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"],Ns={},Et;function bw(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(r&&Ns[t])return Ns[t];var i=window.getComputedStyle(e),n=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),o=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),a=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),s=yw.map(function(d){return"".concat(d,":").concat(i.getPropertyValue(d))}).join(";"),f={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:n};return r&&t&&(Ns[t]=f),f}function xw(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Et||(Et=document.createElement("textarea"),Et.setAttribute("tab-index","-1"),Et.setAttribute("aria-hidden","true"),Et.setAttribute("name","hiddenTextarea"),document.body.appendChild(Et)),e.getAttribute("wrap")?Et.setAttribute("wrap",e.getAttribute("wrap")):Et.removeAttribute("wrap");var n=bw(e,r),o=n.paddingSize,a=n.borderSize,s=n.boxSizing,f=n.sizingStyle;Et.setAttribute("style","".concat(f,";").concat(gw)),Et.value=e.value||e.placeholder||"";var d=void 0,c=void 0,l,u=Et.scrollHeight;if(s==="border-box"?u+=a:s==="content-box"&&(u-=o),t!==null||i!==null){Et.value=" ";var h=Et.scrollHeight-o;t!==null&&(d=h*t,s==="border-box"&&(d=d+o+a),u=Math.max(d,u)),i!==null&&(c=h*i,s==="border-box"&&(c=c+o+a),l=u>c?"":"hidden",u=Math.min(c,u))}var v={height:u,overflowY:l,resize:"none"};return d&&(v.minHeight=d),c&&(v.maxHeight=c),v}var Ew=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Is=0,Ms=1,Ls=2,ww=M.forwardRef(function(e,r){var t=e,i=t.prefixCls,n=t.defaultValue,o=t.value,a=t.autoSize,s=t.onResize,f=t.className,d=t.style,c=t.disabled,l=t.onChange,u=t.onInternalAutoSize,h=pt(t,Ew),v=Ar(n,{value:o,postState:function(K){return K??""}}),g=fe(v,2),p=g[0],y=g[1],m=function(K){y(K.target.value),l?.(K)},x=M.useRef();M.useImperativeHandle(r,function(){return{textArea:x.current}});var b=M.useMemo(function(){return a&&we(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),E=fe(b,2),S=E[0],w=E[1],_=!!a,A=M.useState(Ls),R=fe(A,2),C=R[0],O=R[1],j=M.useState(),k=fe(j,2),I=k[0],B=k[1],V=function(){O(Is),process.env.NODE_ENV==="test"&&u?.()};Ge(function(){_&&V()},[o,S,w,_]),Ge(function(){if(C===Is)O(Ms);else if(C===Ms){var q=xw(x.current,!1,S,w);O(Ls),B(q)}},[C]);var W=M.useRef(),L=function(){nn.cancel(W.current)},$=function(K){C===Ls&&(s?.(K),a&&(L(),W.current=nn(function(){V()})))};M.useEffect(function(){return L},[]);var N=_?I:null,F=te(te({},d),N);return(C===Is||C===Ms)&&(F.overflowY="hidden",F.overflowX="hidden"),M.createElement(ln,{onResize:$,disabled:!(a||s)},M.createElement("textarea",Ve({},h,{ref:x,style:F,className:ye(i,f,Z({},"".concat(i,"-disabled"),c)),disabled:c,value:p,onChange:m})))}),Sw=["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"],_w=z.forwardRef(function(e,r){var t,i=e.defaultValue,n=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,f=e.allowClear,d=e.maxLength,c=e.onCompositionStart,l=e.onCompositionEnd,u=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,g=e.showCount,p=e.count,y=e.className,m=e.style,x=e.disabled,b=e.hidden,E=e.classNames,S=e.styles,w=e.onResize,_=e.onClear,A=e.onPressEnter,R=e.readOnly,C=e.autoSize,O=e.onKeyDown,j=pt(e,Sw),k=Ar(i,{value:n,defaultValue:i}),I=fe(k,2),B=I[0],V=I[1],W=B==null?"":String(B),L=z.useState(!1),$=fe(L,2),N=$[0],F=$[1],q=z.useRef(!1),K=z.useState(null),G=fe(K,2),T=G[0],D=G[1],H=z.useRef(null),U=z.useRef(null),Y=function(){var Se;return(Se=U.current)===null||Se===void 0?void 0:Se.textArea},ee=function(){Y().focus()};z.useImperativeHandle(r,function(){var Te;return{resizableTextArea:U.current,focus:ee,blur:function(){Y().blur()},nativeElement:((Te=H.current)===null||Te===void 0?void 0:Te.nativeElement)||Y()}}),z.useEffect(function(){F(function(Te){return!x&&Te})},[x]);var ie=z.useState(null),oe=fe(ie,2),re=oe[0],ue=oe[1];z.useEffect(function(){if(re){var Te;(Te=Y()).setSelectionRange.apply(Te,ge(re))}},[re]);var ce=xv(p,g),he=(t=ce.max)!==null&&t!==void 0?t:d,Q=Number(he)>0,J=ce.strategy(W),le=!!he&&J>he,se=function(Se,ze){var me=ze;!q.current&&ce.exceedFormatter&&ce.max&&ce.strategy(ze)>ce.max&&(me=ce.exceedFormatter(ze,{max:ce.max}),ze!==me&&ue([Y().selectionStart||0,Y().selectionEnd||0])),V(me),Yi(Se.currentTarget,Se,s,me)},ne=function(Se){q.current=!0,c?.(Se)},de=function(Se){q.current=!1,se(Se,Se.currentTarget.value),l?.(Se)},ae=function(Se){se(Se,Se.target.value)},pe=function(Se){Se.key==="Enter"&&A&&A(Se),O?.(Se)},_e=function(Se){F(!0),o?.(Se)},Me=function(Se){F(!1),a?.(Se)},be=function(Se){V(""),ee(),Yi(Y(),Se,s)},qe=u,Oe;ce.show&&(ce.showFormatter?Oe=ce.showFormatter({value:W,count:J,maxLength:he}):Oe="".concat(J).concat(Q?" / ".concat(he):""),qe=z.createElement(z.Fragment,null,qe,z.createElement("span",{className:ye("".concat(v,"-data-count"),E?.count),style:S?.count},Oe)));var je=function(Se){var ze;w?.(Se),(ze=Y())!==null&&ze!==void 0&&ze.style.height&&D(!0)},ke=!C&&!g&&!f;return z.createElement(bv,{ref:H,value:W,allowClear:f,handleReset:be,suffix:qe,prefixCls:v,classNames:te(te({},E),{},{affixWrapper:ye(E?.affixWrapper,Z(Z({},"".concat(v,"-show-count"),g),"".concat(v,"-textarea-allow-clear"),f))}),disabled:x,focused:N,className:ye(y,le&&"".concat(v,"-out-of-range")),style:te(te({},m),T&&!ke?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Oe=="string"?Oe:void 0}},hidden:b,readOnly:R,onClear:_},z.createElement(ww,Ve({},j,{autoSize:C,maxLength:d,onKeyDown:pe,onChange:ae,onFocus:_e,onBlur:Me,onCompositionStart:ne,onCompositionEnd:de,className:ye(E?.textarea),style:te(te({},S?.textarea),{},{resize:m?.resize}),disabled:x,prefixCls:v,onResize:je,ref:U,readOnly:R})))}),Cw={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"},Ow=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:Cw}))},Ev=M.forwardRef(Ow);process.env.NODE_ENV!=="production"&&(Ev.displayName="CloseCircleFilled");const wv=e=>{let r;return typeof e=="object"&&e?.clearIcon?r=e:e&&(r={clearIcon:z.createElement(Ev,null)}),r};function $l(e,r,t){return ye({[`${e}-status-success`]:r==="success",[`${e}-status-warning`]:r==="warning",[`${e}-status-error`]:r==="error",[`${e}-status-validating`]:r==="validating",[`${e}-has-feedback`]:t})}const Sv=(e,r)=>r||e,_v=e=>{const[,,,,r]=cn();return r?`${e}-css-var`:""},Cv=(e,r,t=void 0)=>{var i,n;const{variant:o,[e]:a}=M.useContext(Gt),s=M.useContext(sE),f=a?.variant;let d;typeof r<"u"?d=r:t===!1?d="borderless":d=(n=(i=s??f)!==null&&i!==void 0?i:o)!==null&&n!==void 0?n:"outlined";const c=Rb.includes(d);return[d,c]};function Rw(e,r){const t=z.useRef([]),i=()=>{t.current.push(setTimeout(()=>{var n,o,a,s;!((n=e.current)===null||n===void 0)&&n.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return z.useEffect(()=>(i(),()=>t.current.forEach(n=>{n&&clearTimeout(n)})),[]),i}function jw(e,r,t,i){const{focusElCls:n,focus:o,borderElCls:a}=t,s=a?"> *":"",f=["hover",o?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${s}`).join(",");return{[`&-item:not(${r}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${i}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[f]:{zIndex:3}},n?{[`&${n}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function Aw(e,r,t){const{borderElCls:i}=t,n=i?`> ${i}`:"";return{[`&-item:not(${r}-first-item):not(${r}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${r}-last-item)${r}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${r}-first-item)${r}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Tw(e,r={focus:!0}){const{componentCls:t}=e,i=`${t}-compact`;return{[i]:Object.assign(Object.assign({},jw(e,i,r,t)),Aw(t,i,r))}}function du(e){return or(e,{inputAffixPadding:e.paddingXXS})}const hu=e=>{const{controlHeight:r,fontSize:t,lineHeight:i,lineWidth:n,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:f,paddingSM:d,controlPaddingHorizontalSM:c,controlPaddingHorizontal:l,colorFillAlter:u,colorPrimaryHover:h,colorPrimary:v,controlOutlineWidth:g,controlOutline:p,colorErrorOutline:y,colorWarningOutline:m,colorBgContainer:x,inputFontSize:b,inputFontSizeLG:E,inputFontSizeSM:S}=e,w=b||t,_=S||w,A=E||s,R=Math.round((r-w*i)/2*10)/10-n,C=Math.round((o-_*i)/2*10)/10-n,O=Math.ceil((a-A*f)/2*10)/10-n;return{paddingBlock:Math.max(R,0),paddingBlockSM:Math.max(C,0),paddingBlockLG:Math.max(O,0),paddingInline:d-n,paddingInlineSM:c-n,paddingInlineLG:l-n,addonBg:u,activeBorderColor:v,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${p}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${m}`,hoverBg:x,activeBg:x,inputFontSize:w,inputFontSizeLG:A,inputFontSizeSM:_}},kw=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),pu=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({},kw(or(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Ov=(e,r)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:r.borderColor,"&:hover":{borderColor:r.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:r.activeBorderColor,boxShadow:r.activeShadow,outline:0,backgroundColor:e.activeBg}}),Vd=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ov(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}),[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:r.borderColor}}),Pw=(e,r)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ov(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},pu(e))}),Vd(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Vd(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),r)}),zd=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:r.addonBorderColor,color:r.addonColor}}}),Nw=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},zd(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),zd(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},pu(e))}})}),Iw=(e,r)=>{const{componentCls:t}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${t}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${t}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${t}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},r)}},Rv=(e,r)=>{var t;return{background:r.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(t=r?.inputColor)!==null&&t!==void 0?t:"unset"},"&:hover":{background:r.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:r.activeBorderColor,backgroundColor:e.activeBg}}},Hd=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Rv(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}})}),Mw=(e,r)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},pu(e))}),Hd(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Hd(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),r)}),Ud=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{background:r.addonBg,color:r.addonColor}}}),Lw=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Ud(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Ud(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:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),jv=(e,r)=>({background:e.colorBgContainer,borderWidth:`${$e(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${r.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${r.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${r.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Wd=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},jv(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}),[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${r.borderColor} transparent`}}),Fw=(e,r)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${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"}}),Wd(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Wd(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),r)}),$w=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Av=e=>{const{paddingBlockLG:r,lineHeightLG:t,borderRadiusLG:i,paddingInlineLG:n}=e;return{padding:`${$e(r)} ${$e(n)}`,fontSize:e.inputFontSizeLG,lineHeight:t,borderRadius:i}},Tv=e=>({padding:`${$e(e.paddingBlockSM)} ${$e(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),kv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${$e(e.paddingBlock)} ${$e(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},$w(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Av(e)),"&-sm":Object.assign({},Tv(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Dw=e=>{const{componentCls:r,antCls:t}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${r}, &-lg > ${r}-group-addon`]:Object.assign({},Av(e)),[`&-sm ${r}, &-sm > ${r}-group-addon`]:Object.assign({},Tv(e)),[`&-lg ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightSM},[`> ${r}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${r}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${$e(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`${$e(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${$e(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${t}-select-single:not(${t}-select-customize-input):not(${t}-pagination-size-changer)`]:{[`${t}-select-selector`]:{backgroundColor:"inherit",border:`${$e(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${t}-cascader-picker`]:{margin:`-9px ${$e(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${t}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[r]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${r}-search-with-button &`]:{zIndex:0}}},[`> ${r}:first-child, ${r}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}-affix-wrapper`]:{[`&:not(:first-child) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}:last-child, ${r}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${r}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${r}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${r}-group-compact`]:Object.assign(Object.assign({display:"block"},Qb()),{[`${r}-group-addon, ${r}-group-wrap, > ${r}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
202
202
|
& > ${r}-affix-wrapper,
|
|
203
203
|
& > ${r}-number-affix-wrapper,
|
|
204
204
|
& > ${t}-picker-range
|
|
@@ -213,10 +213,10 @@ html body {
|
|
|
213
213
|
& > ${t}-cascader-picker:last-child ${r},
|
|
214
214
|
& > ${t}-cascader-picker-focused:last-child ${r}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${t}-select-auto-complete ${r}`]:{verticalAlign:"top"},[`${r}-group-wrapper + ${r}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${r}-affix-wrapper`]:{borderRadius:0}},[`${r}-group-wrapper:not(:last-child)`]:{[`&${r}-search > ${r}-group`]:{[`& > ${r}-group-addon > ${r}-search-button`]:{borderRadius:0},[`& > ${r}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Bw=e=>{const{componentCls:r,controlHeightSM:t,lineWidth:i,calc:n}=e,a=n(t).sub(n(i).mul(2)).sub(16).div(2).equal();return{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ou(e)),kv(e)),Pw(e)),Mw(e)),Iw(e)),Fw(e)),{'&[type="color"]':{height:e.controlHeight,[`&${r}-lg`]:{height:e.controlHeightLG},[`&${r}-sm`]:{height:t,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},qw=e=>{const{componentCls:r}=e;return{[`${r}-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 ${$e(e.inputAffixPadding)}`}}}},Vw=e=>{const{componentCls:r,inputAffixPadding:t,colorTextDescription:i,motionDurationSlow:n,colorIcon:o,colorIconHover:a,iconCls:s}=e,f=`${r}-affix-wrapper`,d=`${r}-affix-wrapper-disabled`;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},kv(e)),{display:"inline-flex",[`&:not(${r}-disabled):hover`]:{zIndex:1,[`${r}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${r}`]:{padding:0},[`> input${r}, > textarea${r}`]:{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"'},[r]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:i,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:t},"&-suffix":{marginInlineStart:t}}}),qw(e)),{[`${s}${r}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${n}`,"&:hover":{color:a}}}),[`${r}-underlined`]:{borderRadius:0},[d]:{[`${s}${r}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},zw=e=>{const{componentCls:r,borderRadiusLG:t,borderRadiusSM:i}=e;return{[`${r}-group`]:Object.assign(Object.assign(Object.assign({},ou(e)),Dw(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${r}-group-addon`]:{borderRadius:t,fontSize:e.inputFontSizeLG}},"&-sm":{[`${r}-group-addon`]:{borderRadius:i}}},Nw(e)),Lw(e)),{[`&:not(${r}-compact-first-item):not(${r}-compact-last-item)${r}-compact-item`]:{[`${r}, ${r}-group-addon`]:{borderRadius:0}},[`&:not(${r}-compact-last-item)${r}-compact-first-item`]:{[`${r}, ${r}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${r}-compact-first-item)${r}-compact-last-item`]:{[`${r}, ${r}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${r}-compact-last-item)${r}-compact-item`]:{[`${r}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${r}-compact-first-item)${r}-compact-item`]:{[`${r}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Hw=e=>{const{componentCls:r,antCls:t}=e,i=`${r}-search`;return{[i]:{[r]:{"&:hover, &:focus":{[`+ ${r}-group-addon ${i}-button:not(${t}-btn-color-primary):not(${t}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${r}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${r}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${r}-group`]:{[`> ${r}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${i}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${i}-button:not(${t}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${t}-btn-loading::before`]:{inset:0}}}},[`${i}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${r}-affix-wrapper, ${i}-button`]:{height:e.controlHeightLG}},"&-small":{[`${r}-affix-wrapper, ${i}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${r}-compact-item`]:{[`&:not(${r}-compact-last-item)`]:{[`${r}-group-addon`]:{[`${r}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${r}-compact-first-item)`]:{[`${r},${r}-affix-wrapper`]:{borderRadius:0}},[`> ${r}-group-addon ${r}-search-button,
|
|
215
215
|
> ${r},
|
|
216
|
-
${r}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${r}-affix-wrapper-focused`]:{zIndex:2}}}}},Uw=e=>{const{componentCls:r}=e;return{[`${r}-out-of-range`]:{[`&, & input, & textarea, ${r}-show-count-suffix, ${r}-data-count`]:{color:e.colorError}}}},Pv=ei(["Input","Shared"],e=>{const r=or(e,du(e));return[Bw(r),Vw(r)]},hu,{resetFont:!1}),Ww=ei(["Input","Component"],e=>{const r=or(e,du(e));return[zw(r),Hw(r),Uw(r),Tw(r)]},hu,{resetFont:!1});function Kw(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Gw=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const Yw=z.forwardRef((e,r)=>{const{prefixCls:t,bordered:i=!0,status:n,size:o,disabled:a,onBlur:s,onFocus:f,suffix:d,allowClear:c,addonAfter:l,addonBefore:u,className:h,style:v,styles:g,rootClassName:p,onChange:y,classNames:m,variant:x}=e,b=Gw(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:J}=Kt("Input");J(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:S,allowClear:w,autoComplete:_,className:A,style:R,classNames:C,styles:O}=fo("input"),j=E("input",t),k=z.useRef(null),I=_v(j),[B,V,W]=Pv(j,p),[
|
|
216
|
+
${r}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${r}-affix-wrapper-focused`]:{zIndex:2}}}}},Uw=e=>{const{componentCls:r}=e;return{[`${r}-out-of-range`]:{[`&, & input, & textarea, ${r}-show-count-suffix, ${r}-data-count`]:{color:e.colorError}}}},Pv=ei(["Input","Shared"],e=>{const r=or(e,du(e));return[Bw(r),Vw(r)]},hu,{resetFont:!1}),Ww=ei(["Input","Component"],e=>{const r=or(e,du(e));return[zw(r),Hw(r),Uw(r),Tw(r)]},hu,{resetFont:!1});function Kw(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Gw=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const Yw=z.forwardRef((e,r)=>{const{prefixCls:t,bordered:i=!0,status:n,size:o,disabled:a,onBlur:s,onFocus:f,suffix:d,allowClear:c,addonAfter:l,addonBefore:u,className:h,style:v,styles:g,rootClassName:p,onChange:y,classNames:m,variant:x}=e,b=Gw(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:J}=Kt("Input");J(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:S,allowClear:w,autoComplete:_,className:A,style:R,classNames:C,styles:O}=fo("input"),j=E("input",t),k=z.useRef(null),I=_v(j),[B,V,W]=Pv(j,p),[L]=Ww(j,I),{compactSize:$,compactItemClassnames:N}=iv(j,S),F=rv(J=>{var le;return(le=o??$)!==null&&le!==void 0?le:J}),q=z.useContext(Gn),K=a??q,{status:G,hasFeedback:T,feedbackIcon:D}=z.useContext(Xn),H=Sv(G,n),U=Kw(e)||!!T,Y=z.useRef(U);if(process.env.NODE_ENV!=="production"){const J=Kt("Input");z.useEffect(()=>{var le;U&&!Y.current&&process.env.NODE_ENV!=="production"&&J(document.activeElement===((le=k.current)===null||le===void 0?void 0:le.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"),Y.current=U},[U])}const ee=Rw(k),ie=J=>{ee(),s?.(J)},oe=J=>{ee(),f?.(J)},re=J=>{ee(),y?.(J)},ue=(T||d)&&z.createElement(z.Fragment,null,d,T&&D),ce=wv(c??w),[he,Q]=Cv("input",x,i);return B(L(z.createElement(mw,Object.assign({ref:Zn(r,k),prefixCls:j,autoComplete:_},b,{disabled:K,onBlur:ie,onFocus:oe,style:Object.assign(Object.assign({},R),v),styles:Object.assign(Object.assign({},O),g),suffix:ue,allowClear:ce,className:ye(h,p,W,I,N,A),onChange:re,addonBefore:u&&z.createElement(Fl,{form:!0,space:!0},u),addonAfter:l&&z.createElement(Fl,{form:!0,space:!0},l),classNames:Object.assign(Object.assign(Object.assign({},m),C),{input:ye({[`${j}-sm`]:F==="small",[`${j}-lg`]:F==="large",[`${j}-rtl`]:S==="rtl"},m?.input,C.input,V),variant:ye({[`${j}-${he}`]:Q},$l(j,H)),affixWrapper:ye({[`${j}-affix-wrapper-sm`]:F==="small",[`${j}-affix-wrapper-lg`]:F==="large",[`${j}-affix-wrapper-rtl`]:S==="rtl"},V),wrapper:ye({[`${j}-group-rtl`]:S==="rtl"},V),groupWrapper:ye({[`${j}-group-wrapper-sm`]:F==="small",[`${j}-group-wrapper-lg`]:F==="large",[`${j}-group-wrapper-rtl`]:S==="rtl",[`${j}-group-wrapper-${he}`]:Q},$l(`${j}-group-wrapper`,H,T),V)})}))))});process.env.NODE_ENV!=="production"&&(Yw.displayName="Input");const Xw=e=>{const{componentCls:r,paddingLG:t}=e,i=`${r}-textarea`;return{[`textarea${r}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${r}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${r}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[i]:{position:"relative","&-show-count":{[`${r}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
217
217
|
&-allow-clear > ${r},
|
|
218
218
|
&-affix-wrapper${i}-has-feedback ${r}
|
|
219
|
-
`]:{paddingInlineEnd:t},[`&-affix-wrapper${r}-affix-wrapper`]:{padding:0,[`> textarea${r}`]:{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"}},[`${r}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${r}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${r}-affix-wrapper-rtl`]:{[`${r}-suffix`]:{[`${r}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${r}-affix-wrapper-sm`]:{[`${r}-suffix`]:{[`${r}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Zw=ei(["Input","TextArea"],e=>{const r=or(e,du(e));return Xw(r)},hu,{resetFont:!1});var Qw=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const Jw=z.forwardRef((e,r)=>{var t;const{prefixCls:i,bordered:n=!0,size:o,disabled:a,status:s,allowClear:f,classNames:d,rootClassName:c,className:l,style:u,styles:h,variant:v,showCount:g,onMouseDown:p,onResize:y}=e,m=Qw(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:ce}=Kt("TextArea");ce(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:b,allowClear:E,autoComplete:S,className:w,style:_,classNames:A,styles:R}=fo("textArea"),C=M.useContext(Gn),O=a??C,{status:j,hasFeedback:k,feedbackIcon:I}=M.useContext(Xn),B=Sv(j,s),V=M.useRef(null);M.useImperativeHandle(r,()=>{var ce;return{resizableTextArea:(ce=V.current)===null||ce===void 0?void 0:ce.resizableTextArea,focus:he=>{var Q,J;yv((J=(Q=V.current)===null||Q===void 0?void 0:Q.resizableTextArea)===null||J===void 0?void 0:J.textArea,he)},blur:()=>{var he;return(he=V.current)===null||he===void 0?void 0:he.blur()}}});const W=x("input",i),
|
|
219
|
+
`]:{paddingInlineEnd:t},[`&-affix-wrapper${r}-affix-wrapper`]:{padding:0,[`> textarea${r}`]:{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"}},[`${r}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${r}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${r}-affix-wrapper-rtl`]:{[`${r}-suffix`]:{[`${r}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${r}-affix-wrapper-sm`]:{[`${r}-suffix`]:{[`${r}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Zw=ei(["Input","TextArea"],e=>{const r=or(e,du(e));return Xw(r)},hu,{resetFont:!1});var Qw=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const Jw=z.forwardRef((e,r)=>{var t;const{prefixCls:i,bordered:n=!0,size:o,disabled:a,status:s,allowClear:f,classNames:d,rootClassName:c,className:l,style:u,styles:h,variant:v,showCount:g,onMouseDown:p,onResize:y}=e,m=Qw(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:ce}=Kt("TextArea");ce(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:b,allowClear:E,autoComplete:S,className:w,style:_,classNames:A,styles:R}=fo("textArea"),C=M.useContext(Gn),O=a??C,{status:j,hasFeedback:k,feedbackIcon:I}=M.useContext(Xn),B=Sv(j,s),V=M.useRef(null);M.useImperativeHandle(r,()=>{var ce;return{resizableTextArea:(ce=V.current)===null||ce===void 0?void 0:ce.resizableTextArea,focus:he=>{var Q,J;yv((J=(Q=V.current)===null||Q===void 0?void 0:Q.resizableTextArea)===null||J===void 0?void 0:J.textArea,he)},blur:()=>{var he;return(he=V.current)===null||he===void 0?void 0:he.blur()}}});const W=x("input",i),L=_v(W),[$,N,F]=Pv(W,c),[q]=Zw(W,L),{compactSize:K,compactItemClassnames:G}=iv(W,b),T=rv(ce=>{var he;return(he=o??K)!==null&&he!==void 0?he:ce}),[D,H]=Cv("textArea",v,n),U=wv(f??E),[Y,ee]=M.useState(!1),[ie,oe]=M.useState(!1),re=ce=>{ee(!0),p?.(ce);const he=()=>{ee(!1),document.removeEventListener("mouseup",he)};document.addEventListener("mouseup",he)},ue=ce=>{var he,Q;if(y?.(ce),Y&&typeof getComputedStyle=="function"){const J=(Q=(he=V.current)===null||he===void 0?void 0:he.nativeElement)===null||Q===void 0?void 0:Q.querySelector("textarea");J&&getComputedStyle(J).resize==="both"&&oe(!0)}};return $(q(M.createElement(_w,Object.assign({autoComplete:S},m,{style:Object.assign(Object.assign({},_),u),styles:Object.assign(Object.assign({},R),h),disabled:O,allowClear:U,className:ye(F,L,l,c,G,w,ie&&`${W}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),A),{textarea:ye({[`${W}-sm`]:T==="small",[`${W}-lg`]:T==="large"},N,d?.textarea,A.textarea,Y&&`${W}-mouse-active`),variant:ye({[`${W}-${D}`]:H},$l(W,B)),affixWrapper:ye(`${W}-textarea-affix-wrapper`,{[`${W}-affix-wrapper-rtl`]:b==="rtl",[`${W}-affix-wrapper-sm`]:T==="small",[`${W}-affix-wrapper-lg`]:T==="large",[`${W}-textarea-show-count`]:g||((t=e.count)===null||t===void 0?void 0:t.show)},N)}),prefixCls:W,suffix:k&&M.createElement("span",{className:`${W}-textarea-suffix`},I),showCount:g,ref:V,onResize:ue,onMouseDown:re}))))}),e2=(e,r,t,i)=>{const{titleMarginBottom:n,fontWeightStrong:o}=i;return{marginBottom:n,color:t,fontWeight:o,fontSize:e,lineHeight:r}},t2=e=>{const r=[1,2,3,4,5],t={};return r.forEach(i=>{t[`
|
|
220
220
|
h${i}&,
|
|
221
221
|
div&-h${i},
|
|
222
222
|
div&-h${i} > textarea,
|
|
@@ -232,5 +232,5 @@ html body {
|
|
|
232
232
|
${r}-collapse,
|
|
233
233
|
${r}-edit,
|
|
234
234
|
${r}-copy
|
|
235
|
-
`]:Object.assign(Object.assign({},Cp(e)),{marginInlineStart:e.marginXXS})}),i2(e)),o2(e)),a2()),{"&-rtl":{direction:"rtl"}})}},l2=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Nv=ei("Typography",s2,l2),u2=e=>{const{prefixCls:r,"aria-label":t,className:i,style:n,direction:o,maxLength:a,autoSize:s=!0,value:f,onSave:d,onCancel:c,onEnd:l,component:u,enterIcon:h=M.createElement(gv,null)}=e,v=M.useRef(null),g=M.useRef(!1),p=M.useRef(null),[y,m]=M.useState(f);M.useEffect(()=>{m(f)},[f]),M.useEffect(()=>{var k;if(!((k=v.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:I}=v.current.resizableTextArea;I.focus();const{length:B}=I.value;I.setSelectionRange(B,B)}},[]);const x=({target:k})=>{m(k.value.replace(/[\n\r]/g,""))},b=()=>{g.current=!0},E=()=>{g.current=!1},S=({keyCode:k})=>{g.current||(p.current=k)},w=()=>{d(y.trim())},_=({keyCode:k,ctrlKey:I,altKey:B,metaKey:V,shiftKey:W})=>{p.current!==k||g.current||I||B||V||W||(k===Bd.ENTER?(w(),l?.()):k===Bd.ESC&&c())},A=()=>{w()},[R,C,O]=Nv(r),j=ye(r,`${r}-edit-content`,{[`${r}-rtl`]:o==="rtl",[`${r}-${u}`]:!!u},i,C,O);return R(M.createElement("div",{className:j,style:n},M.createElement(Jw,{ref:v,maxLength:a,value:y,onChange:x,onKeyDown:S,onKeyUp:_,onCompositionStart:b,onCompositionEnd:E,onBlur:A,"aria-label":t,rows:1,autoSize:s}),h!==null?lv(h,{className:`${r}-edit-content-confirm`}):null))};var Fs,Kd;function c2(){return Kd||(Kd=1,Fs=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var r=document.activeElement,t=[],i=0;i<e.rangeCount;i++)t.push(e.getRangeAt(i));switch(r.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":r.blur();break;default:r=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||t.forEach(function(n){e.addRange(n)}),r&&r.focus()}}),Fs}var $s,Gd;function f2(){if(Gd)return $s;Gd=1;var e=c2(),r={"text/plain":"Text","text/html":"Url",default:"Text"},t="Copy to clipboard: #{key}, Enter";function i(o){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,a)}function n(o,a){var s,f,d,c,l,u,h=!1;a||(a={}),s=a.debug||!1;try{d=e(),c=document.createRange(),l=document.getSelection(),u=document.createElement("span"),u.textContent=o,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(g){if(g.stopPropagation(),a.format)if(g.preventDefault(),typeof g.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=r[a.format]||r.default;window.clipboardData.setData(p,o)}else g.clipboardData.clearData(),g.clipboardData.setData(a.format,o);a.onCopy&&(g.preventDefault(),a.onCopy(g.clipboardData))}),document.body.appendChild(u),c.selectNodeContents(u),l.addRange(c);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");h=!0}catch(g){s&&console.error("unable to copy using execCommand: ",g),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",o),a.onCopy&&a.onCopy(window.clipboardData),h=!0}catch(p){s&&console.error("unable to copy using clipboardData: ",p),s&&console.error("falling back to prompt"),f=i("message"in a?a.message:t),window.prompt(f,o)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(c):l.removeAllRanges()),u&&document.body.removeChild(u),d()}return h}return $s=n,$s}var d2=f2();const h2=Fe.getDefaultExportFromCjs(d2),p2=(e,r=!1)=>r&&e==null?[]:Array.isArray(e)?e:[e];var v2=function(e,r,t,i){function n(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(c){try{d(i.next(c))}catch(l){a(l)}}function f(c){try{d(i.throw(c))}catch(l){a(l)}}function d(c){c.done?o(c.value):n(c.value).then(s,f)}d((i=i.apply(e,r||[])).next())})};const m2=({copyConfig:e,children:r})=>{const[t,i]=M.useState(!1),[n,o]=M.useState(!1),a=M.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},f={};e.format&&(f.format=e.format),M.useEffect(()=>s,[]);const d=mt(c=>v2(void 0,void 0,void 0,function*(){var l;c?.preventDefault(),c?.stopPropagation(),o(!0);try{const u=typeof e.text=="function"?yield e.text():e.text;h2(u||p2(r,!0).join("")||"",f),o(!1),i(!0),s(),a.current=setTimeout(()=>{i(!1)},3e3),(l=e.onCopy)===null||l===void 0||l.call(e,c)}catch(u){throw o(!1),u}}));return{copied:t,copyLoading:n,onClick:d}};function Ds(e,r){return M.useMemo(()=>{const t=!!e;return[t,Object.assign(Object.assign({},r),t&&typeof e=="object"?e:null)]},[e])}const g2=e=>{const r=z.useRef(void 0);return z.useEffect(()=>{r.current=e}),r.current},y2=(e,r,t)=>z.useMemo(()=>e===!0?{title:r??t}:z.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:r??t},e):{title:e},[e,r,t]);var b2=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const Iv=M.forwardRef((e,r)=>{const{prefixCls:t,component:i="article",className:n,rootClassName:o,setContentRef:a,children:s,direction:f,style:d}=e,c=b2(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:l,direction:u,className:h,style:v}=fo("typography"),g=f??u,p=a?Zn(r,a):r,y=l("typography",t);process.env.NODE_ENV!=="production"&&Kt("Typography").deprecated(!a,"setContentRef","ref");const[m,x,b]=Nv(y),E=ye(y,h,{[`${y}-rtl`]:g==="rtl"},n,o,x,b),S=Object.assign(Object.assign({},v),d);return m(M.createElement(i,Object.assign({className:E,style:S,ref:p},c),s))});process.env.NODE_ENV!=="production"&&(Iv.displayName="Typography");var x2={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"},E2=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:x2}))},Mv=M.forwardRef(E2);process.env.NODE_ENV!=="production"&&(Mv.displayName="CheckOutlined");var w2={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"},S2=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:w2}))},Lv=M.forwardRef(S2);process.env.NODE_ENV!=="production"&&(Lv.displayName="CopyOutlined");var _2={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"},C2=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:_2}))},Fv=M.forwardRef(C2);process.env.NODE_ENV!=="production"&&(Fv.displayName="LoadingOutlined");function Yd(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Bs(e,r,t){return e===!0||e===void 0?r:e||t&&r}function O2(e){const r=document.createElement("em");e.appendChild(r),process.env.NODE_ENV!=="production"&&(r.className="ant-typography-css-ellipsis-content-measure");const t=e.getBoundingClientRect(),i=r.getBoundingClientRect();return e.removeChild(r),t.left>i.left||i.right>t.right||t.top>i.top||i.bottom>t.bottom}const vu=e=>["string","number"].includes(typeof e),R2=({prefixCls:e,copied:r,locale:t,iconOnly:i,tooltips:n,icon:o,tabIndex:a,onCopy:s,loading:f})=>{const d=Yd(n),c=Yd(o),{copied:l,copy:u}=t??{},h=r?l:u,v=Bs(d[r?1:0],h),g=typeof v=="string"?v:h;return M.createElement(oi,{title:v,getPopupContainer:p=>p.parentNode},M.createElement("button",{type:"button",className:ye(`${e}-copy`,{[`${e}-copy-success`]:r,[`${e}-copy-icon-only`]:i}),onClick:s,"aria-label":g,tabIndex:a},r?Bs(c[1],M.createElement(Mv,null),!0):Bs(c[0],f?M.createElement(Fv,null):M.createElement(Lv,null),!0)))},Ai=M.forwardRef(({style:e,children:r},t)=>{const i=M.useRef(null);return M.useImperativeHandle(t,()=>({isExceed:()=>{const n=i.current;return n.scrollHeight>n.clientHeight},getHeight:()=>i.current.clientHeight})),M.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},r)}),j2=e=>e.reduce((r,t)=>r+(vu(t)?String(t).length:1),0);function Xd(e,r){let t=0;const i=[];for(let n=0;n<e.length;n+=1){if(t===r)return i;const o=e[n],s=vu(o)?String(o).length:1,f=t+s;if(f>r){const d=r-t;return i.push(String(o).slice(0,d)),i}i.push(o),t=f}return e}const qs=0,Vs=1,zs=2,Hs=3,Zd=4,Ti={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function A2(e){const{enableMeasure:r,width:t,text:i,children:n,rows:o,expanded:a,miscDeps:s,onEllipsis:f}=e,d=M.useMemo(()=>Xr(i),[i]),c=M.useMemo(()=>j2(d),[i]),l=M.useMemo(()=>n(d,!1),[i]),[u,h]=M.useState(null),v=M.useRef(null),g=M.useRef(null),p=M.useRef(null),y=M.useRef(null),m=M.useRef(null),[x,b]=M.useState(!1),[E,S]=M.useState(qs),[w,_]=M.useState(0),[A,R]=M.useState(null);Ge(()=>{S(r&&t&&c?Vs:qs)},[t,i,o,r,d]),Ge(()=>{var k,I,B,V;if(E===Vs){S(zs);const W=g.current&&getComputedStyle(g.current).whiteSpace;R(W)}else if(E===zs){const W=!!(!((k=p.current)===null||k===void 0)&&k.isExceed());S(W?Hs:Zd),h(W?[0,c]:null),b(W);const F=((I=p.current)===null||I===void 0?void 0:I.getHeight())||0,$=o===1?0:((B=y.current)===null||B===void 0?void 0:B.getHeight())||0,N=((V=m.current)===null||V===void 0?void 0:V.getHeight())||0,L=Math.max(F,$+N);_(L+1),f(W)}},[E]);const C=u?Math.ceil((u[0]+u[1])/2):0;Ge(()=>{var k;const[I,B]=u||[0,0];if(I!==B){const W=(((k=v.current)===null||k===void 0?void 0:k.getHeight())||0)>w;let F=C;B-I===1&&(F=W?I:B),h(W?[I,F]:[F,B])}},[u,C]);const O=M.useMemo(()=>{if(!r)return n(d,!1);if(E!==Hs||!u||u[0]!==u[1]){const k=n(d,!1);return[Zd,qs].includes(E)?k:M.createElement("span",{style:Object.assign(Object.assign({},Ti),{WebkitLineClamp:o})},k)}return n(a?d:Xd(d,u[0]),x)},[a,E,u,d].concat(ge(s))),j={width:t,margin:0,padding:0,whiteSpace:A==="nowrap"?"normal":"inherit"};return M.createElement(M.Fragment,null,O,E===zs&&M.createElement(M.Fragment,null,M.createElement(Ai,{style:Object.assign(Object.assign(Object.assign({},j),Ti),{WebkitLineClamp:o}),ref:p},l),M.createElement(Ai,{style:Object.assign(Object.assign(Object.assign({},j),Ti),{WebkitLineClamp:o-1}),ref:y},l),M.createElement(Ai,{style:Object.assign(Object.assign(Object.assign({},j),Ti),{WebkitLineClamp:1}),ref:m},n([],!0))),E===Hs&&u&&u[0]!==u[1]&&M.createElement(Ai,{style:Object.assign(Object.assign({},j),{top:400}),ref:v},n(Xd(d,C),!0)),E===Vs&&M.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const $v=({enableEllipsis:e,isEllipsis:r,children:t,tooltipProps:i})=>!i?.title||!e?t:M.createElement(oi,Object.assign({open:r?void 0:!1},i),t);process.env.NODE_ENV!=="production"&&($v.displayName="EllipsisTooltip");var T2=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};function k2({mark:e,code:r,underline:t,delete:i,strong:n,keyboard:o,italic:a},s){let f=s;function d(c,l){l&&(f=M.createElement(c,{},f))}return d("strong",n),d("u",t),d("del",i),d("code",r),d("mark",e),d("kbd",o),d("i",a),f}const P2="...",Qd=["delete","mark","code","underline","strong","keyboard","italic"],N2=M.forwardRef((e,r)=>{var t;const{prefixCls:i,className:n,style:o,type:a,disabled:s,children:f,ellipsis:d,editable:c,copyable:l,component:u,title:h}=e,v=T2(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:p}=M.useContext(Gt),[y]=vb("Text"),m=M.useRef(null),x=M.useRef(null),b=g("typography",i),E=Hh(v,Qd),[S,w]=Ds(c),[_,A]=Ar(!1,{value:w.editing}),{triggerType:R=["icon"]}=w,C=me=>{var xe;me&&((xe=w.onStart)===null||xe===void 0||xe.call(w)),A(me)},O=g2(_);Ge(()=>{var me;!_&&O&&((me=x.current)===null||me===void 0||me.focus())},[_]);const j=me=>{me?.preventDefault(),C(!0)},k=me=>{var xe;(xe=w.onChange)===null||xe===void 0||xe.call(w,me),C(!1)},I=()=>{var me;(me=w.onCancel)===null||me===void 0||me.call(w),C(!1)},[B,V]=Ds(l),{copied:W,copyLoading:F,onClick:$}=m2({copyConfig:V,children:f}),[N,L]=M.useState(!1),[q,K]=M.useState(!1),[G,T]=M.useState(!1),[D,H]=M.useState(!1),[U,Y]=M.useState(!0),[ee,ie]=Ds(d,{expandable:!1,symbol:me=>me?y?.collapse:y?.expand}),[oe,re]=Ar(ie.defaultExpanded||!1,{value:ie.expanded}),ue=ee&&(!oe||ie.expandable==="collapsible"),{rows:ce=1}=ie,he=M.useMemo(()=>ue&&(ie.suffix!==void 0||ie.onEllipsis||ie.expandable||S||B),[ue,ie,S,B]);Ge(()=>{ee&&!he&&(L(Df("webkitLineClamp")),K(Df("textOverflow")))},[he,ee]);const[Q,J]=M.useState(ue),le=M.useMemo(()=>he?!1:ce===1?q:N,[he,q,N]);Ge(()=>{J(le&&ue)},[le,ue]);const se=ue&&(Q?D:G),ne=ue&&ce===1&&Q,de=ue&&ce>1&&Q,ae=(me,xe)=>{var Ze;re(xe.expanded),(Ze=ie.onExpand)===null||Ze===void 0||Ze.call(ie,me,xe)},[pe,_e]=M.useState(0),Me=({offsetWidth:me})=>{_e(me)},be=me=>{var xe;T(me),G!==me&&((xe=ie.onEllipsis)===null||xe===void 0||xe.call(ie,me))};M.useEffect(()=>{const me=m.current;if(ee&&Q&&me){const xe=O2(me);D!==xe&&H(xe)}},[ee,Q,f,de,U,pe]),M.useEffect(()=>{const me=m.current;if(typeof IntersectionObserver>"u"||!me||!Q||!ue)return;const xe=new IntersectionObserver(()=>{Y(!!me.offsetParent)});return xe.observe(me),()=>{xe.disconnect()}},[Q,ue]);const qe=y2(ie.tooltip,w.text,f),Oe=M.useMemo(()=>{if(!(!ee||Q))return[w.text,f,h,qe.title].find(vu)},[ee,Q,h,qe.title,se]);if(_)return M.createElement(u2,{value:(t=w.text)!==null&&t!==void 0?t:typeof f=="string"?f:"",onSave:k,onCancel:I,onEnd:w.onEnd,prefixCls:b,className:n,style:o,direction:p,component:u,maxLength:w.maxLength,autoSize:w.autoSize,enterIcon:w.enterIcon});const je=()=>{const{expandable:me,symbol:xe}=ie;return me?M.createElement("button",{type:"button",key:"expand",className:`${b}-${oe?"collapse":"expand"}`,onClick:Ze=>ae(Ze,{expanded:!oe}),"aria-label":oe?y.collapse:y?.expand},typeof xe=="function"?xe(oe):xe):null},ke=()=>{if(!S)return;const{icon:me,tooltip:xe,tabIndex:Ze}=w,Yt=Xr(xe)[0]||y?.edit,yr=typeof Yt=="string"?Yt:"";return R.includes("icon")?M.createElement(oi,{key:"edit",title:xe===!1?"":Yt},M.createElement("button",{type:"button",ref:x,className:`${b}-edit`,onClick:j,"aria-label":yr,tabIndex:Ze},me||M.createElement(Nh,{role:"button"}))):null},Te=()=>B?M.createElement(R2,Object.assign({key:"copy"},V,{prefixCls:b,copied:W,locale:y,onCopy:$,loading:F,iconOnly:f==null})):null,Se=me=>[me&&je(),ke(),Te()],ze=me=>[me&&!oe&&M.createElement("span",{"aria-hidden":!0,key:"ellipsis"},P2),ie.suffix,Se(me)];return M.createElement(ln,{onResize:Me,disabled:!ue},me=>M.createElement($v,{tooltipProps:qe,enableEllipsis:ue,isEllipsis:se},M.createElement(Iv,Object.assign({className:ye({[`${b}-${a}`]:a,[`${b}-disabled`]:s,[`${b}-ellipsis`]:ee,[`${b}-ellipsis-single-line`]:ne,[`${b}-ellipsis-multiple-line`]:de},n),prefixCls:i,style:Object.assign(Object.assign({},o),{WebkitLineClamp:de?ce:void 0}),component:u,ref:Zn(me,m,r),direction:p,onClick:R.includes("text")?j:void 0,"aria-label":Oe?.toString(),title:h},E),M.createElement(A2,{enableMeasure:ue&&!Q,text:f,rows:ce,width:pe,onEllipsis:be,expanded:oe,miscDeps:[W,oe,F,S,B,y].concat(ge(Qd.map(xe=>e[xe])))},(xe,Ze)=>k2(e,M.createElement(M.Fragment,null,xe.length>0&&Ze&&!oe&&Oe?M.createElement("span",{key:"show-content","aria-hidden":!0},xe):xe,ze(Ze)))))))}),I2=M.forwardRef((e,r)=>M.createElement(N2,Object.assign({ref:r},e,{component:"div"}))),Jd=(e,r)=>{const t=window.innerWidth,i=window.innerHeight,n=Math.min(Math.max(e.x,0),Math.max(0,t-r.width)),o=Math.min(Math.max(e.y,0),Math.max(0,i-r.height));return{x:n,y:o}},M2=({title:e="팝업",width:r=800,height:t=600,minWidth:i=400,minHeight:n=300,onClose:o,children:a,footer:s,showMask:f=!0,maskStyle:d={backgroundColor:"rgba(0,0,0,0.3)"},buttons:c=[]})=>{const[l,u]=z.useState(r),[h,v]=z.useState(t),g=z.useRef(null),p=z.useMemo(()=>{const w=Math.max(0,(window.innerWidth-r)/2),_=Math.max(0,(window.innerHeight-t)/2);return{x:w,y:_}},[r,t]),[y,m]=z.useState(p),x=(w,_)=>{const A=Jd({x:_.x,y:_.y},{width:l,height:h});m(A)},b=(w,_,A,R,C)=>{const O={width:parseInt(A.style.width,10),height:parseInt(A.style.height,10)},j=Jd(C,O);u(O.width),v(O.height),m(j)},E=()=>g.current??document.body,S=[...c,{key:"CLOSE",text:"닫기",type:"default",danger:!1,disabled:!1,onClick:o}];return P.jsxRuntimeExports.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[f&&P.jsxRuntimeExports.jsx("div",{onClick:o,style:{position:"absolute",inset:0,...d,zIndex:0}}),P.jsxRuntimeExports.jsxs(eh.Rnd,{className:"bwg-draggable",size:{width:l,height:h},position:y,bounds:"window",minWidth:i,minHeight:n,onDragStop:x,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:[P.jsxRuntimeExports.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:P.jsxRuntimeExports.jsx(Dl,{getPopupContainer:E,children:P.jsxRuntimeExports.jsx(jr,{type:"vertical",children:P.jsxRuntimeExports.jsxs(X.Card,{className:"popup-drag-container",title:P.jsxRuntimeExports.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:e}),style:{width:"100%",height:"100%"},styles:{body:{height:s?"calc(100% - 120px)":"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:P.jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:8},children:S.map(w=>P.jsxRuntimeExports.jsx(X.Button,{type:w.type,danger:w.danger,disabled:w.disabled,className:"bwg-btn",onClick:w.onClick,children:w.text},w.key))}),children:[P.jsxRuntimeExports.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:a}),s&&P.jsxRuntimeExports.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,padding:"16px 20px",borderTop:"1px solid #f0f0f0",backgroundColor:"#fafafa",borderRadius:"0 0 8px 8px"},children:s})]})})})}),P.jsxRuntimeExports.jsx("div",{ref:g,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},{TextArea:L2}=X.Input,F2=({open:e,onClose:r})=>{const{searchBoxRef:t}=Xi.useSearchBox(),{user:i}=Fe.useUserStore(),{activeMenuItem:n}=Fe.useMenuViewStore(),[o]=X.Form.useForm(),[a,s]=z.useState(!1),[f,d]=z.useState(!1),[c,l]=z.useState("list"),[u,h]=z.useState(null),[v,g]=z.useState([]),p=z.useRef(null),[y,m]=z.useState([]),[x,b]=z.useState(""),[E,S]=z.useState(!1),[w,_]=z.useState(15),A=z.useRef(null),R=[{label:"문의",value:"INQR"},{label:"요청",value:"RQST"},{label:"신고",value:"RPRT"},{label:"건의",value:"SGSN"}],C=async()=>{s(!0);try{const T=[{id:1,type:"INQR",typeNm:"문의",title:"화면 오류 문의",content:"화면에서 데이터가 제대로 표시되지 않습니다.",status:"PENDING",statusNm:"대기",regDt:"2024-01-15 10:30:00",regUser:"홍길동",scrnId:n?.scrnId,processor:null,processDt:null,dueDate:"2024-01-20"},{id:2,type:"RPRT",typeNm:"신고",title:"시스템 버그 신고",content:"특정 조건에서 시스템이 멈춥니다.",status:"PROCESSING",statusNm:"처리중",regDt:"2024-01-14 14:20:00",regUser:"김철수",scrnId:n?.scrnId,processor:"이영희",processDt:"2024-01-16 09:15:00",dueDate:null},{id:3,type:"INQR",typeNm:"문의",title:"급한 문의사항",content:"시스템 접속이 안됩니다.",status:"PENDING",statusNm:"대기",regDt:"2024-01-18 15:30:00",regUser:"박민수",scrnId:n?.scrnId,processor:null,processDt:null,dueDate:"2024-01-19"},...Array.from({length:25},(D,H)=>({id:H+4,type:"INQR",typeNm:"문의",title:`테스트 문의 ${H+1}`,content:`테스트 내용 ${H+1}`,status:"PENDING",statusNm:"대기",regDt:`2024-01-${String(20+H).padStart(2,"0")} 10:00:00`,regUser:`사용자${H+1}`,scrnId:n?.scrnId,processor:null,processDt:null,dueDate:null}))];g(T),setTimeout(()=>{A.current&&A.current.addAllData(T)},100)}catch(T){console.error("문의 목록 조회 실패:",T),X.message.error("문의 목록을 불러오는데 실패했습니다.")}finally{s(!1)}},O=T=>{if(!T)return null;const D=new Date,H=new Date(T),U=new Date;Math.ceil((H.getTime()-U.getTime())/(1e3*60*60*24));const Y=Math.ceil((H.getTime()-D.getTime())/(1e3*60*60*24));return Y<=0?{percent:100,status:"exception"}:Y<=1?{percent:90,status:"exception"}:Y<=2?{percent:70,status:"active"}:Y<=3?{percent:50,status:"normal"}:{percent:30,status:"normal"}},j=[{fieldName:"type",width:80,visible:!1},{fieldName:"typeNm",header:{text:"구분"},width:80},{fieldName:"title",header:{text:"제목"},width:200},{fieldName:"content",header:{text:"내용"},width:200,visible:!1},{fieldName:"statusNm",header:{text:"상태"},width:80},{fieldName:"regUser",header:{text:"등록자"},width:100},{fieldName:"regDt",header:{text:"등록일시"},width:150},{fieldName:"dueDate",header:{text:"마감요청일"},width:100},{fieldName:"processor",header:{text:"처리담당자"},width:100},{fieldName:"processDt",header:{text:"처리일자"},width:120}],k={onCellDblClicked:(T,D)=>{const H=D.itemIndex??-1;if(H<0)return;const U=T.getValues(H);h(U),l("detail")}},I=async T=>{s(!0);try{o.validateFields().then(D=>{console.log("문의/신고 제출:",D),X.message.success(D.type==="INQUIRY"?"문의가 등록되었습니다.":"신고가 등록되었습니다."),o.resetFields(),l("list"),C()}).catch(D=>{console.error("문의/신고 제출 실패:",D)})}catch(D){console.error("문의/신고 제출 실패:",D),X.message.error("제출 중 오류가 발생했습니다.")}finally{s(!1)}},B=()=>{o.resetFields(),c==="new"?l("list"):r()},V=()=>{(c==="detail"||c==="new")&&l("list")},W=()=>{o.resetFields(),l("new")},F=()=>{console.log("댓글 수동 새로고침"),_(15)},$=()=>{if(!x.trim()){X.message.warning("댓글 상세내용 작성");return}b(""),setTimeout(()=>{p.current&&(p.current.scrollTop=p.current.scrollHeight)},100)},N=T=>{const D=y.find(H=>H.id===T);if(D&&D.regUserId!==i?.emplNo){X.message.error("본인이 작성한 댓글만 삭제할 수 있습니다.");return}};z.useEffect(()=>{e&&setTimeout(()=>{C()},100)},[e]),z.useEffect(()=>{c==="list"&&A.current&&v.length>0&&setTimeout(()=>{A.current&&A.current.addAllData(v)},50)},[c,v]);const L=()=>P.jsxRuntimeExports.jsxs(Cr,{border:!1,children:[P.jsxRuntimeExports.jsx(Ji,{border:!0,ref:t,reqRows:P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:[P.jsxRuntimeExports.jsx(X.Col,{span:6,children:P.jsxRuntimeExports.jsx(We.BwgSelect,{itemProps:{label:"등록구분",name:"type"},selectProps:{options:R}})}),P.jsxRuntimeExports.jsx(X.Col,{span:12,children:P.jsxRuntimeExports.jsx(We.BwgRangePicker,{itemProps:{label:"등록일자",name:"regDt"}})}),P.jsxRuntimeExports.jsx(X.Col,{span:6,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{name:"myArticle",label:"내 글만",children:P.jsxRuntimeExports.jsx(X.Switch,{})})})]}),P.jsxRuntimeExports.jsx(X.Row,{children:P.jsxRuntimeExports.jsx(X.Col,{span:24,children:P.jsxRuntimeExports.jsx(We.BwgInput,{itemProps:{label:"제목 및 내용",name:"keyword"}})})})]})}),P.jsxRuntimeExports.jsx(mh,{ref:A,gridColumns:j,gridEvents:k,gridOptions:{container:{page:!0,indicator:!0}}})]}),q=()=>{const T=u?.dueDate?O(u.dueDate):null;return P.jsxRuntimeExports.jsxs(X.Splitter,{children:[P.jsxRuntimeExports.jsx(X.Splitter.Panel,{defaultSize:"70%",min:"60%",max:"80%",style:{paddingRight:"15px",overflowX:"hidden",overflowY:"hidden"},children:P.jsxRuntimeExports.jsx(Cr,{children:P.jsxRuntimeExports.jsxs(X.Form,{form:o,onFinish:I,labelCol:{flex:"100px"},children:[P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgSelect,{itemProps:{name:"type",label:"구분"},selectProps:{options:R}})}),P.jsxRuntimeExports.jsx(X.Col,{span:16,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"화면 정보",name:void 0,children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"scrnId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"scrnNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})})]}),P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"작성자",name:void 0,children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{width:"100%"},children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"emplNo",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"emplNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})}),P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"작성일자",name:"regDt",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.DatePicker,{})})})]}),P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"마감요청일",name:"dueDate",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.DatePicker,{})})}),P.jsxRuntimeExports.jsx(X.Col,{span:8,children:T&&P.jsxRuntimeExports.jsxs(X.Flex,{vertical:!0,gap:2,children:[P.jsxRuntimeExports.jsx("span",{style:{fontSize:"12px",color:"#595959"},children:"진척률"}),P.jsxRuntimeExports.jsx(X.Progress,{percent:T.percent,status:T.status,size:"small",format:D=>`${D}%`})]})})]}),P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"처리담당자",name:void 0,help:"",children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"processor",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"processorNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})}),P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"처리일자",name:"processDt",children:P.jsxRuntimeExports.jsx(X.DatePicker,{})})})]}),P.jsxRuntimeExports.jsx(X.Row,{gutter:[16,8],children:P.jsxRuntimeExports.jsx(X.Col,{span:24,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.Input,{})})})}),P.jsxRuntimeExports.jsx(Us,{border:!1,itemProps:{name:"content"},editorProps:{isEditing:f,title:{title:P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsx(Ce.EditOutlined,{style:{marginRight:"5px"}})," 상세내용 작성"]}),children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.EyeFilled,{}),onClick:()=>d(!f),children:"미리보기"})}}})]})})}),P.jsxRuntimeExports.jsx(X.Splitter.Panel,{collapsible:!0,style:{paddingLeft:"15px"},children:P.jsxRuntimeExports.jsxs(Cr,{style:{flex:"0 0 400px",display:"flex",flexDirection:"column"},children:[P.jsxRuntimeExports.jsxs("div",{style:{borderBottom:"1px solid #e8e8e8",paddingBottom:"12px",marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[P.jsxRuntimeExports.jsx("span",{style:{fontSize:"14px",fontWeight:"600",color:"#262626"},children:"댓글"}),P.jsxRuntimeExports.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[P.jsxRuntimeExports.jsx(X.Button,{type:"text",icon:P.jsxRuntimeExports.jsx(Ce.ReloadOutlined,{spin:E}),onClick:F,disabled:E,size:"small",style:{fontSize:"12px",color:"#595959",height:"24px",padding:"0 8px"}}),P.jsxRuntimeExports.jsx("span",{style:{position:"absolute",top:"-4px",right:"-4px",fontSize:"10px",fontWeight:"700",color:E?"#8c8c8c":"#1890ff",minWidth:"14px",height:"14px",lineHeight:"14px",textAlign:"center",borderRadius:"50%",pointerEvents:"none"},children:w})]})]}),P.jsxRuntimeExports.jsx("div",{ref:p,style:{flex:1,overflowY:"auto",marginBottom:"16px",minHeight:0},children:P.jsxRuntimeExports.jsx(X.List,{dataSource:y,renderItem:D=>P.jsxRuntimeExports.jsxs(X.List.Item,{style:{position:"relative",paddingRight:"20px",padding:"12px 20px 12px 12px",borderBottom:"1px solid #f0f0f0"},children:[P.jsxRuntimeExports.jsx(X.List.Item.Meta,{avatar:P.jsxRuntimeExports.jsx(X.Avatar,{size:32,style:{backgroundColor:"#1890ff",fontSize:"13px"},children:D.author[0]}),title:P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"4px"},children:[P.jsxRuntimeExports.jsx("span",{style:{fontWeight:"500",fontSize:"13px",color:"#262626"},children:D.author}),P.jsxRuntimeExports.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:D.regDt})]}),description:P.jsxRuntimeExports.jsx("span",{style:{fontSize:"13px",color:"#595959",lineHeight:"1.5"},children:D.content})}),D.regUserId===i?.emplNo&&P.jsxRuntimeExports.jsx(X.Button,{type:"text",danger:!0,icon:P.jsxRuntimeExports.jsx(Ce.DeleteOutlined,{style:{fontSize:"12px"}}),size:"small",onClick:()=>N(D.id),style:{position:"absolute",right:"8px",top:"62%",transform:"translateY(-50%)",opacity:.5,height:"24px",width:"24px",padding:0},onMouseEnter:H=>{H.currentTarget.style.opacity="1"},onMouseLeave:H=>{H.currentTarget.style.opacity="0.5"}})]},D.id)})}),P.jsxRuntimeExports.jsxs("div",{style:{padding:"12px",borderTop:"1px solid #e8e8e8",backgroundColor:"#fafafa",flexShrink:0,marginTop:"auto"},children:[P.jsxRuntimeExports.jsx("div",{style:{marginBottom:"8px"},children:P.jsxRuntimeExports.jsx(L2,{rows:2,placeholder:"댓글을 입력하세요...",value:x,onChange:D=>b(D.target.value),maxLength:300,style:{borderRadius:"6px",border:"1px solid #d9d9d9",resize:"none",fontSize:"13px",backgroundColor:"#ffffff"},onFocus:D=>{D.target.style.borderColor="#1890ff",D.target.style.boxShadow="0 0 0 2px rgba(24, 144, 255, 0.05)"},onBlur:D=>{D.target.style.borderColor="#d9d9d9",D.target.style.boxShadow="none"}})}),P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[P.jsxRuntimeExports.jsxs("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:[x.length," / 300자"]}),P.jsxRuntimeExports.jsx(X.Button,{type:"primary",onClick:$,size:"small",style:{borderRadius:"4px",fontSize:"12px",height:"28px",padding:"0 16px",fontWeight:"500"},disabled:!x.trim(),children:"등록"})]})]})]})})]})},K=()=>P.jsxRuntimeExports.jsx(Cr,{children:P.jsxRuntimeExports.jsxs(We.BwgForm,{form:o,onFinish:I,initialValues:{type:"INQR"},labelCol:{flex:"100px"},children:[P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgSelect,{itemProps:{name:"type",label:"구분",rules:[{required:!0,message:"구분을 선택해주세요."}]},selectProps:{options:R}})}),P.jsxRuntimeExports.jsx(X.Col,{span:16,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"화면 정보",name:void 0,children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{width:"100%"},children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"scrnId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"scrnNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})})]}),P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"작성자",name:void 0,children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{width:"100%"},children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"emplNo",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"emplNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})}),P.jsxRuntimeExports.jsx(X.Col,{span:6,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"작성일자",name:"regDt",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.DatePicker,{disabled:!0})})}),P.jsxRuntimeExports.jsx(X.Col,{span:6,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"마감요청일",name:"dueDate",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.DatePicker,{})})}),P.jsxRuntimeExports.jsx(X.Col,{span:4,children:P.jsxRuntimeExports.jsx(We.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),P.jsxRuntimeExports.jsx(X.Row,{gutter:[16,8],children:P.jsxRuntimeExports.jsx(X.Col,{span:24,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},rules:[{required:!0,message:"제목을 입력해주세요."}],children:P.jsxRuntimeExports.jsx(X.Input,{})})})}),P.jsxRuntimeExports.jsx(Us,{border:!1,itemProps:{name:"content"},editorProps:{isEditing:f,title:{title:P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsx(Ce.EditOutlined,{style:{marginRight:"5px"}})," 상세내용 작성"]}),children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.EyeFilled,{}),onClick:()=>d(!f),children:"미리보기"})}}})]})});z.useEffect(()=>{c==="new"&&(d(!0),o.setFieldsValue({type:"INQR",scrnId:n?.scrnId,scrnNm:n?.menuNm,emplNo:i?.emplNo,emplNm:i?.userNm,regDt:Vv(),content:""}))},[c,o,n,i]),z.useEffect(()=>{c==="detail"&&u&&o.setFieldsValue({scrnId:u.scrnId||n?.scrnId,scrnNm:u.scrnNm||n?.menuNm,emplNo:u.emplNo||i?.emplNo,emplNm:u.emplNm||i?.userNm,type:u.type,title:u.title,content:u.content})},[c,u,o,n,i]);const G=()=>{switch(c){case"list":return[{key:"REFRESH",text:"조회",type:"default",onClick:C,disabled:a},{key:"NEW",text:"신규 등록",type:"primary",onClick:W}];case"detail":return[{key:"BACK",text:"뒤로",type:"default",onClick:V}];case"new":return[{key:"SUBMIT",text:"제출",type:"primary",onClick:()=>o.submit(),disabled:a},{key:"CANCEL",text:"취소",type:"default",onClick:B}];default:return[]}};return e?P.jsxRuntimeExports.jsxs(M2,{title:"문의 및 신고",width:1400,height:800,minWidth:600,minHeight:400,onClose:B,buttons:G(),children:[c==="list"&&L(),c==="detail"&&q(),c==="new"&&K()]}):null},Dv=(e,r,t=null)=>{for(let i=0;i<e.length;i++){const n=e[i];if(n.key===r)return{node:n,ctx:{parent:t,index:i,siblings:e}};if(n.children?.length){const o=Dv(n.children,r,n);if(o.node)return o}}return{node:null,ctx:null}},Bv=(e,r)=>{if(!e.children)return!1;for(const t of e.children)if(t.key===r||Bv(t,r))return!0;return!1};function $2({open:e,onClose:r}){const{nodes:t,rootIds:i,addFolder:n,editFolder:o,removeFolder:a,removeMenu:s,moveNode:f}=Nn.useFavoriteStore(),d=z.useRef(null),[c,l]=z.useState([]),[u,h]=z.useState([]),[v,g]=z.useState(""),[p,y]=z.useState("ADD"),[m,x]=z.useState(!1),[b,E]=z.useState("");z.useEffect(()=>{e&&h(i)},[e]),z.useEffect(()=>{const _=S(t,i);l(_)},[t]),z.useEffect(()=>{m&&b&&(d.current.setFieldValue("prntBkmkId",b),d.current.setFieldValue("prntBkmkNm",t[b]?.bkmkNm??"-")),m&&p==="EDIT"&&(d.current.setFieldValue("bkmkId",b),d.current.setFieldValue("bkmkNm",t[b]?.bkmkNm)),!m&&p=="ADD"&&h(_=>[..._,b]),!m&&d.current&&(E("-"),d.current.resetFields())},[m,p,b,t]);const S=(_,A)=>{const R=(C,O="-")=>{const j=_[C];if(!j)return null;const k={key:j.bkmkId,type:j.type,title:j.type==="F"?j.bkmkNm:j.menuNm?`${j.menuNm} (${j.menuId})`:j.menuId,parentId:O,sortOrdr:j.sortOrdr??0};if(j.type==="F"){const B=(j.children??[]).map(V=>R(V,j.bkmkId)).filter(Boolean);return{...k,children:B}}return k};return A.map(C=>R(C,"-")).filter(Boolean)},w=()=>{if(y("ADD"),!v){E("-"),x(!0);return}const _=t[v];if(!_){E("-"),x(!0);return}_.type==="F"?E(_.bkmkId):E(_.prntBkmkId),x(!0)};return P.jsxRuntimeExports.jsxs(X.ConfigProvider,{theme:{components:{Modal:{wireframe:!0}}},children:[P.jsxRuntimeExports.jsxs(X.Modal,{open:e,okButtonProps:{style:{display:"none"}},cancelText:"닫기",width:560,style:{zIndex:1001},styles:{body:{paddingTop:"12px"}},title:P.jsxRuntimeExports.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:P.jsxRuntimeExports.jsxs(X.Typography.Text,{strong:!0,style:{fontSize:18},children:[P.jsxRuntimeExports.jsx(Ce.FolderOpenFilled,{style:{marginRight:10,fontSize:18,color:"#faad14"}}),"북마크 관리"]})}),onCancel:r,children:[P.jsxRuntimeExports.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginBottom:10},children:[P.jsxRuntimeExports.jsx(X.Button,{color:"blue",variant:"outlined",icon:P.jsxRuntimeExports.jsx(Ce.FolderAddOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:w,children:"새 폴더"}),P.jsxRuntimeExports.jsxs("div",{children:[P.jsxRuntimeExports.jsx(X.Tooltip,{title:"펼치기",children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.PlusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>{const _=Object.values(t).filter(A=>A.type==="F").map(A=>A.bkmkId);h(_)}})}),P.jsxRuntimeExports.jsx(X.Tooltip,{title:"접기",children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.MinusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>h([])})})]})]}),P.jsxRuntimeExports.jsxs("div",{style:{maxHeight:420,height:350,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:8,padding:8},children:[c.length==0&&P.jsxRuntimeExports.jsx(X.Empty,{description:P.jsxRuntimeExports.jsxs(X.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",P.jsxRuntimeExports.jsx("br",{}),"새로운 폴더를 생성해보세요."]})}),P.jsxRuntimeExports.jsx(X.Tree,{blockNode:!0,draggable:!0,allowDrop:({dropNode:_,dropPosition:A})=>{const R=_.type==="F";return A===0?R:!0},onDrop:_=>{const{dragNode:A,node:R,dropPosition:C,dropToGap:O}=_;if(A.key===R.key||Bv(A,R.key))return;let j,k;if(O){const B=Dv(c,R.key).ctx;B.siblings;const V=B.index;j=B.parent?B.parent.key:"-",k=C>0?V+1:V}else{if(R.type!=="F")return;const B=R.children||[];j=R.key,k=B.length}const I=Fe.getUserId();if(A.type==="F")f({bkmkId:A.key,newPrntBkmkId:j,sortOrdr:k,userId:I}).catch(()=>{X.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(j==="-"){X.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}f({bkmkId:A.key,newPrntBkmkId:j,sortOrdr:k,userId:I}).catch(()=>{X.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}O===!1&&h(B=>Array.from(new Set([...B,R.key])))},showLine:!0,treeData:c,selectedKeys:[v],expandedKeys:u,onExpand:h,onSelect:_=>g(_[0]),titleRender:_=>P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[P.jsxRuntimeExports.jsxs("span",{children:[_.type==="F"?"📁":"📄"," ",_.title,_.isNew?P.jsxRuntimeExports.jsx(X.Tag,{color:"gold",style:{marginLeft:4,fontSize:"10px",height:"16px",lineHeight:"16px",padding:"0 5px"},children:"N"}):null]}),P.jsxRuntimeExports.jsxs("span",{style:{display:"inline-flex",gap:8},children:[_.type==="F"&&P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsx(Ce.PlusOutlined,{style:{opacity:.8},onClick:()=>{y("ADD"),E(_.key),x(!0)}}),P.jsxRuntimeExports.jsx(Ce.EditOutlined,{style:{opacity:.8},onClick:()=>{y("EDIT"),E(_.key),x(!0)}})]}),P.jsxRuntimeExports.jsx(Ce.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{_.type==="F"?X.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>a(_.key)}):X.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>s(_.key)})}})]})]})})]})]}),P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Modal:{titleColor:p==="ADD"?"#0958d9":"#d46b08",headerBg:p==="ADD"?"#e6f4ff":"#fff7e6"}}},children:P.jsxRuntimeExports.jsx(X.Modal,{title:P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[p==="ADD"?P.jsxRuntimeExports.jsx(Ce.FolderAddOutlined,{style:{marginRight:10,fontSize:18,color:"#1677ff"}}):P.jsxRuntimeExports.jsx(Ce.EditOutlined,{style:{marginRight:10,fontSize:18,color:"#d46b08"}}),P.jsxRuntimeExports.jsxs(X.Typography.Text,{strong:!0,style:{fontSize:17},children:["폴더",p==="ADD"?" 추가":"명 수정"]})]}),open:m,okText:"저장",onOk:()=>{const _=d.current.getFieldValue("bkmkNm"),A=Fe.getUserId();if(p==="ADD"){const R=__SYS_CD__??"KH",C=d.current.getFieldValue("prntBkmkId");n(_,C,R,A).then(()=>{x(!1)})}else{const R=d.current.getFieldValue("bkmkId");o(R,A,_).then(()=>{x(!1)})}},centered:!0,width:400,onCancel:()=>x(!1),children:P.jsxRuntimeExports.jsxs(We.BwgForm,{ref:d,children:[P.jsxRuntimeExports.jsx(We.BwgInput,{itemProps:{name:p==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),P.jsxRuntimeExports.jsx(We.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:b==="-"||p==="EDIT"},inputProps:{disabled:!0}}),P.jsxRuntimeExports.jsx(We.BwgInput,{itemProps:{label:"폴더명",name:"bkmkNm"}})]})})})]})}function D2({triggerIcon:e}){const[r,t]=z.useState(!1),[i,n]=z.useState(""),[o,a]=z.useState(null),[s,f]=z.useState([]),[d,c]=z.useState([]),[l,u]=z.useState(!1),[h,v]=z.useState(!1),[g,p]=z.useState(!1),[y,m]=z.useState(null);Nn.useFavoriteStore(F=>F.treeNodes);const{nodes:x,getPrntBkmkIdByMenuId:b,getNodeByMenuId:E,isMenuBookmarked:S,removeMenuByMenuId:w,addMenuToFolder:_,convertToAntTreeData:A}=Nn.useFavoriteStore(),R=Nn.useFavoriteStore(F=>F.rootIds),C=z.useMemo(()=>A(x,R,i,!0),[x,R,i]),O=Fe.useMenuViewStore(F=>F.activeMenuItem??{menuId:"",menuNm:""}),j=z.useMemo(()=>{if(!O?.menuId)return"";const F=E(O.menuId);if(!F)return"";if(F.fullPath)return F.fullPath;const $=N=>{const L=x[N];if(!L)return"";if(L.prntBkmkId==="-")return`${L.bkmkNm||O?.menuNm}`;const q=$(L.prntBkmkId);return q?`${q} > ${L.bkmkNm||O?.menuNm}`:L.bkmkNm||O?.menuNm};return console.log("bookmarkNode ::::: ",F),console.log($(F.bkmkId)),$(F.bkmkId)},[O?.menuId,E,x]);z.useEffect(()=>{r&&O?.menuId&&S(O.menuId)?c([b(O.menuId)]):r&&O?.menuId&&!S(O.menuId)?c(R):(c([]),f([]),m(null),p(!1))},[r,O?.menuId,S,b]),z.useEffect(()=>{if(!g||!O?.menuId)return;const F=b(O.menuId);!F||!x[F]||(n(""),f([F]),m(F))},[g,O?.menuId,x,b]);const k=(F,$)=>{_(F,$).then(N=>{console.log("AddMenuToFolder ::::: ",N),N||c(L=>L.includes(F)?L:[...L,F])})},I=F=>{w(F)},B=async F=>{O?.menuId&&(await w(O.menuId),await _(F,O),p(!1),m(null),c($=>$.includes(F)?$:[...$,F]))},V=()=>P.jsxRuntimeExports.jsxs("div",{style:{width:360},children:[P.jsxRuntimeExports.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:P.jsxRuntimeExports.jsxs(X.Space,{direction:"vertical",style:{width:"100%"},children:[P.jsxRuntimeExports.jsxs(X.Typography.Text,{strong:!0,style:{fontSize:18},children:[P.jsxRuntimeExports.jsx(X.Button,{type:"text",icon:P.jsxRuntimeExports.jsx(Ce.ArrowLeftOutlined,{}),onClick:()=>p(!1),style:{marginRight:4}}),"폴더 변경"]}),O&&P.jsxRuntimeExports.jsxs(X.Typography.Text,{type:"secondary",children:["현재 화면: ",P.jsxRuntimeExports.jsx("b",{children:O.menuNm})," ",P.jsxRuntimeExports.jsxs("span",{style:{opacity:.7},children:["(",O.menuId,")"]})]})]})}),W(),P.jsxRuntimeExports.jsxs("div",{style:{padding:12,borderTop:"1px solid #f0f0f0",display:"flex",justifyContent:"flex-end",gap:8},children:[P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>{p(!1),m(null)},children:"취소"}),P.jsxRuntimeExports.jsx(X.Button,{type:"primary",disabled:!y,onClick:()=>y&&B(String(y)),children:"이동"})]})]}),W=()=>P.jsxRuntimeExports.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:8},children:[P.jsxRuntimeExports.jsxs(X.Space,{style:{width:"100%",marginBottom:8,display:"flex",justifyContent:"space-between"},children:[P.jsxRuntimeExports.jsx(X.Input,{placeholder:"검색(폴더명)",prefix:P.jsxRuntimeExports.jsx(Ce.SearchOutlined,{}),allowClear:!0,value:i,onChange:F=>n(F.target.value),style:{width:"260px",height:28}}),P.jsxRuntimeExports.jsxs(X.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#6f6f6f",defaultHoverBorderColor:"#6f6f6f"}}},children:[P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.PlusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>{const F=Object.values(x).filter($=>$.type==="F").map($=>$.bkmkId);c(F)},title:"모두 확장"}),P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.MinusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>c([]),title:"모두 축소"})]})]}),C.length===0?P.jsxRuntimeExports.jsx(X.Empty,{description:P.jsxRuntimeExports.jsxs(X.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",P.jsxRuntimeExports.jsx("br",{}),"새로운 폴더를 만들어 시작해보세요."]}),image:X.Empty.PRESENTED_IMAGE_SIMPLE}):P.jsxRuntimeExports.jsx(X.Tree,{blockNode:!0,showLine:!0,treeData:C,selectedKeys:s,expandedKeys:d,onExpand:c,onSelect:F=>{f(F),m(F[0])},autoExpandParent:!0,titleRender:F=>{const $=String(F.key),N=o===$;return P.jsxRuntimeExports.jsxs("div",{onMouseEnter:()=>a($),onMouseLeave:()=>a(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[P.jsxRuntimeExports.jsx("div",{children:F.title}),!S(O?.menuId)&&O&&N&&P.jsxRuntimeExports.jsx(X.Button,{size:"small",type:"link",onClick:L=>{L.stopPropagation(),k($,O)},children:"+ 현재화면 추가"})]})}})]});return P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsx(X.Popover,{open:r&&!l,onOpenChange:t,trigger:"click",placement:"bottomLeft",styles:{body:{padding:0,borderRadius:12,border:"1px solid #e8edf5",boxShadow:"0 12px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08)",background:"#fcfcff",zIndex:1e3}},content:g?V():P.jsxRuntimeExports.jsxs("div",{style:{width:360},children:[P.jsxRuntimeExports.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:P.jsxRuntimeExports.jsxs(X.Space,{direction:"vertical",style:{width:"100%"},children:[P.jsxRuntimeExports.jsxs(X.Typography.Text,{strong:!0,style:{fontSize:18},children:["📌 북마크"," ",S(O?.menuId)?"저장됨":"추가"]}),O&&P.jsxRuntimeExports.jsxs(X.Typography.Text,{type:"secondary",children:["현재 화면: ",P.jsxRuntimeExports.jsx("b",{children:O.menuNm})," ",P.jsxRuntimeExports.jsxs("span",{style:{opacity:.7},children:["(",O.menuId,")"]})]})]})}),S(O?.menuId)?P.jsxRuntimeExports.jsxs("div",{style:{padding:12,margin:8,borderRadius:8,backgroundColor:"#f5f5f5"},children:[P.jsxRuntimeExports.jsx(X.Typography.Text,{type:"secondary",style:{fontSize:12},children:"저장 위치"}),P.jsxRuntimeExports.jsx("div",{style:{marginTop:4},children:`📁 > ${j}`||"알 수 없음"})]}):W(),P.jsxRuntimeExports.jsxs(jr,{style:{padding:8,borderTop:"1px solid #f0f0f0"},layoutAlign:"right",children:[O&&!S(O.menuId)?P.jsxRuntimeExports.jsx(X.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},type:"primary",icon:P.jsxRuntimeExports.jsx(Ce.PlusOutlined,{}),onClick:()=>{const F=String(s[0]);let $="-";F&&x[F]&&($=x[F].type=="M"?x[F].prntBkmkId:F),k($,O)},children:"추가"}):P.jsxRuntimeExports.jsxs(jr,{layoutAlign:"between",children:[P.jsxRuntimeExports.jsx(X.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:P.jsxRuntimeExports.jsx(Ce.FolderOpenOutlined,{}),onClick:()=>p(!0),children:"폴더 변경"}),P.jsxRuntimeExports.jsx(X.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},color:"danger",variant:"solid",icon:P.jsxRuntimeExports.jsx(Ce.MinusOutlined,{}),onClick:()=>I(O.menuId),children:"삭제"})]}),P.jsxRuntimeExports.jsx(X.Button,{type:"text",style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:P.jsxRuntimeExports.jsx(Ce.SettingOutlined,{}),onClick:()=>{v(r),u(!0)},children:"관리"})]})]}),children:P.jsxRuntimeExports.jsx("span",{style:{cursor:"pointer",display:"inline-flex",alignItems:"center"},children:e})}),P.jsxRuntimeExports.jsx($2,{open:l,onClose:()=>{u(!1),h&&t(!0)}})]})}const B2=({reqRows:e,subRows:r})=>{const{searchBoxRef:t}=Xi.useSearchBox();return P.jsxRuntimeExports.jsx(Ji,{ref:t,reqRows:e,subRows:r})},q2=({children:e,searchBox:r,title:t,preRenderEvents:i=[],postRenderEvents:n=[],loading:o=!1,error:a=null,grantEvent:s={},customEvent:f={}})=>{const d=Xi.useServiceCodeValue("AUTH_BTNS"),{user:c,isLoggedIn:l}=Fe.useUserStore(),{activeMenuItem:u}=Fe.useMenuViewStore(),{loadFavoritesIfNeeded:h,isMenuBookmarked:v,addMenuToFolder:g}=Nn.useFavoriteStore(),{loading:p}=Fe.useLoadingStore(),[y,m]=z.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),[x,b]=z.useState(null),[E,S]=z.useState([]),[w,_]=z.useState([]),[A,R]=z.useState(!1),C=async()=>{if(i.length===0){m(F=>({...F,preRenderComplete:!0}));return}try{for(const F of i)await F();m(F=>({...F,preRenderComplete:!0}))}catch(F){m($=>({...$,error:F instanceof Error?F.message:"사전 렌더링 실패",preRenderComplete:!0}))}},O=async()=>{if(n.length===0){m(F=>({...F,postRenderComplete:!0}));return}try{for(const F of n)await F();m(F=>({...F,postRenderComplete:!0}))}catch(F){m($=>({...$,error:F instanceof Error?F.message:"사후 렌더링 실패",postRenderComplete:!0}))}};z.useEffect(()=>{if(y.isInitialized)return;(async()=>{try{try{console.log("SCMSIGN00202 권한 서비스 호출 시작");const $=await Fe.callService(d,{crprCd:c?.crprCd,userId:c?.userId,menuId:u?.menuId});if(console.log("SCMSIGN00202 권한 서비스 응답:",$),$?.data&&$.data.length>0){const N=$.data?.filter(q=>q.grpId?.toUpperCase()==="DEFAULT").map(q=>({id:q.btnId,label:q.btnNm,type:"default",disabled:!1,onClick:s[q.btnId]||void 0}))||[];S(N);const L=$.data?.filter(q=>q.grpId?.toUpperCase()==="CUSTOM").map(q=>({id:q.btnId,label:q.btnNm,type:"default",disabled:!1,onClick:f[q.btnId]||void 0}))||[];_(L)}else S([]),_([])}catch($){console.error("SCMSIGN00202 권한 서비스 호출 실패:",$),S([]),_([])}await C(),m($=>({...$,isInitialized:!0,loading:!1}))}catch($){console.error("BwgView 초기화 실패:",$),m(N=>({...N,isInitialized:!0,loading:!1}))}})()},[]),z.useEffect(()=>{c?.userId&&h(c.userId)},[h,c?.userId]),z.useEffect(()=>{y.isInitialized&&y.preRenderComplete&&!y.isReady&&setTimeout(async()=>{await O(),m($=>({...$,isReady:!0}))},100)},[y.isInitialized,y.preRenderComplete,y.isReady]),z.useEffect(()=>{a&&m(F=>({...F,error:a}))},[a]);const j=()=>P.jsxRuntimeExports.jsxs("div",{className:"bwgview-header-container",children:[P.jsxRuntimeExports.jsxs("div",{className:"bwgview-header",children:[P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:W.LEFT}),P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:W.RIGHT})]}),r&&P.jsxRuntimeExports.jsx(B2,{reqRows:r.reqRows,subRows:r.subRows})]});if(z.useEffect(()=>{},[c,u]),y.error||a)return P.jsxRuntimeExports.jsx("div",{style:{padding:"24px"},children:P.jsxRuntimeExports.jsx(X.Alert,{message:"오류 발생",description:y.error||a,type:"error",showIcon:!0})});const k=()=>P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:P.jsxRuntimeExports.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"})}),I=()=>P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:P.jsxRuntimeExports.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"})}),B=F=>P.jsxRuntimeExports.jsx(Ce,{component:k,...F}),V=F=>P.jsxRuntimeExports.jsx(Ce,{component:I,...F}),W={LEFT:P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:P.jsxRuntimeExports.jsxs(X.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[P.jsxRuntimeExports.jsxs(X.Space,{children:[u&&P.jsxRuntimeExports.jsx(D2,{triggerIcon:v(u.menuId)?P.jsxRuntimeExports.jsx(B,{className:"bookmark-icon",style:{color:"#faad14"}}):P.jsxRuntimeExports.jsx(V,{className:"bookmark-icon"})}),P.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{alignItems:"center"},children:[P.jsxRuntimeExports.jsx("span",{className:"pageMenuNm",children:(()=>{console.log("activeMenUItem::::: ",u);let F="";return t?.useMenuTitle&&u?F=u.menuNm:t?.text?F=t.text:u&&(F=u.menuPrntId==="CM00"?u.menuNm.substring(u.menuNm.indexOf(" ")+1):u.menuNm),t?.prefix&&(F=`${t.prefix} ${F}`),t?.suffix&&(F=`${F} ${t.suffix}`),F})()}),u?.menuNo&&P.jsxRuntimeExports.jsx(X.Tag,{className:"page-num-tag",children:u?.menuNo}),P.jsxRuntimeExports.jsx(X.Tooltip,{title:"도움말",color:"geekblue",children:P.jsxRuntimeExports.jsx(X.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:P.jsxRuntimeExports.jsx("span",{className:"bwgHelpIcon",style:{color:"orange"}})})}),P.jsxRuntimeExports.jsx(X.Tooltip,{title:"문의 및 신고",color:"geekblue",children:P.jsxRuntimeExports.jsx(X.Button,{variant:"text",type:"text",onClick:()=>R(!0),icon:P.jsxRuntimeExports.jsx(Ce.BugFilled,{style:{color:"#1890ff"}})})})]})]}),u?.scrnId&&Fe.isLocal&&P.jsxRuntimeExports.jsx(X.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:P.jsxRuntimeExports.jsx(I2,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:u?.scrnId})})]})}),RIGHT:P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:P.jsxRuntimeExports.jsxs(X.Space,{children:[P.jsxRuntimeExports.jsx(X.Flex,{gap:8}),P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:P.jsxRuntimeExports.jsx(X.Divider,{type:"vertical"})}),P.jsxRuntimeExports.jsx(X.Flex,{gap:8,className:"permission-buttons",children:P.jsxRuntimeExports.jsx(X.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})})]})})})};return P.jsxRuntimeExports.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[j(),P.jsxRuntimeExports.jsxs("div",{className:"bwgview-content",children:[P.jsxRuntimeExports.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(y.loading||o||p)&&P.jsxRuntimeExports.jsx(qv.LoadingOverlay,{text:p?"처리 중...":"화면 로드 중..."})]}),P.jsxRuntimeExports.jsx(F2,{open:A,onClose:()=>R(!1)})]})},V2=({children:e,customTheme:r,customComponentSize:t="middle"})=>{const i={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:X.theme.defaultAlgorithm},n={...i,...r,token:{...i.token,...r?.token}};return P.jsxRuntimeExports.jsx(X.ConfigProvider,{locale:oh,theme:n,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:e})},z2="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",H2="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",U2="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",W2=({children:e})=>{const[r,t]=z.useState({x:0,y:0}),[i,n]=z.useState(!1),[o,a]=z.useState({x:0,y:0}),[s,f]=z.useState(!1),[d,c]=z.useState(!0),l=z.useRef(null),u=[{id:"overtime",title:"시간 외 근무신청",icon:P.jsxRuntimeExports.jsx("img",{src:z2,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:P.jsxRuntimeExports.jsx("img",{src:H2,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:P.jsxRuntimeExports.jsx("img",{src:U2,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:P.jsxRuntimeExports.jsx(Ce.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:P.jsxRuntimeExports.jsx(Ce.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:P.jsxRuntimeExports.jsx(Ce.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];z.useEffect(()=>{const m=()=>{const x=window.innerHeight,E=Math.max(64,(x-300)/3);t({x:0,y:E});const S=x/2;c(E<S)};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]);const h=m=>{if(m.preventDefault(),m.stopPropagation(),l.current){const x=l.current.getBoundingClientRect();a({x:m.clientX-x.left,y:m.clientY-x.top}),n(!0)}},v=m=>{if(i){const x=m.clientY-o.y,b=window.innerHeight-24,S=Math.max(64,Math.min(b,x));t({x:r.x,y:S});const w=window.innerHeight/2;c(S<w)}},g=()=>{n(!1)},p=()=>{f(!s)},y=m=>{m.onClick&&m.onClick()};return z.useEffect(()=>{if(i)return document.addEventListener("mousemove",v),document.addEventListener("mouseup",g),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",g)}},[i,o]),P.jsxRuntimeExports.jsxs("div",{className:"quick-tab-container",ref:l,style:{position:"fixed",right:0,top:r.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[P.jsxRuntimeExports.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 - ${r.y+12}px)`:`${r.y-12}px`,transform:s?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:d&&r.y<100?"32px":"0",marginBottom:!d&&r.y>window.innerHeight-100?"8px":"0"},children:[P.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:d?`calc(100vh - ${r.y+120}px)`:`${r.y-60}px`,padding:"14px 0"},children:u.map(m=>P.jsxRuntimeExports.jsx(X.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:()=>y(m),onMouseEnter:x=>{},onMouseLeave:x=>{},children:P.jsxRuntimeExports.jsxs("div",{className:"quick-tab-item-inner",children:[P.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:m.color,marginBottom:"5px"},children:m.icon}),P.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-title",children:m.title})]})},m.id))}),P.jsxRuntimeExports.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:m=>{},onMouseLeave:m=>{},children:P.jsxRuntimeExports.jsx(Ce.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),P.jsxRuntimeExports.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:i?"grabbing":"grab",zIndex:1001},onMouseDown:h}),P.jsxRuntimeExports.jsx(X.Button,{className:`quick-tab-toggle-btn ${s?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:p})]})},K2=()=>{const{verifyWithToken:e}=zv.useAuth(),r=yu.useNavigate(),t=yu.useLocation();return z.useEffect(()=>{const n=new URLSearchParams(t.search).get("token");if(!n){r("/login",{replace:!0});return}(async()=>{const o=await e(n);r(o?"/main":"/login",{replace:!0})})()},[t.search]),P.jsxRuntimeExports.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:P.jsxRuntimeExports.jsx(X.Spin,{tip:"인증중..."})})};exports.BwgButtonGroup=Hv;exports.BwgCmptArea=Uv;exports.BwgCol=Wv;exports.BwgConfigProvider=Dl;exports.BwgDetail=im;exports.BwgDrawer=om;exports.BwgEditor=Us;exports.BwgGrid=mh;exports.BwgInfoArea=Dg;exports.BwgPopup=qg;exports.BwgRow=Vg;exports.BwgTable=zg;exports.BwgTabs=Hg;exports.BwgTitleBox=Qi;exports.BwgView=q2;exports.ContentBox=Cr;exports.ContentLayOut=jr;exports.GlobalConfigProvider=V2;exports.QuickServiceToggle=W2;exports.SSOHandler=K2;exports.SearchBox=Ji;exports.createBwgGridRenderer=$g;
|
|
236
|
-
//# sourceMappingURL=SSOHandler-
|
|
235
|
+
`]:Object.assign(Object.assign({},Cp(e)),{marginInlineStart:e.marginXXS})}),i2(e)),o2(e)),a2()),{"&-rtl":{direction:"rtl"}})}},l2=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Nv=ei("Typography",s2,l2),u2=e=>{const{prefixCls:r,"aria-label":t,className:i,style:n,direction:o,maxLength:a,autoSize:s=!0,value:f,onSave:d,onCancel:c,onEnd:l,component:u,enterIcon:h=M.createElement(gv,null)}=e,v=M.useRef(null),g=M.useRef(!1),p=M.useRef(null),[y,m]=M.useState(f);M.useEffect(()=>{m(f)},[f]),M.useEffect(()=>{var k;if(!((k=v.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:I}=v.current.resizableTextArea;I.focus();const{length:B}=I.value;I.setSelectionRange(B,B)}},[]);const x=({target:k})=>{m(k.value.replace(/[\n\r]/g,""))},b=()=>{g.current=!0},E=()=>{g.current=!1},S=({keyCode:k})=>{g.current||(p.current=k)},w=()=>{d(y.trim())},_=({keyCode:k,ctrlKey:I,altKey:B,metaKey:V,shiftKey:W})=>{p.current!==k||g.current||I||B||V||W||(k===Bd.ENTER?(w(),l?.()):k===Bd.ESC&&c())},A=()=>{w()},[R,C,O]=Nv(r),j=ye(r,`${r}-edit-content`,{[`${r}-rtl`]:o==="rtl",[`${r}-${u}`]:!!u},i,C,O);return R(M.createElement("div",{className:j,style:n},M.createElement(Jw,{ref:v,maxLength:a,value:y,onChange:x,onKeyDown:S,onKeyUp:_,onCompositionStart:b,onCompositionEnd:E,onBlur:A,"aria-label":t,rows:1,autoSize:s}),h!==null?lv(h,{className:`${r}-edit-content-confirm`}):null))};var Fs,Kd;function c2(){return Kd||(Kd=1,Fs=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var r=document.activeElement,t=[],i=0;i<e.rangeCount;i++)t.push(e.getRangeAt(i));switch(r.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":r.blur();break;default:r=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||t.forEach(function(n){e.addRange(n)}),r&&r.focus()}}),Fs}var $s,Gd;function f2(){if(Gd)return $s;Gd=1;var e=c2(),r={"text/plain":"Text","text/html":"Url",default:"Text"},t="Copy to clipboard: #{key}, Enter";function i(o){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,a)}function n(o,a){var s,f,d,c,l,u,h=!1;a||(a={}),s=a.debug||!1;try{d=e(),c=document.createRange(),l=document.getSelection(),u=document.createElement("span"),u.textContent=o,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(g){if(g.stopPropagation(),a.format)if(g.preventDefault(),typeof g.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=r[a.format]||r.default;window.clipboardData.setData(p,o)}else g.clipboardData.clearData(),g.clipboardData.setData(a.format,o);a.onCopy&&(g.preventDefault(),a.onCopy(g.clipboardData))}),document.body.appendChild(u),c.selectNodeContents(u),l.addRange(c);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");h=!0}catch(g){s&&console.error("unable to copy using execCommand: ",g),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",o),a.onCopy&&a.onCopy(window.clipboardData),h=!0}catch(p){s&&console.error("unable to copy using clipboardData: ",p),s&&console.error("falling back to prompt"),f=i("message"in a?a.message:t),window.prompt(f,o)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(c):l.removeAllRanges()),u&&document.body.removeChild(u),d()}return h}return $s=n,$s}var d2=f2();const h2=Fe.getDefaultExportFromCjs(d2),p2=(e,r=!1)=>r&&e==null?[]:Array.isArray(e)?e:[e];var v2=function(e,r,t,i){function n(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(c){try{d(i.next(c))}catch(l){a(l)}}function f(c){try{d(i.throw(c))}catch(l){a(l)}}function d(c){c.done?o(c.value):n(c.value).then(s,f)}d((i=i.apply(e,r||[])).next())})};const m2=({copyConfig:e,children:r})=>{const[t,i]=M.useState(!1),[n,o]=M.useState(!1),a=M.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},f={};e.format&&(f.format=e.format),M.useEffect(()=>s,[]);const d=mt(c=>v2(void 0,void 0,void 0,function*(){var l;c?.preventDefault(),c?.stopPropagation(),o(!0);try{const u=typeof e.text=="function"?yield e.text():e.text;h2(u||p2(r,!0).join("")||"",f),o(!1),i(!0),s(),a.current=setTimeout(()=>{i(!1)},3e3),(l=e.onCopy)===null||l===void 0||l.call(e,c)}catch(u){throw o(!1),u}}));return{copied:t,copyLoading:n,onClick:d}};function Ds(e,r){return M.useMemo(()=>{const t=!!e;return[t,Object.assign(Object.assign({},r),t&&typeof e=="object"?e:null)]},[e])}const g2=e=>{const r=z.useRef(void 0);return z.useEffect(()=>{r.current=e}),r.current},y2=(e,r,t)=>z.useMemo(()=>e===!0?{title:r??t}:z.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:r??t},e):{title:e},[e,r,t]);var b2=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const Iv=M.forwardRef((e,r)=>{const{prefixCls:t,component:i="article",className:n,rootClassName:o,setContentRef:a,children:s,direction:f,style:d}=e,c=b2(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:l,direction:u,className:h,style:v}=fo("typography"),g=f??u,p=a?Zn(r,a):r,y=l("typography",t);process.env.NODE_ENV!=="production"&&Kt("Typography").deprecated(!a,"setContentRef","ref");const[m,x,b]=Nv(y),E=ye(y,h,{[`${y}-rtl`]:g==="rtl"},n,o,x,b),S=Object.assign(Object.assign({},v),d);return m(M.createElement(i,Object.assign({className:E,style:S,ref:p},c),s))});process.env.NODE_ENV!=="production"&&(Iv.displayName="Typography");var x2={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"},E2=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:x2}))},Mv=M.forwardRef(E2);process.env.NODE_ENV!=="production"&&(Mv.displayName="CheckOutlined");var w2={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"},S2=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:w2}))},Lv=M.forwardRef(S2);process.env.NODE_ENV!=="production"&&(Lv.displayName="CopyOutlined");var _2={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"},C2=function(r,t){return M.createElement(ir,Ve({},r,{ref:t,icon:_2}))},Fv=M.forwardRef(C2);process.env.NODE_ENV!=="production"&&(Fv.displayName="LoadingOutlined");function Yd(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Bs(e,r,t){return e===!0||e===void 0?r:e||t&&r}function O2(e){const r=document.createElement("em");e.appendChild(r),process.env.NODE_ENV!=="production"&&(r.className="ant-typography-css-ellipsis-content-measure");const t=e.getBoundingClientRect(),i=r.getBoundingClientRect();return e.removeChild(r),t.left>i.left||i.right>t.right||t.top>i.top||i.bottom>t.bottom}const vu=e=>["string","number"].includes(typeof e),R2=({prefixCls:e,copied:r,locale:t,iconOnly:i,tooltips:n,icon:o,tabIndex:a,onCopy:s,loading:f})=>{const d=Yd(n),c=Yd(o),{copied:l,copy:u}=t??{},h=r?l:u,v=Bs(d[r?1:0],h),g=typeof v=="string"?v:h;return M.createElement(oi,{title:v,getPopupContainer:p=>p.parentNode},M.createElement("button",{type:"button",className:ye(`${e}-copy`,{[`${e}-copy-success`]:r,[`${e}-copy-icon-only`]:i}),onClick:s,"aria-label":g,tabIndex:a},r?Bs(c[1],M.createElement(Mv,null),!0):Bs(c[0],f?M.createElement(Fv,null):M.createElement(Lv,null),!0)))},Ai=M.forwardRef(({style:e,children:r},t)=>{const i=M.useRef(null);return M.useImperativeHandle(t,()=>({isExceed:()=>{const n=i.current;return n.scrollHeight>n.clientHeight},getHeight:()=>i.current.clientHeight})),M.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},r)}),j2=e=>e.reduce((r,t)=>r+(vu(t)?String(t).length:1),0);function Xd(e,r){let t=0;const i=[];for(let n=0;n<e.length;n+=1){if(t===r)return i;const o=e[n],s=vu(o)?String(o).length:1,f=t+s;if(f>r){const d=r-t;return i.push(String(o).slice(0,d)),i}i.push(o),t=f}return e}const qs=0,Vs=1,zs=2,Hs=3,Zd=4,Ti={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function A2(e){const{enableMeasure:r,width:t,text:i,children:n,rows:o,expanded:a,miscDeps:s,onEllipsis:f}=e,d=M.useMemo(()=>Xr(i),[i]),c=M.useMemo(()=>j2(d),[i]),l=M.useMemo(()=>n(d,!1),[i]),[u,h]=M.useState(null),v=M.useRef(null),g=M.useRef(null),p=M.useRef(null),y=M.useRef(null),m=M.useRef(null),[x,b]=M.useState(!1),[E,S]=M.useState(qs),[w,_]=M.useState(0),[A,R]=M.useState(null);Ge(()=>{S(r&&t&&c?Vs:qs)},[t,i,o,r,d]),Ge(()=>{var k,I,B,V;if(E===Vs){S(zs);const W=g.current&&getComputedStyle(g.current).whiteSpace;R(W)}else if(E===zs){const W=!!(!((k=p.current)===null||k===void 0)&&k.isExceed());S(W?Hs:Zd),h(W?[0,c]:null),b(W);const L=((I=p.current)===null||I===void 0?void 0:I.getHeight())||0,$=o===1?0:((B=y.current)===null||B===void 0?void 0:B.getHeight())||0,N=((V=m.current)===null||V===void 0?void 0:V.getHeight())||0,F=Math.max(L,$+N);_(F+1),f(W)}},[E]);const C=u?Math.ceil((u[0]+u[1])/2):0;Ge(()=>{var k;const[I,B]=u||[0,0];if(I!==B){const W=(((k=v.current)===null||k===void 0?void 0:k.getHeight())||0)>w;let L=C;B-I===1&&(L=W?I:B),h(W?[I,L]:[L,B])}},[u,C]);const O=M.useMemo(()=>{if(!r)return n(d,!1);if(E!==Hs||!u||u[0]!==u[1]){const k=n(d,!1);return[Zd,qs].includes(E)?k:M.createElement("span",{style:Object.assign(Object.assign({},Ti),{WebkitLineClamp:o})},k)}return n(a?d:Xd(d,u[0]),x)},[a,E,u,d].concat(ge(s))),j={width:t,margin:0,padding:0,whiteSpace:A==="nowrap"?"normal":"inherit"};return M.createElement(M.Fragment,null,O,E===zs&&M.createElement(M.Fragment,null,M.createElement(Ai,{style:Object.assign(Object.assign(Object.assign({},j),Ti),{WebkitLineClamp:o}),ref:p},l),M.createElement(Ai,{style:Object.assign(Object.assign(Object.assign({},j),Ti),{WebkitLineClamp:o-1}),ref:y},l),M.createElement(Ai,{style:Object.assign(Object.assign(Object.assign({},j),Ti),{WebkitLineClamp:1}),ref:m},n([],!0))),E===Hs&&u&&u[0]!==u[1]&&M.createElement(Ai,{style:Object.assign(Object.assign({},j),{top:400}),ref:v},n(Xd(d,C),!0)),E===Vs&&M.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const $v=({enableEllipsis:e,isEllipsis:r,children:t,tooltipProps:i})=>!i?.title||!e?t:M.createElement(oi,Object.assign({open:r?void 0:!1},i),t);process.env.NODE_ENV!=="production"&&($v.displayName="EllipsisTooltip");var T2=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};function k2({mark:e,code:r,underline:t,delete:i,strong:n,keyboard:o,italic:a},s){let f=s;function d(c,l){l&&(f=M.createElement(c,{},f))}return d("strong",n),d("u",t),d("del",i),d("code",r),d("mark",e),d("kbd",o),d("i",a),f}const P2="...",Qd=["delete","mark","code","underline","strong","keyboard","italic"],N2=M.forwardRef((e,r)=>{var t;const{prefixCls:i,className:n,style:o,type:a,disabled:s,children:f,ellipsis:d,editable:c,copyable:l,component:u,title:h}=e,v=T2(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:p}=M.useContext(Gt),[y]=vb("Text"),m=M.useRef(null),x=M.useRef(null),b=g("typography",i),E=Hh(v,Qd),[S,w]=Ds(c),[_,A]=Ar(!1,{value:w.editing}),{triggerType:R=["icon"]}=w,C=me=>{var xe;me&&((xe=w.onStart)===null||xe===void 0||xe.call(w)),A(me)},O=g2(_);Ge(()=>{var me;!_&&O&&((me=x.current)===null||me===void 0||me.focus())},[_]);const j=me=>{me?.preventDefault(),C(!0)},k=me=>{var xe;(xe=w.onChange)===null||xe===void 0||xe.call(w,me),C(!1)},I=()=>{var me;(me=w.onCancel)===null||me===void 0||me.call(w),C(!1)},[B,V]=Ds(l),{copied:W,copyLoading:L,onClick:$}=m2({copyConfig:V,children:f}),[N,F]=M.useState(!1),[q,K]=M.useState(!1),[G,T]=M.useState(!1),[D,H]=M.useState(!1),[U,Y]=M.useState(!0),[ee,ie]=Ds(d,{expandable:!1,symbol:me=>me?y?.collapse:y?.expand}),[oe,re]=Ar(ie.defaultExpanded||!1,{value:ie.expanded}),ue=ee&&(!oe||ie.expandable==="collapsible"),{rows:ce=1}=ie,he=M.useMemo(()=>ue&&(ie.suffix!==void 0||ie.onEllipsis||ie.expandable||S||B),[ue,ie,S,B]);Ge(()=>{ee&&!he&&(F(Df("webkitLineClamp")),K(Df("textOverflow")))},[he,ee]);const[Q,J]=M.useState(ue),le=M.useMemo(()=>he?!1:ce===1?q:N,[he,q,N]);Ge(()=>{J(le&&ue)},[le,ue]);const se=ue&&(Q?D:G),ne=ue&&ce===1&&Q,de=ue&&ce>1&&Q,ae=(me,xe)=>{var Ze;re(xe.expanded),(Ze=ie.onExpand)===null||Ze===void 0||Ze.call(ie,me,xe)},[pe,_e]=M.useState(0),Me=({offsetWidth:me})=>{_e(me)},be=me=>{var xe;T(me),G!==me&&((xe=ie.onEllipsis)===null||xe===void 0||xe.call(ie,me))};M.useEffect(()=>{const me=m.current;if(ee&&Q&&me){const xe=O2(me);D!==xe&&H(xe)}},[ee,Q,f,de,U,pe]),M.useEffect(()=>{const me=m.current;if(typeof IntersectionObserver>"u"||!me||!Q||!ue)return;const xe=new IntersectionObserver(()=>{Y(!!me.offsetParent)});return xe.observe(me),()=>{xe.disconnect()}},[Q,ue]);const qe=y2(ie.tooltip,w.text,f),Oe=M.useMemo(()=>{if(!(!ee||Q))return[w.text,f,h,qe.title].find(vu)},[ee,Q,h,qe.title,se]);if(_)return M.createElement(u2,{value:(t=w.text)!==null&&t!==void 0?t:typeof f=="string"?f:"",onSave:k,onCancel:I,onEnd:w.onEnd,prefixCls:b,className:n,style:o,direction:p,component:u,maxLength:w.maxLength,autoSize:w.autoSize,enterIcon:w.enterIcon});const je=()=>{const{expandable:me,symbol:xe}=ie;return me?M.createElement("button",{type:"button",key:"expand",className:`${b}-${oe?"collapse":"expand"}`,onClick:Ze=>ae(Ze,{expanded:!oe}),"aria-label":oe?y.collapse:y?.expand},typeof xe=="function"?xe(oe):xe):null},ke=()=>{if(!S)return;const{icon:me,tooltip:xe,tabIndex:Ze}=w,Yt=Xr(xe)[0]||y?.edit,yr=typeof Yt=="string"?Yt:"";return R.includes("icon")?M.createElement(oi,{key:"edit",title:xe===!1?"":Yt},M.createElement("button",{type:"button",ref:x,className:`${b}-edit`,onClick:j,"aria-label":yr,tabIndex:Ze},me||M.createElement(Nh,{role:"button"}))):null},Te=()=>B?M.createElement(R2,Object.assign({key:"copy"},V,{prefixCls:b,copied:W,locale:y,onCopy:$,loading:L,iconOnly:f==null})):null,Se=me=>[me&&je(),ke(),Te()],ze=me=>[me&&!oe&&M.createElement("span",{"aria-hidden":!0,key:"ellipsis"},P2),ie.suffix,Se(me)];return M.createElement(ln,{onResize:Me,disabled:!ue},me=>M.createElement($v,{tooltipProps:qe,enableEllipsis:ue,isEllipsis:se},M.createElement(Iv,Object.assign({className:ye({[`${b}-${a}`]:a,[`${b}-disabled`]:s,[`${b}-ellipsis`]:ee,[`${b}-ellipsis-single-line`]:ne,[`${b}-ellipsis-multiple-line`]:de},n),prefixCls:i,style:Object.assign(Object.assign({},o),{WebkitLineClamp:de?ce:void 0}),component:u,ref:Zn(me,m,r),direction:p,onClick:R.includes("text")?j:void 0,"aria-label":Oe?.toString(),title:h},E),M.createElement(A2,{enableMeasure:ue&&!Q,text:f,rows:ce,width:pe,onEllipsis:be,expanded:oe,miscDeps:[W,oe,L,S,B,y].concat(ge(Qd.map(xe=>e[xe])))},(xe,Ze)=>k2(e,M.createElement(M.Fragment,null,xe.length>0&&Ze&&!oe&&Oe?M.createElement("span",{key:"show-content","aria-hidden":!0},xe):xe,ze(Ze)))))))}),I2=M.forwardRef((e,r)=>M.createElement(N2,Object.assign({ref:r},e,{component:"div"}))),Jd=(e,r)=>{const t=window.innerWidth,i=window.innerHeight,n=Math.min(Math.max(e.x,0),Math.max(0,t-r.width)),o=Math.min(Math.max(e.y,0),Math.max(0,i-r.height));return{x:n,y:o}},M2=({title:e="팝업",width:r=800,height:t=600,minWidth:i=400,minHeight:n=300,onClose:o,children:a,footer:s,showMask:f=!0,maskStyle:d={backgroundColor:"rgba(0,0,0,0.3)"},buttons:c=[]})=>{const[l,u]=z.useState(r),[h,v]=z.useState(t),g=z.useRef(null),p=z.useMemo(()=>{const w=Math.max(0,(window.innerWidth-r)/2),_=Math.max(0,(window.innerHeight-t)/2);return{x:w,y:_}},[r,t]),[y,m]=z.useState(p),x=(w,_)=>{const A=Jd({x:_.x,y:_.y},{width:l,height:h});m(A)},b=(w,_,A,R,C)=>{const O={width:parseInt(A.style.width,10),height:parseInt(A.style.height,10)},j=Jd(C,O);u(O.width),v(O.height),m(j)},E=()=>g.current??document.body,S=[...c,{key:"CLOSE",text:"닫기",type:"default",danger:!1,disabled:!1,onClick:o}];return P.jsxRuntimeExports.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[f&&P.jsxRuntimeExports.jsx("div",{onClick:o,style:{position:"absolute",inset:0,...d,zIndex:0}}),P.jsxRuntimeExports.jsxs(eh.Rnd,{className:"bwg-draggable",size:{width:l,height:h},position:y,bounds:"window",minWidth:i,minHeight:n,onDragStop:x,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:[P.jsxRuntimeExports.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:P.jsxRuntimeExports.jsx(Dl,{getPopupContainer:E,children:P.jsxRuntimeExports.jsx(jr,{type:"vertical",children:P.jsxRuntimeExports.jsxs(X.Card,{className:"popup-drag-container",title:P.jsxRuntimeExports.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:e}),style:{width:"100%",height:"100%"},styles:{body:{height:s?"calc(100% - 120px)":"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:P.jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:8},children:S.map(w=>P.jsxRuntimeExports.jsx(X.Button,{type:w.type,danger:w.danger,disabled:w.disabled,className:"bwg-btn",onClick:w.onClick,children:w.text},w.key))}),children:[P.jsxRuntimeExports.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:a}),s&&P.jsxRuntimeExports.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,padding:"16px 20px",borderTop:"1px solid #f0f0f0",backgroundColor:"#fafafa",borderRadius:"0 0 8px 8px"},children:s})]})})})}),P.jsxRuntimeExports.jsx("div",{ref:g,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},{TextArea:L2}=X.Input,F2=({open:e,onClose:r})=>{const{searchBoxRef:t}=Xi.useSearchBox(),{user:i}=Fe.useUserStore(),{activeMenuItem:n}=Fe.useMenuViewStore(),[o]=X.Form.useForm(),[a,s]=z.useState(!1),[f,d]=z.useState(!1),[c,l]=z.useState("list"),[u,h]=z.useState(null),[v,g]=z.useState([]),p=z.useRef(null),[y,m]=z.useState([]),[x,b]=z.useState(""),[E,S]=z.useState(!1),[w,_]=z.useState(15),A=z.useRef(null),R=[{label:"문의",value:"INQR"},{label:"요청",value:"RQST"},{label:"신고",value:"RPRT"},{label:"건의",value:"SGSN"}],C=async()=>{s(!0);try{const T=[{id:1,type:"INQR",typeNm:"문의",title:"화면 오류 문의",content:"화면에서 데이터가 제대로 표시되지 않습니다.",status:"PENDING",statusNm:"대기",regDt:"2024-01-15 10:30:00",regUser:"홍길동",scrnId:n?.scrnId,processor:null,processDt:null,dueDate:"2024-01-20"},{id:2,type:"RPRT",typeNm:"신고",title:"시스템 버그 신고",content:"특정 조건에서 시스템이 멈춥니다.",status:"PROCESSING",statusNm:"처리중",regDt:"2024-01-14 14:20:00",regUser:"김철수",scrnId:n?.scrnId,processor:"이영희",processDt:"2024-01-16 09:15:00",dueDate:null},{id:3,type:"INQR",typeNm:"문의",title:"급한 문의사항",content:"시스템 접속이 안됩니다.",status:"PENDING",statusNm:"대기",regDt:"2024-01-18 15:30:00",regUser:"박민수",scrnId:n?.scrnId,processor:null,processDt:null,dueDate:"2024-01-19"},...Array.from({length:25},(D,H)=>({id:H+4,type:"INQR",typeNm:"문의",title:`테스트 문의 ${H+1}`,content:`테스트 내용 ${H+1}`,status:"PENDING",statusNm:"대기",regDt:`2024-01-${String(20+H).padStart(2,"0")} 10:00:00`,regUser:`사용자${H+1}`,scrnId:n?.scrnId,processor:null,processDt:null,dueDate:null}))];g(T),setTimeout(()=>{A.current&&A.current.addAllData(T)},100)}catch(T){console.error("문의 목록 조회 실패:",T),X.message.error("문의 목록을 불러오는데 실패했습니다.")}finally{s(!1)}},O=T=>{if(!T)return null;const D=new Date,H=new Date(T),U=new Date;Math.ceil((H.getTime()-U.getTime())/(1e3*60*60*24));const Y=Math.ceil((H.getTime()-D.getTime())/(1e3*60*60*24));return Y<=0?{percent:100,status:"exception"}:Y<=1?{percent:90,status:"exception"}:Y<=2?{percent:70,status:"active"}:Y<=3?{percent:50,status:"normal"}:{percent:30,status:"normal"}},j=[{fieldName:"type",width:80,visible:!1},{fieldName:"typeNm",header:{text:"구분"},width:80},{fieldName:"title",header:{text:"제목"},width:200},{fieldName:"content",header:{text:"내용"},width:200,visible:!1},{fieldName:"statusNm",header:{text:"상태"},width:80},{fieldName:"regUser",header:{text:"등록자"},width:100},{fieldName:"regDt",header:{text:"등록일시"},width:150},{fieldName:"dueDate",header:{text:"마감요청일"},width:100},{fieldName:"processor",header:{text:"처리담당자"},width:100},{fieldName:"processDt",header:{text:"처리일자"},width:120}],k={onCellDblClicked:(T,D)=>{const H=D.itemIndex??-1;if(H<0)return;const U=T.getValues(H);h(U),l("detail")}},I=async T=>{s(!0);try{o.validateFields().then(D=>{console.log("문의/신고 제출:",D),X.message.success(D.type==="INQUIRY"?"문의가 등록되었습니다.":"신고가 등록되었습니다."),o.resetFields(),l("list"),C()}).catch(D=>{console.error("문의/신고 제출 실패:",D)})}catch(D){console.error("문의/신고 제출 실패:",D),X.message.error("제출 중 오류가 발생했습니다.")}finally{s(!1)}},B=()=>{o.resetFields(),c==="new"?l("list"):r()},V=()=>{(c==="detail"||c==="new")&&l("list")},W=()=>{o.resetFields(),l("new")},L=()=>{console.log("댓글 수동 새로고침"),_(15)},$=()=>{if(!x.trim()){X.message.warning("댓글 상세내용 작성");return}b(""),setTimeout(()=>{p.current&&(p.current.scrollTop=p.current.scrollHeight)},100)},N=T=>{const D=y.find(H=>H.id===T);if(D&&D.regUserId!==i?.emplNo){X.message.error("본인이 작성한 댓글만 삭제할 수 있습니다.");return}};z.useEffect(()=>{e&&setTimeout(()=>{C()},100)},[e]),z.useEffect(()=>{c==="list"&&A.current&&v.length>0&&setTimeout(()=>{A.current&&A.current.addAllData(v)},50)},[c,v]);const F=()=>P.jsxRuntimeExports.jsxs(Cr,{border:!1,children:[P.jsxRuntimeExports.jsx(Ji,{border:!0,ref:t,reqRows:P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:[P.jsxRuntimeExports.jsx(X.Col,{span:6,children:P.jsxRuntimeExports.jsx(We.BwgSelect,{itemProps:{label:"등록구분",name:"type"},selectProps:{options:R}})}),P.jsxRuntimeExports.jsx(X.Col,{span:12,children:P.jsxRuntimeExports.jsx(We.BwgRangePicker,{itemProps:{label:"등록일자",name:"regDt"}})}),P.jsxRuntimeExports.jsx(X.Col,{span:6,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{name:"myArticle",label:"내 글만",children:P.jsxRuntimeExports.jsx(X.Switch,{})})})]}),P.jsxRuntimeExports.jsx(X.Row,{children:P.jsxRuntimeExports.jsx(X.Col,{span:24,children:P.jsxRuntimeExports.jsx(We.BwgInput,{itemProps:{label:"제목 및 내용",name:"keyword"}})})})]})}),P.jsxRuntimeExports.jsx(mh,{ref:A,gridColumns:j,gridEvents:k,gridOptions:{container:{page:!0,indicator:!0}}})]}),q=()=>{const T=u?.dueDate?O(u.dueDate):null;return P.jsxRuntimeExports.jsxs(X.Splitter,{children:[P.jsxRuntimeExports.jsx(X.Splitter.Panel,{defaultSize:"70%",min:"60%",max:"80%",style:{paddingRight:"15px",overflowX:"hidden",overflowY:"hidden"},children:P.jsxRuntimeExports.jsx(Cr,{children:P.jsxRuntimeExports.jsxs(X.Form,{form:o,onFinish:I,labelCol:{flex:"100px"},children:[P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgSelect,{itemProps:{name:"type",label:"구분"},selectProps:{options:R}})}),P.jsxRuntimeExports.jsx(X.Col,{span:16,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"화면 정보",name:void 0,children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"scrnId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"scrnNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})})]}),P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"작성자",name:void 0,children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{width:"100%"},children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"emplNo",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"emplNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})}),P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"작성일자",name:"regDt",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.DatePicker,{})})})]}),P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"마감요청일",name:"dueDate",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.DatePicker,{})})}),P.jsxRuntimeExports.jsx(X.Col,{span:8,children:T&&P.jsxRuntimeExports.jsxs(X.Flex,{vertical:!0,gap:2,children:[P.jsxRuntimeExports.jsx("span",{style:{fontSize:"12px",color:"#595959"},children:"진척률"}),P.jsxRuntimeExports.jsx(X.Progress,{percent:T.percent,status:T.status,size:"small",format:D=>`${D}%`})]})})]}),P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"처리담당자",name:void 0,help:"",children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"processor",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"processorNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})}),P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"처리일자",name:"processDt",children:P.jsxRuntimeExports.jsx(X.DatePicker,{})})})]}),P.jsxRuntimeExports.jsx(X.Row,{gutter:[16,8],children:P.jsxRuntimeExports.jsx(X.Col,{span:24,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.Input,{})})})}),P.jsxRuntimeExports.jsx(Us,{border:!1,itemProps:{name:"content"},editorProps:{isEditing:f,title:{title:P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsx(Ce.EditOutlined,{style:{marginRight:"5px"}})," 상세내용 작성"]}),children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.EyeFilled,{}),onClick:()=>d(!f),children:"미리보기"})}}})]})})}),P.jsxRuntimeExports.jsx(X.Splitter.Panel,{collapsible:!0,style:{paddingLeft:"15px"},children:P.jsxRuntimeExports.jsxs(Cr,{style:{flex:"0 0 400px",display:"flex",flexDirection:"column"},children:[P.jsxRuntimeExports.jsxs("div",{style:{borderBottom:"1px solid #e8e8e8",paddingBottom:"12px",marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[P.jsxRuntimeExports.jsx("span",{style:{fontSize:"14px",fontWeight:"600",color:"#262626"},children:"댓글"}),P.jsxRuntimeExports.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[P.jsxRuntimeExports.jsx(X.Button,{type:"text",icon:P.jsxRuntimeExports.jsx(Ce.ReloadOutlined,{spin:E}),onClick:L,disabled:E,size:"small",style:{fontSize:"12px",color:"#595959",height:"24px",padding:"0 8px"}}),P.jsxRuntimeExports.jsx("span",{style:{position:"absolute",top:"-4px",right:"-4px",fontSize:"10px",fontWeight:"700",color:E?"#8c8c8c":"#1890ff",minWidth:"14px",height:"14px",lineHeight:"14px",textAlign:"center",borderRadius:"50%",pointerEvents:"none"},children:w})]})]}),P.jsxRuntimeExports.jsx("div",{ref:p,style:{flex:1,overflowY:"auto",marginBottom:"16px",minHeight:0},children:P.jsxRuntimeExports.jsx(X.List,{dataSource:y,renderItem:D=>P.jsxRuntimeExports.jsxs(X.List.Item,{style:{position:"relative",paddingRight:"20px",padding:"12px 20px 12px 12px",borderBottom:"1px solid #f0f0f0"},children:[P.jsxRuntimeExports.jsx(X.List.Item.Meta,{avatar:P.jsxRuntimeExports.jsx(X.Avatar,{size:32,style:{backgroundColor:"#1890ff",fontSize:"13px"},children:D.author[0]}),title:P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"4px"},children:[P.jsxRuntimeExports.jsx("span",{style:{fontWeight:"500",fontSize:"13px",color:"#262626"},children:D.author}),P.jsxRuntimeExports.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:D.regDt})]}),description:P.jsxRuntimeExports.jsx("span",{style:{fontSize:"13px",color:"#595959",lineHeight:"1.5"},children:D.content})}),D.regUserId===i?.emplNo&&P.jsxRuntimeExports.jsx(X.Button,{type:"text",danger:!0,icon:P.jsxRuntimeExports.jsx(Ce.DeleteOutlined,{style:{fontSize:"12px"}}),size:"small",onClick:()=>N(D.id),style:{position:"absolute",right:"8px",top:"62%",transform:"translateY(-50%)",opacity:.5,height:"24px",width:"24px",padding:0},onMouseEnter:H=>{H.currentTarget.style.opacity="1"},onMouseLeave:H=>{H.currentTarget.style.opacity="0.5"}})]},D.id)})}),P.jsxRuntimeExports.jsxs("div",{style:{padding:"12px",borderTop:"1px solid #e8e8e8",backgroundColor:"#fafafa",flexShrink:0,marginTop:"auto"},children:[P.jsxRuntimeExports.jsx("div",{style:{marginBottom:"8px"},children:P.jsxRuntimeExports.jsx(L2,{rows:2,placeholder:"댓글을 입력하세요...",value:x,onChange:D=>b(D.target.value),maxLength:300,style:{borderRadius:"6px",border:"1px solid #d9d9d9",resize:"none",fontSize:"13px",backgroundColor:"#ffffff"},onFocus:D=>{D.target.style.borderColor="#1890ff",D.target.style.boxShadow="0 0 0 2px rgba(24, 144, 255, 0.05)"},onBlur:D=>{D.target.style.borderColor="#d9d9d9",D.target.style.boxShadow="none"}})}),P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[P.jsxRuntimeExports.jsxs("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:[x.length," / 300자"]}),P.jsxRuntimeExports.jsx(X.Button,{type:"primary",onClick:$,size:"small",style:{borderRadius:"4px",fontSize:"12px",height:"28px",padding:"0 16px",fontWeight:"500"},disabled:!x.trim(),children:"등록"})]})]})]})})]})},K=()=>P.jsxRuntimeExports.jsx(Cr,{children:P.jsxRuntimeExports.jsxs(We.BwgForm,{form:o,onFinish:I,initialValues:{type:"INQR"},labelCol:{flex:"100px"},children:[P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgSelect,{itemProps:{name:"type",label:"구분",rules:[{required:!0,message:"구분을 선택해주세요."}]},selectProps:{options:R}})}),P.jsxRuntimeExports.jsx(X.Col,{span:16,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"화면 정보",name:void 0,children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{width:"100%"},children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"scrnId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"scrnNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})})]}),P.jsxRuntimeExports.jsxs(X.Row,{gutter:[16,8],children:[P.jsxRuntimeExports.jsx(X.Col,{span:8,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"작성자",name:void 0,children:P.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{width:"100%"},children:[P.jsxRuntimeExports.jsx(X.Form.Item,{name:"emplNo",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})}),P.jsxRuntimeExports.jsx(X.Form.Item,{name:"emplNm",style:{width:"60%",marginBottom:0},children:P.jsxRuntimeExports.jsx(X.Input,{readOnly:!0})})]})})}),P.jsxRuntimeExports.jsx(X.Col,{span:6,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"작성일자",name:"regDt",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.DatePicker,{disabled:!0})})}),P.jsxRuntimeExports.jsx(X.Col,{span:6,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"마감요청일",name:"dueDate",style:{width:"100%"},children:P.jsxRuntimeExports.jsx(X.DatePicker,{})})}),P.jsxRuntimeExports.jsx(X.Col,{span:4,children:P.jsxRuntimeExports.jsx(We.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),P.jsxRuntimeExports.jsx(X.Row,{gutter:[16,8],children:P.jsxRuntimeExports.jsx(X.Col,{span:24,children:P.jsxRuntimeExports.jsx(We.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},rules:[{required:!0,message:"제목을 입력해주세요."}],children:P.jsxRuntimeExports.jsx(X.Input,{})})})}),P.jsxRuntimeExports.jsx(Us,{border:!1,itemProps:{name:"content"},editorProps:{isEditing:f,title:{title:P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsx(Ce.EditOutlined,{style:{marginRight:"5px"}})," 상세내용 작성"]}),children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.EyeFilled,{}),onClick:()=>d(!f),children:"미리보기"})}}})]})});z.useEffect(()=>{c==="new"&&(d(!0),o.setFieldsValue({type:"INQR",scrnId:n?.scrnId,scrnNm:n?.menuNm,emplNo:i?.emplNo,emplNm:i?.userNm,regDt:Vv(),content:""}))},[c,o,n,i]),z.useEffect(()=>{c==="detail"&&u&&o.setFieldsValue({scrnId:u.scrnId||n?.scrnId,scrnNm:u.scrnNm||n?.menuNm,emplNo:u.emplNo||i?.emplNo,emplNm:u.emplNm||i?.userNm,type:u.type,title:u.title,content:u.content})},[c,u,o,n,i]);const G=()=>{switch(c){case"list":return[{key:"REFRESH",text:"조회",type:"default",onClick:C,disabled:a},{key:"NEW",text:"신규 등록",type:"primary",onClick:W}];case"detail":return[{key:"BACK",text:"뒤로",type:"default",onClick:V}];case"new":return[{key:"SUBMIT",text:"제출",type:"primary",onClick:()=>o.submit(),disabled:a},{key:"CANCEL",text:"취소",type:"default",onClick:B}];default:return[]}};return e?P.jsxRuntimeExports.jsxs(M2,{title:"문의 및 신고",width:1400,height:800,minWidth:600,minHeight:400,onClose:B,buttons:G(),children:[c==="list"&&F(),c==="detail"&&q(),c==="new"&&K()]}):null},Dv=(e,r,t=null)=>{for(let i=0;i<e.length;i++){const n=e[i];if(n.key===r)return{node:n,ctx:{parent:t,index:i,siblings:e}};if(n.children?.length){const o=Dv(n.children,r,n);if(o.node)return o}}return{node:null,ctx:null}},Bv=(e,r)=>{if(!e.children)return!1;for(const t of e.children)if(t.key===r||Bv(t,r))return!0;return!1};function $2({open:e,onClose:r}){const{nodes:t,rootIds:i,addFolder:n,editFolder:o,removeFolder:a,removeMenu:s,moveNode:f}=Nn.useFavoriteStore(),d=z.useRef(null),[c,l]=z.useState([]),[u,h]=z.useState([]),[v,g]=z.useState(""),[p,y]=z.useState("ADD"),[m,x]=z.useState(!1),[b,E]=z.useState("");z.useEffect(()=>{e&&h(i)},[e]),z.useEffect(()=>{const _=S(t,i);l(_)},[t]),z.useEffect(()=>{m&&b&&(d.current.setFieldValue("prntBkmkId",b),d.current.setFieldValue("prntBkmkNm",t[b]?.bkmkNm??"-")),m&&p==="EDIT"&&(d.current.setFieldValue("bkmkId",b),d.current.setFieldValue("bkmkNm",t[b]?.bkmkNm)),!m&&p=="ADD"&&h(_=>[..._,b]),!m&&d.current&&(E("-"),d.current.resetFields())},[m,p,b,t]);const S=(_,A)=>{const R=(C,O="-")=>{const j=_[C];if(!j)return null;const k={key:j.bkmkId,type:j.type,title:j.type==="F"?j.bkmkNm:j.menuNm?`${j.menuNm} (${j.menuId})`:j.menuId,parentId:O,sortOrdr:j.sortOrdr??0};if(j.type==="F"){const B=(j.children??[]).map(V=>R(V,j.bkmkId)).filter(Boolean);return{...k,children:B}}return k};return A.map(C=>R(C,"-")).filter(Boolean)},w=()=>{if(y("ADD"),!v){E("-"),x(!0);return}const _=t[v];if(!_){E("-"),x(!0);return}_.type==="F"?E(_.bkmkId):E(_.prntBkmkId),x(!0)};return P.jsxRuntimeExports.jsxs(X.ConfigProvider,{theme:{components:{Modal:{wireframe:!0}}},children:[P.jsxRuntimeExports.jsxs(X.Modal,{open:e,okButtonProps:{style:{display:"none"}},cancelText:"닫기",width:560,style:{zIndex:1001},styles:{body:{paddingTop:"12px"}},title:P.jsxRuntimeExports.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:P.jsxRuntimeExports.jsxs(X.Typography.Text,{strong:!0,style:{fontSize:18},children:[P.jsxRuntimeExports.jsx(Ce.FolderOpenFilled,{style:{marginRight:10,fontSize:18,color:"#faad14"}}),"북마크 관리"]})}),onCancel:r,children:[P.jsxRuntimeExports.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginBottom:10},children:[P.jsxRuntimeExports.jsx(X.Button,{color:"blue",variant:"outlined",icon:P.jsxRuntimeExports.jsx(Ce.FolderAddOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:w,children:"새 폴더"}),P.jsxRuntimeExports.jsxs("div",{children:[P.jsxRuntimeExports.jsx(X.Tooltip,{title:"펼치기",children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.PlusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>{const _=Object.values(t).filter(A=>A.type==="F").map(A=>A.bkmkId);h(_)}})}),P.jsxRuntimeExports.jsx(X.Tooltip,{title:"접기",children:P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.MinusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>h([])})})]})]}),P.jsxRuntimeExports.jsxs("div",{style:{maxHeight:420,height:350,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:8,padding:8},children:[c.length==0&&P.jsxRuntimeExports.jsx(X.Empty,{description:P.jsxRuntimeExports.jsxs(X.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",P.jsxRuntimeExports.jsx("br",{}),"새로운 폴더를 생성해보세요."]})}),P.jsxRuntimeExports.jsx(X.Tree,{blockNode:!0,draggable:!0,allowDrop:({dropNode:_,dropPosition:A})=>{const R=_.type==="F";return A===0?R:!0},onDrop:_=>{const{dragNode:A,node:R,dropPosition:C,dropToGap:O}=_;if(A.key===R.key||Bv(A,R.key))return;let j,k;if(O){const B=Dv(c,R.key).ctx;B.siblings;const V=B.index;j=B.parent?B.parent.key:"-",k=C>0?V+1:V}else{if(R.type!=="F")return;const B=R.children||[];j=R.key,k=B.length}const I=Fe.getUserId();if(A.type==="F")f({bkmkId:A.key,newPrntBkmkId:j,sortOrdr:k,userId:I}).catch(()=>{X.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(j==="-"){X.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}f({bkmkId:A.key,newPrntBkmkId:j,sortOrdr:k,userId:I}).catch(()=>{X.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}O===!1&&h(B=>Array.from(new Set([...B,R.key])))},showLine:!0,treeData:c,selectedKeys:[v],expandedKeys:u,onExpand:h,onSelect:_=>g(_[0]),titleRender:_=>P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[P.jsxRuntimeExports.jsxs("span",{children:[_.type==="F"?"📁":"📄"," ",_.title,_.isNew?P.jsxRuntimeExports.jsx(X.Tag,{color:"gold",style:{marginLeft:4,fontSize:"10px",height:"16px",lineHeight:"16px",padding:"0 5px"},children:"N"}):null]}),P.jsxRuntimeExports.jsxs("span",{style:{display:"inline-flex",gap:8},children:[_.type==="F"&&P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsx(Ce.PlusOutlined,{style:{opacity:.8},onClick:()=>{y("ADD"),E(_.key),x(!0)}}),P.jsxRuntimeExports.jsx(Ce.EditOutlined,{style:{opacity:.8},onClick:()=>{y("EDIT"),E(_.key),x(!0)}})]}),P.jsxRuntimeExports.jsx(Ce.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{_.type==="F"?X.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>a(_.key)}):X.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>s(_.key)})}})]})]})})]})]}),P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Modal:{titleColor:p==="ADD"?"#0958d9":"#d46b08",headerBg:p==="ADD"?"#e6f4ff":"#fff7e6"}}},children:P.jsxRuntimeExports.jsx(X.Modal,{title:P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[p==="ADD"?P.jsxRuntimeExports.jsx(Ce.FolderAddOutlined,{style:{marginRight:10,fontSize:18,color:"#1677ff"}}):P.jsxRuntimeExports.jsx(Ce.EditOutlined,{style:{marginRight:10,fontSize:18,color:"#d46b08"}}),P.jsxRuntimeExports.jsxs(X.Typography.Text,{strong:!0,style:{fontSize:17},children:["폴더",p==="ADD"?" 추가":"명 수정"]})]}),open:m,okText:"저장",onOk:()=>{const _=d.current.getFieldValue("bkmkNm"),A=Fe.getUserId();if(p==="ADD"){const R=__SYS_CD__??"KH",C=d.current.getFieldValue("prntBkmkId");n(_,C,R,A).then(()=>{x(!1)})}else{const R=d.current.getFieldValue("bkmkId");o(R,A,_).then(()=>{x(!1)})}},centered:!0,width:400,onCancel:()=>x(!1),children:P.jsxRuntimeExports.jsxs(We.BwgForm,{ref:d,children:[P.jsxRuntimeExports.jsx(We.BwgInput,{itemProps:{name:p==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),P.jsxRuntimeExports.jsx(We.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:b==="-"||p==="EDIT"},inputProps:{disabled:!0}}),P.jsxRuntimeExports.jsx(We.BwgInput,{itemProps:{label:"폴더명",name:"bkmkNm"}})]})})})]})}function D2({triggerIcon:e}){const[r,t]=z.useState(!1),[i,n]=z.useState(""),[o,a]=z.useState(null),[s,f]=z.useState([]),[d,c]=z.useState([]),[l,u]=z.useState(!1),[h,v]=z.useState(!1),[g,p]=z.useState(!1),[y,m]=z.useState(null);Nn.useFavoriteStore(L=>L.treeNodes);const{nodes:x,getPrntBkmkIdByMenuId:b,getNodeByMenuId:E,isMenuBookmarked:S,removeMenuByMenuId:w,addMenuToFolder:_,convertToAntTreeData:A}=Nn.useFavoriteStore(),R=Nn.useFavoriteStore(L=>L.rootIds),C=z.useMemo(()=>A(x,R,i,!0),[x,R,i]),O=Fe.useMenuViewStore(L=>L.activeMenuItem??{menuId:"",menuNm:""}),j=z.useMemo(()=>{if(!O?.menuId)return"";const L=E(O.menuId);if(!L)return"";if(L.fullPath)return L.fullPath;const $=N=>{const F=x[N];if(!F)return"";if(F.prntBkmkId==="-")return`${F.bkmkNm||O?.menuNm}`;const q=$(F.prntBkmkId);return q?`${q} > ${F.bkmkNm||O?.menuNm}`:F.bkmkNm||O?.menuNm};return console.log("bookmarkNode ::::: ",L),console.log($(L.bkmkId)),$(L.bkmkId)},[O?.menuId,E,x]);z.useEffect(()=>{r&&O?.menuId&&S(O.menuId)?c([b(O.menuId)]):r&&O?.menuId&&!S(O.menuId)?c(R):(c([]),f([]),m(null),p(!1))},[r,O?.menuId,S,b]),z.useEffect(()=>{if(!g||!O?.menuId)return;const L=b(O.menuId);!L||!x[L]||(n(""),f([L]),m(L))},[g,O?.menuId,x,b]);const k=(L,$)=>{_(L,$).then(N=>{console.log("AddMenuToFolder ::::: ",N),N||c(F=>F.includes(L)?F:[...F,L])})},I=L=>{w(L)},B=async L=>{O?.menuId&&(await w(O.menuId),await _(L,O),p(!1),m(null),c($=>$.includes(L)?$:[...$,L]))},V=()=>P.jsxRuntimeExports.jsxs("div",{style:{width:360},children:[P.jsxRuntimeExports.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:P.jsxRuntimeExports.jsxs(X.Space,{direction:"vertical",style:{width:"100%"},children:[P.jsxRuntimeExports.jsxs(X.Typography.Text,{strong:!0,style:{fontSize:18},children:[P.jsxRuntimeExports.jsx(X.Button,{type:"text",icon:P.jsxRuntimeExports.jsx(Ce.ArrowLeftOutlined,{}),onClick:()=>p(!1),style:{marginRight:4}}),"폴더 변경"]}),O&&P.jsxRuntimeExports.jsxs(X.Typography.Text,{type:"secondary",children:["현재 화면: ",P.jsxRuntimeExports.jsx("b",{children:O.menuNm})," ",P.jsxRuntimeExports.jsxs("span",{style:{opacity:.7},children:["(",O.menuId,")"]})]})]})}),W(),P.jsxRuntimeExports.jsxs("div",{style:{padding:12,borderTop:"1px solid #f0f0f0",display:"flex",justifyContent:"flex-end",gap:8},children:[P.jsxRuntimeExports.jsx(X.Button,{onClick:()=>{p(!1),m(null)},children:"취소"}),P.jsxRuntimeExports.jsx(X.Button,{type:"primary",disabled:!y,onClick:()=>y&&B(String(y)),children:"이동"})]})]}),W=()=>P.jsxRuntimeExports.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:8},children:[P.jsxRuntimeExports.jsxs(X.Space,{style:{width:"100%",marginBottom:8,display:"flex",justifyContent:"space-between"},children:[P.jsxRuntimeExports.jsx(X.Input,{placeholder:"검색(폴더명)",prefix:P.jsxRuntimeExports.jsx(Ce.SearchOutlined,{}),allowClear:!0,value:i,onChange:L=>n(L.target.value),style:{width:"260px",height:28}}),P.jsxRuntimeExports.jsxs(X.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#6f6f6f",defaultHoverBorderColor:"#6f6f6f"}}},children:[P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.PlusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>{const L=Object.values(x).filter($=>$.type==="F").map($=>$.bkmkId);c(L)},title:"모두 확장"}),P.jsxRuntimeExports.jsx(X.Button,{icon:P.jsxRuntimeExports.jsx(Ce.MinusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>c([]),title:"모두 축소"})]})]}),C.length===0?P.jsxRuntimeExports.jsx(X.Empty,{description:P.jsxRuntimeExports.jsxs(X.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",P.jsxRuntimeExports.jsx("br",{}),"새로운 폴더를 만들어 시작해보세요."]}),image:X.Empty.PRESENTED_IMAGE_SIMPLE}):P.jsxRuntimeExports.jsx(X.Tree,{blockNode:!0,showLine:!0,treeData:C,selectedKeys:s,expandedKeys:d,onExpand:c,onSelect:L=>{f(L),m(L[0])},autoExpandParent:!0,titleRender:L=>{const $=String(L.key),N=o===$;return P.jsxRuntimeExports.jsxs("div",{onMouseEnter:()=>a($),onMouseLeave:()=>a(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[P.jsxRuntimeExports.jsx("div",{children:L.title}),!S(O?.menuId)&&O&&N&&P.jsxRuntimeExports.jsx(X.Button,{size:"small",type:"link",onClick:F=>{F.stopPropagation(),k($,O)},children:"+ 현재화면 추가"})]})}})]});return P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[P.jsxRuntimeExports.jsx(X.Popover,{open:r&&!l,onOpenChange:t,trigger:"click",placement:"bottomLeft",styles:{body:{padding:0,borderRadius:12,border:"1px solid #e8edf5",boxShadow:"0 12px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08)",background:"#fcfcff",zIndex:1e3}},content:g?V():P.jsxRuntimeExports.jsxs("div",{style:{width:360},children:[P.jsxRuntimeExports.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:P.jsxRuntimeExports.jsxs(X.Space,{direction:"vertical",style:{width:"100%"},children:[P.jsxRuntimeExports.jsxs(X.Typography.Text,{strong:!0,style:{fontSize:18},children:["📌 북마크"," ",S(O?.menuId)?"저장됨":"추가"]}),O&&P.jsxRuntimeExports.jsxs(X.Typography.Text,{type:"secondary",children:["현재 화면: ",P.jsxRuntimeExports.jsx("b",{children:O.menuNm})," ",P.jsxRuntimeExports.jsxs("span",{style:{opacity:.7},children:["(",O.menuId,")"]})]})]})}),S(O?.menuId)?P.jsxRuntimeExports.jsxs("div",{style:{padding:12,margin:8,borderRadius:8,backgroundColor:"#f5f5f5"},children:[P.jsxRuntimeExports.jsx(X.Typography.Text,{type:"secondary",style:{fontSize:12},children:"저장 위치"}),P.jsxRuntimeExports.jsx("div",{style:{marginTop:4},children:`📁 > ${j}`||"알 수 없음"})]}):W(),P.jsxRuntimeExports.jsxs(jr,{style:{padding:8,borderTop:"1px solid #f0f0f0"},layoutAlign:"right",children:[O&&!S(O.menuId)?P.jsxRuntimeExports.jsx(X.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},type:"primary",icon:P.jsxRuntimeExports.jsx(Ce.PlusOutlined,{}),onClick:()=>{const L=String(s[0]);let $="-";L&&x[L]&&($=x[L].type=="M"?x[L].prntBkmkId:L),k($,O)},children:"추가"}):P.jsxRuntimeExports.jsxs(jr,{layoutAlign:"between",children:[P.jsxRuntimeExports.jsx(X.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:P.jsxRuntimeExports.jsx(Ce.FolderOpenOutlined,{}),onClick:()=>p(!0),children:"폴더 변경"}),P.jsxRuntimeExports.jsx(X.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},color:"danger",variant:"solid",icon:P.jsxRuntimeExports.jsx(Ce.MinusOutlined,{}),onClick:()=>I(O.menuId),children:"삭제"})]}),P.jsxRuntimeExports.jsx(X.Button,{type:"text",style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:P.jsxRuntimeExports.jsx(Ce.SettingOutlined,{}),onClick:()=>{v(r),u(!0)},children:"관리"})]})]}),children:P.jsxRuntimeExports.jsx("span",{style:{cursor:"pointer",display:"inline-flex",alignItems:"center"},children:e})}),P.jsxRuntimeExports.jsx($2,{open:l,onClose:()=>{u(!1),h&&t(!0)}})]})}const B2=({reqRows:e,subRows:r})=>{const{searchBoxRef:t}=Xi.useSearchBox();return P.jsxRuntimeExports.jsx(Ji,{ref:t,reqRows:e,subRows:r})},q2=({children:e,searchBox:r,title:t,preRenderEvents:i=[],postRenderEvents:n=[],loading:o=!1,error:a=null,grantEvent:s={},customEvent:f={}})=>{const d=Xi.useServiceCodeValue("AUTH_BTNS"),{user:c,isLoggedIn:l}=Fe.useUserStore(),{activeMenuItem:u}=Fe.useMenuViewStore(),{loadFavoritesIfNeeded:h,isMenuBookmarked:v,addMenuToFolder:g}=Nn.useFavoriteStore(),{loading:p}=Fe.useLoadingStore(),[y,m]=z.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),[x,b]=z.useState(null),[E,S]=z.useState([]),[w,_]=z.useState([]),[A,R]=z.useState(!1),C=async()=>{if(i.length===0){m(L=>({...L,preRenderComplete:!0}));return}try{for(const L of i)await L();m(L=>({...L,preRenderComplete:!0}))}catch(L){m($=>({...$,error:L instanceof Error?L.message:"사전 렌더링 실패",preRenderComplete:!0}))}},O=async()=>{if(n.length===0){m(L=>({...L,postRenderComplete:!0}));return}try{for(const L of n)await L();m(L=>({...L,postRenderComplete:!0}))}catch(L){m($=>({...$,error:L instanceof Error?L.message:"사후 렌더링 실패",postRenderComplete:!0}))}};z.useEffect(()=>{if(y.isInitialized)return;(async()=>{try{try{console.log("SCMSIGN00202 권한 서비스 호출 시작");const $=await Fe.callService(d,{crprCd:c?.crprCd,userId:c?.userId,menuId:u?.menuId});if(console.log("SCMSIGN00202 권한 서비스 응답:",$),$?.data&&$.data.length>0){const N=$.data?.filter(q=>q.grpId?.toUpperCase()==="DEFAULT").map(q=>({id:q.btnId,label:q.btnNm,type:"default",disabled:!1,onClick:s[q.btnId]||void 0}))||[];S(N);const F=$.data?.filter(q=>q.grpId?.toUpperCase()==="CUSTOM").map(q=>({id:q.btnId,label:q.btnNm,type:"default",disabled:!1,onClick:f[q.btnId]||void 0}))||[];_(F)}else S([]),_([])}catch($){console.error("SCMSIGN00202 권한 서비스 호출 실패:",$),S([]),_([])}await C(),m($=>({...$,isInitialized:!0,loading:!1}))}catch($){console.error("BwgView 초기화 실패:",$),m(N=>({...N,isInitialized:!0,loading:!1}))}})()},[]),z.useEffect(()=>{c?.userId&&h(c.userId)},[h,c?.userId]),z.useEffect(()=>{y.isInitialized&&y.preRenderComplete&&!y.isReady&&setTimeout(async()=>{await O(),m($=>({...$,isReady:!0}))},100)},[y.isInitialized,y.preRenderComplete,y.isReady]),z.useEffect(()=>{a&&m(L=>({...L,error:a}))},[a]);const j=()=>P.jsxRuntimeExports.jsxs("div",{className:"bwgview-header-container",children:[P.jsxRuntimeExports.jsxs("div",{className:"bwgview-header",children:[P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:W.LEFT}),P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:W.RIGHT})]}),r&&P.jsxRuntimeExports.jsx(B2,{reqRows:r.reqRows,subRows:r.subRows})]});if(z.useEffect(()=>{},[c,u]),y.error||a)return P.jsxRuntimeExports.jsx("div",{style:{padding:"24px"},children:P.jsxRuntimeExports.jsx(X.Alert,{message:"오류 발생",description:y.error||a,type:"error",showIcon:!0})});const k=()=>P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:P.jsxRuntimeExports.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"})}),I=()=>P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:P.jsxRuntimeExports.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"})}),B=L=>P.jsxRuntimeExports.jsx(Ce,{component:k,...L}),V=L=>P.jsxRuntimeExports.jsx(Ce,{component:I,...L}),W={LEFT:P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:P.jsxRuntimeExports.jsxs(X.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[P.jsxRuntimeExports.jsxs(X.Space,{children:[u&&P.jsxRuntimeExports.jsx(D2,{triggerIcon:v(u.menuId)?P.jsxRuntimeExports.jsx(B,{className:"bookmark-icon",style:{color:"#faad14"}}):P.jsxRuntimeExports.jsx(V,{className:"bookmark-icon"})}),P.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{alignItems:"center"},children:[P.jsxRuntimeExports.jsx("span",{className:"pageMenuNm",children:(()=>{console.log("activeMenUItem::::: ",u);let L="";return t?.useMenuTitle&&u?L=u.menuNm:t?.text?L=t.text:u&&(L=u.menuPrntId==="CM00"?u.menuNm.substring(u.menuNm.indexOf(" ")+1):u.menuNm),t?.prefix&&(L=`${t.prefix} ${L}`),t?.suffix&&(L=`${L} ${t.suffix}`),L})()}),u?.menuNo&&P.jsxRuntimeExports.jsx(X.Tag,{className:"page-num-tag",children:u?.menuNo}),P.jsxRuntimeExports.jsx(X.Tooltip,{title:"도움말",color:"geekblue",children:P.jsxRuntimeExports.jsx(X.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:P.jsxRuntimeExports.jsx("span",{className:"bwgHelpIcon",style:{color:"orange"}})})}),P.jsxRuntimeExports.jsx(X.Tooltip,{title:"문의 및 신고",color:"geekblue",children:P.jsxRuntimeExports.jsx(X.Button,{variant:"text",type:"text",onClick:()=>R(!0),icon:P.jsxRuntimeExports.jsx(Ce.BugFilled,{style:{color:"#1890ff"}})})})]})]}),u?.scrnId&&Fe.isLocal&&P.jsxRuntimeExports.jsx(X.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:P.jsxRuntimeExports.jsx(I2,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:u?.scrnId})})]})}),RIGHT:P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:P.jsxRuntimeExports.jsxs(X.Space,{children:[P.jsxRuntimeExports.jsx(X.Flex,{gap:8,children:w.map(L=>P.jsxRuntimeExports.jsx(X.Button,{type:L.type,disabled:L.disabled,className:"bwg-btn",onClick:()=>{typeof L.onClick=="function"&&L.onClick()},children:L.label},L.id))}),P.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:P.jsxRuntimeExports.jsx(X.Divider,{type:"vertical"})}),P.jsxRuntimeExports.jsx(X.Flex,{gap:8,className:"permission-buttons",children:E.length>0?E.map(L=>P.jsxRuntimeExports.jsx(X.Button,{type:L.type,disabled:L.disabled,className:"bwg-btn",onClick:()=>{typeof L.onClick=="function"&&L.onClick()},children:L.label},L.id)):P.jsxRuntimeExports.jsx(X.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})})]})})})};return P.jsxRuntimeExports.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[j(),P.jsxRuntimeExports.jsxs("div",{className:"bwgview-content",children:[P.jsxRuntimeExports.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(y.loading||o||p)&&P.jsxRuntimeExports.jsx(qv.LoadingOverlay,{text:p?"처리 중...":"화면 로드 중..."})]}),P.jsxRuntimeExports.jsx(F2,{open:A,onClose:()=>R(!1)})]})},V2=({children:e,customTheme:r,customComponentSize:t="middle"})=>{const i={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:X.theme.defaultAlgorithm},n={...i,...r,token:{...i.token,...r?.token}};return P.jsxRuntimeExports.jsx(X.ConfigProvider,{locale:oh,theme:n,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:e})},z2="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",H2="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",U2="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",W2=({children:e})=>{const[r,t]=z.useState({x:0,y:0}),[i,n]=z.useState(!1),[o,a]=z.useState({x:0,y:0}),[s,f]=z.useState(!1),[d,c]=z.useState(!0),l=z.useRef(null),u=[{id:"overtime",title:"시간 외 근무신청",icon:P.jsxRuntimeExports.jsx("img",{src:z2,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:P.jsxRuntimeExports.jsx("img",{src:H2,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:P.jsxRuntimeExports.jsx("img",{src:U2,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:P.jsxRuntimeExports.jsx(Ce.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:P.jsxRuntimeExports.jsx(Ce.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:P.jsxRuntimeExports.jsx(Ce.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];z.useEffect(()=>{const m=()=>{const x=window.innerHeight,E=Math.max(64,(x-300)/3);t({x:0,y:E});const S=x/2;c(E<S)};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]);const h=m=>{if(m.preventDefault(),m.stopPropagation(),l.current){const x=l.current.getBoundingClientRect();a({x:m.clientX-x.left,y:m.clientY-x.top}),n(!0)}},v=m=>{if(i){const x=m.clientY-o.y,b=window.innerHeight-24,S=Math.max(64,Math.min(b,x));t({x:r.x,y:S});const w=window.innerHeight/2;c(S<w)}},g=()=>{n(!1)},p=()=>{f(!s)},y=m=>{m.onClick&&m.onClick()};return z.useEffect(()=>{if(i)return document.addEventListener("mousemove",v),document.addEventListener("mouseup",g),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",g)}},[i,o]),P.jsxRuntimeExports.jsxs("div",{className:"quick-tab-container",ref:l,style:{position:"fixed",right:0,top:r.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[P.jsxRuntimeExports.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 - ${r.y+12}px)`:`${r.y-12}px`,transform:s?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:d&&r.y<100?"32px":"0",marginBottom:!d&&r.y>window.innerHeight-100?"8px":"0"},children:[P.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:d?`calc(100vh - ${r.y+120}px)`:`${r.y-60}px`,padding:"14px 0"},children:u.map(m=>P.jsxRuntimeExports.jsx(X.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:()=>y(m),onMouseEnter:x=>{},onMouseLeave:x=>{},children:P.jsxRuntimeExports.jsxs("div",{className:"quick-tab-item-inner",children:[P.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:m.color,marginBottom:"5px"},children:m.icon}),P.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-title",children:m.title})]})},m.id))}),P.jsxRuntimeExports.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:m=>{},onMouseLeave:m=>{},children:P.jsxRuntimeExports.jsx(Ce.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),P.jsxRuntimeExports.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:i?"grabbing":"grab",zIndex:1001},onMouseDown:h}),P.jsxRuntimeExports.jsx(X.Button,{className:`quick-tab-toggle-btn ${s?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:p})]})},K2=()=>{const{verifyWithToken:e}=zv.useAuth(),r=yu.useNavigate(),t=yu.useLocation();return z.useEffect(()=>{const n=new URLSearchParams(t.search).get("token");if(!n){r("/login",{replace:!0});return}(async()=>{const o=await e(n);r(o?"/main":"/login",{replace:!0})})()},[t.search]),P.jsxRuntimeExports.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:P.jsxRuntimeExports.jsx(X.Spin,{tip:"인증중..."})})};exports.BwgButtonGroup=Hv;exports.BwgCmptArea=Uv;exports.BwgCol=Wv;exports.BwgConfigProvider=Dl;exports.BwgDetail=im;exports.BwgDrawer=om;exports.BwgEditor=Us;exports.BwgGrid=mh;exports.BwgInfoArea=Dg;exports.BwgPopup=qg;exports.BwgRow=Vg;exports.BwgTable=zg;exports.BwgTabs=Hg;exports.BwgTitleBox=Qi;exports.BwgView=q2;exports.ContentBox=Cr;exports.ContentLayOut=jr;exports.GlobalConfigProvider=V2;exports.QuickServiceToggle=W2;exports.SSOHandler=K2;exports.SearchBox=Ji;exports.createBwgGridRenderer=$g;
|
|
236
|
+
//# sourceMappingURL=SSOHandler-oJlon6rn.cjs.map
|