@gientech/modual 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/AntdIcon-C8lLl5Jn.js +64 -0
- package/assets/ReviewManage-DJbB3PbG.js +679 -0
- package/assets/client-x3jJqDff.js +1 -0
- package/assets/index-BsCNHSoi.js +263 -0
- package/assets/index-CIPEixYE.js +308 -0
- package/assets/index-CqAhjlSN.js +344 -0
- package/assets/style7.css +1 -1
- package/assets/style8.css +1 -1
- package/assets/style9.css +1 -0
- package/chat.js +1 -1
- package/chatCompare.js +1 -1
- package/graphBase.d.ts +36 -0
- package/graphBase.js +1 -0
- package/index.js +1 -1
- package/oprecords.js +282 -1
- package/package.json +1 -1
- package/assets/ReviewManage-DRjhh14p.js +0 -941
- package/assets/client-DhNqG1Ua.js +0 -1
- package/assets/index-BV-s9IB7.js +0 -344
- package/assets/index-D8e4MkeR.js +0 -651
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import{jsx as v,jsxs as $,Fragment as et}from"react/jsx-runtime";import*as y from"react";import ce,{useContext as lt,createContext as Jo,version as ci,isValidElement as li,useRef as de,useLayoutEffect as ea,useEffect as ve,useState as H,useCallback as Wt,useMemo as It}from"react";import*as ui from"react-dom";import oo,{createPortal as ta}from"react-dom";import{useTheme as di,deepMergeTheme as ao,defaultTheme as fi,Icon as pi,Button as kn,DashboardContainer as gi}from"@mxmweb/zui";import{Xviwer as io}from"@mxmweb/xviewer";/* empty css */import Ge from"styled-components";import{Typography as Xn,Modal as Qr,Input as je,Form as xe,Select as Xr,Button as Ce,message as Be,Spin as Fn,Space as hi,Drawer as Yn,Table as mi,Tag as so,Tooltip as vi,Tabs as yi,Popover as Ai}from"antd";import{a as ke,R as bi,k as xi}from"./index-CIPEixYE.js";import Ci from"axios";import{w as Ei,_ as ie,a as rt,b as nt,c as Y,d as Si,e as co,f as wi,h as W,i as ki,j as vt,k as V,l as Te,u as Pt,m as Re,r as ra,n as Fi,o as Ti,p as Ri,q as Ii,F as we,s as jr,t as dn,v as fn,x as Yr,y as Bt,z as qt,A as tt,I as Oi,B as na,C as Hr,D as yt,g as Mi}from"./AntdIcon-C8lLl5Jn.js";import{u as lo}from"./index-CpW6Dhpp.js";const Pi=ce.createContext({});function Zt(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function oa(e,t,r){var n=y.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}function Bi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(a);if(Ei(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(r&&s>1)return!1;n.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return!1;return!0}if(a&&i&&ie(a)==="object"&&ie(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(d){return o(a[d],i[d],c)})}return!1}return o(e,t)}var _i="%";function Tn(e){return e.join(_i)}var Di=(function(){function e(t){nt(this,e),Y(this,"instanceId",void 0),Y(this,"cache",new Map),Y(this,"extracted",new Set),this.instanceId=t}return rt(e,[{key:"get",value:function(r){return this.opGet(Tn(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Tn(r),n)}},{key:"opUpdate",value:function(r,n){var o=this.cache.get(r),a=n(o);a===null?this.cache.delete(r):this.cache.set(r,a)}}]),e})(),Nt="data-token-hash",Xe="data-css-hash",gt="__cssinjs_instance__";function Ni(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Xe,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[gt]=o[gt]||e,o[gt]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Xe,"]"))).forEach(function(o){var a=o.getAttribute(Xe);if(n[a]){if(o[gt]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else n[a]=!0})}return new Di(e)}var or=y.createContext({hashPriority:"low",cache:Ni(),defaultCache:!0});function Wr(e){var t=Si();return function(){var r,n=co(e);if(t){var o=co(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return wi(this,r)}}function Li(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Wn=(function(){function e(){nt(this,e),Y(this,"cache",void 0),Y(this,"keys",void 0),Y(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return rt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var f=W(c,2),d=f[1];return o.internalGet(u)[1]<d?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=W(a,1),s=i[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[n,o.cacheCallTimes++]});else{var f=l.get(c);f?f.map||(f.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var a;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!Li(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();Y(Wn,"MAX_CACHE_SIZE",20);Y(Wn,"MAX_CACHE_OFFSET",5);var uo=0,aa=(function(){function e(t){nt(this,e),Y(this,"derivatives",void 0),Y(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=uo,t.length===0&&ki(t.length>0),uo+=1}return rt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e})(),pn=new Wn;function Rn(e){var t=Array.isArray(e)?e:[e];return pn.has(t)||pn.set(t,new aa(t)),pn.get(t)}var zi=new WeakMap,gn={};function ji(e,t){for(var r=zi,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(gn)||r.set(gn,e()),r.get(gn)}var fo=new WeakMap;function Kt(e){var t=fo.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof aa?t+=n.id:n&&ie(n)==="object"?t+=Kt(n):t+=n}),t=Zt(t),fo.set(e,t)),t}function po(e,t){return Zt("".concat(t,"_").concat(Kt(e)))}var In=vt();function go(e){return typeof e=="number"?"".concat(e,"px"):e}function Gr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=V(V({},n),{},Y(Y({},Nt,t),Xe,r)),i=Object.keys(a).map(function(s){var l=a[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Or=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Hi=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var a=W(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},ia=function(t,r,n){var o={},a={};return Object.entries(t).forEach(function(i){var s,l,c=W(i,2),u=c[0],f=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var d,g=Or(u,n==null?void 0:n.prefix);o[g]=typeof f=="number"&&!(n!=null&&(d=n.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(g,")")}}),[a,Hi(o,r,{scope:n==null?void 0:n.scope})]},ho=vt()?y.useLayoutEffect:y.useEffect,Gi=function(t,r){var n=y.useRef(!0);ho(function(){return t(n.current)},r),ho(function(){return n.current=!1,function(){n.current=!0}},[])},Ui=V({},y),mo=Ui.useInsertionEffect,$i=function(t,r,n){y.useMemo(t,n),Gi(function(){return r(!0)},n)},Vi=mo?function(e,t,r){return mo(function(){return e(),t()},r)}:$i,Qi=V({},y),Xi=Qi.useInsertionEffect,Yi=function(t){var r=[],n=!1;function o(a){n||r.push(a)}return y.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(a){return a()})}},t),o},Wi=function(){return function(t){t()}},Ki=typeof Xi<"u"?Yi:Wi;function Kn(e,t,r,n,o){var a=y.useContext(or),i=a.cache,s=[e].concat(Te(t)),l=Tn(s),c=Ki([l]),u=function(m){i.opUpdate(l,function(h){var p=h||[void 0,void 0],C=W(p,2),w=C[0],E=w===void 0?0:w,A=C[1],S=A,F=S||r(),T=[E,F];return m?m(T):T})};y.useMemo(function(){u()},[l]);var f=i.opGet(l),d=f[1];return Vi(function(){o==null||o(d)},function(g){return u(function(m){var h=W(m,2),p=h[0],C=h[1];return g&&p===0&&(o==null||o(d)),[p+1,C]}),function(){i.opUpdate(l,function(m){var h=m||[],p=W(h,2),C=p[0],w=C===void 0?0:C,E=p[1],A=w-1;return A===0?(c(function(){(g||!i.opGet(l))&&(n==null||n(E,!1))}),null):[w-1,E]})}},[l]),d}var qi={},Zi="css",bt=new Map;function Ji(e){bt.set(e,(bt.get(e)||0)+1)}function es(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Nt,'="').concat(e,'"]'));r.forEach(function(n){if(n[gt]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var ts=0;function rs(e,t){bt.set(e,(bt.get(e)||0)-1);var r=new Set;bt.forEach(function(n,o){n<=0&&r.add(o)}),bt.size-r.size>ts&&r.forEach(function(n){es(n,t),bt.delete(n)})}var ns=function(t,r,n,o){var a=n.getDerivativeToken(t),i=V(V({},a),r);return o&&(i=o(i)),i},sa="token";function os(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=lt(or),o=n.cache.instanceId,a=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,c=l===void 0?qi:l,u=r.formatToken,f=r.getComputedToken,d=r.cssVar,g=ji(function(){return Object.assign.apply(Object,[{}].concat(Te(t)))},t),m=Kt(g),h=Kt(c),p=d?Kt(d):"",C=Kn(sa,[s,e.id,m,h,p],function(){var w,E=f?f(g,c,e):ns(g,c,e,u),A=V({},E),S="";if(d){var F=ia(E,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),T=W(F,2);E=T[0],S=T[1]}var I=po(E,s);E._tokenKey=I,A._tokenKey=po(A,s);var O=(w=d==null?void 0:d.key)!==null&&w!==void 0?w:I;E._themeKey=O,Ji(O);var x="".concat(Zi,"-").concat(Zt(I));return E._hashId=x,[E,x,A,S,(d==null?void 0:d.key)||""]},function(w){rs(w[0]._themeKey,o)},function(w){var E=W(w,4),A=E[0],S=E[3];if(d&&S){var F=Pt(S,Zt("css-variables-".concat(A._themeKey)),{mark:Xe,prepend:"queue",attachTo:a,priority:-999});F[gt]=o,F.setAttribute(Nt,A._themeKey)}});return C}var as=function(t,r,n){var o=W(t,5),a=o[2],i=o[3],s=o[4],l=n||{},c=l.plain;if(!i)return null;var u=a._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=Gr(i,s,u,d,c);return[f,u,g]},is={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ca="comm",la="rule",ua="decl",ss="@import",cs="@namespace",ls="@keyframes",us="@layer",da=Math.abs,qn=String.fromCharCode;function fa(e){return e.trim()}function Mr(e,t,r){return e.replace(t,r)}function ds(e,t,r){return e.indexOf(t,r)}function _t(e,t){return e.charCodeAt(t)|0}function Lt(e,t,r){return e.slice(t,r)}function Je(e){return e.length}function fs(e){return e.length}function Sr(e,t){return t.push(e),e}var Kr=1,zt=1,pa=0,He=0,ue=0,jt="";function Zn(e,t,r,n,o,a,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Kr,column:zt,length:i,return:"",siblings:s}}function ps(){return ue}function gs(){return ue=He>0?_t(jt,--He):0,zt--,ue===10&&(zt=1,Kr--),ue}function Ye(){return ue=He<pa?_t(jt,He++):0,zt++,ue===10&&(zt=1,Kr++),ue}function ht(){return _t(jt,He)}function Pr(){return He}function qr(e,t){return Lt(jt,e,t)}function Jt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hs(e){return Kr=zt=1,pa=Je(jt=e),He=0,[]}function ms(e){return jt="",e}function hn(e){return fa(qr(He-1,On(e===91?e+2:e===40?e+1:e)))}function vs(e){for(;(ue=ht())&&ue<33;)Ye();return Jt(e)>2||Jt(ue)>3?"":" "}function ys(e,t){for(;--t&&Ye()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return qr(e,Pr()+(t<6&&ht()==32&&Ye()==32))}function On(e){for(;Ye();)switch(ue){case e:return He;case 34:case 39:e!==34&&e!==39&&On(ue);break;case 40:e===41&&On(e);break;case 92:Ye();break}return He}function As(e,t){for(;Ye()&&e+ue!==57;)if(e+ue===84&&ht()===47)break;return"/*"+qr(t,He-1)+"*"+qn(e===47?e:Ye())}function bs(e){for(;!Jt(ht());)Ye();return qr(e,He)}function xs(e){return ms(Br("",null,null,null,[""],e=hs(e),0,[0],e))}function Br(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,f=i,d=0,g=0,m=0,h=1,p=1,C=1,w=0,E="",A=o,S=a,F=n,T=E;p;)switch(m=w,w=Ye()){case 40:if(m!=108&&_t(T,f-1)==58){ds(T+=Mr(hn(w),"&","&\f"),"&\f",da(c?s[c-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:T+=hn(w);break;case 9:case 10:case 13:case 32:T+=vs(m);break;case 92:T+=ys(Pr()-1,7);continue;case 47:switch(ht()){case 42:case 47:Sr(Cs(As(Ye(),Pr()),t,r,l),l),(Jt(m||1)==5||Jt(ht()||1)==5)&&Je(T)&&Lt(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*h:s[c++]=Je(T)*C;case 125*h:case 59:case 0:switch(w){case 0:case 125:p=0;case 59+u:C==-1&&(T=Mr(T,/\f/g,"")),g>0&&(Je(T)-f||h===0&&m===47)&&Sr(g>32?yo(T+";",n,r,f-1,l):yo(Mr(T," ","")+";",n,r,f-2,l),l);break;case 59:T+=";";default:if(Sr(F=vo(T,t,r,c,u,o,s,E,A=[],S=[],f,a),a),w===123)if(u===0)Br(T,t,F,F,A,a,f,s,S);else{switch(d){case 99:if(_t(T,3)===110)break;case 108:if(_t(T,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Br(e,F,F,n&&Sr(vo(e,F,F,0,0,o,s,E,o,A=[],f,S),S),o,S,f,s,n?A:S):Br(T,F,F,F,[""],S,0,s,S)}}c=u=g=0,h=C=1,E=T="",f=i;break;case 58:f=1+Je(T),g=m;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&gs()==125)continue}switch(T+=qn(w),w*h){case 38:C=u>0?1:(T+="\f",-1);break;case 44:s[c++]=(Je(T)-1)*C,C=1;break;case 64:ht()===45&&(T+=hn(Ye())),d=ht(),u=f=Je(E=T+=bs(Pr())),w++;break;case 45:m===45&&Je(T)==2&&(h=0)}}return a}function vo(e,t,r,n,o,a,i,s,l,c,u,f){for(var d=o-1,g=o===0?a:[""],m=fs(g),h=0,p=0,C=0;h<n;++h)for(var w=0,E=Lt(e,d+1,d=da(p=i[h])),A=e;w<m;++w)(A=fa(p>0?g[w]+" "+E:Mr(E,/&\f/g,g[w])))&&(l[C++]=A);return Zn(e,t,r,o===0?la:s,l,c,u,f)}function Cs(e,t,r,n){return Zn(e,t,r,ca,qn(ps()),Lt(e,2,-2),0,n)}function yo(e,t,r,n,o){return Zn(e,t,r,ua,Lt(e,0,n),Lt(e,n+1,-1),n,o)}function Mn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Es(e,t,r,n){switch(e.type){case us:if(e.children.length)break;case ss:case cs:case ua:return e.return=e.return||e.value;case ca:return"";case ls:return e.return=e.value+"{"+Mn(e.children,n)+"}";case la:if(!Je(e.value=e.props.join(",")))return""}return Je(r=Mn(e.children,n))?e.return=e.value+"{"+r+"}":""}var Ao="data-ant-cssinjs-cache-path",ga="_FILE_STYLE__",Ct,ha=!0;function Ss(){if(!Ct&&(Ct={},vt())){var e=document.createElement("div");e.className=Ao,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=W(a,2),s=i[0],l=i[1];Ct[s]=l});var r=document.querySelector("style[".concat(Ao,"]"));if(r){var n;ha=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function ws(e){return Ss(),!!Ct[e]}function ks(e){var t=Ct[e],r=null;if(t&&vt())if(ha)r=ga;else{var n=document.querySelector("style[".concat(Xe,'="').concat(Ct[e],'"]'));n?r=n.innerHTML:delete Ct[e]}return[r,t]}var Fs="_skip_check_",ma="_multi_value_";function _r(e){var t=Mn(xs(e),Es);return t.replace(/\{%%%\:[^;];}/g,";")}function Ts(e){return ie(e)==="object"&&e&&(Fs in e||ma in e)}function bo(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Te(l.slice(1))).join(" ")});return a.join(",")}var Rs=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,a=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer;r.path;var c=r.hashPriority,u=r.transformers,f=u===void 0?[]:u;r.linters;var d="",g={};function m(C){var w=C.getName(s);if(!g[w]){var E=e(C.style,r,{root:!1,parentSelectors:i}),A=W(E,1),S=A[0];g[w]="@keyframes ".concat(C.getName(s)).concat(S)}}function h(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(E){Array.isArray(E)?h(E,w):E&&w.push(E)}),w}var p=h(Array.isArray(t)?t:[t]);return p.forEach(function(C){var w=typeof C=="string"&&!o?{}:C;if(typeof w=="string")d+="".concat(w,`
|
|
2
|
+
`);else if(w._keyframe)m(w);else{var E=f.reduce(function(A,S){var F;return(S==null||(F=S.visit)===null||F===void 0?void 0:F.call(S,A))||A},w);Object.keys(E).forEach(function(A){var S=E[A];if(ie(S)==="object"&&S&&(A!=="animationName"||!S._keyframe)&&!Ts(S)){var F=!1,T=A.trim(),I=!1;(o||a)&&s?T.startsWith("@")?F=!0:T==="&"?T=bo("",s,c):T=bo(A,s,c):o&&!s&&(T==="&"||T==="")&&(T="",I=!0);var O=e(S,r,{root:I,injectHash:F,parentSelectors:[].concat(Te(i),[T])}),x=W(O,2),_=x[0],z=x[1];g=V(V({},g),z),d+="".concat(T).concat(_)}else{let K=function(b,M){var D=b.replace(/[A-Z]/g,function(Z){return"-".concat(Z.toLowerCase())}),Q=M;!is[b]&&typeof Q=="number"&&Q!==0&&(Q="".concat(Q,"px")),b==="animationName"&&M!==null&&M!==void 0&&M._keyframe&&(m(M),Q=M.getName(s)),d+="".concat(D,":").concat(Q,";")};var L,U=(L=S==null?void 0:S.value)!==null&&L!==void 0?L:S;ie(S)==="object"&&S!==null&&S!==void 0&&S[ma]&&Array.isArray(U)?U.forEach(function(b){K(A,b)}):K(A,U)}})}}),o?l&&(d&&(d="@layer ".concat(l.name," {").concat(d,"}")),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(l.name,";")}).join(`
|
|
3
|
+
`))):d="{".concat(d,"}"),[d,g]};function va(e,t){return Zt("".concat(e.join("%")).concat(t))}function Is(){return null}var ya="style";function Pn(e,t){var r=e.token,n=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=y.useContext(or),f=u.autoClear;u.mock;var d=u.defaultCache,g=u.hashPriority,m=u.container,h=u.ssrInline,p=u.transformers,C=u.linters,w=u.cache,E=u.layer,A=r._tokenKey,S=[A];E&&S.push("layer"),S.push.apply(S,Te(n));var F=In,T=Kn(ya,S,function(){var z=S.join("|");if(ws(z)){var L=ks(z),U=W(L,2),K=U[0],b=U[1];if(K)return[K,A,b,{},s,c]}var M=t(),D=Rs(M,{hashId:o,hashPriority:g,layer:E?a:void 0,path:n.join("-"),transformers:p,linters:C}),Q=W(D,2),Z=Q[0],ee=Q[1],N=_r(Z),P=va(S,N);return[N,A,P,ee,s,c]},function(z,L){var U=W(z,3),K=U[2];(L||f)&&In&&ra(K,{mark:Xe,attachTo:m})},function(z){var L=W(z,4),U=L[0];L[1];var K=L[2],b=L[3];if(F&&U!==ga){var M={mark:Xe,prepend:E?!1:"queue",attachTo:m,priority:c},D=typeof i=="function"?i():i;D&&(M.csp={nonce:D});var Q=[],Z=[];Object.keys(b).forEach(function(N){N.startsWith("@layer")?Q.push(N):Z.push(N)}),Q.forEach(function(N){Pt(_r(b[N]),"_layer-".concat(N),V(V({},M),{},{prepend:!0}))});var ee=Pt(U,K,M);ee[gt]=w.instanceId,ee.setAttribute(Nt,A),Z.forEach(function(N){Pt(_r(b[N]),"_effect-".concat(N),M)})}}),I=W(T,3),O=I[0],x=I[1],_=I[2];return function(z){var L;return!h||F||!d?L=y.createElement(Is,null):L=y.createElement("style",Re({},Y(Y({},Nt,x),Xe,_),{dangerouslySetInnerHTML:{__html:O}})),y.createElement(y.Fragment,null,L,z)}}var Os=function(t,r,n){var o=W(t,6),a=o[0],i=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=n||{},d=f.plain;if(c)return null;var g=a,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=Gr(a,i,s,m,d),l&&Object.keys(l).forEach(function(h){if(!r[h]){r[h]=!0;var p=_r(l[h]),C=Gr(p,i,"_effect-".concat(h),m,d);h.startsWith("@layer")?g=C+g:g+=C}}),[u,s,g]},Aa="cssVar",Ms=function(t,r){var n=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=lt(or),f=u.cache.instanceId,d=u.container,g=s._tokenKey,m=[].concat(Te(t.path),[n,c,g]),h=Kn(Aa,m,function(){var p=r(),C=ia(p,n,{prefix:o,unitless:a,ignore:i,scope:c}),w=W(C,2),E=w[0],A=w[1],S=va(m,A);return[E,A,S,n]},function(p){var C=W(p,3),w=C[2];In&&ra(w,{mark:Xe,attachTo:d})},function(p){var C=W(p,3),w=C[1],E=C[2];if(w){var A=Pt(w,E,{mark:Xe,prepend:"queue",attachTo:d,priority:-999});A[gt]=f,A.setAttribute(Nt,n)}});return h},Ps=function(t,r,n){var o=W(t,4),a=o[1],i=o[2],s=o[3],l=n||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=Gr(a,s,i,f,c);return[u,i,d]};Y(Y(Y({},ya,Os),sa,as),Aa,Ps);var xo=(function(){function e(t,r){nt(this,e),Y(this,"name",void 0),Y(this,"style",void 0),Y(this,"_keyframe",!0),this.name=t,this.style=r}return rt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e})();function Rt(e){return e.notSplit=!0,e}Rt(["borderTop","borderBottom"]),Rt(["borderTop"]),Rt(["borderBottom"]),Rt(["borderLeft","borderRight"]),Rt(["borderLeft"]),Rt(["borderRight"]);function Bs(e){return Fi(e)||Ti(e)||Ri(e)||Ii()}function Bn(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function ba(e,t,r,n){if(!t.length)return r;var o=Bs(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Te(e):s=V({},e),n&&r===void 0&&i.length===1?delete s[a][i[0]]:s[a]=ba(s[a],i,r,n),s}function mn(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Bn(e,t.slice(0,-1))?e:ba(e,t,r,n)}function _s(e){return ie(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Co(e){return Array.isArray(e)?[]:{}}var Ds=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ns(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Co(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=Bn(o,i),u=Array.isArray(c);if(u||_s(c)){if(!l.has(c)){l.add(c);var f=Bn(n,i);u?n=mn(n,i,[]):(!f||ie(f)!=="object")&&(n=mn(n,i,Co(c))),Ds(c).forEach(function(d){a([].concat(Te(i),[d]),l)})}}else n=mn(n,i,c)}a([])}),n}const Ls=y.createContext({}),zs=Jo(void 0),Pe="${label} is not a valid ${type}",Zr={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Pe,method:Pe,array:Pe,object:Pe,number:Pe,date:Pe,boolean:Pe,integer:Pe,float:Pe,regexp:Pe,email:Pe,url:Pe,hex:Pe},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};Object.assign({},Zr.Modal);let Dr=[];const Eo=()=>Dr.reduce((e,t)=>Object.assign(Object.assign({},e),t),Zr.Modal);function js(e){if(e){const t=Object.assign({},e);return Dr.push(t),Eo(),()=>{Dr=Dr.filter(r=>r!==t),Eo()}}Object.assign({},Zr.Modal)}const xa=Jo(void 0),Hs="internalMark",Gs=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;y.useEffect(()=>js(t==null?void 0:t.Modal),[t]);const o=y.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return y.createElement(xa.Provider,{value:o},r)},Ca={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},er=Object.assign(Object.assign({},Ca),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
4
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
5
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function Us(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(n),d=t(o),g=t(a),m=t(i),h=r(l,c),p=e.colorLink||e.colorInfo,C=t(p),w=new we(g[1]).mix(new we(g[3]),50).toHexString();return Object.assign(Object.assign({},h),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:w,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:C[4],colorLink:C[6],colorLinkActive:C[7],colorBgMask:new we("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const $s=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function Vs(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},$s(n))}const Qs=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Xs(e){return(e+8)/e}function Ys(e){const t=Array.from({length:10}).map((r,n)=>{const o=n-1,a=e*Math.pow(Math.E,o/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:Xs(r)}))}const Ws=e=>{const t=Ys(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],a=r[0],i=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function Ks(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Le=(e,t)=>new we(e).setA(t).toRgbString(),Yt=(e,t)=>new we(e).darken(t).toHexString(),qs=e=>{const t=jr(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Zs=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Le(n,.88),colorTextSecondary:Le(n,.65),colorTextTertiary:Le(n,.45),colorTextQuaternary:Le(n,.25),colorFill:Le(n,.15),colorFillSecondary:Le(n,.06),colorFillTertiary:Le(n,.04),colorFillQuaternary:Le(n,.02),colorBgSolid:Le(n,1),colorBgSolidHover:Le(n,.75),colorBgSolidActive:Le(n,.95),colorBgLayout:Yt(r,4),colorBgContainer:Yt(r,0),colorBgElevated:Yt(r,0),colorBgSpotlight:Le(n,.85),colorBgBlur:"transparent",colorBorder:Yt(r,15),colorBorderSecondary:Yt(r,6)}};function Js(e){dn.pink=dn.magenta,fn.pink=fn.magenta;const t=Object.keys(Ca).map(r=>{const n=e[r]===dn[r]?fn[r]:jr(e[r]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Us(e,{generateColorPalettes:qs,generateNeutralColorPalettes:Zs})),Ws(e.fontSize)),Ks(e)),Qs(e)),Vs(e))}const Ea=Rn(Js),_n={token:er,override:{override:er},hashed:!0},Sa=ce.createContext(_n),Dn="ant",Jr="anticon",ec=(e,t)=>t||(e?`${Dn}-${e}`:Dn),ut=y.createContext({getPrefixCls:ec,iconPrefixCls:Jr}),{Consumer:lf}=ut,tc=`-ant-${Date.now()}-${Math.random()}`;function rc(e,t){const r={},n=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(i,s)=>{const l=new we(i),c=jr(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new we(t.primaryColor),s=jr(i.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(i,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(i,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(i,c=>c.setA(c.a*.12));const l=new we(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
6
|
+
:root {
|
|
7
|
+
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
8
|
+
`)}
|
|
9
|
+
}
|
|
10
|
+
`.trim()}function nc(e,t){const r=rc(e,t);vt()&&Pt(r,`${tc}-dynamic-theme`)}const Nn=y.createContext(!1),oc=({children:e,disabled:t})=>{const r=y.useContext(Nn);return y.createElement(Nn.Provider,{value:t??r},e)},tr=y.createContext(void 0),ac=({children:e,size:t})=>{const r=y.useContext(tr);return y.createElement(tr.Provider,{value:t||r},e)};function ic(){const e=lt(Nn),t=lt(tr);return{componentDisabled:e,componentSize:t}}var wa=rt(function e(){nt(this,e)}),ka="CALC_UNIT",sc=new RegExp(ka,"g");function vn(e){return typeof e=="number"?"".concat(e).concat(ka):e}var cc=(function(e){Yr(r,e);var t=Wr(r);function r(n,o){var a;nt(this,r),a=t.call(this),Y(Bt(a),"result",""),Y(Bt(a),"unitlessCssVar",void 0),Y(Bt(a),"lowPriority",void 0);var i=ie(n);return a.unitlessCssVar=o,n instanceof r?a.result="(".concat(n.result,")"):i==="number"?a.result=vn(n):i==="string"&&(a.result=n),a}return rt(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(vn(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(vn(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,i=o||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(sc,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(wa),lc=(function(e){Yr(r,e);var t=Wr(r);function r(n){var o;return nt(this,r),o=t.call(this),Y(Bt(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return rt(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r})(wa),uc=function(t,r){var n=t==="css"?cc:lc;return function(o){return new n(o,r)}},So=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ur(e){var t=y.useRef();t.current=e;var r=y.useCallback(function(){for(var n,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(a))},[]);return r}function Ln(e){var t=y.useRef(!1),r=y.useState(e),n=W(r,2),o=n[0],a=n[1];y.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||a(s)}return[o,i]}var yn={exports:{}},J={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-is.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var wo;function dc(){if(wo)return J;wo=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function h(p){if(typeof p=="object"&&p!==null){var C=p.$$typeof;switch(C){case e:switch(p=p.type,p){case r:case o:case n:case c:case u:return p;default:switch(p=p&&p.$$typeof,p){case s:case i:case l:case d:case f:case a:return p;default:return C}}case t:return C}}}return J.ContextConsumer=i,J.ContextProvider=a,J.Element=e,J.ForwardRef=l,J.Fragment=r,J.Lazy=d,J.Memo=f,J.Portal=t,J.Profiler=o,J.StrictMode=n,J.Suspense=c,J.SuspenseList=u,J.isAsyncMode=function(){return!1},J.isConcurrentMode=function(){return!1},J.isContextConsumer=function(p){return h(p)===i},J.isContextProvider=function(p){return h(p)===a},J.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},J.isForwardRef=function(p){return h(p)===l},J.isFragment=function(p){return h(p)===r},J.isLazy=function(p){return h(p)===d},J.isMemo=function(p){return h(p)===f},J.isPortal=function(p){return h(p)===t},J.isProfiler=function(p){return h(p)===o},J.isStrictMode=function(p){return h(p)===n},J.isSuspense=function(p){return h(p)===c},J.isSuspenseList=function(p){return h(p)===u},J.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===o||p===n||p===c||p===u||p===g||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===f||p.$$typeof===a||p.$$typeof===i||p.$$typeof===l||p.$$typeof===m||p.getModuleId!==void 0)},J.typeOf=h,J}var ko;function fc(){return ko||(ko=1,yn.exports=dc()),yn.exports}var An=fc(),pc=Symbol.for("react.element"),gc=Symbol.for("react.transitional.element"),hc=Symbol.for("react.fragment");function mc(e){return e&&ie(e)==="object"&&(e.$$typeof===pc||e.$$typeof===gc)&&e.type===hc}var vc=Number(ci.split(".")[0]),yc=function(t,r){typeof t=="function"?t(r):ie(t)==="object"&&t&&"current"in t&&(t.current=r)},Ac=function(t){var r,n;if(!t)return!1;if(Fa(t)&&vc>=19)return!0;var o=An.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==An.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==An.ForwardRef)};function Fa(e){return li(e)&&!mc(e)}var bc=function(t){if(t&&Fa(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};function Fo(e,t,r,n){var o=V({},t[e]);if(n!=null&&n.deprecatedTokens){var a=n.deprecatedTokens;a.forEach(function(s){var l=W(s,2),c=l[0],u=l[1];if(o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var i=V(V({},r),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Ta=typeof CSSINJS_STATISTIC<"u",zn=!0;function Jn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Ta)return Object.assign.apply(Object,[{}].concat(t));zn=!1;var n={};return t.forEach(function(o){if(ie(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),zn=!0,n}var To={};function xc(){}var Cc=function(t){var r,n=t,o=xc;return Ta&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){if(zn){var l;(l=r)===null||l===void 0||l.add(s)}return i[s]}}),o=function(i,s){var l;To[i]={global:Array.from(r),component:V(V({},(l=To[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:o}};function Ro(e,t,r){if(typeof r=="function"){var n;return r(Jn(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Ec(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"max(".concat(n.map(function(a){return go(a)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"min(".concat(n.map(function(a){return go(a)}).join(","),")")}}}var Sc=1e3*60*10,wc=(function(){function e(){nt(this,e),Y(this,"map",new Map),Y(this,"objectIDMap",new WeakMap),Y(this,"nextID",0),Y(this,"lastAccessBeat",new Map),Y(this,"accessBeat",0)}return rt(e,[{key:"set",value:function(r,n){this.clear();var o=this.getCompositeKey(r);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(r){var n=this,o=r.map(function(a){return a&&ie(a)==="object"?"obj_".concat(n.getObjectID(a)):"".concat(ie(a),"_").concat(a)});return o.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,a){n-o>Sc&&(r.map.delete(a),r.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e})(),Io=new wc;function kc(e,t){return ce.useMemo(function(){var r=Io.get(t);if(r)return r;var n=e();return Io.set(t,n),n},t)}var Fc=function(){return{}};function Tc(e){var t=e.useCSP,r=t===void 0?Fc:t,n=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(d,g,m,h){var p=Array.isArray(d)?d[0]:d;function C(I){return"".concat(String(p)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var w=(h==null?void 0:h.unitless)||{},E=typeof s=="function"?s(d):{},A=V(V({},E),{},Y({},C("zIndexPopup"),!0));Object.keys(w).forEach(function(I){A[C(I)]=w[I]});var S=V(V({},h),{},{unitless:A,prefixToken:C}),F=u(d,g,m,S),T=c(p,m,S);return function(I){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,x=F(I,O),_=W(x,2),z=_[1],L=T(O),U=W(L,2),K=U[0],b=U[1];return[K,z,b]}}function c(d,g,m){var h=m.unitless,p=m.injectStyle,C=p===void 0?!0:p,w=m.prefixToken,E=m.ignore,A=function(T){var I=T.rootCls,O=T.cssVar,x=O===void 0?{}:O,_=n(),z=_.realToken;return Ms({path:[d],prefix:x.prefix,key:x.key,unitless:h,ignore:E,token:z,scope:I},function(){var L=Ro(d,z,g),U=Fo(d,z,L,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(L).forEach(function(K){U[w(K)]=U[K],delete U[K]}),U}),null},S=function(T){var I=n(),O=I.cssVar;return[function(x){return C&&O?ce.createElement(ce.Fragment,null,ce.createElement(A,{rootCls:T,cssVar:O,component:d}),x):x},O==null?void 0:O.key]};return S}function u(d,g,m){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(d)?d:[d,d],C=W(p,1),w=C[0],E=p.join("-"),A=e.layer||{name:"antd"};return function(S){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,T=n(),I=T.theme,O=T.realToken,x=T.hashId,_=T.token,z=T.cssVar,L=o(),U=L.rootPrefixCls,K=L.iconPrefixCls,b=r(),M=z?"css":"js",D=kc(function(){var R=new Set;return z&&Object.keys(h.unitless||{}).forEach(function(B){R.add(Or(B,z.prefix)),R.add(Or(B,So(w,z.prefix)))}),uc(M,R)},[M,w,z==null?void 0:z.prefix]),Q=Ec(M),Z=Q.max,ee=Q.min,N={theme:I,token:_,hashId:x,nonce:function(){return b.nonce},clientOnly:h.clientOnly,layer:A,order:h.order||-999};typeof a=="function"&&Pn(V(V({},N),{},{clientOnly:!1,path:["Shared",U]}),function(){return a(_,{prefix:{rootPrefixCls:U,iconPrefixCls:K},csp:b})});var P=Pn(V(V({},N),{},{path:[E,S,K]}),function(){if(h.injectStyle===!1)return[];var R=Cc(_),B=R.token,j=R.flush,X=Ro(w,O,m),re=".".concat(S),le=Fo(w,O,X,{deprecatedTokens:h.deprecatedTokens});z&&X&&ie(X)==="object"&&Object.keys(X).forEach(function(Ie){X[Ie]="var(".concat(Or(Ie,So(w,z.prefix)),")")});var ye=Jn(B,{componentCls:re,prefixCls:S,iconCls:".".concat(K),antCls:".".concat(U),calc:D,max:Z,min:ee},z?X:le),We=g(ye,{hashId:x,prefixCls:S,rootPrefixCls:U,iconPrefixCls:K});j(w,le);var Se=typeof i=="function"?i(ye,S,F,h.resetFont):null;return[h.resetStyle===!1?null:Se,We]});return[P,x]}}function f(d,g,m){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=u(d,g,m,V({resetStyle:!1,order:-998},h)),C=function(E){var A=E.prefixCls,S=E.rootCls,F=S===void 0?A:S;return p(A,F),null};return C}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const Rc="5.28.0";function bn(e){return e>=0&&e<=255}function wr(e,t){const{r,g:n,b:o,a}=new we(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new we(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-i*(1-c))/c),f=Math.round((n-s*(1-c))/c),d=Math.round((o-l*(1-c))/c);if(bn(u)&&bn(f)&&bn(d))return new we({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new we({r,g:n,b:o,a:1}).toRgbString()}var Ic=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Ra(e){const{override:t}=e,r=Ic(e,["override"]),n=Object.assign({},t);Object.keys(er).forEach(d=>{delete n[d]});const o=Object.assign(Object.assign({},r),n),a=480,i=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:wr(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:wr(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:wr(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:wr(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
19
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
20
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
21
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
22
|
+
`,boxShadowSecondary:`
|
|
23
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
24
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
25
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
26
|
+
`,boxShadowTertiary:`
|
|
27
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
28
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
29
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
30
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
31
|
+
0 1px 2px -2px ${new we("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
32
|
+
0 3px 6px 0 ${new we("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
33
|
+
0 5px 12px 4px ${new we("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
34
|
+
`,boxShadowDrawerRight:`
|
|
35
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
36
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
37
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
38
|
+
`,boxShadowDrawerLeft:`
|
|
39
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
40
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
41
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
42
|
+
`,boxShadowDrawerUp:`
|
|
43
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
44
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
45
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
46
|
+
`,boxShadowDrawerDown:`
|
|
47
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
48
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
49
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
50
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var Oo=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Ia={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Oc={motionBase:!0,motionUnit:!0},Mc={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Oa=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,a=Oo(t,["override"]);let i=Object.assign(Object.assign({},n),{override:o});return i=Ra(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,u=Oo(l,["theme"]);let f=u;c&&(f=Oa(Object.assign(Object.assign({},i),u),{override:u},c)),i[s]=f}),i};function en(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=ce.useContext(Sa),a=`${Rc}-${t||""}`,i=r||Ea,[s,l,c]=os(i,[er,e],{salt:a,override:n,getComputedToken:Oa,formatToken:Ra,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Ia,ignore:Oc,preserve:Mc}});return[i,c,t?l:"",s,o]}const Pc=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Bc=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),_c=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Dc=(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},Ma=e=>({[`.${e}`]:Object.assign(Object.assign({},Bc()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:Nc}=Tc({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=lt(ut);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=en();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=lt(ut);return e??{}},getResetStyles:(e,t)=>{var r;const n=_c(e);return[n,{"&":n},Ma((r=t==null?void 0:t.prefix.iconPrefixCls)!==null&&r!==void 0?r:Jr)]},getCommonStyle:Dc,getCompUnitless:()=>Ia}),Lc=(e,t)=>{const[r,n]=en();return Pn({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>Ma(e))},zc=Object.assign({},y),{useId:Mo}=zc,jc=()=>"",Hc=typeof Mo>"u"?jc:Mo;function Gc(e,t,r){var n;const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},_n),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:_n.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=Hc();return oa(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(d=>{c[d]=Object.assign(Object.assign({},c[d]),e.components[d])});const u=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!Bi(c,f,!0)}))}function Po(e){return e instanceof HTMLElement||e instanceof SVGElement}function Uc(e){return e&&ie(e)==="object"&&Po(e.nativeElement)?e.nativeElement:Po(e)?e:null}function $c(e){var t=Uc(e);if(t)return t;if(e instanceof ce.Component){var r;return(r=oo.findDOMNode)===null||r===void 0?void 0:r.call(oo,e)}return null}var Vc=["children"],Pa=y.createContext({});function Qc(e){var t=e.children,r=qt(e,Vc);return y.createElement(Pa.Provider,{value:r},t)}var Xc=(function(e){Yr(r,e);var t=Wr(r);function r(){return nt(this,r),t.apply(this,arguments)}return rt(r,[{key:"render",value:function(){return this.props.children}}]),r})(y.Component);function Yc(e){var t=y.useReducer(function(s){return s+1},0),r=W(t,2),n=r[1],o=y.useRef(e),a=Ur(function(){return o.current}),i=Ur(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[a,i]}var pt="none",kr="appear",Fr="enter",Tr="leave",Bo="none",Qe="prepare",Ot="start",Mt="active",eo="end",Ba="prepared";function _o(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Wc(e,t){var r={animationend:_o("Animation","AnimationEnd"),transitionend:_o("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Kc=Wc(vt(),typeof window<"u"?window:{}),_a={};if(vt()){var qc=document.createElement("div");_a=qc.style}var Rr={};function Da(e){if(Rr[e])return Rr[e];var t=Kc[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var a=r[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in _a)return Rr[e]=t[a],Rr[e]}return""}var Na=Da("animationend"),La=Da("transitionend"),za=!!(Na&&La),Do=Na||"animationend",No=La||"transitionend";function Lo(e,t){if(!e)return null;if(ie(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const Zc=(function(e){var t=de();function r(o){o&&(o.removeEventListener(No,e),o.removeEventListener(Do,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(No,e),o.addEventListener(Do,e),t.current=o)}return y.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var ja=vt()?ea:ve,Ha=function(t){return+setTimeout(t,16)},Ga=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Ha=function(t){return window.requestAnimationFrame(t)},Ga=function(t){return window.cancelAnimationFrame(t)});var zo=0,to=new Map;function Ua(e){to.delete(e)}var jn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;zo+=1;var n=zo;function o(a){if(a===0)Ua(n),t();else{var i=Ha(function(){o(a-1)});to.set(n,i)}}return o(r),n};jn.cancel=function(e){var t=to.get(e);return Ua(e),Ga(t)};const Jc=(function(){var e=y.useRef(null);function t(){jn.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=jn(function(){o<=1?n({isCanceled:function(){return a!==e.current}}):r(n,o-1)});e.current=a}return y.useEffect(function(){return function(){t()}},[]),[r,t]});var el=[Qe,Ot,Mt,eo],tl=[Qe,Ba],$a=!1,rl=!0;function Va(e){return e===Mt||e===eo}const nl=(function(e,t,r){var n=Ln(Bo),o=W(n,2),a=o[0],i=o[1],s=Jc(),l=W(s,2),c=l[0],u=l[1];function f(){i(Qe,!0)}var d=t?tl:el;return ja(function(){if(a!==Bo&&a!==eo){var g=d.indexOf(a),m=d[g+1],h=r(a);h===$a?i(m,!0):m&&c(function(p){function C(){p.isCanceled()||i(m,!0)}h===!0?C():Promise.resolve(h).then(C)})}},[e,a]),y.useEffect(function(){return function(){u()}},[]),[f,a]});function ol(e,t,r,n){var o=n.motionEnter,a=o===void 0?!0:o,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,f=n.motionLeaveImmediately,d=n.onAppearPrepare,g=n.onEnterPrepare,m=n.onLeavePrepare,h=n.onAppearStart,p=n.onEnterStart,C=n.onLeaveStart,w=n.onAppearActive,E=n.onEnterActive,A=n.onLeaveActive,S=n.onAppearEnd,F=n.onEnterEnd,T=n.onLeaveEnd,I=n.onVisibleChanged,O=Ln(),x=W(O,2),_=x[0],z=x[1],L=Yc(pt),U=W(L,2),K=U[0],b=U[1],M=Ln(null),D=W(M,2),Q=D[0],Z=D[1],ee=K(),N=de(!1),P=de(null);function R(){return r()}var B=de(!1);function j(){b(pt),Z(null,!0)}var X=Ur(function(ne){var oe=K();if(oe!==pt){var be=R();if(!(ne&&!ne.deadline&&ne.target!==be)){var Fe=B.current,pe;oe===kr&&Fe?pe=S==null?void 0:S(be,ne):oe===Fr&&Fe?pe=F==null?void 0:F(be,ne):oe===Tr&&Fe&&(pe=T==null?void 0:T(be,ne)),Fe&&pe!==!1&&j()}}}),re=Zc(X),le=W(re,1),ye=le[0],We=function(oe){switch(oe){case kr:return Y(Y(Y({},Qe,d),Ot,h),Mt,w);case Fr:return Y(Y(Y({},Qe,g),Ot,p),Mt,E);case Tr:return Y(Y(Y({},Qe,m),Ot,C),Mt,A);default:return{}}},Se=y.useMemo(function(){return We(ee)},[ee]),Ie=nl(ee,!e,function(ne){if(ne===Qe){var oe=Se[Qe];return oe?oe(R()):$a}if(fe in Se){var be;Z(((be=Se[fe])===null||be===void 0?void 0:be.call(Se,R(),null))||null)}return fe===Mt&&ee!==pt&&(ye(R()),u>0&&(clearTimeout(P.current),P.current=setTimeout(function(){X({deadline:!0})},u))),fe===Ba&&j(),rl}),Oe=W(Ie,2),dt=Oe[0],fe=Oe[1],ot=Va(fe);B.current=ot;var Ke=de(null);ja(function(){if(!(N.current&&Ke.current===t)){z(t);var ne=N.current;N.current=!0;var oe;!ne&&t&&s&&(oe=kr),ne&&t&&a&&(oe=Fr),(ne&&!t&&c||!ne&&f&&!t&&c)&&(oe=Tr);var be=We(oe);oe&&(e||be[Qe])?(b(oe),dt()):b(pt),Ke.current=t}},[t]),ve(function(){(ee===kr&&!s||ee===Fr&&!a||ee===Tr&&!c)&&b(pt)},[s,a,c]),ve(function(){return function(){N.current=!1,clearTimeout(P.current)}},[]);var qe=y.useRef(!1);ve(function(){_&&(qe.current=!0),_!==void 0&&ee===pt&&((qe.current||_)&&(I==null||I(_)),qe.current=!0)},[_,ee]);var _e=Q;return Se[Qe]&&fe===Ot&&(_e=V({transition:"none"},_e)),[ee,fe,_e,_??t]}function al(e){var t=e;ie(e)==="object"&&(t=e.transitionSupport);function r(o,a){return!!(o.motionName&&t&&a!==!1)}var n=y.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,d=o.motionName,g=o.leavedClassName,m=o.eventProps,h=y.useContext(Pa),p=h.motion,C=r(o,p),w=de(),E=de();function A(){try{return w.current instanceof HTMLElement?w.current:$c(E.current)}catch{return null}}var S=ol(C,s,A,o),F=W(S,4),T=F[0],I=F[1],O=F[2],x=F[3],_=y.useRef(x);x&&(_.current=!0);var z=y.useCallback(function(D){w.current=D,yc(a,D)},[a]),L,U=V(V({},m),{},{visible:s});if(!f)L=null;else if(T===pt)x?L=f(V({},U),z):!c&&_.current&&g?L=f(V(V({},U),{},{className:g}),z):u||!c&&!g?L=f(V(V({},U),{},{style:{display:"none"}}),z):L=null;else{var K;I===Qe?K="prepare":Va(I)?K="active":I===Ot&&(K="start");var b=Lo(d,"".concat(T,"-").concat(K));L=f(V(V({},U),{},{className:tt(Lo(d,T),Y(Y({},b,b&&K),d,typeof d=="string")),style:O}),z)}if(y.isValidElement(L)&&Ac(L)){var M=bc(L);M||(L=y.cloneElement(L,{ref:z}))}return y.createElement(Xc,{ref:E},L)});return n.displayName="CSSMotion",n}const il=al(za);var Hn="add",Gn="keep",Un="remove",xn="removed";function sl(e){var t;return e&&ie(e)==="object"&&"key"in e?t=e:t={key:e},V(V({},t),{},{key:String(t.key)})}function $n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(sl)}function cl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,a=$n(e),i=$n(t);a.forEach(function(c){for(var u=!1,f=n;f<o;f+=1){var d=i[f];if(d.key===c.key){n<f&&(r=r.concat(i.slice(n,f).map(function(g){return V(V({},g),{},{status:Hn})})),n=f),r.push(V(V({},d),{},{status:Gn})),n+=1,u=!0;break}}u||r.push(V(V({},c),{},{status:Un}))}),n<o&&(r=r.concat(i.slice(n).map(function(c){return V(V({},c),{},{status:Hn})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==Un}),r.forEach(function(u){u.key===c&&(u.status=Gn)})}),r}var ll=["component","children","onVisibleChanged","onAllRemoved"],ul=["status"],dl=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:il,r=(function(n){Yr(a,n);var o=Wr(a);function a(){var i;nt(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),Y(Bt(i),"state",{keyEntities:[]}),Y(Bt(i),"removeKey",function(u){i.setState(function(f){var d=f.keyEntities.map(function(g){return g.key!==u?g:V(V({},g),{},{status:xn})});return{keyEntities:d}},function(){var f=i.state.keyEntities,d=f.filter(function(g){var m=g.status;return m!==xn}).length;d===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return rt(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,f=c.children,d=c.onVisibleChanged;c.onAllRemoved;var g=qt(c,ll),m=u||y.Fragment,h={};return dl.forEach(function(p){h[p]=g[p],delete g[p]}),delete g.keys,y.createElement(m,g,l.map(function(p,C){var w=p.status,E=qt(p,ul),A=w===Hn||w===Gn;return y.createElement(t,Re({},h,{key:E.key,visible:A,eventProps:E,onVisibleChanged:function(F){d==null||d(F,{key:E.key}),F||s.removeKey(E.key)}}),function(S,F){return f(V(V({},S),{},{index:C}),F)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=$n(c),d=cl(u,f);return{keyEntities:d.filter(function(g){var m=u.find(function(h){var p=h.key;return g.key===p});return!(m&&m.status===xn&&g.status===Un)})}}}]),a})(y.Component);return Y(r,"defaultProps",{component:"div"}),r}const pl=fl(za),jo=y.createContext(!0);function gl(e){const t=y.useContext(jo),{children:r}=e,[,n]=en(),{motion:o}=n,a=y.useRef(!1);return a.current||(a.current=t!==o),a.current?y.createElement(jo.Provider,{value:o},y.createElement(Qc,{motion:o},r)):r}const hl=()=>null;var ml=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const vl=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let $r,Qa,Xa,Ya;function Nr(){return $r||Dn}function yl(){return Qa||Jr}function Al(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const bl=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&($r=t),r!==void 0&&(Qa=r),"holderRender"in e&&(Ya=o),n&&(Al(n)?nc(Nr(),n):Xa=n)},xl=()=>({getPrefixCls:(e,t)=>t||(e?`${Nr()}-${e}`:Nr()),getIconPrefixCls:yl,getRootPrefixCls:()=>$r||Nr(),getTheme:()=>Xa,holderRender:Ya}),Cl=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:d,dropdownMatchSelectWidth:g,popupMatchSelectWidth:m,popupOverflow:h,legacyLocale:p,parentContext:C,iconPrefixCls:w,theme:E,componentDisabled:A,segmented:S,statistic:F,spin:T,calendar:I,carousel:O,cascader:x,collapse:_,typography:z,checkbox:L,descriptions:U,divider:K,drawer:b,skeleton:M,steps:D,image:Q,layout:Z,list:ee,mentions:N,modal:P,progress:R,result:B,slider:j,breadcrumb:X,menu:re,pagination:le,input:ye,textArea:We,empty:Se,badge:Ie,radio:Oe,rate:dt,switch:fe,transfer:ot,avatar:Ke,message:qe,tag:_e,table:ne,card:oe,tabs:be,timeline:Fe,timePicker:pe,upload:Et,notification:ir,tree:sr,colorPicker:cr,datePicker:nn,rangePicker:on,flex:an,wave:St,dropdown:Gt,warning:lr,tour:sn,tooltip:Ue,popover:ur,popconfirm:at,floatButton:dr,floatButtonGroup:fr,variant:pr,inputNumber:gr,treeSelect:hr}=e,mr=y.useCallback((te,ge)=>{const{prefixCls:De}=e;if(ge)return ge;const Ne=De||C.getPrefixCls("");return te?`${Ne}-${te}`:Ne},[C.getPrefixCls,e.prefixCls]),wt=w||C.iconPrefixCls||Jr,kt=r||C.csp;Lc(wt,kt);const Ut=Gc(E,C.theme,{prefixCls:mr("")}),Ft={csp:kt,autoInsertSpaceInButton:n,alert:o,anchor:a,locale:s||p,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:m??g,popupOverflow:h,getPrefixCls:mr,iconPrefixCls:wt,theme:Ut,segmented:S,statistic:F,spin:T,calendar:I,carousel:O,cascader:x,collapse:_,typography:z,checkbox:L,descriptions:U,divider:K,drawer:b,skeleton:M,steps:D,image:Q,input:ye,textArea:We,layout:Z,list:ee,mentions:N,modal:P,progress:R,result:B,slider:j,breadcrumb:X,menu:re,pagination:le,empty:Se,badge:Ie,radio:Oe,rate:dt,switch:fe,transfer:ot,avatar:Ke,message:qe,tag:_e,table:ne,card:oe,tabs:be,timeline:Fe,timePicker:pe,upload:Et,notification:ir,tree:sr,colorPicker:cr,datePicker:nn,rangePicker:on,flex:an,wave:St,dropdown:Gt,warning:lr,tour:sn,tooltip:Ue,popover:ur,popconfirm:at,floatButton:dr,floatButtonGroup:fr,variant:pr,inputNumber:gr,treeSelect:hr},it=Object.assign({},C);Object.keys(Ft).forEach(te=>{Ft[te]!==void 0&&(it[te]=Ft[te])}),vl.forEach(te=>{const ge=e[te];ge&&(it[te]=ge)}),typeof n<"u"&&(it.button=Object.assign({autoInsertSpace:n},it.button));const ft=oa(()=>it,it,(te,ge)=>{const De=Object.keys(te),Ne=Object.keys(ge);return De.length!==Ne.length||De.some(At=>te[At]!==ge[At])}),{layer:vr}=y.useContext(or),cn=y.useMemo(()=>({prefixCls:wt,csp:kt,layer:vr?"antd":void 0}),[wt,kt,vr]);let ae=y.createElement(y.Fragment,null,y.createElement(hl,{dropdownMatchSelectWidth:g}),t);const yr=y.useMemo(()=>{var te,ge,De,Ne;return Ns(((te=Zr.Form)===null||te===void 0?void 0:te.defaultValidateMessages)||{},((De=(ge=ft.locale)===null||ge===void 0?void 0:ge.Form)===null||De===void 0?void 0:De.defaultValidateMessages)||{},((Ne=ft.form)===null||Ne===void 0?void 0:Ne.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ft,i==null?void 0:i.validateMessages]);Object.keys(yr).length>0&&(ae=y.createElement(zs.Provider,{value:yr},ae)),s&&(ae=y.createElement(Gs,{locale:s,_ANT_MARK__:Hs},ae)),ae=y.createElement(Oi.Provider,{value:cn},ae),l&&(ae=y.createElement(ac,{size:l},ae)),ae=y.createElement(gl,null,ae);const ln=y.useMemo(()=>{const te=Ut||{},{algorithm:ge,token:De,components:Ne,cssVar:At}=te,Ar=ml(te,["algorithm","token","components","cssVar"]),br=ge&&(!Array.isArray(ge)||ge.length>0)?Rn(ge):Ea,Tt={};Object.entries(Ne||{}).forEach(([un,Cr])=>{const $e=Object.assign({},Cr);"algorithm"in $e&&($e.algorithm===!0?$e.theme=br:(Array.isArray($e.algorithm)||typeof $e.algorithm=="function")&&($e.theme=Rn($e.algorithm)),delete $e.algorithm),Tt[un]=$e});const xr=Object.assign(Object.assign({},er),De);return Object.assign(Object.assign({},Ar),{theme:br,token:xr,components:Tt,override:Object.assign({override:xr},Tt),cssVar:At})},[Ut]);return E&&(ae=y.createElement(Sa.Provider,{value:ln},ae)),ft.warning&&(ae=y.createElement(Ls.Provider,{value:ft.warning},ae)),A!==void 0&&(ae=y.createElement(oc,{disabled:A},ae)),y.createElement(ut.Provider,{value:ft},ae)},Ht=e=>{const t=y.useContext(ut),r=y.useContext(xa);return y.createElement(Cl,Object.assign({parentContext:t,legacyLocale:r},e))};Ht.ConfigContext=ut;Ht.SizeContext=tr;Ht.config=bl;Ht.useConfig=ic;Object.defineProperty(Ht,"SizeContext",{get:()=>tr});var ar=V({},ui),El=ar.version,Cn=ar.render,Sl=ar.unmountComponentAtNode,tn;try{var wl=Number((El||"").split(".")[0]);wl>=18&&(tn=ar.createRoot)}catch{}function Ho(e){var t=ar.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ie(t)==="object"&&(t.usingClientEntryPoint=e)}var Vr="__rc_react_root__";function kl(e,t){Ho(!0);var r=t[Vr]||tn(t);Ho(!1),r.render(e),t[Vr]=r}function Fl(e,t){Cn==null||Cn(e,t)}function Tl(e,t){if(tn){kl(e,t);return}Fl(e,t)}function Rl(e){return Vn.apply(this,arguments)}function Vn(){return Vn=na(Hr().mark(function e(t){return Hr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Vr])===null||o===void 0||o.unmount(),delete t[Vr]}));case 1:case"end":return n.stop()}},e)})),Vn.apply(this,arguments)}function Il(e){Sl(e)}function Ol(e){return Qn.apply(this,arguments)}function Qn(){return Qn=na(Hr().mark(function e(t){return Hr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(tn===void 0){n.next=2;break}return n.abrupt("return",Rl(t));case 2:Il(t);case 3:case"end":return n.stop()}},e)})),Qn.apply(this,arguments)}const Ml=(e,t)=>(Tl(e,t),()=>Ol(t));let Pl=Ml;function Bl(e){return Pl}var _l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},Dl=function(t,r){return y.createElement(yt,Re({},t,{ref:r,icon:_l}))},Nl=y.forwardRef(Dl),Ll={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},zl=function(t,r){return y.createElement(yt,Re({},t,{ref:r,icon:Ll}))},jl=y.forwardRef(zl),Hl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Gl=function(t,r){return y.createElement(yt,Re({},t,{ref:r,icon:Hl}))},Wa=y.forwardRef(Gl),Ul={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},$l=function(t,r){return y.createElement(yt,Re({},t,{ref:r,icon:Ul}))},Vl=y.forwardRef($l),Ql={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},Xl=function(t,r){return y.createElement(yt,Re({},t,{ref:r,icon:Ql}))},Yl=y.forwardRef(Xl),Wl={ENTER:13},Kl=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
51
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
52
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
53
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
54
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
55
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
56
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
57
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
58
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
59
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
60
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
61
|
+
summary tabIndex target title type useMap value width wmode wrap`,ql=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
62
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
63
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
64
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
65
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
66
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
67
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Zl="".concat(Kl," ").concat(ql).split(/[\s\n]+/),Jl="aria-",eu="data-";function Go(e,t){return e.indexOf(t)===0}function tu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=V({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||Go(o,Jl))||r.data&&Go(o,eu)||r.attr&&Zl.includes(o))&&(n[o]=e[o])}),n}var Ka=y.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,d=e.closable,g=e.closeIcon,m=g===void 0?"x":g,h=e.props,p=e.onClick,C=e.onNoticeClose,w=e.times,E=e.hovering,A=y.useState(!1),S=W(A,2),F=S[0],T=S[1],I=y.useState(0),O=W(I,2),x=O[0],_=O[1],z=y.useState(0),L=W(z,2),U=L[0],K=L[1],b=E||F,M=i>0&&s,D=function(){C(u)},Q=function(B){(B.key==="Enter"||B.code==="Enter"||B.keyCode===Wl.ENTER)&&D()};y.useEffect(function(){if(!b&&i>0){var R=Date.now()-U,B=setTimeout(function(){D()},i*1e3-U);return function(){c&&clearTimeout(B),K(Date.now()-R)}}},[i,b,w]),y.useEffect(function(){if(!b&&M&&(c||U===0)){var R=performance.now(),B,j=function X(){cancelAnimationFrame(B),B=requestAnimationFrame(function(re){var le=re+U-R,ye=Math.min(le/(i*1e3),1);_(ye*100),ye<1&&X()})};return j(),function(){c&&cancelAnimationFrame(B)}}},[i,U,b,M,w]);var Z=y.useMemo(function(){return ie(d)==="object"&&d!==null?d:d?{closeIcon:m}:{}},[d,m]),ee=tu(Z,!0),N=100-(!x||x<0?0:x>100?100:x),P="".concat(r,"-notice");return y.createElement("div",Re({},h,{ref:t,className:tt(P,o,Y({},"".concat(P,"-closable"),d)),style:n,onMouseEnter:function(B){var j;T(!0),h==null||(j=h.onMouseEnter)===null||j===void 0||j.call(h,B)},onMouseLeave:function(B){var j;T(!1),h==null||(j=h.onMouseLeave)===null||j===void 0||j.call(h,B)},onClick:p}),y.createElement("div",{className:"".concat(P,"-content")},f),d&&y.createElement("a",Re({tabIndex:0,className:"".concat(P,"-close"),onKeyDown:Q,"aria-label":"Close"},ee,{onClick:function(B){B.preventDefault(),B.stopPropagation(),D()}}),Z.closeIcon),M&&y.createElement("progress",{className:"".concat(P,"-progress"),max:"100",value:N},N+"%"))}),qa=ce.createContext({}),ru=function(t){var r=t.children,n=t.classNames;return ce.createElement(qa.Provider,{value:{classNames:n}},r)},Uo=8,$o=3,Vo=16,nu=function(t){var r={offset:Uo,threshold:$o,gap:Vo};if(t&&ie(t)==="object"){var n,o,a;r.offset=(n=t.offset)!==null&&n!==void 0?n:Uo,r.threshold=(o=t.threshold)!==null&&o!==void 0?o:$o,r.gap=(a=t.gap)!==null&&a!==void 0?a:Vo}return[!!t,r]},ou=["className","style","classNames","styles"],au=function(t){var r=t.configList,n=t.placement,o=t.prefixCls,a=t.className,i=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=lt(qa),d=f.classNames,g=de({}),m=H(null),h=W(m,2),p=h[0],C=h[1],w=H([]),E=W(w,2),A=E[0],S=E[1],F=r.map(function(b){return{config:b,key:String(b.key)}}),T=nu(u),I=W(T,2),O=I[0],x=I[1],_=x.offset,z=x.threshold,L=x.gap,U=O&&(A.length>0||F.length<=z),K=typeof s=="function"?s(n):s;return ve(function(){O&&A.length>1&&S(function(b){return b.filter(function(M){return F.some(function(D){var Q=D.key;return M===Q})})})},[A,F,O]),ve(function(){var b;if(O&&g.current[(b=F[F.length-1])===null||b===void 0?void 0:b.key]){var M;C(g.current[(M=F[F.length-1])===null||M===void 0?void 0:M.key])}},[F,O]),ce.createElement(pl,Re({key:n,className:tt(o,"".concat(o,"-").concat(n),d==null?void 0:d.list,a,Y(Y({},"".concat(o,"-stack"),!!O),"".concat(o,"-stack-expanded"),U)),style:i,keys:F,motionAppear:!0},K,{onAllRemoved:function(){l(n)}}),function(b,M){var D=b.config,Q=b.className,Z=b.style,ee=b.index,N=D,P=N.key,R=N.times,B=String(P),j=D,X=j.className,re=j.style,le=j.classNames,ye=j.styles,We=qt(j,ou),Se=F.findIndex(function(Fe){return Fe.key===B}),Ie={};if(O){var Oe=F.length-1-(Se>-1?Se:ee-1),dt=n==="top"||n==="bottom"?"-50%":"0";if(Oe>0){var fe,ot,Ke;Ie.height=U?(fe=g.current[B])===null||fe===void 0?void 0:fe.offsetHeight:p==null?void 0:p.offsetHeight;for(var qe=0,_e=0;_e<Oe;_e++){var ne;qe+=((ne=g.current[F[F.length-1-_e].key])===null||ne===void 0?void 0:ne.offsetHeight)+L}var oe=(U?qe:Oe*_)*(n.startsWith("top")?1:-1),be=!U&&p!==null&&p!==void 0&&p.offsetWidth&&(ot=g.current[B])!==null&&ot!==void 0&&ot.offsetWidth?((p==null?void 0:p.offsetWidth)-_*2*(Oe<3?Oe:3))/((Ke=g.current[B])===null||Ke===void 0?void 0:Ke.offsetWidth):1;Ie.transform="translate3d(".concat(dt,", ").concat(oe,"px, 0) scaleX(").concat(be,")")}else Ie.transform="translate3d(".concat(dt,", 0, 0)")}return ce.createElement("div",{ref:M,className:tt("".concat(o,"-notice-wrapper"),Q,le==null?void 0:le.wrapper),style:V(V(V({},Z),Ie),ye==null?void 0:ye.wrapper),onMouseEnter:function(){return S(function(pe){return pe.includes(B)?pe:[].concat(Te(pe),[B])})},onMouseLeave:function(){return S(function(pe){return pe.filter(function(Et){return Et!==B})})}},ce.createElement(Ka,Re({},We,{ref:function(pe){Se>-1?g.current[B]=pe:delete g.current[B]},prefixCls:o,classNames:le,styles:ye,className:tt(X,d==null?void 0:d.notice),style:re,times:R,key:P,eventKey:P,onNoticeClose:c,hovering:O&&A.length>0})))})},iu=y.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-notification":r,o=e.container,a=e.motion,i=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,d=y.useState([]),g=W(d,2),m=g[0],h=g[1],p=function(O){var x,_=m.find(function(z){return z.key===O});_==null||(x=_.onClose)===null||x===void 0||x.call(_),h(function(z){return z.filter(function(L){return L.key!==O})})};y.useImperativeHandle(t,function(){return{open:function(O){h(function(x){var _=Te(x),z=_.findIndex(function(K){return K.key===O.key}),L=V({},O);if(z>=0){var U;L.times=(((U=x[z])===null||U===void 0?void 0:U.times)||0)+1,_[z]=L}else L.times=0,_.push(L);return i>0&&_.length>i&&(_=_.slice(-i)),_})},close:function(O){p(O)},destroy:function(){h([])}}});var C=y.useState({}),w=W(C,2),E=w[0],A=w[1];y.useEffect(function(){var I={};m.forEach(function(O){var x=O.placement,_=x===void 0?"topRight":x;_&&(I[_]=I[_]||[],I[_].push(O))}),Object.keys(E).forEach(function(O){I[O]=I[O]||[]}),A(I)},[m]);var S=function(O){A(function(x){var _=V({},x),z=_[O]||[];return z.length||delete _[O],_})},F=y.useRef(!1);if(y.useEffect(function(){Object.keys(E).length>0?F.current=!0:F.current&&(c==null||c(),F.current=!1)},[E]),!o)return null;var T=Object.keys(E);return ta(y.createElement(y.Fragment,null,T.map(function(I){var O=E[I],x=y.createElement(au,{key:I,configList:O,placement:I,prefixCls:n,className:s==null?void 0:s(I),style:l==null?void 0:l(I),motion:a,onNoticeClose:p,onAllNoticeRemoved:S,stack:u});return f?f(x,{prefixCls:n,key:I}):x})),o)}),su=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],cu=function(){return document.body},Qo=0;function lu(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(o){o&&Object.keys(o).forEach(function(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function uu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,r=t===void 0?cu:t,n=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=qt(e,su),d=y.useState(),g=W(d,2),m=g[0],h=g[1],p=y.useRef(),C=y.createElement(iu,{container:m,ref:p,prefixCls:o,motion:n,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),w=y.useState([]),E=W(w,2),A=E[0],S=E[1],F=Ur(function(I){var O=lu(f,I);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(Qo),Qo+=1),S(function(x){return[].concat(Te(x),[{type:"open",config:O}])})}),T=y.useMemo(function(){return{open:F,close:function(O){S(function(x){return[].concat(Te(x),[{type:"close",key:O}])})},destroy:function(){S(function(O){return[].concat(Te(O),[{type:"destroy"}])})}}},[]);return y.useEffect(function(){h(r())}),y.useEffect(function(){if(p.current&&A.length){A.forEach(function(x){switch(x.type){case"open":p.current.open(x.config);break;case"close":p.current.close(x.key);break;case"destroy":p.current.destroy();break}});var I,O;S(function(x){return(I!==x||!O)&&(I=x,O=x.filter(function(_){return!A.includes(_)})),O})}},[A]),[T,C]}const Za=e=>{const[,,,,t]=en();return t?`${e}-css-var`:""};var du={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},fu=function(t,r){return y.createElement(yt,Re({},t,{ref:r,icon:du}))},ro=y.forwardRef(fu);const pu=100,gu=10,hu=pu*gu,mu=e=>{const{componentCls:t,iconCls:r,boxShadow:n,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:g,borderRadiusLG:m,zIndexPopup:h,contentPadding:p,contentBg:C}=e,w=`${t}-notice`,E=new xo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),A=new xo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${r}`]:{marginInlineEnd:d,fontSize:c},[`${w}-content`]:{display:"inline-block",padding:p,background:C,borderRadius:m,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${r}`]:{color:a},[`${t}-error > ${r}`]:{color:i},[`${t}-warning > ${r}`]:{color:s},[`${t}-info > ${r},
|
|
68
|
+
${t}-loading > ${r}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},Pc(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
69
|
+
${t}-move-up-appear,
|
|
70
|
+
${t}-move-up-enter
|
|
71
|
+
`]:{animationName:E,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
|
|
72
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
73
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
74
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:A,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},S)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]},vu=e=>({zIndexPopup:e.zIndexPopupBase+hu+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Ja=Nc("Message",e=>{const t=Jn(e,{height:150});return mu(t)},vu);var yu=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Au={info:y.createElement(Vl,null),success:y.createElement(Nl,null),error:y.createElement(jl,null),warning:y.createElement(Wa,null),loading:y.createElement(Yl,null)},ei=({prefixCls:e,type:t,icon:r,children:n})=>y.createElement("div",{className:tt(`${e}-custom-content`,`${e}-${t}`)},r||Au[t],y.createElement("span",null,n)),bu=e=>{const{prefixCls:t,className:r,type:n,icon:o,content:a}=e,i=yu(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=y.useContext(ut),l=t||s("message"),c=Za(l),[u,f,d]=Ja(l,c);return u(y.createElement(Ka,Object.assign({},i,{prefixCls:l,className:tt(r,f,`${l}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:y.createElement(ei,{prefixCls:l,type:n,icon:o},a)})))};function xu(e,t){return{motionName:t??`${e}-move-up`}}function no(e){let t;const r=new Promise(o=>{t=e(()=>{o(!0)})}),n=()=>{t==null||t()};return n.then=(o,a)=>r.then(o,a),n.promise=r,n}var Cu=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Eu=8,Su=3,wu=({children:e,prefixCls:t})=>{const r=Za(t),[n,o,a]=Ja(t,r);return n(y.createElement(ru,{classNames:{list:tt(o,a,r)}},e))},ku=(e,{prefixCls:t,key:r})=>y.createElement(wu,{prefixCls:t,key:r},e),Fu=y.forwardRef((e,t)=>{const{top:r,prefixCls:n,getContainer:o,maxCount:a,duration:i=Su,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:d,direction:g}=y.useContext(ut),m=n||u("message"),h=()=>({left:"50%",transform:"translateX(-50%)",top:r??Eu}),p=()=>tt({[`${m}-rtl`]:s??g==="rtl"}),C=()=>xu(m,l),w=y.createElement("span",{className:`${m}-close-x`},y.createElement(ro,{className:`${m}-close-icon`})),[E,A]=uu({prefixCls:m,style:h,className:p,motion:C,closable:!1,closeIcon:w,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:ku});return y.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:m,message:d})),A});let Xo=0;function ti(e){const t=y.useRef(null);return[y.useMemo(()=>{const n=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},o=l=>{if(!t.current){const F=()=>{};return F.then=()=>{},F}const{open:c,prefixCls:u,message:f}=t.current,d=`${u}-notice`,{content:g,icon:m,type:h,key:p,className:C,style:w,onClose:E}=l,A=Cu(l,["content","icon","type","key","className","style","onClose"]);let S=p;return S==null&&(Xo+=1,S=`antd-message-${Xo}`),no(F=>(c(Object.assign(Object.assign({},A),{key:S,content:y.createElement(ei,{prefixCls:u,type:h,icon:m},g),placement:"top",className:tt(h&&`${d}-${h}`,C,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),w),onClose:()=>{E==null||E(),F()}})),()=>{n(S)}))},i={open:o,destroy:l=>{var c;l!==void 0?n(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,d)=>{let g;u&&typeof u=="object"&&"content"in u?g=u:g={content:u};let m,h;typeof f=="function"?h=f:(m=f,h=d);const p=Object.assign(Object.assign({onClose:h,duration:m},g),{type:l});return o(p)};i[l]=c}),i},[]),y.createElement(Fu,Object.assign({key:"message-holder"},e,{ref:t}))]}function Tu(e){return ti(e)}let ze=null,xt=e=>e(),rr=[],nr={};function Yo(){const{getContainer:e,duration:t,rtl:r,maxCount:n,top:o}=nr,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:r,maxCount:n,top:o}}const Ru=ce.forwardRef((e,t)=>{const{messageConfig:r,sync:n}=e,{getPrefixCls:o}=lt(ut),a=nr.prefixCls||o("message"),i=lt(Pi),[s,l]=ti(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),i.message));return ce.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...f)=>(n(),s[u].apply(s,f))}),{instance:c,sync:n}}),l}),Iu=ce.forwardRef((e,t)=>{const[r,n]=ce.useState(Yo),o=()=>{n(Yo)};ce.useEffect(o,[]);const a=xl(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=ce.createElement(Ru,{ref:t,sync:o,messageConfig:r});return ce.createElement(Ht,{prefixCls:i,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)}),rn=()=>{if(!ze){const e=document.createDocumentFragment(),t={fragment:e};ze=t,xt(()=>{Bl()(ce.createElement(Iu,{ref:n=>{const{instance:o,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=a,rn())})}}),e)});return}ze.instance&&(rr.forEach(e=>{const{type:t,skipped:r}=e;if(!r)switch(t){case"open":{xt(()=>{const n=ze.instance.open(Object.assign(Object.assign({},nr),e.config));n==null||n.then(e.resolve),e.setCloseFn(n)});break}case"destroy":xt(()=>{ze==null||ze.instance.destroy(e.key)});break;default:xt(()=>{var n;const o=(n=ze.instance)[t].apply(n,Te(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),rr=[])};function Ou(e){nr=Object.assign(Object.assign({},nr),e),xt(()=>{var t;(t=ze==null?void 0:ze.sync)===null||t===void 0||t.call(ze)})}function Mu(e){const t=no(r=>{let n;const o={type:"open",config:e,resolve:r,setCloseFn:a=>{n=a}};return rr.push(o),()=>{n?xt(()=>{n()}):o.skipped=!0}});return rn(),t}function Pu(e,t){const r=no(n=>{let o;const a={type:e,args:t,resolve:n,setCloseFn:i=>{o=i}};return rr.push(a),()=>{o?xt(()=>{o()}):a.skipped=!0}});return rn(),r}const Bu=e=>{rr.push({type:"destroy",key:e}),rn()},_u=["success","info","warning","error","loading"],Du={open:Mu,destroy:Bu,config:Ou,useMessage:Tu,_InternalPanelDoNotUseOrYouWillBeFired:bu},Lr=Du;_u.forEach(e=>{Lr[e]=(...t)=>Pu(e,t)});var zr={exports:{}};/*!
|
|
75
|
+
* clipboard.js v2.0.11
|
|
76
|
+
* https://clipboardjs.com/
|
|
77
|
+
*
|
|
78
|
+
* Licensed MIT © Zeno Rocha
|
|
79
|
+
*/var Nu=zr.exports,Wo;function Lu(){return Wo||(Wo=1,(function(e,t){(function(n,o){e.exports=o()})(Nu,function(){return(function(){var r={686:(function(a,i,s){s.d(i,{default:function(){return ee}});var l=s(279),c=s.n(l),u=s(370),f=s.n(u),d=s(817),g=s.n(d);function m(N){try{return document.execCommand(N)}catch{return!1}}var h=function(P){var R=g()(P);return m("cut"),R},p=h;function C(N){var P=document.documentElement.getAttribute("dir")==="rtl",R=document.createElement("textarea");R.style.fontSize="12pt",R.style.border="0",R.style.padding="0",R.style.margin="0",R.style.position="absolute",R.style[P?"right":"left"]="-9999px";var B=window.pageYOffset||document.documentElement.scrollTop;return R.style.top="".concat(B,"px"),R.setAttribute("readonly",""),R.value=N,R}var w=function(P,R){var B=C(P);R.container.appendChild(B);var j=g()(B);return m("copy"),B.remove(),j},E=function(P){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},B="";return typeof P=="string"?B=w(P,R):P instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(P==null?void 0:P.type)?B=w(P.value,R):(B=g()(P),m("copy")),B},A=E;function S(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(R){return typeof R}:S=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},S(N)}var F=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=P.action,B=R===void 0?"copy":R,j=P.container,X=P.target,re=P.text;if(B!=="copy"&&B!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(X!==void 0)if(X&&S(X)==="object"&&X.nodeType===1){if(B==="copy"&&X.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(B==="cut"&&(X.hasAttribute("readonly")||X.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(re)return A(re,{container:j});if(X)return B==="cut"?p(X):A(X,{container:j})},T=F;function I(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(R){return typeof R}:I=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},I(N)}function O(N,P){if(!(N instanceof P))throw new TypeError("Cannot call a class as a function")}function x(N,P){for(var R=0;R<P.length;R++){var B=P[R];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(N,B.key,B)}}function _(N,P,R){return P&&x(N.prototype,P),R&&x(N,R),N}function z(N,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(P&&P.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),P&&L(N,P)}function L(N,P){return L=Object.setPrototypeOf||function(B,j){return B.__proto__=j,B},L(N,P)}function U(N){var P=M();return function(){var B=D(N),j;if(P){var X=D(this).constructor;j=Reflect.construct(B,arguments,X)}else j=B.apply(this,arguments);return K(this,j)}}function K(N,P){return P&&(I(P)==="object"||typeof P=="function")?P:b(N)}function b(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function D(N){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},D(N)}function Q(N,P){var R="data-clipboard-".concat(N);if(P.hasAttribute(R))return P.getAttribute(R)}var Z=(function(N){z(R,N);var P=U(R);function R(B,j){var X;return O(this,R),X=P.call(this),X.resolveOptions(j),X.listenClick(B),X}return _(R,[{key:"resolveOptions",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof j.action=="function"?j.action:this.defaultAction,this.target=typeof j.target=="function"?j.target:this.defaultTarget,this.text=typeof j.text=="function"?j.text:this.defaultText,this.container=I(j.container)==="object"?j.container:document.body}},{key:"listenClick",value:function(j){var X=this;this.listener=f()(j,"click",function(re){return X.onClick(re)})}},{key:"onClick",value:function(j){var X=j.delegateTarget||j.currentTarget,re=this.action(X)||"copy",le=T({action:re,container:this.container,target:this.target(X),text:this.text(X)});this.emit(le?"success":"error",{action:re,text:le,trigger:X,clearSelection:function(){X&&X.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(j){return Q("action",j)}},{key:"defaultTarget",value:function(j){var X=Q("target",j);if(X)return document.querySelector(X)}},{key:"defaultText",value:function(j){return Q("text",j)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(j){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return A(j,X)}},{key:"cut",value:function(j){return p(j)}},{key:"isSupported",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],X=typeof j=="string"?[j]:j,re=!!document.queryCommandSupported;return X.forEach(function(le){re=re&&!!document.queryCommandSupported(le)}),re}}]),R})(c()),ee=Z}),828:(function(a){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==i;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}a.exports=l}),438:(function(a,i,s){var l=s(828);function c(d,g,m,h,p){var C=f.apply(this,arguments);return d.addEventListener(m,C,p),{destroy:function(){d.removeEventListener(m,C,p)}}}function u(d,g,m,h,p){return typeof d.addEventListener=="function"?c.apply(null,arguments):typeof m=="function"?c.bind(null,document).apply(null,arguments):(typeof d=="string"&&(d=document.querySelectorAll(d)),Array.prototype.map.call(d,function(C){return c(C,g,m,h,p)}))}function f(d,g,m,h){return function(p){p.delegateTarget=l(p.target,g),p.delegateTarget&&h.call(d,p)}}a.exports=u}),879:(function(a,i){i.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},i.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||i.node(s[0]))},i.string=function(s){return typeof s=="string"||s instanceof String},i.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}}),370:(function(a,i,s){var l=s(879),c=s(438);function u(m,h,p){if(!m&&!h&&!p)throw new Error("Missing required arguments");if(!l.string(h))throw new TypeError("Second argument must be a String");if(!l.fn(p))throw new TypeError("Third argument must be a Function");if(l.node(m))return f(m,h,p);if(l.nodeList(m))return d(m,h,p);if(l.string(m))return g(m,h,p);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(m,h,p){return m.addEventListener(h,p),{destroy:function(){m.removeEventListener(h,p)}}}function d(m,h,p){return Array.prototype.forEach.call(m,function(C){C.addEventListener(h,p)}),{destroy:function(){Array.prototype.forEach.call(m,function(C){C.removeEventListener(h,p)})}}}function g(m,h,p){return c(document.body,m,h,p)}a.exports=u}),817:(function(a){function i(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var c=s.hasAttribute("readonly");c||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),c||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),f=document.createRange();f.selectNodeContents(s),u.removeAllRanges(),u.addRange(f),l=u.toString()}return l}a.exports=i}),279:(function(a){function i(){}i.prototype={on:function(s,l,c){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:l,ctx:c}),this},once:function(s,l,c){var u=this;function f(){u.off(s,f),l.apply(c,arguments)}return f._=l,this.on(s,f,c)},emit:function(s){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[s]||[]).slice(),u=0,f=c.length;for(u;u<f;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(s,l){var c=this.e||(this.e={}),u=c[s],f=[];if(u&&l)for(var d=0,g=u.length;d<g;d++)u[d].fn!==l&&u[d].fn._!==l&&f.push(u[d]);return f.length?c[s]=f:delete c[s],this}},a.exports=i,a.exports.TinyEmitter=i})},n={};function o(a){if(n[a])return n[a].exports;var i=n[a]={exports:{}};return r[a](i,i.exports,o),i.exports}return(function(){o.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(i,{a:i}),i}})(),(function(){o.d=function(a,i){for(var s in i)o.o(i,s)&&!o.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}})(),(function(){o.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),o(686)})().default})})(zr)),zr.exports}var zu=Lu();const ju=Mi(zu),uf=(e,t)=>{let r=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");r=r.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),r=r.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",r);const n=new ju(t.currentTarget||t.target,{text:()=>r});try{n.on("success",()=>{Lr.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),n.destroy()}),n.on("error",o=>{Lr.error("\u590D\u5236\u5931\u8D25",2),n.destroy()}),n.onClick(t)}catch(o){n.destroy(),Lr.error("\u590D\u5236\u5931\u8D25: "+o,2)}};function df(e){const t=[];for(const r of e){if(r.query){const n=r.query.queryId||r.query.id||r.queryId||r.id||lo(32);t.push({istype:"user",content:r.query.content,time:r.query.gmtCreate,queryId:n,clientSideId:n+"-user",...r.query})}if(r.reply){const n=r.reply.queryId||r.reply.id||r.queryId||r.id||lo(32);t.push({istype:"ai",content:r.reply.content,isDefault:r.reply.isDefault,time:r.time||r.gmtCreate||Date.now(),queryId:n,clientSideId:n+"-ai",...r.reply})}}return t}function Hu(e,t=300,r=!1){let n=null,o;return function(...a){const i=this;if(n!==null&&clearTimeout(n),r){const s=n===null;n=setTimeout(()=>{n=null},t),s&&(o=e.apply(i,a))}else n=setTimeout(()=>{e.apply(i,a)},t);return o}}const Gu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAF1JREFUeAHdkdsNgCAMRa/GBdzMERyBTR1BR9AJ6uUD0pDQBPiAcJLz01faFBgaEXH0RC1sfuht1axopP+ACG89/L2JAR27fG1ug48uyoCO7SjYapIvvFZyg43D8PzLiUYZ4mKVgQAAAABJRU5ErkJggg==",Uu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAj5JREFUeAHtl78vLFEUx79n3o6XXc2G9xpP8iQoSIiNgkq0NCIqoVFohf9EqdMQlYSGlpIQbEOyWyxB40dWYWV/yHWPQbB3d+/OXHEl+6l29052PnPOme+dIUhmV0RLwRWLIPTIr1F8NwJrhXx2bmE8nKJnuTpxABvEPpIu5LIxJ++Kedgnx0RD7u9FhwgjsBU5cg7sJmq7IGqCQakJBiUEgwy2At1NQEM9cJEG4pfAzhkCYUxwup/l6O17Y+RFNiKweQLfGGlx3/+Pcu8Z7iS0/4FvjAgOtlLZ9a4m+MaIYLiu/HrEhW+MCN7el1+/ycA3RgR3zkTZ9d1T+MaMoBTYSqrXztPBKmgsZjI5IVtNSFx7M8ltT1wLjHWTjCB6/hx2vYu5rULYl2CbjI1m+YjLJ+QKPeS9OFnaE0XB/CDFZwboLYaGO6A8zohggwzfyV6g/W9xrHDlVCdVRcyQvJhKc/uK9gxytbgSKjmGw1gVyKqI4V1GF21B3mcr/fFEr7qyOr+VQluw1Fb2nsb64ip+vsNZbnlPr72M9gw2a7738ZMMPlVoNS4fGI69Mak2crQryHeq1nE59e+ZvL881BaMX+q15eIORtEW5DmqVEVuY5BdQ4W24LmszOqRKCnJN8PGsf7w61JVUHMQJ+WWNdRB+Peyk3BLt5ICiSt8CVVvddzCpX3zlSpF7bUzKDXBoPwAQUIaFsMVPISlCIF1J0Q0ZWUVpdPjr+ysMz9KKSkZY1vYgFes7QJlYwuj4dQTnYG2vRGkSsoAAAAASUVORK5CYII=",$u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAOxJREFUeAGtUwsRgzAMbadgU7BKqIROwXCABSTMwXAwC6AAHGxTAA5gClje7sH1oHxuR+4epM3ra5O0Su1lXdc5QSIwC5wjOdE4YAWVIMV/QWDgYEM/ANWUfoOdZnav6EPkNgkSEIgDAjFjDXkG83pEMnQLQS44C3Cat+AquAharXWrlowpPVlYSz9RW03IBRZ6YwhlIe5hRuPDo/fWjsarAi/Bncd34j8EmVozdqO/E6hDiaOjZZyzoRb/qu+1sPHz9ziWsdpvY58CrmYp7Tkx/1CbanyEg4U51wzq7o+rPHkP0YbHZFgPp/ayL/u4IrniEzDSAAAAAElFTkSuQmCC",Vu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAhJJREFUeAGtU1tu00AUvXfGQUhpKrv0v2YFhBUQVpCwgoQV4Dgg8ZdfJIjrHTTeQVgBYQW4K6j5QuJll9RShT0z3OvESFA7UqXOj2fu49zjM2cA7mhhvbG91FZSDQol4+vQSfY1db2vfSGFu1kcr24AHfrpBaBBA3iijZ7mwYOwCaTnf58AyjPaZmAgkxoeZ6GTCU4evPw2MAj2r8WRyyACcNTGxqAcc81m4TjUkxVCVbVWlSytDCXYXf+HJ1AMOdQGhNpcCiHGxCyjY7+8J9ccrxjloRNT6/OKidafueDAT+ecu+99cVmTLXOKCXxiQJ9T6wQRptdvtnpi09Tuq7QvNHwgWgkV9HdhZgBawNP8LQ3+b4kmIC4k1TPQ8FEqcEgPOuqIUnETSDsjjxhJ+MQAdWxrD0gLBQ+b7NHIqLP7DW6uY3zF/JUdsJt6GoGoKSF94lLAvAYk8U9pm9zu12bpmCYsKcmAbhU05hwQH2mQk3xxGLUCsWPJbMNdcMR22ATOkm9QFZCxLj0/JVfDGeWWZEbXGBXlwfHyLxBRd0nIC21gKhCGNP1yExw1urs3/blCgSfKQES1c6Pg2VXorCuNSqt0aUqSB05I9n/P2LBnKaMjrq2YyG1t9USs0oq1pGmzNOUzM2sDQcS1QDyl2hd0zIoOxP9oVNGepSN+iFfvnDXsWfZrkuI3DOjlr2pb3Nn6A/a373vIafm+AAAAAElFTkSuQmCC",Qu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAcJJREFUeAG1lV9OwkAQxr9ZStWEmCbqO96AI+gRgOgrcALwJngC4BUTOILeQDwBvCOxiSZKoR13Sih/KtsG4Uv6L53Ob3e28y1wZFGaoK/uVcEGCkycDz9iGnnAIHc/HuwN4JbjeOdWXQc09KPzZwx4xKyaJ5+zDtVcNzXg++nyJqO4pV/nkUICCgKqnd29vyQCvN5FBUxt7CPiql2adHYCFiPHM/4hP8Dt+kzU8kZqviiLUW9EMC6s0jkkVwwwzalqUs0pQGPu48EYo3N4OasRAyhFdRxIpFDfAHhdp5D2j0kpR3onAgDZAg4sG8EKsOzQQ4qJ8hHgmLLkJN4i/ZgkVlRRHFAaCyPmUQQAZoPo1oyoEqXyR3hQYb9E0V7v8kNPwjF95CvrWq6ZYD40xen6j05K4zB21cmMR5jlnro/4aGH5RoBzFGuCGCreRMka7FT2r4zr7Nza2iaaTh6NW/HAFR0Xd/nGgwSGwDMZVQ6h+SKAUTigj7ICDHJB9eyW3tCrA/OyuO2WG5CuTYkZSGx6fKkvf1u95bZd5xpYFUVaRPkHZ2uF1t+Dlm/9bKkAqzL62vjmm1u+shiYBeTN/2j6xcsI6/4oTWEKwAAAABJRU5ErkJggg==",{Text:Xu,Paragraph:Yu}=Xn,Wu=({confirmLoading:e,visible:t,onConfirm:r,onCancel:n,loading:o,title:a="\u786E\u8BA4\u5220\u9664\u56FE\u8C31\u5E93?",description:i="\u5220\u9664\u65F6\u4F1A\u5C06\u56FE\u8C31\u5E93\u5185\u6240\u6709\u56FE\u8C31\u89E3\u9664\u5173\u8054\uFF0C\u4E0D\u53EF\u6062\u590D\uFF0C\u662F\u5426\u786E\u8BA4\u5220\u9664?"})=>v(Qr,{open:t,title:$("div",{style:{display:"flex"},children:[v("img",{src:Qu,width:24,style:{marginRight:"12px"}}),v("div",{children:a})]}),onOk:r,onCancel:n,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",centered:!0,maskClosable:!1,okButtonProps:{style:{background:"#4E6EF2"}},confirmLoading:e,width:400,closable:!1,children:$("div",{style:{marginLeft:"35px"},children:[v(Yu,{style:{margin:0},children:i}),v(Xu,{type:"secondary"})]})}),{TextArea:Ku}=je,ri=({visible:e,initialValues:t,title:r,confirmLoading:n,graphDbType:o,onCancel:a,onSubmit:i,onTest:s,fromType:l})=>{const[c]=xe.useForm(),[u,f]=H(!1),[d,g]=H(),[m,h]=H(),[p,C]=H(!1);ve(()=>{l&&e&&t?(c.setFieldsValue({...t}),g(t==null?void 0:t.desc)):c.resetFields()},[e,t]);const w=async()=>{if(!s){Be.info("\u672A\u63D0\u4F9B\u8FDE\u63A5\u6D4B\u8BD5\u51FD\u6570");return}try{const E=await c.validateFields(["dbType","host","port","username","password"]);f(!0),await s(E)?Be.success("\u8FDE\u63A5\u6210\u529F"):Be.error("\u8FDE\u63A5\u5931\u8D25")}catch(E){E!=null&&E.message&&Be.error(E.message)}finally{f(!1)}};return v(Qr,{open:e,title:r||(t?"\u7F16\u8F91\u56FE\u8C31\u5E93":"\u65B0\u5EFA\u56FE\u6570\u636E\u5E93\u8FDE\u63A5"),onCancel:a,footer:[v(Ce,{onClick:a,children:"\u53D6\u6D88"},"cancel"),v(Ce,{onClick:async()=>{try{const E=await c.validateFields();if(l==="edit"){if(!(t!=null&&t.id))return Be.warning("\u6CA1\u6709\u56FE\u8C31\u5E93id");const A=l==="edit"?{name:E.name,desc:E.desc,configId:t.id}:{...E,abstractModelName:t.abstractModelName};p&&(A.password=E.password),i(A);return}i(E)}catch{}},style:{background:"#4E6EF2",color:"#fff",border:"none"},loading:n,children:"\u786E\u8BA4"},"primary")],destroyOnHidden:!0,centered:!0,styles:{body:{height:"calc(100% - 80px)"},content:{height:"88vh",maxHeight:"827px"},footer:{paddingTop:0}},afterClose:()=>{c.resetFields(),f(!1),g(void 0),h(void 0),C(!1)},children:v("div",{style:{width:"100%",height:"100%",padding:"0 8px 0 0 ",overflowY:"auto"},children:$(xe,{form:c,layout:"vertical",initialValues:{dbType:"MySQL",...t},style:{marginTop:"20px"},children:[v(xe.Item,{label:"\u56FE\u8C31\u5E93\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u8C31\u5E93\u540D\u79F0"},{validator:async(E,A)=>{if(!A)return Promise.resolve();if(A.length>100)return Promise.reject(new Error("\u6700\u957F 100 \u4E2A\u5B57\u7B26"));try{if(!new RegExp("^[\\p{L}\\p{N}\\p{P}\\p{S} ]+$","u").test(A))return Promise.reject(new Error("\u4EC5\u652F\u6301\u6C49\u5B57\u3001\u5B57\u6BCD\u3001\u6570\u5B57\u53CA\u7B26\u53F7"))}catch{}return Promise.resolve()}}],children:v(je,{placeholder:"\u8BF7\u8F93\u5165\u56FE\u8C31\u5E93\u540D\u79F0",maxLength:100,showCount:!0})}),v(xe.Item,{label:"\u63CF\u8FF0",name:"desc",rules:[{max:150,message:"\u6700\u957F 150 \u4E2A\u5B57\u7B26"},{validator:async(E,A)=>{if(!A)return Promise.resolve();if(A.length>150)return Promise.reject(new Error("\u6700\u957F 150 \u4E2A\u5B57\u7B26"));try{if(!new RegExp("^[\\p{L}\\p{N}\\p{P}\\p{S} ]+$","u").test(A))return Promise.reject(new Error("\u4EC5\u652F\u6301\u6C49\u5B57\u3001\u5B57\u6BCD\u3001\u6570\u5B57\u53CA\u7B26\u53F7"))}catch{}return Promise.resolve()}}],children:v("div",{style:{border:"1px solid #D9D9D9",borderRadius:4,height:120,background:"#fff",marginTop:"8px"},className:"countInside",children:v(Ku,{placeholder:"\u8BF7\u8F93\u5165\u56FE\u8C31\u5E93\u63CF\u8FF0",rows:4,maxLength:150,showCount:!0,value:d,onChange:E=>{g(E.target.value)},style:{border:"none",resize:"none",outline:"none",boxShadow:"none"}})})}),$("div",{style:{marginTop:8},children:[$("div",{style:{marginBottom:6,fontWeight:700,fontSize:"14px",color:"#2a2a2a",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[v("div",{style:{display:"flex",flex:"noWrap",flexShrink:0},children:"\u76F4\u8FDE\u6570\u636E\u6E90\u4FE1\u606F"}),v("div",{style:{height:0,borderTop:"1px dashed #EBEBEB",width:"357px"}})]}),v(xe.Item,{label:"\u56FE\u6570\u636E\u5E93\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56FE\u6570\u636E\u5E93\u7C7B\u578B"}],children:v(Xr,{options:o,placeholder:"\u8BF7\u9009\u62E9",disabled:l==="edit"})}),v(xe.Item,{label:"\u4E3B\u673A\u5730\u5740",name:"host",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E3B\u673A\u5730\u5740"},{max:100}],children:v(je,{placeholder:"\u8BF7\u8F93\u5165",maxLength:100,showCount:!0,disabled:l==="edit"})}),v(xe.Item,{label:"\u7AEF\u53E3\u53F7",name:"port",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7AEF\u53E3\u53F7"},{pattern:/^\d{1,5}$/,message:"\u8BF7\u8F93\u5165\u6709\u6548\u7AEF\u53E3\u53F7"}],children:v(je,{placeholder:"\u7AEF\u53E3",maxLength:5,showCount:!0,disabled:l==="edit"})}),$("div",{style:{width:"100%",display:"flex",justifyContent:"space-between"},children:[v(xe.Item,{label:"\u7528\u6237\u540D",name:"account",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"}],style:{flex:1},children:v(je,{placeholder:"\u8BF7\u8F93\u5165",disabled:l==="edit"})}),v("div",{style:{width:"20px"}}),v(xe.Item,{label:"\u5BC6\u7801",name:"password",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801"}],style:{flex:1},children:v(je.Password,{placeholder:"\u8BF7\u8F93\u5165",disabled:l==="edit"&&!p,value:m,onChange:E=>{h(E.target.value)},autoComplete:"new-password"})})]}),l==="edit"&&v(xe.Item,{children:v(Ce,{onClick:()=>{l==="edit"?p||(h(""),c.setFieldValue("password",""),C(!0)):w()},loading:u,type:"primary",style:{background:"#4E6EF2"},children:"\u4FEE\u6539\u5BC6\u7801"},"test")})]})]})})})};var qu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Zu=function(t,r){return y.createElement(yt,Re({},t,{ref:r,icon:qu}))},ni=y.forwardRef(Zu),Ju={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},ed=function(t,r){return y.createElement(yt,Re({},t,{ref:r,icon:Ju}))},oi=y.forwardRef(ed);const td="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAUVJREFUeAGlU81Kw0AQntksNaCFPkLyBvUJzFEEJReh3upBqDffwFfw1h7ryeLFoB68WZ/AvoHbNwgeNEHNOFNI2ab5oXRgw+zMt1++2dlBKLEgvOq03STM95Rh/Kto9jIZmSIWi4HD3sBrIb6y6xVS5vN7Z38a3cR2UBUJNGJXDisi//FuiLLEl5itakXBcW/QZ6YD8TNEj4MBEo1tICH2iWCqgMwCB/D2NBmNlwrkoID44ByIbonJ7SUx/swFkwF6RSULFSdnlwQNJhjBLkuuAh6dXnS/fnaN+HutNHi+H0ZluEoCrfV720nOWXLMdT5AScfEFDQY30mnLt9I0GRbE+ianCHMYk0q5p6bjQn4BfrW1q/CrZUgs1AFznOibE2B47pRlqbXPEgf/FigxgyXNcs3K70N5Q88TH81rXMSN4qsifwHCCJ2+Y9JDmIAAAAASUVORK5CYII=",Ee=Ci.create({baseURL:"",timeout:1e6});Ee.interceptors.request.use(e=>e);Ee.interceptors.response.use(e=>{var t,r;return(t=e==null?void 0:e.data)!=null&&t.success||Be.error(((r=e==null?void 0:e.data)==null?void 0:r.errorMsg)||"\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),e},e=>{var t,r,n,o,a,i,s,l,c,u;if(e.message!=="canceled"){if((((r=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:r.errorCode)==="30013"||((o=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:o.errorCode)==="30023")&&(Be.error((((a=e==null?void 0:e.response)==null?void 0:a.data)||{}).errorMsg||"\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),location.pathname!=="/login"&&(location.pathname="/login")),((i=e==null?void 0:e.response)==null?void 0:i.status)===401){console.log("Error url:",(s=e==null?void 0:e.request)==null?void 0:s.responseURL),Be.error((((l=e==null?void 0:e.response)==null?void 0:l.data)||{}).errorMsg||"\u6CA1\u6709\u8DB3\u591F\u6743\u9650");return}console.log("Error occurs",e),(((c=e==null?void 0:e.response)==null?void 0:c.data)||{}).errorMsg!="\u672A\u8BBE\u7F6E\u9ED8\u8BA4\u914D\u7F6E\uFF01"&&Be.error((((u=e==null?void 0:e.response)==null?void 0:u.data)||{}).errorMsg||"\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5")}});const rd=async(e,t)=>{var r;try{const n=await Ee.post(`${ke()}/graph/graphdb/pageGraphDb`,e,{headers:{Authorization:t.token}});return console.log("api_getPageGraphDb",n),(r=n==null?void 0:n.data)==null?void 0:r.data}catch{}},nd=async(e,t)=>{var r;try{const n=await Ee.post(`${ke()}/graph/graphdb/pageShareGraphDb`,e,{headers:{Authorization:t.token}});return console.log("api_getPageShareGraphDb",n),(r=n==null?void 0:n.data)==null?void 0:r.data}catch{}},od=async(e,t)=>{var r;try{const n=await Ee.post(`${ke()}/graph/graphdb/addLinkConfig`,e,{headers:{Authorization:t.token}});return console.log("api_addLinkConfig",n),(r=n==null?void 0:n.data)==null?void 0:r.data}catch{}},ad=async e=>{var t;try{const r=await Ee.get(`${ke()}/graph/graphdb/type`,{headers:{Authorization:e.token}});return console.log("api_getPageGraphDb",r),(t=r==null?void 0:r.data)==null?void 0:t.data}catch{}},id=async(e,t)=>{var r;try{const n=await Ee.delete(`${ke()}/graph/graphdb/${e.id}`,{headers:{Authorization:t.token}});return console.log("api_getPageGraphDb",n),(r=n==null?void 0:n.data)==null?void 0:r.data}catch{}},sd=async(e,t)=>{var r;try{const n=await Ee.post(`${ke()}/graph/graphdb/editGraphSpace`,e,{headers:{Authorization:t.token}});return console.log("api_editGraphSpace",n),(r=n==null?void 0:n.data)==null?void 0:r.data}catch{}},ai=async(e,t)=>{var r;try{const n=await Ee.post(`${ke()}/graph/graphdb/updateDbConfig`,e,{headers:{Authorization:t.token}});return console.log("api_updateDbConfig",n),(r=n==null?void 0:n.data)==null?void 0:r.data}catch{}},cd=async(e,t)=>{var r;try{const n=await Ee.post(`${ke()}/graph/graphdb/graphList`,e,{headers:{Authorization:t.token}});return console.log("api_graphList",n),(r=n==null?void 0:n.data)==null?void 0:r.data}catch{}},ld=async(e,t)=>{var r;try{const n=await Ee.post(`${ke()}/graph/graphdb/pageAssociatedGraphList`,e,{headers:{Authorization:t.token}});return console.log("api_pageAssociatedGraphList",n),(r=n==null?void 0:n.data)==null?void 0:r.data}catch{}},ud=async(e,t)=>{var r;try{const n=await Ee.post(`${ke()}/graph/graphdb/associate`,e,{headers:{Authorization:t.token}});return console.log("api_associateGraphdb",n),(r=n==null?void 0:n.data)==null?void 0:r.data}catch{}},dd=async(e,t)=>{var r;try{const n=await Ee.delete(`${ke()}/graph/graphdb/dissociate/${e.id}`,{headers:{Authorization:t.token}});return console.log("api_deleteGraphDissociate",n),(r=n==null?void 0:n.data)==null?void 0:r.data}catch{}},fd=async e=>{const t={pageNum:1,pageSize:9999,status:1,type:1};try{const r=await Ee.get(`${ke()}/index/modelInfo/allPage?${new URLSearchParams(t).toString()}`,{headers:{Authorization:e.token}}),{data:n}=r;return n?n==null?void 0:n.data:!1}catch(r){console.log("getModels error",r)}},pd=async(e,t)=>{try{const r=await Ee.get(`${ke()}/graph/graphdb/getSubGraph/${e.id}`,{headers:{Authorization:t.token}}),{data:n}=r;return n?n==null?void 0:n.data:!1}catch(r){console.log("getModels error",r)}},gd=async(e,t)=>{try{const r=await Ee.get(`${ke()}/graph/graphdb/generateGraphAbstract/${e.id}`,{headers:{Authorization:t.token}}),{data:n}=r;return n?n==null?void 0:n.data:!1}catch(r){console.log("getModels error",r)}},hd=async(e,t)=>{var r;try{const n=await Ee.post(`${ke()}/graph/graphdb/oneStepSearch`,e,{headers:{Authorization:t.token}});return console.log("api_getOneStepSearch",n),(r=n==null?void 0:n.data)==null?void 0:r.data}catch{}},{Option:Ko}=Xr,{TextArea:md}=je,{Text:vd}=Xn,En=10,yd=10;function Sn(){return`${Date.now()}_${Math.random().toString(36).slice(2,9)}`}function Ad({token:e,visible:t,onClose:r,onConfirm:n,initial:o=[],activeLibrary:a,confirmLoading:i}){const[s]=xe.useForm(),[l,c]=H(o.map(b=>({id:Sn(),spaceName:b.spaceName,desc:b.desc}))),[u,f]=H([]),[d,g]=H(!1),m=de(!0),[h,p]=H(""),C=de(1),w=de([]),E=de(!1),A=de(a),S=l.map(b=>b.spaceName).filter(Boolean),F=b=>u.map(M=>({...M,disabled:S.includes(M.value)&&M.value!==b})),T=b=>{const{target:M}=b;m.current&&!d&&!E.current&&M.scrollTop+M.clientHeight>=M.scrollHeight-10&&(C.current+=1,I(h,C.current,!0))},I=Wt(async(b,M,D=!1)=>{var Q;if(!E.current){E.current=!0,g(!0);try{U({pageSize:yd,pageNo:M,configId:(Q=A.current)==null?void 0:Q.id},{token:e||""},D)}finally{g(!1),E.current=!1}}},[]);function O(){l.length>=En||c(b=>[...b,{id:Sn()}])}function x(b){const M=l.find(D=>D.id===b);c(D=>D.filter(Q=>Q.id!==b)),M&&(s.setFieldValue(`spaceName_${b}`,void 0),s.setFieldValue(`desc_${b}`,void 0))}function _(b,M){c(D=>D.map(Q=>Q.id===b?{...Q,...M}:Q))}function z(){return l.length===0?(Be.warning("\u8BF7\u586B\u5199\u5173\u8054\u56FE\u8C31"),!1):l.every(b=>b.spaceName&&!b.error)}const L=async()=>{if(await s.validateFields(),!z())return;const b=l.map(M=>({spaceName:(M.spaceName||"").trim(),desc:M.desc}));console.log("r-->",b),n({configId:a.id,associatedGraphs:b})},U=async(b,M,D)=>{var Q;try{const Z=await cd(b,M);if(Z){const{records:ee,total:N}=Z,P=(ee||[]).map(R=>({label:R,value:R}));w.current=D?[...w.current,...P]:P,f(R=>D?[...R,...P]:P),m.current=((Q=w.current)==null?void 0:Q.length)<N}}catch{}},K=Wt(Hu(b=>{p(b),C.current=1,m.current=!0,I(b,1)},300),[]);return ve(()=>{!a||!t||(A.current=a,U({pageSize:10,pageNo:1,configId:a==null?void 0:a.id},{token:e||""}))},[a,t]),v(Qr,{title:"\u5173\u8054\u77E5\u8BC6\u56FE\u8C31",open:t,onCancel:r,footer:$("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[$(vd,{type:"secondary",children:["\u5DF2\u5173\u8054 ",(l==null?void 0:l.length)||0,"/",En," \u4E2A\u56FE\u8C31"]}),$(hi,{children:[v(Ce,{onClick:r,children:"\u53D6\u6D88"}),v(Ce,{type:"primary",onClick:L,style:{background:"#4E6EF2"},loading:i,children:"\u786E\u8BA4"})]})]}),width:640,destroyOnHidden:!0,afterClose:()=>{s.resetFields(),m.current=!0,w.current=[],C.current=1,E.current=!1,f([]),p(""),c(o.map(b=>({id:Sn(),spaceName:b.spaceName,desc:b.desc})))},children:$("div",{children:[v(xe,{labelCol:{span:3},colon:!1,form:s,children:l.map((b,M)=>$("div",{style:{border:"1px solid #E5E6EB",padding:12,borderRadius:6,marginBottom:12,position:"relative",background:"#F5F6F9",display:"flex",alignItems:"center"},children:[$("div",{style:{flex:1},children:[v("div",{style:{display:"flex",gap:12},children:v("div",{style:{flex:1},children:v(xe.Item,{label:"\u540D\u79F0",required:!0,style:{marginBottom:6},name:`spaceName_${b.id}`,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56FE\u8C31\u540D\u79F0"}],children:$(Xr,{showSearch:!0,filterOption:!1,onSearch:K,onPopupScroll:T,loading:d,notFoundContent:d?v(Fn,{size:"small"}):"\u6682\u65E0\u6570\u636E",style:{width:"100%"},value:b.spaceName,onChange:D=>{_(b.id,{spaceName:D})},children:[F(b.spaceName).map(D=>v(Ko,{value:D.value,disabled:D.disabled,children:D.label},D.value)),d&&m.current&&v(Ko,{disabled:!0,value:"__loading__",style:{textAlign:"center"},children:v(Fn,{size:"small"})})]})})})}),v("div",{style:{marginTop:12},className:"oneTextInside",children:v(xe.Item,{label:"\u63CF\u8FF0",style:{marginBottom:0},name:`desc_${b.id}`,children:v(md,{placeholder:"\u8BF7\u8F93\u5165\u56FE\u8C31\u63CF\u8FF0",maxLength:150,rows:1,showCount:!0,autoSize:{maxRows:6,minRows:1},value:b.desc,onChange:D=>_(b.id,{desc:D.target.value})})})})]}),v("img",{src:td,style:{width:"16px",height:"16px",margin:"0 4px 0 16px",flexShrink:0,cursor:"pointer"},onClick:()=>{x(b.id)}})]},b.id))}),v("div",{style:{textAlign:"left"},children:v(Ce,{style:{color:"#4E6EF2",border:"1px solid #DDE0E5"},icon:v(ni,{}),onClick:O,disabled:l.length>=En,children:"\u65B0\u589E"})})]})})}const Dt=(e,t)=>{var o;if(!e)return"";const{data:r,id:n}=e;return!r||!Array.isArray(r)?"":((o=r.find(a=>a.columnId===t))==null?void 0:o.value)||""},bd=(e,t="id",r=[])=>e.map(n=>{const o=Object.entries(n).map(([a,i])=>({columnId:a,value:i??"",type:"text"}));return{id:String(n[t]??""),data:[...o,...r]}});var ct=(e=>(e[e.VIEW=0]="VIEW",e[e.AUTHORIZE=1]="AUTHORIZE",e[e.EDIT=2]="EDIT",e))(ct||{});const xd={0:{0:!0,1:!1,2:!1,3:!1},1:{0:!0,1:!0,2:!0,3:!1},2:{0:!0,1:!0,2:!1,3:!1}},mt=(e,t)=>{var r;return((r=xd[e])==null?void 0:r[t])??!0},Cd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAQhJREFUeAHtk8FtwkAQRf8sK8HR7mAPiZSj6SAuIRVEOUTJMS3QQXKLcksF0AEtuAGk7cCIG9Kuh1kEQkI26xWIk9/JGo//986fBQYGjpivOnv42Mwf3+si5Tvdp+npszZuq+YgFKy0kdIUPYkaBHEPtQSTYcB6ci9IgPqIMw7i8KX9zS0SUF0vwqyP4iCq/MRPU8UD1CXOSsZClO0LzJU8ry8JceN/Vn/54rzemgFr/Sqi2ek3KL45avTfVm41cGM301v1LMHuheWYbzIqiwv4iava6p0hh70Xk7A9BYMl4Ka8WQa3NKFYw7UmKtZgv/O1GzcliCsCmVG4dAlEDc5N5NAzDAzclR1zJHakSCHm1wAAAABJRU5ErkJggg==",Ed="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMRJREFUeAHNUdENgkAMfT39ByeCAcQZGEA0TCBuYGQBXQHcRzYQHIDaM0LwuAAhMfEllzTte++aPuCXCKJHqN8QRw0NiZSvsPBmG0zBHxpsdtV9va0Ovb709MzsL9HHVSlKxORLDOnV4KNJJouB3iKRkWzB5YfmavHt7CRWgybrPF1d+iaAKe7y3zew5Z2JgJlj/cyfu3zbDVrkqXPCCGbFyIDb1M0GBRP2QfR0xbEcN2CvBmJdtymIOCSCj0ngIrMkMgsvZMxLTdm2guIAAAAASUVORK5CYII=",Sd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAANZJREFUeAHVkjEOgkAQRf+sxJobyHEsBEuBzsaglZ6A5QRSKbHRSrEV7mO8AReQdddEY3A1S6cv2WSTmfkz8zPAX9L3I0c99bd0CW4wmUOwqsiznS7eBTgBQn7HrBn0wigmdJYQtQ0DrGYxBPFaUFIeN6mJANMW5ysOQ+4TuMFU7gxVVHVQ94Z+tNUlX4FLmWf8TeAV6Qzh87iOdoLisE69cGZDiLgGzrJLAkOeHpz2cm+ihBHxgS/9aCvQFHFH8hbaCjxEpA8LEKtggPYSlSf43pXjZ7gB8cxHAwO8wJIAAAAASUVORK5CYII=",wd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAANBJREFUeAHNUDsOgkAQnZkQWzmCx7EQLUUrbQx2egKXG6yNv0YrhVa4kDfACzAOWJgsYDZUvGQ2m515nx2ATmDoB4OioAWc4ugBKARguS7rhjw/WDBzP43Pe7NHYANEl4j0yA92rQSSx1GLSEiIyhSxSyB43g+qTsQxByd+cG1UyXNgwowAlTddvZP4oisJmOgl28SmMued2qgNGM8lOoObM4apuBdv1jv4klGV5Ohn4tiQvdl6I84VsrUAMGeMuBWyNlulgPxD/eMn0ekGncUHcb5PHMKHx24AAAAASUVORK5CYII=",kd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAO9JREFUeAGV0bFtAjEUBuD/PTsnpQhJNkg2yG1wdCkSiQ1C+kQhGyQbIERBByOcEAUdMAFsAExwByXyPWMfEgJRnPkbW0/+/Cw/QmDevrLELQ/GYDHuPa4oBL1/b/pE1HDbHLDYssQciBLeFfGwU3v2+K5QDQrsBGOKukTII+GJCP3qkE4ScVNrNYHYXIDZqFtLuQLVU/cRO5aBr5eoc9/0e6pCr63sqXzeCbqAoegMXoN8+ICy1jXoCIn4w1r8h6LSHA6qpZtTrBQSd8lPFfLR2uDF93VzmlvYtasNHPpDRbTWmBbAp8LNNG3frhCYPQprmESO6xyEAAAAAElFTkSuQmCC",Fd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAS5JREFUeAGtkTFOw0AQRWdmoYTINzAnIJwAp0sRwDdwSgoI5iQxgYIuzg0MpEhHfANzg9zAsugse4dZSxslBiSI8ouVd7Tvz/gPwI7CdmFwk3sKVcDIXXNnxoy5ns2fnKW5969zd/HsrLbAi9tiioi+PJ8xYdY4a/bkvBKDmLlKidT4dXJ8crABjQXyqKzPEnHc8Iv9MHe1Vu+IyrdFMocv4wkUCtRrQY2qigJmMHXX1pqOFdFQMcQ/Qc24CAUip/KZysirNShtTzXAA/yit8dO1K4R7CgLftj4/wWS1jEBBmZHfwXXexyMCoHhvCx1b9EKqS/rOKzVVKn6PomcbAs0uhwVEgLeSfQxQG1SBEbqimEg4b3MJ53ht45Wfvjpaa3lAdp/zogwTqKjJexDXwNxdZgtbIZsAAAAAElFTkSuQmCC",Td="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPRJREFUeAGVkUGSAUEQRSuzq9tM2PQRZm4wfYOelZid2RBWOAFH4CTsCCs7wgYn4Aa4QW/QoXWmLIQgROjyV1kV+Sp//QRlqd5oHzKjD0DLyt/nGmygweTQAcVFZhWZ83bnBWgDKebwmFJQKuS+ASDKf8RFbTVJaqLUF7tfzOwzUqQzJxEFiFhztTuV60gemZcL+SG+glKiXxMEEXVB0rhAuZrpgSzI2HMQp/fQE2gLPYDvQEbnP/bHcfMd6AZKU1XybttCZ6vXxlVyTALHwRDBaWRBRlp29GMK2dNC7G4E6grUUhnSnufNkjiuu0rN/sWqstQJH4+tDvFJ//QAAAAASUVORK5CYII=",Rd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAR5JREFUeAGlUk1OwmAQnZk2IXoKPIH1BnWFrmQDxlV7A70JeAI/FsYEViyMPxvsDfAGXMHEREP8Zpz5oChNWQBvNXlf35vpzAPYEVglHp6+0ggp05ckEAJTLzy4Oj94W743tZ6tCYev8zsEaQvLAESmwZkoVZMLFnTqUqig1201juJSNHqZ90Qk/WE+Mcd/fs66REQTrdslSeV4AnLjmU8rooCYKENE45srbqGmnBBct0a0+E//wYyFVjbq7E8Y4TF7fwsb0Dk77Fc5gh0ROmq3d0FMthGGjqybI8TMtreV0I4rAGNbeZ3YuOHz9+T+8XM1VTUAfT38tabFaVqK8IFgEsWYscD4stXIa4WGkd4UiHKdILgjsyXIdZaR2xu/IDt4+9YlmS0AAAAASUVORK5CYII=",Id="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAy9JREFUeAHVmX9uElEQx7/zFmpqIYETdK2amKaNywkKJ1BPYHoCvUHxBu0JbG/ADaAnkGhj/MPUvQHbtI2xwBtnlh8CBcp2F1g/ScNm2S3fzJt58+MRHknLdQsZ5DwyeEvANkAeAwW5Luj3ch0Qs6+fTDiHRSPvXzTwSAgRuXb3yipOXn0/ELUooXigxrZ7kvO/N6O8u7DQUCDhiIjKSABmbrS5c1j0f/iLPP+gUF3iJ8gfscFHLAG2OG7D+VT0m8G85+YKbbmv3A2Trculi2XC8O+4XZlnXTPri5a762VN9guWLVIhuBuUrd/Ib85+ZAo9kU49arAkQCCBVpkWaPeErmy5ZxPc2XZp0g3GhGrgbJj8apZ7HqHPOqXRABvzUY1urFukIj6bRfdo/Faf/pL/QgyI0egSn+u1w3QgGamMGFjLlUE2G1r0CWU+IyYqMn95UdW/geA4SHIZWjUUevNy1+OEMk6SSCYsa0bU655FO85Ssk4S9OqKvlBR/gYphaT4ablewfRNu+qNPQpSTnY8IzYtI+Xo8huHcYCUw0yu4XQve4ghvDYSSS7ST0GjPvUWRV/of4EKDZB+AgkmvkLaYfLp9vl+Teq/1GYmxcpcwEjb6iPtSGttpF2tIe0YNEwHGW2kEgkoBp08tU7RWOcZM86QDEH+50UjrPBvdvaOpUr5gHgEW5ffiqM3bnf2W4i/T5/K/z0M99FEll8i8/69+P6vcyr9DIVqX6L9DuJA7I0OELQHk/TsIQYa7YMef9jcaV1qDNURD/X1Wm9vjj7tm0R9fdNv+sBEX5+QryaCBmbu8uuwRRrL9W2bqYpQH2uGxN+3rKmO3hsTqpMJsqaCNeZ/FUlsKjQxhrxXPalP6KAKaxFLgWXzbuCXo0wt8zTSVOxq3YBkkmdkktecOjKfO8j97XouG1uXKHaxRAbLPc2SA+YWzvriH2tKIvQES0Kje5NNaZ5IZeHDBrVu1+meUkJdqx7pMHFV8/giz0c+vtE5lY6AZIAlNSxH3NDFD2HP5OCitqjA4ZuIwfULmbJYlMMjHdbDMNr+J15F4Uqs1gwPxkRcrpNp0gOnH7P4CzcXTFmKTeC7AAAAAElFTkSuQmCC";async function Od(e,t,r,n){return new Promise(o=>{const a=new Image;a.onload=()=>{try{const i=a.naturalWidth||a.width,s=a.naturalHeight||a.height;if(!i||!s){o(e);return}const l=document.createElement("canvas");l.width=i,l.height=s;const c=l.getContext("2d");if(!c){o(e);return}c.fillStyle=t,c.fillRect(0,0,i,s),c.drawImage(a,0,0),o(l.toDataURL(r,n))}catch{o(e)}},a.onerror=()=>o(e),a.src=e})}async function Md(e,t){if(!e||typeof e.toDataURL!="function")return null;const r=t==null?void 0:t.type,n=(t==null?void 0:t.encoderOptions)??.92,o=await e.toDataURL({mode:t==null?void 0:t.mode,type:r,encoderOptions:n});if(!o)return null;const a=(t==null?void 0:t.exportBackground)===void 0?"#ffffff":t.exportBackground;return a===!1?o:Od(o,a,r,n)}function Pd(e){switch(e){case"image/jpeg":return"jpg";case"image/webp":return"webp";case"image/bmp":return"bmp";default:return"png"}}async function Bd(e,t){const r=await Md(e,t);if(!r)return!1;const n=Pd(t==null?void 0:t.type),o=(t==null?void 0:t.fileName)??`graph-export-${Date.now()}.${n}`,a=document.createElement("a");return a.href=r,a.download=o,a.rel="noopener",document.body.appendChild(a),a.click(),document.body.removeChild(a),!0}const _d=({items:e})=>{var o,a;const t=(o=e==null?void 0:e[0])!=null&&o.data?e[0].data:{},{properties:r}=t,n=((a=(r||[]).find(i=>i.key==="name"))==null?void 0:a.value)||t.vid;return $("div",{style:{width:"280px",height:"60px",borderRadius:"4px",padding:"8px 8px 0 8px",display:"flex",background:"#fff"},children:[v("div",{style:{background:"#DBBDA0",width:"43px",height:"43px",borderRadius:"4px",fontSize:"26px",color:"#fff",lineHeight:"40px",textAlign:"center"},children:n?n.substr(0,1):""}),$("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"40px",marginLeft:"16px"},children:[v("div",{style:{color:"#2A2A2A",fontWeight:"16px",fontSize:"16px",minWidth:"10px"},children:n}),v("div",{style:{height:"20px",padding:"0 10px",background:"#E3F0FF",fontSize:"12px",lineHeight:"20px",textAlign:"center",borderRadius:"4px",marginTop:"4px",width:"fit-content",color:"#055AFF"},children:t.nodeType})]})]})};bi();const{TextArea:qo}=je,ii=320,st={title:"",subtitle:"",backgroundColor:"#FAFBFD",showGrid:!1,showLegend:!1,showTooltip:!0,showFullscreen:!0,showMinimap:!1,toolbarMode:"floatbar"},Dd=({open:e,headerH:t=0,graphRow:r,goBack:n,token:o,onConfirm:a,activeLibrary:i})=>{const[s,l]=H({nodeList:[],edgeList:[]}),[c,u]=H(""),[f,d]=H(0),[g,m]=H(1),[h,p]=H(!1),[C,w]=H(""),[E,A]=H(""),S=de(null),[F,T]=H(null),[I,O]=H(()=>{if(!(typeof window>"u"))return{width:document.documentElement.clientWidth,height:window.innerHeight}}),x=async b=>{try{const M=await hd({graphName:Dt(r,"graphName"),vids:[b]},{token:o||""});M&&l(D=>({...D,nodeList:[...D.nodeList,...M.nodeList],edgeList:[...D.edgeList,...M.edgeList]}))}catch{}},_=async(b,M)=>{try{const D=await pd(b,M);D&&l(D)}catch{}},z=async()=>{try{m(2);const b=await gd({id:r.id},{token:o});b&&(A(b),m(1))}catch{m(1)}};ve(()=>{if(typeof window>"u")return;const b=()=>{O({width:document.documentElement.clientWidth,height:window.innerHeight})};return b(),window.addEventListener("resize",b),window.addEventListener("orientationchange",b),()=>{window.removeEventListener("resize",b),window.removeEventListener("orientationchange",b)}},[]),ve(()=>{console.log("graphRow",r);const b=r==null?void 0:r.id;!b||!o||(w(Dt(r,"graphAbstract")||""),_({id:b},{token:o}))},[e,r,o]);const L=It(()=>mt(ct.EDIT,i==null?void 0:i.permission)||h||g!==1,[h,g,i]),U={type:"circle",style:{fill:"#529BF8",lineWidth:0,halo:!1,labelFill:"#fff",labelFontSize:12,labelPlacement:"center",labelTextAlign:"center",labelMaxWidth:60,labelMaxLines:10,labelOffsetY:-6,labelWordWrap:!0,size:80,labelText:b=>{var Q;if(!(b!=null&&b.data))return"";const{properties:M,nodeType:D}=b.data;return((Q=(M||[]).find(Z=>Z.name==="name"))==null?void 0:Q.value)||D}},state:{active:b=>b.states.includes("selected")?{halo:!0}:{halo:!1,cursor:"pointer"},selected:b=>({halo:!0,cursor:"pointer"})}},K={type:"line",style:{stroke:"#DDE1E8",lineWidth:1,cursor:"pointer",labelFill:"#888888",halo:!1,labelText:b=>{var Q;if(!(b!=null&&b.data))return"";const{properties:M,edgeType:D}=b.data;return((Q=(M||[]).find(Z=>Z.name==="name"))==null?void 0:Q.value)||D}},state:{active:{cursor:"pointer"},selected:b=>({halo:!0,cursor:"pointer"})}};return $(Yn,{placement:"bottom",closable:!1,mask:!1,width:"100%",height:I!=null&&I.height?I.height-t:"100%",open:e,push:!1,title:!1,styles:{mask:{boxShadow:"none",border:"none"},content:{backgroundColor:"#fff",minWidth:"1200px",backgroundSize:"cover",zIndex:0},header:{},body:{height:"100%",padding:"0",overflowY:"hidden"},footer:{padding:0,border:"none"}},motion:void 0,afterOpenChange:b=>{if(!b)try{m(1),d(0),p(!1),w(""),A(""),typeof document<"u"&&document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch{}},children:[$("div",{style:{height:"56px",borderBottom:"1px solid #EBEBF0",display:"flex",alignItems:"center",padding:"0 20px",justifyContent:"space-between"},children:[$("div",{style:{display:"flex"},children:[v("img",{src:Cd,width:24,onClick:n,style:{cursor:"pointer"},className:"summaryBack"}),v("div",{style:{marginLeft:"16px"},children:Dt(r,"graphName")})]}),v(Ce,{icon:v("img",{src:Ed,width:16}),disabled:mt(ct.EDIT,i==null?void 0:i.permission)||!S.current,onClick:()=>{Bd(S.current,{mode:"viewport",type:"image/png"}).then(b=>{Be.success("\u5BFC\u51FA\u6210\u529F"),u(b?"\u5DF2\u4E0B\u8F7D\u767D\u5E95 PNG\uFF08\u5185\u5BB9\u7ED8\u5236\u5728 #ffffff \u5E95\u4E0A\uFF0C\u4E0E\u753B\u5E03\u9884\u89C8\u80CC\u666F\u8272\u65E0\u5173\uFF09\u3002":"\u5BFC\u51FA\u5931\u8D25\uFF1A\u56FE\u8C31\u5B9E\u4F8B\u672A\u5C31\u7EEA\u3002")})},children:"\u5BFC\u51FA"})]}),$("div",{style:{height:"calc(100% - 56px)",display:"flex",position:"relative"},children:[It(()=>v("div",{style:{flex:1,minWidth:0,minHeight:0,height:"100%",position:"relative"},children:v(xi,{tooltipShow:{node:!0,edge:!1},data:s,layout:{type:"force",linkDistance:190},title:st.title,subtitle:st.subtitle,backgroundColor:st.backgroundColor,showGrid:st.showGrid,showLegend:st.showLegend,showTooltip:st.showTooltip,showFullscreen:st.showFullscreen,showMinimap:st.showMinimap,tooltipRender:_d,tooltipPosition:"top",toolbarMode:st.toolbarMode,customPlugins:{},tooltipOffset:[-3,-1],onReady:b=>{S.current=b,console.log("KnowledgeGraphPreview ready:",b)},contextMenu:{node:[{name:"\u4E00\u5EA6\u5C55\u5F00",value:"demo_add_child"}]},eventEmit:async(b,M)=>{if(console.log("\u4E8B\u4EF6:",b,M),b==="nodegraph_contextmenu_item"){const{nodeData:D}=M;if(!(D!=null&&D.data))return;x(D.data.vid);return}if(b==="nodegraph_node_selected"){console.log("node datum:",M.data),T(M.data),d(2);return}if(b==="nodegraph_edge_selected"){console.log("edge datum:",M.data);return}},node:U,edge:K})}),[s]),v(Nd,{openRight:f,setOpenRight:d,refreshStatus:g,setRefreshStatus:m,edit:h,setEdit:p,btnDisabled:L,graphAbstract:C,setGraphAbstract:w,refreshText:E,generateGraphAbstract:z,eventEmit:(b,M)=>{switch(console.log("\u4E8B\u4EF6:",b,M),b){case"abandon":A(""),m(1);break;case"regenerate":z();break;case"replace":a({graphAbstract:E,graphSpaceId:r.id},D=>{D==="success"?(w(E),m(1),p(!1)):m(3)});break;case"generate":z();break;case"confirm":a({graphAbstract:C,graphSpaceId:r.id},D=>{D==="success"?(m(1),p(!1)):m(3)});break}}}),v(Ld,{openRight:f,setOpenRight:d,data:F})]})]})},Nd=({openRight:e,setOpenRight:t,refreshStatus:r,setRefreshStatus:n,edit:o,setEdit:a,btnDisabled:i,graphAbstract:s,refreshText:l,eventEmit:c,setGraphAbstract:u})=>$(et,{children:[e===1&&$("div",{style:{width:ii,borderLeft:"1px solid #EBEBF0",height:"100%"},children:[$("div",{style:{height:"48px",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0 16px",borderBottom:"1px solid #EBEBF0"},children:[v("div",{style:{fontSize:"14px",fontWeight:700,color:"#1D2129"},children:"\u56FE\u8C31\u6458\u8981"}),v("img",{src:wd,width:16,style:{marginRight:"16px",cursor:"pointer",zIndex:50},onClick:()=>{t(0)}})]}),$("div",{style:{padding:16,height:"100%",boxSizing:"border-box",overflowY:"auto"},children:[$("div",{style:{right:12,top:12,display:"flex",alignItems:"center",fontSize:12,color:"#6B7280",marginBottom:"8px",justifyContent:"space-between"},children:[v("div",{style:{color:"#1D2129"},children:"\u6458\u8981"}),$("div",{style:{display:"flex",alignItems:"center"},children:[r===1&&$(et,{children:[$("div",{style:{display:"flex",alignItems:"center",cursor:i?"not-allowed":"pointer",borderRadius:4},onClick:()=>{console.log("\u7F16\u8F91\u70B9\u51FB")},className:"summaryBtn",children:[v("img",{src:i?Td:kd,width:14,style:{height:14,alignItems:"center",marginRight:3}}),v("div",{style:{color:i?"#AAB9F9":"#4E6EF2",fontSize:12},onClick:()=>{i||a(!0)},children:"\u7F16\u8F91"})]}),v("div",{style:{height:20,borderLeft:"1px solid #EEEEEE",width:0,margin:"0 12px",borderRadius:4}})]}),$("div",{style:{display:"flex",alignItems:"center",cursor:i?"not-allowed":"pointer",borderRadius:4},className:"summaryBtn",onClick:()=>{i||c("generate")},children:[v("img",{src:i?Rd:Fd,width:14,style:{height:14,marginRight:3}}),v("div",{style:{color:i?"#AAB9F9":"#4E6EF2",fontSize:12},children:"\u91CD\u65B0\u751F\u6210"})]})]})]}),$("div",{style:{border:`1px solid ${o?"#4E6EF2":"#DDE0E5 "}`,borderRadius:8,height:240,display:"flex",flexDirection:"column",justifyContent:"space-between",background:"#fff",boxSizing:"border-box",marginTop:"8px",position:"relative"},children:[v(Fn,{spinning:r===2,style:{marginTop:100,height:38,padding:5}}),r===3&&$("div",{style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:16,background:"#fff"},children:[v("img",{src:Id,width:44,style:{marginBottom:12}}),v("div",{style:{fontSize:18,fontWeight:700,color:"#1D2129"},children:"\u751F\u6210\u5931\u8D25"}),$("div",{style:{marginTop:8,fontSize:12,color:"#6B7280",display:"flex",alignItems:"center"},children:[v("span",{children:'\u751F\u6210\u5931\u8D25\uFF0C\u70B9\u51FB"'}),v("span",{style:{color:"#2B69FF",cursor:"pointer",transition:"transform 150ms ease, text-decoration 150ms ease, opacity 150ms ease",textDecoration:"none"},onClick:()=>{n(2)},onMouseEnter:f=>{const d=f.currentTarget;d.style.opacity="0.5"},onMouseLeave:f=>{const d=f.currentTarget;d.style.opacity="1"},children:"\u91CD\u65B0\u751F\u6210"}),v("span",{children:'"\u91CD\u8BD5'})]})]}),r===1&&v(qo,{style:{border:"none",resize:"none",outline:"none",boxShadow:"none"},rows:o?8:10,readOnly:!o,value:s,onChange:f=>u(f.target.value)}),o&&$("div",{style:{display:"flex",justifyContent:"flex-end",margin:"16px 16px"},children:[v(Ce,{style:{marginRight:8},onClick:()=>{a(!1)},children:"\u53D6\u6D88"}),v(Ce,{type:"primary",style:{background:"#4E6EF2"},onClick:()=>c("confirm"),children:"\u786E\u5B9A"})]})]}),l&&$("div",{style:{border:"2px solid #2B69FF",borderRadius:8,height:"calc(100% - 515px)",minHeight:"312px",display:"flex",flexDirection:"column",justifyContent:"space-between",background:"#fff",boxSizing:"border-box",marginTop:"8px"},children:[v(qo,{style:{border:"none",resize:"none",outline:"none",boxShadow:"none"},rows:16,value:l,readOnly:!0}),$("div",{style:{display:"flex",justifyContent:"flex-end",margin:"16px 16px"},children:[v(Ce,{style:{marginRight:8},onClick:()=>c("abandon"),disabled:r===2,children:"\u653E\u5F03"}),v(Ce,{style:{marginRight:8},onClick:()=>c("regenerate"),disabled:r===2,children:"\u518D\u6B21\u751F\u6210"}),v(Ce,{type:"primary",style:{background:"#4E6EF2"},onClick:()=>c("replace"),disabled:r===2,className:`${r===2?"primaryDisabled":""}`,children:"\u66FF\u6362"})]})]})]})]}),e===0&&v(Ce,{icon:v("img",{src:Sd,width:16}),style:{position:"absolute",right:"20px",top:"20px"},onClick:()=>{t(1)},className:"openSummary",children:"\u5C55\u5F00\u6458\u8981"})]}),Ld=({openRight:e,setOpenRight:t,data:r})=>{var l;const n=r!=null&&r.data?r.data:{},{properties:o,type:a,vid:i}=n,s=((l=(o||[]).find(c=>c.key==="name"))==null?void 0:l.value)||n.vid;return v(et,{children:e===2&&$("div",{style:{width:ii,borderLeft:"1px solid #EBEBF0",height:"100%",boxSizing:"border-box",background:"#fff"},children:[$("div",{style:{display:"flex",alignItems:"center",padding:"0 16px",justifyContent:"space-between",marginTop:16},children:[v("div",{style:{fontSize:16,fontWeight:700,color:"#1D2129"},children:s}),v(ro,{style:{color:"#666666",fontSize:14,cursor:"pointer"},onClick:()=>{t(0)}})]}),$("div",{style:{padding:"12px 16px 16px 16px",height:"calc(100% - 56px)",overflowY:"auto"},children:[v("div",{style:{marginBottom:16,display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"1px solid #EEEEEE"},children:$("div",{style:{display:"flex",alignItems:"center",gap:4,marginBottom:12},children:[v("div",{style:{color:"#888888",flexShrink:0},children:"\u7C7B\u522B\uFF1A"}),v("div",{style:{color:"#555555",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:40},children:a}),v("div",{style:{width:1,height:12,background:"#EEEEEE",margin:"0 6px"}}),v("div",{style:{color:"#888888"},children:"id\uFF1A"}),v("div",{style:{color:"#555555",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})]})}),v("div",{style:{borderRadius:0,overflow:"hidden"},children:v(mi,{columns:[{title:"\u5C5E\u6027\u540D",dataIndex:"name",key:"name",width:"50%",ellipsis:!0},{title:"\u503C",dataIndex:"value",key:"value",width:"50%",ellipsis:!0}].map(u=>({...u,title:v("div",{style:{fontSize:12,fontWeight:400,color:"#2A2A2A",padding:"6px 0",borderRadius:0},children:u.title}),render:u.render??(f=>v("div",{style:{fontSize:12,color:"#2a2a2a",padding:"8px 0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderRadius:0},children:f}))})),dataSource:o||[],rowKey:"name",pagination:!1,size:"small",style:{boxShadow:"none",background:"#fff"},bordered:!0})})]})]})})};function zd({visible:e,title:t="\u786E\u8BA4\u89E3\u9664\u56FE\u8C31\u5E93\u5173\u8054",content:r="\u662F\u5426\u786E\u8BA4\u89E3\u9664\u5F53\u524D\u77E5\u8BC6\u56FE\u8C31\u4E0E\u56FE\u8C31\u5E93\u7684\u5173\u8054?",confirmText:n="\u786E\u8BA4",cancelText:o="\u53D6\u6D88",confirmLoading:a=!1,onCancel:i,onConfirm:s}){return v(Qr,{centered:!0,open:e,closable:!1,width:400,title:$("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[v(Wa,{style:{color:"#FAAD14",fontSize:20}}),v("span",{style:{fontSize:16,fontWeight:600},children:t})]}),onCancel:i,onOk:()=>{a||s==null||s()},okText:n,cancelText:o,confirmLoading:a,maskClosable:!1,okButtonProps:{style:{backgroundColor:"#4E6EF2",borderColor:"#4E6EF2",color:"#fff"}},children:v(Xn.Paragraph,{style:{color:"rgba(0,0,0,.88)",fontSize:14,lineHeight:"20px",margin:"0 0 22px 30px"},children:r})})}const{TextArea:jd}=je,Hd=({visible:e,tableRow:t,initialDescription:r="",initialTags:n=[],maxDescriptionLength:o=150,maxTags:a=20,onCancel:i,onConfirm:s,confirmLoading:l})=>{const[c,u]=H(r),[f,d]=H(n),[g,m]=H(!1),[h,p]=H("");ve(()=>{e&&(u(r),d(n),m(!1),p(""))},[e]);const C=A=>{d(S=>S.filter(F=>F!==A))},w=()=>{f.length>=a||(m(!0),setTimeout(()=>{const A=document.querySelector(".graph-tag-input");A==null||A.focus()},0))},E=()=>{const A=h.trim();A&&f.indexOf(A)===-1&&f.length<a&&d(S=>[...S,A]),m(!1),p("")};return ve(()=>{if(e){u(Dt(t,"graphDesc"));const A=Dt(t,"labels");d(A||[])}},[e]),v(Yn,{title:`\u7F16\u8F91-${Dt(t,"graphName")}`,placement:"right",width:560,onClose:i,open:e,destroyOnHidden:!0,footer:$("div",{style:{textAlign:"right"},children:[v(Ce,{style:{marginRight:8},onClick:i,children:"\u53D6\u6D88"}),v(Ce,{type:"primary",style:{background:"#4E6EF2"},onClick:()=>s({graphDesc:c,labels:f||[],graphSpaceId:t.id}),loading:l,children:"\u786E\u8BA4"})]}),styles:{body:{paddingBottom:24},footer:{border:"none",padding:24}},children:$(et,{children:[$("div",{children:[v("div",{style:{marginBottom:7},children:"\u56FE\u8C31\u63CF\u8FF0"}),v("div",{style:{border:"1px solid #D9D9D9",borderRadius:4,height:120,background:"#fff",marginTop:"8px"},className:"countInside",children:v(jd,{value:c,onChange:A=>{u(A.target.value)},placeholder:"\u8BF7\u8F93\u5165\u56FE\u8C31\u63CF\u8FF0",showCount:!0,maxLength:o,rows:4,style:{border:"none",resize:"none",outline:"none",boxShadow:"none"}})})]}),$(et,{children:[$("div",{style:{marginTop:24,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[v("span",{children:"\u6807\u7B7E"}),$("span",{style:{fontSize:12,color:"#86909C"},children:[f.length,"/",a]})]}),$("div",{style:{border:"1px solid #D9D9D9",borderRadius:4,height:"calc(100% - 400px)",maxHeight:440,background:"#fff",marginTop:"8px",padding:"6px 12px 12px 12px"},children:[f.map(A=>{const S=A.length>20,F=v(so,{closable:!0,onClose:()=>C(A),style:{marginBottom:8},children:S?`${A.slice(0,20)}...`:A},A);return S?v(vi,{title:A,children:F},A):F}),g?v(je,{className:"graph-tag-input",size:"small",style:{width:140},value:h,onChange:A=>p(A.target.value),onBlur:E,onPressEnter:E,placeholder:"\u65B0\u589E\u6807\u7B7E"}):$(so,{onClick:w,style:{background:"#fff",borderStyle:"dashed",cursor:f.length>=a?"not-allowed":"pointer",marginTop:6},children:[v(ni,{})," \u65B0\u589E"]})]})]})]})})},Gd=({visible:e,onCancel:t,onConfirm:r,confirmLoading:n,modelOptions:o,initialValues:a,activeLibrary:i})=>{var g,m;const[s]=xe.useForm(),[l,c]=H("model"),u=async()=>{try{const h=await s.validateFields();r({...h,configId:i.id})}catch{}},f=h=>{h||(s.resetFields(),c("model"))};ve(()=>{e&&i&&s.setFieldValue("abstractModelName",i.abstractModelName||"")},[i,e]);const d=[{key:"model",label:"\u6A21\u578B\u914D\u7F6E",children:v(xe,{form:s,layout:"vertical",initialValues:{abstractModelName:(g=o[0])==null?void 0:g.value,...a},style:{marginTop:8},children:v(xe.Item,{label:"\u751F\u6210\u56FE\u8C31\u6458\u8981\u6A21\u578B",name:"abstractModelName",required:!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u751F\u6210\u56FE\u8C31\u6458\u8981\u6A21\u578B"}],children:v(Xr,{options:o,placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}})})})},{key:"permission",label:"\u6743\u9650\u914D\u7F6E",children:v("div",{style:{padding:"16px 0",color:"#8c8c8c",textAlign:"center"},children:"\u6682\u65E0\u6743\u9650\u914D\u7F6E\u9879"})}];return $(Yn,{open:e,onClose:t,width:557,destroyOnHidden:!0,afterOpenChange:f,closable:!1,title:null,styles:{header:{display:"none"},body:{padding:0,display:"flex",flexDirection:"column"},footer:{padding:"12px 24px",borderTop:"1px solid #f0f0f0"}},footer:$("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:[v(Ce,{onClick:t,children:"\u53D6\u6D88"}),v(Ce,{type:"primary",loading:n,onClick:u,style:{background:"#4E6EF2",borderColor:"#4E6EF2"},children:"\u786E\u5B9A"})]}),children:[$("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 24px",borderBottom:"1px solid #f0f0f0",flexShrink:0},children:[v(yi,{activeKey:l,onChange:c,items:d.map(({key:h,label:p})=>({key:h,label:p})),style:{marginBottom:0,flex:1},tabBarStyle:{marginBottom:0}}),v("button",{type:"button","aria-label":"\u5173\u95ED",onClick:t,style:{background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#8c8c8c",lineHeight:1,padding:"0 4px",flexShrink:0,display:"flex",alignItems:"center"},children:v(ro,{})})]}),v("div",{style:{flex:1,padding:"16px 24px",overflow:"auto"},children:(m=d.find(h=>h.key===l))==null?void 0:m.children})]})},ff=e=>{const[t,r]=H(10),[n,o]=H(1),[a,i]=H(0),[s,l]=H(0),{styles:c,eventsEmit:u,CustomComponents:f,graphId:d,token:g}=e,[m,h]=H(!1),[p,C]=H(!1),w=di(),E=It(()=>ao(ao({theme:fi,mode:"light"},w||{}),c||{}),[w,c]),[A,S]=H("my-graphs"),[F,T]=H("home"),[I,O]=H(null),[x,_]=H(null),[z,L]=H(!1),[U,K]=H(!1),[b,M]=H(!1),[D,Q]=H(!1),[Z,ee]=H(""),[N,P]=H(""),[R,B]=H(""),[j,X]=H(""),[re,le]=H(""),[ye,We]=H(""),[Se,Ie]=H(""),[Oe,dt]=H(""),[fe,ot]=H(""),[Ke,qe]=H(""),[_e,ne]=H({}),oe=de(null),be=de(0),Fe=de(""),[pe,Et]=H([]),[ir,sr]=H([]),[cr,nn]=H([]),[on,an]=H([]),[St,Gt]=H([]),[lr,sn]=H(0),[Ue,ur]=H({pageNo:1,pageSize:6}),[at,dr]=H({pageNo:1,pageSize:6}),[fr,pr]=H(0),[gr,hr]=H(0);ve(()=>{console.log("tableList",St),console.log("myGraphLibraryCards",pe),console.log("myPage",Ue)},[St,pe,Ue]);const mr=G=>(G||[]).map(k=>({label:k.modelName,value:k.modelName})),wt=async G=>{try{const k=await fd(G);k&&an(mr((k==null?void 0:k.records)||[]))}catch{}},kt=async()=>{try{C(!0);const G=await dd({id:_e.id},{token:g||""});C(!1),G&&(ae(),Be.success("\u89E3\u9664\u5173\u8054\u6210\u529F!"),M(!1))}catch{C(!1)}},Ut=async G=>{try{C(!0);const k=await ai(G,{token:g||""});C(!1),k&&(te(),K(!1))}catch{C(!1)}},Ft=async(G,k)=>{try{C(!0);const q=await sd(G,{token:g||""});C(!1),q?(k&&k("success"),ae(),Be.success("\u7F16\u8F91\u6210\u529F!"),Q(!1)):k&&k("fail")}catch{k&&k("fail"),C(!1)}},it=()=>A==="my-graphs"?{fuzzySpace:ye||"",fuzzy:re||""}:{fuzzySpace:Oe||"",fuzzy:Se||""},ft=async G=>{try{const k=await nd({pageSize:at.pageSize,pageNo:at.pageNo,...it()},G);if(k){const{total:q,records:he}=k;hr(q);const se=at.pageNo||1,me=at.pageSize||6,Ze=Math.max(0,(se-1)*me),$t=(he||[]).map((Ve,Me)=>({...Ve,__absIndex:Ze+Me}));sr(Ve=>{const Me=new Map;return(Array.isArray(Ve)?Ve:[]).forEach(Ae=>Me.set(String(Ae.id),Ae)),$t.forEach(Ae=>Me.set(String(Ae.id),Ae)),Array.from(Me.values()).sort((Ae,Vt)=>(Ae.__absIndex??0)-(Vt.__absIndex??0))})}}catch{}},vr=async G=>{try{const k=await rd({pageSize:Ue.pageSize,pageNo:Ue.pageNo,...it()},G);if(k){const{total:q,records:he}=k;pr(q);const se=Ue.pageNo||1,me=Ue.pageSize||6,Ze=Math.max(0,(se-1)*me),$t=(he||[]).map((Ve,Me)=>({...Ve,__absIndex:Ze+Me}));Et(Ve=>{const Me=new Map;return(Array.isArray(Ve)?Ve:[]).forEach(Ae=>Me.set(String(Ae.id),Ae)),$t.forEach(Ae=>Me.set(String(Ae.id),Ae)),Array.from(Me.values()).sort((Ae,Vt)=>(Ae.__absIndex??0)-(Vt.__absIndex??0))})}}catch{}},cn=async()=>{try{const G=++be.current,k=n,q=t,he=fe,se=x==null?void 0:x.id;if(!se)return;const me=`${String(se)}::${String(he||"")}::${String(q)}`,Ze=await ld({fuzzy:he,pageNo:k,pageSize:q,configId:se},{token:g||""});if(G!==be.current||se!==(x==null?void 0:x.id))return;if(Ze){const{records:$t,total:Ve}=Ze;sn(Ve);const Me=Math.max(0,(k-1)*q),Ae=bd($t,"id",[{columnId:"actions",value:"edit",label:"\u7F16\u8F91",type:"action"}]).map((Er,Qt)=>({...Er,__absIndex:Me+Qt})),Vt=Fe.current===me;if(Fe.current=me,!Vt){Gt(Ae);return}Gt(Er=>{const Qt=new Map;return(Array.isArray(Er)?Er:[]).forEach(Xt=>Qt.set(String(Xt.id),Xt)),Ae.forEach(Xt=>Qt.set(String(Xt.id),Xt)),Array.from(Qt.values())})}}catch{}},ae=()=>{o(1),i(G=>G+1)},yr=()=>{r(10),o(1),i(G=>G+1)},ln=G=>{A==="my-graphs"?ur(k=>({...k,pageNo:G})):dr(k=>({...k,pageNo:G}))},te=()=>{A==="my-graphs"?(Et([]),pr(0)):(sr([]),hr(0)),ln(1),l(G=>G+1)};ve(()=>{cn()},[n,t,a,fe,x==null?void 0:x.id,g]),ve(()=>{At()},[A,Ue,at,s,re,ye,Se,Oe]);const ge=async G=>{try{const k=await ad(G);k&&nn((k||[]).map(q=>({label:q,value:q})))}catch{}},De=async G=>{try{C(!0);const k=await ud(G,{token:g||""});C(!1),k&&(ae(),h(!1))}catch{C(!1)}},Ne=async G=>{try{C(!0);const k=await od(G,{token:g||""});C(!1),k&&(te(),L(!1))}catch{C(!1)}},At=()=>{A==="my-graphs"?vr({token:g||""}):ft({token:g||""})};ve(()=>{ge({token:g||""}),wt({token:g||""})},[]);const Ar=Wt(async(G,k)=>{if(await new Promise(q=>setTimeout(q,600)),k){const q=new Error(`\u5220\u9664\u5931\u8D25\uFF08mock\uFF09\uFF1A${G}`);throw q.code="MOCK_DELETE_FAILED",q}return{ok:!0,id:G}},[]),br=Wt(async G=>{var q,he,se;const k=oe.current;try{(q=k==null?void 0:k.addPending)==null||q.call(k,G),await Ar(G,!1),(he=k==null?void 0:k.removeItem)==null||he.call(k,G)}catch(me){(se=k==null?void 0:k.removePending)==null||se.call(k,G),u==null||u("graphbase_request_error_delete_graph_library",{cardId:G,message:(me==null?void 0:me.message)||"\u5220\u9664\u5931\u8D25",error:me},null)}},[u,Ar]),Tt=It(()=>A==="my-graphs"?pe:ir,[A,pe,ir]),xr=It(()=>({label:"",model:"tabs",defaultActiveId:A,views:[{id:"my-graphs",label:"\u6211\u7684\u56FE\u8C31",type:"card",cardType:"customized",viewBehavior:"pagination",rowHeight:160,viewPageSize:Ue.pageSize,requestPagesize:100,total:fr,toolbar:[{icon:v("img",{src:Gu,width:16}),type:"button",key:"create_graph_library",label:"\u65B0\u5EFA\u56FE\u8C31\u5E93",btnType:"primary"},{type:"customized",key:"search_library",position:"right",component:Ir,componentProps:{placeholder:"\u641C\u7D22\u56FE\u8C31\u5E93\u540D\u79F0",value:Z,size:"md",onSearchChange:()=>{le(Z||""),te()}}},{type:"customized",key:"search_graph",position:"right",component:Ir,componentProps:{placeholder:"\u641C\u7D22\u56FE\u8C31\u540D\u79F0",value:N,size:"md",onSearchChange:()=>{We(N||""),te()}}}]},{id:"shared-graphs",label:"\u5171\u4EAB\u56FE\u8C31",type:"card",cardType:"customized",viewBehavior:"pagination",rowHeight:160,viewPageSize:at.pageSize,requestPagesize:100,total:gr,toolbar:[{type:"customized",key:"share_search_library",position:"right",component:Ir,componentProps:{placeholder:"\u641C\u7D22\u56FE\u8C31\u5E93\u540D\u79F0",value:R,size:"md",onSearchChange:()=>{Ie(R||""),te()}}},{type:"customized",key:"share_search_graph",position:"right",component:Ir,componentProps:{placeholder:"\u641C\u7D22\u56FE\u8C31\u540D\u79F0",value:j,size:"md",onSearchChange:()=>{dt(j||""),te()}}}]}],dataSource:Tt.map(G=>({...G,cardtype:"customized",render:k=>v($d,{data:k,getList:At,graphDbType:cr,onClick:()=>{_(k),T("library-list"),yr()},refreshCardGraphList:te,onEdit:()=>u==null?void 0:u("graphbase_card_action_edit",{graphId:d,cardId:k.id,source:A==="my-graphs"?"my":"shared"},null),onDelete:()=>br(String(k.id)),token:g||""})})),eventsEmit:(G,k,q)=>{if(console.log("Event data",G,k,q),q&&(oe.current=q),G==="pagination:request_merge_data"){const{viewId:he,request:se}=k;se&&(he==="my-graphs"?ur(me=>({...me,...se})):dr(me=>({...me,...se})));return}if(G==="select"&&(k!=null&&k.id)){const he=k.id==="shared-graphs"?"shared-graphs":"my-graphs";S(he)}G==="toolbar_create_graph_library"&&L(!0),G==="toolbar_search_library_change"&&ee(String((k==null?void 0:k.value)??"")),G==="toolbar_search_graph_change"&&P(String((k==null?void 0:k.value)??"")),G==="toolbar_share_search_library_change"&&B(String((k==null?void 0:k.value)??"")),G==="toolbar_share_search_graph_change"&&X(String((k==null?void 0:k.value)??""))},styles:E}),[Tt,A,u,d,E,R,j,Ue,at,fr,gr,te]),un=G=>{ot(String(G??"")),ae()},Cr=(G,k,q)=>{if(console.log("Table Event:name",G),console.log("Table Event:data",k),G==="pagination:request_merge_data"){const he=(k==null?void 0:k.request)||{},se=Number(he.pageSize??t)||t,me=Math.max(1,Number(he.pageNo??n)||n);r(se),o(me),i(Ze=>Ze+1);return}if(G==="toolbar_search_name_change"){qe(String((k==null?void 0:k.value)??""));return}if(G==="toolbar_add"){h(!0);return}if(G==="table_action_edit"){u==null||u("graphbase_table_action_edit",{graphId:d,libraryId:x==null?void 0:x.id,row:k},q);return}if(G==="table_action_download"){u==null||u("graphbase_table_action_download",{graphId:d,libraryId:x==null?void 0:x.id,row:k},q);return}if(G==="table_action_more"){u==null||u("graphbase_table_action_more",{graphId:d,libraryId:x==null?void 0:x.id,row:k},q);return}u==null||u(`graphbase_${G}`,{...k,graphId:d,libraryId:x==null?void 0:x.id},q)},$e=It(()=>{const G=(x==null?void 0:x.name)||"\u56FE\u8C31\u5E93",k=`library-table-${String((x==null?void 0:x.id)??"none")}-${String(fe||"")}`;return{label:"",model:null,defaultActiveId:k,views:[{id:k,label:G,type:"table",viewBehavior:"pagination",allowMultiSelect:!1,total:lr,requestPagesize:t,viewPageSize:t,columns:[{title:"\u56FE\u8C31\u540D\u79F0",id:"graphName",type:"text",render:(q,he)=>$("div",{className:"flex items-center",children:[v("img",{src:Vu,width:18,height:18,style:{height:"18px",marginRight:"20px"}}),v("div",{className:"columnGraphName",onClick:()=>{T("graphView"),O(he)},children:q})]})},{title:"\u56FE\u8C31\u7F16\u53F7",id:"id",type:"text"},{title:"\u6807\u7B7E",id:"labels",type:"text",render:(q,he)=>{const se=q||[];return v("div",{className:"flex items-center",children:se.length?v(Ai,{placement:"bottom",content:v("div",{className:"w-[400px]",children:se.reduce((me,Ze)=>`${me}#${Ze}# `,"")}),children:$("div",{className:"flex cursor-pointer",children:[v(pi,{width:14,style:{cursor:"pointer",marginRight:8},type:"tools/tag"}),se.length||"0"]})}):null})}},{title:"\u5173\u8054\u65F6\u95F4",id:"gmtModified",type:"text"},{title:"\u6784\u5EFA\u4EBA",id:"updateBy",type:"text"},{title:"\u63CF\u8FF0",id:"graphDesc",type:"text"},{title:"\u64CD\u4F5C",type:"customized",id:"actions",maxWidth:200,component:q=>$(et,{children:[v(kn,{mode:"text",label:"\u7F16\u8F91",onClick:()=>{ne(q==null?void 0:q.row),Q(!0)},disabled:mt(ct.EDIT,x==null?void 0:x.permission)}),v(kn,{mode:"text",label:"\u89E3\u9664\u5173\u8054",onClick:()=>{ne(q==null?void 0:q.row),M(!0)},disabled:mt(ct.EDIT,x==null?void 0:x.permission)})]})}],toolbar:[{type:"button",key:"add",label:"\u5173\u8054\u77E5\u8BC6\u56FE\u8C31",position:"left",btnType:"primary",icon:v("img",{src:$u,width:16}),disabled:(q=>mt(ct.EDIT,q==null?void 0:q.permission))(x)},{title:"\u641C\u7D22",type:"customized",id:"search",maxWidth:200,position:"right",key:"search_name",component:Wd,componentProps:{value:Ke,activeLibrary:x,onSearchChange:un,setOpenConfigDrawer:()=>u&&u("graphbase_set_open_config_drawer",{activeLibrary:x},null)}}]}],dataSource:St,eventsEmit:Cr,styles:E}},[x,u,d,E,St,fe,lr,t,Cr]),si=Wt(()=>{Gt([]),T("home"),_(null),u==null||u("graphbase_nav_back_home",{graphId:d},null)},[u,d]);return $(et,{children:[v(gi,{title:F==="home"?"\u56FE\u8C31\u5E93":(x==null?void 0:x.name)||"\u56FE\u8C31\u5E93",goBack:F==="home"?void 0:si,styles:E,CustomComponents:f,children:v(Ud,{className:"graphbase-home-content",children:F==="home"?$(et,{children:[v(io,{...xr},"graph-library-home"),v(ri,{visible:z,onCancel:()=>{L(!1)},initialValues:{},graphDbType:cr,onSubmit:Ne,confirmLoading:p})]}):F==="library-list"?v(io,{...$e},`graph-library-list-${String((x==null?void 0:x.id)??"none")}-${String(fe||"")}`):v(et,{})})}),v(Ad,{token:g||"",activeLibrary:x,visible:m,onClose:()=>{h(!1)},onConfirm:De,confirmLoading:p}),v(Dd,{open:F==="graphView",graphRow:I,goBack:()=>T("library-list"),token:g,onConfirm:Ft,activeLibrary:x}),v(zd,{visible:b,onCancel:()=>M(!1),onConfirm:kt,confirmLoading:p}),v(Hd,{visible:D,onCancel:()=>Q(!1),onConfirm:Ft,tableRow:_e,confirmLoading:p}),v(Gd,{visible:U,modelOptions:on,onCancel:()=>K(!1),onConfirm:Ut,activeLibrary:x})]})},Ud=Ge.div.attrs({className:"graphbase-home-content"})`
|
|
80
|
+
width: 100%;
|
|
81
|
+
flex: 1 1 0;
|
|
82
|
+
min-height: 0;
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
|
|
87
|
+
/* 让 XViewer 内容区真正撑满,并启用内部滚动 */
|
|
88
|
+
& > .xviewer-container {
|
|
89
|
+
min-height: 0;
|
|
90
|
+
flex: 1 1 0;
|
|
91
|
+
}
|
|
92
|
+
& .xviewer-content-area,
|
|
93
|
+
& .xviewer-table-loading-wrap {
|
|
94
|
+
min-height: 0;
|
|
95
|
+
}
|
|
96
|
+
`,Ir=({placeholder:e,value:t,onAction:r,size:n="md",onSearchChange:o})=>v(je,{placeholder:e,suffix:v(oi,{onClick:()=>{o(t||"")}}),style:{width:"240px"},value:t,onChange:a=>r==null?void 0:r("change",{value:a.target.value}),onKeyDown:a=>{!a.shiftKey&&a.key==="Enter"&&(a.preventDefault(),o(t||""))}});Ge.div.attrs({className:"graphbase-modal-overlay"})`
|
|
97
|
+
position: fixed;
|
|
98
|
+
inset: 0;
|
|
99
|
+
z-index: 9999;
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
padding: 24px;
|
|
104
|
+
background: rgba(15, 23, 42, 0.35);
|
|
105
|
+
backdrop-filter: blur(2px);
|
|
106
|
+
`;Ge.div.attrs({className:"graphbase-modal-panel"})`
|
|
107
|
+
width: 500px;
|
|
108
|
+
height: 80vh;
|
|
109
|
+
border-radius: 12px;
|
|
110
|
+
background: #fff;
|
|
111
|
+
box-shadow: 0 24px 72px rgba(15, 23, 42, 0.28);
|
|
112
|
+
border: 1px solid rgba(226, 232, 240, 0.95);
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
`;Ge.div.attrs({className:"graphbase-modal-header"})`
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: space-between;
|
|
118
|
+
padding: 14px 16px;
|
|
119
|
+
height: 56px;
|
|
120
|
+
`;Ge.div.attrs({className:"graphbase-modal-body"})`
|
|
121
|
+
padding: 14px 16px 18px 16px;
|
|
122
|
+
height: calc(80vh - 56px);
|
|
123
|
+
overflow: auto;
|
|
124
|
+
|
|
125
|
+
& .graphbase-modal-xviewer-wrap {
|
|
126
|
+
width: 100%;
|
|
127
|
+
height: 100%;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* 让 XViewer 表单在固定高度弹窗内正常布局 */
|
|
131
|
+
& .xviewer-container,
|
|
132
|
+
& .xviewer-content-area {
|
|
133
|
+
min-height: 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* XViewer Form 内容区默认不滚动:这里强制开启滚动 */
|
|
137
|
+
& .xviewer-content-renderer-form-wrap {
|
|
138
|
+
height: 100%;
|
|
139
|
+
min-height: 0;
|
|
140
|
+
overflow-y: scroll;
|
|
141
|
+
overflow-x: hidden;
|
|
142
|
+
}
|
|
143
|
+
`;const wn=108,$d=({data:e,onClick:t,graphDbType:r,token:n,refreshCardGraphList:o})=>{const{name:a,desc:i,permission:s}=e||{},l=de(null),c=de(null),u=de(null),[f,d]=H(!1),[g,m]=H({}),[h,p]=H(!1),[C,w]=H(!1),[E,A]=H(!1),[S,F]=H({}),[T,I]=H(!1),O=async x=>{try{I(!0);const _=await ai(x,{token:n||""});I(!1),_&&(o(),w(!1))}catch{I(!1)}};return ea(()=>{if(!f||!c.current)return;const x=c.current,_=()=>{const z=x.getBoundingClientRect(),L=Math.min(Math.max(8,z.right-wn),window.innerWidth-wn-8);m({position:"fixed",top:z.bottom+4,left:L,width:wn,zIndex:1e4})};return _(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)},[f]),ve(()=>{if(!f)return;const x=_=>{var L,U;const z=_.target;z&&((L=l.current)!=null&&L.contains(z)||(U=u.current)!=null&&U.contains(z)||d(!1))};return document.addEventListener("pointerdown",x),()=>document.removeEventListener("pointerdown",x)},[f]),ve(()=>{if(!f)return;const x=()=>d(!1);return window.addEventListener("scroll",x,!0),()=>window.removeEventListener("scroll",x,!0)},[f]),$(et,{children:[v(Vd,{className:"graphbase-card",ref:l,onClick:t,children:$("div",{className:"",children:[$("div",{className:"flex items-center ",children:[v("img",{src:Uu,width:40,height:40}),v("div",{className:"text-[18px] leading-[22px] font-semibold text-neutral-900 truncate text-ellipsis line-clamp-1",style:{marginLeft:"16px"},children:a||"\u56FE\u8C31\u5E93\u540D\u79F0"})]}),v("div",{title:i,style:{marginTop:16,color:"#4E5969",fontSize:12,maxWidth:"309px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",whiteSpace:"normal",height:38},children:i||""}),v("div",{style:{marginTop:"12px",display:"flex",justifyContent:"flex-end"},children:v(Qd,{className:"graphbase-card-more-wrap",children:v(Xd,{ref:c,type:"button",className:"graphbase-card-more-btn","aria-label":"\u66F4\u591A","aria-expanded":f,onClick:x=>{x.stopPropagation(),d(_=>!_)},children:"\xB7\xB7\xB7"})})})]})}),f&&typeof document<"u"&&ta($(Yd,{ref:u,className:"graphbase-card-more-menu",style:g,role:"menu",children:[v(Zo,{type:"button",className:"graphbase-card-more-item",role:"menuitem",onClick:x=>{x.stopPropagation(),F({...e,account:e.userAccount||"",password:e.userAccountPassword||""}),d(!1),w(!0)},disabled:mt(ct.EDIT,s),children:"\u7F16\u8F91"}),v(Zo,{type:"button",className:"graphbase-card-more-item ",role:"menuitem",onClick:x=>{x.stopPropagation(),F(e),d(!1),p(!0)},disabled:mt(ct.AUTHORIZE,s),children:"\u5220\u9664"})]}),document.body),v(Wu,{visible:h,confirmLoading:E,onConfirm:async()=>{try{A(!0);const x=await id({id:S.id},{token:n||""});A(!1),p(!1),x&&o()}catch{A(!1)}},onCancel:()=>{p(!1)}}),v(ri,{visible:C,onCancel:function(){w(!1)},onSubmit:O,initialValues:S,graphDbType:r,confirmLoading:T,fromType:"edit"})]})},Vd=Ge.div.attrs({className:"graphbase-card-root"})`
|
|
144
|
+
width: 100%;
|
|
145
|
+
height: 161px;
|
|
146
|
+
display: flex;
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
padding: 16px 18px;
|
|
149
|
+
border-radius: ${({theme:e})=>{var t;return((t=e.space)==null?void 0:t.dashboardContentRadius)??"8px"}};
|
|
150
|
+
background: ${({theme:e})=>{var t;return((t=e.colors)==null?void 0:t.listBackground)??"#ffffff"}};
|
|
151
|
+
border: 1px solid #eeeeee;
|
|
152
|
+
transition:
|
|
153
|
+
box-shadow 0.18s ease,
|
|
154
|
+
transform 0.18s ease,
|
|
155
|
+
border-color 0.18s ease,
|
|
156
|
+
background 0.18s ease;
|
|
157
|
+
cursor: pointer;
|
|
158
|
+
|
|
159
|
+
&:hover {
|
|
160
|
+
box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
|
|
161
|
+
border-color: rgba(226, 232, 240, 1);
|
|
162
|
+
}
|
|
163
|
+
`;Ge.div.attrs({className:"graphbase-card-icon"})`
|
|
164
|
+
flex: 0 0 auto;
|
|
165
|
+
width: 72px;
|
|
166
|
+
height: 72px;
|
|
167
|
+
border-radius: 12px;
|
|
168
|
+
background: #3b82f6;
|
|
169
|
+
position: relative;
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);
|
|
172
|
+
|
|
173
|
+
& .graphbase-card-icon-inner {
|
|
174
|
+
position: absolute;
|
|
175
|
+
inset: 0;
|
|
176
|
+
background:
|
|
177
|
+
radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 55%),
|
|
178
|
+
linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.12));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&::after {
|
|
182
|
+
content: '';
|
|
183
|
+
position: absolute;
|
|
184
|
+
left: 16px;
|
|
185
|
+
top: 18px;
|
|
186
|
+
width: 28px;
|
|
187
|
+
height: 28px;
|
|
188
|
+
border-radius: 8px;
|
|
189
|
+
background: rgba(255, 255, 255, 0.85);
|
|
190
|
+
box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&::before {
|
|
194
|
+
content: '';
|
|
195
|
+
position: absolute;
|
|
196
|
+
left: 34px;
|
|
197
|
+
top: 36px;
|
|
198
|
+
width: 18px;
|
|
199
|
+
height: 18px;
|
|
200
|
+
border-radius: 50%;
|
|
201
|
+
background: rgba(255, 255, 255, 0.75);
|
|
202
|
+
box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
|
|
203
|
+
}
|
|
204
|
+
`;const Qd=Ge.div.attrs({className:"graphbase-card-more-wrap"})`
|
|
205
|
+
position: relative;
|
|
206
|
+
flex: 0 0 auto;
|
|
207
|
+
`,Xd=Ge.button.attrs({className:"graphbase-card-more-btn"})`
|
|
208
|
+
height: 28px;
|
|
209
|
+
width: 36px;
|
|
210
|
+
display: inline-flex;
|
|
211
|
+
align-items: center;
|
|
212
|
+
justify-content: center;
|
|
213
|
+
border-radius: 8px;
|
|
214
|
+
background: rgba(255, 255, 255, 0.9);
|
|
215
|
+
color: rgba(100, 116, 139, 1);
|
|
216
|
+
font-size: 16px;
|
|
217
|
+
line-height: 16px;
|
|
218
|
+
letter-spacing: 1px;
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
transition:
|
|
221
|
+
background 0.16s ease,
|
|
222
|
+
box-shadow 0.16s ease,
|
|
223
|
+
color 0.16s ease;
|
|
224
|
+
|
|
225
|
+
&:hover {
|
|
226
|
+
background: rgba(248, 250, 252, 1);
|
|
227
|
+
box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
|
|
228
|
+
color: rgba(30, 41, 59, 1);
|
|
229
|
+
}
|
|
230
|
+
`,Yd=Ge.div.attrs({className:"graphbase-card-more-menu"})`
|
|
231
|
+
box-sizing: border-box;
|
|
232
|
+
min-width: 108px;
|
|
233
|
+
border-radius: 10px;
|
|
234
|
+
background: #ffffff;
|
|
235
|
+
border: 1px solid rgba(226, 232, 240, 0.95);
|
|
236
|
+
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
|
|
237
|
+
padding: 6px 3px;
|
|
238
|
+
`;Ge.div.attrs({className:"graphbase-card-more-divider"})`
|
|
239
|
+
height: 1px;
|
|
240
|
+
margin: 4px 0;
|
|
241
|
+
background: rgba(226, 232, 240, 0.9);
|
|
242
|
+
`;const Zo=Ge.button.attrs({className:"graphbase-card-more-item"})`
|
|
243
|
+
width: 100%;
|
|
244
|
+
text-align: left;
|
|
245
|
+
padding: 6px 8px;
|
|
246
|
+
font-size: 14px;
|
|
247
|
+
line-height: 18px;
|
|
248
|
+
color: rgba(30, 41, 59, 1);
|
|
249
|
+
background: transparent;
|
|
250
|
+
border: 0;
|
|
251
|
+
cursor: pointer;
|
|
252
|
+
transition:
|
|
253
|
+
background 0.16s ease,
|
|
254
|
+
color 0.16s ease;
|
|
255
|
+
|
|
256
|
+
&:hover {
|
|
257
|
+
background: rgba(243, 244, 246, 1);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
&.graphbase-card-more-item-danger {
|
|
261
|
+
color: rgba(239, 68, 68, 1);
|
|
262
|
+
}
|
|
263
|
+
`,Wd=({placeholder:e,value:t,onAction:r,size:n="md",onSearchChange:o,setOpenConfigDrawer:a,activeLibrary:i})=>$("div",{style:{display:"flex"},children:[v(je,{placeholder:"\u8F93\u5165\u540D\u79F0\u641C\u7D22",suffix:v(oi,{onClick:()=>{o(t||"")}}),style:{width:"240px"},value:t,onChange:s=>r==null?void 0:r("change",{value:s.target.value}),onKeyDown:s=>{!s.shiftKey&&s.key==="Enter"&&(s.preventDefault(),o(t||""))}}),v(kn,{style:{marginLeft:12,flexShrink:0},onClick:()=>{a(!0)},disabled:mt(ct.VIEW,i==null?void 0:i.permission),children:"\u914D\u7F6E"})]});export{ff as G,Wr as _,Bi as a,Uc as b,df as c,Bn as g,mc as i,Ns as m,mn as s,uf as t};
|