@gientech/modual 2.3.12 → 2.3.14
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/README.md +761 -761
- package/assets/{ReviewManage-DK8Fr6E0.js → ReviewManage-BMU_6ckL.js} +9 -9
- package/assets/database.svg +11 -11
- package/assets/database_add.svg +53 -53
- package/assets/database_connect.svg +66 -66
- package/assets/database_upload.svg +29 -29
- package/assets/databse.svg +6 -6
- package/assets/defaultWeLogo.svg +14 -14
- package/assets/graph.svg +4 -4
- package/assets/iconAi.svg +9 -9
- package/assets/{index-BIS6Xs7b.js → index-DDOYnvar.js} +36 -35
- package/assets/index-DmyNs9eP.js +263 -0
- package/assets/index-yfKSY1ed.js +343 -0
- package/assets/knowledge.svg +4 -4
- package/assets/mysql.svg +14 -14
- package/assets/sensitive.svg +5 -5
- package/chat.js +1 -1
- package/chatCompare.js +1 -1
- package/database.js +2 -2
- package/graphBase.js +1 -1
- package/index.js +1 -1
- package/package.json +7 -7
- package/worker/pdf.worker.min.js +21 -21
- package/assets/index-DkL4hsiB.js +0 -344
- package/assets/index-VvZXJ_WN.js +0 -263
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import{jsx as h,jsxs as G,Fragment as gt}from"react/jsx-runtime";import*as A from"react";import fe,{useContext as lt,createContext as oa,version as hi,isValidElement as mi,useRef as se,useLayoutEffect as aa,useEffect as ne,useState as N,useCallback as tn,useMemo as ht}from"react";import*as vi from"react-dom";import so,{createPortal as ia}from"react-dom";import{useTheme as yi,deepMergeTheme as co,defaultTheme as Ai,Icon as lo,Button as Fr,DashboardContainer as bi}from"@mxmweb/zui";import{Xviwer as uo}from"@mxmweb/xviewer";/* empty css */import Ue from"styled-components";import{Typography as Xn,Modal as dn,Input as De,Form as Re,Select as qr,Button as be,message as Ie,Spin as Tr,Space as xi,Tooltip as Kr,Drawer as Zr,Table as Ci,ConfigProvider as sa,Tag as Rr,Flex as Ei,Popover as Si}from"antd";import{a as Ce,f as wi,R as ki,k as Fi}from"./index-DDOYnvar.js";import Ti from"axios";import{w as Ri,_ as le,a as tt,b as nt,c as Z,d as Ii,e as fo,f as Oi,h as J,i as Bi,j as At,k as Q,l as Oe,u as Mt,m as Be,r as ca,n as Mi,o as Pi,p as Di,q as _i,F as we,s as Un,t as fr,v as pr,x as qn,y as Pt,z as rn,A as et,I as Ni,B as la,C as $n,D as bt,g as Li,E as Ir}from"./lodash-Damzdmsp.js";import{u as po}from"./index-CpW6Dhpp.js";const zi=fe.createContext({});function on(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 ua(e,t,n){var r=A.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function ji(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Ri(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.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&&le(a)==="object"&&le(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 Gi="%";function Or(e){return e.join(Gi)}var Hi=(function(){function e(t){nt(this,e),Z(this,"instanceId",void 0),Z(this,"cache",new Map),Z(this,"extracted",new Set),this.instanceId=t}return tt(e,[{key:"get",value:function(n){return this.opGet(Or(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Or(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e})(),Nt="data-token-hash",We="data-css-hash",mt="__cssinjs_instance__";function Ui(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(We,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[mt]=o[mt]||e,o[mt]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(We,"]"))).forEach(function(o){var a=o.getAttribute(We);if(r[a]){if(o[mt]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new Hi(e)}var fn=A.createContext({hashPriority:"low",cache:Ui(),defaultCache:!0});function Kn(e){var t=Ii();return function(){var n,r=fo(e);if(t){var o=fo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oi(this,n)}}function $i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Jr=(function(){function e(){nt(this,e),Z(this,"cache",void 0),Z(this,"keys",void 0),Z(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return tt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.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)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var f=J(c,2),d=f[1];return o.internalGet(u)[1]<d?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=J(a,1),s=i[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,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(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!$i(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();Z(Jr,"MAX_CACHE_SIZE",20);Z(Jr,"MAX_CACHE_OFFSET",5);var go=0,da=(function(){function e(t){nt(this,e),Z(this,"derivatives",void 0),Z(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=go,t.length===0&&Bi(t.length>0),go+=1}return tt(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),gr=new Jr;function Br(e){var t=Array.isArray(e)?e:[e];return gr.has(t)||gr.set(t,new da(t)),gr.get(t)}var Vi=new WeakMap,hr={};function Qi(e,t){for(var n=Vi,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(hr)||n.set(hr,e()),n.get(hr)}var ho=new WeakMap;function nn(e){var t=ho.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof da?t+=r.id:r&&le(r)==="object"?t+=nn(r):t+=r}),t=on(t),ho.set(e,t)),t}function mo(e,t){return on("".concat(t,"_").concat(nn(e)))}var Mr=At();function vo(e){return typeof e=="number"?"".concat(e,"px"):e}function Vn(e,t,n){var r=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=Q(Q({},r),{},Z(Z({},Nt,t),We,n)),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 Pn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").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()},Yi=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=J(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},fa=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var s,l,c=J(i,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var d,g=Pn(u,r==null?void 0:r.prefix);o[g]=typeof f=="number"&&!(r!=null&&(d=r.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(g,")")}}),[a,Yi(o,n,{scope:r==null?void 0:r.scope})]},yo=At()?A.useLayoutEffect:A.useEffect,Wi=function(t,n){var r=A.useRef(!0);yo(function(){return t(r.current)},n),yo(function(){return r.current=!1,function(){r.current=!0}},[])},Xi=Q({},A),Ao=Xi.useInsertionEffect,qi=function(t,n,r){A.useMemo(t,r),Wi(function(){return n(!0)},r)},Ki=Ao?function(e,t,n){return Ao(function(){return e(),t()},n)}:qi,Zi=Q({},A),Ji=Zi.useInsertionEffect,es=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return A.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},ts=function(){return function(t){t()}},ns=typeof Ji<"u"?es:ts;function eo(e,t,n,r,o){var a=A.useContext(fn),i=a.cache,s=[e].concat(Oe(t)),l=Or(s),c=ns([l]),u=function(m){i.opUpdate(l,function(v){var p=v||[void 0,void 0],x=J(p,2),b=x[0],C=b===void 0?0:b,S=x[1],y=S,k=y||n(),w=[C,k];return m?m(w):w})};A.useMemo(function(){u()},[l]);var f=i.opGet(l),d=f[1];return Ki(function(){o==null||o(d)},function(g){return u(function(m){var v=J(m,2),p=v[0],x=v[1];return g&&p===0&&(o==null||o(d)),[p+1,x]}),function(){i.opUpdate(l,function(m){var v=m||[],p=J(v,2),x=p[0],b=x===void 0?0:x,C=p[1],S=b-1;return S===0?(c(function(){(g||!i.opGet(l))&&(r==null||r(C,!1))}),null):[b-1,C]})}},[l]),d}var rs={},os="css",St=new Map;function as(e){St.set(e,(St.get(e)||0)+1)}function is(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Nt,'="').concat(e,'"]'));n.forEach(function(r){if(r[mt]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var ss=0;function cs(e,t){St.set(e,(St.get(e)||0)-1);var n=new Set;St.forEach(function(r,o){r<=0&&n.add(o)}),St.size-n.size>ss&&n.forEach(function(r){is(r,t),St.delete(r)})}var ls=function(t,n,r,o){var a=r.getDerivativeToken(t),i=Q(Q({},a),n);return o&&(i=o(i)),i},pa="token";function us(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=lt(fn),o=r.cache.instanceId,a=r.container,i=n.salt,s=i===void 0?"":i,l=n.override,c=l===void 0?rs:l,u=n.formatToken,f=n.getComputedToken,d=n.cssVar,g=Qi(function(){return Object.assign.apply(Object,[{}].concat(Oe(t)))},t),m=nn(g),v=nn(c),p=d?nn(d):"",x=eo(pa,[s,e.id,m,v,p],function(){var b,C=f?f(g,c,e):ls(g,c,e,u),S=Q({},C),y="";if(d){var k=fa(C,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),w=J(k,2);C=w[0],y=w[1]}var R=mo(C,s);C._tokenKey=R,S._tokenKey=mo(S,s);var O=(b=d==null?void 0:d.key)!==null&&b!==void 0?b:R;C._themeKey=O,as(O);var T="".concat(os,"-").concat(on(R));return C._hashId=T,[C,T,S,y,(d==null?void 0:d.key)||""]},function(b){cs(b[0]._themeKey,o)},function(b){var C=J(b,4),S=C[0],y=C[3];if(d&&y){var k=Mt(y,on("css-variables-".concat(S._themeKey)),{mark:We,prepend:"queue",attachTo:a,priority:-999});k[mt]=o,k.setAttribute(Nt,S._themeKey)}});return x}var ds=function(t,n,r){var o=J(t,5),a=o[2],i=o[3],s=o[4],l=r||{},c=l.plain;if(!i)return null;var u=a._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=Vn(i,s,u,d,c);return[f,u,g]},fs={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},ga="comm",ha="rule",ma="decl",ps="@import",gs="@namespace",hs="@keyframes",ms="@layer",va=Math.abs,to=String.fromCharCode;function ya(e){return e.trim()}function Dn(e,t,n){return e.replace(t,n)}function vs(e,t,n){return e.indexOf(t,n)}function Dt(e,t){return e.charCodeAt(t)|0}function Lt(e,t,n){return e.slice(t,n)}function Je(e){return e.length}function ys(e){return e.length}function Fn(e,t){return t.push(e),e}var Zn=1,zt=1,Aa=0,He=0,ge=0,jt="";function no(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Zn,column:zt,length:i,return:"",siblings:s}}function As(){return ge}function bs(){return ge=He>0?Dt(jt,--He):0,zt--,ge===10&&(zt=1,Zn--),ge}function Xe(){return ge=He<Aa?Dt(jt,He++):0,zt++,ge===10&&(zt=1,Zn++),ge}function vt(){return Dt(jt,He)}function _n(){return He}function Jn(e,t){return Lt(jt,e,t)}function an(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 xs(e){return Zn=zt=1,Aa=Je(jt=e),He=0,[]}function Cs(e){return jt="",e}function mr(e){return ya(Jn(He-1,Pr(e===91?e+2:e===40?e+1:e)))}function Es(e){for(;(ge=vt())&&ge<33;)Xe();return an(e)>2||an(ge)>3?"":" "}function Ss(e,t){for(;--t&&Xe()&&!(ge<48||ge>102||ge>57&&ge<65||ge>70&&ge<97););return Jn(e,_n()+(t<6&&vt()==32&&Xe()==32))}function Pr(e){for(;Xe();)switch(ge){case e:return He;case 34:case 39:e!==34&&e!==39&&Pr(ge);break;case 40:e===41&&Pr(e);break;case 92:Xe();break}return He}function ws(e,t){for(;Xe()&&e+ge!==57;)if(e+ge===84&&vt()===47)break;return"/*"+Jn(t,He-1)+"*"+to(e===47?e:Xe())}function ks(e){for(;!an(vt());)Xe();return Jn(e,He)}function Fs(e){return Cs(Nn("",null,null,null,[""],e=xs(e),0,[0],e))}function Nn(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,d=0,g=0,m=0,v=1,p=1,x=1,b=0,C="",S=o,y=a,k=r,w=C;p;)switch(m=b,b=Xe()){case 40:if(m!=108&&Dt(w,f-1)==58){vs(w+=Dn(mr(b),"&","&\f"),"&\f",va(c?s[c-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:w+=mr(b);break;case 9:case 10:case 13:case 32:w+=Es(m);break;case 92:w+=Ss(_n()-1,7);continue;case 47:switch(vt()){case 42:case 47:Fn(Ts(ws(Xe(),_n()),t,n,l),l),(an(m||1)==5||an(vt()||1)==5)&&Je(w)&&Lt(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*v:s[c++]=Je(w)*x;case 125*v:case 59:case 0:switch(b){case 0:case 125:p=0;case 59+u:x==-1&&(w=Dn(w,/\f/g,"")),g>0&&(Je(w)-f||v===0&&m===47)&&Fn(g>32?xo(w+";",r,n,f-1,l):xo(Dn(w," ","")+";",r,n,f-2,l),l);break;case 59:w+=";";default:if(Fn(k=bo(w,t,n,c,u,o,s,C,S=[],y=[],f,a),a),b===123)if(u===0)Nn(w,t,k,k,S,a,f,s,y);else{switch(d){case 99:if(Dt(w,3)===110)break;case 108:if(Dt(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Nn(e,k,k,r&&Fn(bo(e,k,k,0,0,o,s,C,o,S=[],f,y),y),o,y,f,s,r?S:y):Nn(w,k,k,k,[""],y,0,s,y)}}c=u=g=0,v=x=1,C=w="",f=i;break;case 58:f=1+Je(w),g=m;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&bs()==125)continue}switch(w+=to(b),b*v){case 38:x=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Je(w)-1)*x,x=1;break;case 64:vt()===45&&(w+=mr(Xe())),d=vt(),u=f=Je(C=w+=ks(_n())),b++;break;case 45:m===45&&Je(w)==2&&(v=0)}}return a}function bo(e,t,n,r,o,a,i,s,l,c,u,f){for(var d=o-1,g=o===0?a:[""],m=ys(g),v=0,p=0,x=0;v<r;++v)for(var b=0,C=Lt(e,d+1,d=va(p=i[v])),S=e;b<m;++b)(S=ya(p>0?g[b]+" "+C:Dn(C,/&\f/g,g[b])))&&(l[x++]=S);return no(e,t,n,o===0?ha:s,l,c,u,f)}function Ts(e,t,n,r){return no(e,t,n,ga,to(As()),Lt(e,2,-2),0,r)}function xo(e,t,n,r,o){return no(e,t,n,ma,Lt(e,0,r),Lt(e,r+1,-1),r,o)}function Dr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Rs(e,t,n,r){switch(e.type){case ms:if(e.children.length)break;case ps:case gs:case ma:return e.return=e.return||e.value;case ga:return"";case hs:return e.return=e.value+"{"+Dr(e.children,r)+"}";case ha:if(!Je(e.value=e.props.join(",")))return""}return Je(n=Dr(e.children,r))?e.return=e.value+"{"+n+"}":""}var Co="data-ant-cssinjs-cache-path",ba="_FILE_STYLE__",kt,xa=!0;function Is(){if(!kt&&(kt={},At())){var e=document.createElement("div");e.className=Co,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=J(a,2),s=i[0],l=i[1];kt[s]=l});var n=document.querySelector("style[".concat(Co,"]"));if(n){var r;xa=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function Os(e){return Is(),!!kt[e]}function Bs(e){var t=kt[e],n=null;if(t&&At())if(xa)n=ba;else{var r=document.querySelector("style[".concat(We,'="').concat(kt[e],'"]'));r?n=r.innerHTML:delete kt[e]}return[n,t]}var Ms="_skip_check_",Ca="_multi_value_";function Ln(e){var t=Dr(Fs(e),Rs);return t.replace(/\{%%%\:[^;];}/g,";")}function Ps(e){return le(e)==="object"&&e&&(Ms in e||Ca in e)}function Eo(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,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(Oe(l.slice(1))).join(" ")});return a.join(",")}var Ds=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var d="",g={};function m(x){var b=x.getName(s);if(!g[b]){var C=e(x.style,n,{root:!1,parentSelectors:i}),S=J(C,1),y=S[0];g[b]="@keyframes ".concat(x.getName(s)).concat(y)}}function v(x){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(C){Array.isArray(C)?v(C,b):C&&b.push(C)}),b}var p=v(Array.isArray(t)?t:[t]);return p.forEach(function(x){var b=typeof x=="string"&&!o?{}:x;if(typeof b=="string")d+="".concat(b,`
|
|
2
|
+
`);else if(b._keyframe)m(b);else{var C=f.reduce(function(S,y){var k;return(y==null||(k=y.visit)===null||k===void 0?void 0:k.call(y,S))||S},b);Object.keys(C).forEach(function(S){var y=C[S];if(le(y)==="object"&&y&&(S!=="animationName"||!y._keyframe)&&!Ps(y)){var k=!1,w=S.trim(),R=!1;(o||a)&&s?w.startsWith("@")?k=!0:w==="&"?w=Eo("",s,c):w=Eo(S,s,c):o&&!s&&(w==="&"||w==="")&&(w="",R=!0);var O=e(y,n,{root:R,injectHash:k,parentSelectors:[].concat(Oe(i),[w])}),T=J(O,2),E=T[0],j=T[1];g=Q(Q({},g),j),d+="".concat(w).concat(E)}else{let _=function(z,H){var K=z.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),M=H;!fs[z]&&typeof M=="number"&&M!==0&&(M="".concat(M,"px")),z==="animationName"&&H!==null&&H!==void 0&&H._keyframe&&(m(H),M=H.getName(s)),d+="".concat(K,":").concat(M,";")};var L,$=(L=y==null?void 0:y.value)!==null&&L!==void 0?L:y;le(y)==="object"&&y!==null&&y!==void 0&&y[Ca]&&Array.isArray($)?$.forEach(function(z){_(S,z)}):_(S,$)}})}}),o?l&&(d&&(d="@layer ".concat(l.name," {").concat(d,"}")),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(x){return"@layer ".concat(x,", ").concat(l.name,";")}).join(`
|
|
3
|
+
`))):d="{".concat(d,"}"),[d,g]};function Ea(e,t){return on("".concat(e.join("%")).concat(t))}function _s(){return null}var Sa="style";function _r(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=A.useContext(fn),f=u.autoClear;u.mock;var d=u.defaultCache,g=u.hashPriority,m=u.container,v=u.ssrInline,p=u.transformers,x=u.linters,b=u.cache,C=u.layer,S=n._tokenKey,y=[S];C&&y.push("layer"),y.push.apply(y,Oe(r));var k=Mr,w=eo(Sa,y,function(){var j=y.join("|");if(Os(j)){var L=Bs(j),$=J(L,2),_=$[0],z=$[1];if(_)return[_,S,z,{},s,c]}var H=t(),K=Ds(H,{hashId:o,hashPriority:g,layer:C?a:void 0,path:r.join("-"),transformers:p,linters:x}),M=J(K,2),W=M[0],X=M[1],I=Ln(W),B=Ea(y,I);return[I,S,B,X,s,c]},function(j,L){var $=J(j,3),_=$[2];(L||f)&&Mr&&ca(_,{mark:We,attachTo:m})},function(j){var L=J(j,4),$=L[0];L[1];var _=L[2],z=L[3];if(k&&$!==ba){var H={mark:We,prepend:C?!1:"queue",attachTo:m,priority:c},K=typeof i=="function"?i():i;K&&(H.csp={nonce:K});var M=[],W=[];Object.keys(z).forEach(function(I){I.startsWith("@layer")?M.push(I):W.push(I)}),M.forEach(function(I){Mt(Ln(z[I]),"_layer-".concat(I),Q(Q({},H),{},{prepend:!0}))});var X=Mt($,_,H);X[mt]=b.instanceId,X.setAttribute(Nt,S),W.forEach(function(I){Mt(Ln(z[I]),"_effect-".concat(I),H)})}}),R=J(w,3),O=R[0],T=R[1],E=R[2];return function(j){var L;return!v||k||!d?L=A.createElement(_s,null):L=A.createElement("style",Be({},Z(Z({},Nt,T),We,E),{dangerouslySetInnerHTML:{__html:O}})),A.createElement(A.Fragment,null,L,j)}}var Ns=function(t,n,r){var o=J(t,6),a=o[0],i=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=r||{},d=f.plain;if(c)return null;var g=a,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=Vn(a,i,s,m,d),l&&Object.keys(l).forEach(function(v){if(!n[v]){n[v]=!0;var p=Ln(l[v]),x=Vn(p,i,"_effect-".concat(v),m,d);v.startsWith("@layer")?g=x+g:g+=x}}),[u,s,g]},wa="cssVar",Ls=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=lt(fn),f=u.cache.instanceId,d=u.container,g=s._tokenKey,m=[].concat(Oe(t.path),[r,c,g]),v=eo(wa,m,function(){var p=n(),x=fa(p,r,{prefix:o,unitless:a,ignore:i,scope:c}),b=J(x,2),C=b[0],S=b[1],y=Ea(m,S);return[C,S,y,r]},function(p){var x=J(p,3),b=x[2];Mr&&ca(b,{mark:We,attachTo:d})},function(p){var x=J(p,3),b=x[1],C=x[2];if(b){var S=Mt(b,C,{mark:We,prepend:"queue",attachTo:d,priority:-999});S[mt]=f,S.setAttribute(Nt,r)}});return v},zs=function(t,n,r){var o=J(t,4),a=o[1],i=o[2],s=o[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=Vn(a,s,i,f,c);return[u,i,d]};Z(Z(Z({},Sa,Ns),pa,ds),wa,zs);var So=(function(){function e(t,n){nt(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=t,this.style=n}return tt(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function It(e){return e.notSplit=!0,e}It(["borderTop","borderBottom"]),It(["borderTop"]),It(["borderBottom"]),It(["borderLeft","borderRight"]),It(["borderLeft"]),It(["borderRight"]);function js(e){return Mi(e)||Pi(e)||Di(e)||_i()}function Nr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function ka(e,t,n,r){if(!t.length)return n;var o=js(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Oe(e):s=Q({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=ka(s[a],i,n,r),s}function vr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Nr(e,t.slice(0,-1))?e:ka(e,t,n,r)}function Gs(e){return le(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function wo(e){return Array.isArray(e)?[]:{}}var Hs=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Us(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=wo(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=Nr(o,i),u=Array.isArray(c);if(u||Gs(c)){if(!l.has(c)){l.add(c);var f=Nr(r,i);u?r=vr(r,i,[]):(!f||le(f)!=="object")&&(r=vr(r,i,wo(c))),Hs(c).forEach(function(d){a([].concat(Oe(i),[d]),l)})}}else r=vr(r,i,c)}a([])}),r}const $s=A.createContext({}),Vs=oa(void 0),Pe="${label} is not a valid ${type}",er={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({},er.Modal);let zn=[];const ko=()=>zn.reduce((e,t)=>Object.assign(Object.assign({},e),t),er.Modal);function Qs(e){if(e){const t=Object.assign({},e);return zn.push(t),ko(),()=>{zn=zn.filter(n=>n!==t),ko()}}Object.assign({},er.Modal)}const Fa=oa(void 0),Ys="internalMark",Ws=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;A.useEffect(()=>Qs(t==null?void 0:t.Modal),[t]);const o=A.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return A.createElement(Fa.Provider,{value:o},n)},Ta={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"},sn=Object.assign(Object.assign({},Ta),{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 Xs(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(r),d=t(o),g=t(a),m=t(i),v=n(l,c),p=e.colorLink||e.colorInfo,x=t(p),b=new we(g[1]).mix(new we(g[3]),50).toHexString();return Object.assign(Object.assign({},v),{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:b,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:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new we("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const qs=e=>{let t=e,n=e,r=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?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function Ks(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},qs(r))}const Zs=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Js(e){return(e+8)/e}function ec(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Js(n)}))}const tc=e=>{const t=ec(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function nc(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const je=(e,t)=>new we(e).setA(t).toRgbString(),en=(e,t)=>new we(e).darken(t).toHexString(),rc=e=>{const t=Un(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]}},oc=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:je(r,.88),colorTextSecondary:je(r,.65),colorTextTertiary:je(r,.45),colorTextQuaternary:je(r,.25),colorFill:je(r,.15),colorFillSecondary:je(r,.06),colorFillTertiary:je(r,.04),colorFillQuaternary:je(r,.02),colorBgSolid:je(r,1),colorBgSolidHover:je(r,.75),colorBgSolidActive:je(r,.95),colorBgLayout:en(n,4),colorBgContainer:en(n,0),colorBgElevated:en(n,0),colorBgSpotlight:je(r,.85),colorBgBlur:"transparent",colorBorder:en(n,15),colorBorderSecondary:en(n,6)}};function ac(e){fr.pink=fr.magenta,pr.pink=pr.magenta;const t=Object.keys(Ta).map(n=>{const r=e[n]===fr[n]?pr[n]:Un(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Xs(e,{generateColorPalettes:rc,generateNeutralColorPalettes:oc})),tc(e.fontSize)),nc(e)),Zs(e)),Ks(e))}const Ra=Br(ac),Lr={token:sn,override:{override:sn},hashed:!0},Ia=fe.createContext(Lr),zr="ant",tr="anticon",ic=(e,t)=>t||(e?`${zr}-${e}`:zr),ut=A.createContext({getPrefixCls:ic,iconPrefixCls:tr}),{Consumer:Cf}=ut,sc=`-ant-${Date.now()}-${Math.random()}`;function cc(e,t){const n={},r=(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=Un(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new we(t.primaryColor),s=Un(i.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setA(c.a*.12));const l=new we(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(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(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
|
|
8
|
+
`)}
|
|
9
|
+
}
|
|
10
|
+
`.trim()}function lc(e,t){const n=cc(e,t);At()&&Mt(n,`${sc}-dynamic-theme`)}const jr=A.createContext(!1),uc=({children:e,disabled:t})=>{const n=A.useContext(jr);return A.createElement(jr.Provider,{value:t??n},e)},cn=A.createContext(void 0),dc=({children:e,size:t})=>{const n=A.useContext(cn);return A.createElement(cn.Provider,{value:t||n},e)};function fc(){const e=lt(jr),t=lt(cn);return{componentDisabled:e,componentSize:t}}var Oa=tt(function e(){nt(this,e)}),Ba="CALC_UNIT",pc=new RegExp(Ba,"g");function yr(e){return typeof e=="number"?"".concat(e).concat(Ba):e}var gc=(function(e){qn(n,e);var t=Kn(n);function n(r,o){var a;nt(this,n),a=t.call(this),Z(Pt(a),"result",""),Z(Pt(a),"unitlessCssVar",void 0),Z(Pt(a),"lowPriority",void 0);var i=le(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=yr(r):i==="string"&&(a.result=r),a}return tt(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(yr(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(yr(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?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 n?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(pc,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(Oa),hc=(function(e){qn(n,e);var t=Kn(n);function n(r){var o;return nt(this,n),o=t.call(this),Z(Pt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return tt(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n})(Oa),mc=function(t,n){var r=t==="css"?gc:hc;return function(o){return new r(o,n)}},Fo=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Qn(e){var t=A.useRef();t.current=e;var n=A.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Gr(e){var t=A.useRef(!1),n=A.useState(e),r=J(n,2),o=r[0],a=r[1];A.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||a(s)}return[o,i]}var Ar={exports:{}},ee={};/**
|
|
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 To;function vc(){if(To)return ee;To=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=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 v(p){if(typeof p=="object"&&p!==null){var x=p.$$typeof;switch(x){case e:switch(p=p.type,p){case n:case o:case r: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 x}}case t:return x}}}return ee.ContextConsumer=i,ee.ContextProvider=a,ee.Element=e,ee.ForwardRef=l,ee.Fragment=n,ee.Lazy=d,ee.Memo=f,ee.Portal=t,ee.Profiler=o,ee.StrictMode=r,ee.Suspense=c,ee.SuspenseList=u,ee.isAsyncMode=function(){return!1},ee.isConcurrentMode=function(){return!1},ee.isContextConsumer=function(p){return v(p)===i},ee.isContextProvider=function(p){return v(p)===a},ee.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ee.isForwardRef=function(p){return v(p)===l},ee.isFragment=function(p){return v(p)===n},ee.isLazy=function(p){return v(p)===d},ee.isMemo=function(p){return v(p)===f},ee.isPortal=function(p){return v(p)===t},ee.isProfiler=function(p){return v(p)===o},ee.isStrictMode=function(p){return v(p)===r},ee.isSuspense=function(p){return v(p)===c},ee.isSuspenseList=function(p){return v(p)===u},ee.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||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)},ee.typeOf=v,ee}var Ro;function yc(){return Ro||(Ro=1,Ar.exports=vc()),Ar.exports}var br=yc(),Ac=Symbol.for("react.element"),bc=Symbol.for("react.transitional.element"),xc=Symbol.for("react.fragment");function Cc(e){return e&&le(e)==="object"&&(e.$$typeof===Ac||e.$$typeof===bc)&&e.type===xc}var Ec=Number(hi.split(".")[0]),Sc=function(t,n){typeof t=="function"?t(n):le(t)==="object"&&t&&"current"in t&&(t.current=n)},wc=function(t){var n,r;if(!t)return!1;if(Ma(t)&&Ec>=19)return!0;var o=br.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==br.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==br.ForwardRef)};function Ma(e){return mi(e)&&!Cc(e)}var kc=function(t){if(t&&Ma(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};function Io(e,t,n,r){var o=Q({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var l=J(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=Q(Q({},n),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Pa=typeof CSSINJS_STATISTIC<"u",Hr=!0;function ro(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Pa)return Object.assign.apply(Object,[{}].concat(t));Hr=!1;var r={};return t.forEach(function(o){if(le(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Hr=!0,r}var Oo={};function Fc(){}var Tc=function(t){var n,r=t,o=Fc;return Pa&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,s){if(Hr){var l;(l=n)===null||l===void 0||l.add(s)}return i[s]}}),o=function(i,s){var l;Oo[i]={global:Array.from(n),component:Q(Q({},(l=Oo[i])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:o}};function Bo(e,t,n){if(typeof n=="function"){var r;return n(ro(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Rc(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(a){return vo(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(a){return vo(a)}).join(","),")")}}}var Ic=1e3*60*10,Oc=(function(){function e(){nt(this,e),Z(this,"map",new Map),Z(this,"objectIDMap",new WeakMap),Z(this,"nextID",0),Z(this,"lastAccessBeat",new Map),Z(this,"accessBeat",0)}return tt(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(a){return a&&le(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(le(a),"_").concat(a)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,a){r-o>Ic&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e})(),Mo=new Oc;function Bc(e,t){return fe.useMemo(function(){var n=Mo.get(t);if(n)return n;var r=e();return Mo.set(t,r),r},t)}var Mc=function(){return{}};function Pc(e){var t=e.useCSP,n=t===void 0?Mc:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(d,g,m,v){var p=Array.isArray(d)?d[0]:d;function x(R){return"".concat(String(p)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var b=(v==null?void 0:v.unitless)||{},C=typeof s=="function"?s(d):{},S=Q(Q({},C),{},Z({},x("zIndexPopup"),!0));Object.keys(b).forEach(function(R){S[x(R)]=b[R]});var y=Q(Q({},v),{},{unitless:S,prefixToken:x}),k=u(d,g,m,y),w=c(p,m,y);return function(R){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,T=k(R,O),E=J(T,2),j=E[1],L=w(O),$=J(L,2),_=$[0],z=$[1];return[_,j,z]}}function c(d,g,m){var v=m.unitless,p=m.injectStyle,x=p===void 0?!0:p,b=m.prefixToken,C=m.ignore,S=function(w){var R=w.rootCls,O=w.cssVar,T=O===void 0?{}:O,E=r(),j=E.realToken;return Ls({path:[d],prefix:T.prefix,key:T.key,unitless:v,ignore:C,token:j,scope:R},function(){var L=Bo(d,j,g),$=Io(d,j,L,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(L).forEach(function(_){$[b(_)]=$[_],delete $[_]}),$}),null},y=function(w){var R=r(),O=R.cssVar;return[function(T){return x&&O?fe.createElement(fe.Fragment,null,fe.createElement(S,{rootCls:w,cssVar:O,component:d}),T):T},O==null?void 0:O.key]};return y}function u(d,g,m){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(d)?d:[d,d],x=J(p,1),b=x[0],C=p.join("-"),S=e.layer||{name:"antd"};return function(y){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y,w=r(),R=w.theme,O=w.realToken,T=w.hashId,E=w.token,j=w.cssVar,L=o(),$=L.rootPrefixCls,_=L.iconPrefixCls,z=n(),H=j?"css":"js",K=Bc(function(){var P=new Set;return j&&Object.keys(v.unitless||{}).forEach(function(D){P.add(Pn(D,j.prefix)),P.add(Pn(D,Fo(b,j.prefix)))}),mc(H,P)},[H,b,j==null?void 0:j.prefix]),M=Rc(H),W=M.max,X=M.min,I={theme:R,token:E,hashId:T,nonce:function(){return z.nonce},clientOnly:v.clientOnly,layer:S,order:v.order||-999};typeof a=="function"&&_r(Q(Q({},I),{},{clientOnly:!1,path:["Shared",$]}),function(){return a(E,{prefix:{rootPrefixCls:$,iconPrefixCls:_},csp:z})});var B=_r(Q(Q({},I),{},{path:[C,y,_]}),function(){if(v.injectStyle===!1)return[];var P=Tc(E),D=P.token,U=P.flush,q=Bo(b,O,m),ie=".".concat(y),ce=Io(b,O,q,{deprecatedTokens:v.deprecatedTokens});j&&q&&le(q)==="object"&&Object.keys(q).forEach(function(Fe){q[Fe]="var(".concat(Pn(Fe,Fo(b,j.prefix)),")")});var Ae=ro(D,{componentCls:ie,prefixCls:y,iconCls:".".concat(_),antCls:".".concat($),calc:K,max:W,min:X},j?q:ce),ke=g(Ae,{hashId:T,prefixCls:y,rootPrefixCls:$,iconPrefixCls:_});U(b,ce);var Ee=typeof i=="function"?i(Ae,y,k,v.resetFont):null;return[v.resetStyle===!1?null:Ee,ke]});return[B,T]}}function f(d,g,m){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=u(d,g,m,Q({resetStyle:!1,order:-998},v)),x=function(C){var S=C.prefixCls,y=C.rootCls,k=y===void 0?S:y;return p(S,k),null};return x}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const Dc="5.28.0";function xr(e){return e>=0&&e<=255}function Tn(e,t){const{r:n,g:r,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((n-i*(1-c))/c),f=Math.round((r-s*(1-c))/c),d=Math.round((o-l*(1-c))/c);if(xr(u)&&xr(f)&&xr(d))return new we({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new we({r:n,g:r,b:o,a:1}).toRgbString()}var _c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Da(e){const{override:t}=e,n=_c(e,["override"]),r=Object.assign({},t);Object.keys(sn).forEach(d=>{delete r[d]});const o=Object.assign(Object.assign({},n),r),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:Tn(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:Tn(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Tn(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:Tn(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)"}),r)}var Po=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _a={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},Nc={motionBase:!0,motionUnit:!0},Lc={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},Na=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Po(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Da(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,u=Po(l,["theme"]);let f=u;c&&(f=Na(Object.assign(Object.assign({},i),u),{override:u},c)),i[s]=f}),i};function nr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=fe.useContext(Ia),a=`${Dc}-${t||""}`,i=n||Ra,[s,l,c]=us(i,[sn,e],{salt:a,override:r,getComputedToken:Na,formatToken:Da,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:_a,ignore:Nc,preserve:Lc}});return[i,c,t?l:"",s,o]}const zc=(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}),jc=()=>({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"}}),Gc=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"}}}),Hc=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},La=e=>({[`.${e}`]:Object.assign(Object.assign({},jc()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:Uc}=Pc({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=lt(ut);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=nr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=lt(ut);return e??{}},getResetStyles:(e,t)=>{var n;const r=Gc(e);return[r,{"&":r},La((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:tr)]},getCommonStyle:Hc,getCompUnitless:()=>_a}),$c=(e,t)=>{const[n,r]=nr();return _r({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>La(e))},Vc=Object.assign({},A),{useId:Do}=Vc,Qc=()=>"",Yc=typeof Do>"u"?Qc:Do;function Wc(e,t,n){var r;const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Lr),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Lr.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=Yc();return ua(()=>{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:n==null?void 0:n.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!ji(c,f,!0)}))}function _o(e){return e instanceof HTMLElement||e instanceof SVGElement}function Xc(e){return e&&le(e)==="object"&&_o(e.nativeElement)?e.nativeElement:_o(e)?e:null}function qc(e){var t=Xc(e);if(t)return t;if(e instanceof fe.Component){var n;return(n=so.findDOMNode)===null||n===void 0?void 0:n.call(so,e)}return null}var Kc=["children"],za=A.createContext({});function Zc(e){var t=e.children,n=rn(e,Kc);return A.createElement(za.Provider,{value:n},t)}var Jc=(function(e){qn(n,e);var t=Kn(n);function n(){return nt(this,n),t.apply(this,arguments)}return tt(n,[{key:"render",value:function(){return this.props.children}}]),n})(A.Component);function el(e){var t=A.useReducer(function(s){return s+1},0),n=J(t,2),r=n[1],o=A.useRef(e),a=Qn(function(){return o.current}),i=Qn(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[a,i]}var pt="none",Rn="appear",In="enter",On="leave",No="none",Ye="prepare",Ot="start",Bt="active",oo="end",ja="prepared";function Lo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function tl(e,t){var n={animationend:Lo("Animation","AnimationEnd"),transitionend:Lo("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var nl=tl(At(),typeof window<"u"?window:{}),Ga={};if(At()){var rl=document.createElement("div");Ga=rl.style}var Bn={};function Ha(e){if(Bn[e])return Bn[e];var t=nl[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Ga)return Bn[e]=t[a],Bn[e]}return""}var Ua=Ha("animationend"),$a=Ha("transitionend"),Va=!!(Ua&&$a),zo=Ua||"animationend",jo=$a||"transitionend";function Go(e,t){if(!e)return null;if(le(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const ol=(function(e){var t=se();function n(o){o&&(o.removeEventListener(jo,e),o.removeEventListener(zo,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(jo,e),o.addEventListener(zo,e),t.current=o)}return A.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var Qa=At()?aa:ne,Ya=function(t){return+setTimeout(t,16)},Wa=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Ya=function(t){return window.requestAnimationFrame(t)},Wa=function(t){return window.cancelAnimationFrame(t)});var Ho=0,ao=new Map;function Xa(e){ao.delete(e)}var Ur=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ho+=1;var r=Ho;function o(a){if(a===0)Xa(r),t();else{var i=Ya(function(){o(a-1)});ao.set(r,i)}}return o(n),r};Ur.cancel=function(e){var t=ao.get(e);return Xa(e),Wa(t)};const al=(function(){var e=A.useRef(null);function t(){Ur.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Ur(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return A.useEffect(function(){return function(){t()}},[]),[n,t]});var il=[Ye,Ot,Bt,oo],sl=[Ye,ja],qa=!1,cl=!0;function Ka(e){return e===Bt||e===oo}const ll=(function(e,t,n){var r=Gr(No),o=J(r,2),a=o[0],i=o[1],s=al(),l=J(s,2),c=l[0],u=l[1];function f(){i(Ye,!0)}var d=t?sl:il;return Qa(function(){if(a!==No&&a!==oo){var g=d.indexOf(a),m=d[g+1],v=n(a);v===qa?i(m,!0):m&&c(function(p){function x(){p.isCanceled()||i(m,!0)}v===!0?x():Promise.resolve(v).then(x)})}},[e,a]),A.useEffect(function(){return function(){u()}},[]),[f,a]});function ul(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,d=r.onAppearPrepare,g=r.onEnterPrepare,m=r.onLeavePrepare,v=r.onAppearStart,p=r.onEnterStart,x=r.onLeaveStart,b=r.onAppearActive,C=r.onEnterActive,S=r.onLeaveActive,y=r.onAppearEnd,k=r.onEnterEnd,w=r.onLeaveEnd,R=r.onVisibleChanged,O=Gr(),T=J(O,2),E=T[0],j=T[1],L=el(pt),$=J(L,2),_=$[0],z=$[1],H=Gr(null),K=J(H,2),M=K[0],W=K[1],X=_(),I=se(!1),B=se(null);function P(){return n()}var D=se(!1);function U(){z(pt),W(null,!0)}var q=Qn(function(oe){var ae=_();if(ae!==pt){var pe=P();if(!(oe&&!oe.deadline&&oe.target!==pe)){var Te=D.current,ve;ae===Rn&&Te?ve=y==null?void 0:y(pe,oe):ae===In&&Te?ve=k==null?void 0:k(pe,oe):ae===On&&Te&&(ve=w==null?void 0:w(pe,oe)),Te&&ve!==!1&&U()}}}),ie=ol(q),ce=J(ie,1),Ae=ce[0],ke=function(ae){switch(ae){case Rn:return Z(Z(Z({},Ye,d),Ot,v),Bt,b);case In:return Z(Z(Z({},Ye,g),Ot,p),Bt,C);case On:return Z(Z(Z({},Ye,m),Ot,x),Bt,S);default:return{}}},Ee=A.useMemo(function(){return ke(X)},[X]),Fe=ll(X,!e,function(oe){if(oe===Ye){var ae=Ee[Ye];return ae?ae(P()):qa}if(Se in Ee){var pe;W(((pe=Ee[Se])===null||pe===void 0?void 0:pe.call(Ee,P(),null))||null)}return Se===Bt&&X!==pt&&(Ae(P()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){q({deadline:!0})},u))),Se===ja&&U(),cl}),_e=J(Fe,2),rt=_e[0],Se=_e[1],qe=Ka(Se);D.current=qe;var Ke=se(null);Qa(function(){if(!(I.current&&Ke.current===t)){j(t);var oe=I.current;I.current=!0;var ae;!oe&&t&&s&&(ae=Rn),oe&&t&&a&&(ae=In),(oe&&!t&&c||!oe&&f&&!t&&c)&&(ae=On);var pe=ke(ae);ae&&(e||pe[Ye])?(z(ae),rt()):z(pt),Ke.current=t}},[t]),ne(function(){(X===Rn&&!s||X===In&&!a||X===On&&!c)&&z(pt)},[s,a,c]),ne(function(){return function(){I.current=!1,clearTimeout(B.current)}},[]);var $e=A.useRef(!1);ne(function(){E&&($e.current=!0),E!==void 0&&X===pt&&(($e.current||E)&&(R==null||R(E)),$e.current=!0)},[E,X]);var Ve=M;return Ee[Ye]&&Se===Ot&&(Ve=Q({transition:"none"},Ve)),[X,Se,Ve,E??t]}function dl(e){var t=e;le(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=A.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,v=A.useContext(za),p=v.motion,x=n(o,p),b=se(),C=se();function S(){try{return b.current instanceof HTMLElement?b.current:qc(C.current)}catch{return null}}var y=ul(x,s,S,o),k=J(y,4),w=k[0],R=k[1],O=k[2],T=k[3],E=A.useRef(T);T&&(E.current=!0);var j=A.useCallback(function(K){b.current=K,Sc(a,K)},[a]),L,$=Q(Q({},m),{},{visible:s});if(!f)L=null;else if(w===pt)T?L=f(Q({},$),j):!c&&E.current&&g?L=f(Q(Q({},$),{},{className:g}),j):u||!c&&!g?L=f(Q(Q({},$),{},{style:{display:"none"}}),j):L=null;else{var _;R===Ye?_="prepare":Ka(R)?_="active":R===Ot&&(_="start");var z=Go(d,"".concat(w,"-").concat(_));L=f(Q(Q({},$),{},{className:et(Go(d,w),Z(Z({},z,z&&_),d,typeof d=="string")),style:O}),j)}if(A.isValidElement(L)&&wc(L)){var H=kc(L);H||(L=A.cloneElement(L,{ref:j}))}return A.createElement(Jc,{ref:C},L)});return r.displayName="CSSMotion",r}const fl=dl(Va);var $r="add",Vr="keep",Qr="remove",Cr="removed";function pl(e){var t;return e&&le(e)==="object"&&"key"in e?t=e:t={key:e},Q(Q({},t),{},{key:String(t.key)})}function Yr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(pl)}function gl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=Yr(e),i=Yr(t);a.forEach(function(c){for(var u=!1,f=r;f<o;f+=1){var d=i[f];if(d.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(g){return Q(Q({},g),{},{status:$r})})),r=f),n.push(Q(Q({},d),{},{status:Vr})),r+=1,u=!0;break}}u||n.push(Q(Q({},c),{},{status:Qr}))}),r<o&&(n=n.concat(i.slice(r).map(function(c){return Q(Q({},c),{},{status:$r})})));var s={};n.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){n=n.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==Qr}),n.forEach(function(u){u.key===c&&(u.status=Vr)})}),n}var hl=["component","children","onVisibleChanged","onAllRemoved"],ml=["status"],vl=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function yl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fl,n=(function(r){qn(a,r);var o=Kn(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)),Z(Pt(i),"state",{keyEntities:[]}),Z(Pt(i),"removeKey",function(u){i.setState(function(f){var d=f.keyEntities.map(function(g){return g.key!==u?g:Q(Q({},g),{},{status:Cr})});return{keyEntities:d}},function(){var f=i.state.keyEntities,d=f.filter(function(g){var m=g.status;return m!==Cr}).length;d===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return tt(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=rn(c,hl),m=u||A.Fragment,v={};return vl.forEach(function(p){v[p]=g[p],delete g[p]}),delete g.keys,A.createElement(m,g,l.map(function(p,x){var b=p.status,C=rn(p,ml),S=b===$r||b===Vr;return A.createElement(t,Be({},v,{key:C.key,visible:S,eventProps:C,onVisibleChanged:function(k){d==null||d(k,{key:C.key}),k||s.removeKey(C.key)}}),function(y,k){return f(Q(Q({},y),{},{index:x}),k)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=Yr(c),d=gl(u,f);return{keyEntities:d.filter(function(g){var m=u.find(function(v){var p=v.key;return g.key===p});return!(m&&m.status===Cr&&g.status===Qr)})}}}]),a})(A.Component);return Z(n,"defaultProps",{component:"div"}),n}const Al=yl(Va),Uo=A.createContext(!0);function bl(e){const t=A.useContext(Uo),{children:n}=e,[,r]=nr(),{motion:o}=r,a=A.useRef(!1);return a.current||(a.current=t!==o),a.current?A.createElement(Uo.Provider,{value:o},A.createElement(Zc,{motion:o},n)):n}const xl=()=>null;var Cl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const El=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Yn,Za,Ja,ei;function jn(){return Yn||zr}function Sl(){return Za||tr}function wl(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const kl=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Yn=t),n!==void 0&&(Za=n),"holderRender"in e&&(ei=o),r&&(wl(r)?lc(jn(),r):Ja=r)},Fl=()=>({getPrefixCls:(e,t)=>t||(e?`${jn()}-${e}`:jn()),getIconPrefixCls:Sl,getRootPrefixCls:()=>Yn||jn(),getTheme:()=>Ja,holderRender:ei}),Tl=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:d,dropdownMatchSelectWidth:g,popupMatchSelectWidth:m,popupOverflow:v,legacyLocale:p,parentContext:x,iconPrefixCls:b,theme:C,componentDisabled:S,segmented:y,statistic:k,spin:w,calendar:R,carousel:O,cascader:T,collapse:E,typography:j,checkbox:L,descriptions:$,divider:_,drawer:z,skeleton:H,steps:K,image:M,layout:W,list:X,mentions:I,modal:B,progress:P,result:D,slider:U,breadcrumb:q,menu:ie,pagination:ce,input:Ae,textArea:ke,empty:Ee,badge:Fe,radio:_e,rate:rt,switch:Se,transfer:qe,avatar:Ke,message:$e,tag:Ve,table:oe,card:ae,tabs:pe,timeline:Te,timePicker:ve,upload:dt,notification:gn,tree:hn,colorPicker:Ht,datePicker:Ft,rangePicker:mn,flex:vn,wave:yn,dropdown:An,warning:ir,tour:Tt,tooltip:Ut,popover:bn,popconfirm:sr,floatButton:ot,floatButtonGroup:xn,variant:xt,inputNumber:Cn,treeSelect:En}=e,$t=A.useCallback((ue,re)=>{const{prefixCls:Ne}=e;if(re)return re;const Le=Ne||x.getPrefixCls("");return ue?`${Le}-${ue}`:Le},[x.getPrefixCls,e.prefixCls]),Ct=b||x.iconPrefixCls||tr,Et=n||x.csp;$c(Ct,Et);const Vt=Wc(C,x.theme,{prefixCls:$t("")}),Qt={csp:Et,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||p,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:m??g,popupOverflow:v,getPrefixCls:$t,iconPrefixCls:Ct,theme:Vt,segmented:y,statistic:k,spin:w,calendar:R,carousel:O,cascader:T,collapse:E,typography:j,checkbox:L,descriptions:$,divider:_,drawer:z,skeleton:H,steps:K,image:M,input:Ae,textArea:ke,layout:W,list:X,mentions:I,modal:B,progress:P,result:D,slider:U,breadcrumb:q,menu:ie,pagination:ce,empty:Ee,badge:Fe,radio:_e,rate:rt,switch:Se,transfer:qe,avatar:Ke,message:$e,tag:Ve,table:oe,card:ae,tabs:pe,timeline:Te,timePicker:ve,upload:dt,notification:gn,tree:hn,colorPicker:Ht,datePicker:Ft,rangePicker:mn,flex:vn,wave:yn,dropdown:An,warning:ir,tour:Tt,tooltip:Ut,popover:bn,popconfirm:sr,floatButton:ot,floatButtonGroup:xn,variant:xt,inputNumber:Cn,treeSelect:En},at=Object.assign({},x);Object.keys(Qt).forEach(ue=>{Qt[ue]!==void 0&&(at[ue]=Qt[ue])}),El.forEach(ue=>{const re=e[ue];re&&(at[ue]=re)}),typeof r<"u"&&(at.button=Object.assign({autoInsertSpace:r},at.button));const it=ua(()=>at,at,(ue,re)=>{const Ne=Object.keys(ue),Le=Object.keys(re);return Ne.length!==Le.length||Ne.some(Rt=>ue[Rt]!==re[Rt])}),{layer:Sn}=A.useContext(fn),cr=A.useMemo(()=>({prefixCls:Ct,csp:Et,layer:Sn?"antd":void 0}),[Ct,Et,Sn]);let he=A.createElement(A.Fragment,null,A.createElement(xl,{dropdownMatchSelectWidth:g}),t);const ft=A.useMemo(()=>{var ue,re,Ne,Le;return Us(((ue=er.Form)===null||ue===void 0?void 0:ue.defaultValidateMessages)||{},((Ne=(re=it.locale)===null||re===void 0?void 0:re.Form)===null||Ne===void 0?void 0:Ne.defaultValidateMessages)||{},((Le=it.form)===null||Le===void 0?void 0:Le.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[it,i==null?void 0:i.validateMessages]);Object.keys(ft).length>0&&(he=A.createElement(Vs.Provider,{value:ft},he)),s&&(he=A.createElement(Ws,{locale:s,_ANT_MARK__:Ys},he)),he=A.createElement(Ni.Provider,{value:cr},he),l&&(he=A.createElement(dc,{size:l},he)),he=A.createElement(bl,null,he);const lr=A.useMemo(()=>{const ue=Vt||{},{algorithm:re,token:Ne,components:Le,cssVar:Rt}=ue,wn=Cl(ue,["algorithm","token","components","cssVar"]),Yt=re&&(!Array.isArray(re)||re.length>0)?Br(re):Ra,Wt={};Object.entries(Le||{}).forEach(([ur,dr])=>{const ze=Object.assign({},dr);"algorithm"in ze&&(ze.algorithm===!0?ze.theme=Yt:(Array.isArray(ze.algorithm)||typeof ze.algorithm=="function")&&(ze.theme=Br(ze.algorithm)),delete ze.algorithm),Wt[ur]=ze});const Xt=Object.assign(Object.assign({},sn),Ne);return Object.assign(Object.assign({},wn),{theme:Yt,token:Xt,components:Wt,override:Object.assign({override:Xt},Wt),cssVar:Rt})},[Vt]);return C&&(he=A.createElement(Ia.Provider,{value:lr},he)),it.warning&&(he=A.createElement($s.Provider,{value:it.warning},he)),S!==void 0&&(he=A.createElement(uc,{disabled:S},he)),A.createElement(ut.Provider,{value:it},he)},Gt=e=>{const t=A.useContext(ut),n=A.useContext(Fa);return A.createElement(Tl,Object.assign({parentContext:t,legacyLocale:n},e))};Gt.ConfigContext=ut;Gt.SizeContext=cn;Gt.config=kl;Gt.useConfig=fc;Object.defineProperty(Gt,"SizeContext",{get:()=>cn});var pn=Q({},vi),Rl=pn.version,Er=pn.render,Il=pn.unmountComponentAtNode,rr;try{var Ol=Number((Rl||"").split(".")[0]);Ol>=18&&(rr=pn.createRoot)}catch{}function $o(e){var t=pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&le(t)==="object"&&(t.usingClientEntryPoint=e)}var Wn="__rc_react_root__";function Bl(e,t){$o(!0);var n=t[Wn]||rr(t);$o(!1),n.render(e),t[Wn]=n}function Ml(e,t){Er==null||Er(e,t)}function Pl(e,t){if(rr){Bl(e,t);return}Ml(e,t)}function Dl(e){return Wr.apply(this,arguments)}function Wr(){return Wr=la($n().mark(function e(t){return $n().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Wn])===null||o===void 0||o.unmount(),delete t[Wn]}));case 1:case"end":return r.stop()}},e)})),Wr.apply(this,arguments)}function _l(e){Il(e)}function Nl(e){return Xr.apply(this,arguments)}function Xr(){return Xr=la($n().mark(function e(t){return $n().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(rr===void 0){r.next=2;break}return r.abrupt("return",Dl(t));case 2:_l(t);case 3:case"end":return r.stop()}},e)})),Xr.apply(this,arguments)}const Ll=(e,t)=>(Pl(e,t),()=>Nl(t));let zl=Ll;function jl(e){return zl}var Gl={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"},Hl=function(t,n){return A.createElement(bt,Be({},t,{ref:n,icon:Gl}))},Ul=A.forwardRef(Hl),$l={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"},Vl=function(t,n){return A.createElement(bt,Be({},t,{ref:n,icon:$l}))},Ql=A.forwardRef(Vl),Yl={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"},Wl=function(t,n){return A.createElement(bt,Be({},t,{ref:n,icon:Yl}))},ti=A.forwardRef(Wl),Xl={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"},ql=function(t,n){return A.createElement(bt,Be({},t,{ref:n,icon:Xl}))},Kl=A.forwardRef(ql),Zl={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"},Jl=function(t,n){return A.createElement(bt,Be({},t,{ref:n,icon:Zl}))},eu=A.forwardRef(Jl),tu={ENTER:13},nu=`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`,ru=`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`,ou="".concat(nu," ").concat(ru).split(/[\s\n]+/),au="aria-",iu="data-";function Vo(e,t){return e.indexOf(t)===0}function su(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Q({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Vo(o,au))||n.data&&Vo(o,iu)||n.attr&&ou.includes(o))&&(r[o]=e[o])}),r}var ni=A.forwardRef(function(e,t){var n=e.prefixCls,r=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,v=e.props,p=e.onClick,x=e.onNoticeClose,b=e.times,C=e.hovering,S=A.useState(!1),y=J(S,2),k=y[0],w=y[1],R=A.useState(0),O=J(R,2),T=O[0],E=O[1],j=A.useState(0),L=J(j,2),$=L[0],_=L[1],z=C||k,H=i>0&&s,K=function(){x(u)},M=function(D){(D.key==="Enter"||D.code==="Enter"||D.keyCode===tu.ENTER)&&K()};A.useEffect(function(){if(!z&&i>0){var P=Date.now()-$,D=setTimeout(function(){K()},i*1e3-$);return function(){c&&clearTimeout(D),_(Date.now()-P)}}},[i,z,b]),A.useEffect(function(){if(!z&&H&&(c||$===0)){var P=performance.now(),D,U=function q(){cancelAnimationFrame(D),D=requestAnimationFrame(function(ie){var ce=ie+$-P,Ae=Math.min(ce/(i*1e3),1);E(Ae*100),Ae<1&&q()})};return U(),function(){c&&cancelAnimationFrame(D)}}},[i,$,z,H,b]);var W=A.useMemo(function(){return le(d)==="object"&&d!==null?d:d?{closeIcon:m}:{}},[d,m]),X=su(W,!0),I=100-(!T||T<0?0:T>100?100:T),B="".concat(n,"-notice");return A.createElement("div",Be({},v,{ref:t,className:et(B,o,Z({},"".concat(B,"-closable"),d)),style:r,onMouseEnter:function(D){var U;w(!0),v==null||(U=v.onMouseEnter)===null||U===void 0||U.call(v,D)},onMouseLeave:function(D){var U;w(!1),v==null||(U=v.onMouseLeave)===null||U===void 0||U.call(v,D)},onClick:p}),A.createElement("div",{className:"".concat(B,"-content")},f),d&&A.createElement("a",Be({tabIndex:0,className:"".concat(B,"-close"),onKeyDown:M,"aria-label":"Close"},X,{onClick:function(D){D.preventDefault(),D.stopPropagation(),K()}}),W.closeIcon),H&&A.createElement("progress",{className:"".concat(B,"-progress"),max:"100",value:I},I+"%"))}),ri=fe.createContext({}),cu=function(t){var n=t.children,r=t.classNames;return fe.createElement(ri.Provider,{value:{classNames:r}},n)},Qo=8,Yo=3,Wo=16,lu=function(t){var n={offset:Qo,threshold:Yo,gap:Wo};if(t&&le(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:Qo,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:Yo,n.gap=(a=t.gap)!==null&&a!==void 0?a:Wo}return[!!t,n]},uu=["className","style","classNames","styles"],du=function(t){var n=t.configList,r=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(ri),d=f.classNames,g=se({}),m=N(null),v=J(m,2),p=v[0],x=v[1],b=N([]),C=J(b,2),S=C[0],y=C[1],k=n.map(function(z){return{config:z,key:String(z.key)}}),w=lu(u),R=J(w,2),O=R[0],T=R[1],E=T.offset,j=T.threshold,L=T.gap,$=O&&(S.length>0||k.length<=j),_=typeof s=="function"?s(r):s;return ne(function(){O&&S.length>1&&y(function(z){return z.filter(function(H){return k.some(function(K){var M=K.key;return H===M})})})},[S,k,O]),ne(function(){var z;if(O&&g.current[(z=k[k.length-1])===null||z===void 0?void 0:z.key]){var H;x(g.current[(H=k[k.length-1])===null||H===void 0?void 0:H.key])}},[k,O]),fe.createElement(Al,Be({key:r,className:et(o,"".concat(o,"-").concat(r),d==null?void 0:d.list,a,Z(Z({},"".concat(o,"-stack"),!!O),"".concat(o,"-stack-expanded"),$)),style:i,keys:k,motionAppear:!0},_,{onAllRemoved:function(){l(r)}}),function(z,H){var K=z.config,M=z.className,W=z.style,X=z.index,I=K,B=I.key,P=I.times,D=String(B),U=K,q=U.className,ie=U.style,ce=U.classNames,Ae=U.styles,ke=rn(U,uu),Ee=k.findIndex(function(Te){return Te.key===D}),Fe={};if(O){var _e=k.length-1-(Ee>-1?Ee:X-1),rt=r==="top"||r==="bottom"?"-50%":"0";if(_e>0){var Se,qe,Ke;Fe.height=$?(Se=g.current[D])===null||Se===void 0?void 0:Se.offsetHeight:p==null?void 0:p.offsetHeight;for(var $e=0,Ve=0;Ve<_e;Ve++){var oe;$e+=((oe=g.current[k[k.length-1-Ve].key])===null||oe===void 0?void 0:oe.offsetHeight)+L}var ae=($?$e:_e*E)*(r.startsWith("top")?1:-1),pe=!$&&p!==null&&p!==void 0&&p.offsetWidth&&(qe=g.current[D])!==null&&qe!==void 0&&qe.offsetWidth?((p==null?void 0:p.offsetWidth)-E*2*(_e<3?_e:3))/((Ke=g.current[D])===null||Ke===void 0?void 0:Ke.offsetWidth):1;Fe.transform="translate3d(".concat(rt,", ").concat(ae,"px, 0) scaleX(").concat(pe,")")}else Fe.transform="translate3d(".concat(rt,", 0, 0)")}return fe.createElement("div",{ref:H,className:et("".concat(o,"-notice-wrapper"),M,ce==null?void 0:ce.wrapper),style:Q(Q(Q({},W),Fe),Ae==null?void 0:Ae.wrapper),onMouseEnter:function(){return y(function(ve){return ve.includes(D)?ve:[].concat(Oe(ve),[D])})},onMouseLeave:function(){return y(function(ve){return ve.filter(function(dt){return dt!==D})})}},fe.createElement(ni,Be({},ke,{ref:function(ve){Ee>-1?g.current[D]=ve:delete g.current[D]},prefixCls:o,classNames:ce,styles:Ae,className:et(q,d==null?void 0:d.notice),style:ie,times:P,key:B,eventKey:B,onNoticeClose:c,hovering:O&&S.length>0})))})},fu=A.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,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=A.useState([]),g=J(d,2),m=g[0],v=g[1],p=function(O){var T,E=m.find(function(j){return j.key===O});E==null||(T=E.onClose)===null||T===void 0||T.call(E),v(function(j){return j.filter(function(L){return L.key!==O})})};A.useImperativeHandle(t,function(){return{open:function(O){v(function(T){var E=Oe(T),j=E.findIndex(function(_){return _.key===O.key}),L=Q({},O);if(j>=0){var $;L.times=((($=T[j])===null||$===void 0?void 0:$.times)||0)+1,E[j]=L}else L.times=0,E.push(L);return i>0&&E.length>i&&(E=E.slice(-i)),E})},close:function(O){p(O)},destroy:function(){v([])}}});var x=A.useState({}),b=J(x,2),C=b[0],S=b[1];A.useEffect(function(){var R={};m.forEach(function(O){var T=O.placement,E=T===void 0?"topRight":T;E&&(R[E]=R[E]||[],R[E].push(O))}),Object.keys(C).forEach(function(O){R[O]=R[O]||[]}),S(R)},[m]);var y=function(O){S(function(T){var E=Q({},T),j=E[O]||[];return j.length||delete E[O],E})},k=A.useRef(!1);if(A.useEffect(function(){Object.keys(C).length>0?k.current=!0:k.current&&(c==null||c(),k.current=!1)},[C]),!o)return null;var w=Object.keys(C);return ia(A.createElement(A.Fragment,null,w.map(function(R){var O=C[R],T=A.createElement(du,{key:R,configList:O,placement:R,prefixCls:r,className:s==null?void 0:s(R),style:l==null?void 0:l(R),motion:a,onNoticeClose:p,onAllNoticeRemoved:y,stack:u});return f?f(T,{prefixCls:r,key:R}):T})),o)}),pu=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],gu=function(){return document.body},Xo=0;function hu(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function mu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?gu:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=rn(e,pu),d=A.useState(),g=J(d,2),m=g[0],v=g[1],p=A.useRef(),x=A.createElement(fu,{container:m,ref:p,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=A.useState([]),C=J(b,2),S=C[0],y=C[1],k=Qn(function(R){var O=hu(f,R);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(Xo),Xo+=1),y(function(T){return[].concat(Oe(T),[{type:"open",config:O}])})}),w=A.useMemo(function(){return{open:k,close:function(O){y(function(T){return[].concat(Oe(T),[{type:"close",key:O}])})},destroy:function(){y(function(O){return[].concat(Oe(O),[{type:"destroy"}])})}}},[]);return A.useEffect(function(){v(n())}),A.useEffect(function(){if(p.current&&S.length){S.forEach(function(T){switch(T.type){case"open":p.current.open(T.config);break;case"close":p.current.close(T.key);break;case"destroy":p.current.destroy();break}});var R,O;y(function(T){return(R!==T||!O)&&(R=T,O=T.filter(function(E){return!S.includes(E)})),O})}},[S]),[w,x]}const oi=e=>{const[,,,,t]=nr();return t?`${e}-css-var`:""};var vu={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"},yu=function(t,n){return A.createElement(bt,Be({},t,{ref:n,icon:vu}))},or=A.forwardRef(yu);const Au=100,bu=10,xu=Au*bu,Cu=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:g,borderRadiusLG:m,zIndexPopup:v,contentPadding:p,contentBg:x}=e,b=`${t}-notice`,C=new So("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),S=new So("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),y={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:d,fontSize:c},[`${b}-content`]:{display:"inline-block",padding:p,background:x,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
|
|
68
|
+
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},zc(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
69
|
+
${t}-move-up-appear,
|
|
70
|
+
${t}-move-up-enter
|
|
71
|
+
`]:{animationName:C,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:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},y)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},y),{padding:0,textAlign:"start"})}]},Eu=e=>({zIndexPopup:e.zIndexPopupBase+xu+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),ai=Uc("Message",e=>{const t=ro(e,{height:150});return Cu(t)},Eu);var Su=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wu={info:A.createElement(Kl,null),success:A.createElement(Ul,null),error:A.createElement(Ql,null),warning:A.createElement(ti,null),loading:A.createElement(eu,null)},ii=({prefixCls:e,type:t,icon:n,children:r})=>A.createElement("div",{className:et(`${e}-custom-content`,`${e}-${t}`)},n||wu[t],A.createElement("span",null,r)),ku=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=Su(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=A.useContext(ut),l=t||s("message"),c=oi(l),[u,f,d]=ai(l,c);return u(A.createElement(ni,Object.assign({},i,{prefixCls:l,className:et(n,f,`${l}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:A.createElement(ii,{prefixCls:l,type:r,icon:o},a)})))};function Fu(e,t){return{motionName:t??`${e}-move-up`}}function io(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var Tu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ru=8,Iu=3,Ou=({children:e,prefixCls:t})=>{const n=oi(t),[r,o,a]=ai(t,n);return r(A.createElement(cu,{classNames:{list:et(o,a,n)}},e))},Bu=(e,{prefixCls:t,key:n})=>A.createElement(Ou,{prefixCls:t,key:n},e),Mu=A.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=Iu,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:d,direction:g}=A.useContext(ut),m=r||u("message"),v=()=>({left:"50%",transform:"translateX(-50%)",top:n??Ru}),p=()=>et({[`${m}-rtl`]:s??g==="rtl"}),x=()=>Fu(m,l),b=A.createElement("span",{className:`${m}-close-x`},A.createElement(or,{className:`${m}-close-icon`})),[C,S]=mu({prefixCls:m,style:v,className:p,motion:x,closable:!1,closeIcon:b,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:Bu});return A.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:m,message:d})),S});let qo=0;function si(e){const t=A.useRef(null);return[A.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},o=l=>{if(!t.current){const k=()=>{};return k.then=()=>{},k}const{open:c,prefixCls:u,message:f}=t.current,d=`${u}-notice`,{content:g,icon:m,type:v,key:p,className:x,style:b,onClose:C}=l,S=Tu(l,["content","icon","type","key","className","style","onClose"]);let y=p;return y==null&&(qo+=1,y=`antd-message-${qo}`),io(k=>(c(Object.assign(Object.assign({},S),{key:y,content:A.createElement(ii,{prefixCls:u,type:v,icon:m},g),placement:"top",className:et(v&&`${d}-${v}`,x,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),onClose:()=>{C==null||C(),k()}})),()=>{r(y)}))},i={open:o,destroy:l=>{var c;l!==void 0?r(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,v;typeof f=="function"?v=f:(m=f,v=d);const p=Object.assign(Object.assign({onClose:v,duration:m},g),{type:l});return o(p)};i[l]=c}),i},[]),A.createElement(Mu,Object.assign({key:"message-holder"},e,{ref:t}))]}function Pu(e){return si(e)}let Ge=null,wt=e=>e(),ln=[],un={};function Ko(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=un,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const Du=fe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=lt(ut),a=un.prefixCls||o("message"),i=lt(zi),[s,l]=si(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return fe.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...f)=>(r(),s[u].apply(s,f))}),{instance:c,sync:r}}),l}),_u=fe.forwardRef((e,t)=>{const[n,r]=fe.useState(Ko),o=()=>{r(Ko)};fe.useEffect(o,[]);const a=Fl(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=fe.createElement(Du,{ref:t,sync:o,messageConfig:n});return fe.createElement(Gt,{prefixCls:i,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)}),ar=()=>{if(!Ge){const e=document.createDocumentFragment(),t={fragment:e};Ge=t,wt(()=>{jl()(fe.createElement(_u,{ref:r=>{const{instance:o,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=a,ar())})}}),e)});return}Ge.instance&&(ln.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{wt(()=>{const r=Ge.instance.open(Object.assign(Object.assign({},un),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":wt(()=>{Ge==null||Ge.instance.destroy(e.key)});break;default:wt(()=>{var r;const o=(r=Ge.instance)[t].apply(r,Oe(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),ln=[])};function Nu(e){un=Object.assign(Object.assign({},un),e),wt(()=>{var t;(t=Ge==null?void 0:Ge.sync)===null||t===void 0||t.call(Ge)})}function Lu(e){const t=io(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return ln.push(o),()=>{r?wt(()=>{r()}):o.skipped=!0}});return ar(),t}function zu(e,t){const n=io(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return ln.push(a),()=>{o?wt(()=>{o()}):a.skipped=!0}});return ar(),n}const ju=e=>{ln.push({type:"destroy",key:e}),ar()},Gu=["success","info","warning","error","loading"],Hu={open:Lu,destroy:ju,config:Nu,useMessage:Pu,_InternalPanelDoNotUseOrYouWillBeFired:ku},Gn=Hu;Gu.forEach(e=>{Gn[e]=(...t)=>zu(e,t)});var Hn={exports:{}};/*!
|
|
75
|
+
* clipboard.js v2.0.11
|
|
76
|
+
* https://clipboardjs.com/
|
|
77
|
+
*
|
|
78
|
+
* Licensed MIT © Zeno Rocha
|
|
79
|
+
*/var Uu=Hn.exports,Zo;function $u(){return Zo||(Zo=1,(function(e,t){(function(r,o){e.exports=o()})(Uu,function(){return(function(){var n={686:(function(a,i,s){s.d(i,{default:function(){return X}});var l=s(279),c=s.n(l),u=s(370),f=s.n(u),d=s(817),g=s.n(d);function m(I){try{return document.execCommand(I)}catch{return!1}}var v=function(B){var P=g()(B);return m("cut"),P},p=v;function x(I){var B=document.documentElement.getAttribute("dir")==="rtl",P=document.createElement("textarea");P.style.fontSize="12pt",P.style.border="0",P.style.padding="0",P.style.margin="0",P.style.position="absolute",P.style[B?"right":"left"]="-9999px";var D=window.pageYOffset||document.documentElement.scrollTop;return P.style.top="".concat(D,"px"),P.setAttribute("readonly",""),P.value=I,P}var b=function(B,P){var D=x(B);P.container.appendChild(D);var U=g()(D);return m("copy"),D.remove(),U},C=function(B){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},D="";return typeof B=="string"?D=b(B,P):B instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(B==null?void 0:B.type)?D=b(B.value,P):(D=g()(B),m("copy")),D},S=C;function y(I){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(P){return typeof P}:y=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},y(I)}var k=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=B.action,D=P===void 0?"copy":P,U=B.container,q=B.target,ie=B.text;if(D!=="copy"&&D!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(q!==void 0)if(q&&y(q)==="object"&&q.nodeType===1){if(D==="copy"&&q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(D==="cut"&&(q.hasAttribute("readonly")||q.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(ie)return S(ie,{container:U});if(q)return D==="cut"?p(q):S(q,{container:U})},w=k;function R(I){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?R=function(P){return typeof P}:R=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},R(I)}function O(I,B){if(!(I instanceof B))throw new TypeError("Cannot call a class as a function")}function T(I,B){for(var P=0;P<B.length;P++){var D=B[P];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(I,D.key,D)}}function E(I,B,P){return B&&T(I.prototype,B),P&&T(I,P),I}function j(I,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(B&&B.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),B&&L(I,B)}function L(I,B){return L=Object.setPrototypeOf||function(D,U){return D.__proto__=U,D},L(I,B)}function $(I){var B=H();return function(){var D=K(I),U;if(B){var q=K(this).constructor;U=Reflect.construct(D,arguments,q)}else U=D.apply(this,arguments);return _(this,U)}}function _(I,B){return B&&(R(B)==="object"||typeof B=="function")?B:z(I)}function z(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function H(){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 K(I){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},K(I)}function M(I,B){var P="data-clipboard-".concat(I);if(B.hasAttribute(P))return B.getAttribute(P)}var W=(function(I){j(P,I);var B=$(P);function P(D,U){var q;return O(this,P),q=B.call(this),q.resolveOptions(U),q.listenClick(D),q}return E(P,[{key:"resolveOptions",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof U.action=="function"?U.action:this.defaultAction,this.target=typeof U.target=="function"?U.target:this.defaultTarget,this.text=typeof U.text=="function"?U.text:this.defaultText,this.container=R(U.container)==="object"?U.container:document.body}},{key:"listenClick",value:function(U){var q=this;this.listener=f()(U,"click",function(ie){return q.onClick(ie)})}},{key:"onClick",value:function(U){var q=U.delegateTarget||U.currentTarget,ie=this.action(q)||"copy",ce=w({action:ie,container:this.container,target:this.target(q),text:this.text(q)});this.emit(ce?"success":"error",{action:ie,text:ce,trigger:q,clearSelection:function(){q&&q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(U){return M("action",U)}},{key:"defaultTarget",value:function(U){var q=M("target",U);if(q)return document.querySelector(q)}},{key:"defaultText",value:function(U){return M("text",U)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(U){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(U,q)}},{key:"cut",value:function(U){return p(U)}},{key:"isSupported",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],q=typeof U=="string"?[U]:U,ie=!!document.queryCommandSupported;return q.forEach(function(ce){ie=ie&&!!document.queryCommandSupported(ce)}),ie}}]),P})(c()),X=W}),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,v,p){var x=f.apply(this,arguments);return d.addEventListener(m,x,p),{destroy:function(){d.removeEventListener(m,x,p)}}}function u(d,g,m,v,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(x){return c(x,g,m,v,p)}))}function f(d,g,m,v){return function(p){p.delegateTarget=l(p.target,g),p.delegateTarget&&v.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,v,p){if(!m&&!v&&!p)throw new Error("Missing required arguments");if(!l.string(v))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,v,p);if(l.nodeList(m))return d(m,v,p);if(l.string(m))return g(m,v,p);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(m,v,p){return m.addEventListener(v,p),{destroy:function(){m.removeEventListener(v,p)}}}function d(m,v,p){return Array.prototype.forEach.call(m,function(x){x.addEventListener(v,p)}),{destroy:function(){Array.prototype.forEach.call(m,function(x){x.removeEventListener(v,p)})}}}function g(m,v,p){return c(document.body,m,v,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})},r={};function o(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[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})})(Hn)),Hn.exports}var Vu=$u();const Qu=Li(Vu),Ef=(e,t)=>{let n=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");n=n.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),n=n.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",n);const r=new Qu(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{Gn.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",o=>{Gn.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(o){r.destroy(),Gn.error("\u590D\u5236\u5931\u8D25: "+o,2)}};function Sf(e){const t=[];for(const n of e){if(n.query){const r=n.query.queryId||n.query.id||n.queryId||n.id||po(32);t.push({istype:"user",content:n.query.content,time:n.query.gmtCreate,queryId:r,clientSideId:r+"-user",...n.query})}if(n.reply){const r=n.reply.queryId||n.reply.id||n.queryId||n.id||po(32);t.push({istype:"ai",content:n.reply.content,isDefault:n.reply.isDefault,time:n.time||n.gmtCreate||Date.now(),queryId:r,clientSideId:r+"-ai",...n.reply})}}return t}function Yu(e,t=300,n=!1){let r=null,o;return function(...a){const i=this;if(r!==null&&clearTimeout(r),n){const s=r===null;r=setTimeout(()=>{r=null},t),s&&(o=e.apply(i,a))}else r=setTimeout(()=>{e.apply(i,a)},t);return o}}const Wu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAF1JREFUeAHdkdsNgCAMRa/GBdzMERyBTR1BR9AJ6uUD0pDQBPiAcJLz01faFBgaEXH0RC1sfuht1axopP+ACG89/L2JAR27fG1ug48uyoCO7SjYapIvvFZyg43D8PzLiUYZ4mKVgQAAAABJRU5ErkJggg==",Xu="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=",qu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAOxJREFUeAGtUwsRgzAMbadgU7BKqIROwXCABSTMwXAwC6AAHGxTAA5gClje7sH1oHxuR+4epM3ra5O0Su1lXdc5QSIwC5wjOdE4YAWVIMV/QWDgYEM/ANWUfoOdZnav6EPkNgkSEIgDAjFjDXkG83pEMnQLQS44C3Cat+AquAharXWrlowpPVlYSz9RW03IBRZ6YwhlIe5hRuPDo/fWjsarAi/Bncd34j8EmVozdqO/E6hDiaOjZZyzoRb/qu+1sPHz9ziWsdpvY58CrmYp7Tkx/1CbanyEg4U51wzq7o+rPHkP0YbHZFgPp/ayL/u4IrniEzDSAAAAAElFTkSuQmCC",Ku="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAhJJREFUeAGtU1tu00AUvXfGQUhpKrv0v2YFhBUQVpCwgoQV4Dgg8ZdfJIjrHTTeQVgBYQW4K6j5QuJll9RShT0z3OvESFA7UqXOj2fu49zjM2cA7mhhvbG91FZSDQol4+vQSfY1db2vfSGFu1kcr24AHfrpBaBBA3iijZ7mwYOwCaTnf58AyjPaZmAgkxoeZ6GTCU4evPw2MAj2r8WRyyACcNTGxqAcc81m4TjUkxVCVbVWlSytDCXYXf+HJ1AMOdQGhNpcCiHGxCyjY7+8J9ccrxjloRNT6/OKidafueDAT+ecu+99cVmTLXOKCXxiQJ9T6wQRptdvtnpi09Tuq7QvNHwgWgkV9HdhZgBawNP8LQ3+b4kmIC4k1TPQ8FEqcEgPOuqIUnETSDsjjxhJ+MQAdWxrD0gLBQ+b7NHIqLP7DW6uY3zF/JUdsJt6GoGoKSF94lLAvAYk8U9pm9zu12bpmCYsKcmAbhU05hwQH2mQk3xxGLUCsWPJbMNdcMR22ATOkm9QFZCxLj0/JVfDGeWWZEbXGBXlwfHyLxBRd0nIC21gKhCGNP1yExw1urs3/blCgSfKQES1c6Pg2VXorCuNSqt0aUqSB05I9n/P2LBnKaMjrq2YyG1t9USs0oq1pGmzNOUzM2sDQcS1QDyl2hd0zIoOxP9oVNGepSN+iFfvnDXsWfZrkuI3DOjlr2pb3Nn6A/a373vIafm+AAAAAElFTkSuQmCC",Zu=""+new URL("Empty2.png",import.meta.url).href,Ju="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:ed,Paragraph:td}=Xn,nd=({confirmLoading:e,visible:t,onConfirm:n,onCancel:r,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?"})=>h(dn,{open:t,title:G("div",{style:{display:"flex"},children:[h("img",{src:Ju,width:24,style:{marginRight:"12px"}}),h("div",{children:a})]}),onOk:n,onCancel:r,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",centered:!0,maskClosable:!1,okButtonProps:{style:{background:"#4E6EF2"}},confirmLoading:e,width:400,closable:!1,children:G("div",{style:{marginLeft:"35px"},children:[h(td,{style:{margin:0},children:i}),h(ed,{type:"secondary"})]})}),{TextArea:rd}=De,ci=({visible:e,initialValues:t,title:n,confirmLoading:r,graphDbType:o,onCancel:a,onSubmit:i,onTest:s,fromType:l})=>{const[c]=Re.useForm(),[u,f]=N(!1),[d,g]=N(),[m,v]=N(),[p,x]=N(!1);ne(()=>{l&&e&&t&&(c.setFieldsValue({...t}),g(t==null?void 0:t.desc))},[e,t]);const b=async()=>{if(!s){Ie.info("\u672A\u63D0\u4F9B\u8FDE\u63A5\u6D4B\u8BD5\u51FD\u6570");return}try{const C=await c.validateFields(["dbType","host","port","username","password"]);f(!0),await s(C)?Ie.success("\u8FDE\u63A5\u6210\u529F"):Ie.error("\u8FDE\u63A5\u5931\u8D25")}catch(C){C!=null&&C.message&&Ie.error(C.message)}finally{f(!1)}};return h(dn,{open:e,title:n||(t?"\u7F16\u8F91\u56FE\u8C31\u5E93":"\u65B0\u5EFA\u56FE\u6570\u636E\u5E93\u8FDE\u63A5"),onCancel:a,footer:[h(be,{onClick:a,children:"\u53D6\u6D88"},"cancel"),h(be,{onClick:async()=>{try{const C=await c.validateFields();if(l==="edit"){if(!(t!=null&&t.id))return Ie.warning("\u6CA1\u6709\u56FE\u8C31\u5E93id");const S=l==="edit"?{name:C.name,desc:C.desc,configId:t.id}:{...C,abstractModelName:t.abstractModelName};p&&(S.password=C.password),i(S);return}i(C)}catch{}},style:{background:"#4E6EF2",color:"#fff",border:"none"},loading:r,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),v(void 0),x(!1)},children:h("div",{style:{width:"100%",height:"100%",padding:"0 8px 0 0 ",overflowY:"auto"},children:G(Re,{form:c,layout:"vertical",initialValues:{dbType:"MySQL",...t},style:{marginTop:"20px"},children:[h(Re.Item,{label:"\u56FE\u8C31\u5E93\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u8C31\u5E93\u540D\u79F0"},{validator:async(C,S)=>{if(!S)return Promise.resolve();if(S.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(S))return Promise.reject(new Error("\u4EC5\u652F\u6301\u6C49\u5B57\u3001\u5B57\u6BCD\u3001\u6570\u5B57\u53CA\u7B26\u53F7"))}catch{}return Promise.resolve()}}],children:h(De,{placeholder:"\u8BF7\u8F93\u5165\u56FE\u8C31\u5E93\u540D\u79F0",maxLength:100,showCount:!0})}),h(Re.Item,{label:"\u63CF\u8FF0",name:"desc",rules:[{max:150,message:"\u6700\u957F 150 \u4E2A\u5B57\u7B26"},{validator:async(C,S)=>{if(!S)return Promise.resolve();if(S.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(S))return Promise.reject(new Error("\u4EC5\u652F\u6301\u6C49\u5B57\u3001\u5B57\u6BCD\u3001\u6570\u5B57\u53CA\u7B26\u53F7"))}catch{}return Promise.resolve()}}],children:h("div",{style:{border:"1px solid #D9D9D9",borderRadius:4,height:120,background:"#fff",marginTop:"8px"},className:"countInside",children:h(rd,{placeholder:"\u8BF7\u8F93\u5165\u56FE\u8C31\u5E93\u63CF\u8FF0",rows:4,maxLength:150,showCount:!0,value:d,onChange:C=>{g(C.target.value)},style:{border:"none",resize:"none",outline:"none",boxShadow:"none"}})})}),G("div",{style:{marginTop:8},children:[G("div",{style:{marginBottom:6,fontWeight:700,fontSize:"14px",color:"#2a2a2a",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[h("div",{style:{display:"flex",flex:"noWrap",flexShrink:0},children:"\u76F4\u8FDE\u6570\u636E\u6E90\u4FE1\u606F"}),h("div",{style:{height:0,borderTop:"1px dashed #EBEBEB",width:"357px"}})]}),h(Re.Item,{label:"\u56FE\u6570\u636E\u5E93\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56FE\u6570\u636E\u5E93\u7C7B\u578B"}],children:h(qr,{options:o,placeholder:"\u8BF7\u9009\u62E9",disabled:l==="edit"})}),h(Re.Item,{label:"\u4E3B\u673A\u5730\u5740",name:"host",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E3B\u673A\u5730\u5740"},{max:100}],children:h(De,{placeholder:"\u8BF7\u8F93\u5165",maxLength:100,showCount:!0,disabled:l==="edit"})}),h(Re.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:h(De,{placeholder:"\u7AEF\u53E3",maxLength:5,showCount:!0,disabled:l==="edit"})}),G("div",{style:{width:"100%",display:"flex",justifyContent:"space-between"},children:[h(Re.Item,{label:"\u7528\u6237\u540D",name:"account",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"}],style:{flex:1},children:h(De,{placeholder:"\u8BF7\u8F93\u5165",disabled:l==="edit"})}),h("div",{style:{width:"20px"}}),h(Re.Item,{label:"\u5BC6\u7801",name:"password",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801"}],style:{flex:1},children:h(De.Password,{placeholder:"\u8BF7\u8F93\u5165",disabled:l==="edit"&&!p,value:m,onChange:C=>{v(C.target.value)},autoComplete:"new-password"})})]}),l==="edit"&&h(Re.Item,{children:h(be,{onClick:()=>{l==="edit"?p||(v(""),c.setFieldValue("password",""),x(!0)):b()},loading:u,type:"primary",style:{background:"#4E6EF2"},children:"\u4FEE\u6539\u5BC6\u7801"},"test")})]})]})})})};var od={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"},ad=function(t,n){return A.createElement(bt,Be({},t,{ref:n,icon:od}))},li=A.forwardRef(ad),id={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"},sd=function(t,n){return A.createElement(bt,Be({},t,{ref:n,icon:id}))},ui=A.forwardRef(sd);const cd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAUVJREFUeAGlU81Kw0AQntksNaCFPkLyBvUJzFEEJReh3upBqDffwFfw1h7ryeLFoB68WZ/AvoHbNwgeNEHNOFNI2ab5oXRgw+zMt1++2dlBKLEgvOq03STM95Rh/Kto9jIZmSIWi4HD3sBrIb6y6xVS5vN7Z38a3cR2UBUJNGJXDisi//FuiLLEl5itakXBcW/QZ6YD8TNEj4MBEo1tICH2iWCqgMwCB/D2NBmNlwrkoID44ByIbonJ7SUx/swFkwF6RSULFSdnlwQNJhjBLkuuAh6dXnS/fnaN+HutNHi+H0ZluEoCrfV720nOWXLMdT5AScfEFDQY30mnLt9I0GRbE+ianCHMYk0q5p6bjQn4BfrW1q/CrZUgs1AFznOibE2B47pRlqbXPEgf/FigxgyXNcs3K70N5Q88TH81rXMSN4qsifwHCCJ2+Y9JDmIAAAAASUVORK5CYII=",xe=Ti.create({baseURL:"",timeout:1e6});xe.interceptors.request.use(e=>e);xe.interceptors.response.use(e=>{var t,n;return(t=e==null?void 0:e.data)!=null&&t.success||Ie.error(((n=e==null?void 0:e.data)==null?void 0:n.errorMsg)||"\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),e},e=>{var t,n,r,o,a,i,s,l,c,u;if(e.message!=="canceled"){if((((n=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:n.errorCode)==="30013"||((o=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:o.errorCode)==="30023")&&(Ie.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),Ie.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"&&Ie.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 ld=async(e,t)=>{var n;try{const r=await xe.post(`${Ce()}/graph/graphdb/pageGraphDb`,e,{headers:{Authorization:t.token}});return console.log("api_getPageGraphDb",r),(n=r==null?void 0:r.data)==null?void 0:n.data}catch{}},ud=async(e,t)=>{var n;try{const r=await xe.post(`${Ce()}/graph/graphdb/pageAll`,e,{headers:{Authorization:t.token}});return console.log("api_getPageShareGraphDb",r),(n=r==null?void 0:r.data)==null?void 0:n.data}catch{}},dd=async(e,t)=>{var n;try{const r=await xe.post(`${Ce()}/graph/graphdb/addLinkConfig`,e,{headers:{Authorization:t.token}});return console.log("api_addLinkConfig",r),(n=r==null?void 0:r.data)==null?void 0:n.data}catch{}},fd=async e=>{var t;try{const n=await xe.get(`${Ce()}/graph/graphdb/type`,{headers:{Authorization:e.token}});return console.log("api_getPageGraphDb",n),(t=n==null?void 0:n.data)==null?void 0:t.data}catch{}},pd=async(e,t)=>{var n;try{const r=await xe.delete(`${Ce()}/graph/graphdb/${e.id}`,{headers:{Authorization:t.token}});return console.log("api_getPageGraphDb",r),(n=r==null?void 0:r.data)==null?void 0:n.data}catch{}},Jo=async(e,t)=>{var n;try{const r=await xe.post(`${Ce()}/graph/graphdb/editGraphSpace`,e,{headers:{Authorization:t.token}});return console.log("api_editGraphSpace",r),(n=r==null?void 0:r.data)==null?void 0:n.data}catch{}},gd=async(e,t)=>{var n;try{const r=await xe.post(`${Ce()}/graph/graphdb/updateDbConfig`,e,{headers:{Authorization:t.token}});return console.log("api_updateDbConfig",r),(n=r==null?void 0:r.data)==null?void 0:n.data}catch{}},hd=async(e,t)=>{var n;try{const r=await xe.post(`${Ce()}/graph/graphdb/graphList`,e,{headers:{Authorization:t.token}});return console.log("api_graphList",r),(n=r==null?void 0:r.data)==null?void 0:n.data}catch{}},md=async(e,t)=>{var n;try{const r=await xe.post(`${Ce()}/graph/graphdb/pageAssociatedGraphList`,e,{headers:{Authorization:t.token}});return console.log("api_pageAssociatedGraphList",r),(n=r==null?void 0:r.data)==null?void 0:n.data}catch{}},vd=async(e,t)=>{var n;try{const r=await xe.post(`${Ce()}/graph/graphdb/associate`,e,{headers:{Authorization:t.token}});return console.log("api_associateGraphdb",r),(n=r==null?void 0:r.data)==null?void 0:n.data}catch{}},yd=async(e,t)=>{var n;try{const r=await xe.delete(`${Ce()}/graph/graphdb/dissociate/${e.id}`,{headers:{Authorization:t.token}});return console.log("api_deleteGraphDissociate",r),((n=r==null?void 0:r.data)==null?void 0:n.data)??!0}catch{}},Ad=async(e,t)=>{try{const n=await xe.get(`${Ce()}/graph/graphdb/getSubGraph/${e.id}`,{headers:{Authorization:t.token}}),{data:r}=n;return r?r==null?void 0:r.data:!1}catch(n){console.log("getModels error",n)}},bd=async(e,t)=>{try{const n=await xe.get(`${Ce()}/graph/graphdb/generateGraphAbstract/${e.id}`,{headers:{Authorization:t.token}}),{data:r}=n;return r?r==null?void 0:r.data:!1}catch(n){console.log("getModels error",n)}},xd=async(e,t)=>{var n;try{const r=await xe.post(`${Ce()}/graph/graphdb/oneStepSearch`,e,{headers:{Authorization:t.token}});return console.log("api_getOneStepSearch",r),(n=r==null?void 0:r.data)==null?void 0:n.data}catch{}},Cd=async(e,t)=>{var n,r;try{const o=await xe.get(`${Ce()}/graph/graphdb/labels/${e}`,{headers:{Authorization:t.token}});return(r=(n=o==null?void 0:o.data)==null?void 0:n.data)!=null&&r.length?o.data.data:!1}catch(o){console.error("fetchGraphBases",o)}},Ed=(e,t,n,r,o)=>{wi(`${Ce()}/graph/graphdb/streamGraphStats/${e}`,{method:"get",headers:{"Content-Type":"application/json",Accept:"text/event-stream",Authorization:t.token||""},openWhenHidden:!0,onmessage:n,onerror:r,onclose:o})},{Option:ea}=qr,{TextArea:Sd}=De,{Text:wd}=Xn,Sr=10,kd=10;function wr(){return`${Date.now()}_${Math.random().toString(36).slice(2,9)}`}function Fd({token:e,visible:t,onClose:n,onConfirm:r,activeLibrary:o,confirmLoading:a}){const[i]=Re.useForm(),[s,l]=N([{id:wr()}]),[c,u]=N([]),[f,d]=N(!1),g=se(!0),[m,v]=N(""),p=se(1),x=se([]),b=se(!1),C=se(o),S=s.map(_=>_.spaceName).filter(Boolean),y=_=>c.map(z=>({...z,disabled:S.includes(z.value)&&z.value!==_})),k=_=>{const{target:z}=_;g.current&&!f&&!b.current&&z.scrollTop+z.clientHeight>=z.scrollHeight-10&&(p.current+=1,w(m,p.current,!0))},w=tn(async(_,z,H=!1)=>{var K;if(!b.current){b.current=!0,d(!0);try{L({fuzzy:_,pageSize:kd,pageNo:z,configId:(K=C.current)==null?void 0:K.id},{token:e||""},H)}finally{d(!1),b.current=!1}}},[]);function R(){s.length>=Sr||l(_=>[..._,{id:wr()}])}function O(_){const z=s.find(H=>H.id===_);l(H=>H.filter(K=>K.id!==_)),z&&(i.setFieldValue(`spaceName_${_}`,void 0),i.setFieldValue(`desc_${_}`,void 0))}function T(_,z){l(H=>H.map(K=>K.id===_?{...K,...z}:K))}function E(){return s.length===0?(Ie.warning("\u8BF7\u586B\u5199\u5173\u8054\u56FE\u8C31"),!1):s.every(_=>_.spaceName&&!_.error)}const j=async()=>{if(await i.validateFields(),!E())return;const _=s.map(z=>({spaceName:(z.spaceName||"").trim(),desc:z.desc}));console.log("r-->",_),r({configId:o.id,associatedGraphs:_})},L=async(_,z,H)=>{var K;try{const M=await hd(_,z);if(M){const{records:W,total:X}=M,I=(W||[]).map(B=>({label:B,value:B}));x.current=H?[...x.current,...I]:I,u(B=>H?[...B,...I]:I),g.current=((K=x.current)==null?void 0:K.length)<X}}catch{}},$=tn(Yu(_=>{v(_),p.current=1,g.current=!0,w(_,1)},300),[]);return ne(()=>{!o||!t||(C.current=o,L({pageSize:10,pageNo:1,configId:o==null?void 0:o.id},{token:e||""}))},[o,t]),h(dn,{title:"\u5173\u8054\u77E5\u8BC6\u56FE\u8C31",open:t,onCancel:n,footer:G("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[G(wd,{type:"secondary",children:["\u5DF2\u5173\u8054 ",(s==null?void 0:s.length)||0,"/",Sr," \u4E2A\u56FE\u8C31"]}),G(xi,{children:[h(be,{onClick:n,children:"\u53D6\u6D88"}),h(Kr,{title:s!=null&&s.length?"":"\u8BF7\u5148\u65B0\u589E\u5E76\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u56FE\u8C31",placement:"topRight",color:"#5F5E6B",children:h(be,{type:"primary",onClick:j,style:{background:"#4E6EF2"},loading:a,disabled:!(s!=null&&s.length),className:`${!(s!=null&&s.length)&&"primaryDisabled"}`,children:"\u786E\u8BA4"})})]})]}),width:640,destroyOnHidden:!0,afterClose:()=>{i.resetFields(),g.current=!0,x.current=[],p.current=1,b.current=!1,u([]),v(""),l([{id:wr()}])},children:G("div",{children:[h(Re,{labelCol:{span:3},colon:!1,form:i,children:s.map((_,z)=>G("div",{style:{border:"1px solid #E5E6EB",padding:12,borderRadius:6,marginBottom:12,position:"relative",background:"#F5F6F9",display:"flex",alignItems:"center"},children:[G("div",{style:{flex:1},children:[h("div",{style:{display:"flex",gap:12},children:h("div",{style:{flex:1},children:h(Re.Item,{label:"\u540D\u79F0",required:!0,style:{marginBottom:6},name:`spaceName_${_.id}`,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56FE\u8C31\u540D\u79F0"}],children:G(qr,{showSearch:!0,filterOption:!1,onSearch:$,onPopupScroll:k,loading:f,notFoundContent:f?h(Tr,{size:"small"}):"\u6682\u65E0\u6570\u636E",style:{width:"100%"},value:_.spaceName,onChange:H=>{T(_.id,{spaceName:H})},children:[y(_.spaceName).map(H=>h(ea,{value:H.value,disabled:H.disabled,children:H.label},H.value)),f&&g.current&&h(ea,{disabled:!0,value:"__loading__",style:{textAlign:"center"},children:h(Tr,{size:"small"})})]})})})}),h("div",{style:{marginTop:12},className:"oneTextInside",children:h(Re.Item,{label:"\u63CF\u8FF0",style:{marginBottom:0},name:`desc_${_.id}`,children:h(Sd,{placeholder:"\u8BF7\u8F93\u5165\u56FE\u8C31\u63CF\u8FF0",maxLength:150,rows:1,showCount:!0,autoSize:{maxRows:6,minRows:1},value:_.desc,onChange:H=>T(_.id,{desc:H.target.value})})})})]}),h("img",{src:cd,style:{width:"16px",height:"16px",margin:"0 4px 0 16px",flexShrink:0,cursor:"pointer"},onClick:()=>{O(_.id)}})]},_.id))}),h("div",{style:{textAlign:"left"},children:h(be,{style:{color:"#4E6EF2",border:"1px solid #DDE0E5"},icon:h(li,{}),onClick:R,disabled:s.length>=Sr,children:"\u65B0\u589E"})})]})})}const _t=(e,t)=>{var o;if(!e)return"";const{data:n,id:r}=e;return!n||!Array.isArray(n)?"":((o=n.find(a=>a.columnId===t))==null?void 0:o.value)||""},Td=(e,t="id",n=[])=>e.map(r=>{const o=Object.entries(r).map(([a,i])=>({columnId:a,value:i??"",type:"text"}));return{id:String(r[t]??""),data:[...o,...n]}});var ct=(e=>(e[e.VIEW=0]="VIEW",e[e.AUTHORIZE=1]="AUTHORIZE",e[e.EDIT=2]="EDIT",e))(ct||{});const Rd={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}},yt=(e,t)=>{var n;return((n=Rd[e])==null?void 0:n[t])??!0},Id="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAQhJREFUeAHtk8FtwkAQRf8sK8HR7mAPiZSj6SAuIRVEOUTJMS3QQXKLcksF0AEtuAGk7cCIG9Kuh1kEQkI26xWIk9/JGo//986fBQYGjpivOnv42Mwf3+si5Tvdp+npszZuq+YgFKy0kdIUPYkaBHEPtQSTYcB6ci9IgPqIMw7i8KX9zS0SUF0vwqyP4iCq/MRPU8UD1CXOSsZClO0LzJU8ry8JceN/Vn/54rzemgFr/Sqi2ek3KL45avTfVm41cGM301v1LMHuheWYbzIqiwv4iava6p0hh70Xk7A9BYMl4Ka8WQa3NKFYw7UmKtZgv/O1GzcliCsCmVG4dAlEDc5N5NAzDAzclR1zJHakSCHm1wAAAABJRU5ErkJggg==",Od="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMRJREFUeAHNUdENgkAMfT39ByeCAcQZGEA0TCBuYGQBXQHcRzYQHIDaM0LwuAAhMfEllzTte++aPuCXCKJHqN8QRw0NiZSvsPBmG0zBHxpsdtV9va0Ovb709MzsL9HHVSlKxORLDOnV4KNJJouB3iKRkWzB5YfmavHt7CRWgybrPF1d+iaAKe7y3zew5Z2JgJlj/cyfu3zbDVrkqXPCCGbFyIDb1M0GBRP2QfR0xbEcN2CvBmJdtymIOCSCj0ngIrMkMgsvZMxLTdm2guIAAAAASUVORK5CYII=",Bd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAANZJREFUeAHVkjEOgkAQRf+sxJobyHEsBEuBzsaglZ6A5QRSKbHRSrEV7mO8AReQdddEY3A1S6cv2WSTmfkz8zPAX9L3I0c99bd0CW4wmUOwqsiznS7eBTgBQn7HrBn0wigmdJYQtQ0DrGYxBPFaUFIeN6mJANMW5ysOQ+4TuMFU7gxVVHVQ94Z+tNUlX4FLmWf8TeAV6Qzh87iOdoLisE69cGZDiLgGzrJLAkOeHpz2cm+ihBHxgS/9aCvQFHFH8hbaCjxEpA8LEKtggPYSlSf43pXjZ7gB8cxHAwO8wJIAAAAASUVORK5CYII=",Md="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAANBJREFUeAHNUDsOgkAQnZkQWzmCx7EQLUUrbQx2egKXG6yNv0YrhVa4kDfACzAOWJgsYDZUvGQ2m515nx2ATmDoB4OioAWc4ugBKARguS7rhjw/WDBzP43Pe7NHYANEl4j0yA92rQSSx1GLSEiIyhSxSyB43g+qTsQxByd+cG1UyXNgwowAlTddvZP4oisJmOgl28SmMued2qgNGM8lOoObM4apuBdv1jv4klGV5Ohn4tiQvdl6I84VsrUAMGeMuBWyNlulgPxD/eMn0ekGncUHcb5PHMKHx24AAAAASUVORK5CYII=",Pd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAO9JREFUeAGV0bFtAjEUBuD/PTsnpQhJNkg2yG1wdCkSiQ1C+kQhGyQbIERBByOcEAUdMAFsAExwByXyPWMfEgJRnPkbW0/+/Cw/QmDevrLELQ/GYDHuPa4oBL1/b/pE1HDbHLDYssQciBLeFfGwU3v2+K5QDQrsBGOKukTII+GJCP3qkE4ScVNrNYHYXIDZqFtLuQLVU/cRO5aBr5eoc9/0e6pCr63sqXzeCbqAoegMXoN8+ICy1jXoCIn4w1r8h6LSHA6qpZtTrBQSd8lPFfLR2uDF93VzmlvYtasNHPpDRbTWmBbAp8LNNG3frhCYPQprmESO6xyEAAAAAElFTkSuQmCC",Dd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAS5JREFUeAGtkTFOw0AQRWdmoYTINzAnIJwAp0sRwDdwSgoI5iQxgYIuzg0MpEhHfANzg9zAsugse4dZSxslBiSI8ouVd7Tvz/gPwI7CdmFwk3sKVcDIXXNnxoy5ns2fnKW5969zd/HsrLbAi9tiioi+PJ8xYdY4a/bkvBKDmLlKidT4dXJ8crABjQXyqKzPEnHc8Iv9MHe1Vu+IyrdFMocv4wkUCtRrQY2qigJmMHXX1pqOFdFQMcQ/Qc24CAUip/KZysirNShtTzXAA/yit8dO1K4R7CgLftj4/wWS1jEBBmZHfwXXexyMCoHhvCx1b9EKqS/rOKzVVKn6PomcbAs0uhwVEgLeSfQxQG1SBEbqimEg4b3MJ53ht45Wfvjpaa3lAdp/zogwTqKjJexDXwNxdZgtbIZsAAAAAElFTkSuQmCC",_d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPRJREFUeAGVkUGSAUEQRSuzq9tM2PQRZm4wfYOelZid2RBWOAFH4CTsCCs7wgYn4Aa4QW/QoXWmLIQgROjyV1kV+Sp//QRlqd5oHzKjD0DLyt/nGmygweTQAcVFZhWZ83bnBWgDKebwmFJQKuS+ASDKf8RFbTVJaqLUF7tfzOwzUqQzJxEFiFhztTuV60gemZcL+SG+glKiXxMEEXVB0rhAuZrpgSzI2HMQp/fQE2gLPYDvQEbnP/bHcfMd6AZKU1XybttCZ6vXxlVyTALHwRDBaWRBRlp29GMK2dNC7G4E6grUUhnSnufNkjiuu0rN/sWqstQJH4+tDvFJ//QAAAAASUVORK5CYII=",Nd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAR5JREFUeAGlUk1OwmAQnZk2IXoKPIH1BnWFrmQDxlV7A70JeAI/FsYEViyMPxvsDfAGXMHEREP8Zpz5oChNWQBvNXlf35vpzAPYEVglHp6+0ggp05ckEAJTLzy4Oj94W743tZ6tCYev8zsEaQvLAESmwZkoVZMLFnTqUqig1201juJSNHqZ90Qk/WE+Mcd/fs66REQTrdslSeV4AnLjmU8rooCYKENE45srbqGmnBBct0a0+E//wYyFVjbq7E8Y4TF7fwsb0Dk77Fc5gh0ROmq3d0FMthGGjqybI8TMtreV0I4rAGNbeZ3YuOHz9+T+8XM1VTUAfT38tabFaVqK8IFgEsWYscD4stXIa4WGkd4UiHKdILgjsyXIdZaR2xu/IDt4+9YlmS0AAAAASUVORK5CYII=",Ld="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 zd(e,t,n,r){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(n,r))}catch{o(e)}},a.onerror=()=>o(e),a.src=e})}async function jd(e,t){if(!e||typeof e.toDataURL!="function")return null;const n=t==null?void 0:t.type,r=(t==null?void 0:t.encoderOptions)??.92,o=await e.toDataURL({mode:t==null?void 0:t.mode,type:n,encoderOptions:r});if(!o)return null;const a=(t==null?void 0:t.exportBackground)===void 0?"#ffffff":t.exportBackground;return a===!1?o:zd(o,a,n,r)}function Gd(e){switch(e){case"image/jpeg":return"jpg";case"image/webp":return"webp";case"image/bmp":return"bmp";default:return"png"}}async function Hd(e,t){const n=await jd(e,t);if(!n)return!1;const r=Gd(t==null?void 0:t.type),o=(t==null?void 0:t.fileName)??`graph-export-${Date.now()}.${r}`,a=document.createElement("a");return a.href=n,a.download=o,a.rel="noopener",document.body.appendChild(a),a.click(),document.body.removeChild(a),!0}const Ud=({items:e})=>{var o,a;const t=(o=e==null?void 0:e[0])!=null&&o.data?e[0].data:{},{properties:n}=t,r=((a=(n||[]).find(i=>i.name==="name"))==null?void 0:a.value)||t.nodeType;return G("div",{style:{width:"280px",height:"60px",borderRadius:"4px",padding:"8px 8px 0 8px",display:"flex",background:"#fff"},children:[h("div",{style:{background:"#DBBDA0",width:"43px",height:"43px",borderRadius:"4px",fontSize:"26px",color:"#fff",lineHeight:"40px",textAlign:"center"},children:r?r.substr(0,1):""}),G("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"45px",marginLeft:"16px"},children:[h("div",{style:{color:"#2A2A2A",fontWeight:"16px",fontSize:"16px",minWidth:"10px",width:190,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:r}),h("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})]})]})};ki();const{TextArea:ta}=De,di=320,st={title:"",subtitle:"",backgroundColor:"#FAFBFD",showGrid:!1,showLegend:!1,showTooltip:!0,showFullscreen:!0,showMinimap:!1,toolbarMode:"floatbar"},$d=({open:e,headerH:t=0,graphRow:n,goBack:r,token:o,onConfirm:a,activeLibrary:i,confirmLoading:s})=>{const[l,c]=N({nodeList:[],edgeList:[]}),[u,f]=N(0),[d,g]=N(1),[m,v]=N(!1),[p,x]=N(""),[b,C]=N(""),S=se(null),[y,k]=N(null),[w,R]=N(null),[O,T]=N(()=>{if(!(typeof window>"u"))return{width:document.documentElement.clientWidth,height:window.innerHeight}}),E=async M=>{try{const W=await xd({graphName:_t(n,"graphName"),vids:[M]},{token:o||""});W&&c(X=>({...X,nodeList:[...X.nodeList,...W.nodeList],edgeList:[...X.edgeList,...W.edgeList]}))}catch{}},j=async(M,W)=>{try{const X=await Ad(M,W);X&&c(X)}catch{}},L=async()=>{try{g(2);const M=await bd({id:n.id},{token:o});M?(C(M),g(1)):g(3)}catch{g(3)}};ne(()=>{if(typeof window>"u")return;const M=()=>{T({width:document.documentElement.clientWidth,height:window.innerHeight})};return M(),window.addEventListener("resize",M),window.addEventListener("orientationchange",M),()=>{window.removeEventListener("resize",M),window.removeEventListener("orientationchange",M)}},[]),ne(()=>{console.log("graphRow",n);const M=n==null?void 0:n.id;!M||!o||(x(_t(n,"graphAbstract")||""),j({id:M},{token:o}))},[e,n,o]);const $=ht(()=>yt(ct.EDIT,i==null?void 0:i.permission)||m||d===2,[m,d,i]),_={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:M=>{var I;if(!(M!=null&&M.data))return"";const{properties:W,nodeType:X}=M.data;return((I=(W||[]).find(B=>B.name==="name"))==null?void 0:I.value)||X}},state:{active:M=>M.states.includes("selected")?{halo:!0}:{halo:!1,cursor:"pointer"},selected:M=>({halo:!0,cursor:"pointer"})}},z={type:"line",style:{stroke:"#DDE1E8",lineWidth:1,cursor:"pointer",labelFill:"#888888",halo:!1,labelText:M=>{var I;if(!(M!=null&&M.data))return"";const{properties:W,edgeType:X}=M.data;return((I=(W||[]).find(B=>B.name==="name"))==null?void 0:I.value)||X}},state:{active:{cursor:"pointer"},selected:M=>({halo:!0,cursor:"pointer"})}},H=ht(()=>{if(!(l!=null&&l.nodeList)||!w)return{};const{nodeList:M,edgeList:W}=l,X=Ir.uniqBy(M,"vid"),I=Ir.uniqBy(W,"id");return{a_node_count:(X==null?void 0:X.length)||0,a_edge_count:(I==null?void 0:I.length)||0,w_node_count:(w==null?void 0:w.vertexCount)||0,w_edge_count:(w==null?void 0:w.edgeCount)||0}},[l,w]),K=()=>{Ed(n.id,{token:o||""},M=>{const W=JSON.parse(M.data);W.status==="FINISHED"&&(W!=null&&W.data)&&R(W.data)})};return ne(()=>{e&&K()},[e]),G(Zr,{placement:"bottom",closable:!1,mask:!1,width:"100%",height:O!=null&&O.height?O.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:M=>{if(!M)try{g(1),f(0),v(!1),x(""),C(""),R(null),typeof document<"u"&&document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch{}},children:[G("div",{style:{height:"56px",borderBottom:"1px solid #EBEBF0",display:"flex",alignItems:"center",padding:"0 20px",justifyContent:"space-between"},children:[G("div",{style:{display:"flex"},children:[h("img",{src:Id,width:24,onClick:r,style:{cursor:"pointer"},className:"summaryBack"}),h("div",{style:{marginLeft:"16px"},children:_t(n,"graphName")})]}),h(be,{icon:h("img",{src:Od,width:16}),disabled:yt(ct.EDIT,i==null?void 0:i.permission)||!S.current,onClick:()=>{Hd(S.current,{mode:"viewport",type:"image/png"}).then(M=>{Ie.success("\u5BFC\u51FA\u6210\u529F")})},children:"\u5BFC\u51FA"})]}),G("div",{style:{height:"calc(100% - 56px)",display:"flex",position:"relative"},children:[ht(()=>G("div",{style:{flex:1,minWidth:0,minHeight:0,height:"100%",position:"relative",backgroundColor:"#FAFBFD",overflow:"hidden"},children:[h(Fi,{tooltipShow:{node:!0,edge:!1},data:l,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:Ud,tooltipPosition:"top",toolbarMode:st.toolbarMode,customPlugins:{},tooltipOffset:[-3,-1],onReady:M=>{S.current=M,console.log("KnowledgeGraphPreview ready:",M)},contextMenu:{node:[{name:"\u4E00\u5EA6\u5C55\u5F00",value:"demo_add_child"}]},eventEmit:async(M,W)=>{if(console.log("\u4E8B\u4EF6:",M,W),M==="nodegraph_contextmenu_item"){const{nodeData:X}=W;if(!(X!=null&&X.data))return;E(X.data.vid);return}if(M==="nodegraph_node_selected"){console.log("node datum:",W.data),k(W.data),f(2);return}if(M==="nodegraph_edge_selected"){console.log("edge datum:",W.data);return}},node:_,edge:z}),G("div",{style:{position:"absolute",left:20,bottom:20,pointerEvents:"none",display:"flex",fontSize:12,color:"#888888",alignItems:"center"},children:[G("div",{style:{display:"flex"},children:[h("div",{children:"\u8282\u70B9\u6570\uFF1A"}),G("div",{children:[h("span",{style:{color:"#555555"},children:H.a_node_count}),"/",H.w_node_count]})]}),h(fi,{h:12}),G("div",{style:{display:"flex"},children:[h("div",{children:"\u5173\u7CFB\u6570\uFF1A"}),G("div",{children:[h("span",{style:{color:"#555555"},children:H.a_edge_count}),"/",H.w_edge_count]})]})]})]}),[l,H]),h(Vd,{openRight:u,setOpenRight:f,refreshStatus:d,setRefreshStatus:g,edit:m,setEdit:v,btnDisabled:$,graphAbstract:p,setGraphAbstract:x,refreshText:b,generateGraphAbstract:L,confirmLoading:s,eventEmit:(M,W)=>{switch(console.log("\u4E8B\u4EF6:",M,W),M){case"abandon":C(""),g(1);break;case"regenerate":L();break;case"replace":a({graphAbstract:b,graphSpaceId:n.id},X=>{X==="success"?(x(b),C(""),g(1),v(!1)):g(3)},"replace");break;case"generate":L();break;case"confirm":a({graphAbstract:p,graphSpaceId:n.id},X=>{X==="success"?(g(1),v(!1)):g(3)});break}}}),h(Qd,{openRight:u,setOpenRight:f,data:y})]})]})},Vd=({openRight:e,setOpenRight:t,refreshStatus:n,setRefreshStatus:r,edit:o,setEdit:a,btnDisabled:i,graphAbstract:s,refreshText:l,eventEmit:c,setGraphAbstract:u,confirmLoading:f})=>{const d=se("edit");return G(gt,{children:[e===1&&G("div",{style:{width:di,borderLeft:"1px solid #EBEBF0",height:"100%"},children:[G("div",{style:{height:"48px",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0 16px",borderBottom:"1px solid #EBEBF0"},children:[h("div",{style:{fontSize:"14px",fontWeight:700,color:"#1D2129"},children:"\u56FE\u8C31\u6458\u8981"}),h("img",{src:Md,width:16,style:{marginRight:"16px",cursor:"pointer",zIndex:50},onClick:()=>{t(0)}})]}),G("div",{style:{padding:16,height:"100%",boxSizing:"border-box",overflowY:"auto"},children:[G("div",{style:{right:12,top:12,display:"flex",alignItems:"center",fontSize:12,color:"#6B7280",marginBottom:"8px",justifyContent:"space-between"},children:[h("div",{style:{color:"#1D2129"},children:"\u6458\u8981"}),G("div",{style:{display:"flex",alignItems:"center"},children:[n===1&&G(gt,{children:[G("div",{style:{display:"flex",alignItems:"center",cursor:i?"not-allowed":"pointer",borderRadius:4},onClick:()=>{console.log("\u7F16\u8F91\u70B9\u51FB")},className:"summaryBtn",children:[h("img",{src:i?_d:Pd,width:14,style:{height:14,alignItems:"center",marginRight:3}}),h("div",{style:{color:i?"#AAB9F9":"#4E6EF2",fontSize:12},onClick:()=>{i||a(!0)},children:"\u7F16\u8F91"})]}),h(fi,{h:16})]}),G("div",{style:{display:"flex",alignItems:"center",cursor:i?"not-allowed":"pointer",borderRadius:4},className:"summaryBtn",onClick:()=>{i||c("generate")},children:[h("img",{src:i?Nd:Dd,width:14,style:{height:14,marginRight:3}}),h("div",{style:{color:i?"#AAB9F9":"#4E6EF2",fontSize:12},children:"\u91CD\u65B0\u751F\u6210"})]})]})]}),G("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",overflow:"hidden"},children:[h(ta,{style:{border:"none",resize:"none",outline:"none",boxShadow:"none"},rows:o?8:10,readOnly:!o,value:s,onChange:g=>u(g.target.value)}),o&&G("div",{style:{display:"flex",justifyContent:"flex-end",margin:"16px 16px"},children:[h(be,{style:{marginRight:8},onClick:()=>{a(!1)},children:"\u53D6\u6D88"}),h(be,{type:"primary",style:{background:"#4E6EF2"},onClick:()=>{d.current="edit",c("confirm")},loading:d.current==="edit"?f:!1,children:"\u786E\u5B9A"})]})]}),(l||n===2||n===3)&&G("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",position:"relative",overflow:"hidden"},children:[n===2&&h(Tr,{spinning:n===2,style:{marginTop:100,height:38,padding:5}}),n===1&&h(ta,{style:{border:"none",resize:"none",outline:"none",boxShadow:"none"},rows:16,value:l,readOnly:!0}),n===3&&G("div",{style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:16,background:"#fff"},children:[h("img",{src:Ld,width:44,style:{marginBottom:12}}),h("div",{style:{fontSize:18,fontWeight:700,color:"#1D2129"},children:"\u751F\u6210\u5931\u8D25"}),G("div",{style:{marginTop:8,fontSize:12,color:"#6B7280",display:"flex",alignItems:"center"},children:[h("span",{children:'\u751F\u6210\u5931\u8D25\uFF0C\u70B9\u51FB"'}),h("span",{style:{color:"#2B69FF",cursor:"pointer",transition:"transform 150ms ease, text-decoration 150ms ease, opacity 150ms ease",textDecoration:"none"},onClick:()=>{r(2)},onMouseEnter:g=>{const m=g.currentTarget;m.style.opacity="0.5"},onMouseLeave:g=>{const m=g.currentTarget;m.style.opacity="1"},children:"\u91CD\u65B0\u751F\u6210"}),h("span",{children:'"\u91CD\u8BD5'})]})]}),n!==3&&G("div",{style:{display:"flex",justifyContent:"flex-end",margin:"16px 16px"},children:[h(be,{style:{marginRight:8},onClick:()=>c("abandon"),disabled:n!==1,children:"\u653E\u5F03"}),h(be,{style:{marginRight:8},onClick:()=>c("regenerate"),disabled:n===2,children:"\u518D\u6B21\u751F\u6210"}),h(be,{type:"primary",style:{background:"#4E6EF2"},onClick:()=>{d.current="replace",c("replace")},disabled:n!==1,className:`${n===2?"primaryDisabled":""}`,loading:d.current==="replace"?f:!1,children:"\u66FF\u6362"})]})]})]})]}),e===0&&h(be,{icon:h("img",{src:Bd,width:16}),style:{position:"absolute",right:"20px",top:"20px",color:"#1D2129"},onClick:()=>{t(1)},className:"openSummary",children:"\u5C55\u5F00\u6458\u8981"})]})},Qd=({openRight:e,setOpenRight:t,data:n})=>{var c,u;const r=n!=null&&n.data?n.data:{},{properties:o,nodeType:a,vid:i}=r,s=((c=(o||[]).find(f=>f.name==="name"))==null?void 0:c.value)||r.nodeType,l=((u=(o||[]).find(f=>f.name==="id"))==null?void 0:u.value)||r.vid;return h(gt,{children:e===2&&G("div",{style:{width:di,borderLeft:"1px solid #EBEBF0",height:"100%",boxSizing:"border-box",background:"#fff"},children:[G("div",{style:{display:"flex",alignItems:"center",padding:"0 16px",justifyContent:"space-between",marginTop:16},children:[h("div",{style:{fontSize:16,fontWeight:700,color:"#1D2129"},children:s}),h(or,{style:{color:"#666666",fontSize:14,cursor:"pointer"},onClick:()=>{t(0)}})]}),G("div",{style:{padding:"12px 16px 16px 16px",height:"calc(100% - 56px)",overflowY:"auto"},children:[h("div",{style:{marginBottom:16,display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"1px solid #EEEEEE"},children:G("div",{style:{display:"flex",alignItems:"center",gap:4,marginBottom:12},children:[h("div",{style:{color:"#888888",flexShrink:0},children:"\u7C7B\u522B\uFF1A"}),h("div",{style:{color:"#555555",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:40},children:a}),h("div",{style:{width:1,height:12,background:"#EEEEEE",margin:"0 6px"}}),h("div",{style:{color:"#888888"},children:"id\uFF1A"}),h("div",{style:{color:"#555555",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l})]})}),h("div",{style:{borderRadius:0,overflow:"hidden"},children:h(Ci,{columns:[{title:"\u5C5E\u6027\u540D",dataIndex:"name",key:"name",width:"50%",ellipsis:!0},{title:"\u503C",dataIndex:"value",key:"value",width:"50%",ellipsis:!0}].map(d=>({...d,title:h("div",{style:{fontSize:12,fontWeight:400,color:"#2A2A2A",padding:"6px 0",borderRadius:0},children:d.title}),render:d.render??(g=>h("div",{style:{fontSize:12,color:"#2a2a2a",padding:"8px 0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderRadius:0},children:g}))})),dataSource:o||[],rowKey:"name",pagination:!1,size:"small",style:{boxShadow:"none",background:"#fff"},bordered:!0})})]})]})})},fi=({h:e})=>h("div",{style:{height:e||20,borderLeft:"1px solid #EEEEEE",width:0,margin:"0 12px",borderRadius:4}});function Yd({visible:e,title:t="\u786E\u8BA4\u89E3\u9664\u56FE\u8C31\u5E93\u5173\u8054",content:n="\u662F\u5426\u786E\u8BA4\u89E3\u9664\u5F53\u524D\u77E5\u8BC6\u56FE\u8C31\u4E0E\u56FE\u8C31\u5E93\u7684\u5173\u8054?",confirmText:r="\u786E\u8BA4",cancelText:o="\u53D6\u6D88",confirmLoading:a=!1,onCancel:i,onConfirm:s}){return h(dn,{centered:!0,open:e,closable:!1,width:400,title:G("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[h(ti,{style:{color:"#FAAD14",fontSize:20}}),h("span",{style:{fontSize:16,fontWeight:600},children:t})]}),onCancel:i,onOk:()=>{a||s==null||s()},okText:r,cancelText:o,confirmLoading:a,maskClosable:!1,okButtonProps:{style:{backgroundColor:"#4E6EF2",borderColor:"#4E6EF2",color:"#fff"}},children:h(Xn.Paragraph,{style:{color:"rgba(0,0,0,.88)",fontSize:14,lineHeight:"20px",margin:"0 0 22px 30px"},children:n})})}const{TextArea:Wd}=De,Xd=({visible:e,tableRow:t,initialDescription:n="",initialTags:r=[],maxDescriptionLength:o=150,maxTags:a=20,onCancel:i,onConfirm:s,confirmLoading:l})=>{const[c,u]=N(n),[f,d]=N(r),[g,m]=N(!1),[v,p]=N("");return ne(()=>{e&&(u(n),d(r),m(!1),p(""))},[e]),ne(()=>{e&&u(_t(t,"graphDesc"))},[e]),h(sa,{drawer:{styles:{header:{display:"none"},body:{padding:0,display:"flex",flexDirection:"column"},footer:{padding:"12px 24px",border:"none"}}},children:G(Zr,{placement:"right",width:560,onClose:i,open:e,destroyOnHidden:!0,footer:G("div",{style:{textAlign:"right",margin:"4px 0"},children:[h(be,{style:{marginRight:8},onClick:i,children:"\u53D6\u6D88"}),h(be,{type:"primary",style:{background:"#4E6EF2"},onClick:()=>s({graphDesc:c,graphSpaceId:t.id}),loading:l,children:"\u786E\u8BA4"})]}),children:[G("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 24px",borderBottom:"1px solid #f0f0f0",flexShrink:0,height:56,fontSize:16,fontWeight:700},children:[h("div",{children:`${(t==null?void 0:t.fromType)==="create"?"\u521B\u5EFA":"\u7F16\u8F91"}-${_t(t,"graphName")}`}),h("button",{type:"button","aria-label":"\u5173\u95ED",onClick:i,style:{background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#8c8c8c",lineHeight:1,padding:"0 4px",flexShrink:0,display:"flex",alignItems:"center"},children:h(or,{})})]}),h("div",{style:{padding:24,display:"flex",flexDirection:"column",height:"100%"},children:G("div",{children:[h("div",{style:{marginBottom:7},children:"\u56FE\u8C31\u63CF\u8FF0"}),h("div",{style:{border:"1px solid #D9D9D9",borderRadius:4,height:235,background:"#fff",marginTop:"8px"},className:"countInside",children:h(Wd,{value:c,onChange:x=>{u(x.target.value)},placeholder:"\u8BF7\u8F93\u5165\u56FE\u8C31\u63CF\u8FF0",showCount:!0,maxLength:o,rows:9,style:{border:"none",resize:"none",outline:"none",boxShadow:"none"}})})]})})]})})},qd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAjlJREFUeAG1VettE0EQnpm1LRLbkulgjYSEQiLOHSQdQAXYFdipAFEBTgUkFaSE0IFPBvEHJG8HZwmjGMPOsnMXnx+5u1xs5ZP82L15fDM3D4AnBpYRmumjgJUK0DktZ4doyNqwYb6HOzuItG7VoNF3hAMv1MoUcmC80+EfqFw9N+G0tINf+viUCD/7vxrKwDti53pN8+3Lgw5u9ev3THQJO4AYuwdmfJXr4I75DewBZne2HknqIM45NUdQNi158OlaONVZvhNa3lep3t3buABBV+jfYHmk1T31s+QlZKdsBwFNKuvQyB2TO8vSIcD+yq7H7OVRgFaNsoSXIVdhoZHUTUyFqTOH6bQopY5tR/qEEpYqgDz4kKtor0XYMZw7gI8HJjTeeGEZs4LYZiUJWTo0v6kR4XSmTz41zNdzOd/q4w8M8BYKgI60/BKUBWHKwCK2y6rFEchs8bkuYINhfTIeSJ/I+a9TgxrwG/8gN7UO2cS84i+yYYFxP2/oXaRfaRkf/nMNMG+Rv1uvrG2QhdhmGvbvFycRZAw1YtWewxxqVJUO1wm9pLKeeXkmO9rWE1KHk3E7jeAuqIssJt7AxBufwHrF+MqqkY3kWRYpRkhtpQ4WXBkWhVwWwr7Oq2GZOpDZYZl7sCes4h6u7YaNMpUp6JtpZyei2/y5uRPu9YFvpkuZP49Jl6RF5pLo3nuWpxTpoFUl7noGfQfJLs4wLam4OGQa4mNW5jZkGMq82lj6vncaPx5e+k+O/6O/8jfSq5FAAAAAAElFTkSuQmCC";function Kd({visible:e,title:t="\u56FE\u6570\u636E\u5E93\u8FDE\u63A5\u5931\u8D25",content:n="\u56FE\u6570\u636E\u5E93\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u56FE\u6570\u636E\u5E93\u72B6\u6001\u6216\u91CD\u65B0\u8FDE\u63A5\u3002",confirmText:r="\u786E\u8BA4",cancelText:o="\u53D6\u6D88",onCancel:a}){return h(dn,{centered:!0,open:e,width:380,title:G("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[h("img",{src:qd,width:24,height:24}),h("span",{style:{fontSize:16,fontWeight:600},children:t})]}),onCancel:a,okText:r,cancelText:o,maskClosable:!1,okButtonProps:{style:{backgroundColor:"#4E6EF2",borderColor:"#4E6EF2",color:"#fff"}},footer:null,children:h(Xn.Paragraph,{style:{color:"rgba(0,0,0,.88)",fontSize:14,lineHeight:"20px",margin:"0 0 0 36px"},children:n})})}const Zd=({visible:e,tableRow:t,initialTags:n=[],onCancel:r,onConfirm:o,confirmLoading:a,activeLibrary:i,token:s})=>{const[l,c]=N([]),[u,f]=N(n),[d,g]=N(u||[]);ne(()=>{e&&f(n)},[e]);const m=(p,x)=>{switch(p){case"saveTags":o({labels:x||[],graphSpaceId:t.id});break}},v=async()=>{try{const p=await Cd(i.id,{token:s||""});Array.isArray(p)&&c(p.map(x=>({label:x})))}catch(p){console.error("Error fetching data:",p)}};return ne(()=>{if(!e)return;const p=_t(t,"labels");f(p),v()},[e]),h(sa,{drawer:{styles:{header:{display:"none"},body:{padding:0,display:"flex",flexDirection:"column"},footer:{padding:"12px 24px",border:"none"}}},children:G(Zr,{placement:"right",width:560,onClose:r,open:e,destroyOnHidden:!0,footer:G("div",{style:{textAlign:"right",margin:"4px 0"},children:[h(be,{style:{marginRight:8},onClick:r,children:"\u53D6\u6D88"}),h(be,{type:"primary",style:{background:"#4E6EF2"},onClick:()=>o({labels:u||[],graphSpaceId:t.id}),loading:a,children:"\u786E\u8BA4"})]}),children:[G("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 24px",borderBottom:"1px solid #f0f0f0",flexShrink:0,height:56,fontSize:16,fontWeight:700},children:[h("div",{children:"\u6807\u7B7E"}),h("button",{type:"button","aria-label":"\u5173\u95ED",onClick:r,style:{background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#8c8c8c",lineHeight:1,padding:"0 4px",flexShrink:0,display:"flex",alignItems:"center"},children:h(or,{})})]}),ht(()=>h("div",{style:{padding:24,display:"flex",flexDirection:"column",height:"100%"},children:h(Jd,{btnLoading:a,emitEvent:m,bizLabelList:l,tags:u,setTags:f,oldTags:d,setOldTags:g})}),[l,u,d])]})})},Jd=({bizLabelList:e,setTags:t,tags:n,oldTags:r,setOldTags:o})=>{const a=(s,l)=>{if(l){const c=Array.from(new Set([...n,s]));t(c)}else t(c=>c.filter(f=>f!==s))},i=(s,l,c)=>{switch(s){case"editTag":if(l!=c){const d=r.find(m=>m.label===c);d&&(d.checked=!1);const g=r.find(m=>m.label===l);g&&(g.checked=!0),o([...r])}break;case"addTag":const u=r.find(d=>d.label===l);u&&(u.checked=!0);break;case"deleteTag":const f=r.find(d=>d.label===l);f&&(f.checked=!1,o([...r]));break}};return ne(()=>{if(e){const s=n||[],l=Ir.uniqBy(e,"label");o(l.map(c=>({...c,checked:!!s.includes(c.label)})))}},[e,n]),G("div",{style:{height:"100%"},children:[h("div",{style:{fontSize:14,color:"#666666",fontWeight:400,lineHeight:"20px",marginBottom:8},children:"\u6BCF\u4E2A\u6807\u7B7E\u6700\u591A20\u4E2A\u5B57\u7B26\uFF0C\u652F\u6301\u4E2D\u6587\uFF0C\u5927\u5C0F\u5199\u82F1\u6587\u5B57\u6BCD\uFF0C\u6570\u5B57\uFF0C\u4E0B\u5212\u7EBF_\uFF0C\u4E2D\u5212\u7EBF-\uFF0C\u9996\u5C3E\u7A7A\u683C\u4F1A\u81EA\u52A8\u622A\u65AD"}),h("div",{style:{width:485,height:224,border:"1px solid #D9D9D9",backgroundColor:"#F6F6F6",borderRadius:4,padding:16,overflowY:"auto"},children:h(ef,{tags:n,setTags:t,handleEvent:i})}),G("div",{style:{color:"#2A2A2A",marginTop:20,height:"calc(100% - 300px)",overflowY:"auto",overflowX:"hidden"},children:["\u5DF2\u4F7F\u7528\u8FC7\u6807\u7B7E",h("span",{style:{color:"#666666"},children:"\uFF08\u70B9\u51FB\u53EF\u6DFB\u52A0\uFF09"}),h("div",{style:{marginTop:10},children:r.map((s,l)=>h(Rr,{style:{margin:"4px 8px 4px 0",border:s.checked?"1px solid #EBF6FF":"1px solid #D9D9D9",backgroundColor:s.checked?"#EBF6FF":"#FFFFFF",color:s.checked?"#1D70F5":"#222222",cursor:"pointer"},onClick:()=>{o(c=>{const u=c.find(f=>f.label===s.label);return u.checked=!u.checked,a(s.label,u.checked),[...c]})},children:s.label},l))})]})]})},na={width:64,height:22,marginInlineEnd:8,verticalAlign:"top"},ef=e=>{const{tags:t,setTags:n,handleEvent:r}=e,[o,a]=N(!1),[i,s]=N(""),[l,c]=N(-1),[u,f]=N(""),d=se(null),g=se(null);ne(()=>{var y;o&&((y=d.current)==null||y.focus())},[o]),ne(()=>{var y;(y=g.current)==null||y.focus()},[u]);const m=y=>{const k=t.filter(w=>w!==y);console.log(k),n(k),r("deleteTag",y)},v=()=>{a(!0)},p=y=>{s(y.target.value)},x=()=>{i&&!t.includes(i)&&(r("addTag",i),n([...t,i])),a(!1),s("")},b=y=>{f(y.target.value)},C=()=>{const y=[...t],k=y[l];y[l]=u,n(y),r("editTag",u,k),c(-1),f("")},S={height:22,background:"white",borderStyle:"dashed"};return G(Ei,{gap:"4px 0",wrap:!0,children:[t.map((y,k)=>{if(l===k)return h(De,{ref:g,size:"small",style:na,value:u,onChange:b,onBlur:C,onPressEnter:C,maxLength:20},y);const w=y.length>20,R=h(Rr,{closable:!0,style:{userSelect:"none"},onClose:()=>m(y),children:h("span",{onDoubleClick:O=>{c(k),f(y),O.preventDefault()},children:w?`${y.slice(0,20)}...`:y})},y);return w?h(Kr,{title:y,children:R},y):R}),o?h(De,{ref:d,type:"text",size:"small",style:na,value:i,onChange:p,onBlur:x,onPressEnter:x,maxLength:20}):h(Rr,{style:{...S,color:"#1D70F5"},icon:h(li,{style:{color:"#1D70F5"}}),onClick:v,children:"\u6DFB\u52A0"})]})},wf=e=>{const[t,n]=N(10),[r,o]=N(1),[a,i]=N(0),[s,l]=N(0),{styles:c,eventsEmit:u,CustomComponents:f,graphId:d,token:g,refreshCount:m}=e,[v,p]=N(!1),[x,b]=N(!1),C=yi(),S=ht(()=>co(co({theme:Ai,mode:"light"},C||{}),c||{}),[C,c]),[y,k]=N("my-graphs"),[w,R]=N("home"),[O,T]=N(null),[E,j]=N(null),[L,$]=N(!1),[_,z]=N(!1),[H,K]=N(!1),[M,W]=N(!1),[X,I]=N(!1),[B,P]=N(!1),[D,U]=N(""),[q,ie]=N(""),[ce,Ae]=N(""),[ke,Ee]=N(""),[Fe,_e]=N(""),[rt,Se]=N(""),[qe,Ke]=N(""),[$e,Ve]=N(""),[oe,ae]=N(""),[pe,Te]=N(""),[ve,dt]=N({}),gn=se(null),hn=se(0),Ht=se(""),[Ft,mn]=N([]),[vn,yn]=N([]),[An,ir]=N([]),[Tt,Ut]=N([]),[bn,sr]=N(0),[ot,xn]=N({pageNo:1,pageSize:6}),[xt,Cn]=N({pageNo:1,pageSize:6}),[En,$t]=N(void 0),[Ct,Et]=N(void 0);ne(()=>{console.log("tableList",Tt),console.log("myGraphLibraryCards",Ft),console.log("myPage",ot)},[Tt,Ft,ot]);const Vt=async()=>{try{b(!0);const V=await yd({id:ve.id},{token:g||""});b(!1),V&&(ft(),Ie.success("\u89E3\u9664\u5173\u8054\u6210\u529F!"),K(!1))}catch{b(!1)}},Qt=async(V,F)=>{try{b(!0);const Y=await Jo(V,{token:g||""});b(!1),Y?(F&&F("success"),ft(),Ie.success("\u4FDD\u5B58\u6210\u529F!"),I(!1)):F&&F("fail")}catch{F&&F("fail"),b(!1)}},at=async(V,F,Y)=>{try{b(!0);const te=await Jo(V,{token:g||""});b(!1),te?(F&&F("success"),ft(),Ie.success(`${Y==="replace"?"\u66FF\u6362":"\u7F16\u8F91"}\u6210\u529F!`),W(!1)):F&&F("fail")}catch{F&&F("fail"),b(!1)}},it=()=>y==="my-graphs"?{fuzzySpace:rt||"",fuzzy:Fe||""}:{fuzzySpace:$e||"",fuzzy:qe||""},Sn=async V=>{const F=xt.pageNo||1,Y=xt.pageSize||50;try{const te=await ud({current:F,size:Y,pageNo:F,pageSize:Y,...it()},V);if(te){const{total:de,records:me}=te;Et(de);const Ze=Math.max(0,(F-1)*Y),qt=(me||[]).map((Qe,Me)=>({...Qe,__absIndex:Number(Ze+Me)}));yn(Qe=>{const Me=new Map;return(Array.isArray(Qe)?Qe:[]).forEach(ye=>Me.set(String(ye.id),ye)),qt.forEach(ye=>Me.set(String(ye.id),ye)),Array.from(Me.values()).sort((ye,Kt)=>(ye.__absIndex??0)-(Kt.__absIndex??0))})}}catch{}},cr=async V=>{const F=ot.pageNo||1,Y=ot.pageSize||6;try{const te=await ld({current:F,size:Y,pageNo:F,pageSize:Y,...it()},V);if(te){const{total:de,records:me}=te;$t(de);const Ze=Math.max(0,(F-1)*Y),qt=(me||[]).map((Qe,Me)=>({...Qe,__absIndex:Number(Ze+Me)}));mn(Qe=>{const Me=new Map;return(Array.isArray(Qe)?Qe:[]).forEach(ye=>Me.set(String(ye.id),ye)),qt.forEach(ye=>Me.set(String(ye.id),ye)),Array.from(Me.values()).sort((ye,Kt)=>(ye.__absIndex??0)-(Kt.__absIndex??0))})}}catch{}},he=async()=>{try{const V=++hn.current,F=r,Y=t,te=pe,de=E==null?void 0:E.id;if(!de)return;const me=`${String(de)}::${String(te||"")}::${String(Y)}`,Ze=await md({fuzzy:te,pageNo:F,pageSize:Y,configId:de},{token:g||""});if(V!==hn.current||de!==(E==null?void 0:E.id))return;if(Ze){const{records:qt,total:Qe}=Ze;sr(Qe);const Me=Math.max(0,(F-1)*Y),ye=Td(qt,"id",[{columnId:"actions",value:"edit",label:"\u7F16\u8F91",type:"action"}]).map((kn,Zt)=>({...kn,__absIndex:Me+Zt})),Kt=Ht.current===me;if(Ht.current=me,!Kt){Ut(ye);return}Ut(kn=>{const Zt=new Map;return(Array.isArray(kn)?kn:[]).forEach(Jt=>Zt.set(String(Jt.id),Jt)),ye.forEach(Jt=>Zt.set(String(Jt.id),Jt)),Array.from(Zt.values())})}}catch{}},ft=()=>{Ht.current="",o(1),i(V=>V+1)},lr=()=>{n(10),o(1),i(V=>V+1)},ue=V=>{y==="my-graphs"?xn(F=>({...F,pageNo:V})):Cn(F=>({...F,pageNo:V}))},re=()=>{y==="my-graphs"?(mn([]),$t(void 0)):(yn([]),Et(void 0)),ue(1),l(V=>V+1)};ne(()=>{re()},[m]),ne(()=>{he()},[r,t,a,pe,E==null?void 0:E.id,g]),ne(()=>{wn()},[y,ot,xt,s,Fe,rt,qe,$e]);const Ne=async V=>{try{const F=await fd(V);F&&ir((F||[]).map(Y=>({label:Y,value:Y})))}catch{}},Le=async V=>{try{b(!0);const F=await vd(V,{token:g||""});b(!1),F&&(ft(),p(!1))}catch{b(!1)}},Rt=async V=>{try{b(!0);const F=await dd(V,{token:g||""});b(!1),F&&(re(),$(!1))}catch{b(!1)}},wn=()=>{y==="my-graphs"?cr({token:g||""}):Sn({token:g||""})};ne(()=>{Ne({token:g||""})},[]);const Yt=tn(async(V,F)=>{if(await new Promise(Y=>setTimeout(Y,600)),F){const Y=new Error(`\u5220\u9664\u5931\u8D25\uFF08mock\uFF09\uFF1A${V}`);throw Y.code="MOCK_DELETE_FAILED",Y}return{ok:!0,id:V}},[]),Wt=tn(async V=>{var Y,te,de;const F=gn.current;try{(Y=F==null?void 0:F.addPending)==null||Y.call(F,V),await Yt(V,!1),(te=F==null?void 0:F.removeItem)==null||te.call(F,V)}catch(me){(de=F==null?void 0:F.removePending)==null||de.call(F,V),u==null||u("graphbase_request_error_delete_graph_library",{cardId:V,message:(me==null?void 0:me.message)||"\u5220\u9664\u5931\u8D25",error:me},null)}},[u,Yt]),Xt=ht(()=>y==="my-graphs"?Ft:vn,[y,Ft,vn]);ne(()=>{ae(y==="my-graphs"?q:ke)},[q,ke,y]),ne(()=>{console.log("tableSearchDraft",oe)},[oe]);const ur=ht(()=>({label:"",model:"tabs",defaultActiveId:y,views:[{id:"my-graphs",label:"\u6211\u7684\u56FE\u8C31\u5E93",type:"card",cardType:"customized",viewBehavior:"pagination",rowHeight:160,viewPageSize:ot.pageSize,requestPagesize:100,total:En,toolbar:[{icon:h("img",{src:Wu,width:16}),type:"button",key:"create_graph_library",label:"\u65B0\u5EFA\u56FE\u8C31\u5E93",btnType:"primary"},{type:"customized",key:"search_library",position:"right",component:Mn,componentProps:{placeholder:"\u641C\u7D22\u56FE\u8C31\u5E93\u540D\u79F0",value:D,size:"md",onSearchChange:()=>{_e(D||""),re()}}},{type:"customized",key:"search_graph",position:"right",component:Mn,componentProps:{placeholder:"\u641C\u7D22\u56FE\u8C31\u540D\u79F0",value:q,size:"md",onSearchChange:()=>{Se(q||""),re()}}}]},{id:"shared-graphs",label:"\u5171\u4EAB\u56FE\u8C31\u5E93",type:"card",cardType:"customized",viewBehavior:"pagination",rowHeight:160,viewPageSize:xt.pageSize,requestPagesize:100,total:Ct,toolbar:[{type:"customized",key:"share_search_library",position:"right",component:Mn,componentProps:{placeholder:"\u641C\u7D22\u56FE\u8C31\u5E93\u540D\u79F0",value:ce,size:"md",onSearchChange:()=>{Ke(ce||""),re()}}},{type:"customized",key:"share_search_graph",position:"right",component:Mn,componentProps:{placeholder:"\u641C\u7D22\u56FE\u8C31\u540D\u79F0",value:ke,size:"md",onSearchChange:()=>{Ve(ke||""),re()}}}]}],dataSource:Xt.map(V=>({...V,cardtype:"customized",render:F=>h(nf,{data:F,getList:wn,graphDbType:An,onClick:()=>{j(F),R("library-list"),ae(""),Te(""),lr()},refreshCardGraphList:re,onEdit:()=>u==null?void 0:u("graphbase_card_action_edit",{graphId:d,cardId:F.id,source:y==="my-graphs"?"my":"shared"},null),onDelete:()=>Wt(String(F.id)),token:g||""})})),eventsEmit:(V,F,Y)=>{if(console.log("Event data",V,F,Y),Y&&(gn.current=Y),V==="pagination:request_merge_data"){const{viewId:te,request:de}=F;de&&(te==="my-graphs"?xn(me=>({...me,...de})):Cn(me=>({...me,...de})));return}if(V==="select"&&(F!=null&&F.id)){const te=F.id==="shared-graphs"?"shared-graphs":"my-graphs";k(te)}V==="toolbar_create_graph_library"&&$(!0),V==="toolbar_search_library_change"&&U(String((F==null?void 0:F.value)??"")),V==="toolbar_search_graph_change"&&ie(String((F==null?void 0:F.value)??"")),V==="toolbar_share_search_library_change"&&Ae(String((F==null?void 0:F.value)??"")),V==="toolbar_share_search_graph_change"&&Ee(String((F==null?void 0:F.value)??""))},styles:S}),[Xt,y,u,d,S,ce,ke,ot,xt,En,Ct,re]),dr=V=>{Te(String(V??"")),ft()},ze=(V,F,Y)=>{if(console.log("Table Event:name",V),console.log("Table Event:data",F),V==="pagination:request_merge_data"){const te=(F==null?void 0:F.request)||{},de=Number(te.pageSize??t)||t,me=Math.max(1,Number(te.pageNo??r)||r);n(de),o(me),i(Ze=>Ze+1);return}if(V==="toolbar_search_name_change"){ae(String((F==null?void 0:F.value)??""));return}if(V==="toolbar_add"){p(!0);return}if(V==="table_action_edit"){u==null||u("graphbase_table_action_edit",{graphId:d,libraryId:E==null?void 0:E.id,row:F},Y);return}if(V==="table_action_download"){u==null||u("graphbase_table_action_download",{graphId:d,libraryId:E==null?void 0:E.id,row:F},Y);return}if(V==="table_action_more"){u==null||u("graphbase_table_action_more",{graphId:d,libraryId:E==null?void 0:E.id,row:F},Y);return}u==null||u(`graphbase_${V}`,{...F,graphId:d,libraryId:E==null?void 0:E.id},Y)},pi=ht(()=>{const V=(E==null?void 0:E.name)||"\u56FE\u8C31\u5E93",F=`library-table-${String((E==null?void 0:E.id)??"none")}-${String(pe||"")}`;return{label:"",model:null,defaultActiveId:F,views:[{id:F,label:V,type:"table",viewBehavior:"pagination",allowMultiSelect:!1,total:bn,requestPagesize:t,viewPageSize:t,emptyComponent:lf,columns:[{title:"\u56FE\u8C31\u540D\u79F0",id:"graphName",type:"text",render:(Y,te)=>G("div",{className:"flex items-center",children:[h("img",{src:Ku,width:18,height:18,style:{height:"18px",marginRight:"20px"}}),h("div",{className:"columnGraphName",onClick:()=>{R("graphView"),T(te)},children:Y})]})},{title:"\u56FE\u8C31\u7F16\u53F7",id:"id",type:"text"},{title:"\u6807\u7B7E",id:"labels",type:"text",render:(Y,te)=>{const de=Y||[];return h("div",{className:"flex items-center",children:de.length?h(Si,{placement:"bottom",content:h("div",{className:"w-[400px]",children:de.reduce((me,Ze)=>`${me}#${Ze}# `,"")}),children:G("div",{className:"flex cursor-pointer",onClick:()=>{dt({...te,fromType:"create"}),I(!0)},children:[h(lo,{width:14,style:{cursor:"pointer",marginRight:8},type:"tools/tag"}),de.length||"0"]})}):h("div",{className:"flex cursor-pointer",onClick:()=>{dt({...te,fromType:"create"}),I(!0)},children:h(lo,{width:14,style:{cursor:"pointer",marginRight:8},type:"tools/tag"})})})}},{title:"\u5173\u8054\u65F6\u95F4",id:"gmtModified",type:"text"},{title:"\u6784\u5EFA\u4EBA",id:"updateBy",type:"text"},{title:"\u63CF\u8FF0",id:"graphDesc",type:"text",ellipsis:!0,render:Y=>h(Kr,{title:Y,children:h("div",{style:{maxWidth:200,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:Y})})},{title:"\u64CD\u4F5C",type:"customized",id:"actions",maxWidth:200,component:Y=>G(gt,{children:[h(Fr,{mode:"text",label:"\u7F16\u8F91",onClick:()=>{dt(Y==null?void 0:Y.row),W(!0)},disabled:yt(ct.EDIT,E==null?void 0:E.permission)}),h(Fr,{mode:"text",label:"\u89E3\u9664\u5173\u8054",onClick:()=>{dt(Y==null?void 0:Y.row),K(!0)},disabled:yt(ct.EDIT,E==null?void 0:E.permission)})]})}],toolbar:[{type:"button",key:"add",label:"\u5173\u8054\u77E5\u8BC6\u56FE\u8C31",position:"left",btnType:"primary",icon:h("img",{src:qu,width:16}),disabled:(Y=>yt(ct.EDIT,Y==null?void 0:Y.permission))(E)},{title:"\u641C\u7D22",type:"customized",id:"search",maxWidth:200,position:"right",key:"search_name",component:cf,componentProps:{value:oe,activeLibrary:E,onSearchChange:dr,setOpenConfigDrawer:()=>u&&u("graphbase_set_open_config_drawer",{activeLibrary:E},null)}}]}],dataSource:Tt,eventsEmit:ze,styles:S}},[E,u,d,S,Tt,oe,pe,bn,t,ze]),gi=tn(()=>{Ut([]),R("home"),j(null),u==null||u("graphbase_nav_back_home",{graphId:d},null)},[u,d]);return G(gt,{children:[h(bi,{title:w==="home"?"\u56FE\u8C31\u5E93":(E==null?void 0:E.name)||"\u56FE\u8C31\u5E93",goBack:w==="home"?void 0:gi,styles:S,CustomComponents:f,children:h(tf,{className:"graphbase-home-content",children:w==="home"?h(gt,{children:h(uo,{...ur},"graph-library-home")}):w==="library-list"?h(uo,{...pi},`graph-library-list-${String((E==null?void 0:E.id)??"none")}-${String(pe||"")}`):h(gt,{})})}),h(Fd,{token:g||"",activeLibrary:E,visible:v,onClose:()=>{p(!1)},onConfirm:Le,confirmLoading:x}),h($d,{open:w==="graphView",graphRow:O,goBack:()=>R("library-list"),token:g,onConfirm:at,activeLibrary:E,confirmLoading:x}),h(Yd,{visible:H,onCancel:()=>K(!1),onConfirm:Vt,confirmLoading:x}),h(Xd,{visible:M,onCancel:()=>W(!1),onConfirm:at,tableRow:ve,confirmLoading:x}),h(Zd,{visible:X,onCancel:()=>I(!1),onConfirm:Qt,tableRow:ve,confirmLoading:x,activeLibrary:E,token:g||""}),h(Kd,{visible:B,onCancel:()=>P(!1)}),h(ci,{visible:L,onCancel:()=>{$(!1)},initialValues:{},graphDbType:An,onSubmit:Rt,confirmLoading:x})]})},tf=Ue.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
|
+
`,Mn=({placeholder:e,value:t,onAction:n,size:r="md",onSearchChange:o})=>h(De,{placeholder:e,suffix:h(ui,{onClick:()=>{o(t||"")}}),style:{width:"240px"},value:t,onChange:a=>n==null?void 0:n("change",{value:a.target.value}),onKeyDown:a=>{!a.shiftKey&&a.key==="Enter"&&(a.preventDefault(),o(t||""))}});Ue.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
|
+
`;Ue.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
|
+
`;Ue.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
|
+
`;Ue.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 kr=54,nf=({data:e,onClick:t,graphDbType:n,token:r,refreshCardGraphList:o})=>{const{name:a,desc:i,permission:s}=e||{},l=se(null),c=se(null),u=se(null),[f,d]=N(!1),[g,m]=N({}),[v,p]=N(!1),[x,b]=N(!1),[C,S]=N(!1),[y,k]=N({}),[w,R]=N(!1),O=async T=>{try{R(!0);const E=await gd(T,{token:r||""});R(!1),E&&(o(),b(!1))}catch{R(!1)}};return aa(()=>{if(!f||!c.current)return;const T=c.current,E=()=>{const j=T.getBoundingClientRect(),L=Math.min(Math.max(8,j.right-kr),window.innerWidth-kr-8);m({position:"fixed",top:j.bottom+4,left:L,width:kr,zIndex:1e4})};return E(),window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[f]),ne(()=>{if(!f)return;const T=E=>{var L,$;const j=E.target;j&&((L=l.current)!=null&&L.contains(j)||($=u.current)!=null&&$.contains(j)||d(!1))};return document.addEventListener("pointerdown",T),()=>document.removeEventListener("pointerdown",T)},[f]),ne(()=>{if(!f)return;const T=()=>d(!1);return window.addEventListener("scroll",T,!0),()=>window.removeEventListener("scroll",T,!0)},[f]),G(gt,{children:[h(rf,{className:"graphbase-card",ref:l,onClick:t,children:G("div",{className:"",children:[G("div",{className:"flex items-center ",children:[h("img",{src:Xu,width:40,height:40}),h("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"})]}),h("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||""}),h("div",{style:{marginTop:"12px",display:"flex",justifyContent:"flex-end"},children:h(of,{className:"graphbase-card-more-wrap",children:h(af,{ref:c,type:"button",className:"graphbase-card-more-btn","aria-label":"\u66F4\u591A","aria-expanded":f,onClick:T=>{T.stopPropagation(),d(E=>!E)},children:"\xB7\xB7\xB7"})})})]})}),f&&typeof document<"u"&&ia(G(sf,{ref:u,className:"graphbase-card-more-menu",style:g,role:"menu",children:[h(ra,{type:"button",role:"menuitem",onClick:T=>{T.stopPropagation(),k({...e,account:e.userAccount||"",password:e.userAccountPassword||""}),d(!1),b(!0)},disabled:yt(ct.EDIT,s),children:"\u7F16\u8F91"}),h(ra,{type:"button",role:"menuitem",onClick:T=>{T.stopPropagation(),k(e),d(!1),p(!0)},disabled:yt(ct.AUTHORIZE,s),children:"\u5220\u9664"})]}),document.body),h(nd,{visible:v,confirmLoading:C,onConfirm:async()=>{try{S(!0);const T=await pd({id:y.id},{token:r||""});S(!1),p(!1),T&&o()}catch{S(!1)}},onCancel:()=>{p(!1)}}),h(ci,{visible:x,onCancel:function(){b(!1)},onSubmit:O,initialValues:y,graphDbType:n,confirmLoading:w,fromType:"edit"})]})},rf=Ue.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
|
+
`;Ue.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 of=Ue.div.attrs({className:"graphbase-card-more-wrap"})`
|
|
205
|
+
position: relative;
|
|
206
|
+
flex: 0 0 auto;
|
|
207
|
+
`,af=Ue.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
|
+
`,sf=Ue.div.attrs({className:"graphbase-card-more-menu"})`
|
|
231
|
+
box-sizing: border-box;
|
|
232
|
+
width: 54px;
|
|
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
|
+
`;Ue.div.attrs({className:"graphbase-card-more-divider"})`
|
|
239
|
+
height: 1px;
|
|
240
|
+
margin: 4px 0;
|
|
241
|
+
background: rgba(226, 232, 240, 0.9);
|
|
242
|
+
`;const ra=Ue.button.attrs({className:"graphbase-card-more-item"})`
|
|
243
|
+
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
244
|
+
width: 100%;
|
|
245
|
+
text-align: left;
|
|
246
|
+
padding: 6px 8px;
|
|
247
|
+
font-size: 14px;
|
|
248
|
+
line-height: 18px;
|
|
249
|
+
color: rgba(30, 41, 59, 1);
|
|
250
|
+
background: transparent;
|
|
251
|
+
border: 0;
|
|
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
|
+
`,cf=({placeholder:e,value:t,onAction:n,size:r="md",onSearchChange:o,setOpenConfigDrawer:a,activeLibrary:i})=>G("div",{style:{display:"flex"},children:[h(De,{placeholder:"\u8F93\u5165\u540D\u79F0\u641C\u7D22",suffix:h(ui,{onClick:()=>{o(t||"")}}),style:{width:"240px"},value:t,onChange:s=>n==null?void 0:n("change",{value:s.target.value}),onKeyDown:s=>{!s.shiftKey&&s.key==="Enter"&&(s.preventDefault(),o(t||""))}}),h(Fr,{style:{marginLeft:12,flexShrink:0},onClick:()=>{a(!0)},disabled:yt(ct.VIEW,i==null?void 0:i.permission),children:"\u914D\u7F6E"})]}),lf=({description:e})=>G("div",{className:"flex flex-col items-center justify-center gap-3",style:{height:"100%",padding:"100px 0"},children:[h("img",{src:Zu,width:120}),h("div",{style:{fontSize:"16px",color:"#888888"},children:"\u6682\u65E0\u56FE\u8C31\u6587\u4EF6"})]});export{wf as G,Kn as _,ji as a,Xc as b,Sf as c,Nr as g,Cc as i,Us as m,vr as s,Ef as t};
|