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