captjt commited on
Commit
9dd20db
β€’
1 Parent(s): aa01589

share button for graph deep links

Browse files
static/assets/{AILineageExplorerLogo-4258f229.js β†’ AILineageExplorerLogo-5013a616.js} RENAMED
The diff for this file is too large to render. See raw diff
 
static/assets/Header-146bfe97.js DELETED
@@ -1,27 +0,0 @@
1
- import{a6 as st,c as C,r as c,A as Me,_ as ge,b as dt,n as xe,aa as ct,v as Le,u as k,au as ut,S as Z,s as ne,R as u,Q as _e,p as we,q as oe,a0 as De,o as ft,C as We,ae as Ve,ad as gt,x as Ge,D as Ke,af as Xe,e as vt,ar as je,aO as Te,ab as qe,f as Pe,N as Fe,j as pt}from"./index-c062f015.js";import{u as He,R as mt}from"./index-0bfe7458.js";const aa=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var Ye=function(t){if(st()&&window.document.documentElement){var a=Array.isArray(t)?t:[t],r=window.document.documentElement;return a.some(function(n){return n in r.style})}return!1},ht=function(t,a){if(!Ye(t))return!1;var r=document.createElement("div"),n=r.style[t];return r.style[t]=a,r.style[t]!==n};function ra(e,t){return!Array.isArray(e)&&t!==void 0?ht(e,t):Ye(e)}function be(e,t,a){return C({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:a})}const Ze=(e,t)=>t||e;var bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const xt=bt;var St=function(t,a){return c.createElement(Me,ge({},t,{ref:a,icon:xt}))};const na=c.forwardRef(St),$t=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ue=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Be=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),Qe=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},Ue(xe(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Je=e=>{const{paddingBlockLG:t,fontSizeLG:a,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:l}=e;return{padding:`${k(t)} ${k(l)}`,fontSize:a,lineHeight:r,borderRadius:n}},ke=e=>({padding:`${k(e.paddingBlockSM)} ${k(e.paddingInlineSM)}`,borderRadius:e.borderRadiusSM}),et=(e,t)=>{const{componentCls:a,colorError:r,colorWarning:n,errorActiveShadow:l,warningActiveShadow:i,colorErrorBorderHover:d,colorWarningBorderHover:v}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:d},"&:focus, &:focus-within":Object.assign({},Be(xe(e,{activeBorderColor:r,activeShadow:l}))),[`${a}-prefix, ${a}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:n,"&:hover":{borderColor:v},"&:focus, &:focus-within":Object.assign({},Be(xe(e,{activeBorderColor:n,activeShadow:i}))),[`${a}-prefix, ${a}-suffix`]:{color:n}}}},tt=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${k(e.paddingBlock)} ${k(e.paddingInline)}`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},$t(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Ue(e)),"&:focus, &:focus-within":Object.assign({},Be(e)),"&-disabled, &[disabled]":Object.assign({},Qe(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Je(e)),"&-sm":Object.assign({},ke(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),wt=e=>{const{componentCls:t,antCls:a}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Je(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ke(e)),[`&-lg ${a}-select-single ${a}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${a}-select-single ${a}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${k(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${k(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${a}-select`]:{margin:`${k(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${k(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${a}-select-single:not(${a}-select-customize-input):not(${a}-pagination-size-changer)`]:{[`${a}-select-selector`]:{backgroundColor:"inherit",border:`${k(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${a}-select-selector`]:{color:e.colorPrimary}}},[`${a}-cascader-picker`]:{margin:`-9px ${k(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${a}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${a}-select ${a}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${a}-select ${a}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},ut()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
2
- & > ${t}-affix-wrapper,
3
- & > ${t}-number-affix-wrapper,
4
- & > ${a}-picker-range
5
- `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${a}-select > ${a}-select-selector,
6
- & > ${a}-select-auto-complete ${t},
7
- & > ${a}-cascader-picker ${t},
8
- & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${a}-select-focused`]:{zIndex:1},[`& > ${a}-select > ${a}-select-arrow`]:{zIndex:1},[`& > *:first-child,
9
- & > ${a}-select:first-child > ${a}-select-selector,
10
- & > ${a}-select-auto-complete:first-child ${t},
11
- & > ${a}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
12
- & > ${a}-select:last-child > ${a}-select-selector,
13
- & > ${a}-cascader-picker:last-child ${t},
14
- & > ${a}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${a}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Ct=e=>{const{componentCls:t,controlHeightSM:a,lineWidth:r,calc:n}=e,l=16,i=n(a).sub(n(r).mul(2)).sub(l).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Le(e)),tt(e)),et(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:a,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},yt=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${k(e.inputAffixPadding)}`}}}},Rt=e=>{const{componentCls:t,inputAffixPadding:a,colorTextDescription:r,motionDurationSlow:n,colorIcon:l,colorIconHover:i,iconCls:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tt(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:a},"&-suffix":{marginInlineStart:a}}}),yt(e)),{[`${d}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${n}`,"&:hover":{color:i}}}),et(e,`${t}-affix-wrapper`))}},Et=e=>{const{componentCls:t,colorError:a,colorWarning:r,borderRadiusLG:n,borderRadiusSM:l}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Le(e)),wt(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:l}},"&-status-error":{[`${t}-group-addon`]:{color:a,borderColor:a}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},Qe(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},It=e=>{const{componentCls:t,antCls:a}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${a}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${a}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${a}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
15
- > ${t},
16
- ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},zt=e=>{const{componentCls:t,paddingLG:a}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:a}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:a}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},At=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function Ot(e){return xe(e,{inputAffixPadding:e.paddingXXS})}const Nt=e=>{const{controlHeight:t,fontSize:a,lineHeight:r,lineWidth:n,controlHeightSM:l,controlHeightLG:i,fontSizeLG:d,lineHeightLG:v,paddingSM:f,controlPaddingHorizontalSM:h,controlPaddingHorizontal:x,colorFillAlter:$,colorPrimaryHover:j,colorPrimary:O,controlOutlineWidth:w,controlOutline:E,colorErrorOutline:H,colorWarningOutline:N}=e;return{paddingBlock:Math.max(Math.round((t-a*r)/2*10)/10-n,0),paddingBlockSM:Math.max(Math.round((l-a*r)/2*10)/10-n,0),paddingBlockLG:Math.ceil((i-d*v)/2*10)/10-n,paddingInline:f-n,paddingInlineSM:h-n,paddingInlineLG:x-n,addonBg:$,activeBorderColor:O,hoverBorderColor:j,activeShadow:`0 0 0 ${w}px ${E}`,errorActiveShadow:`0 0 0 ${w}px ${H}`,warningActiveShadow:`0 0 0 ${w}px ${N}`,hoverBg:"",activeBg:""}},at=dt("Input",e=>{const t=xe(e,Ot(e));return[Ct(t),zt(t),Rt(t),Et(t),It(t),At(t),ct(t)]},Nt);function ve(e){return!!(e.addonBefore||e.addonAfter)}function Ie(e){return!!(e.prefix||e.suffix||e.allowClear)}function $e(e,t,a,r){if(a){var n=t;if(t.type==="click"){var l=e.cloneNode(!0);n=Object.create(t,{target:{value:l},currentTarget:{value:l}}),l.value="",a(n);return}if(r!==void 0){var i=e.cloneNode(!0);n=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.type!=="file"&&(i.value=r),a(n);return}a(n)}}function Bt(e,t){if(e){e.focus(t);var a=t||{},r=a.cursor;if(r){var n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}var rt=function(t){var a,r,n=t.inputElement,l=t.prefixCls,i=t.prefix,d=t.suffix,v=t.addonBefore,f=t.addonAfter,h=t.className,x=t.style,$=t.disabled,j=t.readOnly,O=t.focused,w=t.triggerFocus,E=t.allowClear,H=t.value,N=t.handleReset,G=t.hidden,b=t.classes,p=t.classNames,R=t.dataAttrs,o=t.styles,s=t.components,Y=(s==null?void 0:s.affixWrapper)||"span",F=(s==null?void 0:s.groupWrapper)||"span",M=(s==null?void 0:s.wrapper)||"span",B=(s==null?void 0:s.groupAddon)||"span",T=c.useRef(null),m=function(y){var X;(X=T.current)!==null&&X!==void 0&&X.contains(y.target)&&(w==null||w())},L=function(){var y;if(!E)return null;var X=!$&&!j&&H,le="".concat(l,"-clear-icon"),te=_e(E)==="object"&&E!==null&&E!==void 0&&E.clearIcon?E.clearIcon:"βœ–";return u.createElement("span",{onClick:N,onMouseDown:function(de){return de.preventDefault()},className:C(le,(y={},ne(y,"".concat(le,"-hidden"),!X),ne(y,"".concat(le,"-has-suffix"),!!d),y)),role:"button",tabIndex:-1},te)},_=c.cloneElement(n,{value:H,hidden:G,className:C((a=n.props)===null||a===void 0?void 0:a.className,!Ie(t)&&!ve(t)&&h)||null,style:Z(Z({},(r=n.props)===null||r===void 0?void 0:r.style),!Ie(t)&&!ve(t)?x:{})});if(Ie(t)){var D,W="".concat(l,"-affix-wrapper"),Q=C(W,(D={},ne(D,"".concat(W,"-disabled"),$),ne(D,"".concat(W,"-focused"),O),ne(D,"".concat(W,"-readonly"),j),ne(D,"".concat(W,"-input-with-clear-btn"),d&&E&&H),D),!ve(t)&&h,b==null?void 0:b.affixWrapper,p==null?void 0:p.affixWrapper),V=(d||E)&&u.createElement("span",{className:C("".concat(l,"-suffix"),p==null?void 0:p.suffix),style:o==null?void 0:o.suffix},L(),d);_=u.createElement(Y,ge({className:Q,style:Z(Z({},ve(t)?void 0:x),o==null?void 0:o.affixWrapper),hidden:!ve(t)&&G,onClick:m},R==null?void 0:R.affixWrapper,{ref:T}),i&&u.createElement("span",{className:C("".concat(l,"-prefix"),p==null?void 0:p.prefix),style:o==null?void 0:o.prefix},i),c.cloneElement(n,{value:H,hidden:null}),V)}if(ve(t)){var ie="".concat(l,"-group"),K="".concat(ie,"-addon"),P=C("".concat(l,"-wrapper"),ie,b==null?void 0:b.wrapper),I=C("".concat(l,"-group-wrapper"),h,b==null?void 0:b.group);return u.createElement(F,{className:I,style:x,hidden:G},u.createElement(M,{className:P},v&&u.createElement(B,{className:K},v),c.cloneElement(_,{hidden:null}),f&&u.createElement(B,{className:K},f)))}return _},_t=["show"];function nt(e,t){return c.useMemo(function(){var a={};t&&(a.show=_e(t)==="object"&&t.formatter?t.formatter:!!t),a=Z(Z({},a),e);var r=a,n=r.show,l=we(r,_t);return Z(Z({},l),{},{show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:l.strategy||function(i){return i.length}})},[e,t])}var Ht=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],jt=c.forwardRef(function(e,t){var a=e.autoComplete,r=e.onChange,n=e.onFocus,l=e.onBlur,i=e.onPressEnter,d=e.onKeyDown,v=e.prefixCls,f=v===void 0?"rc-input":v,h=e.disabled,x=e.htmlSize,$=e.className,j=e.maxLength,O=e.suffix,w=e.showCount,E=e.count,H=e.type,N=H===void 0?"text":H,G=e.classes,b=e.classNames,p=e.styles,R=e.onCompositionStart,o=e.onCompositionEnd,s=we(e,Ht),Y=c.useState(!1),F=oe(Y,2),M=F[0],B=F[1],T=u.useRef(!1),m=c.useRef(null),L=function(g){m.current&&Bt(m.current,g)},_=He(e.defaultValue,{value:e.value}),D=oe(_,2),W=D[0],Q=D[1],V=W==null?"":String(W),ie=u.useState(null),K=oe(ie,2),P=K[0],I=K[1],z=nt(E,w),y=z.max||j,X=z.strategy(V),le=!!y&&X>y;c.useImperativeHandle(t,function(){return{focus:L,blur:function(){var g;(g=m.current)===null||g===void 0||g.blur()},setSelectionRange:function(g,ae,se){var ce;(ce=m.current)===null||ce===void 0||ce.setSelectionRange(g,ae,se)},select:function(){var g;(g=m.current)===null||g===void 0||g.select()},input:m.current}}),c.useEffect(function(){B(function(A){return A&&h?!1:A})},[h]);var te=function(g,ae){var se=ae;if(!T.current&&z.exceedFormatter&&z.max&&z.strategy(ae)>z.max&&(se=z.exceedFormatter(ae,{max:z.max}),ae!==se)){var ce,me;I([((ce=m.current)===null||ce===void 0?void 0:ce.selectionStart)||0,((me=m.current)===null||me===void 0?void 0:me.selectionEnd)||0])}Q(se),m.current&&$e(m.current,g,r,se)};u.useEffect(function(){if(P){var A;(A=m.current)===null||A===void 0||A.setSelectionRange.apply(A,De(P))}},[P]);var U=function(g){te(g,g.target.value)},de=function(g){T.current=!1,te(g,g.currentTarget.value),o==null||o(g)},J=function(g){i&&g.key==="Enter"&&i(g),d==null||d(g)},fe=function(g){B(!0),n==null||n(g)},Ce=function(g){B(!1),l==null||l(g)},pe=function(g){Q(""),L(),m.current&&$e(m.current,g,r)},ye=le&&"".concat(f,"-out-of-range"),Se=function(){var g=ft(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return u.createElement("input",ge({autoComplete:a},g,{onChange:U,onFocus:fe,onBlur:Ce,onKeyDown:J,className:C(f,ne({},"".concat(f,"-disabled"),h),b==null?void 0:b.input),style:p==null?void 0:p.input,ref:m,size:x,type:N,onCompositionStart:function(se){T.current=!0,R==null||R(se)},onCompositionEnd:de}))},Re=function(){var g=Number(y)>0;if(O||z.show){var ae=z.showFormatter?z.showFormatter({value:V,count:X,maxLength:y}):"".concat(X).concat(g?" / ".concat(y):"");return u.createElement(u.Fragment,null,z.show&&u.createElement("span",{className:C("".concat(f,"-show-count-suffix"),ne({},"".concat(f,"-show-count-has-suffix"),!!O),b==null?void 0:b.count),style:Z({},p==null?void 0:p.count)},ae),O)}return null};return u.createElement(rt,ge({},s,{prefixCls:f,className:C($,ye),inputElement:Se(),handleReset:pe,value:V,focused:M,triggerFocus:L,suffix:Re(),disabled:h,classes:G,classNames:b,styles:p}))});function Tt(e,t){const a=c.useRef([]),r=()=>{a.current.push(setTimeout(()=>{var n,l,i,d;!((n=e.current)===null||n===void 0)&&n.input&&((l=e.current)===null||l===void 0?void 0:l.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((d=e.current)===null||d===void 0||d.input.removeAttribute("value"))}))};return c.useEffect(()=>(t&&r(),()=>a.current.forEach(n=>{n&&clearTimeout(n)})),[]),r}function Pt(e){return!!(e.prefix||e.suffix||e.allowClear)}var Ft=globalThis&&globalThis.__rest||function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]]);return a};function Mt(e,t){if(!e)return;e.focus(t);const{cursor:a}=t||{};if(a){const r=e.value.length;switch(a){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}const oa=c.forwardRef((e,t)=>{var a;const{prefixCls:r,bordered:n=!0,status:l,size:i,disabled:d,onBlur:v,onFocus:f,suffix:h,allowClear:x,addonAfter:$,addonBefore:j,className:O,style:w,styles:E,rootClassName:H,onChange:N,classNames:G}=e,b=Ft(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:p,direction:R,input:o}=u.useContext(We),s=p("input",r),Y=c.useRef(null),F=Ve(s),[M,B,T]=at(s,F),{compactSize:m,compactItemClassnames:L}=gt(s,R),_=Ge(U=>{var de;return(de=i??m)!==null&&de!==void 0?de:U}),D=u.useContext(Ke),W=d??D,{status:Q,hasFeedback:V,feedbackIcon:ie}=c.useContext(Xe),K=Ze(Q,l),P=Pt(e)||!!V;c.useRef(P);const I=Tt(Y,!0),z=U=>{I(),v==null||v(U)},y=U=>{I(),f==null||f(U)},X=U=>{I(),N==null||N(U)},le=(V||h)&&u.createElement(u.Fragment,null,h,V&&ie);let te;return typeof x=="object"&&(x!=null&&x.clearIcon)?te=x:x&&(te={clearIcon:u.createElement(qe,null)}),M(u.createElement(jt,Object.assign({ref:vt(t,Y),prefixCls:s,autoComplete:o==null?void 0:o.autoComplete},b,{disabled:W,onBlur:z,onFocus:y,style:Object.assign(Object.assign({},o==null?void 0:o.style),w),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),E),suffix:le,allowClear:te,className:C(O,H,T,F,B,L,o==null?void 0:o.className),onChange:X,addonAfter:$&&u.createElement(je,null,u.createElement(Te,{override:!0,status:!0},$)),addonBefore:j&&u.createElement(je,null,u.createElement(Te,{override:!0,status:!0},j)),classNames:Object.assign(Object.assign(Object.assign({},G),o==null?void 0:o.classNames),{input:C({[`${s}-sm`]:_==="small",[`${s}-lg`]:_==="large",[`${s}-rtl`]:R==="rtl",[`${s}-borderless`]:!n},!P&&be(s,K),G==null?void 0:G.input,(a=o==null?void 0:o.classNames)===null||a===void 0?void 0:a.input,B)}),classes:{affixWrapper:C({[`${s}-affix-wrapper-sm`]:_==="small",[`${s}-affix-wrapper-lg`]:_==="large",[`${s}-affix-wrapper-rtl`]:R==="rtl",[`${s}-affix-wrapper-borderless`]:!n},be(`${s}-affix-wrapper`,K,V),B),wrapper:C({[`${s}-group-rtl`]:R==="rtl"},B),group:C({[`${s}-group-wrapper-sm`]:_==="small",[`${s}-group-wrapper-lg`]:_==="large",[`${s}-group-wrapper-rtl`]:R==="rtl",[`${s}-group-wrapper-disabled`]:W},be(`${s}-group-wrapper`,K,V),B)}})))});var Lt=`
17
- min-height:0 !important;
18
- max-height:none !important;
19
- height:0 !important;
20
- visibility:hidden !important;
21
- overflow:hidden !important;
22
- position:absolute !important;
23
- z-index:-1000 !important;
24
- top:0 !important;
25
- right:0 !important;
26
- pointer-events: none !important;
27
- `,Dt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ze={},ee;function Wt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ze[a])return ze[a];var r=window.getComputedStyle(e),n=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),d=Dt.map(function(f){return"".concat(f,":").concat(r.getPropertyValue(f))}).join(";"),v={sizingStyle:d,paddingSize:l,borderSize:i,boxSizing:n};return t&&a&&(ze[a]=v),v}function Vt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ee||(ee=document.createElement("textarea"),ee.setAttribute("tab-index","-1"),ee.setAttribute("aria-hidden","true"),document.body.appendChild(ee)),e.getAttribute("wrap")?ee.setAttribute("wrap",e.getAttribute("wrap")):ee.removeAttribute("wrap");var n=Wt(e,t),l=n.paddingSize,i=n.borderSize,d=n.boxSizing,v=n.sizingStyle;ee.setAttribute("style","".concat(v,";").concat(Lt)),ee.value=e.value||e.placeholder||"";var f=void 0,h=void 0,x,$=ee.scrollHeight;if(d==="border-box"?$+=i:d==="content-box"&&($-=l),a!==null||r!==null){ee.value=" ";var j=ee.scrollHeight-l;a!==null&&(f=j*a,d==="border-box"&&(f=f+l+i),$=Math.max(f,$)),r!==null&&(h=j*r,d==="border-box"&&(h=h+l+i),x=$>h?"":"hidden",$=Math.min(h,$))}var O={height:$,overflowY:x,resize:"none"};return f&&(O.minHeight=f),h&&(O.maxHeight=h),O}var Gt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ae=0,Oe=1,Ne=2,Kt=c.forwardRef(function(e,t){var a=e,r=a.prefixCls;a.onPressEnter;var n=a.defaultValue,l=a.value,i=a.autoSize,d=a.onResize,v=a.className,f=a.style,h=a.disabled,x=a.onChange;a.onInternalAutoSize;var $=we(a,Gt),j=He(n,{value:l,postState:function(I){return I??""}}),O=oe(j,2),w=O[0],E=O[1],H=function(I){E(I.target.value),x==null||x(I)},N=c.useRef();c.useImperativeHandle(t,function(){return{textArea:N.current}});var G=c.useMemo(function(){return i&&_e(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),b=oe(G,2),p=b[0],R=b[1],o=!!i,s=function(){try{if(document.activeElement===N.current){var I=N.current,z=I.selectionStart,y=I.selectionEnd,X=I.scrollTop;N.current.setSelectionRange(z,y),N.current.scrollTop=X}}catch{}},Y=c.useState(Ne),F=oe(Y,2),M=F[0],B=F[1],T=c.useState(),m=oe(T,2),L=m[0],_=m[1],D=function(){B(Ae)};Pe(function(){o&&D()},[l,p,R,o]),Pe(function(){if(M===Ae)B(Oe);else if(M===Oe){var P=Vt(N.current,!1,p,R);B(Ne),_(P)}else s()},[M]);var W=c.useRef(),Q=function(){Fe.cancel(W.current)},V=function(I){M===Ne&&(d==null||d(I),i&&(Q(),W.current=Fe(function(){D()})))};c.useEffect(function(){return Q},[]);var ie=o?L:null,K=Z(Z({},f),ie);return(M===Ae||M===Oe)&&(K.overflowY="hidden",K.overflowX="hidden"),c.createElement(mt,{onResize:V,disabled:!(i||d)},c.createElement("textarea",ge({},$,{ref:N,style:K,className:C(r,v,ne({},"".concat(r,"-disabled"),h)),disabled:h,value:w,onChange:H})))}),Xt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],qt=u.forwardRef(function(e,t){var a,r,n=e.defaultValue,l=e.value,i=e.onFocus,d=e.onBlur,v=e.onChange,f=e.allowClear,h=e.maxLength,x=e.onCompositionStart,$=e.onCompositionEnd,j=e.suffix,O=e.prefixCls,w=O===void 0?"rc-textarea":O,E=e.classes,H=e.showCount,N=e.count,G=e.className,b=e.style,p=e.disabled,R=e.hidden,o=e.classNames,s=e.styles,Y=e.onResize,F=we(e,Xt),M=He(n,{value:l,defaultValue:n}),B=oe(M,2),T=B[0],m=B[1],L=T==null?"":String(T),_=u.useState(!1),D=oe(_,2),W=D[0],Q=D[1],V=u.useRef(!1),ie=u.useState(null),K=oe(ie,2),P=K[0],I=K[1],z=c.useRef(null),y=function(){var S;return(S=z.current)===null||S===void 0?void 0:S.textArea},X=function(){y().focus()};c.useImperativeHandle(t,function(){return{resizableTextArea:z.current,focus:X,blur:function(){y().blur()}}}),c.useEffect(function(){Q(function(q){return!p&&q})},[p]);var le=u.useState(null),te=oe(le,2),U=te[0],de=te[1];u.useEffect(function(){if(U){var q;(q=y()).setSelectionRange.apply(q,De(U))}},[U]);var J=nt(N,H),fe=(a=J.max)!==null&&a!==void 0?a:h,Ce=Number(fe)>0,pe=J.strategy(L),ye=!!fe&&pe>fe,Se=function(S,re){var ue=re;!V.current&&J.exceedFormatter&&J.max&&J.strategy(re)>J.max&&(ue=J.exceedFormatter(re,{max:J.max}),re!==ue&&de([y().selectionStart||0,y().selectionEnd||0])),m(ue),$e(S.currentTarget,S,v,ue)},Re=function(S){V.current=!0,x==null||x(S)},A=function(S){V.current=!1,Se(S,S.currentTarget.value),$==null||$(S)},g=function(S){Se(S,S.target.value)},ae=function(S){var re=F.onPressEnter,ue=F.onKeyDown;S.key==="Enter"&&re&&re(S),ue==null||ue(S)},se=function(S){Q(!0),i==null||i(S)},ce=function(S){Q(!1),d==null||d(S)},me=function(S){m(""),X(),$e(y(),S,v)},Ee=j,he;J.show&&(J.showFormatter?he=J.showFormatter({value:L,count:pe,maxLength:fe}):he="".concat(pe).concat(Ce?" / ".concat(fe):""),Ee=u.createElement(u.Fragment,null,Ee,u.createElement("span",{className:C("".concat(w,"-data-count"),o==null?void 0:o.count),style:s==null?void 0:s.count},he)));var ot=function(S){var re;Y==null||Y(S),(re=y())!==null&&re!==void 0&&re.style.height&&I(!0)},it=!F.autoSize&&!H&&!f,lt=u.createElement(rt,{value:L,allowClear:f,handleReset:me,suffix:Ee,prefixCls:w,classes:{affixWrapper:C(E==null?void 0:E.affixWrapper,(r={},ne(r,"".concat(w,"-show-count"),H),ne(r,"".concat(w,"-textarea-allow-clear"),f),r))},disabled:p,focused:W,className:C(G,ye&&"".concat(w,"-out-of-range")),style:Z(Z({},b),P&&!it?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof he=="string"?he:void 0}},hidden:R,inputElement:u.createElement(Kt,ge({},F,{maxLength:h,onKeyDown:ae,onChange:g,onFocus:se,onBlur:ce,onCompositionStart:Re,onCompositionEnd:A,className:C(o==null?void 0:o.textarea),style:Z(Z({},s==null?void 0:s.textarea),{},{resize:b==null?void 0:b.resize}),disabled:p,prefixCls:w,onResize:ot,ref:z}))});return lt}),Yt=globalThis&&globalThis.__rest||function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]]);return a};const Zt=c.forwardRef((e,t)=>{var a;const{prefixCls:r,bordered:n=!0,size:l,disabled:i,status:d,allowClear:v,classNames:f,rootClassName:h,className:x}=e,$=Yt(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:j,direction:O}=c.useContext(We),w=Ge(l),E=c.useContext(Ke),H=i??E,{status:N,hasFeedback:G,feedbackIcon:b}=c.useContext(Xe),p=Ze(N,d),R=c.useRef(null);c.useImperativeHandle(t,()=>{var T;return{resizableTextArea:(T=R.current)===null||T===void 0?void 0:T.resizableTextArea,focus:m=>{var L,_;Mt((_=(L=R.current)===null||L===void 0?void 0:L.resizableTextArea)===null||_===void 0?void 0:_.textArea,m)},blur:()=>{var m;return(m=R.current)===null||m===void 0?void 0:m.blur()}}});const o=j("input",r);let s;typeof v=="object"&&(v!=null&&v.clearIcon)?s=v:v&&(s={clearIcon:c.createElement(qe,null)});const Y=Ve(o),[F,M,B]=at(o,Y);return F(c.createElement(qt,Object.assign({},$,{disabled:H,allowClear:s,className:C(B,Y,x,h),classes:{affixWrapper:C(`${o}-textarea-affix-wrapper`,{[`${o}-affix-wrapper-rtl`]:O==="rtl",[`${o}-affix-wrapper-borderless`]:!n,[`${o}-affix-wrapper-sm`]:w==="small",[`${o}-affix-wrapper-lg`]:w==="large",[`${o}-textarea-show-count`]:e.showCount||((a=e.count)===null||a===void 0?void 0:a.show)},be(`${o}-affix-wrapper`,p),M)},classNames:Object.assign(Object.assign({},f),{textarea:C({[`${o}-borderless`]:!n,[`${o}-sm`]:w==="small",[`${o}-lg`]:w==="large"},be(o,p),M,f==null?void 0:f.textarea)}),prefixCls:o,suffix:G&&c.createElement("span",{className:`${o}-textarea-suffix`},b),ref:R})))}),ia=Zt;var Ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const Qt=Ut;var Jt=function(t,a){return c.createElement(Me,ge({},t,{ref:a,icon:Qt}))};const la=c.forwardRef(Jt),kt={"as-display":"_as-display_dr5ry_1","as-h1":"_as-h1_dr5ry_12","as-h2":"_as-h2_dr5ry_21","as-h3":"_as-h3_dr5ry_31","as-h4":"_as-h4_dr5ry_41","as-h5":"_as-h5_dr5ry_51","as-h6":"_as-h6_dr5ry_61"};function sa({level:e,displayAs:t,children:a,...r}){const n=`h${e}`,{className:l,...i}=r,d=C(l,kt[`as-h${t||e}`]);return pt.jsx(n,{...i,className:d,children:a})}export{na as C,sa as H,oa as I,ia as T,la as a,Ze as b,Tt as c,Nt as d,Ot as e,ke as f,be as g,tt as h,ra as i,aa as o,at as u};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
static/assets/Header-42d94588.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{c as x,r as d,A as K,_ as Y,a as ve,m as P,bk as Se,aS as Z,u as p,bw as we,R as m,C as k,aC as ee,bn as Ce,aV as re,aU as oe,bo as te,d as ye,bt as J,bJ as Q,bl as ae,j as Ie}from"./index-6ffe79a8.js";import{I as Re,e as Ee}from"./TextArea-a7c0bf00.js";const er=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});function T(e,r,o){return x({[`${e}-status-success`]:r==="success",[`${e}-status-warning`]:r==="warning",[`${e}-status-error`]:r==="error",[`${e}-status-validating`]:r==="validating",[`${e}-has-feedback`]:o})}const ie=(e,r)=>r||e;var Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const ze=Oe;var He=function(r,o){return d.createElement(K,Y({},r,{ref:o,icon:ze}))};const rr=d.forwardRef(He),je=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ne=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),q=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),se=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},ne(P(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),le=e=>{const{paddingBlockLG:r,fontSizeLG:o,lineHeightLG:t,borderRadiusLG:a,paddingInlineLG:l}=e;return{padding:`${p(r)} ${p(l)}`,fontSize:o,lineHeight:t,borderRadius:a}},de=e=>({padding:`${p(e.paddingBlockSM)} ${p(e.paddingInlineSM)}`,borderRadius:e.borderRadiusSM}),ce=(e,r)=>{const{componentCls:o,colorError:t,colorWarning:a,errorActiveShadow:l,warningActiveShadow:s,colorErrorBorderHover:c,colorWarningBorderHover:u}=e;return{[`&-status-error:not(${r}-disabled):not(${r}-borderless)${r}`]:{borderColor:t,"&:hover":{borderColor:c},"&:focus, &:focus-within":Object.assign({},q(P(e,{activeBorderColor:t,activeShadow:l}))),[`${o}-prefix, ${o}-suffix`]:{color:t}},[`&-status-warning:not(${r}-disabled):not(${r}-borderless)${r}`]:{borderColor:a,"&:hover":{borderColor:u},"&:focus, &:focus-within":Object.assign({},q(P(e,{activeBorderColor:a,activeShadow:s}))),[`${o}-prefix, ${o}-suffix`]:{color:a}}}},ue=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${p(e.paddingBlock)} ${p(e.paddingInline)}`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},je(e.colorTextPlaceholder)),{"&:hover":Object.assign({},ne(e)),"&:focus, &:focus-within":Object.assign({},q(e)),"&-disabled, &[disabled]":Object.assign({},se(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},le(e)),"&-sm":Object.assign({},de(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Be=e=>{const{componentCls:r,antCls:o}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${r}, &-lg > ${r}-group-addon`]:Object.assign({},le(e)),[`&-sm ${r}, &-sm > ${r}-group-addon`]:Object.assign({},de(e)),[`&-lg ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightSM},[`> ${r}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${r}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${p(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${p(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${p(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${p(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{[`${o}-select-selector`]:{backgroundColor:"inherit",border:`${p(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${o}-select-selector`]:{color:e.colorPrimary}}},[`${o}-cascader-picker`]:{margin:`-9px ${p(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${r}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${r}-search-with-button &`]:{zIndex:0}}},[`> ${r}:first-child, ${r}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}-affix-wrapper`]:{[`&:not(:first-child) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}:last-child, ${r}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${r}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${r}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${r}-group-compact`]:Object.assign(Object.assign({display:"block"},we()),{[`${r}-group-addon, ${r}-group-wrap, > ${r}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
2
+ & > ${r}-affix-wrapper,
3
+ & > ${r}-number-affix-wrapper,
4
+ & > ${o}-picker-range
5
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${r}`]:{float:"none"},[`& > ${o}-select > ${o}-select-selector,
6
+ & > ${o}-select-auto-complete ${r},
7
+ & > ${o}-cascader-picker ${r},
8
+ & > ${r}-group-wrapper ${r}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${o}-select-focused`]:{zIndex:1},[`& > ${o}-select > ${o}-select-arrow`]:{zIndex:1},[`& > *:first-child,
9
+ & > ${o}-select:first-child > ${o}-select-selector,
10
+ & > ${o}-select-auto-complete:first-child ${r},
11
+ & > ${o}-cascader-picker:first-child ${r}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
12
+ & > ${o}-select:last-child > ${o}-select-selector,
13
+ & > ${o}-cascader-picker:last-child ${r},
14
+ & > ${o}-cascader-picker-focused:last-child ${r}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${r}`]:{verticalAlign:"top"},[`${r}-group-wrapper + ${r}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${r}-affix-wrapper`]:{borderRadius:0}},[`${r}-group-wrapper:not(:last-child)`]:{[`&${r}-search > ${r}-group`]:{[`& > ${r}-group-addon > ${r}-search-button`]:{borderRadius:0},[`& > ${r}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},_e=e=>{const{componentCls:r,controlHeightSM:o,lineWidth:t,calc:a}=e,l=16,s=a(o).sub(a(t).mul(2)).sub(l).div(2).equal();return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},Z(e)),ue(e)),ce(e,r)),{'&[type="color"]':{height:e.controlHeight,[`&${r}-lg`]:{height:e.controlHeightLG},[`&${r}-sm`]:{height:o,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Ae=e=>{const{componentCls:r}=e;return{[`${r}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${p(e.inputAffixPadding)}`}}}},Te=e=>{const{componentCls:r,inputAffixPadding:o,colorTextDescription:t,motionDurationSlow:a,colorIcon:l,colorIconHover:s,iconCls:c}=e;return{[`${r}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ue(e)),{display:"inline-flex",[`&:not(${r}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${r}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${r}[disabled]`]:{background:"transparent"}},[`> input${r}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${r}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:t},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o}}}),Ae(e)),{[`${c}${r}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:s}}}),ce(e,`${r}-affix-wrapper`))}},Pe=e=>{const{componentCls:r,colorError:o,colorWarning:t,borderRadiusLG:a,borderRadiusSM:l}=e;return{[`${r}-group`]:Object.assign(Object.assign(Object.assign({},Z(e)),Be(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${r}-group-addon`]:{borderRadius:a,fontSize:e.fontSizeLG}},"&-sm":{[`${r}-group-addon`]:{borderRadius:l}},"&-status-error":{[`${r}-group-addon`]:{color:o,borderColor:o}},"&-status-warning":{[`${r}-group-addon`]:{color:t,borderColor:t}},"&-disabled":{[`${r}-group-addon`]:Object.assign({},se(e))},[`&:not(${r}-compact-first-item):not(${r}-compact-last-item)${r}-compact-item`]:{[`${r}, ${r}-group-addon`]:{borderRadius:0}},[`&:not(${r}-compact-last-item)${r}-compact-first-item`]:{[`${r}, ${r}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${r}-compact-first-item)${r}-compact-last-item`]:{[`${r}, ${r}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},We=e=>{const{componentCls:r,antCls:o}=e,t=`${r}-search`;return{[t]:{[`${r}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${r}-group-addon ${t}-button:not(${o}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${r}-affix-wrapper`]:{borderRadius:0},[`${r}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${r}-group`]:{[`> ${r}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${t}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${t}-button:not(${o}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${o}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${t}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${t}-button`]:{height:e.controlHeightLG},[`&-small ${t}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${r}-compact-item`]:{[`&:not(${r}-compact-last-item)`]:{[`${r}-group-addon`]:{[`${r}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${r}-compact-first-item)`]:{[`${r},${r}-affix-wrapper`]:{borderRadius:0}},[`> ${r}-group-addon ${r}-search-button,
15
+ > ${r},
16
+ ${r}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${r}-affix-wrapper-focused`]:{zIndex:2}}}}},Ne=e=>{const{componentCls:r,paddingLG:o}=e,t=`${r}-textarea`;return{[t]:{position:"relative","&-show-count":{[`> ${r}`]:{height:"100%"},[`${r}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${r}`]:{paddingInlineEnd:o}},[`&-affix-wrapper${t}-has-feedback`]:{[`${r}`]:{paddingInlineEnd:o}},[`&-affix-wrapper${r}-affix-wrapper`]:{padding:0,[`> textarea${r}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${r}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${r}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Le=e=>{const{componentCls:r}=e;return{[`${r}-out-of-range`]:{[`&, & input, & textarea, ${r}-show-count-suffix, ${r}-data-count`]:{color:e.colorError}}}};function Me(e){return P(e,{inputAffixPadding:e.paddingXXS})}const De=e=>{const{controlHeight:r,fontSize:o,lineHeight:t,lineWidth:a,controlHeightSM:l,controlHeightLG:s,fontSizeLG:c,lineHeightLG:u,paddingSM:g,controlPaddingHorizontalSM:y,controlPaddingHorizontal:b,colorFillAlter:I,colorPrimaryHover:R,colorPrimary:O,controlOutlineWidth:f,controlOutline:z,colorErrorOutline:H,colorWarningOutline:v}=e;return{paddingBlock:Math.max(Math.round((r-o*t)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((l-o*t)/2*10)/10-a,0),paddingBlockLG:Math.ceil((s-c*u)/2*10)/10-a,paddingInline:g-a,paddingInlineSM:y-a,paddingInlineLG:b-a,addonBg:I,activeBorderColor:O,hoverBorderColor:R,activeShadow:`0 0 0 ${f}px ${z}`,errorActiveShadow:`0 0 0 ${f}px ${H}`,warningActiveShadow:`0 0 0 ${f}px ${v}`,hoverBg:"",activeBg:""}},pe=ve("Input",e=>{const r=P(e,Me(e));return[_e(r),Ne(r),Te(r),Pe(r),We(r),Le(r),Se(r)]},De);function Ge(e,r){const o=d.useRef([]),t=()=>{o.current.push(setTimeout(()=>{var a,l,s,c;!((a=e.current)===null||a===void 0)&&a.input&&((l=e.current)===null||l===void 0?void 0:l.input.getAttribute("type"))==="password"&&(!((s=e.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((c=e.current)===null||c===void 0||c.input.removeAttribute("value"))}))};return d.useEffect(()=>(r&&t(),()=>o.current.forEach(a=>{a&&clearTimeout(a)})),[]),t}function Fe(e){return!!(e.prefix||e.suffix||e.allowClear)}var Ve=globalThis&&globalThis.__rest||function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a<t.length;a++)r.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]]);return o};function qe(e,r){if(!e)return;e.focus(r);const{cursor:o}=r||{};if(o){const t=e.value.length;switch(o){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t);break}}}const or=d.forwardRef((e,r)=>{var o;const{prefixCls:t,bordered:a=!0,status:l,size:s,disabled:c,onBlur:u,onFocus:g,suffix:y,allowClear:b,addonAfter:I,addonBefore:R,className:O,style:f,styles:z,rootClassName:H,onChange:v,classNames:E}=e,M=Ve(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:W,direction:h,input:i}=m.useContext(k),n=W("input",t),j=d.useRef(null),N=ee(n),[L,S,B]=pe(n,N),{compactSize:w,compactItemClassnames:_}=Ce(n,h),$=re(C=>{var V;return(V=s??w)!==null&&V!==void 0?V:C}),ge=m.useContext(oe),X=c??ge,{status:be,hasFeedback:A,feedbackIcon:fe}=d.useContext(te),D=ie(be,l),U=Fe(e)||!!A;d.useRef(U);const G=Ge(j,!0),he=C=>{G(),u==null||u(C)},$e=C=>{G(),g==null||g(C)},me=C=>{G(),v==null||v(C)},xe=(A||y)&&m.createElement(m.Fragment,null,y,A&&fe);let F;return typeof b=="object"&&(b!=null&&b.clearIcon)?F=b:b&&(F={clearIcon:m.createElement(ae,null)}),L(m.createElement(Re,Object.assign({ref:ye(r,j),prefixCls:n,autoComplete:i==null?void 0:i.autoComplete},M,{disabled:X,onBlur:he,onFocus:$e,style:Object.assign(Object.assign({},i==null?void 0:i.style),f),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),z),suffix:xe,allowClear:F,className:x(O,H,B,N,S,_,i==null?void 0:i.className),onChange:me,addonAfter:I&&m.createElement(J,null,m.createElement(Q,{override:!0,status:!0},I)),addonBefore:R&&m.createElement(J,null,m.createElement(Q,{override:!0,status:!0},R)),classNames:Object.assign(Object.assign(Object.assign({},E),i==null?void 0:i.classNames),{input:x({[`${n}-sm`]:$==="small",[`${n}-lg`]:$==="large",[`${n}-rtl`]:h==="rtl",[`${n}-borderless`]:!a},!U&&T(n,D),E==null?void 0:E.input,(o=i==null?void 0:i.classNames)===null||o===void 0?void 0:o.input,S)}),classes:{affixWrapper:x({[`${n}-affix-wrapper-sm`]:$==="small",[`${n}-affix-wrapper-lg`]:$==="large",[`${n}-affix-wrapper-rtl`]:h==="rtl",[`${n}-affix-wrapper-borderless`]:!a},T(`${n}-affix-wrapper`,D,A),S),wrapper:x({[`${n}-group-rtl`]:h==="rtl"},S),group:x({[`${n}-group-wrapper-sm`]:$==="small",[`${n}-group-wrapper-lg`]:$==="large",[`${n}-group-wrapper-rtl`]:h==="rtl",[`${n}-group-wrapper-disabled`]:X},T(`${n}-group-wrapper`,D,A),S)}})))});var Xe=globalThis&&globalThis.__rest||function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a<t.length;a++)r.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]]);return o};const Ue=d.forwardRef((e,r)=>{var o;const{prefixCls:t,bordered:a=!0,size:l,disabled:s,status:c,allowClear:u,classNames:g,rootClassName:y,className:b}=e,I=Xe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:R,direction:O}=d.useContext(k),f=re(l),z=d.useContext(oe),H=s??z,{status:v,hasFeedback:E,feedbackIcon:M}=d.useContext(te),W=ie(v,c),h=d.useRef(null);d.useImperativeHandle(r,()=>{var B;return{resizableTextArea:(B=h.current)===null||B===void 0?void 0:B.resizableTextArea,focus:w=>{var _,$;qe(($=(_=h.current)===null||_===void 0?void 0:_.resizableTextArea)===null||$===void 0?void 0:$.textArea,w)},blur:()=>{var w;return(w=h.current)===null||w===void 0?void 0:w.blur()}}});const i=R("input",t);let n;typeof u=="object"&&(u!=null&&u.clearIcon)?n=u:u&&(n={clearIcon:d.createElement(ae,null)});const j=ee(i),[N,L,S]=pe(i,j);return N(d.createElement(Ee,Object.assign({},I,{disabled:H,allowClear:n,className:x(S,j,b,y),classes:{affixWrapper:x(`${i}-textarea-affix-wrapper`,{[`${i}-affix-wrapper-rtl`]:O==="rtl",[`${i}-affix-wrapper-borderless`]:!a,[`${i}-affix-wrapper-sm`]:f==="small",[`${i}-affix-wrapper-lg`]:f==="large",[`${i}-textarea-show-count`]:e.showCount||((o=e.count)===null||o===void 0?void 0:o.show)},T(`${i}-affix-wrapper`,W),L)},classNames:Object.assign(Object.assign({},g),{textarea:x({[`${i}-borderless`]:!a,[`${i}-sm`]:f==="small",[`${i}-lg`]:f==="large"},T(i,W),L,g==null?void 0:g.textarea)}),prefixCls:i,suffix:E&&d.createElement("span",{className:`${i}-textarea-suffix`},M),ref:h})))}),tr=Ue;var Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const Qe=Je;var Ke=function(r,o){return d.createElement(K,Y({},r,{ref:o,icon:Qe}))};const ar=d.forwardRef(Ke),Ye={"as-display":"_as-display_dr5ry_1","as-h1":"_as-h1_dr5ry_12","as-h2":"_as-h2_dr5ry_21","as-h3":"_as-h3_dr5ry_31","as-h4":"_as-h4_dr5ry_41","as-h5":"_as-h5_dr5ry_51","as-h6":"_as-h6_dr5ry_61"};function ir({level:e,displayAs:r,children:o,...t}){const a=`h${e}`,{className:l,...s}=t,c=x(l,Ye[`as-h${r||e}`]);return Ie.jsx(a,{...s,className:c,children:o})}export{rr as C,ir as H,or as I,tr as T,ar as a,ie as b,Ge as c,Me as d,de as e,ue as f,T as g,De as i,er as o,pe as u};
static/assets/TextArea-a7c0bf00.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{r as s,as as wn,at as pn,au as Cn,aw as Sn,a9 as Qr,aa as Yr,n as L,a$ as Er,ar,t as xn,_ as We,bQ as Br,p as V,ab as Ve,ay as Vr,aR as Rn,c as te,ac as Xr,e as Ae,d as _n,bN as En,bR as Ar,ap as Mn,an as yt,ao as Xt,bS as Or,az as pt,aY as zn,aB as en,u as Nr,a as Pn,m as tn,bv as $n,aS as Tn,C as rn,bh as kn,bt as An,bs as On,bT as Nn,bp as Dn,bq as In,b as Ln,bz as jn,by as Bn,aq as Oe,R as Q,o as Vn}from"./index-6ffe79a8.js";var Dr=s.createContext(null);function Wn(e){var t=e.children,r=e.onBatchResize,n=s.useRef(0),a=s.useRef([]),o=s.useContext(Dr),i=s.useCallback(function(l,u,f){n.current+=1;var v=n.current;a.current.push({size:l,element:u,data:f}),Promise.resolve().then(function(){v===n.current&&(r==null||r(a.current),a.current=[])}),o==null||o(l,u,f)},[r,o]);return s.createElement(Dr.Provider,{value:i},t)}var nn=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,o){return a[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,o=this.__entries__;a<o.length;a++){var i=o[a];r.call(n,i[1],i[0])}},t}()}(),Ir=typeof window<"u"&&typeof document<"u"&&window.document===document,er=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Fn=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(er):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Hn=2;function qn(e,t){var r=!1,n=!1,a=0;function o(){r&&(r=!1,e()),n&&l()}function i(){Fn(o)}function l(){var u=Date.now();if(r){if(u-a<Hn)return;n=!0}else r=!0,n=!1,setTimeout(i,t);a=u}return l}var Gn=20,Kn=["top","right","bottom","left","width","height","size","weight"],Un=typeof MutationObserver<"u",Zn=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=qn(this.refresh.bind(this),Gn)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ir||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Un?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ir||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=Kn.some(function(o){return!!~n.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),an=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},wt=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||er},on=or(0,0,0,0);function tr(e){return parseFloat(e)||0}function Wr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var o=e["border-"+a+"-width"];return n+tr(o)},0)}function Jn(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var o=a[n],i=e["padding-"+o];r[o]=tr(i)}return r}function Qn(e){var t=e.getBBox();return or(0,0,t.width,t.height)}function Yn(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return on;var n=wt(e).getComputedStyle(e),a=Jn(n),o=a.left+a.right,i=a.top+a.bottom,l=tr(n.width),u=tr(n.height);if(n.boxSizing==="border-box"&&(Math.round(l+o)!==t&&(l-=Wr(n,"left","right")+o),Math.round(u+i)!==r&&(u-=Wr(n,"top","bottom")+i)),!ea(e)){var f=Math.round(l+o)-t,v=Math.round(u+i)-r;Math.abs(f)!==1&&(l-=f),Math.abs(v)!==1&&(u-=v)}return or(a.left,a.top,l,u)}var Xn=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof wt(e).SVGGraphicsElement}:function(e){return e instanceof wt(e).SVGElement&&typeof e.getBBox=="function"}}();function ea(e){return e===wt(e).document.documentElement}function ta(e){return Ir?Xn(e)?Qn(e):Yn(e):on}function ra(e){var t=e.x,r=e.y,n=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return an(i,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),i}function or(e,t,r,n){return{x:e,y:t,width:r,height:n}}var na=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=or(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=ta(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),aa=function(){function e(t,r){var n=ra(r);an(this,{target:t,contentRect:n})}return e}(),oa=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new nn,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof wt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new na(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof wt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new aa(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),sn=typeof WeakMap<"u"?new WeakMap:new nn,ln=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Zn.getInstance(),n=new oa(t,r,this);sn.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ln.prototype[e]=function(){var t;return(t=sn.get(this))[e].apply(t,arguments)}});var ia=function(){return typeof er.ResizeObserver<"u"?er.ResizeObserver:ln}(),Je=new Map;function sa(e){e.forEach(function(t){var r,n=t.target;(r=Je.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var un=new ia(sa),la=null;function ua(e,t){Je.has(e)||(Je.set(e,new Set),un.observe(e)),Je.get(e).add(t)}function ca(e,t){Je.has(e)&&(Je.get(e).delete(t),Je.get(e).size||(un.unobserve(e),Je.delete(e)))}var fa=function(e){wn(r,e);var t=pn(r);function r(){return Cn(this,r),t.apply(this,arguments)}return Sn(r,[{key:"render",value:function(){return this.props.children}}]),r}(s.Component);function da(e,t){var r=e.children,n=e.disabled,a=s.useRef(null),o=s.useRef(null),i=s.useContext(Dr),l=typeof r=="function",u=l?r(a):r,f=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!l&&s.isValidElement(u)&&Qr(u),d=v?u.ref:null,h=Yr(d,a),m=function(){var _;return Er(a.current)||(a.current&&ar(a.current)==="object"?Er((_=a.current)===null||_===void 0?void 0:_.nativeElement):null)||Er(o.current)};s.useImperativeHandle(t,function(){return m()});var y=s.useRef(e);y.current=e;var C=s.useCallback(function(b){var _=y.current,S=_.onResize,w=_.data,c=b.getBoundingClientRect(),x=c.width,j=c.height,E=b.offsetWidth,P=b.offsetHeight,Y=Math.floor(x),N=Math.floor(j);if(f.current.width!==Y||f.current.height!==N||f.current.offsetWidth!==E||f.current.offsetHeight!==P){var B={width:Y,height:N,offsetWidth:E,offsetHeight:P};f.current=B;var F=E===Math.round(x)?x:E,K=P===Math.round(j)?j:P,$=L(L({},B),{},{offsetWidth:F,offsetHeight:K});i==null||i($,b,w),S&&Promise.resolve().then(function(){S($,b)})}},[]);return s.useEffect(function(){var b=m();return b&&!n&&ua(b,C),function(){return ca(b,C)}},[a.current,n]),s.createElement(fa,{ref:o},v?s.cloneElement(u,{ref:h}):u)}var va=s.forwardRef(da),ha="rc-observer-key";function ma(e,t){var r=e.children,n=typeof r=="function"?[r]:xn(r);return n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(ha,"-").concat(o);return s.createElement(va,We({},e,{key:i,ref:o===0?t:void 0}),a)})}var At=s.forwardRef(ma);At.Collection=Wn;const lo=Object.freeze(Object.defineProperty({__proto__:null,_rs:la,default:At},Symbol.toStringTag,{value:"Module"})),rr=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Mr(e){return e!==void 0}function ir(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,l=Br(function(){return Mr(a)?a:Mr(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),u=V(l,2),f=u[0],v=u[1],d=a!==void 0?a:f,h=i?i(d):d,m=Ve(o),y=Br([d]),C=V(y,2),b=C[0],_=C[1];Vr(function(){var w=b[0];f!==w&&m(f,w)},[b]),Vr(function(){Mr(a)||v(a)},[a]);var S=Ve(function(w,c){v(w,c),_([d],c)});return[h,S]}function ga(e,t){return rr.reduce((r,n)=>{const a=e[`${n}1`],o=e[`${n}3`],i=e[`${n}6`],l=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:l}))},{})}var cn=function(t){if(Rn()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},ba=function(t,r){if(!cn(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function uo(e,t){return!Array.isArray(e)&&t!==void 0?ba(e,t):cn(e)}const ya=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};function wa(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,o=n||{},i=o.className,l=o.content,u=a.x,f=u===void 0?0:u,v=a.y,d=v===void 0?0:v,h=s.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(r.autoArrow!==!1){var y=r.points[0],C=r.points[1],b=y[0],_=y[1],S=C[0],w=C[1];b===S||!["t","b"].includes(b)?m.top=d:b==="t"?m.top=0:m.bottom=0,_===w||!["l","r"].includes(_)?m.left=f:_==="l"?m.left=0:m.right=0}return s.createElement("div",{ref:h,className:te("".concat(t,"-arrow"),i),style:m},l)}function pa(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?s.createElement(Xr,We({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var l=i.className;return s.createElement("div",{style:{zIndex:n},className:te("".concat(t,"-mask"),l)})}):null}var Ca=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Sa=s.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,o=e.style,i=e.target,l=e.onVisibleChanged,u=e.open,f=e.keepDom,v=e.fresh,d=e.onClick,h=e.mask,m=e.arrow,y=e.arrowPos,C=e.align,b=e.motion,_=e.maskMotion,S=e.forceRender,w=e.getPopupContainer,c=e.autoDestroy,x=e.portal,j=e.zIndex,E=e.onMouseEnter,P=e.onMouseLeave,Y=e.onPointerEnter,N=e.ready,B=e.offsetX,F=e.offsetY,K=e.offsetR,$=e.offsetB,re=e.onAlign,D=e.onPrepare,T=e.stretch,R=e.targetWidth,U=e.targetHeight,k=typeof r=="function"?r():r,ue=u||f,X=(w==null?void 0:w.length)>0,ae=s.useState(!w||!X),J=V(ae,2),I=J[0],O=J[1];if(Ae(function(){!I&&X&&i&&O(!0)},[I,X,i]),!I)return null;var Z="auto",H={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(N||!u){var ne,ce=C.points,fe=C.dynamicInset||((ne=C._experimental)===null||ne===void 0?void 0:ne.dynamicInset),oe=fe&&ce[0][1]==="r",Ce=fe&&ce[0][0]==="b";oe?(H.right=K,H.left=Z):(H.left=B,H.right=Z),Ce?(H.bottom=$,H.top=Z):(H.top=F,H.bottom=Z)}var ie={};return T&&(T.includes("height")&&U?ie.height=U:T.includes("minHeight")&&U&&(ie.minHeight=U),T.includes("width")&&R?ie.width=R:T.includes("minWidth")&&R&&(ie.minWidth=R)),u||(ie.pointerEvents="none"),s.createElement(x,{open:S||ue,getContainer:w&&function(){return w(i)},autoDestroy:c},s.createElement(pa,{prefixCls:a,open:u,zIndex:j,mask:h,motion:_}),s.createElement(At,{onResize:re,disabled:!u},function(Re){return s.createElement(Xr,We({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(a,"-hidden")},b,{onAppearPrepare:D,onEnterPrepare:D,visible:u,onVisibleChanged:function(he){var Se;b==null||(Se=b.onVisibleChanged)===null||Se===void 0||Se.call(b,he),l(he)}}),function(we,he){var Se=we.className,p=we.style,M=te(a,Se,n);return s.createElement("div",{ref:_n(Re,t,he),className:M,style:L(L(L(L({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},H),ie),p),{},{boxSizing:"border-box",zIndex:j},o),onMouseEnter:E,onMouseLeave:P,onPointerEnter:Y,onClick:d},m&&s.createElement(wa,{prefixCls:a,arrow:m,arrowPos:y,align:C}),s.createElement(Ca,{cache:!u&&!v},k))})}))}),xa=s.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=Qr(r),o=s.useCallback(function(l){En(t,n?n(l):l)},[n]),i=Yr(o,r.ref);return a?s.cloneElement(r,{ref:i}):r}),Fr=s.createContext(null);function Hr(e){return e?Array.isArray(e)?e:[e]:[]}function Ra(e,t,r,n){return s.useMemo(function(){var a=Hr(r??t),o=Hr(n??t),i=new Set(a),l=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,r,n])}function _a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Ea(e,t,r,n){for(var a=r.points,o=Object.keys(e),i=0;i<o.length;i+=1){var l,u=o[i];if(_a((l=e[u])===null||l===void 0?void 0:l.points,a,n))return"".concat(t,"-placement-").concat(u)}return""}function qr(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Ot(e){return e.ownerDocument.defaultView}function Lr(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=Ot(r).getComputedStyle(r),o=a.overflowX,i=a.overflowY,l=a.overflow;[o,i,l].some(function(u){return n.includes(u)})&&t.push(r),r=r.parentElement}return t}function kt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Tt(e){return kt(parseFloat(e),0)}function Gr(e,t){var r=L({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=Ot(n).getComputedStyle(n),o=a.overflow,i=a.overflowClipMargin,l=a.borderTopWidth,u=a.borderBottomWidth,f=a.borderLeftWidth,v=a.borderRightWidth,d=n.getBoundingClientRect(),h=n.offsetHeight,m=n.clientHeight,y=n.offsetWidth,C=n.clientWidth,b=Tt(l),_=Tt(u),S=Tt(f),w=Tt(v),c=kt(Math.round(d.width/y*1e3)/1e3),x=kt(Math.round(d.height/h*1e3)/1e3),j=(y-C-S-w)*c,E=(h-m-b-_)*x,P=b*x,Y=_*x,N=S*c,B=w*c,F=0,K=0;if(o==="clip"){var $=Tt(i);F=$*c,K=$*x}var re=d.x+N-F,D=d.y+P-K,T=re+d.width+2*F-N-B-j,R=D+d.height+2*K-P-Y-E;r.left=Math.max(r.left,re),r.top=Math.max(r.top,D),r.right=Math.min(r.right,T),r.bottom=Math.min(r.bottom,R)}}),r}function Kr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function Ur(e,t){var r=t||[],n=V(r,2),a=n[0],o=n[1];return[Kr(e.width,a),Kr(e.height,o)]}function Zr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ht(e,t){var r=t[0],n=t[1],a,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Ze(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function Ma(e,t,r,n,a,o,i){var l=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),u=V(l,2),f=u[0],v=u[1],d=s.useRef(0),h=s.useMemo(function(){return t?Lr(t):[]},[t]),m=s.useRef({}),y=function(){m.current={}};e||y();var C=Ve(function(){if(t&&r&&e){let $e=function(Be,at){var dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M,vt=k.x+Be,Pt=k.y+at,$t=vt+ne,Zt=Pt+H,Cr=Math.max(vt,dt.left),Sr=Math.max(Pt,dt.top),xr=Math.min($t,dt.right),Rr=Math.min(Zt,dt.bottom);return Math.max(0,(xr-Cr)*(Rr-Sr))},Ut=function(){qe=k.y+W,Ge=qe+H,Ke=k.x+ve,lt=Ke+ne};var S,w,c=t,x=c.ownerDocument,j=Ot(c),E=j.getComputedStyle(c),P=E.width,Y=E.height,N=E.position,B=c.style.left,F=c.style.top,K=c.style.right,$=c.style.bottom,re=c.style.overflow,D=L(L({},a[n]),o),T=x.createElement("div");(S=c.parentElement)===null||S===void 0||S.appendChild(T),T.style.left="".concat(c.offsetLeft,"px"),T.style.top="".concat(c.offsetTop,"px"),T.style.position=N,T.style.height="".concat(c.offsetHeight,"px"),T.style.width="".concat(c.offsetWidth,"px"),c.style.left="0",c.style.top="0",c.style.right="auto",c.style.bottom="auto",c.style.overflow="hidden";var R;if(Array.isArray(r))R={x:r[0],y:r[1],width:0,height:0};else{var U=r.getBoundingClientRect();R={x:U.x,y:U.y,width:U.width,height:U.height}}var k=c.getBoundingClientRect(),ue=x.documentElement,X=ue.clientWidth,ae=ue.clientHeight,J=ue.scrollWidth,I=ue.scrollHeight,O=ue.scrollTop,Z=ue.scrollLeft,H=k.height,ne=k.width,ce=R.height,fe=R.width,oe={left:0,top:0,right:X,bottom:ae},Ce={left:-Z,top:-O,right:J-Z,bottom:I-O},ie=D.htmlRegion,Re="visible",we="visibleFirst";ie!=="scroll"&&ie!==we&&(ie=Re);var he=ie===we,Se=Gr(Ce,h),p=Gr(oe,h),M=ie===Re?p:Se,ee=he?p:M;c.style.left="auto",c.style.top="auto",c.style.right="0",c.style.bottom="0";var ge=c.getBoundingClientRect();c.style.left=B,c.style.top=F,c.style.right=K,c.style.bottom=$,c.style.overflow=re,(w=c.parentElement)===null||w===void 0||w.removeChild(T);var q=kt(Math.round(ne/parseFloat(P)*1e3)/1e3),de=kt(Math.round(H/parseFloat(Y)*1e3)/1e3);if(q===0||de===0||Ar(r)&&!Mn(r))return;var xe=D.offset,be=D.targetOffset,Ct=Ur(k,xe),ot=V(Ct,2),Ee=ot[0],G=ot[1],A=Ur(R,be),pe=V(A,2),Me=pe[0],sr=pe[1];R.x-=Me,R.y-=sr;var it=D.points||[],ze=V(it,2),Fe=ze[0],lr=ze[1],Ie=Zr(lr),Pe=Zr(Fe),Nt=ht(R,Ie),St=ht(k,Pe),He=L({},D),ve=Nt.x-St.x+Ee,W=Nt.y-St.y+G,Ne=$e(ve,W),De=$e(ve,W,p),Qe=ht(R,["t","l"]),xt=ht(k,["t","l"]),Rt=ht(R,["b","r"]),_t=ht(k,["b","r"]),_e=D.overflow||{},ur=_e.adjustX,Dt=_e.adjustY,st=_e.shiftX,Et=_e.shiftY,It=function(at){return typeof at=="boolean"?at:at>=0},qe,Ge,Ke,lt;Ut();var Mt=It(Dt),zt=Pe[0]===Ie[0];if(Mt&&Pe[0]==="t"&&(Ge>ee.bottom||m.current.bt)){var Ye=W;zt?Ye-=H-ce:Ye=Qe.y-_t.y-G;var Xe=$e(ve,Ye),cr=$e(ve,Ye,p);Xe>Ne||Xe===Ne&&(!he||cr>=De)?(m.current.bt=!0,W=Ye,G=-G,He.points=[Ze(Pe,0),Ze(Ie,0)]):m.current.bt=!1}if(Mt&&Pe[0]==="b"&&(qe<ee.top||m.current.tb)){var ye=W;zt?ye+=H-ce:ye=Rt.y-xt.y-G;var Lt=$e(ve,ye),fr=$e(ve,ye,p);Lt>Ne||Lt===Ne&&(!he||fr>=De)?(m.current.tb=!0,W=ye,G=-G,He.points=[Ze(Pe,0),Ze(Ie,0)]):m.current.tb=!1}var jt=It(ur),Bt=Pe[1]===Ie[1];if(jt&&Pe[1]==="l"&&(lt>ee.right||m.current.rl)){var et=ve;Bt?et-=ne-fe:et=Qe.x-_t.x-Ee;var Vt=$e(et,W),dr=$e(et,W,p);Vt>Ne||Vt===Ne&&(!he||dr>=De)?(m.current.rl=!0,ve=et,Ee=-Ee,He.points=[Ze(Pe,1),Ze(Ie,1)]):m.current.rl=!1}if(jt&&Pe[1]==="r"&&(Ke<ee.left||m.current.lr)){var tt=ve;Bt?tt+=ne-fe:tt=Rt.x-xt.x-Ee;var Wt=$e(tt,W),ut=$e(tt,W,p);Wt>Ne||Wt===Ne&&(!he||ut>=De)?(m.current.lr=!0,ve=tt,Ee=-Ee,He.points=[Ze(Pe,1),Ze(Ie,1)]):m.current.lr=!1}Ut();var Le=st===!0?0:st;typeof Le=="number"&&(Ke<p.left&&(ve-=Ke-p.left-Ee,R.x+fe<p.left+Le&&(ve+=R.x-p.left+fe-Le)),lt>p.right&&(ve-=lt-p.right-Ee,R.x>p.right-Le&&(ve+=R.x-p.right+Le)));var rt=Et===!0?0:Et;typeof rt=="number"&&(qe<p.top&&(W-=qe-p.top-G,R.y+ce<p.top+rt&&(W+=R.y-p.top+ce-rt)),Ge>p.bottom&&(W-=Ge-p.bottom-G,R.y>p.bottom-rt&&(W+=R.y-p.bottom+rt)));var ct=k.x+ve,ft=ct+ne,je=k.y+W,Ft=je+H,nt=R.x,Ue=nt+fe,Ht=R.y,vr=Ht+ce,hr=Math.max(ct,nt),qt=Math.min(ft,Ue),mr=(hr+qt)/2,gr=mr-ct,br=Math.max(je,Ht),Gt=Math.min(Ft,vr),yr=(br+Gt)/2,wr=yr-je;i==null||i(t,He);var Kt=ge.right-k.x-(ve+k.width),pr=ge.bottom-k.y-(W+k.height);v({ready:!0,offsetX:ve/q,offsetY:W/de,offsetR:Kt/q,offsetB:pr/de,arrowX:gr/q,arrowY:wr/de,scaleX:q,scaleY:de,align:He})}}),b=function(){d.current+=1;var w=d.current;Promise.resolve().then(function(){d.current===w&&C()})},_=function(){v(function(w){return L(L({},w),{},{ready:!1})})};return Ae(_,[n]),Ae(function(){e||_()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,b]}function za(e,t,r,n,a){Ae(function(){if(e&&t&&r){let d=function(){n(),a()};var o=t,i=r,l=Lr(o),u=Lr(i),f=Ot(i),v=new Set([f].concat(yt(l),yt(u)));return v.forEach(function(h){h.addEventListener("scroll",d,{passive:!0})}),f.addEventListener("resize",d,{passive:!0}),n(),function(){v.forEach(function(h){h.removeEventListener("scroll",d),f.removeEventListener("resize",d)})}}},[e,t,r])}function Pa(e,t,r,n,a,o,i,l){var u=s.useRef(e),f=s.useRef(!1);u.current!==e&&(f.current=!0,u.current=e),s.useEffect(function(){var v=Xt(function(){f.current=!1});return function(){Xt.cancel(v)}},[e]),s.useEffect(function(){if(t&&n&&(!a||o)){var v=function(){var j=!1,E=function(N){var B=N.target;j=i(B)},P=function(N){var B=N.target;!f.current&&u.current&&!j&&!i(B)&&l(!1)};return[E,P]},d=v(),h=V(d,2),m=h[0],y=h[1],C=v(),b=V(C,2),_=b[0],S=b[1],w=Ot(n);w.addEventListener("mousedown",m,!0),w.addEventListener("click",y,!0),w.addEventListener("contextmenu",y,!0);var c=Or(r);return c&&(c.addEventListener("mousedown",_,!0),c.addEventListener("click",S,!0),c.addEventListener("contextmenu",S,!0)),function(){w.removeEventListener("mousedown",m,!0),w.removeEventListener("click",y,!0),w.removeEventListener("contextmenu",y,!0),c&&(c.removeEventListener("mousedown",_,!0),c.removeEventListener("click",S,!0),c.removeEventListener("contextmenu",S,!0))}}},[t,r,n,a,o])}var $a=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Ta(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:en,t=s.forwardRef(function(r,n){var a=r.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=r.children,l=r.action,u=l===void 0?"hover":l,f=r.showAction,v=r.hideAction,d=r.popupVisible,h=r.defaultPopupVisible,m=r.onPopupVisibleChange,y=r.afterPopupVisibleChange,C=r.mouseEnterDelay,b=r.mouseLeaveDelay,_=b===void 0?.1:b,S=r.focusDelay,w=r.blurDelay,c=r.mask,x=r.maskClosable,j=x===void 0?!0:x,E=r.getPopupContainer,P=r.forceRender,Y=r.autoDestroy,N=r.destroyPopupOnHide,B=r.popup,F=r.popupClassName,K=r.popupStyle,$=r.popupPlacement,re=r.builtinPlacements,D=re===void 0?{}:re,T=r.popupAlign,R=r.zIndex,U=r.stretch,k=r.getPopupClassNameFromAlign,ue=r.fresh,X=r.alignPoint,ae=r.onPopupClick,J=r.onPopupAlign,I=r.arrow,O=r.popupMotion,Z=r.maskMotion,H=r.popupTransitionName,ne=r.popupAnimation,ce=r.maskTransitionName,fe=r.maskAnimation,oe=r.className,Ce=r.getTriggerDOMNode,ie=pt(r,$a),Re=Y||N||!1,we=s.useState(!1),he=V(we,2),Se=he[0],p=he[1];Ae(function(){p(ya())},[]);var M=s.useRef({}),ee=s.useContext(Fr),ge=s.useMemo(function(){return{registerSubPopup:function(z,se){M.current[z]=se,ee==null||ee.registerSubPopup(z,se)}}},[ee]),q=zn(),de=s.useState(null),xe=V(de,2),be=xe[0],Ct=xe[1],ot=Ve(function(g){Ar(g)&&be!==g&&Ct(g),ee==null||ee.registerSubPopup(q,g)}),Ee=s.useState(null),G=V(Ee,2),A=G[0],pe=G[1],Me=s.useRef(null),sr=Ve(function(g){Ar(g)&&A!==g&&(pe(g),Me.current=g)}),it=s.Children.only(i),ze=(it==null?void 0:it.props)||{},Fe={},lr=Ve(function(g){var z,se,me=A;return(me==null?void 0:me.contains(g))||((z=Or(me))===null||z===void 0?void 0:z.host)===g||g===me||(be==null?void 0:be.contains(g))||((se=Or(be))===null||se===void 0?void 0:se.host)===g||g===be||Object.values(M.current).some(function(le){return(le==null?void 0:le.contains(g))||g===le})}),Ie=qr(o,O,ne,H),Pe=qr(o,Z,fe,ce),Nt=s.useState(h||!1),St=V(Nt,2),He=St[0],ve=St[1],W=d??He,Ne=Ve(function(g){d===void 0&&ve(g)});Ae(function(){ve(d||!1)},[d]);var De=s.useRef(W);De.current=W;var Qe=s.useRef([]);Qe.current=[];var xt=Ve(function(g){var z;Ne(g),((z=Qe.current[Qe.current.length-1])!==null&&z!==void 0?z:W)!==g&&(Qe.current.push(g),m==null||m(g))}),Rt=s.useRef(),_t=function(){clearTimeout(Rt.current)},_e=function(z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_t(),se===0?xt(z):Rt.current=setTimeout(function(){xt(z)},se*1e3)};s.useEffect(function(){return _t},[]);var ur=s.useState(!1),Dt=V(ur,2),st=Dt[0],Et=Dt[1];Ae(function(g){(!g||W)&&Et(!0)},[W]);var It=s.useState(null),qe=V(It,2),Ge=qe[0],Ke=qe[1],lt=s.useState([0,0]),Mt=V(lt,2),zt=Mt[0],Ye=Mt[1],Xe=function(z){Ye([z.clientX,z.clientY])},cr=Ma(W,be,X?zt:A,$,D,T,J),ye=V(cr,11),Lt=ye[0],fr=ye[1],jt=ye[2],Bt=ye[3],et=ye[4],Vt=ye[5],dr=ye[6],tt=ye[7],Wt=ye[8],ut=ye[9],Le=ye[10],rt=Ra(Se,u,f,v),ct=V(rt,2),ft=ct[0],je=ct[1],Ft=ft.has("click"),nt=je.has("click")||je.has("contextMenu"),Ue=Ve(function(){st||Le()}),Ht=function(){De.current&&X&&nt&&_e(!1)};za(W,A,be,Ue,Ht),Ae(function(){Ue()},[zt,$]),Ae(function(){W&&!(D!=null&&D[$])&&Ue()},[JSON.stringify(T)]);var vr=s.useMemo(function(){var g=Ea(D,o,ut,X);return te(g,k==null?void 0:k(ut))},[ut,k,D,o,X]);s.useImperativeHandle(n,function(){return{nativeElement:Me.current,forceAlign:Ue}});var hr=s.useState(0),qt=V(hr,2),mr=qt[0],gr=qt[1],br=s.useState(0),Gt=V(br,2),yr=Gt[0],wr=Gt[1],Kt=function(){if(U&&A){var z=A.getBoundingClientRect();gr(z.width),wr(z.height)}},pr=function(){Kt(),Ue()},$e=function(z){Et(!1),Le(),y==null||y(z)},Ut=function(){return new Promise(function(z){Kt(),Ke(function(){return z})})};Ae(function(){Ge&&(Le(),Ge(),Ke(null))},[Ge]);function Be(g,z,se,me){Fe[g]=function(le){var Jt;me==null||me(le),_e(z,se);for(var _r=arguments.length,jr=new Array(_r>1?_r-1:0),Qt=1;Qt<_r;Qt++)jr[Qt-1]=arguments[Qt];(Jt=ze[g])===null||Jt===void 0||Jt.call.apply(Jt,[ze,le].concat(jr))}}(Ft||nt)&&(Fe.onClick=function(g){var z;De.current&&nt?_e(!1):!De.current&&Ft&&(Xe(g),_e(!0));for(var se=arguments.length,me=new Array(se>1?se-1:0),le=1;le<se;le++)me[le-1]=arguments[le];(z=ze.onClick)===null||z===void 0||z.call.apply(z,[ze,g].concat(me))}),Pa(W,nt,A,be,c,j,lr,_e);var at=ft.has("hover"),dt=je.has("hover"),vt,Pt;at&&(Be("onMouseEnter",!0,C,function(g){Xe(g)}),Be("onPointerEnter",!0,C,function(g){Xe(g)}),vt=function(){(W||st)&&_e(!0,C)},X&&(Fe.onMouseMove=function(g){var z;(z=ze.onMouseMove)===null||z===void 0||z.call(ze,g)})),dt&&(Be("onMouseLeave",!1,_),Be("onPointerLeave",!1,_),Pt=function(){_e(!1,_)}),ft.has("focus")&&Be("onFocus",!0,S),je.has("focus")&&Be("onBlur",!1,w),ft.has("contextMenu")&&(Fe.onContextMenu=function(g){var z;De.current&&je.has("contextMenu")?_e(!1):(Xe(g),_e(!0)),g.preventDefault();for(var se=arguments.length,me=new Array(se>1?se-1:0),le=1;le<se;le++)me[le-1]=arguments[le];(z=ze.onContextMenu)===null||z===void 0||z.call.apply(z,[ze,g].concat(me))}),oe&&(Fe.className=te(ze.className,oe));var $t=L(L({},ze),Fe),Zt={},Cr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Cr.forEach(function(g){ie[g]&&(Zt[g]=function(){for(var z,se=arguments.length,me=new Array(se),le=0;le<se;le++)me[le]=arguments[le];(z=$t[g])===null||z===void 0||z.call.apply(z,[$t].concat(me)),ie[g].apply(ie,me)})});var Sr=s.cloneElement(it,L(L({},$t),Zt)),xr={x:Vt,y:dr},Rr=I?L({},I!==!0?I:{}):null;return s.createElement(s.Fragment,null,s.createElement(At,{disabled:!W,ref:sr,onResize:pr},s.createElement(xa,{getTriggerDOMNode:Ce},Sr)),s.createElement(Fr.Provider,{value:ge},s.createElement(Sa,{portal:e,ref:ot,prefixCls:o,popup:B,className:te(F,vr),style:K,target:A,onMouseEnter:vt,onMouseLeave:Pt,onPointerEnter:vt,zIndex:R,open:W,keepDom:st,fresh:ue,onClick:ae,mask:c,motion:Ie,maskMotion:Pe,onVisibleChanged:$e,onPrepare:Ut,forceRender:P,autoDestroy:Re,getPopupContainer:E,align:ut,arrow:Rr,arrowPos:xr,ready:Lt,offsetX:fr,offsetY:jt,offsetR:Bt,offsetB:et,onAlign:Ue,stretch:U,targetWidth:mr/tt,targetHeight:yr/Wt})))});return t}const ka=Ta(en);function fn(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return s.createElement("div",{className:te("".concat(r,"-content"),o),style:i},s.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var mt={shiftX:64,adjustY:1},gt={adjustX:1,shiftY:!0},Te=[0,0],Aa={left:{points:["cr","cl"],overflow:gt,offset:[-4,0],targetOffset:Te},right:{points:["cl","cr"],overflow:gt,offset:[4,0],targetOffset:Te},top:{points:["bc","tc"],overflow:mt,offset:[0,-4],targetOffset:Te},bottom:{points:["tc","bc"],overflow:mt,offset:[0,4],targetOffset:Te},topLeft:{points:["bl","tl"],overflow:mt,offset:[0,-4],targetOffset:Te},leftTop:{points:["tr","tl"],overflow:gt,offset:[-4,0],targetOffset:Te},topRight:{points:["br","tr"],overflow:mt,offset:[0,-4],targetOffset:Te},rightTop:{points:["tl","tr"],overflow:gt,offset:[4,0],targetOffset:Te},bottomRight:{points:["tr","br"],overflow:mt,offset:[0,4],targetOffset:Te},rightBottom:{points:["bl","br"],overflow:gt,offset:[4,0],targetOffset:Te},bottomLeft:{points:["tl","bl"],overflow:mt,offset:[0,4],targetOffset:Te},leftBottom:{points:["br","bl"],overflow:gt,offset:[-4,0],targetOffset:Te}},Oa=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Na=function(t,r){var n=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,l=i===void 0?0:i,u=t.mouseLeaveDelay,f=u===void 0?.1:u,v=t.overlayStyle,d=t.prefixCls,h=d===void 0?"rc-tooltip":d,m=t.children,y=t.onVisibleChange,C=t.afterVisibleChange,b=t.transitionName,_=t.animation,S=t.motion,w=t.placement,c=w===void 0?"right":w,x=t.align,j=x===void 0?{}:x,E=t.destroyTooltipOnHide,P=E===void 0?!1:E,Y=t.defaultVisible,N=t.getTooltipContainer,B=t.overlayInnerStyle;t.arrowContent;var F=t.overlay,K=t.id,$=t.showArrow,re=$===void 0?!0:$,D=pt(t,Oa),T=s.useRef(null);s.useImperativeHandle(r,function(){return T.current});var R=L({},D);"visible"in t&&(R.popupVisible=t.visible);var U=function(){return s.createElement(fn,{key:"content",prefixCls:h,id:K,overlayInnerStyle:B},F)};return s.createElement(ka,We({popupClassName:n,prefixCls:h,popup:U,action:o,builtinPlacements:Aa,popupPlacement:c,ref:T,popupAlign:j,getPopupContainer:N,onPopupVisibleChange:y,afterPopupVisibleChange:C,popupTransitionName:b,popupAnimation:_,popupMotion:S,defaultPopupVisible:Y,autoDestroy:P,mouseLeaveDelay:f,popupStyle:v,mouseEnterDelay:l,arrow:re},R),m)};const Da=s.forwardRef(Na);function Ia(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,o=0,i=a,l=n*1/Math.sqrt(2),u=a-n*(1-1/Math.sqrt(2)),f=a-r*(1/Math.sqrt(2)),v=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*a-f,h=v,m=2*a-l,y=u,C=2*a-o,b=i,_=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),S=n*(Math.sqrt(2)-1),w=`polygon(${S}px 100%, 50% ${S}px, ${2*a-S}px 100%, ${S}px 100%)`,c=`path('M ${o} ${i} A ${n} ${n} 0 0 0 ${l} ${u} L ${f} ${v} A ${r} ${r} 0 0 1 ${d} ${h} L ${m} ${y} A ${n} ${n} 0 0 0 ${C} ${b} Z')`;return{arrowShadowWidth:_,arrowPath:c,arrowPolygon:w}}const La=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:l,calc:u}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:u(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Nr(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},dn=8;function vn(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?dn:n}}function Yt(e,t){return e?t:{}}function ja(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},La(e,t,a)),{"&:before":{background:t}})]},Yt(!!u.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-topRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}})),Yt(!!u.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-bottomRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}})),Yt(!!u.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),Yt(!!u.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function Ba(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Jr={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Va={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Wa=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Fa(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,l=t/2,u={};return Object.keys(Jr).forEach(f=>{const v=n&&Va[f]||Jr[f],d=Object.assign(Object.assign({},v),{offset:[0,0],dynamicInset:!0});switch(u[f]=d,Wa.has(f)&&(d.autoArrow=!1),f){case"top":case"topLeft":case"topRight":d.offset[1]=-l-a;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=l+a;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-l-a;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=l+a;break}const h=vn({contentRadius:o,limitVerticalRadius:!0});if(n)switch(f){case"topLeft":case"bottomLeft":d.offset[0]=-h.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":d.offset[0]=h.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":d.offset[1]=-h.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":d.offset[1]=h.arrowOffsetHorizontal+l;break}d.overflow=Ba(f,h,t,r),i&&(d.htmlRegion="visibleFirst")}),u}const Ha=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:l,boxShadowSecondary:u,paddingSM:f,paddingXS:v}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Tn(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${Nr(e.calc(f).div(2).equal())} ${Nr(v)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:u,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,dn)}},[`${t}-content`]:{position:"relative"}}),ga(e,(d,h)=>{let{darkColor:m}=h;return{[`&${t}-${d}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},ja(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},qa=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},vn({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Ia(tn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),hn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Pn("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,l=tn(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[Ha(l),$n(n,"zoom-big-fast")]},qa,{resetStyle:!1,injectStyle:t})(e)},Ga=rr.map(e=>`${e}-inverse`);function Ka(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(yt(Ga),yt(rr)).includes(e):rr.includes(e)}function mn(e,t){const r=Ka(t),n=te({[`${e}-${t}`]:t&&r}),a={},o={};return t&&!r&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:o}}const Ua=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:l}=s.useContext(rn),u=l("tooltip",t),[f,v,d]=hn(u),h=mn(u,o),m=h.arrowStyle,y=Object.assign(Object.assign({},i),h.overlayStyle),C=te(v,d,u,`${u}-pure`,`${u}-placement-${n}`,r,h.className);return f(s.createElement("div",{className:C,style:m},s.createElement("div",{className:`${u}-arrow`}),s.createElement(fn,Object.assign({},e,{className:v,prefixCls:u,overlayInnerStyle:y}),a)))},Za=Ua;var Ja=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const gn=s.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:l,color:u,overlayInnerStyle:f,children:v,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:m,arrow:y=!0,title:C,overlay:b,builtinPlacements:_,arrowPointAtCenter:S=!1,autoAdjustOverflow:w=!0}=e,c=!!y,[,x]=kn(),{getPopupContainer:j,getPrefixCls:E,direction:P}=s.useContext(rn),Y=Bn(),N=s.useRef(null),B=()=>{var q;(q=N.current)===null||q===void 0||q.forceAlign()};s.useImperativeHandle(t,()=>({forceAlign:B,forcePopupAlign:()=>{Y.deprecated(!1,"forcePopupAlign","forceAlign"),B()}}));const[F,K]=ir(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),$=!C&&!b&&C!==0,re=q=>{var de,xe;K($?!1:q),$||((de=e.onOpenChange)===null||de===void 0||de.call(e,q),(xe=e.onVisibleChange)===null||xe===void 0||xe.call(e,q))},D=s.useMemo(()=>{var q,de;let xe=S;return typeof y=="object"&&(xe=(de=(q=y.pointAtCenter)!==null&&q!==void 0?q:y.arrowPointAtCenter)!==null&&de!==void 0?de:S),_||Fa({arrowPointAtCenter:xe,autoAdjustOverflow:w,arrowWidth:c?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[S,y,_,x]),T=s.useMemo(()=>C===0?C:b||C||"",[b,C]),R=s.createElement(An,null,typeof T=="function"?T():T),{getPopupContainer:U,placement:k="top",mouseEnterDelay:ue=.1,mouseLeaveDelay:X=.1,overlayStyle:ae,rootClassName:J}=e,I=Ja(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),O=E("tooltip",a),Z=E(),H=e["data-popover-inject"];let ne=F;!("open"in e)&&!("visible"in e)&&$&&(ne=!1);const ce=On(v)&&!Nn(v)?v:s.createElement("span",null,v),fe=ce.props,oe=!fe.className||typeof fe.className=="string"?te(fe.className,o||`${O}-open`):fe.className,[Ce,ie,Re]=hn(O,!H),we=mn(O,u),he=we.arrowStyle,Se=Object.assign(Object.assign({},f),we.overlayStyle),p=te(l,{[`${O}-rtl`]:P==="rtl"},we.className,J,ie,Re),[M,ee]=Dn("Tooltip",I.zIndex),ge=s.createElement(Da,Object.assign({},I,{zIndex:M,showArrow:c,placement:k,mouseEnterDelay:ue,mouseLeaveDelay:X,prefixCls:O,overlayClassName:p,overlayStyle:Object.assign(Object.assign({},he),ae),getTooltipContainer:U||i||j,ref:N,builtinPlacements:D,overlay:R,visible:ne,onVisibleChange:re,afterVisibleChange:d??h,overlayInnerStyle:Se,arrowContent:s.createElement("span",{className:`${O}-arrow-content`}),motion:{motionName:In(Z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),ne?Ln(ce,{className:oe}):ce);return Ce(s.createElement(jn.Provider,{value:ee},ge))});gn._InternalPanelDoNotUseOrYouWillBeFired=Za;const co=gn;function bt(e){return!!(e.addonBefore||e.addonAfter)}function zr(e){return!!(e.prefix||e.suffix||e.allowClear)}function nr(e,t,r,n){if(r){var a=t;if(t.type==="click"){var o=e.cloneNode(!0);a=Object.create(t,{target:{value:o},currentTarget:{value:o}}),o.value="",r(a);return}if(n!==void 0){var i=e.cloneNode(!0);a=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.type!=="file"&&(i.value=n),r(a);return}r(a)}}function Qa(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var bn=function(t){var r,n,a=t.inputElement,o=t.prefixCls,i=t.prefix,l=t.suffix,u=t.addonBefore,f=t.addonAfter,v=t.className,d=t.style,h=t.disabled,m=t.readOnly,y=t.focused,C=t.triggerFocus,b=t.allowClear,_=t.value,S=t.handleReset,w=t.hidden,c=t.classes,x=t.classNames,j=t.dataAttrs,E=t.styles,P=t.components,Y=(P==null?void 0:P.affixWrapper)||"span",N=(P==null?void 0:P.groupWrapper)||"span",B=(P==null?void 0:P.wrapper)||"span",F=(P==null?void 0:P.groupAddon)||"span",K=s.useRef(null),$=function(O){var Z;(Z=K.current)!==null&&Z!==void 0&&Z.contains(O.target)&&(C==null||C())},re=function(){var O;if(!b)return null;var Z=!h&&!m&&_,H="".concat(o,"-clear-icon"),ne=ar(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"βœ–";return Q.createElement("span",{onClick:S,onMouseDown:function(fe){return fe.preventDefault()},className:te(H,(O={},Oe(O,"".concat(H,"-hidden"),!Z),Oe(O,"".concat(H,"-has-suffix"),!!l),O)),role:"button",tabIndex:-1},ne)},D=s.cloneElement(a,{value:_,hidden:w,className:te((r=a.props)===null||r===void 0?void 0:r.className,!zr(t)&&!bt(t)&&v)||null,style:L(L({},(n=a.props)===null||n===void 0?void 0:n.style),!zr(t)&&!bt(t)?d:{})});if(zr(t)){var T,R="".concat(o,"-affix-wrapper"),U=te(R,(T={},Oe(T,"".concat(R,"-disabled"),h),Oe(T,"".concat(R,"-focused"),y),Oe(T,"".concat(R,"-readonly"),m),Oe(T,"".concat(R,"-input-with-clear-btn"),l&&b&&_),T),!bt(t)&&v,c==null?void 0:c.affixWrapper,x==null?void 0:x.affixWrapper),k=(l||b)&&Q.createElement("span",{className:te("".concat(o,"-suffix"),x==null?void 0:x.suffix),style:E==null?void 0:E.suffix},re(),l);D=Q.createElement(Y,We({className:U,style:L(L({},bt(t)?void 0:d),E==null?void 0:E.affixWrapper),hidden:!bt(t)&&w,onClick:$},j==null?void 0:j.affixWrapper,{ref:K}),i&&Q.createElement("span",{className:te("".concat(o,"-prefix"),x==null?void 0:x.prefix),style:E==null?void 0:E.prefix},i),s.cloneElement(a,{value:_,hidden:null}),k)}if(bt(t)){var ue="".concat(o,"-group"),X="".concat(ue,"-addon"),ae=te("".concat(o,"-wrapper"),ue,c==null?void 0:c.wrapper),J=te("".concat(o,"-group-wrapper"),v,c==null?void 0:c.group);return Q.createElement(N,{className:J,style:d,hidden:w},Q.createElement(B,{className:ae},u&&Q.createElement(F,{className:X},u),s.cloneElement(D,{hidden:null}),f&&Q.createElement(F,{className:X},f)))}return D},Ya=["show"];function yn(e,t){return s.useMemo(function(){var r={};t&&(r.show=ar(t)==="object"&&t.formatter?t.formatter:!!t),r=L(L({},r),e);var n=r,a=n.show,o=pt(n,Ya);return L(L({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var Xa=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],fo=s.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,u=e.prefixCls,f=u===void 0?"rc-input":u,v=e.disabled,d=e.htmlSize,h=e.className,m=e.maxLength,y=e.suffix,C=e.showCount,b=e.count,_=e.type,S=_===void 0?"text":_,w=e.classes,c=e.classNames,x=e.styles,j=e.onCompositionStart,E=e.onCompositionEnd,P=pt(e,Xa),Y=s.useState(!1),N=V(Y,2),B=N[0],F=N[1],K=Q.useRef(!1),$=s.useRef(null),re=function(M){$.current&&Qa($.current,M)},D=ir(e.defaultValue,{value:e.value}),T=V(D,2),R=T[0],U=T[1],k=R==null?"":String(R),ue=Q.useState(null),X=V(ue,2),ae=X[0],J=X[1],I=yn(b,C),O=I.max||m,Z=I.strategy(k),H=!!O&&Z>O;s.useImperativeHandle(t,function(){return{focus:re,blur:function(){var M;(M=$.current)===null||M===void 0||M.blur()},setSelectionRange:function(M,ee,ge){var q;(q=$.current)===null||q===void 0||q.setSelectionRange(M,ee,ge)},select:function(){var M;(M=$.current)===null||M===void 0||M.select()},input:$.current}}),s.useEffect(function(){F(function(p){return p&&v?!1:p})},[v]);var ne=function(M,ee){var ge=ee;if(!K.current&&I.exceedFormatter&&I.max&&I.strategy(ee)>I.max&&(ge=I.exceedFormatter(ee,{max:I.max}),ee!==ge)){var q,de;J([((q=$.current)===null||q===void 0?void 0:q.selectionStart)||0,((de=$.current)===null||de===void 0?void 0:de.selectionEnd)||0])}U(ge),$.current&&nr($.current,M,n,ge)};Q.useEffect(function(){if(ae){var p;(p=$.current)===null||p===void 0||p.setSelectionRange.apply(p,yt(ae))}},[ae]);var ce=function(M){ne(M,M.target.value)},fe=function(M){K.current=!1,ne(M,M.currentTarget.value),E==null||E(M)},oe=function(M){i&&M.key==="Enter"&&i(M),l==null||l(M)},Ce=function(M){F(!0),a==null||a(M)},ie=function(M){F(!1),o==null||o(M)},Re=function(M){U(""),re(),$.current&&nr($.current,M,n)},we=H&&"".concat(f,"-out-of-range"),he=function(){var M=Vn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return Q.createElement("input",We({autoComplete:r},M,{onChange:ce,onFocus:Ce,onBlur:ie,onKeyDown:oe,className:te(f,Oe({},"".concat(f,"-disabled"),v),c==null?void 0:c.input),style:x==null?void 0:x.input,ref:$,size:d,type:S,onCompositionStart:function(ge){K.current=!0,j==null||j(ge)},onCompositionEnd:fe}))},Se=function(){var M=Number(O)>0;if(y||I.show){var ee=I.showFormatter?I.showFormatter({value:k,count:Z,maxLength:O}):"".concat(Z).concat(M?" / ".concat(O):"");return Q.createElement(Q.Fragment,null,I.show&&Q.createElement("span",{className:te("".concat(f,"-show-count-suffix"),Oe({},"".concat(f,"-show-count-has-suffix"),!!y),c==null?void 0:c.count),style:L({},x==null?void 0:x.count)},ee),y)}return null};return Q.createElement(bn,We({},P,{prefixCls:f,className:te(h,we),inputElement:he(),handleReset:Re,value:k,focused:B,triggerFocus:re,suffix:Se(),disabled:v,classes:w,classNames:c,styles:x}))}),eo=`
2
+ min-height:0 !important;
3
+ max-height:none !important;
4
+ height:0 !important;
5
+ visibility:hidden !important;
6
+ overflow:hidden !important;
7
+ position:absolute !important;
8
+ z-index:-1000 !important;
9
+ top:0 !important;
10
+ right:0 !important;
11
+ pointer-events: none !important;
12
+ `,to=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Pr={},ke;function ro(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Pr[r])return Pr[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),l=to.map(function(f){return"".concat(f,":").concat(n.getPropertyValue(f))}).join(";"),u={sizingStyle:l,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(Pr[r]=u),u}function no(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ke||(ke=document.createElement("textarea"),ke.setAttribute("tab-index","-1"),ke.setAttribute("aria-hidden","true"),document.body.appendChild(ke)),e.getAttribute("wrap")?ke.setAttribute("wrap",e.getAttribute("wrap")):ke.removeAttribute("wrap");var a=ro(e,t),o=a.paddingSize,i=a.borderSize,l=a.boxSizing,u=a.sizingStyle;ke.setAttribute("style","".concat(u,";").concat(eo)),ke.value=e.value||e.placeholder||"";var f=void 0,v=void 0,d,h=ke.scrollHeight;if(l==="border-box"?h+=i:l==="content-box"&&(h-=o),r!==null||n!==null){ke.value=" ";var m=ke.scrollHeight-o;r!==null&&(f=m*r,l==="border-box"&&(f=f+o+i),h=Math.max(f,h)),n!==null&&(v=m*n,l==="border-box"&&(v=v+o+i),d=h>v?"":"hidden",h=Math.min(v,h))}var y={height:h,overflowY:d,resize:"none"};return f&&(y.minHeight=f),v&&(y.maxHeight=v),y}var ao=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$r=0,Tr=1,kr=2,oo=s.forwardRef(function(e,t){var r=e,n=r.prefixCls;r.onPressEnter;var a=r.defaultValue,o=r.value,i=r.autoSize,l=r.onResize,u=r.className,f=r.style,v=r.disabled,d=r.onChange;r.onInternalAutoSize;var h=pt(r,ao),m=ir(a,{value:o,postState:function(J){return J??""}}),y=V(m,2),C=y[0],b=y[1],_=function(J){b(J.target.value),d==null||d(J)},S=s.useRef();s.useImperativeHandle(t,function(){return{textArea:S.current}});var w=s.useMemo(function(){return i&&ar(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),c=V(w,2),x=c[0],j=c[1],E=!!i,P=function(){try{if(document.activeElement===S.current){var J=S.current,I=J.selectionStart,O=J.selectionEnd,Z=J.scrollTop;S.current.setSelectionRange(I,O),S.current.scrollTop=Z}}catch{}},Y=s.useState(kr),N=V(Y,2),B=N[0],F=N[1],K=s.useState(),$=V(K,2),re=$[0],D=$[1],T=function(){F($r)};Ae(function(){E&&T()},[o,x,j,E]),Ae(function(){if(B===$r)F(Tr);else if(B===Tr){var ae=no(S.current,!1,x,j);F(kr),D(ae)}else P()},[B]);var R=s.useRef(),U=function(){Xt.cancel(R.current)},k=function(J){B===kr&&(l==null||l(J),i&&(U(),R.current=Xt(function(){T()})))};s.useEffect(function(){return U},[]);var ue=E?re:null,X=L(L({},f),ue);return(B===$r||B===Tr)&&(X.overflowY="hidden",X.overflowX="hidden"),s.createElement(At,{onResize:k,disabled:!(i||l)},s.createElement("textarea",We({},h,{ref:S,style:X,className:te(n,u,Oe({},"".concat(n,"-disabled"),v)),disabled:v,value:C,onChange:_})))}),io=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],vo=Q.forwardRef(function(e,t){var r,n,a=e.defaultValue,o=e.value,i=e.onFocus,l=e.onBlur,u=e.onChange,f=e.allowClear,v=e.maxLength,d=e.onCompositionStart,h=e.onCompositionEnd,m=e.suffix,y=e.prefixCls,C=y===void 0?"rc-textarea":y,b=e.classes,_=e.showCount,S=e.count,w=e.className,c=e.style,x=e.disabled,j=e.hidden,E=e.classNames,P=e.styles,Y=e.onResize,N=pt(e,io),B=ir(a,{value:o,defaultValue:a}),F=V(B,2),K=F[0],$=F[1],re=K==null?"":String(K),D=Q.useState(!1),T=V(D,2),R=T[0],U=T[1],k=Q.useRef(!1),ue=Q.useState(null),X=V(ue,2),ae=X[0],J=X[1],I=s.useRef(null),O=function(){var A;return(A=I.current)===null||A===void 0?void 0:A.textArea},Z=function(){O().focus()};s.useImperativeHandle(t,function(){return{resizableTextArea:I.current,focus:Z,blur:function(){O().blur()}}}),s.useEffect(function(){U(function(G){return!x&&G})},[x]);var H=Q.useState(null),ne=V(H,2),ce=ne[0],fe=ne[1];Q.useEffect(function(){if(ce){var G;(G=O()).setSelectionRange.apply(G,yt(ce))}},[ce]);var oe=yn(S,_),Ce=(r=oe.max)!==null&&r!==void 0?r:v,ie=Number(Ce)>0,Re=oe.strategy(re),we=!!Ce&&Re>Ce,he=function(A,pe){var Me=pe;!k.current&&oe.exceedFormatter&&oe.max&&oe.strategy(pe)>oe.max&&(Me=oe.exceedFormatter(pe,{max:oe.max}),pe!==Me&&fe([O().selectionStart||0,O().selectionEnd||0])),$(Me),nr(A.currentTarget,A,u,Me)},Se=function(A){k.current=!0,d==null||d(A)},p=function(A){k.current=!1,he(A,A.currentTarget.value),h==null||h(A)},M=function(A){he(A,A.target.value)},ee=function(A){var pe=N.onPressEnter,Me=N.onKeyDown;A.key==="Enter"&&pe&&pe(A),Me==null||Me(A)},ge=function(A){U(!0),i==null||i(A)},q=function(A){U(!1),l==null||l(A)},de=function(A){$(""),Z(),nr(O(),A,u)},xe=m,be;oe.show&&(oe.showFormatter?be=oe.showFormatter({value:re,count:Re,maxLength:Ce}):be="".concat(Re).concat(ie?" / ".concat(Ce):""),xe=Q.createElement(Q.Fragment,null,xe,Q.createElement("span",{className:te("".concat(C,"-data-count"),E==null?void 0:E.count),style:P==null?void 0:P.count},be)));var Ct=function(A){var pe;Y==null||Y(A),(pe=O())!==null&&pe!==void 0&&pe.style.height&&J(!0)},ot=!N.autoSize&&!_&&!f,Ee=Q.createElement(bn,{value:re,allowClear:f,handleReset:de,suffix:xe,prefixCls:C,classes:{affixWrapper:te(b==null?void 0:b.affixWrapper,(n={},Oe(n,"".concat(C,"-show-count"),_),Oe(n,"".concat(C,"-textarea-allow-clear"),f),n))},disabled:x,focused:R,className:te(w,we&&"".concat(C,"-out-of-range")),style:L(L({},c),ae&&!ot?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof be=="string"?be:void 0}},hidden:j,inputElement:Q.createElement(oo,We({},N,{maxLength:v,onKeyDown:ee,onChange:M,onFocus:ge,onBlur:q,onCompositionStart:Se,onCompositionEnd:p,className:te(E==null?void 0:E.textarea),style:L(L({},P==null?void 0:P.textarea),{},{resize:c==null?void 0:c.resize}),disabled:x,prefixCls:C,onResize:Ct,ref:I}))});return Ee});export{bn as B,fo as I,fn as P,At as R,co as T,Da as a,ka as b,ya as c,ia as d,vo as e,oo as f,lo as g,ja as h,uo as i,vn as j,Ia as k,Fa as l,rr as m,Qa as t,ir as u};
static/assets/drawer-0e0e61af.js DELETED
The diff for this file is too large to render. See raw diff
 
static/assets/drawer-7e0bf95c.js ADDED
The diff for this file is too large to render. See raw diff
 
static/assets/index-0bfe7458.js DELETED
@@ -1 +0,0 @@
1
- import{r as i,al as nn,am as on,a3 as an,a2 as sn,ai as jr,a1 as Wr,S as q,a4 as gr,Q as ln,t as cn,_ as Zt,aQ as Rr,q as L,U as Te,aR as xr,c as pe,an as Br,f as Pe,e as un,aI as fn,aS as yr,ak as vn,a0 as Ft,N as $r,aT as wr,p as Ir,aU as dn,aV as Vr,u as pr,b as hn,n as Hr,at as mn,v as gn,C as Fr,a7 as bn,ar as yn,ap as wn,aW as pn,ag as Cn,ah as _n,d as Mn,ax as Pn,aw as Sn}from"./index-c062f015.js";var Cr=i.createContext(null);function Rn(e){var r=e.children,t=e.onBatchResize,n=i.useRef(0),o=i.useRef([]),a=i.useContext(Cr),s=i.useCallback(function(l,c,f){n.current+=1;var m=n.current;o.current.push({size:l,element:c,data:f}),Promise.resolve().then(function(){m===n.current&&(t==null||t(o.current),o.current=[])}),a==null||a(l,c,f)},[t,a]);return i.createElement(Cr.Provider,{value:s},r)}var qr=function(){if(typeof Map<"u")return Map;function e(r,t){var n=-1;return r.some(function(o,a){return o[0]===t?(n=a,!0):!1}),n}return function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},r.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},r.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},r.prototype.has=function(t){return!!~e(this.__entries__,t)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(t,n){n===void 0&&(n=null);for(var o=0,a=this.__entries__;o<a.length;o++){var s=a[o];t.call(n,s[1],s[0])}},r}()}(),_r=typeof window<"u"&&typeof document<"u"&&window.document===document,qt=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),xn=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(qt):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),$n=2;function kn(e,r){var t=!1,n=!1,o=0;function a(){t&&(t=!1,e()),n&&l()}function s(){xn(a)}function l(){var c=Date.now();if(t){if(c-o<$n)return;n=!0}else t=!0,n=!1,setTimeout(s,r);o=c}return l}var Tn=20,On=["top","right","bottom","left","width","height","size","weight"],En=typeof MutationObserver<"u",zn=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=kn(this.refresh.bind(this),Tn)}return e.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},e.prototype.removeObserver=function(r){var t=this.observers_,n=t.indexOf(r);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var r=this.updateObservers_();r&&this.refresh()},e.prototype.updateObservers_=function(){var r=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return r.forEach(function(t){return t.broadcastActive()}),r.length>0},e.prototype.connect_=function(){!_r||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),En?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!_r||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(r){var t=r.propertyName,n=t===void 0?"":t,o=On.some(function(a){return!!~n.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Gr=function(e,r){for(var t=0,n=Object.keys(r);t<n.length;t++){var o=n[t];Object.defineProperty(e,o,{value:r[o],enumerable:!1,writable:!1,configurable:!0})}return e},ut=function(e){var r=e&&e.ownerDocument&&e.ownerDocument.defaultView;return r||qt},Ur=Qt(0,0,0,0);function Gt(e){return parseFloat(e)||0}function kr(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return r.reduce(function(n,o){var a=e["border-"+o+"-width"];return n+Gt(a)},0)}function Dn(e){for(var r=["top","right","bottom","left"],t={},n=0,o=r;n<o.length;n++){var a=o[n],s=e["padding-"+a];t[a]=Gt(s)}return t}function Ln(e){var r=e.getBBox();return Qt(0,0,r.width,r.height)}function Nn(e){var r=e.clientWidth,t=e.clientHeight;if(!r&&!t)return Ur;var n=ut(e).getComputedStyle(e),o=Dn(n),a=o.left+o.right,s=o.top+o.bottom,l=Gt(n.width),c=Gt(n.height);if(n.boxSizing==="border-box"&&(Math.round(l+a)!==r&&(l-=kr(n,"left","right")+a),Math.round(c+s)!==t&&(c-=kr(n,"top","bottom")+s)),!jn(e)){var f=Math.round(l+a)-r,m=Math.round(c+s)-t;Math.abs(f)!==1&&(l-=f),Math.abs(m)!==1&&(c-=m)}return Qt(o.left,o.top,l,c)}var An=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ut(e).SVGGraphicsElement}:function(e){return e instanceof ut(e).SVGElement&&typeof e.getBBox=="function"}}();function jn(e){return e===ut(e).document.documentElement}function Wn(e){return _r?An(e)?Ln(e):Nn(e):Ur}function Bn(e){var r=e.x,t=e.y,n=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(a.prototype);return Gr(s,{x:r,y:t,width:n,height:o,top:t,right:r+n,bottom:o+t,left:r}),s}function Qt(e,r,t,n){return{x:e,y:r,width:t,height:n}}var In=function(){function e(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Qt(0,0,0,0),this.target=r}return e.prototype.isActive=function(){var r=Wn(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},e}(),Vn=function(){function e(r,t){var n=Bn(t);Gr(this,{target:r,contentRect:n})}return e}(),Hn=function(){function e(r,t,n){if(this.activeObservations_=[],this.observations_=new qr,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof ut(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)||(t.set(r,new In(r)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof ut(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)&&(t.delete(r),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&r.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,t=this.activeObservations_.map(function(n){return new Vn(n.target,n.broadcastRect())});this.callback_.call(r,t,r),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Zr=typeof WeakMap<"u"?new WeakMap:new qr,Qr=function(){function e(r){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=zn.getInstance(),n=new Hn(r,t,this);Zr.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Qr.prototype[e]=function(){var r;return(r=Zr.get(this))[e].apply(r,arguments)}});var Fn=function(){return typeof qt.ResizeObserver<"u"?qt.ResizeObserver:Qr}(),Ie=new Map;function qn(e){e.forEach(function(r){var t,n=r.target;(t=Ie.get(n))===null||t===void 0||t.forEach(function(o){return o(n)})})}var Jr=new Fn(qn);function Gn(e,r){Ie.has(e)||(Ie.set(e,new Set),Jr.observe(e)),Ie.get(e).add(r)}function Un(e,r){Ie.has(e)&&(Ie.get(e).delete(r),Ie.get(e).size||(Jr.unobserve(e),Ie.delete(e)))}var Zn=function(e){nn(t,e);var r=on(t);function t(){return an(this,t),r.apply(this,arguments)}return sn(t,[{key:"render",value:function(){return this.props.children}}]),t}(i.Component);function Qn(e,r){var t=e.children,n=e.disabled,o=i.useRef(null),a=i.useRef(null),s=i.useContext(Cr),l=typeof t=="function",c=l?t(o):t,f=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!l&&i.isValidElement(c)&&jr(c),v=m?c.ref:null,w=Wr(v,o),h=function(){var M;return gr(o.current)||(o.current&&ln(o.current)==="object"?gr((M=o.current)===null||M===void 0?void 0:M.nativeElement):null)||gr(a.current)};i.useImperativeHandle(r,function(){return h()});var p=i.useRef(e);p.current=e;var _=i.useCallback(function(b){var M=p.current,C=M.onResize,y=M.data,u=b.getBoundingClientRect(),$=u.width,W=u.height,O=b.offsetWidth,B=b.offsetHeight,U=Math.floor($),N=Math.floor(W);if(f.current.width!==U||f.current.height!==N||f.current.offsetWidth!==O||f.current.offsetHeight!==B){var I={width:U,height:N,offsetWidth:O,offsetHeight:B};f.current=I;var J=O===Math.round($)?$:O,K=B===Math.round(W)?W:B,A=q(q({},I),{},{offsetWidth:J,offsetHeight:K});s==null||s(A,b,y),C&&Promise.resolve().then(function(){C(A,b)})}},[]);return i.useEffect(function(){var b=h();return b&&!n&&Gn(b,_),function(){return Un(b,_)}},[o.current,n]),i.createElement(Zn,{ref:a},m?i.cloneElement(c,{ref:w}):c)}var Jn=i.forwardRef(Qn),Kn="rc-observer-key";function Xn(e,r){var t=e.children,n=typeof t=="function"?[t]:cn(t);return n.map(function(o,a){var s=(o==null?void 0:o.key)||"".concat(Kn,"-").concat(a);return i.createElement(Jn,Zt({},e,{key:s,ref:a===0?r:void 0}),o)})}var Pr=i.forwardRef(Xn);Pr.Collection=Rn;const Ut=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function br(e){return e!==void 0}function Yn(e,r){var t=r||{},n=t.defaultValue,o=t.value,a=t.onChange,s=t.postState,l=Rr(function(){return br(o)?o:br(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=L(l,2),f=c[0],m=c[1],v=o!==void 0?o:f,w=s?s(v):v,h=Te(a),p=Rr([v]),_=L(p,2),b=_[0],M=_[1];xr(function(){var y=b[0];f!==y&&h(f,y)},[b]),xr(function(){br(o)||m(o)},[o]);var C=Te(function(y,u){m(y,u),M([v],u)});return[w,C]}function eo(e,r){return Ut.reduce((t,n)=>{const o=e[`${n}1`],a=e[`${n}3`],s=e[`${n}6`],l=e[`${n}7`];return Object.assign(Object.assign({},t),r(n,{lightColor:o,lightBorderColor:a,darkColor:s,textColor:l}))},{})}const to=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};function ro(e){var r=e.prefixCls,t=e.align,n=e.arrow,o=e.arrowPos,a=n||{},s=a.className,l=a.content,c=o.x,f=c===void 0?0:c,m=o.y,v=m===void 0?0:m,w=i.useRef();if(!t||!t.points)return null;var h={position:"absolute"};if(t.autoArrow!==!1){var p=t.points[0],_=t.points[1],b=p[0],M=p[1],C=_[0],y=_[1];b===C||!["t","b"].includes(b)?h.top=v:b==="t"?h.top=0:h.bottom=0,M===y||!["l","r"].includes(M)?h.left=f:M==="l"?h.left=0:h.right=0}return i.createElement("div",{ref:w,className:pe("".concat(r,"-arrow"),s),style:h},l)}function no(e){var r=e.prefixCls,t=e.open,n=e.zIndex,o=e.mask,a=e.motion;return o?i.createElement(Br,Zt({},a,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(s){var l=s.className;return i.createElement("div",{style:{zIndex:n},className:pe("".concat(r,"-mask"),l)})}):null}var oo=i.memo(function(e){var r=e.children;return r},function(e,r){return r.cache}),ao=i.forwardRef(function(e,r){var t=e.popup,n=e.className,o=e.prefixCls,a=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,f=e.keepDom,m=e.fresh,v=e.onClick,w=e.mask,h=e.arrow,p=e.arrowPos,_=e.align,b=e.motion,M=e.maskMotion,C=e.forceRender,y=e.getPopupContainer,u=e.autoDestroy,$=e.portal,W=e.zIndex,O=e.onMouseEnter,B=e.onMouseLeave,U=e.onPointerEnter,N=e.ready,I=e.offsetX,J=e.offsetY,K=e.offsetR,A=e.offsetB,oe=e.onAlign,T=e.onPrepare,k=e.stretch,P=e.targetWidth,Z=e.targetHeight,x=typeof t=="function"?t():t,ue=c||f,ae=(y==null?void 0:y.length)>0,Ve=i.useState(!y||!ae),Oe=L(Ve,2),fe=Oe[0],ie=Oe[1];if(Pe(function(){!fe&&ae&&s&&ie(!0)},[fe,ae,s]),!fe)return null;var se="auto",j={left:"-1000vw",top:"-1000vh",right:se,bottom:se};if(N||!c){var Q,te=_.points,X=_.dynamicInset||((Q=_._experimental)===null||Q===void 0?void 0:Q.dynamicInset),Ee=X&&te[0][1]==="r",He=X&&te[0][0]==="b";Ee?(j.right=K,j.left=se):(j.left=I,j.right=se),He?(j.bottom=A,j.top=se):(j.top=J,j.bottom=se)}var F={};return k&&(k.includes("height")&&Z?F.height=Z:k.includes("minHeight")&&Z&&(F.minHeight=Z),k.includes("width")&&P?F.width=P:k.includes("minWidth")&&P&&(F.minWidth=P)),c||(F.pointerEvents="none"),i.createElement($,{open:C||ue,getContainer:y&&function(){return y(s)},autoDestroy:u},i.createElement(no,{prefixCls:o,open:c,zIndex:W,mask:w,motion:M}),i.createElement(Pr,{onResize:oe,disabled:!c},function(ze){return i.createElement(Br,Zt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:T,onEnterPrepare:T,visible:c,onVisibleChanged:function(Y){var ge;b==null||(ge=b.onVisibleChanged)===null||ge===void 0||ge.call(b,Y),l(Y)}}),function(ve,Y){var ge=ve.className,R=ve.style,Se=pe(o,ge,n);return i.createElement("div",{ref:un(ze,r,Y),className:Se,style:q(q(q(q({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},j),F),R),{},{boxSizing:"border-box",zIndex:W},a),onMouseEnter:O,onMouseLeave:B,onPointerEnter:U,onClick:v},h&&i.createElement(ro,{prefixCls:o,arrow:h,arrowPos:p,align:_}),i.createElement(oo,{cache:!c&&!m},x))})}))}),io=i.forwardRef(function(e,r){var t=e.children,n=e.getTriggerDOMNode,o=jr(t),a=i.useCallback(function(l){fn(r,n?n(l):l)},[n]),s=Wr(a,t.ref);return o?i.cloneElement(t,{ref:s}):t}),Tr=i.createContext(null);function Or(e){return e?Array.isArray(e)?e:[e]:[]}function so(e,r,t,n){return i.useMemo(function(){var o=Or(t??r),a=Or(n??r),s=new Set(o),l=new Set(a);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[s,l]},[e,r,t,n])}function lo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?e[0]===r[0]:e[0]===r[0]&&e[1]===r[1]}function co(e,r,t,n){for(var o=t.points,a=Object.keys(e),s=0;s<a.length;s+=1){var l,c=a[s];if(lo((l=e[c])===null||l===void 0?void 0:l.points,o,n))return"".concat(r,"-placement-").concat(c)}return""}function Er(e,r,t,n){return r||(t?{motionName:"".concat(e,"-").concat(t)}:n?{motionName:n}:null)}function _t(e){return e.ownerDocument.defaultView}function Mr(e){for(var r=[],t=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];t;){var o=_t(t).getComputedStyle(t),a=o.overflowX,s=o.overflowY,l=o.overflow;[a,s,l].some(function(c){return n.includes(c)})&&r.push(t),t=t.parentElement}return r}function Ct(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?r:e}function pt(e){return Ct(parseFloat(e),0)}function zr(e,r){var t=q({},e);return(r||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=_t(n).getComputedStyle(n),a=o.overflow,s=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,f=o.borderLeftWidth,m=o.borderRightWidth,v=n.getBoundingClientRect(),w=n.offsetHeight,h=n.clientHeight,p=n.offsetWidth,_=n.clientWidth,b=pt(l),M=pt(c),C=pt(f),y=pt(m),u=Ct(Math.round(v.width/p*1e3)/1e3),$=Ct(Math.round(v.height/w*1e3)/1e3),W=(p-_-C-y)*u,O=(w-h-b-M)*$,B=b*$,U=M*$,N=C*u,I=y*u,J=0,K=0;if(a==="clip"){var A=pt(s);J=A*u,K=A*$}var oe=v.x+N-J,T=v.y+B-K,k=oe+v.width+2*J-N-I-W,P=T+v.height+2*K-B-U-O;t.left=Math.max(t.left,oe),t.top=Math.max(t.top,T),t.right=Math.min(t.right,k),t.bottom=Math.min(t.bottom,P)}}),t}function Dr(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t="".concat(r),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Lr(e,r){var t=r||[],n=L(t,2),o=n[0],a=n[1];return[Dr(e.width,o),Dr(e.height,a)]}function Nr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function st(e,r){var t=r[0],n=r[1],o,a;return t==="t"?a=e.y:t==="b"?a=e.y+e.height:a=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Be(e,r){var t={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===r?t[n]||"c":n}).join("")}function uo(e,r,t,n,o,a,s){var l=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),c=L(l,2),f=c[0],m=c[1],v=i.useRef(0),w=i.useMemo(function(){return r?Mr(r):[]},[r]),h=i.useRef({}),p=function(){h.current={}};e||p();var _=Te(function(){if(r&&t&&e){let he=function(ke,Ke){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se,it=x.x+ke,yt=x.y+Ke,wt=it+Q,Bt=yt+j,fr=Math.max(it,at.left),vr=Math.max(yt,at.top),dr=Math.min(wt,at.right),hr=Math.min(Bt,at.bottom);return Math.max(0,(dr-fr)*(hr-vr))},Wt=function(){Ne=x.y+S,Ae=Ne+j,je=x.x+D,tt=je+Q};var C,y,u=r,$=u.ownerDocument,W=_t(u),O=W.getComputedStyle(u),B=O.width,U=O.height,N=O.position,I=u.style.left,J=u.style.top,K=u.style.right,A=u.style.bottom,oe=u.style.overflow,T=q(q({},o[n]),a),k=$.createElement("div");(C=u.parentElement)===null||C===void 0||C.appendChild(k),k.style.left="".concat(u.offsetLeft,"px"),k.style.top="".concat(u.offsetTop,"px"),k.style.position=N,k.style.height="".concat(u.offsetHeight,"px"),k.style.width="".concat(u.offsetWidth,"px"),u.style.left="0",u.style.top="0",u.style.right="auto",u.style.bottom="auto",u.style.overflow="hidden";var P;if(Array.isArray(t))P={x:t[0],y:t[1],width:0,height:0};else{var Z=t.getBoundingClientRect();P={x:Z.x,y:Z.y,width:Z.width,height:Z.height}}var x=u.getBoundingClientRect(),ue=$.documentElement,ae=ue.clientWidth,Ve=ue.clientHeight,Oe=ue.scrollWidth,fe=ue.scrollHeight,ie=ue.scrollTop,se=ue.scrollLeft,j=x.height,Q=x.width,te=P.height,X=P.width,Ee={left:0,top:0,right:ae,bottom:Ve},He={left:-se,top:-ie,right:Oe-se,bottom:fe-ie},F=T.htmlRegion,ze="visible",ve="visibleFirst";F!=="scroll"&&F!==ve&&(F=ze);var Y=F===ve,ge=zr(He,w),R=zr(Ee,w),Se=F===ze?R:ge,re=Y?R:Se;u.style.left="auto",u.style.top="auto",u.style.right="0",u.style.bottom="0";var Xe=u.getBoundingClientRect();u.style.left=I,u.style.top=J,u.style.right=K,u.style.bottom=A,u.style.overflow=oe,(y=u.parentElement)===null||y===void 0||y.removeChild(k);var V=Ct(Math.round(Q/parseFloat(B)*1e3)/1e3),ee=Ct(Math.round(j/parseFloat(U)*1e3)/1e3);if(V===0||ee===0||yr(t)&&!vn(t))return;var be=T.offset,ye=T.targetOffset,Jt=Lr(x,be),Mt=L(Jt,2),we=Mt[0],de=Mt[1],Ce=Lr(P,ye),Pt=L(Ce,2),St=Pt[0],Kt=Pt[1];P.x-=St,P.y-=Kt;var Ye=T.points||[],le=L(Ye,2),De=le[0],Xt=le[1],Re=Nr(Xt),ce=Nr(De),Rt=st(P,Re),ft=st(x,ce),Le=q({},T),D=Rt.x-ft.x+we,S=Rt.y-ft.y+de,_e=he(D,S),Me=he(D,S,R),Fe=st(P,["t","l"]),vt=st(x,["t","l"]),dt=st(P,["b","r"]),ht=st(x,["b","r"]),ne=T.overflow||{},Yt=ne.adjustX,xt=ne.adjustY,et=ne.shiftX,mt=ne.shiftY,$t=function(Ke){return typeof Ke=="boolean"?Ke:Ke>=0},Ne,Ae,je,tt;Wt();var gt=$t(xt),bt=ce[0]===Re[0];if(gt&&ce[0]==="t"&&(Ae>re.bottom||h.current.bt)){var qe=S;bt?qe-=j-te:qe=Fe.y-ht.y-de;var Ge=he(D,qe),er=he(D,qe,R);Ge>_e||Ge===_e&&(!Y||er>=Me)?(h.current.bt=!0,S=qe,de=-de,Le.points=[Be(ce,0),Be(Re,0)]):h.current.bt=!1}if(gt&&ce[0]==="b"&&(Ne<re.top||h.current.tb)){var G=S;bt?G+=j-te:G=dt.y-vt.y-de;var kt=he(D,G),tr=he(D,G,R);kt>_e||kt===_e&&(!Y||tr>=Me)?(h.current.tb=!0,S=G,de=-de,Le.points=[Be(ce,0),Be(Re,0)]):h.current.tb=!1}var Tt=$t(Yt),Ot=ce[1]===Re[1];if(Tt&&ce[1]==="l"&&(tt>re.right||h.current.rl)){var Ue=D;Ot?Ue-=Q-X:Ue=Fe.x-ht.x-we;var Et=he(Ue,S),rr=he(Ue,S,R);Et>_e||Et===_e&&(!Y||rr>=Me)?(h.current.rl=!0,D=Ue,we=-we,Le.points=[Be(ce,1),Be(Re,1)]):h.current.rl=!1}if(Tt&&ce[1]==="r"&&(je<re.left||h.current.lr)){var Ze=D;Ot?Ze+=Q-X:Ze=dt.x-vt.x-we;var zt=he(Ze,S),rt=he(Ze,S,R);zt>_e||zt===_e&&(!Y||rt>=Me)?(h.current.lr=!0,D=Ze,we=-we,Le.points=[Be(ce,1),Be(Re,1)]):h.current.lr=!1}Wt();var xe=et===!0?0:et;typeof xe=="number"&&(je<R.left&&(D-=je-R.left-we,P.x+X<R.left+xe&&(D+=P.x-R.left+X-xe)),tt>R.right&&(D-=tt-R.right-we,P.x>R.right-xe&&(D+=P.x-R.right+xe)));var Qe=mt===!0?0:mt;typeof Qe=="number"&&(Ne<R.top&&(S-=Ne-R.top-de,P.y+te<R.top+Qe&&(S+=P.y-R.top+te-Qe)),Ae>R.bottom&&(S-=Ae-R.bottom-de,P.y>R.bottom-Qe&&(S+=P.y-R.bottom+Qe)));var nt=x.x+D,ot=nt+Q,$e=x.y+S,Dt=$e+j,Je=P.x,We=Je+X,Lt=P.y,nr=Lt+te,or=Math.max(nt,Je),Nt=Math.min(ot,We),ar=(or+Nt)/2,ir=ar-nt,sr=Math.max($e,Lt),At=Math.min(Dt,nr),lr=(sr+At)/2,cr=lr-$e;s==null||s(r,Le);var jt=Xe.right-x.x-(D+x.width),ur=Xe.bottom-x.y-(S+x.height);m({ready:!0,offsetX:D/V,offsetY:S/ee,offsetR:jt/V,offsetB:ur/ee,arrowX:ir/V,arrowY:cr/ee,scaleX:V,scaleY:ee,align:Le})}}),b=function(){v.current+=1;var y=v.current;Promise.resolve().then(function(){v.current===y&&_()})},M=function(){m(function(y){return q(q({},y),{},{ready:!1})})};return Pe(M,[n]),Pe(function(){e||M()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,b]}function fo(e,r,t,n,o){Pe(function(){if(e&&r&&t){let v=function(){n(),o()};var a=r,s=t,l=Mr(a),c=Mr(s),f=_t(s),m=new Set([f].concat(Ft(l),Ft(c)));return m.forEach(function(w){w.addEventListener("scroll",v,{passive:!0})}),f.addEventListener("resize",v,{passive:!0}),n(),function(){m.forEach(function(w){w.removeEventListener("scroll",v),f.removeEventListener("resize",v)})}}},[e,r,t])}function vo(e,r,t,n,o,a,s,l){var c=i.useRef(e),f=i.useRef(!1);c.current!==e&&(f.current=!0,c.current=e),i.useEffect(function(){var m=$r(function(){f.current=!1});return function(){$r.cancel(m)}},[e]),i.useEffect(function(){if(r&&n&&(!o||a)){var m=function(){var W=!1,O=function(N){var I=N.target;W=s(I)},B=function(N){var I=N.target;!f.current&&c.current&&!W&&!s(I)&&l(!1)};return[O,B]},v=m(),w=L(v,2),h=w[0],p=w[1],_=m(),b=L(_,2),M=b[0],C=b[1],y=_t(n);y.addEventListener("mousedown",h,!0),y.addEventListener("click",p,!0),y.addEventListener("contextmenu",p,!0);var u=wr(t);return u&&(u.addEventListener("mousedown",M,!0),u.addEventListener("click",C,!0),u.addEventListener("contextmenu",C,!0)),function(){y.removeEventListener("mousedown",h,!0),y.removeEventListener("click",p,!0),y.removeEventListener("contextmenu",p,!0),u&&(u.removeEventListener("mousedown",M,!0),u.removeEventListener("click",C,!0),u.removeEventListener("contextmenu",C,!0))}}},[r,t,n,o,a])}var ho=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function mo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vr,r=i.forwardRef(function(t,n){var o=t.prefixCls,a=o===void 0?"rc-trigger-popup":o,s=t.children,l=t.action,c=l===void 0?"hover":l,f=t.showAction,m=t.hideAction,v=t.popupVisible,w=t.defaultPopupVisible,h=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,_=t.mouseEnterDelay,b=t.mouseLeaveDelay,M=b===void 0?.1:b,C=t.focusDelay,y=t.blurDelay,u=t.mask,$=t.maskClosable,W=$===void 0?!0:$,O=t.getPopupContainer,B=t.forceRender,U=t.autoDestroy,N=t.destroyPopupOnHide,I=t.popup,J=t.popupClassName,K=t.popupStyle,A=t.popupPlacement,oe=t.builtinPlacements,T=oe===void 0?{}:oe,k=t.popupAlign,P=t.zIndex,Z=t.stretch,x=t.getPopupClassNameFromAlign,ue=t.fresh,ae=t.alignPoint,Ve=t.onPopupClick,Oe=t.onPopupAlign,fe=t.arrow,ie=t.popupMotion,se=t.maskMotion,j=t.popupTransitionName,Q=t.popupAnimation,te=t.maskTransitionName,X=t.maskAnimation,Ee=t.className,He=t.getTriggerDOMNode,F=Ir(t,ho),ze=U||N||!1,ve=i.useState(!1),Y=L(ve,2),ge=Y[0],R=Y[1];Pe(function(){R(to())},[]);var Se=i.useRef({}),re=i.useContext(Tr),Xe=i.useMemo(function(){return{registerSubPopup:function(g,E){Se.current[g]=E,re==null||re.registerSubPopup(g,E)}}},[re]),V=dn(),ee=i.useState(null),be=L(ee,2),ye=be[0],Jt=be[1],Mt=Te(function(d){yr(d)&&ye!==d&&Jt(d),re==null||re.registerSubPopup(V,d)}),we=i.useState(null),de=L(we,2),Ce=de[0],Pt=de[1],St=i.useRef(null),Kt=Te(function(d){yr(d)&&Ce!==d&&(Pt(d),St.current=d)}),Ye=i.Children.only(s),le=(Ye==null?void 0:Ye.props)||{},De={},Xt=Te(function(d){var g,E,H=Ce;return(H==null?void 0:H.contains(d))||((g=wr(H))===null||g===void 0?void 0:g.host)===d||d===H||(ye==null?void 0:ye.contains(d))||((E=wr(ye))===null||E===void 0?void 0:E.host)===d||d===ye||Object.values(Se.current).some(function(z){return(z==null?void 0:z.contains(d))||d===z})}),Re=Er(a,ie,Q,j),ce=Er(a,se,X,te),Rt=i.useState(w||!1),ft=L(Rt,2),Le=ft[0],D=ft[1],S=v??Le,_e=Te(function(d){v===void 0&&D(d)});Pe(function(){D(v||!1)},[v]);var Me=i.useRef(S);Me.current=S;var Fe=i.useRef([]);Fe.current=[];var vt=Te(function(d){var g;_e(d),((g=Fe.current[Fe.current.length-1])!==null&&g!==void 0?g:S)!==d&&(Fe.current.push(d),h==null||h(d))}),dt=i.useRef(),ht=function(){clearTimeout(dt.current)},ne=function(g){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ht(),E===0?vt(g):dt.current=setTimeout(function(){vt(g)},E*1e3)};i.useEffect(function(){return ht},[]);var Yt=i.useState(!1),xt=L(Yt,2),et=xt[0],mt=xt[1];Pe(function(d){(!d||S)&&mt(!0)},[S]);var $t=i.useState(null),Ne=L($t,2),Ae=Ne[0],je=Ne[1],tt=i.useState([0,0]),gt=L(tt,2),bt=gt[0],qe=gt[1],Ge=function(g){qe([g.clientX,g.clientY])},er=uo(S,ye,ae?bt:Ce,A,T,k,Oe),G=L(er,11),kt=G[0],tr=G[1],Tt=G[2],Ot=G[3],Ue=G[4],Et=G[5],rr=G[6],Ze=G[7],zt=G[8],rt=G[9],xe=G[10],Qe=so(ge,c,f,m),nt=L(Qe,2),ot=nt[0],$e=nt[1],Dt=ot.has("click"),Je=$e.has("click")||$e.has("contextMenu"),We=Te(function(){et||xe()}),Lt=function(){Me.current&&ae&&Je&&ne(!1)};fo(S,Ce,ye,We,Lt),Pe(function(){We()},[bt,A]),Pe(function(){S&&!(T!=null&&T[A])&&We()},[JSON.stringify(k)]);var nr=i.useMemo(function(){var d=co(T,a,rt,ae);return pe(d,x==null?void 0:x(rt))},[rt,x,T,a,ae]);i.useImperativeHandle(n,function(){return{nativeElement:St.current,forceAlign:We}});var or=i.useState(0),Nt=L(or,2),ar=Nt[0],ir=Nt[1],sr=i.useState(0),At=L(sr,2),lr=At[0],cr=At[1],jt=function(){if(Z&&Ce){var g=Ce.getBoundingClientRect();ir(g.width),cr(g.height)}},ur=function(){jt(),We()},he=function(g){mt(!1),xe(),p==null||p(g)},Wt=function(){return new Promise(function(g){jt(),je(function(){return g})})};Pe(function(){Ae&&(xe(),Ae(),je(null))},[Ae]);function ke(d,g,E,H){De[d]=function(z){var It;H==null||H(z),ne(g,E);for(var mr=arguments.length,Sr=new Array(mr>1?mr-1:0),Vt=1;Vt<mr;Vt++)Sr[Vt-1]=arguments[Vt];(It=le[d])===null||It===void 0||It.call.apply(It,[le,z].concat(Sr))}}(Dt||Je)&&(De.onClick=function(d){var g;Me.current&&Je?ne(!1):!Me.current&&Dt&&(Ge(d),ne(!0));for(var E=arguments.length,H=new Array(E>1?E-1:0),z=1;z<E;z++)H[z-1]=arguments[z];(g=le.onClick)===null||g===void 0||g.call.apply(g,[le,d].concat(H))}),vo(S,Je,Ce,ye,u,W,Xt,ne);var Ke=ot.has("hover"),at=$e.has("hover"),it,yt;Ke&&(ke("onMouseEnter",!0,_,function(d){Ge(d)}),ke("onPointerEnter",!0,_,function(d){Ge(d)}),it=function(){(S||et)&&ne(!0,_)},ae&&(De.onMouseMove=function(d){var g;(g=le.onMouseMove)===null||g===void 0||g.call(le,d)})),at&&(ke("onMouseLeave",!1,M),ke("onPointerLeave",!1,M),yt=function(){ne(!1,M)}),ot.has("focus")&&ke("onFocus",!0,C),$e.has("focus")&&ke("onBlur",!1,y),ot.has("contextMenu")&&(De.onContextMenu=function(d){var g;Me.current&&$e.has("contextMenu")?ne(!1):(Ge(d),ne(!0)),d.preventDefault();for(var E=arguments.length,H=new Array(E>1?E-1:0),z=1;z<E;z++)H[z-1]=arguments[z];(g=le.onContextMenu)===null||g===void 0||g.call.apply(g,[le,d].concat(H))}),Ee&&(De.className=pe(le.className,Ee));var wt=q(q({},le),De),Bt={},fr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];fr.forEach(function(d){F[d]&&(Bt[d]=function(){for(var g,E=arguments.length,H=new Array(E),z=0;z<E;z++)H[z]=arguments[z];(g=wt[d])===null||g===void 0||g.call.apply(g,[wt].concat(H)),F[d].apply(F,H)})});var vr=i.cloneElement(Ye,q(q({},wt),Bt)),dr={x:Et,y:rr},hr=fe?q({},fe!==!0?fe:{}):null;return i.createElement(i.Fragment,null,i.createElement(Pr,{disabled:!S,ref:Kt,onResize:ur},i.createElement(io,{getTriggerDOMNode:He},vr)),i.createElement(Tr.Provider,{value:Xe},i.createElement(ao,{portal:e,ref:Mt,prefixCls:a,popup:I,className:pe(J,nr),style:K,target:Ce,onMouseEnter:it,onMouseLeave:yt,onPointerEnter:it,zIndex:P,open:S,keepDom:et,fresh:ue,onClick:Ve,mask:u,motion:Re,maskMotion:ce,onVisibleChanged:he,onPrepare:Wt,forceRender:B,autoDestroy:ze,getPopupContainer:O,align:rt,arrow:hr,arrowPos:dr,ready:kt,offsetX:tr,offsetY:Tt,offsetR:Ot,offsetB:Ue,onAlign:We,stretch:Z,targetWidth:ar/Ze,targetHeight:lr/zt})))});return r}const go=mo(Vr);function Kr(e){var r=e.children,t=e.prefixCls,n=e.id,o=e.overlayInnerStyle,a=e.className,s=e.style;return i.createElement("div",{className:pe("".concat(t,"-content"),a),style:s},i.createElement("div",{className:"".concat(t,"-inner"),id:n,role:"tooltip",style:o},typeof r=="function"?r():r))}var lt={shiftX:64,adjustY:1},ct={adjustX:1,shiftY:!0},me=[0,0],bo={left:{points:["cr","cl"],overflow:ct,offset:[-4,0],targetOffset:me},right:{points:["cl","cr"],overflow:ct,offset:[4,0],targetOffset:me},top:{points:["bc","tc"],overflow:lt,offset:[0,-4],targetOffset:me},bottom:{points:["tc","bc"],overflow:lt,offset:[0,4],targetOffset:me},topLeft:{points:["bl","tl"],overflow:lt,offset:[0,-4],targetOffset:me},leftTop:{points:["tr","tl"],overflow:ct,offset:[-4,0],targetOffset:me},topRight:{points:["br","tr"],overflow:lt,offset:[0,-4],targetOffset:me},rightTop:{points:["tl","tr"],overflow:ct,offset:[4,0],targetOffset:me},bottomRight:{points:["tr","br"],overflow:lt,offset:[0,4],targetOffset:me},rightBottom:{points:["bl","br"],overflow:ct,offset:[4,0],targetOffset:me},bottomLeft:{points:["tl","bl"],overflow:lt,offset:[0,4],targetOffset:me},leftBottom:{points:["br","bl"],overflow:ct,offset:[-4,0],targetOffset:me}},yo=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],wo=function(r,t){var n=r.overlayClassName,o=r.trigger,a=o===void 0?["hover"]:o,s=r.mouseEnterDelay,l=s===void 0?0:s,c=r.mouseLeaveDelay,f=c===void 0?.1:c,m=r.overlayStyle,v=r.prefixCls,w=v===void 0?"rc-tooltip":v,h=r.children,p=r.onVisibleChange,_=r.afterVisibleChange,b=r.transitionName,M=r.animation,C=r.motion,y=r.placement,u=y===void 0?"right":y,$=r.align,W=$===void 0?{}:$,O=r.destroyTooltipOnHide,B=O===void 0?!1:O,U=r.defaultVisible,N=r.getTooltipContainer,I=r.overlayInnerStyle;r.arrowContent;var J=r.overlay,K=r.id,A=r.showArrow,oe=A===void 0?!0:A,T=Ir(r,yo),k=i.useRef(null);i.useImperativeHandle(t,function(){return k.current});var P=q({},T);"visible"in r&&(P.popupVisible=r.visible);var Z=function(){return i.createElement(Kr,{key:"content",prefixCls:w,id:K,overlayInnerStyle:I},J)};return i.createElement(go,Zt({popupClassName:n,prefixCls:w,popup:Z,action:a,builtinPlacements:bo,popupPlacement:u,ref:k,popupAlign:W,getPopupContainer:N,onPopupVisibleChange:p,afterPopupVisibleChange:_,popupTransitionName:b,popupAnimation:M,popupMotion:C,defaultPopupVisible:U,autoDestroy:B,mouseLeaveDelay:f,popupStyle:m,mouseEnterDelay:l,arrow:oe},P),h)};const po=i.forwardRef(wo);function Co(e){const{sizePopupArrow:r,borderRadiusXS:t,borderRadiusOuter:n}=e,o=r/2,a=0,s=o,l=n*1/Math.sqrt(2),c=o-n*(1-1/Math.sqrt(2)),f=o-t*(1/Math.sqrt(2)),m=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),v=2*o-f,w=m,h=2*o-l,p=c,_=2*o-a,b=s,M=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),C=n*(Math.sqrt(2)-1),y=`polygon(${C}px 100%, 50% ${C}px, ${2*o-C}px 100%, ${C}px 100%)`,u=`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${f} ${m} A ${t} ${t} 0 0 1 ${v} ${w} L ${h} ${p} A ${n} ${n} 0 0 0 ${_} ${b} Z')`;return{arrowShadowWidth:M,arrowPath:u,arrowPolygon:y}}const _o=(e,r,t)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:a,arrowShadowWidth:s,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:r,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${pr(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}},Xr=8;function Yr(e){const{contentRadius:r,limitVerticalRadius:t}=e,n=r>12?r+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:t?Xr:n}}function Ht(e,r){return e?r:{}}function Mo(e,r,t){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:s}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=t||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},_o(e,r,o)),{"&:before":{background:r}})]},Ht(!!c.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:s}},[`&-placement-topRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}})),Ht(!!c.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:s}},[`&-placement-bottomRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}})),Ht(!!c.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:a},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:a}})),Ht(!!c.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:a},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:a}}))}}function Po(e,r,t,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=r.arrowOffsetHorizontal*2+t,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=r.arrowOffsetVertical*2+t,a.shiftX=!0,a.adjustX=!0;break}const s=Object.assign(Object.assign({},a),o);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const Ar={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},So={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Ro=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function xo(e){const{arrowWidth:r,autoAdjustOverflow:t,arrowPointAtCenter:n,offset:o,borderRadius:a,visibleFirst:s}=e,l=r/2,c={};return Object.keys(Ar).forEach(f=>{const m=n&&So[f]||Ar[f],v=Object.assign(Object.assign({},m),{offset:[0,0],dynamicInset:!0});switch(c[f]=v,Ro.has(f)&&(v.autoArrow=!1),f){case"top":case"topLeft":case"topRight":v.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":v.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":v.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":v.offset[0]=l+o;break}const w=Yr({contentRadius:a,limitVerticalRadius:!0});if(n)switch(f){case"topLeft":case"bottomLeft":v.offset[0]=-w.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":v.offset[0]=w.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":v.offset[1]=-w.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":v.offset[1]=w.arrowOffsetHorizontal+l;break}v.overflow=Po(f,w,r,t),s&&(v.htmlRegion="visibleFirst")}),c}const $o=e=>{const{componentCls:r,tooltipMaxWidth:t,tooltipColor:n,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:f,paddingXS:m}=e;return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},gn(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:t,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${r}-inner`]:{minWidth:l,minHeight:l,padding:`${pr(e.calc(f).div(2).equal())} ${pr(m)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,Xr)}},[`${r}-content`]:{position:"relative"}}),eo(e,(v,w)=>{let{darkColor:h}=w;return{[`&${r}-${v}`]:{[`${r}-inner`]:{backgroundColor:h},[`${r}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},Mo(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ko=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Yr({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Co(Hr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),en=function(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return hn("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:s}=n,l=Hr(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:s});return[$o(l),mn(n,"zoom-big-fast")]},ko,{resetStyle:!1,injectStyle:r})(e)},To=Ut.map(e=>`${e}-inverse`);function Oo(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ft(To),Ft(Ut)).includes(e):Ut.includes(e)}function tn(e,r){const t=Oo(r),n=pe({[`${e}-${r}`]:r&&t}),o={},a={};return r&&!t&&(o.background=r,a["--antd-arrow-background-color"]=r),{className:n,overlayStyle:o,arrowStyle:a}}const Eo=e=>{const{prefixCls:r,className:t,placement:n="top",title:o,color:a,overlayInnerStyle:s}=e,{getPrefixCls:l}=i.useContext(Fr),c=l("tooltip",r),[f,m,v]=en(c),w=tn(c,a),h=w.arrowStyle,p=Object.assign(Object.assign({},s),w.overlayStyle),_=pe(m,v,c,`${c}-pure`,`${c}-placement-${n}`,t,w.className);return f(i.createElement("div",{className:_,style:h},i.createElement("div",{className:`${c}-arrow`}),i.createElement(Kr,Object.assign({},e,{className:m,prefixCls:c,overlayInnerStyle:p}),o)))},zo=Eo;var Do=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]]);return t};const rn=i.forwardRef((e,r)=>{var t,n;const{prefixCls:o,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:f,children:m,afterOpenChange:v,afterVisibleChange:w,destroyTooltipOnHide:h,arrow:p=!0,title:_,overlay:b,builtinPlacements:M,arrowPointAtCenter:C=!1,autoAdjustOverflow:y=!0}=e,u=!!p,[,$]=bn(),{getPopupContainer:W,getPrefixCls:O,direction:B}=i.useContext(Fr),U=Sn(),N=i.useRef(null),I=()=>{var V;(V=N.current)===null||V===void 0||V.forceAlign()};i.useImperativeHandle(r,()=>({forceAlign:I,forcePopupAlign:()=>{U.deprecated(!1,"forcePopupAlign","forceAlign"),I()}}));const[J,K]=Yn(!1,{value:(t=e.open)!==null&&t!==void 0?t:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),A=!_&&!b&&_!==0,oe=V=>{var ee,be;K(A?!1:V),A||((ee=e.onOpenChange)===null||ee===void 0||ee.call(e,V),(be=e.onVisibleChange)===null||be===void 0||be.call(e,V))},T=i.useMemo(()=>{var V,ee;let be=C;return typeof p=="object"&&(be=(ee=(V=p.pointAtCenter)!==null&&V!==void 0?V:p.arrowPointAtCenter)!==null&&ee!==void 0?ee:C),M||xo({arrowPointAtCenter:be,autoAdjustOverflow:y,arrowWidth:u?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[C,p,M,$]),k=i.useMemo(()=>_===0?_:b||_||"",[b,_]),P=i.createElement(yn,null,typeof k=="function"?k():k),{getPopupContainer:Z,placement:x="top",mouseEnterDelay:ue=.1,mouseLeaveDelay:ae=.1,overlayStyle:Ve,rootClassName:Oe}=e,fe=Do(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ie=O("tooltip",o),se=O(),j=e["data-popover-inject"];let Q=J;!("open"in e)&&!("visible"in e)&&A&&(Q=!1);const te=wn(m)&&!pn(m)?m:i.createElement("span",null,m),X=te.props,Ee=!X.className||typeof X.className=="string"?pe(X.className,a||`${ie}-open`):X.className,[He,F,ze]=en(ie,!j),ve=tn(ie,c),Y=ve.arrowStyle,ge=Object.assign(Object.assign({},f),ve.overlayStyle),R=pe(l,{[`${ie}-rtl`]:B==="rtl"},ve.className,Oe,F,ze),[Se,re]=Cn("Tooltip",fe.zIndex),Xe=i.createElement(po,Object.assign({},fe,{zIndex:Se,showArrow:u,placement:x,mouseEnterDelay:ue,mouseLeaveDelay:ae,prefixCls:ie,overlayClassName:R,overlayStyle:Object.assign(Object.assign({},Y),Ve),getTooltipContainer:Z||s||W,ref:N,builtinPlacements:T,overlay:P,visible:Q,onVisibleChange:oe,afterVisibleChange:v??w,overlayInnerStyle:ge,arrowContent:i.createElement("span",{className:`${ie}-arrow-content`}),motion:{motionName:_n(se,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),Q?Mn(te,{className:Ee}):te);return He(i.createElement(Pn.Provider,{value:re},Xe))});rn._InternalPanelDoNotUseOrYouWillBeFired=zo;const No=rn;export{Ut as P,Pr as R,No as T,go as a,Yr as b,Co as c,xo as d,Kr as e,Mo as g,to as i,Yn as u};
 
 
static/assets/{index-78e1e530.js β†’ index-178590a7.js} RENAMED
The diff for this file is too large to render. See raw diff
 
static/assets/{index-16084821.js β†’ index-2367cea0.js} RENAMED
@@ -1 +1 @@
1
- import{c as m,b as E,n as F,R as f,C as N,o as P}from"./index-c062f015.js";import{i as p}from"./gapSize-a2278ff3.js";const x=["wrap","nowrap","wrap-reverse"],u=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],y=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],V=(e,n)=>{const l={};return x.forEach(t=>{l[`${e}-wrap-${t}`]=n.wrap===t}),l},I=(e,n)=>{const l={};return y.forEach(t=>{l[`${e}-align-${t}`]=n.align===t}),l[`${e}-align-stretch`]=!n.align&&!!n.vertical,l},T=(e,n)=>{const l={};return u.forEach(t=>{l[`${e}-justify-${t}`]=n.justify===t}),l};function W(e,n){return m(Object.assign(Object.assign(Object.assign({},V(e,n)),I(e,n)),T(e,n)))}const _=e=>{const{componentCls:n}=e;return{[n]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},L=e=>{const{componentCls:n}=e;return{[n]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},R=e=>{const{componentCls:n}=e,l={};return x.forEach(t=>{l[`${n}-wrap-${t}`]={flexWrap:t}}),l},z=e=>{const{componentCls:n}=e,l={};return y.forEach(t=>{l[`${n}-align-${t}`]={alignItems:t}}),l},A=e=>{const{componentCls:n}=e,l={};return u.forEach(t=>{l[`${n}-justify-${t}`]={justifyContent:t}}),l},D=()=>({}),J=E("Flex",e=>{const{paddingXS:n,padding:l,paddingLG:t}=e,s=F(e,{flexGapSM:n,flexGap:l,flexGapLG:t});return[_(s),L(s),R(s),z(s),A(s)]},D,{resetStyle:!1});var M=globalThis&&globalThis.__rest||function(e,n){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(l[t[s]]=e[t[s]]);return l};const H=f.forwardRef((e,n)=>{const{prefixCls:l,rootClassName:t,className:s,style:d,flex:g,gap:o,children:C,vertical:c=!1,component:S="div"}=e,h=M(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:a,direction:b,getPrefixCls:j}=f.useContext(N),r=j("flex",l),[$,v,w]=J(r),O=c??(a==null?void 0:a.vertical),G=m(s,t,a==null?void 0:a.className,r,v,w,W(r,e),{[`${r}-rtl`]:b==="rtl",[`${r}-gap-${o}`]:p(o),[`${r}-vertical`]:O}),i=Object.assign(Object.assign({},a==null?void 0:a.style),d);return g&&(i.flex=g),o&&!p(o)&&(i.gap=o),$(f.createElement(S,Object.assign({ref:n,className:G,style:i},P(h,["justify","wrap","align"])),C))}),B=H;export{B as F};
 
1
+ import{c as m,a as E,m as F,R as f,C as N,o as P}from"./index-6ffe79a8.js";import{i as p}from"./gapSize-a2278ff3.js";const x=["wrap","nowrap","wrap-reverse"],u=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],y=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],V=(e,n)=>{const l={};return x.forEach(t=>{l[`${e}-wrap-${t}`]=n.wrap===t}),l},I=(e,n)=>{const l={};return y.forEach(t=>{l[`${e}-align-${t}`]=n.align===t}),l[`${e}-align-stretch`]=!n.align&&!!n.vertical,l},T=(e,n)=>{const l={};return u.forEach(t=>{l[`${e}-justify-${t}`]=n.justify===t}),l};function W(e,n){return m(Object.assign(Object.assign(Object.assign({},V(e,n)),I(e,n)),T(e,n)))}const _=e=>{const{componentCls:n}=e;return{[n]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},L=e=>{const{componentCls:n}=e;return{[n]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},R=e=>{const{componentCls:n}=e,l={};return x.forEach(t=>{l[`${n}-wrap-${t}`]={flexWrap:t}}),l},z=e=>{const{componentCls:n}=e,l={};return y.forEach(t=>{l[`${n}-align-${t}`]={alignItems:t}}),l},A=e=>{const{componentCls:n}=e,l={};return u.forEach(t=>{l[`${n}-justify-${t}`]={justifyContent:t}}),l},D=()=>({}),J=E("Flex",e=>{const{paddingXS:n,padding:l,paddingLG:t}=e,s=F(e,{flexGapSM:n,flexGap:l,flexGapLG:t});return[_(s),L(s),R(s),z(s),A(s)]},D,{resetStyle:!1});var M=globalThis&&globalThis.__rest||function(e,n){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(l[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(l[t[s]]=e[t[s]]);return l};const H=f.forwardRef((e,n)=>{const{prefixCls:l,rootClassName:t,className:s,style:d,flex:g,gap:o,children:C,vertical:c=!1,component:S="div"}=e,h=M(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:a,direction:j,getPrefixCls:$}=f.useContext(N),r=$("flex",l),[b,v,w]=J(r),O=c??(a==null?void 0:a.vertical),G=m(s,t,a==null?void 0:a.className,r,v,w,W(r,e),{[`${r}-rtl`]:j==="rtl",[`${r}-gap-${o}`]:p(o),[`${r}-vertical`]:O}),i=Object.assign(Object.assign({},a==null?void 0:a.style),d);return g&&(i.flex=g),o&&!p(o)&&(i.gap=o),b(f.createElement(S,Object.assign({ref:n,className:G,style:i},P(h,["justify","wrap","align"])),C))}),B=H;export{B as F};
static/assets/{index-c062f015.js β†’ index-6ffe79a8.js} RENAMED
The diff for this file is too large to render. See raw diff
 
static/assets/{index-fe1978ec.css β†’ index-8f60c92b.css} RENAMED
@@ -1 +1 @@
1
- .react-flow__node-BenchmarkNode{transition:transform .5s}._selected-node_icmxu_5{border-color:gold}._container_icmxu_8{box-shadow:2px 4px 16px #0000000a;width:200px;overflow:hidden;border-radius:4px;font-size:.625rem;letter-spacing:.5px;color:#1a1a1a}._topBar_icmxu_19{border-top-left-radius:4px;border-top-right-radius:4px;padding:.75rem .8rem;background:var(--white);display:flex;position:relative;align-items:center;transition-duration:1s;transition-property:background;gap:10px}._vcModeOn_icmxu_32 ._topBar_icmxu_19{background:var(--node-color-top)}._labelContainer_icmxu_36{overflow:hidden;position:relative}._nodeType_icmxu_41{text-transform:uppercase;font-weight:550;color:var(--grey400);font-size:10px}._nodeLabel_icmxu_47{font-size:14px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._nodeTypeLarge_icmxu_54{text-transform:capitalize;font-weight:550;color:var(--black);font-size:16px;position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center}._topBarIsVCNone_icmxu_73{border:2px dashed black;border-bottom:0}._bottomBarIsVCNone_icmxu_77{border:2px dashed black;border-top:0}._zoomedOutFar_icmxu_82 ._icon_icmxu_82{width:3rem;margin-right:0}._badge_icmxu_87{position:absolute;top:0;right:0;transform:translate(50%,-50%);z-index:2}._iconContainer_icmxu_94{display:flex;background:var(--node-color-top);border-radius:50%;width:30px;height:30px;justify-content:center;align-content:center;flex-shrink:0;border:2px solid var(--node-color-top)}._vcNone_icmxu_105 ._iconContainer_icmxu_94{border:2px dashed var(--black)}._icon_icmxu_82{display:inline;width:15px}._icon_icmxu_82 path{fill:#fff}._vcModeOn_icmxu_32 ._icon_icmxu_82 path{fill:var(--black)}._containerIsPill_icmxu_119 ._icon_icmxu_82{margin-right:0;width:1.3rem}._displayType_icmxu_123{font-weight:550;line-height:100%}._displayTypeZoomed_icmxu_127{font-weight:550;line-height:100%;text-align:center}._bottomBar_icmxu_70{background:var(--white);transition-duration:.5s;transition-property:background;font-size:.875rem;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._clickableArea_icmxu_142{cursor:pointer}._flex_icmxu_145{display:flex}._benchmark_icmxu_149{height:40px;font-size:.625rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:40px;border-bottom:1px solid var(--grey200);padding-left:.8rem;padding-right:.8rem;transition:background-color .5s}._benchmark_icmxu_149:first-child{border-top:1px solid var(--grey200)}._benchmark_icmxu_149:last-child{border-bottom:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}._benchmark_icmxu_149:hover{background-color:color-mix(in srgb,var(--node-color-top) 20%,var(--white))}._benchmark_icmxu_149._active_icmxu_174{background-color:var(--node-color-top);cursor:default}._benchmark_icmxu_149._benchmarkVc_icmxu_179{background:var(--node-color-top)}._benchmark_icmxu_149._benchmarkVc_icmxu_179._benchmarkNone_icmxu_182{border-style:dashed;border-color:#000;border-width:1px}._benchmark_icmxu_149._benchmarkVc_icmxu_179._benchmarkNone_icmxu_182+._benchmark_icmxu_149._benchmarkVc_icmxu_179._benchmarkNone_icmxu_182{border-top:0 solid}.react-flow__edge{pointer-events:none}._edge_1ljkl_4 path{transition-duration:.5s;transition-property:stroke,stroke-opacity,color,stroke-dash-array,d;opacity:1}._icon_1ljkl_9{width:33px;opacity:1;transform:scale(0);transition-duration:.5s;transition-property:all}._iconVisible_1ljkl_16{opacity:1;transform:scale(1)}._container_mx72m_1{background-color:var(--grey100);border-top:1px solid var(--grey200);flex:1;position:relative;overflow:hidden;transition:background-color .5s}._container_mx72m_1._dim_mx72m_9{background-color:#0000000f}._sidebar_mx72m_12{position:absolute;top:0;right:0;bottom:0;z-index:9}._switchContainer_mx72m_21{position:absolute;bottom:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center}._modelFilterContainer_mx72m_32{position:absolute;top:1.5rem;right:1.5rem;display:flex;gap:20px}._graphNameHeader_mx72m_40{background-color:var(--white);border-radius:8px;box-shadow:2px 2px 10px #0000001f;position:absolute;padding:.625rem 1rem;top:1.5rem;left:1.5rem;display:flex;align-items:center;gap:7px;color:var(--black);font-family:IBM Plex Mono;font-size:1.375rem;font-weight:500;line-height:1}._graphNameHeader_mx72m_40:hover{color:var(--darkTeal)}._graphNameHeaderImg_mx72m_63{border-radius:50%;overflow:hidden;height:1.5rem;width:1.5rem}._graphNameHeaderImg_mx72m_63 img{-o-object-fit:cover;object-fit:cover;height:100%;max-width:100%;width:100%}._legendContainer_132y0_1{border-radius:30px;background:#fff;box-shadow:2px 2px 10px #0000001f;margin-bottom:1rem;padding-left:2rem;padding-right:2rem;display:flex;align-items:center;justify-content:center;opacity:0;transition-property:opacity;transition-duration:.5s}._switchContainer_132y0_18{border-radius:30px;background:#fff;box-shadow:2px 2px 10px #0000001f;margin-bottom:2rem;display:flex;align-items:center;justify-content:center;padding:9px 20px;font-size:14px}._isActive_132y0_34{opacity:1}._clipContainer_132y0_38{margin-right:10px}._contentContainer_132y0_42{transition-delay:0s;transition-duration:.5s;transition-property:transform,width;display:flex;flex-direction:column;align-items:center;justify-content:center}._icon_132y0_56{width:14px}._iconLabel_132y0_60{display:flex;flex-direction:row-reverse;text-align:center;align-items:center;justify-content:center;gap:5px;text-transform:uppercase;font-size:10px}._icons_132y0_70{display:flex;gap:16px;opacity:1;transition-duration:.5s;transition-property:opacity;margin:8px 0}._isActive_132y0_34 ._icons_132y0_70{opacity:1}.react-flow__node-ComputationNode{transition:transform .5s}._container_1e22t_5{box-shadow:2px 4px 16px #0000000a;overflow:hidden;border-radius:60px;width:auto;text-transform:uppercase;font-size:.625rem;letter-spacing:.5px;color:#1a1a1a}._topBar_1e22t_18{padding:.75rem .8rem;background:var(--white);display:flex;position:relative;align-items:center;transition-duration:1s,.5s;transition-property:background,border-color;border-radius:60px;justify-content:center;width:60px;height:60px;border:2px solid var(--white)}._vcModeOn_1e22t_35 ._topBar_1e22t_18{background:var(--node-color-top);border-color:var(--node-color-top)}._container_1e22t_5:hover ._topBar_1e22t_18,._selectedNode_1e22t_41 ._topBar_1e22t_18{border-color:var(--node-color-top)}._vcModeOn_1e22t_35 ._topBarIsVCNone_1e22t_45{border-style:dashed;border-color:#000}._topBarIsVCNone_1e22t_45{border:2px dashed black;border-bottom:0}._bottomBarIsVCNone_1e22t_56{border:2px dashed black;border-top:0}._topBarIsVCNone_1e22t_45{border-bottom:2px dashed black}._badge_1e22t_65{position:absolute;top:0;right:0;transform:translate(50%,-50%);z-index:2}._iconContainer_1e22t_73{display:flex;background:var(--node-color-top);border-radius:50%;width:40px;height:40px;justify-content:center;align-content:center;flex-shrink:0}._icon_1e22t_73{display:inline;width:.8rem}._icon_1e22t_73{margin-right:0;width:1.3rem}._clickableArea_1e22t_94{cursor:pointer}._selectedNode_1e22t_41 ._clickableArea_1e22t_94{cursor:default}._flex_1e22t_100{display:flex}._lineage-page-container_1hcue_1{width:100%;height:100%}._searchWrapper_1hcue_6{display:grid;gap:.8rem;padding-top:1rem;padding-bottom:1rem;position:relative;margin:0 4vw}._searchWrapper_1hcue_6>button{align-items:center;background-color:transparent;border:none;cursor:pointer;color:var(--darkTeal);display:flex;font-size:1rem;font-weight:350;line-height:1.5;gap:7px;padding:0;position:absolute;top:1.25rem;left:0;text-decoration:underline;text-underline-offset:6px;transition:all .2s ease-out}._searchWrapper_1hcue_6>button:hover{color:var(--blueSecondary)}._logo_1hcue_39{display:flex;max-width:250px;margin:0 auto}._logo_1hcue_39 svg{width:100%}@media screen and (min-width: 1440px){._searchWrapper_1hcue_6{grid-template-columns:12vw 1fr;padding:1rem 0;margin:0 1.5rem}._logo_1hcue_39,._searchBar_1hcue_57{align-self:center;grid-row:1}._logo_1hcue_39{grid-column:1 / span 1;width:100%}._searchBar_1hcue_57{grid-column:1 / span 2;justify-self:center}}
 
1
+ .react-flow__node-BenchmarkNode{transition:transform .5s}._selected-node_icmxu_5{border-color:gold}._container_icmxu_8{box-shadow:2px 4px 16px #0000000a;width:200px;overflow:hidden;border-radius:4px;font-size:.625rem;letter-spacing:.5px;color:#1a1a1a}._topBar_icmxu_19{border-top-left-radius:4px;border-top-right-radius:4px;padding:.75rem .8rem;background:var(--white);display:flex;position:relative;align-items:center;transition-duration:1s;transition-property:background;gap:10px}._vcModeOn_icmxu_32 ._topBar_icmxu_19{background:var(--node-color-top)}._labelContainer_icmxu_36{overflow:hidden;position:relative}._nodeType_icmxu_41{text-transform:uppercase;font-weight:550;color:var(--grey400);font-size:10px}._nodeLabel_icmxu_47{font-size:14px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._nodeTypeLarge_icmxu_54{text-transform:capitalize;font-weight:550;color:var(--black);font-size:16px;position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center}._topBarIsVCNone_icmxu_73{border:2px dashed black;border-bottom:0}._bottomBarIsVCNone_icmxu_77{border:2px dashed black;border-top:0}._zoomedOutFar_icmxu_82 ._icon_icmxu_82{width:3rem;margin-right:0}._badge_icmxu_87{position:absolute;top:0;right:0;transform:translate(50%,-50%);z-index:2}._iconContainer_icmxu_94{display:flex;background:var(--node-color-top);border-radius:50%;width:30px;height:30px;justify-content:center;align-content:center;flex-shrink:0;border:2px solid var(--node-color-top)}._vcNone_icmxu_105 ._iconContainer_icmxu_94{border:2px dashed var(--black)}._icon_icmxu_82{display:inline;width:15px}._icon_icmxu_82 path{fill:#fff}._vcModeOn_icmxu_32 ._icon_icmxu_82 path{fill:var(--black)}._containerIsPill_icmxu_119 ._icon_icmxu_82{margin-right:0;width:1.3rem}._displayType_icmxu_123{font-weight:550;line-height:100%}._displayTypeZoomed_icmxu_127{font-weight:550;line-height:100%;text-align:center}._bottomBar_icmxu_70{background:var(--white);transition-duration:.5s;transition-property:background;font-size:.875rem;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._clickableArea_icmxu_142{cursor:pointer}._flex_icmxu_145{display:flex}._benchmark_icmxu_149{height:40px;font-size:.625rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:40px;border-bottom:1px solid var(--grey200);padding-left:.8rem;padding-right:.8rem;transition:background-color .5s}._benchmark_icmxu_149:first-child{border-top:1px solid var(--grey200)}._benchmark_icmxu_149:last-child{border-bottom:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}._benchmark_icmxu_149:hover{background-color:color-mix(in srgb,var(--node-color-top) 20%,var(--white))}._benchmark_icmxu_149._active_icmxu_174{background-color:var(--node-color-top);cursor:default}._benchmark_icmxu_149._benchmarkVc_icmxu_179{background:var(--node-color-top)}._benchmark_icmxu_149._benchmarkVc_icmxu_179._benchmarkNone_icmxu_182{border-style:dashed;border-color:#000;border-width:1px}._benchmark_icmxu_149._benchmarkVc_icmxu_179._benchmarkNone_icmxu_182+._benchmark_icmxu_149._benchmarkVc_icmxu_179._benchmarkNone_icmxu_182{border-top:0 solid}.react-flow__edge{pointer-events:none}._edge_1ljkl_4 path{transition-duration:.5s;transition-property:stroke,stroke-opacity,color,stroke-dash-array,d;opacity:1}._icon_1ljkl_9{width:33px;opacity:1;transform:scale(0);transition-duration:.5s;transition-property:all}._iconVisible_1ljkl_16{opacity:1;transform:scale(1)}._container_mx72m_1{background-color:var(--grey100);border-top:1px solid var(--grey200);flex:1;position:relative;overflow:hidden;transition:background-color .5s}._container_mx72m_1._dim_mx72m_9{background-color:#0000000f}._sidebar_mx72m_12{position:absolute;top:0;right:0;bottom:0;z-index:9}._switchContainer_mx72m_21{position:absolute;bottom:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center}._modelFilterContainer_mx72m_32{position:absolute;top:1.5rem;right:1.5rem;display:flex;gap:20px}._graphNameHeader_mx72m_40{background-color:var(--white);border-radius:8px;box-shadow:2px 2px 10px #0000001f;position:absolute;padding:.625rem 1rem;top:1.5rem;left:1.5rem;display:flex;align-items:center;gap:7px;color:var(--black);font-family:IBM Plex Mono;font-size:1.375rem;font-weight:500;line-height:1}._graphNameHeader_mx72m_40:hover{color:var(--darkTeal)}._graphNameHeaderImg_mx72m_63{border-radius:50%;overflow:hidden;height:1.5rem;width:1.5rem}._graphNameHeaderImg_mx72m_63 img{-o-object-fit:cover;object-fit:cover;height:100%;max-width:100%;width:100%}._legendContainer_k4zza_1{border-radius:30px;background:#fff;box-shadow:2px 2px 10px #0000001f;margin-bottom:1rem;padding-left:2rem;padding-right:2rem;display:flex;align-items:center;justify-content:center;opacity:0;transition-property:opacity;transition-duration:.5s}._switchContainer_k4zza_18{border-radius:30px;background:#fff;box-shadow:2px 2px 10px #0000001f;margin-bottom:2rem;display:flex;align-items:center;justify-content:center;padding:9px 20px;font-size:14px}._isActive_k4zza_34{opacity:1}._clipContainer_k4zza_38{margin-right:10px}._contentContainer_k4zza_42{transition-delay:0s;transition-duration:.5s;transition-property:transform,width;display:flex;flex-direction:column;align-items:center;justify-content:center}._icon_k4zza_56{width:14px}._iconLabel_k4zza_60{display:flex;flex-direction:row-reverse;text-align:center;align-items:center;justify-content:center;gap:5px;text-transform:uppercase;font-size:10px}._icons_k4zza_70{display:flex;gap:16px;opacity:1;transition-duration:.5s;transition-property:opacity;margin:8px 0}._isActive_k4zza_34 ._icons_k4zza_70{opacity:1}._copyButton_k4zza_88{align-content:center;align-items:center;color:"#000000"}._copyButton_k4zza_88:hover{cursor:pointer;color:"#ffffff";background-color:"#000000"}._description_k4zza_100{font-size:1.4rem;margin:0 auto;max-width:634px}._description_k4zza_100 a{color:var(--darkTeal);text-decoration:underline;text-underline-offset:6px}._description_k4zza_100 a:hover{color:var(--blueSecondary);text-decoration:underline}.react-flow__node-ComputationNode{transition:transform .5s}._container_1e22t_5{box-shadow:2px 4px 16px #0000000a;overflow:hidden;border-radius:60px;width:auto;text-transform:uppercase;font-size:.625rem;letter-spacing:.5px;color:#1a1a1a}._topBar_1e22t_18{padding:.75rem .8rem;background:var(--white);display:flex;position:relative;align-items:center;transition-duration:1s,.5s;transition-property:background,border-color;border-radius:60px;justify-content:center;width:60px;height:60px;border:2px solid var(--white)}._vcModeOn_1e22t_35 ._topBar_1e22t_18{background:var(--node-color-top);border-color:var(--node-color-top)}._container_1e22t_5:hover ._topBar_1e22t_18,._selectedNode_1e22t_41 ._topBar_1e22t_18{border-color:var(--node-color-top)}._vcModeOn_1e22t_35 ._topBarIsVCNone_1e22t_45{border-style:dashed;border-color:#000}._topBarIsVCNone_1e22t_45{border:2px dashed black;border-bottom:0}._bottomBarIsVCNone_1e22t_56{border:2px dashed black;border-top:0}._topBarIsVCNone_1e22t_45{border-bottom:2px dashed black}._badge_1e22t_65{position:absolute;top:0;right:0;transform:translate(50%,-50%);z-index:2}._iconContainer_1e22t_73{display:flex;background:var(--node-color-top);border-radius:50%;width:40px;height:40px;justify-content:center;align-content:center;flex-shrink:0}._icon_1e22t_73{display:inline;width:.8rem}._icon_1e22t_73{margin-right:0;width:1.3rem}._clickableArea_1e22t_94{cursor:pointer}._selectedNode_1e22t_41 ._clickableArea_1e22t_94{cursor:default}._flex_1e22t_100{display:flex}._lineage-page-container_1k1ee_1{width:100%;height:100%}._searchWrapper_1k1ee_6{display:grid;gap:.8rem;padding-top:1rem;padding-bottom:1rem;position:relative;margin:0 4vw}._searchWrapper_1k1ee_6>button{align-items:center;background-color:transparent;border:none;cursor:pointer;color:var(--darkTeal);display:flex;font-size:1rem;font-weight:350;line-height:1.5;gap:7px;padding:0;position:absolute;top:1.25rem;left:0;text-decoration:underline;text-underline-offset:6px;transition:all .2s ease-out}._searchWrapper_1k1ee_6>button:hover{color:var(--blueSecondary)}._logo_1k1ee_39{display:flex;max-width:250px;margin:0 auto}._logo_1k1ee_39 svg{width:100%}@media screen and (min-width: 1440px){._searchWrapper_1k1ee_6{grid-template-columns:12vw 1fr;padding:1rem 0;margin:0 1.5rem}._logo_1k1ee_39,._searchBar_1k1ee_57{align-self:center;grid-row:1}._logo_1k1ee_39{grid-column:1 / span 1;width:100%}._searchBar_1k1ee_57{grid-column:1 / span 2;justify-self:center}}
static/assets/index-be54f8cb.js DELETED
@@ -1,2 +0,0 @@
1
- var qe=(e,n,t)=>{if(!n.has(e))throw TypeError("Cannot "+t)};var u=(e,n,t)=>(qe(e,n,"read from private field"),t?t.call(e):n.get(e)),S=(e,n,t)=>{if(n.has(e))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(e):n.set(e,t)},W=(e,n,t,r)=>(qe(e,n,"write to private field"),r?r.call(e,t):n.set(e,t),t);var $e=(e,n,t,r)=>({set _(o){W(e,n,o,t)},get _(){return u(e,n,r)}}),ee=(e,n,t)=>(qe(e,n,"access private method"),t);import{r as _,p as Xt,q as Kt,c as H,s as vn,_ as Qt,K as bn,b as Zt,n as Jt,u as fe,v as er,w as nr,T as tr,C as rr,D as or,x as sr,W as ir,y as ar,R as we,i as De,z as ze,B as dn,j as m,E as He,l as Hn,m as be,F as cr,G as lr,H as dr,I as hr,J as ur,M as yn}from"./index-c062f015.js";/* empty css */import{u as tn,s as fr,c as pr,g as mr,a as gr,b as Wn,d as wr,e as Se,f as hn,r as Un,N as Oe,H as Re,P as We,D as qn,M as Yn,C as Xn,h as Kn,T as Qn,A as Zn,B as Jn,i as et,j as nt,k as tt,l as rt,m as ot,n as st,o as vr,p as br,q as yr,E as kr,G as Er,t as it,v as Nr,w as at,x as ct,R as _r,y as xr,z as Cr,F as Ir,I as Sr,J as $r,K as jr,L as Tr}from"./stripPrefix-e3f3bf0d.js";import{g as lt,Z as Or,a as Lr,G as Pr}from"./routes-17d4ed4d.js";import{u as dt}from"./index-0bfe7458.js";import{A as Mr,S as Br}from"./AILineageExplorerLogo-4258f229.js";var Fr=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ht=_.forwardRef(function(e,n){var t,r=e.prefixCls,o=r===void 0?"rc-switch":r,s=e.className,i=e.checked,a=e.defaultChecked,c=e.disabled,l=e.loadingIcon,d=e.checkedChildren,h=e.unCheckedChildren,f=e.onClick,p=e.onChange,g=e.onKeyDown,v=Xt(e,Fr),w=dt(!1,{value:i,defaultValue:a}),y=Kt(w,2),b=y[0],k=y[1];function x(N,V){var T=b;return c||(T=N,k(T),p==null||p(T,V)),T}function L(N){N.which===bn.LEFT?x(!1,N):N.which===bn.RIGHT&&x(!0,N),g==null||g(N)}function E(N){var V=x(!b,N);f==null||f(V,N)}var P=H(o,s,(t={},vn(t,"".concat(o,"-checked"),b),vn(t,"".concat(o,"-disabled"),c),t));return _.createElement("button",Qt({},v,{type:"button",role:"switch","aria-checked":b,disabled:c,className:P,ref:n,onKeyDown:L,onClick:E}),l,_.createElement("span",{className:"".concat(o,"-inner")},_.createElement("span",{className:"".concat(o,"-inner-checked")},d),_.createElement("span",{className:"".concat(o,"-inner-unchecked")},h)))});ht.displayName="Switch";const Gr=e=>{const{componentCls:n,trackHeightSM:t,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:s,innerMaxMarginSM:i,handleSizeSM:a,calc:c}=e,l=`${n}-inner`,d=fe(c(a).add(c(r).mul(2)).equal()),h=fe(c(i).mul(2).equal());return{[n]:{[`&${n}-small`]:{minWidth:o,height:t,lineHeight:fe(t),[`${n}-inner`]:{paddingInlineStart:i,paddingInlineEnd:s,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${h})`,marginInlineEnd:`calc(100% - ${d} + ${h})`},[`${l}-unchecked`]:{marginTop:c(t).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:a,height:a},[`${n}-loading-icon`]:{top:c(c(a).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:s,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${h})`,marginInlineEnd:`calc(-100% + ${d} - ${h})`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${fe(c(a).add(r).equal())})`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${n}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},Vr=e=>{const{componentCls:n,handleSize:t,calc:r}=e;return{[n]:{[`${n}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(t).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${n}-checked ${n}-loading-icon`]:{color:e.switchColor}}}},Rr=e=>{const{componentCls:n,trackPadding:t,handleBg:r,handleShadow:o,handleSize:s,calc:i}=e,a=`${n}-handle`;return{[n]:{[a]:{position:"absolute",top:t,insetInlineStart:t,width:s,height:s,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(s).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${a}`]:{insetInlineStart:`calc(100% - ${fe(i(s).add(t).equal())})`},[`&:not(${n}-disabled):active`]:{[`${a}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${a}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Ar=e=>{const{componentCls:n,trackHeight:t,trackPadding:r,innerMinMargin:o,innerMaxMargin:s,handleSize:i,calc:a}=e,c=`${n}-inner`,l=fe(a(i).add(a(r).mul(2)).equal()),d=fe(a(s).mul(2).equal());return{[n]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:s,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${l} - ${d})`,marginInlineEnd:`calc(100% - ${l} + ${d})`},[`${c}-unchecked`]:{marginTop:a(t).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:s,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${l} + ${d})`,marginInlineEnd:`calc(-100% + ${l} - ${d})`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:a(r).mul(2).equal(),marginInlineEnd:a(r).mul(-1).mul(2).equal()}},[`&${n}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:a(r).mul(-1).mul(2).equal(),marginInlineEnd:a(r).mul(2).equal()}}}}}},Dr=e=>{const{componentCls:n,trackHeight:t,trackMinWidth:r}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},er(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:t,lineHeight:`${fe(t)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${n}-disabled)`]:{background:e.colorTextTertiary}}),nr(e)),{[`&${n}-checked`]:{background:e.switchColor,[`&:hover:not(${n}-disabled)`]:{background:e.colorPrimaryHover}},[`&${n}-loading, &${n}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${n}-rtl`]:{direction:"rtl"}})}},zr=e=>{const{fontSize:n,lineHeight:t,controlHeight:r,colorWhite:o}=e,s=n*t,i=r/2,a=2,c=s-a*2,l=i-a*2;return{trackHeight:s,trackHeightSM:i,trackMinWidth:c*2+a*4,trackMinWidthSM:l*2+a*2,trackPadding:a,handleBg:o,handleSize:c,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new tr("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+a+a*2,innerMinMarginSM:l/2,innerMaxMarginSM:l+a+a*2}},Hr=Zt("Switch",e=>{const n=Jt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Dr(n),Ar(n),Rr(n),Vr(n),Gr(n)]},zr);var Wr=globalThis&&globalThis.__rest||function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};const ut=_.forwardRef((e,n)=>{const{prefixCls:t,size:r,disabled:o,loading:s,className:i,rootClassName:a,style:c,checked:l,value:d,defaultChecked:h,defaultValue:f,onChange:p}=e,g=Wr(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,w]=dt(!1,{value:l??d,defaultValue:h??f}),{getPrefixCls:y,direction:b,switch:k}=_.useContext(rr),x=_.useContext(or),L=(o??x)||s,E=y("switch",t),P=_.createElement("div",{className:`${E}-handle`},s&&_.createElement(ar,{className:`${E}-loading-icon`})),[N,V,T]=Hr(E),oe=sr(r),pe=H(k==null?void 0:k.className,{[`${E}-small`]:oe==="small",[`${E}-loading`]:s,[`${E}-rtl`]:b==="rtl"},i,a,V,T),I=Object.assign(Object.assign({},k==null?void 0:k.style),c),O=function(){w(arguments.length<=0?void 0:arguments[0]),p==null||p.apply(void 0,arguments)};return N(_.createElement(ir,{component:"Switch"},_.createElement(ht,Object.assign({},g,{checked:v,onChange:O,prefixCls:E,className:pe,style:I,disabled:L,ref:n,loadingIcon:P}))))});ut.__ANT_SWITCH=!0;const Ur=ut;var Q;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Q||(Q={}));function qr({color:e,dimensions:n,lineWidth:t}){return we.createElement("path",{stroke:e,strokeWidth:t,d:`M${n[0]/2} 0 V${n[1]} M0 ${n[1]/2} H${n[0]}`})}function Yr({color:e,radius:n}){return we.createElement("circle",{cx:n,cy:n,r:n,fill:e})}const Xr={[Q.Dots]:"#91919a",[Q.Lines]:"#eee",[Q.Cross]:"#e2e2e2"},Kr={[Q.Dots]:1,[Q.Lines]:1,[Q.Cross]:6},Qr=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function ft({id:e,variant:n=Q.Dots,gap:t=20,size:r,lineWidth:o=1,offset:s=2,color:i,style:a,className:c}){const l=_.useRef(null),{transform:d,patternId:h}=tn(Qr,fr),f=i||Xr[n],p=r||Kr[n],g=n===Q.Dots,v=n===Q.Cross,w=Array.isArray(t)?t:[t,t],y=[w[0]*d[2]||1,w[1]*d[2]||1],b=p*d[2],k=v?[b,b]:y,x=g?[b/s,b/s]:[k[0]/s,k[1]/s];return we.createElement("svg",{className:pr(["react-flow__background",c]),style:{...a,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:l,"data-testid":"rf__background"},we.createElement("pattern",{id:h+e,x:d[0]%y[0],y:d[1]%y[1],width:y[0],height:y[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${x[0]},-${x[1]})`},g?we.createElement(Yr,{color:f,radius:b/s}):we.createElement(qr,{dimensions:k,color:f,lineWidth:o})),we.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${h+e})`}))}ft.displayName="Background";var Zr=_.memo(ft);async function Jr(e,n){e||(e="ClimateGPT-13B"),Wn(e);const t=`${mr()}/${n}`,r=await fetch(t,{});return r.status===404||r.status===401?{nodes:[],edges:[]}:(await r.json()).graph}async function eo(e,n){Wn(e);const t=`${gr()}/${n}`,r=await fetch(t,{});return r.status===404||r.status===401?{nodes:[],edges:[]}:(await r.json()).graph}const no="_container_icmxu_8",to="_topBar_icmxu_19",ro="_vcModeOn_icmxu_32",oo="_labelContainer_icmxu_36",so="_nodeType_icmxu_41",io="_nodeLabel_icmxu_47",ao="_nodeTypeLarge_icmxu_54",co="_topBarIsVCUnknown_icmxu_68",lo="_bottomBarIsVCUnknown_icmxu_70",ho="_topBarIsVCNone_icmxu_73",uo="_bottomBarIsVCNone_icmxu_77",fo="_zoomedOutFar_icmxu_82",po="_icon_icmxu_82",mo="_badge_icmxu_87",go="_iconContainer_icmxu_94",wo="_vcNone_icmxu_105",vo="_containerIsPill_icmxu_119",bo="_displayType_icmxu_123",yo="_displayTypeZoomed_icmxu_127",ko="_bottomBar_icmxu_70",Eo="_clickableArea_icmxu_142",No="_flex_icmxu_145",_o="_benchmark_icmxu_149",xo="_active_icmxu_174",Co="_benchmarkVc_icmxu_179",Io="_benchmarkNone_icmxu_182",So="_vcTrusted_icmxu_191",$o="_vcUntrusted_icmxu_193",jo="_vcUnknown_icmxu_195",C={"selected-node":"_selected-node_icmxu_5",container:no,topBar:to,vcModeOn:ro,labelContainer:oo,nodeType:so,nodeLabel:io,nodeTypeLarge:ao,topBarIsVCUnknown:co,bottomBarIsVCUnknown:lo,topBarIsVCNone:ho,bottomBarIsVCNone:uo,zoomedOutFar:fo,icon:po,badge:mo,iconContainer:go,vcNone:wo,containerIsPill:vo,displayType:bo,displayTypeZoomed:yo,bottomBar:ko,clickableArea:Eo,flex:No,benchmark:_o,active:xo,benchmarkVc:Co,benchmarkNone:Io,vcTrusted:So,vcUntrusted:$o,vcUnknown:jo},To={DataIcon:qn,ModelIcon:Yn,ComputationIcon:Xn,DocumentIcon:Kn,TokenIcon:Qn,AttributionIcon:Zn,BenchmarkIcon:Jn,Benchmark_resultIcon:et,CertificateIcon:nt,CodeIcon:tt,DatabaseIcon:rt,DatasetIcon:ot,Media_fileIcon:st},Oo=e=>To[e]||null,Lo=({top:e,bottom:n})=>({"--node-color-top":e,"--node-color-bottom":n}),Po=e=>e.transform[2]>=Or,Mo=e=>e.transform[2]>=Lr,Bo=({id:e,data:n})=>{const{nodeColor:t,label:r,icon:o,sourcePosition:s,displayType:i,typeLabel:a,governanceNodes:c,isSourceForConnection:l,isTargetForConnection:d,benchmarks:h}=n;wr();const f=De(),p=ze(),[g,v]=dn(),w=p.nodeCid,{graphState:y,vcsToGraph:b,governanceFilter:k,setGovernanceFilter:x,sinks:L,activeSink:E}=Se(M=>({graphState:M.graphState,vcsToGraph:M.vcsToGraph,governanceFilter:M.governanceFilter,setGovernanceFilter:M.setGovernanceFilter,sinks:M.sinks,activeSink:M.activeSink})),P=E?L[E]:null,N=P?P.nodes.has(e)||E===e:!1,V=new Map(h==null?void 0:h.map(M=>[M.id,hn(M.id,b)])),T=Un(Array.from(V.values())),oe=h?h.find(M=>M.id===w):!1,pe=M=>{let de=1;return P&&!w&&(de=N?1:.1),P&&w&&(P.nodes.has(w)||E===w?N?oe?de=1:de=.5:de=.1:de=oe?1:.1),!P&&w&&(de=oe?1:.1),k?{opacity:k.find(qt=>c.some(Yt=>Yt.id===qt))?1:.2}:{opacity:de}},I={"vc-off":{top:t,bottom:"white"},"vc-on":{top:Oe[T],bottom:Oe[T]}},O=y==="vc-on",J={...Lo(I[y])},R=H(C.container,{[C.vcModeOn]:O,[C.vcTrusted]:O&&T==="trusted",[C.vcUntrusted]:O&&T==="untrusted",[C.vcUnknown]:O&&T==="unknown",[C.vcNone]:O&&T==="none"}),se=H(C.topBar,{[C.topBarIsVCUnknown]:T==="unknown"&&y==="vc-on",[C.topBarIsVCNone]:T==="none"&&y==="vc-on"}),$=H(C.bottomBar,{[C.bottomBarIsVCUnknown]:T==="unknown"&&y==="vc-on",[C.bottomBarIsVCNone]:T==="none"&&y==="vc-on"});H(C.zoomedOut,{});const j=Oo(o),Y=r.replace(/.{1,20}/g,`$&
2
- `);_.useEffect(()=>{w&&x(null)},[w]);const X={top:"30px"},D=tn(Po);tn(Mo);const[me,wn]=_.useState(!0);return m.jsxs(He.div,{style:J,className:R,animate:{...pe()},initial:{opacity:0},transition:{duration:1},children:[m.jsxs("div",{className:C.clickableArea,children:[m.jsxs("div",{className:se,children:[m.jsx("span",{className:C.iconContainer,children:j&&m.jsx(j,{className:C.icon})}),m.jsxs("div",{className:C.labelContainer,children:[m.jsx("div",{className:C.nodeType,style:{visibility:D?"visible":"hidden"},children:i}),m.jsx("div",{className:C.nodeLabel,style:{visibility:D?"visible":"hidden"},children:Y}),m.jsx("div",{className:C.nodeTypeLarge,style:{display:D?"none":"flex"},children:i})]})]}),m.jsx("div",{className:$,style:{display:me?"block":"none"},children:h==null?void 0:h.map((M,de)=>{const ke=V.get(M.id);return m.jsx("div",{"data-benchmark":M.id,style:{"--node-color-top":O?Oe[ke]:t},className:H(C.benchmark,{[C.active]:w===M.id,[C.benchmarkVc]:O,[C.benchmarkTrusted]:O&&ke==="trusted",[C.benchmarkUntrusted]:O&&ke==="untrusted",[C.benchmarkUnknown]:O&&ke==="unknown",[C.benchmarkNone]:O&&ke==="none"}),onClick:()=>{w!==M.id&&f(lt(`${p.owner}/${p.repo}`)+"/"+M.id+`?${g.toString()}`)},children:M.data.label},M.id)})})]}),d&&m.jsx(Re,{type:"target",position:We.Left,id:"left",style:X}),l&&m.jsx(Re,{type:"source",position:s,id:"source",style:X})]})},Fo=_.memo(Bo),Go="_edge_1ljkl_4",Vo="_icon_1ljkl_9",Ro="_iconVisible_1ljkl_16",Ao={edge:Go,icon:Vo,iconVisible:Ro};function Do(e){var x,L,E,P;const n=ze(),{governanceFilter:t,graphState:r,sinks:o,activeSink:s,getNodeFromFullGraph:i}=Se(N=>({governanceFilter:N.governanceFilter,graphState:N.graphState,sinks:N.sinks,activeSink:N.activeSink,getNodeFromFullGraph:N.getNodeFromFullGraph})),a=s?o[s]:null,c=a?a.edges.has(e.id)||s===e.id:!1;let l=n.nodeCid;if(l){const N=i(l);l=(x=N==null?void 0:N.data.model)!=null&&x.id?`${N.data.model.id}-benchmarks`:l}const[d]=vr(e),{vcsToGraph:h}=Se(N=>({vcsToGraph:N.vcsToGraph}));let f=br(e.id,h);if((L=e.data)!=null&&L.benchmarks){const N=new Map(e.data.benchmarks.map(V=>[V,hn(V,h)]));f=Un(Array.from(N.values()))}const p=r==="vc-on",g=p?kr[f]:"#475569",v={...e.style},w=t,y=((P=(E=e.data)==null?void 0:E.benchmarks)==null?void 0:P.includes(l))||l===e.target||l===e.source,b=l&&!y||w;v.stroke=g,f==="none"&&p&&(v.strokeDasharray="5");let k=1;return a&&!l&&(k=c?1:.05),a&&l&&(a.nodes.has(l)||s==l?c?y?k=1:k=.5:k=.05:k=b?.05:1),!a&&l&&(k=b?.05:1),w&&(k=.05),m.jsx(He.g,{className:Ao.edge,animate:{opacity:k},initial:{opacity:0},transition:{duration:1},children:m.jsx(yr,{path:d,style:v})})}const zo="_container_mx72m_1",Ho="_dim_mx72m_9",Wo="_sidebar_mx72m_12",Uo="_switchContainer_mx72m_21",qo="_modelFilterContainer_mx72m_32",Yo="_graphNameHeader_mx72m_40",Xo="_graphNameHeaderImg_mx72m_63",je={container:zo,dim:Ho,sidebar:Wo,switchContainer:Uo,modelFilterContainer:qo,graphNameHeader:Yo,graphNameHeaderImg:Xo},Ko="_legendContainer_132y0_1",Qo="_switchContainer_132y0_18",Zo="_isActive_132y0_34",Jo="_clipContainer_132y0_38",es="_contentContainer_132y0_42",ns="_icon_132y0_56",ts="_iconLabel_132y0_60",rs="_icons_132y0_70",os="_switchLabel_132y0_83",B={legendContainer:Ko,switchContainer:Qo,isActive:Zo,clipContainer:Jo,contentContainer:es,icon:ns,iconLabel:ts,icons:rs,switchLabel:os},ss=({className:e})=>m.jsx("svg",{className:`${e}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:m.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"#26D958"})}),is=({className:e})=>m.jsx("svg",{className:`${e}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 33 33",children:m.jsx("circle",{cx:"16.3206",cy:"16",r:"15",fill:"white",stroke:"#475569",strokeWidth:"2",strokeDasharray:"15 5"})}),as=({className:e})=>m.jsx("svg",{className:`${e}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 33",children:m.jsx("circle",{cx:"16",cy:"16.5285",r:"16",fill:"#E2E8F0"})}),cs=({className:e})=>m.jsx("svg",{className:`${e}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 33",children:m.jsx("circle",{cx:"16",cy:"16.9263",r:"16",fill:"#FF6682"})}),ls=({selected:e,onClick:n})=>{const t=H(B.legendContainer,{[B.isActive]:e});return H(B.pill,{[B.isActive]:!0}),H(B.secondLabel,{[B.secondLabelActive]:e}),m.jsxs(m.Fragment,{children:[m.jsx("div",{className:t,children:m.jsxs("div",{className:B.icons,children:[m.jsxs("span",{className:B.iconLabel,children:["Trusted",m.jsx(ss,{className:B.icon})]}),m.jsxs("span",{className:B.iconLabel,children:["Untrusted ",m.jsx(cs,{className:B.icon})]}),m.jsxs("span",{className:B.iconLabel,children:["Unknown ",m.jsx(as,{className:B.icon})]}),m.jsxs("span",{className:B.iconLabel,children:["None ",m.jsx(is,{className:B.icon})]})]})}),m.jsxs("div",{className:B.switchContainer,children:[m.jsx("div",{className:B.clipContainer,children:m.jsx("div",{className:B.contentContainer,children:m.jsx("span",{className:B.switchLabel,children:"Verified Certificate View"})})}),m.jsx(Hn,{theme:{components:{Switch:{handleSize:8,trackPadding:5,trackHeight:18,trackMinWidth:33,colorPrimary:be.darkBlue,colorTextQuaternary:"#CECECF",colorPrimaryBorder:"rgb(0, 0, 0)",colorPrimaryHover:be.violet,handleBg:"rgb(255, 255, 255)",colorTextTertiary:"rgba(30, 30, 30, 0.45)",colorText:"rgba(110, 110, 110, 0.88)",colorTextLightSolid:"rgb(225, 225, 225)",colorWhite:"rgb(255, 255, 255)",opacityLoading:1}}},children:m.jsx(Ur,{defaultChecked:e,onChange:n})})]})]})},ds="_container_1e22t_5",hs="_topBar_1e22t_18",us="_vcModeOn_1e22t_35",fs="_selectedNode_1e22t_41",ps="_topBarIsVCNone_1e22t_45",ms="_bottomBarIsVCUnknown_1e22t_49",gs="_bottomBarIsVCNone_1e22t_56",ws="_badge_1e22t_65",vs="_iconContainer_1e22t_73",bs="_icon_1e22t_73",ys="_clickableArea_1e22t_94",ks="_flex_1e22t_100",ne={container:ds,topBar:hs,vcModeOn:us,selectedNode:fs,topBarIsVCNone:ps,bottomBarIsVCUnknown:ms,bottomBarIsVCNone:gs,badge:ws,iconContainer:vs,icon:bs,clickableArea:ys,flex:ks},Es={DataIcon:qn,ModelIcon:Yn,ComputationIcon:Xn,DocumentIcon:Kn,TokenIcon:Qn,AttributionIcon:Zn,BenchmarkIcon:Jn,Benchmark_resultIcon:et,CertificateIcon:nt,CodeIcon:tt,DatabaseIcon:rt,DatasetIcon:ot,Media_fileIcon:st},Ns=e=>Es[e]||null,_s=({top:e,bottom:n})=>({"--node-color-top":e,"--node-color-bottom":n}),xs=({id:e,data:n})=>{const{nodeColor:t,icon:r,sourcePosition:o,governanceNodes:s,isSourceForConnection:i,isTargetForConnection:a}=n,c=De(),l=ze(),[d,h]=dn(),f=l.nodeCid,{graphState:p,vcsToGraph:g,governanceFilter:v,setGovernanceFilter:w,sinks:y,activeSink:b,getNodeFromFullGraph:k}=Se($=>({graphState:$.graphState,vcsToGraph:$.vcsToGraph,governanceFilter:$.governanceFilter,setGovernanceFilter:$.setGovernanceFilter,sinks:$.sinks,activeSink:$.activeSink,getNodeFromFullGraph:$.getNodeFromFullGraph})),x=b?y[b]:null,L=x?x.nodes.has(e)||b===e:!1,E=f===e,P=hn(e,g),N=$=>{var Y;let j=1;if(x&&!f&&(j=L?1:.1),x&&f){const X=k(f),D=(Y=X==null?void 0:X.data.model)!=null&&Y.id?`${X.data.model.id}-benchmarks`:f;x.nodes.has(D)||b===D?L?D===$?j=1:j=.5:j=.1:j=D!==$?.1:1}return!x&&f&&(j=f!==$?.1:1),v?{opacity:v.find(D=>s.some(me=>me.id===D))?1:.2}:{opacity:j}},V=$=>{$.altKey?h(j=>({...j,sourceNode:e})):E||c(lt(`${l.owner}/${l.repo}`)+"/"+e+`?${d.toString()}`)},T={"vc-off":{top:t,bottom:"white"},"vc-on":{top:Oe[P],bottom:Oe[P]}},oe={..._s(T[p])},pe=H(ne.container,{[ne.selectedNode]:E,[ne.vcModeOn]:p==="vc-on"}),I=H(ne.topBar,{[ne.topBarIsVCUnknown]:P==="unknown"&&p==="vc-on",[ne.topBarIsVCNone]:P==="none"&&p==="vc-on"}),O=Ns(r),J=$=>{const j=[...v||[]],Y=j.indexOf($);Y>-1?j.splice(Y,1):j.push($),j.length===0?w(null):w(j)},R=()=>{w(null)};_.useEffect(()=>{f&&w(null)},[f]);const se={top:"50%"};return m.jsxs(He.div,{style:oe,className:pe,animate:{...N(e)},initial:{opacity:0},transition:{duration:1},children:[m.jsx("div",{className:"popup-container"}),m.jsx("div",{className:ne.badge,children:s.length>0&&m.jsx(Er,{governanceNodes:s,onGovernanceSelect:J,onGovernanceClose:R,governanceFilter:v})}),m.jsx("div",{className:ne.clickableArea,onClick:V,children:m.jsx("div",{className:I,children:m.jsx("span",{className:ne.iconContainer,children:O&&m.jsx(O,{className:ne.icon})})})}),a&&m.jsx(Re,{type:"target",position:We.Left,id:"left",style:se}),i&&m.jsx(Re,{type:"source",position:o,id:"source",style:se})]})},Cs=_.memo(xs);var Is="\0",ge="\0",kn="",A,ve,z,Pe,Ne,_e,U,te,he,re,ue,ie,ae,xe,Ce,ce,K,Me,rn,Dn;let Ss=(Dn=class{constructor(n){S(this,Me);S(this,A,!0);S(this,ve,!1);S(this,z,!1);S(this,Pe,void 0);S(this,Ne,()=>{});S(this,_e,()=>{});S(this,U,{});S(this,te,{});S(this,he,{});S(this,re,{});S(this,ue,{});S(this,ie,{});S(this,ae,{});S(this,xe,0);S(this,Ce,0);S(this,ce,void 0);S(this,K,void 0);n&&(W(this,A,n.hasOwnProperty("directed")?n.directed:!0),W(this,ve,n.hasOwnProperty("multigraph")?n.multigraph:!1),W(this,z,n.hasOwnProperty("compound")?n.compound:!1)),u(this,z)&&(W(this,ce,{}),W(this,K,{}),u(this,K)[ge]={})}isDirected(){return u(this,A)}isMultigraph(){return u(this,ve)}isCompound(){return u(this,z)}setGraph(n){return W(this,Pe,n),this}graph(){return u(this,Pe)}setDefaultNodeLabel(n){return W(this,Ne,n),typeof n!="function"&&W(this,Ne,()=>n),this}nodeCount(){return u(this,xe)}nodes(){return Object.keys(u(this,U))}sources(){var n=this;return this.nodes().filter(t=>Object.keys(u(n,te)[t]).length===0)}sinks(){var n=this;return this.nodes().filter(t=>Object.keys(u(n,re)[t]).length===0)}setNodes(n,t){var r=arguments,o=this;return n.forEach(function(s){r.length>1?o.setNode(s,t):o.setNode(s)}),this}setNode(n,t){return u(this,U).hasOwnProperty(n)?(arguments.length>1&&(u(this,U)[n]=t),this):(u(this,U)[n]=arguments.length>1?t:u(this,Ne).call(this,n),u(this,z)&&(u(this,ce)[n]=ge,u(this,K)[n]={},u(this,K)[ge][n]=!0),u(this,te)[n]={},u(this,he)[n]={},u(this,re)[n]={},u(this,ue)[n]={},++$e(this,xe)._,this)}node(n){return u(this,U)[n]}hasNode(n){return u(this,U).hasOwnProperty(n)}removeNode(n){var t=this;if(u(this,U).hasOwnProperty(n)){var r=o=>t.removeEdge(u(t,ie)[o]);delete u(this,U)[n],u(this,z)&&(ee(this,Me,rn).call(this,n),delete u(this,ce)[n],this.children(n).forEach(function(o){t.setParent(o)}),delete u(this,K)[n]),Object.keys(u(this,te)[n]).forEach(r),delete u(this,te)[n],delete u(this,he)[n],Object.keys(u(this,re)[n]).forEach(r),delete u(this,re)[n],delete u(this,ue)[n],--$e(this,xe)._}return this}setParent(n,t){if(!u(this,z))throw new Error("Cannot set parent in a non-compound graph");if(t===void 0)t=ge;else{t+="";for(var r=t;r!==void 0;r=this.parent(r))if(r===n)throw new Error("Setting "+t+" as parent of "+n+" would create a cycle");this.setNode(t)}return this.setNode(n),ee(this,Me,rn).call(this,n),u(this,ce)[n]=t,u(this,K)[t][n]=!0,this}parent(n){if(u(this,z)){var t=u(this,ce)[n];if(t!==ge)return t}}children(n=ge){if(u(this,z)){var t=u(this,K)[n];if(t)return Object.keys(t)}else{if(n===ge)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var t=u(this,he)[n];if(t)return Object.keys(t)}successors(n){var t=u(this,ue)[n];if(t)return Object.keys(t)}neighbors(n){var t=this.predecessors(n);if(t){const o=new Set(t);for(var r of this.successors(n))o.add(r);return Array.from(o.values())}}isLeaf(n){var t;return this.isDirected()?t=this.successors(n):t=this.neighbors(n),t.length===0}filterNodes(n){var t=new this.constructor({directed:u(this,A),multigraph:u(this,ve),compound:u(this,z)});t.setGraph(this.graph());var r=this;Object.entries(u(this,U)).forEach(function([i,a]){n(i)&&t.setNode(i,a)}),Object.values(u(this,ie)).forEach(function(i){t.hasNode(i.v)&&t.hasNode(i.w)&&t.setEdge(i,r.edge(i))});var o={};function s(i){var a=r.parent(i);return a===void 0||t.hasNode(a)?(o[i]=a,a):a in o?o[a]:s(a)}return u(this,z)&&t.nodes().forEach(i=>t.setParent(i,s(i))),t}setDefaultEdgeLabel(n){return W(this,_e,n),typeof n!="function"&&W(this,_e,()=>n),this}edgeCount(){return u(this,Ce)}edges(){return Object.values(u(this,ie))}setPath(n,t){var r=this,o=arguments;return n.reduce(function(s,i){return o.length>1?r.setEdge(s,i,t):r.setEdge(s,i),i}),this}setEdge(){var n,t,r,o,s=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(n=i.v,t=i.w,r=i.name,arguments.length===2&&(o=arguments[1],s=!0)):(n=i,t=arguments[1],r=arguments[3],arguments.length>2&&(o=arguments[2],s=!0)),n=""+n,t=""+t,r!==void 0&&(r=""+r);var a=Te(u(this,A),n,t,r);if(u(this,ae).hasOwnProperty(a))return s&&(u(this,ae)[a]=o),this;if(r!==void 0&&!u(this,ve))throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(t),u(this,ae)[a]=s?o:u(this,_e).call(this,n,t,r);var c=$s(u(this,A),n,t,r);return n=c.v,t=c.w,Object.freeze(c),u(this,ie)[a]=c,En(u(this,he)[t],n),En(u(this,ue)[n],t),u(this,te)[t][a]=c,u(this,re)[n][a]=c,$e(this,Ce)._++,this}edge(n,t,r){var o=arguments.length===1?Ye(u(this,A),arguments[0]):Te(u(this,A),n,t,r);return u(this,ae)[o]}edgeAsObj(){const n=this.edge(...arguments);return typeof n!="object"?{label:n}:n}hasEdge(n,t,r){var o=arguments.length===1?Ye(u(this,A),arguments[0]):Te(u(this,A),n,t,r);return u(this,ae).hasOwnProperty(o)}removeEdge(n,t,r){var o=arguments.length===1?Ye(u(this,A),arguments[0]):Te(u(this,A),n,t,r),s=u(this,ie)[o];return s&&(n=s.v,t=s.w,delete u(this,ae)[o],delete u(this,ie)[o],Nn(u(this,he)[t],n),Nn(u(this,ue)[n],t),delete u(this,te)[t][o],delete u(this,re)[n][o],$e(this,Ce)._--),this}inEdges(n,t){var r=u(this,te)[n];if(r){var o=Object.values(r);return t?o.filter(s=>s.v===t):o}}outEdges(n,t){var r=u(this,re)[n];if(r){var o=Object.values(r);return t?o.filter(s=>s.w===t):o}}nodeEdges(n,t){var r=this.inEdges(n,t);if(r)return r.concat(this.outEdges(n,t))}},A=new WeakMap,ve=new WeakMap,z=new WeakMap,Pe=new WeakMap,Ne=new WeakMap,_e=new WeakMap,U=new WeakMap,te=new WeakMap,he=new WeakMap,re=new WeakMap,ue=new WeakMap,ie=new WeakMap,ae=new WeakMap,xe=new WeakMap,Ce=new WeakMap,ce=new WeakMap,K=new WeakMap,Me=new WeakSet,rn=function(n){delete u(this,K)[u(this,ce)[n]][n]},Dn);function En(e,n){e[n]?e[n]++:e[n]=1}function Nn(e,n){--e[n]||delete e[n]}function Te(e,n,t,r){var o=""+n,s=""+t;if(!e&&o>s){var i=o;o=s,s=i}return o+kn+s+kn+(r===void 0?Is:r)}function $s(e,n,t,r){var o=""+n,s=""+t;if(!e&&o>s){var i=o;o=s,s=i}var a={v:o,w:s};return r&&(a.name=r),a}function Ye(e,n){return Te(e,n.v,n.w,n.name)}var un=Ss,js="2.1.13",Ts={Graph:un,version:js},Os=un,Ls={write:Ps,read:Fs};function Ps(e){var n={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:Ms(e),edges:Bs(e)};return e.graph()!==void 0&&(n.value=structuredClone(e.graph())),n}function Ms(e){return e.nodes().map(function(n){var t=e.node(n),r=e.parent(n),o={v:n};return t!==void 0&&(o.value=t),r!==void 0&&(o.parent=r),o})}function Bs(e){return e.edges().map(function(n){var t=e.edge(n),r={v:n.v,w:n.w};return n.name!==void 0&&(r.name=n.name),t!==void 0&&(r.value=t),r})}function Fs(e){var n=new Os(e.options).setGraph(e.value);return e.nodes.forEach(function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)}),e.edges.forEach(function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),n}var Gs=Vs;function Vs(e){var n={},t=[],r;function o(s){n.hasOwnProperty(s)||(n[s]=!0,r.push(s),e.successors(s).forEach(o),e.predecessors(s).forEach(o))}return e.nodes().forEach(function(s){r=[],o(s),r.length&&t.push(r)}),t}var G,le,Be,on,Fe,sn,Ie,Ve,zn;let Rs=(zn=class{constructor(){S(this,Be);S(this,Fe);S(this,Ie);S(this,G,[]);S(this,le,{})}size(){return u(this,G).length}keys(){return u(this,G).map(function(n){return n.key})}has(n){return u(this,le).hasOwnProperty(n)}priority(n){var t=u(this,le)[n];if(t!==void 0)return u(this,G)[t].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return u(this,G)[0].key}add(n,t){var r=u(this,le);if(n=String(n),!r.hasOwnProperty(n)){var o=u(this,G),s=o.length;return r[n]=s,o.push({key:n,priority:t}),ee(this,Fe,sn).call(this,s),!0}return!1}removeMin(){ee(this,Ie,Ve).call(this,0,u(this,G).length-1);var n=u(this,G).pop();return delete u(this,le)[n.key],ee(this,Be,on).call(this,0),n.key}decrease(n,t){var r=u(this,le)[n];if(t>u(this,G)[r].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+u(this,G)[r].priority+" New: "+t);u(this,G)[r].priority=t,ee(this,Fe,sn).call(this,r)}},G=new WeakMap,le=new WeakMap,Be=new WeakSet,on=function(n){var t=u(this,G),r=2*n,o=r+1,s=n;r<t.length&&(s=t[r].priority<t[s].priority?r:s,o<t.length&&(s=t[o].priority<t[s].priority?o:s),s!==n&&(ee(this,Ie,Ve).call(this,n,s),ee(this,Be,on).call(this,s)))},Fe=new WeakSet,sn=function(n){for(var t=u(this,G),r=t[n].priority,o;n!==0&&(o=n>>1,!(t[o].priority<r));)ee(this,Ie,Ve).call(this,n,o),n=o},Ie=new WeakSet,Ve=function(n,t){var r=u(this,G),o=u(this,le),s=r[n],i=r[t];r[n]=i,r[t]=s,o[i.key]=n,o[s.key]=t},zn);var pt=Rs,As=pt,mt=zs,Ds=()=>1;function zs(e,n,t,r){return Hs(e,String(n),t||Ds,r||function(o){return e.outEdges(o)})}function Hs(e,n,t,r){var o={},s=new As,i,a,c=function(l){var d=l.v!==i?l.v:l.w,h=o[d],f=t(l),p=a.distance+f;if(f<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+l+" Weight: "+f);p<h.distance&&(h.distance=p,h.predecessor=i,s.decrease(d,p))};for(e.nodes().forEach(function(l){var d=l===n?0:Number.POSITIVE_INFINITY;o[l]={distance:d},s.add(l,d)});s.size()>0&&(i=s.removeMin(),a=o[i],a.distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return o}var Ws=mt,Us=qs;function qs(e,n,t){return e.nodes().reduce(function(r,o){return r[o]=Ws(e,o,n,t),r},{})}var gt=Ys;function Ys(e){var n=0,t=[],r={},o=[];function s(i){var a=r[i]={onStack:!0,lowlink:n,index:n++};if(t.push(i),e.successors(i).forEach(function(d){r.hasOwnProperty(d)?r[d].onStack&&(a.lowlink=Math.min(a.lowlink,r[d].index)):(s(d),a.lowlink=Math.min(a.lowlink,r[d].lowlink))}),a.lowlink===a.index){var c=[],l;do l=t.pop(),r[l].onStack=!1,c.push(l);while(i!==l);o.push(c)}}return e.nodes().forEach(function(i){r.hasOwnProperty(i)||s(i)}),o}var Xs=gt,Ks=Qs;function Qs(e){return Xs(e).filter(function(n){return n.length>1||n.length===1&&e.hasEdge(n[0],n[0])})}var Zs=ei,Js=()=>1;function ei(e,n,t){return ni(e,n||Js,t||function(r){return e.outEdges(r)})}function ni(e,n,t){var r={},o=e.nodes();return o.forEach(function(s){r[s]={},r[s][s]={distance:0},o.forEach(function(i){s!==i&&(r[s][i]={distance:Number.POSITIVE_INFINITY})}),t(s).forEach(function(i){var a=i.v===s?i.w:i.v,c=n(i);r[s][a]={distance:c,predecessor:s}})}),o.forEach(function(s){var i=r[s];o.forEach(function(a){var c=r[a];o.forEach(function(l){var d=c[s],h=i[l],f=c[l],p=d.distance+h.distance;p<f.distance&&(f.distance=p,f.predecessor=h.predecessor)})})}),r}function wt(e){var n={},t={},r=[];function o(s){if(t.hasOwnProperty(s))throw new an;n.hasOwnProperty(s)||(t[s]=!0,n[s]=!0,e.predecessors(s).forEach(o),delete t[s],r.push(s))}if(e.sinks().forEach(o),Object.keys(n).length!==e.nodeCount())throw new an;return r}class an extends Error{constructor(){super(...arguments)}}var vt=wt;wt.CycleException=an;var _n=vt,ti=ri;function ri(e){try{_n(e)}catch(n){if(n instanceof _n.CycleException)return!1;throw n}return!0}var bt=oi;function oi(e,n,t){Array.isArray(n)||(n=[n]);var r=e.isDirected()?a=>e.successors(a):a=>e.neighbors(a),o=t==="post"?si:ii,s=[],i={};return n.forEach(a=>{if(!e.hasNode(a))throw new Error("Graph does not have node: "+a);o(a,r,i,s)}),s}function si(e,n,t,r){for(var o=[[e,!1]];o.length>0;){var s=o.pop();s[1]?r.push(s[0]):t.hasOwnProperty(s[0])||(t[s[0]]=!0,o.push([s[0],!0]),yt(n(s[0]),i=>o.push([i,!1])))}}function ii(e,n,t,r){for(var o=[e];o.length>0;){var s=o.pop();t.hasOwnProperty(s)||(t[s]=!0,r.push(s),yt(n(s),i=>o.push(i)))}}function yt(e,n){for(var t=e.length;t--;)n(e[t],t,e);return e}var ai=bt,ci=li;function li(e,n){return ai(e,n,"post")}var di=bt,hi=ui;function ui(e,n){return di(e,n,"pre")}var fi=un,pi=pt,mi=gi;function gi(e,n){var t=new fi,r={},o=new pi,s;function i(c){var l=c.v===s?c.w:c.v,d=o.priority(l);if(d!==void 0){var h=n(c);h<d&&(r[l]=s,o.decrease(l,h))}}if(e.nodeCount()===0)return t;e.nodes().forEach(function(c){o.add(c,Number.POSITIVE_INFINITY),t.setNode(c)}),o.decrease(e.nodes()[0],0);for(var a=!1;o.size()>0;){if(s=o.removeMin(),r.hasOwnProperty(s))t.setEdge(s,r[s]);else{if(a)throw new Error("Input graph is not connected: "+e);a=!0}e.nodeEdges(s).forEach(i)}return t}var wi={components:Gs,dijkstra:mt,dijkstraAll:Us,findCycles:Ks,floydWarshall:Zs,isAcyclic:ti,postorder:ci,preorder:hi,prim:mi,tarjan:gt,topsort:vt},xn=Ts,Z={Graph:xn.Graph,json:Ls,alg:wi,version:xn.version};let vi=class{constructor(){let n={};n._next=n._prev=n,this._sentinel=n}dequeue(){let n=this._sentinel,t=n._prev;if(t!==n)return Cn(t),t}enqueue(n){let t=this._sentinel;n._prev&&n._next&&Cn(n),n._next=t._next,t._next._prev=n,t._next=n,n._prev=t}toString(){let n=[],t=this._sentinel,r=t._prev;for(;r!==t;)n.push(JSON.stringify(r,bi)),r=r._prev;return"["+n.join(", ")+"]"}};function Cn(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function bi(e,n){if(e!=="_next"&&e!=="_prev")return n}var yi=vi;let ki=Z.Graph,Ei=yi;var Ni=xi;let _i=()=>1;function xi(e,n){if(e.nodeCount()<=1)return[];let t=Ii(e,n||_i);return Ci(t.graph,t.buckets,t.zeroIdx).flatMap(o=>e.outEdges(o.v,o.w))}function Ci(e,n,t){let r=[],o=n[n.length-1],s=n[0],i;for(;e.nodeCount();){for(;i=s.dequeue();)Xe(e,n,t,i);for(;i=o.dequeue();)Xe(e,n,t,i);if(e.nodeCount()){for(let a=n.length-2;a>0;--a)if(i=n[a].dequeue(),i){r=r.concat(Xe(e,n,t,i,!0));break}}}return r}function Xe(e,n,t,r,o){let s=o?[]:void 0;return e.inEdges(r.v).forEach(i=>{let a=e.edge(i),c=e.node(i.v);o&&s.push({v:i.v,w:i.w}),c.out-=a,cn(n,t,c)}),e.outEdges(r.v).forEach(i=>{let a=e.edge(i),c=i.w,l=e.node(c);l.in-=a,cn(n,t,l)}),e.removeNode(r.v),s}function Ii(e,n){let t=new ki,r=0,o=0;e.nodes().forEach(a=>{t.setNode(a,{v:a,in:0,out:0})}),e.edges().forEach(a=>{let c=t.edge(a.v,a.w)||0,l=n(a),d=c+l;t.setEdge(a.v,a.w,d),o=Math.max(o,t.node(a.v).out+=l),r=Math.max(r,t.node(a.w).in+=l)});let s=Si(o+r+3).map(()=>new Ei),i=r+1;return t.nodes().forEach(a=>{cn(s,i,t.node(a))}),{graph:t,buckets:s,zeroIdx:i}}function cn(e,n,t){t.out?t.in?e[t.out-t.in+n].enqueue(t):e[e.length-1].enqueue(t):e[0].enqueue(t)}function Si(e){const n=[];for(let t=0;t<e;t++)n.push(t);return n}let kt=Z.Graph;var F={addBorderNode:Fi,addDummyNode:Et,asNonCompoundGraph:ji,buildLayerMatrix:Pi,intersectRect:Li,mapValues:zi,maxRank:Nt,normalizeRanks:Mi,notime:Ri,partition:Gi,pick:Di,predecessorWeights:Oi,range:xt,removeEmptyRanks:Bi,simplify:$i,successorWeights:Ti,time:Vi,uniqueId:_t,zipObject:fn};function Et(e,n,t,r){let o;do o=_t(r);while(e.hasNode(o));return t.dummy=n,e.setNode(o,t),o}function $i(e){let n=new kt().setGraph(e.graph());return e.nodes().forEach(t=>n.setNode(t,e.node(t))),e.edges().forEach(t=>{let r=n.edge(t.v,t.w)||{weight:0,minlen:1},o=e.edge(t);n.setEdge(t.v,t.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})}),n}function ji(e){let n=new kt({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(t=>{e.children(t).length||n.setNode(t,e.node(t))}),e.edges().forEach(t=>{n.setEdge(t,e.edge(t))}),n}function Ti(e){let n=e.nodes().map(t=>{let r={};return e.outEdges(t).forEach(o=>{r[o.w]=(r[o.w]||0)+e.edge(o).weight}),r});return fn(e.nodes(),n)}function Oi(e){let n=e.nodes().map(t=>{let r={};return e.inEdges(t).forEach(o=>{r[o.v]=(r[o.v]||0)+e.edge(o).weight}),r});return fn(e.nodes(),n)}function Li(e,n){let t=e.x,r=e.y,o=n.x-t,s=n.y-r,i=e.width/2,a=e.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");let c,l;return Math.abs(s)*i>Math.abs(o)*a?(s<0&&(a=-a),c=a*o/s,l=a):(o<0&&(i=-i),c=i,l=i*s/o),{x:t+c,y:r+l}}function Pi(e){let n=xt(Nt(e)+1).map(()=>[]);return e.nodes().forEach(t=>{let r=e.node(t),o=r.rank;o!==void 0&&(n[o][r.order]=t)}),n}function Mi(e){let n=Math.min(...e.nodes().map(t=>{let r=e.node(t).rank;return r===void 0?Number.MAX_VALUE:r}));e.nodes().forEach(t=>{let r=e.node(t);r.hasOwnProperty("rank")&&(r.rank-=n)})}function Bi(e){let n=Math.min(...e.nodes().map(s=>e.node(s).rank)),t=[];e.nodes().forEach(s=>{let i=e.node(s).rank-n;t[i]||(t[i]=[]),t[i].push(s)});let r=0,o=e.graph().nodeRankFactor;Array.from(t).forEach((s,i)=>{s===void 0&&i%o!==0?--r:s!==void 0&&r&&s.forEach(a=>e.node(a).rank+=r)})}function Fi(e,n,t,r){let o={width:0,height:0};return arguments.length>=4&&(o.rank=t,o.order=r),Et(e,"border",o,n)}function Nt(e){return Math.max(...e.nodes().map(n=>{let t=e.node(n).rank;return t===void 0?Number.MIN_VALUE:t}))}function Gi(e,n){let t={lhs:[],rhs:[]};return e.forEach(r=>{n(r)?t.lhs.push(r):t.rhs.push(r)}),t}function Vi(e,n){let t=Date.now();try{return n()}finally{console.log(e+" time: "+(Date.now()-t)+"ms")}}function Ri(e,n){return n()}let Ai=0;function _t(e){var n=++Ai;return toString(e)+n}function xt(e,n,t=1){n==null&&(n=e,e=0);let r=s=>s<n;t<0&&(r=s=>n<s);const o=[];for(let s=e;r(s);s+=t)o.push(s);return o}function Di(e,n){const t={};for(const r of n)e[r]!==void 0&&(t[r]=e[r]);return t}function zi(e,n){let t=n;return typeof n=="string"&&(t=r=>r[n]),Object.entries(e).reduce((r,[o,s])=>(r[o]=t(s,o),r),{})}function fn(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}let Hi=Ni,Wi=F.uniqueId;var Ui={run:qi,undo:Xi};function qi(e){(e.graph().acyclicer==="greedy"?Hi(e,t(e)):Yi(e)).forEach(r=>{let o=e.edge(r);e.removeEdge(r),o.forwardName=r.name,o.reversed=!0,e.setEdge(r.w,r.v,o,Wi("rev"))});function t(r){return o=>r.edge(o).weight}}function Yi(e){let n=[],t={},r={};function o(s){r.hasOwnProperty(s)||(r[s]=!0,t[s]=!0,e.outEdges(s).forEach(i=>{t.hasOwnProperty(i.w)?n.push(i):o(i.w)}),delete t[s])}return e.nodes().forEach(o),n}function Xi(e){e.edges().forEach(n=>{let t=e.edge(n);if(t.reversed){e.removeEdge(n);let r=t.forwardName;delete t.reversed,delete t.forwardName,e.setEdge(n.w,n.v,t,r)}})}let Ki=F;var Qi={run:Zi,undo:ea};function Zi(e){e.graph().dummyChains=[],e.edges().forEach(n=>Ji(e,n))}function Ji(e,n){let t=n.v,r=e.node(t).rank,o=n.w,s=e.node(o).rank,i=n.name,a=e.edge(n),c=a.labelRank;if(s===r+1)return;e.removeEdge(n);let l,d,h;for(h=0,++r;r<s;++h,++r)a.points=[],d={width:0,height:0,edgeLabel:a,edgeObj:n,rank:r},l=Ki.addDummyNode(e,"edge",d,"_d"),r===c&&(d.width=a.width,d.height=a.height,d.dummy="edge-label",d.labelpos=a.labelpos),e.setEdge(t,l,{weight:a.weight},i),h===0&&e.graph().dummyChains.push(l),t=l;e.setEdge(t,o,{weight:a.weight},i)}function ea(e){e.graph().dummyChains.forEach(n=>{let t=e.node(n),r=t.edgeLabel,o;for(e.setEdge(t.edgeObj,r);t.dummy;)o=e.successors(n)[0],e.removeNode(n),r.points.push({x:t.x,y:t.y}),t.dummy==="edge-label"&&(r.x=t.x,r.y=t.y,r.width=t.width,r.height=t.height),n=o,t=e.node(n)})}var Ue={longestPath:na,slack:ta};function na(e){var n={};function t(r){var o=e.node(r);if(n.hasOwnProperty(r))return o.rank;n[r]=!0;var s=Math.min(...e.outEdges(r).map(i=>i==null?Number.POSITIVE_INFINITY:t(i.w)-e.edge(i).minlen));return s===Number.POSITIVE_INFINITY&&(s=0),o.rank=s}e.sources().forEach(t)}function ta(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}var ra=Z.Graph,Ae=Ue.slack,Ct=oa;function oa(e){var n=new ra({directed:!1}),t=e.nodes()[0],r=e.nodeCount();n.setNode(t,{});for(var o,s;sa(n,e)<r;)o=ia(n,e),s=n.hasNode(o.v)?Ae(e,o):-Ae(e,o),aa(n,e,s);return n}function sa(e,n){function t(r){n.nodeEdges(r).forEach(o=>{var s=o.v,i=r===s?o.w:s;!e.hasNode(i)&&!Ae(n,o)&&(e.setNode(i,{}),e.setEdge(r,i,{}),t(i))})}return e.nodes().forEach(t),e.nodeCount()}function ia(e,n){return n.edges().reduce((r,o)=>{let s=Number.POSITIVE_INFINITY;return e.hasNode(o.v)!==e.hasNode(o.w)&&(s=Ae(n,o)),s<r[0]?[s,o]:r},[Number.POSITIVE_INFINITY,null])[1]}function aa(e,n,t){e.nodes().forEach(r=>n.node(r).rank+=t)}var ca=Ct,In=Ue.slack,la=Ue.longestPath,da=Z.alg.preorder,ha=Z.alg.postorder,ua=F.simplify,fa=ye;ye.initLowLimValues=mn;ye.initCutValues=pn;ye.calcCutValue=It;ye.leaveEdge=$t;ye.enterEdge=jt;ye.exchangeEdges=Tt;function ye(e){e=ua(e),la(e);var n=ca(e);mn(n),pn(n,e);for(var t,r;t=$t(n);)r=jt(n,e,t),Tt(n,e,t,r)}function pn(e,n){var t=ha(e,e.nodes());t=t.slice(0,t.length-1),t.forEach(r=>pa(e,n,r))}function pa(e,n,t){var r=e.node(t),o=r.parent;e.edge(t,o).cutvalue=It(e,n,t)}function It(e,n,t){var r=e.node(t),o=r.parent,s=!0,i=n.edge(t,o),a=0;return i||(s=!1,i=n.edge(o,t)),a=i.weight,n.nodeEdges(t).forEach(c=>{var l=c.v===t,d=l?c.w:c.v;if(d!==o){var h=l===s,f=n.edge(c).weight;if(a+=h?f:-f,ga(e,t,d)){var p=e.edge(t,d).cutvalue;a+=h?-p:p}}}),a}function mn(e,n){arguments.length<2&&(n=e.nodes()[0]),St(e,{},1,n)}function St(e,n,t,r,o){var s=t,i=e.node(r);return n[r]=!0,e.neighbors(r).forEach(a=>{n.hasOwnProperty(a)||(t=St(e,n,t,a,r))}),i.low=s,i.lim=t++,o?i.parent=o:delete i.parent,t}function $t(e){return e.edges().find(n=>e.edge(n).cutvalue<0)}function jt(e,n,t){var r=t.v,o=t.w;n.hasEdge(r,o)||(r=t.w,o=t.v);var s=e.node(r),i=e.node(o),a=s,c=!1;s.lim>i.lim&&(a=i,c=!0);var l=n.edges().filter(d=>c===Sn(e,e.node(d.v),a)&&c!==Sn(e,e.node(d.w),a));return l.reduce((d,h)=>In(n,h)<In(n,d)?h:d)}function Tt(e,n,t,r){var o=t.v,s=t.w;e.removeEdge(o,s),e.setEdge(r.v,r.w,{}),mn(e),pn(e,n),ma(e,n)}function ma(e,n){var t=e.nodes().find(o=>!n.node(o).parent),r=da(e,t);r=r.slice(1),r.forEach(o=>{var s=e.node(o).parent,i=n.edge(o,s),a=!1;i||(i=n.edge(s,o),a=!0),n.node(o).rank=n.node(s).rank+(a?i.minlen:-i.minlen)})}function ga(e,n,t){return e.hasEdge(n,t)}function Sn(e,n,t){return t.low<=n.lim&&n.lim<=t.lim}var wa=Ue,Ot=wa.longestPath,va=Ct,ba=fa,ya=ka;function ka(e){switch(e.graph().ranker){case"network-simplex":$n(e);break;case"tight-tree":Na(e);break;case"longest-path":Ea(e);break;default:$n(e)}}var Ea=Ot;function Na(e){Ot(e),va(e)}function $n(e){ba(e)}var _a=xa;function xa(e){let n=Ia(e);e.graph().dummyChains.forEach(t=>{let r=e.node(t),o=r.edgeObj,s=Ca(e,n,o.v,o.w),i=s.path,a=s.lca,c=0,l=i[c],d=!0;for(;t!==o.w;){if(r=e.node(t),d){for(;(l=i[c])!==a&&e.node(l).maxRank<r.rank;)c++;l===a&&(d=!1)}if(!d){for(;c<i.length-1&&e.node(l=i[c+1]).minRank<=r.rank;)c++;l=i[c]}e.setParent(t,l),t=e.successors(t)[0]}})}function Ca(e,n,t,r){let o=[],s=[],i=Math.min(n[t].low,n[r].low),a=Math.max(n[t].lim,n[r].lim),c,l;c=t;do c=e.parent(c),o.push(c);while(c&&(n[c].low>i||a>n[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)s.push(c);return{path:o.concat(s.reverse()),lca:l}}function Ia(e){let n={},t=0;function r(o){let s=t;e.children(o).forEach(r),n[o]={low:s,lim:t++}}return e.children().forEach(r),n}let ln=F;var Sa={run:$a,cleanup:Oa};function $a(e){let n=ln.addDummyNode(e,"root",{},"_root"),t=ja(e),r=Math.max(...Object.values(t))-1,o=2*r+1;e.graph().nestingRoot=n,e.edges().forEach(i=>e.edge(i).minlen*=o);let s=Ta(e)+1;e.children().forEach(i=>Lt(e,n,o,s,r,t,i)),e.graph().nodeRankFactor=o}function Lt(e,n,t,r,o,s,i){let a=e.children(i);if(!a.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:t});return}let c=ln.addBorderNode(e,"_bt"),l=ln.addBorderNode(e,"_bb"),d=e.node(i);e.setParent(c,i),d.borderTop=c,e.setParent(l,i),d.borderBottom=l,a.forEach(h=>{Lt(e,n,t,r,o,s,h);let f=e.node(h),p=f.borderTop?f.borderTop:h,g=f.borderBottom?f.borderBottom:h,v=f.borderTop?r:2*r,w=p!==g?1:o-s[i]+1;e.setEdge(c,p,{weight:v,minlen:w,nestingEdge:!0}),e.setEdge(g,l,{weight:v,minlen:w,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,c,{weight:0,minlen:o+s[i]})}function ja(e){var n={};function t(r,o){var s=e.children(r);s&&s.length&&s.forEach(i=>t(i,o+1)),n[r]=o}return e.children().forEach(r=>t(r,1)),n}function Ta(e){return e.edges().reduce((n,t)=>n+e.edge(t).weight,0)}function Oa(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,e.edges().forEach(t=>{var r=e.edge(t);r.nestingEdge&&e.removeEdge(t)})}let La=F;var Pa=Ma;function Ma(e){function n(t){let r=e.children(t),o=e.node(t);if(r.length&&r.forEach(n),o.hasOwnProperty("minRank")){o.borderLeft=[],o.borderRight=[];for(let s=o.minRank,i=o.maxRank+1;s<i;++s)jn(e,"borderLeft","_bl",t,o,s),jn(e,"borderRight","_br",t,o,s)}}e.children().forEach(n)}function jn(e,n,t,r,o,s){let i={width:0,height:0,rank:s,borderType:n},a=o[n][s-1],c=La.addDummyNode(e,"border",i,t);o[n][s]=c,e.setParent(c,r),a&&e.setEdge(a,c,{weight:1})}var Ba={adjust:Fa,undo:Ga};function Fa(e){let n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&Pt(e)}function Ga(e){let n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&Va(e),(n==="lr"||n==="rl")&&(Ra(e),Pt(e))}function Pt(e){e.nodes().forEach(n=>Tn(e.node(n))),e.edges().forEach(n=>Tn(e.edge(n)))}function Tn(e){let n=e.width;e.width=e.height,e.height=n}function Va(e){e.nodes().forEach(n=>Ke(e.node(n))),e.edges().forEach(n=>{let t=e.edge(n);t.points.forEach(Ke),t.hasOwnProperty("y")&&Ke(t)})}function Ke(e){e.y=-e.y}function Ra(e){e.nodes().forEach(n=>Qe(e.node(n))),e.edges().forEach(n=>{let t=e.edge(n);t.points.forEach(Qe),t.hasOwnProperty("x")&&Qe(t)})}function Qe(e){let n=e.x;e.x=e.y,e.y=n}let Aa=F;var Da=za;function za(e){let n={},t=e.nodes().filter(a=>!e.children(a).length),r=Math.max(...t.map(a=>e.node(a).rank)),o=Aa.range(r+1).map(()=>[]);function s(a){if(n[a])return;n[a]=!0;let c=e.node(a);o[c.rank].push(a),e.successors(a).forEach(s)}return t.sort((a,c)=>e.node(a).rank-e.node(c).rank).forEach(s),o}let Ha=F.zipObject;var Wa=Ua;function Ua(e,n){let t=0;for(let r=1;r<n.length;++r)t+=qa(e,n[r-1],n[r]);return t}function qa(e,n,t){let r=Ha(t,t.map((l,d)=>d)),o=n.flatMap(l=>e.outEdges(l).map(d=>({pos:r[d.w],weight:e.edge(d).weight})).sort((d,h)=>d.pos-h.pos)),s=1;for(;s<t.length;)s<<=1;let i=2*s-1;s-=1;let a=new Array(i).fill(0),c=0;return o.forEach(l=>{let d=l.pos+s;a[d]+=l.weight;let h=0;for(;d>0;)d%2&&(h+=a[d+1]),d=d-1>>1,a[d]+=l.weight;c+=l.weight*h}),c}var Ya=Xa;function Xa(e,n=[]){return n.map(t=>{let r=e.inEdges(t);if(r.length){let o=r.reduce((s,i)=>{let a=e.edge(i),c=e.node(i.v);return{sum:s.sum+a.weight*c.order,weight:s.weight+a.weight}},{sum:0,weight:0});return{v:t,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:t}})}let Ka=F;var Qa=Za;function Za(e,n){let t={};e.forEach((o,s)=>{let i=t[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:s};o.barycenter!==void 0&&(i.barycenter=o.barycenter,i.weight=o.weight)}),n.edges().forEach(o=>{let s=t[o.v],i=t[o.w];s!==void 0&&i!==void 0&&(i.indegree++,s.out.push(t[o.w]))});let r=Object.values(t).filter(o=>!o.indegree);return Ja(r)}function Ja(e){let n=[];function t(o){return s=>{s.merged||(s.barycenter===void 0||o.barycenter===void 0||s.barycenter>=o.barycenter)&&ec(o,s)}}function r(o){return s=>{s.in.push(o),--s.indegree===0&&e.push(s)}}for(;e.length;){let o=e.pop();n.push(o),o.in.reverse().forEach(t(o)),o.out.forEach(r(o))}return n.filter(o=>!o.merged).map(o=>Ka.pick(o,["vs","i","barycenter","weight"]))}function ec(e,n){let t=0,r=0;e.weight&&(t+=e.barycenter*e.weight,r+=e.weight),n.weight&&(t+=n.barycenter*n.weight,r+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=t/r,e.weight=r,e.i=Math.min(n.i,e.i),n.merged=!0}let nc=F;var tc=rc;function rc(e,n){let t=nc.partition(e,d=>d.hasOwnProperty("barycenter")),r=t.lhs,o=t.rhs.sort((d,h)=>h.i-d.i),s=[],i=0,a=0,c=0;r.sort(oc(!!n)),c=On(s,o,c),r.forEach(d=>{c+=d.vs.length,s.push(d.vs),i+=d.barycenter*d.weight,a+=d.weight,c=On(s,o,c)});let l={vs:s.flat(!0)};return a&&(l.barycenter=i/a,l.weight=a),l}function On(e,n,t){let r;for(;n.length&&(r=n[n.length-1]).i<=t;)n.pop(),e.push(r.vs),t++;return t}function oc(e){return(n,t)=>n.barycenter<t.barycenter?-1:n.barycenter>t.barycenter?1:e?t.i-n.i:n.i-t.i}let sc=Ya,ic=Qa,ac=tc;var cc=Mt;function Mt(e,n,t,r){let o=e.children(n),s=e.node(n),i=s?s.borderLeft:void 0,a=s?s.borderRight:void 0,c={};i&&(o=o.filter(f=>f!==i&&f!==a));let l=sc(e,o);l.forEach(f=>{if(e.children(f.v).length){let p=Mt(e,f.v,t,r);c[f.v]=p,p.hasOwnProperty("barycenter")&&dc(f,p)}});let d=ic(l,t);lc(d,c);let h=ac(d,r);if(i&&(h.vs=[i,h.vs,a].flat(!0),e.predecessors(i).length)){let f=e.node(e.predecessors(i)[0]),p=e.node(e.predecessors(a)[0]);h.hasOwnProperty("barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+f.order+p.order)/(h.weight+2),h.weight+=2}return h}function lc(e,n){e.forEach(t=>{t.vs=t.vs.flatMap(r=>n[r]?n[r].vs:r)})}function dc(e,n){e.barycenter!==void 0?(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight):(e.barycenter=n.barycenter,e.weight=n.weight)}let hc=Z.Graph,uc=F;var fc=pc;function pc(e,n,t){let r=mc(e),o=new hc({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(s=>e.node(s));return e.nodes().forEach(s=>{let i=e.node(s),a=e.parent(s);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(o.setNode(s),o.setParent(s,a||r),e[t](s).forEach(c=>{let l=c.v===s?c.w:c.v,d=o.edge(l,s),h=d!==void 0?d.weight:0;o.setEdge(l,s,{weight:e.edge(c).weight+h})}),i.hasOwnProperty("minRank")&&o.setNode(s,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),o}function mc(e){for(var n;e.hasNode(n=uc.uniqueId("_root")););return n}var gc=wc;function wc(e,n,t){let r={},o;t.forEach(s=>{let i=e.parent(s),a,c;for(;i;){if(a=e.parent(i),a?(c=r[a],r[a]=i):(c=o,o=i),c&&c!==i){n.setEdge(c,i);return}i=a}})}let vc=Da,bc=Wa,yc=cc,kc=fc,Ec=gc,Nc=Z.Graph,Ge=F;var _c=xc;function xc(e){let n=Ge.maxRank(e),t=Ln(e,Ge.range(1,n+1),"inEdges"),r=Ln(e,Ge.range(n-1,-1,-1),"outEdges"),o=vc(e);Pn(e,o);let s=Number.POSITIVE_INFINITY,i;for(let a=0,c=0;c<4;++a,++c){Cc(a%2?t:r,a%4>=2),o=Ge.buildLayerMatrix(e);let l=bc(e,o);l<s&&(c=0,i=Object.assign({},o),s=l)}Pn(e,i)}function Ln(e,n,t){return n.map(function(r){return kc(e,r,t)})}function Cc(e,n){let t=new Nc;e.forEach(function(r){let o=r.graph().root,s=yc(r,o,t,n);s.vs.forEach((i,a)=>r.node(i).order=a),Ec(r,t,s.vs)})}function Pn(e,n){Object.values(n).forEach(t=>t.forEach((r,o)=>e.node(r).order=o))}let Ic=Z.Graph,Le=F;var Sc={positionX:Tc,findType1Conflicts:Bt,findType2Conflicts:Ft,addConflict:gn,hasConflict:Gt,verticalAlignment:Vt,horizontalCompaction:Rt,alignCoordinates:Dt,findSmallestWidthAlignment:At,balance:zt};function Bt(e,n){let t={};function r(o,s){let i=0,a=0,c=o.length,l=s[s.length-1];return s.forEach((d,h)=>{let f=$c(e,d),p=f?e.node(f).order:c;(f||d===l)&&(s.slice(a,h+1).forEach(g=>{e.predecessors(g).forEach(v=>{let w=e.node(v),y=w.order;(y<i||p<y)&&!(w.dummy&&e.node(g).dummy)&&gn(t,v,g)})}),a=h+1,i=p)}),s}return n.reduce(r),t}function Ft(e,n){let t={};function r(s,i,a,c,l){let d;Le.range(i,a).forEach(h=>{d=s[h],e.node(d).dummy&&e.predecessors(d).forEach(f=>{let p=e.node(f);p.dummy&&(p.order<c||p.order>l)&&gn(t,f,d)})})}function o(s,i){let a=-1,c,l=0;return i.forEach((d,h)=>{if(e.node(d).dummy==="border"){let f=e.predecessors(d);f.length&&(c=e.node(f[0]).order,r(i,l,h,a,c),l=h,a=c)}r(i,l,i.length,c,s.length)}),i}return n.reduce(o),t}function $c(e,n){if(e.node(n).dummy)return e.predecessors(n).find(t=>e.node(t).dummy)}function gn(e,n,t){if(n>t){let o=n;n=t,t=o}let r=e[n];r||(e[n]=r={}),r[t]=!0}function Gt(e,n,t){if(n>t){let r=n;n=t,t=r}return!!e[n]&&e[n].hasOwnProperty(t)}function Vt(e,n,t,r){let o={},s={},i={};return n.forEach(a=>{a.forEach((c,l)=>{o[c]=c,s[c]=c,i[c]=l})}),n.forEach(a=>{let c=-1;a.forEach(l=>{let d=r(l);if(d.length){d=d.sort((f,p)=>i[f]-i[p]);let h=(d.length-1)/2;for(let f=Math.floor(h),p=Math.ceil(h);f<=p;++f){let g=d[f];s[l]===l&&c<i[g]&&!Gt(t,l,g)&&(s[g]=l,s[l]=o[l]=o[g],c=i[g])}}})}),{root:o,align:s}}function Rt(e,n,t,r,o){let s={},i=jc(e,n,t,o),a=o?"borderLeft":"borderRight";function c(h,f){let p=i.nodes(),g=p.pop(),v={};for(;g;)v[g]?h(g):(v[g]=!0,p.push(g),p=p.concat(f(g))),g=p.pop()}function l(h){s[h]=i.inEdges(h).reduce((f,p)=>Math.max(f,s[p.v]+i.edge(p)),0)}function d(h){let f=i.outEdges(h).reduce((g,v)=>Math.min(g,s[v.w]-i.edge(v)),Number.POSITIVE_INFINITY),p=e.node(h);f!==Number.POSITIVE_INFINITY&&p.borderType!==a&&(s[h]=Math.max(s[h],f))}return c(l,i.predecessors.bind(i)),c(d,i.successors.bind(i)),Object.keys(r).forEach(h=>s[h]=s[t[h]]),s}function jc(e,n,t,r){let o=new Ic,s=e.graph(),i=Oc(s.nodesep,s.edgesep,r);return n.forEach(a=>{let c;a.forEach(l=>{let d=t[l];if(o.setNode(d),c){var h=t[c],f=o.edge(h,d);o.setEdge(h,d,Math.max(i(e,l,c),f||0))}c=l})}),o}function At(e,n){return Object.values(n).reduce((t,r)=>{let o=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY;Object.entries(r).forEach(([a,c])=>{let l=Lc(e,a)/2;o=Math.max(c+l,o),s=Math.min(c-l,s)});const i=o-s;return i<t[0]&&(t=[i,r]),t},[Number.POSITIVE_INFINITY,null])[1]}function Dt(e,n){let t=Object.values(n),r=Math.min(...t),o=Math.max(...t);["u","d"].forEach(s=>{["l","r"].forEach(i=>{let a=s+i,c=e[a];if(c===n)return;let l=Object.values(c),d=r-Math.min(...l);i!=="l"&&(d=o-Math.max(...l)),d&&(e[a]=Le.mapValues(c,h=>h+d))})})}function zt(e,n){return Le.mapValues(e.ul,(t,r)=>{if(n)return e[n.toLowerCase()][r];{let o=Object.values(e).map(s=>s[r]).sort((s,i)=>s-i);return(o[1]+o[2])/2}})}function Tc(e){let n=Le.buildLayerMatrix(e),t=Object.assign(Bt(e,n),Ft(e,n)),r={},o;["u","d"].forEach(i=>{o=i==="u"?n:Object.values(n).reverse(),["l","r"].forEach(a=>{a==="r"&&(o=o.map(h=>Object.values(h).reverse()));let c=(i==="u"?e.predecessors:e.successors).bind(e),l=Vt(e,o,t,c),d=Rt(e,o,l.root,l.align,a==="r");a==="r"&&(d=Le.mapValues(d,h=>-h)),r[i+a]=d})});let s=At(e,r);return Dt(r,s),zt(r,e.graph().align)}function Oc(e,n,t){return(r,o,s)=>{let i=r.node(o),a=r.node(s),c=0,l;if(c+=i.width/2,i.hasOwnProperty("labelpos"))switch(i.labelpos.toLowerCase()){case"l":l=-i.width/2;break;case"r":l=i.width/2;break}if(l&&(c+=t?l:-l),l=0,c+=(i.dummy?n:e)/2,c+=(a.dummy?n:e)/2,c+=a.width/2,a.hasOwnProperty("labelpos"))switch(a.labelpos.toLowerCase()){case"l":l=a.width/2;break;case"r":l=-a.width/2;break}return l&&(c+=t?l:-l),l=0,c}}function Lc(e,n){return e.node(n).width}let Ht=F,Pc=Sc.positionX;var Mc=Bc;function Bc(e){e=Ht.asNonCompoundGraph(e),Fc(e),Object.entries(Pc(e)).forEach(([n,t])=>e.node(n).x=t)}function Fc(e){let n=Ht.buildLayerMatrix(e),t=e.graph().ranksep,r=0;n.forEach(o=>{const s=o.reduce((i,a)=>{const c=e.node(a).height;return i>c?i:c},0);o.forEach(i=>e.node(i).y=r+s/2),r+=s+t})}let Mn=Ui,Bn=Qi,Gc=ya,Vc=F.normalizeRanks,Rc=_a,Ac=F.removeEmptyRanks,Fn=Sa,Dc=Pa,Gn=Ba,zc=_c,Hc=Mc,q=F,Wc=Z.Graph;var Uc=qc;function qc(e,n){let t=n&&n.debugTiming?q.time:q.notime;t("layout",()=>{let r=t(" buildLayoutGraph",()=>rl(e));t(" runLayout",()=>Yc(r,t)),t(" updateInputGraph",()=>Xc(e,r))})}function Yc(e,n){n(" makeSpaceForEdgeLabels",()=>ol(e)),n(" removeSelfEdges",()=>fl(e)),n(" acyclic",()=>Mn.run(e)),n(" nestingGraph.run",()=>Fn.run(e)),n(" rank",()=>Gc(q.asNonCompoundGraph(e))),n(" injectEdgeLabelProxies",()=>sl(e)),n(" removeEmptyRanks",()=>Ac(e)),n(" nestingGraph.cleanup",()=>Fn.cleanup(e)),n(" normalizeRanks",()=>Vc(e)),n(" assignRankMinMax",()=>il(e)),n(" removeEdgeLabelProxies",()=>al(e)),n(" normalize.run",()=>Bn.run(e)),n(" parentDummyChains",()=>Rc(e)),n(" addBorderSegments",()=>Dc(e)),n(" order",()=>zc(e)),n(" insertSelfEdges",()=>pl(e)),n(" adjustCoordinateSystem",()=>Gn.adjust(e)),n(" position",()=>Hc(e)),n(" positionSelfEdges",()=>ml(e)),n(" removeBorderNodes",()=>ul(e)),n(" normalize.undo",()=>Bn.undo(e)),n(" fixupEdgeLabelCoords",()=>dl(e)),n(" undoCoordinateSystem",()=>Gn.undo(e)),n(" translateGraph",()=>cl(e)),n(" assignNodeIntersects",()=>ll(e)),n(" reversePoints",()=>hl(e)),n(" acyclic.undo",()=>Mn.undo(e))}function Xc(e,n){e.nodes().forEach(t=>{let r=e.node(t),o=n.node(t);r&&(r.x=o.x,r.y=o.y,r.rank=o.rank,n.children(t).length&&(r.width=o.width,r.height=o.height))}),e.edges().forEach(t=>{let r=e.edge(t),o=n.edge(t);r.points=o.points,o.hasOwnProperty("x")&&(r.x=o.x,r.y=o.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}let Kc=["nodesep","edgesep","ranksep","marginx","marginy"],Qc={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Zc=["acyclicer","ranker","rankdir","align"],Jc=["width","height"],Vn={width:0,height:0},el=["minlen","weight","width","height","labeloffset"],nl={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},tl=["labelpos"];function rl(e){let n=new Wc({multigraph:!0,compound:!0}),t=Je(e.graph());return n.setGraph(Object.assign({},Qc,Ze(t,Kc),q.pick(t,Zc))),e.nodes().forEach(r=>{let o=Je(e.node(r));const s=Ze(o,Jc);Object.keys(Vn).forEach(i=>{s[i]===void 0&&(s[i]=Vn[i])}),n.setNode(r,s),n.setParent(r,e.parent(r))}),e.edges().forEach(r=>{let o=Je(e.edge(r));n.setEdge(r,Object.assign({},nl,Ze(o,el),q.pick(o,tl)))}),n}function ol(e){let n=e.graph();n.ranksep/=2,e.edges().forEach(t=>{let r=e.edge(t);r.minlen*=2,r.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function sl(e){e.edges().forEach(n=>{let t=e.edge(n);if(t.width&&t.height){let r=e.node(n.v),s={rank:(e.node(n.w).rank-r.rank)/2+r.rank,e:n};q.addDummyNode(e,"edge-proxy",s,"_ep")}})}function il(e){let n=0;e.nodes().forEach(t=>{let r=e.node(t);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,n=Math.max(n,r.maxRank))}),e.graph().maxRank=n}function al(e){e.nodes().forEach(n=>{let t=e.node(n);t.dummy==="edge-proxy"&&(e.edge(t.e).labelRank=t.rank,e.removeNode(n))})}function cl(e){let n=Number.POSITIVE_INFINITY,t=0,r=Number.POSITIVE_INFINITY,o=0,s=e.graph(),i=s.marginx||0,a=s.marginy||0;function c(l){let d=l.x,h=l.y,f=l.width,p=l.height;n=Math.min(n,d-f/2),t=Math.max(t,d+f/2),r=Math.min(r,h-p/2),o=Math.max(o,h+p/2)}e.nodes().forEach(l=>c(e.node(l))),e.edges().forEach(l=>{let d=e.edge(l);d.hasOwnProperty("x")&&c(d)}),n-=i,r-=a,e.nodes().forEach(l=>{let d=e.node(l);d.x-=n,d.y-=r}),e.edges().forEach(l=>{let d=e.edge(l);d.points.forEach(h=>{h.x-=n,h.y-=r}),d.hasOwnProperty("x")&&(d.x-=n),d.hasOwnProperty("y")&&(d.y-=r)}),s.width=t-n+i,s.height=o-r+a}function ll(e){e.edges().forEach(n=>{let t=e.edge(n),r=e.node(n.v),o=e.node(n.w),s,i;t.points?(s=t.points[0],i=t.points[t.points.length-1]):(t.points=[],s=o,i=r),t.points.unshift(q.intersectRect(r,s)),t.points.push(q.intersectRect(o,i))})}function dl(e){e.edges().forEach(n=>{let t=e.edge(n);if(t.hasOwnProperty("x"))switch((t.labelpos==="l"||t.labelpos==="r")&&(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset;break}})}function hl(e){e.edges().forEach(n=>{let t=e.edge(n);t.reversed&&t.points.reverse()})}function ul(e){e.nodes().forEach(n=>{if(e.children(n).length){let t=e.node(n),r=e.node(t.borderTop),o=e.node(t.borderBottom),s=e.node(t.borderLeft[t.borderLeft.length-1]),i=e.node(t.borderRight[t.borderRight.length-1]);t.width=Math.abs(i.x-s.x),t.height=Math.abs(o.y-r.y),t.x=s.x+t.width/2,t.y=r.y+t.height/2}}),e.nodes().forEach(n=>{e.node(n).dummy==="border"&&e.removeNode(n)})}function fl(e){e.edges().forEach(n=>{if(n.v===n.w){var t=e.node(n.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function pl(e){var n=q.buildLayerMatrix(e);n.forEach(t=>{var r=0;t.forEach((o,s)=>{var i=e.node(o);i.order=s+r,(i.selfEdges||[]).forEach(a=>{q.addDummyNode(e,"selfedge",{width:a.label.width,height:a.label.height,rank:i.rank,order:s+ ++r,e:a.e,label:a.label},"_se")}),delete i.selfEdges})})}function ml(e){e.nodes().forEach(n=>{var t=e.node(n);if(t.dummy==="selfedge"){var r=e.node(t.e.v),o=r.x+r.width/2,s=r.y,i=t.x-o,a=r.height/2;e.setEdge(t.e,t.label),e.removeNode(n),t.label.points=[{x:o+2*i/3,y:s-a},{x:o+5*i/6,y:s-a},{x:o+i,y:s},{x:o+5*i/6,y:s+a},{x:o+2*i/3,y:s+a}],t.label.x=t.x,t.label.y=t.y}})}function Ze(e,n){return q.mapValues(q.pick(e,n),Number)}function Je(e){var n={};return e&&Object.entries(e).forEach(([t,r])=>{typeof t=="string"&&(t=t.toLowerCase()),n[t]=r}),n}let gl=F,wl=Z.Graph;var vl={debugOrdering:bl};function bl(e){let n=gl.buildLayerMatrix(e),t=new wl({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach(r=>{t.setNode(r,{label:r}),t.setParent(r,"layer"+e.node(r).rank)}),e.edges().forEach(r=>t.setEdge(r.v,r.w,{},r.name)),n.forEach((r,o)=>{let s="layer"+o;t.setNode(s,{rank:"same"}),r.reduce((i,a)=>(t.setEdge(i,a,{style:"invis"}),a))}),t}var yl="1.0.4",Ee={graphlib:Z,layout:Uc,debug:vl,util:{time:F.time,notime:F.notime},version:yl};function kl(e,n){let t=[],r=[e];for(;r&&r.length;){let o=[];for(const s of r){const i=n.node(s);(i==null?void 0:i.type)==="Benchmark_Result"&&t.push(s),((i==null?void 0:i.type)!=="Model"||e===s)&&o.push(...n.successors(s))}r=o}return t}const Rn={data:{width:200,height:84},computation:{width:60,height:60},default:{width:150,height:88}};function El(e,n,t){var l;if(e.length===0)return{nodes:[],edges:[],sinks:{},graph:new Ee.graphlib.Graph,noBenchmarkNodes:[],noBenchmarkEdges:[],noBenchmarkGraph:new Ee.graphlib.Graph,graphName:""};let r=Pr[t];r||(r={label:t,url:"",sourceNodes:[],filterNodes:[]});const o=new Ee.graphlib.Graph;o.setGraph({rankdir:"LR",nodesep:30,ranksep:300,align:"UL"});for(const d of e){const h=Rn[d.data.displayType]||Rn.default;o.setNode(d.id,{...h,label:d.data.label,type:(l=d.data.enrichments.asset_hub)==null?void 0:l.asset_type})}for(const d of n)o.setEdge(d.source,d.target,{label:d.id});const s=_l(o),i=e.filter(d=>s.hasNode(d.id)),a=n.filter(d=>s.hasEdge(d.source,d.target)),c=Nl(s,r.filterNodes);for(const[d,h]of Object.entries(c)){const f=kl(d,o),p=e.find(g=>g.id===d);if(f.length){const g=`${d}-benchmarks`;s.setNode(g,{type:"Benchmarks",label:"Benchmarks",width:200,height:60+f.length*40}),s.setEdge(d,g,{label:`${g}-edge`,weight:.5,minlen:10});const v=e.filter(b=>f.includes(b.id));for(const b of v)b.data.model=p;p.data.benchmarks=v;const w={id:g,type:"BenchmarkNode",position:{x:0,y:0},data:{label:p.data.label,nodeColor:cr.benchmark,icon:"BenchmarkIcon",displayType:"Benchmarks",typeLabel:"Benchmark_Result",governanceNodes:[],isSourceForConnection:!1,isTargetForConnection:!0,properties:{},enrichments:{},nodeType:"data",registeredBy:"",benchmarks:v}},y={id:`${g}-edge`,source:d,target:g,animated:!1,markerEnd:{type:it.Arrow,strokeWidth:0,color:be.black},style:{stroke:be.black,strokeWidth:2},type:"CustomEdge",data:{benchmarks:f}};i.push(w),a.push(y),h.nodes.add(g),h.edges.add(`${g}-edge`)}}return{nodes:e,edges:n,sinks:c,graph:o,noBenchmarkGraph:s,noBenchmarkNodes:i,noBenchmarkEdges:a,graphName:t}}function Wt(e,n,t,r=30,o=300,s=!0){if(n.length===0)return console.log("no nodes to layout"),0;const i=t.getState().nodeInternals;Ee.layout(e,{minlen:10});for(const c of n){const l=e.node(c.id),d=i.get(c.id);d&&(l.width=d.width??l.width,l.height=d.height??l.height)}const a=new Map;for(const c of n){const l=e.node(c.id),d=a.get(l.rank);d?d.push(c):a.set(l.rank,[c]),s||(c.data.sourcePosition=We.Right,c.data.rank=l.rank,c.position={x:l.x-l.width/2,y:l.y-l.height/2})}if(s){const c=new Map,l=new Map;let d=0;for(const[p,g]of a){g.sort((y,b)=>{const k=e.node(y.id),x=e.node(b.id);return k.y-x.y});let v=0,w=0;for(const y of g){const b=e.node(y.id);v+=b.height,w=Math.max(w,b.width)}v+=(g.length-1)*r,d=Math.max(d,v),c.set(p,v),l.set(p,w)}let h=0;const f=Array.from(a.entries());f.sort((p,g)=>p[0]-g[0]);for(const[p,g]of f){const v=c.get(p)||0,w=l.get(p)||0,y=(d-v)/2;let b=0;for(const[k,x]of g.entries()){const L=e.node(x.id);x.position={x:h+w/2-L.width/2,y:b+y},b+=L.height+r}h+=w+o}}}function Nl(e,n=[]){var o;const t=n.length>0?n:e.sinks(),r={};for(const s of t){const i=e.node(s);if(((o=i.type)==null?void 0:o.toLowerCase())!=="model")continue;r[s]={nodes:new Set,edges:new Set,label:i.label};let a=e.predecessors(s);if(a)for(const c of a){const l=e.edge(c,s);l&&r[s].edges.add(l.label)}for(;a&&a.length;){let c=[];for(const l of a){r[s].nodes.add(l);const d=e.predecessors(l);if(d&&d.length){for(const h of d){const f=e.edge(h,l);f&&r[s].edges.add(f.label)}c.push(...d)}}a=c}}return r}function _l(e){const n=new Ee.graphlib.Graph;n.setGraph(e.graph());for(const i of e.nodes())n.setNode(i,e.node(i));for(const i of e.edges())n.setEdge(i,e.edge(i));const t=new Set,r=new Set;let o=e.nodes().filter(i=>{const a=e.node(i);return(a==null?void 0:a.type)==="Benchmark_Result"});for(;o&&o.length;){let i=[];for(const a of o)if(e.node(a).type!=="Model"&&!t.has(a)){t.add(a);const l=e.successors(a);for(const d of l)r.add(d);i.push(...e.predecessors(a))}o=i}for(const i of t){let a=!0,c=e.successors(i);for(const l of c)if(!t.has(l)){a=!1;break}a&&n.removeNode(i)}for(const i of r)t.has(i)&&r.delete(i);const s=Ee.graphlib.alg.components(n);s.sort((i,a)=>a.length-i.length);for(const i of s)if(i.filter(a=>r.has(a)).length)for(const a of i)n.removeNode(a);return n}const xl={CustomNode:xr,BenchmarkNode:Fo,ComputationNode:Cs},Cl={CustomEdge:Do},Il={hidden:{x:"100%",transition:{ease:"circIn",duration:.4}},visible:{x:0,transition:{ease:"circOut",duration:.4}}};function Sl(){const e=hr(),[n]=_.useState(e);return m.jsx(_.Suspense,{fallback:m.jsx("div",{children:"Suspense"}),children:n})}const $l=()=>{const{graphName:e,nodes:n,edges:t,getNodeById:r,graphState:o,setGraphState:s,governanceFilter:i,activeSink:a,pretty:c,getNodeFromFullGraph:l,hasMeasured:d,onNodesChange:h,onEdgesChange:f,noBenchmarksGraph:p}=Se(I=>({nodes:I.nodes,edges:I.edges,graphState:I.graphState,setGraphState:I.setGraphState,onNodesChange:I.onNodesChange,onEdgesChange:I.onEdgesChange,getNodeById:I.getNodeById,setGovernanceFilter:I.setGovernanceFilter,governanceFilter:I.governanceFilter,activeSink:I.activeSink,pretty:I.pretty,setPretty:I.setPretty,getNodeFromFullGraph:I.getNodeFromFullGraph,hasMeasured:I.hasMeasured,noBenchmarksGraph:I.noBenchmarksGraph,setNodes:I.setNodes,graphName:I.graphName}));lr();const g=_.useRef(null),v=De(),w=ze(),[y]=dn(),b=w.nodeCid,{setCenter:k,fitView:x}=Nr(),L=at(),E=ct();_.useEffect(()=>{L&&x({duration:1e3})},[n.length,L]);const P=!!w.nodeCid;_.useEffect(()=>{i&&N()},[i]);const N=()=>{b&&v(`/explorer/lineage/${w.owner}/${w.repo}?${y.toString()}`)};_.useEffect(()=>{const O=l(b||"");if(O&&d){let J;if(O.data.typeLabel==="Benchmark_Result"){const R=O.data.model;R&&(J=r(`${R.id}-benchmarks`))}else J=r(b||"");if(J){const R=E.getState().nodeInternals.get(J.id);if(J.type==="BenchmarkNode"){const se=document.querySelector(`[data-id="${J.id}"]`);if(se){const $=se.querySelector(`[data-benchmark="${O.id}"]`),j=R.position.x,Y=R.position.y+$.offsetTop+$.offsetHeight/2,X=R.width||0,me=j+300+X/2/.95,wn=Y/.95;k(me,wn,{zoom:.95,duration:1500})}}else{const se=R.position.x,$=R.position.y,j=R.width||0,Y=R.height||0,D=se+300+j/2/.95,me=$+Y/2/.95;k(D,me,{zoom:.95,duration:1500})}}}},[b,k,E,d,n]);const V=()=>{s(o==="vc-off"?"vc-on":"vc-off")},T=e.startsWith("https://")?e:`https://huggingface.co/${e}`,oe=e.length>30?e.slice(0,30)+"...":e,pe="";return m.jsx(m.Fragment,{children:m.jsxs("div",{ref:g,className:H(je.container,{[je.dim]:!!a}),children:[m.jsx(_r,{nodes:n,edges:t,onNodesChange:I=>{p&&n.length&&Wt(p,n,E,30,250,c),h(I)},onEdgesChange:f,onPaneClick:N,snapToGrid:!1,defaultViewport:{x:0,y:0,zoom:.75},minZoom:.05,attributionPosition:"bottom-right",nodeTypes:xl,edgeTypes:Cl,nodesDraggable:!1,nodesConnectable:!1,edgesFocusable:!1,children:m.jsx(Zr,{gap:12,size:1})}),m.jsx(dr,{initial:!1,mode:"wait",children:m.jsx(He.div,{className:je.sidebar,initial:"hidden",animate:"visible",exit:"hidden",variants:Il,children:m.jsx(Sl,{})},P?"drawer-visible":"drawer-hidden")}),m.jsxs("a",{className:je.graphNameHeader,target:"_blank",href:T,children:[pe,m.jsx("span",{children:oe})]}),m.jsx("div",{className:je.switchContainer,children:m.jsx(ls,{selected:o==="vc-on",onClick:V})})]})})},An="#000000",jl=(e,n)=>n.find(({node:t})=>t.id===e),Tl=(e,n)=>!!n.find(({edge:t})=>t.target_id===e.id&&t.label!=="subject"),Ol=(e,n)=>!!n.find(({edge:t})=>t.source_id===e.id),Ut=(e,n,t)=>{var h,f;const r=e.enrichments||{},o=e.node.properties.nodeType||"unknown",s=o==="computation"?"":((h=e.enrichments.asset_hub)==null?void 0:h.asset_type)||"",{iconId:i,displayType:a,color:c}=Cr(s||o),l=(f=r.asset_hub)!=null&&f.asset_name?r.asset_hub.asset_name:o;return{id:e.node.id,type:o==="computation"?"ComputationNode":"CustomNode",data:{label:l,nodeColor:c,icon:i,displayType:a,typeLabel:s,governanceNodes:Ll(e,"governance",n,t),isSourceForConnection:Ol(e.node,n),isTargetForConnection:Tl(e.node,n),properties:e.node.properties,sourcePosition:We.Right,enrichments:r,nodeType:o,registeredBy:"CHECK API"},position:{x:0,y:0}}},Ll=(e,n,t,r)=>t.filter(({edge:i})=>i.target_id===e.node.id).map(({edge:i})=>{const a=jl(i.source_id,r);return a&&a.node.properties.nodeType===n?Ut(a,t,r):null}).filter(i=>!!i);function Pl(e,n){return e.filter(({node:s})=>s.properties.nodeType!=="governance").map(s=>Ut(s,n,e)).filter(s=>!!s)}function Ml(e){return e.map(({edge:t})=>({id:t.id,source:t.source_id,target:t.target_id,animated:!1,markerEnd:{type:it.Arrow,strokeWidth:0,color:An},style:{stroke:An,strokeWidth:2},type:"CustomEdge"})).filter(Boolean)}async function Bl(e){const n=await Ir(),t=new Map;for(const r of n)t.set(r.did,r);return t}const en=new Map;async function Fl(e){let n=[];const t=new Set;for(const{node:i}of e)if(i.properties.vcRegistrationsJcs)for(const a of i.properties.vcRegistrationsJcs)t.has(a)||(t.add(a),n.push((async()=>{if(en.has(a))return[a,en.get(a)];const c=await Sr(`text/${$r(a,"urn:cid:")}`);return[a,await c.json()]})()));const r=await Promise.all(n);for(const[i,a]of r)en.set(i,a);const o=new Map(r),s=await Bl();for(const[i,a]of o){const c=s.get(a.credential.issuer);let l="unknown";c&&(l=c.status),a.issuerStatus=l}return o}function Gl(e,n){const t=new Map(n.nodes.map(s=>[s.node.id,s])),r=new Map;for(const s of n.edges){const i=r.get(s.edge.source_id)||[],a=r.get(s.edge.target_id)||[];i.push(s),a.push(s),r.set(s.edge.source_id,i),r.set(s.edge.target_id,a)}const o=new Map;for(const[s,i]of e){const a=i.credential.credentialSubject.id,c=t.get(a),l=r.get(a);if(c){const d=[],h=[c];if(c.node.properties.nodeType==="computation")for(const f of l)d.push(f),f.edge.target_id===a&&h.push(t.get(f.edge.source_id)),f.edge.source_id===a&&h.push(t.get(f.edge.target_id));o.set(s,{edges:d,nodes:h,vc:i})}}return o}const Vl="_searchWrapper_1hcue_6",Rl="_logo_1hcue_39",Al="_searchBar_1hcue_57",nn={"lineage-page-container":"_lineage-page-container_1hcue_1",searchWrapper:Vl,logo:Rl,searchBar:Al};function Jl(){const[e,n]=_.useState(null),t=De();return m.jsx(Hn,{theme:{components:{Button:{colorPrimary:"rgb(0, 0, 100)",colorBgContainer:be.grey600,colorText:be.grey600,defaultBorderColor:"rgb(0, 0, 0)",colorPrimaryHover:be.grey600}}},children:m.jsxs(jr,{children:[m.jsxs("div",{className:nn.searchWrapper,children:[m.jsx("div",{className:nn.logo,children:m.jsx("button",{style:{border:"none",background:"none"},onClick:()=>t("/"),children:m.jsx(Mr,{})})}),m.jsx(Br,{className:nn.searchBar,onSearch:()=>{},isLandingPage:!1})]}),m.jsx(Dl,{searchedOrUploadedGraph:e,navigate:t})]})})}function Dl({searchedOrUploadedGraph:e,navigate:n}){const t=at(),r=ct(),{vcGraph:o,edges:s,nodes:i,noBenchmarkEdges:a,noBenchmarkNodes:c,sinks:l,noBenchmarkGraph:d,graph:h,graphName:f,manifestNotFound:p}=ur();_.useEffect(()=>{p&&n("/not-found")},[p]);const{setVcsToGraph:g,setNodes:v,setEdges:w,setSinkMap:y,setAllNodes:b,setHasMeasured:k,setNoBenchmarksGraph:x,setGraphName:L}=Se(E=>({setGraphName:E.setGraphName,setNodes:E.setNodes,setEdges:E.setEdges,setVcsToGraph:E.setVcsToGraph,setSinkMap:E.setSinkMap,setAllNodes:E.setAllNodes,setHasMeasured:E.setHasMeasured,setNoBenchmarksGraph:E.setNoBenchmarksGraph}));return _.useEffect(()=>{o.then(E=>g(E))},[o]),_.useEffect(()=>{b(i)},[i]),_.useEffect(()=>{t&&k(!0)},[t]),_.useEffect(()=>{e!==null&&(v(e.noBenchmarkNodes),w(e.noBenchmarkEdges),x(e.noBenchmarkGraph),e.sinks&&y(e.sinks),L(e.graphName))},[e]),_.useEffect(()=>{e===null&&(Wt(d,c,r),v(c),w(a),x(d),l&&y(l),L(f))},[a,c,l,d,r,f,e]),m.jsx($l,{})}async function ed({request:e,params:n}){const t=new URL(e.url),o=t.searchParams.get("search");let s=null,i=null;if(o?(i=o,Tr(o),s=await eo(o,"integrity.json")):(i=t.pathname.split("/").slice(3).join("/"),s=await Jr(i,"integrity.json")),s.nodes.length===0||s.edges.length===0)return yn({manifestNotFound:!0});const a=Pl(s.nodes,s.edges),c=Ml(s.edges),l=El(a,c,i),d=(async()=>{const h=await Fl(s.nodes);return Gl(h,s)})();return yn({graph:l.graph,vcGraph:d,nodes:l.nodes,edges:l.edges,noBenchmarkNodes:l.noBenchmarkNodes,noBenchmarkEdges:l.noBenchmarkEdges,sinks:l.sinks,noBenchmarkGraph:l.noBenchmarkGraph,graphName:l.graphName})}export{Jl as Component,ed as loader};
 
 
 
static/assets/index-dcf7b644.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{aA as p}from"./index-6ffe79a8.js";var m=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(l){t.addRange(l)}),e&&e.focus()}},g=m,d={"text/plain":"Text","text/html":"Url",default:"Text"},y="Copy to clipboard: #{key}, Enter";function v(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function b(t,e){var r,n,l,s,c,a,i=!1;e||(e={}),r=e.debug||!1;try{l=g(),s=document.createRange(),c=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(o){if(o.stopPropagation(),e.format)if(o.preventDefault(),typeof o.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var u=d[e.format]||d.default;window.clipboardData.setData(u,t)}else o.clipboardData.clearData(),o.clipboardData.setData(e.format,t);e.onCopy&&(o.preventDefault(),e.onCopy(o.clipboardData))}),document.body.appendChild(a),s.selectNodeContents(a),c.addRange(s);var f=document.execCommand("copy");if(!f)throw new Error("copy command was unsuccessful");i=!0}catch(o){r&&console.error("unable to copy using execCommand: ",o),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),i=!0}catch(u){r&&console.error("unable to copy using clipboardData: ",u),r&&console.error("falling back to prompt"),n=v("message"in e?e.message:y),window.prompt(n,t)}}finally{c&&(typeof c.removeRange=="function"?c.removeRange(s):c.removeAllRanges()),a&&document.body.removeChild(a),l()}return i}var C=b;const D=p(C);export{C as a,D as c};
static/assets/index-e6ef9d9e.js ADDED
The diff for this file is too large to render. See raw diff
 
