Files
school2/public/assets/typography-C2UybztD.js
2026-07-31 18:51:41 +08:00

16 lines
18 KiB
JavaScript

import{i as e}from"./rolldown-runtime-BgaNhQyE.js";import{$t as t,Bn as n,Cr as r,Ct as i,Dr as a,Et as o,Hn as s,Jn as c,Ot as l,Pn as u,Vn as d,Wt as f,Xt as p,Zn as m,dn as h,ir as g,nt as _,pt as v,st as y,ur as b,wr as x,wt as S,xr as C,xt as ee,yr as w,zn as T}from"./jsx-runtime-ADHq9IcL.js";import{t as E}from"./tooltip-CRuv8UNz.js";import{h as D}from"./style-Der9vtsK.js";import{i as te,n as ne,r as O,t as re}from"./CopyOutlined-BfEUU2AX.js";var k=e=>{if(r()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},A=(e,t)=>{if(!k(e))return!1;let n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function ie(e,t){return!Array.isArray(e)&&t!==void 0?A(e,t):k(e)}var j=e(a()),ae=(e,t={})=>!S(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],M=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},N=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
h${t}&,
div&-h${t},
div&-h${t} > textarea,
h${t}
`]=M(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},P=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...p(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},oe=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:h[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85},table:{width:`100%`,textAlign:`start`,borderCollapse:`separate`,borderSpacing:0,marginBlock:`1em`,"th, td":{padding:u(e.padding),overflowWrap:`break-word`,borderBottom:`${u(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:`start`,position:`relative`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:e.colorSplit,transform:`translateY(-50%)`,content:`""`}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),se=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},F=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),I=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{...t,"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`}}),L=f(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...N(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...oe(e),...P(e),[`${t}-actions`]:{display:`inline`},[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
`]:{...p(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy:not(${t}-copy-icon-only)
`]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...se(e),...F(e),...I(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),ce=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,classNames:a,styles:o,direction:s,maxLength:c,autoSize:l=!0,value:u,onSave:f,onCancel:p,onEnd:m,component:h,enterIcon:_=j.createElement(ne,null)}=e,v=j.useRef(null),b=j.useRef(!1),x=j.useRef(null),[S,C]=j.useState(u);j.useEffect(()=>{C(u)},[u]),j.useEffect(()=>{if(v.current?.resizableTextArea){let{textArea:e}=v.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let ee=({target:e})=>{C(e.value.replace(/[\n\r]/g,``))},w=()=>{b.current=!0},T=()=>{b.current=!1},E=({keyCode:e})=>{b.current||(x.current=e)},D=()=>{f(S.trim())},O=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{x.current!==e||b.current||t||n||r||i||(e===g.ENTER?(D(),m?.()):e===g.ESC&&p())},re=()=>{D()},[k,A]=L(t),ie=d(t,`${t}-edit-content`,{[`${t}-rtl`]:s===`rtl`,[`${t}-${h}`]:!!h},r,a.root,k,A);return j.createElement(`div`,{className:ie,style:{...o.root,...i}},j.createElement(te,{ref:v,maxLength:c,value:S,onChange:ee,onKeyDown:E,onKeyUp:O,onCompositionStart:w,onCompositionEnd:T,onBlur:re,"aria-label":n,rows:1,autoSize:l,className:a.textarea,style:o.textarea}),_===null?null:y(_,{className:`${t}-edit-content-confirm`}))},le=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},ue=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function R(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await ue(e,n)||le(e,n))}var de=({copyConfig:e,children:t})=>{let[n,r]=j.useState(!1),[a,o]=j.useState(!1),s=j.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},l={};return e.format&&(l.format=e.format),j.useEffect(()=>c,[]),{copied:n,copyLoading:a,onClick:x(async n=>{n?.preventDefault(),n?.stopPropagation(),o(!0);try{await R((i(e.text)?await e.text():e.text)||ae(t,{skipEmpty:!0}).join(``)||``,l),o(!1),r(!0),c(),s.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw o(!1),e}})}},fe=(e,t)=>{let n=!!e;return j.useMemo(()=>{let r={...t,...n&&o(e)?e:null};return[n,r]},[n,e,t])},pe=e=>{let t=(0,j.useRef)(void 0);return(0,j.useEffect)(()=>{t.current=e}),t.current},me=(e,t,n)=>(0,j.useMemo)(()=>e===!0?{title:t??n}:(0,j.isValidElement)(e)?{title:e}:o(e)?{title:t??n,...e}:{title:e},[e,t,n]),he=(e,t,n,r,i)=>{let{getPrefixCls:a,direction:o,className:s,style:c,classNames:l,styles:u}=T(`typography`),d=r??o,f=a(`typography`,e),p={...i,prefixCls:f,direction:d},m=(0,j.useMemo)(()=>({root:s}),[s]),h=(0,j.useMemo)(()=>({root:c}),[c]),[g,_]=ee([m,l,t],[h,u,n],{props:p});return[g,_,f,d]},ge=j.forwardRef((e,t)=>{let{component:n=`article`,className:r,rootClassName:i,children:a,direction:o,style:s,classNames:c,styles:l,prefixCls:u,...f}=e,[p,m]=L(u),h=d(u,{[`${u}-rtl`]:o===`rtl`},r,i,p,m,c?.root),g={...l?.root,...s};return j.createElement(n,{...f,className:h,style:g,ref:t},a)}),_e=j.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,direction:a,classNames:o,styles:s,...c}=e,[l,u,f,p]=he(n,o,s,a,e);return j.createElement(ge,{ref:t,className:d(r,i),direction:p,classNames:l,styles:u,prefixCls:f,...c})}),ve=e=>e===!1?[!1,!1]:ae(e);function ye(e,t,n){return e===!0||e===void 0?t:e||n&&t}function be(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var xe=e=>[`string`,`number`].includes(typeof e),Se=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l,className:u,style:f}=e,p=ve(a),m=ve(o),{copied:h,copy:g}=r??{},v=n?h:g,y=ye(p[+!!n],v),b=typeof y==`string`?y:v;return j.createElement(E,{title:y},j.createElement(`button`,{type:`button`,className:d(`${t}-copy`,u,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),style:f,onClick:c,"aria-label":b,tabIndex:s},n?ye(m[1],j.createElement(D,null),!0):ye(m[0],l?j.createElement(_,null):j.createElement(re,null),!0)))},z=j.forwardRef(({style:e,children:t},n)=>{let r=j.useRef(null);return j.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),j.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),B=e=>e.reduce((e,t)=>e+(xe(t)?String(t).length:1),0);function Ce(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=xe(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var V=0,H=1,U=2,we=3,Te=4,W={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function Ee(e){let{enableMeasure:t,width:r,text:i,children:a,rows:o,expanded:s,measureDeps:l,miscDeps:u,onEllipsis:d}=e,f=j.useMemo(()=>c(i),[i]),p=j.useMemo(()=>B(f),[i]),m=j.useMemo(()=>a(f,!1),[i].concat(n(l))),[h,g]=j.useState(null),_=j.useRef(null),v=j.useRef(null),y=j.useRef(null),b=j.useRef(null),x=j.useRef(null),[S,ee]=j.useState(!1),[w,T]=j.useState(V),[E,D]=j.useState(0),[te,ne]=j.useState(null);C(()=>{T(t&&r&&p?H:V)},[r,i,o,t,f].concat(n(l))),C(()=>{if(w===H){T(U);let e=v.current&&getComputedStyle(v.current).whiteSpace;ne(e)}else if(w===U){let e=!!y.current?.isExceed();T(e?we:Te),g(e?[0,p]:null),ee(e);let t=y.current?.getHeight()||0,n=o===1?0:b.current?.getHeight()||0,r=x.current?.getHeight()||0,i=Math.max(t,n+r);D(i+1),d(e)}},[w]);let O=h?Math.ceil((h[0]+h[1])/2):0;C(()=>{let[e,t]=h||[0,0];if(e!==t){let n=(_.current?.getHeight()||0)>E,r=O;t-e===1&&(r=n?e:t),g(n?[e,r]:[r,t])}},[h,O]);let re=j.useMemo(()=>{if(!t)return a(f,!1);if(w!==we||!h||h[0]!==h[1]){let e=a(f,!1);return[Te,V].includes(w)?e:j.createElement(`span`,{style:{...W,WebkitLineClamp:o}},e)}return a(s?f:Ce(f,h[0]),S)},[s,w,h,f].concat(n(u))),k={width:r,margin:0,padding:0,whiteSpace:te===`nowrap`?`normal`:`inherit`};return j.createElement(j.Fragment,null,re,w===U&&j.createElement(j.Fragment,null,j.createElement(z,{style:{...k,...W,WebkitLineClamp:o},ref:y},m),j.createElement(z,{style:{...k,...W,WebkitLineClamp:o-1},ref:b},m),j.createElement(z,{style:{...k,...W,WebkitLineClamp:1},ref:x},a([],!0))),w===we&&h&&h[0]!==h[1]&&j.createElement(z,{style:{...k,top:400},ref:_},a(Ce(f,O),!0)),w===H&&j.createElement(`span`,{style:{whiteSpace:`inherit`},ref:v}))}var De=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return j.createElement(E,{open:a,...i},r)};function Oe({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=j.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var ke=`...`,Ae=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],G=j.forwardRef((e,t)=>{let{prefixCls:r,className:a,style:o,classNames:u,styles:f,direction:p,type:h,disabled:g,children:_,ellipsis:y,editable:x,copyable:S,actions:ee,component:T,title:D,onMouseEnter:te,onMouseLeave:ne,...re}=e,[k]=v(`Text`),A=j.useRef(null),ae=j.useRef(null),[M,N,P,oe]=he(r,u,f,p,e),se=m(re,Ae),[F,I]=fe(x),[L,le]=w(!1,I.editing),{triggerType:ue=[`icon`]}=I,R=e=>{e&&I.onStart?.(),le(e)},_e=pe(L);C(()=>{!L&&_e&&ae.current?.focus()},[L]);let ve=e=>{e?.preventDefault(),R(!0)},ye=e=>{I.onChange?.(e),R(!1)},z=()=>{I.onCancel?.(),R(!1)},[B,Ce]=fe(S),{placement:V=`end`}=ee??{},{copied:H,copyLoading:U,onClick:we}=de({copyConfig:Ce,children:_}),[Te,W]=j.useState(!1),[G,je]=j.useState(!1),[Me,Ne]=j.useState(!1),[Pe,Fe]=j.useState(!1),[K,Ie]=j.useState(!0),[q,J]=fe(y,{expandable:!1,symbol:e=>e?k?.collapse:k?.expand}),[Y,Le]=w(J.defaultExpanded||!1,J.expanded),X=q&&(!Y||J.expandable===`collapsible`),{rows:Z=1}=J,Re=j.useMemo(()=>X&&(J.suffix!==void 0||J.onEllipsis||J.expandable||F||B),[X,J,F,B]);C(()=>{q&&!Re&&(W(ie(`webkitLineClamp`)),je(ie(`textOverflow`)))},[Re,q]);let[Q,ze]=j.useState(X),Be=j.useMemo(()=>Re?!1:Z===1?G:Te,[Re,G,Te]);C(()=>{ze(Be&&X)},[Be,X]);let Ve=me(J.tooltip,I.text,_),$=Q&&!!Ve.title,He=X&&(Q?$&&Pe:Me),Ue=X&&Z===1&&Q,We=X&&Z>1&&Q,Ge=(e,t)=>{Le(t.expanded),J.onExpand?.(e,t)},[Ke,qe]=j.useState(0),[Je,Ye]=j.useState(!1),[Xe,Ze]=j.useState(!1),Qe=({offsetWidth:e})=>{qe(e)},$e=e=>{Ne(e),Me!==e&&J.onEllipsis?.(e)};j.useEffect(()=>{let e=A.current;if(q&&$&&e){let t=be(e);Pe!==t&&Fe(t)}},[q,$,_,We,K,Ke]),j.useEffect(()=>{let e=A.current;if(typeof IntersectionObserver>`u`||!e||!$||!X)return;let t=new IntersectionObserver(()=>{Ie(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[$,X]);let et=j.useMemo(()=>{if(!(!q||Q))return[I.text,_,D,Ve.title].find(xe)},[q,Q,D,Ve.title,He]);if(L)return j.createElement(ce,{value:I.text??(typeof _==`string`?_:``),onSave:ye,onCancel:z,onEnd:I.onEnd,prefixCls:P,className:a,style:o,direction:oe,component:T,maxLength:I.maxLength,autoSize:I.autoSize,enterIcon:I.enterIcon,classNames:M,styles:N});let tt=()=>{let{expandable:e,symbol:t}=J;return e?j.createElement(`button`,{type:`button`,key:`expand`,className:d(`${P}-${Y?`collapse`:`expand`}`,M.action),style:N.action,onClick:e=>Ge(e,{expanded:!Y}),"aria-label":Y?k.collapse:k?.expand},i(t)?t(Y):t):null},nt=()=>{if(!F)return;let{icon:e,tooltip:t,tabIndex:n}=I,r=c(t)[0]||k?.edit,i=typeof r==`string`?r:``;return ue.includes(`icon`)?j.createElement(E,{key:`edit`,title:t===!1?``:r},j.createElement(`button`,{type:`button`,ref:ae,className:d(`${P}-edit`,M.action),style:N.action,onClick:ve,"aria-label":i,tabIndex:n},e||j.createElement(O,{role:`button`}))):null},rt=()=>B?j.createElement(Se,{key:`copy`,...Ce,prefixCls:P,copied:H,locale:k,onCopy:we,loading:U,iconOnly:!l(_),className:M.action,style:N.action}):null,it=e=>{let t=e&&tt(),n=nt(),r=rt();return!t&&!n&&!r?null:j.createElement(`span`,{key:`operations`,className:d(`${P}-actions`,M.actions,{[`${P}-actions-start`]:V===`start`}),style:N.actions,onMouseEnter:()=>Ye(!0),onMouseLeave:()=>Ye(!1)},t,n,r)},at=e=>[e&&!Y&&j.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},ke),J.suffix];return j.createElement(s,{onResize:Qe,disabled:!X},r=>j.createElement(De,{tooltipProps:Ve,enableEllipsis:X,isEllipsis:He,open:Xe&&!Je},j.createElement(ge,{onMouseEnter:e=>{Ze(!0),te?.(e)},onMouseLeave:e=>{Ze(!1),ne?.(e)},className:d({[`${P}-${h}`]:h,[`${P}-disabled`]:g,[`${P}-ellipsis`]:q,[`${P}-ellipsis-single-line`]:Ue,[`${P}-ellipsis-multiple-line`]:We,[`${P}-link`]:T===`a`},a),classNames:M,styles:N,prefixCls:P,style:{...o,WebkitLineClamp:We?Z:void 0},component:T,ref:b(r,A,t),direction:oe,onClick:ue.includes(`text`)?ve:void 0,"aria-label":et?.toString(),title:D,...se},j.createElement(Ee,{enableMeasure:X&&!Q,text:_,rows:Z,width:Ke,onEllipsis:$e,expanded:Y,measureDeps:[V],miscDeps:[H,Y,U,F,B,V,k].concat(n(Ae.map(t=>e[t])))},(t,n)=>Oe(e,j.createElement(j.Fragment,null,V===`start`?it(n):null,t.length>0&&n&&!Y&&et?j.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,at(n),V===`start`?null:it(n)))))))}),je=j.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return j.createElement(G,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),Me=j.forwardRef((e,t)=>{let{children:n,...r}=e;return j.createElement(G,{ref:t,...r,component:`div`},n)}),Ne=j.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=j.useMemo(()=>o(n)?m(n,[`expandable`,`rows`]):n,[n]);return j.createElement(G,{ref:t,...i,ellipsis:a,component:`span`},r)}),Pe=[1,2,3,4,5],Fe=j.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=Pe.includes(n)?`h${n}`:`h1`;return j.createElement(G,{ref:t,...i,component:a},r)}),K=_e;K.Text=Ne,K.Link=je,K.Title=Fe,K.Paragraph=Me;export{K as t};