@nocobase/app 1.9.55 → 1.9.56
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/client/{8908.2fe28a97.async.js → 8908.00634f36.async.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/{npm._at_ant-design.94678b5d.async.js → npm._at_ant-design.18a2f583.async.js} +1 -1
- package/dist/client/{npm.antd.27992644.async.js → npm.antd.3ccce60d.async.js} +1 -1
- package/dist/client/{npm.d3-transition.1d02fe5d.async.js → npm.d3-transition.8b1a5839.async.js} +1 -1
- package/dist/client/npm.lodash.9096a2d1.async.js +56 -0
- package/dist/client/{p__index.ae012d87.async.js → p__index.de3c9289.async.js} +31 -31
- package/dist/client/{umi.4526256f.js → umi.36a22cf3.js} +2 -2
- package/package.json +6 -6
- package/dist/client/npm.lodash.5dcc1c5e.async.js +0 -37
|
@@ -418,7 +418,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
418
418
|
${Fe}-collapse,
|
|
419
419
|
${Fe}-edit,
|
|
420
420
|
${Fe}-copy
|
|
421
|
-
`]:Object.assign(Object.assign({},(0,S.Nd)(me)),{marginInlineStart:me.marginXXS})}),_(me)),V(me)),n()),{"&-rtl":{direction:"rtl"}})}},O=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var T=(0,L.I$)("Typography",me=>[ne(me)],O),v=me=>{const{prefixCls:Fe,"aria-label":at,className:it,style:Et,direction:yn,maxLength:Ke,autoSize:nt=!0,value:Ve,onSave:gt,onCancel:Pt,onEnd:Gt,component:Ut,enterIcon:ln=e.createElement(W.Z,null)}=me,gn=e.useRef(null),be=e.useRef(!1),je=e.useRef(null),[Ge,mt]=e.useState(Ve);e.useEffect(()=>{mt(Ve)},[Ve]),e.useEffect(()=>{var ke;if(!((ke=gn.current)===null||ke===void 0)&&ke.resizableTextArea){const{textArea:St}=gn.current.resizableTextArea;St.focus();const{length:Dt}=St.value;St.setSelectionRange(Dt,Dt)}},[]);const Bt=ke=>{let{target:St}=ke;mt(St.value.replace(/[\n\r]/g,""))},pe=()=>{be.current=!0},Ce=()=>{be.current=!1},re=ke=>{let{keyCode:St}=ke;be.current||(je.current=St)},oe=()=>{gt(Ge.trim())},ie=ke=>{let{keyCode:St,ctrlKey:Dt,altKey:Yt,metaKey:_t,shiftKey:cn}=ke;je.current!==St||be.current||Dt||Yt||_t||cn||(St===c.Z.ENTER?(oe(),Gt==null||Gt()):St===c.Z.ESC&&Pt())},Xe=()=>{oe()},[Ne,lt,Ye]=T(Fe),rt=M()(Fe,`${Fe}-edit-content`,{[`${Fe}-rtl`]:yn==="rtl",[`${Fe}-${Ut}`]:!!Ut},it,lt,Ye);return Ne(e.createElement("div",{className:rt,style:Et},e.createElement(s.Z,{ref:gn,maxLength:Ke,value:Ge,onChange:Bt,onKeyDown:re,onKeyUp:ie,onCompositionStart:pe,onCompositionEnd:Ce,onBlur:Xe,"aria-label":at,rows:1,autoSize:nt}),ln!==null?(0,D.Tm)(ln,{className:`${Fe}-edit-content-confirm`}):null))},g=t(20640),B=t.n(g),d=t(77527),y=t(72779),A=function(me,Fe,at,it){function Et(yn){return yn instanceof at?yn:new at(function(Ke){Ke(yn)})}return new(at||(at=Promise))(function(yn,Ke){function nt(Pt){try{gt(it.next(Pt))}catch(Gt){Ke(Gt)}}function Ve(Pt){try{gt(it.throw(Pt))}catch(Gt){Ke(Gt)}}function gt(Pt){Pt.done?yn(Pt.value):Et(Pt.value).then(nt,Ve)}gt((it=it.apply(me,Fe||[])).next())})},J=me=>{let{copyConfig:Fe,children:at}=me;const[it,Et]=e.useState(!1),[yn,Ke]=e.useState(!1),nt=e.useRef(null),Ve=()=>{nt.current&&clearTimeout(nt.current)},gt={};Fe.format&&(gt.format=Fe.format),e.useEffect(()=>Ve,[]);const Pt=(0,d.Z)(Gt=>A(void 0,void 0,void 0,function*(){var Ut;Gt==null||Gt.preventDefault(),Gt==null||Gt.stopPropagation(),Ke(!0);try{const ln=typeof Fe.text=="function"?yield Fe.text():Fe.text;B()(ln||(0,y.Z)(at,!0).join("")||"",gt),Ke(!1),Et(!0),Ve(),nt.current=setTimeout(()=>{Et(!1)},3e3),(Ut=Fe.onCopy)===null||Ut===void 0||Ut.call(Fe,Gt)}catch(ln){throw Ke(!1),ln}}));return{copied:it,copyLoading:yn,onClick:Pt}};function fe(me,Fe){return e.useMemo(()=>{const at=!!me;return[at,Object.assign(Object.assign({},Fe),at&&typeof me=="object"?me:null)]},[me])}var Be=me=>{const Fe=(0,e.useRef)(void 0);return(0,e.useEffect)(()=>{Fe.current=me}),Fe.current},X=(me,Fe,at)=>(0,e.useMemo)(()=>me===!0?{title:Fe??at}:(0,e.isValidElement)(me)?{title:me}:typeof me=="object"?Object.assign({title:Fe??at},me):{title:me},[me,Fe,at]),Z=function(me,Fe){var at={};for(var it in me)Object.prototype.hasOwnProperty.call(me,it)&&Fe.indexOf(it)<0&&(at[it]=me[it]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,it=Object.getOwnPropertySymbols(me);Et<it.length;Et++)Fe.indexOf(it[Et])<0&&Object.prototype.propertyIsEnumerable.call(me,it[Et])&&(at[it[Et]]=me[it[Et]]);return at},l=e.forwardRef((me,Fe)=>{const{prefixCls:at,component:it="article",className:Et,rootClassName:yn,setContentRef:Ke,children:nt,direction:Ve,style:gt}=me,Pt=Z(me,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:Gt,direction:Ut,className:ln,style:gn}=(0,Q.dj)("typography"),be=Ve??Ut,je=Ke?(0,f.sQ)(Fe,Ke):Fe,Ge=Gt("typography",at),[mt,Bt,pe]=T(Ge),Ce=M()(Ge,ln,{[`${Ge}-rtl`]:be==="rtl"},Et,yn,Bt,pe),re=Object.assign(Object.assign({},gn),gt);return mt(e.createElement(it,Object.assign({className:Ce,style:re,ref:je},Pt),nt))}),m=t(18299),U=t(18699),ge=t(3407);function Y(me){return me===!1?[!1,!1]:Array.isArray(me)?me:[me]}function q(me,Fe,at){return me===!0||me===void 0?Fe:me||at&&Fe}function ce(me){const Fe=document.createElement("em");me.appendChild(Fe);const at=me.getBoundingClientRect(),it=Fe.getBoundingClientRect();return me.removeChild(Fe),at.left>it.left||it.right>at.right||at.top>it.top||it.bottom>at.bottom}const Ee=me=>["string","number"].includes(typeof me);var we=me=>{let{prefixCls:Fe,copied:at,locale:it,iconOnly:Et,tooltips:yn,icon:Ke,tabIndex:nt,onCopy:Ve,loading:gt}=me;const Pt=Y(yn),Gt=Y(Ke),{copied:Ut,copy:ln}=it??{},gn=at?Ut:ln,be=q(Pt[at?1:0],gn),je=typeof be=="string"?be:gn;return e.createElement(C.Z,{title:be},e.createElement("button",{type:"button",className:M()(`${Fe}-copy`,{[`${Fe}-copy-success`]:at,[`${Fe}-copy-icon-only`]:Et}),onClick:Ve,"aria-label":je,tabIndex:nt},at?q(Gt[1],e.createElement(m.Z,null),!0):q(Gt[0],gt?e.createElement(ge.Z,null):e.createElement(U.Z,null),!0)))},ot=t(96641);const qe=e.forwardRef((me,Fe)=>{let{style:at,children:it}=me;const Et=e.useRef(null);return e.useImperativeHandle(Fe,()=>({isExceed:()=>{const yn=Et.current;return yn.scrollHeight>yn.clientHeight},getHeight:()=>Et.current.clientHeight})),e.createElement("span",{"aria-hidden":!0,ref:Et,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},at)},it)}),Ze=me=>me.reduce((Fe,at)=>Fe+(Ee(at)?String(at).length:1),0);function xe(me,Fe){let at=0;const it=[];for(let Et=0;Et<me.length;Et+=1){if(at===Fe)return it;const yn=me[Et],nt=Ee(yn)?String(yn).length:1,Ve=at+nt;if(Ve>Fe){const gt=Fe-at;return it.push(String(yn).slice(0,gt)),it}it.push(yn),at=Ve}return me}const $e=0,ze=1,Ae=2,vt=3,yt=4,ct={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function xt(me){const{enableMeasure:Fe,width:at,text:it,children:Et,rows:yn,expanded:Ke,miscDeps:nt,onEllipsis:Ve}=me,gt=e.useMemo(()=>(0,z.Z)(it),[it]),Pt=e.useMemo(()=>Ze(gt),[it]),Gt=e.useMemo(()=>Et(gt,!1),[it]),[Ut,ln]=e.useState(null),gn=e.useRef(null),be=e.useRef(null),je=e.useRef(null),Ge=e.useRef(null),mt=e.useRef(null),[Bt,pe]=e.useState(!1),[Ce,re]=e.useState($e),[oe,ie]=e.useState(0),[Xe,Ne]=e.useState(null);(0,i.Z)(()=>{re(Fe&&at&&Pt?ze:$e)},[at,it,yn,Fe,gt]),(0,i.Z)(()=>{var ke,St,Dt,Yt;if(Ce===ze){re(Ae);const _t=be.current&&getComputedStyle(be.current).whiteSpace;Ne(_t)}else if(Ce===Ae){const _t=!!(!((ke=je.current)===null||ke===void 0)&&ke.isExceed());re(_t?vt:yt),ln(_t?[0,Pt]:null),pe(_t);const cn=((St=je.current)===null||St===void 0?void 0:St.getHeight())||0,Vt=yn===1?0:((Dt=Ge.current)===null||Dt===void 0?void 0:Dt.getHeight())||0,Tn=((Yt=mt.current)===null||Yt===void 0?void 0:Yt.getHeight())||0,En=Math.max(cn,Vt+Tn);ie(En+1),Ve(_t)}},[Ce]);const lt=Ut?Math.ceil((Ut[0]+Ut[1])/2):0;(0,i.Z)(()=>{var ke;const[St,Dt]=Ut||[0,0];if(St!==Dt){const _t=(((ke=gn.current)===null||ke===void 0?void 0:ke.getHeight())||0)>oe;let cn=lt;Dt-St===1&&(cn=_t?St:Dt),ln(_t?[St,cn]:[cn,Dt])}},[Ut,lt]);const Ye=e.useMemo(()=>{if(!Fe)return Et(gt,!1);if(Ce!==vt||!Ut||Ut[0]!==Ut[1]){const ke=Et(gt,!1);return[yt,$e].includes(Ce)?ke:e.createElement("span",{style:Object.assign(Object.assign({},ct),{WebkitLineClamp:yn})},ke)}return Et(Ke?gt:xe(gt,Ut[0]),Bt)},[Ke,Ce,Ut,gt].concat((0,ot.Z)(nt))),rt={width:at,margin:0,padding:0,whiteSpace:Xe==="nowrap"?"normal":"inherit"};return e.createElement(e.Fragment,null,Ye,Ce===Ae&&e.createElement(e.Fragment,null,e.createElement(qe,{style:Object.assign(Object.assign(Object.assign({},rt),ct),{WebkitLineClamp:yn}),ref:je},Gt),e.createElement(qe,{style:Object.assign(Object.assign(Object.assign({},rt),ct),{WebkitLineClamp:yn-1}),ref:Ge},Gt),e.createElement(qe,{style:Object.assign(Object.assign(Object.assign({},rt),ct),{WebkitLineClamp:1}),ref:mt},Et([],!0))),Ce===vt&&Ut&&Ut[0]!==Ut[1]&&e.createElement(qe,{style:Object.assign(Object.assign({},rt),{top:400}),ref:gn},Et(xe(gt,lt),!0)),Ce===ze&&e.createElement("span",{style:{whiteSpace:"inherit"},ref:be}))}var sn=me=>{let{enableEllipsis:Fe,isEllipsis:at,children:it,tooltipProps:Et}=me;return!(Et!=null&&Et.title)||!Fe?it:e.createElement(C.Z,Object.assign({open:at?void 0:!1},Et),it)},Pe=function(me,Fe){var at={};for(var it in me)Object.prototype.hasOwnProperty.call(me,it)&&Fe.indexOf(it)<0&&(at[it]=me[it]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,it=Object.getOwnPropertySymbols(me);Et<it.length;Et++)Fe.indexOf(it[Et])<0&&Object.prototype.propertyIsEnumerable.call(me,it[Et])&&(at[it[Et]]=me[it[Et]]);return at};function _e(me,Fe){let{mark:at,code:it,underline:Et,delete:yn,strong:Ke,keyboard:nt,italic:Ve}=me,gt=Fe;function Pt(Gt,Ut){Ut&&(gt=e.createElement(Gt,{},gt))}return Pt("strong",Ke),Pt("u",Et),Pt("del",yn),Pt("code",it),Pt("mark",at),Pt("kbd",nt),Pt("i",Ve),gt}const Ue="...";var pt=e.forwardRef((me,Fe)=>{var at;const{prefixCls:it,className:Et,style:yn,type:Ke,disabled:nt,children:Ve,ellipsis:gt,editable:Pt,copyable:Gt,component:Ut,title:ln}=me,gn=Pe(me,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:be,direction:je}=e.useContext(Q.E_),[Ge]=(0,p.Z)("Text"),mt=e.useRef(null),Bt=e.useRef(null),pe=be("typography",it),Ce=(0,x.Z)(gn,["mark","code","delete","underline","strong","keyboard","italic"]),[re,oe]=fe(Pt),[ie,Xe]=(0,P.Z)(!1,{value:oe.editing}),{triggerType:Ne=["icon"]}=oe,lt=rn=>{var Cn;rn&&((Cn=oe.onStart)===null||Cn===void 0||Cn.call(oe)),Xe(rn)},Ye=Be(ie);(0,i.Z)(()=>{var rn;!ie&&Ye&&((rn=Bt.current)===null||rn===void 0||rn.focus())},[ie]);const rt=rn=>{rn==null||rn.preventDefault(),lt(!0)},ke=rn=>{var Cn;(Cn=oe.onChange)===null||Cn===void 0||Cn.call(oe,rn),lt(!1)},St=()=>{var rn;(rn=oe.onCancel)===null||rn===void 0||rn.call(oe),lt(!1)},[Dt,Yt]=fe(Gt),{copied:_t,copyLoading:cn,onClick:Vt}=J({copyConfig:Yt,children:Ve}),[Tn,En]=e.useState(!1),[Fn,nr]=e.useState(!1),[Yn,Er]=e.useState(!1),[pr,ve]=e.useState(!1),[ye,tt]=e.useState(!0),[st,Nt]=fe(gt,{expandable:!1,symbol:rn=>rn?Ge==null?void 0:Ge.collapse:Ge==null?void 0:Ge.expand}),[on,en]=(0,P.Z)(Nt.defaultExpanded||!1,{value:Nt.expanded}),Vn=st&&(!on||Nt.expandable==="collapsible"),{rows:Kt=1}=Nt,wt=e.useMemo(()=>Vn&&(Nt.suffix!==void 0||Nt.onEllipsis||Nt.expandable||re||Dt),[Vn,Nt,re,Dt]);(0,i.Z)(()=>{st&&!wt&&(En(te("webkitLineClamp")),nr(te("textOverflow")))},[wt,st]);const[Wt,Sn]=e.useState(Vn),xn=e.useMemo(()=>wt?!1:Kt===1?Fn:Tn,[wt,Fn,Tn]);(0,i.Z)(()=>{Sn(xn&&Vn)},[xn,Vn]);const It=Vn&&(Wt?pr:Yn),un=Vn&&Kt===1&&Wt,$n=Vn&&Kt>1&&Wt,Xn=(rn,Cn)=>{var In;en(Cn.expanded),(In=Nt.onExpand)===null||In===void 0||In.call(Nt,rn,Cn)},[rr,Le]=e.useState(0),ue=rn=>{let{offsetWidth:Cn}=rn;Le(Cn)},bt=rn=>{var Cn;Er(rn),Yn!==rn&&((Cn=Nt.onEllipsis)===null||Cn===void 0||Cn.call(Nt,rn))};e.useEffect(()=>{const rn=mt.current;if(st&&Wt&&rn){const Cn=ce(rn);pr!==Cn&&ve(Cn)}},[st,Wt,Ve,$n,ye,rr]),e.useEffect(()=>{const rn=mt.current;if(typeof IntersectionObserver>"u"||!rn||!Wt||!Vn)return;const Cn=new IntersectionObserver(()=>{tt(!!rn.offsetParent)});return Cn.observe(rn),()=>{Cn.disconnect()}},[Wt,Vn]);const zt=X(Nt.tooltip,oe.text,Ve),Ft=e.useMemo(()=>{if(!(!st||Wt))return[oe.text,Ve,ln,zt.title].find(Ee)},[st,Wt,ln,zt.title,It]);if(ie)return e.createElement(v,{value:(at=oe.text)!==null&&at!==void 0?at:typeof Ve=="string"?Ve:"",onSave:ke,onCancel:St,onEnd:oe.onEnd,prefixCls:pe,className:Et,style:yn,direction:je,component:Ut,maxLength:oe.maxLength,autoSize:oe.autoSize,enterIcon:oe.enterIcon});const jt=()=>{const{expandable:rn,symbol:Cn}=Nt;return rn?e.createElement("button",{type:"button",key:"expand",className:`${pe}-${on?"collapse":"expand"}`,onClick:In=>Xn(In,{expanded:!on}),"aria-label":on?Ge.collapse:Ge==null?void 0:Ge.expand},typeof Cn=="function"?Cn(on):Cn):null},pn=()=>{if(!re)return;const{icon:rn,tooltip:Cn,tabIndex:In}=oe,wn=(0,z.Z)(Cn)[0]||(Ge==null?void 0:Ge.edit),zn=typeof wn=="string"?wn:"";return Ne.includes("icon")?e.createElement(C.Z,{key:"edit",title:Cn===!1?"":wn},e.createElement("button",{type:"button",ref:Bt,className:`${pe}-edit`,onClick:rt,"aria-label":zn,tabIndex:In},rn||e.createElement(a.Z,{role:"button"}))):null},qt=()=>Dt?e.createElement(we,Object.assign({key:"copy"},Yt,{prefixCls:pe,copied:_t,locale:Ge,onCopy:Vt,loading:cn,iconOnly:Ve==null})):null,Pn=rn=>[rn&&jt(),pn(),qt()],Rn=rn=>[rn&&!on&&e.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Ue),Nt.suffix,Pn(rn)];return e.createElement(I.Z,{onResize:ue,disabled:!Vn},rn=>e.createElement(sn,{tooltipProps:zt,enableEllipsis:Vn,isEllipsis:It},e.createElement(l,Object.assign({className:M()({[`${pe}-${Ke}`]:Ke,[`${pe}-disabled`]:nt,[`${pe}-ellipsis`]:st,[`${pe}-ellipsis-single-line`]:un,[`${pe}-ellipsis-multiple-line`]:$n},Et),prefixCls:it,style:Object.assign(Object.assign({},yn),{WebkitLineClamp:$n?Kt:void 0}),component:Ut,ref:(0,f.sQ)(rn,mt,Fe),direction:je,onClick:Ne.includes("text")?rt:void 0,"aria-label":Ft==null?void 0:Ft.toString(),title:ln},Ce),e.createElement(xt,{enableMeasure:Vn&&!Wt,text:Ve,rows:Kt,width:rr,onEllipsis:bt,expanded:on,miscDeps:[_t,on,cn,re,Dt,Ge]},(Cn,In)=>_e(me,e.createElement(e.Fragment,null,Cn.length>0&&In&&!on&&Ft?e.createElement("span",{key:"show-content","aria-hidden":!0},Cn):Cn,Rn(In)))))))}),N=function(me,Fe){var at={};for(var it in me)Object.prototype.hasOwnProperty.call(me,it)&&Fe.indexOf(it)<0&&(at[it]=me[it]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,it=Object.getOwnPropertySymbols(me);Et<it.length;Et++)Fe.indexOf(it[Et])<0&&Object.prototype.propertyIsEnumerable.call(me,it[Et])&&(at[it[Et]]=me[it[Et]]);return at},Ht=e.forwardRef((me,Fe)=>{var{ellipsis:at,rel:it}=me,Et=N(me,["ellipsis","rel"]);const yn=Object.assign(Object.assign({},Et),{rel:it===void 0&&Et.target==="_blank"?"noopener noreferrer":it});return delete yn.navigate,e.createElement(pt,Object.assign({},yn,{ref:Fe,ellipsis:!!at,component:"a"}))}),ft=e.forwardRef((me,Fe)=>e.createElement(pt,Object.assign({ref:Fe},me,{component:"div"}))),Tt=function(me,Fe){var at={};for(var it in me)Object.prototype.hasOwnProperty.call(me,it)&&Fe.indexOf(it)<0&&(at[it]=me[it]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,it=Object.getOwnPropertySymbols(me);Et<it.length;Et++)Fe.indexOf(it[Et])<0&&Object.prototype.propertyIsEnumerable.call(me,it[Et])&&(at[it[Et]]=me[it[Et]]);return at};const Rt=(me,Fe)=>{var{ellipsis:at}=me,it=Tt(me,["ellipsis"]);const Et=e.useMemo(()=>at&&typeof at=="object"?(0,x.Z)(at,["expandable","rows"]):at,[at]);return e.createElement(pt,Object.assign({ref:Fe},it,{ellipsis:Et,component:"span"}))};var Zt=e.forwardRef(Rt),nn=function(me,Fe){var at={};for(var it in me)Object.prototype.hasOwnProperty.call(me,it)&&Fe.indexOf(it)<0&&(at[it]=me[it]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,it=Object.getOwnPropertySymbols(me);Et<it.length;Et++)Fe.indexOf(it[Et])<0&&Object.prototype.propertyIsEnumerable.call(me,it[Et])&&(at[it[Et]]=me[it[Et]]);return at};const dn=[1,2,3,4,5];var Ot=e.forwardRef((me,Fe)=>{const{level:at=1}=me,it=nn(me,["level"]),Et=dn.includes(at)?`h${at}`:"h1";return e.createElement(pt,Object.assign({ref:Fe},it,{component:Et}))});const Re=l;Re.Text=Zt,Re.Link=Ht,Re.Title=Ot,Re.Paragraph=ft;var Je=Re},79801:function($t,le,t){t.d(le,{Z:function(){return de}});var e=t(67294),a=t(96641),o=t(73935),M=t(93967),I=t.n(M),z=t(36356),i=t(5663),P=t(53124),x=t(98866),f=t(10110),h=t(40378),R=t(48807),K=t(62172),te=t(3407),Q=t(96259),p=t(57383),C=t(15602),W=t(10366),c=t(57838),D=t(33603),s=t(96159),S=t(83622);function L(l){return Object.assign(Object.assign({},l),{lastModified:l.lastModified,lastModifiedDate:l.lastModifiedDate,name:l.name,size:l.size,type:l.type,uid:l.uid,percent:0,originFileObj:l})}function ae(l,m){const U=(0,a.Z)(m),ge=U.findIndex(Y=>{let{uid:q}=Y;return q===l.uid});return ge===-1?U.push(l):U[ge]=l,U}function k(l,m){const U=l.uid!==void 0?"uid":"name";return m.filter(ge=>ge[U]===l[U])[0]}function H(l,m){const U=l.uid!==void 0?"uid":"name",ge=m.filter(Y=>Y[U]!==l[U]);return ge.length===m.length?null:ge}const w=function(){const m=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ge=m[m.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ge)||[""])[0]},$=l=>l.indexOf("image/")===0,b=l=>{if(l.type&&!l.thumbUrl)return $(l.type);const m=l.thumbUrl||l.url||"",U=w(m);return/^data:image\//.test(m)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(U)?!0:!(/^data:/.test(m)||U)},_=200;function V(l){return new Promise(m=>{if(!l.type||!$(l.type)){m("");return}const U=document.createElement("canvas");U.width=_,U.height=_,U.style.cssText=`position: fixed; left: 0; top: 0; width: ${_}px; height: ${_}px; z-index: 9999; display: none;`,document.body.appendChild(U);const ge=U.getContext("2d"),Y=new Image;if(Y.onload=()=>{const{width:q,height:ce}=Y;let Ee=_,Ie=_,we=0,ot=0;q>ce?(Ie=ce*(_/q),ot=-(Ie-Ee)/2):(Ee=q*(_/ce),we=-(Ee-Ie)/2),ge.drawImage(Y,we,ot,Ee,Ie);const qe=U.toDataURL();document.body.removeChild(U),window.URL.revokeObjectURL(Y.src),m(qe)},Y.crossOrigin="anonymous",l.type.startsWith("image/svg+xml")){const q=new FileReader;q.onload=()=>{q.result&&typeof q.result=="string"&&(Y.src=q.result)},q.readAsDataURL(l)}else if(l.type.startsWith("image/gif")){const q=new FileReader;q.onload=()=>{q.result&&m(q.result)},q.readAsDataURL(l)}else Y.src=window.URL.createObjectURL(l)})}var n=t(84249),ne=t(90674),O=t(99569),T=t(26410),u=t(83062),g=e.forwardRef((l,m)=>{let{prefixCls:U,className:ge,style:Y,locale:q,listType:ce,file:Ee,items:Ie,progress:we,iconRender:ot,actionIconRender:qe,itemRender:Ze,isImgUrl:xe,showPreviewIcon:$e,showRemoveIcon:ze,showDownloadIcon:Ae,previewIcon:vt,removeIcon:yt,downloadIcon:ct,extra:xt,onPreview:At,onDownload:sn,onClose:Pe}=l;var _e,Ue;const{status:et}=Ee,[pt,N]=e.useState(et);e.useEffect(()=>{et!=="removed"&&N(et)},[et]);const[Qe,Ht]=e.useState(!1);e.useEffect(()=>{const nt=setTimeout(()=>{Ht(!0)},300);return()=>{clearTimeout(nt)}},[]);const dt=ot(Ee);let ft=e.createElement("div",{className:`${U}-icon`},dt);if(ce==="picture"||ce==="picture-card"||ce==="picture-circle")if(pt==="uploading"||!Ee.thumbUrl&&!Ee.url){const nt=I()(`${U}-list-item-thumbnail`,{[`${U}-list-item-file`]:pt!=="uploading"});ft=e.createElement("div",{className:nt},dt)}else{const nt=xe!=null&&xe(Ee)?e.createElement("img",{src:Ee.thumbUrl||Ee.url,alt:Ee.name,className:`${U}-list-item-image`,crossOrigin:Ee.crossOrigin}):dt,Ve=I()(`${U}-list-item-thumbnail`,{[`${U}-list-item-file`]:xe&&!xe(Ee)});ft=e.createElement("a",{className:Ve,onClick:gt=>At(Ee,gt),href:Ee.url||Ee.thumbUrl,target:"_blank",rel:"noopener noreferrer"},nt)}const Tt=I()(`${U}-list-item`,`${U}-list-item-${pt}`),Rt=typeof Ee.linkProps=="string"?JSON.parse(Ee.linkProps):Ee.linkProps,Zt=(typeof ze=="function"?ze(Ee):ze)?qe((typeof yt=="function"?yt(Ee):yt)||e.createElement(n.Z,null),()=>Pe(Ee),U,q.removeFile,!0):null,nn=(typeof Ae=="function"?Ae(Ee):Ae)&&pt==="done"?qe((typeof ct=="function"?ct(Ee):ct)||e.createElement(ne.Z,null),()=>sn(Ee),U,q.downloadFile):null,dn=ce!=="picture-card"&&ce!=="picture-circle"&&e.createElement("span",{key:"download-delete",className:I()(`${U}-list-item-actions`,{picture:ce==="picture"})},nn,Zt),mn=typeof xt=="function"?xt(Ee):xt,Ot=mn&&e.createElement("span",{className:`${U}-list-item-extra`},mn),Re=I()(`${U}-list-item-name`),Je=Ee.url?e.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Re,title:Ee.name},Rt,{href:Ee.url,onClick:nt=>At(Ee,nt)}),Ee.name,Ot):e.createElement("span",{key:"view",className:Re,onClick:nt=>At(Ee,nt),title:Ee.name},Ee.name,Ot),me=(typeof $e=="function"?$e(Ee):$e)&&(Ee.url||Ee.thumbUrl)?e.createElement("a",{href:Ee.url||Ee.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:nt=>At(Ee,nt),title:q.previewFile},typeof vt=="function"?vt(Ee):vt||e.createElement(O.Z,null)):null,Fe=(ce==="picture-card"||ce==="picture-circle")&&pt!=="uploading"&&e.createElement("span",{className:`${U}-list-item-actions`},me,pt==="done"&&nn,Zt),{getPrefixCls:at}=e.useContext(P.E_),it=at(),Et=e.createElement("div",{className:Tt},ft,Je,dn,Fe,Qe&&e.createElement(C.ZP,{motionName:`${it}-fade`,visible:pt==="uploading",motionDeadline:2e3},nt=>{let{className:Ve}=nt;const gt="percent"in Ee?e.createElement(T.Z,Object.assign({},we,{type:"line",percent:Ee.percent,"aria-label":Ee["aria-label"],"aria-labelledby":Ee["aria-labelledby"]})):null;return e.createElement("div",{className:I()(`${U}-list-item-progress`,Ve)},gt)})),yn=Ee.response&&typeof Ee.response=="string"?Ee.response:((_e=Ee.error)===null||_e===void 0?void 0:_e.statusText)||((Ue=Ee.error)===null||Ue===void 0?void 0:Ue.message)||q.uploadError,Ke=pt==="error"?e.createElement(u.Z,{title:yn,getPopupContainer:nt=>nt.parentNode},Et):Et;return e.createElement("div",{className:I()(`${U}-list-item-container`,ge),style:Y,ref:m},Ze?Ze(Ke,Ee,Ie,{download:sn.bind(null,Ee),preview:At.bind(null,Ee),remove:Pe.bind(null,Ee)}):Ke)});const B=(l,m)=>{const{listType:U="text",previewFile:ge=V,onPreview:Y,onDownload:q,onRemove:ce,locale:Ee,iconRender:Ie,isImageUrl:we=b,prefixCls:ot,items:qe=[],showPreviewIcon:Ze=!0,showRemoveIcon:xe=!0,showDownloadIcon:$e=!1,removeIcon:ze,previewIcon:Ae,downloadIcon:vt,extra:yt,progress:ct={size:[-1,2],showInfo:!1},appendAction:xt,appendActionVisible:At=!0,itemRender:sn,disabled:Pe}=l,_e=(0,c.Z)(),[Ue,et]=e.useState(!1),pt=["picture-card","picture-circle"].includes(U);e.useEffect(()=>{U.startsWith("picture")&&(qe||[]).forEach(Ot=>{!(Ot.originFileObj instanceof File||Ot.originFileObj instanceof Blob)||Ot.thumbUrl!==void 0||(Ot.thumbUrl="",ge==null||ge(Ot.originFileObj).then(Re=>{Ot.thumbUrl=Re||"",_e()}))})},[U,qe,ge]),e.useEffect(()=>{et(!0)},[]);const N=(Ot,Re)=>{if(Y)return Re==null||Re.preventDefault(),Y(Ot)},Qe=Ot=>{typeof q=="function"?q(Ot):Ot.url&&window.open(Ot.url)},Ht=Ot=>{ce==null||ce(Ot)},dt=Ot=>{if(Ie)return Ie(Ot,U);const Re=Ot.status==="uploading";if(U.startsWith("picture")){const Je=U==="picture"?e.createElement(te.Z,null):Ee.uploading,me=we!=null&&we(Ot)?e.createElement(p.Z,null):e.createElement(K.Z,null);return Re?Je:me}return Re?e.createElement(te.Z,null):e.createElement(Q.Z,null)},ft=(Ot,Re,Je,me,Fe)=>{const at={type:"text",size:"small",title:me,onClick:it=>{var Et,yn;Re(),e.isValidElement(Ot)&&((yn=(Et=Ot.props).onClick)===null||yn===void 0||yn.call(Et,it))},className:`${Je}-list-item-action`};return Fe&&(at.disabled=Pe),e.isValidElement(Ot)?e.createElement(S.ZP,Object.assign({},at,{icon:(0,s.Tm)(Ot,Object.assign(Object.assign({},Ot.props),{onClick:()=>{}}))})):e.createElement(S.ZP,Object.assign({},at),e.createElement("span",null,Ot))};e.useImperativeHandle(m,()=>({handlePreview:N,handleDownload:Qe}));const{getPrefixCls:Tt}=e.useContext(P.E_),Rt=Tt("upload",ot),Zt=Tt(),nn=I()(`${Rt}-list`,`${Rt}-list-${U}`),dn=e.useMemo(()=>(0,W.Z)((0,D.Z)(Zt),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Zt]),mn=Object.assign(Object.assign({},pt?{}:dn),{motionDeadline:2e3,motionName:`${Rt}-${pt?"animate-inline":"animate"}`,keys:(0,a.Z)(qe.map(Ot=>({key:Ot.uid,file:Ot}))),motionAppear:Ue});return e.createElement("div",{className:nn},e.createElement(C.V4,Object.assign({},mn,{component:!1}),Ot=>{let{key:Re,file:Je,className:me,style:Fe}=Ot;return e.createElement(g,{key:Re,locale:Ee,prefixCls:Rt,className:me,style:Fe,file:Je,items:qe,progress:ct,listType:U,isImgUrl:we,showPreviewIcon:Ze,showRemoveIcon:xe,showDownloadIcon:$e,removeIcon:ze,previewIcon:Ae,downloadIcon:vt,extra:yt,iconRender:dt,actionIconRender:ft,itemRender:sn,onPreview:N,onDownload:Qe,onClose:Ht})}),xt&&e.createElement(C.ZP,Object.assign({},mn,{visible:At,forceRender:!0}),Ot=>{let{className:Re,style:Je}=Ot;return(0,s.Tm)(xt,me=>({className:I()(me.className,Re),style:Object.assign(Object.assign(Object.assign({},Je),{pointerEvents:Re?"none":void 0}),me.style)}))}))};var y=e.forwardRef(B),A=function(l,m,U,ge){function Y(q){return q instanceof U?q:new U(function(ce){ce(q)})}return new(U||(U=Promise))(function(q,ce){function Ee(ot){try{we(ge.next(ot))}catch(qe){ce(qe)}}function Ie(ot){try{we(ge.throw(ot))}catch(qe){ce(qe)}}function we(ot){ot.done?q(ot.value):Y(ot.value).then(Ee,Ie)}we((ge=ge.apply(l,m||[])).next())})};const F=`__LIST_IGNORE_${Date.now()}__`,J=(l,m)=>{const{fileList:U,defaultFileList:ge,onRemove:Y,showUploadList:q=!0,listType:ce="text",onPreview:Ee,onDownload:Ie,onChange:we,onDrop:ot,previewFile:qe,disabled:Ze,locale:xe,iconRender:$e,isImageUrl:ze,progress:Ae,prefixCls:vt,className:yt,type:ct="select",children:xt,style:At,itemRender:sn,maxCount:Pe,data:_e={},multiple:Ue=!1,hasControlInside:et=!0,action:pt="",accept:N="",supportServerRender:Qe=!0,rootClassName:Ht}=l,dt=e.useContext(x.Z),ft=Ze??dt,[Tt,Rt]=(0,i.Z)(ge||[],{value:U,postState:Ye=>Ye??[]}),[Zt,nn]=e.useState("drop"),dn=e.useRef(null),mn=e.useRef(null);e.useMemo(()=>{const Ye=Date.now();(U||[]).forEach((rt,ke)=>{!rt.uid&&!Object.isFrozen(rt)&&(rt.uid=`__AUTO__${Ye}_${ke}__`)})},[U]);const Ot=(Ye,rt,ke)=>{let St=(0,a.Z)(rt),Dt=!1;Pe===1?St=St.slice(-1):Pe&&(Dt=St.length>Pe,St=St.slice(0,Pe)),(0,o.flushSync)(()=>{Rt(St)});const Yt={file:Ye,fileList:St};ke&&(Yt.event=ke),(!Dt||Ye.status==="removed"||St.some(_t=>_t.uid===Ye.uid))&&(0,o.flushSync)(()=>{we==null||we(Yt)})},Re=(Ye,rt)=>A(void 0,void 0,void 0,function*(){const{beforeUpload:ke,transformFile:St}=l;let Dt=Ye;if(ke){const Yt=yield ke(Ye,rt);if(Yt===!1)return!1;if(delete Ye[F],Yt===F)return Object.defineProperty(Ye,F,{value:!0,configurable:!0}),!1;typeof Yt=="object"&&Yt&&(Dt=Yt)}return St&&(Dt=yield St(Dt)),Dt}),Je=Ye=>{const rt=Ye.filter(Dt=>!Dt.file[F]);if(!rt.length)return;const ke=rt.map(Dt=>L(Dt.file));let St=(0,a.Z)(Tt);ke.forEach(Dt=>{St=ae(Dt,St)}),ke.forEach((Dt,Yt)=>{let _t=Dt;if(rt[Yt].parsedFile)Dt.status="uploading";else{const{originFileObj:cn}=Dt;let Vt;try{Vt=new File([cn],cn.name,{type:cn.type})}catch{Vt=new Blob([cn],{type:cn.type}),Vt.name=cn.name,Vt.lastModifiedDate=new Date,Vt.lastModified=new Date().getTime()}Vt.uid=Dt.uid,_t=Vt}Ot(_t,St)})},me=(Ye,rt,ke)=>{try{typeof Ye=="string"&&(Ye=JSON.parse(Ye))}catch{}if(!k(rt,Tt))return;const St=L(rt);St.status="done",St.percent=100,St.response=Ye,St.xhr=ke;const Dt=ae(St,Tt);Ot(St,Dt)},Fe=(Ye,rt)=>{if(!k(rt,Tt))return;const ke=L(rt);ke.status="uploading",ke.percent=Ye.percent;const St=ae(ke,Tt);Ot(ke,St,Ye)},at=(Ye,rt,ke)=>{if(!k(ke,Tt))return;const St=L(ke);St.error=Ye,St.response=rt,St.status="error";const Dt=ae(St,Tt);Ot(St,Dt)},it=Ye=>{let rt;Promise.resolve(typeof Y=="function"?Y(Ye):Y).then(ke=>{var St;if(ke===!1)return;const Dt=H(Ye,Tt);Dt&&(rt=Object.assign(Object.assign({},Ye),{status:"removed"}),Tt==null||Tt.forEach(Yt=>{const _t=rt.uid!==void 0?"uid":"name";Yt[_t]===rt[_t]&&!Object.isFrozen(Yt)&&(Yt.status="removed")}),(St=dn.current)===null||St===void 0||St.abort(rt),Ot(rt,Dt))})},Et=Ye=>{nn(Ye.type),Ye.type==="drop"&&(ot==null||ot(Ye))};e.useImperativeHandle(m,()=>({onBatchStart:Je,onSuccess:me,onProgress:Fe,onError:at,fileList:Tt,upload:dn.current,nativeElement:mn.current}));const{getPrefixCls:yn,direction:Ke,upload:nt}=e.useContext(P.E_),Ve=yn("upload",vt),gt=Object.assign(Object.assign({onBatchStart:Je,onError:at,onProgress:Fe,onSuccess:me},l),{data:_e,multiple:Ue,action:pt,accept:N,supportServerRender:Qe,prefixCls:Ve,disabled:ft,beforeUpload:Re,onChange:void 0,hasControlInside:et});delete gt.className,delete gt.style,(!xt||ft)&&delete gt.id;const Pt=`${Ve}-wrapper`,[Gt,Ut,ln]=(0,R.Z)(Ve,Pt),[gn]=(0,f.Z)("Upload",h.Z.Upload),{showRemoveIcon:be,showPreviewIcon:je,showDownloadIcon:Ge,removeIcon:mt,previewIcon:Bt,downloadIcon:pe,extra:Ce}=typeof q=="boolean"?{}:q,re=typeof be>"u"?!ft:be,oe=(Ye,rt)=>q?e.createElement(y,{prefixCls:Ve,listType:ce,items:Tt,previewFile:qe,onPreview:Ee,onDownload:Ie,onRemove:it,showRemoveIcon:re,showPreviewIcon:je,showDownloadIcon:Ge,removeIcon:mt,previewIcon:Bt,downloadIcon:pe,iconRender:$e,extra:Ce,locale:Object.assign(Object.assign({},gn),xe),isImageUrl:ze,progress:Ae,appendAction:Ye,appendActionVisible:rt,itemRender:sn,disabled:ft}):Ye,ie=I()(Pt,yt,Ht,Ut,ln,nt==null?void 0:nt.className,{[`${Ve}-rtl`]:Ke==="rtl",[`${Ve}-picture-card-wrapper`]:ce==="picture-card",[`${Ve}-picture-circle-wrapper`]:ce==="picture-circle"}),Xe=Object.assign(Object.assign({},nt==null?void 0:nt.style),At);if(ct==="drag"){const Ye=I()(Ut,Ve,`${Ve}-drag`,{[`${Ve}-drag-uploading`]:Tt.some(rt=>rt.status==="uploading"),[`${Ve}-drag-hover`]:Zt==="dragover",[`${Ve}-disabled`]:ft,[`${Ve}-rtl`]:Ke==="rtl"});return Gt(e.createElement("span",{className:ie,ref:mn},e.createElement("div",{className:Ye,style:Xe,onDrop:Et,onDragOver:Et,onDragLeave:Et},e.createElement(z.Z,Object.assign({},gt,{ref:dn,className:`${Ve}-btn`}),e.createElement("div",{className:`${Ve}-drag-container`},xt))),oe()))}const Ne=I()(Ve,`${Ve}-select`,{[`${Ve}-disabled`]:ft,[`${Ve}-hidden`]:!xt}),lt=e.createElement("div",{className:Ne},e.createElement(z.Z,Object.assign({},gt,{ref:dn})));return Gt(ce==="picture-card"||ce==="picture-circle"?e.createElement("span",{className:ie,ref:mn},oe(lt,!!xt)):e.createElement("span",{className:ie,ref:mn},lt,oe()))};var Me=e.forwardRef(J),Be=function(l,m){var U={};for(var ge in l)Object.prototype.hasOwnProperty.call(l,ge)&&m.indexOf(ge)<0&&(U[ge]=l[ge]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,ge=Object.getOwnPropertySymbols(l);Y<ge.length;Y++)m.indexOf(ge[Y])<0&&Object.prototype.propertyIsEnumerable.call(l,ge[Y])&&(U[ge[Y]]=l[ge[Y]]);return U},X=e.forwardRef((l,m)=>{var{style:U,height:ge,hasControlInside:Y=!1}=l,q=Be(l,["style","height","hasControlInside"]);return e.createElement(Me,Object.assign({ref:m,hasControlInside:Y},q,{type:"drag",style:Object.assign(Object.assign({},U),{height:ge})}))});const Z=Me;Z.Dragger=X,Z.LIST_IGNORE=F;var de=Z},48807:function($t,le,t){t.d(le,{Z:function(){return D}});var e=t(14747),a=t(33507),o=t(83559),M=t(87893),I=t(19037),i=s=>{const{componentCls:S,iconCls:L}=s;return{[`${S}-wrapper`]:{[`${S}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:s.colorFillAlter,border:`${(0,I.bf)(s.lineWidth)} dashed ${s.colorBorder}`,borderRadius:s.borderRadiusLG,cursor:"pointer",transition:`border-color ${s.motionDurationSlow}`,[S]:{padding:s.padding},[`${S}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:s.borderRadiusLG,"&:focus-visible":{outline:`${(0,I.bf)(s.lineWidthFocus)} solid ${s.colorPrimaryBorder}`}},[`${S}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
421
|
+
`]:Object.assign(Object.assign({},(0,S.Nd)(me)),{marginInlineStart:me.marginXXS})}),_(me)),V(me)),n()),{"&-rtl":{direction:"rtl"}})}},O=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var T=(0,L.I$)("Typography",me=>[ne(me)],O),v=me=>{const{prefixCls:Fe,"aria-label":at,className:it,style:Et,direction:yn,maxLength:Ke,autoSize:nt=!0,value:Ve,onSave:gt,onCancel:Pt,onEnd:Gt,component:Ut,enterIcon:ln=e.createElement(W.Z,null)}=me,gn=e.useRef(null),be=e.useRef(!1),je=e.useRef(null),[Ge,mt]=e.useState(Ve);e.useEffect(()=>{mt(Ve)},[Ve]),e.useEffect(()=>{var ke;if(!((ke=gn.current)===null||ke===void 0)&&ke.resizableTextArea){const{textArea:St}=gn.current.resizableTextArea;St.focus();const{length:Dt}=St.value;St.setSelectionRange(Dt,Dt)}},[]);const Bt=ke=>{let{target:St}=ke;mt(St.value.replace(/[\n\r]/g,""))},pe=()=>{be.current=!0},Ce=()=>{be.current=!1},re=ke=>{let{keyCode:St}=ke;be.current||(je.current=St)},oe=()=>{gt(Ge.trim())},ie=ke=>{let{keyCode:St,ctrlKey:Dt,altKey:Yt,metaKey:_t,shiftKey:cn}=ke;je.current!==St||be.current||Dt||Yt||_t||cn||(St===c.Z.ENTER?(oe(),Gt==null||Gt()):St===c.Z.ESC&&Pt())},Xe=()=>{oe()},[Ne,lt,Ye]=T(Fe),rt=M()(Fe,`${Fe}-edit-content`,{[`${Fe}-rtl`]:yn==="rtl",[`${Fe}-${Ut}`]:!!Ut},it,lt,Ye);return Ne(e.createElement("div",{className:rt,style:Et},e.createElement(s.Z,{ref:gn,maxLength:Ke,value:Ge,onChange:Bt,onKeyDown:re,onKeyUp:ie,onCompositionStart:pe,onCompositionEnd:Ce,onBlur:Xe,"aria-label":at,rows:1,autoSize:nt}),ln!==null?(0,D.Tm)(ln,{className:`${Fe}-edit-content-confirm`}):null))},g=t(20640),B=t.n(g),d=t(77527),y=t(72779),A=function(me,Fe,at,it){function Et(yn){return yn instanceof at?yn:new at(function(Ke){Ke(yn)})}return new(at||(at=Promise))(function(yn,Ke){function nt(Pt){try{gt(it.next(Pt))}catch(Gt){Ke(Gt)}}function Ve(Pt){try{gt(it.throw(Pt))}catch(Gt){Ke(Gt)}}function gt(Pt){Pt.done?yn(Pt.value):Et(Pt.value).then(nt,Ve)}gt((it=it.apply(me,Fe||[])).next())})},J=me=>{let{copyConfig:Fe,children:at}=me;const[it,Et]=e.useState(!1),[yn,Ke]=e.useState(!1),nt=e.useRef(null),Ve=()=>{nt.current&&clearTimeout(nt.current)},gt={};Fe.format&&(gt.format=Fe.format),e.useEffect(()=>Ve,[]);const Pt=(0,d.Z)(Gt=>A(void 0,void 0,void 0,function*(){var Ut;Gt==null||Gt.preventDefault(),Gt==null||Gt.stopPropagation(),Ke(!0);try{const ln=typeof Fe.text=="function"?yield Fe.text():Fe.text;B()(ln||(0,y.Z)(at,!0).join("")||"",gt),Ke(!1),Et(!0),Ve(),nt.current=setTimeout(()=>{Et(!1)},3e3),(Ut=Fe.onCopy)===null||Ut===void 0||Ut.call(Fe,Gt)}catch(ln){throw Ke(!1),ln}}));return{copied:it,copyLoading:yn,onClick:Pt}};function fe(me,Fe){return e.useMemo(()=>{const at=!!me;return[at,Object.assign(Object.assign({},Fe),at&&typeof me=="object"?me:null)]},[me])}var Be=me=>{const Fe=(0,e.useRef)(void 0);return(0,e.useEffect)(()=>{Fe.current=me}),Fe.current},X=(me,Fe,at)=>(0,e.useMemo)(()=>me===!0?{title:Fe??at}:(0,e.isValidElement)(me)?{title:me}:typeof me=="object"?Object.assign({title:Fe??at},me):{title:me},[me,Fe,at]),Z=function(me,Fe){var at={};for(var it in me)Object.prototype.hasOwnProperty.call(me,it)&&Fe.indexOf(it)<0&&(at[it]=me[it]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,it=Object.getOwnPropertySymbols(me);Et<it.length;Et++)Fe.indexOf(it[Et])<0&&Object.prototype.propertyIsEnumerable.call(me,it[Et])&&(at[it[Et]]=me[it[Et]]);return at},l=e.forwardRef((me,Fe)=>{const{prefixCls:at,component:it="article",className:Et,rootClassName:yn,setContentRef:Ke,children:nt,direction:Ve,style:gt}=me,Pt=Z(me,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:Gt,direction:Ut,className:ln,style:gn}=(0,Q.dj)("typography"),be=Ve??Ut,je=Ke?(0,f.sQ)(Fe,Ke):Fe,Ge=Gt("typography",at),[mt,Bt,pe]=T(Ge),Ce=M()(Ge,ln,{[`${Ge}-rtl`]:be==="rtl"},Et,yn,Bt,pe),re=Object.assign(Object.assign({},gn),gt);return mt(e.createElement(it,Object.assign({className:Ce,style:re,ref:je},Pt),nt))}),m=t(18299),U=t(18699),ge=t(3407);function Y(me){return me===!1?[!1,!1]:Array.isArray(me)?me:[me]}function q(me,Fe,at){return me===!0||me===void 0?Fe:me||at&&Fe}function ce(me){const Fe=document.createElement("em");me.appendChild(Fe);const at=me.getBoundingClientRect(),it=Fe.getBoundingClientRect();return me.removeChild(Fe),at.left>it.left||it.right>at.right||at.top>it.top||it.bottom>at.bottom}const Ee=me=>["string","number"].includes(typeof me);var we=me=>{let{prefixCls:Fe,copied:at,locale:it,iconOnly:Et,tooltips:yn,icon:Ke,tabIndex:nt,onCopy:Ve,loading:gt}=me;const Pt=Y(yn),Gt=Y(Ke),{copied:Ut,copy:ln}=it??{},gn=at?Ut:ln,be=q(Pt[at?1:0],gn),je=typeof be=="string"?be:gn;return e.createElement(C.Z,{title:be},e.createElement("button",{type:"button",className:M()(`${Fe}-copy`,{[`${Fe}-copy-success`]:at,[`${Fe}-copy-icon-only`]:Et}),onClick:Ve,"aria-label":je,tabIndex:nt},at?q(Gt[1],e.createElement(m.Z,null),!0):q(Gt[0],gt?e.createElement(ge.Z,null):e.createElement(U.Z,null),!0)))},ot=t(96641);const qe=e.forwardRef((me,Fe)=>{let{style:at,children:it}=me;const Et=e.useRef(null);return e.useImperativeHandle(Fe,()=>({isExceed:()=>{const yn=Et.current;return yn.scrollHeight>yn.clientHeight},getHeight:()=>Et.current.clientHeight})),e.createElement("span",{"aria-hidden":!0,ref:Et,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},at)},it)}),Ze=me=>me.reduce((Fe,at)=>Fe+(Ee(at)?String(at).length:1),0);function xe(me,Fe){let at=0;const it=[];for(let Et=0;Et<me.length;Et+=1){if(at===Fe)return it;const yn=me[Et],nt=Ee(yn)?String(yn).length:1,Ve=at+nt;if(Ve>Fe){const gt=Fe-at;return it.push(String(yn).slice(0,gt)),it}it.push(yn),at=Ve}return me}const $e=0,ze=1,Ae=2,vt=3,yt=4,ct={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function xt(me){const{enableMeasure:Fe,width:at,text:it,children:Et,rows:yn,expanded:Ke,miscDeps:nt,onEllipsis:Ve}=me,gt=e.useMemo(()=>(0,z.Z)(it),[it]),Pt=e.useMemo(()=>Ze(gt),[it]),Gt=e.useMemo(()=>Et(gt,!1),[it]),[Ut,ln]=e.useState(null),gn=e.useRef(null),be=e.useRef(null),je=e.useRef(null),Ge=e.useRef(null),mt=e.useRef(null),[Bt,pe]=e.useState(!1),[Ce,re]=e.useState($e),[oe,ie]=e.useState(0),[Xe,Ne]=e.useState(null);(0,i.Z)(()=>{re(Fe&&at&&Pt?ze:$e)},[at,it,yn,Fe,gt]),(0,i.Z)(()=>{var ke,St,Dt,Yt;if(Ce===ze){re(Ae);const _t=be.current&&getComputedStyle(be.current).whiteSpace;Ne(_t)}else if(Ce===Ae){const _t=!!(!((ke=je.current)===null||ke===void 0)&&ke.isExceed());re(_t?vt:yt),ln(_t?[0,Pt]:null),pe(_t);const cn=((St=je.current)===null||St===void 0?void 0:St.getHeight())||0,Vt=yn===1?0:((Dt=Ge.current)===null||Dt===void 0?void 0:Dt.getHeight())||0,Tn=((Yt=mt.current)===null||Yt===void 0?void 0:Yt.getHeight())||0,En=Math.max(cn,Vt+Tn);ie(En+1),Ve(_t)}},[Ce]);const lt=Ut?Math.ceil((Ut[0]+Ut[1])/2):0;(0,i.Z)(()=>{var ke;const[St,Dt]=Ut||[0,0];if(St!==Dt){const _t=(((ke=gn.current)===null||ke===void 0?void 0:ke.getHeight())||0)>oe;let cn=lt;Dt-St===1&&(cn=_t?St:Dt),ln(_t?[St,cn]:[cn,Dt])}},[Ut,lt]);const Ye=e.useMemo(()=>{if(!Fe)return Et(gt,!1);if(Ce!==vt||!Ut||Ut[0]!==Ut[1]){const ke=Et(gt,!1);return[yt,$e].includes(Ce)?ke:e.createElement("span",{style:Object.assign(Object.assign({},ct),{WebkitLineClamp:yn})},ke)}return Et(Ke?gt:xe(gt,Ut[0]),Bt)},[Ke,Ce,Ut,gt].concat((0,ot.Z)(nt))),rt={width:at,margin:0,padding:0,whiteSpace:Xe==="nowrap"?"normal":"inherit"};return e.createElement(e.Fragment,null,Ye,Ce===Ae&&e.createElement(e.Fragment,null,e.createElement(qe,{style:Object.assign(Object.assign(Object.assign({},rt),ct),{WebkitLineClamp:yn}),ref:je},Gt),e.createElement(qe,{style:Object.assign(Object.assign(Object.assign({},rt),ct),{WebkitLineClamp:yn-1}),ref:Ge},Gt),e.createElement(qe,{style:Object.assign(Object.assign(Object.assign({},rt),ct),{WebkitLineClamp:1}),ref:mt},Et([],!0))),Ce===vt&&Ut&&Ut[0]!==Ut[1]&&e.createElement(qe,{style:Object.assign(Object.assign({},rt),{top:400}),ref:gn},Et(xe(gt,lt),!0)),Ce===ze&&e.createElement("span",{style:{whiteSpace:"inherit"},ref:be}))}var sn=me=>{let{enableEllipsis:Fe,isEllipsis:at,children:it,tooltipProps:Et}=me;return!(Et!=null&&Et.title)||!Fe?it:e.createElement(C.Z,Object.assign({open:at?void 0:!1},Et),it)},Pe=function(me,Fe){var at={};for(var it in me)Object.prototype.hasOwnProperty.call(me,it)&&Fe.indexOf(it)<0&&(at[it]=me[it]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,it=Object.getOwnPropertySymbols(me);Et<it.length;Et++)Fe.indexOf(it[Et])<0&&Object.prototype.propertyIsEnumerable.call(me,it[Et])&&(at[it[Et]]=me[it[Et]]);return at};function _e(me,Fe){let{mark:at,code:it,underline:Et,delete:yn,strong:Ke,keyboard:nt,italic:Ve}=me,gt=Fe;function Pt(Gt,Ut){Ut&&(gt=e.createElement(Gt,{},gt))}return Pt("strong",Ke),Pt("u",Et),Pt("del",yn),Pt("code",it),Pt("mark",at),Pt("kbd",nt),Pt("i",Ve),gt}const Ue="...";var pt=e.forwardRef((me,Fe)=>{var at;const{prefixCls:it,className:Et,style:yn,type:Ke,disabled:nt,children:Ve,ellipsis:gt,editable:Pt,copyable:Gt,component:Ut,title:ln}=me,gn=Pe(me,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:be,direction:je}=e.useContext(Q.E_),[Ge]=(0,p.Z)("Text"),mt=e.useRef(null),Bt=e.useRef(null),pe=be("typography",it),Ce=(0,x.Z)(gn,["mark","code","delete","underline","strong","keyboard","italic"]),[re,oe]=fe(Pt),[ie,Xe]=(0,P.Z)(!1,{value:oe.editing}),{triggerType:Ne=["icon"]}=oe,lt=rn=>{var Cn;rn&&((Cn=oe.onStart)===null||Cn===void 0||Cn.call(oe)),Xe(rn)},Ye=Be(ie);(0,i.Z)(()=>{var rn;!ie&&Ye&&((rn=Bt.current)===null||rn===void 0||rn.focus())},[ie]);const rt=rn=>{rn==null||rn.preventDefault(),lt(!0)},ke=rn=>{var Cn;(Cn=oe.onChange)===null||Cn===void 0||Cn.call(oe,rn),lt(!1)},St=()=>{var rn;(rn=oe.onCancel)===null||rn===void 0||rn.call(oe),lt(!1)},[Dt,Yt]=fe(Gt),{copied:_t,copyLoading:cn,onClick:Vt}=J({copyConfig:Yt,children:Ve}),[Tn,En]=e.useState(!1),[Fn,nr]=e.useState(!1),[Yn,Er]=e.useState(!1),[pr,ve]=e.useState(!1),[ye,tt]=e.useState(!0),[st,Nt]=fe(gt,{expandable:!1,symbol:rn=>rn?Ge==null?void 0:Ge.collapse:Ge==null?void 0:Ge.expand}),[on,en]=(0,P.Z)(Nt.defaultExpanded||!1,{value:Nt.expanded}),Vn=st&&(!on||Nt.expandable==="collapsible"),{rows:Kt=1}=Nt,wt=e.useMemo(()=>Vn&&(Nt.suffix!==void 0||Nt.onEllipsis||Nt.expandable||re||Dt),[Vn,Nt,re,Dt]);(0,i.Z)(()=>{st&&!wt&&(En(te("webkitLineClamp")),nr(te("textOverflow")))},[wt,st]);const[Wt,Sn]=e.useState(Vn),xn=e.useMemo(()=>wt?!1:Kt===1?Fn:Tn,[wt,Fn,Tn]);(0,i.Z)(()=>{Sn(xn&&Vn)},[xn,Vn]);const It=Vn&&(Wt?pr:Yn),un=Vn&&Kt===1&&Wt,$n=Vn&&Kt>1&&Wt,Xn=(rn,Cn)=>{var In;en(Cn.expanded),(In=Nt.onExpand)===null||In===void 0||In.call(Nt,rn,Cn)},[rr,Le]=e.useState(0),ue=rn=>{let{offsetWidth:Cn}=rn;Le(Cn)},bt=rn=>{var Cn;Er(rn),Yn!==rn&&((Cn=Nt.onEllipsis)===null||Cn===void 0||Cn.call(Nt,rn))};e.useEffect(()=>{const rn=mt.current;if(st&&Wt&&rn){const Cn=ce(rn);pr!==Cn&&ve(Cn)}},[st,Wt,Ve,$n,ye,rr]),e.useEffect(()=>{const rn=mt.current;if(typeof IntersectionObserver>"u"||!rn||!Wt||!Vn)return;const Cn=new IntersectionObserver(()=>{tt(!!rn.offsetParent)});return Cn.observe(rn),()=>{Cn.disconnect()}},[Wt,Vn]);const zt=X(Nt.tooltip,oe.text,Ve),Ft=e.useMemo(()=>{if(!(!st||Wt))return[oe.text,Ve,ln,zt.title].find(Ee)},[st,Wt,ln,zt.title,It]);if(ie)return e.createElement(v,{value:(at=oe.text)!==null&&at!==void 0?at:typeof Ve=="string"?Ve:"",onSave:ke,onCancel:St,onEnd:oe.onEnd,prefixCls:pe,className:Et,style:yn,direction:je,component:Ut,maxLength:oe.maxLength,autoSize:oe.autoSize,enterIcon:oe.enterIcon});const jt=()=>{const{expandable:rn,symbol:Cn}=Nt;return rn?e.createElement("button",{type:"button",key:"expand",className:`${pe}-${on?"collapse":"expand"}`,onClick:In=>Xn(In,{expanded:!on}),"aria-label":on?Ge.collapse:Ge==null?void 0:Ge.expand},typeof Cn=="function"?Cn(on):Cn):null},pn=()=>{if(!re)return;const{icon:rn,tooltip:Cn,tabIndex:In}=oe,wn=(0,z.Z)(Cn)[0]||(Ge==null?void 0:Ge.edit),zn=typeof wn=="string"?wn:"";return Ne.includes("icon")?e.createElement(C.Z,{key:"edit",title:Cn===!1?"":wn},e.createElement("button",{type:"button",ref:Bt,className:`${pe}-edit`,onClick:rt,"aria-label":zn,tabIndex:In},rn||e.createElement(a.Z,{role:"button"}))):null},qt=()=>Dt?e.createElement(we,Object.assign({key:"copy"},Yt,{prefixCls:pe,copied:_t,locale:Ge,onCopy:Vt,loading:cn,iconOnly:Ve==null})):null,Pn=rn=>[rn&&jt(),pn(),qt()],Rn=rn=>[rn&&!on&&e.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Ue),Nt.suffix,Pn(rn)];return e.createElement(I.Z,{onResize:ue,disabled:!Vn},rn=>e.createElement(sn,{tooltipProps:zt,enableEllipsis:Vn,isEllipsis:It},e.createElement(l,Object.assign({className:M()({[`${pe}-${Ke}`]:Ke,[`${pe}-disabled`]:nt,[`${pe}-ellipsis`]:st,[`${pe}-ellipsis-single-line`]:un,[`${pe}-ellipsis-multiple-line`]:$n},Et),prefixCls:it,style:Object.assign(Object.assign({},yn),{WebkitLineClamp:$n?Kt:void 0}),component:Ut,ref:(0,f.sQ)(rn,mt,Fe),direction:je,onClick:Ne.includes("text")?rt:void 0,"aria-label":Ft==null?void 0:Ft.toString(),title:ln},Ce),e.createElement(xt,{enableMeasure:Vn&&!Wt,text:Ve,rows:Kt,width:rr,onEllipsis:bt,expanded:on,miscDeps:[_t,on,cn,re,Dt,Ge]},(Cn,In)=>_e(me,e.createElement(e.Fragment,null,Cn.length>0&&In&&!on&&Ft?e.createElement("span",{key:"show-content","aria-hidden":!0},Cn):Cn,Rn(In)))))))}),N=function(me,Fe){var at={};for(var it in me)Object.prototype.hasOwnProperty.call(me,it)&&Fe.indexOf(it)<0&&(at[it]=me[it]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,it=Object.getOwnPropertySymbols(me);Et<it.length;Et++)Fe.indexOf(it[Et])<0&&Object.prototype.propertyIsEnumerable.call(me,it[Et])&&(at[it[Et]]=me[it[Et]]);return at},Ht=e.forwardRef((me,Fe)=>{var{ellipsis:at,rel:it}=me,Et=N(me,["ellipsis","rel"]);const yn=Object.assign(Object.assign({},Et),{rel:it===void 0&&Et.target==="_blank"?"noopener noreferrer":it});return delete yn.navigate,e.createElement(pt,Object.assign({},yn,{ref:Fe,ellipsis:!!at,component:"a"}))}),ft=e.forwardRef((me,Fe)=>e.createElement(pt,Object.assign({ref:Fe},me,{component:"div"}))),Tt=function(me,Fe){var at={};for(var it in me)Object.prototype.hasOwnProperty.call(me,it)&&Fe.indexOf(it)<0&&(at[it]=me[it]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,it=Object.getOwnPropertySymbols(me);Et<it.length;Et++)Fe.indexOf(it[Et])<0&&Object.prototype.propertyIsEnumerable.call(me,it[Et])&&(at[it[Et]]=me[it[Et]]);return at};const Rt=(me,Fe)=>{var{ellipsis:at}=me,it=Tt(me,["ellipsis"]);const Et=e.useMemo(()=>at&&typeof at=="object"?(0,x.Z)(at,["expandable","rows"]):at,[at]);return e.createElement(pt,Object.assign({ref:Fe},it,{ellipsis:Et,component:"span"}))};var Zt=e.forwardRef(Rt),nn=function(me,Fe){var at={};for(var it in me)Object.prototype.hasOwnProperty.call(me,it)&&Fe.indexOf(it)<0&&(at[it]=me[it]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,it=Object.getOwnPropertySymbols(me);Et<it.length;Et++)Fe.indexOf(it[Et])<0&&Object.prototype.propertyIsEnumerable.call(me,it[Et])&&(at[it[Et]]=me[it[Et]]);return at};const dn=[1,2,3,4,5];var Ot=e.forwardRef((me,Fe)=>{const{level:at=1}=me,it=nn(me,["level"]),Et=dn.includes(at)?`h${at}`:"h1";return e.createElement(pt,Object.assign({ref:Fe},it,{component:Et}))});const Re=l;Re.Text=Zt,Re.Link=Ht,Re.Title=Ot,Re.Paragraph=ft;var Je=Re},79801:function($t,le,t){t.d(le,{Z:function(){return de}});var e=t(67294),a=t(96641),o=t(73935),M=t(93967),I=t.n(M),z=t(36356),i=t(5663),P=t(53124),x=t(98866),f=t(10110),h=t(40378),R=t(48807),K=t(62172),te=t(3407),Q=t(96259),p=t(57383),C=t(15602),W=t(10366),c=t(57838),D=t(33603),s=t(96159),S=t(83622);function L(l){return Object.assign(Object.assign({},l),{lastModified:l.lastModified,lastModifiedDate:l.lastModifiedDate,name:l.name,size:l.size,type:l.type,uid:l.uid,percent:0,originFileObj:l})}function ae(l,m){const U=(0,a.Z)(m),ge=U.findIndex(Y=>{let{uid:q}=Y;return q===l.uid});return ge===-1?U.push(l):U[ge]=l,U}function k(l,m){const U=l.uid!==void 0?"uid":"name";return m.filter(ge=>ge[U]===l[U])[0]}function H(l,m){const U=l.uid!==void 0?"uid":"name",ge=m.filter(Y=>Y[U]!==l[U]);return ge.length===m.length?null:ge}const w=function(){const m=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ge=m[m.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ge)||[""])[0]},$=l=>l.indexOf("image/")===0,b=l=>{if(l.type&&!l.thumbUrl)return $(l.type);const m=l.thumbUrl||l.url||"",U=w(m);return/^data:image\//.test(m)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(U)?!0:!(/^data:/.test(m)||U)},_=200;function V(l){return new Promise(m=>{if(!l.type||!$(l.type)){m("");return}const U=document.createElement("canvas");U.width=_,U.height=_,U.style.cssText=`position: fixed; left: 0; top: 0; width: ${_}px; height: ${_}px; z-index: 9999; display: none;`,document.body.appendChild(U);const ge=U.getContext("2d"),Y=new Image;if(Y.onload=()=>{const{width:q,height:ce}=Y;let Ee=_,Ie=_,we=0,ot=0;q>ce?(Ie=ce*(_/q),ot=-(Ie-Ee)/2):(Ee=q*(_/ce),we=-(Ee-Ie)/2),ge.drawImage(Y,we,ot,Ee,Ie);const qe=U.toDataURL();document.body.removeChild(U),window.URL.revokeObjectURL(Y.src),m(qe)},Y.crossOrigin="anonymous",l.type.startsWith("image/svg+xml")){const q=new FileReader;q.onload=()=>{q.result&&typeof q.result=="string"&&(Y.src=q.result)},q.readAsDataURL(l)}else if(l.type.startsWith("image/gif")){const q=new FileReader;q.onload=()=>{q.result&&m(q.result)},q.readAsDataURL(l)}else Y.src=window.URL.createObjectURL(l)})}var n=t(84249),ne=t(96092),O=t(99569),T=t(26410),u=t(83062),g=e.forwardRef((l,m)=>{let{prefixCls:U,className:ge,style:Y,locale:q,listType:ce,file:Ee,items:Ie,progress:we,iconRender:ot,actionIconRender:qe,itemRender:Ze,isImgUrl:xe,showPreviewIcon:$e,showRemoveIcon:ze,showDownloadIcon:Ae,previewIcon:vt,removeIcon:yt,downloadIcon:ct,extra:xt,onPreview:At,onDownload:sn,onClose:Pe}=l;var _e,Ue;const{status:et}=Ee,[pt,N]=e.useState(et);e.useEffect(()=>{et!=="removed"&&N(et)},[et]);const[Qe,Ht]=e.useState(!1);e.useEffect(()=>{const nt=setTimeout(()=>{Ht(!0)},300);return()=>{clearTimeout(nt)}},[]);const dt=ot(Ee);let ft=e.createElement("div",{className:`${U}-icon`},dt);if(ce==="picture"||ce==="picture-card"||ce==="picture-circle")if(pt==="uploading"||!Ee.thumbUrl&&!Ee.url){const nt=I()(`${U}-list-item-thumbnail`,{[`${U}-list-item-file`]:pt!=="uploading"});ft=e.createElement("div",{className:nt},dt)}else{const nt=xe!=null&&xe(Ee)?e.createElement("img",{src:Ee.thumbUrl||Ee.url,alt:Ee.name,className:`${U}-list-item-image`,crossOrigin:Ee.crossOrigin}):dt,Ve=I()(`${U}-list-item-thumbnail`,{[`${U}-list-item-file`]:xe&&!xe(Ee)});ft=e.createElement("a",{className:Ve,onClick:gt=>At(Ee,gt),href:Ee.url||Ee.thumbUrl,target:"_blank",rel:"noopener noreferrer"},nt)}const Tt=I()(`${U}-list-item`,`${U}-list-item-${pt}`),Rt=typeof Ee.linkProps=="string"?JSON.parse(Ee.linkProps):Ee.linkProps,Zt=(typeof ze=="function"?ze(Ee):ze)?qe((typeof yt=="function"?yt(Ee):yt)||e.createElement(n.Z,null),()=>Pe(Ee),U,q.removeFile,!0):null,nn=(typeof Ae=="function"?Ae(Ee):Ae)&&pt==="done"?qe((typeof ct=="function"?ct(Ee):ct)||e.createElement(ne.Z,null),()=>sn(Ee),U,q.downloadFile):null,dn=ce!=="picture-card"&&ce!=="picture-circle"&&e.createElement("span",{key:"download-delete",className:I()(`${U}-list-item-actions`,{picture:ce==="picture"})},nn,Zt),mn=typeof xt=="function"?xt(Ee):xt,Ot=mn&&e.createElement("span",{className:`${U}-list-item-extra`},mn),Re=I()(`${U}-list-item-name`),Je=Ee.url?e.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Re,title:Ee.name},Rt,{href:Ee.url,onClick:nt=>At(Ee,nt)}),Ee.name,Ot):e.createElement("span",{key:"view",className:Re,onClick:nt=>At(Ee,nt),title:Ee.name},Ee.name,Ot),me=(typeof $e=="function"?$e(Ee):$e)&&(Ee.url||Ee.thumbUrl)?e.createElement("a",{href:Ee.url||Ee.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:nt=>At(Ee,nt),title:q.previewFile},typeof vt=="function"?vt(Ee):vt||e.createElement(O.Z,null)):null,Fe=(ce==="picture-card"||ce==="picture-circle")&&pt!=="uploading"&&e.createElement("span",{className:`${U}-list-item-actions`},me,pt==="done"&&nn,Zt),{getPrefixCls:at}=e.useContext(P.E_),it=at(),Et=e.createElement("div",{className:Tt},ft,Je,dn,Fe,Qe&&e.createElement(C.ZP,{motionName:`${it}-fade`,visible:pt==="uploading",motionDeadline:2e3},nt=>{let{className:Ve}=nt;const gt="percent"in Ee?e.createElement(T.Z,Object.assign({},we,{type:"line",percent:Ee.percent,"aria-label":Ee["aria-label"],"aria-labelledby":Ee["aria-labelledby"]})):null;return e.createElement("div",{className:I()(`${U}-list-item-progress`,Ve)},gt)})),yn=Ee.response&&typeof Ee.response=="string"?Ee.response:((_e=Ee.error)===null||_e===void 0?void 0:_e.statusText)||((Ue=Ee.error)===null||Ue===void 0?void 0:Ue.message)||q.uploadError,Ke=pt==="error"?e.createElement(u.Z,{title:yn,getPopupContainer:nt=>nt.parentNode},Et):Et;return e.createElement("div",{className:I()(`${U}-list-item-container`,ge),style:Y,ref:m},Ze?Ze(Ke,Ee,Ie,{download:sn.bind(null,Ee),preview:At.bind(null,Ee),remove:Pe.bind(null,Ee)}):Ke)});const B=(l,m)=>{const{listType:U="text",previewFile:ge=V,onPreview:Y,onDownload:q,onRemove:ce,locale:Ee,iconRender:Ie,isImageUrl:we=b,prefixCls:ot,items:qe=[],showPreviewIcon:Ze=!0,showRemoveIcon:xe=!0,showDownloadIcon:$e=!1,removeIcon:ze,previewIcon:Ae,downloadIcon:vt,extra:yt,progress:ct={size:[-1,2],showInfo:!1},appendAction:xt,appendActionVisible:At=!0,itemRender:sn,disabled:Pe}=l,_e=(0,c.Z)(),[Ue,et]=e.useState(!1),pt=["picture-card","picture-circle"].includes(U);e.useEffect(()=>{U.startsWith("picture")&&(qe||[]).forEach(Ot=>{!(Ot.originFileObj instanceof File||Ot.originFileObj instanceof Blob)||Ot.thumbUrl!==void 0||(Ot.thumbUrl="",ge==null||ge(Ot.originFileObj).then(Re=>{Ot.thumbUrl=Re||"",_e()}))})},[U,qe,ge]),e.useEffect(()=>{et(!0)},[]);const N=(Ot,Re)=>{if(Y)return Re==null||Re.preventDefault(),Y(Ot)},Qe=Ot=>{typeof q=="function"?q(Ot):Ot.url&&window.open(Ot.url)},Ht=Ot=>{ce==null||ce(Ot)},dt=Ot=>{if(Ie)return Ie(Ot,U);const Re=Ot.status==="uploading";if(U.startsWith("picture")){const Je=U==="picture"?e.createElement(te.Z,null):Ee.uploading,me=we!=null&&we(Ot)?e.createElement(p.Z,null):e.createElement(K.Z,null);return Re?Je:me}return Re?e.createElement(te.Z,null):e.createElement(Q.Z,null)},ft=(Ot,Re,Je,me,Fe)=>{const at={type:"text",size:"small",title:me,onClick:it=>{var Et,yn;Re(),e.isValidElement(Ot)&&((yn=(Et=Ot.props).onClick)===null||yn===void 0||yn.call(Et,it))},className:`${Je}-list-item-action`};return Fe&&(at.disabled=Pe),e.isValidElement(Ot)?e.createElement(S.ZP,Object.assign({},at,{icon:(0,s.Tm)(Ot,Object.assign(Object.assign({},Ot.props),{onClick:()=>{}}))})):e.createElement(S.ZP,Object.assign({},at),e.createElement("span",null,Ot))};e.useImperativeHandle(m,()=>({handlePreview:N,handleDownload:Qe}));const{getPrefixCls:Tt}=e.useContext(P.E_),Rt=Tt("upload",ot),Zt=Tt(),nn=I()(`${Rt}-list`,`${Rt}-list-${U}`),dn=e.useMemo(()=>(0,W.Z)((0,D.Z)(Zt),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Zt]),mn=Object.assign(Object.assign({},pt?{}:dn),{motionDeadline:2e3,motionName:`${Rt}-${pt?"animate-inline":"animate"}`,keys:(0,a.Z)(qe.map(Ot=>({key:Ot.uid,file:Ot}))),motionAppear:Ue});return e.createElement("div",{className:nn},e.createElement(C.V4,Object.assign({},mn,{component:!1}),Ot=>{let{key:Re,file:Je,className:me,style:Fe}=Ot;return e.createElement(g,{key:Re,locale:Ee,prefixCls:Rt,className:me,style:Fe,file:Je,items:qe,progress:ct,listType:U,isImgUrl:we,showPreviewIcon:Ze,showRemoveIcon:xe,showDownloadIcon:$e,removeIcon:ze,previewIcon:Ae,downloadIcon:vt,extra:yt,iconRender:dt,actionIconRender:ft,itemRender:sn,onPreview:N,onDownload:Qe,onClose:Ht})}),xt&&e.createElement(C.ZP,Object.assign({},mn,{visible:At,forceRender:!0}),Ot=>{let{className:Re,style:Je}=Ot;return(0,s.Tm)(xt,me=>({className:I()(me.className,Re),style:Object.assign(Object.assign(Object.assign({},Je),{pointerEvents:Re?"none":void 0}),me.style)}))}))};var y=e.forwardRef(B),A=function(l,m,U,ge){function Y(q){return q instanceof U?q:new U(function(ce){ce(q)})}return new(U||(U=Promise))(function(q,ce){function Ee(ot){try{we(ge.next(ot))}catch(qe){ce(qe)}}function Ie(ot){try{we(ge.throw(ot))}catch(qe){ce(qe)}}function we(ot){ot.done?q(ot.value):Y(ot.value).then(Ee,Ie)}we((ge=ge.apply(l,m||[])).next())})};const F=`__LIST_IGNORE_${Date.now()}__`,J=(l,m)=>{const{fileList:U,defaultFileList:ge,onRemove:Y,showUploadList:q=!0,listType:ce="text",onPreview:Ee,onDownload:Ie,onChange:we,onDrop:ot,previewFile:qe,disabled:Ze,locale:xe,iconRender:$e,isImageUrl:ze,progress:Ae,prefixCls:vt,className:yt,type:ct="select",children:xt,style:At,itemRender:sn,maxCount:Pe,data:_e={},multiple:Ue=!1,hasControlInside:et=!0,action:pt="",accept:N="",supportServerRender:Qe=!0,rootClassName:Ht}=l,dt=e.useContext(x.Z),ft=Ze??dt,[Tt,Rt]=(0,i.Z)(ge||[],{value:U,postState:Ye=>Ye??[]}),[Zt,nn]=e.useState("drop"),dn=e.useRef(null),mn=e.useRef(null);e.useMemo(()=>{const Ye=Date.now();(U||[]).forEach((rt,ke)=>{!rt.uid&&!Object.isFrozen(rt)&&(rt.uid=`__AUTO__${Ye}_${ke}__`)})},[U]);const Ot=(Ye,rt,ke)=>{let St=(0,a.Z)(rt),Dt=!1;Pe===1?St=St.slice(-1):Pe&&(Dt=St.length>Pe,St=St.slice(0,Pe)),(0,o.flushSync)(()=>{Rt(St)});const Yt={file:Ye,fileList:St};ke&&(Yt.event=ke),(!Dt||Ye.status==="removed"||St.some(_t=>_t.uid===Ye.uid))&&(0,o.flushSync)(()=>{we==null||we(Yt)})},Re=(Ye,rt)=>A(void 0,void 0,void 0,function*(){const{beforeUpload:ke,transformFile:St}=l;let Dt=Ye;if(ke){const Yt=yield ke(Ye,rt);if(Yt===!1)return!1;if(delete Ye[F],Yt===F)return Object.defineProperty(Ye,F,{value:!0,configurable:!0}),!1;typeof Yt=="object"&&Yt&&(Dt=Yt)}return St&&(Dt=yield St(Dt)),Dt}),Je=Ye=>{const rt=Ye.filter(Dt=>!Dt.file[F]);if(!rt.length)return;const ke=rt.map(Dt=>L(Dt.file));let St=(0,a.Z)(Tt);ke.forEach(Dt=>{St=ae(Dt,St)}),ke.forEach((Dt,Yt)=>{let _t=Dt;if(rt[Yt].parsedFile)Dt.status="uploading";else{const{originFileObj:cn}=Dt;let Vt;try{Vt=new File([cn],cn.name,{type:cn.type})}catch{Vt=new Blob([cn],{type:cn.type}),Vt.name=cn.name,Vt.lastModifiedDate=new Date,Vt.lastModified=new Date().getTime()}Vt.uid=Dt.uid,_t=Vt}Ot(_t,St)})},me=(Ye,rt,ke)=>{try{typeof Ye=="string"&&(Ye=JSON.parse(Ye))}catch{}if(!k(rt,Tt))return;const St=L(rt);St.status="done",St.percent=100,St.response=Ye,St.xhr=ke;const Dt=ae(St,Tt);Ot(St,Dt)},Fe=(Ye,rt)=>{if(!k(rt,Tt))return;const ke=L(rt);ke.status="uploading",ke.percent=Ye.percent;const St=ae(ke,Tt);Ot(ke,St,Ye)},at=(Ye,rt,ke)=>{if(!k(ke,Tt))return;const St=L(ke);St.error=Ye,St.response=rt,St.status="error";const Dt=ae(St,Tt);Ot(St,Dt)},it=Ye=>{let rt;Promise.resolve(typeof Y=="function"?Y(Ye):Y).then(ke=>{var St;if(ke===!1)return;const Dt=H(Ye,Tt);Dt&&(rt=Object.assign(Object.assign({},Ye),{status:"removed"}),Tt==null||Tt.forEach(Yt=>{const _t=rt.uid!==void 0?"uid":"name";Yt[_t]===rt[_t]&&!Object.isFrozen(Yt)&&(Yt.status="removed")}),(St=dn.current)===null||St===void 0||St.abort(rt),Ot(rt,Dt))})},Et=Ye=>{nn(Ye.type),Ye.type==="drop"&&(ot==null||ot(Ye))};e.useImperativeHandle(m,()=>({onBatchStart:Je,onSuccess:me,onProgress:Fe,onError:at,fileList:Tt,upload:dn.current,nativeElement:mn.current}));const{getPrefixCls:yn,direction:Ke,upload:nt}=e.useContext(P.E_),Ve=yn("upload",vt),gt=Object.assign(Object.assign({onBatchStart:Je,onError:at,onProgress:Fe,onSuccess:me},l),{data:_e,multiple:Ue,action:pt,accept:N,supportServerRender:Qe,prefixCls:Ve,disabled:ft,beforeUpload:Re,onChange:void 0,hasControlInside:et});delete gt.className,delete gt.style,(!xt||ft)&&delete gt.id;const Pt=`${Ve}-wrapper`,[Gt,Ut,ln]=(0,R.Z)(Ve,Pt),[gn]=(0,f.Z)("Upload",h.Z.Upload),{showRemoveIcon:be,showPreviewIcon:je,showDownloadIcon:Ge,removeIcon:mt,previewIcon:Bt,downloadIcon:pe,extra:Ce}=typeof q=="boolean"?{}:q,re=typeof be>"u"?!ft:be,oe=(Ye,rt)=>q?e.createElement(y,{prefixCls:Ve,listType:ce,items:Tt,previewFile:qe,onPreview:Ee,onDownload:Ie,onRemove:it,showRemoveIcon:re,showPreviewIcon:je,showDownloadIcon:Ge,removeIcon:mt,previewIcon:Bt,downloadIcon:pe,iconRender:$e,extra:Ce,locale:Object.assign(Object.assign({},gn),xe),isImageUrl:ze,progress:Ae,appendAction:Ye,appendActionVisible:rt,itemRender:sn,disabled:ft}):Ye,ie=I()(Pt,yt,Ht,Ut,ln,nt==null?void 0:nt.className,{[`${Ve}-rtl`]:Ke==="rtl",[`${Ve}-picture-card-wrapper`]:ce==="picture-card",[`${Ve}-picture-circle-wrapper`]:ce==="picture-circle"}),Xe=Object.assign(Object.assign({},nt==null?void 0:nt.style),At);if(ct==="drag"){const Ye=I()(Ut,Ve,`${Ve}-drag`,{[`${Ve}-drag-uploading`]:Tt.some(rt=>rt.status==="uploading"),[`${Ve}-drag-hover`]:Zt==="dragover",[`${Ve}-disabled`]:ft,[`${Ve}-rtl`]:Ke==="rtl"});return Gt(e.createElement("span",{className:ie,ref:mn},e.createElement("div",{className:Ye,style:Xe,onDrop:Et,onDragOver:Et,onDragLeave:Et},e.createElement(z.Z,Object.assign({},gt,{ref:dn,className:`${Ve}-btn`}),e.createElement("div",{className:`${Ve}-drag-container`},xt))),oe()))}const Ne=I()(Ve,`${Ve}-select`,{[`${Ve}-disabled`]:ft,[`${Ve}-hidden`]:!xt}),lt=e.createElement("div",{className:Ne},e.createElement(z.Z,Object.assign({},gt,{ref:dn})));return Gt(ce==="picture-card"||ce==="picture-circle"?e.createElement("span",{className:ie,ref:mn},oe(lt,!!xt)):e.createElement("span",{className:ie,ref:mn},lt,oe()))};var Me=e.forwardRef(J),Be=function(l,m){var U={};for(var ge in l)Object.prototype.hasOwnProperty.call(l,ge)&&m.indexOf(ge)<0&&(U[ge]=l[ge]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,ge=Object.getOwnPropertySymbols(l);Y<ge.length;Y++)m.indexOf(ge[Y])<0&&Object.prototype.propertyIsEnumerable.call(l,ge[Y])&&(U[ge[Y]]=l[ge[Y]]);return U},X=e.forwardRef((l,m)=>{var{style:U,height:ge,hasControlInside:Y=!1}=l,q=Be(l,["style","height","hasControlInside"]);return e.createElement(Me,Object.assign({ref:m,hasControlInside:Y},q,{type:"drag",style:Object.assign(Object.assign({},U),{height:ge})}))});const Z=Me;Z.Dragger=X,Z.LIST_IGNORE=F;var de=Z},48807:function($t,le,t){t.d(le,{Z:function(){return D}});var e=t(14747),a=t(33507),o=t(83559),M=t(87893),I=t(19037),i=s=>{const{componentCls:S,iconCls:L}=s;return{[`${S}-wrapper`]:{[`${S}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:s.colorFillAlter,border:`${(0,I.bf)(s.lineWidth)} dashed ${s.colorBorder}`,borderRadius:s.borderRadiusLG,cursor:"pointer",transition:`border-color ${s.motionDurationSlow}`,[S]:{padding:s.padding},[`${S}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:s.borderRadiusLG,"&:focus-visible":{outline:`${(0,I.bf)(s.lineWidthFocus)} solid ${s.colorPrimaryBorder}`}},[`${S}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
422
422
|
&:not(${S}-disabled):hover,
|
|
423
423
|
&-hover:not(${S}-disabled)
|
|
424
424
|
`]:{borderColor:s.colorPrimaryHover},[`p${S}-drag-icon`]:{marginBottom:s.margin,[L]:{color:s.colorPrimary,fontSize:s.uploadThumbnailSize}},[`p${S}-text`]:{margin:`0 0 ${(0,I.bf)(s.marginXXS)}`,color:s.colorTextHeading,fontSize:s.fontSizeLG},[`p${S}-hint`]:{color:s.colorTextDescription,fontSize:s.fontSize},[`&${S}-disabled`]:{[`p${S}-drag-icon ${L},
|
package/dist/client/{npm.d3-transition.1d02fe5d.async.js → npm.d3-transition.8b1a5839.async.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[7015],{60829:function(on,an,y){var g=y(75147),U=y(17049),P=y(91739),F=y(76084),L=(0,U.Z)("start","end","cancel","interrupt"),Y=[],R=0,I=1,E=2,x=3,D=4,N=5,T=6;function A(t,r,n,e,i,a){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;$(t,n,{name:r,index:e,group:i,on:L,tween:Y,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:R})}function C(t,r){var n=d(t,r);if(n.state>R)throw new Error("too late; already scheduled");return n}function p(t,r){var n=d(t,r);if(n.state>x)throw new Error("too late; already running");return n}function d(t,r){var n=t.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function $(t,r,n){var e=t.__transition,i;e[r]=n,n.timer=(0,P.HT)(a,0,n.time);function a(c){n.state=I,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var l,v,h,f;if(n.state!==I)return s();for(l in e)if(f=e[l],f.name===n.name){if(f.state===x)return(0,F.Z)(o);f.state===D?(f.state=T,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete e[l]):+l<r&&(f.state=T,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete e[l])}if((0,F.Z)(function(){n.state===x&&(n.state=D,n.timer.restart(u,n.delay,n.time),u(c))}),n.state=E,n.on.call("start",t,t.__data__,n.index,n.group),n.state===E){for(n.state=x,i=new Array(h=n.tween.length),l=0,v=-1;l<h;++l)(f=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(i[++v]=f);i.length=v+1}}function u(c){for(var l=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(s),n.state=N,1),v=-1,h=i.length;++v<h;)i[v].call(t,l);n.state===N&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){n.state=T,n.timer.stop(),delete e[r];for(var c in e)return;delete t.__transition}}function B(t,r){var n=t.__transition,e,i,a=!0,o;if(n){r=r==null?null:r+"";for(o in n){if((e=n[o]).name!==r){a=!1;continue}i=e.state>E&&e.state<N,e.state=T,e.timer.stop(),e.on.call(i?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete n[o]}a&&delete t.__transition}}function J(t){return this.each(function(){B(this,t)})}var z=y(60898),V=y(26667);function K(t,r){var n,e;return function(){var i=p(this,t),a=i.tween;if(a!==n){e=n=a;for(var o=0,u=e.length;o<u;++o)if(e[o].name===r){e=e.slice(),e.splice(o,1);break}}i.tween=e}}function Q(t,r,n){var e,i;if(typeof n!="function")throw new Error;return function(){var a=p(this,t),o=a.tween;if(o!==e){i=(e=o).slice();for(var u={name:r,value:n},s=0,c=i.length;s<c;++s)if(i[s].name===r){i[s]=u;break}s===c&&i.push(u)}a.tween=i}}function W(t,r){var n=this._id;if(t+="",arguments.length<2){for(var e=d(this.node(),n).tween,i=0,a=e.length,o;i<a;++i)if((o=e[i]).name===t)return o.value;return null}return this.each((r==null?K:Q)(n,t,r))}function Z(t,r,n){var e=t._id;return t.each(function(){var i=p(this,e);(i.value||(i.value={}))[r]=n.apply(this,arguments)}),function(i){return d(i,e).value[r]}}var G=y(96683),X=y(79848),O=y(43867),k=y(20823);function b(t,r){var n;return(typeof r=="number"?X.Z:r instanceof G.ZP?O.ZP:(n=(0,G.ZP)(r))?(r=n,O.ZP):k.Z)(t,r)}function q(t){return function(){this.removeAttribute(t)}}function j(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tt(t,r,n){var e,i=n+"",a;return function(){var o=this.getAttribute(t);return o===i?null:o===e?a:a=r(e=o,n)}}function nt(t,r,n){var e,i=n+"",a;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===e?a:a=r(e=o,n)}}function rt(t,r,n){var e,i,a;return function(){var o,u=n(this),s;return u==null?void this.removeAttribute(t):(o=this.getAttribute(t),s=u+"",o===s?null:o===e&&s===i?a:(i=s,a=r(e=o,u)))}}function et(t,r,n){var e,i,a;return function(){var o,u=n(this),s;return u==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),s=u+"",o===s?null:o===e&&s===i?a:(i=s,a=r(e=o,u)))}}function it(t,r){var n=(0,V.Z)(t),e=n==="transform"?z.w:b;return this.attrTween(t,typeof r=="function"?(n.local?et:rt)(n,e,Z(this,"attr."+t,r)):r==null?(n.local?j:q)(n):(n.local?nt:tt)(n,e,r))}function ot(t,r){return function(n){this.setAttribute(t,r.call(this,n))}}function at(t,r){return function(n){this.setAttributeNS(t.space,t.local,r.call(this,n))}}function ut(t,r){var n,e;function i(){var a=r.apply(this,arguments);return a!==e&&(n=(e=a)&&at(t,a)),n}return i._value=r,i}function st(t,r){var n,e;function i(){var a=r.apply(this,arguments);return a!==e&&(n=(e=a)&&ot(t,a)),n}return i._value=r,i}function ct(t,r){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(r==null)return this.tween(n,null);if(typeof r!="function")throw new Error;var e=(0,V.Z)(t);return this.tween(n,(e.local?ut:st)(e,r))}function lt(t,r){return function(){C(this,t).delay=+r.apply(this,arguments)}}function ft(t,r){return r=+r,function(){C(this,t).delay=r}}function ht(t){var r=this._id;return arguments.length?this.each((typeof t=="function"?lt:ft)(r,t)):d(this.node(),r).delay}function vt(t,r){return function(){p(this,t).duration=+r.apply(this,arguments)}}function yt(t,r){return r=+r,function(){p(this,t).duration=r}}function dt(t){var r=this._id;return arguments.length?this.each((typeof t=="function"?vt:yt)(r,t)):d(this.node(),r).duration}function pt(t,r){if(typeof r!="function")throw new Error;return function(){p(this,t).ease=r}}function wt(t){var r=this._id;return arguments.length?this.each(pt(r,t)):d(this.node(),r).ease}function _t(t,r){return function(){var n=r.apply(this,arguments);if(typeof n!="function")throw new Error;p(this,t).ease=n}}function gt(t){if(typeof t!="function")throw new Error;return this.each(_t(this._id,t))}var mt=y(11513);function xt(t){typeof t!="function"&&(t=(0,mt.Z)(t));for(var r=this._groups,n=r.length,e=new Array(n),i=0;i<n;++i)for(var a=r[i],o=a.length,u=e[i]=[],s,c=0;c<o;++c)(s=a[c])&&t.call(s,s.__data__,c,a)&&u.push(s);return new w(e,this._parents,this._name,this._id)}function Tt(t){if(t._id!==this._id)throw new Error;for(var r=this._groups,n=t._groups,e=r.length,i=n.length,a=Math.min(e,i),o=new Array(e),u=0;u<a;++u)for(var s=r[u],c=n[u],l=s.length,v=o[u]=new Array(l),h,f=0;f<l;++f)(h=s[f]||c[f])&&(v[f]=h);for(;u<e;++u)o[u]=r[u];return new w(o,this._parents,this._name,this._id)}function At(t){return(t+"").trim().split(/^|\s+/).every(function(r){var n=r.indexOf(".");return n>=0&&(r=r.slice(0,n)),!r||r==="start"})}function St(t,r,n){var e,i,a=At(r)?C:p;return function(){var o=a(this,t),u=o.on;u!==e&&(i=(e=u).copy()).on(r,n),o.on=i}}function Et(t,r){var n=this._id;return arguments.length<2?d(this.node(),n).on.on(t):this.each(St(n,t,r))}function Nt(t){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==t)return;r&&r.removeChild(this)}}function Ct(){return this.on("end.remove",Nt(this._id))}var Zt=y(83010);function Pt(t){var r=this._name,n=this._id;typeof t!="function"&&(t=(0,Zt.Z)(t));for(var e=this._groups,i=e.length,a=new Array(i),o=0;o<i;++o)for(var u=e[o],s=u.length,c=a[o]=new Array(s),l,v,h=0;h<s;++h)(l=u[h])&&(v=t.call(l,l.__data__,h,u))&&("__data__"in l&&(v.__data__=l.__data__),c[h]=v,A(c[h],r,n,h,c,d(l,n)));return new w(a,this._parents,r,n)}var Ft=y(19701);function Rt(t){var r=this._name,n=this._id;typeof t!="function"&&(t=(0,Ft.Z)(t));for(var e=this._groups,i=e.length,a=[],o=[],u=0;u<i;++u)for(var s=e[u],c=s.length,l,v=0;v<c;++v)if(l=s[v]){for(var h=t.call(l,l.__data__,v,s),f,rn=d(l,n),S=0,en=h.length;S<en;++S)(f=h[S])&&A(f,r,n,S,h,rn);a.push(h),o.push(l)}return new w(a,o,r,n)}var It=g.ZP.prototype.constructor;function Dt(){return new It(this._groups,this._parents)}var m=y(52627);function zt(t,r){var n,e,i;return function(){var a=(0,m.S)(this,t),o=(this.style.removeProperty(t),(0,m.S)(this,t));return a===o?null:a===n&&o===e?i:i=r(n=a,e=o)}}function H(t){return function(){this.style.removeProperty(t)}}function Vt(t,r,n){var e,i=n+"",a;return function(){var o=(0,m.S)(this,t);return o===i?null:o===e?a:a=r(e=o,n)}}function Gt(t,r,n){var e,i,a;return function(){var o=(0,m.S)(this,t),u=n(this),s=u+"";return u==null&&(s=u=(this.style.removeProperty(t),(0,m.S)(this,t))),o===s?null:o===e&&s===i?a:(i=s,a=r(e=o,u))}}function Ot(t,r){var n,e,i,a="style."+r,o="end."+a,u;return function(){var s=p(this,t),c=s.on,l=s.value[a]==null?u||(u=H(r)):void 0;(c!==n||i!==l)&&(e=(n=c).copy()).on(o,i=l),s.on=e}}function bt(t,r,n){var e=(t+="")=="transform"?z.Y:b;return r==null?this.styleTween(t,zt(t,e)).on("end.style."+t,H(t)):typeof r=="function"?this.styleTween(t,Gt(t,e,Z(this,"style."+t,r))).each(Ot(this._id,t)):this.styleTween(t,Vt(t,e,r),n).on("end.style."+t,null)}function Ht(t,r,n){return function(e){this.style.setProperty(t,r.call(this,e),n)}}function Mt(t,r,n){var e,i;function a(){var o=r.apply(this,arguments);return o!==i&&(e=(i=o)&&Ht(t,o,n)),e}return a._value=r,a}function Ut(t,r,n){var e="style."+(t+="");if(arguments.length<2)return(e=this.tween(e))&&e._value;if(r==null)return this.tween(e,null);if(typeof r!="function")throw new Error;return this.tween(e,Mt(t,r,n??""))}function Lt(t){return function(){this.textContent=t}}function Yt(t){return function(){var r=t(this);this.textContent=r??""}}function $t(t){return this.tween("text",typeof t=="function"?Yt(Z(this,"text",t)):Lt(t==null?"":t+""))}function Bt(t){return function(r){this.textContent=t.call(this,r)}}function Jt(t){var r,n;function e(){var i=t.apply(this,arguments);return i!==n&&(r=(n=i)&&Bt(i)),r}return e._value=t,e}function Kt(t){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,Jt(t))}function Qt(){for(var t=this._name,r=this._id,n=M(),e=this._groups,i=e.length,a=0;a<i;++a)for(var o=e[a],u=o.length,s,c=0;c<u;++c)if(s=o[c]){var l=d(s,r);A(s,t,n,c,o,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new w(e,this._parents,t,n)}function Wt(){var t,r,n=this,e=n._id,i=n.size();return new Promise(function(a,o){var u={value:o},s={value:function(){--i===0&&a()}};n.each(function(){var c=p(this,e),l=c.on;l!==t&&(r=(t=l).copy(),r._.cancel.push(u),r._.interrupt.push(u),r._.end.push(s)),c.on=r}),i===0&&a()})}var Xt=0;function w(t,r,n,e){this._groups=t,this._parents=r,this._name=n,this._id=e}function kt(t){return(0,g.ZP)().transition(t)}function M(){return++Xt}var _=g.ZP.prototype;w.prototype=kt.prototype={constructor:w,select:Pt,selectAll:Rt,selectChild:_.selectChild,selectChildren:_.selectChildren,filter:xt,merge:Tt,selection:Dt,transition:Qt,call:_.call,nodes:_.nodes,node:_.node,size:_.size,empty:_.empty,each:_.each,on:Et,attr:it,attrTween:ct,style:bt,styleTween:Ut,text:$t,textTween:Kt,remove:Ct,tween:W,delay:ht,duration:dt,ease:wt,easeVarying:gt,end:Wt,[Symbol.iterator]:_[Symbol.iterator]};var qt=y(2067),jt={time:null,delay:0,duration:250,ease:qt.tw};function tn(t,r){for(var n;!(n=t.__transition)||!(n=n[r]);)if(!(t=t.parentNode))throw new Error(`transition ${r} not found`);return n}function nn(t){var r,n;t instanceof w?(r=t._id,t=t._name):(r=M(),(n=jt).time=(0,P.zO)(),t=t==null?null:t+"");for(var e=this._groups,i=e.length,a=0;a<i;++a)for(var o=e[a],u=o.length,s,c=0;c<u;++c)(s=o[c])&&A(s,t,r,c,o,n||tn(s,r));return new w(e,this._parents,t,r)}g.ZP.prototype.interrupt=J,g.ZP.prototype.transition=nn}}]);
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[7015],{60829:function(on,an,y){var g=y(75147),U=y(17049),P=y(91739),F=y(76084),L=(0,U.Z)("start","end","cancel","interrupt"),Y=[],R=0,I=1,E=2,x=3,D=4,N=5,T=6;function A(t,r,n,e,i,a){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;$(t,n,{name:r,index:e,group:i,on:L,tween:Y,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:R})}function C(t,r){var n=d(t,r);if(n.state>R)throw new Error("too late; already scheduled");return n}function p(t,r){var n=d(t,r);if(n.state>x)throw new Error("too late; already running");return n}function d(t,r){var n=t.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function $(t,r,n){var e=t.__transition,i;e[r]=n,n.timer=(0,P.HT)(a,0,n.time);function a(c){n.state=I,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var l,v,h,f;if(n.state!==I)return s();for(l in e)if(f=e[l],f.name===n.name){if(f.state===x)return(0,F.Z)(o);f.state===D?(f.state=T,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete e[l]):+l<r&&(f.state=T,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete e[l])}if((0,F.Z)(function(){n.state===x&&(n.state=D,n.timer.restart(u,n.delay,n.time),u(c))}),n.state=E,n.on.call("start",t,t.__data__,n.index,n.group),n.state===E){for(n.state=x,i=new Array(h=n.tween.length),l=0,v=-1;l<h;++l)(f=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(i[++v]=f);i.length=v+1}}function u(c){for(var l=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(s),n.state=N,1),v=-1,h=i.length;++v<h;)i[v].call(t,l);n.state===N&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){n.state=T,n.timer.stop(),delete e[r];for(var c in e)return;delete t.__transition}}function B(t,r){var n=t.__transition,e,i,a=!0,o;if(n){r=r==null?null:r+"";for(o in n){if((e=n[o]).name!==r){a=!1;continue}i=e.state>E&&e.state<N,e.state=T,e.timer.stop(),e.on.call(i?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete n[o]}a&&delete t.__transition}}function J(t){return this.each(function(){B(this,t)})}var z=y(60898),V=y(26667);function K(t,r){var n,e;return function(){var i=p(this,t),a=i.tween;if(a!==n){e=n=a;for(var o=0,u=e.length;o<u;++o)if(e[o].name===r){e=e.slice(),e.splice(o,1);break}}i.tween=e}}function Q(t,r,n){var e,i;if(typeof n!="function")throw new Error;return function(){var a=p(this,t),o=a.tween;if(o!==e){i=(e=o).slice();for(var u={name:r,value:n},s=0,c=i.length;s<c;++s)if(i[s].name===r){i[s]=u;break}s===c&&i.push(u)}a.tween=i}}function W(t,r){var n=this._id;if(t+="",arguments.length<2){for(var e=d(this.node(),n).tween,i=0,a=e.length,o;i<a;++i)if((o=e[i]).name===t)return o.value;return null}return this.each((r==null?K:Q)(n,t,r))}function Z(t,r,n){var e=t._id;return t.each(function(){var i=p(this,e);(i.value||(i.value={}))[r]=n.apply(this,arguments)}),function(i){return d(i,e).value[r]}}var G=y(96683),X=y(79848),O=y(43867),k=y(18674);function b(t,r){var n;return(typeof r=="number"?X.Z:r instanceof G.ZP?O.ZP:(n=(0,G.ZP)(r))?(r=n,O.ZP):k.Z)(t,r)}function q(t){return function(){this.removeAttribute(t)}}function j(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tt(t,r,n){var e,i=n+"",a;return function(){var o=this.getAttribute(t);return o===i?null:o===e?a:a=r(e=o,n)}}function nt(t,r,n){var e,i=n+"",a;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===e?a:a=r(e=o,n)}}function rt(t,r,n){var e,i,a;return function(){var o,u=n(this),s;return u==null?void this.removeAttribute(t):(o=this.getAttribute(t),s=u+"",o===s?null:o===e&&s===i?a:(i=s,a=r(e=o,u)))}}function et(t,r,n){var e,i,a;return function(){var o,u=n(this),s;return u==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),s=u+"",o===s?null:o===e&&s===i?a:(i=s,a=r(e=o,u)))}}function it(t,r){var n=(0,V.Z)(t),e=n==="transform"?z.w:b;return this.attrTween(t,typeof r=="function"?(n.local?et:rt)(n,e,Z(this,"attr."+t,r)):r==null?(n.local?j:q)(n):(n.local?nt:tt)(n,e,r))}function ot(t,r){return function(n){this.setAttribute(t,r.call(this,n))}}function at(t,r){return function(n){this.setAttributeNS(t.space,t.local,r.call(this,n))}}function ut(t,r){var n,e;function i(){var a=r.apply(this,arguments);return a!==e&&(n=(e=a)&&at(t,a)),n}return i._value=r,i}function st(t,r){var n,e;function i(){var a=r.apply(this,arguments);return a!==e&&(n=(e=a)&&ot(t,a)),n}return i._value=r,i}function ct(t,r){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(r==null)return this.tween(n,null);if(typeof r!="function")throw new Error;var e=(0,V.Z)(t);return this.tween(n,(e.local?ut:st)(e,r))}function lt(t,r){return function(){C(this,t).delay=+r.apply(this,arguments)}}function ft(t,r){return r=+r,function(){C(this,t).delay=r}}function ht(t){var r=this._id;return arguments.length?this.each((typeof t=="function"?lt:ft)(r,t)):d(this.node(),r).delay}function vt(t,r){return function(){p(this,t).duration=+r.apply(this,arguments)}}function yt(t,r){return r=+r,function(){p(this,t).duration=r}}function dt(t){var r=this._id;return arguments.length?this.each((typeof t=="function"?vt:yt)(r,t)):d(this.node(),r).duration}function pt(t,r){if(typeof r!="function")throw new Error;return function(){p(this,t).ease=r}}function wt(t){var r=this._id;return arguments.length?this.each(pt(r,t)):d(this.node(),r).ease}function _t(t,r){return function(){var n=r.apply(this,arguments);if(typeof n!="function")throw new Error;p(this,t).ease=n}}function gt(t){if(typeof t!="function")throw new Error;return this.each(_t(this._id,t))}var mt=y(11513);function xt(t){typeof t!="function"&&(t=(0,mt.Z)(t));for(var r=this._groups,n=r.length,e=new Array(n),i=0;i<n;++i)for(var a=r[i],o=a.length,u=e[i]=[],s,c=0;c<o;++c)(s=a[c])&&t.call(s,s.__data__,c,a)&&u.push(s);return new w(e,this._parents,this._name,this._id)}function Tt(t){if(t._id!==this._id)throw new Error;for(var r=this._groups,n=t._groups,e=r.length,i=n.length,a=Math.min(e,i),o=new Array(e),u=0;u<a;++u)for(var s=r[u],c=n[u],l=s.length,v=o[u]=new Array(l),h,f=0;f<l;++f)(h=s[f]||c[f])&&(v[f]=h);for(;u<e;++u)o[u]=r[u];return new w(o,this._parents,this._name,this._id)}function At(t){return(t+"").trim().split(/^|\s+/).every(function(r){var n=r.indexOf(".");return n>=0&&(r=r.slice(0,n)),!r||r==="start"})}function St(t,r,n){var e,i,a=At(r)?C:p;return function(){var o=a(this,t),u=o.on;u!==e&&(i=(e=u).copy()).on(r,n),o.on=i}}function Et(t,r){var n=this._id;return arguments.length<2?d(this.node(),n).on.on(t):this.each(St(n,t,r))}function Nt(t){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==t)return;r&&r.removeChild(this)}}function Ct(){return this.on("end.remove",Nt(this._id))}var Zt=y(83010);function Pt(t){var r=this._name,n=this._id;typeof t!="function"&&(t=(0,Zt.Z)(t));for(var e=this._groups,i=e.length,a=new Array(i),o=0;o<i;++o)for(var u=e[o],s=u.length,c=a[o]=new Array(s),l,v,h=0;h<s;++h)(l=u[h])&&(v=t.call(l,l.__data__,h,u))&&("__data__"in l&&(v.__data__=l.__data__),c[h]=v,A(c[h],r,n,h,c,d(l,n)));return new w(a,this._parents,r,n)}var Ft=y(19701);function Rt(t){var r=this._name,n=this._id;typeof t!="function"&&(t=(0,Ft.Z)(t));for(var e=this._groups,i=e.length,a=[],o=[],u=0;u<i;++u)for(var s=e[u],c=s.length,l,v=0;v<c;++v)if(l=s[v]){for(var h=t.call(l,l.__data__,v,s),f,rn=d(l,n),S=0,en=h.length;S<en;++S)(f=h[S])&&A(f,r,n,S,h,rn);a.push(h),o.push(l)}return new w(a,o,r,n)}var It=g.ZP.prototype.constructor;function Dt(){return new It(this._groups,this._parents)}var m=y(52627);function zt(t,r){var n,e,i;return function(){var a=(0,m.S)(this,t),o=(this.style.removeProperty(t),(0,m.S)(this,t));return a===o?null:a===n&&o===e?i:i=r(n=a,e=o)}}function H(t){return function(){this.style.removeProperty(t)}}function Vt(t,r,n){var e,i=n+"",a;return function(){var o=(0,m.S)(this,t);return o===i?null:o===e?a:a=r(e=o,n)}}function Gt(t,r,n){var e,i,a;return function(){var o=(0,m.S)(this,t),u=n(this),s=u+"";return u==null&&(s=u=(this.style.removeProperty(t),(0,m.S)(this,t))),o===s?null:o===e&&s===i?a:(i=s,a=r(e=o,u))}}function Ot(t,r){var n,e,i,a="style."+r,o="end."+a,u;return function(){var s=p(this,t),c=s.on,l=s.value[a]==null?u||(u=H(r)):void 0;(c!==n||i!==l)&&(e=(n=c).copy()).on(o,i=l),s.on=e}}function bt(t,r,n){var e=(t+="")=="transform"?z.Y:b;return r==null?this.styleTween(t,zt(t,e)).on("end.style."+t,H(t)):typeof r=="function"?this.styleTween(t,Gt(t,e,Z(this,"style."+t,r))).each(Ot(this._id,t)):this.styleTween(t,Vt(t,e,r),n).on("end.style."+t,null)}function Ht(t,r,n){return function(e){this.style.setProperty(t,r.call(this,e),n)}}function Mt(t,r,n){var e,i;function a(){var o=r.apply(this,arguments);return o!==i&&(e=(i=o)&&Ht(t,o,n)),e}return a._value=r,a}function Ut(t,r,n){var e="style."+(t+="");if(arguments.length<2)return(e=this.tween(e))&&e._value;if(r==null)return this.tween(e,null);if(typeof r!="function")throw new Error;return this.tween(e,Mt(t,r,n??""))}function Lt(t){return function(){this.textContent=t}}function Yt(t){return function(){var r=t(this);this.textContent=r??""}}function $t(t){return this.tween("text",typeof t=="function"?Yt(Z(this,"text",t)):Lt(t==null?"":t+""))}function Bt(t){return function(r){this.textContent=t.call(this,r)}}function Jt(t){var r,n;function e(){var i=t.apply(this,arguments);return i!==n&&(r=(n=i)&&Bt(i)),r}return e._value=t,e}function Kt(t){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,Jt(t))}function Qt(){for(var t=this._name,r=this._id,n=M(),e=this._groups,i=e.length,a=0;a<i;++a)for(var o=e[a],u=o.length,s,c=0;c<u;++c)if(s=o[c]){var l=d(s,r);A(s,t,n,c,o,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new w(e,this._parents,t,n)}function Wt(){var t,r,n=this,e=n._id,i=n.size();return new Promise(function(a,o){var u={value:o},s={value:function(){--i===0&&a()}};n.each(function(){var c=p(this,e),l=c.on;l!==t&&(r=(t=l).copy(),r._.cancel.push(u),r._.interrupt.push(u),r._.end.push(s)),c.on=r}),i===0&&a()})}var Xt=0;function w(t,r,n,e){this._groups=t,this._parents=r,this._name=n,this._id=e}function kt(t){return(0,g.ZP)().transition(t)}function M(){return++Xt}var _=g.ZP.prototype;w.prototype=kt.prototype={constructor:w,select:Pt,selectAll:Rt,selectChild:_.selectChild,selectChildren:_.selectChildren,filter:xt,merge:Tt,selection:Dt,transition:Qt,call:_.call,nodes:_.nodes,node:_.node,size:_.size,empty:_.empty,each:_.each,on:Et,attr:it,attrTween:ct,style:bt,styleTween:Ut,text:$t,textTween:Kt,remove:Ct,tween:W,delay:ht,duration:dt,ease:wt,easeVarying:gt,end:Wt,[Symbol.iterator]:_[Symbol.iterator]};var qt=y(2067),jt={time:null,delay:0,duration:250,ease:qt.tw};function tn(t,r){for(var n;!(n=t.__transition)||!(n=n[r]);)if(!(t=t.parentNode))throw new Error(`transition ${r} not found`);return n}function nn(t){var r,n;t instanceof w?(r=t._id,t=t._name):(r=M(),(n=jt).time=(0,P.zO)(),t=t==null?null:t+"");for(var e=this._groups,i=e.length,a=0;a<i;++a)for(var o=e[a],u=o.length,s,c=0;c<u;++c)(s=o[c])&&A(s,t,r,c,o,n||tn(s,r));return new w(e,this._parents,t,r)}g.ZP.prototype.interrupt=J,g.ZP.prototype.transition=nn}}]);
|