static/assets/{notFound-d720cf73.js β†’ notFound-8094933b.js} RENAMED
@@ -1 +1 @@
1
- import{j as e,i as n,l as c,m as r}from"./index-c062f015.js";/* empty css */import{A as t,S as i}from"./AILineageExplorerLogo-4258f229.js";import{F as l}from"./index-16084821.js";import"./routes-17d4ed4d.js";import"./gapSize-a2278ff3.js";const g="/assets/not-found-face-6e443a8e.svg",h="_container_1omc0_1",p="_description_1omc0_10",s={container:h,description:p};function m(){return e.jsxs("section",{className:s.container,children:[e.jsx(l,{justify:"center",children:e.jsx("img",{style:{maxWidth:"70%",maxHeight:"70%"},src:g,alt:""})}),e.jsxs("p",{className:s.description,children:["No manifest found. ",e.jsx("br",{}),e.jsx("br",{}),e.jsx("a",{href:"https://mailchi.mp/ec627cc04cf2/huggingface-ai-lineage-explorer",target:"_blank",children:"Stay tuned"})," ","for updates regarding the open source SDK release. ",e.jsx("br",{}),e.jsx("br",{}),e.jsx("a",{href:"https://huggingface.co/spaces/EQTYLab/lineage-explorer/blob/main/README.md",target:"_blank",children:"Blog Post"})]})]})}const d="_searchWrapper_1hcue_6",x="_logo_1hcue_39",u="_searchBar_1hcue_57",o={"lineage-page-container":"_lineage-page-container_1hcue_1",searchWrapper:d,logo:x,searchBar:u};function N(){const a=n();return e.jsxs(c,{theme:{components:{Button:{colorPrimary:"rgb(0, 0, 100)",colorBgContainer:r.grey600,colorText:r.grey600,defaultBorderColor:"rgb(0, 0, 0)",colorPrimaryHover:r.grey600}}},children:[e.jsxs("div",{className:o.searchWrapper,children:[e.jsx("div",{className:o.logo,children:e.jsx("button",{style:{border:"none",background:"none"},onClick:()=>a("/"),children:e.jsx(t,{})})}),e.jsx(i,{className:o.searchBar,onSearch:()=>{},isLandingPage:!1})]}),e.jsx(m,{})]})}export{N as Component};
 
