👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

40 lines
21 KiB

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5922],{8941:function(ie,L){"use strict";var a={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"};L.Z=a},15922:function(ie,L,a){"use strict";a.d(L,{Z:function(){return Nt}});var o=a(50959),F=a(87132),se=a(8221),de=a(27263),xe=a(8941),H=a(38782),v=function(n,r){return o.createElement(H.Z,(0,de.Z)({},n,{ref:r,icon:xe.Z}))},W=o.forwardRef(v),ue=a(82187),q=a.n(ue),ee=a(874),V=a.n(ee),y=a(34682),te=a(13763),ne=a(77189),z=a(65589),oe=a(87017),Re=a(12602),Ie=a(5449),fe=a(57),Ve=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]]);return r};const Xe={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"};var Le=o.forwardRef((e,n)=>{const r=p=>{const{keyCode:c}=p;c===fe.Z.ENTER&&p.preventDefault()},t=p=>{const{keyCode:c}=p,{onClick:T}=e;c===fe.Z.ENTER&&T&&T()},{style:l,noStyle:f,disabled:b}=e,w=Ve(e,["style","noStyle","disabled"]);let u={};return f||(u=Object.assign({},Xe)),b&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),l),o.createElement("div",Object.assign({role:"button",tabIndex:0,ref:n},w,{onKeyDown:r,onKeyUp:t,style:u}))}),Pe=a(92576),Ge=a(91886),Se=a(27850),Je={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"},Qe=Je,Ye=function(n,r){return o.createElement(H.Z,(0,de.Z)({},n,{ref:r,icon:Qe}))},qe=o.forwardRef(Ye),_e=a(37865),et=a(41787),Ne=a(8663),tt=a(87077),nt=a(22601),ot=a(25446);const rt=(e,n,r,t)=>{const{titleMarginBottom:l,fontWeightStrong:f}=t;return{marginBottom:l,color:r,fontWeight:f,fontSize:e,lineHeight:n}},lt=e=>{const n=[1,2,3,4,5],r={};return n.forEach(t=>{r[`
h${t}&,
div&-h${t},
div&-h${t} > textarea,
h${t}
`]=rt(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),r},it=e=>{const{componentCls:n}=e;return{"a&, a":Object.assign(Object.assign({},(0,Ne.N)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},st=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:nt.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"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}}),at=e=>{const{componentCls:n,paddingSM:r}=e,t=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(t).mul(-1).equal(),marginBottom:`calc(1em - ${(0,ot.bf)(t)})`},[`${n}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},ct=e=>({[`${e.componentCls}-copy-success`]:{[`
&,
&:hover,
&:focus`]:{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),dt=()=>({[`
a&-ellipsis,
span&-ellipsis
`]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{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"}}),ut=e=>{const{componentCls:n,titleMarginTop:r}=e;return{[n]: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,[`&${n}-secondary`]:{color:e.colorTextDescription},[`&${n}-success`]:{color:e.colorSuccess},[`&${n}-warning`]:{color:e.colorWarning},[`&${n}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
div&,
p
`]:{marginBottom:"1em"}},lt(e)),{[`
& + h1${n},
& + h2${n},
& + h3${n},
& + h4${n},
& + h5${n}
`]:{marginTop:r},[`
div,
ul,
li,
p,
h1,
h2,
h3,
h4,
h5`]:{[`
+ h1,
+ h2,
+ h3,
+ h4,
+ h5
`]:{marginTop:r}}}),st(e)),it(e)),{[`
${n}-expand,
${n}-edit,
${n}-copy
`]:Object.assign(Object.assign({},(0,Ne.N)(e)),{marginInlineStart:e.marginXXS})}),at(e)),ct(e)),dt()),{"&-rtl":{direction:"rtl"}})}},ft=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var $e=(0,tt.I$)("Typography",e=>[ut(e)],ft),pt=e=>{const{prefixCls:n,"aria-label":r,className:t,style:l,direction:f,maxLength:b,autoSize:w=!0,value:u,onSave:p,onCancel:c,onEnd:T,component:$,enterIcon:P=o.createElement(qe,null)}=e,m=o.useRef(null),h=o.useRef(!1),N=o.useRef(),[X,k]=o.useState(u);o.useEffect(()=>{k(u)},[u]),o.useEffect(()=>{if(m.current&&m.current.resizableTextArea){const{textArea:C}=m.current.resizableTextArea;C.focus();const{length:I}=C.value;C.setSelectionRange(I,I)}},[]);const d=C=>{let{target:I}=C;k(I.value.replace(/[\n\r]/g,""))},S=()=>{h.current=!0},R=()=>{h.current=!1},O=C=>{let{keyCode:I}=C;h.current||(N.current=I)},_=()=>{p(X.trim())},K=C=>{let{keyCode:I,ctrlKey:ce,altKey:J,metaKey:re,shiftKey:ye}=C;N.current===I&&!h.current&&!ce&&!J&&!re&&!ye&&(I===fe.Z.ENTER?(_(),T==null||T()):I===fe.Z.ESC&&c())},g=()=>{_()},E=$?`${n}-${$}`:"",[B,D,U]=$e(n),G=q()(n,`${n}-edit-content`,{[`${n}-rtl`]:f==="rtl"},t,E,D,U);return B(o.createElement("div",{className:G,style:l},o.createElement(et.Z,{ref:m,maxLength:b,value:X,onChange:d,onKeyDown:O,onKeyUp:K,onCompositionStart:S,onCompositionEnd:R,onBlur:g,"aria-label":r,rows:1,autoSize:w}),P!==null?(0,_e.Tm)(P,{className:`${n}-edit-content-confirm`}):null))};function Oe(e,n){return o.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},n),r&&typeof e=="object"?e:null)]},[e])}var gt=(e,n)=>{const r=o.useRef(!1);o.useEffect(()=>{r.current?e():r.current=!0},n)},mt=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]]);return r},De=o.forwardRef((e,n)=>{const{prefixCls:r,component:t="article",className:l,rootClassName:f,setContentRef:b,children:w,direction:u,style:p}=e,c=mt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:T,direction:$,typography:P}=o.useContext(Pe.E_),m=u!=null?u:$;let h=n;b&&(h=(0,Re.sQ)(n,b));const N=T("typography",r),[X,k,d]=$e(N),S=q()(N,P==null?void 0:P.className,{[`${N}-rtl`]:m==="rtl"},l,f,k,d),R=Object.assign(Object.assign({},P==null?void 0:P.style),p);return X(o.createElement(t,Object.assign({className:S,style:R,ref:h},c),w))});function Me(e){const n=typeof e;return n==="string"||n==="number"}function yt(e){let n=0;return e.forEach(r=>{Me(r)?n+=String(r).length:n+=1}),n}function Ce(e,n){let r=0;const t=[];for(let l=0;l<e.length;l+=1){if(r===n)return t;const f=e[l],w=Me(f)?String(f).length:1,u=r+w;if(u>n){const p=n-r;return t.push(String(f).slice(0,p)),t}t.push(f),r=u}return e}const vt=0,pe=1,ze=2,we=3,Te=4;var bt=e=>{let{enabledMeasure:n,children:r,text:t,width:l,fontSize:f,rows:b,onEllipsis:w}=e;const[[u,p,c],T]=o.useState([0,0,0]),[$,P]=o.useState(0),[m,h]=o.useState(vt),[N,X]=o.useState(0),k=o.useRef(null),d=o.useRef(null),S=o.useMemo(()=>(0,te.Z)(t),[t]),R=o.useMemo(()=>yt(S),[S]),O=o.useMemo(()=>!n||m!==we?$&&m!==Te&&n?r(Ce(S,$),$<R):r(S,!1):r(Ce(S,p),p<R),[n,m,r,S,p,R]);(0,ne.Z)(()=>{n&&l&&f&&R&&(h(pe),T([0,Math.ceil(R/2),R]))},[n,l,f,t,R,b]),(0,ne.Z)(()=>{var E;m===pe&&X(((E=k.current)===null||E===void 0?void 0:E.offsetHeight)||0)},[m]),(0,ne.Z)(()=>{var E,B;if(N){if(m===pe){const D=((E=d.current)===null||E===void 0?void 0:E.offsetHeight)||0,U=b*N;D<=U?(h(Te),w(!1)):h(ze)}else if(m===ze)if(u!==c){const D=((B=d.current)===null||B===void 0?void 0:B.offsetHeight)||0,U=b*N;let G=u,C=c;u===c-1?C=u:D<=U?G=p:C=p;const I=Math.ceil((G+C)/2);T([G,I,C])}else h(we),P(p),w(!0)}},[m,u,c,b,N]);const _={width:l,whiteSpace:"normal",margin:0,padding:0},K=(E,B,D)=>o.createElement("span",{"aria-hidden":!0,ref:B,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(f/2)*2},D)},E),g=(E,B)=>{const D=Ce(S,E);return K(r(D,!0),B,_)};return o.createElement(o.Fragment,null,O,n&&m!==we&&m!==Te&&o.createElement(o.Fragment,null,K("lg",k,{wordBreak:"keep-all",whiteSpace:"nowrap"}),m===pe?K(r(S,!1),d,_):g(p,d)))},ht=e=>{let{enabledEllipsis:n,isEllipsis:r,children:t,tooltipProps:l}=e;return!(l!=null&&l.title)||!n?t:o.createElement(Se.Z,Object.assign({open:r?void 0:!1},l),t)},Et=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]]);return r};function xt(e,n){let{mark:r,code:t,underline:l,delete:f,strong:b,keyboard:w,italic:u}=e,p=n;function c(T,$){$&&(p=o.createElement(T,{},p))}return c("strong",b),c("u",l),c("del",f),c("code",t),c("mark",r),c("kbd",w),c("i",u),p}function ge(e,n,r){return e===!0||e===void 0?n:e||r&&n}function Be(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}const St="...";var me=o.forwardRef((e,n)=>{var r,t,l;const{prefixCls:f,className:b,style:w,type:u,disabled:p,children:c,ellipsis:T,editable:$,copyable:P,component:m,title:h}=e,N=Et(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:X,direction:k}=o.useContext(Pe.E_),[d]=(0,Ge.Z)("Text"),S=o.useRef(null),R=o.useRef(null),O=X("typography",f),_=(0,oe.Z)(N,["mark","code","delete","underline","strong","keyboard","italic"]),[K,g]=Oe($),[E,B]=(0,z.Z)(!1,{value:g.editing}),{triggerType:D=["icon"]}=g,U=i=>{var s;i&&((s=g.onStart)===null||s===void 0||s.call(g)),B(i)};gt(()=>{var i;E||(i=R.current)===null||i===void 0||i.focus()},[E]);const G=i=>{i==null||i.preventDefault(),U(!0)},C=i=>{var s;(s=g.onChange)===null||s===void 0||s.call(g,i),U(!1)},I=()=>{var i;(i=g.onCancel)===null||i===void 0||i.call(g),U(!1)},[ce,J]=Oe(P),[re,ye]=o.useState(!1),je=o.useRef(null),Ze={};J.format&&(Ze.format=J.format);const He=()=>{je.current&&clearTimeout(je.current)},$t=i=>{var s;i==null||i.preventDefault(),i==null||i.stopPropagation(),V()(J.text||String(c)||"",Ze),ye(!0),He(),je.current=setTimeout(()=>{ye(!1)},3e3),(s=J.onCopy)===null||s===void 0||s.call(J,i)};o.useEffect(()=>He,[]);const[ke,Dt]=o.useState(!1),[Ae,Mt]=o.useState(!1),[zt,Bt]=o.useState(!1),[We,Zt]=o.useState(!1),[Ke,Ht]=o.useState(!1),[kt,At]=o.useState(!0),[Q,x]=Oe(T,{expandable:!1}),Z=Q&&!zt,{rows:le=1}=x,ve=o.useMemo(()=>!Z||x.suffix!==void 0||x.onEllipsis||x.expandable||K||ce,[Z,x,K,ce]);(0,ne.Z)(()=>{Q&&!ve&&(Dt((0,Ie.G)("webkitLineClamp")),Mt((0,Ie.G)("textOverflow")))},[ve,Q]);const A=o.useMemo(()=>ve?!1:le===1?Ae:ke,[ve,Ae,ke]),Ue=Z&&(A?Ke:We),Wt=Z&&le===1&&A,be=Z&&le>1&&A,Kt=i=>{var s;Bt(!0),(s=x.onExpand)===null||s===void 0||s.call(x,i)},[Fe,Ut]=o.useState(0),[Ft,Vt]=o.useState(0),Xt=(i,s)=>{let{offsetWidth:j}=i;var M;Ut(j),Vt(parseInt((M=window.getComputedStyle)===null||M===void 0?void 0:M.call(window,s).fontSize,10)||0)},Gt=i=>{var s;Zt(i),We!==i&&((s=x.onEllipsis)===null||s===void 0||s.call(x,i))};o.useEffect(()=>{const i=S.current;if(Q&&A&&i){const s=be?i.offsetHeight<i.scrollHeight:i.offsetWidth<i.scrollWidth;Ke!==s&&Ht(s)}},[Q,A,c,be,kt,Fe]),o.useEffect(()=>{const i=S.current;if(typeof IntersectionObserver=="undefined"||!i||!A||!Z)return;const s=new IntersectionObserver(()=>{At(!!i.offsetParent)});return s.observe(i),()=>{s.disconnect()}},[A,Z]);let Y={};x.tooltip===!0?Y={title:(r=g.text)!==null&&r!==void 0?r:c}:o.isValidElement(x.tooltip)?Y={title:x.tooltip}:typeof x.tooltip=="object"?Y=Object.assign({title:(t=g.text)!==null&&t!==void 0?t:c},x.tooltip):Y={title:x.tooltip};const he=o.useMemo(()=>{const i=s=>["string","number"].includes(typeof s);if(!(!Q||A)){if(i(g.text))return g.text;if(i(c))return c;if(i(h))return h;if(i(Y.title))return Y.title}},[Q,A,h,Y.title,Ue]);if(E)return o.createElement(pt,{value:(l=g.text)!==null&&l!==void 0?l:typeof c=="string"?c:"",onSave:C,onCancel:I,onEnd:g.onEnd,prefixCls:O,className:b,style:w,direction:k,component:m,maxLength:g.maxLength,autoSize:g.autoSize,enterIcon:g.enterIcon});const Jt=()=>{const{expandable:i,symbol:s}=x;if(!i)return null;let j;return s?j=s:j=d==null?void 0:d.expand,o.createElement("a",{key:"expand",className:`${O}-expand`,onClick:Kt,"aria-label":d==null?void 0:d.expand},j)},Qt=()=>{if(!K)return;const{icon:i,tooltip:s}=g,j=(0,te.Z)(s)[0]||(d==null?void 0:d.edit),M=typeof j=="string"?j:"";return D.includes("icon")?o.createElement(Se.Z,{key:"edit",title:s===!1?"":j},o.createElement(Le,{ref:R,className:`${O}-edit`,onClick:G,"aria-label":M},i||o.createElement(W,{role:"button"}))):null},Yt=()=>{if(!ce)return null;const{tooltips:i,icon:s}=J,j=Be(i),M=Be(s),Ee=re?ge(j[1],d==null?void 0:d.copied):ge(j[0],d==null?void 0:d.copy),en=re?d==null?void 0:d.copied:d==null?void 0:d.copy,tn=typeof Ee=="string"?Ee:en;return o.createElement(Se.Z,{key:"copy",title:Ee},o.createElement(Le,{className:q()(`${O}-copy`,{[`${O}-copy-success`]:re,[`${O}-copy-icon-only`]:c==null}),onClick:$t,"aria-label":tn},re?ge(M[1],o.createElement(F.Z,null),!0):ge(M[0],o.createElement(se.Z,null),!0)))},qt=i=>[i&&Jt(),Qt(),Yt()],_t=i=>[i&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},St),x.suffix,qt(i)];return o.createElement(y.Z,{onResize:Xt,disabled:!Z},i=>o.createElement(ht,{tooltipProps:Y,enabledEllipsis:Z,isEllipsis:Ue},o.createElement(De,Object.assign({className:q()({[`${O}-${u}`]:u,[`${O}-disabled`]:p,[`${O}-ellipsis`]:Q,[`${O}-single-line`]:Z&&le===1,[`${O}-ellipsis-single-line`]:Wt,[`${O}-ellipsis-multiple-line`]:be},b),prefixCls:f,style:Object.assign(Object.assign({},w),{WebkitLineClamp:be?le:void 0}),component:m,ref:(0,Re.sQ)(i,S,n),direction:k,onClick:D.includes("text")?G:void 0,"aria-label":he==null?void 0:he.toString(),title:h},_),o.createElement(bt,{enabledMeasure:Z&&!A,text:c,rows:le,width:Fe,fontSize:Ft,onEllipsis:Gt},(s,j)=>{let M=s;return s.length&&j&&he&&(M=o.createElement("span",{key:"show-content","aria-hidden":!0},M)),xt(e,o.createElement(o.Fragment,null,M,_t(j)))}))))}),Ot=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]]);return r},Ct=o.forwardRef((e,n)=>{var{ellipsis:r,rel:t}=e,l=Ot(e,["ellipsis","rel"]);const f=Object.assign(Object.assign({},l),{rel:t===void 0&&l.target==="_blank"?"noopener noreferrer":t});return delete f.navigate,o.createElement(me,Object.assign({},f,{ref:n,ellipsis:!!r,component:"a"}))}),wt=o.forwardRef((e,n)=>o.createElement(me,Object.assign({ref:n},e,{component:"div"}))),Tt=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]]);return r};const jt=(e,n)=>{var{ellipsis:r}=e,t=Tt(e,["ellipsis"]);const l=o.useMemo(()=>r&&typeof r=="object"?(0,oe.Z)(r,["expandable","rows"]):r,[r]);return o.createElement(me,Object.assign({ref:n},t,{ellipsis:l,component:"span"}))};var Rt=o.forwardRef(jt),It=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]]);return r};const Lt=[1,2,3,4,5];var Pt=o.forwardRef((e,n)=>{const{level:r=1}=e,t=It(e,["level"]);let l;return Lt.includes(r)?l=`h${r}`:l="h1",o.createElement(me,Object.assign({ref:n},t,{component:l}))});const ae=De;ae.Text=Rt,ae.Link=Ct,ae.Title=Pt,ae.Paragraph=wt;var Nt=ae},874:function(ie,L,a){"use strict";var o=a(16935),F={"text/plain":"Text","text/html":"Url",default:"Text"},se="Copy to clipboard: #{key}, Enter";function de(H){var v=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return H.replace(/#{\s*key\s*}/g,v)}function xe(H,v){var W,ue,q,ee,V,y,te=!1;v||(v={}),W=v.debug||!1;try{q=o(),ee=document.createRange(),V=document.getSelection(),y=document.createElement("span"),y.textContent=H,y.ariaHidden="true",y.style.all="unset",y.style.position="fixed",y.style.top=0,y.style.clip="rect(0, 0, 0, 0)",y.style.whiteSpace="pre",y.style.webkitUserSelect="text",y.style.MozUserSelect="text",y.style.msUserSelect="text",y.style.userSelect="text",y.addEventListener("copy",function(z){if(z.stopPropagation(),v.format)if(z.preventDefault(),typeof z.clipboardData=="undefined"){W&&console.warn("unable to use e.clipboardData"),W&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var oe=F[v.format]||F.default;window.clipboardData.setData(oe,H)}else z.clipboardData.clearData(),z.clipboardData.setData(v.format,H);v.onCopy&&(z.preventDefault(),v.onCopy(z.clipboardData))}),document.body.appendChild(y),ee.selectNodeContents(y),V.addRange(ee);var ne=document.execCommand("copy");if(!ne)throw new Error("copy command was unsuccessful");te=!0}catch(z){W&&console.error("unable to copy using execCommand: ",z),W&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(v.format||"text",H),v.onCopy&&v.onCopy(window.clipboardData),te=!0}catch(oe){W&&console.error("unable to copy using clipboardData: ",oe),W&&console.error("falling back to prompt"),ue=de("message"in v?v.message:se),window.prompt(ue,H)}}finally{V&&(typeof V.removeRange=="function"?V.removeRange(ee):V.removeAllRanges()),y&&document.body.removeChild(y),q()}return te}ie.exports=xe},16935:function(ie){ie.exports=function(){var L=document.getSelection();if(!L.rangeCount)return function(){};for(var a=document.activeElement,o=[],F=0;F<L.rangeCount;F++)o.push(L.getRangeAt(F));switch(a.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":a.blur();break;default:a=null;break}return L.removeAllRanges(),function(){L.type==="Caret"&&L.removeAllRanges(),L.rangeCount||o.forEach(function(se){L.addRange(se)}),a&&a.focus()}}}}]);