@bwg-ui/core 1.1.26 → 1.1.27
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/common-components-CniOkOzu.js +15776 -0
- package/dist/chunks/common-components-DrcQahsO.cjs +183 -0
- package/dist/chunks/{core-BBMCFpHx.js → core-CEDyqniq.js} +1 -2
- package/dist/chunks/core-lmAmbqvY.cjs +1 -0
- package/dist/chunks/{enc-base64-DAsYWbA2.js → enc-base64-CF2tIkYl.js} +4 -5
- package/dist/chunks/enc-base64-Dxq399hI.cjs +1 -0
- package/dist/chunks/{sha256-D80RpYO2.js → sha256-DYurgXCU.js} +12 -13
- package/dist/chunks/sha256-H5WWQnKT.cjs +1 -0
- package/dist/components/common/BwgPagination.d.ts +1 -1
- package/dist/components/common/BwgPagination.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -2
- package/dist/components/common/index.d.ts +3 -1
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +16 -17
- package/dist/components/core/index.cjs +1 -2
- package/dist/components/core/index.js +1218 -23
- package/dist/components/guide/index.cjs +1 -2
- package/dist/components/guide/index.js +1 -2
- package/dist/components/layout/index.cjs +35 -2
- package/dist/components/layout/index.js +350 -10
- package/dist/components/popup/MenuReport.d.ts.map +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.js +211 -222
- package/dist/provider/index.cjs +1 -2
- package/dist/provider/index.js +384 -25
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.js +1394 -24
- package/dist/utils/index.cjs +1 -2
- package/dist/utils/index.js +1369 -200
- package/package.json +1 -1
- package/dist/chunks/AuthContext-BQ3gHLbr.cjs +0 -2
- package/dist/chunks/AuthContext-BQ3gHLbr.cjs.map +0 -1
- package/dist/chunks/AuthContext-CVizgYxY.js +0 -57
- package/dist/chunks/AuthContext-CVizgYxY.js.map +0 -1
- package/dist/chunks/BwgSpace-BPJARdOc.js +0 -27
- package/dist/chunks/BwgSpace-BPJARdOc.js.map +0 -1
- package/dist/chunks/BwgSpace-Cw27d-XU.cjs +0 -2
- package/dist/chunks/BwgSpace-Cw27d-XU.cjs.map +0 -1
- package/dist/chunks/BwgSwitch-BLtVdW44.cjs +0 -2
- package/dist/chunks/BwgSwitch-BLtVdW44.cjs.map +0 -1
- package/dist/chunks/BwgSwitch-DdHo4gYR.js +0 -269
- package/dist/chunks/BwgSwitch-DdHo4gYR.js.map +0 -1
- package/dist/chunks/BwgUploader-BUmFmeuS.js +0 -3250
- package/dist/chunks/BwgUploader-BUmFmeuS.js.map +0 -1
- package/dist/chunks/BwgUploader-Djhl4lIt.cjs +0 -3
- package/dist/chunks/BwgUploader-Djhl4lIt.cjs.map +0 -1
- package/dist/chunks/LoadingOverlay-Uf6xy04v.js +0 -19
- package/dist/chunks/LoadingOverlay-Uf6xy04v.js.map +0 -1
- package/dist/chunks/LoadingOverlay-jdMzdB-z.cjs +0 -2
- package/dist/chunks/LoadingOverlay-jdMzdB-z.cjs.map +0 -1
- package/dist/chunks/SSOHandler-CR0nR3rJ.js +0 -28654
- package/dist/chunks/SSOHandler-CR0nR3rJ.js.map +0 -1
- package/dist/chunks/SSOHandler-DQG0Jp4V.cjs +0 -237
- package/dist/chunks/SSOHandler-DQG0Jp4V.cjs.map +0 -1
- package/dist/chunks/ScreenProtectContext-BMsPPcTX.js +0 -154
- package/dist/chunks/ScreenProtectContext-BMsPPcTX.js.map +0 -1
- package/dist/chunks/ScreenProtectContext-DrCGlcTs.cjs +0 -2
- package/dist/chunks/ScreenProtectContext-DrCGlcTs.cjs.map +0 -1
- package/dist/chunks/SearchBoxContext-DY6lES-W.cjs +0 -2
- package/dist/chunks/SearchBoxContext-DY6lES-W.cjs.map +0 -1
- package/dist/chunks/SearchBoxContext-Dtzo_rJd.js +0 -86
- package/dist/chunks/SearchBoxContext-Dtzo_rJd.js.map +0 -1
- package/dist/chunks/ViewContainer-BfiTFvLP.cjs +0 -36
- package/dist/chunks/ViewContainer-BfiTFvLP.cjs.map +0 -1
- package/dist/chunks/ViewContainer-CTl3_56W.js +0 -338
- package/dist/chunks/ViewContainer-CTl3_56W.js.map +0 -1
- package/dist/chunks/apiUtils-D9Vn1gwZ.cjs +0 -3
- package/dist/chunks/apiUtils-D9Vn1gwZ.cjs.map +0 -1
- package/dist/chunks/apiUtils-DPUgfmKk.js +0 -1450
- package/dist/chunks/apiUtils-DPUgfmKk.js.map +0 -1
- package/dist/chunks/codeStore-BrCfe9K3.js +0 -450
- package/dist/chunks/codeStore-BrCfe9K3.js.map +0 -1
- package/dist/chunks/codeStore-_b2fDZtD.cjs +0 -2
- package/dist/chunks/codeStore-_b2fDZtD.cjs.map +0 -1
- package/dist/chunks/core-BBMCFpHx.js.map +0 -1
- package/dist/chunks/core-CM9MsJRf.cjs +0 -2
- package/dist/chunks/core-CM9MsJRf.cjs.map +0 -1
- package/dist/chunks/enc-base64-DAsYWbA2.js.map +0 -1
- package/dist/chunks/enc-base64-DbK5VBfD.cjs +0 -2
- package/dist/chunks/enc-base64-DbK5VBfD.cjs.map +0 -1
- package/dist/chunks/favoriteStore-BnQ2u-sa.cjs +0 -2
- package/dist/chunks/favoriteStore-BnQ2u-sa.cjs.map +0 -1
- package/dist/chunks/favoriteStore-SyAjqLG8.js +0 -439
- package/dist/chunks/favoriteStore-SyAjqLG8.js.map +0 -1
- package/dist/chunks/popupStore-BrKcPw7K.js +0 -92
- package/dist/chunks/popupStore-BrKcPw7K.js.map +0 -1
- package/dist/chunks/popupStore-ChbYTqy1.cjs +0 -2
- package/dist/chunks/popupStore-ChbYTqy1.cjs.map +0 -1
- package/dist/chunks/realFormat-Cha7OTd9.cjs +0 -2
- package/dist/chunks/realFormat-Cha7OTd9.cjs.map +0 -1
- package/dist/chunks/realFormat-DRGLFabQ.js +0 -305
- package/dist/chunks/realFormat-DRGLFabQ.js.map +0 -1
- package/dist/chunks/sha256-BnWVPP1K.cjs +0 -2
- package/dist/chunks/sha256-BnWVPP1K.cjs.map +0 -1
- package/dist/chunks/sha256-D80RpYO2.js.map +0 -1
- package/dist/chunks/usePopup-DnfKRiYs.js +0 -109
- package/dist/chunks/usePopup-DnfKRiYs.js.map +0 -1
- package/dist/chunks/usePopup-Domnpg55.cjs +0 -2
- package/dist/chunks/usePopup-Domnpg55.cjs.map +0 -1
- package/dist/components/common/index.cjs.map +0 -1
- package/dist/components/common/index.js.map +0 -1
- package/dist/components/core/index.cjs.map +0 -1
- package/dist/components/core/index.js.map +0 -1
- package/dist/components/guide/index.cjs.map +0 -1
- package/dist/components/guide/index.js.map +0 -1
- package/dist/components/layout/index.cjs.map +0 -1
- package/dist/components/layout/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/provider/index.cjs.map +0 -1
- package/dist/provider/index.js.map +0 -1
- package/dist/stores/index.cjs.map +0 -1
- package/dist/stores/index.js.map +0 -1
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.js.map +0 -1
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
"use strict";const k=require("react/jsx-runtime"),Re=require("@ant-design/icons"),Y=require("antd"),z=require("react"),vi=require("./SearchBoxContext-DY6lES-W.cjs"),Me=require("./apiUtils-D9Vn1gwZ.cjs"),$h=require("react-rnd"),ri=require("react-dom"),Zn=require("./favoriteStore-BnQ2u-sa.cjs"),Bh=require("./LoadingOverlay-jdMzdB-z.cjs"),Ng=require("dayjs"),gt=require("realgrid"),Wu=require("realgrid-react"),Yo=require("./realFormat-Cha7OTd9.cjs"),Qe=require("./BwgSwitch-BLtVdW44.cjs"),jg=require("./AuthContext-BQ3gHLbr.cjs"),Gu=require("react-router-dom");function qh(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const Qn=qh(Re),M=qh(z),Ig=({grpId:e,menuId:r,btnEvent:t,layout:n="horizontal",size:i="middle",style:o,className:a,onButtonClick:s})=>{const c=vi.useServiceCodeValue("AUTH_BTNS"),{user:d}=Me.useUserStore(),[f,l]=z.useState([]),[u,h]=z.useState(!0),[v,b]=z.useState(null),[p,m]=z.useState({}),g=async()=>{try{h(!0),b(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,r);const w=await Me.callService(c,{userId:d?.userId,crprCd:d?.crprCd,grpId:e.toUpperCase(),menuId:r});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",w),w?.data&&Array.isArray(w.data)){const _=w.data.sort((S,E)=>S.btnSq-E.btnSq);l(_)}else l([])}catch(w){console.error("버튼 권한 조회 실패:",w),b("버튼 권한을 조회하는 중 오류가 발생했습니다."),l([])}finally{h(!1)}};z.useEffect(()=>{g()},[e,r]);const x=async(w,_)=>{m(S=>({...S,[w]:{loading:!0}}));try{const S=t?.[w];S?await S():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${w}`),s&&s(w,_,e)}catch(S){console.error("버튼 이벤트 실행 실패:",S),Y.message.error("작업 중 오류가 발생했습니다.")}finally{m(S=>({...S,[w]:{loading:!1}}))}},y=w=>{const _=p[w.btnId]||{loading:!1};return k.jsxs(Y.Button,{size:i,loading:_.loading,onClick:()=>x(w.btnId,w.btnNm),className:"bwg-btn",style:{...w.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[w.iconVal&&k.jsxs(k.Fragment,{children:[w.iconType==="ANTD"&&Qn[w.iconVal]&&z.createElement(Qn[w.iconVal],{style:{fontSize:"14px"}}),w.iconType!=="ANTD"&&k.jsx("span",{className:w.iconVal,style:{fontSize:"14px"}})]}),w.btnNm]},w.btnId)};return u?k.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:o,children:k.jsx(Y.Space,{direction:n==="vertical"?"vertical":"horizontal",size:i,children:k.jsx(Y.Button,{loading:!0,size:i,children:"권한 조회 중..."})})}):v?k.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:o,children:k.jsx(Y.Alert,{message:"권한 오류",description:v,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):f.length===0?k.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:o,children:k.jsx(Y.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):k.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:o,children:k.jsx(Y.Flex,{gap:3,children:f.map(y)})})},Mg=({content:e,layout:r="flex",gap:t=16,minWidth:n=120,maxWidth:i=300,style:o,className:a})=>{if(!(Array.isArray(e)&&e.length>0&&Array.isArray(e[0])))return k.jsx("div",{style:o,className:a,children:e});const c=e.filter(h=>h&&h.length>0),d=z.useMemo(()=>{const h=c[0];if(!h||h.length===0)return{totalCols:0,baseWidth:0};let v=0;const b=[];h.forEach(m=>{const g=m,x=g?.props?.["data-colspan"]?parseInt(String(g.props["data-colspan"])):1;v+=x,b.push(x)});const p=v>0?100/v:0;return{totalCols:v,baseWidth:p,componentWidths:b}},[c]),f=(h,v,b)=>{const p=h,m=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1;switch(r){case"equal":return 100/b;case"auto":return 100/b;case"grid":return 100/d.totalCols*m;case"flex":default:const g=d.baseWidth*m;return Math.max(n,Math.min(i,g))}},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 b=h.length;return r==="grid"?k.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${d.totalCols}, 1fr)`,gap:`${t}px`,width:"100%"},children:h.map((p,m)=>{const g=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1,x=l(p);return k.jsx("div",{style:{gridColumn:`span ${g}`,minWidth:`${n}px`},className:"form-component-wrapper",children:x},`row-${v}-col-${m}`)})},`row-${v}`):k.jsx(Y.Flex,{gap:t,className:"erp-cmm-form",wrap:r==="auto"?"wrap":"nowrap",style:{width:"100%"},children:h.map((p,m)=>{const g=f(p,m,b),x=l(p),y=r==="flex"?{width:`${g}px`,minWidth:`${n}px`,maxWidth:`${i}px`,flexShrink:0}:{width:`${g}%`,minWidth:`${n}px`};return k.jsx("div",{style:y,className:"form-component-wrapper",children:x},`row-${v}-col-${m}`)})},`row-${v}`)};return k.jsx(Y.Flex,{gap:"small",vertical:!0,style:o,className:a,children:c.map((h,v)=>u(h,v+1))})},Lg=({children:e,...r})=>k.jsx(Y.Col,{...r,className:"bwg-col",children:e});var Nn={},Xo={exports:{}},Ku;function bo(){return Ku||(Ku=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})(Xo)),Xo.exports}var jn={},Yu;function Dg(){if(Yu)return jn;Yu=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.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 jn.default=e,jn}var In={},Mn={},Ln={},Zo={exports:{}},Qo={exports:{}},Jo={exports:{}},ea={exports:{}},Xu;function zh(){return Xu||(Xu=1,(function(e){function r(t){"@babel/helpers - typeof";return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(ea)),ea.exports}var ta={exports:{}},Zu;function Fg(){return Zu||(Zu=1,(function(e){var r=zh().default;function t(n,i){if(r(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var a=o.call(n,i||"default");if(r(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ta)),ta.exports}var Qu;function $g(){return Qu||(Qu=1,(function(e){var r=zh().default,t=Fg();function n(i){var o=t(i,"string");return r(o)=="symbol"?o:o+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Jo)),Jo.exports}var Ju;function Bg(){return Ju||(Ju=1,(function(e){var r=$g();function t(n,i,o){return(i=r(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Qo)),Qo.exports}var ec;function qg(){return ec||(ec=1,(function(e){var r=Bg();function t(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);o&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),a.push.apply(a,s)}return a}function n(i){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(i,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(a,s))})}return i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Zo)),Zo.exports}var Dn={},tc;function zg(){return tc||(tc=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.commonLocale=void 0,Dn.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),Dn}var rc;function Hg(){if(rc)return Ln;rc=1;var e=bo().default;Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.default=void 0;var r=e(qg()),t=zg(),n=(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 Ln.default=n,Ln}var Fn={},nc;function Hh(){if(nc)return Fn;nc=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return Fn.default=e,Fn}var ic;function Vh(){if(ic)return Mn;ic=1;var e=bo().default;Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.default=void 0;var r=e(Hg()),t=e(Hh());const n={lang:Object.assign({placeholder:"날짜 선택",yearPlaceholder:"연도 선택",quarterPlaceholder:"분기 선택",monthPlaceholder:"월 선택",weekPlaceholder:"주 선택",rangePlaceholder:["시작일","종료일"],rangeYearPlaceholder:["시작 연도","종료 연도"],rangeMonthPlaceholder:["시작 월","종료 월"],rangeQuarterPlaceholder:["시작 분기","종료 분기"],rangeWeekPlaceholder:["시작 주","종료 주"],shortWeekDays:["일","월","화","수","목","금","토"],shortMonths:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},r.default),timePickerLocale:Object.assign({},t.default)};return Mn.default=n,Mn}var oc;function Vg(){if(oc)return In;oc=1;var e=bo().default;Object.defineProperty(In,"__esModule",{value:!0}),In.default=void 0;var r=e(Vh());return In.default=r.default,In}var ac;function Ug(){if(ac)return Nn;ac=1;var e=bo().default;Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.default=void 0;var r=e(Dg()),t=e(Vg()),n=e(Vh()),i=e(Hh());const o="${label} 유효하지 않은 ${type}",a={locale:"ko",Pagination:r.default,DatePicker:n.default,TimePicker:i.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 Nn.default=a,Nn}var ra,sc;function Wg(){return sc||(sc=1,ra=Ug()),ra}var Gg=Wg();const Uh=Me.getDefaultExportFromCjs(Gg),hu=({children:e,customTheme:r,customComponentSize:t="middle",layout:n="comfortable",getPopupContainer:i})=>{const a=(()=>{const c={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'"Noto Sans KR", sans-serif',fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:Y.theme.defaultAlgorithm};switch(n){case"compact":return{...c,token:{...c.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...c,token:{...c.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...c,token:{...c.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),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 k.jsx(Y.ConfigProvider,{locale:Uh,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:i,children:e})},Kg=({children:e})=>{const{activeDetailItem:r}=Me.useMenuViewStore();return k.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:k.jsx("div",{className:"bwgview-content",children:k.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[k.jsx(Y.Breadcrumb,{separator:">",items:[{title:r?.prntInfo?.menuNm},{title:r?.viewLabel}]}),e]})})})},xo=({title:e,icons:r,tooltip:t,iconVisible:n=!0,paddingBottom:i=0,marginBottom:o=0,children:a})=>{const s=Qn.AppstoreTwoTone;return z.useMemo(()=>r?.type==="antd"&&r.icon&&Qn[r.icon]||s,[r?.type,r?.icon]),k.jsx(Y.Flex,{vertical:!0,style:{width:"100%"},children:k.jsxs("div",{className:`bwg-title-box ${i?`pb${i}`:""} ${o?`mb${o}`:""}`,style:{display:"flex",justifyContent:"space-between"},children:[k.jsx("div",{className:"bwg-title-box-left",children:k.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[k.jsx(Y.Typography.Title,{level:4,children:k.jsx("span",{children:e})}),t&&k.jsx(Y.Tooltip,{title:t.title,placement:t.placement,children:k.jsx(Qn.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),k.jsx("div",{className:"bwg-title-box-right",children:k.jsx(Y.Flex,{gap:6,children:a})})]})})},{Panel:lc}=Y.Collapse,wo=z.forwardRef(({reqRows:e,subRows:r,border:t=!1,labelDisplay:n,header:i},o)=>{const[a]=Y.Form.useForm(),[s,c]=z.useState("1"),d=()=>n?{flex:n.md||n.lg||n.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 f=()=>{c(l=>l.includes("subRows")?l.filter(u=>u!=="subRows"):[...l,"subRows"])};return k.jsxs("div",{style:t?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[i&&k.jsx(xo,{title:i.title,children:i.buttons}),k.jsx(Y.Form,{form:a,layout:"inline",style:{width:"100%",paddingBottom:e||r?"10px":"0px"},labelCol:d(),labelAlign:"left",children:k.jsxs("div",{style:{position:"relative",width:"100%"},children:[r&&k.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:s.includes("subRows")?k.jsx(Y.Tooltip,{title:"접기",children:k.jsx("span",{className:"search-collapsed-arrow",onClick:f,children:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:k.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"})})})}):k.jsx(Y.Tooltip,{title:"펼치기",children:k.jsx("span",{className:"search-collapsed-arrow",onClick:f,children:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:k.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"})})})})}),k.jsx(Y.ConfigProvider,{theme:{components:{Collapse:{}}},children:k.jsxs(Y.Collapse,{activeKey:["reqRows",...s.includes("subRows")?["subRows"]:[]],onChange:c,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&k.jsx(lc,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),r&&k.jsx(lc,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:r},"subRows")]})})]})})]})}),Yg=({children:e,showSearchBox:r,showCloseButton:t=!0,showEyesButton:n=!1,shotSettingButton:i=!0,styles:o,...a})=>{const[s,c]=z.useState(!0),[d,f]=z.useState(()=>{const m=a.placement;return m==="left"||m==="right"||m==="top"||m==="bottom"?m:"bottom"}),[l,u]=z.useState(!1),v=(m=>{const g={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(m){case"bottom":return{...g,wrapper:{...g.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...g.header,borderRadius:"30px 30px 0 0"}};case"top":return{...g,wrapper:{...g.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...g.header}};case"left":return{...g,wrapper:{...g.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...g.header,borderRadius:"0 30px 0 0"}};case"right":return{...g,wrapper:{...g.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...g.header,borderRadius:"30px 0 0 0"}};default:return g}})(d),b={wrapper:{...v?.wrapper,...o?.wrapper},content:{...v?.content,...o?.content},header:{...v?.header,...o?.header}},p=()=>{const m=[];if(i){const g=[{key:"top",label:"상단",icon:k.jsx(Re.CaretUpOutlined,{})},{key:"right",label:"우측",icon:k.jsx(Re.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:k.jsx(Re.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:k.jsx(Re.CaretLeftOutlined,{})}],x=k.jsx(Y.Space.Compact,{children:g.map(y=>k.jsx(Y.Button,{type:d===y.key?"primary":"default",size:"small",onClick:()=>{f(y.key),u(!1)},icon:y.icon},y.key))});m.push(k.jsx(Y.Popover,{content:x,trigger:"click",placement:"left",open:l,onOpenChange:u,children:k.jsx(Y.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:k.jsx(Y.Button,{icon:k.jsx(Re.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return n&&m.push(k.jsx(Y.Tooltip,{placement:"bottom",title:s?"배경 보기":"배경 숨기기",zIndex:2100,children:k.jsx(Y.Button,{icon:k.jsx(Re.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>c(!s)})},"eyes")),a.extra&&m.push(k.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),t&&m.push(k.jsx(Y.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:k.jsx(Y.Button,{icon:k.jsx(Re.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),m};return k.jsx(Y.Drawer,{className:"main-drawer",footer:!0,...a,placement:d,styles:b,maskClosable:!1,closable:!1,mask:s,extra:k.jsx(Y.Space,{size:"small",align:"center",children:p()}),afterOpenChange:m=>{m||(c(!0),f(a.placement)),a.afterOpenChange?.(m)},destroyOnHidden:!0,children:r?k.jsxs(Wr,{type:"vertical",children:[k.jsxs(Y.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[k.jsx("div",{children:r.title}),k.jsx(Y.Flex,{gap:2,children:r.extra})]}),k.jsx(wo,{...r.searchBox}),k.jsx(Y.Divider,{}),e]}):e})};/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:Wh,setPrototypeOf:uc,isFrozen:Xg,getPrototypeOf:Zg,getOwnPropertyDescriptor:Qg}=Object;let{freeze:kt,seal:Yt,create:Gh}=Object,{apply:ml,construct:yl}=typeof Reflect<"u"&&Reflect;kt||(kt=function(r){return r});Yt||(Yt=function(r){return r});ml||(ml=function(r,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return r.apply(t,i)});yl||(yl=function(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new r(...n)});const ji=Pt(Array.prototype.forEach),Jg=Pt(Array.prototype.lastIndexOf),cc=Pt(Array.prototype.pop),$n=Pt(Array.prototype.push),em=Pt(Array.prototype.splice),Yi=Pt(String.prototype.toLowerCase),na=Pt(String.prototype.toString),ia=Pt(String.prototype.match),Bn=Pt(String.prototype.replace),tm=Pt(String.prototype.indexOf),rm=Pt(String.prototype.trim),ir=Pt(Object.prototype.hasOwnProperty),Tt=Pt(RegExp.prototype.test),qn=nm(TypeError);function Pt(e){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return ml(e,r,n)}}function nm(e){return function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return yl(e,t)}}function Ie(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yi;uc&&uc(e,null);let n=r.length;for(;n--;){let i=r[n];if(typeof i=="string"){const o=t(i);o!==i&&(Xg(r)||(r[n]=o),i=o)}e[i]=!0}return e}function im(e){for(let r=0;r<e.length;r++)ir(e,r)||(e[r]=null);return e}function br(e){const r=Gh(null);for(const[t,n]of Wh(e))ir(e,t)&&(Array.isArray(n)?r[t]=im(n):n&&typeof n=="object"&&n.constructor===Object?r[t]=br(n):r[t]=n);return r}function zn(e,r){for(;e!==null;){const n=Qg(e,r);if(n){if(n.get)return Pt(n.get);if(typeof n.value=="function")return Pt(n.value)}e=Zg(e)}function t(){return null}return t}const fc=kt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),oa=kt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),aa=kt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),om=kt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),sa=kt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),am=kt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dc=kt(["#text"]),hc=kt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),la=kt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),pc=kt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ii=kt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),sm=Yt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),lm=Yt(/<%[\w\W]*|[\w\W]*%>/gm),um=Yt(/\$\{[\w\W]*/gm),cm=Yt(/^data-[\-\w.\u00B7-\uFFFF]+$/),fm=Yt(/^aria-[\-\w]+$/),Kh=Yt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dm=Yt(/^(?:\w+script|data):/i),hm=Yt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yh=Yt(/^html$/i),pm=Yt(/^[a-z][.\w]*(-[.\w]+)+$/i);var vc=Object.freeze({__proto__:null,ARIA_ATTR:fm,ATTR_WHITESPACE:hm,CUSTOM_ELEMENT:pm,DATA_ATTR:cm,DOCTYPE_NAME:Yh,ERB_EXPR:lm,IS_ALLOWED_URI:Kh,IS_SCRIPT_OR_DATA:dm,MUSTACHE_EXPR:sm,TMPLIT_EXPR:um});const Hn={element:1,text:3,progressingInstruction:7,comment:8,document:9},vm=function(){return typeof window>"u"?null:window},gm=function(r,t){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return r.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},gc=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Xh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vm();const r=ye=>Xh(ye);if(r.version="3.2.7",r.removed=[],!e||!e.document||e.document.nodeType!==Hn.document||!e.Element)return r.isSupported=!1,r;let{document:t}=e;const n=t,i=n.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:l,DOMParser:u,trustedTypes:h}=e,v=c.prototype,b=zn(v,"cloneNode"),p=zn(v,"remove"),m=zn(v,"nextSibling"),g=zn(v,"childNodes"),x=zn(v,"parentNode");if(typeof a=="function"){const ye=t.createElement("template");ye.content&&ye.content.ownerDocument&&(t=ye.content.ownerDocument)}let y,w="";const{implementation:_,createNodeIterator:S,createDocumentFragment:E,getElementsByTagName:R}=t,{importNode:T}=n;let C=gc();r.isSupported=typeof Wh=="function"&&typeof x=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:O,ERB_EXPR:A,TMPLIT_EXPR:P,DATA_ATTR:I,ARIA_ATTR:$,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:D}=vc;let{IS_ALLOWED_URI:F}=vc,N=null;const L=Ie({},[...fc,...oa,...aa,...sa,...dc]);let B=null;const X=Ie({},[...hc,...la,...pc,...Ii]);let W=Object.seal(Gh(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,j=null,V=!0,U=!0,K=!1,J=!0,ne=!1,ce=!0,re=!1,de=!1,oe=!1,se=!1,Q=!1,ee=!1,ue=!0,le=!1;const ae="user-content-";let pe=!0,fe=!1,me={},Oe=null;const qe=Ie({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ce=null;const Ke=Ie({},["audio","video","img","source","image","track"]);let ke=null;const Pe=Ie({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Fe="http://www.w3.org/1998/Math/MathML",Ne="http://www.w3.org/2000/svg",we="http://www.w3.org/1999/xhtml";let Ve=we,xe=!1,Ee=null;const at=Ie({},[Fe,Ne,we],na);let Nt=Ie({},["mi","mo","mn","ms","mtext"]),zt=Ie({},["annotation-xml"]);const Tr=Ie({},["title","style","font","a","script"]);let Jt=null;const Ar=["application/xhtml+xml","text/html"],Lt="text/html";let Le=null,Xe=null;const er=t.createElement("form"),pt=function(Z){return Z instanceof RegExp||Z instanceof Function},$e=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Xe&&Xe===Z)){if((!Z||typeof Z!="object")&&(Z={}),Z=br(Z),Jt=Ar.indexOf(Z.PARSER_MEDIA_TYPE)===-1?Lt:Z.PARSER_MEDIA_TYPE,Le=Jt==="application/xhtml+xml"?na:Yi,N=ir(Z,"ALLOWED_TAGS")?Ie({},Z.ALLOWED_TAGS,Le):L,B=ir(Z,"ALLOWED_ATTR")?Ie({},Z.ALLOWED_ATTR,Le):X,Ee=ir(Z,"ALLOWED_NAMESPACES")?Ie({},Z.ALLOWED_NAMESPACES,na):at,ke=ir(Z,"ADD_URI_SAFE_ATTR")?Ie(br(Pe),Z.ADD_URI_SAFE_ATTR,Le):Pe,Ce=ir(Z,"ADD_DATA_URI_TAGS")?Ie(br(Ke),Z.ADD_DATA_URI_TAGS,Le):Ke,Oe=ir(Z,"FORBID_CONTENTS")?Ie({},Z.FORBID_CONTENTS,Le):qe,q=ir(Z,"FORBID_TAGS")?Ie({},Z.FORBID_TAGS,Le):br({}),j=ir(Z,"FORBID_ATTR")?Ie({},Z.FORBID_ATTR,Le):br({}),me=ir(Z,"USE_PROFILES")?Z.USE_PROFILES:!1,V=Z.ALLOW_ARIA_ATTR!==!1,U=Z.ALLOW_DATA_ATTR!==!1,K=Z.ALLOW_UNKNOWN_PROTOCOLS||!1,J=Z.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ne=Z.SAFE_FOR_TEMPLATES||!1,ce=Z.SAFE_FOR_XML!==!1,re=Z.WHOLE_DOCUMENT||!1,se=Z.RETURN_DOM||!1,Q=Z.RETURN_DOM_FRAGMENT||!1,ee=Z.RETURN_TRUSTED_TYPE||!1,oe=Z.FORCE_BODY||!1,ue=Z.SANITIZE_DOM!==!1,le=Z.SANITIZE_NAMED_PROPS||!1,pe=Z.KEEP_CONTENT!==!1,fe=Z.IN_PLACE||!1,F=Z.ALLOWED_URI_REGEXP||Kh,Ve=Z.NAMESPACE||we,Nt=Z.MATHML_TEXT_INTEGRATION_POINTS||Nt,zt=Z.HTML_INTEGRATION_POINTS||zt,W=Z.CUSTOM_ELEMENT_HANDLING||{},Z.CUSTOM_ELEMENT_HANDLING&&pt(Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Z.CUSTOM_ELEMENT_HANDLING&&pt(Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Z.CUSTOM_ELEMENT_HANDLING&&typeof Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ne&&(U=!1),Q&&(se=!0),me&&(N=Ie({},dc),B=[],me.html===!0&&(Ie(N,fc),Ie(B,hc)),me.svg===!0&&(Ie(N,oa),Ie(B,la),Ie(B,Ii)),me.svgFilters===!0&&(Ie(N,aa),Ie(B,la),Ie(B,Ii)),me.mathMl===!0&&(Ie(N,sa),Ie(B,pc),Ie(B,Ii))),Z.ADD_TAGS&&(N===L&&(N=br(N)),Ie(N,Z.ADD_TAGS,Le)),Z.ADD_ATTR&&(B===X&&(B=br(B)),Ie(B,Z.ADD_ATTR,Le)),Z.ADD_URI_SAFE_ATTR&&Ie(ke,Z.ADD_URI_SAFE_ATTR,Le),Z.FORBID_CONTENTS&&(Oe===qe&&(Oe=br(Oe)),Ie(Oe,Z.FORBID_CONTENTS,Le)),pe&&(N["#text"]=!0),re&&Ie(N,["html","head","body"]),N.table&&(Ie(N,["tbody"]),delete q.tbody),Z.TRUSTED_TYPES_POLICY){if(typeof Z.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Z.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=Z.TRUSTED_TYPES_POLICY,w=y.createHTML("")}else y===void 0&&(y=gm(h,i)),y!==null&&typeof w=="string"&&(w=y.createHTML(""));kt&&kt(Z),Xe=Z}},Be=Ie({},[...oa,...aa,...om]),ft=Ie({},[...sa,...am]),Ht=function(Z){let he=x(Z);(!he||!he.tagName)&&(he={namespaceURI:Ve,tagName:"template"});const ge=Yi(Z.tagName),He=Yi(he.tagName);return Ee[Z.namespaceURI]?Z.namespaceURI===Ne?he.namespaceURI===we?ge==="svg":he.namespaceURI===Fe?ge==="svg"&&(He==="annotation-xml"||Nt[He]):!!Be[ge]:Z.namespaceURI===Fe?he.namespaceURI===we?ge==="math":he.namespaceURI===Ne?ge==="math"&&zt[He]:!!ft[ge]:Z.namespaceURI===we?he.namespaceURI===Ne&&!zt[He]||he.namespaceURI===Fe&&!Nt[He]?!1:!ft[ge]&&(Tr[ge]||!Be[ge]):!!(Jt==="application/xhtml+xml"&&Ee[Z.namespaceURI]):!1},Je=function(Z){$n(r.removed,{element:Z});try{x(Z).removeChild(Z)}catch{p(Z)}},Ue=function(Z,he){try{$n(r.removed,{attribute:he.getAttributeNode(Z),from:he})}catch{$n(r.removed,{attribute:null,from:he})}if(he.removeAttribute(Z),Z==="is")if(se||Q)try{Je(he)}catch{}else try{he.setAttribute(Z,"")}catch{}},tr=function(Z){let he=null,ge=null;if(oe)Z="<remove></remove>"+Z;else{const nt=ia(Z,/^[\r\n\t ]+/);ge=nt&&nt[0]}Jt==="application/xhtml+xml"&&Ve===we&&(Z='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Z+"</body></html>");const He=y?y.createHTML(Z):Z;if(Ve===we)try{he=new u().parseFromString(He,Jt)}catch{}if(!he||!he.documentElement){he=_.createDocument(Ve,"template",null);try{he.documentElement.innerHTML=xe?w:He}catch{}}const dt=he.body||he.documentElement;return Z&&ge&&dt.insertBefore(t.createTextNode(ge),dt.childNodes[0]||null),Ve===we?R.call(he,re?"html":"body")[0]:re?he.documentElement:dt},Vt=function(Z){return S.call(Z.ownerDocument||Z,Z,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},ze=function(Z){return Z instanceof l&&(typeof Z.nodeName!="string"||typeof Z.textContent!="string"||typeof Z.removeChild!="function"||!(Z.attributes instanceof f)||typeof Z.removeAttribute!="function"||typeof Z.setAttribute!="function"||typeof Z.namespaceURI!="string"||typeof Z.insertBefore!="function"||typeof Z.hasChildNodes!="function")},rt=function(Z){return typeof s=="function"&&Z instanceof s};function et(ye,Z,he){ji(ye,ge=>{ge.call(r,Z,he,Xe)})}const vt=function(Z){let he=null;if(et(C.beforeSanitizeElements,Z,null),ze(Z))return Je(Z),!0;const ge=Le(Z.nodeName);if(et(C.uponSanitizeElement,Z,{tagName:ge,allowedTags:N}),ce&&Z.hasChildNodes()&&!rt(Z.firstElementChild)&&Tt(/<[/\w!]/g,Z.innerHTML)&&Tt(/<[/\w!]/g,Z.textContent)||Z.nodeType===Hn.progressingInstruction||ce&&Z.nodeType===Hn.comment&&Tt(/<[/\w]/g,Z.data))return Je(Z),!0;if(!N[ge]||q[ge]){if(!q[ge]&&mr(ge)&&(W.tagNameCheck instanceof RegExp&&Tt(W.tagNameCheck,ge)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ge)))return!1;if(pe&&!Oe[ge]){const He=x(Z)||Z.parentNode,dt=g(Z)||Z.childNodes;if(dt&&He){const nt=dt.length;for(let lt=nt-1;lt>=0;--lt){const Mt=b(dt[lt],!0);Mt.__removalCount=(Z.__removalCount||0)+1,He.insertBefore(Mt,m(Z))}}}return Je(Z),!0}return Z instanceof c&&!Ht(Z)||(ge==="noscript"||ge==="noembed"||ge==="noframes")&&Tt(/<\/no(script|embed|frames)/i,Z.innerHTML)?(Je(Z),!0):(ne&&Z.nodeType===Hn.text&&(he=Z.textContent,ji([O,A,P],He=>{he=Bn(he,He," ")}),Z.textContent!==he&&($n(r.removed,{element:Z.cloneNode()}),Z.textContent=he)),et(C.afterSanitizeElements,Z,null),!1)},Dt=function(Z,he,ge){if(ue&&(he==="id"||he==="name")&&(ge in t||ge in er))return!1;if(!(U&&!j[he]&&Tt(I,he))){if(!(V&&Tt($,he))){if(!B[he]||j[he]){if(!(mr(Z)&&(W.tagNameCheck instanceof RegExp&&Tt(W.tagNameCheck,Z)||W.tagNameCheck instanceof Function&&W.tagNameCheck(Z))&&(W.attributeNameCheck instanceof RegExp&&Tt(W.attributeNameCheck,he)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(he,Z))||he==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&Tt(W.tagNameCheck,ge)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ge))))return!1}else if(!ke[he]){if(!Tt(F,Bn(ge,G,""))){if(!((he==="src"||he==="xlink:href"||he==="href")&&Z!=="script"&&tm(ge,"data:")===0&&Ce[Z])){if(!(K&&!Tt(H,Bn(ge,G,"")))){if(ge)return!1}}}}}}return!0},mr=function(Z){return Z!=="annotation-xml"&&ia(Z,D)},jt=function(Z){et(C.beforeSanitizeAttributes,Z,null);const{attributes:he}=Z;if(!he||ze(Z))return;const ge={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let He=he.length;for(;He--;){const dt=he[He],{name:nt,namespaceURI:lt,value:Mt}=dt,ur=Le(nt),Rr=Mt;let ut=nt==="value"?Rr:rm(Rr);if(ge.attrName=ur,ge.attrValue=ut,ge.keepAttr=!0,ge.forceKeepAttr=void 0,et(C.uponSanitizeAttribute,Z,ge),ut=ge.attrValue,le&&(ur==="id"||ur==="name")&&(Ue(nt,Z),ut=ae+ut),ce&&Tt(/((--!?|])>)|<\/(style|title|textarea)/i,ut)){Ue(nt,Z);continue}if(ur==="attributename"&&ia(ut,"href")){Ue(nt,Z);continue}if(ge.forceKeepAttr)continue;if(!ge.keepAttr){Ue(nt,Z);continue}if(!J&&Tt(/\/>/i,ut)){Ue(nt,Z);continue}ne&&ji([O,A,P],fr=>{ut=Bn(ut,fr," ")});const cr=Le(Z.nodeName);if(!Dt(cr,ur,ut)){Ue(nt,Z);continue}if(y&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!lt)switch(h.getAttributeType(cr,ur)){case"TrustedHTML":{ut=y.createHTML(ut);break}case"TrustedScriptURL":{ut=y.createScriptURL(ut);break}}if(ut!==Rr)try{lt?Z.setAttributeNS(lt,nt,ut):Z.setAttribute(nt,ut),ze(Z)?Je(Z):cc(r.removed)}catch{Ue(nt,Z)}}et(C.afterSanitizeAttributes,Z,null)},It=function ye(Z){let he=null;const ge=Vt(Z);for(et(C.beforeSanitizeShadowDOM,Z,null);he=ge.nextNode();)et(C.uponSanitizeShadowNode,he,null),vt(he),jt(he),he.content instanceof o&&ye(he.content);et(C.afterSanitizeShadowDOM,Z,null)};return r.sanitize=function(ye){let Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=null,ge=null,He=null,dt=null;if(xe=!ye,xe&&(ye="<!-->"),typeof ye!="string"&&!rt(ye))if(typeof ye.toString=="function"){if(ye=ye.toString(),typeof ye!="string")throw qn("dirty is not a string, aborting")}else throw qn("toString is not a function");if(!r.isSupported)return ye;if(de||$e(Z),r.removed=[],typeof ye=="string"&&(fe=!1),fe){if(ye.nodeName){const Mt=Le(ye.nodeName);if(!N[Mt]||q[Mt])throw qn("root node is forbidden and cannot be sanitized in-place")}}else if(ye instanceof s)he=tr("<!---->"),ge=he.ownerDocument.importNode(ye,!0),ge.nodeType===Hn.element&&ge.nodeName==="BODY"||ge.nodeName==="HTML"?he=ge:he.appendChild(ge);else{if(!se&&!ne&&!re&&ye.indexOf("<")===-1)return y&&ee?y.createHTML(ye):ye;if(he=tr(ye),!he)return se?null:ee?w:""}he&&oe&&Je(he.firstChild);const nt=Vt(fe?ye:he);for(;He=nt.nextNode();)vt(He),jt(He),He.content instanceof o&&It(He.content);if(fe)return ye;if(se){if(Q)for(dt=E.call(he.ownerDocument);he.firstChild;)dt.appendChild(he.firstChild);else dt=he;return(B.shadowroot||B.shadowrootmode)&&(dt=T.call(n,dt,!0)),dt}let lt=re?he.outerHTML:he.innerHTML;return re&&N["!doctype"]&&he.ownerDocument&&he.ownerDocument.doctype&&he.ownerDocument.doctype.name&&Tt(Yh,he.ownerDocument.doctype.name)&&(lt="<!DOCTYPE "+he.ownerDocument.doctype.name+`>
|
|
2
|
-
`+lt),ne&&ji([O,A,P],Mt=>{lt=Bn(lt,Mt," ")}),y&&ee?y.createHTML(lt):lt},r.setConfig=function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$e(ye),de=!0},r.clearConfig=function(){Xe=null,de=!1},r.isValidAttribute=function(ye,Z,he){Xe||$e({});const ge=Le(ye),He=Le(Z);return Dt(ge,He,he)},r.addHook=function(ye,Z){typeof Z=="function"&&$n(C[ye],Z)},r.removeHook=function(ye,Z){if(Z!==void 0){const he=Jg(C[ye],Z);return he===-1?void 0:em(C[ye],he,1)[0]}return cc(C[ye])},r.removeHooks=function(ye){C[ye]=[]},r.removeAllHooks=function(){C=gc()},r}var mm=Xh(),Xi={exports:{}},ym=Xi.exports,mc;function bm(){return mc||(mc=1,(function(e,r){(function(t,n){e.exports=n()})(ym,function(){return(function(t){function n(o){if(i[o])return i[o].exports;var a=i[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var i={};return n.m=t,n.c=i,n.i=function(o){return o},n.d=function(o,a,s){n.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:s})},n.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(a,"a",a),a},n.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},n.p="",n(n.s=38)})([function(t,n){function i(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}t.exports=i},function(t,n,i){var o=i(22),a=typeof self=="object"&&self&&self.Object===Object&&self,s=o||a||Function("return this")();t.exports=s},function(t,n){function i(o){return o!=null&&typeof o=="object"}t.exports=i},function(t,n,i){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=i(75),s=i(76),c=i(77),d=i(78),f=i(79);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=c,o.prototype.has=d,o.prototype.set=f,t.exports=o},function(t,n,i){function o(s,c){for(var d=s.length;d--;)if(a(s[d][0],c))return d;return-1}var a=i(8);t.exports=o},function(t,n,i){function o(u){return u==null?u===void 0?f:d:l&&l in Object(u)?s(u):c(u)}var a=i(16),s=i(64),c=i(87),d="[object Null]",f="[object Undefined]",l=a?a.toStringTag:void 0;t.exports=o},function(t,n,i){function o(s,c){var d=s.__data__;return a(c)?d[typeof c=="string"?"string":"hash"]:d.map}var a=i(73);t.exports=o},function(t,n,i){var o=i(11),a=o(Object,"create");t.exports=a},function(t,n){function i(o,a){return o===a||o!==o&&a!==a}t.exports=i},function(t,n,i){function o(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}i.d(n,"a",function(){return a});var a=function s(c){o(this,s),this.onCreate=function(){},this.onDestroy=function(){},this.onUpdate=function(){},this.overlay=c.overlay,this.img=c.img,this.options=c.options,this.requestUpdate=c.onUpdate}},function(t,n,i){function o(s,c,d){c=="__proto__"&&a?a(s,c,{configurable:!0,enumerable:!0,value:d,writable:!0}):s[c]=d}var a=i(21);t.exports=o},function(t,n,i){function o(c,d){var f=s(c,d);return a(f)?f:void 0}var a=i(48),s=i(65);t.exports=o},function(t,n,i){function o(c){return c!=null&&s(c.length)&&!a(c)}var a=i(13),s=i(30);t.exports=o},function(t,n,i){function o(u){if(!s(u))return!1;var h=a(u);return h==d||h==f||h==c||h==l}var a=i(5),s=i(0),c="[object AsyncFunction]",d="[object Function]",f="[object GeneratorFunction]",l="[object Proxy]";t.exports=o},function(t,n){t.exports=function(i){return i.webpackPolyfill||(i.deprecate=function(){},i.paths=[],i.children||(i.children=[]),Object.defineProperty(i,"loaded",{enumerable:!0,get:function(){return i.l}}),Object.defineProperty(i,"id",{enumerable:!0,get:function(){return i.i}}),i.webpackPolyfill=1),i}},function(t,n,i){var o=i(11),a=i(1),s=o(a,"Map");t.exports=s},function(t,n,i){var o=i(1),a=o.Symbol;t.exports=a},function(t,n){function i(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=i},function(t,n,i){function o(c,d,f){(f===void 0||s(c[d],f))&&(f!==void 0||d in c)||a(c,d,f)}var a=i(10),s=i(8);t.exports=o},function(t,n,i){function o(u,h,v,b,p){u!==h&&c(h,function(m,g){if(f(m))p||(p=new a),d(u,h,g,v,o,b,p);else{var x=b?b(u[g],m,g+"",u,h,p):void 0;x===void 0&&(x=m),s(u,g,x)}},l)}var a=i(41),s=i(18),c=i(46),d=i(51),f=i(0),l=i(32);t.exports=o},function(t,n,i){function o(d,f){return c(s(d,f,a),d+"")}var a=i(26),s=i(89),c=i(90);t.exports=o},function(t,n,i){var o=i(11),a=(function(){try{var s=o(Object,"defineProperty");return s({},"",{}),s}catch{}})();t.exports=a},function(t,n,i){(function(o){var a=typeof o=="object"&&o&&o.Object===Object&&o;t.exports=a}).call(n,i(107))},function(t,n,i){var o=i(88),a=o(Object.getPrototypeOf,Object);t.exports=a},function(t,n){function i(s,c){return!!(c=c??o)&&(typeof s=="number"||a.test(s))&&s>-1&&s%1==0&&s<c}var o=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=i},function(t,n){function i(a){var s=a&&a.constructor;return a===(typeof s=="function"&&s.prototype||o)}var o=Object.prototype;t.exports=i},function(t,n){function i(o){return o}t.exports=i},function(t,n,i){var o=i(47),a=i(2),s=Object.prototype,c=s.hasOwnProperty,d=s.propertyIsEnumerable,f=o((function(){return arguments})())?o:function(l){return a(l)&&c.call(l,"callee")&&!d.call(l,"callee")};t.exports=f},function(t,n){var i=Array.isArray;t.exports=i},function(t,n,i){(function(o){var a=i(1),s=i(102),c=typeof n=="object"&&n&&!n.nodeType&&n,d=c&&typeof o=="object"&&o&&!o.nodeType&&o,f=d&&d.exports===c,l=f?a.Buffer:void 0,u=l?l.isBuffer:void 0,h=u||s;o.exports=h}).call(n,i(14)(t))},function(t,n){function i(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=o}var o=9007199254740991;t.exports=i},function(t,n,i){var o=i(49),a=i(54),s=i(86),c=s&&s.isTypedArray,d=c?a(c):o;t.exports=d},function(t,n,i){function o(d){return c(d)?a(d,!0):s(d)}var a=i(43),s=i(50),c=i(12);t.exports=o},function(t,n,i){n.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,n,i){function o(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function a(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?f:l}function s(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var c=i(9);i.d(n,"a",function(){return d});var d=(function(f){function l(){var u,h,v,b;o(this,l);for(var p=arguments.length,m=Array(p),g=0;g<p;g++)m[g]=arguments[g];return h=v=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(m))),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 y=v.display.getBoundingClientRect();Object.assign(v.display.style,{right:"auto",bottom:"-"+(y.height+4)+"px",left:"-"+(y.width+4)+"px"})}else{var w=v.display.getBoundingClientRect();Object.assign(v.display.style,{right:"-"+(w.width+4)+"px",bottom:"-"+(w.height+4)+"px",left:"auto"})}}},v.getCurrentSize=function(){return[v.img.width,Math.round(v.img.width/v.img.naturalWidth*v.img.naturalHeight)]},b=h,a(v,b)}return s(l,f),l})(c.a)},function(t,n,i){function o(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function a(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?f:l}function s(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var c=i(9);i.d(n,"a",function(){return d});var d=(function(f){function l(){var u,h,v,b;o(this,l);for(var p=arguments.length,m=Array(p),g=0;g<p;g++)m[g]=arguments[g];return h=v=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(m))),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",y=-parseFloat(v.options.handleStyles.height)/2+"px";[{left:x,top:y},{right:x,top:y},{right:x,bottom:y},{left:x,bottom:y}].forEach(function(w,_){Object.assign(v.boxes[_].style,w)})},v.addBox=function(x){var y=document.createElement("div");Object.assign(y.style,v.options.handleStyles),y.style.cursor=x,y.style.width=v.options.handleStyles.width+"px",y.style.height=v.options.handleStyles.height+"px",y.addEventListener("mousedown",v.handleMousedown,!1),v.overlay.appendChild(y),v.boxes.push(y)},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 y=x.clientX-v.dragStartX;v.dragBox===v.boxes[0]||v.dragBox===v.boxes[3]?v.img.width=Math.round(v.preDragWidth-y):v.img.width=Math.round(v.preDragWidth+y),v.requestUpdate()}},v.setCursor=function(x){[document.body,v.img].forEach(function(y){y.style.cursor=x})},b=h,a(v,b)}return s(l,f),l})(c.a)},function(t,n,i){function o(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function a(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||typeof w!="object"&&typeof w!="function"?y:w}function s(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var c=i(105),d=i.n(c),f=i(104),l=i.n(f),u=i(106),h=i.n(u),v=i(9);i.d(n,"a",function(){return x});var b={},p={},m={},g={},x=(function(y){function w(){var _,S,E,R;o(this,w);for(var T=arguments.length,C=Array(T),O=0;O<T;O++)C[O]=arguments[O];return S=E=a(this,(_=w.__proto__||Object.getPrototypeOf(w)).call.apply(_,[this].concat(C))),E.onCreate=function(A){b=A,p=new b.Attributor.Style("float","float"),m=new b.Attributor.Style("margin","margin"),g=new b.Attributor.Style("display","display"),E.toolbar=document.createElement("div"),Object.assign(E.toolbar.style,E.options.toolbarStyles),E.overlay.appendChild(E.toolbar),E._defineAlignments(),E._addToolbarButtons()},E.onDestroy=function(){},E.onUpdate=function(){},E._defineAlignments=function(){E.alignments=[{icon:d.a,apply:function(){g.add(E.img,"inline"),p.add(E.img,"left"),m.add(E.img,"0 1em 1em 0")},isApplied:function(){return p.value(E.img)=="left"}},{icon:l.a,apply:function(){g.add(E.img,"block"),p.remove(E.img),m.add(E.img,"auto")},isApplied:function(){return m.value(E.img)=="auto"}},{icon:h.a,apply:function(){g.add(E.img,"inline"),p.add(E.img,"right"),m.add(E.img,"0 0 1em 1em")},isApplied:function(){return p.value(E.img)=="right"}}]},E._addToolbarButtons=function(){var A=[];E.alignments.forEach(function(P,I){var $=document.createElement("span");A.push($),$.innerHTML=P.icon,$.addEventListener("click",function(){A.forEach(function(H){return H.style.filter=""}),P.isApplied()?(p.remove(E.img),m.remove(E.img),g.remove(E.img)):(E._selectButton($),P.apply()),E.requestUpdate()}),Object.assign($.style,E.options.toolbarButtonStyles),I>0&&($.style.borderLeftWidth="0"),Object.assign($.children[0].style,E.options.toolbarButtonSvgStyles),P.isApplied()&&E._selectButton($),E.toolbar.appendChild($)})},E._selectButton=function(A){A.style.filter="invert(20%)"},R=S,a(E,R)}return s(w,y),w})(v.a)},function(t,n,i){var o=i(17),a=i(20),s=i(63),c=i(101),d=a(function(f){return f.push(void 0,s),o(c,void 0,f)});t.exports=d},function(t,n,i){function o(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var a=i(37),s=i.n(a),c=i(33),d=i(34),f=i(36),l=i(35),u={DisplaySize:d.a,Toolbar:f.a,Resize:l.a},h=function v(b){var p=this,m=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,y=p.img.getBoundingClientRect(),w=x.getBoundingClientRect();Object.assign(p.overlay.style,{left:y.left-w.left-1+x.scrollLeft+"px",top:y.top-w.top+x.scrollTop+"px",width:y.width+"px",height:y.height+"px"})}},this.hide=function(){p.hideOverlay(),p.removeModules(),p.img=void 0},this.setUserSelect=function(x){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(y){p.quill.root.style[y]=x,document.documentElement.style[y]=x})},this.checkImage=function(x){p.img&&(x.keyCode!=46&&x.keyCode!=8||window.Quill.find(p.img).deleteAt(0),p.hide())},this.quill=b;var g=!1;m.modules&&(g=m.modules.slice()),m.parchment&&(this.parchment=m.parchment),this.options=s()({},m,c.a),g!==!1&&(this.options.modules=g),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=[]};n.default=h,window.Quill&&window.Quill.register("modules/imageResize",h)},function(t,n,i){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=i(66),s=i(67),c=i(68),d=i(69),f=i(70);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=c,o.prototype.has=d,o.prototype.set=f,t.exports=o},function(t,n,i){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=i(80),s=i(81),c=i(82),d=i(83),f=i(84);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=c,o.prototype.has=d,o.prototype.set=f,t.exports=o},function(t,n,i){function o(u){var h=this.__data__=new a(u);this.size=h.size}var a=i(3),s=i(92),c=i(93),d=i(94),f=i(95),l=i(96);o.prototype.clear=s,o.prototype.delete=c,o.prototype.get=d,o.prototype.has=f,o.prototype.set=l,t.exports=o},function(t,n,i){var o=i(1),a=o.Uint8Array;t.exports=a},function(t,n,i){function o(v,b){var p=c(v),m=!p&&s(v),g=!p&&!m&&d(v),x=!p&&!m&&!g&&l(v),y=p||m||g||x,w=y?a(v.length,String):[],_=w.length;for(var S in v)!b&&!h.call(v,S)||y&&(S=="length"||g&&(S=="offset"||S=="parent")||x&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||f(S,_))||w.push(S);return w}var a=i(53),s=i(27),c=i(28),d=i(29),f=i(24),l=i(31),u=Object.prototype,h=u.hasOwnProperty;t.exports=o},function(t,n,i){function o(f,l,u){var h=f[l];d.call(f,l)&&s(h,u)&&(u!==void 0||l in f)||a(f,l,u)}var a=i(10),s=i(8),c=Object.prototype,d=c.hasOwnProperty;t.exports=o},function(t,n,i){var o=i(0),a=Object.create,s=(function(){function c(){}return function(d){if(!o(d))return{};if(a)return a(d);c.prototype=d;var f=new c;return c.prototype=void 0,f}})();t.exports=s},function(t,n,i){var o=i(62),a=o();t.exports=a},function(t,n,i){function o(d){return s(d)&&a(d)==c}var a=i(5),s=i(2),c="[object Arguments]";t.exports=o},function(t,n,i){function o(p){return!(!c(p)||s(p))&&(a(p)?b:f).test(d(p))}var a=i(13),s=i(74),c=i(0),d=i(97),f=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,h=l.toString,v=u.hasOwnProperty,b=RegExp("^"+h.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,n,i){function o(f){return c(f)&&s(f.length)&&!!d[a(f)]}var a=i(5),s=i(30),c=i(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,n,i){function o(l){if(!a(l))return c(l);var u=s(l),h=[];for(var v in l)(v!="constructor"||!u&&f.call(l,v))&&h.push(v);return h}var a=i(0),s=i(25),c=i(85),d=Object.prototype,f=d.hasOwnProperty;t.exports=o},function(t,n,i){function o(y,w,_,S,E,R,T){var C=y[_],O=w[_],A=T.get(O);if(A)return void a(y,_,A);var P=R?R(C,O,_+"",y,w,T):void 0,I=P===void 0;if(I){var $=u(O),H=!$&&v(O),G=!$&&!H&&g(O);P=O,$||H||G?u(C)?P=C:h(C)?P=d(C):H?(I=!1,P=s(O,!0)):G?(I=!1,P=c(O,!0)):P=[]:m(O)||l(O)?(P=C,l(C)?P=x(C):(!p(C)||S&&b(C))&&(P=f(O))):I=!1}I&&(T.set(O,P),E(P,O,S,R,T),T.delete(O)),a(y,_,P)}var a=i(18),s=i(56),c=i(57),d=i(58),f=i(71),l=i(27),u=i(28),h=i(99),v=i(29),b=i(13),p=i(0),m=i(100),g=i(31),x=i(103);t.exports=o},function(t,n,i){var o=i(98),a=i(21),s=i(26),c=a?function(d,f){return a(d,"toString",{configurable:!0,enumerable:!1,value:o(f),writable:!0})}:s;t.exports=c},function(t,n){function i(o,a){for(var s=-1,c=Array(o);++s<o;)c[s]=a(s);return c}t.exports=i},function(t,n){function i(o){return function(a){return o(a)}}t.exports=i},function(t,n,i){function o(s){var c=new s.constructor(s.byteLength);return new a(c).set(new a(s)),c}var a=i(42);t.exports=o},function(t,n,i){(function(o){function a(h,v){if(v)return h.slice();var b=h.length,p=u?u(b):new h.constructor(b);return h.copy(p),p}var s=i(1),c=typeof n=="object"&&n&&!n.nodeType&&n,d=c&&typeof o=="object"&&o&&!o.nodeType&&o,f=d&&d.exports===c,l=f?s.Buffer:void 0,u=l?l.allocUnsafe:void 0;o.exports=a}).call(n,i(14)(t))},function(t,n,i){function o(s,c){var d=c?a(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}var a=i(55);t.exports=o},function(t,n){function i(o,a){var s=-1,c=o.length;for(a||(a=Array(c));++s<c;)a[s]=o[s];return a}t.exports=i},function(t,n,i){function o(c,d,f,l){var u=!f;f||(f={});for(var h=-1,v=d.length;++h<v;){var b=d[h],p=l?l(f[b],c[b],b,f,c):void 0;p===void 0&&(p=c[b]),u?s(f,b,p):a(f,b,p)}return f}var a=i(44),s=i(10);t.exports=o},function(t,n,i){var o=i(1),a=o["__core-js_shared__"];t.exports=a},function(t,n,i){function o(c){return a(function(d,f){var l=-1,u=f.length,h=u>1?f[u-1]:void 0,v=u>2?f[2]:void 0;for(h=c.length>3&&typeof h=="function"?(u--,h):void 0,v&&s(f[0],f[1],v)&&(h=u<3?void 0:h,u=1),d=Object(d);++l<u;){var b=f[l];b&&c(d,b,l,h)}return d})}var a=i(20),s=i(72);t.exports=o},function(t,n){function i(o){return function(a,s,c){for(var d=-1,f=Object(a),l=c(a),u=l.length;u--;){var h=l[o?u:++d];if(s(f[h],h,f)===!1)break}return a}}t.exports=i},function(t,n,i){function o(c,d,f,l,u,h){return s(c)&&s(d)&&(h.set(d,c),a(c,d,void 0,o,h),h.delete(d)),c}var a=i(19),s=i(0);t.exports=o},function(t,n,i){function o(l){var u=c.call(l,f),h=l[f];try{l[f]=void 0}catch{}var v=d.call(l);return u?l[f]=h:delete l[f],v}var a=i(16),s=Object.prototype,c=s.hasOwnProperty,d=s.toString,f=a?a.toStringTag:void 0;t.exports=o},function(t,n){function i(o,a){return o?.[a]}t.exports=i},function(t,n,i){function o(){this.__data__=a?a(null):{},this.size=0}var a=i(7);t.exports=o},function(t,n){function i(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}t.exports=i},function(t,n,i){function o(f){var l=this.__data__;if(a){var u=l[f];return u===s?void 0:u}return d.call(l,f)?l[f]:void 0}var a=i(7),s="__lodash_hash_undefined__",c=Object.prototype,d=c.hasOwnProperty;t.exports=o},function(t,n,i){function o(d){var f=this.__data__;return a?f[d]!==void 0:c.call(f,d)}var a=i(7),s=Object.prototype,c=s.hasOwnProperty;t.exports=o},function(t,n,i){function o(c,d){var f=this.__data__;return this.size+=this.has(c)?0:1,f[c]=a&&d===void 0?s:d,this}var a=i(7),s="__lodash_hash_undefined__";t.exports=o},function(t,n,i){function o(d){return typeof d.constructor!="function"||c(d)?{}:a(s(d))}var a=i(45),s=i(23),c=i(25);t.exports=o},function(t,n,i){function o(f,l,u){if(!d(u))return!1;var h=typeof l;return!!(h=="number"?s(u)&&c(l,u.length):h=="string"&&l in u)&&a(u[l],f)}var a=i(8),s=i(12),c=i(24),d=i(0);t.exports=o},function(t,n){function i(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}t.exports=i},function(t,n,i){function o(c){return!!s&&s in c}var a=i(60),s=(function(){var c=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})();t.exports=o},function(t,n){function i(){this.__data__=[],this.size=0}t.exports=i},function(t,n,i){function o(d){var f=this.__data__,l=a(f,d);return!(l<0)&&(l==f.length-1?f.pop():c.call(f,l,1),--this.size,!0)}var a=i(4),s=Array.prototype,c=s.splice;t.exports=o},function(t,n,i){function o(s){var c=this.__data__,d=a(c,s);return d<0?void 0:c[d][1]}var a=i(4);t.exports=o},function(t,n,i){function o(s){return a(this.__data__,s)>-1}var a=i(4);t.exports=o},function(t,n,i){function o(s,c){var d=this.__data__,f=a(d,s);return f<0?(++this.size,d.push([s,c])):d[f][1]=c,this}var a=i(4);t.exports=o},function(t,n,i){function o(){this.size=0,this.__data__={hash:new a,map:new(c||s),string:new a}}var a=i(39),s=i(3),c=i(15);t.exports=o},function(t,n,i){function o(s){var c=a(this,s).delete(s);return this.size-=c?1:0,c}var a=i(6);t.exports=o},function(t,n,i){function o(s){return a(this,s).get(s)}var a=i(6);t.exports=o},function(t,n,i){function o(s){return a(this,s).has(s)}var a=i(6);t.exports=o},function(t,n,i){function o(s,c){var d=a(this,s),f=d.size;return d.set(s,c),this.size+=d.size==f?0:1,this}var a=i(6);t.exports=o},function(t,n){function i(o){var a=[];if(o!=null)for(var s in Object(o))a.push(s);return a}t.exports=i},function(t,n,i){(function(o){var a=i(22),s=typeof n=="object"&&n&&!n.nodeType&&n,c=s&&typeof o=="object"&&o&&!o.nodeType&&o,d=c&&c.exports===s,f=d&&a.process,l=(function(){try{return f&&f.binding&&f.binding("util")}catch{}})();o.exports=l}).call(n,i(14)(t))},function(t,n){function i(s){return a.call(s)}var o=Object.prototype,a=o.toString;t.exports=i},function(t,n){function i(o,a){return function(s){return o(a(s))}}t.exports=i},function(t,n,i){function o(c,d,f){return d=s(d===void 0?c.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 b=Array(d+1);++u<d;)b[u]=l[u];return b[d]=f(v),a(c,this,b)}}var a=i(17),s=Math.max;t.exports=o},function(t,n,i){var o=i(52),a=i(91),s=a(o);t.exports=s},function(t,n){function i(c){var d=0,f=0;return function(){var l=s(),u=a-(l-f);if(f=l,u>0){if(++d>=o)return arguments[0]}else d=0;return c.apply(void 0,arguments)}}var o=800,a=16,s=Date.now;t.exports=i},function(t,n,i){function o(){this.__data__=new a,this.size=0}var a=i(3);t.exports=o},function(t,n){function i(o){var a=this.__data__,s=a.delete(o);return this.size=a.size,s}t.exports=i},function(t,n){function i(o){return this.__data__.get(o)}t.exports=i},function(t,n){function i(o){return this.__data__.has(o)}t.exports=i},function(t,n,i){function o(f,l){var u=this.__data__;if(u instanceof a){var h=u.__data__;if(!s||h.length<d-1)return h.push([f,l]),this.size=++u.size,this;u=this.__data__=new c(h)}return u.set(f,l),this.size=u.size,this}var a=i(3),s=i(15),c=i(40),d=200;t.exports=o},function(t,n){function i(s){if(s!=null){try{return a.call(s)}catch{}try{return s+""}catch{}}return""}var o=Function.prototype,a=o.toString;t.exports=i},function(t,n){function i(o){return function(){return o}}t.exports=i},function(t,n,i){function o(c){return s(c)&&a(c)}var a=i(12),s=i(2);t.exports=o},function(t,n,i){function o(b){if(!c(b)||a(b)!=d)return!1;var p=s(b);if(p===null)return!0;var m=h.call(p,"constructor")&&p.constructor;return typeof m=="function"&&m instanceof m&&u.call(m)==v}var a=i(5),s=i(23),c=i(2),d="[object Object]",f=Function.prototype,l=Object.prototype,u=f.toString,h=l.hasOwnProperty,v=u.call(Object);t.exports=o},function(t,n,i){var o=i(19),a=i(61),s=a(function(c,d,f,l){o(c,d,f,l)});t.exports=s},function(t,n){function i(){return!1}t.exports=i},function(t,n,i){function o(c){return a(c,s(c))}var a=i(59),s=i(32);t.exports=o},function(t,n){t.exports=`<svg viewbox="0 0 18 18">
|
|
3
|
-
<line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>
|
|
4
|
-
<line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"></line>
|
|
5
|
-
<line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"></line>
|
|
6
|
-
</svg>`},function(t,n){t.exports=`<svg viewbox="0 0 18 18">
|
|
7
|
-
<line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"></line>
|
|
8
|
-
<line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"></line>
|
|
9
|
-
<line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"></line>
|
|
10
|
-
</svg>`},function(t,n){t.exports=`<svg viewbox="0 0 18 18">
|
|
11
|
-
<line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>
|
|
12
|
-
<line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"></line>
|
|
13
|
-
<line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"></line>
|
|
14
|
-
</svg>`},function(t,n){var i;i=(function(){return this})();try{i=i||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(i=window)}t.exports=i}])})})(Xi)),Xi.exports}var xm=bm();const wm=Me.getDefaultExportFromCjs(xm);var ua,yc;function Sm(){if(yc)return ua;yc=1;function e(){this.__data__=[],this.size=0}return ua=e,ua}var ca,bc;function Zh(){if(bc)return ca;bc=1;function e(r,t){return r===t||r!==r&&t!==t}return ca=e,ca}var fa,xc;function So(){if(xc)return fa;xc=1;var e=Zh();function r(t,n){for(var i=t.length;i--;)if(e(t[i][0],n))return i;return-1}return fa=r,fa}var da,wc;function Em(){if(wc)return da;wc=1;var e=So(),r=Array.prototype,t=r.splice;function n(i){var o=this.__data__,a=e(o,i);if(a<0)return!1;var s=o.length-1;return a==s?o.pop():t.call(o,a,1),--this.size,!0}return da=n,da}var ha,Sc;function _m(){if(Sc)return ha;Sc=1;var e=So();function r(t){var n=this.__data__,i=e(n,t);return i<0?void 0:n[i][1]}return ha=r,ha}var pa,Ec;function Cm(){if(Ec)return pa;Ec=1;var e=So();function r(t){return e(this.__data__,t)>-1}return pa=r,pa}var va,_c;function Om(){if(_c)return va;_c=1;var e=So();function r(t,n){var i=this.__data__,o=e(i,t);return o<0?(++this.size,i.push([t,n])):i[o][1]=n,this}return va=r,va}var ga,Cc;function Eo(){if(Cc)return ga;Cc=1;var e=Sm(),r=Em(),t=_m(),n=Cm(),i=Om();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var d=a[s];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=t,o.prototype.has=n,o.prototype.set=i,ga=o,ga}var ma,Oc;function Tm(){if(Oc)return ma;Oc=1;var e=Eo();function r(){this.__data__=new e,this.size=0}return ma=r,ma}var ya,Tc;function Am(){if(Tc)return ya;Tc=1;function e(r){var t=this.__data__,n=t.delete(r);return this.size=t.size,n}return ya=e,ya}var ba,Ac;function Rm(){if(Ac)return ba;Ac=1;function e(r){return this.__data__.get(r)}return ba=e,ba}var xa,Rc;function km(){if(Rc)return xa;Rc=1;function e(r){return this.__data__.has(r)}return xa=e,xa}var wa,kc;function Qh(){if(kc)return wa;kc=1;var e=typeof Me.commonjsGlobal=="object"&&Me.commonjsGlobal&&Me.commonjsGlobal.Object===Object&&Me.commonjsGlobal;return wa=e,wa}var Sa,Pc;function _r(){if(Pc)return Sa;Pc=1;var e=Qh(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return Sa=t,Sa}var Ea,Nc;function pu(){if(Nc)return Ea;Nc=1;var e=_r(),r=e.Symbol;return Ea=r,Ea}var _a,jc;function Pm(){if(jc)return _a;jc=1;var e=pu(),r=Object.prototype,t=r.hasOwnProperty,n=r.toString,i=e?e.toStringTag:void 0;function o(a){var s=t.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var f=n.call(a);return d&&(s?a[i]=c:delete a[i]),f}return _a=o,_a}var Ca,Ic;function Nm(){if(Ic)return Ca;Ic=1;var e=Object.prototype,r=e.toString;function t(n){return r.call(n)}return Ca=t,Ca}var Oa,Mc;function _o(){if(Mc)return Oa;Mc=1;var e=pu(),r=Pm(),t=Nm(),n="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?i:n:o&&o in Object(s)?r(s):t(s)}return Oa=a,Oa}var Ta,Lc;function Jh(){if(Lc)return Ta;Lc=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return Ta=e,Ta}var Aa,Dc;function ep(){if(Dc)return Aa;Dc=1;var e=_o(),r=Jh(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(s){if(!r(s))return!1;var c=e(s);return c==n||c==i||c==t||c==o}return Aa=a,Aa}var Ra,Fc;function jm(){if(Fc)return Ra;Fc=1;var e=_r(),r=e["__core-js_shared__"];return Ra=r,Ra}var ka,$c;function Im(){if($c)return ka;$c=1;var e=jm(),r=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function t(n){return!!r&&r in n}return ka=t,ka}var Pa,Bc;function tp(){if(Bc)return Pa;Bc=1;var e=Function.prototype,r=e.toString;function t(n){if(n!=null){try{return r.call(n)}catch{}try{return n+""}catch{}}return""}return Pa=t,Pa}var Na,qc;function Mm(){if(qc)return Na;qc=1;var e=ep(),r=Im(),t=Jh(),n=tp(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,c=a.toString,d=s.hasOwnProperty,f=RegExp("^"+c.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(u){if(!t(u)||r(u))return!1;var h=e(u)?f:o;return h.test(n(u))}return Na=l,Na}var ja,zc;function Lm(){if(zc)return ja;zc=1;function e(r,t){return r?.[t]}return ja=e,ja}var Ia,Hc;function xn(){if(Hc)return Ia;Hc=1;var e=Mm(),r=Lm();function t(n,i){var o=r(n,i);return e(o)?o:void 0}return Ia=t,Ia}var Ma,Vc;function vu(){if(Vc)return Ma;Vc=1;var e=xn(),r=_r(),t=e(r,"Map");return Ma=t,Ma}var La,Uc;function Co(){if(Uc)return La;Uc=1;var e=xn(),r=e(Object,"create");return La=r,La}var Da,Wc;function Dm(){if(Wc)return Da;Wc=1;var e=Co();function r(){this.__data__=e?e(null):{},this.size=0}return Da=r,Da}var Fa,Gc;function Fm(){if(Gc)return Fa;Gc=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return Fa=e,Fa}var $a,Kc;function $m(){if(Kc)return $a;Kc=1;var e=Co(),r="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(o){var a=this.__data__;if(e){var s=a[o];return s===r?void 0:s}return n.call(a,o)?a[o]:void 0}return $a=i,$a}var Ba,Yc;function Bm(){if(Yc)return Ba;Yc=1;var e=Co(),r=Object.prototype,t=r.hasOwnProperty;function n(i){var o=this.__data__;return e?o[i]!==void 0:t.call(o,i)}return Ba=n,Ba}var qa,Xc;function qm(){if(Xc)return qa;Xc=1;var e=Co(),r="__lodash_hash_undefined__";function t(n,i){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=e&&i===void 0?r:i,this}return qa=t,qa}var za,Zc;function zm(){if(Zc)return za;Zc=1;var e=Dm(),r=Fm(),t=$m(),n=Bm(),i=qm();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var d=a[s];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=t,o.prototype.has=n,o.prototype.set=i,za=o,za}var Ha,Qc;function Hm(){if(Qc)return Ha;Qc=1;var e=zm(),r=Eo(),t=vu();function n(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return Ha=n,Ha}var Va,Jc;function Vm(){if(Jc)return Va;Jc=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return Va=e,Va}var Ua,ef;function Oo(){if(ef)return Ua;ef=1;var e=Vm();function r(t,n){var i=t.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Ua=r,Ua}var Wa,tf;function Um(){if(tf)return Wa;tf=1;var e=Oo();function r(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}return Wa=r,Wa}var Ga,rf;function Wm(){if(rf)return Ga;rf=1;var e=Oo();function r(t){return e(this,t).get(t)}return Ga=r,Ga}var Ka,nf;function Gm(){if(nf)return Ka;nf=1;var e=Oo();function r(t){return e(this,t).has(t)}return Ka=r,Ka}var Ya,of;function Km(){if(of)return Ya;of=1;var e=Oo();function r(t,n){var i=e(this,t),o=i.size;return i.set(t,n),this.size+=i.size==o?0:1,this}return Ya=r,Ya}var Xa,af;function rp(){if(af)return Xa;af=1;var e=Hm(),r=Um(),t=Wm(),n=Gm(),i=Km();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var d=a[s];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=t,o.prototype.has=n,o.prototype.set=i,Xa=o,Xa}var Za,sf;function Ym(){if(sf)return Za;sf=1;var e=Eo(),r=vu(),t=rp(),n=200;function i(o,a){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!r||c.length<n-1)return c.push([o,a]),this.size=++s.size,this;s=this.__data__=new t(c)}return s.set(o,a),this.size=s.size,this}return Za=i,Za}var Qa,lf;function Xm(){if(lf)return Qa;lf=1;var e=Eo(),r=Tm(),t=Am(),n=Rm(),i=km(),o=Ym();function a(s){var c=this.__data__=new e(s);this.size=c.size}return a.prototype.clear=r,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=i,a.prototype.set=o,Qa=a,Qa}var Ja,uf;function Zm(){if(uf)return Ja;uf=1;var e="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,e),this}return Ja=r,Ja}var es,cf;function Qm(){if(cf)return es;cf=1;function e(r){return this.__data__.has(r)}return es=e,es}var ts,ff;function Jm(){if(ff)return ts;ff=1;var e=rp(),r=Zm(),t=Qm();function n(i){var o=-1,a=i==null?0:i.length;for(this.__data__=new e;++o<a;)this.add(i[o])}return n.prototype.add=n.prototype.push=r,n.prototype.has=t,ts=n,ts}var rs,df;function ey(){if(df)return rs;df=1;function e(r,t){for(var n=-1,i=r==null?0:r.length;++n<i;)if(t(r[n],n,r))return!0;return!1}return rs=e,rs}var ns,hf;function ty(){if(hf)return ns;hf=1;function e(r,t){return r.has(t)}return ns=e,ns}var is,pf;function np(){if(pf)return is;pf=1;var e=Jm(),r=ey(),t=ty(),n=1,i=2;function o(a,s,c,d,f,l){var u=c&n,h=a.length,v=s.length;if(h!=v&&!(u&&v>h))return!1;var b=l.get(a),p=l.get(s);if(b&&p)return b==s&&p==a;var m=-1,g=!0,x=c&i?new e:void 0;for(l.set(a,s),l.set(s,a);++m<h;){var y=a[m],w=s[m];if(d)var _=u?d(w,y,m,s,a,l):d(y,w,m,a,s,l);if(_!==void 0){if(_)continue;g=!1;break}if(x){if(!r(s,function(S,E){if(!t(x,E)&&(y===S||f(y,S,c,d,l)))return x.push(E)})){g=!1;break}}else if(!(y===w||f(y,w,c,d,l))){g=!1;break}}return l.delete(a),l.delete(s),g}return is=o,is}var os,vf;function ry(){if(vf)return os;vf=1;var e=_r(),r=e.Uint8Array;return os=r,os}var as,gf;function ny(){if(gf)return as;gf=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(i,o){n[++t]=[o,i]}),n}return as=e,as}var ss,mf;function iy(){if(mf)return ss;mf=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(i){n[++t]=i}),n}return ss=e,ss}var ls,yf;function oy(){if(yf)return ls;yf=1;var e=pu(),r=ry(),t=Zh(),n=np(),i=ny(),o=iy(),a=1,s=2,c="[object Boolean]",d="[object Date]",f="[object Error]",l="[object Map]",u="[object Number]",h="[object RegExp]",v="[object Set]",b="[object String]",p="[object Symbol]",m="[object ArrayBuffer]",g="[object DataView]",x=e?e.prototype:void 0,y=x?x.valueOf:void 0;function w(_,S,E,R,T,C,O){switch(E){case g:if(_.byteLength!=S.byteLength||_.byteOffset!=S.byteOffset)return!1;_=_.buffer,S=S.buffer;case m:return!(_.byteLength!=S.byteLength||!C(new r(_),new r(S)));case c:case d:case u:return t(+_,+S);case f:return _.name==S.name&&_.message==S.message;case h:case b:return _==S+"";case l:var A=i;case v:var P=R&a;if(A||(A=o),_.size!=S.size&&!P)return!1;var I=O.get(_);if(I)return I==S;R|=s,O.set(_,S);var $=n(A(_),A(S),R,T,C,O);return O.delete(_),$;case p:if(y)return y.call(_)==y.call(S)}return!1}return ls=w,ls}var us,bf;function ay(){if(bf)return us;bf=1;function e(r,t){for(var n=-1,i=t.length,o=r.length;++n<i;)r[o+n]=t[n];return r}return us=e,us}var cs,xf;function gu(){if(xf)return cs;xf=1;var e=Array.isArray;return cs=e,cs}var fs,wf;function sy(){if(wf)return fs;wf=1;var e=ay(),r=gu();function t(n,i,o){var a=i(n);return r(n)?a:e(a,o(n))}return fs=t,fs}var ds,Sf;function ly(){if(Sf)return ds;Sf=1;function e(r,t){for(var n=-1,i=r==null?0:r.length,o=0,a=[];++n<i;){var s=r[n];t(s,n,r)&&(a[o++]=s)}return a}return ds=e,ds}var hs,Ef;function uy(){if(Ef)return hs;Ef=1;function e(){return[]}return hs=e,hs}var ps,_f;function cy(){if(_f)return ps;_f=1;var e=ly(),r=uy(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(s){return n.call(a,s)}))}:r;return ps=o,ps}var vs,Cf;function fy(){if(Cf)return vs;Cf=1;function e(r,t){for(var n=-1,i=Array(r);++n<r;)i[n]=t(n);return i}return vs=e,vs}var gs,Of;function To(){if(Of)return gs;Of=1;function e(r){return r!=null&&typeof r=="object"}return gs=e,gs}var ms,Tf;function dy(){if(Tf)return ms;Tf=1;var e=_o(),r=To(),t="[object Arguments]";function n(i){return r(i)&&e(i)==t}return ms=n,ms}var ys,Af;function hy(){if(Af)return ys;Af=1;var e=dy(),r=To(),t=Object.prototype,n=t.hasOwnProperty,i=t.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(a){return r(a)&&n.call(a,"callee")&&!i.call(a,"callee")};return ys=o,ys}var Kn={exports:{}},bs,Rf;function py(){if(Rf)return bs;Rf=1;function e(){return!1}return bs=e,bs}Kn.exports;var kf;function ip(){return kf||(kf=1,(function(e,r){var t=_r(),n=py(),i=r&&!r.nodeType&&r,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?t.Buffer:void 0,c=s?s.isBuffer:void 0,d=c||n;e.exports=d})(Kn,Kn.exports)),Kn.exports}var xs,Pf;function vy(){if(Pf)return xs;Pf=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(n,i){var o=typeof n;return i=i??e,!!i&&(o=="number"||o!="symbol"&&r.test(n))&&n>-1&&n%1==0&&n<i}return xs=t,xs}var ws,Nf;function op(){if(Nf)return ws;Nf=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return ws=r,ws}var Ss,jf;function gy(){if(jf)return Ss;jf=1;var e=_o(),r=op(),t=To(),n="[object Arguments]",i="[object Array]",o="[object Boolean]",a="[object Date]",s="[object Error]",c="[object Function]",d="[object Map]",f="[object Number]",l="[object Object]",u="[object RegExp]",h="[object Set]",v="[object String]",b="[object WeakMap]",p="[object ArrayBuffer]",m="[object DataView]",g="[object Float32Array]",x="[object Float64Array]",y="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",S="[object Uint8Array]",E="[object Uint8ClampedArray]",R="[object Uint16Array]",T="[object Uint32Array]",C={};C[g]=C[x]=C[y]=C[w]=C[_]=C[S]=C[E]=C[R]=C[T]=!0,C[n]=C[i]=C[p]=C[o]=C[m]=C[a]=C[s]=C[c]=C[d]=C[f]=C[l]=C[u]=C[h]=C[v]=C[b]=!1;function O(A){return t(A)&&r(A.length)&&!!C[e(A)]}return Ss=O,Ss}var Es,If;function my(){if(If)return Es;If=1;function e(r){return function(t){return r(t)}}return Es=e,Es}var Yn={exports:{}};Yn.exports;var Mf;function yy(){return Mf||(Mf=1,(function(e,r){var t=Qh(),n=r&&!r.nodeType&&r,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&t.process,s=(function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}})();e.exports=s})(Yn,Yn.exports)),Yn.exports}var _s,Lf;function ap(){if(Lf)return _s;Lf=1;var e=gy(),r=my(),t=yy(),n=t&&t.isTypedArray,i=n?r(n):e;return _s=i,_s}var Cs,Df;function by(){if(Df)return Cs;Df=1;var e=fy(),r=hy(),t=gu(),n=ip(),i=vy(),o=ap(),a=Object.prototype,s=a.hasOwnProperty;function c(d,f){var l=t(d),u=!l&&r(d),h=!l&&!u&&n(d),v=!l&&!u&&!h&&o(d),b=l||u||h||v,p=b?e(d.length,String):[],m=p.length;for(var g in d)(f||s.call(d,g))&&!(b&&(g=="length"||h&&(g=="offset"||g=="parent")||v&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||i(g,m)))&&p.push(g);return p}return Cs=c,Cs}var Os,Ff;function xy(){if(Ff)return Os;Ff=1;var e=Object.prototype;function r(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||e;return t===i}return Os=r,Os}var Ts,$f;function wy(){if($f)return Ts;$f=1;function e(r,t){return function(n){return r(t(n))}}return Ts=e,Ts}var As,Bf;function Sy(){if(Bf)return As;Bf=1;var e=wy(),r=e(Object.keys,Object);return As=r,As}var Rs,qf;function Ey(){if(qf)return Rs;qf=1;var e=xy(),r=Sy(),t=Object.prototype,n=t.hasOwnProperty;function i(o){if(!e(o))return r(o);var a=[];for(var s in Object(o))n.call(o,s)&&s!="constructor"&&a.push(s);return a}return Rs=i,Rs}var ks,zf;function _y(){if(zf)return ks;zf=1;var e=ep(),r=op();function t(n){return n!=null&&r(n.length)&&!e(n)}return ks=t,ks}var Ps,Hf;function Cy(){if(Hf)return Ps;Hf=1;var e=by(),r=Ey(),t=_y();function n(i){return t(i)?e(i):r(i)}return Ps=n,Ps}var Ns,Vf;function Oy(){if(Vf)return Ns;Vf=1;var e=sy(),r=cy(),t=Cy();function n(i){return e(i,t,r)}return Ns=n,Ns}var js,Uf;function Ty(){if(Uf)return js;Uf=1;var e=Oy(),r=1,t=Object.prototype,n=t.hasOwnProperty;function i(o,a,s,c,d,f){var l=s&r,u=e(o),h=u.length,v=e(a),b=v.length;if(h!=b&&!l)return!1;for(var p=h;p--;){var m=u[p];if(!(l?m in a:n.call(a,m)))return!1}var g=f.get(o),x=f.get(a);if(g&&x)return g==a&&x==o;var y=!0;f.set(o,a),f.set(a,o);for(var w=l;++p<h;){m=u[p];var _=o[m],S=a[m];if(c)var E=l?c(S,_,m,a,o,f):c(_,S,m,o,a,f);if(!(E===void 0?_===S||d(_,S,s,c,f):E)){y=!1;break}w||(w=m=="constructor")}if(y&&!w){var R=o.constructor,T=a.constructor;R!=T&&"constructor"in o&&"constructor"in a&&!(typeof R=="function"&&R instanceof R&&typeof T=="function"&&T instanceof T)&&(y=!1)}return f.delete(o),f.delete(a),y}return js=i,js}var Is,Wf;function Ay(){if(Wf)return Is;Wf=1;var e=xn(),r=_r(),t=e(r,"DataView");return Is=t,Is}var Ms,Gf;function Ry(){if(Gf)return Ms;Gf=1;var e=xn(),r=_r(),t=e(r,"Promise");return Ms=t,Ms}var Ls,Kf;function ky(){if(Kf)return Ls;Kf=1;var e=xn(),r=_r(),t=e(r,"Set");return Ls=t,Ls}var Ds,Yf;function Py(){if(Yf)return Ds;Yf=1;var e=xn(),r=_r(),t=e(r,"WeakMap");return Ds=t,Ds}var Fs,Xf;function Ny(){if(Xf)return Fs;Xf=1;var e=Ay(),r=vu(),t=Ry(),n=ky(),i=Py(),o=_o(),a=tp(),s="[object Map]",c="[object Object]",d="[object Promise]",f="[object Set]",l="[object WeakMap]",u="[object DataView]",h=a(e),v=a(r),b=a(t),p=a(n),m=a(i),g=o;return(e&&g(new e(new ArrayBuffer(1)))!=u||r&&g(new r)!=s||t&&g(t.resolve())!=d||n&&g(new n)!=f||i&&g(new i)!=l)&&(g=function(x){var y=o(x),w=y==c?x.constructor:void 0,_=w?a(w):"";if(_)switch(_){case h:return u;case v:return s;case b:return d;case p:return f;case m:return l}return y}),Fs=g,Fs}var $s,Zf;function jy(){if(Zf)return $s;Zf=1;var e=Xm(),r=np(),t=oy(),n=Ty(),i=Ny(),o=gu(),a=ip(),s=ap(),c=1,d="[object Arguments]",f="[object Array]",l="[object Object]",u=Object.prototype,h=u.hasOwnProperty;function v(b,p,m,g,x,y){var w=o(b),_=o(p),S=w?f:i(b),E=_?f:i(p);S=S==d?l:S,E=E==d?l:E;var R=S==l,T=E==l,C=S==E;if(C&&a(b)){if(!a(p))return!1;w=!0,R=!1}if(C&&!R)return y||(y=new e),w||s(b)?r(b,p,m,g,x,y):t(b,p,S,m,g,x,y);if(!(m&c)){var O=R&&h.call(b,"__wrapped__"),A=T&&h.call(p,"__wrapped__");if(O||A){var P=O?b.value():b,I=A?p.value():p;return y||(y=new e),x(P,I,m,g,y)}}return C?(y||(y=new e),n(b,p,m,g,x,y)):!1}return $s=v,$s}var Bs,Qf;function Iy(){if(Qf)return Bs;Qf=1;var e=jy(),r=To();function t(n,i,o,a,s){return n===i?!0:n==null||i==null||!r(n)&&!r(i)?n!==n&&i!==i:e(n,i,o,a,t,s)}return Bs=t,Bs}var qs,Jf;function My(){if(Jf)return qs;Jf=1;var e=Iy();function r(t,n){return e(t,n)}return qs=r,qs}var Zi={exports:{}};/*!
|
|
15
|
-
* Quill Editor v1.3.7
|
|
16
|
-
* https://quilljs.com/
|
|
17
|
-
* Copyright (c) 2014, Jason Chen
|
|
18
|
-
* Copyright (c) 2013, salesforce.com
|
|
19
|
-
*/var Ly=Zi.exports,ed;function Dy(){return ed||(ed=1,(function(e,r){(function(n,i){e.exports=i()})(typeof self<"u"?self:Ly,function(){return(function(t){var n={};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}return i.m=t,i.c=n,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=109)})([(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(17),a=i(18),s=i(19),c=i(45),d=i(46),f=i(47),l=i(48),u=i(49),h=i(12),v=i(32),b=i(33),p=i(31),m=i(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:o.default,Format:a.default,Leaf:s.default,Embed:l.default,Scroll:c.default,Block:f.default,Inline:d.default,Text:u.default,Attributor:{Attribute:h.default,Class:v.default,Style:b.default,Store:p.default}};n.default=g}),(function(t,n,i){var o=this&&this.__extends||(function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,g){m.__proto__=g}||function(m,g){for(var x in g)g.hasOwnProperty(x)&&(m[x]=g[x])};return function(m,g){p(m,g);function x(){this.constructor=m}m.prototype=g===null?Object.create(g):(x.prototype=g.prototype,new x)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=(function(p){o(m,p);function m(g){var x=this;return g="[Parchment] "+g,x=p.call(this,g)||this,x.message=g,x.name=x.constructor.name,x}return m})(Error);n.ParchmentError=a;var s={},c={},d={},f={};n.DATA_KEY="__blot";var l;(function(p){p[p.TYPE=3]="TYPE",p[p.LEVEL=12]="LEVEL",p[p.ATTRIBUTE=13]="ATTRIBUTE",p[p.BLOT=14]="BLOT",p[p.INLINE=7]="INLINE",p[p.BLOCK=11]="BLOCK",p[p.BLOCK_BLOT=10]="BLOCK_BLOT",p[p.INLINE_BLOT=6]="INLINE_BLOT",p[p.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",p[p.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",p[p.ANY=15]="ANY"})(l=n.Scope||(n.Scope={}));function u(p,m){var g=v(p);if(g==null)throw new a("Unable to create "+p+" blot");var x=g,y=p instanceof Node||p.nodeType===Node.TEXT_NODE?p:x.create(m);return new x(y,m)}n.create=u;function h(p,m){return m===void 0&&(m=!1),p==null?null:p[n.DATA_KEY]!=null?p[n.DATA_KEY].blot:m?h(p.parentNode,m):null}n.find=h;function v(p,m){m===void 0&&(m=l.ANY);var g;if(typeof p=="string")g=f[p]||s[p];else if(p instanceof Text||p.nodeType===Node.TEXT_NODE)g=f.text;else if(typeof p=="number")p&l.LEVEL&l.BLOCK?g=f.block:p&l.LEVEL&l.INLINE&&(g=f.inline);else if(p instanceof HTMLElement){var x=(p.getAttribute("class")||"").split(/\s+/);for(var y in x)if(g=c[x[y]],g)break;g=g||d[p.tagName]}return g==null?null:m&l.LEVEL&g.scope&&m&l.TYPE&g.scope?g:null}n.query=v;function b(){for(var p=[],m=0;m<arguments.length;m++)p[m]=arguments[m];if(p.length>1)return p.map(function(y){return b(y)});var g=p[0];if(typeof g.blotName!="string"&&typeof g.attrName!="string")throw new a("Invalid definition");if(g.blotName==="abstract")throw new a("Cannot register abstract class");if(f[g.blotName||g.attrName]=g,typeof g.keyName=="string")s[g.keyName]=g;else if(g.className!=null&&(c[g.className]=g),g.tagName!=null){Array.isArray(g.tagName)?g.tagName=g.tagName.map(function(y){return y.toUpperCase()}):g.tagName=g.tagName.toUpperCase();var x=Array.isArray(g.tagName)?g.tagName:[g.tagName];x.forEach(function(y){(d[y]==null||g.className==null)&&(d[y]=g)})}return g}n.register=b}),(function(t,n,i){var o=i(51),a=i(11),s=i(3),c=i(20),d="\0",f=function(l){Array.isArray(l)?this.ops=l:l!=null&&Array.isArray(l.ops)?this.ops=l.ops:this.ops=[]};f.prototype.insert=function(l,u){var h={};return l.length===0?this:(h.insert=l,u!=null&&typeof u=="object"&&Object.keys(u).length>0&&(h.attributes=u),this.push(h))},f.prototype.delete=function(l){return l<=0?this:this.push({delete:l})},f.prototype.retain=function(l,u){if(l<=0)return this;var h={retain:l};return u!=null&&typeof u=="object"&&Object.keys(u).length>0&&(h.attributes=u),this.push(h)},f.prototype.push=function(l){var u=this.ops.length,h=this.ops[u-1];if(l=s(!0,{},l),typeof h=="object"){if(typeof l.delete=="number"&&typeof h.delete=="number")return this.ops[u-1]={delete:h.delete+l.delete},this;if(typeof h.delete=="number"&&l.insert!=null&&(u-=1,h=this.ops[u-1],typeof h!="object"))return this.ops.unshift(l),this;if(a(l.attributes,h.attributes)){if(typeof l.insert=="string"&&typeof h.insert=="string")return this.ops[u-1]={insert:h.insert+l.insert},typeof l.attributes=="object"&&(this.ops[u-1].attributes=l.attributes),this;if(typeof l.retain=="number"&&typeof h.retain=="number")return this.ops[u-1]={retain:h.retain+l.retain},typeof l.attributes=="object"&&(this.ops[u-1].attributes=l.attributes),this}}return u===this.ops.length?this.ops.push(l):this.ops.splice(u,0,l),this},f.prototype.chop=function(){var l=this.ops[this.ops.length-1];return l&&l.retain&&!l.attributes&&this.ops.pop(),this},f.prototype.filter=function(l){return this.ops.filter(l)},f.prototype.forEach=function(l){this.ops.forEach(l)},f.prototype.map=function(l){return this.ops.map(l)},f.prototype.partition=function(l){var u=[],h=[];return this.forEach(function(v){var b=l(v)?u:h;b.push(v)}),[u,h]},f.prototype.reduce=function(l,u){return this.ops.reduce(l,u)},f.prototype.changeLength=function(){return this.reduce(function(l,u){return u.insert?l+c.length(u):u.delete?l-u.delete:l},0)},f.prototype.length=function(){return this.reduce(function(l,u){return l+c.length(u)},0)},f.prototype.slice=function(l,u){l=l||0,typeof u!="number"&&(u=1/0);for(var h=[],v=c.iterator(this.ops),b=0;b<u&&v.hasNext();){var p;b<l?p=v.next(l-b):(p=v.next(u-b),h.push(p)),b+=c.length(p)}return new f(h)},f.prototype.compose=function(l){var u=c.iterator(this.ops),h=c.iterator(l.ops),v=[],b=h.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){for(var p=b.retain;u.peekType()==="insert"&&u.peekLength()<=p;)p-=u.peekLength(),v.push(u.next());b.retain-p>0&&h.next(b.retain-p)}for(var m=new f(v);u.hasNext()||h.hasNext();)if(h.peekType()==="insert")m.push(h.next());else if(u.peekType()==="delete")m.push(u.next());else{var g=Math.min(u.peekLength(),h.peekLength()),x=u.next(g),y=h.next(g);if(typeof y.retain=="number"){var w={};typeof x.retain=="number"?w.retain=g:w.insert=x.insert;var _=c.attributes.compose(x.attributes,y.attributes,typeof x.retain=="number");if(_&&(w.attributes=_),m.push(w),!h.hasNext()&&a(m.ops[m.ops.length-1],w)){var S=new f(u.rest());return m.concat(S).chop()}}else typeof y.delete=="number"&&typeof x.retain=="number"&&m.push(y)}return m.chop()},f.prototype.concat=function(l){var u=new f(this.ops.slice());return l.ops.length>0&&(u.push(l.ops[0]),u.ops=u.ops.concat(l.ops.slice(1))),u},f.prototype.diff=function(l,u){if(this.ops===l.ops)return new f;var h=[this,l].map(function(g){return g.map(function(x){if(x.insert!=null)return typeof x.insert=="string"?x.insert:d;var y=g===l?"on":"with";throw new Error("diff() called "+y+" non-document")}).join("")}),v=new f,b=o(h[0],h[1],u),p=c.iterator(this.ops),m=c.iterator(l.ops);return b.forEach(function(g){for(var x=g[1].length;x>0;){var y=0;switch(g[0]){case o.INSERT:y=Math.min(m.peekLength(),x),v.push(m.next(y));break;case o.DELETE:y=Math.min(x,p.peekLength()),p.next(y),v.delete(y);break;case o.EQUAL:y=Math.min(p.peekLength(),m.peekLength(),x);var w=p.next(y),_=m.next(y);a(w.insert,_.insert)?v.retain(y,c.attributes.diff(w.attributes,_.attributes)):v.push(_).delete(y);break}x-=y}}),v.chop()},f.prototype.eachLine=function(l,u){u=u||`
|
|
20
|
-
`;for(var h=c.iterator(this.ops),v=new f,b=0;h.hasNext();){if(h.peekType()!=="insert")return;var p=h.peek(),m=c.length(p)-h.peekLength(),g=typeof p.insert=="string"?p.insert.indexOf(u,m)-m:-1;if(g<0)v.push(h.next());else if(g>0)v.push(h.next(g));else{if(l(v,h.next(1).attributes||{},b)===!1)return;b+=1,v=new f}}v.length()>0&&l(v,{},b)},f.prototype.transform=function(l,u){if(u=!!u,typeof l=="number")return this.transformPosition(l,u);for(var h=c.iterator(this.ops),v=c.iterator(l.ops),b=new f;h.hasNext()||v.hasNext();)if(h.peekType()==="insert"&&(u||v.peekType()!=="insert"))b.retain(c.length(h.next()));else if(v.peekType()==="insert")b.push(v.next());else{var p=Math.min(h.peekLength(),v.peekLength()),m=h.next(p),g=v.next(p);if(m.delete)continue;g.delete?b.push(g):b.retain(p,c.attributes.transform(m.attributes,g.attributes,u))}return b.chop()},f.prototype.transformPosition=function(l,u){u=!!u;for(var h=c.iterator(this.ops),v=0;h.hasNext()&&v<=l;){var b=h.peekLength(),p=h.peekType();if(h.next(),p==="delete"){l-=Math.min(b,l-v);continue}else p==="insert"&&(v<l||!u)&&(l+=b);v+=b}return l},t.exports=f}),(function(t,n){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=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=i.call(h,"constructor"),b=h.constructor&&h.constructor.prototype&&i.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!v&&!b)return!1;var p;for(p in h);return typeof p>"u"||i.call(h,p)},f=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(i.call(h,v)){if(s)return s(h,v).value}else return;return h[v]};t.exports=function u(){var h,v,b,p,m,g,x=arguments[0],y=1,w=arguments.length,_=!1;for(typeof x=="boolean"&&(_=x,x=arguments[1]||{},y=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});y<w;++y)if(h=arguments[y],h!=null)for(v in h)b=l(x,v),p=l(h,v),x!==p&&(_&&p&&(d(p)||(m=c(p)))?(m?(m=!1,g=b&&c(b)?b:[]):g=b&&d(b)?b:{},f(x,{name:v,newValue:u(_,g,p)})):typeof p<"u"&&f(x,{name:v,newValue:p}));return x}}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BlockEmbed=n.bubbleFormats=void 0;var o=(function(){function C(O,A){for(var P=0;P<A.length;P++){var I=A[P];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(O,I.key,I)}}return function(O,A,P){return A&&C(O.prototype,A),P&&C(O,P),O}})(),a=function C(O,A,P){O===null&&(O=Function.prototype);var I=Object.getOwnPropertyDescriptor(O,A);if(I===void 0){var $=Object.getPrototypeOf(O);return $===null?void 0:C($,A,P)}else{if("value"in I)return I.value;var H=I.get;return H===void 0?void 0:H.call(P)}},s=i(3),c=x(s),d=i(2),f=x(d),l=i(0),u=x(l),h=i(16),v=x(h),b=i(6),p=x(b),m=i(7),g=x(m);function x(C){return C&&C.__esModule?C:{default:C}}function y(C,O){if(!(C instanceof O))throw new TypeError("Cannot call a class as a function")}function w(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 _(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=1,E=(function(C){_(O,C);function O(){return y(this,O),w(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 f.default().insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(P,I){var $=u.default.query(P,u.default.Scope.BLOCK_ATTRIBUTE);$!=null&&this.attributes.attribute($,I)}},{key:"formatAt",value:function(P,I,$,H){this.format($,H)}},{key:"insertAt",value:function(P,I,$){if(typeof I=="string"&&I.endsWith(`
|
|
21
|
-
`)){var H=u.default.create(R.blotName);this.parent.insertBefore(H,P===0?this:this.next),H.insertAt(0,I.slice(0,-1))}else a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,P,I,$)}}]),O})(u.default.Embed);E.scope=u.default.Scope.BLOCK_BLOT;var R=(function(C){_(O,C);function O(A){y(this,O);var P=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,A));return P.cache={},P}return o(O,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(u.default.Leaf).reduce(function(P,I){return I.length()===0?P:P.insert(I.value(),T(I))},new f.default).insert(`
|
|
22
|
-
`,T(this))),this.cache.delta}},{key:"deleteAt",value:function(P,I){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,P,I),this.cache={}}},{key:"formatAt",value:function(P,I,$,H){I<=0||(u.default.query($,u.default.Scope.BLOCK)?P+I===this.length()&&this.format($,H):a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,P,Math.min(I,this.length()-P-1),$,H),this.cache={})}},{key:"insertAt",value:function(P,I,$){if($!=null)return a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,P,I,$);if(I.length!==0){var H=I.split(`
|
|
23
|
-
`),G=H.shift();G.length>0&&(P<this.length()-1||this.children.tail==null?a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(P,this.length()-1),G):this.children.tail.insertAt(this.children.tail.length(),G),this.cache={});var D=this;H.reduce(function(F,N){return D=D.split(F,!0),D.insertAt(0,N),N.length},P+G.length)}}},{key:"insertBefore",value:function(P,I){var $=this.children.head;a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,P,I),$ instanceof v.default&&$.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)+S),this.cache.length}},{key:"moveChildren",value:function(P,I){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,P,I),this.cache={}}},{key:"optimize",value:function(P){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,P),this.cache={}}},{key:"path",value:function(P){return a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,P,!0)}},{key:"removeChild",value:function(P){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,P),this.cache={}}},{key:"split",value:function(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(I&&(P===0||P>=this.length()-S)){var $=this.clone();return P===0?(this.parent.insertBefore($,this),this):(this.parent.insertBefore($,this.next),$)}else{var H=a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,P,I);return this.cache={},H}}}]),O})(u.default.Block);R.blotName="block",R.tagName="P",R.defaultChild="break",R.allowedChildren=[p.default,u.default.Embed,g.default];function T(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(O=(0,c.default)(O,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?O:T(C.parent,O)}n.bubbleFormats=T,n.BlockEmbed=E,n.default=R}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.overload=n.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},a=(function(){function D(F,N){var L=[],B=!0,X=!1,W=void 0;try{for(var q=F[Symbol.iterator](),j;!(B=(j=q.next()).done)&&(L.push(j.value),!(N&&L.length===N));B=!0);}catch(V){X=!0,W=V}finally{try{!B&&q.return&&q.return()}finally{if(X)throw W}}return L}return function(F,N){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return D(F,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function D(F,N){for(var L=0;L<N.length;L++){var B=N[L];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,B.key,B)}}return function(F,N,L){return N&&D(F.prototype,N),L&&D(F,L),F}})();i(50);var c=i(2),d=T(c),f=i(14),l=T(f),u=i(8),h=T(u),v=i(9),b=T(v),p=i(0),m=T(p),g=i(15),x=T(g),y=i(3),w=T(y),_=i(10),S=T(_),E=i(34),R=T(E);function T(D){return D&&D.__esModule?D:{default:D}}function C(D,F,N){return F in D?Object.defineProperty(D,F,{value:N,enumerable:!0,configurable:!0,writable:!0}):D[F]=N,D}function O(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")}var A=(0,S.default)("quill"),P=(function(){s(D,null,[{key:"debug",value:function(N){N===!0&&(N="log"),S.default.level(N)}},{key:"find",value:function(N){return N.__quill||m.default.find(N)}},{key:"import",value:function(N){return this.imports[N]==null&&A.error("Cannot import "+N+". Are you sure it was registered?"),this.imports[N]}},{key:"register",value:function(N,L){var B=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof N!="string"){var W=N.attrName||N.blotName;typeof W=="string"?this.register("formats/"+W,N,L):Object.keys(N).forEach(function(q){B.register(q,N[q],L)})}else this.imports[N]!=null&&!X&&A.warn("Overwriting "+N+" with",L),this.imports[N]=L,(N.startsWith("blots/")||N.startsWith("formats/"))&&L.blotName!=="abstract"?m.default.register(L):N.startsWith("modules")&&typeof L.register=="function"&&L.register()}}]);function D(F){var N=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,D),this.options=I(F,L),this.container=this.options.container,this.container==null)return A.error("Invalid Quill container",F);this.options.debug&&D.debug(this.options.debug);var B=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=m.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(W){W===h.default.events.TEXT_CHANGE&&N.root.classList.toggle("ql-blank",N.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(W,q){var j=N.selection.lastRange,V=j&&j.length===0?j.index:void 0;$.call(N,function(){return N.editor.update(null,q,V)},W)});var X=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+B+"<p><br></p></div>");this.setContents(X),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(D,[{key:"addContainer",value:function(N){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof N=="string"){var B=N;N=document.createElement("div"),N.classList.add(B)}return this.container.insertBefore(N,L),N}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(N,L,B){var X=this,W=H(N,L,B),q=a(W,4);return N=q[0],L=q[1],B=q[3],$.call(this,function(){return X.editor.deleteText(N,L)},B,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 B=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return $.call(this,function(){var W=B.getSelection(!0),q=new d.default;if(W==null)return q;if(m.default.query(N,m.default.Scope.BLOCK))q=B.editor.formatLine(W.index,W.length,C({},N,L));else{if(W.length===0)return B.selection.format(N,L),q;q=B.editor.formatText(W.index,W.length,C({},N,L))}return B.setSelection(W,h.default.sources.SILENT),q},X)}},{key:"formatLine",value:function(N,L,B,X,W){var q=this,j=void 0,V=H(N,L,B,X,W),U=a(V,4);return N=U[0],L=U[1],j=U[2],W=U[3],$.call(this,function(){return q.editor.formatLine(N,L,j)},W,N,0)}},{key:"formatText",value:function(N,L,B,X,W){var q=this,j=void 0,V=H(N,L,B,X,W),U=a(V,4);return N=U[0],L=U[1],j=U[2],W=U[3],$.call(this,function(){return q.editor.formatText(N,L,j)},W,N,0)}},{key:"getBounds",value:function(N){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,B=void 0;typeof N=="number"?B=this.selection.getBounds(N,L):B=this.selection.getBounds(N.index,N.length);var X=this.container.getBoundingClientRect();return{bottom:B.bottom-X.top,height:B.height,left:B.left-X.left,right:B.right-X.left,top:B.top-X.top,width:B.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,B=H(N,L),X=a(B,2);return N=X[0],L=X[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,B=H(N,L),X=a(B,2);return N=X[0],L=X[1],this.editor.getText(N,L)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(N,L,B){var X=this,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:D.sources.API;return $.call(this,function(){return X.editor.insertEmbed(N,L,B)},W,N)}},{key:"insertText",value:function(N,L,B,X,W){var q=this,j=void 0,V=H(N,0,B,X,W),U=a(V,4);return N=U[0],j=U[2],W=U[3],$.call(this,function(){return q.editor.insertText(N,L,j)},W,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,B){this.clipboard.dangerouslyPasteHTML(N,L,B)}},{key:"removeFormat",value:function(N,L,B){var X=this,W=H(N,L,B),q=a(W,4);return N=q[0],L=q[1],B=q[3],$.call(this,function(){return X.editor.removeFormat(N,L)},B,N)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(N){var L=this,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return $.call(this,function(){N=new d.default(N);var X=L.getLength(),W=L.editor.deleteText(0,X),q=L.editor.applyDelta(N),j=q.ops[q.ops.length-1];j!=null&&typeof j.insert=="string"&&j.insert[j.insert.length-1]===`
|
|
24
|
-
`&&(L.editor.deleteText(L.getLength()-1,1),q.delete(1));var V=W.compose(q);return V},B)}},{key:"setSelection",value:function(N,L,B){if(N==null)this.selection.setRange(null,L||D.sources.API);else{var X=H(N,L,B),W=a(X,4);N=W[0],L=W[1],B=W[3],this.selection.setRange(new g.Range(N,L),B),B!==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,B=new d.default().insert(N);return this.setContents(B,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,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return $.call(this,function(){return N=new d.default(N),L.editor.applyDelta(N,B)},B,!0)}}]),D})();P.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},P.events=h.default.events,P.sources=h.default.sources,P.version="1.3.7",P.imports={delta:d.default,parchment:m.default,"core/module":b.default,"core/theme":R.default};function I(D,F){if(F=(0,w.default)(!0,{container:D,modules:{clipboard:!0,keyboard:!0,history:!0}},F),!F.theme||F.theme===P.DEFAULTS.theme)F.theme=R.default;else if(F.theme=P.import("themes/"+F.theme),F.theme==null)throw new Error("Invalid theme "+F.theme+". Did you register it?");var N=(0,w.default)(!0,{},F.theme.DEFAULTS);[N,F].forEach(function(X){X.modules=X.modules||{},Object.keys(X.modules).forEach(function(W){X.modules[W]===!0&&(X.modules[W]={})})});var L=Object.keys(N.modules).concat(Object.keys(F.modules)),B=L.reduce(function(X,W){var q=P.import("modules/"+W);return q==null?A.error("Cannot load "+W+" module. Are you sure you registered it?"):X[W]=q.DEFAULTS||{},X},{});return F.modules!=null&&F.modules.toolbar&&F.modules.toolbar.constructor!==Object&&(F.modules.toolbar={container:F.modules.toolbar}),F=(0,w.default)(!0,{},P.DEFAULTS,{modules:B},N,F),["bounds","container","scrollingContainer"].forEach(function(X){typeof F[X]=="string"&&(F[X]=document.querySelector(F[X]))}),F.modules=Object.keys(F.modules).reduce(function(X,W){return F.modules[W]&&(X[W]=F.modules[W]),X},{}),F}function $(D,F,N,L){if(this.options.strict&&!this.isEnabled()&&F===h.default.sources.USER)return new d.default;var B=N==null?null:this.getSelection(),X=this.editor.delta,W=D();if(B!=null&&(N===!0&&(N=B.index),L==null?B=G(B,W,F):L!==0&&(B=G(B,N,L,F)),this.setSelection(B,h.default.sources.SILENT)),W.length()>0){var q,j=[h.default.events.TEXT_CHANGE,W,X,F];if((q=this.emitter).emit.apply(q,[h.default.events.EDITOR_CHANGE].concat(j)),F!==h.default.sources.SILENT){var V;(V=this.emitter).emit.apply(V,j)}}return W}function H(D,F,N,L,B){var X={};return typeof D.index=="number"&&typeof D.length=="number"?typeof F!="number"?(B=L,L=N,N=F,F=D.length,D=D.index):(F=D.length,D=D.index):typeof F!="number"&&(B=L,L=N,N=F,F=0),(typeof N>"u"?"undefined":o(N))==="object"?(X=N,B=L):typeof N=="string"&&(L!=null?X[N]=L:B=N),B=B||h.default.sources.API,[D,F,X,B]}function G(D,F,N,L){if(D==null)return null;var B=void 0,X=void 0;if(F instanceof d.default){var W=[D.index,D.index+D.length].map(function(U){return F.transformPosition(U,L!==h.default.sources.USER)}),q=a(W,2);B=q[0],X=q[1]}else{var j=[D.index,D.index+D.length].map(function(U){return U<F||U===F&&L===h.default.sources.USER?U:N>=0?U+N:Math.max(F,U+N)}),V=a(j,2);B=V[0],X=V[1]}return new g.Range(B,X-B)}n.expandConfig=I,n.overload=H,n.default=P}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function p(m,g){for(var x=0;x<g.length;x++){var y=g[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,x){return g&&p(m.prototype,g),x&&p(m,x),m}})(),a=function p(m,g,x){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,g,x)}else{if("value"in y)return y.value;var _=y.get;return _===void 0?void 0:_.call(x)}},s=i(7),c=l(s),d=i(0),f=l(d);function l(p){return p&&p.__esModule?p:{default:p}}function u(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function h(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function v(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var b=(function(p){v(m,p);function m(){return u(this,m),h(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"formatAt",value:function(x,y,w,_){if(m.compare(this.statics.blotName,w)<0&&f.default.query(w,f.default.Scope.BLOT)){var S=this.isolate(x,y);_&&S.wrap(w,_)}else a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,x,y,w,_)}},{key:"optimize",value:function(x){if(a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,x),this.parent instanceof m&&m.compare(this.statics.blotName,this.parent.statics.blotName)>0){var y=this.parent.isolate(this.offset(),this.length());this.moveChildren(y),y.wrap(this)}}}],[{key:"compare",value:function(x,y){var w=m.order.indexOf(x),_=m.order.indexOf(y);return w>=0||_>=0?w-_:x===y?0:x<y?-1:1}}]),m})(f.default.Inline);b.allowedChildren=[b,f.default.Embed,c.default],b.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],n.default=b}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(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 f(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){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default.Text);n.default=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function g(x,y){for(var w=0;w<y.length;w++){var _=y[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(x,_.key,_)}}return function(x,y,w){return y&&g(x.prototype,y),w&&g(x,w),x}})(),a=function g(x,y,w){x===null&&(x=Function.prototype);var _=Object.getOwnPropertyDescriptor(x,y);if(_===void 0){var S=Object.getPrototypeOf(x);return S===null?void 0:g(S,y,w)}else{if("value"in _)return _.value;var E=_.get;return E===void 0?void 0:E.call(w)}},s=i(54),c=l(s),d=i(10),f=l(d);function l(g){return g&&g.__esModule?g:{default:g}}function u(g,x){if(!(g instanceof x))throw new TypeError("Cannot call a class as a function")}function h(g,x){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:g}function v(g,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);g.prototype=Object.create(x&&x.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(g,x):g.__proto__=x)}var b=(0,f.default)("quill:events"),p=["selectionchange","mousedown","mouseup","click"];p.forEach(function(g){document.addEventListener(g,function(){for(var x=arguments.length,y=Array(x),w=0;w<x;w++)y[w]=arguments[w];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(_){if(_.__quill&&_.__quill.emitter){var S;(S=_.__quill.emitter).handleDOM.apply(S,y)}})})});var m=(function(g){v(x,g);function x(){u(this,x);var y=h(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));return y.listeners={},y.on("error",b.error),y}return o(x,[{key:"emit",value:function(){b.log.apply(b,arguments),a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(w){for(var _=arguments.length,S=Array(_>1?_-1:0),E=1;E<_;E++)S[E-1]=arguments[E];(this.listeners[w.type]||[]).forEach(function(R){var T=R.node,C=R.handler;(w.target===T||T.contains(w.target))&&C.apply(void 0,[w].concat(S))})}},{key:"listenDOM",value:function(w,_,S){this.listeners[w]||(this.listeners[w]=[]),this.listeners[w].push({node:_,handler:S})}}]),x})(c.default);m.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"},m.sources={API:"api",SILENT:"silent",USER:"user"},n.default=m}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});function o(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}var a=function s(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,s),this.quill=c,this.options=d};a.DEFAULTS={},n.default=a}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";function s(d){if(o.indexOf(d)<=o.indexOf(a)){for(var f,l=arguments.length,u=Array(l>1?l-1:0),h=1;h<l;h++)u[h-1]=arguments[h];(f=console)[d].apply(f,u)}}function c(d){return o.reduce(function(f,l){return f[l]=s.bind(console,l,d),f},{})}s.level=c.level=function(d){a=d},n.default=c}),(function(t,n,i){var o=Array.prototype.slice,a=i(52),s=i(53),c=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 f(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 b,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),c(u,h,v)):!1;if(f(u)){if(!f(h)||u.length!==h.length)return!1;for(b=0;b<u.length;b++)if(u[b]!==h[b])return!1;return!0}try{var m=a(u),g=a(h)}catch{return!1}if(m.length!=g.length)return!1;for(m.sort(),g.sort(),b=m.length-1;b>=0;b--)if(m[b]!=g[b])return!1;for(b=m.length-1;b>=0;b--)if(p=m[b],!c(u[p],h[p],v))return!1;return typeof u==typeof h}}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(1),a=(function(){function s(c,d,f){f===void 0&&(f={}),this.attrName=c,this.keyName=d;var l=o.Scope.TYPE&o.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&o.Scope.LEVEL|l:this.scope=o.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return s.keys=function(c){return[].map.call(c.attributes,function(d){return d.name})},s.prototype.add=function(c,d){return this.canAdd(c,d)?(c.setAttribute(this.keyName,d),!0):!1},s.prototype.canAdd=function(c,d){var f=o.query(c,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return f==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(c){c.removeAttribute(this.keyName)},s.prototype.value=function(c){var d=c.getAttribute(this.keyName);return this.canAdd(c,d)&&d?d:""},s})();n.default=a}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Code=void 0;var o=(function(){function E(R,T){var C=[],O=!0,A=!1,P=void 0;try{for(var I=R[Symbol.iterator](),$;!(O=($=I.next()).done)&&(C.push($.value),!(T&&C.length===T));O=!0);}catch(H){A=!0,P=H}finally{try{!O&&I.return&&I.return()}finally{if(A)throw P}}return C}return function(R,T){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return E(R,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function E(R,T){for(var C=0;C<T.length;C++){var O=T[C];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(R,O.key,O)}}return function(R,T,C){return T&&E(R.prototype,T),C&&E(R,C),R}})(),s=function E(R,T,C){R===null&&(R=Function.prototype);var O=Object.getOwnPropertyDescriptor(R,T);if(O===void 0){var A=Object.getPrototypeOf(R);return A===null?void 0:E(A,T,C)}else{if("value"in O)return O.value;var P=O.get;return P===void 0?void 0:P.call(C)}},c=i(2),d=g(c),f=i(0),l=g(f),u=i(4),h=g(u),v=i(6),b=g(v),p=i(7),m=g(p);function g(E){return E&&E.__esModule?E:{default:E}}function x(E,R){if(!(E instanceof R))throw new TypeError("Cannot call a class as a function")}function y(E,R){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:E}function w(E,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);E.prototype=Object.create(R&&R.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(E,R):E.__proto__=R)}var _=(function(E){w(R,E);function R(){return x(this,R),y(this,(R.__proto__||Object.getPrototypeOf(R)).apply(this,arguments))}return R})(b.default);_.blotName="code",_.tagName="CODE";var S=(function(E){w(R,E);function R(){return x(this,R),y(this,(R.__proto__||Object.getPrototypeOf(R)).apply(this,arguments))}return a(R,[{key:"delta",value:function(){var C=this,O=this.domNode.textContent;return O.endsWith(`
|
|
25
|
-
`)&&(O=O.slice(0,-1)),O.split(`
|
|
26
|
-
`).reduce(function(A,P){return A.insert(P).insert(`
|
|
27
|
-
`,C.formats())},new d.default)}},{key:"format",value:function(C,O){if(!(C===this.statics.blotName&&O)){var A=this.descendant(m.default,this.length()-1),P=o(A,1),I=P[0];I?.deleteAt(I.length()-1,1),s(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"format",this).call(this,C,O)}}},{key:"formatAt",value:function(C,O,A,P){if(O!==0&&!(l.default.query(A,l.default.Scope.BLOCK)==null||A===this.statics.blotName&&P===this.statics.formats(this.domNode))){var I=this.newlineIndex(C);if(!(I<0||I>=C+O)){var $=this.newlineIndex(C,!0)+1,H=I-$+1,G=this.isolate($,H),D=G.next;G.format(A,P),D instanceof R&&D.formatAt(0,C-$+O-H,A,P)}}}},{key:"insertAt",value:function(C,O,A){if(A==null){var P=this.descendant(m.default,C),I=o(P,2),$=I[0],H=I[1];$.insertAt(H,O)}}},{key:"length",value:function(){var C=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
|
|
28
|
-
`)?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(`
|
|
29
|
-
`);var A=this.domNode.textContent.slice(C).indexOf(`
|
|
30
|
-
`);return A>-1?C+A:-1}},{key:"optimize",value:function(C){this.domNode.textContent.endsWith(`
|
|
31
|
-
`)||this.appendChild(l.default.create("text",`
|
|
32
|
-
`)),s(R.prototype.__proto__||Object.getPrototypeOf(R.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(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var A=l.default.find(O);A==null?O.parentNode.removeChild(O):A instanceof l.default.Embed?A.remove():A.unwrap()})}}],[{key:"create",value:function(C){var O=s(R.__proto__||Object.getPrototypeOf(R),"create",this).call(this,C);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),R})(h.default);S.blotName="code-block",S.tagName="PRE",S.TAB=" ",n.Code=_,n.default=S}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},a=(function(){function D(F,N){var L=[],B=!0,X=!1,W=void 0;try{for(var q=F[Symbol.iterator](),j;!(B=(j=q.next()).done)&&(L.push(j.value),!(N&&L.length===N));B=!0);}catch(V){X=!0,W=V}finally{try{!B&&q.return&&q.return()}finally{if(X)throw W}}return L}return function(F,N){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return D(F,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function D(F,N){for(var L=0;L<N.length;L++){var B=N[L];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,B.key,B)}}return function(F,N,L){return N&&D(F.prototype,N),L&&D(F,L),F}})(),c=i(2),d=O(c),f=i(20),l=O(f),u=i(0),h=O(u),v=i(13),b=O(v),p=i(24),m=O(p),g=i(4),x=O(g),y=i(16),w=O(y),_=i(21),S=O(_),E=i(11),R=O(E),T=i(3),C=O(T);function O(D){return D&&D.__esModule?D:{default:D}}function A(D,F,N){return F in D?Object.defineProperty(D,F,{value:N,enumerable:!0,configurable:!0,writable:!0}):D[F]=N,D}function P(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")}var I=/^[ -~]*$/,$=(function(){function D(F){P(this,D),this.scroll=F,this.delta=this.getDelta()}return s(D,[{key:"applyDelta",value:function(N){var L=this,B=!1;this.scroll.update();var X=this.scroll.length();return this.scroll.batchStart(),N=G(N),N.reduce(function(W,q){var j=q.retain||q.delete||q.insert.length||1,V=q.attributes||{};if(q.insert!=null){if(typeof q.insert=="string"){var U=q.insert;U.endsWith(`
|
|
33
|
-
`)&&B&&(B=!1,U=U.slice(0,-1)),W>=X&&!U.endsWith(`
|
|
34
|
-
`)&&(B=!0),L.scroll.insertAt(W,U);var K=L.scroll.line(W),J=a(K,2),ne=J[0],ce=J[1],re=(0,C.default)({},(0,g.bubbleFormats)(ne));if(ne instanceof x.default){var de=ne.descendant(h.default.Leaf,ce),oe=a(de,1),se=oe[0];re=(0,C.default)(re,(0,g.bubbleFormats)(se))}V=l.default.attributes.diff(re,V)||{}}else if(o(q.insert)==="object"){var Q=Object.keys(q.insert)[0];if(Q==null)return W;L.scroll.insertAt(W,Q,q.insert[Q])}X+=j}return Object.keys(V).forEach(function(ee){L.scroll.formatAt(W,j,ee,V[ee])}),W+j},0),N.reduce(function(W,q){return typeof q.delete=="number"?(L.scroll.deleteAt(W,q.delete),W):W+(q.retain||q.insert.length||1)},0),this.scroll.batchEnd(),this.update(N)}},{key:"deleteText",value:function(N,L){return this.scroll.deleteAt(N,L),this.update(new d.default().retain(N).delete(L))}},{key:"formatLine",value:function(N,L){var B=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(X).forEach(function(W){if(!(B.scroll.whitelist!=null&&!B.scroll.whitelist[W])){var q=B.scroll.lines(N,Math.max(L,1)),j=L;q.forEach(function(V){var U=V.length();if(!(V instanceof b.default))V.format(W,X[W]);else{var K=N-V.offset(B.scroll),J=V.newlineIndex(K+j)-K+1;V.formatAt(K,J,W,X[W])}j-=U})}}),this.scroll.optimize(),this.update(new d.default().retain(N).retain(L,(0,S.default)(X)))}},{key:"formatText",value:function(N,L){var B=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(X).forEach(function(W){B.scroll.formatAt(N,L,W,X[W])}),this.update(new d.default().retain(N).retain(L,(0,S.default)(X)))}},{key:"getContents",value:function(N,L){return this.delta.slice(N,N+L)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(N,L){return N.concat(L.delta())},new d.default)}},{key:"getFormat",value:function(N){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,B=[],X=[];L===0?this.scroll.path(N).forEach(function(q){var j=a(q,1),V=j[0];V instanceof x.default?B.push(V):V instanceof h.default.Leaf&&X.push(V)}):(B=this.scroll.lines(N,L),X=this.scroll.descendants(h.default.Leaf,N,L));var W=[B,X].map(function(q){if(q.length===0)return{};for(var j=(0,g.bubbleFormats)(q.shift());Object.keys(j).length>0;){var V=q.shift();if(V==null)return j;j=H((0,g.bubbleFormats)(V),j)}return j});return C.default.apply(C.default,W)}},{key:"getText",value:function(N,L){return this.getContents(N,L).filter(function(B){return typeof B.insert=="string"}).map(function(B){return B.insert}).join("")}},{key:"insertEmbed",value:function(N,L,B){return this.scroll.insertAt(N,L,B),this.update(new d.default().retain(N).insert(A({},L,B)))}},{key:"insertText",value:function(N,L){var B=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L=L.replace(/\r\n/g,`
|
|
35
|
-
`).replace(/\r/g,`
|
|
36
|
-
`),this.scroll.insertAt(N,L),Object.keys(X).forEach(function(W){B.scroll.formatAt(N,L.length,W,X[W])}),this.update(new d.default().retain(N).insert(L,(0,S.default)(X)))}},{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 w.default}},{key:"removeFormat",value:function(N,L){var B=this.getText(N,L),X=this.scroll.line(N+L),W=a(X,2),q=W[0],j=W[1],V=0,U=new d.default;q!=null&&(q instanceof b.default?V=q.newlineIndex(j)-j+1:V=q.length()-j,U=q.delta().slice(j,j+V-1).insert(`
|
|
37
|
-
`));var K=this.getContents(N,L+V),J=K.diff(new d.default().insert(B).concat(U)),ne=new d.default().retain(N).concat(J);return this.applyDelta(ne)}},{key:"update",value:function(N){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,X=this.delta;if(L.length===1&&L[0].type==="characterData"&&L[0].target.data.match(I)&&h.default.find(L[0].target)){var W=h.default.find(L[0].target),q=(0,g.bubbleFormats)(W),j=W.offset(this.scroll),V=L[0].oldValue.replace(m.default.CONTENTS,""),U=new d.default().insert(V),K=new d.default().insert(W.value()),J=new d.default().retain(j).concat(U.diff(K,B));N=J.reduce(function(ne,ce){return ce.insert?ne.insert(ce.insert,q):ne.push(ce)},new d.default),this.delta=X.compose(N)}else this.delta=this.getDelta(),(!N||!(0,R.default)(X.compose(N),this.delta))&&(N=X.diff(this.delta,B));return N}}]),D})();function H(D,F){return Object.keys(F).reduce(function(N,L){return D[L]==null||(F[L]===D[L]?N[L]=F[L]:Array.isArray(F[L])?F[L].indexOf(D[L])<0&&(N[L]=F[L].concat([D[L]])):N[L]=[F[L],D[L]]),N},{})}function G(D){return D.reduce(function(F,N){if(N.insert===1){var L=(0,S.default)(N.attributes);return delete L.image,F.insert({image:N.attributes.image},L)}if(N.attributes!=null&&(N.attributes.list===!0||N.attributes.bullet===!0)&&(N=(0,S.default)(N),N.attributes.list?N.attributes.list="ordered":(N.attributes.list="bullet",delete N.attributes.bullet)),typeof N.insert=="string"){var B=N.insert.replace(/\r\n/g,`
|
|
38
|
-
`).replace(/\r/g,`
|
|
39
|
-
`);return F.insert(B,N.attributes)}return F.push(N)},new d.default)}n.default=$}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Range=void 0;var o=(function(){function E(R,T){var C=[],O=!0,A=!1,P=void 0;try{for(var I=R[Symbol.iterator](),$;!(O=($=I.next()).done)&&(C.push($.value),!(T&&C.length===T));O=!0);}catch(H){A=!0,P=H}finally{try{!O&&I.return&&I.return()}finally{if(A)throw P}}return C}return function(R,T){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return E(R,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function E(R,T){for(var C=0;C<T.length;C++){var O=T[C];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(R,O.key,O)}}return function(R,T,C){return T&&E(R.prototype,T),C&&E(R,C),R}})(),s=i(0),c=m(s),d=i(21),f=m(d),l=i(11),u=m(l),h=i(8),v=m(h),b=i(10),p=m(b);function m(E){return E&&E.__esModule?E:{default:E}}function g(E){if(Array.isArray(E)){for(var R=0,T=Array(E.length);R<E.length;R++)T[R]=E[R];return T}else return Array.from(E)}function x(E,R){if(!(E instanceof R))throw new TypeError("Cannot call a class as a function")}var y=(0,p.default)("quill:selection"),w=function E(R){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;x(this,E),this.index=R,this.length=T},_=(function(){function E(R,T){var C=this;x(this,E),this.emitter=T,this.scroll=R,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new w(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,A){O===v.default.events.TEXT_CHANGE&&A.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,A){if(A.range){var P=A.range,I=P.startNode,$=P.startOffset,H=P.endNode,G=P.endOffset;C.setNativeRange(I,$,H,G)}}),this.update(v.default.sources.SILENT)}return a(E,[{key:"handleComposition",value:function(){var T=this;this.root.addEventListener("compositionstart",function(){T.composing=!0}),this.root.addEventListener("compositionend",function(){if(T.composing=!1,T.cursor.parent){var C=T.cursor.restore();if(!C)return;setTimeout(function(){T.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var T=this;this.emitter.listenDOM("mousedown",document.body,function(){T.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){T.mouseDown=!1,T.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(T,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[T])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||c.default.query(T,c.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var A=c.default.find(O.start.node,!1);if(A==null)return;if(A instanceof c.default.Leaf){var P=A.split(O.start.offset);A.parent.insertBefore(this.cursor,P)}else A.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format(T,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(T){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();T=Math.min(T,O-1),C=Math.min(T+C,O-1)-T;var A=void 0,P=this.scroll.leaf(T),I=o(P,2),$=I[0],H=I[1];if($==null)return null;var G=$.position(H,!0),D=o(G,2);A=D[0],H=D[1];var F=document.createRange();if(C>0){F.setStart(A,H);var N=this.scroll.leaf(T+C),L=o(N,2);if($=L[0],H=L[1],$==null)return null;var B=$.position(H,!0),X=o(B,2);return A=X[0],H=X[1],F.setEnd(A,H),F.getBoundingClientRect()}else{var W="left",q=void 0;return A instanceof Text?(H<A.data.length?(F.setStart(A,H),F.setEnd(A,H+1)):(F.setStart(A,H-1),F.setEnd(A,H),W="right"),q=F.getBoundingClientRect()):(q=$.domNode.getBoundingClientRect(),H>0&&(W="right")),{bottom:q.top+q.height,height:q.height,left:q[W],right:q[W],top:q.top,width:0}}}},{key:"getNativeRange",value:function(){var T=document.getSelection();if(T==null||T.rangeCount<=0)return null;var C=T.getRangeAt(0);if(C==null)return null;var O=this.normalizeNative(C);return y.info("getNativeRange",O),O}},{key:"getRange",value:function(){var T=this.getNativeRange();if(T==null)return[null,null];var C=this.normalizedToRange(T);return[C,T]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(T){var C=this,O=[[T.start.node,T.start.offset]];T.native.collapsed||O.push([T.end.node,T.end.offset]);var A=O.map(function($){var H=o($,2),G=H[0],D=H[1],F=c.default.find(G,!0),N=F.offset(C.scroll);return D===0?N:F instanceof c.default.Container?N+F.length():N+F.index(G,D)}),P=Math.min(Math.max.apply(Math,g(A)),this.scroll.length()-1),I=Math.min.apply(Math,[P].concat(g(A)));return new w(I,P-I)}},{key:"normalizeNative",value:function(T){if(!S(this.root,T.startContainer)||!T.collapsed&&!S(this.root,T.endContainer))return null;var C={start:{node:T.startContainer,offset:T.startOffset},end:{node:T.endContainer,offset:T.endOffset},native:T};return[C.start,C.end].forEach(function(O){for(var A=O.node,P=O.offset;!(A instanceof Text)&&A.childNodes.length>0;)if(A.childNodes.length>P)A=A.childNodes[P],P=0;else if(A.childNodes.length===P)A=A.lastChild,P=A instanceof Text?A.data.length:A.childNodes.length+1;else break;O.node=A,O.offset=P}),C}},{key:"rangeToNative",value:function(T){var C=this,O=T.collapsed?[T.index]:[T.index,T.index+T.length],A=[],P=this.scroll.length();return O.forEach(function(I,$){I=Math.min(P-1,I);var H=void 0,G=C.scroll.leaf(I),D=o(G,2),F=D[0],N=D[1],L=F.position(N,$!==0),B=o(L,2);H=B[0],N=B[1],A.push(H,N)}),A.length<2&&(A=A.concat(A)),A}},{key:"scrollIntoView",value:function(T){var C=this.lastRange;if(C!=null){var O=this.getBounds(C.index,C.length);if(O!=null){var A=this.scroll.length()-1,P=this.scroll.line(Math.min(C.index,A)),I=o(P,1),$=I[0],H=$;if(C.length>0){var G=this.scroll.line(Math.min(C.index+C.length,A)),D=o(G,1);H=D[0]}if(!($==null||H==null)){var F=T.getBoundingClientRect();O.top<F.top?T.scrollTop-=F.top-O.top:O.bottom>F.bottom&&(T.scrollTop+=O.bottom-F.bottom)}}}}},{key:"setNativeRange",value:function(T,C){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:T,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(y.info("setNativeRange",T,C,O,A),!(T!=null&&(this.root.parentNode==null||T.parentNode==null||O.parentNode==null))){var I=document.getSelection();if(I!=null)if(T!=null){this.hasFocus()||this.root.focus();var $=(this.getNativeRange()||{}).native;if($==null||P||T!==$.startContainer||C!==$.startOffset||O!==$.endContainer||A!==$.endOffset){T.tagName=="BR"&&(C=[].indexOf.call(T.parentNode.childNodes,T),T=T.parentNode),O.tagName=="BR"&&(A=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var H=document.createRange();H.setStart(T,C),H.setEnd(O,A),I.removeAllRanges(),I.addRange(H)}}else I.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(T){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),y.info("setRange",T),T!=null){var A=this.rangeToNative(T);this.setNativeRange.apply(this,g(A).concat([C]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,C=this.lastRange,O=this.getRange(),A=o(O,2),P=A[0],I=A[1];if(this.lastRange=P,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,u.default)(C,this.lastRange)){var $;!this.composing&&I!=null&&I.native.collapsed&&I.start.node!==this.cursor.textNode&&this.cursor.restore();var H=[v.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(C),T];if(($=this.emitter).emit.apply($,[v.default.events.EDITOR_CHANGE].concat(H)),T!==v.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,H)}}}}]),E})();function S(E,R){try{R.parentNode}catch{return!1}return R instanceof Text&&(R=R.parentNode),E.contains(R)}n.Range=w,n.default=_}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function v(b,p){for(var m=0;m<p.length;m++){var g=p[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(b,g.key,g)}}return function(b,p,m){return p&&v(b.prototype,p),m&&v(b,m),b}})(),a=function v(b,p,m){b===null&&(b=Function.prototype);var g=Object.getOwnPropertyDescriptor(b,p);if(g===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,p,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},s=i(0),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function l(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function u(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=(function(v){u(b,v);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"insertInto",value:function(m,g){m.children.length===0?a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertInto",this).call(this,m,g):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),b})(c.default.Embed);h.blotName="break",h.tagName="BR",n.default=h}),(function(t,n,i){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(n,"__esModule",{value:!0});var a=i(44),s=i(30),c=i(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 b=f(v);h.insertBefore(b,h.children.head||void 0)}catch(p){if(p instanceof c.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(b,p,m){b.deleteAt(p,m)})},u.prototype.descendant=function(h,v){var b=this.children.find(v),p=b[0],m=b[1];return h.blotName==null&&h(p)||h.blotName!=null&&p instanceof h?[p,m]:p instanceof u?p.descendant(h,m):[null,-1]},u.prototype.descendants=function(h,v,b){v===void 0&&(v=0),b===void 0&&(b=Number.MAX_VALUE);var p=[],m=b;return this.children.forEachAt(v,b,function(g,x,y){(h.blotName==null&&h(g)||h.blotName!=null&&g instanceof h)&&p.push(g),g instanceof u&&(p=p.concat(g.descendants(h,x,m))),m-=y}),p},u.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),l.prototype.detach.call(this)},u.prototype.formatAt=function(h,v,b,p){this.children.forEachAt(h,v,function(m,g,x){m.formatAt(g,x,b,p)})},u.prototype.insertAt=function(h,v,b){var p=this.children.find(h),m=p[0],g=p[1];if(m)m.insertAt(g,v,b);else{var x=b==null?c.create("text",v):c.create(v,b);this.appendChild(x)}},u.prototype.insertBefore=function(h,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(b){return h instanceof b}))throw new c.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(b){h.insertBefore(b,v)})},u.prototype.optimize=function(h){if(l.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var v=c.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 b=this.children.find(h,v),p=b[0],m=b[1],g=[[this,h]];return p instanceof u?g.concat(p.path(m,v)):(p!=null&&g.push([p,m]),g)},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 b=this.clone();return this.parent.insertBefore(b,this.next),this.children.forEachAt(h,this.length(),function(p,m,g){p=p.split(m,v),b.appendChild(p)}),b},u.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},u.prototype.update=function(h,v){var b=this,p=[],m=[];h.forEach(function(g){g.target===b.domNode&&g.type==="childList"&&(p.push.apply(p,g.addedNodes),m.push.apply(m,g.removedNodes))}),m.forEach(function(g){if(!(g.parentNode!=null&&g.tagName!=="IFRAME"&&document.body.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var x=c.find(g);x!=null&&(x.domNode.parentNode==null||x.domNode.parentNode===b.domNode)&&x.detach()}}),p.filter(function(g){return g.parentNode==b.domNode}).sort(function(g,x){return g===x?0:g.compareDocumentPosition(x)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(g){var x=null;g.nextSibling!=null&&(x=c.find(g.nextSibling));var y=f(g);(y.next!=x||y.next==null)&&(y.parent!=null&&y.parent.removeChild(b),b.insertBefore(y,x||void 0))})},u})(s.default);function f(l){var u=c.find(l);if(u==null)try{u=c.create(l)}catch{u=c.create(c.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}n.default=d}),(function(t,n,i){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(n,"__esModule",{value:!0});var a=i(12),s=i(31),c=i(17),d=i(1),f=(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 b=d.query(h);b instanceof a.default?this.attributes.attribute(b,v):v&&b!=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 b=l.prototype.replaceWith.call(this,h,v);return this.attributes.copy(b),b},u.prototype.update=function(h,v){var b=this;l.prototype.update.call(this,h,v),h.some(function(p){return p.target===b.domNode&&p.type==="attributes"})&&this.attributes.build()},u.prototype.wrap=function(h,v){var b=l.prototype.wrap.call(this,h,v);return b instanceof u&&b.statics.scope===this.statics.scope&&this.attributes.move(b),b},u})(c.default);n.default=f}),(function(t,n,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(30),s=i(1),c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.value=function(l){return!0},f.prototype.index=function(l,u){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(u,1):-1},f.prototype.position=function(l,u){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(h+=1),[this.parent.domNode,h]},f.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},f.scope=s.Scope.INLINE_BLOT,f})(a.default);n.default=c}),(function(t,n,i){var o=i(11),a=i(3),s={attributes:{compose:function(d,f,l){typeof d!="object"&&(d={}),typeof f!="object"&&(f={});var u=a(!0,{},f);l||(u=Object.keys(u).reduce(function(v,b){return u[b]!=null&&(v[b]=u[b]),v},{}));for(var h in d)d[h]!==void 0&&f[h]===void 0&&(u[h]=d[h]);return Object.keys(u).length>0?u:void 0},diff:function(d,f){typeof d!="object"&&(d={}),typeof f!="object"&&(f={});var l=Object.keys(d).concat(Object.keys(f)).reduce(function(u,h){return o(d[h],f[h])||(u[h]=f[h]===void 0?null:f[h]),u},{});return Object.keys(l).length>0?l:void 0},transform:function(d,f,l){if(typeof d!="object")return f;if(typeof f=="object"){if(!l)return f;var u=Object.keys(f).reduce(function(h,v){return d[v]===void 0&&(h[v]=f[v]),h},{});return Object.keys(u).length>0?u:void 0}}},iterator:function(d){return new c(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 c(d){this.ops=d,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(d){d||(d=1/0);var f=this.ops[this.index];if(f){var l=this.offset,u=s.length(f);if(d>=u-l?(d=u-l,this.index+=1,this.offset=0):this.offset+=d,typeof f.delete=="number")return{delete:d};var h={};return f.attributes&&(h.attributes=f.attributes),typeof f.retain=="number"?h.retain=d:typeof f.insert=="string"?h.insert=f.insert.substr(l,d):h.insert=f.insert,h}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},c.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"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var d=this.offset,f=this.index,l=this.next(),u=this.ops.slice(this.index);return this.offset=d,this.index=f,[l].concat(u)}else return[]},t.exports=s}),(function(t,n){var i=(function(){function o(b,p){return p!=null&&b instanceof p}var a;try{a=Map}catch{a=function(){}}var s;try{s=Set}catch{s=function(){}}var c;try{c=Promise}catch{c=function(){}}function d(b,p,m,g,x){typeof p=="object"&&(m=p.depth,g=p.prototype,x=p.includeNonEnumerable,p=p.circular);var y=[],w=[],_=typeof Buffer<"u";typeof p>"u"&&(p=!0),typeof m>"u"&&(m=1/0);function S(E,R){if(E===null)return null;if(R===0)return E;var T,C;if(typeof E!="object")return E;if(o(E,a))T=new a;else if(o(E,s))T=new s;else if(o(E,c))T=new c(function(F,N){E.then(function(L){F(S(L,R-1))},function(L){N(S(L,R-1))})});else if(d.__isArray(E))T=[];else if(d.__isRegExp(E))T=new RegExp(E.source,v(E)),E.lastIndex&&(T.lastIndex=E.lastIndex);else if(d.__isDate(E))T=new Date(E.getTime());else{if(_&&Buffer.isBuffer(E))return Buffer.allocUnsafe?T=Buffer.allocUnsafe(E.length):T=new Buffer(E.length),E.copy(T),T;o(E,Error)?T=Object.create(E):typeof g>"u"?(C=Object.getPrototypeOf(E),T=Object.create(C)):(T=Object.create(g),C=g)}if(p){var O=y.indexOf(E);if(O!=-1)return w[O];y.push(E),w.push(T)}o(E,a)&&E.forEach(function(F,N){var L=S(N,R-1),B=S(F,R-1);T.set(L,B)}),o(E,s)&&E.forEach(function(F){var N=S(F,R-1);T.add(N)});for(var A in E){var P;C&&(P=Object.getOwnPropertyDescriptor(C,A)),!(P&&P.set==null)&&(T[A]=S(E[A],R-1))}if(Object.getOwnPropertySymbols)for(var I=Object.getOwnPropertySymbols(E),A=0;A<I.length;A++){var $=I[A],H=Object.getOwnPropertyDescriptor(E,$);H&&!H.enumerable&&!x||(T[$]=S(E[$],R-1),H.enumerable||Object.defineProperty(T,$,{enumerable:!1}))}if(x)for(var G=Object.getOwnPropertyNames(E),A=0;A<G.length;A++){var D=G[A],H=Object.getOwnPropertyDescriptor(E,D);H&&H.enumerable||(T[D]=S(E[D],R-1),Object.defineProperty(T,D,{enumerable:!1}))}return T}return S(b,m)}d.clonePrototype=function(p){if(p===null)return null;var m=function(){};return m.prototype=p,new m};function f(b){return Object.prototype.toString.call(b)}d.__objToStr=f;function l(b){return typeof b=="object"&&f(b)==="[object Date]"}d.__isDate=l;function u(b){return typeof b=="object"&&f(b)==="[object Array]"}d.__isArray=u;function h(b){return typeof b=="object"&&f(b)==="[object RegExp]"}d.__isRegExp=h;function v(b){var p="";return b.global&&(p+="g"),b.ignoreCase&&(p+="i"),b.multiline&&(p+="m"),p}return d.__getRegExpFlags=v,d})();typeof t=="object"&&t.exports&&(t.exports=i)}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function T(C,O){var A=[],P=!0,I=!1,$=void 0;try{for(var H=C[Symbol.iterator](),G;!(P=(G=H.next()).done)&&(A.push(G.value),!(O&&A.length===O));P=!0);}catch(D){I=!0,$=D}finally{try{!P&&H.return&&H.return()}finally{if(I)throw $}}return A}return function(C,O){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return T(C,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function T(C,O){for(var A=0;A<O.length;A++){var P=O[A];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(C,P.key,P)}}return function(C,O,A){return O&&T(C.prototype,O),A&&T(C,A),C}})(),s=function T(C,O,A){C===null&&(C=Function.prototype);var P=Object.getOwnPropertyDescriptor(C,O);if(P===void 0){var I=Object.getPrototypeOf(C);return I===null?void 0:T(I,O,A)}else{if("value"in P)return P.value;var $=P.get;return $===void 0?void 0:$.call(A)}},c=i(0),d=y(c),f=i(8),l=y(f),u=i(4),h=y(u),v=i(16),b=y(v),p=i(13),m=y(p),g=i(25),x=y(g);function y(T){return T&&T.__esModule?T:{default:T}}function w(T,C){if(!(T instanceof C))throw new TypeError("Cannot call a class as a function")}function _(T,C){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:T}function S(T,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);T.prototype=Object.create(C&&C.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(T,C):T.__proto__=C)}function E(T){return T instanceof h.default||T instanceof u.BlockEmbed}var R=(function(T){S(C,T);function C(O,A){w(this,C);var P=_(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O));return P.emitter=A.emitter,Array.isArray(A.whitelist)&&(P.whitelist=A.whitelist.reduce(function(I,$){return I[$]=!0,I},{})),P.domNode.addEventListener("DOMNodeInserted",function(){}),P.optimize(),P.enable(),P}return a(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(A,P){var I=this.line(A),$=o(I,2),H=$[0],G=$[1],D=this.line(A+P),F=o(D,1),N=F[0];if(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,A,P),N!=null&&H!==N&&G>0){if(H instanceof u.BlockEmbed||N instanceof u.BlockEmbed){this.optimize();return}if(H instanceof m.default){var L=H.newlineIndex(H.length(),!0);if(L>-1&&(H=H.split(L+1),H===N)){this.optimize();return}}else if(N instanceof m.default){var B=N.newlineIndex(0);B>-1&&N.split(B+1)}var X=N.children.head instanceof b.default?null:N.children.head;H.moveChildren(N,X),H.remove()}this.optimize()}},{key:"enable",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",A)}},{key:"formatAt",value:function(A,P,I,$){this.whitelist!=null&&!this.whitelist[I]||(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,A,P,I,$),this.optimize())}},{key:"insertAt",value:function(A,P,I){if(!(I!=null&&this.whitelist!=null&&!this.whitelist[P])){if(A>=this.length())if(I==null||d.default.query(P,d.default.Scope.BLOCK)==null){var $=d.default.create(this.statics.defaultChild);this.appendChild($),I==null&&P.endsWith(`
|
|
40
|
-
`)&&(P=P.slice(0,-1)),$.insertAt(0,P,I)}else{var H=d.default.create(P,I);this.appendChild(H)}else s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,A,P,I);this.optimize()}}},{key:"insertBefore",value:function(A,P){if(A.statics.scope===d.default.Scope.INLINE_BLOT){var I=d.default.create(this.statics.defaultChild);I.appendChild(A),A=I}s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,A,P)}},{key:"leaf",value:function(A){return this.path(A).pop()||[null,-1]}},{key:"line",value:function(A){return A===this.length()?this.line(A-1):this.descendant(E,A)}},{key:"lines",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,I=function $(H,G,D){var F=[],N=D;return H.children.forEachAt(G,D,function(L,B,X){E(L)?F.push(L):L instanceof d.default.Container&&(F=F.concat($(L,B,N))),N-=X}),F};return I(this,A,P)}},{key:"optimize",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,A,P),A.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,A,P))}},{key:"path",value:function(A){return s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"path",this).call(this,A).slice(1)}},{key:"update",value:function(A){if(this.batch!==!0){var P=l.default.sources.USER;typeof A=="string"&&(P=A),Array.isArray(A)||(A=this.observer.takeRecords()),A.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,P,A),s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"update",this).call(this,A.concat([])),A.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,P,A)}}}]),C})(d.default.Scroll);R.blotName="scroll",R.className="ql-editor",R.tagName="DIV",R.defaultChild="block",R.allowedChildren=[h.default,u.BlockEmbed,x.default],n.default=R}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SHORTKEY=n.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,V){var U=[],K=!0,J=!1,ne=void 0;try{for(var ce=j[Symbol.iterator](),re;!(K=(re=ce.next()).done)&&(U.push(re.value),!(V&&U.length===V));K=!0);}catch(de){J=!0,ne=de}finally{try{!K&&ce.return&&ce.return()}finally{if(J)throw ne}}return U}return function(j,V){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return q(j,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function q(j,V){for(var U=0;U<V.length;U++){var K=V[U];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(j,K.key,K)}}return function(j,V,U){return V&&q(j.prototype,V),U&&q(j,U),j}})(),c=i(21),d=T(c),f=i(11),l=T(f),u=i(3),h=T(u),v=i(2),b=T(v),p=i(20),m=T(p),g=i(0),x=T(g),y=i(5),w=T(y),_=i(10),S=T(_),E=i(9),R=T(E);function T(q){return q&&q.__esModule?q:{default:q}}function C(q,j,V){return j in q?Object.defineProperty(q,j,{value:V,enumerable:!0,configurable:!0,writable:!0}):q[j]=V,q}function O(q,j){if(!(q instanceof j))throw new TypeError("Cannot call a class as a function")}function A(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 P(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 I=(0,S.default)("quill:keyboard"),$=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=(function(q){P(j,q),s(j,null,[{key:"match",value:function(U,K){return K=W(K),["altKey","ctrlKey","metaKey","shiftKey"].some(function(J){return!!K[J]!==U[J]&&K[J]!==null})?!1:K.key===(U.which||U.keyCode)}}]);function j(V,U){O(this,j);var K=A(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,V,U));return K.bindings={},Object.keys(K.options.bindings).forEach(function(J){J==="list autofill"&&V.scroll.whitelist!=null&&!V.scroll.whitelist.list||K.options.bindings[J]&&K.addBinding(K.options.bindings[J])}),K.addBinding({key:j.keys.ENTER,shiftKey:null},L),K.addBinding({key:j.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(K.addBinding({key:j.keys.BACKSPACE},{collapsed:!0},D),K.addBinding({key:j.keys.DELETE},{collapsed:!0},F)):(K.addBinding({key:j.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},D),K.addBinding({key:j.keys.DELETE},{collapsed:!0,suffix:/^.?$/},F)),K.addBinding({key:j.keys.BACKSPACE},{collapsed:!1},N),K.addBinding({key:j.keys.DELETE},{collapsed:!1},N),K.addBinding({key:j.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},D),K.listen(),K}return s(j,[{key:"addBinding",value:function(U){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ne=W(U);if(ne==null||ne.key==null)return I.warn("Attempted to add invalid keyboard binding",ne);typeof K=="function"&&(K={handler:K}),typeof J=="function"&&(J={handler:J}),ne=(0,h.default)(ne,K,J),this.bindings[ne.key]=this.bindings[ne.key]||[],this.bindings[ne.key].push(ne)}},{key:"listen",value:function(){var U=this;this.quill.root.addEventListener("keydown",function(K){if(!K.defaultPrevented){var J=K.which||K.keyCode,ne=(U.bindings[J]||[]).filter(function(ke){return j.match(K,ke)});if(ne.length!==0){var ce=U.quill.getSelection();if(!(ce==null||!U.quill.hasFocus())){var re=U.quill.getLine(ce.index),de=a(re,2),oe=de[0],se=de[1],Q=U.quill.getLeaf(ce.index),ee=a(Q,2),ue=ee[0],le=ee[1],ae=ce.length===0?[ue,le]:U.quill.getLeaf(ce.index+ce.length),pe=a(ae,2),fe=pe[0],me=pe[1],Oe=ue instanceof x.default.Text?ue.value().slice(0,le):"",qe=fe instanceof x.default.Text?fe.value().slice(me):"",Ce={collapsed:ce.length===0,empty:ce.length===0&&oe.length()<=1,format:U.quill.getFormat(ce),offset:se,prefix:Oe,suffix:qe},Ke=ne.some(function(ke){if(ke.collapsed!=null&&ke.collapsed!==Ce.collapsed||ke.empty!=null&&ke.empty!==Ce.empty||ke.offset!=null&&ke.offset!==Ce.offset)return!1;if(Array.isArray(ke.format)){if(ke.format.every(function(Pe){return Ce.format[Pe]==null}))return!1}else if(o(ke.format)==="object"&&!Object.keys(ke.format).every(function(Pe){return ke.format[Pe]===!0?Ce.format[Pe]!=null:ke.format[Pe]===!1?Ce.format[Pe]==null:(0,l.default)(ke.format[Pe],Ce.format[Pe])}))return!1;return ke.prefix!=null&&!ke.prefix.test(Ce.prefix)||ke.suffix!=null&&!ke.suffix.test(Ce.suffix)?!1:ke.handler.call(U,ce,Ce)!==!0});Ke&&K.preventDefault()}}}})}}]),j})(R.default);H.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},H.DEFAULTS={bindings:{bold:X("bold"),italic:X("italic"),underline:X("underline"),indent:{key:H.keys.TAB,format:["blockquote","indent","list"],handler:function(j,V){if(V.collapsed&&V.offset!==0)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:H.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(j,V){if(V.collapsed&&V.offset!==0)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:H.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(j,V){V.format.indent!=null?this.quill.format("indent","-1",w.default.sources.USER):V.format.list!=null&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":B(!0),"outdent code-block":B(!1),"remove tab":{key:H.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(j){this.quill.deleteText(j.index-1,1,w.default.sources.USER)}},tab:{key:H.keys.TAB,handler:function(j){this.quill.history.cutoff();var V=new b.default().retain(j.index).delete(j.length).insert(" ");this.quill.updateContents(V,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index+1,w.default.sources.SILENT)}},"list empty enter":{key:H.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(j,V){this.quill.format("list",!1,w.default.sources.USER),V.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:H.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(j){var V=this.quill.getLine(j.index),U=a(V,2),K=U[0],J=U[1],ne=(0,h.default)({},K.formats(),{list:"checked"}),ce=new b.default().retain(j.index).insert(`
|
|
41
|
-
`,ne).retain(K.length()-J-1).retain(1,{list:"unchecked"});this.quill.updateContents(ce,w.default.sources.USER),this.quill.setSelection(j.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:H.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(j,V){var U=this.quill.getLine(j.index),K=a(U,2),J=K[0],ne=K[1],ce=new b.default().retain(j.index).insert(`
|
|
42
|
-
`,V.format).retain(J.length()-ne-1).retain(1,{header:null});this.quill.updateContents(ce,w.default.sources.USER),this.quill.setSelection(j.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(j,V){var U=V.prefix.length,K=this.quill.getLine(j.index),J=a(K,2),ne=J[0],ce=J[1];if(ce>U)return!0;var re=void 0;switch(V.prefix.trim()){case"[]":case"[ ]":re="unchecked";break;case"[x]":re="checked";break;case"-":case"*":re="bullet";break;default:re="ordered"}this.quill.insertText(j.index," ",w.default.sources.USER),this.quill.history.cutoff();var de=new b.default().retain(j.index-ce).delete(U+1).retain(ne.length()-2-ce).retain(1,{list:re});this.quill.updateContents(de,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index-U,w.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(j){var V=this.quill.getLine(j.index),U=a(V,2),K=U[0],J=U[1],ne=new b.default().retain(j.index+K.length()-J-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ne,w.default.sources.USER)}},"embed left":G(H.keys.LEFT,!1),"embed left shift":G(H.keys.LEFT,!0),"embed right":G(H.keys.RIGHT,!1),"embed right shift":G(H.keys.RIGHT,!0)}};function G(q,j){var V,U=q===H.keys.LEFT?"prefix":"suffix";return V={key:q,shiftKey:j,altKey:null},C(V,U,/^$/),C(V,"handler",function(J){var ne=J.index;q===H.keys.RIGHT&&(ne+=J.length+1);var ce=this.quill.getLeaf(ne),re=a(ce,1),de=re[0];return de instanceof x.default.Embed?(q===H.keys.LEFT?j?this.quill.setSelection(J.index-1,J.length+1,w.default.sources.USER):this.quill.setSelection(J.index-1,w.default.sources.USER):j?this.quill.setSelection(J.index,J.length+1,w.default.sources.USER):this.quill.setSelection(J.index+J.length+1,w.default.sources.USER),!1):!0}),V}function D(q,j){if(!(q.index===0||this.quill.getLength()<=1)){var V=this.quill.getLine(q.index),U=a(V,1),K=U[0],J={};if(j.offset===0){var ne=this.quill.getLine(q.index-1),ce=a(ne,1),re=ce[0];if(re!=null&&re.length()>1){var de=K.formats(),oe=this.quill.getFormat(q.index-1,1);J=m.default.attributes.diff(de,oe)||{}}}var se=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(j.prefix)?2:1;this.quill.deleteText(q.index-se,se,w.default.sources.USER),Object.keys(J).length>0&&this.quill.formatLine(q.index-se,se,J,w.default.sources.USER),this.quill.focus()}}function F(q,j){var V=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(j.suffix)?2:1;if(!(q.index>=this.quill.getLength()-V)){var U={},K=0,J=this.quill.getLine(q.index),ne=a(J,1),ce=ne[0];if(j.offset>=ce.length()-1){var re=this.quill.getLine(q.index+1),de=a(re,1),oe=de[0];if(oe){var se=ce.formats(),Q=this.quill.getFormat(q.index,1);U=m.default.attributes.diff(se,Q)||{},K=oe.length()}}this.quill.deleteText(q.index,V,w.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(q.index+K-1,V,U,w.default.sources.USER)}}function N(q){var j=this.quill.getLines(q),V={};if(j.length>1){var U=j[0].formats(),K=j[j.length-1].formats();V=m.default.attributes.diff(K,U)||{}}this.quill.deleteText(q,w.default.sources.USER),Object.keys(V).length>0&&this.quill.formatLine(q.index,1,V,w.default.sources.USER),this.quill.setSelection(q.index,w.default.sources.SILENT),this.quill.focus()}function L(q,j){var V=this;q.length>0&&this.quill.scroll.deleteAt(q.index,q.length);var U=Object.keys(j.format).reduce(function(K,J){return x.default.query(J,x.default.Scope.BLOCK)&&!Array.isArray(j.format[J])&&(K[J]=j.format[J]),K},{});this.quill.insertText(q.index,`
|
|
43
|
-
`,U,w.default.sources.USER),this.quill.setSelection(q.index+1,w.default.sources.SILENT),this.quill.focus(),Object.keys(j.format).forEach(function(K){U[K]==null&&(Array.isArray(j.format[K])||K!=="link"&&V.quill.format(K,j.format[K],w.default.sources.USER))})}function B(q){return{key:H.keys.TAB,shiftKey:!q,format:{"code-block":!0},handler:function(V){var U=x.default.query("code-block"),K=V.index,J=V.length,ne=this.quill.scroll.descendant(U,K),ce=a(ne,2),re=ce[0],de=ce[1];if(re!=null){var oe=this.quill.getIndex(re),se=re.newlineIndex(de,!0)+1,Q=re.newlineIndex(oe+de+J),ee=re.domNode.textContent.slice(se,Q).split(`
|
|
44
|
-
`);de=0,ee.forEach(function(ue,le){q?(re.insertAt(se+de,U.TAB),de+=U.TAB.length,le===0?K+=U.TAB.length:J+=U.TAB.length):ue.startsWith(U.TAB)&&(re.deleteAt(se+de,U.TAB.length),de-=U.TAB.length,le===0?K-=U.TAB.length:J-=U.TAB.length),de+=ue.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(K,J,w.default.sources.SILENT)}}}}function X(q){return{key:q[0].toUpperCase(),shortKey:!0,handler:function(V,U){this.quill.format(q,!U.format[q],w.default.sources.USER)}}}function W(q){if(typeof q=="string"||typeof q=="number")return W({key:q});if((typeof q>"u"?"undefined":o(q))==="object"&&(q=(0,d.default)(q,!1)),typeof q.key=="string")if(H.keys[q.key.toUpperCase()]!=null)q.key=H.keys[q.key.toUpperCase()];else if(q.key.length===1)q.key=q.key.toUpperCase().charCodeAt(0);else return null;return q.shortKey&&(q[$]=q.shortKey,delete q.shortKey),q}n.default=H,n.SHORTKEY=$}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function m(g,x){var y=[],w=!0,_=!1,S=void 0;try{for(var E=g[Symbol.iterator](),R;!(w=(R=E.next()).done)&&(y.push(R.value),!(x&&y.length===x));w=!0);}catch(T){_=!0,S=T}finally{try{!w&&E.return&&E.return()}finally{if(_)throw S}}return y}return function(g,x){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return m(g,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function m(g,x,y){g===null&&(g=Function.prototype);var w=Object.getOwnPropertyDescriptor(g,x);if(w===void 0){var _=Object.getPrototypeOf(g);return _===null?void 0:m(_,x,y)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(y)}},s=(function(){function m(g,x){for(var y=0;y<x.length;y++){var w=x[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,x,y){return x&&m(g.prototype,x),y&&m(g,y),g}})(),c=i(0),d=u(c),f=i(7),l=u(f);function u(m){return m&&m.__esModule?m:{default:m}}function h(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function v(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function b(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var p=(function(m){b(g,m),s(g,null,[{key:"value",value:function(){}}]);function g(x,y){h(this,g);var w=v(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,x));return w.selection=y,w.textNode=document.createTextNode(g.CONTENTS),w.domNode.appendChild(w.textNode),w._length=0,w}return s(g,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(y,w){if(this._length!==0)return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,y,w);for(var _=this,S=0;_!=null&&_.statics.scope!==d.default.Scope.BLOCK_BLOT;)S+=_.offset(_.parent),_=_.parent;_!=null&&(this._length=g.CONTENTS.length,_.optimize(),_.formatAt(S,g.CONTENTS.length,y,w),this._length=0)}},{key:"index",value:function(y,w){return y===this.textNode?0:a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,y,w)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var y=this.textNode,w=this.selection.getNativeRange(),_=void 0,S=void 0,E=void 0;if(w!=null&&w.start.node===y&&w.end.node===y){var R=[y,w.start.offset,w.end.offset];_=R[0],S=R[1],E=R[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==g.CONTENTS){var T=this.textNode.data.split(g.CONTENTS).join("");this.next instanceof l.default?(_=this.next.domNode,this.next.insertAt(0,T),this.textNode.data=g.CONTENTS):(this.textNode.data=T,this.parent.insertBefore(d.default.create(this.textNode),this),this.textNode=document.createTextNode(g.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),S!=null){var C=[S,E].map(function(A){return Math.max(0,Math.min(_.data.length,A-1))}),O=o(C,2);return S=O[0],E=O[1],{startNode:_,startOffset:S,endNode:_,endOffset:E}}}}},{key:"update",value:function(y,w){var _=this;if(y.some(function(E){return E.type==="characterData"&&E.target===_.textNode})){var S=this.restore();S&&(w.range=S)}}},{key:"value",value:function(){return""}}]),g})(d.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\uFEFF",n.default=p}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),a=d(o),s=i(4),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function l(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function u(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=(function(v){u(b,v);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return b})(a.default.Container);h.allowedChildren=[c.default,s.BlockEmbed,h],n.default=h}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorStyle=n.ColorClass=n.ColorAttributor=void 0;var o=(function(){function p(m,g){for(var x=0;x<g.length;x++){var y=g[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,x){return g&&p(m.prototype,g),x&&p(m,x),m}})(),a=function p(m,g,x){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,g,x)}else{if("value"in y)return y.value;var _=y.get;return _===void 0?void 0:_.call(x)}},s=i(0),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"value",value:function(x){var y=a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,x);return y.startsWith("rgb(")?(y=y.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+y.split(",").map(function(w){return("00"+parseInt(w).toString(16)).slice(-2)}).join("")):y}}]),m})(c.default.Attributor.Style),v=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),b=new h("color","color",{scope:c.default.Scope.INLINE});n.ColorAttributor=h,n.ColorClass=v,n.ColorStyle=b}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.sanitize=n.default=void 0;var o=(function(){function b(p,m){for(var g=0;g<m.length;g++){var x=m[g];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,m,g){return m&&b(p.prototype,m),g&&b(p,g),p}})(),a=function b(p,m,g){p===null&&(p=Function.prototype);var x=Object.getOwnPropertyDescriptor(p,m);if(x===void 0){var y=Object.getPrototypeOf(p);return y===null?void 0:b(y,m,g)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(g)}},s=i(6),c=d(s);function d(b){return b&&b.__esModule?b:{default:b}}function f(b,p){if(!(b instanceof p))throw new TypeError("Cannot call a class as a function")}function l(b,p){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:b}function u(b,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);b.prototype=Object.create(p&&p.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(b,p):b.__proto__=p)}var h=(function(b){u(p,b);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return o(p,[{key:"format",value:function(g,x){if(g!==this.statics.blotName||!x)return a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"format",this).call(this,g,x);x=this.constructor.sanitize(x),this.domNode.setAttribute("href",x)}}],[{key:"create",value:function(g){var x=a(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,g);return g=this.sanitize(g),x.setAttribute("href",g),x.setAttribute("rel","noopener noreferrer"),x.setAttribute("target","_blank"),x}},{key:"formats",value:function(g){return g.getAttribute("href")}},{key:"sanitize",value:function(g){return v(g,this.PROTOCOL_WHITELIST)?g:this.SANITIZED_URL}}]),p})(c.default);h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(b,p){var m=document.createElement("a");m.href=b;var g=m.href.slice(0,m.href.indexOf(":"));return p.indexOf(g)>-1}n.default=h,n.sanitize=v}),(function(t,n,i){Object.defineProperty(n,"__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(m,g){for(var x=0;x<g.length;x++){var y=g[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,x){return g&&p(m.prototype,g),x&&p(m,x),m}})(),s=i(23),c=l(s),d=i(107),f=l(d);function l(p){return p&&p.__esModule?p:{default:p}}function u(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}var h=0;function v(p,m){p.setAttribute(m,p.getAttribute(m)!=="true")}var b=(function(){function p(m){var g=this;u(this,p),this.select=m,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(){g.togglePicker()}),this.label.addEventListener("keydown",function(x){switch(x.keyCode){case c.default.keys.ENTER:g.togglePicker();break;case c.default.keys.ESCAPE:g.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(g){var x=this,y=document.createElement("span");return y.tabIndex="0",y.setAttribute("role","button"),y.classList.add("ql-picker-item"),g.hasAttribute("value")&&y.setAttribute("data-value",g.getAttribute("value")),g.textContent&&y.setAttribute("data-label",g.textContent),y.addEventListener("click",function(){x.selectItem(y,!0)}),y.addEventListener("keydown",function(w){switch(w.keyCode){case c.default.keys.ENTER:x.selectItem(y,!0),w.preventDefault();break;case c.default.keys.ESCAPE:x.escape(),w.preventDefault();break}}),y}},{key:"buildLabel",value:function(){var g=document.createElement("span");return g.classList.add("ql-picker-label"),g.innerHTML=f.default,g.tabIndex="0",g.setAttribute("role","button"),g.setAttribute("aria-expanded","false"),this.container.appendChild(g),g}},{key:"buildOptions",value:function(){var g=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(y){var w=g.buildItem(y);x.appendChild(w),y.selected===!0&&g.selectItem(w)}),this.container.appendChild(x)}},{key:"buildPicker",value:function(){var g=this;[].slice.call(this.select.attributes).forEach(function(x){g.container.setAttribute(x.name,x.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var g=this;this.close(),setTimeout(function(){return g.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(g){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=this.container.querySelector(".ql-selected");if(g!==y&&(y?.classList.remove("ql-selected"),g!=null&&(g.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(g.parentNode.children,g),g.hasAttribute("data-value")?this.label.setAttribute("data-value",g.getAttribute("data-value")):this.label.removeAttribute("data-value"),g.hasAttribute("data-label")?this.label.setAttribute("data-label",g.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 w=document.createEvent("Event");w.initEvent("change",!0,!0),this.select.dispatchEvent(w)}this.close()}}},{key:"update",value:function(){var g=void 0;if(this.select.selectedIndex>-1){var x=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];g=this.select.options[this.select.selectedIndex],this.selectItem(x)}else this.selectItem(null);var y=g!=null&&g!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",y)}}]),p})();n.default=b}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),a=I(o),s=i(5),c=I(s),d=i(4),f=I(d),l=i(16),u=I(l),h=i(25),v=I(h),b=i(24),p=I(b),m=i(35),g=I(m),x=i(6),y=I(x),w=i(22),_=I(w),S=i(7),E=I(S),R=i(55),T=I(R),C=i(42),O=I(C),A=i(23),P=I(A);function I($){return $&&$.__esModule?$:{default:$}}c.default.register({"blots/block":f.default,"blots/block/embed":d.BlockEmbed,"blots/break":u.default,"blots/container":v.default,"blots/cursor":p.default,"blots/embed":g.default,"blots/inline":y.default,"blots/scroll":_.default,"blots/text":E.default,"modules/clipboard":T.default,"modules/history":O.default,"modules/keyboard":P.default}),a.default.register(f.default,u.default,p.default,y.default,_.default,E.default),n.default=c.default}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(1),a=(function(){function s(c){this.domNode=c,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(c){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var d;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?d=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?d=document.createElement(c):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 c=this.domNode.cloneNode(!1);return o.create(c)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},s.prototype.deleteAt=function(c,d){var f=this.isolate(c,d);f.remove()},s.prototype.formatAt=function(c,d,f,l){var u=this.isolate(c,d);if(o.query(f,o.Scope.BLOT)!=null&&l)u.wrap(f,l);else if(o.query(f,o.Scope.ATTRIBUTE)!=null){var h=o.create(this.statics.scope);u.wrap(h),h.format(f,l)}},s.prototype.insertAt=function(c,d,f){var l=f==null?o.create("text",d):o.create(d,f),u=this.split(c);this.parent.insertBefore(l,u)},s.prototype.insertInto=function(c,d){d===void 0&&(d=null),this.parent!=null&&this.parent.children.remove(this);var f=null;c.children.insertBefore(this,d),d!=null&&(f=d.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=f)&&c.domNode.insertBefore(this.domNode,f),this.parent=c,this.attach()},s.prototype.isolate=function(c,d){var f=this.split(c);return f.split(d),f},s.prototype.length=function(){return 1},s.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},s.prototype.optimize=function(c){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(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},s.prototype.replaceWith=function(c,d){var f=typeof c=="string"?o.create(c,d):c;return f.replace(this),f},s.prototype.split=function(c,d){return c===0?this:this.next},s.prototype.update=function(c,d){},s.prototype.wrap=function(c,d){var f=typeof c=="string"?o.create(c,d):c;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},s.blotName="abstract",s})();n.default=a}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(12),a=i(32),s=i(33),c=i(1),d=(function(){function f(l){this.attributes={},this.domNode=l,this.build()}return f.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])},f.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(b){var p=c.query(b,c.Scope.ATTRIBUTE);p instanceof o.default&&(l.attributes[p.attrName]=p)})},f.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)})},f.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={}},f.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},{})},f})();n.default=d}),(function(t,n,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(12);function s(d,f){var l=d.getAttribute("class")||"";return l.split(/\s+/).filter(function(u){return u.indexOf(f+"-")===0})}var c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(u){return u.split("-").slice(0,-1).join("-")})},f.prototype.add=function(l,u){return this.canAdd(l,u)?(this.remove(l),l.classList.add(this.keyName+"-"+u),!0):!1},f.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")},f.prototype.value=function(l){var u=s(l,this.keyName)[0]||"",h=u.slice(this.keyName.length+1);return this.canAdd(l,h)?h:""},f})(a.default);n.default=c}),(function(t,n,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(12);function s(d){var f=d.split("-"),l=f.slice(1).map(function(u){return u[0].toUpperCase()+u.slice(1)}).join("");return f[0]+l}var c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(u){var h=u.split(":");return h[0].trim()})},f.prototype.add=function(l,u){return this.canAdd(l,u)?(l.style[s(this.keyName)]=u,!0):!1},f.prototype.remove=function(l){l.style[s(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},f.prototype.value=function(l){var u=l.style[s(this.keyName)];return this.canAdd(l,u)?u:""},f})(a.default);n.default=c}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function c(d,f){for(var l=0;l<f.length;l++){var u=f[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,f,l){return f&&c(d.prototype,f),l&&c(d,l),d}})();function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var s=(function(){function c(d,f){a(this,c),this.quill=d,this.options=f,this.modules={}}return o(c,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(l){f.modules[l]==null&&f.addModule(l)})}},{key:"addModule",value:function(f){var l=this.quill.constructor.import("modules/"+f);return this.modules[f]=new l(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),c})();s.DEFAULTS={modules:{}},s.themes={default:s},n.default=s}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function m(g,x){for(var y=0;y<x.length;y++){var w=x[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,x,y){return x&&m(g.prototype,x),y&&m(g,y),g}})(),a=function m(g,x,y){g===null&&(g=Function.prototype);var w=Object.getOwnPropertyDescriptor(g,x);if(w===void 0){var _=Object.getPrototypeOf(g);return _===null?void 0:m(_,x,y)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(y)}},s=i(0),c=l(s),d=i(7),f=l(d);function l(m){return m&&m.__esModule?m:{default:m}}function u(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function h(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function v(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var b="\uFEFF",p=(function(m){v(g,m);function g(x){u(this,g);var y=h(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,x));return y.contentNode=document.createElement("span"),y.contentNode.setAttribute("contenteditable",!1),[].slice.call(y.domNode.childNodes).forEach(function(w){y.contentNode.appendChild(w)}),y.leftGuard=document.createTextNode(b),y.rightGuard=document.createTextNode(b),y.domNode.appendChild(y.leftGuard),y.domNode.appendChild(y.contentNode),y.domNode.appendChild(y.rightGuard),y}return o(g,[{key:"index",value:function(y,w){return y===this.leftGuard?0:y===this.rightGuard?1:a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,y,w)}},{key:"restore",value:function(y){var w=void 0,_=void 0,S=y.data.split(b).join("");if(y===this.leftGuard)if(this.prev instanceof f.default){var E=this.prev.length();this.prev.insertAt(E,S),w={startNode:this.prev.domNode,startOffset:E+S.length}}else _=document.createTextNode(S),this.parent.insertBefore(c.default.create(_),this),w={startNode:_,startOffset:S.length};else y===this.rightGuard&&(this.next instanceof f.default?(this.next.insertAt(0,S),w={startNode:this.next.domNode,startOffset:S.length}):(_=document.createTextNode(S),this.parent.insertBefore(c.default.create(_),this.next),w={startNode:_,startOffset:S.length}));return y.data=b,w}},{key:"update",value:function(y,w){var _=this;y.forEach(function(S){if(S.type==="characterData"&&(S.target===_.leftGuard||S.target===_.rightGuard)){var E=_.restore(S.target);E&&(w.range=E)}})}}]),g})(c.default.Embed);n.default=p}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.AlignStyle=n.AlignClass=n.AlignAttribute=void 0;var o=i(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}var c={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},d=new a.default.Attributor.Attribute("align","align",c),f=new a.default.Attributor.Class("align","ql-align",c),l=new a.default.Attributor.Style("align","text-align",c);n.AlignAttribute=d,n.AlignClass=f,n.AlignStyle=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.BackgroundStyle=n.BackgroundClass=void 0;var o=i(0),a=c(o),s=i(26);function c(l){return l&&l.__esModule?l:{default:l}}var d=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),f=new s.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});n.BackgroundClass=d,n.BackgroundStyle=f}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectionStyle=n.DirectionClass=n.DirectionAttribute=void 0;var o=i(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}var c={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},d=new a.default.Attributor.Attribute("direction","dir",c),f=new a.default.Attributor.Class("direction","ql-direction",c),l=new a.default.Attributor.Style("direction","direction",c);n.DirectionAttribute=d,n.DirectionClass=f,n.DirectionStyle=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.FontClass=n.FontStyle=void 0;var o=(function(){function m(g,x){for(var y=0;y<x.length;y++){var w=x[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,x,y){return x&&m(g.prototype,x),y&&m(g,y),g}})(),a=function m(g,x,y){g===null&&(g=Function.prototype);var w=Object.getOwnPropertyDescriptor(g,x);if(w===void 0){var _=Object.getPrototypeOf(g);return _===null?void 0:m(_,x,y)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(y)}},s=i(0),c=d(s);function d(m){return m&&m.__esModule?m:{default:m}}function f(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function l(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function u(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var h={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new c.default.Attributor.Class("font","ql-font",h),b=(function(m){u(g,m);function g(){return f(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"value",value:function(y){return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,y).replace(/["']/g,"")}}]),g})(c.default.Attributor.Style),p=new b("font","font-family",h);n.FontStyle=p,n.FontClass=v}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SizeStyle=n.SizeClass=void 0;var o=i(0),a=s(o);function s(f){return f&&f.__esModule?f:{default:f}}var c=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"]});n.SizeClass=c,n.SizeStyle=d}),(function(t,n,i){t.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.getLastChangeIndex=n.default=void 0;var o=(function(){function x(y,w){for(var _=0;_<w.length;_++){var S=w[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(y,S.key,S)}}return function(y,w,_){return w&&x(y.prototype,w),_&&x(y,_),y}})(),a=i(0),s=u(a),c=i(5),d=u(c),f=i(9),l=u(f);function u(x){return x&&x.__esModule?x:{default:x}}function h(x,y){if(!(x instanceof y))throw new TypeError("Cannot call a class as a function")}function v(x,y){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:x}function b(x,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}var p=(function(x){b(y,x);function y(w,_){h(this,y);var S=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,w,_));return S.lastRecorded=0,S.ignoreChange=!1,S.clear(),S.quill.on(d.default.events.EDITOR_CHANGE,function(E,R,T,C){E!==d.default.events.TEXT_CHANGE||S.ignoreChange||(!S.options.userOnly||C===d.default.sources.USER?S.record(R,T):S.transform(R))}),S.quill.keyboard.addBinding({key:"Z",shortKey:!0},S.undo.bind(S)),S.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},S.redo.bind(S)),/Win/i.test(navigator.platform)&&S.quill.keyboard.addBinding({key:"Y",shortKey:!0},S.redo.bind(S)),S}return o(y,[{key:"change",value:function(_,S){if(this.stack[_].length!==0){var E=this.stack[_].pop();this.stack[S].push(E),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(E[_],d.default.sources.USER),this.ignoreChange=!1;var R=g(E[_]);this.quill.setSelection(R)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(_,S){if(_.ops.length!==0){this.stack.redo=[];var E=this.quill.getContents().diff(S),R=Date.now();if(this.lastRecorded+this.options.delay>R&&this.stack.undo.length>0){var T=this.stack.undo.pop();E=E.compose(T.undo),_=T.redo.compose(_)}else this.lastRecorded=R;this.stack.undo.push({redo:_,undo:E}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(_){this.stack.undo.forEach(function(S){S.undo=_.transform(S.undo,!0),S.redo=_.transform(S.redo,!0)}),this.stack.redo.forEach(function(S){S.undo=_.transform(S.undo,!0),S.redo=_.transform(S.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),y})(l.default);p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function m(x){var y=x.ops[x.ops.length-1];return y==null?!1:y.insert!=null?typeof y.insert=="string"&&y.insert.endsWith(`
|
|
45
|
-
`):y.attributes!=null?Object.keys(y.attributes).some(function(w){return s.default.query(w,s.default.Scope.BLOCK)!=null}):!1}function g(x){var y=x.reduce(function(_,S){return _+=S.delete||0,_},0),w=x.length()-y;return m(x)&&(w-=1),w}n.default=p,n.getLastChangeIndex=g}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BaseTooltip=void 0;var o=(function(){function L(B,X){for(var W=0;W<X.length;W++){var q=X[W];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(B,q.key,q)}}return function(B,X,W){return X&&L(B.prototype,X),W&&L(B,W),B}})(),a=function L(B,X,W){B===null&&(B=Function.prototype);var q=Object.getOwnPropertyDescriptor(B,X);if(q===void 0){var j=Object.getPrototypeOf(B);return j===null?void 0:L(j,X,W)}else{if("value"in q)return q.value;var V=q.get;return V===void 0?void 0:V.call(W)}},s=i(3),c=R(s),d=i(2),f=R(d),l=i(8),u=R(l),h=i(23),v=R(h),b=i(34),p=R(b),m=i(59),g=R(m),x=i(60),y=R(x),w=i(28),_=R(w),S=i(61),E=R(S);function R(L){return L&&L.__esModule?L:{default:L}}function T(L,B){if(!(L instanceof B))throw new TypeError("Cannot call a class as a function")}function C(L,B){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:L}function O(L,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);L.prototype=Object.create(B&&B.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(L,B):L.__proto__=B)}var A=[!1,"center","right","justify"],P=["#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"],$=["1","2","3",!1],H=["small",!1,"large","huge"],G=(function(L){O(B,L);function B(X,W){T(this,B);var q=C(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,X,W)),j=function V(U){if(!document.body.contains(X.root))return document.body.removeEventListener("click",V);q.tooltip!=null&&!q.tooltip.root.contains(U.target)&&document.activeElement!==q.tooltip.textbox&&!q.quill.hasFocus()&&q.tooltip.hide(),q.pickers!=null&&q.pickers.forEach(function(K){K.container.contains(U.target)||K.close()})};return X.emitter.listenDOM("click",document.body,j),q}return o(B,[{key:"addModule",value:function(W){var q=a(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"addModule",this).call(this,W);return W==="toolbar"&&this.extendToolbar(q),q}},{key:"buildButtons",value:function(W,q){W.forEach(function(j){var V=j.getAttribute("class")||"";V.split(/\s+/).forEach(function(U){if(U.startsWith("ql-")&&(U=U.slice(3),q[U]!=null))if(U==="direction")j.innerHTML=q[U][""]+q[U].rtl;else if(typeof q[U]=="string")j.innerHTML=q[U];else{var K=j.value||"";K!=null&&q[U][K]&&(j.innerHTML=q[U][K])}})})}},{key:"buildPickers",value:function(W,q){var j=this;this.pickers=W.map(function(U){if(U.classList.contains("ql-align"))return U.querySelector("option")==null&&N(U,A),new y.default(U,q.align);if(U.classList.contains("ql-background")||U.classList.contains("ql-color")){var K=U.classList.contains("ql-background")?"background":"color";return U.querySelector("option")==null&&N(U,P,K==="background"?"#ffffff":"#000000"),new g.default(U,q[K])}else return U.querySelector("option")==null&&(U.classList.contains("ql-font")?N(U,I):U.classList.contains("ql-header")?N(U,$):U.classList.contains("ql-size")&&N(U,H)),new _.default(U)});var V=function(){j.pickers.forEach(function(K){K.update()})};this.quill.on(u.default.events.EDITOR_CHANGE,V)}}]),B})(p.default);G.DEFAULTS=(0,c.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var B=this,X=this.container.querySelector("input.ql-image[type=file]");X==null&&(X=document.createElement("input"),X.setAttribute("type","file"),X.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),X.classList.add("ql-image"),X.addEventListener("change",function(){if(X.files!=null&&X.files[0]!=null){var W=new FileReader;W.onload=function(q){var j=B.quill.getSelection(!0);B.quill.updateContents(new f.default().retain(j.index).delete(j.length).insert({image:q.target.result}),u.default.sources.USER),B.quill.setSelection(j.index+1,u.default.sources.SILENT),X.value=""},W.readAsDataURL(X.files[0])}}),this.container.appendChild(X)),X.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var D=(function(L){O(B,L);function B(X,W){T(this,B);var q=C(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,X,W));return q.textbox=q.root.querySelector('input[type="text"]'),q.listen(),q}return o(B,[{key:"listen",value:function(){var W=this;this.textbox.addEventListener("keydown",function(q){v.default.match(q,"enter")?(W.save(),q.preventDefault()):v.default.match(q,"escape")&&(W.cancel(),q.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),q!=null?this.textbox.value=q:W!==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-"+W)||""),this.root.setAttribute("data-mode",W)}},{key:"restoreFocus",value:function(){var W=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=W}},{key:"save",value:function(){var W=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var q=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",W,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",W,u.default.sources.USER)),this.quill.root.scrollTop=q;break}case"video":W=F(W);case"formula":{if(!W)break;var j=this.quill.getSelection(!0);if(j!=null){var V=j.index+j.length;this.quill.insertEmbed(V,this.root.getAttribute("data-mode"),W,u.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(V+1," ",u.default.sources.USER),this.quill.setSelection(V+2,u.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),B})(E.default);function F(L){var B=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 B?(B[1]||"https")+"://www.youtube.com/embed/"+B[2]+"?showinfo=0":(B=L.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(B[1]||"https")+"://player.vimeo.com/video/"+B[2]+"/":L}function N(L,B){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;B.forEach(function(W){var q=document.createElement("option");W===X?q.setAttribute("selected","selected"):q.setAttribute("value",W),L.appendChild(q)})}n.BaseTooltip=D,n.default=G}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},a.prototype.contains=function(s){for(var c,d=this.iterator();c=d();)if(c===s)return!0;return!1},a.prototype.insertBefore=function(s,c){s&&(s.next=c,c!=null?(s.prev=c.prev,c.prev!=null&&(c.prev.next=s),c.prev=s,c===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 c=0,d=this.head;d!=null;){if(d===s)return c;c+=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 c=s;return s!=null&&(s=s.next),c}},a.prototype.find=function(s,c){c===void 0&&(c=!1);for(var d,f=this.iterator();d=f();){var l=d.length();if(s<l||c&&s===l&&(d.next==null||d.next.length()!==0))return[d,s];s-=l}return[null,0]},a.prototype.forEach=function(s){for(var c,d=this.iterator();c=d();)s(c)},a.prototype.forEachAt=function(s,c,d){if(!(c<=0))for(var f=this.find(s),l=f[0],u=f[1],h,v=s-u,b=this.iterator(l);(h=b())&&v<s+c;){var p=h.length();s>v?d(h,s-v,Math.min(c,v+p-s)):d(h,0,Math.min(p,s+c-v)),v+=p}},a.prototype.map=function(s){return this.reduce(function(c,d){return c.push(s(d)),c},[])},a.prototype.reduce=function(s,c){for(var d,f=this.iterator();d=f();)c=s(c,d);return c},a})();n.default=o}),(function(t,n,i){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(n,"__esModule",{value:!0});var a=i(17),s=i(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},d=100,f=(function(l){o(u,l);function u(h){var v=l.call(this,h)||this;return v.scroll=v,v.observer=new MutationObserver(function(b){v.update(b)}),v.observer.observe(v.domNode,c),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(b){b.remove()}):l.prototype.deleteAt.call(this,h,v)},u.prototype.formatAt=function(h,v,b,p){this.update(),l.prototype.formatAt.call(this,h,v,b,p)},u.prototype.insertAt=function(h,v,b){this.update(),l.prototype.insertAt.call(this,h,v,b)},u.prototype.optimize=function(h,v){var b=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 m=function(w,_){_===void 0&&(_=!0),!(w==null||w===b)&&w.domNode.parentNode!=null&&(w.domNode[s.DATA_KEY].mutations==null&&(w.domNode[s.DATA_KEY].mutations=[]),_&&m(w.parent))},g=function(w){w.domNode[s.DATA_KEY]==null||w.domNode[s.DATA_KEY].mutations==null||(w instanceof a.default&&w.children.forEach(g),w.optimize(v))},x=h,y=0;x.length>0;y+=1){if(y>=d)throw new Error("[Parchment] Maximum optimize iterations reached");for(x.forEach(function(w){var _=s.find(w.target,!0);_!=null&&(_.domNode===w.target&&(w.type==="childList"?(m(s.find(w.previousSibling,!1)),[].forEach.call(w.addedNodes,function(S){var E=s.find(S,!1);m(E,!1),E instanceof a.default&&E.children.forEach(function(R){m(R,!1)})})):w.type==="attributes"&&m(_.prev)),m(_))}),this.children.forEach(g),x=[].slice.call(this.observer.takeRecords()),p=x.slice();p.length>0;)h.push(p.pop())}},u.prototype.update=function(h,v){var b=this;v===void 0&&(v={}),h=h||this.observer.takeRecords(),h.map(function(p){var m=s.find(p.target,!0);return m==null?null:m.domNode[s.DATA_KEY].mutations==null?(m.domNode[s.DATA_KEY].mutations=[p],m):(m.domNode[s.DATA_KEY].mutations.push(p),null)}).forEach(function(p){p==null||p===b||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);n.default=f}),(function(t,n,i){var o=this&&this.__extends||(function(){var f=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){f(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(18),s=i(1);function c(f,l){if(Object.keys(f).length!==Object.keys(l).length)return!1;for(var u in f)if(f[u]!==l[u])return!1;return!0}var d=(function(f){o(l,f);function l(){return f!==null&&f.apply(this,arguments)||this}return l.formats=function(u){if(u.tagName!==l.tagName)return f.formats.call(this,u)},l.prototype.format=function(u,h){var v=this;u===this.statics.blotName&&!h?(this.children.forEach(function(b){b instanceof a.default||(b=b.wrap(l.blotName,!0)),v.attributes.copy(b)}),this.unwrap()):f.prototype.format.call(this,u,h)},l.prototype.formatAt=function(u,h,v,b){if(this.formats()[v]!=null||s.query(v,s.Scope.ATTRIBUTE)){var p=this.isolate(u,h);p.format(v,b)}else f.prototype.formatAt.call(this,u,h,v,b)},l.prototype.optimize=function(u){f.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&&c(h,v.formats())&&(v.moveChildren(this),v.remove())},l.blotName="inline",l.scope=s.Scope.INLINE_BLOT,l.tagName="SPAN",l})(a.default);n.default=d}),(function(t,n,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(18),s=i(1),c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.formats=function(l){var u=s.query(f.blotName).tagName;if(l.tagName!==u)return d.formats.call(this,l)},f.prototype.format=function(l,u){s.query(l,s.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!u?this.replaceWith(f.blotName):d.prototype.format.call(this,l,u))},f.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)},f.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),b=s.create(u,h);v.parent.insertBefore(b,v)}},f.prototype.update=function(l,u){navigator.userAgent.match(/Trident/)?this.build():d.prototype.update.call(this,l,u)},f.blotName="block",f.scope=s.Scope.BLOCK_BLOT,f.tagName="P",f})(a.default);n.default=c}),(function(t,n,i){var o=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var l in f)f.hasOwnProperty(l)&&(d[l]=f[l])};return function(d,f){c(d,f);function l(){this.constructor=d}d.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(19),s=(function(c){o(d,c);function d(){return c!==null&&c.apply(this,arguments)||this}return d.formats=function(f){},d.prototype.format=function(f,l){c.prototype.formatAt.call(this,0,this.length(),f,l)},d.prototype.formatAt=function(f,l,u,h){f===0&&l===this.length()?this.format(u,h):c.prototype.formatAt.call(this,f,l,u,h)},d.prototype.formats=function(){return this.statics.formats(this.domNode)},d})(a.default);n.default=s}),(function(t,n,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(19),s=i(1),c=(function(d){o(f,d);function f(l){var u=d.call(this,l)||this;return u.text=u.statics.value(u.domNode),u}return f.create=function(l){return document.createTextNode(l)},f.value=function(l){var u=l.data;return u.normalize&&(u=u.normalize()),u},f.prototype.deleteAt=function(l,u){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+u)},f.prototype.index=function(l,u){return this.domNode===l?u:-1},f.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)},f.prototype.length=function(){return this.text.length},f.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 f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(l,u){return[this.domNode,l]},f.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},f.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))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=s.Scope.INLINE_BLOT,f})(a.default);n.default=c}),(function(t,n,i){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,c){return arguments.length>1&&!this.contains(s)==!c?c:a.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,c){return c=c||0,this.substr(c,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,c){var d=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>d.length)&&(c=d.length),c-=s.length;var f=d.indexOf(s,c);return f!==-1&&f===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var d=Object(this),f=d.length>>>0,l=arguments[1],u,h=0;h<f;h++)if(u=d[h],c.call(l,u,h,d))return u}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(t,n){var i=-1,o=1,a=0;function s(y,w,_){if(y==w)return y?[[a,y]]:[];(_<0||y.length<_)&&(_=null);var S=l(y,w),E=y.substring(0,S);y=y.substring(S),w=w.substring(S),S=u(y,w);var R=y.substring(y.length-S);y=y.substring(0,y.length-S),w=w.substring(0,w.length-S);var T=c(y,w);return E&&T.unshift([a,E]),R&&T.push([a,R]),v(T),_!=null&&(T=m(T,_)),T=g(T),T}function c(y,w){var _;if(!y)return[[o,w]];if(!w)return[[i,y]];var S=y.length>w.length?y:w,E=y.length>w.length?w:y,R=S.indexOf(E);if(R!=-1)return _=[[o,S.substring(0,R)],[a,E],[o,S.substring(R+E.length)]],y.length>w.length&&(_[0][0]=_[2][0]=i),_;if(E.length==1)return[[i,y],[o,w]];var T=h(y,w);if(T){var C=T[0],O=T[1],A=T[2],P=T[3],I=T[4],$=s(C,A),H=s(O,P);return $.concat([[a,I]],H)}return d(y,w)}function d(y,w){for(var _=y.length,S=w.length,E=Math.ceil((_+S)/2),R=E,T=2*E,C=new Array(T),O=new Array(T),A=0;A<T;A++)C[A]=-1,O[A]=-1;C[R+1]=0,O[R+1]=0;for(var P=_-S,I=P%2!=0,$=0,H=0,G=0,D=0,F=0;F<E;F++){for(var N=-F+$;N<=F-H;N+=2){var L=R+N,B;N==-F||N!=F&&C[L-1]<C[L+1]?B=C[L+1]:B=C[L-1]+1;for(var X=B-N;B<_&&X<S&&y.charAt(B)==w.charAt(X);)B++,X++;if(C[L]=B,B>_)H+=2;else if(X>S)$+=2;else if(I){var W=R+P-N;if(W>=0&&W<T&&O[W]!=-1){var q=_-O[W];if(B>=q)return f(y,w,B,X)}}}for(var j=-F+G;j<=F-D;j+=2){var W=R+j,q;j==-F||j!=F&&O[W-1]<O[W+1]?q=O[W+1]:q=O[W-1]+1;for(var V=q-j;q<_&&V<S&&y.charAt(_-q-1)==w.charAt(S-V-1);)q++,V++;if(O[W]=q,q>_)D+=2;else if(V>S)G+=2;else if(!I){var L=R+P-j;if(L>=0&&L<T&&C[L]!=-1){var B=C[L],X=R+B-L;if(q=_-q,B>=q)return f(y,w,B,X)}}}}return[[i,y],[o,w]]}function f(y,w,_,S){var E=y.substring(0,_),R=w.substring(0,S),T=y.substring(_),C=w.substring(S),O=s(E,R),A=s(T,C);return O.concat(A)}function l(y,w){if(!y||!w||y.charAt(0)!=w.charAt(0))return 0;for(var _=0,S=Math.min(y.length,w.length),E=S,R=0;_<E;)y.substring(R,E)==w.substring(R,E)?(_=E,R=_):S=E,E=Math.floor((S-_)/2+_);return E}function u(y,w){if(!y||!w||y.charAt(y.length-1)!=w.charAt(w.length-1))return 0;for(var _=0,S=Math.min(y.length,w.length),E=S,R=0;_<E;)y.substring(y.length-E,y.length-R)==w.substring(w.length-E,w.length-R)?(_=E,R=_):S=E,E=Math.floor((S-_)/2+_);return E}function h(y,w){var _=y.length>w.length?y:w,S=y.length>w.length?w:y;if(_.length<4||S.length*2<_.length)return null;function E(H,G,D){for(var F=H.substring(D,D+Math.floor(H.length/4)),N=-1,L="",B,X,W,q;(N=G.indexOf(F,N+1))!=-1;){var j=l(H.substring(D),G.substring(N)),V=u(H.substring(0,D),G.substring(0,N));L.length<V+j&&(L=G.substring(N-V,N)+G.substring(N,N+j),B=H.substring(0,D-V),X=H.substring(D+j),W=G.substring(0,N-V),q=G.substring(N+j))}return L.length*2>=H.length?[B,X,W,q,L]:null}var R=E(_,S,Math.ceil(_.length/4)),T=E(_,S,Math.ceil(_.length/2)),C;if(!R&&!T)return null;T?R?C=R[4].length>T[4].length?R:T:C=T:C=R;var O,A,P,I;y.length>w.length?(O=C[0],A=C[1],P=C[2],I=C[3]):(P=C[0],I=C[1],O=C[2],A=C[3]);var $=C[4];return[O,A,P,I,$]}function v(y){y.push([a,""]);for(var w=0,_=0,S=0,E="",R="",T;w<y.length;)switch(y[w][0]){case o:S++,R+=y[w][1],w++;break;case i:_++,E+=y[w][1],w++;break;case a:_+S>1?(_!==0&&S!==0&&(T=l(R,E),T!==0&&(w-_-S>0&&y[w-_-S-1][0]==a?y[w-_-S-1][1]+=R.substring(0,T):(y.splice(0,0,[a,R.substring(0,T)]),w++),R=R.substring(T),E=E.substring(T)),T=u(R,E),T!==0&&(y[w][1]=R.substring(R.length-T)+y[w][1],R=R.substring(0,R.length-T),E=E.substring(0,E.length-T))),_===0?y.splice(w-S,_+S,[o,R]):S===0?y.splice(w-_,_+S,[i,E]):y.splice(w-_-S,_+S,[i,E],[o,R]),w=w-_-S+(_?1:0)+(S?1:0)+1):w!==0&&y[w-1][0]==a?(y[w-1][1]+=y[w][1],y.splice(w,1)):w++,S=0,_=0,E="",R="";break}y[y.length-1][1]===""&&y.pop();var C=!1;for(w=1;w<y.length-1;)y[w-1][0]==a&&y[w+1][0]==a&&(y[w][1].substring(y[w][1].length-y[w-1][1].length)==y[w-1][1]?(y[w][1]=y[w-1][1]+y[w][1].substring(0,y[w][1].length-y[w-1][1].length),y[w+1][1]=y[w-1][1]+y[w+1][1],y.splice(w-1,1),C=!0):y[w][1].substring(0,y[w+1][1].length)==y[w+1][1]&&(y[w-1][1]+=y[w+1][1],y[w][1]=y[w][1].substring(y[w+1][1].length)+y[w+1][1],y.splice(w+1,1),C=!0)),w++;C&&v(y)}var b=s;b.INSERT=o,b.DELETE=i,b.EQUAL=a,t.exports=b;function p(y,w){if(w===0)return[a,y];for(var _=0,S=0;S<y.length;S++){var E=y[S];if(E[0]===i||E[0]===a){var R=_+E[1].length;if(w===R)return[S+1,y];if(w<R){y=y.slice();var T=w-_,C=[E[0],E[1].slice(0,T)],O=[E[0],E[1].slice(T)];return y.splice(S,1,C,O),[S+1,y]}else _=R}}throw new Error("cursor_pos is out of bounds!")}function m(y,w){var _=p(y,w),S=_[1],E=_[0],R=S[E],T=S[E+1];if(R==null)return y;if(R[0]!==a)return y;if(T!=null&&R[1]+T[1]===T[1]+R[1])return S.splice(E,2,T,R),x(S,E,2);if(T!=null&&T[1].indexOf(R[1])===0){S.splice(E,2,[T[0],R[1]],[0,R[1]]);var C=T[1].slice(R[1].length);return C.length>0&&S.splice(E+2,0,[T[0],C]),x(S,E,3)}else return y}function g(y){for(var w=!1,_=function(T){return T.charCodeAt(0)>=56320&&T.charCodeAt(0)<=57343},S=function(T){return T.charCodeAt(T.length-1)>=55296&&T.charCodeAt(T.length-1)<=56319},E=2;E<y.length;E+=1)y[E-2][0]===a&&S(y[E-2][1])&&y[E-1][0]===i&&_(y[E-1][1])&&y[E][0]===o&&_(y[E][1])&&(w=!0,y[E-1][1]=y[E-2][1].slice(-1)+y[E-1][1],y[E][1]=y[E-2][1].slice(-1)+y[E][1],y[E-2][1]=y[E-2][1].slice(0,-1));if(!w)return y;for(var R=[],E=0;E<y.length;E+=1)y[E][1].length>0&&R.push(y[E]);return R}function x(y,w,_){for(var S=w+_-1;S>=0&&S>=w-1;S--)if(S+1<y.length){var E=y[S],R=y[S+1];E[0]===R[1]&&y.splice(S,2,[E[0],E[1]+R[1]])}return y}}),(function(t,n){n=t.exports=typeof Object.keys=="function"?Object.keys:i,n.shim=i;function i(o){var a=[];for(var s in o)a.push(s);return a}}),(function(t,n){var i=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";n=t.exports=i?o:a,n.supported=o;function o(s){return Object.prototype.toString.call(s)=="[object Arguments]"}n.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,n){var i=Object.prototype.hasOwnProperty,o="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(o=!1));function s(d,f,l){this.fn=d,this.context=f,this.once=l||!1}function c(){this._events=new a,this._eventsCount=0}c.prototype.eventNames=function(){var f=[],l,u;if(this._eventsCount===0)return f;for(u in l=this._events)i.call(l,u)&&f.push(o?u.slice(1):u);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(l)):f},c.prototype.listeners=function(f,l){var u=o?o+f:f,h=this._events[u];if(l)return!!h;if(!h)return[];if(h.fn)return[h.fn];for(var v=0,b=h.length,p=new Array(b);v<b;v++)p[v]=h[v].fn;return p},c.prototype.emit=function(f,l,u,h,v,b){var p=o?o+f:f;if(!this._events[p])return!1;var m=this._events[p],g=arguments.length,x,y;if(m.fn){switch(m.once&&this.removeListener(f,m.fn,void 0,!0),g){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,l),!0;case 3:return m.fn.call(m.context,l,u),!0;case 4:return m.fn.call(m.context,l,u,h),!0;case 5:return m.fn.call(m.context,l,u,h,v),!0;case 6:return m.fn.call(m.context,l,u,h,v,b),!0}for(y=1,x=new Array(g-1);y<g;y++)x[y-1]=arguments[y];m.fn.apply(m.context,x)}else{var w=m.length,_;for(y=0;y<w;y++)switch(m[y].once&&this.removeListener(f,m[y].fn,void 0,!0),g){case 1:m[y].fn.call(m[y].context);break;case 2:m[y].fn.call(m[y].context,l);break;case 3:m[y].fn.call(m[y].context,l,u);break;case 4:m[y].fn.call(m[y].context,l,u,h);break;default:if(!x)for(_=1,x=new Array(g-1);_<g;_++)x[_-1]=arguments[_];m[y].fn.apply(m[y].context,x)}}return!0},c.prototype.on=function(f,l,u){var h=new s(l,u||this),v=o?o+f:f;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},c.prototype.once=function(f,l,u){var h=new s(l,u||this,!0),v=o?o+f:f;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},c.prototype.removeListener=function(f,l,u,h){var v=o?o+f:f;if(!this._events[v])return this;if(!l)return--this._eventsCount===0?this._events=new a:delete this._events[v],this;var b=this._events[v];if(b.fn)b.fn===l&&(!h||b.once)&&(!u||b.context===u)&&(--this._eventsCount===0?this._events=new a:delete this._events[v]);else{for(var p=0,m=[],g=b.length;p<g;p++)(b[p].fn!==l||h&&!b[p].once||u&&b[p].context!==u)&&m.push(b[p]);m.length?this._events[v]=m.length===1?m[0]:m:--this._eventsCount===0?this._events=new a:delete this._events[v]}return this},c.prototype.removeAllListeners=function(f){var l;return f?(l=o?o+f:f,this._events[l]&&(--this._eventsCount===0?this._events=new a:delete this._events[l])):(this._events=new a,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=o,c.EventEmitter=c,typeof t<"u"&&(t.exports=c)}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.matchText=n.matchSpacing=n.matchNewline=n.matchBlot=n.matchAttributor=n.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(ee,ue){var le=[],ae=!0,pe=!1,fe=void 0;try{for(var me=ee[Symbol.iterator](),Oe;!(ae=(Oe=me.next()).done)&&(le.push(Oe.value),!(ue&&le.length===ue));ae=!0);}catch(qe){pe=!0,fe=qe}finally{try{!ae&&me.return&&me.return()}finally{if(pe)throw fe}}return le}return function(ee,ue){if(Array.isArray(ee))return ee;if(Symbol.iterator in Object(ee))return Q(ee,ue);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function Q(ee,ue){for(var le=0;le<ue.length;le++){var ae=ue[le];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(ee,ae.key,ae)}}return function(ee,ue,le){return ue&&Q(ee.prototype,ue),le&&Q(ee,le),ee}})(),c=i(3),d=O(c),f=i(2),l=O(f),u=i(0),h=O(u),v=i(5),b=O(v),p=i(10),m=O(p),g=i(9),x=O(g),y=i(36),w=i(37),_=i(13),S=O(_),E=i(26),R=i(38),T=i(39),C=i(40);function O(Q){return Q&&Q.__esModule?Q:{default:Q}}function A(Q,ee,ue){return ee in Q?Object.defineProperty(Q,ee,{value:ue,enumerable:!0,configurable:!0,writable:!0}):Q[ee]=ue,Q}function P(Q,ee){if(!(Q instanceof ee))throw new TypeError("Cannot call a class as a function")}function I(Q,ee){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee&&(typeof ee=="object"||typeof ee=="function")?ee:Q}function $(Q,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ee);Q.prototype=Object.create(ee&&ee.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),ee&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,ee):Q.__proto__=ee)}var H=(0,m.default)("quill:clipboard"),G="__ql-matcher",D=[[Node.TEXT_NODE,se],[Node.TEXT_NODE,re],["br",J],[Node.ELEMENT_NODE,re],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,de],[Node.ELEMENT_NODE,U],[Node.ELEMENT_NODE,oe],["li",ce],["b",V.bind(V,"bold")],["i",V.bind(V,"italic")],["style",ne]],F=[y.AlignAttribute,R.DirectionAttribute].reduce(function(Q,ee){return Q[ee.keyName]=ee,Q},{}),N=[y.AlignStyle,w.BackgroundStyle,E.ColorStyle,R.DirectionStyle,T.FontStyle,C.SizeStyle].reduce(function(Q,ee){return Q[ee.keyName]=ee,Q},{}),L=(function(Q){$(ee,Q);function ee(ue,le){P(this,ee);var ae=I(this,(ee.__proto__||Object.getPrototypeOf(ee)).call(this,ue,le));return ae.quill.root.addEventListener("paste",ae.onPaste.bind(ae)),ae.container=ae.quill.addContainer("ql-clipboard"),ae.container.setAttribute("contenteditable",!0),ae.container.setAttribute("tabindex",-1),ae.matchers=[],D.concat(ae.options.matchers).forEach(function(pe){var fe=a(pe,2),me=fe[0],Oe=fe[1];!le.matchVisual&&Oe===de||ae.addMatcher(me,Oe)}),ae}return s(ee,[{key:"addMatcher",value:function(le,ae){this.matchers.push([le,ae])}},{key:"convert",value:function(le){if(typeof le=="string")return this.container.innerHTML=le.replace(/\>\r?\n +\</g,"><"),this.convert();var ae=this.quill.getFormat(this.quill.selection.savedRange.index);if(ae[S.default.blotName]){var pe=this.container.innerText;return this.container.innerHTML="",new l.default().insert(pe,A({},S.default.blotName,ae[S.default.blotName]))}var fe=this.prepareMatching(),me=a(fe,2),Oe=me[0],qe=me[1],Ce=j(this.container,Oe,qe);return W(Ce,`
|
|
46
|
-
`)&&Ce.ops[Ce.ops.length-1].attributes==null&&(Ce=Ce.compose(new l.default().retain(Ce.length()-1).delete(1))),H.log("convert",this.container.innerHTML,Ce),this.container.innerHTML="",Ce}},{key:"dangerouslyPasteHTML",value:function(le,ae){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b.default.sources.API;if(typeof le=="string")this.quill.setContents(this.convert(le),ae),this.quill.setSelection(0,b.default.sources.SILENT);else{var fe=this.convert(ae);this.quill.updateContents(new l.default().retain(le).concat(fe),pe),this.quill.setSelection(le+fe.length(),b.default.sources.SILENT)}}},{key:"onPaste",value:function(le){var ae=this;if(!(le.defaultPrevented||!this.quill.isEnabled())){var pe=this.quill.getSelection(),fe=new l.default().retain(pe.index),me=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(b.default.sources.SILENT),setTimeout(function(){fe=fe.concat(ae.convert()).delete(pe.length),ae.quill.updateContents(fe,b.default.sources.USER),ae.quill.setSelection(fe.length()-pe.length,b.default.sources.SILENT),ae.quill.scrollingContainer.scrollTop=me,ae.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var le=this,ae=[],pe=[];return this.matchers.forEach(function(fe){var me=a(fe,2),Oe=me[0],qe=me[1];switch(Oe){case Node.TEXT_NODE:pe.push(qe);break;case Node.ELEMENT_NODE:ae.push(qe);break;default:[].forEach.call(le.container.querySelectorAll(Oe),function(Ce){Ce[G]=Ce[G]||[],Ce[G].push(qe)});break}}),[ae,pe]}}]),ee})(x.default);L.DEFAULTS={matchers:[],matchVisual:!0};function B(Q,ee,ue){return(typeof ee>"u"?"undefined":o(ee))==="object"?Object.keys(ee).reduce(function(le,ae){return B(le,ae,ee[ae])},Q):Q.reduce(function(le,ae){return ae.attributes&&ae.attributes[ee]?le.push(ae):le.insert(ae.insert,(0,d.default)({},A({},ee,ue),ae.attributes))},new l.default)}function X(Q){if(Q.nodeType!==Node.ELEMENT_NODE)return{};var ee="__ql-computed-style";return Q[ee]||(Q[ee]=window.getComputedStyle(Q))}function W(Q,ee){for(var ue="",le=Q.ops.length-1;le>=0&&ue.length<ee.length;--le){var ae=Q.ops[le];if(typeof ae.insert!="string")break;ue=ae.insert+ue}return ue.slice(-1*ee.length)===ee}function q(Q){if(Q.childNodes.length===0)return!1;var ee=X(Q);return["block","list-item"].indexOf(ee.display)>-1}function j(Q,ee,ue){return Q.nodeType===Q.TEXT_NODE?ue.reduce(function(le,ae){return ae(Q,le)},new l.default):Q.nodeType===Q.ELEMENT_NODE?[].reduce.call(Q.childNodes||[],function(le,ae){var pe=j(ae,ee,ue);return ae.nodeType===Q.ELEMENT_NODE&&(pe=ee.reduce(function(fe,me){return me(ae,fe)},pe),pe=(ae[G]||[]).reduce(function(fe,me){return me(ae,fe)},pe)),le.concat(pe)},new l.default):new l.default}function V(Q,ee,ue){return B(ue,Q,!0)}function U(Q,ee){var ue=h.default.Attributor.Attribute.keys(Q),le=h.default.Attributor.Class.keys(Q),ae=h.default.Attributor.Style.keys(Q),pe={};return ue.concat(le).concat(ae).forEach(function(fe){var me=h.default.query(fe,h.default.Scope.ATTRIBUTE);me!=null&&(pe[me.attrName]=me.value(Q),pe[me.attrName])||(me=F[fe],me!=null&&(me.attrName===fe||me.keyName===fe)&&(pe[me.attrName]=me.value(Q)||void 0),me=N[fe],me!=null&&(me.attrName===fe||me.keyName===fe)&&(me=N[fe],pe[me.attrName]=me.value(Q)||void 0))}),Object.keys(pe).length>0&&(ee=B(ee,pe)),ee}function K(Q,ee){var ue=h.default.query(Q);if(ue==null)return ee;if(ue.prototype instanceof h.default.Embed){var le={},ae=ue.value(Q);ae!=null&&(le[ue.blotName]=ae,ee=new l.default().insert(le,ue.formats(Q)))}else typeof ue.formats=="function"&&(ee=B(ee,ue.blotName,ue.formats(Q)));return ee}function J(Q,ee){return W(ee,`
|
|
47
|
-
`)||ee.insert(`
|
|
48
|
-
`),ee}function ne(){return new l.default}function ce(Q,ee){var ue=h.default.query(Q);if(ue==null||ue.blotName!=="list-item"||!W(ee,`
|
|
49
|
-
`))return ee;for(var le=-1,ae=Q.parentNode;!ae.classList.contains("ql-clipboard");)(h.default.query(ae)||{}).blotName==="list"&&(le+=1),ae=ae.parentNode;return le<=0?ee:ee.compose(new l.default().retain(ee.length()-1).retain(1,{indent:le}))}function re(Q,ee){return W(ee,`
|
|
50
|
-
`)||(q(Q)||ee.length()>0&&Q.nextSibling&&q(Q.nextSibling))&&ee.insert(`
|
|
51
|
-
`),ee}function de(Q,ee){if(q(Q)&&Q.nextElementSibling!=null&&!W(ee,`
|
|
52
|
-
|
|
53
|
-
`)){var ue=Q.offsetHeight+parseFloat(X(Q).marginTop)+parseFloat(X(Q).marginBottom);Q.nextElementSibling.offsetTop>Q.offsetTop+ue*1.5&&ee.insert(`
|
|
54
|
-
`)}return ee}function oe(Q,ee){var ue={},le=Q.style||{};return le.fontStyle&&X(Q).fontStyle==="italic"&&(ue.italic=!0),le.fontWeight&&(X(Q).fontWeight.startsWith("bold")||parseInt(X(Q).fontWeight)>=700)&&(ue.bold=!0),Object.keys(ue).length>0&&(ee=B(ee,ue)),parseFloat(le.textIndent||0)>0&&(ee=new l.default().insert(" ").concat(ee)),ee}function se(Q,ee){var ue=Q.data;if(Q.parentNode.tagName==="O:P")return ee.insert(ue.trim());if(ue.trim().length===0&&Q.parentNode.classList.contains("ql-clipboard"))return ee;if(!X(Q.parentNode).whiteSpace.startsWith("pre")){var le=function(pe,fe){return fe=fe.replace(/[^\u00a0]/g,""),fe.length<1&&pe?" ":fe};ue=ue.replace(/\r\n/g," ").replace(/\n/g," "),ue=ue.replace(/\s\s+/g,le.bind(le,!0)),(Q.previousSibling==null&&q(Q.parentNode)||Q.previousSibling!=null&&q(Q.previousSibling))&&(ue=ue.replace(/^\s+/,le.bind(le,!1))),(Q.nextSibling==null&&q(Q.parentNode)||Q.nextSibling!=null&&q(Q.nextSibling))&&(ue=ue.replace(/\s+$/,le.bind(le,!1)))}return ee.insert(ue)}n.default=L,n.matchAttributor=U,n.matchBlot=K,n.matchNewline=re,n.matchSpacing=de,n.matchText=se}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function v(b,p){for(var m=0;m<p.length;m++){var g=p[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(b,g.key,g)}}return function(b,p,m){return p&&v(b.prototype,p),m&&v(b,m),b}})(),a=function v(b,p,m){b===null&&(b=Function.prototype);var g=Object.getOwnPropertyDescriptor(b,p);if(g===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,p,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},s=i(6),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function l(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function u(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=(function(v){u(b,v);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"optimize",value:function(m){a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,m),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),b})(c.default);h.blotName="bold",h.tagName=["STRONG","B"],n.default=h}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var o=(function(){function C(O,A){var P=[],I=!0,$=!1,H=void 0;try{for(var G=O[Symbol.iterator](),D;!(I=(D=G.next()).done)&&(P.push(D.value),!(A&&P.length===A));I=!0);}catch(F){$=!0,H=F}finally{try{!I&&G.return&&G.return()}finally{if($)throw H}}return P}return function(O,A){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return C(O,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function C(O,A){for(var P=0;P<A.length;P++){var I=A[P];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(O,I.key,I)}}return function(O,A,P){return A&&C(O.prototype,A),P&&C(O,P),O}})(),s=i(2),c=m(s),d=i(0),f=m(d),l=i(5),u=m(l),h=i(10),v=m(h),b=i(9),p=m(b);function m(C){return C&&C.__esModule?C:{default:C}}function g(C,O,A){return O in C?Object.defineProperty(C,O,{value:A,enumerable:!0,configurable:!0,writable:!0}):C[O]=A,C}function x(C,O){if(!(C instanceof O))throw new TypeError("Cannot call a class as a function")}function y(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 w(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 _=(0,v.default)("quill:toolbar"),S=(function(C){w(O,C);function O(A,P){x(this,O);var I=y(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,A,P));if(Array.isArray(I.options.container)){var $=document.createElement("div");R($,I.options.container),A.container.parentNode.insertBefore($,A.container),I.container=$}else typeof I.options.container=="string"?I.container=document.querySelector(I.options.container):I.container=I.options.container;if(!(I.container instanceof HTMLElement)){var H;return H=_.error("Container required for toolbar",I.options),y(I,H)}return I.container.classList.add("ql-toolbar"),I.controls=[],I.handlers={},Object.keys(I.options.handlers).forEach(function(G){I.addHandler(G,I.options.handlers[G])}),[].forEach.call(I.container.querySelectorAll("button, select"),function(G){I.attach(G)}),I.quill.on(u.default.events.EDITOR_CHANGE,function(G,D){G===u.default.events.SELECTION_CHANGE&&I.update(D)}),I.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){var G=I.quill.selection.getRange(),D=o(G,1),F=D[0];I.update(F)}),I}return a(O,[{key:"addHandler",value:function(P,I){this.handlers[P]=I}},{key:"attach",value:function(P){var I=this,$=[].find.call(P.classList,function(G){return G.indexOf("ql-")===0});if($){if($=$.slice(3),P.tagName==="BUTTON"&&P.setAttribute("type","button"),this.handlers[$]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[$]==null){_.warn("ignoring attaching to disabled format",$,P);return}if(f.default.query($)==null){_.warn("ignoring attaching to nonexistent format",$,P);return}}var H=P.tagName==="SELECT"?"change":"click";P.addEventListener(H,function(G){var D=void 0;if(P.tagName==="SELECT"){if(P.selectedIndex<0)return;var F=P.options[P.selectedIndex];F.hasAttribute("selected")?D=!1:D=F.value||!1}else P.classList.contains("ql-active")?D=!1:D=P.value||!P.hasAttribute("value"),G.preventDefault();I.quill.focus();var N=I.quill.selection.getRange(),L=o(N,1),B=L[0];if(I.handlers[$]!=null)I.handlers[$].call(I,D);else if(f.default.query($).prototype instanceof f.default.Embed){if(D=prompt("Enter "+$),!D)return;I.quill.updateContents(new c.default().retain(B.index).delete(B.length).insert(g({},$,D)),u.default.sources.USER)}else I.quill.format($,D,u.default.sources.USER);I.update(B)}),this.controls.push([$,P])}}},{key:"update",value:function(P){var I=P==null?{}:this.quill.getFormat(P);this.controls.forEach(function($){var H=o($,2),G=H[0],D=H[1];if(D.tagName==="SELECT"){var F=void 0;if(P==null)F=null;else if(I[G]==null)F=D.querySelector("option[selected]");else if(!Array.isArray(I[G])){var N=I[G];typeof N=="string"&&(N=N.replace(/\"/g,'\\"')),F=D.querySelector('option[value="'+N+'"]')}F==null?(D.value="",D.selectedIndex=-1):F.selected=!0}else if(P==null)D.classList.remove("ql-active");else if(D.hasAttribute("value")){var L=I[G]===D.getAttribute("value")||I[G]!=null&&I[G].toString()===D.getAttribute("value")||I[G]==null&&!D.getAttribute("value");D.classList.toggle("ql-active",L)}else D.classList.toggle("ql-active",I[G]!=null)})}}]),O})(p.default);S.DEFAULTS={};function E(C,O,A){var P=document.createElement("button");P.setAttribute("type","button"),P.classList.add("ql-"+O),A!=null&&(P.value=A),C.appendChild(P)}function R(C,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(A){var P=document.createElement("span");P.classList.add("ql-formats"),A.forEach(function(I){if(typeof I=="string")E(P,I);else{var $=Object.keys(I)[0],H=I[$];Array.isArray(H)?T(P,$,H):E(P,$,H)}}),C.appendChild(P)})}function T(C,O,A){var P=document.createElement("select");P.classList.add("ql-"+O),A.forEach(function(I){var $=document.createElement("option");I!==!1?$.setAttribute("value",I):$.setAttribute("selected","selected"),P.appendChild($)}),C.appendChild(P)}S.DEFAULTS={container:null,handlers:{clean:function(){var O=this,A=this.quill.getSelection();if(A!=null)if(A.length==0){var P=this.quill.getFormat();Object.keys(P).forEach(function(I){f.default.query(I,f.default.Scope.INLINE)!=null&&O.quill.format(I,!1)})}else this.quill.removeFormat(A,u.default.sources.USER)},direction:function(O){var A=this.quill.getFormat().align;O==="rtl"&&A==null?this.quill.format("align","right",u.default.sources.USER):!O&&A==="right"&&this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",O,u.default.sources.USER)},indent:function(O){var A=this.quill.getSelection(),P=this.quill.getFormat(A),I=parseInt(P.indent||0);if(O==="+1"||O==="-1"){var $=O==="+1"?1:-1;P.direction==="rtl"&&($*=-1),this.quill.format("indent",I+$,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 A=this.quill.getSelection(),P=this.quill.getFormat(A);O==="check"?P.list==="checked"||P.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)}}},n.default=S,n.addControls=R}),(function(t,n){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,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function v(b,p){for(var m=0;m<p.length;m++){var g=p[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(b,g.key,g)}}return function(b,p,m){return p&&v(b.prototype,p),m&&v(b,m),b}})(),a=function v(b,p,m){b===null&&(b=Function.prototype);var g=Object.getOwnPropertyDescriptor(b,p);if(g===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,p,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},s=i(28),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function l(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function u(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=(function(v){u(b,v);function b(p,m){f(this,b);var g=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,p));return g.label.innerHTML=m,g.container.classList.add("ql-color-picker"),[].slice.call(g.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),g}return o(b,[{key:"buildItem",value:function(m){var g=a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"buildItem",this).call(this,m);return g.style.backgroundColor=m.getAttribute("value")||"",g}},{key:"selectItem",value:function(m,g){a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"selectItem",this).call(this,m,g);var x=this.label.querySelector(".ql-color-label"),y=m&&m.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=y:x.style.fill=y)}}]),b})(c.default);n.default=h}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function v(b,p){for(var m=0;m<p.length;m++){var g=p[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(b,g.key,g)}}return function(b,p,m){return p&&v(b.prototype,p),m&&v(b,m),b}})(),a=function v(b,p,m){b===null&&(b=Function.prototype);var g=Object.getOwnPropertyDescriptor(b,p);if(g===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,p,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},s=i(28),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function l(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function u(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=(function(v){u(b,v);function b(p,m){f(this,b);var g=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,p));return g.container.classList.add("ql-icon-picker"),[].forEach.call(g.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=m[x.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return o(b,[{key:"selectItem",value:function(m,g){a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"selectItem",this).call(this,m,g),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),b})(c.default);n.default=h}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function c(d,f){for(var l=0;l<f.length;l++){var u=f[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,f,l){return f&&c(d.prototype,f),l&&c(d,l),d}})();function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var s=(function(){function c(d,f){var l=this;a(this,c),this.quill=d,this.boundsContainer=f||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(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var l=f.left+f.width/2-this.root.offsetWidth/2,u=f.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(),b=0;if(v.right>h.right&&(b=h.right-v.right,this.root.style.left=l+b+"px"),v.left<h.left&&(b=h.left-v.left,this.root.style.left=l+b+"px"),v.bottom>h.bottom){var p=v.bottom-v.top,m=f.bottom-f.top+p;this.root.style.top=u-m+"px",this.root.classList.add("ql-flip")}return b}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c})();n.default=s}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function T(C,O){var A=[],P=!0,I=!1,$=void 0;try{for(var H=C[Symbol.iterator](),G;!(P=(G=H.next()).done)&&(A.push(G.value),!(O&&A.length===O));P=!0);}catch(D){I=!0,$=D}finally{try{!P&&H.return&&H.return()}finally{if(I)throw $}}return A}return function(C,O){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return T(C,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function T(C,O,A){C===null&&(C=Function.prototype);var P=Object.getOwnPropertyDescriptor(C,O);if(P===void 0){var I=Object.getPrototypeOf(C);return I===null?void 0:T(I,O,A)}else{if("value"in P)return P.value;var $=P.get;return $===void 0?void 0:$.call(A)}},s=(function(){function T(C,O){for(var A=0;A<O.length;A++){var P=O[A];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(C,P.key,P)}}return function(C,O,A){return O&&T(C.prototype,O),A&&T(C,A),C}})(),c=i(3),d=x(c),f=i(8),l=x(f),u=i(43),h=x(u),v=i(27),b=x(v),p=i(15),m=i(41),g=x(m);function x(T){return T&&T.__esModule?T:{default:T}}function y(T,C){if(!(T instanceof C))throw new TypeError("Cannot call a class as a function")}function w(T,C){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:T}function _(T,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);T.prototype=Object.create(C&&C.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(T,C):T.__proto__=C)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],E=(function(T){_(C,T);function C(O,A){y(this,C),A.modules.toolbar!=null&&A.modules.toolbar.container==null&&(A.modules.toolbar.container=S);var P=w(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,A));return P.quill.container.classList.add("ql-snow"),P}return s(C,[{key:"extendToolbar",value:function(A){A.container.classList.add("ql-snow"),this.buildButtons([].slice.call(A.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(A.container.querySelectorAll("select")),g.default),this.tooltip=new R(this.quill,this.options.bounds),A.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(P,I){A.handlers.link.call(A,!I.format.link)})}}]),C})(h.default);E.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 A=this.quill.getText(O);/^\S+@\S+\.\S+$/.test(A)&&A.indexOf("mailto:")!==0&&(A="mailto:"+A);var P=this.quill.theme.tooltip;P.edit("link",A)}else this.quill.format("link",!1)}}}}});var R=(function(T){_(C,T);function C(O,A){y(this,C);var P=w(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,A));return P.preview=P.root.querySelector("a.ql-preview"),P}return s(C,[{key:"listen",value:function(){var A=this;a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(P){A.root.classList.contains("ql-editing")?A.save():A.edit("link",A.preview.textContent),P.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(P){if(A.linkRange!=null){var I=A.linkRange;A.restoreFocus(),A.quill.formatText(I,"link",!1,l.default.sources.USER),delete A.linkRange}P.preventDefault(),A.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(P,I,$){if(P!=null){if(P.length===0&&$===l.default.sources.USER){var H=A.quill.scroll.descendant(b.default,P.index),G=o(H,2),D=G[0],F=G[1];if(D!=null){A.linkRange=new p.Range(P.index-F,D.length());var N=b.default.formats(D.domNode);A.preview.textContent=N,A.preview.setAttribute("href",N),A.show(),A.position(A.quill.getBounds(A.linkRange));return}}else delete A.linkRange;A.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);R.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(""),n.default=E}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(29),a=ae(o),s=i(36),c=i(38),d=i(64),f=i(65),l=ae(f),u=i(66),h=ae(u),v=i(67),b=ae(v),p=i(37),m=i(26),g=i(39),x=i(40),y=i(56),w=ae(y),_=i(68),S=ae(_),E=i(27),R=ae(E),T=i(69),C=ae(T),O=i(70),A=ae(O),P=i(71),I=ae(P),$=i(72),H=ae($),G=i(73),D=ae(G),F=i(13),N=ae(F),L=i(74),B=ae(L),X=i(75),W=ae(X),q=i(57),j=ae(q),V=i(41),U=ae(V),K=i(28),J=ae(K),ne=i(59),ce=ae(ne),re=i(60),de=ae(re),oe=i(61),se=ae(oe),Q=i(108),ee=ae(Q),ue=i(62),le=ae(ue);function ae(pe){return pe&&pe.__esModule?pe:{default:pe}}a.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":x.SizeStyle},!0),a.default.register({"formats/align":s.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":d.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":g.FontClass,"formats/size":x.SizeClass,"formats/blockquote":l.default,"formats/code-block":N.default,"formats/header":h.default,"formats/list":b.default,"formats/bold":w.default,"formats/code":F.Code,"formats/italic":S.default,"formats/link":R.default,"formats/script":C.default,"formats/strike":A.default,"formats/underline":I.default,"formats/image":H.default,"formats/video":D.default,"formats/list/item":v.ListItem,"modules/formula":B.default,"modules/syntax":W.default,"modules/toolbar":j.default,"themes/bubble":ee.default,"themes/snow":le.default,"ui/icons":U.default,"ui/picker":J.default,"ui/icon-picker":de.default,"ui/color-picker":ce.default,"ui/tooltip":se.default},!0),n.default=a.default}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var o=(function(){function b(p,m){for(var g=0;g<m.length;g++){var x=m[g];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,m,g){return m&&b(p.prototype,m),g&&b(p,g),p}})(),a=function b(p,m,g){p===null&&(p=Function.prototype);var x=Object.getOwnPropertyDescriptor(p,m);if(x===void 0){var y=Object.getPrototypeOf(p);return y===null?void 0:b(y,m,g)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(g)}},s=i(0),c=d(s);function d(b){return b&&b.__esModule?b:{default:b}}function f(b,p){if(!(b instanceof p))throw new TypeError("Cannot call a class as a function")}function l(b,p){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:b}function u(b,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);b.prototype=Object.create(p&&p.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(b,p):b.__proto__=p)}var h=(function(b){u(p,b);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return o(p,[{key:"add",value:function(g,x){if(x==="+1"||x==="-1"){var y=this.value(g)||0;x=x==="+1"?y+1:y-1}return x===0?(this.remove(g),!0):a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"add",this).call(this,g,x)}},{key:"canAdd",value:function(g,x){return a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"canAdd",this).call(this,g,x)||a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"canAdd",this).call(this,g,parseInt(x))}},{key:"value",value:function(g){return parseInt(a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"value",this).call(this,g))||void 0}}]),p})(c.default.Attributor.Class),v=new h("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=v}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(4),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(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 f(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){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="blockquote",l.tagName="blockquote",n.default=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function h(v,b){for(var p=0;p<b.length;p++){var m=b[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,b,p){return b&&h(v.prototype,b),p&&h(v,p),v}})(),a=i(4),s=c(a);function c(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 f(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),f(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"],n.default=u}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var o=(function(){function y(w,_){for(var S=0;S<_.length;S++){var E=_[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,_,S){return _&&y(w.prototype,_),S&&y(w,S),w}})(),a=function y(w,_,S){w===null&&(w=Function.prototype);var E=Object.getOwnPropertyDescriptor(w,_);if(E===void 0){var R=Object.getPrototypeOf(w);return R===null?void 0:y(R,_,S)}else{if("value"in E)return E.value;var T=E.get;return T===void 0?void 0:T.call(S)}},s=i(0),c=h(s),d=i(4),f=h(d),l=i(25),u=h(l);function h(y){return y&&y.__esModule?y:{default:y}}function v(y,w,_){return w in y?Object.defineProperty(y,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):y[w]=_,y}function b(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function p(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function m(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var g=(function(y){m(w,y);function w(){return b(this,w),p(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return o(w,[{key:"format",value:function(S,E){S===x.blotName&&!E?this.replaceWith(c.default.create(this.statics.scope)):a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,S,E)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,E){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,E),this):(this.parent.unwrap(),a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,S,E))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:a(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,S)}}]),w})(f.default);g.blotName="list-item",g.tagName="LI";var x=(function(y){m(w,y),o(w,null,[{key:"create",value:function(S){var E=S==="ordered"?"OL":"UL",R=a(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,E);return(S==="checked"||S==="unchecked")&&R.setAttribute("data-checked",S==="checked"),R}},{key:"formats",value:function(S){if(S.tagName==="OL")return"ordered";if(S.tagName==="UL")return S.hasAttribute("data-checked")?S.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function w(_){b(this,w);var S=p(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,_)),E=function(T){if(T.target.parentNode===_){var C=S.statics.formats(_),O=c.default.find(T.target);C==="checked"?O.format("list","unchecked"):C==="unchecked"&&O.format("list","checked")}};return _.addEventListener("touchstart",E),_.addEventListener("mousedown",E),S}return o(w,[{key:"format",value:function(S,E){this.children.length>0&&this.children.tail.format(S,E)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,E){if(S instanceof g)a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,S,E);else{var R=E==null?this.length():E.offset(this),T=this.split(R);T.parent.insertBefore(S,T)}}},{key:"optimize",value:function(S){a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,S);var E=this.next;E!=null&&E.prev===this&&E.statics.blotName===this.statics.blotName&&E.domNode.tagName===this.domNode.tagName&&E.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(E.moveChildren(this),E.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var E=c.default.create(this.statics.defaultChild);S.moveChildren(E),this.appendChild(E)}a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,S)}}]),w})(u.default);x.blotName="list",x.scope=c.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[g],n.ListItem=g,n.default=x}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(56),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(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 f(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){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="italic",l.tagName=["EM","I"],n.default=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function v(b,p){for(var m=0;m<p.length;m++){var g=p[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(b,g.key,g)}}return function(b,p,m){return p&&v(b.prototype,p),m&&v(b,m),b}})(),a=function v(b,p,m){b===null&&(b=Function.prototype);var g=Object.getOwnPropertyDescriptor(b,p);if(g===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,p,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},s=i(6),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function l(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function u(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=(function(v){u(b,v);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):a(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),b})(c.default);h.blotName="script",h.tagName=["SUB","SUP"],n.default=h}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(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 f(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){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="strike",l.tagName="S",n.default=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(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 f(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){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="underline",l.tagName="U",n.default=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function p(m,g){for(var x=0;x<g.length;x++){var y=g[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,x){return g&&p(m.prototype,g),x&&p(m,x),m}})(),a=function p(m,g,x){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,g,x)}else{if("value"in y)return y.value;var _=y.get;return _===void 0?void 0:_.call(x)}},s=i(0),c=f(s),d=i(27);function f(p){return p&&p.__esModule?p:{default:p}}function l(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function u(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function h(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var v=["alt","height","width"],b=(function(p){h(m,p);function m(){return l(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"format",value:function(x,y){v.indexOf(x)>-1?y?this.domNode.setAttribute(x,y):this.domNode.removeAttribute(x):a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,x,y)}}],[{key:"create",value:function(x){var y=a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,x);return typeof x=="string"&&y.setAttribute("src",this.sanitize(x)),y}},{key:"formats",value:function(x){return v.reduce(function(y,w){return x.hasAttribute(w)&&(y[w]=x.getAttribute(w)),y},{})}},{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")}}]),m})(c.default.Embed);b.blotName="image",b.tagName="IMG",n.default=b}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function p(m,g){for(var x=0;x<g.length;x++){var y=g[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,x){return g&&p(m.prototype,g),x&&p(m,x),m}})(),a=function p(m,g,x){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,g,x)}else{if("value"in y)return y.value;var _=y.get;return _===void 0?void 0:_.call(x)}},s=i(4),c=i(27),d=f(c);function f(p){return p&&p.__esModule?p:{default:p}}function l(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function u(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function h(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var v=["height","width"],b=(function(p){h(m,p);function m(){return l(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"format",value:function(x,y){v.indexOf(x)>-1?y?this.domNode.setAttribute(x,y):this.domNode.removeAttribute(x):a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,x,y)}}],[{key:"create",value:function(x){var y=a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,x);return y.setAttribute("frameborder","0"),y.setAttribute("allowfullscreen",!0),y.setAttribute("src",this.sanitize(x)),y}},{key:"formats",value:function(x){return v.reduce(function(y,w){return x.hasAttribute(w)&&(y[w]=x.getAttribute(w)),y},{})}},{key:"sanitize",value:function(x){return d.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),m})(s.BlockEmbed);b.blotName="video",b.className="ql-video",b.tagName="IFRAME",n.default=b}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var o=(function(){function x(y,w){for(var _=0;_<w.length;_++){var S=w[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(y,S.key,S)}}return function(y,w,_){return w&&x(y.prototype,w),_&&x(y,_),y}})(),a=function x(y,w,_){y===null&&(y=Function.prototype);var S=Object.getOwnPropertyDescriptor(y,w);if(S===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:x(E,w,_)}else{if("value"in S)return S.value;var R=S.get;return R===void 0?void 0:R.call(_)}},s=i(35),c=h(s),d=i(5),f=h(d),l=i(9),u=h(l);function h(x){return x&&x.__esModule?x:{default:x}}function v(x,y){if(!(x instanceof y))throw new TypeError("Cannot call a class as a function")}function b(x,y){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:x}function p(x,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}var m=(function(x){p(y,x);function y(){return v(this,y),b(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,null,[{key:"create",value:function(_){var S=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,_);return typeof _=="string"&&(window.katex.render(_,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",_)),S}},{key:"value",value:function(_){return _.getAttribute("data-value")}}]),y})(c.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var g=(function(x){p(y,x),o(y,null,[{key:"register",value:function(){f.default.register(m,!0)}}]);function y(){v(this,y);var w=b(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return w}return y})(u.default);n.FormulaBlot=m,n.default=g}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var o=(function(){function _(S,E){for(var R=0;R<E.length;R++){var T=E[R];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(S,T.key,T)}}return function(S,E,R){return E&&_(S.prototype,E),R&&_(S,R),S}})(),a=function _(S,E,R){S===null&&(S=Function.prototype);var T=Object.getOwnPropertyDescriptor(S,E);if(T===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:_(C,E,R)}else{if("value"in T)return T.value;var O=T.get;return O===void 0?void 0:O.call(R)}},s=i(0),c=b(s),d=i(5),f=b(d),l=i(9),u=b(l),h=i(13),v=b(h);function b(_){return _&&_.__esModule?_:{default:_}}function p(_,S){if(!(_ instanceof S))throw new TypeError("Cannot call a class as a function")}function m(_,S){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:_}function g(_,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);_.prototype=Object.create(S&&S.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(_,S):_.__proto__=S)}var x=(function(_){g(S,_);function S(){return p(this,S),m(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return o(S,[{key:"replaceWith",value:function(R){this.domNode.textContent=this.domNode.textContent,this.attach(),a(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,R)}},{key:"highlight",value:function(R){var T=this.domNode.textContent;this.cachedText!==T&&((T.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=R(T),this.domNode.normalize(),this.attach()),this.cachedText=T)}}]),S})(v.default);x.className="ql-syntax";var y=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),w=(function(_){g(S,_),o(S,null,[{key:"register",value:function(){f.default.register(y,!0),f.default.register(x,!0)}}]);function S(E,R){p(this,S);var T=m(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,E,R));if(typeof T.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return T.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){T.highlight(),C=null},T.options.interval)}),T.highlight(),T}return o(S,[{key:"highlight",value:function(){var R=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var T=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(C){C.highlight(R.options.highlight)}),this.quill.update(f.default.sources.SILENT),T!=null&&this.quill.setSelection(T,f.default.sources.SILENT)}}}]),S})(u.default);w.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(_){var S=window.hljs.highlightAuto(_);return S.value}})(),interval:1e3},n.CodeBlock=x,n.CodeToken=y,n.default=w}),(function(t,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var o=function S(E,R,T){E===null&&(E=Function.prototype);var C=Object.getOwnPropertyDescriptor(E,R);if(C===void 0){var O=Object.getPrototypeOf(E);return O===null?void 0:S(O,R,T)}else{if("value"in C)return C.value;var A=C.get;return A===void 0?void 0:A.call(T)}},a=(function(){function S(E,R){for(var T=0;T<R.length;T++){var C=R[T];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(E,C.key,C)}}return function(E,R,T){return R&&S(E.prototype,R),T&&S(E,T),E}})(),s=i(3),c=p(s),d=i(8),f=p(d),l=i(43),u=p(l),h=i(15),v=i(41),b=p(v);function p(S){return S&&S.__esModule?S:{default:S}}function m(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function g(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function x(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],w=(function(S){x(E,S);function E(R,T){m(this,E),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=y);var C=g(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,R,T));return C.quill.container.classList.add("ql-bubble"),C}return a(E,[{key:"extendToolbar",value:function(T){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(T.container),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),b.default)}}]),E})(u.default);w.DEFAULTS=(0,c.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){E?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=(function(S){x(E,S);function E(R,T){m(this,E);var C=g(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,R,T));return C.quill.on(f.default.events.EDITOR_CHANGE,function(O,A,P,I){if(O===f.default.events.SELECTION_CHANGE)if(A!=null&&A.length>0&&I===f.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var $=C.quill.getLines(A.index,A.length);if($.length===1)C.position(C.quill.getBounds(A));else{var H=$[$.length-1],G=C.quill.getIndex(H),D=Math.min(H.length()-1,A.index+A.length-G),F=C.quill.getBounds(new h.Range(G,D));C.position(F)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return a(E,[{key:"listen",value:function(){var T=this;o(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){T.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!T.root.classList.contains("ql-hidden")){var C=T.quill.getSelection();C!=null&&T.position(T.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(T){var C=o(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"position",this).call(this,T),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",C===0)return C;O.style.marginLeft=-1*C-O.offsetWidth/2+"px"}}]),E})(l.BaseTooltip);_.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(""),n.BubbleTooltip=_,n.default=w}),(function(t,n,i){t.exports=i(63)})]).default})})(Zi)),Zi.exports}var nr,td;function Fy(){if(td)return nr;td=1;var e=nr&&nr.__extends||(function(){var f=function(l,u){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var b in v)v.hasOwnProperty(b)&&(h[b]=v[b])},f(l,u)};return function(l,u){f(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}})(),r=nr&&nr.__assign||function(){return r=Object.assign||function(f){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)&&(f[v]=l[v])}return f},r.apply(this,arguments)},t=nr&&nr.__spreadArrays||function(){for(var f=0,l=0,u=arguments.length;l<u;l++)f+=arguments[l].length;for(var h=Array(f),v=0,l=0;l<u;l++)for(var b=arguments[l],p=0,m=b.length;p<m;p++,v++)h[v]=b[p];return h},n=nr&&nr.__importDefault||function(f){return f&&f.__esModule?f:{default:f}},i=n(z),o=n(ri),a=n(My()),s=n(Dy()),c=(function(f){e(l,f);function l(u){var h=f.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(b,p,m,g){var x,y,w,_;b==="text-change"?(y=(x=h).onEditorChangeText)===null||y===void 0||y.call(x,h.editor.root.innerHTML,p,g,h.unprivilegedEditor):b==="selection-change"&&((_=(w=h).onEditorChangeSelection)===null||_===void 0||_.call(w,p,g,h.unprivilegedEditor))};var v=h.isControlled()?u.value:u.defaultValue;return h.value=v??"",h}return l.prototype.validateProps=function(u){var h;if(i.default.Children.count(u.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(i.default.Children.count(u.children)){var v=i.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,b;if(this.validateProps(u),!this.editor||this.state.generation!==h.generation)return!0;if("value"in u){var p=this.getEditorContents(),m=(b=u.value,b??"");this.isEqualValue(m,p)||this.setEditorContents(this.editor,m)}return u.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,u.readOnly),t(this.cleanProps,this.dirtyProps).some(function(g){return!a.default(u[g],v.props[g])})},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 b=this.editor.getContents(),p=this.editor.getSelection();this.regenerationSnapshot={delta:b,selection:p},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==h.generation){var m=this.regenerationSnapshot,b=m.delta,g=m.selection;delete this.regenerationSnapshot,this.instantiateEditor();var x=this.editor;x.setContents(b),d(function(){return v.setEditorSelection(x,g)})}},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 b=this.getEditorSelection();typeof h=="string"?u.setContents(u.clipboard.convert(h)):u.setContents(h),d(function(){return v.setEditorSelection(u,b)})},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,b;!((b=(v=u)===null||v===void 0?void 0:v.scroll)===null||b===void 0)&&b.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,b=h.preserveWhitespace,p=this.state.generation,m={key:p,ref:function(g){u.editingArea=g}};return i.default.Children.count(v)?i.default.cloneElement(i.default.Children.only(v),m):b?i.default.createElement("pre",r({},m)):i.default.createElement("div",r({},m))},l.prototype.render=function(){var u;return i.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,b){var p,m;if(this.editor){var g=this.isDelta(this.value)?b.getContents():b.getHTML();g!==this.getEditorContents()&&(this.lastDeltaChangeSet=h,this.value=g,(m=(p=this.props).onChange)===null||m===void 0||m.call(p,u,h,v,b))}},l.prototype.onEditorChangeSelection=function(u,h,v){var b,p,m,g,x,y;if(this.editor){var w=this.getEditorSelection(),_=!w&&u,S=w&&!u;a.default(u,w)||(this.selection=u,(p=(b=this.props).onChangeSelection)===null||p===void 0||p.call(b,u,h,v),_?(g=(m=this.props).onFocus)===null||g===void 0||g.call(m,u,h,v):S&&((y=(x=this.props).onBlur)===null||y===void 0||y.call(x,w,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})(i.default.Component);function d(f){Promise.resolve().then(f)}return nr=c,nr}var mu=Fy();const $y=Me.getDefaultExportFromCjs(mu),Hr=({width:e="100%",height:r="100%",boxAlign:t,display:n="show",overflow:i,style:o,className:a,border:s=!0,children:c,ref:d})=>k.jsx("div",{style:{width:e,height:r,display:n==="show"?"":n,overflowX:i?.x,overflowY:i?.y,...o},className:`bwgview-content-box ${t?`content-box-${t}`:""} ${a||""} ${s?"":"none-box-st"}`,ref:d,children:c});mu.Quill.register("modules/imageResize",wm);const ao=e=>mm.sanitize(e??"",{ALLOWED_TAGS:["p","br","div","span","strong","b","em","i","u","s","blockquote","pre","code","ul","ol","li","h1","h2","h3","h4","h5","h6","a","img"],ALLOWED_ATTR:["style","class","href","target","rel","src","alt","width","height","data-*","align"],ALLOWED_URI_REGEXP:/^(?:(?:https?|data|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,KEEP_CONTENT:!0,RETURN_TRUSTED_TYPE:!1}),so=z.forwardRef(({border:e=!0,editorProps:r,value:t,defaultValue:n,onChange:i,onBlur:o,disabled:a},s)=>{const{isEditing:c=!0,title:d,containerHeight:f="100%"}=r||{},l=z.useRef(null),u=z.useMemo(()=>({toolbar:c?[[{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:mu.Quill.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"}}}),[c]),h=z.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image","width","height"],[]),v=t!==void 0,[b,p]=z.useState(n??""),m=v?t:b,g=z.useCallback((_,S,E,R)=>{const T=ao(_??"");v||p(T),i?.(T,S,E,R)},[v,i]),w=`calc(100% - ${c?"42px":"0px"} - ${d?"40px":"0px"})`;return z.useImperativeHandle(s,()=>({getHTML:()=>m??"",getText:()=>l.current?.getEditor()?.getText()??"",insertHTML:_=>{const S=l.current?.getEditor();if(!S)return;const E=S.getSelection(!0),R=ao(_??"");S.clipboard.dangerouslyPasteHTML(E?E.index:S.getLength(),R)},insertImage:(_,S)=>{const E=l.current?.getEditor();if(!E)return;const R=E.getSelection(!0),T=typeof _=="string"?_:"";E.insertEmbed(R?R.index:E.getLength(),"image",T,"user")},getQuill:()=>l.current?.getEditor?.()??null})),k.jsxs(Hr,{border:e,style:{opacity:a?.6:1,pointerEvents:a?"none":"auto",height:typeof f=="number"?`${f}px`:f},children:[d&&k.jsx(xo,{...d,paddingBottom:10}),k.jsx($y,{ref:l,readOnly:!c,value:m,onChange:g,onBlur:o,modules:u,formats:h,style:{width:"100%",height:w}},c?"snow":"bubble")]})}),By=(e,r,t,n)=>ao(e??""),qy=({itemProps:e,...r})=>{const{rules:t,shouldUpdate:n,dependencies:i,noStyle:o,...a}=e;return k.jsx(Y.Form.Item,{valuePropName:"value",trigger:"onChange",getValueFromEvent:By,normalize:s=>s??"",rules:t,shouldUpdate:n,dependencies:i,noStyle:o,...a,children:k.jsx(so,{...r})})},zy=e=>{const{itemProps:r,onChange:t,editorProps:n,...i}=e,o=Y.Form.useFormInstance();if(r?.name!=null){const a=r.name;return k.jsxs(k.Fragment,{children:[k.jsx(Y.Form.Item,{hidden:!0,name:a,rules:r.rules,normalize:s=>s??"",children:k.jsx("input",{type:"hidden"})}),k.jsx(so,{...i,editorProps:n,value:o.getFieldValue(a)??"",onChange:(s,c,d,f)=>{const l=ao(s??"");o.setFieldValue(a,l),t?.(l,c,d,f)},onBlur:()=>{o.validateFields([a]).catch(()=>{})}})]})}return k.jsx(so,{...e})},bl=Object.assign(zy,{FormItem:qy,Core:so});var Xr={},rd;function Hy(){if(rd)return Xr;rd=1;var e=ri;if(process.env.NODE_ENV==="production")Xr.createRoot=e.createRoot,Xr.hydrateRoot=e.hydrateRoot;else{var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Xr.createRoot=function(t,n){r.usingClientEntryPoint=!0;try{return e.createRoot(t,n)}finally{r.usingClientEntryPoint=!1}},Xr.hydrateRoot=function(t,n,i){r.usingClientEntryPoint=!0;try{return e.hydrateRoot(t,n,i)}finally{r.usingClientEntryPoint=!1}}}return Xr}var Vy=Hy();const yu=z.forwardRef(({currentPage:e,totalPages:r,pageSize:t=10,totalData:n,onPageChange:i,pageSizeOptions:o=[10,20,50,100],gridRef:a,mode:s="client",onServerPageChange:c},d)=>{const[f,l]=z.useState(t),[u,h]=z.useState(1),[v,b]=z.useState(t),[p,m]=z.useState(0);z.useEffect(()=>{l(t)},[t]),z.useEffect(()=>{l(t)},[]),z.useImperativeHandle(d,()=>({currentPage:u,pageSize:v,totalData:p,totalPages:Math.ceil(p/v),setPage:O=>{h(O),c?.(O,v)},setPageSize:O=>{b(O),h(1),c?.(1,O)},setTotalData:O=>{m(O)},reset:()=>{h(1),b(t),m(0)}}),[u,v,p,c,t]);const g=s==="client",x=g?(e||0)+1:u,y=g?(r||0)>0:p>0,_=g?y?Math.ceil((n||0)/f):0:Math.ceil(p/v),S=g?y&&n||0:p,E=Math.min(x,_||1),R=`${f}-${_}-${E}`,T=O=>{g?i?.(O-1):(h(O),c?.(O,v))},C=O=>{if(g){l(O);try{a?.current?.gridView?(a.current.gridView.setPaging(!0,O),a.current.gridView.setPage(0)):i?.(0)}catch(A){console.warn("페이지 사이즈 변경 중 오류:",A),i?.(0)}}else b(O),h(1),c?.(1,O)};return k.jsxs("div",{style:{padding:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:"1px solid #f0f0f0",backgroundColor:"#fafafa"},children:[k.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[k.jsx("span",{style:{fontSize:"12px"},children:"페이지당"}),k.jsx("select",{value:g?f:v,onChange:O=>C(Number(O.target.value)),disabled:!y,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"4px",fontSize:"12px",opacity:y?1:.5},children:o.map(O=>k.jsxs("option",{value:O,children:[O,"개"]},O))}),k.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:y?1:.5},children:["/ 총 ",S,"개"]})]}),k.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[k.jsx(Y.Button,{onClick:()=>T(1),disabled:!y||E===1,style:{width:"30px",height:"24px",background:!y||E===1?"#f5f5f5":"white",cursor:!y||E===1?"not-allowed":"pointer",opacity:y?1:.5},icon:k.jsx(Re.DoubleLeftOutlined,{})}),k.jsx(Y.Button,{onClick:()=>T(E-1),disabled:!y||E===1,style:{width:"30px",height:"24px",background:!y||E===1?"#f5f5f5":"white",cursor:!y||E===1?"not-allowed":"pointer",opacity:y?1:.5},icon:k.jsx(Re.LeftOutlined,{})}),k.jsx("div",{children:(()=>{if(!y||_===0)return k.jsx(Y.Button,{disabled:!0,style:{width:"30px",height:"24px"},children:"1"});const O=5;let A=1,P=Math.min(O,_);E>3&&_>O&&(A=Math.max(1,E-2),P=Math.min(_,A+O-1),P===_&&(A=Math.max(1,P-O+1)));const I=[];for(let $=A;$<=P;$++)I.push(k.jsx(Y.Button,{onClick:()=>T($),style:{width:"30px",height:"24px",background:E===$?"#1890ff":"white",color:E===$?"white":"black",cursor:"pointer"},children:$},$));return I})()},R),k.jsx(Y.Button,{onClick:()=>T(E+1),disabled:!y||E>=_,style:{width:"30px",height:"24px",background:!y||E>=_?"#f5f5f5":"white",cursor:!y||E>=_?"not-allowed":"pointer",opacity:y?1:.5},icon:k.jsx(Re.RightOutlined,{})}),k.jsx(Y.Button,{onClick:()=>T(_),disabled:!y||E>=_,style:{width:"30px",height:"24px",background:!y||E>=_?"#f5f5f5":"white",cursor:!y||E>=_?"not-allowed":"pointer",opacity:y?1:.5},icon:k.jsx(Re.DoubleRightOutlined,{})})]})]})});yu.displayName="BwgPagination";const Uy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",Wy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",Gy=[{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"}],Ky=[{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"}],Yy=({children:e})=>{const[r,t]=z.useState(!1),[n,i]=z.useState(null);return r?k.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:k.jsx(Y.Alert,{message:"리얼그리드 로드 실패",description:k.jsxs("div",{children:[k.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),k.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",n?.message||"알 수 없는 오류"]}),k.jsx(Y.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{t(!1),i(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):k.jsx(Xy,{onError:o=>{console.error("BwgGrid 에러:",o),i(o),t(!0)},children:e})};class Xy 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 sp=z.forwardRef(({type:e="nrml",gridDivStyle:r,gridDivClassName:t,gridColumns:n,gridOptions:i,gridEvents:o,bindRef:a,gridContext:s,renderers:c,gridInitCallback:d},f)=>{const l=z.useRef(null),u=z.useRef(new Map),h=(j,V,U,K)=>{let J=[],ne=[];const ce="treeNode";for(let re in j){let de=j[re];J[de[U]]=j[re];let oe=J[de[V]];if(oe==null||oe=="-"){ne.push(de);continue}oe[ce]==null&&(oe[ce]=[]),oe[ce].push(de)}return ne},v=z.useCallback(j=>{const V=K=>{const J=[];return K.forEach(ne=>{ne.children&&ne.children.length>0?J.push(...V(ne.children)):J.push(ne)}),J};return V(j).map(K=>({fieldName:K.fieldName,dataType:K.dataType||"text"}))},[]),b=z.useCallback(j=>{const V=K=>{const J=[];return K.forEach(ne=>{ne.children&&ne.children.length>0?J.push(...V(ne.children)):J.push(ne)}),J};return V(j).map(K=>({...K,header:{template:K.required?`<img src='${Wy}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:K.editable?`<img src='${Uy}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:K.header?.text??""},text:K.header?.text||""},styleName:K.dataType==="number"?"right":K.styleName||"center"}))},[]);z.useImperativeHandle(f,()=>({addAllData(j,V){const U=l.current?.gridView.getCurrent().dataRow;if(l.current?.dataProvider instanceof gt.LocalDataProvider){l.current.dataProvider.clearRows();try{l.current?.gridView.showLoading(),l.current.dataProvider.setRows(j)}catch(K){console.error("fillJsonData 오류:",K)}finally{l.current?.gridView.closeLoading()}}if(l.current?.dataProvider instanceof gt.LocalTreeDataProvider){if(l.current.dataProvider.clearRows(),V?.treeOption?.dataField==null||V?.treeOption?.parentField==null)return;const K={rows:"treeNode"};try{l.current?.gridView.showLoading();let J=h(j,V.treeOption?.parentField,V.treeOption?.dataField);l.current.dataProvider.fillJsonData({treeNode:J},K),V.treeOption.isExpand&&l.current.gridView?.expandAll()}catch(J){console.error("fillJsonData 오류:",J)}finally{l.current?.gridView.closeLoading()}}V?.isCurrent?l.current?.gridView.setCurrent({dataRow:U}):l.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>l.current,getCurrentRow:()=>l.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>l.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(j){l.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!j?.indenting,header:"default",footer:"default",sheetName:"",fileName:j?.fileName||"sample.xlsx",...j})},getGridSaveData:()=>{const j=l.current?.dataProvider?.getAllStateRows();if(j===void 0)return[{}];let V=[];if(j.created!==void 0&&j.created.length>0)for(const U in j.created){let K=l.current?.dataProvider?.getJsonRow(j.created[U]);K={...K,iudFlag:"I"},V.push(K)}if(j.updated!==void 0&&j.updated.length>0)for(const U in j.updated){let K=l.current?.dataProvider?.getJsonRow(j.updated[U]);K={...K,iudFlag:"U"},V.push(K)}if(j.deleted!==void 0&&j.deleted.length>0)for(const U in j.deleted){let K=l.current?.dataProvider?.getJsonRow(j.deleted[U]);K={...K,iudFlag:"D"},V.push(K)}return V},deleteGridData:()=>{l?.current?.gridView?.getCheckedItems()?.map(V=>{let U=l?.current?.gridView?.getDataRow(V)??-1;const K=l?.current?.dataProvider?.getRowState(U);K==gt.RowState.DELETED?(l?.current?.dataProvider?.setRowState(U,u.current.get(V)??gt.RowState.NONE),u.current.delete(V)):K==gt.RowState.CREATED?l?.current?.dataProvider?.setRowState(U,gt.RowState.CREATE_AND_DELETED):K==gt.RowState.CREATE_AND_DELETED?l?.current?.dataProvider?.setRowState(U,gt.RowState.CREATED):(u.current.set(V,K??gt.RowState.NONE),l?.current?.dataProvider?.setRowState(U,gt.RowState.DELETED)),l?.current?.gridView?.checkItem(V,!1)})},_oriRowState:[{}],dp:l.current?.dataProvider??null,vw:l.current?.gridView??null}));const p=z.useCallback((j,V,U)=>{if(a!==void 0&&U>=0){let K=j.getDataSource().getJsonRow(U);a?.current?.setFieldsValue(K)}else a!==void 0&&U<0&&a?.current?.resetFields();j.setCurrent({dataRow:0}),o?.onCurrentRowChanged&&o?.onCurrentRowChanged(j,V,U)},[a,o]),m=z.useCallback((j,V,U)=>{const K=V.fieldName??"";a?.current?.getFieldInstance(K)&&a?.current.setFieldValue(K,U),o?.onEditChange&&o?.onEditChange(j,V,U)},[a,o]),g=z.useCallback((j,V,U)=>{const K=j.getOrgFieldName(U),J=j.getValue(V,U);a?.current?.setFieldValue(K,J)},[a]),x=z.useCallback((j,V,U,K)=>{const J=j.getColumn(K).name??"",ne=j.getValue(V,K);a?.current?.getFieldInstance(J)&&a?.current.setFieldValue(J,ne),o?.onCellEdited&&o?.onCellEdited(j,V,U,K)},[a,o]),y=z.useCallback(j=>{if(!l.current)return;const V=l.current.gridView,U=V.getDataSource();if(i?.container?.page){const K=V.getPage(),J=V.getPageCount(),ne=U.getRowCount();F({currentPage:K,totalPages:J,totalData:ne})}},[i?.container?.page]),w=z.useCallback(()=>{if(!l.current)return;const j=l.current.gridView,V=j.getDataSource(),U=["onKeyDown"],K=["onRowInserted"];Object.keys(o??{}).map(J=>{U.includes(J)?j[J+"Add"]=o?.[J]:j[J]=o?.[J],K.includes(J)?V[J+"Add"]=o?.[J]:V[J]=o?.[J]}),V instanceof gt.LocalDataProvider&&(V.onRowInserted=(J,ne)=>{ne<0||(setTimeout(function(){j?.setCurrent({dataRow:ne})},1),J.onRowInsertedAdd!==void 0&&J.onRowInsertedAdd(J,ne))}),j.onKeyDown=function(J,ne){if(ne.code=="Space"){let ce=J.getSelectedItems(!0);for(const re in ce)J.isCheckable(ce[re])&&(J.isCheckedItem(ce[re])?J.checkItem(ce[re],!1,!1):J.checkItem(ce[re],!0,!1))}return J.onKeyDownAdd!==void 0&&J.onKeyDownAdd(J,ne),!0},l.current.gridView.onCurrentRowChanged=p,l.current.gridView.onEditChange=m,l.current.gridView.getDataSource().onValueChanged=g,l.current.gridView.onCellEdited=x,l.current.gridView.onDataLoadComplated=y},[p,m,g,x,y]),_=z.useCallback(j=>{if(j){try{j.gridView.setSortingOptions({enabled:!0}),j.gridView.sortMode=gt.SortMode.EXPLICIT,j.gridView.editorOptions.viewGridInside=!0,j.gridView instanceof gt.TreeView&&j.gridView.setTreeOptions({expandWhenSetData:gt.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:gt.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),j.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:i?.display?.minRowHeight||43,maxRowHeight:i?.display?.maxRowHeight||100,rowHeight:i?.display?.rowHeight||43,rowChangeDelay:i?.display?.rowChangeDelay||0,selectionStyle:i?.display?.selectionStyle||gt.SelectionStyle.ROWS,fitStyle:i?.display?.fitStyle||gt.GridFitStyle.FILL,useAlternateRowStyle:i?.display?.useAlternateRowStyle||!1}),j.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:i?.edit?.editable||!1,validateOnEdited:i?.edit?.validateOnEdited||!1}),j.gridView.setCopyOptions({singleMode:i?.copy?.singleMode||!1}),j.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),j.gridView.header.height=i?.header?.height||43,j.gridView.header.styleName=i?.header?.styleName||"bwgGridHeader",i?.container?.radio?j.gridView.setCheckBar({exclusive:i?.container?.radio||!1}):j.gridView.setCheckBar({visible:i?.container?.check||!1,showAll:i?.container?.checkAll||!1}),j.gridView.setStateBar({visible:i?.container?.state||!1}),j.gridView.rowIndicator.visible=i?.container?.indicator||!1,j.gridView instanceof gt.GridView&&(j.gridView.groupPanel.visible=i?.container?.panel||!1),j.gridView.setFooters({visible:i?.container?.footer||!1}),j.gridView.setHeader({visible:i?.container?.header||!0}),j.gridView.formatOptions.numberFormat="#,##0"}catch(V){console.log("그리드 옵션 설정 중 오류:",V)}try{j.gridView instanceof gt.TreeView?j.gridView.setContextMenu(Ky):j.gridView.setContextMenu(Gy),j.gridView.onContextMenuItemClicked=function(V,U,K){if(!(!K||!K.column)){if(U.tag=="excel")O(V,{isTitle:!1},s?.excel);else if(U.tag=="showIndentExcel")O(V,{isTitle:!1,treeBlank:!0},s?.excel);else if(U.tag=="withTitleExcel")O(V,{isTitle:!0,treeBlank:!1},s?.excel);else if(U.tag=="filter")A(V,U);else if(U.tag=="fixedCol"){const ne=V.getDataSource().getFieldIndex(K.column);V.setFixedOptions({colCount:ne})}else if(U.tag=="fixedRow")V.setFixedOptions({rowCount:(K.itemIndex||0)+1});else if(U.tag=="fixedCancel")V.setFixedOptions({colCount:0,rowCount:0});else if(U.tag=="hide")V.setColumnProperty(K.column,"visible",!1),V._hideCols[V._hideCols.length]=K.column;else if(U.tag=="hideClear")for(var J=0;J<V._hideCols.length;J++)V.setColumnProperty(V._hideCols[J],"visible",!0)}}}catch(V){console.log("컨텍스트 설정 중 오류:",V)}}},[i]),S=j=>{if(!(!c||c.length===0))try{c.forEach(V=>{const{name:U,renderer:K}=V;if(U&&K){const J=typeof K=="function"?new K:K;j.gridView.registerCustomRenderer(U,J)}})}catch(V){console.error("커스텀 렌더러 초기화 중 오류:",V)}},E=j=>{j.onPageChanged=(V,U)=>{F(K=>({...K,currentPage:U}))},j.onPageCountChanged=(V,U)=>{F(K=>({...K,totalPages:U}))}},R=j=>{l.current?.gridView&&l.current.gridView.setPage(j)},T=j=>{if(i?.layout?.colspan&&i.layout.colspan.length>0&&i?.layout?.colspan.forEach(V=>{const U=j.gridView.layoutByColumn(V.fieldName);if(U){const K=V.span;U.spanCallback=function(J,ne,ce){return K}}}),n&&n.length>0&&n.some(U=>U.children&&U.children.length>0))try{(()=>{const K=JSON.parse(JSON.stringify(n)),J=[],ne=ce=>{const re=[];return ce.children.map(de=>{if(de.children&&de.children.length>0){const oe=ne(de),se=de.header?.text||de.fieldName,Q=j.gridView.getColumnProperty(de.fieldName,"header");delete de.children,delete de.header;let ee={name:de.fieldName,header:{text:Q?.text||se,template:Q?.template,values:Q?.values,visible:Q?.visible??!0},items:oe,...de};re.push(ee)}else re.push(de.fieldName)}),re};K.map(ce=>{if(ce.children&&ce.children.length>0){const re=ne(ce),de=ce.header?.text||ce.fieldName,oe=ce.header?.visible??!0,se=j.gridView.getColumnProperty(ce.fieldName,"header");delete ce.children,delete ce.header;const Q={name:ce.fieldName,header:{text:se?.text||de,template:se?.template,values:se?.values,visible:se?.visible||oe},items:re,...ce};J.push(Q)}else J.push(ce.fieldName)}),console.log("Final Layout!!",J),j.gridView.setColumnLayout(J)})()}catch(U){console.error("컬럼 레이아웃 설정 오류:",U)}},C=()=>{if(l.current){if(e==="nrml"){const j=l.current;if(_(j),S(j),n&&n.length>0){const V=v(n),U=b(n);j.gridView.getDataSource().setFields(V),j.gridView.setColumns(U)}if(T(j),i?.container?.page){const V=i?.pagingOption?.pageSize||10;j.gridView.setPaging(!0,V),E(j.gridView)}}else{const j=l.current;if(_(j),S(j),n&&n.length>0){const V=v(n),U=b(n);j.gridView.getDataSource().setFields(V),j.gridView.setColumns(U)}T(l.current)}setTimeout(()=>{if(d){const j=typeof f=="object"&&f!==null?f.current:null;d(j)}},0)}},O=(j,V,U)=>{const K=j.getDataSource();let J=U?.footer==null?"default":U.footer;K.getRowCount()<1&&(J="hidden");let ne={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!V?.treeBlank,footer:J,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:U?.fileName||"sample.xlsx"};K instanceof gt.LocalTreeDataProvider&&(ne.indenting=!!V?.treeBlank),U?.isCellMerge==!0&&(ne.separateRows=!1),Me.isEmpty(U?.sheetName)==!1&&(ne.sheetName=U?.sheetName),V?.isTitle&&(ne.documentTitle={message:Me.isSafeEmpty(U?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},Me.isEmpty(U?.subTitle)==!1&&(ne.documentSubtitle={message:U?.subTitle,visible:!0,styleName:"center",height:20}),Me.isEmpty(U?.tailTitle)==!1&&(ne.documentTail={message:U?.tailTitle,visible:!0,styleName:"documentStyle"})),j.exportGrid(ne)},A=(j,V)=>{const U=j.getDataSource(),K=U.getOrgFieldNames();if(V.checked)for(var J=0;J<K.length;J++){let ce=[],re=U.getDistinctValues(K[J])??[];if(re.length==0)continue;let de=j.columnByName(K[J]);for(var ne=0;ne<re.length;ne++){if(re[ne]==null)continue;let oe=de.values!=null&&de.values.indexOf(re[ne])!=-1?de?.labels?.[de.values.indexOf(re[ne])]:re[ne];Me.isEmpty(oe)&&(Me.isEmpty(re[ne])?oe=" ":oe=re[ne]);let se="";re[ne]==null?se="value="+re[ne]:se="value='"+re[ne]+"'",ce.push({name:oe,criteria:se})}j.setColumnFilters(K[J],ce)}else for(var J=0;J<K.length;J++)j.clearColumnFilters(K[J]),j.activateAllColumnFilters(K[J],!1),j.clearColumnFilters(K[J])};z.useEffect(()=>{if(l.current&&l.current.gridView)if(e==="nrml"){const j=l.current;_(j)}else{const j=l.current;_(j)}},[e,i,_]),z.useEffect(()=>{!l.current||!n||n.length===0||C()},[n]),z.useEffect(()=>{l.current&&w()},[o,w]);const[P,I]=z.useState(!1),[$,H]=z.useState(""),G=z.useRef(null),[D,F]=z.useState({currentPage:0,totalPages:0,totalData:0});z.useEffect(()=>{F({currentPage:0,totalPages:0,totalData:0})},[]),z.useEffect(()=>{P&&setTimeout(()=>{G.current?.focus?.()},0)},[P]),z.useEffect(()=>()=>{if(l.current)try{const j=l.current;j.gridView&&(j.gridView.onDataLoadComplated=void 0,j.gridView.onCurrentRowChanged=void 0,j.gridView.onCellClicked=void 0,j.gridView.onCellDblClicked=void 0,j.gridView.onEditRowChanged=void 0,j.gridView.onItemChecked=void 0,j.gridView.onItemAllChecked=void 0,j.gridView.onColumnCheckedChanged=void 0,j.gridView.onCellButtonClicked=void 0,j.gridView.onEditChange=void 0,j.gridView.onCellEdited=void 0,j.gridView.onKeyUp=void 0,j.gridView.onKeyDown=void 0,j.gridView.onWheel=void 0,j.gridView.onValidateColumn=void 0,j.gridView.onValidateRow=void 0,j.gridView.onValidationFail=void 0,j.gridView.onRowInserting=void 0,j.gridView.onCellItemClicked=void 0,j.gridView.onShowEditor=void 0,j.gridView.getDataSource()&&(j.gridView.getDataSource().clearRows(),j.gridView.getDataSource().setFields([])),j.gridView.getDataSource().clearRows())}catch(j){console.warn("⚠️ BwgGrid cleanup error:",j)}},[]);const N=z.useCallback(j=>{L(j)},[]),L=z.useCallback(j=>{const V=l.current?.gridView;if(V?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(V?.commit(),Me.isEmpty(j))return;const U=V?.getCurrent().itemIndex??-1;if(U<0)return;const K={value:j,startIndex:U+1,wrap:!0,caseSensitive:!1,partialMatch:!0},J=V?.searchCell(K);V?.setCurrent(J)},[]),B=z.useCallback(j=>{j.key==="Escape"&&(j.preventDefault(),I(!1))},[]),X=z.useCallback(j=>{j.ctrlKey&&j.code==="KeyF"&&(j.preventDefault(),H(""),I(!P))},[P]),W={searchRow:N,searchEnter:L,handleCloseKeyword:B,handleSearch:X},q=z.useMemo(()=>({...r,position:"relative",width:r?.width||"100%",height:r?.height||"100%"}),[r]);return k.jsxs(Yy,{children:[k.jsxs("div",{style:q,className:t,onKeyDown:j=>W.handleSearch(j),children:[P&&k.jsx("div",{className:"grid-search-box",children:k.jsxs(Y.Flex,{gap:3,children:[k.jsx(Y.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:k.jsxs(Y.Space.Compact,{children:[k.jsx(Y.Button,{icon:k.jsx(Re.SearchOutlined,{})}),k.jsx(Y.Input,{ref:G,value:$,name:"srchField",autoComplete:"off",onKeyUp:j=>W.handleCloseKeyword(j),onChange:j=>H(j.target.value),onPressEnter:j=>W.searchEnter(j)})]})}),k.jsx(Y.Button,{variant:"solid",icon:k.jsx(Re.CloseOutlined,{}),onClick:()=>I(!1)})]})}),e==="nrml"?k.jsx(Wu.RealGridReact,{ref:l,autoGenerateField:!0,onInitialized:C}):k.jsx(Wu.RealTreeReact,{ref:l,autoGenerateField:!1,onInitialized:C})]}),i?.container?.page&&k.jsx(yu,{currentPage:D.currentPage,totalPages:D.totalPages,pageSize:i?.pagingOption?.pageSize,totalData:D.totalData,onPageChange:R,pageSizeOptions:i?.pagingOption?.pageSizeOptions,gridRef:l})]})}),Qi=e=>({initContent(r){this._root=Vy.createRoot(r)},render(r,t,n,i){const o=this._root;o&&e(r,t,n,i,o)},clearContent(r){const t=this._root;t&&setTimeout(()=>{t&&(t.unmount(),this._root=null)},0)},canClick(r){return!0},click(){return{}}}),Zy=z.memo(({title:e,border:r,children:t,titleChildren:n})=>{const i=z.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return k.jsxs(Wr,{type:"vertical",children:[k.jsx(xo,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:n}),k.jsx(Hr,{border:!1,children:k.jsx(Y.ConfigProvider,{theme:i,children:t})})]})}),Wr=({type:e="horizontal",layoutAlign:r="left",verticalAlign:t,className:n,style:i,children:o})=>k.jsx("div",{style:i,className:`bwgview-content-layout ${e=="horizontal"?"hz-layout":"vt-layout"} layout-${r} ${t&&`vertical-${t}`} ${n||""}`,children:o}),nd=(e,r)=>{const t=window.innerWidth,n=window.innerHeight,i=Math.min(Math.max(e.x,0),Math.max(0,t-r.width)),o=Math.min(Math.max(e.y,0),Math.max(0,n-r.height));return{x:i,y:o}},Qy=({buttons:e,popupData:r,onButtonClick:t})=>!e||e.length===0?null:k.jsx("div",{style:{display:"flex",gap:6},children:e.map(n=>k.jsx(Y.Button,{type:n.type||"default",danger:n.danger,disabled:n.disabled,onClick:()=>t?.(n.key,r),className:"bwg-btn popup-btn",children:n.text},n.key))}),Jy=({popup:e,popupEvent:r,onClose:t,children:n})=>{const i=z.useRef(null);e?.popupId;const o=e?.popupTitle||"팝업",a=e?.width||800,s=e?.height||600,c=e?.buttonList?.map((_,S)=>({key:_.btnId||`btn_${S}`,text:_.btnNm,type:_.btnId==="CLOSE"?"default":"primary",disabled:_.enblYn!=="Y",danger:!1}))||[],f=c.some(_=>_.key==="CLOSE"||_.key==="close")?c:[...c,{key:"CLOSE",text:"닫기",type:"default",disabled:!1,danger:!1}],[l,u]=z.useState(a),[h,v]=z.useState(s),b=z.useMemo(()=>{const _=Math.max(0,(window.innerWidth-a)/2),S=Math.max(0,(window.innerHeight-s)/2);return{x:_,y:S}},[a,s]),[p,m]=z.useState(b),g=(_,S)=>{if(_==="CLOSE"||_==="close"){e?.close?.()||t?.();return}r&&r[_]?r[_]():e?.close?.()||t?.()},x=(_,S)=>{const E=nd({x:S.x,y:S.y},{width:l,height:h});m(E)},y=(_,S,E,R,T)=>{const C={width:parseInt(E.style.width,10),height:parseInt(E.style.height,10)},O=nd(T,C);u(C.width),v(C.height),m(O)},w=()=>i.current??document.body;return k.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[k.jsx("div",{onClick:t,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),k.jsxs($h.Rnd,{className:"bwg-popup",size:{width:l,height:h},position:p,bounds:"window",minWidth:400,minHeight:300,onDragStop:x,onResizeStop:y,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:[k.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:k.jsx(hu,{getPopupContainer:w,children:k.jsx(Wr,{type:"vertical",children:k.jsx(Y.Card,{className:"popup-drag-container",title:k.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:k.jsx(Qy,{buttons:f,popupData:e,onButtonClick:g}),children:k.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:k.jsx(vi.SearchBoxProvider,{children:n})})})})})}),k.jsx("div",{ref:i,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},e0=({children:e,...r})=>k.jsx(Y.Row,{...r,className:"bwg-row",children:e}),t0=({rowKey:e="id",columns:r,dataSource:t,loading:n=!1,rowSelection:i,size:o="middle",pagination:a=!1,...s})=>k.jsx(Y.Table,{rowKey:e,columns:r,dataSource:t,loading:n,rowSelection:i,size:o,pagination:a,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...s}),r0=e=>{const{type:r="card",animated:t=!0,...n}=e;return k.jsx(Y.Tabs,{type:r,animated:t,...n})};function xl(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function n0(e){if(Array.isArray(e))return xl(e)}function lp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bu(e,r){if(e){if(typeof e=="string")return xl(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)?xl(e,r):void 0}}function i0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
55
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Se(e){return n0(e)||lp(e)||bu(e)||i0()}function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},tt.apply(null,arguments)}var o0={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 up(e){if(Array.isArray(e))return e}function a0(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,o,a,s=[],c=!0,d=!1;try{if(o=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=o.call(t)).done)&&(s.push(n.value),s.length!==r);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(d)throw i}}return s}}function cp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
56
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ve(e,r){return up(e)||a0(e,r)||bu(e,r)||cp()}function Ae(e){"@babel/helpers - typeof";return Ae=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},Ae(e)}function s0(e,r){if(Ae(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(Ae(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function fp(e){var r=s0(e,"string");return Ae(r)=="symbol"?r:r+""}function te(e,r,t){return(r=fp(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l0(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function Ot(e,r){if(e==null)return{};var t,n,i=l0(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)===-1&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var zs={exports:{}};/*!
|
|
57
|
-
Copyright (c) 2018 Jed Watson.
|
|
58
|
-
Licensed under the MIT License (MIT), see
|
|
59
|
-
http://jedwatson.github.io/classnames
|
|
60
|
-
*/var id;function u0(){return id||(id=1,(function(e){(function(){var r={}.hasOwnProperty;function t(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)r.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(zs)),zs.exports}var c0=u0();const _e=Me.getDefaultExportFromCjs(c0),wt=Math.round;function Hs(e,r){const t=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=t.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=r(n[i]||0,t[i]||"",i);return t[3]?n[3]=t[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const od=(e,r,t)=>t===0?e:e/100;function Vn(e,r){const t=r||255;return e>t?t:e<0?0:e}let bt=class dp{constructor(r){te(this,"isValid",!0),te(this,"r",0),te(this,"g",0),te(this,"b",0),te(this,"a",1),te(this,"_h",void 0),te(this,"_s",void 0),te(this,"_l",void 0),te(this,"_v",void 0),te(this,"_max",void 0),te(this,"_min",void 0),te(this,"_brightness",void 0);function t(n){return n[0]in r&&n[1]in r&&n[2]in r}if(r)if(typeof r=="string"){let i=function(o){return n.startsWith(o)};const n=r.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(r instanceof dp)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=Vn(r.r),this.g=Vn(r.g),this.b=Vn(r.b),this.a=typeof r.a=="number"?Vn(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),n=r(this.g),i=r(this.b);return .2126*t+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=wt(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(),n=this.getSaturation();let i=this.getLightness()-r/100;return i<0&&(i=0),this._c({h:t,s:n,l:i,a:this.a})}lighten(r=10){const t=this.getHue(),n=this.getSaturation();let i=this.getLightness()+r/100;return i>1&&(i=1),this._c({h:t,s:n,l:i,a:this.a})}mix(r,t=50){const n=this._c(r),i=t/100,o=s=>(n[s]-this[s])*i+this[s],a={r:wt(o("r")),g:wt(o("g")),b:wt(o("b")),a:wt(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),n=this.a+t.a*(1-this.a),i=o=>wt((this[o]*this.a+t[o]*t.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(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 n=(this.g||0).toString(16);r+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(r+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=wt(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=wt(this.getSaturation()*100),n=wt(this.getLightness()*100);return this.a!==1?`hsla(${r},${t}%,${n}%,${this.a})`:`hsl(${r},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(r,t,n){const i=this.clone();return i[r]=Vn(t,n),i}_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 n(i,o){return parseInt(t[i]+t[o||i],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:r,s:t,l:n,a:i}){if(this._h=r%360,this._s=t,this._l=n,this.a=typeof i=="number"?i:1,t<=0){const u=wt(n*255);this.r=u,this.g=u,this.b=u}let o=0,a=0,s=0;const c=r/60,d=(1-Math.abs(2*n-1))*t,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(o=d,a=f):c>=1&&c<2?(o=f,a=d):c>=2&&c<3?(a=d,s=f):c>=3&&c<4?(a=f,s=d):c>=4&&c<5?(o=f,s=d):c>=5&&c<6&&(o=d,s=f);const l=n-d/2;this.r=wt((o+l)*255),this.g=wt((a+l)*255),this.b=wt((s+l)*255)}fromHsv({h:r,s:t,v:n,a:i}){this._h=r%360,this._s=t,this._v=n,this.a=typeof i=="number"?i:1;const o=wt(n*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=r/60,s=Math.floor(a),c=a-s,d=wt(n*(1-t)*255),f=wt(n*(1-t*c)*255),l=wt(n*(1-t*(1-c))*255);switch(s){case 0:this.g=l,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=l;break;case 3:this.r=d,this.g=f;break;case 4:this.r=l,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(r){const t=Hs(r,od);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(r){const t=Hs(r,od);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(r){const t=Hs(r,(n,i)=>i.includes("%")?wt(n/100*255):n);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}};var Mi=2,ad=.16,f0=.05,d0=.05,h0=.15,hp=5,pp=4,p0=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function sd(e,r,t){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=t?Math.round(e.h)-Mi*r:Math.round(e.h)+Mi*r:n=t?Math.round(e.h)+Mi*r:Math.round(e.h)-Mi*r,n<0?n+=360:n>=360&&(n-=360),n}function ld(e,r,t){if(e.h===0&&e.s===0)return e.s;var n;return t?n=e.s-ad*r:r===pp?n=e.s+ad:n=e.s+f0*r,n>1&&(n=1),t&&r===hp&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function ud(e,r,t){var n;return t?n=e.v+d0*r:n=e.v-h0*r,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function ni(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],n=new bt(e),i=n.toHsv(),o=hp;o>0;o-=1){var a=new bt({h:sd(i,o,!0),s:ld(i,o,!0),v:ud(i,o,!0)});t.push(a)}t.push(n);for(var s=1;s<=pp;s+=1){var c=new bt({h:sd(i,s),s:ld(i,s),v:ud(i,s)});t.push(c)}return r.theme==="dark"?p0.map(function(d){var f=d.index,l=d.amount;return new bt(r.backgroundColor||"#141414").mix(t[f],l).toHexString()}):t.map(function(d){return d.toHexString()})}var Vs={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},wl=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];wl.primary=wl[5];var Sl=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Sl.primary=Sl[5];var El=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];El.primary=El[5];var lo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];lo.primary=lo[5];var _l=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];_l.primary=_l[5];var Cl=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Cl.primary=Cl[5];var Ol=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ol.primary=Ol[5];var Tl=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Tl.primary=Tl[5];var uo=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];uo.primary=uo[5];var Al=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Al.primary=Al[5];var Rl=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Rl.primary=Rl[5];var kl=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];kl.primary=kl[5];var Pl=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Pl.primary=Pl[5];var Us={red:wl,volcano:Sl,orange:El,gold:lo,yellow:_l,lime:Cl,green:Ol,cyan:Tl,blue:uo,geekblue:Al,purple:Rl,magenta:kl,grey:Pl},xu=z.createContext({});function cd(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function ie(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?cd(Object(t),!0).forEach(function(n){te(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):cd(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Rt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function v0(e,r){if(!e)return!1;if(e.contains)return e.contains(r);for(var t=r;t;){if(t===e)return!0;t=t.parentNode}return!1}var fd="data-rc-order",dd="data-rc-priority",g0="rc-util-key",Nl=new Map;function vp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.mark;return r?r.startsWith("data-")?r:"data-".concat(r):g0}function Ao(e){if(e.attachTo)return e.attachTo;var r=document.querySelector("head");return r||document.body}function m0(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function wu(e){return Array.from((Nl.get(e)||e).children).filter(function(r){return r.tagName==="STYLE"})}function gp(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Rt())return null;var t=r.csp,n=r.prepend,i=r.priority,o=i===void 0?0:i,a=m0(n),s=a==="prependQueue",c=document.createElement("style");c.setAttribute(fd,a),s&&o&&c.setAttribute(dd,"".concat(o)),t!=null&&t.nonce&&(c.nonce=t?.nonce),c.innerHTML=e;var d=Ao(r),f=d.firstChild;if(n){if(s){var l=(r.styles||wu(d)).filter(function(u){if(!["prepend","prependQueue"].includes(u.getAttribute(fd)))return!1;var h=Number(u.getAttribute(dd)||0);return o>=h});if(l.length)return d.insertBefore(c,l[l.length-1].nextSibling),c}d.insertBefore(c,f)}else d.appendChild(c);return c}function mp(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Ao(r);return(r.styles||wu(t)).find(function(n){return n.getAttribute(vp(r))===e})}function ii(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=mp(e,r);if(t){var n=Ao(r);n.removeChild(t)}}function y0(e,r){var t=Nl.get(e);if(!t||!v0(document,t)){var n=gp("",r),i=n.parentNode;Nl.set(e,i),e.removeChild(n)}}function Er(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ao(t),i=wu(n),o=ie(ie({},t),{},{styles:i});y0(n,o);var a=mp(r,o);if(a){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var d;a.nonce=(d=o.csp)===null||d===void 0?void 0:d.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var f=gp(e,o);return f.setAttribute(vp(o),r),f}function yp(e){var r;return e==null||(r=e.getRootNode)===null||r===void 0?void 0:r.call(e)}function b0(e){return yp(e)instanceof ShadowRoot}function co(e){return b0(e)?yp(e):null}var jl={},Su=[],x0=function(r){Su.push(r)};function cn(e,r){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var t=Su.reduce(function(n,i){return i(n??"","warning")},r);t&&console.error("Warning: ".concat(t))}}function w0(e,r){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var t=Su.reduce(function(n,i){return i(n??"","note")},r);t&&console.warn("Note: ".concat(t))}}function bp(){jl={}}function xp(e,r,t){!r&&!jl[t]&&(e(!1,t),jl[t]=!0)}function ot(e,r){xp(cn,e,r)}function S0(e,r){xp(w0,e,r)}ot.preMessage=x0;ot.resetWarned=bp;ot.noteOnce=S0;function E0(e){return e.replace(/-(.)/g,function(r,t){return t.toUpperCase()})}function _0(e,r){ot(e,"[@ant-design/icons] ".concat(r))}function hd(e){return Ae(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ae(e.icon)==="object"||typeof e.icon=="function")}function pd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(r,t){var n=e[t];switch(t){case"class":r.className=n,delete r.class;break;default:delete r[t],r[E0(t)]=n}return r},{})}function Il(e,r,t){return t?z.createElement(e.tag,ie(ie({key:r},pd(e.attrs)),t),(e.children||[]).map(function(n,i){return Il(n,"".concat(r,"-").concat(e.tag,"-").concat(i))})):z.createElement(e.tag,ie({key:r},pd(e.attrs)),(e.children||[]).map(function(n,i){return Il(n,"".concat(r,"-").concat(e.tag,"-").concat(i))}))}function wp(e){return ni(e)[0]}function Sp(e){return e?Array.isArray(e)?e:[e]:[]}var C0=`
|
|
61
|
-
.anticon {
|
|
62
|
-
display: inline-flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
color: inherit;
|
|
65
|
-
font-style: normal;
|
|
66
|
-
line-height: 0;
|
|
67
|
-
text-align: center;
|
|
68
|
-
text-transform: none;
|
|
69
|
-
vertical-align: -0.125em;
|
|
70
|
-
text-rendering: optimizeLegibility;
|
|
71
|
-
-webkit-font-smoothing: antialiased;
|
|
72
|
-
-moz-osx-font-smoothing: grayscale;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.anticon > * {
|
|
76
|
-
line-height: 1;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.anticon svg {
|
|
80
|
-
display: inline-block;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.anticon::before {
|
|
84
|
-
display: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.anticon .anticon-icon {
|
|
88
|
-
display: block;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.anticon[tabindex] {
|
|
92
|
-
cursor: pointer;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.anticon-spin::before,
|
|
96
|
-
.anticon-spin {
|
|
97
|
-
display: inline-block;
|
|
98
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
99
|
-
animation: loadingCircle 1s infinite linear;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@-webkit-keyframes loadingCircle {
|
|
103
|
-
100% {
|
|
104
|
-
-webkit-transform: rotate(360deg);
|
|
105
|
-
transform: rotate(360deg);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@keyframes loadingCircle {
|
|
110
|
-
100% {
|
|
111
|
-
-webkit-transform: rotate(360deg);
|
|
112
|
-
transform: rotate(360deg);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
`,O0=function(r){var t=z.useContext(xu),n=t.csp,i=t.prefixCls,o=t.layer,a=C0;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
|
|
116
|
-
`).concat(a,`
|
|
117
|
-
}`)),z.useEffect(function(){var s=r.current,c=co(s);Er(a,"@ant-design-icons",{prepend:!o,csp:n,attachTo:c})},[])},T0=["icon","className","onClick","style","primaryColor","secondaryColor"],Jn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function A0(e){var r=e.primaryColor,t=e.secondaryColor;Jn.primaryColor=r,Jn.secondaryColor=t||wp(r),Jn.calculated=!!t}function R0(){return ie({},Jn)}var wn=function(r){var t=r.icon,n=r.className,i=r.onClick,o=r.style,a=r.primaryColor,s=r.secondaryColor,c=Ot(r,T0),d=M.useRef(),f=Jn;if(a&&(f={primaryColor:a,secondaryColor:s||wp(a)}),O0(d),_0(hd(t),"icon should be icon definiton, but got ".concat(t)),!hd(t))return null;var l=t;return l&&typeof l.icon=="function"&&(l=ie(ie({},l),{},{icon:l.icon(f.primaryColor,f.secondaryColor)})),Il(l.icon,"svg-".concat(l.name),ie(ie({className:n,onClick:i,style:o,"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:d}))};wn.displayName="IconReact";wn.getTwoToneColors=R0;wn.setTwoToneColors=A0;function Ep(e){var r=Sp(e),t=ve(r,2),n=t[0],i=t[1];return wn.setTwoToneColors({primaryColor:n,secondaryColor:i})}function k0(){var e=wn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var P0=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ep(uo.primary);var Cr=M.forwardRef(function(e,r){var t=e.className,n=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,c=e.twoToneColor,d=Ot(e,P0),f=M.useContext(xu),l=f.prefixCls,u=l===void 0?"anticon":l,h=f.rootClassName,v=_e(h,u,te(te({},"".concat(u,"-").concat(n.name),!!n.name),"".concat(u,"-spin"),!!i||n.name==="loading"),t),b=a;b===void 0&&s&&(b=-1);var p=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,m=Sp(c),g=ve(m,2),x=g[0],y=g[1];return M.createElement("span",tt({role:"img","aria-label":n.name},d,{ref:r,tabIndex:b,onClick:s,className:v}),M.createElement(wn,{icon:n,primaryColor:x,secondaryColor:y,style:p}))});Cr.displayName="AntdIcon";Cr.getTwoToneColor=k0;Cr.setTwoToneColor=Ep;var N0=function(r,t){return M.createElement(Cr,tt({},r,{ref:t,icon:o0}))},_p=M.forwardRef(N0);process.env.NODE_ENV!=="production"&&(_p.displayName="EditOutlined");var j0=Symbol.for("react.element"),I0=Symbol.for("react.transitional.element"),M0=Symbol.for("react.fragment");function Cp(e){return e&&Ae(e)==="object"&&(e.$$typeof===j0||e.$$typeof===I0)&&e.type===M0}function fn(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[];return z.Children.forEach(e,function(n){n==null&&!r.keepEmpty||(Array.isArray(n)?t=t.concat(fn(n)):Cp(n)&&n.props?t=t.concat(fn(n.props.children,r)):t.push(n))}),t}function oi(e){return e instanceof HTMLElement||e instanceof SVGElement}function L0(e){return e&&Ae(e)==="object"&&oi(e.nativeElement)?e.nativeElement:oi(e)?e:null}function Ji(e){var r=L0(e);if(r)return r;if(e instanceof z.Component){var t;return(t=ri.findDOMNode)===null||t===void 0?void 0:t.call(ri,e)}return null}var Li={exports:{}},We={};/**
|
|
118
|
-
* @license React
|
|
119
|
-
* react-is.production.min.js
|
|
120
|
-
*
|
|
121
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the MIT license found in the
|
|
124
|
-
* LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/var vd;function D0(){if(vd)return We;vd=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function b(p){if(typeof p=="object"&&p!==null){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case t:case i:case n:case d:case f:return p;default:switch(p=p&&p.$$typeof,p){case s:case a:case c:case u:case l:case o:return p;default:return m}}case r:return m}}}return We.ContextConsumer=a,We.ContextProvider=o,We.Element=e,We.ForwardRef=c,We.Fragment=t,We.Lazy=u,We.Memo=l,We.Portal=r,We.Profiler=i,We.StrictMode=n,We.Suspense=d,We.SuspenseList=f,We.isAsyncMode=function(){return!1},We.isConcurrentMode=function(){return!1},We.isContextConsumer=function(p){return b(p)===a},We.isContextProvider=function(p){return b(p)===o},We.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},We.isForwardRef=function(p){return b(p)===c},We.isFragment=function(p){return b(p)===t},We.isLazy=function(p){return b(p)===u},We.isMemo=function(p){return b(p)===l},We.isPortal=function(p){return b(p)===r},We.isProfiler=function(p){return b(p)===i},We.isStrictMode=function(p){return b(p)===n},We.isSuspense=function(p){return b(p)===d},We.isSuspenseList=function(p){return b(p)===f},We.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===t||p===i||p===n||p===d||p===f||p===h||typeof p=="object"&&p!==null&&(p.$$typeof===u||p.$$typeof===l||p.$$typeof===o||p.$$typeof===a||p.$$typeof===c||p.$$typeof===v||p.getModuleId!==void 0)},We.typeOf=b,We}var Ge={};/**
|
|
126
|
-
* @license React
|
|
127
|
-
* react-is.development.js
|
|
128
|
-
*
|
|
129
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
130
|
-
*
|
|
131
|
-
* This source code is licensed under the MIT license found in the
|
|
132
|
-
* LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/var gd;function F0(){return gd||(gd=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=!1,b=!1,p=!1,m=!1,g=!1,x;x=Symbol.for("react.module.reference");function y(re){return!!(typeof re=="string"||typeof re=="function"||re===t||re===i||g||re===n||re===d||re===f||m||re===h||v||b||p||typeof re=="object"&&re!==null&&(re.$$typeof===u||re.$$typeof===l||re.$$typeof===o||re.$$typeof===a||re.$$typeof===c||re.$$typeof===x||re.getModuleId!==void 0))}function w(re){if(typeof re=="object"&&re!==null){var de=re.$$typeof;switch(de){case e:var oe=re.type;switch(oe){case t:case i:case n:case d:case f:return oe;default:var se=oe&&oe.$$typeof;switch(se){case s:case a:case c:case u:case l:case o:return se;default:return de}}case r:return de}}}var _=a,S=o,E=e,R=c,T=t,C=u,O=l,A=r,P=i,I=n,$=d,H=f,G=!1,D=!1;function F(re){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(re){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(re){return w(re)===a}function B(re){return w(re)===o}function X(re){return typeof re=="object"&&re!==null&&re.$$typeof===e}function W(re){return w(re)===c}function q(re){return w(re)===t}function j(re){return w(re)===u}function V(re){return w(re)===l}function U(re){return w(re)===r}function K(re){return w(re)===i}function J(re){return w(re)===n}function ne(re){return w(re)===d}function ce(re){return w(re)===f}Ge.ContextConsumer=_,Ge.ContextProvider=S,Ge.Element=E,Ge.ForwardRef=R,Ge.Fragment=T,Ge.Lazy=C,Ge.Memo=O,Ge.Portal=A,Ge.Profiler=P,Ge.StrictMode=I,Ge.Suspense=$,Ge.SuspenseList=H,Ge.isAsyncMode=F,Ge.isConcurrentMode=N,Ge.isContextConsumer=L,Ge.isContextProvider=B,Ge.isElement=X,Ge.isForwardRef=W,Ge.isFragment=q,Ge.isLazy=j,Ge.isMemo=V,Ge.isPortal=U,Ge.isProfiler=K,Ge.isStrictMode=J,Ge.isSuspense=ne,Ge.isSuspenseList=ce,Ge.isValidElementType=y,Ge.typeOf=w})()),Ge}var md;function $0(){return md||(md=1,process.env.NODE_ENV==="production"?Li.exports=D0():Li.exports=F0()),Li.exports}var Ws=$0();function Eu(e,r,t){var n=M.useRef({});return(!("value"in n.current)||t(n.current.condition,r))&&(n.current.value=e(),n.current.condition=r),n.current.value}var B0=Number(z.version.split(".")[0]),_u=function(r,t){typeof r=="function"?r(t):Ae(r)==="object"&&r&&"current"in r&&(r.current=t)},gi=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var i=t.filter(Boolean);return i.length<=1?i[0]:function(o){t.forEach(function(a){_u(a,o)})}},Cu=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return Eu(function(){return gi.apply(void 0,t)},t,function(i,o){return i.length!==o.length||i.every(function(a,s){return a!==o[s]})})},Ro=function(r){var t,n;if(!r)return!1;if(Op(r)&&B0>=19)return!0;var i=Ws.isMemo(r)?r.type.type:r.type;return!(typeof i=="function"&&!((t=i.prototype)!==null&&t!==void 0&&t.render)&&i.$$typeof!==Ws.ForwardRef||typeof r=="function"&&!((n=r.prototype)!==null&&n!==void 0&&n.render)&&r.$$typeof!==Ws.ForwardRef)};function Op(e){return z.isValidElement(e)&&!Cp(e)}var Ou=function(r){if(r&&Op(r)){var t=r;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},Ml=M.createContext(null);function q0(e){var r=e.children,t=e.onBatchResize,n=M.useRef(0),i=M.useRef([]),o=M.useContext(Ml),a=M.useCallback(function(s,c,d){n.current+=1;var f=n.current;i.current.push({size:s,element:c,data:d}),Promise.resolve().then(function(){f===n.current&&(t?.(i.current),i.current=[])}),o?.(s,c,d)},[t,o]);return M.createElement(Ml.Provider,{value:a},r)}var Tp=(function(){if(typeof Map<"u")return Map;function e(r,t){var n=-1;return r.some(function(i,o){return i[0]===t?(n=o,!0):!1}),n}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 n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},r.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},r.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},r.prototype.has=function(t){return!!~e(this.__entries__,t)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(t,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];t.call(n,a[1],a[0])}},r})()})(),Ll=typeof window<"u"&&typeof document<"u"&&window.document===document,fo=(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")()})(),z0=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(fo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),H0=2;function V0(e,r){var t=!1,n=!1,i=0;function o(){t&&(t=!1,e()),n&&s()}function a(){z0(o)}function s(){var c=Date.now();if(t){if(c-i<H0)return;n=!0}else t=!0,n=!1,setTimeout(a,r);i=c}return s}var U0=20,W0=["top","right","bottom","left","width","height","size","weight"],G0=typeof MutationObserver<"u",K0=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=V0(this.refresh.bind(this),U0)}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_,n=t.indexOf(r);~n&&t.splice(n,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),G0?(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,n=t===void 0?"":t,i=W0.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Ap=(function(e,r){for(var t=0,n=Object.keys(r);t<n.length;t++){var i=n[t];Object.defineProperty(e,i,{value:r[i],enumerable:!1,writable:!1,configurable:!0})}return e}),dn=(function(e){var r=e&&e.ownerDocument&&e.ownerDocument.defaultView;return r||fo}),Rp=ko(0,0,0,0);function ho(e){return parseFloat(e)||0}function yd(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return r.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+ho(o)},0)}function Y0(e){for(var r=["top","right","bottom","left"],t={},n=0,i=r;n<i.length;n++){var o=i[n],a=e["padding-"+o];t[o]=ho(a)}return t}function X0(e){var r=e.getBBox();return ko(0,0,r.width,r.height)}function Z0(e){var r=e.clientWidth,t=e.clientHeight;if(!r&&!t)return Rp;var n=dn(e).getComputedStyle(e),i=Y0(n),o=i.left+i.right,a=i.top+i.bottom,s=ho(n.width),c=ho(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==r&&(s-=yd(n,"left","right")+o),Math.round(c+a)!==t&&(c-=yd(n,"top","bottom")+a)),!J0(e)){var d=Math.round(s+o)-r,f=Math.round(c+a)-t;Math.abs(d)!==1&&(s-=d),Math.abs(f)!==1&&(c-=f)}return ko(i.left,i.top,s,c)}var Q0=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof dn(e).SVGGraphicsElement}:function(e){return e instanceof dn(e).SVGElement&&typeof e.getBBox=="function"}})();function J0(e){return e===dn(e).document.documentElement}function eb(e){return Ll?Q0(e)?X0(e):Z0(e):Rp}function tb(e){var r=e.x,t=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Ap(a,{x:r,y:t,width:n,height:i,top:t,right:r+n,bottom:i+t,left:r}),a}function ko(e,r,t,n){return{x:e,y:r,width:t,height:n}}var rb=(function(){function e(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ko(0,0,0,0),this.target=r}return e.prototype.isActive=function(){var r=eb(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})(),nb=(function(){function e(r,t){var n=tb(t);Ap(this,{target:r,contentRect:n})}return e})(),ib=(function(){function e(r,t,n){if(this.activeObservations_=[],this.observations_=new Tp,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=t,this.callbackCtx_=n}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 dn(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)||(t.set(r,new rb(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 dn(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(n){return new nb(n.target,n.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})(),kp=typeof WeakMap<"u"?new WeakMap:new Tp,Pp=(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=K0.getInstance(),n=new ib(r,t,this);kp.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Pp.prototype[e]=function(){var r;return(r=kp.get(this))[e].apply(r,arguments)}});var ob=(function(){return typeof fo.ResizeObserver<"u"?fo.ResizeObserver:Pp})(),Sr=new Map;function Np(e){e.forEach(function(r){var t,n=r.target;(t=Sr.get(n))===null||t===void 0||t.forEach(function(i){return i(n)})})}var jp=new ob(Np);process.env.NODE_ENV;process.env.NODE_ENV;function ab(e,r){Sr.has(e)||(Sr.set(e,new Set),jp.observe(e)),Sr.get(e).add(r)}function sb(e,r){Sr.has(e)&&(Sr.get(e).delete(r),Sr.get(e).size||(jp.unobserve(e),Sr.delete(e)))}function Et(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function bd(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fp(n.key),n)}}function _t(e,r,t){return r&&bd(e.prototype,r),t&&bd(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ai(e,r){return ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},ai(e,r)}function $r(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&&ai(e,r)}function si(e){return si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},si(e)}function Tu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tu=function(){return!!e})()}function je(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lb(e,r){if(r&&(Ae(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return je(e)}function Br(e){var r=Tu();return function(){var t,n=si(e);if(r){var i=si(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return lb(this,t)}}var ub=(function(e){$r(t,e);var r=Br(t);function t(){return Et(this,t),r.apply(this,arguments)}return _t(t,[{key:"render",value:function(){return this.props.children}}]),t})(M.Component);function cb(e,r){var t=e.children,n=e.disabled,i=M.useRef(null),o=M.useRef(null),a=M.useContext(Ml),s=typeof t=="function",c=s?t(i):t,d=M.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!s&&M.isValidElement(c)&&Ro(c),l=f?Ou(c):null,u=Cu(l,i),h=function(){var m;return Ji(i.current)||(i.current&&Ae(i.current)==="object"?Ji((m=i.current)===null||m===void 0?void 0:m.nativeElement):null)||Ji(o.current)};M.useImperativeHandle(r,function(){return h()});var v=M.useRef(e);v.current=e;var b=M.useCallback(function(p){var m=v.current,g=m.onResize,x=m.data,y=p.getBoundingClientRect(),w=y.width,_=y.height,S=p.offsetWidth,E=p.offsetHeight,R=Math.floor(w),T=Math.floor(_);if(d.current.width!==R||d.current.height!==T||d.current.offsetWidth!==S||d.current.offsetHeight!==E){var C={width:R,height:T,offsetWidth:S,offsetHeight:E};d.current=C;var O=S===Math.round(w)?w:S,A=E===Math.round(_)?_:E,P=ie(ie({},C),{},{offsetWidth:O,offsetHeight:A});a?.(P,p,x),g&&Promise.resolve().then(function(){g(P,p)})}},[]);return M.useEffect(function(){var p=h();return p&&!n&&ab(p,b),function(){return sb(p,b)}},[i.current,n]),M.createElement(ub,{ref:o},f?M.cloneElement(c,{ref:u}):c)}var Ip=M.forwardRef(cb);process.env.NODE_ENV!=="production"&&(Ip.displayName="SingleObserver");var fb="rc-observer-key";function db(e,r){var t=e.children,n=typeof t=="function"?[t]:fn(t);return process.env.NODE_ENV!=="production"&&(n.length>1?cn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&cn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(i,o){var a=i?.key||"".concat(fb,"-").concat(o);return M.createElement(Ip,tt({},e,{key:a,ref:o===0?r:void 0}),i)})}var Sn=M.forwardRef(db);process.env.NODE_ENV!=="production"&&(Sn.displayName="ResizeObserver");Sn.Collection=q0;var xd=process.env.NODE_ENV!=="test"&&Rt()?M.useLayoutEffect:M.useEffect,st=function(r,t){var n=M.useRef(!0);xd(function(){return r(n.current)},t),xd(function(){return n.current=!1,function(){n.current=!0}},[])},wd=function(r,t){st(function(n){if(!n)return r()},t)};function At(e){var r=M.useRef();r.current=e;var t=M.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(n=r.current)===null||n===void 0?void 0:n.call.apply(n,[r].concat(o))},[]);return t}function li(e){var r=M.useRef(!1),t=M.useState(e),n=ve(t,2),i=n[0],o=n[1];M.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]);function a(s,c){c&&r.current||o(s)}return[i,a]}function Gs(e){return e!==void 0}function Gr(e,r){var t=r||{},n=t.defaultValue,i=t.value,o=t.onChange,a=t.postState,s=li(function(){return Gs(i)?i:Gs(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=ve(s,2),d=c[0],f=c[1],l=i!==void 0?i:d,u=a?a(l):l,h=At(o),v=li([l]),b=ve(v,2),p=b[0],m=b[1];wd(function(){var x=p[0];d!==x&&h(d,x)},[p]),wd(function(){Gs(i)||f(i)},[i]);var g=At(function(x,y){f(x,y),m([l],y)});return[u,g]}function Mp(e,r){var t=Object.assign({},e);return Array.isArray(r)&&r.forEach(function(n){delete t[n]}),t}var hb=function(r){if(Rt()&&window.document.documentElement){var t=Array.isArray(r)?r:[r],n=window.document.documentElement;return t.some(function(i){return i in n.style})}return!1};function Sd(e,r){return hb(e)}function ui(e){for(var r=0,t,n=0,i=e.length;i>=4;++n,i-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&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(i){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&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 Dl(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(o);if(ot(!c,"Warning: There may be circular references"),c)return!1;if(o===a)return!0;if(t&&s>1)return!1;n.add(o);var d=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var f=0;f<o.length;f++)if(!i(o[f],a[f],d))return!1;return!0}if(o&&a&&Ae(o)==="object"&&Ae(a)==="object"){var l=Object.keys(o);return l.length!==Object.keys(a).length?!1:l.every(function(u){return i(o[u],a[u],d)})}return!1}return i(e,r)}var pb="%";function Fl(e){return e.join(pb)}var vb=(function(){function e(r){Et(this,e),te(this,"instanceId",void 0),te(this,"cache",new Map),te(this,"extracted",new Set),this.instanceId=r}return _t(e,[{key:"get",value:function(t){return this.opGet(Fl(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,n){return this.opUpdate(Fl(t),n)}},{key:"opUpdate",value:function(t,n){var i=this.cache.get(t),o=n(i);o===null?this.cache.delete(t):this.cache.set(t,o)}}]),e})(),hn="data-token-hash",sr="data-css-hash",gb="data-cache-path",Lr="__cssinjs_instance__";function mb(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var r=document.body.querySelectorAll("style[".concat(sr,"]"))||[],t=document.head.firstChild;Array.from(r).forEach(function(i){i[Lr]=i[Lr]||e,i[Lr]===e&&document.head.insertBefore(i,t)});var n={};Array.from(document.querySelectorAll("style[".concat(sr,"]"))).forEach(function(i){var o=i.getAttribute(sr);if(n[o]){if(i[Lr]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else n[o]=!0})}return new vb(e)}var mi=M.createContext({hashPriority:"low",cache:mb(),defaultCache:!0});function yb(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 Au=(function(){function e(){Et(this,e),te(this,"cache",void 0),te(this,"keys",void 0),te(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return _t(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var n,i,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 c;a=(c=a)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,n){var i=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(d,f){var l=ve(d,2),u=l[1];return i.internalGet(f)[1]<u?[f,i.internalGet(f)[1]]:d},[this.keys[0],this.cacheCallTimes]),a=ve(o,1),s=a[0];this.delete(s)}this.keys.push(t)}var c=this.cache;t.forEach(function(d,f){if(f===t.length-1)c.set(d,{value:[n,i.cacheCallTimes++]});else{var l=c.get(d);l?l.map||(l.map=new Map):c.set(d,{map:new Map}),c=c.get(d).map}})}},{key:"deleteByPath",value:function(t,n){var i=t.get(n[0]);if(n.length===1){var o;return i.map?t.set(n[0],{map:i.map}):t.delete(n[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&t.delete(n[0]),a}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(n){return!yb(n,t)}),this.deleteByPath(this.cache,t)}}]),e})();te(Au,"MAX_CACHE_SIZE",20);te(Au,"MAX_CACHE_OFFSET",5);var Ed=0,Lp=(function(){function e(r){Et(this,e),te(this,"derivatives",void 0),te(this,"id",void 0),this.derivatives=Array.isArray(r)?r:[r],this.id=Ed,r.length===0&&cn(r.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ed+=1}return _t(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(n,i){return i(t,n)},void 0)}}]),e})(),Ks=new Au;function $l(e){var r=Array.isArray(e)?e:[e];return Ks.has(r)||Ks.set(r,new Lp(r)),Ks.get(r)}var bb=new WeakMap,Ys={};function xb(e,r){for(var t=bb,n=0;n<r.length;n+=1){var i=r[n];t.has(i)||t.set(i,new WeakMap),t=t.get(i)}return t.has(Ys)||t.set(Ys,e()),t.get(Ys)}var _d=new WeakMap;function ei(e){var r=_d.get(e)||"";return r||(Object.keys(e).forEach(function(t){var n=e[t];r+=t,n instanceof Lp?r+=n.id:n&&Ae(n)==="object"?r+=ei(n):r+=n}),r=ui(r),_d.set(e,r)),r}function Cd(e,r){return ui("".concat(r,"_").concat(ei(e)))}var Bl=Rt();function Ye(e){return typeof e=="number"?"".concat(e,"px"):e}function po(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=ie(ie({},n),{},te(te({},hn,r),sr,t)),a=Object.keys(o).map(function(s){var c=o[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var eo=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()},wb=function(r,t,n){return Object.keys(r).length?".".concat(t).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(r).map(function(i){var o=ve(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Dp=function(r,t,n){var i={},o={};return Object.entries(r).forEach(function(a){var s,c,d=ve(a,2),f=d[0],l=d[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[f])o[f]=l;else if((typeof l=="string"||typeof l=="number")&&!(n!=null&&(c=n.ignore)!==null&&c!==void 0&&c[f])){var u,h=eo(f,n?.prefix);i[h]=typeof l=="number"&&!(n!=null&&(u=n.unitless)!==null&&u!==void 0&&u[f])?"".concat(l,"px"):String(l),o[f]="var(".concat(h,")")}}),[o,wb(i,t,{scope:n?.scope})]},Sb=ie({},M),Od=Sb.useInsertionEffect,Eb=function(r,t,n){M.useMemo(r,n),st(function(){return t(!0)},n)},_b=Od?function(e,r,t){return Od(function(){return e(),r()},t)}:Eb,Cb=ie({},M),Ob=Cb.useInsertionEffect,Tb=function(r){var t=[],n=!1;function i(o){if(n){process.env.NODE_ENV!=="production"&&cn(!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 n=!1,function(){n=!0,t.length&&t.forEach(function(o){return o()})}},r),i},Ab=function(){return function(r){r()}},Rb=typeof Ob<"u"?Tb:Ab;function kb(){return!1}var ql=!1;function Pb(){return ql}const Nb=process.env.NODE_ENV==="production"?kb:Pb;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Di&&typeof Di.webpackHotUpdate=="function"){var jb=Di.webpackHotUpdate;Di.webpackHotUpdate=function(){return ql=!0,setTimeout(function(){ql=!1},0),jb.apply(void 0,arguments)}}}function Ru(e,r,t,n,i){var o=M.useContext(mi),a=o.cache,s=[e].concat(Se(r)),c=Fl(s),d=Rb([c]),f=Nb(),l=function(b){a.opUpdate(c,function(p){var m=p||[void 0,void 0],g=ve(m,2),x=g[0],y=x===void 0?0:x,w=g[1],_=w;process.env.NODE_ENV!=="production"&&w&&f&&(n?.(_,f),_=null);var S=_||t(),E=[y,S];return b?b(E):E})};M.useMemo(function(){l()},[c]);var u=a.opGet(c);process.env.NODE_ENV!=="production"&&!u&&(l(),u=a.opGet(c));var h=u[1];return _b(function(){i?.(h)},function(v){return l(function(b){var p=ve(b,2),m=p[0],g=p[1];return v&&m===0&&i?.(h),[m+1,g]}),function(){a.opUpdate(c,function(b){var p=b||[],m=ve(p,2),g=m[0],x=g===void 0?0:g,y=m[1],w=x-1;return w===0?(d(function(){(v||!a.opGet(c))&&n?.(y,!1)}),null):[x-1,y]})}},[c]),h}var Ib={},Mb=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",zr=new Map;function Lb(e){zr.set(e,(zr.get(e)||0)+1)}function Db(e,r){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(hn,'="').concat(e,'"]'));t.forEach(function(n){if(n[Lr]===r){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n)}})}}var Fb=0;function $b(e,r){zr.set(e,(zr.get(e)||0)-1);var t=new Set;zr.forEach(function(n,i){n<=0&&t.add(i)}),zr.size-t.size>Fb&&t.forEach(function(n){Db(n,r),zr.delete(n)})}var Bb=function(r,t,n,i){var o=n.getDerivativeToken(r),a=ie(ie({},o),t);return i&&(a=i(a)),a},Fp="token";function qb(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=z.useContext(mi),i=n.cache.instanceId,o=n.container,a=t.salt,s=a===void 0?"":a,c=t.override,d=c===void 0?Ib:c,f=t.formatToken,l=t.getComputedToken,u=t.cssVar,h=xb(function(){return Object.assign.apply(Object,[{}].concat(Se(r)))},r),v=ei(h),b=ei(d),p=u?ei(u):"",m=Ru(Fp,[s,e.id,v,b,p],function(){var g,x=l?l(h,d,e):Bb(h,d,e,f),y=ie({},x),w="";if(u){var _=Dp(x,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve}),S=ve(_,2);x=S[0],w=S[1]}var E=Cd(x,s);x._tokenKey=E,y._tokenKey=Cd(y,s);var R=(g=u?.key)!==null&&g!==void 0?g:E;x._themeKey=R,Lb(R);var T="".concat(Mb,"-").concat(ui(E));return x._hashId=T,[x,T,y,w,u?.key||""]},function(g){$b(g[0]._themeKey,i)},function(g){var x=ve(g,4),y=x[0],w=x[3];if(u&&w){var _=Er(w,ui("css-variables-".concat(y._themeKey)),{mark:sr,prepend:"queue",attachTo:o,priority:-999});_[Lr]=i,_.setAttribute(hn,y._themeKey)}});return m}var zb=function(r,t,n){var i=ve(r,5),o=i[2],a=i[3],s=i[4],c=n||{},d=c.plain;if(!a)return null;var f=o._tokenKey,l=-999,u={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)},h=po(a,s,f,u,d);return[l,f,h]},Hb={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},$p="comm",Bp="rule",qp="decl",Vb="@import",Ub="@namespace",Wb="@keyframes",Gb="@layer",zp=Math.abs,ku=String.fromCharCode;function Hp(e){return e.trim()}function to(e,r,t){return e.replace(r,t)}function Kb(e,r,t){return e.indexOf(r,t)}function sn(e,r){return e.charCodeAt(r)|0}function pn(e,r,t){return e.slice(r,t)}function hr(e){return e.length}function Yb(e){return e.length}function Fi(e,r){return r.push(e),e}var Po=1,vn=1,Vp=0,Xt=0,mt=0,En="";function Pu(e,r,t,n,i,o,a,s){return{value:e,root:r,parent:t,type:n,props:i,children:o,line:Po,column:vn,length:a,return:"",siblings:s}}function Xb(){return mt}function Zb(){return mt=Xt>0?sn(En,--Xt):0,vn--,mt===10&&(vn=1,Po--),mt}function lr(){return mt=Xt<Vp?sn(En,Xt++):0,vn++,mt===10&&(vn=1,Po++),mt}function Dr(){return sn(En,Xt)}function ro(){return Xt}function No(e,r){return pn(En,e,r)}function ci(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 Qb(e){return Po=vn=1,Vp=hr(En=e),Xt=0,[]}function Jb(e){return En="",e}function Xs(e){return Hp(No(Xt-1,zl(e===91?e+2:e===40?e+1:e)))}function e1(e){for(;(mt=Dr())&&mt<33;)lr();return ci(e)>2||ci(mt)>3?"":" "}function t1(e,r){for(;--r&&lr()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return No(e,ro()+(r<6&&Dr()==32&&lr()==32))}function zl(e){for(;lr();)switch(mt){case e:return Xt;case 34:case 39:e!==34&&e!==39&&zl(mt);break;case 40:e===41&&zl(e);break;case 92:lr();break}return Xt}function r1(e,r){for(;lr()&&e+mt!==57;)if(e+mt===84&&Dr()===47)break;return"/*"+No(r,Xt-1)+"*"+ku(e===47?e:lr())}function n1(e){for(;!ci(Dr());)lr();return No(e,Xt)}function i1(e){return Jb(no("",null,null,null,[""],e=Qb(e),0,[0],e))}function no(e,r,t,n,i,o,a,s,c){for(var d=0,f=0,l=a,u=0,h=0,v=0,b=1,p=1,m=1,g=0,x="",y=i,w=o,_=n,S=x;p;)switch(v=g,g=lr()){case 40:if(v!=108&&sn(S,l-1)==58){Kb(S+=to(Xs(g),"&","&\f"),"&\f",zp(d?s[d-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:S+=Xs(g);break;case 9:case 10:case 13:case 32:S+=e1(v);break;case 92:S+=t1(ro()-1,7);continue;case 47:switch(Dr()){case 42:case 47:Fi(o1(r1(lr(),ro()),r,t,c),c),(ci(v||1)==5||ci(Dr()||1)==5)&&hr(S)&&pn(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*b:s[d++]=hr(S)*m;case 125*b:case 59:case 0:switch(g){case 0:case 125:p=0;case 59+f:m==-1&&(S=to(S,/\f/g,"")),h>0&&(hr(S)-l||b===0&&v===47)&&Fi(h>32?Ad(S+";",n,t,l-1,c):Ad(to(S," ","")+";",n,t,l-2,c),c);break;case 59:S+=";";default:if(Fi(_=Td(S,r,t,d,f,i,s,x,y=[],w=[],l,o),o),g===123)if(f===0)no(S,r,_,_,y,o,l,s,w);else{switch(u){case 99:if(sn(S,3)===110)break;case 108:if(sn(S,2)===97)break;default:f=0;case 100:case 109:case 115:}f?no(e,_,_,n&&Fi(Td(e,_,_,0,0,i,s,x,i,y=[],l,w),w),i,w,l,s,n?y:w):no(S,_,_,_,[""],w,0,s,w)}}d=f=h=0,b=m=1,x=S="",l=a;break;case 58:l=1+hr(S),h=v;default:if(b<1){if(g==123)--b;else if(g==125&&b++==0&&Zb()==125)continue}switch(S+=ku(g),g*b){case 38:m=f>0?1:(S+="\f",-1);break;case 44:s[d++]=(hr(S)-1)*m,m=1;break;case 64:Dr()===45&&(S+=Xs(lr())),u=Dr(),f=l=hr(x=S+=n1(ro())),g++;break;case 45:v===45&&hr(S)==2&&(b=0)}}return o}function Td(e,r,t,n,i,o,a,s,c,d,f,l){for(var u=i-1,h=i===0?o:[""],v=Yb(h),b=0,p=0,m=0;b<n;++b)for(var g=0,x=pn(e,u+1,u=zp(p=a[b])),y=e;g<v;++g)(y=Hp(p>0?h[g]+" "+x:to(x,/&\f/g,h[g])))&&(c[m++]=y);return Pu(e,r,t,i===0?Bp:s,c,d,f,l)}function o1(e,r,t,n){return Pu(e,r,t,$p,ku(Xb()),pn(e,2,-2),0,n)}function Ad(e,r,t,n,i){return Pu(e,r,t,qp,pn(e,0,n),pn(e,n+1,-1),n,i)}function Hl(e,r){for(var t="",n=0;n<e.length;n++)t+=r(e[n],n,e,r)||"";return t}function a1(e,r,t,n){switch(e.type){case Gb:if(e.children.length)break;case Vb:case Ub:case qp:return e.return=e.return||e.value;case $p:return"";case Wb:return e.return=e.value+"{"+Hl(e.children,n)+"}";case Bp:if(!hr(e.value=e.props.join(",")))return""}return hr(t=Hl(e.children,n))?e.return=e.value+"{"+t+"}":""}function Up(e,r){var t=r.path,n=r.parentSelectors;ot(!1,"[Ant Design CSS-in-JS] ".concat(t?"Error in ".concat(t,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var s1=function(r,t,n){if(r==="content"){var i=/(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&&!i.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'"))&&Up("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},l1=function(r,t,n){r==="animation"&&n.hashId&&t!=="none"&&Up("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Rd="data-ant-cssinjs-cache-path",Wp="_FILE_STYLE__",Ur,Gp=!0;function u1(){if(!Ur&&(Ur={},Rt())){var e=document.createElement("div");e.className=Rd,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(i){var o=i.split(":"),a=ve(o,2),s=a[0],c=a[1];Ur[s]=c});var t=document.querySelector("style[".concat(Rd,"]"));if(t){var n;Gp=!1,(n=t.parentNode)===null||n===void 0||n.removeChild(t)}document.body.removeChild(e)}}function c1(e){return u1(),!!Ur[e]}function f1(e){var r=Ur[e],t=null;if(r&&Rt())if(Gp)t=Wp;else{var n=document.querySelector("style[".concat(sr,'="').concat(Ur[e],'"]'));n?t=n.innerHTML:delete Ur[e]}return[t,r]}var Kp="_skip_check_",Yp="_multi_value_";function io(e){var r=Hl(i1(e),a1);return r.replace(/\{%%%\:[^;];}/g,";")}function d1(e){return Ae(e)==="object"&&e&&(Kp in e||Yp in e)}function kd(e,r,t){if(!r)return e;var n=".".concat(r),i=t==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(a){var s,c=a.trim().split(/\s+/),d=c[0]||"",f=((s=d.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return d="".concat(f).concat(i).concat(d.slice(f.length)),[d].concat(Se(c.slice(1))).join(" ")});return o.join(",")}var h1=function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,o=n.injectHash,a=n.parentSelectors,s=t.hashId,c=t.layer,d=t.path,f=t.hashPriority,l=t.transformers,u=l===void 0?[]:l,h=t.linters,v=h===void 0?[]:h,b="",p={};function m(y){var w=y.getName(s);if(!p[w]){var _=e(y.style,t,{root:!1,parentSelectors:a}),S=ve(_,1),E=S[0];p[w]="@keyframes ".concat(y.getName(s)).concat(E)}}function g(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(_){Array.isArray(_)?g(_,w):_&&w.push(_)}),w}var x=g(Array.isArray(r)?r:[r]);return x.forEach(function(y){var w=typeof y=="string"&&!i?{}:y;if(typeof w=="string")b+="".concat(w,`
|
|
134
|
-
`);else if(w._keyframe)m(w);else{var _=u.reduce(function(S,E){var R;return(E==null||(R=E.visit)===null||R===void 0?void 0:R.call(E,S))||S},w);Object.keys(_).forEach(function(S){var E=_[S];if(Ae(E)==="object"&&E&&(S!=="animationName"||!E._keyframe)&&!d1(E)){var R=!1,T=S.trim(),C=!1;(i||o)&&s?T.startsWith("@")?R=!0:T==="&"?T=kd("",s,f):T=kd(S,s,f):i&&!s&&(T==="&"||T==="")&&(T="",C=!0);var O=e(E,t,{root:C,injectHash:R,parentSelectors:[].concat(Se(a),[T])}),A=ve(O,2),P=A[0],I=A[1];p=ie(ie({},p),I),b+="".concat(T).concat(P)}else{let G=function(D,F){process.env.NODE_ENV!=="production"&&(Ae(E)!=="object"||!(E!=null&&E[Kp]))&&[s1,l1].concat(Se(v)).forEach(function(B){return B(D,F,{path:d,hashId:s,parentSelectors:a})});var N=D.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),L=F;!Hb[D]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),D==="animationName"&&F!==null&&F!==void 0&&F._keyframe&&(m(F),L=F.getName(s)),b+="".concat(N,":").concat(L,";")};var $,H=($=E?.value)!==null&&$!==void 0?$:E;Ae(E)==="object"&&E!==null&&E!==void 0&&E[Yp]&&Array.isArray(H)?H.forEach(function(D){G(S,D)}):G(S,H)}})}}),i?c&&(b&&(b="@layer ".concat(c.name," {").concat(b,"}")),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(c.name,";")}).join(`
|
|
135
|
-
`))):b="{".concat(b,"}"),[b,p]};function Xp(e,r){return ui("".concat(e.join("%")).concat(r))}function p1(){return null}var Zp="style";function Vl(e,r){var t=e.token,n=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,c=e.order,d=c===void 0?0:c,f=M.useContext(mi),l=f.autoClear,u=f.mock,h=f.defaultCache,v=f.hashPriority,b=f.container,p=f.ssrInline,m=f.transformers,g=f.linters,x=f.cache,y=f.layer,w=t._tokenKey,_=[w];y&&_.push("layer"),_.push.apply(_,Se(n));var S=Bl;process.env.NODE_ENV!=="production"&&u!==void 0&&(S=u==="client");var E=Ru(Zp,_,function(){var A=_.join("|");if(c1(A)){var P=f1(A),I=ve(P,2),$=I[0],H=I[1];if($)return[$,w,H,{},s,d]}var G=r(),D=h1(G,{hashId:i,hashPriority:v,layer:y?o:void 0,path:n.join("-"),transformers:m,linters:g}),F=ve(D,2),N=F[0],L=F[1],B=io(N),X=Xp(_,B);return[B,w,X,L,s,d]},function(A,P){var I=ve(A,3),$=I[2];(P||l)&&Bl&&ii($,{mark:sr,attachTo:b})},function(A){var P=ve(A,4),I=P[0];P[1];var $=P[2],H=P[3];if(S&&I!==Wp){var G={mark:sr,prepend:y?!1:"queue",attachTo:b,priority:d},D=typeof a=="function"?a():a;D&&(G.csp={nonce:D});var F=[],N=[];Object.keys(H).forEach(function(B){B.startsWith("@layer")?F.push(B):N.push(B)}),F.forEach(function(B){Er(io(H[B]),"_layer-".concat(B),ie(ie({},G),{},{prepend:!0}))});var L=Er(I,$,G);L[Lr]=x.instanceId,L.setAttribute(hn,w),process.env.NODE_ENV!=="production"&&L.setAttribute(gb,_.join("|")),N.forEach(function(B){Er(io(H[B]),"_effect-".concat(B),G)})}}),R=ve(E,3),T=R[0],C=R[1],O=R[2];return function(A){var P;return!p||S||!h?P=M.createElement(p1,null):P=M.createElement("style",tt({},te(te({},hn,C),sr,O),{dangerouslySetInnerHTML:{__html:T}})),M.createElement(M.Fragment,null,P,A)}}var v1=function(r,t,n){var i=ve(r,6),o=i[0],a=i[1],s=i[2],c=i[3],d=i[4],f=i[5],l=n||{},u=l.plain;if(d)return null;var h=o,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)};return h=po(o,a,s,v,u),c&&Object.keys(c).forEach(function(b){if(!t[b]){t[b]=!0;var p=io(c[b]),m=po(p,a,"_effect-".concat(b),v,u);b.startsWith("@layer")?h=m+h:h+=m}}),[f,s,h]},Qp="cssVar",g1=function(r,t){var n=r.key,i=r.prefix,o=r.unitless,a=r.ignore,s=r.token,c=r.scope,d=c===void 0?"":c,f=z.useContext(mi),l=f.cache.instanceId,u=f.container,h=s._tokenKey,v=[].concat(Se(r.path),[n,d,h]),b=Ru(Qp,v,function(){var p=t(),m=Dp(p,n,{prefix:i,unitless:o,ignore:a,scope:d}),g=ve(m,2),x=g[0],y=g[1],w=Xp(v,y);return[x,y,w,n]},function(p){var m=ve(p,3),g=m[2];Bl&&ii(g,{mark:sr,attachTo:u})},function(p){var m=ve(p,3),g=m[1],x=m[2];if(g){var y=Er(g,x,{mark:sr,prepend:"queue",attachTo:u,priority:-999});y[Lr]=l,y.setAttribute(hn,n)}});return b},m1=function(r,t,n){var i=ve(r,4),o=i[1],a=i[2],s=i[3],c=n||{},d=c.plain;if(!o)return null;var f=-999,l={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},u=po(o,s,a,l,d);return[f,a,u]};te(te(te({},Zp,v1),Fp,zb),Qp,m1);var Qt=(function(){function e(r,t){Et(this,e),te(this,"name",void 0),te(this,"style",void 0),te(this,"_keyframe",!0),this.name=r,this.style=t}return _t(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 Zr(e){return e.notSplit=!0,e}Zr(["borderTop","borderBottom"]),Zr(["borderTop"]),Zr(["borderBottom"]),Zr(["borderLeft","borderRight"]),Zr(["borderLeft"]),Zr(["borderRight"]);function y1(e){return up(e)||lp(e)||bu(e)||cp()}function pr(e,r){for(var t=e,n=0;n<r.length;n+=1){if(t==null)return;t=t[r[n]]}return t}function Jp(e,r,t,n){if(!r.length)return t;var i=y1(r),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=Se(e):s=ie({},e),n&&t===void 0&&a.length===1?delete s[o][a[0]]:s[o]=Jp(s[o],a,t,n),s}function or(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&n&&t===void 0&&!pr(e,r.slice(0,-1))?e:Jp(e,r,t,n)}function b1(e){return Ae(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Pd(e){return Array.isArray(e)?[]:{}}var x1=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function nn(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Pd(r[0]);return r.forEach(function(i){function o(a,s){var c=new Set(s),d=pr(i,a),f=Array.isArray(d);if(f||b1(d)){if(!c.has(d)){c.add(d);var l=pr(n,a);f?n=or(n,a,[]):(!l||Ae(l)!=="object")&&(n=or(n,a,Pd(d))),x1(d).forEach(function(u){o([].concat(Se(a),[u]),c)})}}else n=or(n,a,d)}o([])}),n}function ev(){}let xr=null;function w1(){xr=null,bp()}let tv=ev;process.env.NODE_ENV!=="production"&&(tv=(e,r,t)=>{ot(e,`[antd: ${r}] ${t}`),process.env.NODE_ENV==="test"&&w1()});const yi=tv,rv=M.createContext({}),vr=process.env.NODE_ENV!=="production"?e=>{const{strict:r}=M.useContext(rv),t=(n,i,o)=>{if(!n)if(r===!1&&i==="deprecated"){const a=xr;xr||(xr={}),xr[e]=xr[e]||[],xr[e].includes(o||"")||xr[e].push(o||""),a||console.warn("[antd] There exists deprecated usage in your code:",xr)}else process.env.NODE_ENV!=="production"&&yi(n,e,o)};return t.deprecated=(n,i,o,a)=>{t(n,"deprecated",`\`${i}\` is deprecated. Please use \`${o}\` instead.${a?` ${a}`:""}`)},t}:()=>{const e=()=>{};return e.deprecated=ev,e},S1=z.createContext(void 0);var E1={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"},_1={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},C1=ie(ie({},_1),{},{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 nv={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Nd={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"]},C1),timePickerLocale:Object.assign({},nv)},Ft="${label} is not a valid ${type}",gn={locale:"en",Pagination:E1,DatePicker:Nd,TimePicker:nv,Calendar:Nd,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:Ft,method:Ft,array:Ft,object:Ft,number:Ft,date:Ft,boolean:Ft,integer:Ft,float:Ft,regexp:Ft,email:Ft,url:Ft,hex:Ft},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({},gn.Modal);let oo=[];const jd=()=>oo.reduce((e,r)=>Object.assign(Object.assign({},e),r),gn.Modal);function O1(e){if(e){const r=Object.assign({},e);return oo.push(r),jd(),()=>{oo=oo.filter(t=>t!==r),jd()}}Object.assign({},gn.Modal)}const Nu=z.createContext(void 0),T1=(e,r)=>{const t=M.useContext(Nu),n=M.useMemo(()=>{var o;const a=gn[e],s=(o=t?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,r,t]),i=M.useMemo(()=>{const o=t?.locale;return t?.exist&&!o?gn.locale:o},[t]);return[n,i]},iv="internalMark",ov=e=>{const{locale:r={},children:t,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const o=vr("LocaleProvider");process.env.NODE_ENV!=="production"&&o(n===iv,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}M.useEffect(()=>O1(r?.Modal),[r]);const i=M.useMemo(()=>Object.assign(Object.assign({},r),{exist:!0}),[r]);return M.createElement(Nu.Provider,{value:i},t)};process.env.NODE_ENV!=="production"&&(ov.displayName="LocaleProvider");const av={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"},fi=Object.assign(Object.assign({},av),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
136
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
137
|
-
'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 A1(e,{generateColorPalettes:r,generateNeutralColorPalettes:t}){const{colorSuccess:n,colorWarning:i,colorError:o,colorInfo:a,colorPrimary:s,colorBgBase:c,colorTextBase:d}=e,f=r(s),l=r(n),u=r(i),h=r(o),v=r(a),b=t(c,d),p=e.colorLink||e.colorInfo,m=r(p),g=new bt(h[1]).mix(new bt(h[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg: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:g,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:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new bt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const R1=e=>{let r=e,t=e,n=e,i=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?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:t,borderRadiusLG:r,borderRadiusOuter:i}};function k1(e){const{motionUnit:r,motionBase:t,borderRadius:n,lineWidth:i}=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:i+1},R1(n))}const P1=e=>{const{controlHeight:r}=e;return{controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}};function N1(e){return(e+8)/e}function j1(e){const r=Array.from({length:10}).map((t,n)=>{const i=n-1,o=e*Math.pow(Math.E,i/5),a=n>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return r[1]=e,r.map(t=>({size:t,lineHeight:N1(t)}))}const I1=e=>{const r=j1(e),t=r.map(f=>f.size),n=r.map(f=>f.lineHeight),i=t[1],o=t[0],a=t[2],s=n[1],c=n[0],d=n[2];return{fontSizeSM:o,fontSize:i,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:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(c*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function M1(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 Wt=(e,r)=>new bt(e).setA(r).toRgbString(),Un=(e,r)=>new bt(e).darken(r).toHexString(),L1=e=>{const r=ni(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]}},D1=(e,r)=>{const t=e||"#fff",n=r||"#000";return{colorBgBase:t,colorTextBase:n,colorText:Wt(n,.88),colorTextSecondary:Wt(n,.65),colorTextTertiary:Wt(n,.45),colorTextQuaternary:Wt(n,.25),colorFill:Wt(n,.15),colorFillSecondary:Wt(n,.06),colorFillTertiary:Wt(n,.04),colorFillQuaternary:Wt(n,.02),colorBgSolid:Wt(n,1),colorBgSolidHover:Wt(n,.75),colorBgSolidActive:Wt(n,.95),colorBgLayout:Un(t,4),colorBgContainer:Un(t,0),colorBgElevated:Un(t,0),colorBgSpotlight:Wt(n,.85),colorBgBlur:"transparent",colorBorder:Un(t,15),colorBorderSecondary:Un(t,6)}};function F1(e){Vs.pink=Vs.magenta,Us.pink=Us.magenta;const r=Object.keys(av).map(t=>{const n=e[t]===Vs[t]?Us[t]:ni(e[t]);return Array.from({length:10},()=>1).reduce((i,o,a)=>(i[`${t}-${a+1}`]=n[a],i[`${t}${a+1}`]=n[a],i),{})}).reduce((t,n)=>(t=Object.assign(Object.assign({},t),n),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),r),A1(e,{generateColorPalettes:L1,generateNeutralColorPalettes:D1})),I1(e.fontSize)),M1(e)),P1(e)),k1(e))}const sv=$l(F1),Ul={token:fi,override:{override:fi},hashed:!0},lv=z.createContext(Ul),Wl="ant",ju="anticon",$1=["outlined","borderless","filled","underlined"],B1=(e,r)=>r||(e?`${Wl}-${e}`:Wl),gr=M.createContext({getPrefixCls:B1,iconPrefixCls:ju}),{Consumer:l_}=gr,Id={};function jo(e){const r=M.useContext(gr),{getPrefixCls:t,direction:n,getPopupContainer:i}=r,o=r[e];return Object.assign(Object.assign({classNames:Id,styles:Id},o),{getPrefixCls:t,direction:n,getPopupContainer:i})}const q1=`-ant-${Date.now()}-${Math.random()}`;function z1(e,r){const t={},n=(a,s)=>{let c=a.clone();return c=s?.(c)||c,c.toRgbString()},i=(a,s)=>{const c=new bt(a),d=ni(c.toRgbString());t[`${s}-color`]=n(c),t[`${s}-color-disabled`]=d[1],t[`${s}-color-hover`]=d[4],t[`${s}-color-active`]=d[6],t[`${s}-color-outline`]=c.clone().setA(.2).toRgbString(),t[`${s}-color-deprecated-bg`]=d[0],t[`${s}-color-deprecated-border`]=d[2]};if(r.primaryColor){i(r.primaryColor,"primary");const a=new bt(r.primaryColor),s=ni(a.toRgbString());s.forEach((d,f)=>{t[`primary-${f+1}`]=d}),t["primary-color-deprecated-l-35"]=n(a,d=>d.lighten(35)),t["primary-color-deprecated-l-20"]=n(a,d=>d.lighten(20)),t["primary-color-deprecated-t-20"]=n(a,d=>d.tint(20)),t["primary-color-deprecated-t-50"]=n(a,d=>d.tint(50)),t["primary-color-deprecated-f-12"]=n(a,d=>d.setA(d.a*.12));const c=new bt(s[0]);t["primary-color-active-deprecated-f-30"]=n(c,d=>d.setA(d.a*.3)),t["primary-color-active-deprecated-d-02"]=n(c,d=>d.darken(2))}return r.successColor&&i(r.successColor,"success"),r.warningColor&&i(r.warningColor,"warning"),r.errorColor&&i(r.errorColor,"error"),r.infoColor&&i(r.infoColor,"info"),`
|
|
138
|
-
:root {
|
|
139
|
-
${Object.keys(t).map(a=>`--${e}-${a}: ${t[a]};`).join(`
|
|
140
|
-
`)}
|
|
141
|
-
}
|
|
142
|
-
`.trim()}function H1(e,r){const t=z1(e,r);Rt()?Er(t,`${q1}-dynamic-theme`):process.env.NODE_ENV!=="production"&&yi(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const di=M.createContext(!1),V1=({children:e,disabled:r})=>{const t=M.useContext(di);return M.createElement(di.Provider,{value:r??t},e)},mn=M.createContext(void 0),U1=({children:e,size:r})=>{const t=M.useContext(mn);return M.createElement(mn.Provider,{value:r||t},e)};function W1(){const e=z.useContext(di),r=z.useContext(mn);return{componentDisabled:e,componentSize:r}}var uv=_t(function e(){Et(this,e)}),cv="CALC_UNIT",G1=new RegExp(cv,"g");function Zs(e){return typeof e=="number"?"".concat(e).concat(cv):e}var K1=(function(e){$r(t,e);var r=Br(t);function t(n,i){var o;Et(this,t),o=r.call(this),te(je(o),"result",""),te(je(o),"unitlessCssVar",void 0),te(je(o),"lowPriority",void 0);var a=Ae(n);return o.unitlessCssVar=i,n instanceof t?o.result="(".concat(n.result,")"):a==="number"?o.result=Zs(n):a==="string"&&(o.result=n),o}return _t(t,[{key:"add",value:function(i){return i instanceof t?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Zs(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof t?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Zs(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof t?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof t?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(d){return o.result.includes(d)})&&(c=!1),this.result=this.result.replace(G1,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),t})(uv),Y1=(function(e){$r(t,e);var r=Br(t);function t(n){var i;return Et(this,t),i=r.call(this),te(je(i),"result",0),n instanceof t?i.result=n.result:typeof n=="number"&&(i.result=n),i}return _t(t,[{key:"add",value:function(i){return i instanceof t?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof t?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof t?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof t?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),t})(uv),X1=function(r,t){var n=r==="css"?K1:Y1;return function(i){return new n(i,t)}},Md=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 Ld(e,r,t,n){var i=ie({},r[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(s){var c=ve(s,2),d=c[0],f=c[1];if(process.env.NODE_ENV!=="production"&&ot(!(i!=null&&i[d]),"Component Token `".concat(String(d),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(f),"` instead.")),i!=null&&i[d]||i!=null&&i[f]){var l;(l=i[f])!==null&&l!==void 0||(i[f]=i?.[d])}})}var a=ie(ie({},t),i);return Object.keys(a).forEach(function(s){a[s]===r[s]&&delete a[s]}),a}var fv=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Gl=!0;function Or(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(!fv)return Object.assign.apply(Object,[{}].concat(r));Gl=!1;var n={};return r.forEach(function(i){if(Ae(i)==="object"){var o=Object.keys(i);o.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),Gl=!0,n}var Dd={};function Z1(){}var Q1=function(r){var t,n=r,i=Z1;return fv&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(r,{get:function(a,s){if(Gl){var c;(c=t)===null||c===void 0||c.add(s)}return a[s]}}),i=function(a,s){var c;Dd[a]={global:Array.from(t),component:ie(ie({},(c=Dd[a])===null||c===void 0?void 0:c.component),s)}}),{token:n,keys:t,flush:i}};function Fd(e,r,t){if(typeof t=="function"){var n;return t(Or(r,(n=r[e])!==null&&n!==void 0?n:{}))}return t??{}}function J1(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return"max(".concat(n.map(function(o){return Ye(o)}).join(","),")")},min:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return"min(".concat(n.map(function(o){return Ye(o)}).join(","),")")}}}var ex=1e3*60*10,tx=(function(){function e(){Et(this,e),te(this,"map",new Map),te(this,"objectIDMap",new WeakMap),te(this,"nextID",0),te(this,"lastAccessBeat",new Map),te(this,"accessBeat",0)}return _t(e,[{key:"set",value:function(t,n){this.clear();var i=this.getCompositeKey(t);this.map.set(i,n),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(t){var n=this.getCompositeKey(t),i=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(t){var n=this,i=t.map(function(o){return o&&Ae(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Ae(o),"_").concat(o)});return i.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var n=this.nextID;return this.objectIDMap.set(t,n),this.nextID+=1,n}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(i,o){n-i>ex&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),$d=new tx;function rx(e,r){return z.useMemo(function(){var t=$d.get(r);if(t)return t;var n=e();return $d.set(r,n),n},r)}var nx=function(){return{}};function ix(e){var r=e.useCSP,t=r===void 0?nx:r,n=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function c(u,h,v,b){var p=Array.isArray(u)?u[0]:u;function m(E){return"".concat(String(p)).concat(E.slice(0,1).toUpperCase()).concat(E.slice(1))}var g=b?.unitless||{},x=typeof s=="function"?s(u):{},y=ie(ie({},x),{},te({},m("zIndexPopup"),!0));Object.keys(g).forEach(function(E){y[m(E)]=g[E]});var w=ie(ie({},b),{},{unitless:y,prefixToken:m}),_=f(u,h,v,w),S=d(p,v,w);return function(E){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,T=_(E,R),C=ve(T,2),O=C[1],A=S(R),P=ve(A,2),I=P[0],$=P[1];return[I,O,$]}}function d(u,h,v){var b=v.unitless,p=v.injectStyle,m=p===void 0?!0:p,g=v.prefixToken,x=v.ignore,y=function(S){var E=S.rootCls,R=S.cssVar,T=R===void 0?{}:R,C=n(),O=C.realToken;return g1({path:[u],prefix:T.prefix,key:T.key,unitless:b,ignore:x,token:O,scope:E},function(){var A=Fd(u,O,h),P=Ld(u,O,A,{deprecatedTokens:v?.deprecatedTokens});return Object.keys(A).forEach(function(I){P[g(I)]=P[I],delete P[I]}),P}),null},w=function(S){var E=n(),R=E.cssVar;return[function(T){return m&&R?z.createElement(z.Fragment,null,z.createElement(y,{rootCls:S,cssVar:R,component:u}),T):T},R?.key]};return w}function f(u,h,v){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(u)?u:[u,u],m=ve(p,1),g=m[0],x=p.join("-"),y=e.layer||{name:"antd"};return function(w){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,S=n(),E=S.theme,R=S.realToken,T=S.hashId,C=S.token,O=S.cssVar,A=i(),P=A.rootPrefixCls,I=A.iconPrefixCls,$=t(),H=O?"css":"js",G=rx(function(){var X=new Set;return O&&Object.keys(b.unitless||{}).forEach(function(W){X.add(eo(W,O.prefix)),X.add(eo(W,Md(g,O.prefix)))}),X1(H,X)},[H,g,O?.prefix]),D=J1(H),F=D.max,N=D.min,L={theme:E,token:C,hashId:T,nonce:function(){return $.nonce},clientOnly:b.clientOnly,layer:y,order:b.order||-999};typeof o=="function"&&Vl(ie(ie({},L),{},{clientOnly:!1,path:["Shared",P]}),function(){return o(C,{prefix:{rootPrefixCls:P,iconPrefixCls:I},csp:$})});var B=Vl(ie(ie({},L),{},{path:[x,w,I]}),function(){if(b.injectStyle===!1)return[];var X=Q1(C),W=X.token,q=X.flush,j=Fd(g,R,v),V=".".concat(w),U=Ld(g,R,j,{deprecatedTokens:b.deprecatedTokens});O&&j&&Ae(j)==="object"&&Object.keys(j).forEach(function(ce){j[ce]="var(".concat(eo(ce,Md(g,O.prefix)),")")});var K=Or(W,{componentCls:V,prefixCls:w,iconCls:".".concat(I),antCls:".".concat(P),calc:G,max:F,min:N},O?j:U),J=h(K,{hashId:T,prefixCls:w,rootPrefixCls:P,iconPrefixCls:I});q(g,U);var ne=typeof a=="function"?a(K,w,_,b.resetFont):null;return[b.resetStyle===!1?null:ne,J]});return[B,T]}}function l(u,h,v){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=f(u,h,v,ie({resetStyle:!1,order:-998},b)),m=function(x){var y=x.prefixCls,w=x.rootCls,_=w===void 0?y:w;return p(y,_),null};return process.env.NODE_ENV!=="production"&&(m.displayName="SubStyle_".concat(String(Array.isArray(u)?u.join("."):u))),m}return{genStyleHooks:c,genSubStyleComponent:l,genComponentStyleHook:f}}const vo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],ox="5.27.1";function Qs(e){return e>=0&&e<=255}function $i(e,r){const{r:t,g:n,b:i,a:o}=new bt(e).toRgb();if(o<1)return e;const{r:a,g:s,b:c}=new bt(r).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((t-a*(1-d))/d),l=Math.round((n-s*(1-d))/d),u=Math.round((i-c*(1-d))/d);if(Qs(f)&&Qs(l)&&Qs(u))return new bt({r:f,g:l,b:u,a:Math.round(d*100)/100}).toRgbString()}return new bt({r:t,g:n,b:i,a:1}).toRgbString()}var ax=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function dv(e){const{override:r}=e,t=ax(e,["override"]),n=Object.assign({},r);Object.keys(fi).forEach(u=>{delete n[u]});const i=Object.assign(Object.assign({},t),n),o=480,a=576,s=768,c=992,d=1200,f=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:$i(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:$i(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:$i(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:$i(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
|
143
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
144
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
145
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
146
|
-
`,boxShadowSecondary:`
|
|
147
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
148
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
149
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
150
|
-
`,boxShadowTertiary:`
|
|
151
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
152
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
153
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
154
|
-
`,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
155
|
-
0 1px 2px -2px ${new bt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
156
|
-
0 3px 6px 0 ${new bt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
157
|
-
0 5px 12px 4px ${new bt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
158
|
-
`,boxShadowDrawerRight:`
|
|
159
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
160
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
161
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
162
|
-
`,boxShadowDrawerLeft:`
|
|
163
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
164
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
165
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
166
|
-
`,boxShadowDrawerUp:`
|
|
167
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
168
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
169
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
170
|
-
`,boxShadowDrawerDown:`
|
|
171
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
172
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
173
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
174
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var Bd=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};const hv={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},sx={motionBase:!0,motionUnit:!0},lx={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},pv=(e,r,t)=>{const n=t.getDerivativeToken(e),{override:i}=r,o=Bd(r,["override"]);let a=Object.assign(Object.assign({},n),{override:i});return a=dv(a),o&&Object.entries(o).forEach(([s,c])=>{const{theme:d}=c,f=Bd(c,["theme"]);let l=f;d&&(l=pv(Object.assign(Object.assign({},a),f),{override:f},d)),a[s]=l}),a};function _n(){const{token:e,hashed:r,theme:t,override:n,cssVar:i}=z.useContext(lv),o=`${ox}-${r||""}`,a=t||sv,[s,c,d]=qb(a,[fi,e],{salt:o,override:n,getComputedToken:pv,formatToken:dv,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:hv,ignore:sx,preserve:lx}});return[a,d,r?c:"",s,i]}const Iu=(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}),ux=()=>({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"}}),cx=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),fx=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"}}}),dx=(e,r,t,n)=>{const i=`[class^="${r}"], [class*=" ${r}"]`,o=t?`.${t}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},hx=(e,r)=>({outline:`${Ye(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:r??1,transition:"outline-offset 0s, outline 0s"}),px=(e,r)=>({"&:focus-visible":hx(e,r)}),vv=e=>({[`.${e}`]:Object.assign(Object.assign({},ux()),{[`.${e} .${e}-icon`]:{display:"block"}})}),gv=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"},px(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:bi}=ix({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:r}=z.useContext(gr);return{rootPrefixCls:e(),iconPrefixCls:r}},useToken:()=>{const[e,r,t,n,i]=_n();return{theme:e,realToken:r,hashId:t,token:n,cssVar:i}},useCSP:()=>{const{csp:e}=z.useContext(gr);return e??{}},getResetStyles:(e,r)=>{var t;const n=fx(e);return[n,{"&":n},vv((t=r?.prefix.iconPrefixCls)!==null&&t!==void 0?t:ju)]},getCommonStyle:dx,getCompUnitless:()=>hv});function vx(e,r){return vo.reduce((t,n)=>{const i=e[`${n}1`],o=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},t),r(n,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const gx=(e,r)=>{const[t,n]=_n();return Vl({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>r?.nonce,layer:{name:"antd"}},()=>vv(e))},mx=Object.assign({},M),{useId:qd}=mx,yx=()=>"",bx=typeof qd>"u"?yx:qd;function xx(e,r,t){var n,i;const o=vr("ConfigProvider"),a=e||{},s=a.inherit===!1||!r?Object.assign(Object.assign({},Ul),{hashed:(n=r?.hashed)!==null&&n!==void 0?n:Ul.hashed,cssVar:r?.cssVar}):r,c=bx();if(process.env.NODE_ENV!=="production"){const d=a.cssVar||s.cssVar,f=!!(typeof a.cssVar=="object"&&(!((i=a.cssVar)===null||i===void 0)&&i.key)||c);process.env.NODE_ENV!=="production"&&o(!d||f,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Eu(()=>{var d,f;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-${c.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"&&((f=a.cssVar)===null||f===void 0?void 0:f.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,f)=>d.some((l,u)=>{const h=f[u];return!Dl(l,h,!0)}))}var wx=["children"],mv=M.createContext({});function Sx(e){var r=e.children,t=Ot(e,wx);return M.createElement(mv.Provider,{value:t},r)}var Ex=(function(e){$r(t,e);var r=Br(t);function t(){return Et(this,t),r.apply(this,arguments)}return _t(t,[{key:"render",value:function(){return this.props.children}}]),t})(M.Component);function _x(e){var r=M.useReducer(function(s){return s+1},0),t=ve(r,2),n=t[1],i=M.useRef(e),o=At(function(){return i.current}),a=At(function(s){i.current=typeof s=="function"?s(i.current):s,n()});return[o,a]}var Mr="none",Bi="appear",qi="enter",zi="leave",zd="none",ar="prepare",on="start",an="active",Mu="end",yv="prepared";function Hd(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 Cx(e,r){var t={animationend:Hd("Animation","AnimationEnd"),transitionend:Hd("Transition","TransitionEnd")};return e&&("AnimationEvent"in r||delete t.animationend.animation,"TransitionEvent"in r||delete t.transitionend.transition),t}var Ox=Cx(Rt(),typeof window<"u"?window:{}),bv={};if(Rt()){var Tx=document.createElement("div");bv=Tx.style}var Hi={};function xv(e){if(Hi[e])return Hi[e];var r=Ox[e];if(r)for(var t=Object.keys(r),n=t.length,i=0;i<n;i+=1){var o=t[i];if(Object.prototype.hasOwnProperty.call(r,o)&&o in bv)return Hi[e]=r[o],Hi[e]}return""}var wv=xv("animationend"),Sv=xv("transitionend"),Ev=!!(wv&&Sv),Vd=wv||"animationend",Ud=Sv||"transitionend";function Wd(e,r){if(!e)return null;if(Ae(e)==="object"){var t=r.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[t]}return"".concat(e,"-").concat(r)}const Ax=(function(e){var r=z.useRef();function t(i){i&&(i.removeEventListener(Ud,e),i.removeEventListener(Vd,e))}function n(i){r.current&&r.current!==i&&t(r.current),i&&i!==r.current&&(i.addEventListener(Ud,e),i.addEventListener(Vd,e),r.current=i)}return M.useEffect(function(){return function(){t(r.current)}},[]),[n,t]});var _v=Rt()?z.useLayoutEffect:z.useEffect,Cv=function(r){return+setTimeout(r,16)},Ov=function(r){return clearTimeout(r)};typeof window<"u"&&"requestAnimationFrame"in window&&(Cv=function(r){return window.requestAnimationFrame(r)},Ov=function(r){return window.cancelAnimationFrame(r)});var Gd=0,Io=new Map;function Tv(e){Io.delete(e)}var yn=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Gd+=1;var n=Gd;function i(o){if(o===0)Tv(n),r();else{var a=Cv(function(){i(o-1)});Io.set(n,a)}}return i(t),n};yn.cancel=function(e){var r=Io.get(e);return Tv(e),Ov(r)};process.env.NODE_ENV!=="production"&&(yn.ids=function(){return Io});const Rx=(function(){var e=M.useRef(null);function r(){yn.cancel(e.current)}function t(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;r();var o=yn(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):t(n,i-1)});e.current=o}return M.useEffect(function(){return function(){r()}},[]),[t,r]});var kx=[ar,on,an,Mu],Px=[ar,yv],Av=!1,Nx=!0;function Rv(e){return e===an||e===Mu}const jx=(function(e,r,t){var n=li(zd),i=ve(n,2),o=i[0],a=i[1],s=Rx(),c=ve(s,2),d=c[0],f=c[1];function l(){a(ar,!0)}var u=r?Px:kx;return _v(function(){if(o!==zd&&o!==Mu){var h=u.indexOf(o),v=u[h+1],b=t(o);b===Av?a(v,!0):v&&d(function(p){function m(){p.isCanceled()||a(v,!0)}b===!0?m():Promise.resolve(b).then(m)})}},[e,o]),M.useEffect(function(){return function(){f()}},[]),[l,o]});function Ix(e,r,t,n){var i=n.motionEnter,o=i===void 0?!0:i,a=n.motionAppear,s=a===void 0?!0:a,c=n.motionLeave,d=c===void 0?!0:c,f=n.motionDeadline,l=n.motionLeaveImmediately,u=n.onAppearPrepare,h=n.onEnterPrepare,v=n.onLeavePrepare,b=n.onAppearStart,p=n.onEnterStart,m=n.onLeaveStart,g=n.onAppearActive,x=n.onEnterActive,y=n.onLeaveActive,w=n.onAppearEnd,_=n.onEnterEnd,S=n.onLeaveEnd,E=n.onVisibleChanged,R=li(),T=ve(R,2),C=T[0],O=T[1],A=_x(Mr),P=ve(A,2),I=P[0],$=P[1],H=li(null),G=ve(H,2),D=G[0],F=G[1],N=I(),L=z.useRef(!1),B=z.useRef(null);function X(){return t()}var W=z.useRef(!1);function q(){$(Mr),F(null,!0)}var j=At(function(le){var ae=I();if(ae!==Mr){var pe=X();if(!(le&&!le.deadline&&le.target!==pe)){var fe=W.current,me;ae===Bi&&fe?me=w?.(pe,le):ae===qi&&fe?me=_?.(pe,le):ae===zi&&fe&&(me=S?.(pe,le)),fe&&me!==!1&&q()}}}),V=Ax(j),U=ve(V,1),K=U[0],J=function(ae){switch(ae){case Bi:return te(te(te({},ar,u),on,b),an,g);case qi:return te(te(te({},ar,h),on,p),an,x);case zi:return te(te(te({},ar,v),on,m),an,y);default:return{}}},ne=M.useMemo(function(){return J(N)},[N]),ce=jx(N,!e,function(le){if(le===ar){var ae=ne[ar];return ae?ae(X()):Av}if(oe in ne){var pe;F(((pe=ne[oe])===null||pe===void 0?void 0:pe.call(ne,X(),null))||null)}return oe===an&&N!==Mr&&(K(X()),f>0&&(clearTimeout(B.current),B.current=setTimeout(function(){j({deadline:!0})},f))),oe===yv&&q(),Nx}),re=ve(ce,2),de=re[0],oe=re[1],se=Rv(oe);W.current=se;var Q=z.useRef(null);_v(function(){if(!(L.current&&Q.current===r)){O(r);var le=L.current;L.current=!0;var ae;!le&&r&&s&&(ae=Bi),le&&r&&o&&(ae=qi),(le&&!r&&d||!le&&l&&!r&&d)&&(ae=zi);var pe=J(ae);ae&&(e||pe[ar])?($(ae),de()):$(Mr),Q.current=r}},[r]),z.useEffect(function(){(N===Bi&&!s||N===qi&&!o||N===zi&&!d)&&$(Mr)},[s,o,d]),z.useEffect(function(){return function(){L.current=!1,clearTimeout(B.current)}},[]);var ee=M.useRef(!1);z.useEffect(function(){C&&(ee.current=!0),C!==void 0&&N===Mr&&((ee.current||C)&&E?.(C),ee.current=!0)},[C,N]);var ue=D;return ne[ar]&&oe===on&&(ue=ie({transition:"none"},ue)),[N,oe,ue,C??r]}function Mx(e){var r=e;Ae(e)==="object"&&(r=e.transitionSupport);function t(i,o){return!!(i.motionName&&r&&o!==!1)}var n=M.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,c=i.removeOnLeave,d=c===void 0?!0:c,f=i.forceRender,l=i.children,u=i.motionName,h=i.leavedClassName,v=i.eventProps,b=M.useContext(mv),p=b.motion,m=t(i,p),g=z.useRef(),x=z.useRef();function y(){try{return g.current instanceof HTMLElement?g.current:Ji(x.current)}catch{return null}}var w=Ix(m,s,y,i),_=ve(w,4),S=_[0],E=_[1],R=_[2],T=_[3],C=M.useRef(T);T&&(C.current=!0);var O=M.useCallback(function(G){g.current=G,_u(o,G)},[o]),A,P=ie(ie({},v),{},{visible:s});if(!l)A=null;else if(S===Mr)T?A=l(ie({},P),O):!d&&C.current&&h?A=l(ie(ie({},P),{},{className:h}),O):f||!d&&!h?A=l(ie(ie({},P),{},{style:{display:"none"}}),O):A=null;else{var I;E===ar?I="prepare":Rv(E)?I="active":E===on&&(I="start");var $=Wd(u,"".concat(S,"-").concat(I));A=l(ie(ie({},P),{},{className:_e(Wd(u,S),te(te({},$,$&&I),u,typeof u=="string")),style:R}),O)}if(M.isValidElement(A)&&Ro(A)){var H=Ou(A);H||(A=M.cloneElement(A,{ref:O}))}return M.createElement(Ex,{ref:x},A)});return n.displayName="CSSMotion",n}const Lu=Mx(Ev);var Kl="add",Yl="keep",Xl="remove",Js="removed";function Lx(e){var r;return e&&Ae(e)==="object"&&"key"in e?r=e:r={key:e},ie(ie({},r),{},{key:String(r.key)})}function Zl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Lx)}function Dx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=[],n=0,i=r.length,o=Zl(e),a=Zl(r);o.forEach(function(d){for(var f=!1,l=n;l<i;l+=1){var u=a[l];if(u.key===d.key){n<l&&(t=t.concat(a.slice(n,l).map(function(h){return ie(ie({},h),{},{status:Kl})})),n=l),t.push(ie(ie({},u),{},{status:Yl})),n+=1,f=!0;break}}f||t.push(ie(ie({},d),{},{status:Xl}))}),n<i&&(t=t.concat(a.slice(n).map(function(d){return ie(ie({},d),{},{status:Kl})})));var s={};t.forEach(function(d){var f=d.key;s[f]=(s[f]||0)+1});var c=Object.keys(s).filter(function(d){return s[d]>1});return c.forEach(function(d){t=t.filter(function(f){var l=f.key,u=f.status;return l!==d||u!==Xl}),t.forEach(function(f){f.key===d&&(f.status=Yl)})}),t}var Fx=["component","children","onVisibleChanged","onAllRemoved"],$x=["status"],Bx=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function qx(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Lu,t=(function(n){$r(o,n);var i=Br(o);function o(){var a;Et(this,o);for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];return a=i.call.apply(i,[this].concat(c)),te(je(a),"state",{keyEntities:[]}),te(je(a),"removeKey",function(f){a.setState(function(l){var u=l.keyEntities.map(function(h){return h.key!==f?h:ie(ie({},h),{},{status:Js})});return{keyEntities:u}},function(){var l=a.state.keyEntities,u=l.filter(function(h){var v=h.status;return v!==Js}).length;u===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return _t(o,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,d=this.props,f=d.component,l=d.children,u=d.onVisibleChanged;d.onAllRemoved;var h=Ot(d,Fx),v=f||M.Fragment,b={};return Bx.forEach(function(p){b[p]=h[p],delete h[p]}),delete h.keys,M.createElement(v,h,c.map(function(p,m){var g=p.status,x=Ot(p,$x),y=g===Kl||g===Yl;return M.createElement(r,tt({},b,{key:x.key,visible:y,eventProps:x,onVisibleChanged:function(_){u?.(_,{key:x.key}),_||s.removeKey(x.key)}}),function(w,_){return l(ie(ie({},w),{},{index:m}),_)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var d=s.keys,f=c.keyEntities,l=Zl(d),u=Dx(f,l);return{keyEntities:u.filter(function(h){var v=f.find(function(b){var p=b.key;return h.key===p});return!(v&&v.status===Js&&h.status===Xl)})}}}]),o})(M.Component);return te(t,"defaultProps",{component:"div"}),t}qx(Ev);const Ql=M.createContext(!0);process.env.NODE_ENV!=="production"&&(Ql.displayName="MotionCacheContext");function zx(e){const r=M.useContext(Ql),{children:t}=e,[,n]=_n(),{motion:i}=n,o=M.useRef(!1);return o.current||(o.current=r!==i),o.current?M.createElement(Ql.Provider,{value:i},M.createElement(Sx,{motion:i},t)):t}const kv=M.memo(({dropdownMatchSelectWidth:e})=>(vr("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(kv.displayName="PropWarning");const Hx=process.env.NODE_ENV!=="production"?kv:()=>null;var Vx=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};let Jl=!1;process.env.NODE_ENV;const Ux=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Pv;function Wx(){return Pv||Wl}function Gx(e){return Object.keys(e).some(r=>r.endsWith("Color"))}const Kx=e=>{const{prefixCls:r,iconPrefixCls:t,theme:n,holderRender:i}=e;r!==void 0&&(Pv=r),n&&Gx(n)&&(process.env.NODE_ENV!=="production"&&yi(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),H1(Wx(),n))},Yx=e=>{const{children:r,csp:t,autoInsertSpaceInButton:n,alert:i,anchor:o,form:a,locale:s,componentSize:c,direction:d,space:f,splitter:l,virtual:u,dropdownMatchSelectWidth:h,popupMatchSelectWidth:v,popupOverflow:b,legacyLocale:p,parentContext:m,iconPrefixCls:g,theme:x,componentDisabled:y,segmented:w,statistic:_,spin:S,calendar:E,carousel:R,cascader:T,collapse:C,typography:O,checkbox:A,descriptions:P,divider:I,drawer:$,skeleton:H,steps:G,image:D,layout:F,list:N,mentions:L,modal:B,progress:X,result:W,slider:q,breadcrumb:j,menu:V,pagination:U,input:K,textArea:J,empty:ne,badge:ce,radio:re,rate:de,switch:oe,transfer:se,avatar:Q,message:ee,tag:ue,table:le,card:ae,tabs:pe,timeline:fe,timePicker:me,upload:Oe,notification:qe,tree:Ce,colorPicker:Ke,datePicker:ke,rangePicker:Pe,flex:Fe,wave:Ne,dropdown:we,warning:Ve,tour:xe,tooltip:Ee,popover:at,popconfirm:Nt,floatButton:zt,floatButtonGroup:Tr,variant:Jt,inputNumber:Ar,treeSelect:Lt}=e,Le=M.useCallback((ze,rt)=>{const{prefixCls:et}=e;if(rt)return rt;const vt=et||m.getPrefixCls("");return ze?`${vt}-${ze}`:vt},[m.getPrefixCls,e.prefixCls]),Xe=g||m.iconPrefixCls||ju,er=t||m.csp;gx(Xe,er);const pt=xx(x,m.theme,{prefixCls:Le("")});process.env.NODE_ENV!=="production"&&(Jl=Jl||!!pt);const $e={csp:er,autoInsertSpaceInButton:n,alert:i,anchor:o,locale:s||p,direction:d,space:f,splitter:l,virtual:u,popupMatchSelectWidth:v??h,popupOverflow:b,getPrefixCls:Le,iconPrefixCls:Xe,theme:pt,segmented:w,statistic:_,spin:S,calendar:E,carousel:R,cascader:T,collapse:C,typography:O,checkbox:A,descriptions:P,divider:I,drawer:$,skeleton:H,steps:G,image:D,input:K,textArea:J,layout:F,list:N,mentions:L,modal:B,progress:X,result:W,slider:q,breadcrumb:j,menu:V,pagination:U,empty:ne,badge:ce,radio:re,rate:de,switch:oe,transfer:se,avatar:Q,message:ee,tag:ue,table:le,card:ae,tabs:pe,timeline:fe,timePicker:me,upload:Oe,notification:qe,tree:Ce,colorPicker:Ke,datePicker:ke,rangePicker:Pe,flex:Fe,wave:Ne,dropdown:we,warning:Ve,tour:xe,tooltip:Ee,popover:at,popconfirm:Nt,floatButton:zt,floatButtonGroup:Tr,variant:Jt,inputNumber:Ar,treeSelect:Lt};process.env.NODE_ENV!=="production"&&vr("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Be=Object.assign({},m);Object.keys($e).forEach(ze=>{$e[ze]!==void 0&&(Be[ze]=$e[ze])}),Ux.forEach(ze=>{const rt=e[ze];rt&&(Be[ze]=rt)}),typeof n<"u"&&(Be.button=Object.assign({autoInsertSpace:n},Be.button));const ft=Eu(()=>Be,Be,(ze,rt)=>{const et=Object.keys(ze),vt=Object.keys(rt);return et.length!==vt.length||et.some(Dt=>ze[Dt]!==rt[Dt])}),{layer:Ht}=M.useContext(mi),Je=M.useMemo(()=>({prefixCls:Xe,csp:er,layer:Ht?"antd":void 0}),[Xe,er,Ht]);let Ue=M.createElement(M.Fragment,null,M.createElement(Hx,{dropdownMatchSelectWidth:h}),r);const tr=M.useMemo(()=>{var ze,rt,et,vt;return nn(((ze=gn.Form)===null||ze===void 0?void 0:ze.defaultValidateMessages)||{},((et=(rt=ft.locale)===null||rt===void 0?void 0:rt.Form)===null||et===void 0?void 0:et.defaultValidateMessages)||{},((vt=ft.form)===null||vt===void 0?void 0:vt.validateMessages)||{},a?.validateMessages||{})},[ft,a?.validateMessages]);Object.keys(tr).length>0&&(Ue=M.createElement(S1.Provider,{value:tr},Ue)),s&&(Ue=M.createElement(ov,{locale:s,_ANT_MARK__:iv},Ue)),Ue=M.createElement(xu.Provider,{value:Je},Ue),c&&(Ue=M.createElement(U1,{size:c},Ue)),Ue=M.createElement(zx,null,Ue);const Vt=M.useMemo(()=>{const ze=pt||{},{algorithm:rt,token:et,components:vt,cssVar:Dt}=ze,mr=Vx(ze,["algorithm","token","components","cssVar"]),jt=rt&&(!Array.isArray(rt)||rt.length>0)?$l(rt):sv,It={};Object.entries(vt||{}).forEach(([Z,he])=>{const ge=Object.assign({},he);"algorithm"in ge&&(ge.algorithm===!0?ge.theme=jt:(Array.isArray(ge.algorithm)||typeof ge.algorithm=="function")&&(ge.theme=$l(ge.algorithm)),delete ge.algorithm),It[Z]=ge});const ye=Object.assign(Object.assign({},fi),et);return Object.assign(Object.assign({},mr),{theme:jt,token:ye,components:It,override:Object.assign({override:ye},It),cssVar:Dt})},[pt]);return x&&(Ue=M.createElement(lv.Provider,{value:Vt},Ue)),ft.warning&&(Ue=M.createElement(rv.Provider,{value:ft.warning},Ue)),y!==void 0&&(Ue=M.createElement(V1,{disabled:y},Ue)),M.createElement(gr.Provider,{value:ft},Ue)},Cn=e=>{const r=M.useContext(gr),t=M.useContext(Nu);return M.createElement(Yx,Object.assign({parentContext:r,legacyLocale:t},e))};Cn.ConfigContext=gr;Cn.SizeContext=mn;Cn.config=Kx;Cn.useConfig=W1;Object.defineProperty(Cn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&yi(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),mn)});process.env.NODE_ENV!=="production"&&(Cn.displayName="ConfigProvider");function Nv(e){var r=e.children,t=e.prefixCls,n=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,s=e.style;return M.createElement("div",{className:_e("".concat(t,"-content"),a),style:s},M.createElement("div",{className:_e("".concat(t,"-inner"),o),id:n,role:"tooltip",style:i},typeof r=="function"?r():r))}var jv=M.createContext(null),Kd=[];function Xx(e,r){var t=M.useState(function(){if(!Rt())return null;var v=document.createElement("div");return process.env.NODE_ENV!=="production"&&r&&v.setAttribute("data-debug",r),v}),n=ve(t,1),i=n[0],o=M.useRef(!1),a=M.useContext(jv),s=M.useState(Kd),c=ve(s,2),d=c[0],f=c[1],l=a||(o.current?void 0:function(v){f(function(b){var p=[v].concat(Se(b));return p})});function u(){i.parentElement||document.body.appendChild(i),o.current=!0}function h(){var v;(v=i.parentElement)===null||v===void 0||v.removeChild(i),o.current=!1}return st(function(){return e?a?a(u):u():h(),h},[e]),st(function(){d.length&&(d.forEach(function(v){return v()}),f(Kd))},[d]),[i,l]}function Zx(e){var r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),t=document.createElement("div");t.id=r;var n=t.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var i,o;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),d=parseInt(s.height,10);try{var f=c?"width: ".concat(s.width,";"):"",l=d?"height: ".concat(s.height,";"):"";Er(`
|
|
175
|
-
#`.concat(r,`::-webkit-scrollbar {
|
|
176
|
-
`).concat(f,`
|
|
177
|
-
`).concat(l,`
|
|
178
|
-
}`),r)}catch(v){console.error(v),i=c,o=d}}document.body.appendChild(t);var u=e&&i&&!isNaN(i)?i:t.offsetWidth-t.clientWidth,h=e&&o&&!isNaN(o)?o:t.offsetHeight-t.clientHeight;return document.body.removeChild(t),ii(r),{width:u,height:h}}function Qx(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Zx(e)}function Jx(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var ew="rc-util-locker-".concat(Date.now()),Yd=0;function tw(e){var r=!!e,t=M.useState(function(){return Yd+=1,"".concat(ew,"_").concat(Yd)}),n=ve(t,1),i=n[0];st(function(){if(r){var o=Qx(document.body).width,a=Jx();Er(`
|
|
179
|
-
html body {
|
|
180
|
-
overflow-y: hidden;
|
|
181
|
-
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
182
|
-
}`),i)}else ii(i);return function(){ii(i)}},[r,i])}var rw=!1;function nw(e){return rw}var Xd=function(r){return r===!1?!1:!Rt()||!r?null:typeof r=="string"?document.querySelector(r):typeof r=="function"?r():r},Du=M.forwardRef(function(e,r){var t=e.open,n=e.autoLock,i=e.getContainer,o=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,c=e.children,d=M.useState(t),f=ve(d,2),l=f[0],u=f[1],h=l||t;process.env.NODE_ENV!=="production"&&ot(Rt()||!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 Xd(i)}),b=ve(v,2),p=b[0],m=b[1];M.useEffect(function(){var O=Xd(i);m(O??null)});var g=Xx(h&&!p,o),x=ve(g,2),y=x[0],w=x[1],_=p??y;tw(n&&t&&Rt()&&(_===y||_===document.body));var S=null;if(c&&Ro(c)&&r){var E=c;S=E.ref}var R=Cu(S,r);if(!h||!Rt()||p===void 0)return null;var T=_===!1||nw(),C=c;return r&&(C=M.cloneElement(c,{ref:R})),M.createElement(jv.Provider,{value:w},T?C:ri.createPortal(C,_))});process.env.NODE_ENV!=="production"&&(Du.displayName="Portal");function iw(){var e=ie({},M);return e.useId}var Zd=0,Qd=iw();const Iv=Qd?function(r){var t=Qd();return r||(process.env.NODE_ENV==="test"?"test-id":t)}:function(r){var t=M.useState("ssr-id"),n=ve(t,2),i=n[0],o=n[1];return M.useEffect(function(){var a=Zd;Zd+=1,o("rc_unique_".concat(a))},[]),r||(process.env.NODE_ENV==="test"?"test-id":i)},ow=(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 aw(e){var r=e.prefixCls,t=e.align,n=e.arrow,i=e.arrowPos,o=n||{},a=o.className,s=o.content,c=i.x,d=c===void 0?0:c,f=i.y,l=f===void 0?0:f,u=M.useRef();if(!t||!t.points)return null;var h={position:"absolute"};if(t.autoArrow!==!1){var v=t.points[0],b=t.points[1],p=v[0],m=v[1],g=b[0],x=b[1];p===g||!["t","b"].includes(p)?h.top=l:p==="t"?h.top=0:h.bottom=0,m===x||!["l","r"].includes(m)?h.left=d:m==="l"?h.left=0:h.right=0}return M.createElement("div",{ref:u,className:_e("".concat(r,"-arrow"),a),style:h},s)}function sw(e){var r=e.prefixCls,t=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?M.createElement(Lu,tt({},o,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(a){var s=a.className;return M.createElement("div",{style:{zIndex:n},className:_e("".concat(r,"-mask"),s)})}):null}var Mv=M.memo(function(e){var r=e.children;return r},function(e,r){return r.cache});process.env.NODE_ENV!=="production"&&(Mv.displayName="PopupContent");var Lv=M.forwardRef(function(e,r){var t=e.popup,n=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,c=e.open,d=e.keepDom,f=e.fresh,l=e.onClick,u=e.mask,h=e.arrow,v=e.arrowPos,b=e.align,p=e.motion,m=e.maskMotion,g=e.forceRender,x=e.getPopupContainer,y=e.autoDestroy,w=e.portal,_=e.zIndex,S=e.onMouseEnter,E=e.onMouseLeave,R=e.onPointerEnter,T=e.onPointerDownCapture,C=e.ready,O=e.offsetX,A=e.offsetY,P=e.offsetR,I=e.offsetB,$=e.onAlign,H=e.onPrepare,G=e.stretch,D=e.targetWidth,F=e.targetHeight,N=typeof t=="function"?t():t,L=c||d,B=x?.length>0,X=M.useState(!x||!B),W=ve(X,2),q=W[0],j=W[1];if(st(function(){!q&&B&&a&&j(!0)},[q,B,a]),!q)return null;var V="auto",U={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(C||!c){var K,J=b.points,ne=b.dynamicInset||((K=b._experimental)===null||K===void 0?void 0:K.dynamicInset),ce=ne&&J[0][1]==="r",re=ne&&J[0][0]==="b";ce?(U.right=P,U.left=V):(U.left=O,U.right=V),re?(U.bottom=I,U.top=V):(U.top=A,U.bottom=V)}var de={};return G&&(G.includes("height")&&F?de.height=F:G.includes("minHeight")&&F&&(de.minHeight=F),G.includes("width")&&D?de.width=D:G.includes("minWidth")&&D&&(de.minWidth=D)),c||(de.pointerEvents="none"),M.createElement(w,{open:g||L,getContainer:x&&function(){return x(a)},autoDestroy:y},M.createElement(sw,{prefixCls:i,open:c,zIndex:_,mask:u,motion:m}),M.createElement(Sn,{onResize:$,disabled:!c},function(oe){return M.createElement(Lu,tt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(i,"-hidden")},p,{onAppearPrepare:H,onEnterPrepare:H,visible:c,onVisibleChanged:function(Q){var ee;p==null||(ee=p.onVisibleChanged)===null||ee===void 0||ee.call(p,Q),s(Q)}}),function(se,Q){var ee=se.className,ue=se.style,le=_e(i,ee,n);return M.createElement("div",{ref:gi(oe,r,Q),className:le,style:ie(ie(ie(ie({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},U),de),ue),{},{boxSizing:"border-box",zIndex:_},o),onMouseEnter:S,onMouseLeave:E,onPointerEnter:R,onClick:l,onPointerDownCapture:T},h&&M.createElement(aw,{prefixCls:i,arrow:h,arrowPos:v,align:b}),M.createElement(Mv,{cache:!c&&!f},N))})}))});process.env.NODE_ENV!=="production"&&(Lv.displayName="Popup");var Dv=M.forwardRef(function(e,r){var t=e.children,n=e.getTriggerDOMNode,i=Ro(t),o=M.useCallback(function(s){_u(r,n?n(s):s)},[n]),a=Cu(o,Ou(t));return i?M.cloneElement(t,{ref:a}):t});process.env.NODE_ENV!=="production"&&(Dv.displayName="TriggerWrapper");var Jd=M.createContext(null);function eh(e){return e?Array.isArray(e)?e:[e]:[]}function lw(e,r,t,n){return M.useMemo(function(){var i=eh(t??r),o=eh(n??r),a=new Set(i),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,n])}const uw=(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,n=r.height;if(t||n)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1});function cw(){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 fw(e,r,t,n){for(var i=t.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,c=o[a];if(cw((s=e[c])===null||s===void 0?void 0:s.points,i,n))return"".concat(r,"-placement-").concat(c)}return""}function th(e,r,t,n){return r||(t?{motionName:"".concat(e,"-").concat(t)}:n?{motionName:n}:null)}function xi(e){return e.ownerDocument.defaultView}function eu(e){for(var r=[],t=e?.parentElement,n=["hidden","scroll","clip","auto"];t;){var i=xi(t).getComputedStyle(t),o=i.overflowX,a=i.overflowY,s=i.overflow;[o,a,s].some(function(c){return n.includes(c)})&&r.push(t),t=t.parentElement}return r}function hi(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?r:e}function Wn(e){return hi(parseFloat(e),0)}function rh(e,r){var t=ie({},e);return(r||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=xi(n).getComputedStyle(n),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,c=i.borderBottomWidth,d=i.borderLeftWidth,f=i.borderRightWidth,l=n.getBoundingClientRect(),u=n.offsetHeight,h=n.clientHeight,v=n.offsetWidth,b=n.clientWidth,p=Wn(s),m=Wn(c),g=Wn(d),x=Wn(f),y=hi(Math.round(l.width/v*1e3)/1e3),w=hi(Math.round(l.height/u*1e3)/1e3),_=(v-b-g-x)*y,S=(u-h-p-m)*w,E=p*w,R=m*w,T=g*y,C=x*y,O=0,A=0;if(o==="clip"){var P=Wn(a);O=P*y,A=P*w}var I=l.x+T-O,$=l.y+E-A,H=I+l.width+2*O-T-C-_,G=$+l.height+2*A-E-R-S;t.left=Math.max(t.left,I),t.top=Math.max(t.top,$),t.right=Math.min(t.right,H),t.bottom=Math.min(t.bottom,G)}}),t}function nh(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t="".concat(r),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function ih(e,r){var t=r||[],n=ve(t,2),i=n[0],o=n[1];return[nh(e.width,i),nh(e.height,o)]}function oh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Qr(e,r){var t=r[0],n=r[1],i,o;return t==="t"?o=e.y:t==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Ir(e,r){var t={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,i){return i===r?t[n]||"c":n}).join("")}function dw(e,r,t,n,i,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:i[n]||{}}),c=ve(s,2),d=c[0],f=c[1],l=M.useRef(0),u=M.useMemo(function(){return r?eu(r):[]},[r]),h=M.useRef({}),v=function(){h.current={}};e||v();var b=At(function(){if(r&&t&&e){let Ut=function(kn,yr){var jr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,Pn=L.x+kn,ki=L.y+yr,Uo=Pn+re,Wo=ki+ce,Go=Math.max(Pn,jr.left),be=Math.max(ki,jr.top),Te=Math.min(Uo,jr.right),it=Math.min(Wo,jr.bottom);return Math.max(0,(Te-Go)*(it-be))},Yr=function(){jt=L.y+Be,It=jt+ce,ye=L.x+$e,Z=ye+re};var g,x,y,w,_=r,S=_.ownerDocument,E=xi(_),R=E.getComputedStyle(_),T=R.position,C=_.style.left,O=_.style.top,A=_.style.right,P=_.style.bottom,I=_.style.overflow,$=ie(ie({},i[n]),o),H=S.createElement("div");(g=_.parentElement)===null||g===void 0||g.appendChild(H),H.style.left="".concat(_.offsetLeft,"px"),H.style.top="".concat(_.offsetTop,"px"),H.style.position=T,H.style.height="".concat(_.offsetHeight,"px"),H.style.width="".concat(_.offsetWidth,"px"),_.style.left="0",_.style.top="0",_.style.right="auto",_.style.bottom="auto",_.style.overflow="hidden";var G;if(Array.isArray(t))G={x:t[0],y:t[1],width:0,height:0};else{var D,F,N=t.getBoundingClientRect();N.x=(D=N.x)!==null&&D!==void 0?D:N.left,N.y=(F=N.y)!==null&&F!==void 0?F:N.top,G={x:N.x,y:N.y,width:N.width,height:N.height}}var L=_.getBoundingClientRect(),B=E.getComputedStyle(_),X=B.height,W=B.width;L.x=(x=L.x)!==null&&x!==void 0?x:L.left,L.y=(y=L.y)!==null&&y!==void 0?y:L.top;var q=S.documentElement,j=q.clientWidth,V=q.clientHeight,U=q.scrollWidth,K=q.scrollHeight,J=q.scrollTop,ne=q.scrollLeft,ce=L.height,re=L.width,de=G.height,oe=G.width,se={left:0,top:0,right:j,bottom:V},Q={left:-ne,top:-J,right:U-ne,bottom:K-J},ee=$.htmlRegion,ue="visible",le="visibleFirst";ee!=="scroll"&&ee!==le&&(ee=ue);var ae=ee===le,pe=rh(Q,u),fe=rh(se,u),me=ee===ue?fe:pe,Oe=ae?fe:me;_.style.left="auto",_.style.top="auto",_.style.right="0",_.style.bottom="0";var qe=_.getBoundingClientRect();_.style.left=C,_.style.top=O,_.style.right=A,_.style.bottom=P,_.style.overflow=I,(w=_.parentElement)===null||w===void 0||w.removeChild(H);var Ce=hi(Math.round(re/parseFloat(W)*1e3)/1e3),Ke=hi(Math.round(ce/parseFloat(X)*1e3)/1e3);if(Ce===0||Ke===0||oi(t)&&!uw(t))return;var ke=$.offset,Pe=$.targetOffset,Fe=ih(L,ke),Ne=ve(Fe,2),we=Ne[0],Ve=Ne[1],xe=ih(G,Pe),Ee=ve(xe,2),at=Ee[0],Nt=Ee[1];G.x-=at,G.y-=Nt;var zt=$.points||[],Tr=ve(zt,2),Jt=Tr[0],Ar=Tr[1],Lt=oh(Ar),Le=oh(Jt),Xe=Qr(G,Lt),er=Qr(L,Le),pt=ie({},$),$e=Xe.x-er.x+we,Be=Xe.y-er.y+Ve,ft=Ut($e,Be),Ht=Ut($e,Be,fe),Je=Qr(G,["t","l"]),Ue=Qr(L,["t","l"]),tr=Qr(G,["b","r"]),Vt=Qr(L,["b","r"]),ze=$.overflow||{},rt=ze.adjustX,et=ze.adjustY,vt=ze.shiftX,Dt=ze.shiftY,mr=function(yr){return typeof yr=="boolean"?yr:yr>=0},jt,It,ye,Z;Yr();var he=mr(et),ge=Le[0]===Lt[0];if(he&&Le[0]==="t"&&(It>Oe.bottom||h.current.bt)){var He=Be;ge?He-=ce-de:He=Je.y-Vt.y-Ve;var dt=Ut($e,He),nt=Ut($e,He,fe);dt>ft||dt===ft&&(!ae||nt>=Ht)?(h.current.bt=!0,Be=He,Ve=-Ve,pt.points=[Ir(Le,0),Ir(Lt,0)]):h.current.bt=!1}if(he&&Le[0]==="b"&&(jt<Oe.top||h.current.tb)){var lt=Be;ge?lt+=ce-de:lt=tr.y-Ue.y-Ve;var Mt=Ut($e,lt),ur=Ut($e,lt,fe);Mt>ft||Mt===ft&&(!ae||ur>=Ht)?(h.current.tb=!0,Be=lt,Ve=-Ve,pt.points=[Ir(Le,0),Ir(Lt,0)]):h.current.tb=!1}var Rr=mr(rt),ut=Le[1]===Lt[1];if(Rr&&Le[1]==="l"&&(Z>Oe.right||h.current.rl)){var cr=$e;ut?cr-=re-oe:cr=Je.x-Vt.x-we;var fr=Ut(cr,Be),On=Ut(cr,Be,fe);fr>ft||fr===ft&&(!ae||On>=Ht)?(h.current.rl=!0,$e=cr,we=-we,pt.points=[Ir(Le,1),Ir(Lt,1)]):h.current.rl=!1}if(Rr&&Le[1]==="r"&&(ye<Oe.left||h.current.lr)){var qr=$e;ut?qr+=re-oe:qr=tr.x-Ue.x-we;var Tn=Ut(qr,Be),Kr=Ut(qr,Be,fe);Tn>ft||Tn===ft&&(!ae||Kr>=Ht)?(h.current.lr=!0,$e=qr,we=-we,pt.points=[Ir(Le,1),Ir(Lt,1)]):h.current.lr=!1}Yr();var rr=vt===!0?0:vt;typeof rr=="number"&&(ye<fe.left&&($e-=ye-fe.left-we,G.x+oe<fe.left+rr&&($e+=G.x-fe.left+oe-rr)),Z>fe.right&&($e-=Z-fe.right-we,G.x>fe.right-rr&&($e+=G.x-fe.right+rr)));var kr=Dt===!0?0:Dt;typeof kr=="number"&&(jt<fe.top&&(Be-=jt-fe.top-Ve,G.y+de<fe.top+kr&&(Be+=G.y-fe.top+de-kr)),It>fe.bottom&&(Be-=It-fe.bottom-Ve,G.y>fe.bottom-kr&&(Be+=G.y-fe.bottom+kr)));var Pr=L.x+$e,Nr=Pr+re,An=L.y+Be,Lo=An+ce,Ci=G.x,Oi=Ci+oe,Ti=G.y,Do=Ti+de,Fo=Math.max(Pr,Ci),Ai=Math.min(Nr,Oi),$o=(Fo+Ai)/2,Bo=$o-Pr,Ri=Math.max(An,Ti),qo=Math.min(Lo,Do),zo=(Ri+qo)/2,Ho=zo-An;a?.(r,pt);var dr=qe.right-L.x-($e+L.width),Rn=qe.bottom-L.y-(Be+L.height);Ce===1&&($e=Math.round($e),dr=Math.round(dr)),Ke===1&&(Be=Math.round(Be),Rn=Math.round(Rn));var Vo={ready:!0,offsetX:$e/Ce,offsetY:Be/Ke,offsetR:dr/Ce,offsetB:Rn/Ke,arrowX:Bo/Ce,arrowY:Ho/Ke,scaleX:Ce,scaleY:Ke,align:pt};f(Vo)}}),p=function(){l.current+=1;var x=l.current;Promise.resolve().then(function(){l.current===x&&b()})},m=function(){f(function(x){return ie(ie({},x),{},{ready:!1})})};return st(m,[n]),st(function(){e||m()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,p]}function hw(e,r,t,n,i){st(function(){if(e&&r&&t){let l=function(){n(),i()};var o=r,a=t,s=eu(o),c=eu(a),d=xi(a),f=new Set([d].concat(Se(s),Se(c)));return f.forEach(function(u){u.addEventListener("scroll",l,{passive:!0})}),d.addEventListener("resize",l,{passive:!0}),n(),function(){f.forEach(function(u){u.removeEventListener("scroll",l),d.removeEventListener("resize",l)})}}},[e,r,t])}function pw(e,r,t,n,i,o,a,s){var c=M.useRef(e);c.current=e;var d=M.useRef(!1);M.useEffect(function(){if(r&&n&&(!i||o)){var l=function(){d.current=!1},u=function(y){var w;c.current&&!a(((w=y.composedPath)===null||w===void 0||(w=w.call(y))===null||w===void 0?void 0:w[0])||y.target)&&!d.current&&s(!1)},h=xi(n);h.addEventListener("pointerdown",l,!0),h.addEventListener("mousedown",u,!0),h.addEventListener("contextmenu",u,!0);var v=co(t);if(v&&(v.addEventListener("mousedown",u,!0),v.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var b,p,m=t==null||(b=t.getRootNode)===null||b===void 0?void 0:b.call(t),g=(p=n.getRootNode)===null||p===void 0?void 0:p.call(n);cn(m===g,"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,n,i,o]);function f(){d.current=!0}return f}var vw=["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 gw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Du,r=M.forwardRef(function(t,n){var i=t.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=t.children,s=t.action,c=s===void 0?"hover":s,d=t.showAction,f=t.hideAction,l=t.popupVisible,u=t.defaultPopupVisible,h=t.onPopupVisibleChange,v=t.afterPopupVisibleChange,b=t.mouseEnterDelay,p=t.mouseLeaveDelay,m=p===void 0?.1:p,g=t.focusDelay,x=t.blurDelay,y=t.mask,w=t.maskClosable,_=w===void 0?!0:w,S=t.getPopupContainer,E=t.forceRender,R=t.autoDestroy,T=t.destroyPopupOnHide,C=t.popup,O=t.popupClassName,A=t.popupStyle,P=t.popupPlacement,I=t.builtinPlacements,$=I===void 0?{}:I,H=t.popupAlign,G=t.zIndex,D=t.stretch,F=t.getPopupClassNameFromAlign,N=t.fresh,L=t.alignPoint,B=t.onPopupClick,X=t.onPopupAlign,W=t.arrow,q=t.popupMotion,j=t.maskMotion,V=t.popupTransitionName,U=t.popupAnimation,K=t.maskTransitionName,J=t.maskAnimation,ne=t.className,ce=t.getTriggerDOMNode,re=Ot(t,vw),de=R||T||!1,oe=M.useState(!1),se=ve(oe,2),Q=se[0],ee=se[1];st(function(){ee(ow())},[]);var ue=M.useRef({}),le=M.useContext(Jd),ae=M.useMemo(function(){return{registerSubPopup:function(Te,it){ue.current[Te]=it,le?.registerSubPopup(Te,it)}}},[le]),pe=Iv(),fe=M.useState(null),me=ve(fe,2),Oe=me[0],qe=me[1],Ce=M.useRef(null),Ke=At(function(be){Ce.current=be,oi(be)&&Oe!==be&&qe(be),le?.registerSubPopup(pe,be)}),ke=M.useState(null),Pe=ve(ke,2),Fe=Pe[0],Ne=Pe[1],we=M.useRef(null),Ve=At(function(be){oi(be)&&Fe!==be&&(Ne(be),we.current=be)}),xe=M.Children.only(a),Ee=xe?.props||{},at={},Nt=At(function(be){var Te,it,yt=Fe;return yt?.contains(be)||((Te=co(yt))===null||Te===void 0?void 0:Te.host)===be||be===yt||Oe?.contains(be)||((it=co(Oe))===null||it===void 0?void 0:it.host)===be||be===Oe||Object.values(ue.current).some(function(ct){return ct?.contains(be)||be===ct})}),zt=th(o,q,U,V),Tr=th(o,j,J,K),Jt=M.useState(u||!1),Ar=ve(Jt,2),Lt=Ar[0],Le=Ar[1],Xe=l??Lt,er=At(function(be){l===void 0&&Le(be)});st(function(){Le(l||!1)},[l]);var pt=M.useRef(Xe);pt.current=Xe;var $e=M.useRef([]);$e.current=[];var Be=At(function(be){var Te;er(be),((Te=$e.current[$e.current.length-1])!==null&&Te!==void 0?Te:Xe)!==be&&($e.current.push(be),h?.(be))}),ft=M.useRef(),Ht=function(){clearTimeout(ft.current)},Je=function(Te){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ht(),it===0?Be(Te):ft.current=setTimeout(function(){Be(Te)},it*1e3)};M.useEffect(function(){return Ht},[]);var Ue=M.useState(!1),tr=ve(Ue,2),Vt=tr[0],ze=tr[1];st(function(be){(!be||Xe)&&ze(!0)},[Xe]);var rt=M.useState(null),et=ve(rt,2),vt=et[0],Dt=et[1],mr=M.useState(null),jt=ve(mr,2),It=jt[0],ye=jt[1],Z=function(Te){ye([Te.clientX,Te.clientY])},he=dw(Xe,Oe,L&&It!==null?It:Fe,P,$,H,X),ge=ve(he,11),He=ge[0],dt=ge[1],nt=ge[2],lt=ge[3],Mt=ge[4],ur=ge[5],Rr=ge[6],ut=ge[7],cr=ge[8],fr=ge[9],On=ge[10],qr=lw(Q,c,d,f),Tn=ve(qr,2),Kr=Tn[0],rr=Tn[1],kr=Kr.has("click"),Pr=rr.has("click")||rr.has("contextMenu"),Nr=At(function(){Vt||On()}),An=function(){pt.current&&L&&Pr&&Je(!1)};hw(Xe,Fe,Oe,Nr,An),st(function(){Nr()},[It,P]),st(function(){Xe&&!($!=null&&$[P])&&Nr()},[JSON.stringify(H)]);var Lo=M.useMemo(function(){var be=fw($,o,fr,L);return _e(be,F?.(fr))},[fr,F,$,o,L]);M.useImperativeHandle(n,function(){return{nativeElement:we.current,popupElement:Ce.current,forceAlign:Nr}});var Ci=M.useState(0),Oi=ve(Ci,2),Ti=Oi[0],Do=Oi[1],Fo=M.useState(0),Ai=ve(Fo,2),$o=Ai[0],Bo=Ai[1],Ri=function(){if(D&&Fe){var Te=Fe.getBoundingClientRect();Do(Te.width),Bo(Te.height)}},qo=function(){Ri(),Nr()},zo=function(Te){ze(!1),On(),v?.(Te)},Ho=function(){return new Promise(function(Te){Ri(),Dt(function(){return Te})})};st(function(){vt&&(On(),vt(),Dt(null))},[vt]);function dr(be,Te,it,yt){at[be]=function(ct){var Pi;yt?.(ct),Je(Te,it);for(var Ko=arguments.length,Uu=new Array(Ko>1?Ko-1:0),Ni=1;Ni<Ko;Ni++)Uu[Ni-1]=arguments[Ni];(Pi=Ee[be])===null||Pi===void 0||Pi.call.apply(Pi,[Ee,ct].concat(Uu))}}(kr||Pr)&&(at.onClick=function(be){var Te;pt.current&&Pr?Je(!1):!pt.current&&kr&&(Z(be),Je(!0));for(var it=arguments.length,yt=new Array(it>1?it-1:0),ct=1;ct<it;ct++)yt[ct-1]=arguments[ct];(Te=Ee.onClick)===null||Te===void 0||Te.call.apply(Te,[Ee,be].concat(yt))});var Rn=pw(Xe,Pr,Fe,Oe,y,_,Nt,Je),Vo=Kr.has("hover"),Ut=rr.has("hover"),Yr,kn;Vo&&(dr("onMouseEnter",!0,b,function(be){Z(be)}),dr("onPointerEnter",!0,b,function(be){Z(be)}),Yr=function(Te){(Xe||Vt)&&Oe!==null&&Oe!==void 0&&Oe.contains(Te.target)&&Je(!0,b)},L&&(at.onMouseMove=function(be){var Te;(Te=Ee.onMouseMove)===null||Te===void 0||Te.call(Ee,be)})),Ut&&(dr("onMouseLeave",!1,m),dr("onPointerLeave",!1,m),kn=function(){Je(!1,m)}),Kr.has("focus")&&dr("onFocus",!0,g),rr.has("focus")&&dr("onBlur",!1,x),Kr.has("contextMenu")&&(at.onContextMenu=function(be){var Te;pt.current&&rr.has("contextMenu")?Je(!1):(Z(be),Je(!0)),be.preventDefault();for(var it=arguments.length,yt=new Array(it>1?it-1:0),ct=1;ct<it;ct++)yt[ct-1]=arguments[ct];(Te=Ee.onContextMenu)===null||Te===void 0||Te.call.apply(Te,[Ee,be].concat(yt))}),ne&&(at.className=_e(Ee.className,ne));var yr=M.useRef(!1);yr.current||(yr.current=E||Xe||Vt);var jr=ie(ie({},Ee),at),Pn={},ki=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ki.forEach(function(be){re[be]&&(Pn[be]=function(){for(var Te,it=arguments.length,yt=new Array(it),ct=0;ct<it;ct++)yt[ct]=arguments[ct];(Te=jr[be])===null||Te===void 0||Te.call.apply(Te,[jr].concat(yt)),re[be].apply(re,yt)})});var Uo=M.cloneElement(xe,ie(ie({},jr),Pn)),Wo={x:ur,y:Rr},Go=W?ie({},W!==!0?W:{}):null;return M.createElement(M.Fragment,null,M.createElement(Sn,{disabled:!Xe,ref:Ve,onResize:qo},M.createElement(Dv,{getTriggerDOMNode:ce},Uo)),yr.current&&M.createElement(Jd.Provider,{value:ae},M.createElement(Lv,{portal:e,ref:Ke,prefixCls:o,popup:C,className:_e(O,Lo),style:A,target:Fe,onMouseEnter:Yr,onMouseLeave:kn,onPointerEnter:Yr,zIndex:G,open:Xe,keepDom:Vt,fresh:N,onClick:B,onPointerDownCapture:Rn,mask:y,motion:zt,maskMotion:Tr,onVisibleChanged:zo,onPrepare:Ho,forceRender:E,autoDestroy:de,getPopupContainer:S,align:fr,arrow:Go,arrowPos:Wo,ready:He,offsetX:dt,offsetY:nt,offsetR:lt,offsetB:Mt,onAlign:Nr,stretch:D,targetWidth:Ti/ut,targetHeight:$o/cr})))});return process.env.NODE_ENV!=="production"&&(r.displayName="Trigger"),r}const mw=gw(Du);var Jr={shiftX:64,adjustY:1},en={adjustX:1,shiftY:!0},Gt=[0,0],yw={left:{points:["cr","cl"],overflow:en,offset:[-4,0],targetOffset:Gt},right:{points:["cl","cr"],overflow:en,offset:[4,0],targetOffset:Gt},top:{points:["bc","tc"],overflow:Jr,offset:[0,-4],targetOffset:Gt},bottom:{points:["tc","bc"],overflow:Jr,offset:[0,4],targetOffset:Gt},topLeft:{points:["bl","tl"],overflow:Jr,offset:[0,-4],targetOffset:Gt},leftTop:{points:["tr","tl"],overflow:en,offset:[-4,0],targetOffset:Gt},topRight:{points:["br","tr"],overflow:Jr,offset:[0,-4],targetOffset:Gt},rightTop:{points:["tl","tr"],overflow:en,offset:[4,0],targetOffset:Gt},bottomRight:{points:["tr","br"],overflow:Jr,offset:[0,4],targetOffset:Gt},rightBottom:{points:["bl","br"],overflow:en,offset:[4,0],targetOffset:Gt},bottomLeft:{points:["tl","bl"],overflow:Jr,offset:[0,4],targetOffset:Gt},leftBottom:{points:["br","bl"],overflow:en,offset:[-4,0],targetOffset:Gt}},bw=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],xw=function(r,t){var n=r.overlayClassName,i=r.trigger,o=i===void 0?["hover"]:i,a=r.mouseEnterDelay,s=a===void 0?0:a,c=r.mouseLeaveDelay,d=c===void 0?.1:c,f=r.overlayStyle,l=r.prefixCls,u=l===void 0?"rc-tooltip":l,h=r.children,v=r.onVisibleChange,b=r.afterVisibleChange,p=r.transitionName,m=r.animation,g=r.motion,x=r.placement,y=x===void 0?"right":x,w=r.align,_=w===void 0?{}:w,S=r.destroyTooltipOnHide,E=S===void 0?!1:S,R=r.defaultVisible,T=r.getTooltipContainer,C=r.overlayInnerStyle;r.arrowContent;var O=r.overlay,A=r.id,P=r.showArrow,I=P===void 0?!0:P,$=r.classNames,H=r.styles,G=Ot(r,bw),D=Iv(A),F=z.useRef(null);z.useImperativeHandle(t,function(){return F.current});var N=ie({},G);"visible"in r&&(N.popupVisible=r.visible);var L=function(){return M.createElement(Nv,{key:"content",prefixCls:u,id:D,bodyClassName:$?.body,overlayInnerStyle:ie(ie({},C),H?.body)},O)},B=function(){var W=M.Children.only(h),q=W?.props||{},j=ie(ie({},q),{},{"aria-describedby":O?D:null});return M.cloneElement(h,j)};return M.createElement(mw,tt({popupClassName:_e(n,$?.root),prefixCls:u,popup:L,action:o,builtinPlacements:yw,popupPlacement:y,ref:F,popupAlign:_,getPopupContainer:T,onPopupVisibleChange:v,afterPopupVisibleChange:b,popupTransitionName:p,popupAnimation:m,popupMotion:g,defaultPopupVisible:R,autoDestroy:E,mouseLeaveDelay:d,popupStyle:ie(ie({},f),H?.root),mouseEnterDelay:s,arrow:I},N),B())};const ww=z.forwardRef(xw);function Fv(e,r){this.v=e,this.k=r}function Ct(e,r,t,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}Ct=function(a,s,c,d){function f(l,u){Ct(a,l,function(h){return this._invoke(l,u,h)})}s?i?i(a,s,{value:c,enumerable:!d,configurable:!d,writable:!d}):a[s]=c:(f("next",0),f("throw",1),f("return",2))},Ct(e,r,t,n)}function Fu(){/*! 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:{},n=t.iterator||"@@iterator",i=t.toStringTag||"@@toStringTag";function o(h,v,b,p){var m=v&&v.prototype instanceof s?v:s,g=Object.create(m.prototype);return Ct(g,"_invoke",(function(x,y,w){var _,S,E,R=0,T=w||[],C=!1,O={p:0,n:0,v:e,a:A,f:A.bind(e,4),d:function(I,$){return _=I,S=0,E=e,O.n=$,a}};function A(P,I){for(S=P,E=I,r=0;!C&&R&&!$&&r<T.length;r++){var $,H=T[r],G=O.p,D=H[2];P>3?($=D===I)&&(E=H[(S=H[4])?5:(S=3,3)],H[4]=H[5]=e):H[0]<=G&&(($=P<2&&G<H[1])?(S=0,O.v=I,O.n=H[1]):G<D&&($=P<3||H[0]>I||I>D)&&(H[4]=P,H[5]=I,O.n=D,S=0))}if($||P>1)return a;throw C=!0,I}return function(P,I,$){if(R>1)throw TypeError("Generator is already running");for(C&&I===1&&A(I,$),S=I,E=$;(r=S<2?e:E)||!C;){_||(S?S<3?(S>1&&(O.n=-1),A(S,E)):O.n=E:O.v=E);try{if(R=2,_){if(S||(P="next"),r=_[P]){if(!(r=r.call(_,E)))throw TypeError("iterator result is not an object");if(!r.done)return r;E=r.value,S<2&&(S=0)}else S===1&&(r=_.return)&&r.call(_),S<2&&(E=TypeError("The iterator does not provide a '"+P+"' method"),S=1);_=e}else if((r=(C=O.n<0)?E:x.call(y,O))!==a)break}catch(H){_=e,S=1,E=H}finally{R=1}}return{value:r,done:C}}})(h,b,p),!0),g}var a={};function s(){}function c(){}function d(){}r=Object.getPrototypeOf;var f=[][n]?r(r([][n]())):(Ct(r={},n,function(){return this}),r),l=d.prototype=s.prototype=Object.create(f);function u(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,d):(h.__proto__=d,Ct(h,i,"GeneratorFunction")),h.prototype=Object.create(l),h}return c.prototype=d,Ct(l,"constructor",d),Ct(d,"constructor",c),c.displayName="GeneratorFunction",Ct(d,i,"GeneratorFunction"),Ct(l),Ct(l,i,"Generator"),Ct(l,n,function(){return this}),Ct(l,"toString",function(){return"[object Generator]"}),(Fu=function(){return{w:o,m:u}})()}function go(e,r){function t(i,o,a,s){try{var c=e[i](o),d=c.value;return d instanceof Fv?r.resolve(d.v).then(function(f){t("next",f,a,s)},function(f){t("throw",f,a,s)}):r.resolve(d).then(function(f){c.value=f,a(c)},function(f){return t("throw",f,a,s)})}catch(f){s(f)}}var n;this.next||(Ct(go.prototype),Ct(go.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Ct(this,"_invoke",function(i,o,a){function s(){return new r(function(c,d){t(i,a,c,d)})}return n=n?n.then(s,s):s()},!0)}function $v(e,r,t,n,i){return new go(Fu().w(e,r,t,n),i||Promise)}function Sw(e,r,t,n,i){var o=$v(e,r,t,n,i);return o.next().then(function(a){return a.done?a.value:o.next()})}function Ew(e){var r=Object(e),t=[];for(var n in r)t.unshift(n);return function i(){for(;t.length;)if((n=t.pop())in r)return i.value=n,i.done=!1,i;return i.done=!0,i}}function ah(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(Ae(e)+" is not iterable")}function Zt(){var e=Fu(),r=e.m(Zt),t=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function n(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===t||(s.displayName||s.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function o(a){var s,c;return function(d){s||(s={stop:function(){return c(d.a,2)},catch:function(){return d.v},abrupt:function(l,u){return c(d.a,i[l],u)},delegateYield:function(l,u,h){return s.resultName=u,c(d.d,ah(l),h)},finish:function(l){return c(d.f,l)}},c=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(Zt=function(){return{wrap:function(c,d,f,l){return e.w(o(c),d,f,l&&l.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(c,d){return new Fv(c,d)},AsyncIterator:go,async:function(c,d,f,l,u){return(n(d)?$v:Sw)(o(c),d,f,l,u)},keys:Ew,values:ah}})()}function sh(e,r,t,n,i,o,a){try{var s=e[o](a),c=s.value}catch(d){return void t(d)}s.done?r(c):Promise.resolve(c).then(n,i)}function wi(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var o=e.apply(r,t);function a(c){sh(o,n,i,a,s,"next",c)}function s(c){sh(o,n,i,a,s,"throw",c)}a(void 0)})}}var Vr="RC_FORM_INTERNAL_HOOKS",Ze=function(){ot(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},bn=M.createContext({getFieldValue:Ze,getFieldsValue:Ze,getFieldError:Ze,getFieldWarning:Ze,getFieldsError:Ze,isFieldsTouched:Ze,isFieldTouched:Ze,isFieldValidating:Ze,isFieldsValidating:Ze,resetFields:Ze,setFields:Ze,setFieldValue:Ze,setFieldsValue:Ze,validateFields:Ze,submit:Ze,getInternalHooks:function(){return Ze(),{dispatch:Ze,initEntityValue:Ze,registerField:Ze,useSubscribe:Ze,setInitialValues:Ze,destroyForm:Ze,setCallbacks:Ze,registerWatch:Ze,getFields:Ze,setValidateMessages:Ze,setPreserve:Ze,getInitialValue:Ze}}}),mo=M.createContext(null);function tu(e){return e==null?[]:Array.isArray(e)?e:[e]}function _w(e){return e&&!!e._init}function ru(){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 nu=ru();function Cw(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Ow(e,r,t){if(Tu())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,r);var i=new(e.bind.apply(e,n));return t&&ai(i,t.prototype),i}function iu(e){var r=typeof Map=="function"?new Map:void 0;return iu=function(n){if(n===null||!Cw(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return Ow(n,arguments,si(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ai(i,n)},iu(e)}var Tw=/%[sdj%]/g,Bv=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Bv=function(r,t){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&t.every(function(n){return typeof n=="string"})&&console.warn(r,t)});function ou(e){if(!e||!e.length)return null;var r={};return e.forEach(function(t){var n=t.field;r[n]=r[n]||[],r[n].push(t)}),r}function qt(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var i=0,o=t.length;if(typeof e=="function")return e.apply(null,t);if(typeof e=="string"){var a=e.replace(Tw,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function Aw(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function xt(e,r){return!!(e==null||r==="array"&&Array.isArray(e)&&!e.length||Aw(r)&&typeof e=="string"&&!e)}function Rw(e,r,t){var n=[],i=0,o=e.length;function a(s){n.push.apply(n,Se(s||[])),i++,i===o&&t(n)}e.forEach(function(s){r(s,a)})}function lh(e,r,t){var n=0,i=e.length;function o(a){if(a&&a.length){t(a);return}var s=n;n=n+1,s<i?r(e[s],o):t([])}o([])}function kw(e){var r=[];return Object.keys(e).forEach(function(t){r.push.apply(r,Se(e[t]||[]))}),r}var uh=(function(e){$r(t,e);var r=Br(t);function t(n,i){var o;return Et(this,t),o=r.call(this,"Async Validation Error"),te(je(o),"errors",void 0),te(je(o),"fields",void 0),o.errors=n,o.fields=i,o}return _t(t)})(iu(Error));function Pw(e,r,t,n,i){if(r.first){var o=new Promise(function(u,h){var v=function(m){return n(m),m.length?h(new uh(m,ou(m))):u(i)},b=kw(e);lh(b,t,v)});return o.catch(function(u){return u}),o}var a=r.firstFields===!0?Object.keys(e):r.firstFields||[],s=Object.keys(e),c=s.length,d=0,f=[],l=new Promise(function(u,h){var v=function(p){if(f.push.apply(f,p),d++,d===c)return n(f),f.length?h(new uh(f,ou(f))):u(i)};s.length||(n(f),u(i)),s.forEach(function(b){var p=e[b];a.indexOf(b)!==-1?lh(p,t,v):Rw(p,t,v)})});return l.catch(function(u){return u}),l}function Nw(e){return!!(e&&e.message!==void 0)}function jw(e,r){for(var t=e,n=0;n<r.length;n++){if(t==null)return t;t=t[r[n]]}return t}function ch(e,r){return function(t){var n;return e.fullFields?n=jw(r,e.fullFields):n=r[t.field||e.fullField],Nw(t)?(t.field=t.field||e.fullField,t.fieldValue=n,t):{message:typeof t=="function"?t():t,fieldValue:n,field:t.field||e.fullField}}}function fh(e,r){if(r){for(var t in r)if(r.hasOwnProperty(t)){var n=r[t];Ae(n)==="object"&&Ae(e[t])==="object"?e[t]=ie(ie({},e[t]),n):e[t]=n}}return e}var tn="enum",Iw=function(r,t,n,i,o){r[tn]=Array.isArray(r[tn])?r[tn]:[],r[tn].indexOf(t)===-1&&i.push(qt(o.messages[tn],r.fullField,r[tn].join(", ")))},Mw=function(r,t,n,i,o){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(t)||i.push(qt(o.messages.pattern.mismatch,r.fullField,t,r.pattern));else if(typeof r.pattern=="string"){var a=new RegExp(r.pattern);a.test(t)||i.push(qt(o.messages.pattern.mismatch,r.fullField,t,r.pattern))}}},Lw=function(r,t,n,i,o){var a=typeof r.len=="number",s=typeof r.min=="number",c=typeof r.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=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&&(f=t.length),h&&(f=t.replace(d,"_").length),a?f!==r.len&&i.push(qt(o.messages[l].len,r.fullField,r.len)):s&&!c&&f<r.min?i.push(qt(o.messages[l].min,r.fullField,r.min)):c&&!s&&f>r.max?i.push(qt(o.messages[l].max,r.fullField,r.max)):s&&c&&(f<r.min||f>r.max)&&i.push(qt(o.messages[l].range,r.fullField,r.min,r.max))},qv=function(r,t,n,i,o,a){r.required&&(!n.hasOwnProperty(r.field)||xt(t,a||r.type))&&i.push(qt(o.messages.required,r.fullField))},Vi;const Dw=(function(){if(Vi)return Vi;var e="[a-fA-F\\d:]",r=function(_){return _&&_.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}",n="[a-fA-F\\d]{1,4}",i=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(t,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(t,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(t,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(t,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(t,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(t,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(t,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),s=new RegExp("(?:^".concat(t,"$)|(?:^").concat(a,"$)")),c=new RegExp("^".concat(t,"$")),d=new RegExp("^".concat(a,"$")),f=function(_){return _&&_.exact?s:new RegExp("(?:".concat(r(_)).concat(t).concat(r(_),")|(?:").concat(r(_)).concat(a).concat(r(_),")"),"g")};f.v4=function(w){return w&&w.exact?c:new RegExp("".concat(r(w)).concat(t).concat(r(w)),"g")},f.v6=function(w){return w&&w.exact?d:new RegExp("".concat(r(w)).concat(a).concat(r(w)),"g")};var l="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",h=f.v4().source,v=f.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',y="(?:".concat(l,"|www\\.)").concat(u,"(?:localhost|").concat(h,"|").concat(v,"|").concat(b).concat(p).concat(m,")").concat(g).concat(x);return Vi=new RegExp("(?:^".concat(y,"$)"),"i"),Vi});var dh={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},Xn={integer:function(r){return Xn.number(r)&&parseInt(r,10)===r},float:function(r){return Xn.number(r)&&!Xn.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 Ae(r)==="object"&&!Xn.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(dh.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(Dw())},hex:function(r){return typeof r=="string"&&!!r.match(dh.hex)}},Fw=function(r,t,n,i,o){if(r.required&&t===void 0){qv(r,t,n,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=r.type;a.indexOf(s)>-1?Xn[s](t)||i.push(qt(o.messages.types[s],r.fullField,r.type)):s&&Ae(t)!==r.type&&i.push(qt(o.messages.types[s],r.fullField,r.type))},$w=function(r,t,n,i,o){(/^\s+$/.test(t)||t==="")&&i.push(qt(o.messages.whitespace,r.fullField))};const De={required:qv,whitespace:$w,type:Fw,range:Lw,enum:Iw,pattern:Mw};var Bw=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o)}n(a)},qw=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(t==null&&!r.required)return n();De.required(r,t,i,a,o,"array"),t!=null&&(De.type(r,t,i,a,o),De.range(r,t,i,a,o))}n(a)},zw=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&De.type(r,t,i,a,o)}n(a)},Hw=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t,"date")&&!r.required)return n();if(De.required(r,t,i,a,o),!xt(t,"date")){var c;t instanceof Date?c=t:c=new Date(t),De.type(r,c,i,a,o),c&&De.range(r,c.getTime(),i,a,o)}}n(a)},Vw="enum",Uw=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&De[Vw](r,t,i,a,o)}n(a)},Ww=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&(De.type(r,t,i,a,o),De.range(r,t,i,a,o))}n(a)},Gw=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&(De.type(r,t,i,a,o),De.range(r,t,i,a,o))}n(a)},Kw=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&De.type(r,t,i,a,o)}n(a)},Yw=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(t===""&&(t=void 0),xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&(De.type(r,t,i,a,o),De.range(r,t,i,a,o))}n(a)},Xw=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&De.type(r,t,i,a,o)}n(a)},Zw=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t,"string")&&!r.required)return n();De.required(r,t,i,a,o),xt(t,"string")||De.pattern(r,t,i,a,o)}n(a)},Qw=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),xt(t)||De.type(r,t,i,a,o)}n(a)},Jw=function(r,t,n,i,o){var a=[],s=Array.isArray(t)?"array":Ae(t);De.required(r,t,i,a,o,s),n(a)},e2=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t,"string")&&!r.required)return n();De.required(r,t,i,a,o,"string"),xt(t,"string")||(De.type(r,t,i,a,o),De.range(r,t,i,a,o),De.pattern(r,t,i,a,o),r.whitespace===!0&&De.whitespace(r,t,i,a,o))}n(a)},el=function(r,t,n,i,o){var a=r.type,s=[],c=r.required||!r.required&&i.hasOwnProperty(r.field);if(c){if(xt(t,a)&&!r.required)return n();De.required(r,t,i,s,o,a),xt(t,a)||De.type(r,t,i,s,o)}n(s)};const ti={string:e2,method:Kw,number:Yw,boolean:zw,regexp:Qw,integer:Gw,float:Ww,array:qw,object:Xw,enum:Uw,pattern:Zw,date:Hw,url:el,hex:el,email:el,required:Jw,any:Bw};var Si=(function(){function e(r){Et(this,e),te(this,"rules",null),te(this,"_messages",nu),this.define(r)}return _t(e,[{key:"define",value:function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(Ae(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(i){var o=t[i];n.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(t){return t&&(this._messages=fh(ru(),t)),this._messages}},{key:"validate",value:function(t){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,s=i,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function d(v){var b=[],p={};function m(x){if(Array.isArray(x)){var y;b=(y=b).concat.apply(y,Se(x))}else b.push(x)}for(var g=0;g<v.length;g++)m(v[g]);b.length?(p=ou(b),c(b,p)):c(null,a)}if(s.messages){var f=this.messages();f===nu&&(f=ru()),fh(f,s.messages),s.messages=f}else s.messages=this.messages();var l={},u=s.keys||Object.keys(this.rules);u.forEach(function(v){var b=n.rules[v],p=a[v];b.forEach(function(m){var g=m;typeof g.transform=="function"&&(a===t&&(a=ie({},a)),p=a[v]=g.transform(p),p!=null&&(g.type=g.type||(Array.isArray(p)?"array":Ae(p)))),typeof g=="function"?g={validator:g}:g=ie({},g),g.validator=n.getValidationMethod(g),g.validator&&(g.field=v,g.fullField=g.fullField||v,g.type=n.getType(g),l[v]=l[v]||[],l[v].push({rule:g,value:p,source:a,field:v}))})});var h={};return Pw(l,s,function(v,b){var p=v.rule,m=(p.type==="object"||p.type==="array")&&(Ae(p.fields)==="object"||Ae(p.defaultField)==="object");m=m&&(p.required||!p.required&&v.value),p.field=v.field;function g(S,E){return ie(ie({},E),{},{fullField:"".concat(p.fullField,".").concat(S),fullFields:p.fullFields?[].concat(Se(p.fullFields),[S]):[S]})}function x(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(S)?S:[S];!s.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&p.message!==void 0&&(E=[].concat(p.message));var R=E.map(ch(p,a));if(s.first&&R.length)return h[p.field]=1,b(R);if(!m)b(R);else{if(p.required&&!v.value)return p.message!==void 0?R=[].concat(p.message).map(ch(p,a)):s.error&&(R=[s.error(p,qt(s.messages.required,p.field))]),b(R);var T={};p.defaultField&&Object.keys(v.value).map(function(A){T[A]=p.defaultField}),T=ie(ie({},T),v.rule.fields);var C={};Object.keys(T).forEach(function(A){var P=T[A],I=Array.isArray(P)?P:[P];C[A]=I.map(g.bind(null,A))});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(A){var P=[];R&&R.length&&P.push.apply(P,Se(R)),A&&A.length&&P.push.apply(P,Se(A)),b(P.length?P:null)})}}var y;if(p.asyncValidator)y=p.asyncValidator(p,v.value,x,v.source,s);else if(p.validator){try{y=p.validator(p,v.value,x,v.source,s)}catch(S){var w,_;(w=(_=console).error)===null||w===void 0||w.call(_,S),s.suppressValidatorError||setTimeout(function(){throw S},0),x(S.message)}y===!0?x():y===!1?x(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):y instanceof Array?x(y):y instanceof Error&&x(y.message)}y&&y.then&&y.then(function(){return x()},function(S){return x(S)})},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&&!ti.hasOwnProperty(t.type))throw new Error(qt("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),i=n.indexOf("message");return i!==-1&&n.splice(i,1),n.length===1&&n[0]==="required"?ti.required:ti[this.getType(t)]||void 0}}]),e})();te(Si,"register",function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");ti[r]=t});te(Si,"warning",Bv);te(Si,"messages",nu);te(Si,"validators",ti);var $t="'${name}' is not a valid ${type}",zv={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:$t,method:$t,array:$t,object:$t,number:$t,date:$t,boolean:$t,integer:$t,float:$t,regexp:$t,email:$t,url:$t,hex:$t},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}"}},hh=Si;function t2(e,r){return e.replace(/\\?\$\{\w+\}/g,function(t){if(t.startsWith("\\"))return t.slice(1);var n=t.slice(2,-1);return r[n]})}var ph="CODE_LOGIC_ERROR";function au(e,r,t,n,i){return su.apply(this,arguments)}function su(){return su=wi(Zt().mark(function e(r,t,n,i,o){var a,s,c,d,f,l,u,h,v;return Zt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=ie({},n),delete a.ruleIndex,hh.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(ph)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),d=new hh(te({},r,[a])),f=nn(zv,i.validateMessages),d.messages(f),l=[],p.prev=10,p.next=13,Promise.resolve(d.validate(te({},r,t),ie({},i)));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(m,g){var x=m.message,y=x===ph?f.default:x;return M.isValidElement(y)?M.cloneElement(y,{key:"error_".concat(g)}):y}));case 18:if(!(!l.length&&c)){p.next=23;break}return p.next=21,Promise.all(t.map(function(m,g){return au("".concat(r,".").concat(g),m,c,i,o)}));case 21:return u=p.sent,p.abrupt("return",u.reduce(function(m,g){return[].concat(Se(m),Se(g))},[]));case 23:return h=ie(ie({},n),{},{name:r,enum:(n.enum||[]).join(", ")},o),v=l.map(function(m){return typeof m=="string"?t2(m,h):m}),p.abrupt("return",v);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),su.apply(this,arguments)}function r2(e,r,t,n,i,o){var a=e.join("."),s=t.map(function(f,l){var u=f.validator,h=ie(ie({},f),{},{ruleIndex:l});return u&&(h.validator=function(v,b,p){var m=!1,g=function(){for(var w=arguments.length,_=new Array(w),S=0;S<w;S++)_[S]=arguments[S];Promise.resolve().then(function(){ot(!m,"Your validator function has already return a promise. `callback` will be ignored."),m||p.apply(void 0,_)})},x=u(v,b,g);m=x&&typeof x.then=="function"&&typeof x.catch=="function",ot(m,"`callback` is deprecated. Please return a promise instead."),m&&x.then(function(){p()}).catch(function(y){p(y||" ")})}),h}).sort(function(f,l){var u=f.warningOnly,h=f.ruleIndex,v=l.warningOnly,b=l.ruleIndex;return!!u==!!v?h-b:u?1:-1}),c;if(i===!0)c=new Promise((function(){var f=wi(Zt().mark(function l(u,h){var v,b,p;return Zt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:v=0;case 1:if(!(v<s.length)){g.next=12;break}return b=s[v],g.next=5,au(a,r,b,n,o);case 5:if(p=g.sent,!p.length){g.next=9;break}return h([{errors:p,rule:b}]),g.abrupt("return");case 9:v+=1,g.next=1;break;case 12:u([]);case 13:case"end":return g.stop()}},l)}));return function(l,u){return f.apply(this,arguments)}})());else{var d=s.map(function(f){return au(a,r,f,n,o).then(function(l){return{errors:l,rule:f}})});c=(i?i2(d):n2(d)).then(function(f){return Promise.reject(f)})}return c.catch(function(f){return f}),c}function n2(e){return lu.apply(this,arguments)}function lu(){return lu=wi(Zt().mark(function e(r){return Zt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(r).then(function(i){var o,a=(o=[]).concat.apply(o,Se(i));return a}));case 1:case"end":return n.stop()}},e)})),lu.apply(this,arguments)}function i2(e){return uu.apply(this,arguments)}function uu(){return uu=wi(Zt().mark(function e(r){var t;return Zt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t=0,i.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 i.stop()}},e)})),uu.apply(this,arguments)}function ht(e){return tu(e)}function vh(e,r){var t={};return r.forEach(function(n){var i=pr(e,n);t=or(t,n,i)}),t}function ln(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Hv(r,n,t)})}function Hv(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(n,i){return e[i]===n})}function o2(e,r){if(e===r)return!0;if(!e&&r||e&&!r||!e||!r||Ae(e)!=="object"||Ae(r)!=="object")return!1;var t=Object.keys(e),n=Object.keys(r),i=new Set([].concat(t,n));return Se(i).every(function(o){var a=e[o],s=r[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function a2(e){var r=arguments.length<=1?void 0:arguments[1];return r&&r.target&&Ae(r.target)==="object"&&e in r.target?r.target[e]:r}function gh(e,r,t){var n=e.length;if(r<0||r>=n||t<0||t>=n)return e;var i=e[r],o=r-t;return o>0?[].concat(Se(e.slice(0,t)),[i],Se(e.slice(t,r)),Se(e.slice(r+1,n))):o<0?[].concat(Se(e.slice(0,r)),Se(e.slice(r+1,t+1)),[i],Se(e.slice(t+1,n))):e}var s2=["name"],Kt=[];function tl(e,r,t,n,i,o){return typeof e=="function"?e(r,t,"source"in o?{source:o.source}:{}):n!==i}var $u=(function(e){$r(t,e);var r=Br(t);function t(n){var i;if(Et(this,t),i=r.call(this,n),te(je(i),"state",{resetCount:0}),te(je(i),"cancelRegisterFunc",null),te(je(i),"mounted",!1),te(je(i),"touched",!1),te(je(i),"dirty",!1),te(je(i),"validatePromise",void 0),te(je(i),"prevValidating",void 0),te(je(i),"errors",Kt),te(je(i),"warnings",Kt),te(je(i),"cancelRegister",function(){var c=i.props,d=c.preserve,f=c.isListField,l=c.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(f,d,ht(l)),i.cancelRegisterFunc=null}),te(je(i),"getNamePath",function(){var c=i.props,d=c.name,f=c.fieldContext,l=f.prefixName,u=l===void 0?[]:l;return d!==void 0?[].concat(Se(u),Se(d)):[]}),te(je(i),"getRules",function(){var c=i.props,d=c.rules,f=d===void 0?[]:d,l=c.fieldContext;return f.map(function(u){return typeof u=="function"?u(l):u})}),te(je(i),"refresh",function(){i.mounted&&i.setState(function(c){var d=c.resetCount;return{resetCount:d+1}})}),te(je(i),"metaCache",null),te(je(i),"triggerMetaEvent",function(c){var d=i.props.onMetaChange;if(d){var f=ie(ie({},i.getMeta()),{},{destroy:c});Dl(i.metaCache,f)||d(f),i.metaCache=f}else i.metaCache=null}),te(je(i),"onStoreChange",function(c,d,f){var l=i.props,u=l.shouldUpdate,h=l.dependencies,v=h===void 0?[]:h,b=l.onReset,p=f.store,m=i.getNamePath(),g=i.getValue(c),x=i.getValue(p),y=d&&ln(d,m);switch(f.type==="valueUpdate"&&f.source==="external"&&!Dl(g,x)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Kt,i.warnings=Kt,i.triggerMetaEvent()),f.type){case"reset":if(!d||y){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Kt,i.warnings=Kt,i.triggerMetaEvent(),b?.(),i.refresh();return}break;case"remove":{if(u&&tl(u,c,p,g,x,f)){i.reRender();return}break}case"setField":{var w=f.data;if(y){"touched"in w&&(i.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(i.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(i.errors=w.errors||Kt),"warnings"in w&&(i.warnings=w.warnings||Kt),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in w&&ln(d,m,!0)){i.reRender();return}if(u&&!m.length&&tl(u,c,p,g,x,f)){i.reRender();return}break}case"dependenciesUpdate":{var _=v.map(ht);if(_.some(function(S){return ln(f.relatedFields,S)})){i.reRender();return}break}default:if(y||(!v.length||m.length||u)&&tl(u,c,p,g,x,f)){i.reRender();return}break}u===!0&&i.reRender()}),te(je(i),"validateRules",function(c){var d=i.getNamePath(),f=i.getValue(),l=c||{},u=l.triggerName,h=l.validateOnly,v=h===void 0?!1:h,b=Promise.resolve().then(wi(Zt().mark(function p(){var m,g,x,y,w,_,S;return Zt().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(i.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(m=i.props,g=m.validateFirst,x=g===void 0?!1:g,y=m.messageVariables,w=m.validateDebounce,_=i.getRules(),u&&(_=_.filter(function(T){return T}).filter(function(T){var C=T.validateTrigger;if(!C)return!0;var O=tu(C);return O.includes(u)})),!(w&&u)){R.next=10;break}return R.next=8,new Promise(function(T){setTimeout(T,w)});case 8:if(i.validatePromise===b){R.next=10;break}return R.abrupt("return",[]);case 10:return S=r2(d,f,_,c,x,y),S.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kt;if(i.validatePromise===b){var C;i.validatePromise=null;var O=[],A=[];(C=T.forEach)===null||C===void 0||C.call(T,function(P){var I=P.rule.warningOnly,$=P.errors,H=$===void 0?Kt:$;I?A.push.apply(A,Se(H)):O.push.apply(O,Se(H))}),i.errors=O,i.warnings=A,i.triggerMetaEvent(),i.reRender()}}),R.abrupt("return",S);case 13:case"end":return R.stop()}},p)})));return v||(i.validatePromise=b,i.dirty=!0,i.errors=Kt,i.warnings=Kt,i.triggerMetaEvent(),i.reRender()),b}),te(je(i),"isFieldValidating",function(){return!!i.validatePromise}),te(je(i),"isFieldTouched",function(){return i.touched}),te(je(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var c=i.props.fieldContext,d=c.getInternalHooks(Vr),f=d.getInitialValue;return f(i.getNamePath())!==void 0}),te(je(i),"getErrors",function(){return i.errors}),te(je(i),"getWarnings",function(){return i.warnings}),te(je(i),"isListField",function(){return i.props.isListField}),te(je(i),"isList",function(){return i.props.isList}),te(je(i),"isPreserve",function(){return i.props.preserve}),te(je(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var c={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return c}),te(je(i),"getOnlyChild",function(c){if(typeof c=="function"){var d=i.getMeta();return ie(ie({},i.getOnlyChild(c(i.getControlled(),d,i.props.fieldContext))),{},{isFunction:!0})}var f=fn(c);return f.length!==1||!M.isValidElement(f[0])?{child:f,isFunction:!1}:{child:f[0],isFunction:!1}}),te(je(i),"getValue",function(c){var d=i.props.fieldContext.getFieldsValue,f=i.getNamePath();return pr(c||d(!0),f)}),te(je(i),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=i.props,f=d.name,l=d.trigger,u=d.validateTrigger,h=d.getValueFromEvent,v=d.normalize,b=d.valuePropName,p=d.getValueProps,m=d.fieldContext,g=u!==void 0?u:m.validateTrigger,x=i.getNamePath(),y=m.getInternalHooks,w=m.getFieldsValue,_=y(Vr),S=_.dispatch,E=i.getValue(),R=p||function(P){return te({},b,P)},T=c[l],C=f!==void 0?R(E):{};process.env.NODE_ENV!=="production"&&C&&Object.keys(C).forEach(function(P){ot(typeof C[P]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(P,")"))});var O=ie(ie({},c),C);O[l]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var P,I=arguments.length,$=new Array(I),H=0;H<I;H++)$[H]=arguments[H];h?P=h.apply(void 0,$):P=a2.apply(void 0,[b].concat($)),v&&(P=v(P,E,w(!0))),P!==E&&S({type:"updateValue",namePath:x,value:P}),T&&T.apply(void 0,$)};var A=tu(g||[]);return A.forEach(function(P){var I=O[P];O[P]=function(){I&&I.apply(void 0,arguments);var $=i.props.rules;$&&$.length&&S({type:"validateField",namePath:x,triggerName:P})}}),O}),n.fieldContext){var o=n.fieldContext.getInternalHooks,a=o(Vr),s=a.initEntityValue;s(je(i))}return i}return _t(t,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,c=s(Vr),d=c.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 i=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,c=a.isFunction,d;return c?d=s:M.isValidElement(s)?d=M.cloneElement(s,this.getControlled(s.props)):(ot(!s,"`children` of Field is not validate ReactElement."),d=s),M.createElement(M.Fragment,{key:i},d)}}]),t})(M.Component);te($u,"contextType",bn);te($u,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Vv(e){var r,t=e.name,n=Ot(e,s2),i=M.useContext(bn),o=M.useContext(mo),a=t!==void 0?ht(t):void 0,s=(r=n.isListField)!==null&&r!==void 0?r:!!o,c="keep";return s||(c="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&s&&a.length<=1&&ot(!1,"`preserve` should not apply on Form.List fields."),M.createElement($u,tt({key:c,name:a,isListField:s},n,{fieldContext:i}))}function l2(e){var r=e.name,t=e.initialValue,n=e.children,i=e.rules,o=e.validateTrigger,a=e.isListField,s=M.useContext(bn),c=M.useContext(mo),d=M.useRef({keys:[],id:0}),f=d.current,l=M.useMemo(function(){var b=ht(s.prefixName)||[];return[].concat(Se(b),Se(ht(r)))},[s.prefixName,r]),u=M.useMemo(function(){return ie(ie({},s),{},{prefixName:l})},[s,l]),h=M.useMemo(function(){return{getKey:function(p){var m=l.length,g=p[m];return[f.keys[g],p.slice(m+1)]}}},[l]);if(typeof n!="function")return ot(!1,"Form.List only accepts function as children."),null;var v=function(p,m,g){var x=g.source;return x==="internal"?!1:p!==m};return M.createElement(mo.Provider,{value:h},M.createElement(bn.Provider,{value:u},M.createElement(Vv,{name:[],shouldUpdate:v,rules:i,validateTrigger:o,initialValue:t,isList:!0,isListField:a??!!c},function(b,p){var m=b.value,g=m===void 0?[]:m,x=b.onChange,y=s.getFieldValue,w=function(){var R=y(l||[]);return R||[]},_={add:function(R,T){var C=w();T>=0&&T<=C.length?(f.keys=[].concat(Se(f.keys.slice(0,T)),[f.id],Se(f.keys.slice(T))),x([].concat(Se(C.slice(0,T)),[R],Se(C.slice(T))))):(process.env.NODE_ENV!=="production"&&(T<0||T>C.length)&&ot(!1,"The second parameter of the add function should be a valid positive number."),f.keys=[].concat(Se(f.keys),[f.id]),x([].concat(Se(C),[R]))),f.id+=1},remove:function(R){var T=w(),C=new Set(Array.isArray(R)?R:[R]);C.size<=0||(f.keys=f.keys.filter(function(O,A){return!C.has(A)}),x(T.filter(function(O,A){return!C.has(A)})))},move:function(R,T){if(R!==T){var C=w();R<0||R>=C.length||T<0||T>=C.length||(f.keys=gh(f.keys,R,T),x(gh(C,R,T)))}}},S=g||[];return Array.isArray(S)||(S=[],process.env.NODE_ENV!=="production"&&ot(!1,"Current value of '".concat(l.join(" > "),"' is not an array type."))),n(S.map(function(E,R){var T=f.keys[R];return T===void 0&&(f.keys[R]=f.id,T=f.keys[R],f.id+=1),{name:R,key:T,isListField:!0}}),_,p)})))}function u2(e){var r=!1,t=e.length,n=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(c){return r=!0,c}).then(function(c){t-=1,n[s]=c,!(t>0)&&(r&&o(n),i(n))})})}):Promise.resolve([])}var Uv="__@field_split__";function rl(e){return e.map(function(r){return"".concat(Ae(r),":").concat(r)}).join(Uv)}var rn=(function(){function e(){Et(this,e),te(this,"kvs",new Map)}return _t(e,[{key:"set",value:function(t,n){this.kvs.set(rl(t),n)}},{key:"get",value:function(t){return this.kvs.get(rl(t))}},{key:"update",value:function(t,n){var i=this.get(t),o=n(i);o?this.set(t,o):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(rl(t))}},{key:"map",value:function(t){return Se(this.kvs.entries()).map(function(n){var i=ve(n,2),o=i[0],a=i[1],s=o.split(Uv);return t({key:s.map(function(c){var d=c.match(/^([^:]*):(.*)$/),f=ve(d,3),l=f[1],u=f[2];return l==="number"?Number(u):u}),value:a})})}},{key:"toJSON",value:function(){var t={};return this.map(function(n){var i=n.key,o=n.value;return t[i.join(".")]=o,null}),t}}]),e})(),c2=["name"],f2=_t(function e(r){var t=this;Et(this,e),te(this,"formHooked",!1),te(this,"forceRootUpdate",void 0),te(this,"subscribable",!0),te(this,"store",{}),te(this,"fieldEntities",[]),te(this,"initialValues",{}),te(this,"callbacks",{}),te(this,"validateMessages",null),te(this,"preserve",null),te(this,"lastValidatePromise",null),te(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}}),te(this,"getInternalHooks",function(n){return n===Vr?(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}):(ot(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),te(this,"useSubscribe",function(n){t.subscribable=n}),te(this,"prevWithoutPreserves",null),te(this,"setInitialValues",function(n,i){if(t.initialValues=n||{},i){var o,a=nn(n,t.store);(o=t.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;a=or(a,c,pr(n,c))}),t.prevWithoutPreserves=null,t.updateStore(a)}}),te(this,"destroyForm",function(n){if(n)t.updateStore({});else{var i=new rn;t.getFieldEntities(!0).forEach(function(o){t.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),t.prevWithoutPreserves=i}}),te(this,"getInitialValue",function(n){var i=pr(t.initialValues,n);return n.length?nn(i):i}),te(this,"setCallbacks",function(n){t.callbacks=n}),te(this,"setValidateMessages",function(n){t.validateMessages=n}),te(this,"setPreserve",function(n){t.preserve=n}),te(this,"watchList",[]),te(this,"registerWatch",function(n){return t.watchList.push(n),function(){t.watchList=t.watchList.filter(function(i){return i!==n})}}),te(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var i=t.getFieldsValue(),o=t.getFieldsValue(!0);t.watchList.forEach(function(a){a(i,o,n)})}}),te(this,"timeoutId",null),te(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!t.timeoutId&&typeof window<"u"&&(t.timeoutId=setTimeout(function(){t.timeoutId=null,t.formHooked||ot(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),te(this,"updateStore",function(n){t.store=n}),te(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?t.fieldEntities.filter(function(i){return i.getNamePath().length}):t.fieldEntities}),te(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new rn;return t.getFieldEntities(n).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),te(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return t.getFieldEntities(!0);var i=t.getFieldsMap(!0);return n.map(function(o){var a=ht(o);return i.get(a)||{INVALIDATE_NAME_PATH:ht(o)}})}),te(this,"getFieldsValue",function(n,i){t.warningUnhooked();var o,a,s;if(n===!0||Array.isArray(n)?(o=n,a=i):n&&Ae(n)==="object"&&(s=n.strict,a=n.filter),o===!0&&!a)return t.store;var c=t.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),d=[];return c.forEach(function(f){var l,u,h="INVALIDATE_NAME_PATH"in f?f.INVALIDATE_NAME_PATH:f.getNamePath();if(s){var v,b;if((v=(b=f).isList)!==null&&v!==void 0&&v.call(b))return}else if(!o&&(l=(u=f).isListField)!==null&&l!==void 0&&l.call(u))return;if(!a)d.push(h);else{var p="getMeta"in f?f.getMeta():null;a(p)&&d.push(h)}}),vh(t.store,d.map(ht))}),te(this,"getFieldValue",function(n){t.warningUnhooked();var i=ht(n);return pr(t.store,i)}),te(this,"getFieldsError",function(n){t.warningUnhooked();var i=t.getFieldEntitiesForNamePathList(n);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:ht(n[a]),errors:[],warnings:[]}})}),te(this,"getFieldError",function(n){t.warningUnhooked();var i=ht(n),o=t.getFieldsError([i])[0];return o.errors}),te(this,"getFieldWarning",function(n){t.warningUnhooked();var i=ht(n),o=t.getFieldsError([i])[0];return o.warnings}),te(this,"isFieldsTouched",function(){t.warningUnhooked();for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i[0],s=i[1],c,d=!1;i.length===0?c=null:i.length===1?Array.isArray(a)?(c=a.map(ht),d=!1):(c=null,d=a):(c=a.map(ht),d=s);var f=t.getFieldEntities(!0),l=function(p){return p.isFieldTouched()};if(!c)return d?f.every(function(b){return l(b)||b.isList()}):f.some(l);var u=new rn;c.forEach(function(b){u.set(b,[])}),f.forEach(function(b){var p=b.getNamePath();c.forEach(function(m){m.every(function(g,x){return p[x]===g})&&u.update(m,function(g){return[].concat(Se(g),[b])})})});var h=function(p){return p.some(l)},v=u.map(function(b){var p=b.value;return p});return d?v.every(h):v.some(h)}),te(this,"isFieldTouched",function(n){return t.warningUnhooked(),t.isFieldsTouched([n])}),te(this,"isFieldsValidating",function(n){t.warningUnhooked();var i=t.getFieldEntities();if(!n)return i.some(function(a){return a.isFieldValidating()});var o=n.map(ht);return i.some(function(a){var s=a.getNamePath();return ln(o,s)&&a.isFieldValidating()})}),te(this,"isFieldValidating",function(n){return t.warningUnhooked(),t.isFieldsValidating([n])}),te(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new rn,o=t.getFieldEntities(!0);o.forEach(function(c){var d=c.props.initialValue,f=c.getNamePath();if(d!==void 0){var l=i.get(f)||new Set;l.add({entity:c,value:d}),i.set(f,l)}});var a=function(d){d.forEach(function(f){var l=f.props.initialValue;if(l!==void 0){var u=f.getNamePath(),h=t.getInitialValue(u);if(h!==void 0)ot(!1,"Form already set 'initialValues' with path '".concat(u.join("."),"'. Field can not overwrite it."));else{var v=i.get(u);if(v&&v.size>1)ot(!1,"Multiple Field with path '".concat(u.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var b=t.getFieldValue(u),p=f.isListField();!p&&(!n.skipExist||b===void 0)&&t.updateStore(or(t.store,u,Se(v)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(c){var d=i.get(c);if(d){var f;(f=s).push.apply(f,Se(Se(d).map(function(l){return l.entity})))}})):s=o,a(s)}),te(this,"resetFields",function(n){t.warningUnhooked();var i=t.store;if(!n){t.updateStore(nn(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(i,null,{type:"reset"}),t.notifyWatch();return}var o=n.map(ht);o.forEach(function(a){var s=t.getInitialValue(a);t.updateStore(or(t.store,a,s))}),t.resetWithFieldInitialValue({namePathList:o}),t.notifyObservers(i,o,{type:"reset"}),t.notifyWatch(o)}),te(this,"setFields",function(n){t.warningUnhooked();var i=t.store,o=[];n.forEach(function(a){var s=a.name,c=Ot(a,c2),d=ht(s);o.push(d),"value"in c&&t.updateStore(or(t.store,d,c.value)),t.notifyObservers(i,[d],{type:"setField",data:a})}),t.notifyWatch(o)}),te(this,"getFields",function(){var n=t.getFieldEntities(!0),i=n.map(function(o){var a=o.getNamePath(),s=o.getMeta(),c=ie(ie({},s),{},{name:a,value:t.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return i}),te(this,"initEntityValue",function(n){var i=n.props.initialValue;if(i!==void 0){var o=n.getNamePath(),a=pr(t.store,o);a===void 0&&t.updateStore(or(t.store,o,i))}}),te(this,"isMergedPreserve",function(n){var i=n!==void 0?n:t.preserve;return i??!0}),te(this,"registerField",function(n){t.fieldEntities.push(n);var i=n.getNamePath();if(t.notifyWatch([i]),n.props.initialValue!==void 0){var o=t.store;t.resetWithFieldInitialValue({entities:[n],skipExist:!0}),t.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(l){return l!==n}),!t.isMergedPreserve(s)&&(!a||c.length>1)){var d=a?void 0:t.getInitialValue(i);if(i.length&&t.getFieldValue(i)!==d&&t.fieldEntities.every(function(l){return!Hv(l.getNamePath(),i)})){var f=t.store;t.updateStore(or(f,i,d,!0)),t.notifyObservers(f,[i],{type:"remove"}),t.triggerDependenciesUpdate(f,i)}}t.notifyWatch([i])}}),te(this,"dispatch",function(n){switch(n.type){case"updateValue":{var i=n.namePath,o=n.value;t.updateValue(i,o);break}case"validateField":{var a=n.namePath,s=n.triggerName;t.validateFields([a],{triggerName:s});break}}}),te(this,"notifyObservers",function(n,i,o){if(t.subscribable){var a=ie(ie({},o),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(n,i,a)})}else t.forceRootUpdate()}),te(this,"triggerDependenciesUpdate",function(n,i){var o=t.getDependencyChildrenFields(i);return o.length&&t.validateFields(o),t.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[i].concat(Se(o))}),o}),te(this,"updateValue",function(n,i){var o=ht(n),a=t.store;t.updateStore(or(t.store,o,i)),t.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),t.notifyWatch([o]);var s=t.triggerDependenciesUpdate(a,o),c=t.callbacks.onValuesChange;if(c){var d=vh(t.store,[o]);c(d,t.getFieldsValue())}t.triggerOnFieldsChange([o].concat(Se(s)))}),te(this,"setFieldsValue",function(n){t.warningUnhooked();var i=t.store;if(n){var o=nn(t.store,n);t.updateStore(o)}t.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),te(this,"setFieldValue",function(n,i){t.setFields([{name:n,value:i,errors:[],warnings:[]}])}),te(this,"getDependencyChildrenFields",function(n){var i=new Set,o=[],a=new rn;t.getFieldEntities().forEach(function(c){var d=c.props.dependencies;(d||[]).forEach(function(f){var l=ht(f);a.update(l,function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return u.add(c),u})})});var s=function c(d){var f=a.get(d)||new Set;f.forEach(function(l){if(!i.has(l)){i.add(l);var u=l.getNamePath();l.isFieldDirty()&&u.length&&(o.push(u),c(u))}})};return s(n),o}),te(this,"triggerOnFieldsChange",function(n,i){var o=t.callbacks.onFieldsChange;if(o){var a=t.getFields();if(i){var s=new rn;i.forEach(function(d){var f=d.name,l=d.errors;s.set(f,l)}),a.forEach(function(d){d.errors=s.get(d.name)||d.errors})}var c=a.filter(function(d){var f=d.name;return ln(n,f)});c.length&&o(c,a)}}),te(this,"validateFields",function(n,i){t.warningUnhooked();var o,a;Array.isArray(n)||typeof n=="string"||typeof i=="string"?(o=n,a=i):a=n;var s=!!o,c=s?o.map(ht):[],d=[],f=String(Date.now()),l=new Set,u=a||{},h=u.recursive,v=u.dirty;t.getFieldEntities(!0).forEach(function(g){if(s||c.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(v&&!g.isFieldDirty())){var x=g.getNamePath();if(l.add(x.join(f)),!s||ln(c,x,h)){var y=g.validateRules(ie({validateMessages:ie(ie({},zv),t.validateMessages)},a));d.push(y.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(w){var _,S=[],E=[];return(_=w.forEach)===null||_===void 0||_.call(w,function(R){var T=R.rule.warningOnly,C=R.errors;T?E.push.apply(E,Se(C)):S.push.apply(S,Se(C))}),S.length?Promise.reject({name:x,errors:S,warnings:E}):{name:x,errors:S,warnings:E}}))}}});var b=u2(d);t.lastValidatePromise=b,b.catch(function(g){return g}).then(function(g){var x=g.map(function(y){var w=y.name;return w});t.notifyObservers(t.store,x,{type:"validateFinish"}),t.triggerOnFieldsChange(x,g)});var p=b.then(function(){return t.lastValidatePromise===b?Promise.resolve(t.getFieldsValue(c)):Promise.reject([])}).catch(function(g){var x=g.filter(function(y){return y&&y.errors.length});return Promise.reject({values:t.getFieldsValue(c),errorFields:x,outOfDate:t.lastValidatePromise!==b})});p.catch(function(g){return g});var m=c.filter(function(g){return l.has(g.join(f))});return t.triggerOnFieldsChange(m),p}),te(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(n){var i=t.callbacks.onFinish;if(i)try{i(n)}catch(o){console.error(o)}}).catch(function(n){var i=t.callbacks.onFinishFailed;i&&i(n)})}),this.forceRootUpdate=r});function Wv(e){var r=M.useRef(),t=M.useState({}),n=ve(t,2),i=n[1];if(!r.current)if(e)r.current=e;else{var o=function(){i({})},a=new f2(o);r.current=a.getForm()}return[r.current]}var cu=M.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),d2=function(r){var t=r.validateMessages,n=r.onFormChange,i=r.onFormFinish,o=r.children,a=M.useContext(cu),s=M.useRef({});return M.createElement(cu.Provider,{value:ie(ie({},a),{},{validateMessages:ie(ie({},a.validateMessages),t),triggerFormChange:function(d,f){n&&n(d,{changedFields:f,forms:s.current}),a.triggerFormChange(d,f)},triggerFormFinish:function(d,f){i&&i(d,{values:f,forms:s.current}),a.triggerFormFinish(d,f)},registerForm:function(d,f){d&&(s.current=ie(ie({},s.current),{},te({},d,f))),a.registerForm(d,f)},unregisterForm:function(d){var f=ie({},s.current);delete f[d],s.current=f,a.unregisterForm(d)}})},o)},h2=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],p2=function(r,t){var n=r.name,i=r.initialValues,o=r.fields,a=r.form,s=r.preserve,c=r.children,d=r.component,f=d===void 0?"form":d,l=r.validateMessages,u=r.validateTrigger,h=u===void 0?"onChange":u,v=r.onValuesChange,b=r.onFieldsChange,p=r.onFinish,m=r.onFinishFailed,g=r.clearOnDestroy,x=Ot(r,h2),y=M.useRef(null),w=M.useContext(cu),_=Wv(a),S=ve(_,1),E=S[0],R=E.getInternalHooks(Vr),T=R.useSubscribe,C=R.setInitialValues,O=R.setCallbacks,A=R.setValidateMessages,P=R.setPreserve,I=R.destroyForm;M.useImperativeHandle(t,function(){return ie(ie({},E),{},{nativeElement:y.current})}),M.useEffect(function(){return w.registerForm(n,E),function(){w.unregisterForm(n)}},[w,E,n]),A(ie(ie({},w.validateMessages),l)),O({onValuesChange:v,onFieldsChange:function(X){if(w.triggerFormChange(n,X),b){for(var W=arguments.length,q=new Array(W>1?W-1:0),j=1;j<W;j++)q[j-1]=arguments[j];b.apply(void 0,[X].concat(q))}},onFinish:function(X){w.triggerFormFinish(n,X),p&&p(X)},onFinishFailed:m}),P(s);var $=M.useRef(null);C(i,!$.current),$.current||($.current=!0),M.useEffect(function(){return function(){return I(g)}},[]);var H,G=typeof c=="function";if(G){var D=E.getFieldsValue(!0);H=c(D,E)}else H=c;T(!G);var F=M.useRef();M.useEffect(function(){o2(F.current||[],o||[])||E.setFields(o||[]),F.current=o},[o,E]);var N=M.useMemo(function(){return ie(ie({},E),{},{validateTrigger:h})},[E,h]),L=M.createElement(mo.Provider,{value:null},M.createElement(bn.Provider,{value:N},H));return f===!1?L:M.createElement(f,tt({},x,{ref:y,onSubmit:function(X){X.preventDefault(),X.stopPropagation(),E.submit()},onReset:function(X){var W;X.preventDefault(),E.resetFields(),(W=x.onReset)===null||W===void 0||W.call(x,X)}}),L)};function mh(e){try{return JSON.stringify(e)}catch{return Math.random()}}var v2=process.env.NODE_ENV!=="production"?function(e){var r=e.join("__RC_FIELD_FORM_SPLIT__"),t=z.useRef(r);ot(t.current===r,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function g2(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=r[0],i=r[1],o=i===void 0?{}:i,a=_w(o)?{form:o}:o,s=a.form,c=z.useState(),d=ve(c,2),f=d[0],l=d[1],u=z.useMemo(function(){return mh(f)},[f]),h=z.useRef(u);h.current=u;var v=z.useContext(bn),b=s||v,p=b&&b._init;process.env.NODE_ENV!=="production"&&ot(r.length===2?s?p:!0:p,"useWatch requires a form instance since it can not auto detect from context.");var m=ht(n),g=z.useRef(m);return g.current=m,v2(m),z.useEffect(function(){if(p){var x=b.getFieldsValue,y=b.getInternalHooks,w=y(Vr),_=w.registerWatch,S=function(C,O){var A=a.preserve?O:C;return typeof n=="function"?n(A):pr(A,g.current)},E=_(function(T,C){var O=S(T,C),A=mh(O);h.current!==A&&(h.current=A,l(O))}),R=S(x(),x(!0));return f!==R&&l(R),E}},[p]),f}var m2=M.forwardRef(p2),Ei=m2;Ei.FormProvider=d2;Ei.Field=Vv;Ei.List=l2;Ei.useForm=Wv;Ei.useWatch=g2;const pi=M.createContext({});process.env.NODE_ENV!=="production"&&(pi.displayName="FormItemInputContext");const y2=({children:e,status:r,override:t})=>{const n=M.useContext(pi),i=M.useMemo(()=>{const o=Object.assign({},n);return t&&delete o.isFormItemInput,r&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[r,t,n]);return M.createElement(pi.Provider,{value:i},e)},b2=M.createContext(void 0),Gv=e=>{const r=z.useContext(mn);return z.useMemo(()=>e?typeof e=="string"?e??r:typeof e=="function"?e(r):r:r,[e,r])},Kv=M.createContext(null),Yv=(e,r)=>{const t=M.useContext(Kv),n=M.useMemo(()=>{if(!t)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=t,s=i==="vertical"?"-vertical-":"-";return _e(`${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:n}},x2=e=>{const{children:r}=e;return M.createElement(Kv.Provider,{value:null},r)},fu=e=>{const{space:r,form:t,children:n}=e;if(n==null)return null;let i=n;return t&&(i=z.createElement(y2,{override:!0,status:!0},i)),r&&(i=z.createElement(x2,null,i)),i},Bu=z.createContext(void 0);process.env.NODE_ENV!=="production"&&(Bu.displayName="zIndexContext");const wr=100,w2=10,S2=wr*w2,E2=S2+wr,Xv={Modal:wr,Drawer:wr,Popover:wr,Popconfirm:wr,Tooltip:wr,Tour:wr,FloatButton:wr},_2={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function C2(e){return e in Xv}const O2=(e,r)=>{const[,t]=_n(),n=z.useContext(Bu),i=C2(e);let o;if(r!==void 0)o=[r,r];else{let a=n??0;i?a+=(n?0:t.zIndexPopupBase)+Xv[e]:a+=_2[e],o=[n===void 0?r:a,a]}if(process.env.NODE_ENV!=="production"){const a=vr(e),s=t.zIndexPopupBase+E2,c=o[0]||0;process.env.NODE_ENV!=="production"&&a(r!==void 0||c<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o},T2=(e,r,t)=>t!==void 0?t:`${e}-${r}`;function A2(e){const{sizePopupArrow:r,borderRadiusXS:t,borderRadiusOuter:n}=e,i=r/2,o=0,a=i,s=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),d=i-t*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),l=2*i-d,u=f,h=2*i-s,v=c,b=2*i-o,p=a,m=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),g=n*(Math.sqrt(2)-1),x=`polygon(${g}px 100%, 50% ${g}px, ${2*i-g}px 100%, ${g}px 100%)`,y=`path('M ${o} ${a} A ${n} ${n} 0 0 0 ${s} ${c} L ${d} ${f} A ${t} ${t} 0 0 1 ${l} ${u} L ${h} ${v} A ${n} ${n} 0 0 0 ${b} ${p} Z')`;return{arrowShadowWidth:m,arrowPath:y,arrowPolygon:x}}const R2=(e,r,t)=>{const{sizePopupArrow:n,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:r,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ye(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}},Zv=8;function Qv(e){const{contentRadius:r,limitVerticalRadius:t}=e,n=r>12?r+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:t?Zv:n}}function Ui(e,r){return e?r:{}}function k2(e,r,t){const{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},R2(e,r,i)),{"&:before":{background:r}})]},Ui(!!c.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ye(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ui(!!c.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ye(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ui(!!c.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),Ui(!!c.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function P2(e,r,t,n){if(n===!1)return{adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},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),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const yh={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"]}},N2={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"]}},j2=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function I2(e){const{arrowWidth:r,autoAdjustOverflow:t,arrowPointAtCenter:n,offset:i,borderRadius:o}=e,a=r/2,s={},c=Qv({contentRadius:o,limitVerticalRadius:!0});return Object.keys(yh).forEach(d=>{const f=n&&N2[d]||yh[d],l=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(s[d]=l,j2.has(d)&&(l.autoArrow=!1),d){case"top":case"topLeft":case"topRight":l.offset[1]=-a-i;break;case"bottom":case"bottomLeft":case"bottomRight":l.offset[1]=a+i;break;case"left":case"leftTop":case"leftBottom":l.offset[0]=-a-i;break;case"right":case"rightTop":case"rightBottom":l.offset[0]=a+i;break}if(n)switch(d){case"topLeft":case"bottomLeft":l.offset[0]=-c.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":l.offset[0]=c.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":l.offset[1]=-c.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":l.offset[1]=c.arrowOffsetHorizontal*2-a;break}l.overflow=P2(d,c,r,t),l.htmlRegion="visibleFirst"}),s}function M2(e){return e&&z.isValidElement(e)&&e.type===z.Fragment}const L2=(e,r,t)=>z.isValidElement(e)?z.cloneElement(e,typeof t=="function"?t(e.props||{}):t):r;function Jv(e,r){return L2(e,e,r)}const D2=e=>({animationDuration:e,animationFillMode:"both"}),F2=e=>({animationDuration:e,animationFillMode:"both"}),$2=(e,r,t,n,i=!1)=>{const o=i?"&":"";return{[`
|
|
183
|
-
${o}${e}-enter,
|
|
184
|
-
${o}${e}-appear
|
|
185
|
-
`]:Object.assign(Object.assign({},D2(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},F2(n)),{animationPlayState:"paused"}),[`
|
|
186
|
-
${o}${e}-enter${e}-enter-active,
|
|
187
|
-
${o}${e}-appear${e}-appear-active
|
|
188
|
-
`]:{animationName:r,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}},B2=new Qt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),q2=new Qt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),bh=new Qt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xh=new Qt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),z2=new Qt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),H2=new Qt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),V2=new Qt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),U2=new Qt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),W2=new Qt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),G2=new Qt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),K2=new Qt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Y2=new Qt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),X2={zoom:{inKeyframes:B2,outKeyframes:q2},"zoom-big":{inKeyframes:bh,outKeyframes:xh},"zoom-big-fast":{inKeyframes:bh,outKeyframes:xh},"zoom-left":{inKeyframes:V2,outKeyframes:U2},"zoom-right":{inKeyframes:W2,outKeyframes:G2},"zoom-up":{inKeyframes:z2,outKeyframes:H2},"zoom-down":{inKeyframes:K2,outKeyframes:Y2}},Z2=(e,r)=>{const{antCls:t}=e,n=`${t}-${r}`,{inKeyframes:i,outKeyframes:o}=X2[r];return[$2(n,i,o,e.motionDurationFast),{[`
|
|
189
|
-
${n}-enter,
|
|
190
|
-
${n}-appear
|
|
191
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Q2=e=>{const{calc:r,componentCls:t,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:c,boxShadowSecondary:d,paddingSM:f,paddingXS:l,arrowOffsetHorizontal:u,sizePopupArrow:h}=e,v=r(a).add(h).add(u).equal(),b=r(a).mul(2).add(h).equal();return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Iu(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:b,minHeight:c,padding:`${Ye(e.calc(f).div(2).equal())} ${Ye(l)}`,color:`var(--ant-tooltip-color, ${i})`,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,Zv)}},[`${t}-content`]:{position:"relative"}}),vx(e,(p,{darkColor:m})=>({[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}))),{"&-rtl":{direction:"rtl"}})},k2(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},J2=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Qv({contentRadius:e.borderRadius,limitVerticalRadius:!0})),A2(Or(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),eg=(e,r=!0)=>bi("Tooltip",n=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=n,s=Or(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[Q2(s),Z2(n,"zoom-big-fast")]},J2,{resetStyle:!1,injectStyle:r})(e),eS=vo.map(e=>`${e}-inverse`);function tS(e,r=!0){return r?[].concat(Se(eS),Se(vo)).includes(e):vo.includes(e)}const St=Math.round;function nl(e,r){const t=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=t.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=r(n[i]||0,t[i]||"",i);return t[3]?n[3]=t[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const wh=(e,r,t)=>t===0?e:e/100;function Gn(e,r){const t=r||255;return e>t?t:e<0?0:e}class Mo{constructor(r){te(this,"isValid",!0),te(this,"r",0),te(this,"g",0),te(this,"b",0),te(this,"a",1),te(this,"_h",void 0),te(this,"_s",void 0),te(this,"_l",void 0),te(this,"_v",void 0),te(this,"_max",void 0),te(this,"_min",void 0),te(this,"_brightness",void 0);function t(n){return n[0]in r&&n[1]in r&&n[2]in r}if(r)if(typeof r=="string"){let i=function(o){return n.startsWith(o)};const n=r.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(r instanceof Mo)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=Gn(r.r),this.g=Gn(r.g),this.b=Gn(r.b),this.a=typeof r.a=="number"?Gn(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),n=r(this.g),i=r(this.b);return .2126*t+.7152*n+.0722*i}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(),n=this.getSaturation();let i=this.getLightness()-r/100;return i<0&&(i=0),this._c({h:t,s:n,l:i,a:this.a})}lighten(r=10){const t=this.getHue(),n=this.getSaturation();let i=this.getLightness()+r/100;return i>1&&(i=1),this._c({h:t,s:n,l:i,a:this.a})}mix(r,t=50){const n=this._c(r),i=t/100,o=s=>(n[s]-this[s])*i+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),n=this.a+t.a*(1-this.a),i=o=>St((this[o]*this.a+t[o]*t.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(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 n=(this.g||0).toString(16);r+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(r+=i.length===2?i:"0"+i,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),n=St(this.getLightness()*100);return this.a!==1?`hsla(${r},${t}%,${n}%,${this.a})`:`hsl(${r},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(r,t,n){const i=this.clone();return i[r]=Gn(t,n),i}_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 n(i,o){return parseInt(t[i]+t[o||i],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:r,s:t,l:n,a:i}){if(this._h=r%360,this._s=t,this._l=n,this.a=typeof i=="number"?i:1,t<=0){const u=St(n*255);this.r=u,this.g=u,this.b=u}let o=0,a=0,s=0;const c=r/60,d=(1-Math.abs(2*n-1))*t,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(o=d,a=f):c>=1&&c<2?(o=f,a=d):c>=2&&c<3?(a=d,s=f):c>=3&&c<4?(a=f,s=d):c>=4&&c<5?(o=f,s=d):c>=5&&c<6&&(o=d,s=f);const l=n-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:n,a:i}){this._h=r%360,this._s=t,this._v=n,this.a=typeof i=="number"?i:1;const o=St(n*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=r/60,s=Math.floor(a),c=a-s,d=St(n*(1-t)*255),f=St(n*(1-t*c)*255),l=St(n*(1-t*(1-c))*255);switch(s){case 0:this.g=l,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=l;break;case 3:this.r=d,this.g=f;break;case 4:this.r=l,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(r){const t=nl(r,wh);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(r){const t=nl(r,wh);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(r){const t=nl(r,(n,i)=>i.includes("%")?St(n/100*255):n);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var rS=["b"],nS=["v"],il=function(r){return Math.round(Number(r||0))},iS=function(r){if(r instanceof Mo)return r;if(r&&Ae(r)==="object"&&"h"in r&&"b"in r){var t=r,n=t.b,i=Ot(t,rS);return ie(ie({},i),{},{v:n})}return typeof r=="string"&&/hsb/.test(r)?r.replace(/hsb/,"hsv"):r},Fr=(function(e){$r(t,e);var r=Br(t);function t(n){return Et(this,t),r.call(this,iS(n))}return _t(t,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=il(i.s*100),a=il(i.b*100),s=il(i.h),c=i.a,d="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),f="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?d:f}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=Ot(i,nS);return ie(ie({},a),{},{b:o,a:this.a})}}]),t})(Mo),oS="rc-color-picker",un=function(r){return r instanceof Fr?r:new Fr(r)},aS=un("#1677ff"),tg=function(r){var t=r.offset,n=r.targetRef,i=r.containerRef,o=r.color,a=r.type,s=i.current.getBoundingClientRect(),c=s.width,d=s.height,f=n.current.getBoundingClientRect(),l=f.width,u=f.height,h=l/2,v=u/2,b=(t.x+h)/c,p=1-(t.y+v)/d,m=o.toHsb(),g=b,x=(t.x+h)/c*360;if(a)switch(a){case"hue":return un(ie(ie({},m),{},{h:x<=0?0:x}));case"alpha":return un(ie(ie({},m),{},{a:g<=0?0:g}))}return un({h:m.h,s:b<=0?0:b,b:p>=1?1:p,a:m.a})},rg=function(r,t){var n=r.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:r.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},sS=function(r){var t=r.color,n=r.prefixCls,i=r.className,o=r.style,a=r.onClick,s="".concat(n,"-color-block");return z.createElement("div",{className:_e(s,i),style:o,onClick:a},z.createElement("div",{className:"".concat(s,"-inner"),style:{background:t}}))};function lS(e){var r="touches"in e?e.touches[0]:e,t=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:r.pageX-t,pageY:r.pageY-n}}function ng(e){var r=e.targetRef,t=e.containerRef,n=e.direction,i=e.onDragChange,o=e.onDragChangeComplete,a=e.calculate,s=e.color,c=e.disabledDrag,d=z.useState({x:0,y:0}),f=ve(d,2),l=f[0],u=f[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 b=function(y){var w=lS(y),_=w.pageX,S=w.pageY,E=t.current.getBoundingClientRect(),R=E.x,T=E.y,C=E.width,O=E.height,A=r.current.getBoundingClientRect(),P=A.width,I=A.height,$=P/2,H=I/2,G=Math.max(0,Math.min(_-R,C))-$,D=Math.max(0,Math.min(S-T,O))-H,F={x:G,y:n==="x"?l.y:D};if(P===0&&I===0||P!==I)return!1;i?.(F)},p=function(y){y.preventDefault(),b(y)},m=function(y){y.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?.()},g=function(y){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),!c&&(b(y),document.addEventListener("mousemove",p),document.addEventListener("mouseup",m),document.addEventListener("touchmove",p),document.addEventListener("touchend",m),h.current=p,v.current=m)};return[l,g]}var ig=function(r){var t=r.size,n=t===void 0?"default":t,i=r.color,o=r.prefixCls;return z.createElement("div",{className:_e("".concat(o,"-handler"),te({},"".concat(o,"-handler-sm"),n==="small")),style:{backgroundColor:i}})},og=function(r){var t=r.children,n=r.style,i=r.prefixCls;return z.createElement("div",{className:"".concat(i,"-palette"),style:ie({position:"relative"},n)},t)},ag=z.forwardRef(function(e,r){var t=e.children,n=e.x,i=e.y;return z.createElement("div",{ref:r,style:{position:"absolute",left:"".concat(n,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},t)}),uS=function(r){var t=r.color,n=r.onChange,i=r.prefixCls,o=r.onChangeComplete,a=r.disabled,s=z.useRef(),c=z.useRef(),d=z.useRef(t),f=At(function(b){var p=tg({offset:b,targetRef:c,containerRef:s,color:t});d.current=p,n(p)}),l=ng({color:t,containerRef:s,targetRef:c,calculate:function(){return rg(t)},onDragChange:f,onDragChangeComplete:function(){return o?.(d.current)},disabledDrag:a}),u=ve(l,2),h=u[0],v=u[1];return z.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:v,onTouchStart:v},z.createElement(og,{prefixCls:i},z.createElement(ag,{x:h.x,y:h.y,ref:c},z.createElement(ig,{color:t.toRgbString(),prefixCls:i})),z.createElement("div",{className:"".concat(i,"-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))"}})))},cS=function(r,t){var n=Gr(r,{value:t}),i=ve(n,2),o=i[0],a=i[1],s=z.useMemo(function(){return un(o)},[o]);return[s,a]},fS=function(r){var t=r.colors,n=r.children,i=r.direction,o=i===void 0?"to right":i,a=r.type,s=r.prefixCls,c=z.useMemo(function(){return t.map(function(d,f){var l=un(d);return a==="alpha"&&f===t.length-1&&(l=new Fr(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(c,")")}},n)},dS=function(r){var t=r.prefixCls,n=r.colors,i=r.disabled,o=r.onChange,a=r.onChangeComplete,s=r.color,c=r.type,d=z.useRef(),f=z.useRef(),l=z.useRef(s),u=function(w){return c==="hue"?w.getHue():w.a*100},h=At(function(y){var w=tg({offset:y,targetRef:f,containerRef:d,color:s,type:c});l.current=w,o(u(w))}),v=ng({color:s,targetRef:f,containerRef:d,calculate:function(){return rg(s,c)},onDragChange:h,onDragChangeComplete:function(){a(u(l.current))},direction:"x",disabledDrag:i}),b=ve(v,2),p=b[0],m=b[1],g=z.useMemo(function(){if(c==="hue"){var y=s.toHsb();y.s=1,y.b=1,y.a=1;var w=new Fr(y);return w}return s},[s,c]),x=z.useMemo(function(){return n.map(function(y){return"".concat(y.color," ").concat(y.percent,"%")})},[n]);return z.createElement("div",{ref:d,className:_e("".concat(t,"-slider"),"".concat(t,"-slider-").concat(c)),onMouseDown:m,onTouchStart:m},z.createElement(og,{prefixCls:t},z.createElement(ag,{x:p.x,y:p.y,ref:f},z.createElement(ig,{size:"small",color:g.toHexString(),prefixCls:t})),z.createElement(fS,{colors:x,type:c,prefixCls:t})))};function hS(e){return M.useMemo(function(){var r=e||{},t=r.slider;return[t||dS]},[e])}var pS=[{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}],vS=z.forwardRef(function(e,r){var t=e.value,n=e.defaultValue,i=e.prefixCls,o=i===void 0?oS:i,a=e.onChange,s=e.onChangeComplete,c=e.className,d=e.style,f=e.panelRender,l=e.disabledAlpha,u=l===void 0?!1:l,h=e.disabled,v=h===void 0?!1:h,b=e.components,p=hS(b),m=ve(p,1),g=m[0],x=cS(n||aS,t),y=ve(x,2),w=y[0],_=y[1],S=z.useMemo(function(){return w.setA(1).toRgbString()},[w]),E=function(D,F){t||_(D),a?.(D,F)},R=function(D){return new Fr(w.setHue(D))},T=function(D){return new Fr(w.setA(D/100))},C=function(D){E(R(D),{type:"hue",value:D})},O=function(D){E(T(D),{type:"alpha",value:D})},A=function(D){s&&s(R(D))},P=function(D){s&&s(T(D))},I=_e("".concat(o,"-panel"),c,te({},"".concat(o,"-panel-disabled"),v)),$={prefixCls:o,disabled:v,color:w},H=z.createElement(z.Fragment,null,z.createElement(uS,tt({onChange:E},$,{onChangeComplete:s})),z.createElement("div",{className:"".concat(o,"-slider-container")},z.createElement("div",{className:_e("".concat(o,"-slider-group"),te({},"".concat(o,"-slider-group-disabled-alpha"),u))},z.createElement(g,tt({},$,{type:"hue",colors:pS,min:0,max:359,value:w.getHue(),onChange:C,onChangeComplete:A})),!u&&z.createElement(g,tt({},$,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:S}],min:0,max:100,value:w.a*100,onChange:O,onChangeComplete:P}))),z.createElement(sS,{color:w.toRgbString(),prefixCls:o})));return z.createElement("div",{className:I,style:d,ref:r},typeof f=="function"?f(H):H)});process.env.NODE_ENV!=="production"&&(vS.displayName="ColorPicker");const gS=(e,r)=>e?.replace(/[^\w/]/g,"").slice(0,r?8:6)||"",mS=(e,r)=>e?gS(e,r):"";let Sh=(function(){function e(r){Et(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(i=>({color:new e(i.color),percent:i.percent})),this.cleared=r.cleared;return}const n=Array.isArray(r);n&&r.length?(this.colors=r.map(({color:i,percent:o})=>({color:new e(i),percent:o})),this.metaColor=new Fr(this.colors[0].color.metaColor)):this.metaColor=new Fr(n?"":r),(!r||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return _t(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return mS(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(i=>`${i.color.toRgbString()} ${i.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((n,i)=>{const o=t.colors[i];return n.percent===o.percent&&n.color.equals(o.color)}):this.toHexString()===t.toHexString()}}])})();const yS=e=>e instanceof Sh?e:new Sh(e);function sg(e,r){const t=tS(r),n=_e({[`${e}-${r}`]:r&&t}),i={},o={},a=yS(r).toRgb(),c=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return r&&!t&&(i.background=r,i["--ant-tooltip-color"]=c,o["--antd-arrow-background-color"]=r),{className:n,overlayStyle:i,arrowStyle:o}}const bS=e=>{const{prefixCls:r,className:t,placement:n="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=M.useContext(gr),c=s("tooltip",r),[d,f,l]=eg(c),u=sg(c,o),h=u.arrowStyle,v=Object.assign(Object.assign({},a),u.overlayStyle),b=_e(f,l,c,`${c}-pure`,`${c}-placement-${n}`,t,u.className);return d(M.createElement("div",{className:b,style:h},M.createElement("div",{className:`${c}-arrow`}),M.createElement(Nv,Object.assign({},e,{className:f,prefixCls:c,overlayInnerStyle:v}),i)))};var xS=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};const wS=M.forwardRef((e,r)=>{var t,n;const{prefixCls:i,openClassName:o,getTooltipContainer:a,color:s,overlayInnerStyle:c,children:d,afterOpenChange:f,afterVisibleChange:l,destroyTooltipOnHide:u,destroyOnHidden:h,arrow:v=!0,title:b,overlay:p,builtinPlacements:m,arrowPointAtCenter:g=!1,autoAdjustOverflow:x=!0,motion:y,getPopupContainer:w,placement:_="top",mouseEnterDelay:S=.1,mouseLeaveDelay:E=.1,overlayStyle:R,rootClassName:T,overlayClassName:C,styles:O,classNames:A}=e,P=xS(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,[,$]=_n(),{getPopupContainer:H,getPrefixCls:G,direction:D,className:F,style:N,classNames:L,styles:B}=jo("tooltip"),X=vr("Tooltip"),W=M.useRef(null),q=()=>{var Pe;(Pe=W.current)===null||Pe===void 0||Pe.forceAlign()};M.useImperativeHandle(r,()=>{var Pe,Fe;return{forceAlign:q,forcePopupAlign:()=>{X.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(Pe=W.current)===null||Pe===void 0?void 0:Pe.nativeElement,popupElement:(Fe=W.current)===null||Fe===void 0?void 0:Fe.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([Pe,Fe])=>{X.deprecated(!(Pe in e),Pe,Fe)}),process.env.NODE_ENV!=="production"&&X(!u||typeof u=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&X(!v||typeof v=="boolean"||!("arrowPointAtCenter"in v),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[j,V]=Gr(!1,{value:(t=e.open)!==null&&t!==void 0?t:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),U=!b&&!p&&b!==0,K=Pe=>{var Fe,Ne;V(U?!1:Pe),U||((Fe=e.onOpenChange)===null||Fe===void 0||Fe.call(e,Pe),(Ne=e.onVisibleChange)===null||Ne===void 0||Ne.call(e,Pe))},J=M.useMemo(()=>{var Pe,Fe;let Ne=g;return typeof v=="object"&&(Ne=(Fe=(Pe=v.pointAtCenter)!==null&&Pe!==void 0?Pe:v.arrowPointAtCenter)!==null&&Fe!==void 0?Fe:g),m||I2({arrowPointAtCenter:Ne,autoAdjustOverflow:x,arrowWidth:I?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS})},[g,v,m,$]),ne=M.useMemo(()=>b===0?b:p||b||"",[p,b]),ce=M.createElement(fu,{space:!0},typeof ne=="function"?ne():ne),re=G("tooltip",i),de=G(),oe=e["data-popover-inject"];let se=j;!("open"in e)&&!("visible"in e)&&U&&(se=!1);const Q=M.isValidElement(d)&&!M2(d)?d:M.createElement("span",null,d),ee=Q.props,ue=!ee.className||typeof ee.className=="string"?_e(ee.className,o||`${re}-open`):ee.className,[le,ae,pe]=eg(re,!oe),fe=sg(re,s),me=fe.arrowStyle,Oe=_e(C,{[`${re}-rtl`]:D==="rtl"},fe.className,T,ae,pe,F,L.root,A?.root),qe=_e(L.body,A?.body),[Ce,Ke]=O2("Tooltip",P.zIndex),ke=M.createElement(ww,Object.assign({},P,{zIndex:Ce,showArrow:I,placement:_,mouseEnterDelay:S,mouseLeaveDelay:E,prefixCls:re,classNames:{root:Oe,body:qe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},me),B.root),N),R),O?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},B.body),c),O?.body),fe.overlayStyle)},getTooltipContainer:w||a||H,ref:W,builtinPlacements:J,overlay:ce,visible:se,onVisibleChange:K,afterVisibleChange:f??l,arrowContent:M.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:T2(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!u}),se?Jv(Q,{className:ue}):Q);return le(M.createElement(Bu.Provider,{value:Ke},ke))}),_i=wS;process.env.NODE_ENV!=="production"&&(_i.displayName="Tooltip");_i._InternalPanelDoNotUseOrYouWillBeFired=bS;var SS={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"},ES=function(r,t){return M.createElement(Cr,tt({},r,{ref:t,icon:SS}))},lg=M.forwardRef(ES);process.env.NODE_ENV!=="production"&&(lg.displayName="EnterOutlined");var Eh={ENTER:13,ESC:27};function _S(e){return!!(e.addonBefore||e.addonAfter)}function CS(e){return!!(e.prefix||e.suffix||e.allowClear)}function _h(e,r,t){var n=r.cloneNode(!0),i=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=t,typeof r.selectionStart=="number"&&typeof r.selectionEnd=="number"&&(n.selectionStart=r.selectionStart,n.selectionEnd=r.selectionEnd),n.setSelectionRange=function(){r.setSelectionRange.apply(r,arguments)},i}function yo(e,r,t,n){if(t){var i=r;if(r.type==="click"){i=_h(r,e,""),t(i);return}if(e.type!=="file"&&n!==void 0){i=_h(r,e,n),t(i);return}t(i)}}function ug(e,r){if(e){e.focus(r);var t=r||{},n=t.cursor;if(n){var i=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var cg=z.forwardRef(function(e,r){var t,n,i,o=e.inputElement,a=e.children,s=e.prefixCls,c=e.prefix,d=e.suffix,f=e.addonBefore,l=e.addonAfter,u=e.className,h=e.style,v=e.disabled,b=e.readOnly,p=e.focused,m=e.triggerFocus,g=e.allowClear,x=e.value,y=e.handleReset,w=e.hidden,_=e.classes,S=e.classNames,E=e.dataAttrs,R=e.styles,T=e.components,C=e.onClear,O=a??o,A=T?.affixWrapper||"span",P=T?.groupWrapper||"span",I=T?.wrapper||"span",$=T?.groupAddon||"span",H=z.useRef(null),G=function(de){var oe;(oe=H.current)!==null&&oe!==void 0&&oe.contains(de.target)&&m?.()},D=CS(e),F=z.cloneElement(O,{value:x,className:_e((t=O.props)===null||t===void 0?void 0:t.className,!D&&S?.variant)||null}),N=z.useRef(null);if(z.useImperativeHandle(r,function(){return{nativeElement:N.current||H.current}}),D){var L=null;if(g){var B=!v&&!b&&x,X="".concat(s,"-clear-icon"),W=Ae(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"✖";L=z.createElement("button",{type:"button",tabIndex:-1,onClick:function(de){y?.(de),C?.()},onMouseDown:function(de){return de.preventDefault()},className:_e(X,te(te({},"".concat(X,"-hidden"),!B),"".concat(X,"-has-suffix"),!!d))},W)}var q="".concat(s,"-affix-wrapper"),j=_e(q,te(te(te(te(te({},"".concat(s,"-disabled"),v),"".concat(q,"-disabled"),v),"".concat(q,"-focused"),p),"".concat(q,"-readonly"),b),"".concat(q,"-input-with-clear-btn"),d&&g&&x),_?.affixWrapper,S?.affixWrapper,S?.variant),V=(d||g)&&z.createElement("span",{className:_e("".concat(s,"-suffix"),S?.suffix),style:R?.suffix},L,d);F=z.createElement(A,tt({className:j,style:R?.affixWrapper,onClick:G},E?.affixWrapper,{ref:H}),c&&z.createElement("span",{className:_e("".concat(s,"-prefix"),S?.prefix),style:R?.prefix},c),F,V)}if(_S(e)){var U="".concat(s,"-group"),K="".concat(U,"-addon"),J="".concat(U,"-wrapper"),ne=_e("".concat(s,"-wrapper"),U,_?.wrapper,S?.wrapper),ce=_e(J,te({},"".concat(J,"-disabled"),v),_?.group,S?.groupWrapper);F=z.createElement(P,{className:ce,ref:N},z.createElement(I,{className:ne},f&&z.createElement($,{className:K},f),F,l&&z.createElement($,{className:K},l)))}return z.cloneElement(F,{className:_e((n=F.props)===null||n===void 0?void 0:n.className,u)||null,style:ie(ie({},(i=F.props)===null||i===void 0?void 0:i.style),h),hidden:w})}),OS=["show"];function fg(e,r){return M.useMemo(function(){var t={};r&&(t.show=Ae(r)==="object"&&r.formatter?r.formatter:!!r),t=ie(ie({},t),e);var n=t,i=n.show,o=Ot(n,OS);return ie(ie({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,r])}var TS=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],AS=z.forwardRef(function(e,r){var t=e.autoComplete,n=e.onChange,i=e.onFocus,o=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,d=e.prefixCls,f=d===void 0?"rc-input":d,l=e.disabled,u=e.htmlSize,h=e.className,v=e.maxLength,b=e.suffix,p=e.showCount,m=e.count,g=e.type,x=g===void 0?"text":g,y=e.classes,w=e.classNames,_=e.styles,S=e.onCompositionStart,E=e.onCompositionEnd,R=Ot(e,TS),T=z.useState(!1),C=ve(T,2),O=C[0],A=C[1],P=z.useRef(!1),I=z.useRef(!1),$=z.useRef(null),H=z.useRef(null),G=function(fe){$.current&&ug($.current,fe)},D=Gr(e.defaultValue,{value:e.value}),F=ve(D,2),N=F[0],L=F[1],B=N==null?"":String(N),X=z.useState(null),W=ve(X,2),q=W[0],j=W[1],V=fg(m,p),U=V.max||v,K=V.strategy(B),J=!!U&&K>U;z.useImperativeHandle(r,function(){var pe;return{focus:G,blur:function(){var me;(me=$.current)===null||me===void 0||me.blur()},setSelectionRange:function(me,Oe,qe){var Ce;(Ce=$.current)===null||Ce===void 0||Ce.setSelectionRange(me,Oe,qe)},select:function(){var me;(me=$.current)===null||me===void 0||me.select()},input:$.current,nativeElement:((pe=H.current)===null||pe===void 0?void 0:pe.nativeElement)||$.current}}),z.useEffect(function(){I.current&&(I.current=!1),A(function(pe){return pe&&l?!1:pe})},[l]);var ne=function(fe,me,Oe){var qe=me;if(!P.current&&V.exceedFormatter&&V.max&&V.strategy(me)>V.max){if(qe=V.exceedFormatter(me,{max:V.max}),me!==qe){var Ce,Ke;j([((Ce=$.current)===null||Ce===void 0?void 0:Ce.selectionStart)||0,((Ke=$.current)===null||Ke===void 0?void 0:Ke.selectionEnd)||0])}}else if(Oe.source==="compositionEnd")return;L(qe),$.current&&yo($.current,fe,n,qe)};z.useEffect(function(){if(q){var pe;(pe=$.current)===null||pe===void 0||pe.setSelectionRange.apply(pe,Se(q))}},[q]);var ce=function(fe){ne(fe,fe.target.value,{source:"change"})},re=function(fe){P.current=!1,ne(fe,fe.currentTarget.value,{source:"compositionEnd"}),E?.(fe)},de=function(fe){a&&fe.key==="Enter"&&!I.current&&(I.current=!0,a(fe)),s?.(fe)},oe=function(fe){fe.key==="Enter"&&(I.current=!1),c?.(fe)},se=function(fe){A(!0),i?.(fe)},Q=function(fe){I.current&&(I.current=!1),A(!1),o?.(fe)},ee=function(fe){L(""),G(),$.current&&yo($.current,fe,n)},ue=J&&"".concat(f,"-out-of-range"),le=function(){var fe=Mp(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return z.createElement("input",tt({autoComplete:t},fe,{onChange:ce,onFocus:se,onBlur:Q,onKeyDown:de,onKeyUp:oe,className:_e(f,te({},"".concat(f,"-disabled"),l),w?.input),style:_?.input,ref:$,size:u,type:x,onCompositionStart:function(Oe){P.current=!0,S?.(Oe)},onCompositionEnd:re}))},ae=function(){var fe=Number(U)>0;if(b||V.show){var me=V.showFormatter?V.showFormatter({value:B,count:K,maxLength:U}):"".concat(K).concat(fe?" / ".concat(U):"");return z.createElement(z.Fragment,null,V.show&&z.createElement("span",{className:_e("".concat(f,"-show-count-suffix"),te({},"".concat(f,"-show-count-has-suffix"),!!b),w?.count),style:ie({},_?.count)},me),b)}return null};return z.createElement(cg,tt({},R,{prefixCls:f,className:_e(h,ue),handleReset:ee,value:B,focused:O,triggerFocus:G,suffix:ae(),disabled:l,classes:y,classNames:w,styles:_,ref:H}),le())}),RS=`
|
|
192
|
-
min-height:0 !important;
|
|
193
|
-
max-height:none !important;
|
|
194
|
-
height:0 !important;
|
|
195
|
-
visibility:hidden !important;
|
|
196
|
-
overflow:hidden !important;
|
|
197
|
-
position:absolute !important;
|
|
198
|
-
z-index:-1000 !important;
|
|
199
|
-
top:0 !important;
|
|
200
|
-
right:0 !important;
|
|
201
|
-
pointer-events: none !important;
|
|
202
|
-
`,kS=["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"],ol={},Bt;function PS(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&&ol[t])return ol[t];var n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=kS.map(function(d){return"".concat(d,":").concat(n.getPropertyValue(d))}).join(";"),c={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return r&&t&&(ol[t]=c),c}function NS(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Bt||(Bt=document.createElement("textarea"),Bt.setAttribute("tab-index","-1"),Bt.setAttribute("aria-hidden","true"),Bt.setAttribute("name","hiddenTextarea"),document.body.appendChild(Bt)),e.getAttribute("wrap")?Bt.setAttribute("wrap",e.getAttribute("wrap")):Bt.removeAttribute("wrap");var i=PS(e,r),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,c=i.sizingStyle;Bt.setAttribute("style","".concat(c,";").concat(RS)),Bt.value=e.value||e.placeholder||"";var d=void 0,f=void 0,l,u=Bt.scrollHeight;if(s==="border-box"?u+=a:s==="content-box"&&(u-=o),t!==null||n!==null){Bt.value=" ";var h=Bt.scrollHeight-o;t!==null&&(d=h*t,s==="border-box"&&(d=d+o+a),u=Math.max(d,u)),n!==null&&(f=h*n,s==="border-box"&&(f=f+o+a),l=u>f?"":"hidden",u=Math.min(f,u))}var v={height:u,overflowY:l,resize:"none"};return d&&(v.minHeight=d),f&&(v.maxHeight=f),v}var jS=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],al=0,sl=1,ll=2,IS=M.forwardRef(function(e,r){var t=e,n=t.prefixCls,i=t.defaultValue,o=t.value,a=t.autoSize,s=t.onResize,c=t.className,d=t.style,f=t.disabled,l=t.onChange,u=t.onInternalAutoSize,h=Ot(t,jS),v=Gr(i,{value:o,postState:function(X){return X??""}}),b=ve(v,2),p=b[0],m=b[1],g=function(X){m(X.target.value),l?.(X)},x=M.useRef();M.useImperativeHandle(r,function(){return{textArea:x.current}});var y=M.useMemo(function(){return a&&Ae(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=ve(y,2),_=w[0],S=w[1],E=!!a,R=M.useState(ll),T=ve(R,2),C=T[0],O=T[1],A=M.useState(),P=ve(A,2),I=P[0],$=P[1],H=function(){O(al),process.env.NODE_ENV==="test"&&u?.()};st(function(){E&&H()},[o,_,S,E]),st(function(){if(C===al)O(sl);else if(C===sl){var B=NS(x.current,!1,_,S);O(ll),$(B)}},[C]);var G=M.useRef(),D=function(){yn.cancel(G.current)},F=function(X){C===ll&&(s?.(X),a&&(D(),G.current=yn(function(){H()})))};M.useEffect(function(){return D},[]);var N=E?I:null,L=ie(ie({},d),N);return(C===al||C===sl)&&(L.overflowY="hidden",L.overflowX="hidden"),M.createElement(Sn,{onResize:F,disabled:!(a||s)},M.createElement("textarea",tt({},h,{ref:x,style:L,className:_e(n,c,te({},"".concat(n,"-disabled"),f)),disabled:f,value:p,onChange:g})))}),MS=["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"],LS=z.forwardRef(function(e,r){var t,n=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,c=e.allowClear,d=e.maxLength,f=e.onCompositionStart,l=e.onCompositionEnd,u=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,b=e.showCount,p=e.count,m=e.className,g=e.style,x=e.disabled,y=e.hidden,w=e.classNames,_=e.styles,S=e.onResize,E=e.onClear,R=e.onPressEnter,T=e.readOnly,C=e.autoSize,O=e.onKeyDown,A=Ot(e,MS),P=Gr(n,{value:i,defaultValue:n}),I=ve(P,2),$=I[0],H=I[1],G=$==null?"":String($),D=z.useState(!1),F=ve(D,2),N=F[0],L=F[1],B=z.useRef(!1),X=z.useState(null),W=ve(X,2),q=W[0],j=W[1],V=z.useRef(null),U=z.useRef(null),K=function(){var we;return(we=U.current)===null||we===void 0?void 0:we.textArea},J=function(){K().focus()};z.useImperativeHandle(r,function(){var Ne;return{resizableTextArea:U.current,focus:J,blur:function(){K().blur()},nativeElement:((Ne=V.current)===null||Ne===void 0?void 0:Ne.nativeElement)||K()}}),z.useEffect(function(){L(function(Ne){return!x&&Ne})},[x]);var ne=z.useState(null),ce=ve(ne,2),re=ce[0],de=ce[1];z.useEffect(function(){if(re){var Ne;(Ne=K()).setSelectionRange.apply(Ne,Se(re))}},[re]);var oe=fg(p,b),se=(t=oe.max)!==null&&t!==void 0?t:d,Q=Number(se)>0,ee=oe.strategy(G),ue=!!se&&ee>se,le=function(we,Ve){var xe=Ve;!B.current&&oe.exceedFormatter&&oe.max&&oe.strategy(Ve)>oe.max&&(xe=oe.exceedFormatter(Ve,{max:oe.max}),Ve!==xe&&de([K().selectionStart||0,K().selectionEnd||0])),H(xe),yo(we.currentTarget,we,s,xe)},ae=function(we){B.current=!0,f?.(we)},pe=function(we){B.current=!1,le(we,we.currentTarget.value),l?.(we)},fe=function(we){le(we,we.target.value)},me=function(we){we.key==="Enter"&&R&&R(we),O?.(we)},Oe=function(we){L(!0),o?.(we)},qe=function(we){L(!1),a?.(we)},Ce=function(we){H(""),J(),yo(K(),we,s)},Ke=u,ke;oe.show&&(oe.showFormatter?ke=oe.showFormatter({value:G,count:ee,maxLength:se}):ke="".concat(ee).concat(Q?" / ".concat(se):""),Ke=z.createElement(z.Fragment,null,Ke,z.createElement("span",{className:_e("".concat(v,"-data-count"),w?.count),style:_?.count},ke)));var Pe=function(we){var Ve;S?.(we),(Ve=K())!==null&&Ve!==void 0&&Ve.style.height&&j(!0)},Fe=!C&&!b&&!c;return z.createElement(cg,{ref:V,value:G,allowClear:c,handleReset:Ce,suffix:Ke,prefixCls:v,classNames:ie(ie({},w),{},{affixWrapper:_e(w?.affixWrapper,te(te({},"".concat(v,"-show-count"),b),"".concat(v,"-textarea-allow-clear"),c))}),disabled:x,focused:N,className:_e(m,ue&&"".concat(v,"-out-of-range")),style:ie(ie({},g),q&&!Fe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ke=="string"?ke:void 0}},hidden:y,readOnly:T,onClear:E},z.createElement(IS,tt({},A,{autoSize:C,maxLength:d,onKeyDown:me,onChange:fe,onFocus:Oe,onBlur:qe,onCompositionStart:ae,onCompositionEnd:pe,className:_e(w?.textarea),style:ie(ie({},_?.textarea),{},{resize:g?.resize}),disabled:x,prefixCls:v,onResize:Pe,ref:U,readOnly:T})))}),DS={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"},FS=function(r,t){return M.createElement(Cr,tt({},r,{ref:t,icon:DS}))},dg=M.forwardRef(FS);process.env.NODE_ENV!=="production"&&(dg.displayName="CloseCircleFilled");const hg=e=>{let r;return typeof e=="object"&&e?.clearIcon?r=e:e&&(r={clearIcon:z.createElement(dg,null)}),r};function du(e,r,t){return _e({[`${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 pg=(e,r)=>r||e,vg=e=>{const[,,,,r]=_n();return r?`${e}-css-var`:""},gg=(e,r,t=void 0)=>{var n,i;const{variant:o,[e]:a}=M.useContext(gr),s=M.useContext(b2),c=a?.variant;let d;typeof r<"u"?d=r:t===!1?d="borderless":d=(i=(n=s??c)!==null&&n!==void 0?n:o)!==null&&i!==void 0?i:"outlined";const f=$1.includes(d);return[d,f]};function $S(e,r){const t=z.useRef([]),n=()=>{t.current.push(setTimeout(()=>{var i,o,a,s;!((i=e.current)===null||i===void 0)&&i.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(()=>(n(),()=>t.current.forEach(i=>{i&&clearTimeout(i)})),[]),n}function BS(e,r,t,n){const{focusElCls:i,focus:o,borderElCls:a}=t,s=a?"> *":"",c=["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(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},i?{[`&${i}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function qS(e,r,t){const{borderElCls:n}=t,i=n?`> ${n}`:"";return{[`&-item:not(${r}-first-item):not(${r}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${r}-last-item)${r}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${r}-first-item)${r}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function zS(e,r={focus:!0}){const{componentCls:t}=e,n=`${t}-compact`;return{[n]:Object.assign(Object.assign({},BS(e,n,r,t)),qS(t,n,r))}}function qu(e){return Or(e,{inputAffixPadding:e.paddingXXS})}const zu=e=>{const{controlHeight:r,fontSize:t,lineHeight:n,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:c,paddingSM:d,controlPaddingHorizontalSM:f,controlPaddingHorizontal:l,colorFillAlter:u,colorPrimaryHover:h,colorPrimary:v,controlOutlineWidth:b,controlOutline:p,colorErrorOutline:m,colorWarningOutline:g,colorBgContainer:x,inputFontSize:y,inputFontSizeLG:w,inputFontSizeSM:_}=e,S=y||t,E=_||S,R=w||s,T=Math.round((r-S*n)/2*10)/10-i,C=Math.round((o-E*n)/2*10)/10-i,O=Math.ceil((a-R*c)/2*10)/10-i;return{paddingBlock:Math.max(T,0),paddingBlockSM:Math.max(C,0),paddingBlockLG:Math.max(O,0),paddingInline:d-i,paddingInlineSM:f-i,paddingInlineLG:l-i,addonBg:u,activeBorderColor:v,hoverBorderColor:h,activeShadow:`0 0 0 ${b}px ${p}`,errorActiveShadow:`0 0 0 ${b}px ${m}`,warningActiveShadow:`0 0 0 ${b}px ${g}`,hoverBg:x,activeBg:x,inputFontSize:S,inputFontSizeLG:R,inputFontSizeSM:E}},HS=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Hu=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({},HS(Or(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),mg=(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}}),Ch=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},mg(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}),[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:r.borderColor}}),VS=(e,r)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mg(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Hu(e))}),Ch(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Ch(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),r)}),Oh=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:r.addonBorderColor,color:r.addonColor}}}),US=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Oh(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Oh(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Hu(e))}})}),WS=(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)}},yg=(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}}},Th=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},yg(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}})}),GS=(e,r)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Hu(e))}),Th(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Th(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),r)}),Ah=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{background:r.addonBg,color:r.addonColor}}}),KS=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Ah(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Ah(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:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),bg=(e,r)=>({background:e.colorBgContainer,borderWidth:`${Ye(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}}),Rh=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},bg(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`}}),YS=(e,r)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bg(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"}}),Rh(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Rh(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),r)}),XS=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),xg=e=>{const{paddingBlockLG:r,lineHeightLG:t,borderRadiusLG:n,paddingInlineLG:i}=e;return{padding:`${Ye(r)} ${Ye(i)}`,fontSize:e.inputFontSizeLG,lineHeight:t,borderRadius:n}},wg=e=>({padding:`${Ye(e.paddingBlockSM)} ${Ye(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Sg=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ye(e.paddingBlock)} ${Ye(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},XS(e.colorTextPlaceholder)),{"&-lg":Object.assign({},xg(e)),"&-sm":Object.assign({},wg(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),ZS=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({},xg(e)),[`&-sm ${r}, &-sm > ${r}-group-addon`]:Object.assign({},wg(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 ${Ye(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`${Ye(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ye(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:`${Ye(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${t}-cascader-picker`]:{margin:`-9px ${Ye(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"},cx()),{[`${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},[`
|
|
203
|
-
& > ${r}-affix-wrapper,
|
|
204
|
-
& > ${r}-number-affix-wrapper,
|
|
205
|
-
& > ${t}-picker-range
|
|
206
|
-
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[r]:{float:"none"},[`& > ${t}-select > ${t}-select-selector,
|
|
207
|
-
& > ${t}-select-auto-complete ${r},
|
|
208
|
-
& > ${t}-cascader-picker ${r},
|
|
209
|
-
& > ${r}-group-wrapper ${r}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${t}-select-focused`]:{zIndex:1},[`& > ${t}-select > ${t}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
210
|
-
& > ${t}-select:first-child > ${t}-select-selector,
|
|
211
|
-
& > ${t}-select-auto-complete:first-child ${r},
|
|
212
|
-
& > ${t}-cascader-picker:first-child ${r}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
213
|
-
& > ${t}-select:last-child > ${t}-select-selector,
|
|
214
|
-
& > ${t}-cascader-picker:last-child ${r},
|
|
215
|
-
& > ${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}}}})}},QS=e=>{const{componentCls:r,controlHeightSM:t,lineWidth:n,calc:i}=e,a=i(t).sub(i(n).mul(2)).sub(16).div(2).equal();return{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Iu(e)),Sg(e)),VS(e)),GS(e)),WS(e)),YS(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"}})}},JS=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 ${Ye(e.inputAffixPadding)}`}}}},eE=e=>{const{componentCls:r,inputAffixPadding:t,colorTextDescription:n,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,c=`${r}-affix-wrapper`,d=`${r}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},Sg(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:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:t},"&-suffix":{marginInlineStart:t}}}),JS(e)),{[`${s}${r}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[`${r}-underlined`]:{borderRadius:0},[d]:{[`${s}${r}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},tE=e=>{const{componentCls:r,borderRadiusLG:t,borderRadiusSM:n}=e;return{[`${r}-group`]:Object.assign(Object.assign(Object.assign({},Iu(e)),ZS(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:n}}},US(e)),KS(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}}})})}},rE=e=>{const{componentCls:r,antCls:t}=e,n=`${r}-search`;return{[n]:{[r]:{"&:hover, &:focus":{[`+ ${r}-group-addon ${n}-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,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${t}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${t}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${r}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${r}-affix-wrapper, ${n}-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,
|
|
216
|
-
> ${r},
|
|
217
|
-
${r}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${r}-affix-wrapper-focused`]:{zIndex:2}}}}},nE=e=>{const{componentCls:r}=e;return{[`${r}-out-of-range`]:{[`&, & input, & textarea, ${r}-show-count-suffix, ${r}-data-count`]:{color:e.colorError}}}},Eg=bi(["Input","Shared"],e=>{const r=Or(e,qu(e));return[QS(r),eE(r)]},zu,{resetFont:!1}),iE=bi(["Input","Component"],e=>{const r=Or(e,qu(e));return[tE(r),rE(r),nE(r),zS(r)]},zu,{resetFont:!1});function oE(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var aE=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};const sE=z.forwardRef((e,r)=>{const{prefixCls:t,bordered:n=!0,status:i,size:o,disabled:a,onBlur:s,onFocus:c,suffix:d,allowClear:f,addonAfter:l,addonBefore:u,className:h,style:v,styles:b,rootClassName:p,onChange:m,classNames:g,variant:x}=e,y=aE(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:ee}=vr("Input");ee(!("bordered"in e),"bordered","variant")}const{getPrefixCls:w,direction:_,allowClear:S,autoComplete:E,className:R,style:T,classNames:C,styles:O}=jo("input"),A=w("input",t),P=z.useRef(null),I=vg(A),[$,H,G]=Eg(A,p),[D]=iE(A,I),{compactSize:F,compactItemClassnames:N}=Yv(A,_),L=Gv(ee=>{var ue;return(ue=o??F)!==null&&ue!==void 0?ue:ee}),B=z.useContext(di),X=a??B,{status:W,hasFeedback:q,feedbackIcon:j}=z.useContext(pi),V=pg(W,i),U=oE(e)||!!q,K=z.useRef(U);if(process.env.NODE_ENV!=="production"){const ee=vr("Input");z.useEffect(()=>{var ue;U&&!K.current&&process.env.NODE_ENV!=="production"&&ee(document.activeElement===((ue=P.current)===null||ue===void 0?void 0:ue.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),K.current=U},[U])}const J=$S(P),ne=ee=>{J(),s?.(ee)},ce=ee=>{J(),c?.(ee)},re=ee=>{J(),m?.(ee)},de=(q||d)&&z.createElement(z.Fragment,null,d,q&&j),oe=hg(f??S),[se,Q]=gg("input",x,n);return $(D(z.createElement(AS,Object.assign({ref:gi(r,P),prefixCls:A,autoComplete:E},y,{disabled:X,onBlur:ne,onFocus:ce,style:Object.assign(Object.assign({},T),v),styles:Object.assign(Object.assign({},O),b),suffix:de,allowClear:oe,className:_e(h,p,G,I,N,R),onChange:re,addonBefore:u&&z.createElement(fu,{form:!0,space:!0},u),addonAfter:l&&z.createElement(fu,{form:!0,space:!0},l),classNames:Object.assign(Object.assign(Object.assign({},g),C),{input:_e({[`${A}-sm`]:L==="small",[`${A}-lg`]:L==="large",[`${A}-rtl`]:_==="rtl"},g?.input,C.input,H),variant:_e({[`${A}-${se}`]:Q},du(A,V)),affixWrapper:_e({[`${A}-affix-wrapper-sm`]:L==="small",[`${A}-affix-wrapper-lg`]:L==="large",[`${A}-affix-wrapper-rtl`]:_==="rtl"},H),wrapper:_e({[`${A}-group-rtl`]:_==="rtl"},H),groupWrapper:_e({[`${A}-group-wrapper-sm`]:L==="small",[`${A}-group-wrapper-lg`]:L==="large",[`${A}-group-wrapper-rtl`]:_==="rtl",[`${A}-group-wrapper-${se}`]:Q},du(`${A}-group-wrapper`,V,q),H)})}))))});process.env.NODE_ENV!=="production"&&(sE.displayName="Input");const lE=e=>{const{componentCls:r,paddingLG:t}=e,n=`${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"},[n]:{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"}},[`
|
|
218
|
-
&-allow-clear > ${r},
|
|
219
|
-
&-affix-wrapper${n}-has-feedback ${r}
|
|
220
|
-
`]:{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},[`${n}-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}}}}}},uE=bi(["Input","TextArea"],e=>{const r=Or(e,qu(e));return lE(r)},zu,{resetFont:!1});var cE=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};const fE=z.forwardRef((e,r)=>{var t;const{prefixCls:n,bordered:i=!0,size:o,disabled:a,status:s,allowClear:c,classNames:d,rootClassName:f,className:l,style:u,styles:h,variant:v,showCount:b,onMouseDown:p,onResize:m}=e,g=cE(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:oe}=vr("TextArea");oe(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:y,allowClear:w,autoComplete:_,className:S,style:E,classNames:R,styles:T}=jo("textArea"),C=M.useContext(di),O=a??C,{status:A,hasFeedback:P,feedbackIcon:I}=M.useContext(pi),$=pg(A,s),H=M.useRef(null);M.useImperativeHandle(r,()=>{var oe;return{resizableTextArea:(oe=H.current)===null||oe===void 0?void 0:oe.resizableTextArea,focus:se=>{var Q,ee;ug((ee=(Q=H.current)===null||Q===void 0?void 0:Q.resizableTextArea)===null||ee===void 0?void 0:ee.textArea,se)},blur:()=>{var se;return(se=H.current)===null||se===void 0?void 0:se.blur()}}});const G=x("input",n),D=vg(G),[F,N,L]=Eg(G,f),[B]=uE(G,D),{compactSize:X,compactItemClassnames:W}=Yv(G,y),q=Gv(oe=>{var se;return(se=o??X)!==null&&se!==void 0?se:oe}),[j,V]=gg("textArea",v,i),U=hg(c??w),[K,J]=M.useState(!1),[ne,ce]=M.useState(!1),re=oe=>{J(!0),p?.(oe);const se=()=>{J(!1),document.removeEventListener("mouseup",se)};document.addEventListener("mouseup",se)},de=oe=>{var se,Q;if(m?.(oe),K&&typeof getComputedStyle=="function"){const ee=(Q=(se=H.current)===null||se===void 0?void 0:se.nativeElement)===null||Q===void 0?void 0:Q.querySelector("textarea");ee&&getComputedStyle(ee).resize==="both"&&ce(!0)}};return F(B(M.createElement(LS,Object.assign({autoComplete:_},g,{style:Object.assign(Object.assign({},E),u),styles:Object.assign(Object.assign({},T),h),disabled:O,allowClear:U,className:_e(L,D,l,f,W,S,ne&&`${G}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),R),{textarea:_e({[`${G}-sm`]:q==="small",[`${G}-lg`]:q==="large"},N,d?.textarea,R.textarea,K&&`${G}-mouse-active`),variant:_e({[`${G}-${j}`]:V},du(G,$)),affixWrapper:_e(`${G}-textarea-affix-wrapper`,{[`${G}-affix-wrapper-rtl`]:y==="rtl",[`${G}-affix-wrapper-sm`]:q==="small",[`${G}-affix-wrapper-lg`]:q==="large",[`${G}-textarea-show-count`]:b||((t=e.count)===null||t===void 0?void 0:t.show)},N)}),prefixCls:G,suffix:P&&M.createElement("span",{className:`${G}-textarea-suffix`},I),showCount:b,ref:H,onResize:de,onMouseDown:re}))))}),dE=(e,r,t,n)=>{const{titleMarginBottom:i,fontWeightStrong:o}=n;return{marginBottom:i,color:t,fontWeight:o,fontSize:e,lineHeight:r}},hE=e=>{const r=[1,2,3,4,5],t={};return r.forEach(n=>{t[`
|
|
221
|
-
h${n}&,
|
|
222
|
-
div&-h${n},
|
|
223
|
-
div&-h${n} > textarea,
|
|
224
|
-
h${n}
|
|
225
|
-
`]=dE(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t},pE=e=>{const{componentCls:r}=e;return{"a&, a":Object.assign(Object.assign({},gv(e)),{userSelect:"text",[`&[disabled], &${r}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},vE=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:lo[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),gE=e=>{const{componentCls:r,paddingSM:t}=e,n=t;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${Ye(n)})`},[`${r}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},mE=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),yE=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),bE=e=>{const{componentCls:r,titleMarginTop:t}=e;return{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${r}-secondary`]:{color:e.colorTextDescription},[`&${r}-success`]:{color:e.colorSuccessText},[`&${r}-warning`]:{color:e.colorWarningText},[`&${r}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${r}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},hE(e)),{[`
|
|
226
|
-
& + h1${r},
|
|
227
|
-
& + h2${r},
|
|
228
|
-
& + h3${r},
|
|
229
|
-
& + h4${r},
|
|
230
|
-
& + h5${r}
|
|
231
|
-
`]:{marginTop:t},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:t}}}),vE(e)),pE(e)),{[`
|
|
232
|
-
${r}-expand,
|
|
233
|
-
${r}-collapse,
|
|
234
|
-
${r}-edit,
|
|
235
|
-
${r}-copy
|
|
236
|
-
`]:Object.assign(Object.assign({},gv(e)),{marginInlineStart:e.marginXXS})}),gE(e)),mE(e)),yE()),{"&-rtl":{direction:"rtl"}})}},xE=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),_g=bi("Typography",bE,xE),wE=e=>{const{prefixCls:r,"aria-label":t,className:n,style:i,direction:o,maxLength:a,autoSize:s=!0,value:c,onSave:d,onCancel:f,onEnd:l,component:u,enterIcon:h=M.createElement(lg,null)}=e,v=M.useRef(null),b=M.useRef(!1),p=M.useRef(null),[m,g]=M.useState(c);M.useEffect(()=>{g(c)},[c]),M.useEffect(()=>{var P;if(!((P=v.current)===null||P===void 0)&&P.resizableTextArea){const{textArea:I}=v.current.resizableTextArea;I.focus();const{length:$}=I.value;I.setSelectionRange($,$)}},[]);const x=({target:P})=>{g(P.value.replace(/[\n\r]/g,""))},y=()=>{b.current=!0},w=()=>{b.current=!1},_=({keyCode:P})=>{b.current||(p.current=P)},S=()=>{d(m.trim())},E=({keyCode:P,ctrlKey:I,altKey:$,metaKey:H,shiftKey:G})=>{p.current!==P||b.current||I||$||H||G||(P===Eh.ENTER?(S(),l?.()):P===Eh.ESC&&f())},R=()=>{S()},[T,C,O]=_g(r),A=_e(r,`${r}-edit-content`,{[`${r}-rtl`]:o==="rtl",[`${r}-${u}`]:!!u},n,C,O);return T(M.createElement("div",{className:A,style:i},M.createElement(fE,{ref:v,maxLength:a,value:m,onChange:x,onKeyDown:_,onKeyUp:E,onCompositionStart:y,onCompositionEnd:w,onBlur:R,"aria-label":t,rows:1,autoSize:s}),h!==null?Jv(h,{className:`${r}-edit-content-confirm`}):null))};var ul,kh;function SE(){return kh||(kh=1,ul=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var r=document.activeElement,t=[],n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));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(i){e.addRange(i)}),r&&r.focus()}}),ul}var cl,Ph;function EE(){if(Ph)return cl;Ph=1;var e=SE(),r={"text/plain":"Text","text/html":"Url",default:"Text"},t="Copy to clipboard: #{key}, Enter";function n(o){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,a)}function i(o,a){var s,c,d,f,l,u,h=!1;a||(a={}),s=a.debug||!1;try{d=e(),f=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(b){if(b.stopPropagation(),a.format)if(b.preventDefault(),typeof b.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 b.clipboardData.clearData(),b.clipboardData.setData(a.format,o);a.onCopy&&(b.preventDefault(),a.onCopy(b.clipboardData))}),document.body.appendChild(u),f.selectNodeContents(u),l.addRange(f);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");h=!0}catch(b){s&&console.error("unable to copy using execCommand: ",b),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"),c=n("message"in a?a.message:t),window.prompt(c,o)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(f):l.removeAllRanges()),u&&document.body.removeChild(u),d()}return h}return cl=i,cl}var _E=EE();const CE=Me.getDefaultExportFromCjs(_E),OE=(e,r=!1)=>r&&e==null?[]:Array.isArray(e)?e:[e];var TE=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(f){try{d(n.next(f))}catch(l){a(l)}}function c(f){try{d(n.throw(f))}catch(l){a(l)}}function d(f){f.done?o(f.value):i(f.value).then(s,c)}d((n=n.apply(e,r||[])).next())})};const AE=({copyConfig:e,children:r})=>{const[t,n]=M.useState(!1),[i,o]=M.useState(!1),a=M.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},c={};e.format&&(c.format=e.format),M.useEffect(()=>s,[]);const d=At(f=>TE(void 0,void 0,void 0,function*(){var l;f?.preventDefault(),f?.stopPropagation(),o(!0);try{const u=typeof e.text=="function"?yield e.text():e.text;CE(u||OE(r,!0).join("")||"",c),o(!1),n(!0),s(),a.current=setTimeout(()=>{n(!1)},3e3),(l=e.onCopy)===null||l===void 0||l.call(e,f)}catch(u){throw o(!1),u}}));return{copied:t,copyLoading:i,onClick:d}};function fl(e,r){return M.useMemo(()=>{const t=!!e;return[t,Object.assign(Object.assign({},r),t&&typeof e=="object"?e:null)]},[e])}const RE=e=>{const r=z.useRef(void 0);return z.useEffect(()=>{r.current=e}),r.current},kE=(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 PE=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};const Cg=M.forwardRef((e,r)=>{const{prefixCls:t,component:n="article",className:i,rootClassName:o,setContentRef:a,children:s,direction:c,style:d}=e,f=PE(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:l,direction:u,className:h,style:v}=jo("typography"),b=c??u,p=a?gi(r,a):r,m=l("typography",t);process.env.NODE_ENV!=="production"&&vr("Typography").deprecated(!a,"setContentRef","ref");const[g,x,y]=_g(m),w=_e(m,h,{[`${m}-rtl`]:b==="rtl"},i,o,x,y),_=Object.assign(Object.assign({},v),d);return g(M.createElement(n,Object.assign({className:w,style:_,ref:p},f),s))});process.env.NODE_ENV!=="production"&&(Cg.displayName="Typography");var NE={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"},jE=function(r,t){return M.createElement(Cr,tt({},r,{ref:t,icon:NE}))},Og=M.forwardRef(jE);process.env.NODE_ENV!=="production"&&(Og.displayName="CheckOutlined");var IE={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"},ME=function(r,t){return M.createElement(Cr,tt({},r,{ref:t,icon:IE}))},Tg=M.forwardRef(ME);process.env.NODE_ENV!=="production"&&(Tg.displayName="CopyOutlined");var LE={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"},DE=function(r,t){return M.createElement(Cr,tt({},r,{ref:t,icon:LE}))},Ag=M.forwardRef(DE);process.env.NODE_ENV!=="production"&&(Ag.displayName="LoadingOutlined");function Nh(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function dl(e,r,t){return e===!0||e===void 0?r:e||t&&r}function FE(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(),n=r.getBoundingClientRect();return e.removeChild(r),t.left>n.left||n.right>t.right||t.top>n.top||n.bottom>t.bottom}const Vu=e=>["string","number"].includes(typeof e),$E=({prefixCls:e,copied:r,locale:t,iconOnly:n,tooltips:i,icon:o,tabIndex:a,onCopy:s,loading:c})=>{const d=Nh(i),f=Nh(o),{copied:l,copy:u}=t??{},h=r?l:u,v=dl(d[r?1:0],h),b=typeof v=="string"?v:h;return M.createElement(_i,{title:v,getPopupContainer:p=>p.parentNode},M.createElement("button",{type:"button",className:_e(`${e}-copy`,{[`${e}-copy-success`]:r,[`${e}-copy-icon-only`]:n}),onClick:s,"aria-label":b,tabIndex:a},r?dl(f[1],M.createElement(Og,null),!0):dl(f[0],c?M.createElement(Ag,null):M.createElement(Tg,null),!0)))},Wi=M.forwardRef(({style:e,children:r},t)=>{const n=M.useRef(null);return M.useImperativeHandle(t,()=>({isExceed:()=>{const i=n.current;return i.scrollHeight>i.clientHeight},getHeight:()=>n.current.clientHeight})),M.createElement("span",{"aria-hidden":!0,ref:n,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},r)}),BE=e=>e.reduce((r,t)=>r+(Vu(t)?String(t).length:1),0);function jh(e,r){let t=0;const n=[];for(let i=0;i<e.length;i+=1){if(t===r)return n;const o=e[i],s=Vu(o)?String(o).length:1,c=t+s;if(c>r){const d=r-t;return n.push(String(o).slice(0,d)),n}n.push(o),t=c}return e}const hl=0,pl=1,vl=2,gl=3,Ih=4,Gi={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function qE(e){const{enableMeasure:r,width:t,text:n,children:i,rows:o,expanded:a,miscDeps:s,onEllipsis:c}=e,d=M.useMemo(()=>fn(n),[n]),f=M.useMemo(()=>BE(d),[n]),l=M.useMemo(()=>i(d,!1),[n]),[u,h]=M.useState(null),v=M.useRef(null),b=M.useRef(null),p=M.useRef(null),m=M.useRef(null),g=M.useRef(null),[x,y]=M.useState(!1),[w,_]=M.useState(hl),[S,E]=M.useState(0),[R,T]=M.useState(null);st(()=>{_(r&&t&&f?pl:hl)},[t,n,o,r,d]),st(()=>{var P,I,$,H;if(w===pl){_(vl);const G=b.current&&getComputedStyle(b.current).whiteSpace;T(G)}else if(w===vl){const G=!!(!((P=p.current)===null||P===void 0)&&P.isExceed());_(G?gl:Ih),h(G?[0,f]:null),y(G);const D=((I=p.current)===null||I===void 0?void 0:I.getHeight())||0,F=o===1?0:(($=m.current)===null||$===void 0?void 0:$.getHeight())||0,N=((H=g.current)===null||H===void 0?void 0:H.getHeight())||0,L=Math.max(D,F+N);E(L+1),c(G)}},[w]);const C=u?Math.ceil((u[0]+u[1])/2):0;st(()=>{var P;const[I,$]=u||[0,0];if(I!==$){const G=(((P=v.current)===null||P===void 0?void 0:P.getHeight())||0)>S;let D=C;$-I===1&&(D=G?I:$),h(G?[I,D]:[D,$])}},[u,C]);const O=M.useMemo(()=>{if(!r)return i(d,!1);if(w!==gl||!u||u[0]!==u[1]){const P=i(d,!1);return[Ih,hl].includes(w)?P:M.createElement("span",{style:Object.assign(Object.assign({},Gi),{WebkitLineClamp:o})},P)}return i(a?d:jh(d,u[0]),x)},[a,w,u,d].concat(Se(s))),A={width:t,margin:0,padding:0,whiteSpace:R==="nowrap"?"normal":"inherit"};return M.createElement(M.Fragment,null,O,w===vl&&M.createElement(M.Fragment,null,M.createElement(Wi,{style:Object.assign(Object.assign(Object.assign({},A),Gi),{WebkitLineClamp:o}),ref:p},l),M.createElement(Wi,{style:Object.assign(Object.assign(Object.assign({},A),Gi),{WebkitLineClamp:o-1}),ref:m},l),M.createElement(Wi,{style:Object.assign(Object.assign(Object.assign({},A),Gi),{WebkitLineClamp:1}),ref:g},i([],!0))),w===gl&&u&&u[0]!==u[1]&&M.createElement(Wi,{style:Object.assign(Object.assign({},A),{top:400}),ref:v},i(jh(d,C),!0)),w===pl&&M.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const Rg=({enableEllipsis:e,isEllipsis:r,children:t,tooltipProps:n})=>!n?.title||!e?t:M.createElement(_i,Object.assign({open:r?void 0:!1},n),t);process.env.NODE_ENV!=="production"&&(Rg.displayName="EllipsisTooltip");var zE=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function HE({mark:e,code:r,underline:t,delete:n,strong:i,keyboard:o,italic:a},s){let c=s;function d(f,l){l&&(c=M.createElement(f,{},c))}return d("strong",i),d("u",t),d("del",n),d("code",r),d("mark",e),d("kbd",o),d("i",a),c}const VE="...",Mh=["delete","mark","code","underline","strong","keyboard","italic"],UE=M.forwardRef((e,r)=>{var t;const{prefixCls:n,className:i,style:o,type:a,disabled:s,children:c,ellipsis:d,editable:f,copyable:l,component:u,title:h}=e,v=zE(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:p}=M.useContext(gr),[m]=T1("Text"),g=M.useRef(null),x=M.useRef(null),y=b("typography",n),w=Mp(v,Mh),[_,S]=fl(f),[E,R]=Gr(!1,{value:S.editing}),{triggerType:T=["icon"]}=S,C=xe=>{var Ee;xe&&((Ee=S.onStart)===null||Ee===void 0||Ee.call(S)),R(xe)},O=RE(E);st(()=>{var xe;!E&&O&&((xe=x.current)===null||xe===void 0||xe.focus())},[E]);const A=xe=>{xe?.preventDefault(),C(!0)},P=xe=>{var Ee;(Ee=S.onChange)===null||Ee===void 0||Ee.call(S,xe),C(!1)},I=()=>{var xe;(xe=S.onCancel)===null||xe===void 0||xe.call(S),C(!1)},[$,H]=fl(l),{copied:G,copyLoading:D,onClick:F}=AE({copyConfig:H,children:c}),[N,L]=M.useState(!1),[B,X]=M.useState(!1),[W,q]=M.useState(!1),[j,V]=M.useState(!1),[U,K]=M.useState(!0),[J,ne]=fl(d,{expandable:!1,symbol:xe=>xe?m?.collapse:m?.expand}),[ce,re]=Gr(ne.defaultExpanded||!1,{value:ne.expanded}),de=J&&(!ce||ne.expandable==="collapsible"),{rows:oe=1}=ne,se=M.useMemo(()=>de&&(ne.suffix!==void 0||ne.onEllipsis||ne.expandable||_||$),[de,ne,_,$]);st(()=>{J&&!se&&(L(Sd("webkitLineClamp")),X(Sd("textOverflow")))},[se,J]);const[Q,ee]=M.useState(de),ue=M.useMemo(()=>se?!1:oe===1?B:N,[se,B,N]);st(()=>{ee(ue&&de)},[ue,de]);const le=de&&(Q?j:W),ae=de&&oe===1&&Q,pe=de&&oe>1&&Q,fe=(xe,Ee)=>{var at;re(Ee.expanded),(at=ne.onExpand)===null||at===void 0||at.call(ne,xe,Ee)},[me,Oe]=M.useState(0),qe=({offsetWidth:xe})=>{Oe(xe)},Ce=xe=>{var Ee;q(xe),W!==xe&&((Ee=ne.onEllipsis)===null||Ee===void 0||Ee.call(ne,xe))};M.useEffect(()=>{const xe=g.current;if(J&&Q&&xe){const Ee=FE(xe);j!==Ee&&V(Ee)}},[J,Q,c,pe,U,me]),M.useEffect(()=>{const xe=g.current;if(typeof IntersectionObserver>"u"||!xe||!Q||!de)return;const Ee=new IntersectionObserver(()=>{K(!!xe.offsetParent)});return Ee.observe(xe),()=>{Ee.disconnect()}},[Q,de]);const Ke=kE(ne.tooltip,S.text,c),ke=M.useMemo(()=>{if(!(!J||Q))return[S.text,c,h,Ke.title].find(Vu)},[J,Q,h,Ke.title,le]);if(E)return M.createElement(wE,{value:(t=S.text)!==null&&t!==void 0?t:typeof c=="string"?c:"",onSave:P,onCancel:I,onEnd:S.onEnd,prefixCls:y,className:i,style:o,direction:p,component:u,maxLength:S.maxLength,autoSize:S.autoSize,enterIcon:S.enterIcon});const Pe=()=>{const{expandable:xe,symbol:Ee}=ne;return xe?M.createElement("button",{type:"button",key:"expand",className:`${y}-${ce?"collapse":"expand"}`,onClick:at=>fe(at,{expanded:!ce}),"aria-label":ce?m.collapse:m?.expand},typeof Ee=="function"?Ee(ce):Ee):null},Fe=()=>{if(!_)return;const{icon:xe,tooltip:Ee,tabIndex:at}=S,Nt=fn(Ee)[0]||m?.edit,zt=typeof Nt=="string"?Nt:"";return T.includes("icon")?M.createElement(_i,{key:"edit",title:Ee===!1?"":Nt},M.createElement("button",{type:"button",ref:x,className:`${y}-edit`,onClick:A,"aria-label":zt,tabIndex:at},xe||M.createElement(_p,{role:"button"}))):null},Ne=()=>$?M.createElement($E,Object.assign({key:"copy"},H,{prefixCls:y,copied:G,locale:m,onCopy:F,loading:D,iconOnly:c==null})):null,we=xe=>[xe&&Pe(),Fe(),Ne()],Ve=xe=>[xe&&!ce&&M.createElement("span",{"aria-hidden":!0,key:"ellipsis"},VE),ne.suffix,we(xe)];return M.createElement(Sn,{onResize:qe,disabled:!de},xe=>M.createElement(Rg,{tooltipProps:Ke,enableEllipsis:de,isEllipsis:le},M.createElement(Cg,Object.assign({className:_e({[`${y}-${a}`]:a,[`${y}-disabled`]:s,[`${y}-ellipsis`]:J,[`${y}-ellipsis-single-line`]:ae,[`${y}-ellipsis-multiple-line`]:pe},i),prefixCls:n,style:Object.assign(Object.assign({},o),{WebkitLineClamp:pe?oe:void 0}),component:u,ref:gi(xe,g,r),direction:p,onClick:T.includes("text")?A:void 0,"aria-label":ke?.toString(),title:h},w),M.createElement(qE,{enableMeasure:de&&!Q,text:c,rows:oe,width:me,onEllipsis:Ce,expanded:ce,miscDeps:[G,ce,D,_,$,m].concat(Se(Mh.map(Ee=>e[Ee])))},(Ee,at)=>HE(e,M.createElement(M.Fragment,null,Ee.length>0&&at&&!ce&&ke?M.createElement("span",{key:"show-content","aria-hidden":!0},Ee):Ee,Ve(at)))))))}),WE=M.forwardRef((e,r)=>M.createElement(UE,Object.assign({ref:r},e,{component:"div"}))),Lh=(e,r)=>{const t=window.innerWidth,n=window.innerHeight,i=Math.min(Math.max(e.x,0),Math.max(0,t-r.width)),o=Math.min(Math.max(e.y,0),Math.max(0,n-r.height));return{x:i,y:o}},GE=({title:e="팝업",width:r=800,height:t=600,minWidth:n=400,minHeight:i=300,onClose:o,children:a,footer:s,showMask:c=!0,maskStyle:d={backgroundColor:"rgba(0,0,0,0.3)"},buttons:f=[]})=>{const[l,u]=z.useState(r),[h,v]=z.useState(t),b=z.useRef(null),{loading:p}=Me.usePopupLoadingStore(),m=z.useMemo(()=>{const E=Math.max(0,(window.innerWidth-r)/2),R=Math.max(0,(window.innerHeight-t)/2);return{x:E,y:R}},[r,t]),[g,x]=z.useState(m),y=(E,R)=>{const T=Lh({x:R.x,y:R.y},{width:l,height:h});x(T)},w=(E,R,T,C,O)=>{const A={width:parseInt(T.style.width,10),height:parseInt(T.style.height,10)},P=Lh(O,A);u(A.width),v(A.height),x(P)},_=()=>b.current??document.body,S=[...f,{key:"CLOSE",text:"닫기",type:"default",danger:!1,disabled:!1,onClick:o}];return k.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[c&&k.jsx("div",{onClick:o,style:{position:"absolute",inset:0,...d,zIndex:0}}),k.jsxs($h.Rnd,{className:"bwg-draggable",size:{width:l,height:h},position:g,bounds:"window",minWidth:n,minHeight:i,onDragStop:y,onResizeStop:w,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:[k.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:k.jsx(hu,{getPopupContainer:_,children:k.jsx(Wr,{type:"vertical",children:k.jsxs(Y.Card,{className:"popup-drag-container",title:k.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:k.jsx("div",{style:{display:"flex",gap:8},children:S.map(E=>k.jsx(Y.Button,{type:E.type,danger:E.danger,disabled:E.disabled,className:"bwg-btn",onClick:E.onClick,children:E.text},E.key))}),children:[k.jsxs("div",{className:"rnd-cancel",style:{height:"100%"},children:[a,p&&k.jsx(Bh.LoadingOverlay,{})]}),s&&k.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})]})})})}),k.jsx("div",{ref:b,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},{TextArea:KE}=Y.Input,Ki=[{label:"요청",value:"RQST"},{label:"문의",value:"INQR"}],YE={INQR:"blue",RQST:"green",RPRT:"red",SGSN:"purple"},Dh=[{label:"대기",value:"READY"},{label:"담당자 지정",value:"ASSIGNED"},{label:"처리중",value:"PROCESSING"},{label:"처리완료",value:"COMPLETED"},{label:"반려",value:"REJECTED"}],XE={READY:"gray",ASSIGNED:"blue",PROCESSING:"yellow",COMPLETED:"green",REJECTED:"red"},Fh={READY:0,ASSIGNED:25,PROCESSING:50,COMPLETED:100,REJECTED:100},ZE=({open:e,onClose:r})=>{const{searchBoxRef:t}=vi.useSearchBox(),n=z.useRef(null),i=z.useRef(null),{user:o}=Me.useUserStore(),{activeMenuItem:a}=Me.useMenuViewStore(),[s]=Y.Form.useForm(),[c,d]=z.useState(!1),[f,l]=z.useState(!1),[u,h]=z.useState(!1),[v,b]=z.useState(!1),[p,m]=z.useState(!1),[g,x]=z.useState("list"),[y,w]=z.useState(null),_=z.useRef(null),[S,E]=z.useState([]),[R,T]=z.useState(""),[C,O]=z.useState(!1),[A,P]=z.useState(15),I=z.useRef(null),$=z.useMemo(()=>Qi((oe,se,Q,ee,ue)=>{const le=oe.getValue(se.index?.itemIndex,"type");ue.render(k.jsx(Y.Tag,{color:YE[le],children:Ki.find(ae=>ae.value===le)?.label}))}),[]),H=z.useMemo(()=>Qi((oe,se,Q,ee,ue)=>{const le=oe.getValue(se.index?.itemIndex,"status");ue.render(k.jsx(Y.Tag,{color:XE[le],children:Dh.find(ae=>ae.value===le)?.label}))}),[]),G=z.useMemo(()=>Qi((oe,se,Q,ee,ue)=>{oe.getValue(se.index?.itemIndex,"urgentYn")==="Y"?ue.render(k.jsx(Re.AlertTwoTone,{twoToneColor:"red"})):ue.render(k.jsx(k.Fragment,{}))}),[]),D=[{fieldName:"boardMstrId",header:{text:"글 번호"},width:80},{name:"type",fieldName:"type",header:{text:"등록구분"},width:80,renderer:"tagType"},{fieldName:"title",header:{text:"제목"},width:200},{fieldName:"content",header:{text:"내용"},width:200,visible:!1},{name:"status",fieldName:"status",header:{text:"상태"},width:80,renderer:"statusTag"},{fieldName:"rgstUserId",visible:!1},{fieldName:"rgstUserNm",header:{text:"등록자"},width:100},{fieldName:"rgstDt",header:{text:"등록일자"},width:120,renderer:Yo.realFormat.maskYmd},{fieldName:"dueDt",header:{text:"마감요청일자"},width:120,renderer:Yo.realFormat.maskYmd},{fieldName:"urgentYn",header:{text:"긴급여부"},width:80,renderer:"alert"},{fieldName:"prcsUserId",visible:!1},{fieldName:"prcsUserNm",header:{text:"처리담당자"},width:100},{fieldName:"prcsDt",header:{text:"처리일자"},width:120,renderer:Yo.realFormat.maskYmd},{fieldName:"scrnId",header:{text:"화면ID"},width:100,visible:!1},{fieldName:"menuId",header:{text:"메뉴ID"},width:100,visible:!1}],F={onCellDblClicked:(oe,se)=>{const Q=se.itemIndex??-1;if(Q<0)return;const ee=oe.getValues(Q);console.log("🔍 그리드 셀 더블클릭 이벤트:",ee);const ue={...ee,menuId:a?.menuId,menuNm:a?.menuNm,scrnId:a?.scrnId};s.setFieldsValue(ue),h(ue.rgstUserId===o?.userId),b(ue.status==="COMPLETED"||ue.status==="REJECTED"),x("detail")}},N=()=>{s.resetFields(),x("list"),re.SCMBoardMstr0001(1,20)},L=async oe=>{d(!0);try{s.validateFields().then(se=>{console.log("문의/신고 제출:",se),g==="new"?re.SCMBoardMstr0003(se):g==="detail"&&re.SCMBoardMstr0004(se)})}catch(se){console.error("문의/신고 제출 실패:",se)}finally{d(!1)}},B=()=>{re.SCMBoardMstr0005()},X=()=>{t?.current?.resetForm(),s.resetFields(),g==="new"?x("list"):(x("list"),r())},W=()=>{t?.current?.resetForm(),s.resetFields(),x("list"),r()},q=()=>{(g==="detail"||g==="new")&&x("list")},j=()=>{s.resetFields(),x("new")},V=()=>{console.log("댓글 수동 새로고침"),P(15)},U=()=>{if(!R.trim()){Y.message.warning("댓글 상세내용 작성");return}re.SCMBoardDtls0002(s.getFieldValue("boardMstrId"),R.trim()),T(""),setTimeout(()=>{_.current&&(_.current.scrollTop=_.current.scrollHeight)},100)},K=oe=>{const se=S.find(Q=>Q.id===oe);if(se&&se.regUserId!==o?.userId){Y.message.error("본인이 작성한 댓글만 삭제할 수 있습니다.");return}re.SCMBoardDtls0003(s.getFieldValue("boardMstrId"),oe)};z.useEffect(()=>{e&&setTimeout(()=>{re.SCMBoardMstr0001(1,20)},100)},[e]);const J=()=>k.jsxs(Hr,{border:!1,children:[k.jsx(wo,{border:!0,ref:t,reqRows:k.jsxs(k.Fragment,{children:[k.jsx(Y.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:k.jsx(Y.Col,{span:24,children:k.jsx(Qe.BwgFormItem,{label:"화면 정보",name:void 0,children:k.jsxs(Y.Space.Compact,{style:{width:"100%"},children:[k.jsx(Y.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:k.jsx(Y.Input,{disabled:!0})}),k.jsx(Y.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:k.jsx(Y.Input,{disabled:!0})})]})})})}),k.jsxs(Y.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:[k.jsx(Y.Col,{span:6,children:k.jsx(Qe.BwgSelect,{itemProps:{label:"등록구분",name:"type"},selectProps:{options:Ki}})}),k.jsx(Y.Col,{span:12,children:k.jsx(Qe.BwgRangePicker,{itemProps:{label:"등록일자",name:"rgstDt"},inputProps:{allowEmpty:!0}})}),k.jsx(Y.Col,{span:6,children:k.jsx(Qe.BwgSwitch,{itemProps:{name:"myArticle",label:"내 글만"},inputProps:{format:"YN",onChange:()=>console.log("hello!!")}})})]}),k.jsx(Y.Row,{children:k.jsx(Y.Col,{span:24,children:k.jsx(Qe.BwgInput,{itemProps:{label:"제목 및 내용",name:"keyword"}})})})]})}),k.jsx(sp,{ref:I,gridColumns:D,gridEvents:F,gridOptions:{},renderers:[{name:"tagType",renderer:$},{name:"statusTag",renderer:H},{name:"alert",renderer:G}]}),k.jsx(yu,{ref:n,mode:"server",onServerPageChange:(oe,se)=>{console.log("🔄 서버 모드 페이징 변경:",{page:oe,size:se}),re.SCMBoardMstr0001(oe,se)},pageSizeOptions:[10,20,50,100]})]}),ne=()=>k.jsxs(Y.Splitter,{children:[k.jsx(Y.Splitter.Panel,{defaultSize:"70%",min:"60%",max:"80%",style:{paddingRight:"15px",overflowX:"hidden",overflowY:"hidden"},children:k.jsx(Hr,{children:k.jsxs(Y.Form,{form:s,onFinish:L,labelCol:{flex:"100px"},disabled:!u||v,children:[k.jsxs(Y.Row,{gutter:[16,8],children:[k.jsxs(Y.Col,{span:8,children:[k.jsx(Y.Form.Item,{name:"boardMstrId",hidden:!0,children:k.jsx(Y.Input,{})}),k.jsx(Qe.BwgSelect,{itemProps:{name:"type",label:"구분"},selectProps:{options:Ki}})]}),k.jsxs(Y.Col,{span:16,children:[k.jsx(Qe.BwgFormItem,{label:"화면 정보",name:void 0,children:k.jsxs(Y.Space.Compact,{children:[k.jsx(Y.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:k.jsx(Y.Input,{readOnly:!0})}),k.jsx(Y.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:k.jsx(Y.Input,{readOnly:!0})})]})}),k.jsx(Y.Form.Item,{name:"scrnId",style:{width:"100%"},hidden:!0,children:k.jsx(Y.Input,{readOnly:!0})})]})]}),k.jsxs(Y.Row,{gutter:[16,8],children:[k.jsx(Y.Col,{span:8,children:k.jsx(Qe.BwgFormItem,{label:"작성자",name:void 0,children:k.jsxs(Y.Space.Compact,{style:{width:"100%"},children:[k.jsx(Y.Form.Item,{name:"rgstUserId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:k.jsx(Y.Input,{readOnly:!0})}),k.jsx(Y.Form.Item,{name:"rgstUserNm",style:{width:"60%",marginBottom:0},children:k.jsx(Y.Input,{readOnly:!0})})]})})}),k.jsx(Y.Col,{span:8,children:k.jsx(Qe.BwgDatePicker,{itemProps:{label:"작성일자",name:"rgstDt"},inputProps:{disabled:!0}})}),k.jsx(Y.Col,{span:8,children:k.jsx(Qe.BwgSelect,{itemProps:{name:"status",label:"상태"},selectProps:{options:Dh,disabled:!0}})})]}),k.jsxs(Y.Row,{gutter:[16,8],children:[k.jsx(Y.Col,{span:8,children:k.jsx(Qe.BwgDatePicker,{itemProps:{label:"마감요청일",name:"dueDate"}})}),k.jsx(Y.Col,{span:8,children:k.jsxs(Y.Flex,{vertical:!0,gap:2,children:[k.jsx("span",{style:{fontSize:"12px",color:"#000000E0"},children:"진척률"}),k.jsx(Y.Progress,{percent:Fh[s.getFieldValue("status")],status:Fh[s.getFieldValue("status")]>0?"active":"normal",size:"small",format:oe=>`${oe}%`})]})}),k.jsx(Y.Col,{span:8,children:k.jsx(Qe.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),k.jsxs(Y.Row,{gutter:[16,8],children:[k.jsx(Y.Col,{span:8,children:k.jsx(Qe.BwgFormItem,{label:"처리담당자",name:void 0,help:"",children:k.jsxs(Y.Space.Compact,{children:[k.jsx(Y.Form.Item,{name:"processor",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:k.jsx(Y.Input,{readOnly:!0})}),k.jsx(Y.Form.Item,{name:"processorNm",style:{width:"60%",marginBottom:0},children:k.jsx(Y.Input,{readOnly:!0})})]})})}),k.jsx(Y.Col,{span:8,children:k.jsx(Qe.BwgDatePicker,{itemProps:{label:"처리일자",name:"processDt"}})})]}),k.jsx(Y.Row,{gutter:[16,8],children:k.jsx(Y.Col,{span:24,children:k.jsx(Qe.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},children:k.jsx(Y.Input,{})})})}),k.jsx(bl,{border:!1,itemProps:{name:"content",label:"내용",rules:[{required:!0,message:"내용을 입력하세요."}]},editorProps:{isEditing:u&&!v,title:{title:"에디터"}}})]})})}),k.jsx(Y.Splitter.Panel,{collapsible:!0,style:{paddingLeft:"15px"},children:k.jsxs(Hr,{style:{flex:"0 0 400px",display:"flex",flexDirection:"column"},children:[k.jsxs("div",{style:{borderBottom:"1px solid #e8e8e8",paddingBottom:"12px",marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[k.jsx("span",{style:{fontSize:"14px",fontWeight:"600",color:"#262626"},children:"댓글"}),k.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[k.jsx(Y.Button,{type:"text",icon:k.jsx(Re.ReloadOutlined,{spin:C||p}),onClick:V,disabled:C||p,size:"small",style:{fontSize:"12px",color:v?"#d9d9d9":p?"#8c8c8c":"#595959",height:"24px",padding:"0 8px"}}),!v&&k.jsx("span",{style:{position:"absolute",top:"-4px",right:"-4px",fontSize:"10px",fontWeight:"700",color:C?"#8c8c8c":"#1890ff",minWidth:"14px",height:"14px",lineHeight:"14px",textAlign:"center",borderRadius:"50%",pointerEvents:"none"},children:A})]})]}),k.jsx("div",{ref:_,style:{flex:1,overflowY:"auto",marginBottom:"16px",minHeight:0,position:"relative"},children:p?k.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"200px",color:"#8c8c8c"},children:[k.jsx("div",{style:{marginBottom:"12px"},children:k.jsx(Re.ReloadOutlined,{spin:!0,style:{fontSize:"24px"}})}),k.jsx("div",{style:{fontSize:"13px"},children:"댓글을 불러오는 중..."})]}):S.length===0?k.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"200px",color:"#8c8c8c"},children:k.jsx("div",{style:{fontSize:"13px"},children:"등록된 댓글이 없습니다."})}):k.jsx(Y.List,{dataSource:S,renderItem:oe=>k.jsxs(Y.List.Item,{style:{position:"relative",paddingRight:"20px",padding:"12px 20px 12px 12px",borderBottom:"1px solid #f0f0f0"},children:[k.jsx(Y.List.Item.Meta,{avatar:k.jsx(Y.Avatar,{size:32,style:{backgroundColor:"#1890ff",fontSize:"13px"},children:oe.author[0]}),title:k.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"4px"},children:[k.jsx("span",{style:{fontWeight:"500",fontSize:"13px",color:"#262626"},children:oe.author}),k.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:oe.regDt})]}),description:k.jsx("span",{style:{fontSize:"13px",color:"#595959",lineHeight:"1.5"},children:oe.content})}),oe.regUserId===o?.userId&&k.jsx(Y.Button,{type:"text",danger:!0,icon:k.jsx(Re.DeleteOutlined,{style:{fontSize:"12px"}}),size:"small",onClick:()=>K(oe.id),disabled:p,style:{position:"absolute",right:"8px",top:"62%",transform:"translateY(-50%)",opacity:p?.3:.5,height:"24px",width:"24px",padding:0},onMouseEnter:se=>{p||(se.currentTarget.style.opacity="1")},onMouseLeave:se=>{se.currentTarget.style.opacity=p?"0.3":"0.5"}})]},oe.id)})}),k.jsx("div",{style:{padding:"12px",borderTop:"1px solid #e8e8e8",backgroundColor:v?"#f5f5f5":"#fafafa",flexShrink:0,marginTop:"auto"},children:v?k.jsxs("div",{style:{textAlign:"center",padding:"20px",color:"#8c8c8c",fontSize:"13px",backgroundColor:"#ffffff",borderRadius:"6px",border:"1px solid #e8e8e8"},children:[k.jsx("div",{style:{marginBottom:"8px"},children:k.jsx(Re.AlertTwoTone,{twoToneColor:"#faad14"})}),k.jsx("div",{children:"이미 완료처리된 게시글입니다."}),k.jsx("div",{style:{fontSize:"11px",marginTop:"4px"},children:"댓글을 작성할 수 없습니다."})]}):k.jsxs(k.Fragment,{children:[k.jsx("div",{style:{marginBottom:"8px"},children:k.jsx(KE,{rows:2,placeholder:p?"댓글 처리 중...":"댓글을 입력하세요...",value:R,onChange:oe=>T(oe.target.value),maxLength:300,disabled:p,style:{borderRadius:"6px",border:"1px solid #d9d9d9",resize:"none",fontSize:"13px",backgroundColor:p?"#f5f5f5":"#ffffff",color:p?"#8c8c8c":"#000000"},onFocus:oe=>{p||(oe.target.style.borderColor="#1890ff",oe.target.style.boxShadow="0 0 0 2px rgba(24, 144, 255, 0.05)")},onBlur:oe=>{oe.target.style.borderColor="#d9d9d9",oe.target.style.boxShadow="none"}})}),k.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[k.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:p?"처리 중...":`${R.length} / 300자`}),k.jsx(Y.Button,{type:"primary",onClick:U,size:"small",loading:p,style:{borderRadius:"4px",fontSize:"12px",height:"28px",padding:"0 16px",fontWeight:"500"},disabled:!R.trim()||p,children:p?"등록 중...":"등록"})]})]})})]})})]}),ce=()=>k.jsx(Hr,{children:k.jsxs(Qe.BwgForm,{form:s,onFinish:L,initialValues:{type:"INQR"},labelCol:{flex:"100px"},children:[k.jsxs(Y.Row,{gutter:[16,8],children:[k.jsx(Y.Col,{span:8,children:k.jsx(Qe.BwgSelect,{itemProps:{name:"type",label:"구분",rules:[{required:!0,message:"구분을 선택해주세요."}]},selectProps:{options:Ki}})}),k.jsxs(Y.Col,{span:16,children:[k.jsx(Qe.BwgFormItem,{label:"화면 정보",name:void 0,children:k.jsxs(Y.Space.Compact,{style:{width:"100%"},children:[k.jsx(Y.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:k.jsx(Y.Input,{readOnly:!0})}),k.jsx(Y.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:k.jsx(Y.Input,{readOnly:!0})})]})}),k.jsx(Y.Form.Item,{name:"scrnId",style:{width:"100%"},hidden:!0,children:k.jsx(Y.Input,{readOnly:!0})})]})]}),k.jsxs(Y.Row,{gutter:[16,8],children:[k.jsx(Y.Col,{span:8,children:k.jsx(Qe.BwgFormItem,{label:"작성자",name:void 0,children:k.jsxs(Y.Space.Compact,{style:{width:"100%"},children:[k.jsx(Y.Form.Item,{name:"rgstUserId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:k.jsx(Y.Input,{readOnly:!0})}),k.jsx(Y.Form.Item,{name:"rgstUserNm",style:{width:"60%",marginBottom:0},children:k.jsx(Y.Input,{readOnly:!0})})]})})}),k.jsx(Y.Col,{span:6,children:k.jsx(Qe.BwgFormItem,{label:"작성일자",name:"rgstDt",style:{width:"100%"},children:k.jsx(Y.DatePicker,{disabled:!0})})}),k.jsx(Y.Col,{span:6,children:k.jsx(Qe.BwgFormItem,{label:"마감요청일",name:"dueDate",style:{width:"100%"},children:k.jsx(Y.DatePicker,{})})}),k.jsx(Y.Col,{span:4,children:k.jsx(Qe.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),k.jsx(Y.Row,{gutter:[16,8],children:k.jsx(Y.Col,{span:24,children:k.jsx(Qe.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},rules:[{required:!0,message:"제목을 입력해주세요."}],children:k.jsx(Y.Input,{})})})}),k.jsx(bl,{border:!1,itemProps:{name:"content"},editorProps:{isEditing:f,title:{title:k.jsxs(k.Fragment,{children:[k.jsx(Re.EditOutlined,{style:{marginRight:"5px"}})," 상세내용 작성"]}),children:k.jsx(Y.Button,{icon:k.jsx(Re.EyeFilled,{}),onClick:()=>l(!f),children:"미리보기"})}}})]})});z.useEffect(()=>{g==="new"&&(l(!0),s.setFieldsValue({type:"INQR",menuId:a?.menuId,menuNm:a?.menuNm,scrnId:a?.scrnId,rgstUserId:o?.userId,rgstUserNm:o?.userNm,rgstDt:Ng(),content:""}))},[g,s,a,o]),z.useEffect(()=>{if(g==="detail"&&!v){const oe=setInterval(()=>{P(se=>se<=1?(console.log("🔄 댓글 자동 갱신 실행 (카운트다운 완료)"),re.SCMBoardDtls0001(s.getFieldValue("boardMstrId")),15):se-1)},1e3);return re.SCMBoardDtls0001(s.getFieldValue("boardMstrId")),()=>{console.log("🧹 댓글 인터벌 정리"),clearInterval(oe)}}else g==="detail"&&v&&(console.log("📋 완료된 게시글 - 댓글 조회만"),re.SCMBoardDtls0001(s.getFieldValue("boardMstrId")))},[g,v,s]),z.useEffect(()=>()=>{console.log("🧹 컴포넌트 언마운트 - 모든 인터벌 정리"),i.current&&(clearInterval(i.current),i.current=null)},[]),z.useEffect(()=>{g==="list"&&a&&(t?.current?.setFormData({menuId:a?.menuId,menuNm:a?.menuNm}),re.SCMBoardMstr0001(1,20))},[g,a]),z.useEffect(()=>{e&&a&&t?.current?.setFormData({menuId:a?.menuId,menuNm:a?.menuNm})},[e,a]);const re={SCMBoardMstr0001:async(oe,se)=>{const Q=oe||n.current?.currentPage||1,ee=se||n.current?.pageSize||20,ue={...t?.current?.getFormData(),pageNum:Q,pageCount:ee};console.log("🔍 서버 모드 페이징 요청:",ue);try{const le=await Me.callService("SCMBoardMstr0001",ue,{isPopup:!0});if(le&&le.pageList){const ae=le.pageCnt||0;n.current?.setTotalData(ae),I.current?.addAllData(le.pageList)}else n.current?.setTotalData(0),I.current?.addAllData([]),console.log("📭 서버 모드 페이징 데이터 없음")}catch(le){console.error("❌ SCMBoardMstr0001 호출 실패:",le),Y.message.error("데이터 조회 중 오류가 발생했습니다.")}},SCMBoardMstr0003:oe=>{Me.callService("SCMBoardMstr0003",{...oe,status:"READY"},{isPopup:!0}).then(se=>{console.log("문의/신고 제출 응답:",se),Y.message.success("정상 접수되었습니다."),N()}).catch(se=>{console.error("문의/신고 제출 실패:",se),Y.message.error("접수 중 오류가 발생했습니다.")})},SCMBoardMstr0004:oe=>{Me.callService("SCMBoardMstr0004",{boardMstrId:s.getFieldValue("boardMstrId"),...oe},{isPopup:!0}).then(se=>{console.log("문의/신고 제출 응답:",se),Y.message.success("수정이 완료되었습니다."),N()}).catch(se=>{console.error("문의/신고 변경 실패:",se)})},SCMBoardMstr0005:()=>{Me.callService("SCMBoardMstr0005",{boardMstrId:s.getFieldValue("boardMstrId")},{isPopup:!0}).then(oe=>{console.log("문의/신고 삭제 응답:",oe),Y.message.success("삭제가 완료되었습니다."),N()})},SCMBoardDtls0001:oe=>{m(!0),Me.callService("SCMBoardDtls0001",{boardMstrId:oe},{isPopup:!0,showLoading:!1}).then(se=>{if(se&&se.subList){const Q=se.subList.map(ee=>({id:ee.seq,author:ee.userNm||ee.regUserId,regUserId:ee.regUserId,content:ee.content,regDt:ee.regDt}));E(Q)}else E([])}).catch(se=>{console.error("게시글 댓글 목록 조회 실패:",se),Y.message.error("댓글 목록 조회 중 오류가 발생했습니다.")}).finally(()=>{m(!1),P(15)})},SCMBoardDtls0002:(oe,se)=>{m(!0),Me.callService("SCMBoardDtls0002",{boardMstrId:oe,content:se},{isPopup:!0,showLoading:!1}).then(Q=>{Q&&Q.result===1?(Y.message.success("댓글이 등록되었습니다."),re.SCMBoardDtls0001(oe)):Y.message.error("댓글 등록에 실패했습니다.")}).catch(Q=>{Y.message.error("댓글 등록 중 오류가 발생했습니다.")}).finally(()=>{m(!1)})},SCMBoardDtls0003:(oe,se)=>{m(!0),Me.callService("SCMBoardDtls0003",{boardMstrId:oe,seq:se},{isPopup:!0,showLoading:!1}).then(Q=>{Q&&Q.result===1?(Y.message.success("댓글이 삭제되었습니다."),re.SCMBoardDtls0001(oe)):Y.message.error("댓글 삭제에 실패했습니다.")}).catch(Q=>{Y.message.error("댓글 삭제 중 오류가 발생했습니다.")}).finally(()=>{m(!1)})}},de=()=>{switch(g){case"list":return[{key:"REFRESH",text:"조회",type:"default",onClick:()=>re.SCMBoardMstr0001(),disabled:c},{key:"NEW",text:"신규 등록",type:"primary",onClick:j}];case"detail":return[{key:"BACK",text:"뒤로",type:"default",onClick:q},{key:"EDIT",text:"수정",type:"primary",disabled:!u||v,onClick:()=>s.submit()},{key:"DELETE",text:"삭제",danger:!0,disabled:!u||v,onClick:B}];case"new":return[{key:"SUBMIT",text:"제출",type:"primary",onClick:()=>s.submit(),disabled:c},{key:"CANCEL",text:"취소",type:"default",onClick:X}];default:return[]}};return e?k.jsxs(GE,{title:"게시판",width:1400,height:800,minWidth:600,minHeight:400,onClose:W,buttons:de(),children:[g==="list"&&J(),g==="detail"&&ne(),g==="new"&&ce()]}):null},kg=(e,r,t=null)=>{for(let n=0;n<e.length;n++){const i=e[n];if(i.key===r)return{node:i,ctx:{parent:t,index:n,siblings:e}};if(i.children?.length){const o=kg(i.children,r,i);if(o.node)return o}}return{node:null,ctx:null}},Pg=(e,r)=>{if(!e.children)return!1;for(const t of e.children)if(t.key===r||Pg(t,r))return!0;return!1};function QE({open:e,onClose:r}){const{nodes:t,rootIds:n,addFolder:i,editFolder:o,removeFolder:a,removeMenu:s,moveNode:c}=Zn.useFavoriteStore(),d=z.useRef(null),[f,l]=z.useState([]),[u,h]=z.useState([]),[v,b]=z.useState(""),[p,m]=z.useState("ADD"),[g,x]=z.useState(!1),[y,w]=z.useState("");z.useEffect(()=>{e&&h(n)},[e]),z.useEffect(()=>{const E=_(t,n);l(E)},[t]),z.useEffect(()=>{g&&y&&(d.current.setFieldValue("prntBkmkId",y),d.current.setFieldValue("prntBkmkNm",t[y]?.bkmkNm??"-")),g&&p==="EDIT"&&(d.current.setFieldValue("bkmkId",y),d.current.setFieldValue("bkmkNm",t[y]?.bkmkNm)),!g&&p=="ADD"&&h(E=>[...E,y]),!g&&d.current&&(w("-"),d.current.resetFields())},[g,p,y,t]);const _=(E,R)=>{const T=(C,O="-")=>{const A=E[C];if(!A)return null;const P={key:A.bkmkId,type:A.type,title:A.type==="F"?A.bkmkNm:A.menuNm?`${A.menuNm} (${A.menuId})`:A.menuId,parentId:O,sortOrdr:A.sortOrdr??0};if(A.type==="F"){const $=(A.children??[]).map(H=>T(H,A.bkmkId)).filter(Boolean);return{...P,children:$}}return P};return R.map(C=>T(C,"-")).filter(Boolean)},S=()=>{if(m("ADD"),!v){w("-"),x(!0);return}const E=t[v];if(!E){w("-"),x(!0);return}E.type==="F"?w(E.bkmkId):w(E.prntBkmkId),x(!0)};return k.jsxs(Y.ConfigProvider,{theme:{components:{Modal:{wireframe:!0}}},children:[k.jsxs(Y.Modal,{open:e,okButtonProps:{style:{display:"none"}},cancelText:"닫기",width:560,style:{zIndex:1001},styles:{body:{paddingTop:"12px"}},title:k.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:k.jsxs(Y.Typography.Text,{strong:!0,style:{fontSize:18},children:[k.jsx(Re.FolderOpenFilled,{style:{marginRight:10,fontSize:18,color:"#faad14"}}),"북마크 관리"]})}),onCancel:r,children:[k.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginBottom:10},children:[k.jsx(Y.Button,{color:"blue",variant:"outlined",icon:k.jsx(Re.FolderAddOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:S,children:"새 폴더"}),k.jsxs("div",{children:[k.jsx(Y.Tooltip,{title:"펼치기",children:k.jsx(Y.Button,{icon:k.jsx(Re.PlusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>{const E=Object.values(t).filter(R=>R.type==="F").map(R=>R.bkmkId);h(E)}})}),k.jsx(Y.Tooltip,{title:"접기",children:k.jsx(Y.Button,{icon:k.jsx(Re.MinusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>h([])})})]})]}),k.jsxs("div",{style:{maxHeight:420,height:350,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:8,padding:8},children:[f.length==0&&k.jsx(Y.Empty,{description:k.jsxs(Y.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",k.jsx("br",{}),"새로운 폴더를 생성해보세요."]})}),k.jsx(Y.Tree,{blockNode:!0,draggable:!0,allowDrop:({dropNode:E,dropPosition:R})=>{const T=E.type==="F";return R===0?T:!0},onDrop:E=>{const{dragNode:R,node:T,dropPosition:C,dropToGap:O}=E;if(R.key===T.key||Pg(R,T.key))return;let A,P;if(O){const $=kg(f,T.key).ctx;$.siblings;const H=$.index;A=$.parent?$.parent.key:"-",P=C>0?H+1:H}else{if(T.type!=="F")return;const $=T.children||[];A=T.key,P=$.length}const I=Me.getUserId();if(R.type==="F")c({bkmkId:R.key,newPrntBkmkId:A,sortOrdr:P,userId:I}).catch(()=>{Y.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(A==="-"){Y.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}c({bkmkId:R.key,newPrntBkmkId:A,sortOrdr:P,userId:I}).catch(()=>{Y.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}O===!1&&h($=>Array.from(new Set([...$,T.key])))},showLine:!0,treeData:f,selectedKeys:[v],expandedKeys:u,onExpand:h,onSelect:E=>b(E[0]),titleRender:E=>k.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[k.jsxs("span",{children:[E.type==="F"?"📁":"📄"," ",E.title,E.isNew?k.jsx(Y.Tag,{color:"gold",style:{marginLeft:4,fontSize:"10px",height:"16px",lineHeight:"16px",padding:"0 5px"},children:"N"}):null]}),k.jsxs("span",{style:{display:"inline-flex",gap:8},children:[E.type==="F"&&k.jsxs(k.Fragment,{children:[k.jsx(Re.PlusOutlined,{style:{opacity:.8},onClick:()=>{m("ADD"),w(E.key),x(!0)}}),k.jsx(Re.EditOutlined,{style:{opacity:.8},onClick:()=>{m("EDIT"),w(E.key),x(!0)}})]}),k.jsx(Re.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{E.type==="F"?Y.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>a(E.key)}):Y.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>s(E.key)})}})]})]})})]})]}),k.jsx(Y.ConfigProvider,{theme:{components:{Modal:{titleColor:p==="ADD"?"#0958d9":"#d46b08",headerBg:p==="ADD"?"#e6f4ff":"#fff7e6"}}},children:k.jsx(Y.Modal,{title:k.jsxs(k.Fragment,{children:[p==="ADD"?k.jsx(Re.FolderAddOutlined,{style:{marginRight:10,fontSize:18,color:"#1677ff"}}):k.jsx(Re.EditOutlined,{style:{marginRight:10,fontSize:18,color:"#d46b08"}}),k.jsxs(Y.Typography.Text,{strong:!0,style:{fontSize:17},children:["폴더",p==="ADD"?" 추가":"명 수정"]})]}),open:g,okText:"저장",onOk:()=>{const E=d.current.getFieldValue("bkmkNm"),R=Me.getUserId();if(p==="ADD"){const T=__SYS_CD__??"KH",C=d.current.getFieldValue("prntBkmkId");i(E,C,T,R).then(()=>{x(!1)})}else{const T=d.current.getFieldValue("bkmkId");o(T,R,E).then(()=>{x(!1)})}},centered:!0,width:400,onCancel:()=>x(!1),children:k.jsxs(Qe.BwgForm,{ref:d,children:[k.jsx(Qe.BwgInput,{itemProps:{name:p==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),k.jsx(Qe.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:y==="-"||p==="EDIT"},inputProps:{disabled:!0}}),k.jsx(Qe.BwgInput,{itemProps:{label:"폴더명",name:"bkmkNm"}})]})})})]})}function JE({triggerIcon:e}){const[r,t]=z.useState(!1),[n,i]=z.useState(""),[o,a]=z.useState(null),[s,c]=z.useState([]),[d,f]=z.useState([]),[l,u]=z.useState(!1),[h,v]=z.useState(!1),[b,p]=z.useState(!1),[m,g]=z.useState(null);Zn.useFavoriteStore(D=>D.treeNodes);const{nodes:x,getPrntBkmkIdByMenuId:y,getNodeByMenuId:w,isMenuBookmarked:_,removeMenuByMenuId:S,addMenuToFolder:E,convertToAntTreeData:R}=Zn.useFavoriteStore(),T=Zn.useFavoriteStore(D=>D.rootIds),C=z.useMemo(()=>R(x,T,n,!0),[x,T,n]),O=Me.useMenuViewStore(D=>D.activeMenuItem??{menuId:"",menuNm:""}),A=z.useMemo(()=>{if(!O?.menuId)return"";const D=w(O.menuId);if(!D)return"";if(D.fullPath)return D.fullPath;const F=N=>{const L=x[N];if(!L)return"";if(L.prntBkmkId==="-")return`${L.bkmkNm||O?.menuNm}`;const B=F(L.prntBkmkId);return B?`${B} > ${L.bkmkNm||O?.menuNm}`:L.bkmkNm||O?.menuNm};return console.log("bookmarkNode ::::: ",D),console.log(F(D.bkmkId)),F(D.bkmkId)},[O?.menuId,w,x]);z.useEffect(()=>{r&&O?.menuId&&_(O.menuId)?f([y(O.menuId)]):r&&O?.menuId&&!_(O.menuId)?f(T):(f([]),c([]),g(null),p(!1))},[r,O?.menuId,_,y]),z.useEffect(()=>{if(!b||!O?.menuId)return;const D=y(O.menuId);!D||!x[D]||(i(""),c([D]),g(D))},[b,O?.menuId,x,y]);const P=(D,F)=>{E(D,F).then(N=>{console.log("AddMenuToFolder ::::: ",N),N||f(L=>L.includes(D)?L:[...L,D])})},I=D=>{S(D)},$=async D=>{O?.menuId&&(await S(O.menuId),await E(D,O),p(!1),g(null),f(F=>F.includes(D)?F:[...F,D]))},H=()=>k.jsxs("div",{style:{width:360},children:[k.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:k.jsxs(Y.Space,{direction:"vertical",style:{width:"100%"},children:[k.jsxs(Y.Typography.Text,{strong:!0,style:{fontSize:18},children:[k.jsx(Y.Button,{type:"text",icon:k.jsx(Re.ArrowLeftOutlined,{}),onClick:()=>p(!1),style:{marginRight:4}}),"폴더 변경"]}),O&&k.jsxs(Y.Typography.Text,{type:"secondary",children:["현재 화면: ",k.jsx("b",{children:O.menuNm})," ",k.jsxs("span",{style:{opacity:.7},children:["(",O.menuId,")"]})]})]})}),G(),k.jsxs("div",{style:{padding:12,borderTop:"1px solid #f0f0f0",display:"flex",justifyContent:"flex-end",gap:8},children:[k.jsx(Y.Button,{onClick:()=>{p(!1),g(null)},children:"취소"}),k.jsx(Y.Button,{type:"primary",disabled:!m,onClick:()=>m&&$(String(m)),children:"이동"})]})]}),G=()=>k.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:8},children:[k.jsxs(Y.Space,{style:{width:"100%",marginBottom:8,display:"flex",justifyContent:"space-between"},children:[k.jsx(Y.Input,{placeholder:"검색(폴더명)",prefix:k.jsx(Re.SearchOutlined,{}),allowClear:!0,value:n,onChange:D=>i(D.target.value),style:{width:"260px",height:28}}),k.jsxs(Y.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#6f6f6f",defaultHoverBorderColor:"#6f6f6f"}}},children:[k.jsx(Y.Button,{icon:k.jsx(Re.PlusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>{const D=Object.values(x).filter(F=>F.type==="F").map(F=>F.bkmkId);f(D)},title:"모두 확장"}),k.jsx(Y.Button,{icon:k.jsx(Re.MinusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>f([]),title:"모두 축소"})]})]}),C.length===0?k.jsx(Y.Empty,{description:k.jsxs(Y.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",k.jsx("br",{}),"새로운 폴더를 만들어 시작해보세요."]}),image:Y.Empty.PRESENTED_IMAGE_SIMPLE}):k.jsx(Y.Tree,{blockNode:!0,showLine:!0,treeData:C,selectedKeys:s,expandedKeys:d,onExpand:f,onSelect:D=>{c(D),g(D[0])},autoExpandParent:!0,titleRender:D=>{const F=String(D.key),N=o===F;return k.jsxs("div",{onMouseEnter:()=>a(F),onMouseLeave:()=>a(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[k.jsx("div",{children:D.title}),!_(O?.menuId)&&O&&N&&k.jsx(Y.Button,{size:"small",type:"link",onClick:L=>{L.stopPropagation(),P(F,O)},children:"+ 현재화면 추가"})]})}})]});return k.jsxs(k.Fragment,{children:[k.jsx(Y.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:b?H():k.jsxs("div",{style:{width:360},children:[k.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:k.jsxs(Y.Space,{direction:"vertical",style:{width:"100%"},children:[k.jsxs(Y.Typography.Text,{strong:!0,style:{fontSize:18},children:["📌 북마크"," ",_(O?.menuId)?"저장됨":"추가"]}),O&&k.jsxs(Y.Typography.Text,{type:"secondary",children:["현재 화면: ",k.jsx("b",{children:O.menuNm})," ",k.jsxs("span",{style:{opacity:.7},children:["(",O.menuId,")"]})]})]})}),_(O?.menuId)?k.jsxs("div",{style:{padding:12,margin:8,borderRadius:8,backgroundColor:"#f5f5f5"},children:[k.jsx(Y.Typography.Text,{type:"secondary",style:{fontSize:12},children:"저장 위치"}),k.jsx("div",{style:{marginTop:4},children:`📁 > ${A}`||"알 수 없음"})]}):G(),k.jsxs(Wr,{style:{padding:8,borderTop:"1px solid #f0f0f0"},layoutAlign:"right",children:[O&&!_(O.menuId)?k.jsx(Y.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},type:"primary",icon:k.jsx(Re.PlusOutlined,{}),onClick:()=>{const D=String(s[0]);let F="-";D&&x[D]&&(F=x[D].type=="M"?x[D].prntBkmkId:D),P(F,O)},children:"추가"}):k.jsxs(Wr,{layoutAlign:"between",children:[k.jsx(Y.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:k.jsx(Re.FolderOpenOutlined,{}),onClick:()=>p(!0),children:"폴더 변경"}),k.jsx(Y.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},color:"danger",variant:"solid",icon:k.jsx(Re.MinusOutlined,{}),onClick:()=>I(O.menuId),children:"삭제"})]}),k.jsx(Y.Button,{type:"text",style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:k.jsx(Re.SettingOutlined,{}),onClick:()=>{v(r),u(!0)},children:"관리"})]})]}),children:k.jsx("span",{style:{cursor:"pointer",display:"inline-flex",alignItems:"center"},children:e})}),k.jsx(QE,{open:l,onClose:()=>{u(!1),h&&t(!0)}})]})}const e_=({reqRows:e,subRows:r})=>{const{searchBoxRef:t}=vi.useSearchBox();return k.jsx(wo,{ref:t,reqRows:e,subRows:r})},t_=({children:e,searchBox:r,title:t,preRenderEvents:n=[],postRenderEvents:i=[],loading:o=!1,error:a=null,grantEvent:s={},customEvent:c={}})=>{const d=vi.useServiceCodeValue("AUTH_BTNS"),{user:f,isLoggedIn:l}=Me.useUserStore(),{activeMenuItem:u}=Me.useMenuViewStore(),{loadFavoritesIfNeeded:h,isMenuBookmarked:v,addMenuToFolder:b}=Zn.useFavoriteStore(),{loading:p}=Me.useLoadingStore(),[m,g]=z.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),[x,y]=z.useState(null),[w,_]=z.useState([]),[S,E]=z.useState([]),[R,T]=z.useState(!1),C=async()=>{if(n.length===0){g(D=>({...D,preRenderComplete:!0}));return}try{for(const D of n)await D();g(D=>({...D,preRenderComplete:!0}))}catch(D){g(F=>({...F,error:D instanceof Error?D.message:"사전 렌더링 실패",preRenderComplete:!0}))}},O=async()=>{if(i.length===0){g(D=>({...D,postRenderComplete:!0}));return}try{for(const D of i)await D();g(D=>({...D,postRenderComplete:!0}))}catch(D){g(F=>({...F,error:D instanceof Error?D.message:"사후 렌더링 실패",postRenderComplete:!0}))}};z.useEffect(()=>{if(m.isInitialized)return;(async()=>{try{try{console.log("SCMSIGN00202 권한 서비스 호출 시작");const F=await Me.callService(d,{crprCd:f?.crprCd,userId:f?.userId,menuId:u?.menuId});if(console.log("SCMSIGN00202 권한 서비스 응답:",F),F?.data&&F.data.length>0){const N=F.data?.filter(B=>B.grpId?.toUpperCase()==="DEFAULT").map(B=>({id:B.btnId,label:B.btnNm,type:"default",disabled:!1,onClick:s[B.btnId]||void 0}))||[];_(N);const L=F.data?.filter(B=>B.grpId?.toUpperCase()==="CUSTOM").map(B=>({id:B.btnId,label:B.btnNm,type:"default",disabled:!1,onClick:c[B.btnId]||void 0}))||[];E(L)}else _([]),E([])}catch(F){console.error("SCMSIGN00202 권한 서비스 호출 실패:",F),_([]),E([])}await C(),g(F=>({...F,isInitialized:!0,loading:!1}))}catch(F){console.error("BwgView 초기화 실패:",F),g(N=>({...N,isInitialized:!0,loading:!1}))}})()},[]),z.useEffect(()=>{f?.userId&&h(f.userId)},[h,f?.userId]),z.useEffect(()=>{m.isInitialized&&m.preRenderComplete&&!m.isReady&&setTimeout(async()=>{await O(),g(F=>({...F,isReady:!0}))},100)},[m.isInitialized,m.preRenderComplete,m.isReady]),z.useEffect(()=>{a&&g(D=>({...D,error:a}))},[a]);const A=()=>k.jsxs("div",{className:"bwgview-header-container",children:[k.jsxs("div",{className:"bwgview-header",children:[k.jsx("div",{className:"bwgview-header-left",children:G.LEFT}),k.jsx("div",{className:"bwgview-header-right",children:G.RIGHT})]}),r&&k.jsx(e_,{reqRows:r.reqRows,subRows:r.subRows})]});if(z.useEffect(()=>{},[f,u]),m.error||a)return k.jsx("div",{style:{padding:"24px"},children:k.jsx(Y.Alert,{message:"오류 발생",description:m.error||a,type:"error",showIcon:!0})});const P=()=>k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:k.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=()=>k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:k.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62178 6.15374 7.92513 5.5344L9.9348 1.4645Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",fill:"none"})}),$=D=>k.jsx(Re,{component:P,...D}),H=D=>k.jsx(Re,{component:I,...D}),G={LEFT:k.jsx("div",{className:"bwgview-header-left",children:k.jsxs(Y.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[k.jsxs(Y.Space,{children:[u&&k.jsx(JE,{triggerIcon:v(u.menuId)?k.jsx($,{className:"bookmark-icon",style:{color:"#faad14"}}):k.jsx(H,{className:"bookmark-icon"})}),k.jsxs(Y.Space.Compact,{style:{alignItems:"center"},children:[k.jsx("span",{className:"pageMenuNm",children:(()=>{let D="";return t?.useMenuTitle&&u?D=u.menuNm:t?.text?D=t.text:u&&(D=u.menuPrntId==="CM00"?u.menuNm.substring(u.menuNm.indexOf(" ")+1):u.menuNm),t?.prefix&&(D=`${t.prefix} ${D}`),t?.suffix&&(D=`${D} ${t.suffix}`),D})()}),u?.menuNo&&k.jsx(Y.Tag,{className:"page-num-tag",children:u?.menuNo}),k.jsx(Y.Tooltip,{title:"도움말",color:"geekblue",children:k.jsx(Y.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:k.jsx(Re.QuestionCircleTwoTone,{twoToneColor:"orange"})})}),k.jsx(Y.Tooltip,{title:"게시판",color:"geekblue",children:k.jsx(Y.Button,{variant:"text",type:"text",onClick:()=>T(!0),icon:k.jsx(Re.BugFilled,{style:{color:"#1890ff"}})})})]})]}),u?.scrnId&&Me.isLocal&&k.jsx(Y.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:k.jsx(WE,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:u?.scrnId})})]})}),RIGHT:k.jsx("div",{className:"bwgview-header-right",children:k.jsx(Y.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:k.jsxs(Y.Space,{children:[k.jsx(Y.Flex,{gap:8,children:S.map(D=>k.jsx(Y.Button,{type:D.type,disabled:D.disabled,className:"bwg-btn",onClick:()=>{typeof D.onClick=="function"&&D.onClick()},children:D.label},D.id))}),k.jsx(Y.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:k.jsx(Y.Divider,{type:"vertical"})}),k.jsx(Y.Flex,{gap:8,className:"permission-buttons",children:w.length>0?w.map(D=>k.jsx(Y.Button,{type:D.type,disabled:D.disabled,className:"bwg-btn",onClick:()=>{typeof D.onClick=="function"&&D.onClick()},children:D.label},D.id)):k.jsx(Y.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})})]})})})};return k.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[A(),k.jsxs("div",{className:"bwgview-content",children:[k.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(m.loading||o||p)&&k.jsx(Bh.LoadingOverlay,{title:p?"처리 중...":"화면 로드 중..."})]}),k.jsx(ZE,{open:R,onClose:()=>T(!1)})]})},r_=({children:e,customTheme:r,customComponentSize:t="middle"})=>{const n={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',fontSize:14,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,padding:16,margin:16,borderRadius:6,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:Y.theme.defaultAlgorithm},i={...n,...r,token:{...n.token,...r?.token}};return k.jsx(Y.ConfigProvider,{locale:Uh,theme:i,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:e})},n_="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_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",i_="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",o_="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",a_=({children:e})=>{const[r,t]=z.useState({x:0,y:0}),[n,i]=z.useState(!1),[o,a]=z.useState({x:0,y:0}),[s,c]=z.useState(!1),[d,f]=z.useState(!0),l=z.useRef(null),u=[{id:"overtime",title:"시간 외 근무신청",icon:k.jsx("img",{src:o_,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:k.jsx("img",{src:n_,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:k.jsx("img",{src:i_,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:k.jsx(Re.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:k.jsx(Re.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:k.jsx(Re.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];z.useEffect(()=>{const g=()=>{const x=window.innerHeight,w=Math.max(64,(x-300)/3);t({x:0,y:w});const _=x/2;f(w<_)};return g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[]);const h=g=>{if(g.preventDefault(),g.stopPropagation(),l.current){const x=l.current.getBoundingClientRect();a({x:g.clientX-x.left,y:g.clientY-x.top}),i(!0)}},v=g=>{if(n){const x=g.clientY-o.y,y=window.innerHeight-24,_=Math.max(64,Math.min(y,x));t({x:r.x,y:_});const S=window.innerHeight/2;f(_<S)}},b=()=>{i(!1)},p=()=>{c(!s)},m=g=>{g.onClick&&g.onClick()};return z.useEffect(()=>{if(n)return document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b)}},[n,o]),k.jsxs("div",{className:"quick-tab-container",ref:l,style:{position:"fixed",right:0,top:r.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[k.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:[k.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(g=>k.jsx(Y.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:()=>m(g),onMouseEnter:x=>{},onMouseLeave:x=>{},children:k.jsxs("div",{className:"quick-tab-item-inner",children:[k.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:g.color,marginBottom:"5px"},children:g.icon}),k.jsx("div",{className:"quick-tab-items-title",children:g.title})]})},g.id))}),k.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:g=>{},onMouseLeave:g=>{},children:k.jsx(Re.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),k.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:n?"grabbing":"grab",zIndex:1001},onMouseDown:g=>h(g)}),k.jsx(Y.Button,{className:`quick-tab-toggle-btn ${s?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:p})]})},s_=()=>{const{verifyWithToken:e}=jg.useAuth(),r=Gu.useNavigate(),t=Gu.useLocation();return z.useEffect(()=>{const i=new URLSearchParams(t.search).get("token");if(!i){r("/login",{replace:!0});return}(async()=>{const o=await e(i);r(o?"/main":"/login",{replace:!0})})()},[t.search]),k.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:k.jsx(Y.Spin,{tip:"인증중..."})})};exports.BwgButtonGroup=Ig;exports.BwgCmptArea=Mg;exports.BwgCol=Lg;exports.BwgConfigProvider=hu;exports.BwgDetail=Kg;exports.BwgDrawer=Yg;exports.BwgEditor=bl;exports.BwgGrid=sp;exports.BwgInfoArea=Zy;exports.BwgPopup=Jy;exports.BwgRow=e0;exports.BwgTable=t0;exports.BwgTabs=r0;exports.BwgTitleBox=xo;exports.BwgView=t_;exports.ContentBox=Hr;exports.ContentLayOut=Wr;exports.GlobalConfigProvider=r_;exports.QuickServiceToggle=a_;exports.SSOHandler=s_;exports.SearchBox=wo;exports.createBwgGridRenderer=Qi;
|
|
237
|
-
//# sourceMappingURL=SSOHandler-DQG0Jp4V.cjs.map
|