1
+ import{j as e,h as n,k as c,l as r}from"./index-6ffe79a8.js";/* empty css */import{A as t,S as i}from"./AILineageExplorerLogo-5013a616.js";import{F as l}from"./index-2367cea0.js";import"./routes-17d4ed4d.js";import"./gapSize-a2278ff3.js";const g="/assets/not-found-face-6e443a8e.svg",h="_container_1omc0_1",p="_description_1omc0_10",s={container:h,description:p};function m(){return e.jsxs("section",{className:s.container,children:[e.jsx(l,{justify:"center",children:e.jsx("img",{style:{maxWidth:"70%",maxHeight:"70%"},src:g,alt:""})}),e.jsxs("p",{className:s.description,children:["No manifest found. ",e.jsx("br",{}),e.jsx("br",{}),e.jsx("a",{href:"https://mailchi.mp/ec627cc04cf2/huggingface-ai-lineage-explorer",target:"_blank",children:"Stay tuned"})," ","for updates regarding the open source SDK release. ",e.jsx("br",{}),e.jsx("br",{}),e.jsx("a",{href:"https://huggingface.co/spaces/EQTYLab/lineage-explorer/blob/main/README.md",target:"_blank",children:"Blog Post"})]})]})}const d="_searchWrapper_1hcue_6",x="_logo_1hcue_39",u="_searchBar_1hcue_57",o={"lineage-page-container":"_lineage-page-container_1hcue_1",searchWrapper:d,logo:x,searchBar:u};function N(){const a=n();return e.jsxs(c,{theme:{components:{Button:{colorPrimary:"rgb(0, 0, 100)",colorBgContainer:r.grey600,colorText:r.grey600,defaultBorderColor:"rgb(0, 0, 0)",colorPrimaryHover:r.grey600}}},children:[e.jsxs("div",{className:o.searchWrapper,children:[e.jsx("div",{className:o.logo,children:e.jsx("button",{style:{border:"none",background:"none"},onClick:()=>a("/"),children:e.jsx(t,{})})}),e.jsx(i,{className:o.searchBar,onSearch:()=>{},isLandingPage:!1})]}),e.jsx(m,{})]})}export{N as Component};
static/assets/stripPrefix-27348c24.js ADDED
The diff for this file is too large to render. See raw diff
 
static/assets/stripPrefix-e3f3bf0d.js DELETED
The diff for this file is too large to render. See raw diff
 
static/index.html CHANGED
@@ -4,7 +4,7 @@
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <title>Lineage Explorer</title>
7
- <script type="module" crossorigin src="/assets/index-c062f015.js"></script>
8
  <link rel="stylesheet" href="/assets/index-516c5e14.css">
9
  </head>
10
  <body>
 
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <title>Lineage Explorer</title>
7
+ <script type="module" crossorigin src="/assets/index-6ffe79a8.js"></script>
8
  <link rel="stylesheet" href="/assets/index-516c5e14.css">
9
  </head>
10
  <body>