T;function k(S,C){T.code+=S}function m(S,C=!0){const s=C?a:"";k(p?s+" ".repeat(S):s)}function D(S=!0){const C=++T.indentLevel;S&&m(C)}function A(S=!0){const C=--T.indentLevel;S&&m(C)}function I(){m(T.indentLevel)}return{context:_,push:k,indent:D,deindent:A,newline:I,helper:S=>`_${S}`,needIndent:()=>T.needIndent}}function Ke(r,n){const{helper:c}=r;r.push(`${c("linked")}(`),x(r,n.key),n.modifier?(r.push(", "),x(r,n.modifier),r.push(", _type")):r.push(", undefined, _type"),r.push(")")}function Ye(r,n){const{helper:c,needIndent:a}=r;r.push(`${c("normalize")}([`),r.indent(a());const p=n.items.length;for(let u=0;u1){r.push(`${c("plural")}([`),r.indent(a());const p=n.cases.length;for(let u=0;u
{const c=j(n.mode)?n.mode:"normal",a=j(n.filename)?n.filename:"message.intl";n.sourceMap;const p=n.breakLineCode!=null?n.breakLineCode:c==="arrow"?";":`
+`,u=n.needIndent?n.needIndent:c!=="arrow",T=r.helpers||[],_=ge(r,{filename:a,breakLineCode:p,needIndent:u});_.push(c==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),_.indent(u),T.length>0&&(_.push(`const { ${ne(T.map(D=>`${D}: _${D}`),", ")} } = ctx`),_.newline()),_.push("return "),x(_,r),_.deindent(u),_.push("}"),delete r.helpers;const{code:k,map:m}=_.context();return{ast:r,code:k,map:m?m.toJSON():void 0}};function Je(r,n={}){const c=te({},n),a=!!c.jit,p=!!c.minify,u=c.optimize==null?!0:c.optimize,_=Me(c).parse(r);return a?(u&&$e(_),p&&Y(_),{ast:_,code:""}):(we(_,c),Ge(_,c))}export{Be as C,Je as b,re as c,Ve as d};
diff --git a/js/@intlify_message-compiler@11.1.3-DphV8pYf.js.gz b/js/@intlify_message-compiler@11.1.3-DphV8pYf.js.gz
new file mode 100644
index 00000000..56ad9ccb
Binary files /dev/null and b/js/@intlify_message-compiler@11.1.3-DphV8pYf.js.gz differ
diff --git a/js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js b/js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js
deleted file mode 100644
index 3378ab8c..00000000
--- a/js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * message-compiler v9.13.1
- * (c) 2024 kazuya kawaguchi
- * Released under the MIT License.
- */function me(r,n,u){return{line:r,column:n,offset:u}}function B(r,n,u){return{start:r,end:n}}const ye=/\{([0-9a-zA-Z]+)\}/g;function se(r,...n){return n.length===1&&be(n[0])&&(n=n[0]),(!n||!n.hasOwnProperty)&&(n={}),r.replace(ye,(u,o)=>n.hasOwnProperty(o)?n[o]:"")}const ue=Object.assign,te=r=>typeof r=="string",be=r=>r!==null&&typeof r=="object";function ce(r,n=""){return r.reduce((u,o,N)=>N===0?u+o:u+n+o,"")}const ae={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Ue={[ae.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Re(r,n,...u){const o=se(Ue[r],...u||[]),N={message:String(o),code:r};return n&&(N.location=n),N}const L={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Me={[L.EXPECTED_TOKEN]:"Expected token: '{0}'",[L.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[L.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[L.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[L.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[L.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[L.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[L.EMPTY_PLACEHOLDER]:"Empty placeholder",[L.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[L.INVALID_LINKED_FORMAT]:"Invalid linked format",[L.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[L.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[L.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[L.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[L.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[L.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function V(r,n,u={}){const{domain:o,messages:N,args:f}=u,h=se((N||Me)[r]||"",...f||[]),_=new SyntaxError(String(h));return _.code=r,n&&(_.location=n),_.domain=o,_}function nt(r){throw r}const Y=" ",ve="\r",y=`
-`,Xe="\u2028",we="\u2029";function Ye(r){const n=r;let u=0,o=1,N=1,f=0;const h=l=>n[l]===ve&&n[l+1]===y,_=l=>n[l]===y,O=l=>n[l]===we,m=l=>n[l]===Xe,b=l=>h(l)||_(l)||O(l)||m(l),S=()=>u,I=()=>o,M=()=>N,v=()=>f,T=l=>h(l)||O(l)||m(l)?y:n[l],C=()=>T(u),X=()=>T(u+f);function x(){return f=0,b(u)&&(o++,N=0),h(u)&&u++,u++,N++,n[u]}function s(){return h(u+f)&&f++,f++,n[u+f]}function a(){u=0,o=1,N=1,f=0}function d(l=0){f=l}function c(){const l=u+f;for(;l!==u;)x();f=0}return{index:S,line:I,column:M,peekOffset:v,charAt:T,currentChar:C,currentPeek:X,next:x,peek:s,reset:a,resetPeek:d,skipToPeek:c}}const K=void 0,ge=".",ne="'",Ke="tokenizer";function He(r,n={}){const u=n.location!==!1,o=Ye(r),N=()=>o.index(),f=()=>me(o.line(),o.column(),o.index()),h=f(),_=N(),O={currentType:14,offset:_,startLoc:h,endLoc:h,lastType:14,lastOffset:_,lastStartLoc:h,lastEndLoc:h,braceNest:0,inLinked:!1,text:""},m=()=>O,{onError:b}=n;function S(e,t,i,...E){const k=m();if(t.column+=i,t.offset+=i,b){const A=u?B(k.startLoc,t):null,g=V(e,A,{domain:Ke,args:E});b(g)}}function I(e,t,i){e.endLoc=f(),e.currentType=t;const E={type:t};return u&&(E.loc=B(e.startLoc,e.endLoc)),i!=null&&(E.value=i),E}const M=e=>I(e,14);function v(e,t){return e.currentChar()===t?(e.next(),t):(S(L.EXPECTED_TOKEN,f(),0,t),"")}function T(e){let t="";for(;e.currentPeek()===Y||e.currentPeek()===y;)t+=e.currentPeek(),e.peek();return t}function C(e){const t=T(e);return e.skipToPeek(),t}function X(e){if(e===K)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function x(e){if(e===K)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function s(e,t){const{currentType:i}=t;if(i!==2)return!1;T(e);const E=X(e.currentPeek());return e.resetPeek(),E}function a(e,t){const{currentType:i}=t;if(i!==2)return!1;T(e);const E=e.currentPeek()==="-"?e.peek():e.currentPeek(),k=x(E);return e.resetPeek(),k}function d(e,t){const{currentType:i}=t;if(i!==2)return!1;T(e);const E=e.currentPeek()===ne;return e.resetPeek(),E}function c(e,t){const{currentType:i}=t;if(i!==8)return!1;T(e);const E=e.currentPeek()===".";return e.resetPeek(),E}function l(e,t){const{currentType:i}=t;if(i!==9)return!1;T(e);const E=X(e.currentPeek());return e.resetPeek(),E}function p(e,t){const{currentType:i}=t;if(!(i===8||i===12))return!1;T(e);const E=e.currentPeek()===":";return e.resetPeek(),E}function P(e,t){const{currentType:i}=t;if(i!==10)return!1;const E=()=>{const A=e.currentPeek();return A==="{"?X(e.peek()):A==="@"||A==="%"||A==="|"||A===":"||A==="."||A===Y||!A?!1:A===y?(e.peek(),E()):D(e,!1)},k=E();return e.resetPeek(),k}function U(e){T(e);const t=e.currentPeek()==="|";return e.resetPeek(),t}function W(e){const t=T(e),i=e.currentPeek()==="%"&&e.peek()==="{";return e.resetPeek(),{isModulo:i,hasSpace:t.length>0}}function D(e,t=!0){const i=(k=!1,A="",g=!1)=>{const H=e.currentPeek();return H==="{"?A==="%"?!1:k:H==="@"||!H?A==="%"?!0:k:H==="%"?(e.peek(),i(k,"%",!0)):H==="|"?A==="%"||g?!0:!(A===Y||A===y):H===Y?(e.peek(),i(!0,Y,g)):H===y?(e.peek(),i(!0,y,g)):!0},E=i();return t&&e.resetPeek(),E}function w(e,t){const i=e.currentChar();return i===K?K:t(i)?(e.next(),i):null}function oe(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function le(e){return w(e,oe)}function fe(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function Ee(e){return w(e,fe)}function de(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function Le(e){return w(e,de)}function Ne(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function _e(e){return w(e,Ne)}function Z(e){let t="",i="";for(;t=Le(e);)i+=t;return i}function pe(e){C(e);const t=e.currentChar();return t!=="%"&&S(L.EXPECTED_TOKEN,f(),0,t),e.next(),"%"}function z(e){let t="";for(;;){const i=e.currentChar();if(i==="{"||i==="}"||i==="@"||i==="|"||!i)break;if(i==="%")if(D(e))t+=i,e.next();else break;else if(i===Y||i===y)if(D(e))t+=i,e.next();else{if(U(e))break;t+=i,e.next()}else t+=i,e.next()}return t}function he(e){C(e);let t="",i="";for(;t=Ee(e);)i+=t;return e.currentChar()===K&&S(L.UNTERMINATED_CLOSING_BRACE,f(),0),i}function Ce(e){C(e);let t="";return e.currentChar()==="-"?(e.next(),t+=`-${Z(e)}`):t+=Z(e),e.currentChar()===K&&S(L.UNTERMINATED_CLOSING_BRACE,f(),0),t}function Ie(e){return e!==ne&&e!==y}function Te(e){C(e),v(e,"'");let t="",i="";for(;t=w(e,Ie);)t==="\\"?i+=Ae(e):i+=t;const E=e.currentChar();return E===y||E===K?(S(L.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,f(),0),E===y&&(e.next(),v(e,"'")),i):(v(e,"'"),i)}function Ae(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return ee(e,t,4);case"U":return ee(e,t,6);default:return S(L.UNKNOWN_ESCAPE_SEQUENCE,f(),0,t),""}}function ee(e,t,i){v(e,t);let E="";for(let k=0;k{const E=e.currentChar();return E==="{"||E==="%"||E==="@"||E==="|"||E==="("||E===")"||!E||E===Y?i:(i+=E,e.next(),t(i))};return t("")}function Q(e){C(e);const t=v(e,"|");return C(e),t}function q(e,t){let i=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&S(L.NOT_ALLOW_NEST_PLACEHOLDER,f(),0),e.next(),i=I(t,2,"{"),C(e),t.braceNest++,i;case"}":return t.braceNest>0&&t.currentType===2&&S(L.EMPTY_PLACEHOLDER,f(),0),e.next(),i=I(t,3,"}"),t.braceNest--,t.braceNest>0&&C(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),i;case"@":return t.braceNest>0&&S(L.UNTERMINATED_CLOSING_BRACE,f(),0),i=F(e,t)||M(t),t.braceNest=0,i;default:{let k=!0,A=!0,g=!0;if(U(e))return t.braceNest>0&&S(L.UNTERMINATED_CLOSING_BRACE,f(),0),i=I(t,1,Q(e)),t.braceNest=0,t.inLinked=!1,i;if(t.braceNest>0&&(t.currentType===5||t.currentType===6||t.currentType===7))return S(L.UNTERMINATED_CLOSING_BRACE,f(),0),t.braceNest=0,j(e,t);if(k=s(e,t))return i=I(t,5,he(e)),C(e),i;if(A=a(e,t))return i=I(t,6,Ce(e)),C(e),i;if(g=d(e,t))return i=I(t,7,Te(e)),C(e),i;if(!k&&!A&&!g)return i=I(t,13,ke(e)),S(L.INVALID_TOKEN_IN_PLACEHOLDER,f(),0,i.value),C(e),i;break}}return i}function F(e,t){const{currentType:i}=t;let E=null;const k=e.currentChar();switch((i===8||i===9||i===12||i===10)&&(k===y||k===Y)&&S(L.INVALID_LINKED_FORMAT,f(),0),k){case"@":return e.next(),E=I(t,8,"@"),t.inLinked=!0,E;case".":return C(e),e.next(),I(t,9,".");case":":return C(e),e.next(),I(t,10,":");default:return U(e)?(E=I(t,1,Q(e)),t.braceNest=0,t.inLinked=!1,E):c(e,t)||p(e,t)?(C(e),F(e,t)):l(e,t)?(C(e),I(t,12,Pe(e))):P(e,t)?(C(e),k==="{"?q(e,t)||E:I(t,11,Oe(e))):(i===8&&S(L.INVALID_LINKED_FORMAT,f(),0),t.braceNest=0,t.inLinked=!1,j(e,t))}}function j(e,t){let i={type:14};if(t.braceNest>0)return q(e,t)||M(t);if(t.inLinked)return F(e,t)||M(t);switch(e.currentChar()){case"{":return q(e,t)||M(t);case"}":return S(L.UNBALANCED_CLOSING_BRACE,f(),0),e.next(),I(t,3,"}");case"@":return F(e,t)||M(t);default:{if(U(e))return i=I(t,1,Q(e)),t.braceNest=0,t.inLinked=!1,i;const{isModulo:k,hasSpace:A}=W(e);if(k)return A?I(t,0,z(e)):I(t,4,pe(e));if(D(e))return I(t,0,z(e));break}}return i}function De(){const{currentType:e,offset:t,startLoc:i,endLoc:E}=O;return O.lastType=e,O.lastOffset=t,O.lastStartLoc=i,O.lastEndLoc=E,O.offset=N(),O.startLoc=f(),o.currentChar()===K?I(O,14):j(o,O)}return{nextToken:De,currentOffset:N,currentPosition:f,context:m}}const xe="parser",$e=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ge(r,n,u){switch(r){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(n||u,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function Fe(r={}){const n=r.location!==!1,{onError:u,onWarn:o}=r;function N(s,a,d,c,...l){const p=s.currentPosition();if(p.offset+=c,p.column+=c,u){const P=n?B(d,p):null,U=V(a,P,{domain:xe,args:l});u(U)}}function f(s,a,d,c,...l){const p=s.currentPosition();if(p.offset+=c,p.column+=c,o){const P=n?B(d,p):null;o(Re(a,P,l))}}function h(s,a,d){const c={type:s};return n&&(c.start=a,c.end=a,c.loc={start:d,end:d}),c}function _(s,a,d,c){n&&(s.end=a,s.loc&&(s.loc.end=d))}function O(s,a){const d=s.context(),c=h(3,d.offset,d.startLoc);return c.value=a,_(c,s.currentOffset(),s.currentPosition()),c}function m(s,a){const d=s.context(),{lastOffset:c,lastStartLoc:l}=d,p=h(5,c,l);return p.index=parseInt(a,10),s.nextToken(),_(p,s.currentOffset(),s.currentPosition()),p}function b(s,a,d){const c=s.context(),{lastOffset:l,lastStartLoc:p}=c,P=h(4,l,p);return P.key=a,d===!0&&(P.modulo=!0),s.nextToken(),_(P,s.currentOffset(),s.currentPosition()),P}function S(s,a){const d=s.context(),{lastOffset:c,lastStartLoc:l}=d,p=h(9,c,l);return p.value=a.replace($e,Ge),s.nextToken(),_(p,s.currentOffset(),s.currentPosition()),p}function I(s){const a=s.nextToken(),d=s.context(),{lastOffset:c,lastStartLoc:l}=d,p=h(8,c,l);return a.type!==12?(N(s,L.UNEXPECTED_EMPTY_LINKED_MODIFIER,d.lastStartLoc,0),p.value="",_(p,c,l),{nextConsumeToken:a,node:p}):(a.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,R(a)),p.value=a.value||"",_(p,s.currentOffset(),s.currentPosition()),{node:p})}function M(s,a){const d=s.context(),c=h(7,d.offset,d.startLoc);return c.value=a,_(c,s.currentOffset(),s.currentPosition()),c}function v(s){const a=s.context(),d=h(6,a.offset,a.startLoc);let c=s.nextToken();if(c.type===9){const l=I(s);d.modifier=l.node,c=l.nextConsumeToken||s.nextToken()}switch(c.type!==10&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(c)),c=s.nextToken(),c.type===2&&(c=s.nextToken()),c.type){case 11:c.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(c)),d.key=M(s,c.value||"");break;case 5:c.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(c)),d.key=b(s,c.value||"");break;case 6:c.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(c)),d.key=m(s,c.value||"");break;case 7:c.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(c)),d.key=S(s,c.value||"");break;default:{N(s,L.UNEXPECTED_EMPTY_LINKED_KEY,a.lastStartLoc,0);const l=s.context(),p=h(7,l.offset,l.startLoc);return p.value="",_(p,l.offset,l.startLoc),d.key=p,_(d,l.offset,l.startLoc),{nextConsumeToken:c,node:d}}}return _(d,s.currentOffset(),s.currentPosition()),{node:d}}function T(s){const a=s.context(),d=a.currentType===1?s.currentOffset():a.offset,c=a.currentType===1?a.endLoc:a.startLoc,l=h(2,d,c);l.items=[];let p=null,P=null;do{const D=p||s.nextToken();switch(p=null,D.type){case 0:D.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(D)),l.items.push(O(s,D.value||""));break;case 6:D.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(D)),l.items.push(m(s,D.value||""));break;case 4:P=!0;break;case 5:D.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(D)),l.items.push(b(s,D.value||"",!!P)),P&&(f(s,ae.USE_MODULO_SYNTAX,a.lastStartLoc,0,R(D)),P=null);break;case 7:D.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,R(D)),l.items.push(S(s,D.value||""));break;case 8:{const w=v(s);l.items.push(w.node),p=w.nextConsumeToken||null;break}}}while(a.currentType!==14&&a.currentType!==1);const U=a.currentType===1?a.lastOffset:s.currentOffset(),W=a.currentType===1?a.lastEndLoc:s.currentPosition();return _(l,U,W),l}function C(s,a,d,c){const l=s.context();let p=c.items.length===0;const P=h(1,a,d);P.cases=[],P.cases.push(c);do{const U=T(s);p||(p=U.items.length===0),P.cases.push(U)}while(l.currentType!==14);return p&&N(s,L.MUST_HAVE_MESSAGES_IN_PLURAL,d,0),_(P,s.currentOffset(),s.currentPosition()),P}function X(s){const a=s.context(),{offset:d,startLoc:c}=a,l=T(s);return a.currentType===14?l:C(s,d,c,l)}function x(s){const a=He(s,ue({},r)),d=a.context(),c=h(0,d.offset,d.startLoc);return n&&c.loc&&(c.loc.source=s),c.body=X(a),r.onCacheKey&&(c.cacheKey=r.onCacheKey(s)),d.currentType!==14&&N(a,L.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,s[d.offset]||""),_(c,a.currentOffset(),a.currentPosition()),c}return{parse:x}}function R(r){if(r.type===14)return"EOF";const n=(r.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"…":n}function Be(r,n={}){const u={ast:r,helpers:new Set};return{context:()=>u,helper:f=>(u.helpers.add(f),f)}}function re(r,n){for(let u=0;uie(u)),r}function ie(r){if(r.items.length===1){const n=r.items[0];(n.type===3||n.type===9)&&(r.static=n.value,delete n.value)}else{const n=[];for(let u=0;uh;function O(T,C){h.code+=T}function m(T,C=!0){const X=C?o:"";O(N?X+" ".repeat(T):X)}function b(T=!0){const C=++h.indentLevel;T&&m(C)}function S(T=!0){const C=--h.indentLevel;T&&m(C)}function I(){m(h.indentLevel)}return{context:_,push:O,indent:b,deindent:S,newline:I,helper:T=>`_${T}`,needIndent:()=>h.needIndent}}function Je(r,n){const{helper:u}=r;r.push(`${u("linked")}(`),G(r,n.key),n.modifier?(r.push(", "),G(r,n.modifier),r.push(", _type")):r.push(", undefined, _type"),r.push(")")}function Ze(r,n){const{helper:u,needIndent:o}=r;r.push(`${u("normalize")}([`),r.indent(o());const N=n.items.length;for(let f=0;f1){r.push(`${u("plural")}([`),r.indent(o());const N=n.cases.length;for(let f=0;f{const u=te(n.mode)?n.mode:"normal",o=te(n.filename)?n.filename:"message.intl";n.sourceMap;const N=n.breakLineCode!=null?n.breakLineCode:u==="arrow"?";":`
-`,f=n.needIndent?n.needIndent:u!=="arrow",h=r.helpers||[],_=je(r,{filename:o,breakLineCode:N,needIndent:f});_.push(u==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),_.indent(f),h.length>0&&(_.push(`const { ${ce(h.map(b=>`${b}: _${b}`),", ")} } = ctx`),_.newline()),_.push("return "),G(_,r),_.deindent(f),_.push("}"),delete r.helpers;const{code:O,map:m}=_.context();return{ast:r,code:O,map:m?m.toJSON():void 0}};function rt(r,n={}){const u=ue({},n),o=!!u.jit,N=!!u.minify,f=u.optimize==null?!0:u.optimize,_=Fe(u).parse(r);return o?(f&&We(_),N&&$(_),{ast:_,code:""}):(Ve(_,u),tt(_,u))}export{ae as C,L as a,rt as b,V as c,nt as d};
diff --git a/js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js.gz b/js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js.gz
deleted file mode 100644
index 20640a18..00000000
Binary files a/js/@intlify_message-compiler@9.13.1-4K4Nd_mc.js.gz and /dev/null differ
diff --git a/js/@intlify_shared@11.1.3-Byx4ULsF.js b/js/@intlify_shared@11.1.3-Byx4ULsF.js
new file mode 100644
index 00000000..eb80142e
--- /dev/null
+++ b/js/@intlify_shared@11.1.3-Byx4ULsF.js
@@ -0,0 +1 @@
+const O=typeof window<"u",h=(t,e=!1)=>e?Symbol.for(t):Symbol(t),w=(t,e,o)=>y({l:t,k:e,s:o}),y=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),S=t=>typeof t=="number"&&isFinite(t),m=t=>a(t)==="[object Date]",A=t=>a(t)==="[object RegExp]",T=t=>b(t)&&Object.keys(t).length===0,_=Object.assign,d=Object.create,p=(t=null)=>d(t);let l;const E=()=>l||(l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:p());function N(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const j=Object.prototype.hasOwnProperty;function P(t,e){return j.call(t,e)}const u=Array.isArray,f=t=>typeof t=="function",x=t=>typeof t=="string",D=t=>typeof t=="boolean",i=t=>t!==null&&typeof t=="object",F=t=>i(t)&&f(t.then)&&f(t.catch),g=Object.prototype.toString,a=t=>g.call(t),b=t=>a(t)==="[object Object]",J=t=>t==null?"":u(t)||b(t)&&t.toString===g?JSON.stringify(t,null,2):String(t);function q(t,e=""){return t.reduce((o,n,r)=>r===0?o+n:o+e+n,"")}function B(t,e){}const c=t=>!i(t)||u(t);function C(t,e){if(c(t)||c(e))throw new Error("Invalid value");const o=[{src:t,des:e}];for(;o.length;){const{src:n,des:r}=o.pop();Object.keys(n).forEach(s=>{s!=="__proto__"&&(i(n[s])&&!i(r[s])&&(r[s]=Array.isArray(n[s])?[]:p()),c(r[s])||c(n[s])?r[s]=n[s]:o.push({src:n[s],des:r[s]}))})}}export{x as a,u as b,b as c,p as d,_ as e,D as f,A as g,i as h,f as i,P as j,E as k,S as l,T as m,m as n,N as o,q as p,F as q,w as r,h as s,J as t,O as u,C as v,B as w};
diff --git a/js/@intlify_shared@11.1.3-Byx4ULsF.js.gz b/js/@intlify_shared@11.1.3-Byx4ULsF.js.gz
new file mode 100644
index 00000000..f1f786eb
Binary files /dev/null and b/js/@intlify_shared@11.1.3-Byx4ULsF.js.gz differ
diff --git a/js/@intlify_shared@9.13.1-CM6R_CZ5.js b/js/@intlify_shared@9.13.1-CM6R_CZ5.js
deleted file mode 100644
index 0c79e1aa..00000000
--- a/js/@intlify_shared@9.13.1-CM6R_CZ5.js
+++ /dev/null
@@ -1,5 +0,0 @@
-/*!
- * shared v9.13.1
- * (c) 2024 kazuya kawaguchi
- * Released under the MIT License.
- */const d=typeof window<"u",O=(t,e=!1)=>e?Symbol.for(t):Symbol(t),h=(t,e,n)=>y({l:t,k:e,s:n}),y=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),j=t=>typeof t=="number"&&isFinite(t),w=t=>p(t)==="[object Date]",S=t=>p(t)==="[object RegExp]",m=t=>g(t)&&Object.keys(t).length===0,T=Object.assign;let a;const E=()=>a||(a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function N(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const b=Object.prototype.hasOwnProperty;function P(t,e){return b.call(t,e)}const f=Array.isArray,l=t=>typeof t=="function",A=t=>typeof t=="string",x=t=>typeof t=="boolean",i=t=>t!==null&&typeof t=="object",D=t=>i(t)&&l(t.then)&&l(t.catch),u=Object.prototype.toString,p=t=>u.call(t),g=t=>{if(!i(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},F=t=>t==null?"":f(t)||g(t)&&t.toString===u?JSON.stringify(t,null,2):String(t);function J(t,e=""){return t.reduce((n,o,r)=>r===0?n+o:n+e+o,"")}function k(t){let e=t;return()=>++e}function q(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const c=t=>!i(t)||f(t);function B(t,e){if(c(t)||c(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:o,des:r}=n.pop();Object.keys(o).forEach(s=>{c(o[s])||c(r[s])?r[s]=o[s]:n.push({src:o[s],des:r[s]})})}}export{A as a,f as b,g as c,T as d,x as e,S as f,i as g,k as h,l as i,E as j,j as k,m as l,w as m,N as n,J as o,D as p,h as q,O as r,d as s,F as t,B as u,P as v,q as w};
diff --git a/js/@intlify_shared@9.13.1-CM6R_CZ5.js.gz b/js/@intlify_shared@9.13.1-CM6R_CZ5.js.gz
deleted file mode 100644
index 81760bfd..00000000
Binary files a/js/@intlify_shared@9.13.1-CM6R_CZ5.js.gz and /dev/null differ
diff --git a/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js b/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js
deleted file mode 100644
index 61bd4dcb..00000000
--- a/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js
+++ /dev/null
@@ -1 +0,0 @@
-var c=[],ne=function(){return c.some(function(e){return e.activeTargets.length>0})},oe=function(){return c.some(function(e){return e.skippedTargets.length>0})},P="ResizeObserver loop completed with undelivered notifications.",se=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:P}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=P),window.dispatchEvent(e)},b;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(b||(b={}));var u=function(e){return Object.freeze(e)},ae=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,u(this)}return e}(),q=function(){function e(t,r,i,n){return this.x=t,this.y=r,this.width=i,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,i=t.y,n=t.top,s=t.right,o=t.bottom,h=t.left,d=t.width,v=t.height;return{x:r,y:i,top:n,right:s,bottom:o,left:h,width:d,height:v}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),C=function(e){return e instanceof SVGElement&&"getBBox"in e},G=function(e){if(C(e)){var t=e.getBBox(),r=t.width,i=t.height;return!r&&!i}var n=e,s=n.offsetWidth,o=n.offsetHeight;return!(s||o||e.getClientRects().length)},I=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},ve=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},p=typeof window<"u"?window:{},z=new WeakMap,_=/auto|scroll/,ce=/^tb|vertical/,ue=/msie|trident/i.test(p.navigator&&p.navigator.userAgent),a=function(e){return parseFloat(e||"0")},f=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new ae((r?t:e)||0,(r?e:t)||0)},W=u({devicePixelContentBoxSize:f(),borderBoxSize:f(),contentBoxSize:f(),contentRect:new q(0,0,0,0)}),J=function(e,t){if(t===void 0&&(t=!1),z.has(e)&&!t)return z.get(e);if(G(e))return z.set(e,W),W;var r=getComputedStyle(e),i=C(e)&&e.ownerSVGElement&&e.getBBox(),n=!ue&&r.boxSizing==="border-box",s=ce.test(r.writingMode||""),o=!i&&_.test(r.overflowY||""),h=!i&&_.test(r.overflowX||""),d=i?0:a(r.paddingTop),v=i?0:a(r.paddingRight),R=i?0:a(r.paddingBottom),l=i?0:a(r.paddingLeft),Q=i?0:a(r.borderTopWidth),Z=i?0:a(r.borderRightWidth),$=i?0:a(r.borderBottomWidth),j=i?0:a(r.borderLeftWidth),D=l+v,k=d+R,y=j+Z,T=Q+$,N=h?e.offsetHeight-T-e.clientHeight:0,A=o?e.offsetWidth-y-e.clientWidth:0,ee=n?D+y:0,te=n?k+T:0,g=i?i.width:a(r.width)-ee-A,x=i?i.height:a(r.height)-te-N,re=g+D+A+y,ie=x+k+N+T,M=u({devicePixelContentBoxSize:f(Math.round(g*devicePixelRatio),Math.round(x*devicePixelRatio),s),borderBoxSize:f(re,ie,s),contentBoxSize:f(g,x,s),contentRect:new q(l,d,g,x)});return z.set(e,M),M},U=function(e,t,r){var i=J(e,r),n=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(t){case b.DEVICE_PIXEL_CONTENT_BOX:return o;case b.BORDER_BOX:return n;default:return s}},he=function(){function e(t){var r=J(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=u([r.borderBoxSize]),this.contentBoxSize=u([r.contentBoxSize]),this.devicePixelContentBoxSize=u([r.devicePixelContentBoxSize])}return e}(),Y=function(e){if(G(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},de=function(){var e=1/0,t=[];c.forEach(function(o){if(o.activeTargets.length!==0){var h=[];o.activeTargets.forEach(function(v){var R=new he(v.target),l=Y(v.target);h.push(R),v.lastReportedSize=U(v.target,v.observedBox),le?r.activeTargets.push(n):r.skippedTargets.push(n))})})},fe=function(){var e=0;for(L(e);ne();)e=de(),L(e);return oe()&&se(),e>0},m,K=[],le=function(){return K.splice(0).forEach(function(e){return e()})},pe=function(e){if(!m){var t=0,r=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return le()}).observe(r,i),m=function(){r.textContent="".concat(t?t--:t++)}}K.push(e),m()},be=function(e){pe(function(){requestAnimationFrame(e)})},w=0,ge=function(){return!!w},xe=250,ze={attributes:!0,characterData:!0,childList:!0,subtree:!0},F=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],H=function(e){return e===void 0&&(e=0),Date.now()+e},B=!1,Ee=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=xe),!B){B=!0;var i=H(t);be(function(){var n=!1;try{n=fe()}finally{if(B=!1,t=i-H(),!ge())return;n?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,ze)};document.body?r():p.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),F.forEach(function(r){return p.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),F.forEach(function(r){return p.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),S=new Ee,V=function(e){!w&&e>0&&S.start(),w+=e,!w&&S.stop()},Oe=function(e){return!C(e)&&!ve(e)&&getComputedStyle(e).display==="inline"},we=function(){function e(t,r){this.target=t,this.observedBox=r||b.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=U(this.target,this.observedBox,!0);return Oe(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Re=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),E=new WeakMap,X=function(e,t){for(var r=0;r=0&&(s&&c.splice(c.indexOf(i),1),i.observationTargets.splice(n,1),V(-1))},e.disconnect=function(t){var r=this,i=E.get(t);i.observationTargets.slice().forEach(function(n){return r.unobserve(t,n.target)}),i.activeTargets.splice(0,i.activeTargets.length)},e}(),ye=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");O.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");O.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");O.unobserve(this,t)},e.prototype.disconnect=function(){O.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();export{ye as R};
diff --git a/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz b/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz
deleted file mode 100644
index 97527e61..00000000
Binary files a/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz and /dev/null differ
diff --git a/js/@juggle_resize-observer@3.4.0-DB6f1vmu.js b/js/@juggle_resize-observer@3.4.0-DB6f1vmu.js
new file mode 100644
index 00000000..7944cb24
--- /dev/null
+++ b/js/@juggle_resize-observer@3.4.0-DB6f1vmu.js
@@ -0,0 +1 @@
+var c=[],ne=function(){return c.some(function(e){return e.activeTargets.length>0})},oe=function(){return c.some(function(e){return e.skippedTargets.length>0})},P="ResizeObserver loop completed with undelivered notifications.",se=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:P}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=P),window.dispatchEvent(e)},b;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(b||(b={}));var u=function(e){return Object.freeze(e)},ae=(function(){function e(t,r){this.inlineSize=t,this.blockSize=r,u(this)}return e})(),q=(function(){function e(t,r,i,n){return this.x=t,this.y=r,this.width=i,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,i=t.y,n=t.top,s=t.right,o=t.bottom,h=t.left,d=t.width,v=t.height;return{x:r,y:i,top:n,right:s,bottom:o,left:h,width:d,height:v}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),C=function(e){return e instanceof SVGElement&&"getBBox"in e},G=function(e){if(C(e)){var t=e.getBBox(),r=t.width,i=t.height;return!r&&!i}var n=e,s=n.offsetWidth,o=n.offsetHeight;return!(s||o||e.getClientRects().length)},I=function(e){var t;if(e instanceof Element)return!0;var r=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},ve=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},p=typeof window<"u"?window:{},z=new WeakMap,_=/auto|scroll/,ce=/^tb|vertical/,ue=/msie|trident/i.test(p.navigator&&p.navigator.userAgent),a=function(e){return parseFloat(e||"0")},f=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new ae((r?t:e)||0,(r?e:t)||0)},W=u({devicePixelContentBoxSize:f(),borderBoxSize:f(),contentBoxSize:f(),contentRect:new q(0,0,0,0)}),J=function(e,t){if(t===void 0&&(t=!1),z.has(e)&&!t)return z.get(e);if(G(e))return z.set(e,W),W;var r=getComputedStyle(e),i=C(e)&&e.ownerSVGElement&&e.getBBox(),n=!ue&&r.boxSizing==="border-box",s=ce.test(r.writingMode||""),o=!i&&_.test(r.overflowY||""),h=!i&&_.test(r.overflowX||""),d=i?0:a(r.paddingTop),v=i?0:a(r.paddingRight),R=i?0:a(r.paddingBottom),l=i?0:a(r.paddingLeft),Q=i?0:a(r.borderTopWidth),Z=i?0:a(r.borderRightWidth),$=i?0:a(r.borderBottomWidth),j=i?0:a(r.borderLeftWidth),D=l+v,k=d+R,y=j+Z,T=Q+$,N=h?e.offsetHeight-T-e.clientHeight:0,A=o?e.offsetWidth-y-e.clientWidth:0,ee=n?D+y:0,te=n?k+T:0,g=i?i.width:a(r.width)-ee-A,x=i?i.height:a(r.height)-te-N,re=g+D+A+y,ie=x+k+N+T,M=u({devicePixelContentBoxSize:f(Math.round(g*devicePixelRatio),Math.round(x*devicePixelRatio),s),borderBoxSize:f(re,ie,s),contentBoxSize:f(g,x,s),contentRect:new q(l,d,g,x)});return z.set(e,M),M},U=function(e,t,r){var i=J(e,r),n=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(t){case b.DEVICE_PIXEL_CONTENT_BOX:return o;case b.BORDER_BOX:return n;default:return s}},he=(function(){function e(t){var r=J(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=u([r.borderBoxSize]),this.contentBoxSize=u([r.contentBoxSize]),this.devicePixelContentBoxSize=u([r.devicePixelContentBoxSize])}return e})(),Y=function(e){if(G(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},de=function(){var e=1/0,t=[];c.forEach(function(o){if(o.activeTargets.length!==0){var h=[];o.activeTargets.forEach(function(v){var R=new he(v.target),l=Y(v.target);h.push(R),v.lastReportedSize=U(v.target,v.observedBox),le?r.activeTargets.push(n):r.skippedTargets.push(n))})})},fe=function(){var e=0;for(L(e);ne();)e=de(),L(e);return oe()&&se(),e>0},m,K=[],le=function(){return K.splice(0).forEach(function(e){return e()})},pe=function(e){if(!m){var t=0,r=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return le()}).observe(r,i),m=function(){r.textContent="".concat(t?t--:t++)}}K.push(e),m()},be=function(e){pe(function(){requestAnimationFrame(e)})},w=0,ge=function(){return!!w},xe=250,ze={attributes:!0,characterData:!0,childList:!0,subtree:!0},F=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],H=function(e){return e===void 0&&(e=0),Date.now()+e},B=!1,Ee=(function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=xe),!B){B=!0;var i=H(t);be(function(){var n=!1;try{n=fe()}finally{if(B=!1,t=i-H(),!ge())return;n?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,ze)};document.body?r():p.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),F.forEach(function(r){return p.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),F.forEach(function(r){return p.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e})(),S=new Ee,V=function(e){!w&&e>0&&S.start(),w+=e,!w&&S.stop()},Oe=function(e){return!C(e)&&!ve(e)&&getComputedStyle(e).display==="inline"},we=(function(){function e(t,r){this.target=t,this.observedBox=r||b.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=U(this.target,this.observedBox,!0);return Oe(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),Re=(function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e})(),E=new WeakMap,X=function(e,t){for(var r=0;r=0&&(s&&c.splice(c.indexOf(i),1),i.observationTargets.splice(n,1),V(-1))},e.disconnect=function(t){var r=this,i=E.get(t);i.observationTargets.slice().forEach(function(n){return r.unobserve(t,n.target)}),i.activeTargets.splice(0,i.activeTargets.length)},e})(),ye=(function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");O.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");O.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");O.unobserve(this,t)},e.prototype.disconnect=function(){O.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();export{ye as R};
diff --git a/js/@juggle_resize-observer@3.4.0-DB6f1vmu.js.gz b/js/@juggle_resize-observer@3.4.0-DB6f1vmu.js.gz
new file mode 100644
index 00000000..c5700cde
Binary files /dev/null and b/js/@juggle_resize-observer@3.4.0-DB6f1vmu.js.gz differ
diff --git a/js/@logicflow_core@2.0.10-9WfPQnfd.js b/js/@logicflow_core@2.0.10-9WfPQnfd.js
deleted file mode 100644
index 7d43b4ac..00000000
--- a/js/@logicflow_core@2.0.10-9WfPQnfd.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import{o as yo}from"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import{u as x,x as K,g as Wn,b as Gr,n as Zr}from"./preact@10.25.4-CrjB-ZC0.js";import{a as k,c as C,m as Fr,g as Zn,n as sr,p as Kt,f as W,t as bt,b as St,d as Ht,i as Qt,e as ht,s as go,h as _o,j as Vr,k as gr,l as mo,o as Vn,q as xo,r as Eo,u as Kr,v as Mo,w as Kn,x as Oo,y as So}from"./lodash-es@4.17.21-UVJw7vmf.js";import{c as wo,t as mt,i as qn,s as Ao,o as E,a as F,b as m,r as Po}from"./mobx@5.15.7-DLDjekon.js";import{v as To}from"./uuid@9.0.1-CtRu48qb.js";import{c as Do}from"./classnames@2.5.1-Dfc4g_b4.js";import{M as No}from"./mousetrap@1.6.5-OHXNXF9n.js";import{d as bo}from"./mobx-utils@5.6.2_mobx@5.15.7-CmgHUCcI.js";var Co=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);ov.step||Math.abs(v.sumDeltaY)>v.step)){var O=v.sumDeltaX%v.step,w=v.sumDeltaY%v.step,A=v.sumDeltaX-O,b=v.sumDeltaY-w;v.sumDeltaX=O,v.sumDeltaY=w;var R=(M=v.model)===null||M===void 0?void 0:M.getData();v.isDragging||((S=v.eventCenter)===null||S===void 0||S.emit(T["".concat(v.eventType,"_DRAGSTART")],{e:_,data:v.data||R}),v.onDragStart({event:_})),v.isDragging=!0,Promise.resolve().then(function(){var L,z;v.onDragging({deltaX:A,deltaY:b,event:_}),(L=v.eventCenter)===null||L===void 0||L.emit(T["".concat(v.eventType,"_MOUSEMOVE")],{deltaX:A,deltaY:b,e:_,data:v.data||R}),(z=v.eventCenter)===null||z===void 0||z.emit(T["".concat(v.eventType,"_DRAG")],{e:_,data:v.data||R})})}},this.handleMouseUp=function(_){var M=window.document;v.isStartDragging=!1,v.isStopPropagation&&_.stopPropagation(),Promise.resolve().then(function(){var S,O,w;M.removeEventListener("mousemove",v.handleMouseMove,!1),M.removeEventListener("mouseup",v.handleMouseUp,!1);var A=(S=v.model)===null||S===void 0?void 0:S.getData();(O=v.eventCenter)===null||O===void 0||O.emit(T["".concat(v.eventType,"_MOUSEUP")],{e:_,data:v.data||A}),v.isDragging&&(v.isDragging=!1,v.onDragEnd({event:_}),(w=v.eventCenter)===null||w===void 0||w.emit(T["".concat(v.eventType,"_DROP")],{e:_,data:v.data||A}))})},this.cancelDrag=function(){var _=window==null?void 0:window.document;_.removeEventListener("mousemove",v.handleMouseMove,!1),_.removeEventListener("mouseup",v.handleMouseUp,!1),v.onDragEnd({event:void 0}),v.isDragging=!1},this.destroy=function(){v.isStartDragging&&v.cancelDrag()},this.onDragStart=r,this.onDragging=i,this.onDragEnd=s,this.step=c,this.isStopPropagation=y,this.eventType=d,this.eventCenter=u,this.model=p,this.data=g}return n.prototype.setStep=function(e){this.step=e},n.prototype.setModel=function(e){this.model=e},n}(),Yo=function(n){var e=n.x,t=n.y,r=n.width,o=n.height;return{x:e-r/2,y:t-o/2,x1:e+r/2,y1:t+o/2}},Ho=function(n){var e=n.startPoint,t=n.endPoint,r=(e.x+t.x)/2,o=(e.y+t.y)/2,i=Math.abs(e.x-t.x)+10,a=Math.abs(e.y-t.y)+10;return{x:r-i/2,y:o-a/2,x1:r+i/2,y1:o+a/2}},ko=function(n){var e=n.points,t=kt(e),r=Ee(t,8),o=r.x,i=r.y,a=r.width,s=r.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},zo=function(n){var e=n.path,t=$r(e),r=Ee(t,8),o=r.x,i=r.y,a=r.width,s=r.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},Go=function(n){if(n.modelType===j.LINE_EDGE)return Ho(n);if(n.modelType===j.POLYLINE_EDGE)return ko(n);if(n.modelType===j.BEZIER_EDGE)return zo(n)},Fo=function(n,e,t,r){var o=(e.y-n.y)*(r.x-t.x)-(n.x-e.x)*(t.y-r.y);if(o===0)return!1;var i=((e.x-n.x)*(r.x-t.x)*(t.y-n.y)+(e.y-n.y)*(r.x-t.x)*n.x-(r.y-t.y)*(e.x-n.x)*t.x)/o,a=-((e.y-n.y)*(r.y-t.y)*(t.x-n.x)+(e.x-n.x)*(r.y-t.y)*n.y-(r.x-t.x)*(e.y-n.y)*t.y)/o;return(i-n.x)*(i-e.x)<=0&&(a-n.y)*(a-e.y)<=0&&(i-t.x)*(i-r.x)<=0&&(a-t.y)*(a-r.y)<=0?{x:i,y:a}:!1},me=function(n,e,t){var r=n.x,o=n.y,i=e.x,a=e.y,s=t.x,l=t.y,d=(l-a)/(s-i),u=a-d*i;return(r>=i&&r<=s||r<=i&&r>=s)&&(o>=a&&o<=l||o<=a&&o>=l)&&Math.abs(o-d*r-u)=e.x?(a.leftX=e.x+d*Math.sin(s+l),a.leftY=e.y-d*Math.cos(s+l),a.rightX=e.x-d*Math.sin(s-l),a.rightY=e.y+d*Math.cos(s-l)):(a.leftX=e.x-d*Math.sin(s+l),a.leftY=e.y+d*Math.cos(s+l),a.rightX=e.x+d*Math.sin(s-l),a.rightY=e.y-d*Math.cos(s-l)):i==="end"&&(t.x>=e.x?(a.leftX=t.x+d*Math.sin(s-l),a.leftY=t.y-d*Math.cos(s-l),a.rightX=t.x-d*Math.sin(s+l),a.rightY=t.y+d*Math.cos(s+l)):(a.leftX=t.x-d*Math.sin(s-l),a.leftY=t.y+d*Math.cos(s-l),a.rightX=t.x+d*Math.sin(s+l),a.rightY=t.y-d*Math.cos(s+l))),a},qt=function(){return qt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Dt=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;rr/e.height?G.HORIZONTAL:G.VERTICAL},Fe=function(n,e,t){var r=Uo(t,e);return r===G.HORIZONTAL?{x:t.x>n.centerX?n.maxX:n.minX,y:t.y}:{x:t.x,y:t.y>n.centerY?n.maxY:n.minY}},Qr=function(n,e){var t=Math.min(n.minX,e.minX),r=Math.min(n.minY,e.minY),o=Math.max(n.maxX,e.maxX),i=Math.max(n.maxY,e.maxY);return{x:(t+o)/2,y:(r+i)/2,centerX:(t+o)/2,centerY:(r+i)/2,minX:t,minY:r,maxX:o,maxY:i,height:i-r,width:o-t}},Ee=function(n,e){n===void 0&&(n=[]);var t=[],r=[];n.forEach(function(u){t.push(u.x),r.push(u.y)});var o=Math.min.apply(Math,Dt([],at(t),!1)),i=Math.max.apply(Math,Dt([],at(t),!1)),a=Math.min.apply(Math,Dt([],at(r),!1)),s=Math.max.apply(Math,Dt([],at(r),!1)),l=i-o,d=s-a;return e&&(l+=e,d+=e),{centerX:(o+i)/2,centerY:(a+s)/2,maxX:i,maxY:s,minX:o,minY:a,x:(o+i)/2,y:(a+s)/2,height:d,width:l}},$e=function(n){var e=n.minX,t=n.minY,r=n.maxX,o=n.maxY;return[{x:e,y:t},{x:r,y:t},{x:r,y:o},{x:e,y:o}]},Ne=function(n,e){var t=n.x,r=n.y;return te.maxX||re.maxY},Wo=function(n,e){return en.maxX?[]:[{x:e,y:n.minY},{x:e,y:n.maxY}]},Zo=function(n,e){return en.maxY?[]:[{x:n.minX,y:e},{x:n.maxX,y:e}]},Vo=function(n,e){return Dt(Dt([],at(Wo(n,e.x)),!1),at(Zo(n,e.y)),!1)},mr=function(n,e){return Math.abs(n.x-e.x)+Math.abs(n.y-e.y)},Ko=function(n,e){var t=-2,r=0;return e.forEach(function(o){o&&(n.x===o.x&&(r+=t),n.y===o.y&&(r+=t))}),r},tn=function(n,e,t,r,o){return mr(n,e)+mr(n,t)+Ko(n,[e,t,r,o])},Jn=function(n,e,t,r,o){o||(o=0),n.unshift(e[r]),t[r]&&t[r]!==r&&o<=100&&Jn(n,e,t,t[r],o+1)},qo=function(n,e){var t=n.indexOf(e);t>-1&&n.splice(t,1)},ie=function(n,e,t,r){var o=e.x-n.x,i=e.y-n.y,a=r.x-t.x,s=r.y-t.y,l=(-i*(n.x-t.x)+o*(n.y-t.y))/(-a*i+o*s),d=(a*(n.y-t.y)-s*(n.x-t.x))/(-a*i+o*s);return l>=0&&l<=1&&d>=0&&d<=1},en=function(n,e,t){if(t.width===0&&t.height===0)return!1;var r=at($e(t),4),o=r[0],i=r[1],a=r[2],s=r[3];return ie(n,e,o,i)||ie(n,e,o,s)||ie(n,e,i,a)||ie(n,e,a,s)},Jo=function(n,e,t,r){var o=[];return n.forEach(function(i){i!==e&&(i.x===e.x||i.y===e.y)&&!en(i,e,t)&&!en(i,e,r)&&o.push(i)}),_r(o)},Qo=function(n,e,t,r,o,i,a){var s=[],l=[e],d={},u={},f={};e.id&&(u[e.id]=0,f[e.id]=tn(e,t,e));var c={};n.forEach(function(p){p.id&&(c[p.id]=p)});for(var h=function(){var p,g=1/0;if(l.forEach(function(_){_.id&&f[_.id]=u[_.id])return;d[_.id]=p.id,u[_.id]=M,f[_.id]=u[_.id]+tn(_,t,e,i,a)}})};l.length;){var y=h();if(typeof y=="object")return y.value}return[e,t]},rn=function(n){return rt(n)},Qn=function(n){for(var e=1;e2&&(v=Qn(v)),_r(v)},ti=function(n){if(n.length===1){var e=at(n,1),t=e[0];return[t,t]}else{for(var r=n[0],o=n[1],i=vt(r.x,r.y,o.x,o.y),a=1;ai&&(i=d,r=s,o=l)}return[r,o]}},on=function(n,e,t){var r=Nt(n,t),o=Nt(e,t);return r&&o},an=function(n,e,t){var r=Nt(n,t),o=Nt(e,t),i=r&&o,a=r||o;return!i&&a},sn=function(n,e,t){for(var r=void 0,o=rt(t),i=$e(o),a=0;a=1&&r<=126||r>=65376&&r<=65439?e+=1:e+=2}return e},ri=function(n){var e=n.start,t=n.end,r;if(e.x===t.x&&e.y===t.y)r="";else{var o={start:e,end:t,offset:10,verticalLength:5},i=xe(qt(qt({},o),{type:"start"})),a=xe(qt(qt({},o),{type:"end"}));r="M".concat(i.leftX," ").concat(i.leftY,`
- L`).concat(i.rightX," ").concat(i.rightY,`
- L`).concat(a.rightX," ").concat(a.rightY,`
- L`).concat(a.leftX," ").concat(a.leftY," z")}return{d:r,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},dn=function(n){var e=n.start,t=n.end,r=n.sourceNode,o=n.targetNode,i=n.offset,a=rt(r),s=rt(o),l=Ge(a,i),d=Ge(s,i),u=Fe(l,a,e),f=Fe(d,s,t);return{sNext:u,ePre:f}},$r=function(n){var e=n.replace(/M/g,"").replace(/C/g,",").split(","),t=be(e[0]),r=be(e[1]),o=be(e[2]),i=be(e[3]);return[t,r,o,i]},be=function(n){var e=at(n.replace(/(^\s*)/g,"").split(" "),2),t=e[0],r=e[1];return{x:+t,y:+r}},un=function(n,e){var t=at(n,4),r=t[0],o=t[1],i=t[2],a=t[3],s=Hi(r,o,i,a,e);return[s,n[3]]},eo=function(n,e){for(var t=n.x,r=n.y,o=kt(e),i=Number.MAX_SAFE_INTEGER,a,s=[],l=0;lo?a:o}),{width:Math.ceil(o/2)*r+r/4,height:t*(r+2)+r/4}},$t=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ce=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},dr=function(n,e,t){var r=lr(n,2),o=r[0],i=r[1],a=lr(e,2),s=a[0],l=a[1],d=lr(t,2),u=d[0],f=d[1];return o>s&&ol&&i=0?o:-o},e}(no),xr=function(n){Ur(e,n);function e(t,r){var o=n.call(this,t,r,1)||this;return Object.setPrototypeOf(o,e.prototype),o}return e.prototype.toString=function(){return"Point"},e}(no),tr=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Ut=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ur=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;o--){var i=t[o],a=fi(n,i);if(a){var s=i.getTargetAnchor(n);if(s){var l={node:i,anchorIndex:s.index,anchor:s.anchor};(!r||di(i,r.node,e))&&(r=l)}}}return r},di=function(n,e,t){return n.zIndex>e.zIndex?!0:t.nodesMap[n.id].index>t.nodesMap[e.id].index},ui=function(n,e){for(var t=Er(e),r,o=Number.MAX_SAFE_INTEGER,i=0;i=o.minX-r&&n.x<=o.maxX+r&&n.y>=o.minY-r&&n.y<=o.maxY+r&&(t=!0),t},fi=function(n,e){var t=!1,r=5,o=rt(e);return n.x>=o.minX-r&&n.x<=o.maxX+r&&n.y>=o.minY-r&&n.y<=o.maxY+r&&(t=!0),t},rt=function(n){var e=n.x,t=n.y,r=n.width,o=n.height;return{minX:e-r/2,minY:t-o/2,maxX:e+r/2,maxY:t+o/2,x:e,y:t,width:r,height:o,centerX:e,centerY:t}},ci=function(n){var e=n,t=e.x,r=e.y,o=e.width,i=e.height,a=e.radius;return[{x:t-o/2+a,y:r-i/2+a,r:a},{x:t+o/2-a,y:r-i/2+a,r:a},{x:t-o/2+a,y:r+i/2-a,r:a},{x:t+o/2-a,y:r+i/2-a,r:a}]},pn=function(n,e,t){var r=ci(t),o,i=Number.MAX_SAFE_INTEGER;return r.forEach(function(a){var s=vt(n.x,n.y,a.x,a.y);sd.minX&&n.xd.minY&&n.yu.x&&(f=u,c=d);var h={x:n.x,y:n.y};if(f.x===c.x&&e===G.HORIZONTAL&&(h={x:f.x,y:n.y}),f.y===c.y&&e===G.VERTICAL&&(h={x:n.x,y:f.y}),f.x!==c.x&&f.y!==c.y){var y=(c.y-f.y)/(c.x-f.x),p=(f.x*c.y-c.x*f.y)/(f.x-c.x);e===G.HORIZONTAL?h={x:(n.y-p)/y,y:n.y}:e===G.VERTICAL&&(h={x:n.x,y:y*n.x+p})}var g=me(h,d,u);if(g){var v=vt(h.x,h.y,n.x,n.y);vn.x?o=n.x+t/2:e.xn.y?i=n.y+r/2:e.y1?e.forEach(function(s){var l=document.createElement("div");l.textContent=s,i.appendChild(l)}):i.textContent=e[0],document.body.appendChild(i);var a=i.clientHeight;return document.body.removeChild(i),a},gn=function(n){var e=n.rows,t=n.rowsLength,r=n.fontSize,o=0;return e&&e.forEach(function(i){var a=to(i);o=a>o?a:o}),{width:Math.ceil(o/2)*r+r/4,height:t*(r+2)+r/4}},Ve=function(n){return typeof n!="object"?{isAllPass:!!n,msg:n?"":"不允许连接"}:n},Yt=function(){return To()},se=new Map,io=function(n){var e=Yt();function t(){n();var o=se.get(e);if(o){var i=window.requestAnimationFrame(t);se.set(e,i)}}var r=window.requestAnimationFrame(t);return se.set(e,r),e},Ke=function(n){var e=se.get(n);e&&(window.cancelAnimationFrame(e),se.delete(n))},Me=function(){return Me=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function ao(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.value,a=n.fontSize,s=a===void 0?12:a,l=n.fill,d=l===void 0?"currentColor":l,u=n.overflowMode,f=u===void 0?"default":u,c=n.textWidth,h=c===void 0?void 0:c,y=n.model,p={x:t,y:o,fill:d,fontSize:s,textAnchor:"middle",dominantBaseline:"central"};if(W(bt(n),function(O){var w=hi(O,2),A=w[0],b=w[1];typeof b!="object"&&(p[A]=b)}),i){var g=String(i).split(/[\r\n]/g),v=g.length;if(f!=="default"){var _=y.BaseType,M=y.modelType;if(_===$.NODE&&M!==j.TEXT_NODE||_===$.EDGE&&h)return vi(n)}if(v>1){var S=g.map(function(O,w){var A=s+2,b=(w-(v-1)/2)*A;return x("tspan",{className:"lf-text-tspan",x:t,y:o+b,children:O})});return x("text",Me({},p,{children:S}))}return x("text",Me({},p,{children:i}))}return null}function vi(n){var e=n.x,t=n.y,r=n.value,o=n.model,i=n.textWidth,a=n.fontSize,s=a===void 0?12:a,l=n.lineHeight,d=n.fontFamily,u=d===void 0?"":d,f=n.wrapPadding,c=f===void 0?"0, 0":f,h=n.overflowMode,y=o.width,p=o.height,g=o.textHeight,v=i||y,_=String(r).split(/[\r\n]/g),M=_.length,S=oo({rows:_,style:{fontSize:"".concat(s,"px"),width:"".concat(v,"px"),fontFamily:u,lineHeight:l,padding:c},rowsLength:M,className:"lf-get-text-height"}),O=p>S?p:S;g&&(O=g);var w=h==="ellipsis";return w&&(O=s+2),x("g",{children:x("foreignObject",{width:v,height:O,x:e-v/2,y:t-O/2,style:{overflow:"visible",textAlign:"left"},children:x("div",{className:"lf-node-text-auto-wrap",style:{minHeight:O,width:v,padding:c},children:x("div",{className:w?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:w?_.join(""):"",style:Me({},n),children:_.map(function(A){return x("div",{className:"lf-node-text--auto-wrap-inner",children:A})})})})})})}var Or=function(){return Or=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function ee(n){var e={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return W(bt(n),function(t){var r=yi(t,2),o=r[0],i=r[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("line",Or({},e))}var Sr=function(){return Sr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Et(n){var e=n.x,t=n.y,r=n.width,o=n.height,i=n.className,a=n.strokeWidth,s=n.radius,l=s===void 0?0:s,d=e-r/2,u=t-o/2,f={};return f["stroke-width"]=a,W(bt(n),function(c){var h=gi(c,2),y=h[0],p=h[1];typeof p!="object"&&(f[y]=p)}),i?f.className="lf-basic-shape ".concat(i):f.className="lf-basic-shape",l&&(f.rx=l,f.ry=l),f.x=d,f.y=u,x("rect",Sr({},f))}var wr=function(){return wr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Oe(n){var e={d:""};return W(bt(n),function(t){var r=_i(t,2),o=r[0],i=r[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("path",wr({},e))}var Ar=function(){return Ar=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function re(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.r,a=i===void 0?4:i,s=n.className,l={cx:t,cy:o,r:a,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(bt(n),function(d){var u=mi(d,2),f=u[0],c=u[1];typeof c!="object"&&(l[f]=c)}),s?l.className="lf-basic-shape ".concat(s):l.className="lf-basic-shape",x("circle",Ar({},l))}var Pr=function(){return Pr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Ei(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.rx,a=i===void 0?4:i,s=n.ry,l=s===void 0?4:s,d=n.className,u={cx:t,cy:o,rx:a,ry:l,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(bt(n),function(f){var c=xi(f,2),h=c[0],y=c[1];typeof y!="object"&&(u[h]=y)}),d?u.className="lf-basic-shape ".concat(d):u.className="lf-basic-shape",x("ellipse",Pr({},u))}var Tr=function(){return Tr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function so(n){var e=n.points,t=e===void 0?[]:e,r=n.className,o={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return W(bt(n),function(i){var a=Mi(i,2),s=a[0],l=a[1];typeof l!="object"&&(o[s]=l)}),r?o.classNmae="lf-basic-shape ".concat(r):o.className="lf-basic-shape",o.points=t.map(function(i){return i.join(",")}).join(" "),x("polygon",Tr({},o))}var Dr=function(){return Dr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Si(n){var e=n.className,t={points:"",fill:"none"};return W(bt(n),function(r){var o=Oi(r,2),i=o[0],a=o[1];(i==="style"||typeof a!="object")&&(t[i]=a)}),e&&(t.className="".concat(e)),x("polyline",Dr({},t))}var lo=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Se=function(){return Se=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},H;(function(n){n[n.LEFT_TOP=0]="LEFT_TOP",n[n.RIGHT_TOP=1]="RIGHT_TOP",n[n.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",n[n.LEFT_BOTTOM=3]="LEFT_BOTTOM"})(H||(H={}));var Pi=function(n){lo(e,n);function e(t){var r=n.call(this)||this;r.updateEdgePointByAnchors=function(){var s=r.nodeModel,l=s.id,d=s.anchors,u=r.graphModel.getNodeEdges(l);W(u,function(f){if(f.sourceNodeId===l){var c=Ht(d,function(h){return h.id===f.sourceAnchorId});c&&f.updateStartPoint({x:c.x,y:c.y})}else if(f.targetNodeId===l){var c=Ht(d,function(y){return y.id===f.targetAnchorId});c&&f.updateEndPoint({x:c.x,y:c.y})}})},r.triggerResizeEvent=function(s,l,d,u,f,c){r.graphModel.eventCenter.emit(T.NODE_RESIZE,{preData:s,data:l,deltaX:d,deltaY:u,index:f,model:c})},r.recalcResizeInfo=function(s,l,d,u,f){d===void 0&&(d=1),u===void 0&&(u=!1),f===void 0&&(f=!1);var c=C(l),h=c.deltaX,y=c.deltaY,p=c.width,g=c.height,v=c.PCTResizeInfo;if(v){var _=4,M=0,S=0;switch(s){case H.LEFT_TOP:S=(h*-1-y)/_;break;case H.RIGHT_TOP:S=(h-y)/_;break;case H.RIGHT_BOTTOM:S=(h+y)/_;break;case H.LEFT_BOTTOM:S=(h*-1+y)/_;break}S!==0&&(M=Math.round(S/v.ResizeBasis.basisHeight*1e5)/1e3),v.ResizePCT.widthPCT=Math.max(Math.min(v.ResizePCT.widthPCT+M,v.ScaleLimit.maxScaleLimit),v.ScaleLimit.minScaleLimit),v.ResizePCT.heightPCT=Math.max(Math.min(v.ResizePCT.heightPCT+M,v.ScaleLimit.maxScaleLimit),v.ScaleLimit.minScaleLimit);var O=Math.round(v.ResizePCT.widthPCT*v.ResizeBasis.basisWidth/100),w=Math.round(v.ResizePCT.heightPCT*v.ResizeBasis.basisHeight/100);switch(s){case H.LEFT_TOP:h=p-O,y=g-w;break;case H.RIGHT_TOP:h=O-p,y=g-w;break;case H.RIGHT_BOTTOM:h=O-p,y=w-g;break;case H.LEFT_BOTTOM:h=p-O,y=w-g;break}return c}switch(s){case H.LEFT_TOP:c.width=u?p:p-h*d,c.height=f?g:g-y*d;break;case H.RIGHT_TOP:c.width=u?p:p+h*d,c.height=f?g:g-y*d;break;case H.RIGHT_BOTTOM:c.width=u?p:p+h*d,c.height=f?g:g+y*d;break;case H.LEFT_BOTTOM:c.width=u?p:p-h*d,c.height=f?g:g+y*d;break}return c},r.resizeNode=function(s){var l=s.deltaX,d=s.deltaY,u=r.index,f=r.props,c=f.model,h=f.graphModel,y=f.x,p=f.y;Ii({x:y,y:p,deltaX:l,deltaY:d,index:u,nodeModel:c,graphModel:h,cancelCallback:function(){r.dragHandler.cancelDrag()}})},r.onDragging=function(s){var l=s.deltaX,d=s.deltaY,u=r.graphModel.transformModel,f=Ai(u.fixDeltaXY(l,d),2),c=f[0],h=f[1];r.resizeNode({deltaX:c,deltaY:h})},r.onDragEnd=function(){var s=r.nodeModel.x,l=r.nodeModel.y;r.nodeModel.moveTo(s,l),r.updateEdgePointByAnchors()};var o=t.index,i=t.model,a=t.graphModel;return r.index=o,r.nodeModel=i,r.graphModel=a,r.dragHandler=new Mt({onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:a.gridSize}),r}return e.prototype.componentWillUnmount=function(){this.dragHandler.destroy()},e.prototype.render=function(){var t=this.props,r=t.x,o=t.y,i=t.direction,a=t.model,s=a.getResizeControlStyle(),l=s.width,d=s.height,u=wi(s,["width","height"]);return x("g",{className:"lf-resize-control lf-resize-control-".concat(i),children:[x(Et,Se({className:"lf-resize-control-content",x:r,y:o,width:l??7,height:d??7},u)),x(Et,{className:"lf-resize-control-content",x:r,y:o,width:25,height:25,fill:"transparent",stroke:"transparent",onMouseDown:this.dragHandler.handleMouseDown})]})},e}(K),Ti=function(n){lo(e,n);function e(){return n.call(this)||this}return e.prototype.getResizeControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=rt(r),a=i.minX,s=i.minY,l=i.maxX,d=i.maxY,u=[{index:H.LEFT_TOP,direction:"nw",x:a,y:s},{index:H.RIGHT_TOP,direction:"ne",x:l,y:s},{index:H.RIGHT_BOTTOM,direction:"se",x:l,y:d},{index:H.LEFT_BOTTOM,direction:"sw",x:a,y:d}];return St(u,function(f){return x(Pi,Se({},f,{model:r,graphModel:o}))})},e.prototype.getResizeOutline=function(){var t=this.props.model,r=t.x,o=t.y,i=t.width,a=t.height,s=t.getResizeOutlineStyle();return x(Et,Se({},s,{x:r,y:o,width:i,height:a}))},e.prototype.render=function(){return x("g",{className:"lf-resize-control-group",children:[this.getResizeOutline(),this.getResizeControl()]})},e}(K);function Di(n,e){var t=n.x,r=n.y,o=e.x,i=e.y,a={x:t+(o-t)/2,y:r+(i-r)/2};return a}function ae(n,e,t){var r=Ni(t),o=n.x-e.x,i=n.y-e.y,a=o*Math.cos(r)-i*Math.sin(r)+e.x,s=o*Math.sin(r)+i*Math.cos(r)+e.y;return{x:a,y:s}}function Ni(n){return n*Math.PI/180}function bi(n){return n/Math.PI*180}function Ci(n,e,t,r,o,i,a,s,l){s===void 0&&(s=!1),l===void 0&&(l=!1);var d=e.deltaX,u=e.deltaY,f=e.width,c=e.height,h=bi(t),y={x:r,y:o},p={x:i,y:a},g=ae(y,p,h),v={x:g.x+d,y:g.y+u},_=Bi(g,v,p,h,s,l,f,c),M=_.width,S=_.height,O=_.center;return e.width=M*n,e.height=S*n,e.deltaX=(O.x-p.x)*2,e.deltaY=(O.y-p.y)*2,e}var Li=function(n,e,t,r,o,i,a,s,l,d){t===void 0&&(t=1),r===void 0&&(r=!1),o===void 0&&(o=!1),i===void 0&&(i=0);var u=C(e),f=u.deltaX,c=u.deltaY,h=u.width,y=u.height,p=u.PCTResizeInfo;if(p){var g=4,v=0,_=0;switch(n){case H.LEFT_TOP:_=(f*-1-c)/g;break;case H.RIGHT_TOP:_=(f-c)/g;break;case H.RIGHT_BOTTOM:_=(f+c)/g;break;case H.LEFT_BOTTOM:_=(f*-1+c)/g;break}_!==0&&(v=Math.round(_/p.ResizeBasis.basisHeight*1e5)/1e3),p.ResizePCT.widthPCT=Math.max(Math.min(p.ResizePCT.widthPCT+v,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit),p.ResizePCT.heightPCT=Math.max(Math.min(p.ResizePCT.heightPCT+v,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit);var M=Math.round(p.ResizePCT.widthPCT*p.ResizeBasis.basisWidth/100),S=Math.round(p.ResizePCT.heightPCT*p.ResizeBasis.basisHeight/100);switch(n){case H.LEFT_TOP:f=h-M,c=y-S;break;case H.RIGHT_TOP:f=M-h,c=y-S;break;case H.RIGHT_BOTTOM:f=M-h,c=S-y;break;case H.LEFT_BOTTOM:f=h-M,c=S-y;break}return u}if(i%(2*Math.PI)!==0&&a!==void 0&&s!==void 0)return Ci(t,u,i,a,s,l,d,r,o);switch(n){case H.LEFT_TOP:u.width=r?h:h-f*t,u.height=o?y:y-c*t;break;case H.RIGHT_TOP:u.width=r?h:h+f*t,u.height=o?y:y-c*t;break;case H.RIGHT_BOTTOM:u.width=r?h:h+f*t,u.height=o?y:y+c*t;break;case H.LEFT_BOTTOM:u.width=r?h:h-f*t,u.height=o?y:y+c*t;break}return u},ji=function(n,e){var t=n.id,r=n.anchors,o=e.getNodeEdges(t);W(o,function(i){if(i.sourceNodeId===t){var a=Ht(r,function(s){return s.id===i.sourceAnchorId});a&&i.updateStartPoint({x:a.x,y:a.y})}else if(i.targetNodeId===t){var a=Ht(r,function(l){return l.id===i.targetAnchorId});a&&i.updateEndPoint({x:a.x,y:a.y})}})},Ri=function(n,e,t,r,o,i,a){a.eventCenter.emit(T.NODE_RESIZE,{preData:n,data:e,deltaX:t,deltaY:r,index:o,model:i})},Ii=function(n){var e=n.x,t=n.y,r=n.deltaX,o=n.deltaY,i=n.index,a=n.nodeModel,s=n.graphModel,l=n.cancelCallback,d=a.r,u=a.rx,f=a.ry,c=a.width,h=a.height,y=a.PCTResizeInfo,p=a.minWidth,g=a.minHeight,v=a.maxWidth,_=a.maxHeight,M=a.rotate,S=a.x,O=a.y,w=p===v,A=g===_,b={width:d||u||c,height:d||f||h,deltaX:r,deltaY:o,PCTResizeInfo:y},R=d||u&&f?1/2:1,L=e,z=t,I=Li(i,b,R,w,A,M,L,z,S,O);if(I.widthv||I.height_){l==null||l();return}(M%(2*Math.PI)==0||y||L===void 0||z===void 0)&&(I.deltaX=w?0:I.deltaX,I.deltaY=A?0:I.deltaY);var U=a.getData(),Y=a.resize(I);U.x===Y.x&&U.y===Y.y||(ji(a,s),Ri(U,Y,r,o,i,a,s))};function Bi(n,e,t,r,o,i,a,s){o===void 0&&(o=!1),i===void 0&&(i=!1);var l={x:t.x-(n.x-t.x),y:t.y-(n.y-t.y)},d=Di(l,e),u=ae(e,d,-r),f=ae(l,d,-r);if(o){var c=Math.abs(u.x-f.x),h=c-a;d.x>u.x?d.x=d.x+h/2:d.x=d.x-h/2}if(i){var y=Math.abs(u.y-f.y),p=y-s;d.y>u.y?d.y=d.y+p/2:d.y=d.y-p/2}if(o||i){var g=ae(f,d,r),v=g.x-l.x,_=g.y-l.y;d.x=d.x-v,d.y=d.y-_,f=ae(l,d,-r),u={x:d.x-(f.x-d.x),y:d.y-(f.y-d.y)}}var M=Math.abs(u.x-f.x),S=Math.abs(u.y-f.y);return o&&(M=a),i&&(S=s),{width:M,height:S,center:d}}var Xi=100,Yi={x:1,y:0};function Hi(n,e,t,r,o){for(var i=function(h){if(h<0||h>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:n.x*Math.pow(1-h,3)+3*e.x*h*Math.pow(1-h,2)+3*t.x*Math.pow(h,2)*(1-h)+r.x*Math.pow(h,3),y:n.y*Math.pow(1-h,3)+3*e.y*h*Math.pow(1-h,2)+3*t.y*Math.pow(h,2)*(1-h)+r.y*Math.pow(h,3)}},a=0,s=2,l=r.x,d=r.y,u=r;a=0?r:-r}function _n(n){var e=Math.hypot(n.x,n.y);return{x:n.x/e,y:n.y/e,z:0}}function Fi(n){return Gi(Yi,n)}function $i(n){return n*(180/Math.PI)}var Ui={baseNode:{fill:"#fff",stroke:"#000",strokeWidth:2},baseEdge:{stroke:"#000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000",fill:"#fff",r:4,hover:{r:10,fill:"#949494",fillOpacity:.5,stroke:"#949494"}},anchorLine:{stroke:"#000",strokeWidth:2,strokeDasharray:"3,2"},nodeText:{color:"#000",overflowMode:"default",fontSize:12,lineHeight:1.2},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#fff"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",fillOpacity:1,stroke:"#949494"}},arrow:{offset:10,verticalLength:5},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#fff",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10,10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5},resizeControl:{width:7,height:7,fill:"#fff",stroke:"#000"},resizeOutline:{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},uo=function(n){var e=C(Ui);return n&&(e=Fr(e,n)),e},Wi=uo,Zi=1e3,Vi=999,Wr=function(){return++Zi},Ki=function(){return--Vi},V=function(){return V=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},nr=function(){function n(e,t){var r;this.BaseType=$.EDGE,this.id="",this.type="",this.sourceNodeId="",this.targetNodeId="",this.textMode=st.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this.points="",this.pointsList=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.isAnimation=!1,this.isShowAdjustPoint=!1,this.zIndex=0,this.state=X.DEFAULT,this.modelType=j.EDGE,this.customTextPosition=!1,this.style={},this.arrowConfig={markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")},this.graphModel=t,this.properties=(r=e.properties)!==null&&r!==void 0?r:{},this.initEdgeData(e),this.setAttributes()}return n.prototype.initEdgeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,r=t&&t(e.type),o=this.createId();e.id=o||r||Yt()}this.arrowConfig.markerEnd="url(#marker-end-".concat(e.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(e.id,")");var i=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=i,k(this,ni(e));var a=this.graphModel.overlapMode;a===pt.INCREASE&&(this.zIndex=e.zIndex||Wr()),this.setAnchors(),this.initPoints(),this.formatText(e)},n.prototype.setAttributes=function(){},n.prototype.createId=function(){return null},n.prototype.getEdgeStyle=function(){return V(V({},this.graphModel.theme.baseEdge),this.style)},n.prototype.getAdjustPointStyle=function(){return V({},this.graphModel.theme.edgeAdjust)},n.prototype.getTextStyle=function(){var e=this.graphModel.theme.edgeText;return C(e)},n.prototype.getEdgeAnimationStyle=function(){var e=this.graphModel.theme.edgeAnimation;return C(e)},n.prototype.getArrowStyle=function(){var e=this.getEdgeStyle(),t=this.getEdgeAnimationStyle(),r=this.graphModel.theme.arrow,o=this.isAnimation?t.stroke:e.stroke;return V(V(V({},e),{fill:o,stroke:o}),r)},n.prototype.getOutlineStyle=function(){var e=this.graphModel,t=e.theme.outline;return C(t)},n.prototype.getTextPosition=function(){return{x:0,y:0}},Object.defineProperty(n.prototype,"sourceNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.sourceNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"targetNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.targetNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"textPosition",{get:function(){return this.getTextPosition()},enumerable:!1,configurable:!0}),n.prototype.getBeginAnchor=function(e,t,r){var o,i,a=Er(e);if(r){if(o=Ht(a,function(s){return s.id===r}),o)return o;console.warn("未在节点上找到指定的起点锚点".concat(r,",已使用默认锚点作为起点"))}return a.forEach(function(s){var l=fn(s,t);(i===void 0||l=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},fr=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},mn=function(n){qi(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.BEZIER_EDGE,o.path="",o.initEdgeData(t),o.setAttributes(),o}return e.prototype.initEdgeData=function(t){this.offset=100,n.prototype.initEdgeData.call(this,t)},e.prototype.getEdgeStyle=function(){var t=this.graphModel.theme.bezier,r=n.prototype.getEdgeStyle.call(this),o=this.properties.style,i=o===void 0?{}:o;return It(It(It({},r),C(t)),C(i))},e.prototype.getTextPosition=function(){if(this.pointsList&&this.pointsList.length>0){var t=0,r=0;return this.pointsList.forEach(function(o){var i=o.x,a=o.y;t+=i,r+=a}),{x:t/this.pointsList.length,y:r/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}},e.prototype.getData=function(){var t=n.prototype.getData.call(this),r=this.pointsList.map(function(o){var i=o.x,a=o.y;return{x:i,y:a}});return It(It({},t),{pointsList:r})},e.prototype.getControls=function(){var t=this.startPoint,r=this.endPoint,o=dn({start:t,end:r,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset});return o},e.prototype.getPath=function(t){var r=fr(t,4),o=r[0],i=r[1],a=r[2],s=r[3];return"M ".concat(o.x," ").concat(o.y,`
- C `).concat(i.x," ").concat(i.y,`,
- `).concat(a.x," ").concat(a.y,`,
- `).concat(s.x," ").concat(s.y)},e.prototype.initPoints=function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=this.getControls(),r=t.sNext,o=t.ePre;this.updatePath(r,o)},e.prototype.updatePath=function(t,r){t=C(t),r=C(r);var o={x:this.startPoint.x,y:this.startPoint.y},i={x:this.endPoint.x,y:this.endPoint.y};if(!t||!r){var a=this.getControls();t=a.sNext,r=a.ePre}this.pointsList=[o,t,r,i],this.path=this.getPath(this.pointsList)},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,r){this.startPoint.x+=t,this.startPoint.y+=r;var o=fr(this.pointsList,3),i=o[1],a=o[2];i.x+=t,i.y+=r,this.updatePath(i,a)},e.prototype.moveEndPoint=function(t,r){this.endPoint.x+=t,this.endPoint.y+=r;var o=fr(this.pointsList,3),i=o[1],a=o[2];a.x+=t,a.y+=r,this.updatePath(i,a)},e.prototype.updateAdjustAnchor=function(t,r){var o;r==="sNext"?this.pointsList[1]=t:r==="ePre"&&(this.pointsList[2]=t),this.path=this.getPath(this.pointsList),!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition))},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var r=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode,s=dn({start:r,end:o,sourceNode:i,targetNode:a,offset:this.offset}),l=s.sNext,d=s.ePre;this.pointsList=[r,l,d,o],this.initPoints()},dt([E],e.prototype,"path",void 0),dt([m],e.prototype,"initPoints",null),dt([m],e.prototype,"updatePoints",null),dt([m],e.prototype,"updateStartPoint",null),dt([m],e.prototype,"updateEndPoint",null),dt([m],e.prototype,"moveStartPoint",null),dt([m],e.prototype,"moveEndPoint",null),dt([m],e.prototype,"updateAdjustAnchor",null),dt([m],e.prototype,"getAdjustStart",null),dt([m],e.prototype,"getAdjustEnd",null),dt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(nr),Ji=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),le=function(){return le=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Qi=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Mn=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ea=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;rl)&&(a=l,i=s)}),i},e.prototype.getCrossPoint=function(t,r,o){var i;return t===G.HORIZONTAL?i={x:o.x,y:r.y}:t===G.VERTICAL&&(i={x:r.x,y:o.y}),i},e.prototype.removeCrossPoints=function(t,r,o){var i=o.map(function(v){return v});if(t===1){var a=i[t],s=i[r],l=i[t-1],d=on(l,a,this.sourceNode);if(d){var u=an(a,s,this.sourceNode);if(u){var f=sn(a,s,this.sourceNode);f&&(i[t]=f,i.splice(t-1,1),t--,r--)}}else{var c=this.sourceNode.anchors;c.forEach(function(v){if(v.x===l.x&&v.x===a.x||v.y===l.y&&v.y===a.y){var _=vt(v.x,v.y,a.x,a.y),M=vt(l.x,l.y,a.x,a.y);_0?this.points=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=nn({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=t,this.points=t.map(function(r){return"".concat(r.x,",").concat(r.y)}).join(" ")},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,r){this.startPoint.x+=t,this.startPoint.y+=r,this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveEndPoint=function(t,r){this.endPoint.x+=t,this.endPoint.y+=r,this.updatePoints()},e.prototype.updatePointsList=function(t,r){this.pointsList.forEach(function(a){a.x+=t,a.y+=r});var o=this.pointsList[0];this.startPoint=Object.assign({},o);var i=this.pointsList[this.pointsList.length-1];this.endPoint=Object.assign({},i),this.initPoints()},e.prototype.dragAppendStart=function(){this.draggingPointList=this.pointsList.map(function(t){return t})},e.prototype.dragAppendSimple=function(t,r){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,l=t.endIndex,d=t.direction,u=this.pointsList,f=u;return d===G.HORIZONTAL?(u[s]={x:i.x,y:i.y+r.y},u[l]={x:a.x,y:a.y+r.y},f=this.pointsList.map(function(c){return c})):d===G.VERTICAL&&(u[s]={x:i.x+r.x,y:i.y},u[l]={x:a.x+r.x,y:a.y},f=this.pointsList.map(function(c){return c})),this.updatePointsAfterDrag(f),this.draggingPointList=f,!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition)),{start:k({},u[s]),end:k({},u[l]),startIndex:s,endIndex:l,direction:d}},e.prototype.dragAppend=function(t,r){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,l=t.endIndex,d=t.direction,u=this.pointsList;if(d===G.HORIZONTAL){u[s]={x:i.x,y:i.y+r.y},u[l]={x:a.x,y:a.y+r.y};var f=this.pointsList.map(function(g){return g});if(s!==0&&l!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,l,f)),s===0){var c={x:i.x,y:i.y+r.y},h=Nt(c,this.sourceNode);if(!h){var y=this.sourceNode.anchors;f=this.getDraggingPoints(d,"start",c,y,f)}}if(l===this.pointsList.length-1){var p={x:a.x,y:a.y+r.y},h=Nt(p,this.targetNode);if(!h){var y=this.targetNode.anchors;f=this.getDraggingPoints(d,"end",p,y,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}else if(d===G.VERTICAL){u[s]={x:i.x+r.x,y:i.y},u[l]={x:a.x+r.x,y:a.y};var f=this.pointsList.map(function(v){return v});if(s!==0&&l!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,l,f)),s===0){var c={x:i.x+r.x,y:i.y},h=Nt(c,this.sourceNode);if(!h){var y=this.sourceNode.anchors;f=this.getDraggingPoints(d,"start",c,y,f)}}if(l===this.pointsList.length-1){var p={x:a.x+r.x,y:a.y},h=Nt(p,this.targetNode);if(!h){var y=this.targetNode.anchors;f=this.getDraggingPoints(d,"end",p,y,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}return!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition)),{start:k({},u[s]),end:k({},u[l]),startIndex:s,endIndex:l,direction:d}},e.prototype.dragAppendEnd=function(){if(this.draggingPointList){var t=Qn(kt(this.points));this.pointsList=t.map(function(i){return i}),this.draggingPointList=[];var r=t[0];this.startPoint=k({},r);var o=t[t.length-1];this.endPoint=k({},o)}this.isDragging=!1},e.prototype.updatePointsAfterDrag=function(t){var r=this.updateCrossPoints(t);this.points=r.map(function(o){return"".concat(o.x,",").concat(o.y)}).join(" ")},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var r=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode;this.pointsList=nn({x:r.x,y:r.y},{x:o.x,y:o.y},i,a,this.offset||0),this.initPoints()},tt([E],e.prototype,"dbClickPosition",void 0),tt([m],e.prototype,"initPoints",null),tt([m],e.prototype,"updatePoints",null),tt([m],e.prototype,"updateStartPoint",null),tt([m],e.prototype,"moveStartPoint",null),tt([m],e.prototype,"updateEndPoint",null),tt([m],e.prototype,"moveEndPoint",null),tt([m],e.prototype,"updatePointsList",null),tt([m],e.prototype,"dragAppendStart",null),tt([m],e.prototype,"dragAppendSimple",null),tt([m],e.prototype,"dragAppend",null),tt([m],e.prototype,"dragAppendEnd",null),tt([m],e.prototype,"updatePointsAfterDrag",null),tt([m],e.prototype,"getAdjustStart",null),tt([m],e.prototype,"getAdjustEnd",null),tt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(nr),q=function(){return q=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Sn=function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ra=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ct=function(){function n(e,t){var r;this.BaseType=$.NODE,this.id="",this.type="",this.x=0,this.y=0,this.textMode=st.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this._width=100,this._height=80,this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.anchorsOffset=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isShowAnchor=!1,this.isDragging=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.rotatable=!0,this.resizable=!0,this.zIndex=1,this.state=X.DEFAULT,this.autoToFront=!0,this.style={},this._rotate=0,this.modelType=j.NODE,this.additionStateData={},this.targetRules=[],this.sourceRules=[],this.moveRules=[],this.resizeRules=[],this.hasSetTargetRules=!1,this.hasSetSourceRules=!1,this.graphModel=t,this.properties=(r=e.properties)!==null&&r!==void 0?r:{},this.initNodeData(e),this.setAttributes()}return Object.defineProperty(n.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e;var t=this,r=t.x,o=r===void 0?0:r,i=t.y,a=i===void 0?0:i;this.transform=new rr(-o,-a).rotate(e).translate(o,a).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"incoming",{get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"outgoing",{get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}},enumerable:!1,configurable:!0}),n.prototype.initNodeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,r=t&&t(e.type),o=this.createId();e.id=o||r||Yt()}this.formatText(e),k(this,pi(e));var i=this.graphModel.overlapMode;i===pt.INCREASE&&(this.zIndex=e.zIndex||Wr())},n.prototype.setAttributes=function(){},n.prototype.createId=function(){return null},n.prototype.setTextMode=function(e){this.textMode=e},n.prototype.formatText=function(e){var t,r,o,i=this.graphModel.editConfigModel,a=i.nodeTextDraggable,s=i.nodeTextEdit,l=e.x,d=e.y,u=e.text,f={value:"",x:l,y:d,draggable:a,editable:s};u&&(typeof u=="string"?f.value=u:(f=q(q({},f),{x:(t=u.x)!==null&&t!==void 0?t:l,y:(r=u.y)!==null&&r!==void 0?r:d,value:(o=u.value)!==null&&o!==void 0?o:""}),Qt(u.draggable)||(f.draggable=u.draggable),Qt(u.editable)||(f.editable=u.editable))),e.text=f},n.prototype.resize=function(e){var t=e.width,r=e.height,o=e.deltaX,i=e.deltaY,a=this.isAllowResizeNode(o,i,t,r);return a?(this.move(o/2,i/2),this.width=t,this.height=r,this.setProperties({width:t,height:r}),this.getData()):this.getData()},n.prototype.proportionalResize=function(){},n.prototype.getData=function(){var e=this.text,t=e.x,r=e.y,o=e.value,i=this.properties;qn(i)&&(i=mt(i)),ht(i.width)&&(i.width=this.width),ht(i.height)&&(i.height=this.height);var a={id:this.id,type:this.type,x:this.x,y:this.y,properties:i};return this.rotate&&(a.rotate=this.rotate),this.graphModel.overlapMode===pt.INCREASE&&(a.zIndex=this.zIndex),o&&(a.text={x:t,y:r,value:o}),a},n.prototype.getHistoryData=function(){return this.getData()},n.prototype.getProperties=function(){return mt(this.properties)},n.prototype.getOuterGAttributes=function(){return{className:""}},n.prototype.getNodeStyle=function(){return q(q({},this.graphModel.theme.baseNode),this.style)},n.prototype.getTextStyle=function(){var e=this.graphModel.theme.nodeText,t=this.properties.textStyle,r=t===void 0?{}:t;return q(q({},C(e)),C(r))},n.prototype.getRotateControlStyle=function(){var e=this.graphModel.theme.rotateControl;return C(e)},n.prototype.getResizeControlStyle=function(){var e=this.graphModel.theme.resizeControl;return C(e)},n.prototype.getResizeOutlineStyle=function(){var e=this.graphModel.theme.resizeOutline;return C(e)},n.prototype.getAnchorStyle=function(e){var t=this.graphModel.theme.anchor;return C(t)},n.prototype.getAnchorLineStyle=function(e){var t=this.graphModel.theme.anchorLine;return C(t)},n.prototype.getOutlineStyle=function(){var e=this.graphModel.theme.outline;return C(e)},n.prototype.isAllowConnectedAsSource=function(e,t,r,o){var i=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var a=!0,s="",l=0;l0?t.map(function(a,s){return a.length?(a=a,{id:"".concat(r,"_").concat(s),x:o+a[0],y:i+a[1]}):(a=a,q(q({},a),{x:o+a.x,y:i+a.y,id:a.id||"".concat(r,"_").concat(s)}))}):this.getDefaultAnchor()},n.prototype.getDefaultAnchor=function(){return[]},n.prototype.getTargetAnchor=function(e){return ui(e,this)},n.prototype.getBounds=function(){return{minX:this.x-this.width/2,minY:this.y-this.height/2,maxX:this.x+this.width/2,maxY:this.y+this.height/2}},Object.defineProperty(n.prototype,"anchors",{get:function(){var e=this.getAnchorsByOffset(),t=this,r=t.x,o=t.y,i=t.rotate;return e.forEach(function(a){var s=a.x,l=a.y,d=ra(new er([s,l,1]).translate(-r,-o).rotate(i).translate(r,o)[0],2),u=d[0],f=d[1];a.x=u,a.y=f}),e},enumerable:!1,configurable:!0}),n.prototype.getAnchorInfo=function(e){if(!ht(e))for(var t=0;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wn=function(n){na(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.CIRCLE_NODE,o.r=50,o.initNodeData(t),o.setAttributes(),o}return Object.defineProperty(e.prototype,"width",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties.r;t&&(this.r=t)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.circle,o=this.properties.style,i=o===void 0?{}:o;return ue(ue(ue({},t),C(r)),C(i))},e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.r;return[{x:r,y:o-i,id:"".concat(this.id,"_0")},{x:r+i,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+i,id:"".concat(this.id,"_2")},{x:r-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var r=t.width,o=t.deltaX,i=t.deltaY;return this.move(o/2,i/2),this.r=r,this.setProperties({r}),this.getData()},cr([E],e.prototype,"r",void 0),cr([F],e.prototype,"width",null),cr([F],e.prototype,"height",null),e}(Ct),oa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),fe=function(){return fe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},je=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},An=function(n){oa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.DIAMOND_NODE,o.rx=30,o.ry=50,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.rx,o=t.ry;r&&(this.rx=r),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.diamond,o=this.properties.style,i=o===void 0?{}:o;return fe(fe(fe({},t),C(r)),C(i))},Object.defineProperty(e.prototype,"points",{get:function(){var t=this,r=t.x,o=t.y,i=t.rx,a=t.ry;return[[r,o-a],[r+i,o],[r,o+a],[r-i,o]]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointsPosition",{get:function(){return St(this.points,function(t){var r=je(t,2),o=r[0],i=r[1];return{x:o,y:i}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=je(o,1),a=i[0];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=je(o,2),a=i[1];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this;return St(this.points,function(r,o){var i=je(r,2),a=i[0],s=i[1];return{x:a,y:s,id:"".concat(t.id,"_").concat(o)}})},e.prototype.resize=function(t){var r=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=r,this.ry=o,this.setProperties({rx:r,ry:o}),this.getData()},Wt([E],e.prototype,"rx",void 0),Wt([E],e.prototype,"ry",void 0),Wt([F],e.prototype,"points",null),Wt([F],e.prototype,"pointsPosition",null),Wt([F],e.prototype,"width",null),Wt([F],e.prototype,"height",null),e}(Ct),ia=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ce=function(){return ce=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Pn=function(n){ia(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.ELLIPSE_NODE,o.rx=30,o.ry=45,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.rx,o=t.ry;r&&(this.rx=r),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.ellipse,o=this.properties.style,i=o===void 0?{}:o;return ce(ce(ce({},t),C(r)),C(i))},Object.defineProperty(e.prototype,"width",{get:function(){return this.rx*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.ry*2},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.rx,a=t.ry;return[{x:r,y:o-a,id:"".concat(this.id,"_0")},{x:r+i,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+a,id:"".concat(this.id,"_2")},{x:r-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var r=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=r,this.ry=o,this.setProperties({rx:r,ry:o}),this.getData()},Re([E],e.prototype,"rx",void 0),Re([E],e.prototype,"ry",void 0),Re([F],e.prototype,"width",null),Re([F],e.prototype,"height",null),e}(Ct),aa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),pe=function(){return pe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Be=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Tn=function(n){aa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.POLYGON_NODE,o.points=[[50,0],[100,50],[50,100],[0,50]],o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.points,o=t.width,i=t.height,a=r||this.points;this.points=ai(a,o,i)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.polygon,o=this.properties.style,i=o===void 0?{}:o;return pe(pe(pe({},t),C(r)),C(i))},Object.defineProperty(e.prototype,"pointsPosition",{get:function(){var t=this,r=t.x,o=t.y,i=t.width,a=t.height;return this.points.map(function(s){return{x:s[0]+r-i/2,y:s[1]+o-a/2}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Be(o,1),a=i[0];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Be(o,2),a=i[1];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,r=this,o=r.x,i=r.y,a=r.width,s=r.height,l=r.points;return l.map(function(d,u){var f=Be(d,2),c=f[0],h=f[1];return{x:o+c-a/2,y:i+h-s/2,id:"".concat(t.id,"_").concat(u)}})},e.prototype.resize=function(t){var r=this,o=t.width,i=t.height,a=t.deltaX,s=t.deltaY;this.move(a/2,s/2);var l=St(this.points,function(d){var u=Be(d,2),f=u[0],c=u[1];return[f*o/r.width,c*i/r.height]});return this.points=l,this.properties.points=l,this.getData()},Ie([E],e.prototype,"points",void 0),Ie([F],e.prototype,"pointsPosition",null),Ie([F],e.prototype,"width",null),Ie([F],e.prototype,"height",null),e}(Ct),sa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),he=function(){return he=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Dn=function(n){sa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.RECT_NODE,o.radius=0,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.width,o=t.height,i=t.radius;ht(r)||(this.width=r),ht(o)||(this.height=o),ht(i)||(this.radius=i)},e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.width,a=t.height;return[{x:r,y:o-a/2,id:"".concat(this.id,"_0")},{x:r+i/2,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+a/2,id:"".concat(this.id,"_2")},{x:r-i/2,y:o,id:"".concat(this.id,"_3")}]},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.rect,o=this.properties.style,i=o===void 0?{}:o;return he(he(he({},t),C(r)),C(i))},la([E],e.prototype,"radius",void 0),e}(Ct),da=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ve=function(){return ve=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ua=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},fa=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},pa={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotate:!1,allowResize:!1,nodeSelectedOutline:!0,textEdit:!1,nodeTextEdit:!1,edgeTextEdit:!1,textDraggable:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},Xe=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","snapGrid","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustEdgeStart","adjustEdgeEnd","adjustNodePosition","hideAnchors","allowRotate","allowResize","autoExpand","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","textEdit","nodeTextEdit","edgeTextEdit","textDraggable","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","textMode","nodeTextMode","edgeTextMode","nodeTextMultiple","edgeTextMultiple","nodeTextVertical","edgeTextVertical"],ha=function(){function n(e){this.isSilentMode=!1,this.stopZoomGraph=!1,this.stopMoveGraph=!1,this.stopScrollGraph=!1,this.snapGrid=!1,this.textMode=st.TEXT,this.textEdit=!0,this.textDraggable=!1,this.nodeTextEdit=!0,this.nodeTextDraggable=!1,this.nodeTextMultiple=!1,this.nodeTextVertical=!1,this.nodeTextMode=st.TEXT,this.edgeTextMode=st.TEXT,this.edgeTextEdit=!0,this.edgeTextDraggable=!1,this.edgeTextMultiple=!1,this.edgeTextVertical=!1,this.hideAnchors=!1,this.allowRotate=!1,this.allowResize=!1,this.hoverOutline=!0,this.nodeSelectedOutline=!0,this.adjustNodePosition=!0,this.autoExpand=!1,this.adjustEdge=!0,this.adjustEdgeMiddle=!1,this.adjustEdgeStartAndEnd=!1,this.adjustEdgeStart=!1,this.adjustEdgeEnd=!1,this.edgeSelectedOutline=!0,this.multipleSelectKey="",k(this,this.computeConfig(e))}return n.prototype.updateEditConfig=function(e){var t=this.computeConfig(e);k(this,t)},n.prototype.computeConfig=function(e){var t=e.isSilentMode,r=e.textDraggable,o=e.textMode,i=e.textEdit,a=e.adjustEdgeStartAndEnd,s={};if(t===!1&&k(s,this.stagedConfig),t===!0&&t!==this.isSilentMode){var l=Kt(pa,Xe);this.stagedConfig=Kt(this,Xe),k(s,l)}Qt(i)||k(s,{nodeTextEdit:i,edgeTextEdit:i}),Qt(r)||k(s,{nodeTextDraggable:r,edgeTextDraggable:r}),o&&k(s,{nodeTextMode:o,edgeTextMode:o}),gr(a)&&k(s,{adjustEdgeStart:a,adjustEdgeEnd:a});var d=Kt(e,Xe);return k(s,d)},n.prototype.updateTextMode=function(e){this.textMode=e,this.edgeTextMode=e,this.nodeTextMode=e},n.prototype.getConfig=function(){return Kt(this,Xe)},B([E],n.prototype,"isSilentMode",void 0),B([E],n.prototype,"stopZoomGraph",void 0),B([E],n.prototype,"stopMoveGraph",void 0),B([E],n.prototype,"stopScrollGraph",void 0),B([E],n.prototype,"snapGrid",void 0),B([E],n.prototype,"textMode",void 0),B([E],n.prototype,"textEdit",void 0),B([E],n.prototype,"textDraggable",void 0),B([E],n.prototype,"nodeTextEdit",void 0),B([E],n.prototype,"nodeTextDraggable",void 0),B([E],n.prototype,"nodeTextMultiple",void 0),B([E],n.prototype,"nodeTextVertical",void 0),B([E],n.prototype,"nodeTextMode",void 0),B([E],n.prototype,"edgeTextMode",void 0),B([E],n.prototype,"edgeTextEdit",void 0),B([E],n.prototype,"edgeTextDraggable",void 0),B([E],n.prototype,"edgeTextMultiple",void 0),B([E],n.prototype,"edgeTextVertical",void 0),B([E],n.prototype,"hideAnchors",void 0),B([E],n.prototype,"allowRotate",void 0),B([E],n.prototype,"allowResize",void 0),B([E],n.prototype,"hoverOutline",void 0),B([E],n.prototype,"nodeSelectedOutline",void 0),B([E],n.prototype,"adjustNodePosition",void 0),B([E],n.prototype,"autoExpand",void 0),B([E],n.prototype,"adjustEdge",void 0),B([E],n.prototype,"adjustEdgeMiddle",void 0),B([E],n.prototype,"adjustEdgeStartAndEnd",void 0),B([E],n.prototype,"adjustEdgeStart",void 0),B([E],n.prototype,"adjustEdgeEnd",void 0),B([E],n.prototype,"edgeSelectedOutline",void 0),B([m],n.prototype,"updateEditConfig",null),B([m],n.prototype,"updateTextMode",null),n}(),va="*",ya=function(){function n(){this._events={}}return n.prototype.on=function(e,t,r){var o=this;e==null||e.split(",").forEach(function(i){i=i.trim(),o._events[i]||(o._events[i]=[]),o._events[i].push({callback:t,once:!!r})})},n.prototype.once=function(e,t){var r=this;e==null||e.split(",").forEach(function(o){o=o.trim(),r.on(o,t,!0)})},n.prototype.emit=function(e,t){var r=this;e==null||e.split(",").forEach(function(o){var i=r._events[o]||[],a=r._events[va]||[],s=function(l){for(var d=l.length,u=0;u=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ma=function(n){ga(e,n);function e(t){var r=n.call(this)||this;r.stepScrollX=0,r.stepScrollY=0,r.onDragging=function(s){var l=s.deltaX,d=s.deltaY;r.setState({isDragging:!0});var u=r.props.graphModel,f=u.transformModel,c=u.editConfigModel;c.stopMoveGraph!==!0&&f.translate(l,d)},r.onDragEnd=function(){r.setState({isDragging:!1})},r.zoomHandler=function(s){var l=r.props,d=l.graphModel,u=d.editConfigModel,f=d.transformModel,c=d.gridSize,h=l.graphModel,y=s.deltaX,p=s.deltaY,g=u.stopScrollGraph,v=u.stopZoomGraph;if(!g&&!s.ctrlKey&&!s.metaKey){if(s.preventDefault(),r.stepScrollX+=y,r.stepScrollY+=p,Math.abs(r.stepScrollX)>=c){var _=r.stepScrollX%c,M=r.stepScrollX-_;f.translate(-M*f.SCALE_X,0),r.stepScrollX=_}if(Math.abs(r.stepScrollY)>=c){var S=r.stepScrollY%c,O=r.stepScrollY-S;f.translate(0,-O*f.SCALE_Y),r.stepScrollY=S}return}if(!v){s.preventDefault();var w=h.getPointByClient({x:s.clientX,y:s.clientY}),A=w.canvasOverlayPosition,b=A.x,R=A.y;f.zoom(s.deltaY<0,[b,R])}},r.clickHandler=function(s){var l=s.target;if(l.getAttribute("name")==="canvas-overlay"){var d=r.props.graphModel,u=d.selectElements;u.size>0&&d.clearSelectElements(),d.eventCenter.emit(T.BLANK_CLICK,{e:s})}},r.handleContextMenu=function(s){var l=s.target;if(l.getAttribute("name")==="canvas-overlay"){s.preventDefault();var d=r.props.graphModel,u=d.getPointByClient({x:s.clientX,y:s.clientY});d.eventCenter.emit(T.BLANK_CONTEXTMENU,{e:s,position:u})}},r.mouseDownHandler=function(s){var l=r.props.graphModel,d=l.eventCenter,u=l.editConfigModel,f=l.transformModel.SCALE_X,c=l.gridSize,h=u.adjustEdge,y=u.adjustNodePosition,p=u.stopMoveGraph,g=s.target,v=!h&&!y;(g.getAttribute("name")==="canvas-overlay"||v)&&(p!==!0?(r.stepDrag.setStep(c*f),r.stepDrag.handleMouseDown(s)):d.emit(T.BLANK_MOUSEDOWN,{e:s}),r.clickHandler(s))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter;return r.stepDrag=new Mt({onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:i,eventType:"BLANK",isStopPropagation:!1,eventCenter:a,model:void 0}),r.state={isDragging:!1},r}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=t.getTransformStyle().transform,o=this.props,i=o.children,a=o.dnd,s=this.state.isDragging;return x("svg",Nr({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:s?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},a.eventMap(),{children:x("g",{transform:r,children:i})}))},e=_a([ot],e),e}(K),fo=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),we=function(){return we=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ea=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ln=function(n){fo(e,n);function e(){var t=n.call(this)||this;return t.onDragging=function(r){var o=r.event,i=t.props,a=i.graphModel,s=i.bezierModel,l=i.type,d=a.getPointByClient({x:o.clientX,y:o.clientY}).canvasOverlayPosition,u=d.x,f=d.y;s.updateAdjustAnchor({x:u,y:f},l),a.eventCenter.emit(T.EDGE_ADJUST,{data:s.getData()})},t.onDragEnd=function(){var r=t.props.bezierModel;r.isDragging=!1},t.dragHandler=new Mt({onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.render=function(){var t=this,r=this.props.position,o=r.x,i=r.y,a=this.props.bezierModel,s=a.getEdgeStyle().adjustAnchor;return x(re,we({className:"lf-bezier-adjust-anchor",x:o,y:i},s,{onMouseDown:function(l){t.dragHandler.handleMouseDown(l)}}))},e}(K),Ma=function(n){fo(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getBezierAdjust=function(t,r){var o=t.path,i=t.id,a=$r(o),s=Ea(a,4),l=s[0],d=s[1],u=s[2],f=s[3],c=t.getEdgeStyle().adjustLine,h=[];return h.push(x(ee,we({x1:l.x,y1:l.y,x2:d.x,y2:d.y},c))),h.push(x(Ln,{position:d,bezierModel:t,graphModel:r,type:"sNext"},"".concat(i,"_ePre"))),h.push(x(ee,we({x1:f.x,y1:f.y,x2:u.x,y2:u.y},c))),h.push(x(Ln,{position:u,bezierModel:t,graphModel:r,type:"ePre"},"".concat(i,"_sNext"))),h},e.prototype.selectedBezierEdge=function(){for(var t=this.props.graphModel,r=t.edges,o=[],i=0;i=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wa=function(n){Oa(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.background;return x("div",{className:"lf-background",children:x("div",{style:mo(t)?t:{},className:"lf-background-area"})})},e=Sa([ot],e),e}(K),Aa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Pa=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},qe=function(n){Aa(e,n);function e(t){var r=n.call(this,t)||this;return r.id=Yt(),r.gridOptions=r.props.graphModel.grid,r}return e.prototype.renderDot=function(){var t=this.gridOptions,r=t.config,o=t.size,i=o===void 0?1:o,a=t.visible,s=r??{},l=s.color,d=s.thickness,u=d===void 0?2:d,f=Math.min(Math.max(2,u),i/4),c=a?1:0;return x("g",{fill:l,opacity:c,children:[x("circle",{cx:0,cy:0,r:f/2}),x("circle",{cx:0,cy:i,r:f/2}),x("circle",{cx:i,cy:0,r:f/2}),x("circle",{cx:i,cy:i,r:f/2})]})},e.prototype.renderMesh=function(){var t=this.gridOptions,r=t.config,o=t.size,i=o===void 0?1:o,a=t.visible,s=r??{},l=s.color,d=s.thickness,u=d===void 0?1:d,f=Math.min(Math.max(1,u),i/2),c="M 0 0 H ".concat(i," V ").concat(i," H 0 Z"),h=a?1:0;return x("path",{d:c,stroke:l,strokeWidth:f/2,opacity:h,fill:"transparent"})},e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=this.gridOptions,o=r.type,i=r.size,a=i===void 0?1:i,s=t.SCALE_X,l=t.SKEW_Y,d=t.SKEW_X,u=t.SCALE_Y,f=t.TRANSLATE_X,c=t.TRANSLATE_Y,h=[s,l,d,u,f,c].join(","),y="matrix(".concat(h,")");return x("div",{className:"lf-grid",children:x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",children:[x("defs",{children:x("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:y,x:"0",y:"0",width:a,height:a,children:[o==="dot"&&this.renderDot(),o==="mesh"&&this.renderMesh()]})}),x("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})]})})},e=Pa([ot],e),e}(K);(function(n){n.defaultProps={size:Bo,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}};function e(t){var r=C(n.defaultProps);return typeof t=="number"?k(r,{size:t}):typeof t=="boolean"?k(r,{visible:t}):k(r,t)}n.getGridOptions=e})(qe||(qe={}));var Ta=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Da=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Na=function(n){Ta(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=t.getTransformStyle().transform,o=this.props.children;return x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay",children:x("g",{transform:r,children:o})})},e=Da([ot],e),e}(K),ba=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),wt=function(){return wt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},La=function(n){ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getNodesOutline=function(){var t=this.props.graphModel,r=t.nodes,o=t.editConfigModel,i=o.hoverOutline,a=o.nodeSelectedOutline,s=[];return r.forEach(function(l){if(l.isHovered||l.isSelected){var d=l.isHovered,u=l.isSelected,f=l.x,c=l.y,h=l.width,y=l.height;if(a&&u||i&&d){var p=l.getOutlineStyle(),g={};if(Object.keys(p).forEach(function(_){_!=="hover"&&(g[_]=p[_])}),d){var v=p.hover;g=wt(wt({},g),v)}s.push(x(Et,wt({transform:l.transform,className:"lf-outline-node",x:f,y:c,width:h+10,height:y+10},g)))}}}),s},e.prototype.getEdgeOutline=function(){for(var t=this.props.graphModel,r=t.edges,o=t.editConfigModel,i=o.edgeSelectedOutline,a=o.hoverOutline,s=[],l=0;l=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ia=function(n){ja(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.snaplineModel,r=t??{},o=r.position,i=r.isShowHorizontal,a=r.isShowVertical,s=t==null?void 0:t.getStyle(),l=o??{},d=l.x,u=d===void 0?0:d,f=l.y,c=f===void 0?0:f,h=At(At({x1:-1e5,y1:c,x2:1e5,y2:c},s),{stroke:i?s==null?void 0:s.stroke:"none"}),y=At(At({x1:u,y1:-1e5,x2:u,y2:1e5},s),{stroke:a?s==null?void 0:s.stroke:"none"});return x("g",{className:"lf-snapline",children:[x(ee,At({},h)),x(ee,At({},y))]})},e=Ra([ot],e),e}(K),Ba=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Xa=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ya=function(n){Ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){this.triggerToolRender()},e.prototype.componentDidUpdate=function(){this.triggerToolRender()},e.prototype.getTools=function(){var t=this.props,r=t.tool,o=t.graphModel,i=o.textEditElement,a=r.getTools(),s=a.map(function(l){return Wn(l,{textEditElement:i,graphModel:o,lf:r.instance})});return r.components=s,s},e.prototype.triggerToolRender=function(){var t=this.props,r=t.tool,o=t.graphModel,i=document.querySelector("#ToolOverlay_".concat(o.flowId)),a=r.getInstance();a.components.forEach(function(s){return s(a,i)}),a.components=[]},e.prototype.render=function(){var t=this.props.graphModel;return x("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(t.flowId),children:this.getTools()})},e=Xa([ot],e),e}(K),Pt=function(){return Pt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ha=function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},J=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},it=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},za=function(){function n(e){this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=e}return n.prototype.getStyle=function(){return Bt({},this.graphModel.theme.snapline)},n.prototype.getCenterSnapLine=function(e,t){for(var r=e.x,o=e.y,i=!1,a=!1,s=0;s=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Zt=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ga={false:[-1/0,-1/0,1/0,1/0],true:[-1/0,-1/0,1/0,1/0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},Fa=function(){function n(e,t){this.MINI_SCALE_SIZE=.2,this.MAX_SCALE_SIZE=16,this.SCALE_X=1,this.SKEW_Y=0,this.SKEW_X=0,this.SCALE_Y=1,this.TRANSLATE_X=0,this.TRANSLATE_Y=0,this.ZOOM_SIZE=.04,this.translateLimitMinX=-1/0,this.translateLimitMinY=-1/0,this.translateLimitMaxX=1/0,this.translateLimitMaxY=1/0,this.eventCenter=e;var r=t.stopMoveGraph,o=r===void 0?!1:r;this.updateTranslateLimits(o)}return n.prototype.setZoomMiniSize=function(e){this.MINI_SCALE_SIZE=e},n.prototype.setZoomMaxSize=function(e){this.MAX_SCALE_SIZE=e},n.prototype.HtmlPointToCanvasPoint=function(e){var t=Zt(e,2),r=t[0],o=t[1];return[(r-this.TRANSLATE_X)/this.SCALE_X,(o-this.TRANSLATE_Y)/this.SCALE_Y]},n.prototype.CanvasPointToHtmlPoint=function(e){var t=Zt(e,2),r=t[0],o=t[1];return[r*this.SCALE_X+this.TRANSLATE_X,o*this.SCALE_Y+this.TRANSLATE_Y]},n.prototype.moveCanvasPointByHtml=function(e,t,r){var o=Zt(e,2),i=o[0],a=o[1];return[i+t/this.SCALE_X,a+r/this.SCALE_Y]},n.prototype.fixDeltaXY=function(e,t){return[e/this.SCALE_X,t/this.SCALE_Y]},n.prototype.getTransformStyle=function(){var e=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(e,")")}},n.prototype.zoom=function(e,t){e===void 0&&(e=!1);var r=this.SCALE_X,o=this.SCALE_Y;return typeof e=="number"?(r=e,o=e):e?(r+=this.ZOOM_SIZE,o+=this.ZOOM_SIZE):(r-=this.ZOOM_SIZE,o-=this.ZOOM_SIZE),rthis.MAX_SCALE_SIZE?"".concat(this.SCALE_X*100,"%"):(t&&(this.TRANSLATE_X-=(r-this.SCALE_X)*t[0],this.TRANSLATE_Y-=(o-this.SCALE_Y)*t[1]),this.SCALE_X=r,this.SCALE_Y=o,this.emitGraphTransform("zoom"),"".concat(this.SCALE_X*100,"%"))},n.prototype.emitGraphTransform=function(e){this.eventCenter.emit(T.GRAPH_TRANSFORM,{type:e,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})},n.prototype.resetZoom=function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")},n.prototype.translate=function(e,t){this.TRANSLATE_X+e<=this.translateLimitMaxX&&this.TRANSLATE_X+e>=this.translateLimitMinX&&(this.TRANSLATE_X+=e),this.TRANSLATE_Y+t<=this.translateLimitMaxY&&this.TRANSLATE_Y+t>=this.translateLimitMinY&&(this.TRANSLATE_Y+=t),this.emitGraphTransform("translate")},n.prototype.focusOn=function(e,t,r,o){var i=Zt(this.CanvasPointToHtmlPoint([e,t]),2),a=i[0],s=i[1],l=Zt([r/2-a,o/2-s],2),d=l[0],u=l[1];this.TRANSLATE_X+=d,this.TRANSLATE_Y+=u,this.emitGraphTransform("focusOn")},n.prototype.updateTranslateLimits=function(e){var t;t=Zt(Array.isArray(e)&&e.length===4?e:Ga[e.toString()],4),this.translateLimitMinX=t[0],this.translateLimitMinY=t[1],this.translateLimitMaxX=t[2],this.translateLimitMaxY=t[3]},ut([E],n.prototype,"SCALE_X",void 0),ut([E],n.prototype,"SKEW_Y",void 0),ut([E],n.prototype,"SKEW_X",void 0),ut([E],n.prototype,"SCALE_Y",void 0),ut([E],n.prototype,"TRANSLATE_X",void 0),ut([E],n.prototype,"TRANSLATE_Y",void 0),ut([E],n.prototype,"ZOOM_SIZE",void 0),ut([m],n.prototype,"zoom",null),ut([m],n.prototype,"resetZoom",null),ut([m],n.prototype,"translate",null),ut([m],n.prototype,"focusOn",null),n}(),$a=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Ua=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Wa=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Za=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ja=function(n){Ka(e,n);function e(){var t=n.call(this)||this;return t.onDragStart=function(r){var o=r.event,i=t.props,a=i.anchorData,s=i.nodeModel,l=i.graphModel;l.selectNodeById(s.id),s.autoToFront&&l.toFront(s.id),l.eventCenter.emit(T.ANCHOR_DRAGSTART,{data:a,e:o,nodeModel:s}),t.setState({startX:a.x,startY:a.y,endX:a.x,endY:a.y})},t.onDragging=function(r){var o=r.event,i=t.props,a=i.graphModel,s=i.nodeModel,l=i.anchorData,d=a.transformModel,u=a.eventCenter,f=a.width,c=a.height,h=a.editConfigModel,y=h.autoExpand,p=h.stopMoveGraph;if(o){var g=o.clientX,v=o.clientY,_=a.getPointByClient({x:g,y:v}),M=_.domOverlayPosition,S=M.x,O=M.y,w=_.canvasOverlayPosition,A=w.x,b=w.y;t.t&&Ke(t.t);var R=[],L=10;S<10?R=[L,0]:S+10>f?R=[-10,0]:O<10?R=[0,L]:O+10>c&&(R=[0,-10]),t.setState({endX:A,endY:b,dragging:!0}),t.moveAnchorEnd(A,b),R.length>0&&!p&&y&&(t.t=io(function(){var z=qa(R,2),I=z[0],U=z[1];d.translate(I,U);var Y=t.state,Z=Y.endX,lt=Y.endY;t.setState({endX:Z-I,endY:lt-U}),t.moveAnchorEnd(Z-I,lt-U)})),u.emit(T.ANCHOR_DRAG,{data:l,e:o,nodeModel:s})}},t.onDragEnd=function(r){var o=r.event;t.t&&Ke(t.t);var i=t.checkEnd(o);t.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),t.sourceRuleResults.clear(),t.targetRuleResults.clear();var a=t.props,s=a.graphModel,l=a.nodeModel,d=a.anchorData;s.eventCenter.emit(T.ANCHOR_DRAGEND,{data:d,e:o,nodeModel:l,edgeModel:i??void 0})},t.checkEnd=function(r){var o,i=t.props,a=i.graphModel,s=i.nodeModel,l=i.anchorData,d=l.x,u=l.y,f=l.id,c=t.state,h=c.endX,y=c.endY,p=c.dragging,g=Ze({x:h,y},a);if(t.preTargetNode&&t.preTargetNode.state!==X.DEFAULT&&t.preTargetNode.setElementState(X.DEFAULT),!!p&&g&&g.node){var v=g.node,_=g.anchor.id,M="".concat(s.id,"_").concat(v.id,"_").concat(_,"_").concat(f),S=t.sourceRuleResults.get(M)||{},O=S.isAllPass,w=S.msg,A=t.targetRuleResults.get(M)||{},b=A.isAllPass,R=A.msg;if(O&&b){v.setElementState(X.DEFAULT);var L=a.getNodeModelById(g.node.id),z=(o=a.edgeGenerator)===null||o===void 0?void 0:o.call(a,s.getData(),L==null?void 0:L.getData()),I=a.addEdge(_t(_t({},z),{sourceNodeId:s.id,sourceAnchorId:f,startPoint:{x:d,y:u},targetNodeId:g.node.id,targetAnchorId:g.anchor.id,endPoint:{x:g.anchor.x,y:g.anchor.y}})),U=t.props.anchorData;return a.eventCenter.emit(T.ANCHOR_DROP,{data:U,e:r,nodeModel:s,edgeModel:I}),I}var Y=v.getData();return a.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:Y,msg:R||w||"不允许添加连线"}),null}},t.sourceRuleResults=new Map,t.targetRuleResults=new Map,t.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},t.dragHandler=new Mt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.getAnchorShape=function(){var t=this.props,r=t.anchorData,o=t.style,i=t.node,a=i.getAnchorShape(r);if(a)return a;var s=r.x,l=r.y,d=_t(_t({},o),o==null?void 0:o.hover);return x("g",{children:[x(re,_t({className:"lf-node-anchor-hover"},d,{x:s,y:l})),x(re,_t({className:"lf-node-anchor"},o,{x:s,y:l}))]})},Object.defineProperty(e.prototype,"customTrajectory",{get:function(){var t=this.props.graphModel.customTrajectory;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relateEdges",{get:function(){var t=this.props,r=t.graphModel,o=r.getAnchorIncomingEdge,i=r.getAnchorOutgoingEdge,a=t.anchorData.id;return{incomingEdgeList:o(a),outgoingEdgeList:i(a)}},enumerable:!1,configurable:!0}),e.prototype.moveAnchorEnd=function(t,r){var o,i,a=this.props,s=a.graphModel,l=a.nodeModel,d=a.anchorData,u=Ze({x:t,y:r},s);if(u){var f=u.node,c=u.anchor.id;if(this.preTargetNode&&this.preTargetNode!==u.node&&this.preTargetNode.setElementState(X.DEFAULT),d.id===c)return;this.preTargetNode=f;var h="".concat(l.id,"_").concat(f.id,"_").concat(c,"_").concat(d.id);if(!this.targetRuleResults.has(h)){var y=u.anchor,p=l.isAllowConnectedAsSource(f,d,y),g=f.isAllowConnectedAsTarget(l,d,y);this.sourceRuleResults.set(h,Ve(p)),this.targetRuleResults.set(h,Ve(g))}var v=((o=this.sourceRuleResults.get(h))!==null&&o!==void 0?o:{}).isAllPass,_=((i=this.targetRuleResults.get(h))!==null&&i!==void 0?i:{}).isAllPass;v&&_?f.setElementState(X.ALLOW_CONNECT):f.setElementState(X.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==X.DEFAULT&&this.preTargetNode.setElementState(X.DEFAULT)},e.prototype.isShowLine=function(){var t=this.state,r=t.startX,o=t.startY,i=t.endX,a=t.endY,s=vt(r,o,i,a);return s>10},e.prototype.render=function(){var t=this,r=this.state,o=r.startX,i=r.startY,a=r.endX,s=r.endY,l=this.props,d=l.anchorData.edgeAddable,u=l.edgeStyle;return x("g",{className:"lf-anchor",children:[x("g",{onMouseDown:function(f){d!==!1&&t.dragHandler.handleMouseDown(f)},children:this.getAnchorShape()}),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(_t({sourcePoint:{x:o,y:i},targetPoint:{x:a,y:s}},u)):x(ee,_t({x1:o,y1:i,x2:a,y2:s},u,{"pointer-events":"none"})))]})},e}(K),Qa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),br=function(){return br=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},co=function(n){es(e,n);function e(t){var r=n.call(this)||this;r.mouseDownHandler=function(i){var a=r.props,s=a.draggable,l=a.model,d=a.graphModel,u=d.editConfigModel.nodeTextDraggable;(s??u)&&(i.stopPropagation(),r.stepperDrag.model=l,r.stepperDrag.handleMouseDown(i))},r.onDragging=function(i){var a=i.deltaX,s=i.deltaY,l=r.props,d=l.model,u=l.graphModel.transformModel;if(a||s){var f=rs(u.fixDeltaXY(a,s),2),c=f[0],h=f[1];d.moveText(c,h)}},r.dbClickHandler=function(){var i=r.props,a=i.editable,s=i.graphModel.eventCenter,l=i.model;a&&l.setElementState(X.TEXT_EDIT),s.emit(T.TEXT_DBCLICK,{data:l.text,model:l})};var o=t.draggable;return r.stepperDrag=new Mt({onDragging:r.onDragging,step:1,eventType:"TEXT",isStopPropagation:o}),r}return e.prototype.getShape=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=r.text,s=a.value,l=a.x,d=a.y,u=a.editable,f=a.draggable,c={x:l,y:d,className:"",value:s},h=r.getTextStyle(),y=i.nodeTextDraggable||f;return x(ao,Cr({},c,h,{className:Do({"lf-element-text":u,"lf-text-draggable":!u&&y,"lf-text-disabled":!u&&!y}),model:r}))},e.prototype.render=function(){var t=this.props.model.text;if(t)return x("g",{onMouseDown:this.mouseDownHandler,onDblClick:this.dbClickHandler,children:this.getShape()})},e}(K),ns=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ft=function(){return ft=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},os=function(n){ns(e,n);function e(t){var r=n.call(this,t)||this;return r.setHoverOn=function(){r.setState({isHovered:!0})},r.setHoverOff=function(){r.setState({isHovered:!1})},r.state={isHovered:!1},r}return e.prototype.getBackground=function(){var t=this.state.isHovered,r=this.props.model,o=r.text,i=r.getTextStyle(),a=i.background||{};if(t&&i.hover&&i.hover.background&&(a=ft(ft({},a),i.hover.background)),o!=null&&o.value&&(a==null?void 0:a.fill)!=="transparent"){var s=i.fontSize,l=i.textWidth,d=i.lineHeight,u=i.overflowMode,f=a.wrapPadding,c=o==null?void 0:o.value.split(/[\r\n]/g),h=c.length,y=o.x,p=o.y,g={};if(u==="autoWrap"&&l){var v=oo({rows:c,style:{fontSize:"".concat(s,"px"),width:"".concat(l,"px"),lineHeight:d,padding:f},rowsLength:h,className:"lf-get-text-height"});g=ft(ft({},a),{x:y,y:p,width:l,height:v})}else{var _=ii({rows:c,rowsLength:h,fontSize:s}),M=_.width,S=_.height;if(u==="ellipsis"&&(M=l,S=s+2),typeof a.wrapPadding=="string"){var O=a.wrapPadding.split(",").filter(function(nt){return nt.trim()}).map(function(nt){return parseFloat(nt.trim())});if(O.length>0&&O.length<=4){if(O.length===1){var w=Ye(O,1),A=w[0];O=[A,A,A,A]}else if(O.length===2){var b=Ye(O,2),R=b[0],L=b[1];O=[R,L,R,L]}else if(O.length===3){var z=Ye(O,3),I=z[0],L=z[1],U=z[2];O=[I,L,U,L]}var Y=Ye(O,4),Z=Y[0],lt=Y[1],jt=Y[2],Rt=Y[3];M+=lt+Rt,S+=Z+jt,y=y+(lt-Rt)/2,p=p+(jt-Z)/2}}g=ft(ft({},a),{x:y-1,y:p-1,width:M,height:S})}return x(Et,ft({},g))}return null},e.prototype.getShape=function(){var t=this.props.model,r=t.text,o=r.x,i=r.y,a=r.value;if(!a)return null;var s=t.getTextStyle(),l=ft({x:o,y:i,value:a,model:t,className:"lf-element-text"},s);return x("g",{className:"lf-line-text",onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getBackground(),x(ao,ft({},l))]})},e}(co),is=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Je=function(){return Je=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Lt=function(n){is(e,n);function e(t){var r=n.call(this)||this;r.onDragStart=function(l){var d=l.event,u=r.props,f=u.model,c=u.graphModel;if(d){var h=c.getPointByClient({x:d.clientX,y:d.clientY}).canvasOverlayPosition,y=h.x,p=h.y;r.moveOffset={dx:f.x-y,dy:f.y-p}}},r.onDragging=function(l){var d,u,f,c,h=l.event,y=r.props,p=y.model,g=y.graphModel,v=g.editConfigModel,_=v.stopMoveGraph,M=v.autoExpand,S=v.snapGrid,O=g.transformModel,w=g.selectNodes,A=g.width,b=g.height,R=g.gridSize;p.isDragging=!0;var L=h,z=L.clientX,I=L.clientY,U=g.getPointByClient({x:z,y:I}).canvasOverlayPosition,Y=U.x,Z=U.y,lt=He(O.CanvasPointToHtmlPoint([Y,Z]),2),jt=lt[0],Rt=lt[1];if(Y=Y+((u=(d=r.moveOffset)===null||d===void 0?void 0:d.dx)!==null&&u!==void 0?u:0),Z=Z+((c=(f=r.moveOffset)===null||f===void 0?void 0:f.dy)!==null&&c!==void 0?c:0),Y=te(Y,R,S),Z=te(Z,R,S),!A||!b){g.moveNode2Coordinate(p.id,Y,Z);return}var nt=jt<0||Rt<0||jt>A||Rt>b;if(!(M&&!_&&nt)){var yt=He(O.CanvasPointToHtmlPoint([Y-p.width/2,Z-p.height/2]),2),ne=yt[0],ir=yt[1],Ae=He(O.CanvasPointToHtmlPoint([Y+p.width/2,Z+p.height/2]),2),ar=Ae[0],po=Ae[1],Pe=Math.max(R,20),zt=[];ne<0?zt=[Pe,0]:ar>g.width?zt=[-Pe,0]:ir<0?zt=[0,Pe]:po>g.height&&(zt=[0,-Pe]),r.t&&Ke(r.t),p.transform=new rr(-Y,-Z).rotate(p.rotate).translate(Y,Z).toString();var Te=w.map(function(De){return De.id});Te.indexOf(p.id)===-1&&(Te=[p.id]),zt.length>0&&!_&&M?r.t=io(function(){var De=He(zt,2),Gt=De[0],Ft=De[1];O.translate(Gt??0,Ft??0);var ho=-(Gt??0)/O.SCALE_X,vo=-(Ft??0)/O.SCALE_X;g.moveNodes(Te,ho,vo)}):g.moveNodes(Te,Y-p.x,Z-p.y)}},r.onDragEnd=function(){r.t&&Ke(r.t);var l=r.props.model;l.isDragging=!1},r.onMouseOut=function(l){Ro()&&r.setHoverOff(l)},r.handleMouseUp=function(){var l=r.props.model;r.mouseUpDrag=l.isDragging},r.handleClick=function(l){var d=r.mouseUpDrag===!1;if(r.startTime){var u=r.props,f=u.model,c=u.graphModel;if(d){var h=f.getData(),y=c.getPointByClient({x:l.clientX,y:l.clientY}),p={data:h,e:l,position:y,isSelected:!1,isMultiple:!1},g=l.button===2,v=l.detail===2;if(!g){var _=c.editConfigModel,M=ro(l,_);p.isMultiple=M,f.isSelected&&!v&&M?(p.isSelected=!1,f.setSelected(!1)):(c.selectNodeById(f.id,M),p.isSelected=!0,_.isSilentMode||r.toFront()),v?(_.nodeTextEdit&&f.text.editable&&_.textMode===st.TEXT&&(f.setSelected(!1),c.setElementStateById(f.id,X.TEXT_EDIT)),c.eventCenter.emit(T.NODE_DBCLICK,p)):(c.eventCenter.emit(T.ELEMENT_CLICK,p),c.eventCenter.emit(T.NODE_CLICK,p))}}}},r.handleContextMenu=function(l){l.preventDefault();var d=r.props,u=d.model,f=d.graphModel,c=f.editConfigModel,h=u.getData(),y=f.getPointByClient({x:l.clientX,y:l.clientY});f.setElementStateById(u.id,X.SHOW_MENU,y.domOverlayPosition),u.isSelected||f.selectNodeById(u.id),f.eventCenter.emit(T.NODE_CONTEXTMENU,{data:h,e:l,position:y}),c.isSilentMode||r.toFront()},r.handleMouseDown=function(l){var d=r.props,u=d.model,f=d.graphModel;r.startTime=new Date().getTime();var c=f.editConfigModel;c.adjustNodePosition&&u.draggable&&r.stepDrag&&r.stepDrag.handleMouseDown(l)},r.handleFocus=function(){var l=r.props,d=l.model,u=l.graphModel;u.eventCenter.emit(T.NODE_FOCUS,{data:d.getData()})},r.handleBlur=function(){var l=r.props,d=l.model,u=l.graphModel;u.eventCenter.emit(T.NODE_BLUR,{data:d.getData()})},r.setHoverOn=function(l){var d=r.props,u=d.model,f=d.graphModel;if(!u.isHovered){var c=u.getData();u.setHovered(!0),f.eventCenter.emit(T.NODE_MOUSEENTER,{data:c,e:l})}},r.setHoverOff=function(l){var d=r.props,u=d.model,f=d.graphModel,c=u.getData();u.isHovered&&(u.setHovered(!1),f.eventCenter.emit(T.NODE_MOUSELEAVE,{data:c,e:l}))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter,s=t.model;return r.stepDrag=new Mt({onDragStart:r.onDragStart,onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:i,eventType:"NODE",isStopPropagation:!1,eventCenter:a,model:s}),r.modelDisposer=Po(function(){return r.props},function(l){l&&l.model&&r.stepDrag.setModel(l.model)}),r}return e.prototype.componentWillUnmount=function(){this.modelDisposer&&this.modelDisposer(),this.render.$mobx&&this.render.$mobx.dispose()},e.prototype.componentDidMount=function(){},e.prototype.componentDidUpdate=function(){},e.prototype.getAnchorShape=function(t){return null},e.prototype.getAnchors=function(){var t=this,r=this.props,o=r.model,i=r.graphModel,a=o.isSelected,s=o.isHitable,l=o.isDragging,d=o.isShowAnchor;return s&&(a||d)&&!l?St(o.anchors,function(u,f){var c=o.getAnchorLineStyle(u),h=o.getAnchorStyle(u);return x(Ja,{anchorData:u,node:t,style:h,edgeStyle:c,anchorIndex:f,nodeModel:o,graphModel:i,setHoverOff:t.setHoverOff})}):[]},e.prototype.getRotateControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowRotate,l=r.isSelected,d=r.isHitable,u=r.rotatable,f=r.isHovered,c=s&&u,h=r.getRotateControlStyle();if(!a&&d&&(l||f)&&c)return x(ts,{graphModel:o,nodeModel:r,eventCenter:o.eventCenter,style:h})},e.prototype.getResizeControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowResize,l=r.isSelected,d=r.isHitable,u=r.resizable,f=r.isHovered,c=s&&u,h=r.getResizeControlStyle();return!a&&d&&(l||f)&&c?x(Ti,{style:h,model:r,graphModel:o}):null},e.prototype.getText=function(){var t,r=this.props,o=r.model,i=r.graphModel,a=i.editConfigModel;if(a.nodeTextMode!==st.TEXT||o.state===X.TEXT_EDIT)return null;if(o.text){var s=!1;return a.nodeTextDraggable&&o.text.draggable&&(s=!0),x(co,{editable:a.nodeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getStateClassName=function(){var t=this.props.model,r=t.state,o=t.isDragging,i=t.isSelected,a="lf-node";switch(r){case X.ALLOW_CONNECT:a+=" lf-node-allow";break;case X.NOT_ALLOW_CONNECT:a+=" lf-node-not-allow";break;default:a+=" lf-node-default";break}return o&&(a+=" lf-dragging"),i&&(a+=" lf-node-selected"),a},e.prototype.toFront=function(){var t=this.props,r=t.model,o=t.graphModel;r.autoToFront&&o.toFront(r.id)},e.prototype.render=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.hideAnchors,s=i.adjustNodePosition,l=i.allowRotate,d=i.allowResize,u=o.gridSize,f=o.transformModel.SCALE_X,c=r.isHitable,h=r.draggable,y=r.transform,p=r.getOuterGAttributes(),g=p.className,v=g===void 0?"":g,_=as(p,["className"]),M=x("g",{className:"lf-node-content",children:[x("g",{transform:y,children:[this.getShape(),this.getText(),l&&this.getRotateControl(),d&&this.getResizeControl()]}),!a&&this.getAnchors()]}),S;return c?(s&&h&&this.stepDrag.setStep(u*f),S=x("g",Je({className:"".concat(this.getStateClassName()," ").concat(v),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverOn,onMouseOver:this.setHoverOn,onMouseLeave:this.setHoverOff,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu,onFocus:this.handleFocus,onBlur:this.handleBlur},_,{children:M}))):S=x("g",Je({className:"".concat(this.getStateClassName()," ").concat(v)},_,{children:M})),S},e.isObserved=!1,e}(K),ss=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Lr=function(){return Lr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},vs=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},xt;(function(n){n.SOURCE="SOURCE",n.TARGET="TARGET"})(xt||(xt={}));var kn=function(n){ys(e,n);function e(t){var r=n.call(this)||this;r.handleMouseDown=function(l){r.stepDrag&&r.stepDrag.handleMouseDown(l)},r.onDragStart=function(){var l=r.props,d=l.x,u=l.y,f=l.edgeModel,c=f.startPoint,h=f.endPoint,y=f.pointsList;r.oldEdge={startPoint:c,endPoint:h,pointsList:y},r.setState({endX:d,endY:u,dragging:!0})},r.onDragging=function(l){var d=l.deltaX,u=l.deltaY,f=r.state,c=f.endX,h=f.endY,y=r.props,p=y.graphModel,g=y.type,v=p.transformModel,_=p.editConfigModel,M=_s(v.moveCanvasPointByHtml([c,h],d,u),2),S=M[0],O=M[1];r.setState({endX:S,endY:O,dragging:!0});var w=r.props.edgeModel,A=Ze({x:c,y:h},p);if(A&&A.node&&r.isAllowAdjust(A).pass){var b=w.startPoint,R=w.endPoint,L=w.sourceNode,z=w.targetNode,I=g===xt.SOURCE?{startPoint:{x:A.anchor.x,y:A.anchor.y},endPoint:{x:R.x,y:R.y},sourceNode:A.node,targetNode:z}:{startPoint:{x:b.x,y:b.y},endPoint:{x:A.anchor.x,y:A.anchor.y},sourceNode:L,targetNode:A.node};w.updateAfterAdjustStartAndEnd(I)}else g===xt.SOURCE?w.updateStartPoint({x:S,y:O}):w.updateEndPoint({x:S,y:O});w.text.value&&_.adjustEdge&&w.setText(Object.assign({},w.text,w.textPosition))},r.onDragEnd=function(l){var d,u,f,c=l.event;try{r.setState({dragging:!1});var h=r.props,y=h.graphModel,p=h.edgeModel,g=h.type,v=r.state,_=v.endX,M=v.endY,S=v.dragging,O=Ze({x:_,y:M},y);if(!S)return;var w=!1,A=void 0;if(O&&O.node){var b=r.isAllowAdjust(O),R=b.pass,L=b.msg,z=b.newTargetNode;if(R){var I=p.getData(),U=I.text,Y=I.sourceAnchorId,Z=Y===void 0?"":Y,lt=I.targetAnchorId,jt=lt===void 0?"":lt,Rt=gs(I,["text","sourceAnchorId","targetAnchorId"]);if(A=ct(ct({sourceAnchorId:Z,targetAnchorId:jt},Rt),{text:(U==null?void 0:U.value)||""}),g===xt.SOURCE){var nt=y.getNodeModelById(O.node.id),yt=y.getNodeModelById(p.targetNodeId),ne=(d=y.edgeGenerator)===null||d===void 0?void 0:d.call(y,nt==null?void 0:nt.getData(),yt==null?void 0:yt.getData(),A);A=ct(ct({},ne),{sourceNodeId:O.node.id,sourceAnchorId:O.anchor.id,startPoint:{x:O.anchor.x,y:O.anchor.y},targetNodeId:p.targetNodeId,endPoint:ct({},p.endPoint)}),p.sourceNodeId===O.node.id&&p.sourceAnchorId===O.anchor.id&&(w=!0)}else if(g===xt.TARGET){var nt=y.getNodeModelById(p.sourceNodeId),yt=y.getNodeModelById(O.node.id),ne=(u=y.edgeGenerator)===null||u===void 0?void 0:u.call(y,nt==null?void 0:nt.getData(),yt==null?void 0:yt.getData(),A);A=ct(ct({},ne),{sourceNodeId:p.sourceNodeId,startPoint:ct({},p.startPoint),targetNodeId:O.node.id,targetAnchorId:O.anchor.id,endPoint:{x:O.anchor.x,y:O.anchor.y}}),p.targetNodeId===O.node.id&&p.targetAnchorId===O.anchor.id&&(w=!0)}}else{w=!0;var ir=z.getData();y.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:ir,msg:L})}}else w=!0;if(w)r.recoveryEdge();else{var Ae=p.getData();y.deleteEdgeById(p.id);var ar=y.addEdge(ct({},A));y.eventCenter.emit(T.EDGE_EXCHANGE_NODE,{data:{newEdge:ar.getData(),oldEdge:Ae}})}(f=r.preTargetNode)===null||f===void 0||f.setElementState(X.DEFAULT)}finally{var y=r.props.graphModel;y.eventCenter.emit(T.ADJUST_POINT_DRAGEND,{e:c,data:r.stepDragData})}},r.recoveryEdge=function(){var l=r.props.edgeModel,d=r.oldEdge,u=d.startPoint,f=d.endPoint,c=d.pointsList;l.updateStartPoint(u),l.updateEndPoint(f),l.modelType!==j.LINE_EDGE&&(l.pointsList=c??[],l.initPoints())},r.getAdjustPointStyle=function(){var l=r.props.graphModel.theme,d=l.edgeAdjust;return d},r.state={dragging:!1,endX:0,endY:0},r.targetRuleResults=new Map,r.sourceRuleResults=new Map;var o=t.type,i=t.edgeModel,a=t.graphModel,s=a.eventCenter;return r.stepDragData={type:o,edgeData:i.getData()},r.stepDrag=new Mt({onDragStart:r.onDragStart,onDragging:r.onDragging,onDragEnd:r.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:s,data:r.stepDragData}),r}return e.prototype.isAllowAdjust=function(t){var r=this.props,o=r.edgeModel,i=o.id,a=o.sourceNode,s=o.targetNode,l=o.sourceAnchorId,d=o.targetAnchorId,u=r.type,f,c,h,y;if(u===xt.SOURCE?(f=t.node,c=s,h=t.anchor,y=s.getAnchorInfo(d)):(f=a,c=t.node,y=t.anchor,h=a.getAnchorInfo(l)),this.preTargetNode&&this.preTargetNode!==t.node&&this.preTargetNode.setElementState(X.DEFAULT),this.preTargetNode=t.node,y.id===h.id)return{pass:!1,msg:"",newTargetNode:c};var p="".concat(f.id,"_").concat(c.id,"_").concat(h.id,"_").concat(y.id);if(!this.targetRuleResults.has(p)){var g=f.isAllowConnectedAsSource(c,h,y,i),v=c.isAllowConnectedAsTarget(f,h,y,i);this.sourceRuleResults.set(p,Ve(g)),this.targetRuleResults.set(p,Ve(v))}var _=this.sourceRuleResults.get(p),M=_.isAllPass,S=_.msg,O=this.targetRuleResults.get(p),w=O.isAllPass,A=O.msg,b=M&&w?X.ALLOW_CONNECT:X.NOT_ALLOW_CONNECT;return u===xt.SOURCE?f.setElementState(b):c.setElementState(b),{pass:M&&w,msg:A||S,newTargetNode:c}},e.prototype.render=function(){var t=this.props,r=t.x,o=t.y,i=t.getAdjustPointShape,a=t.edgeModel,s=this.state.dragging;return x("g",{pointerEvents:s?"none":"",onMouseDown:this.handleMouseDown,children:s?"":i(r,o,a)})},e}(K),ms=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Xr=function(){return Xr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},or=function(n){xs(e,n);function e(){var t=n.call(this)||this;return t.textRef=Gr(),t.handleHover=function(r,o){var i=t.props,a=i.model,s=i.graphModel.eventCenter;a.setHovered(r);var l=r?T.EDGE_MOUSEENTER:T.EDGE_MOUSELEAVE,d=a.getData();s.emit(l,{data:d,e:o})},t.setHoverOn=function(r){var o=t.props.model.isHovered;o||(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOn(),t.handleHover(!0,r))},t.setHoverOff=function(r){var o=t.props.model.isHovered;o&&(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOff(),t.handleHover(!1,r))},t.handleContextMenu=function(r){r.preventDefault(),t.contextMenuTime=new Date().getTime(),t.clickTimer&&clearTimeout(t.clickTimer);var o=t.props,i=o.model,a=o.graphModel,s=a.editConfigModel,l=a.getPointByClient({x:r.clientX,y:r.clientY});a.setElementStateById(i.id,X.SHOW_MENU,l.domOverlayPosition),s.isSilentMode||t.toFront(),i.isSelected||a.selectEdgeById(i.id);var d=i==null?void 0:i.getData();a.eventCenter.emit(T.EDGE_CONTEXTMENU,{data:d,e:r,position:l})},t.handleMouseDown=function(r){r.stopPropagation(),t.startTime=new Date().getTime()},t.handleMouseUp=function(){var r=t.props.model;t.mouseUpDrag=r.isDragging},t.handleClick=function(r){if(t.startTime&&!t.mouseUpDrag){var o=r.button===2;if(!o){var i=r.detail===2,a=t.props,s=a.model,l=a.graphModel,d=s==null?void 0:s.getData(),u=l.getPointByClient({x:r.clientX,y:r.clientY});if(i){var f=l.editConfigModel,c=l.textEditElement,h=s.id,y=s.text,p=s.modelType;if(c&&c.id===h&&l.setElementStateById(h,X.DEFAULT),f.edgeTextEdit&&y.editable&&(s.setSelected(!1),l.setElementStateById(h,X.TEXT_EDIT)),p===j.POLYLINE_EDGE){var g=s,v=l.getPointByClient({x:r.x,y:r.y}).canvasOverlayPosition,_=v.x,M=v.y;g.dbClickPosition=eo({x:_,y:M},g.points)}l.eventCenter.emit(T.EDGE_DBCLICK,{data:d,e:r,position:u})}else l.eventCenter.emit(T.ELEMENT_CLICK,{data:d,e:r,position:u}),l.eventCenter.emit(T.EDGE_CLICK,{data:d,e:r,position:u});var S=l.editConfigModel;l.selectEdgeById(s.id,ro(r,S)),S.isSilentMode||t.toFront()}}},t.handleFocus=function(){var r=t.props,o=r.model,i=r.graphModel;i.eventCenter.emit(T.EDGE_FOCUS,{data:o.getData()})},t.handleBlur=function(){var r=t.props,o=r.model,i=r.graphModel;i.eventCenter.emit(T.EDGE_BLUR,{data:o.getData()})},t}return e.prototype.getShape=function(){return x("g",{children:this.getEdge()})},e.prototype.getTextStyle=function(){},e.prototype.getText=function(){var t,r=this.props,o=r.model,i=r.graphModel,a=i.editConfigModel;if(a.edgeTextMode!==st.TEXT||o.state===X.TEXT_EDIT)return null;if(o.text){var s=!1;return a.edgeTextDraggable&&o.text.draggable&&(s=!0),x(os,{ref:this.textRef,editable:a.edgeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getArrowInfo=function(){var t=this.props.model,r=t.startPoint,o=t.endPoint,i=t.isSelected,a=this.state.hover;return{start:r,end:o,hover:a,isSelected:i}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.startPoint,o=t.endPoint;return[r,o]},e.prototype.getArrowStyle=function(){return console.error("getArrowStyle is deprecated in 1.2.0, please use model.getArrowStyle"),null},e.prototype.getArrow=function(){var t=this.props.model,r=t.id,o=t.getArrowStyle(),i=o.refY,a=i===void 0?0:i,s=o.refX,l=s===void 0?2:s,d=Es(this.getLastTwoPoints(),2),u=d[0],f=d[1],c="auto";return u!==null&&f!==null&&(c=$i(Fi({x:f.x-u.x,y:f.y-u.y}))),x("g",{children:x("defs",{children:[x("marker",{id:"marker-start-".concat(r),refX:-l,refY:a,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse",children:this.getStartArrow()}),x("marker",{id:"marker-end-".concat(r),refX:l,refY:a,overflow:"visible",orient:c,markerUnits:"userSpaceOnUse",children:this.getEndArrow()})]})})},e.prototype.getStartArrow=function(){return x("path",{})},e.prototype.getEndArrow=function(){var t=this.props.model,r=t.getArrowStyle(),o=r.stroke,i=r.strokeWidth,a=r.offset,s=r.verticalLength;return x("path",{stroke:o,fill:o,strokeWidth:i,transform:"rotate(180)",d:"M 0 0 L ".concat(a," -").concat(s," L ").concat(a," ").concat(s," Z")})},e.prototype.getAdjustPointShape=function(t,r,o){var i=o.getAdjustPointStyle();return x(re,ge({className:"lf-edge-adjust-point"},i,{x:t,y:r}))},e.prototype.getAdjustPoints=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.adjustEdgeStartAndEnd,s=i.adjustEdgeStart,l=i.adjustEdgeEnd,d=r.getAdjustStart(),u=r.getAdjustEnd();return x("g",{children:[a&&s&&x(kn,ge({type:xt.SOURCE},d,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:r,graphModel:o})),a&&l&&x(kn,ge({type:xt.TARGET},u,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:r,graphModel:o}))]})},e.prototype.getAnimation=function(){console.error("getAnimation is deprecated in 1.2.0, please use model.getEdgeAnimationStyle")},e.prototype.getAppendWidth=function(){return x("g",{})},e.prototype.getAppend=function(){return x("g",{className:"lf-edge-append",children:this.getAppendWidth()})},e.prototype.getEdge=function(){return null},e.prototype.toFront=function(){var t=this.props,r=t.graphModel,o=t.model;r.toFront(o.id)},e.prototype.render=function(){var t=this.props.model,r=t.isSelected,o=t.isHitable,i=t.isShowAdjustPoint;return x("g",{children:[x("g",{className:["lf-edge",!o&&"pointer-none",r&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverOn,onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,onFocus:this.handleFocus,onBlur:this.handleBlur,children:[this.getShape(),this.getAppend(),this.getText(),this.getArrow()]}),i&&r?this.getAdjustPoints():""]})},e.isObserved=!1,e}(K),Ms=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Yr=function(){return Yr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},zn=function(n){Ms(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getEdge=function(){var t=this.props.model,r=t.getEdgeStyle(),o=t,i=o.path,a=o.isAnimation,s=o.arrowConfig,l=t.getEdgeAnimationStyle(),d=l.strokeDasharray,u=l.stroke,f=l.strokeDashoffset,c=l.animationName,h=l.animationDuration,y=l.animationIterationCount,p=l.animationTimingFunction,g=l.animationDirection;return x(Oe,Yr({d:i},r,s,a?{strokeDasharray:d,stroke:u,style:{strokeDashoffset:f,animationName:c,animationDuration:h,animationIterationCount:y,animationTimingFunction:p,animationDirection:g}}:{}))},e.prototype.getAppendWidth=function(){var t=this.props.model.path;return x(Oe,{d:t,strokeWidth:10,stroke:"transparent",fill:"none"})},e.prototype.getArrowInfo=function(){var t=this.props.model,r=this.state.hover,o=t.isSelected,i=t.getArrowStyle().offset,a=t.pointsList.map(function(f){return{x:f.x,y:f.y}}),s=Os(un(a,i),2),l=s[0],d=s[1],u={start:l,end:d,hover:r,isSelected:o};return u},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.getArrowStyle().offset,o=t.pointsList.map(function(i){return{x:i.x,y:i.y}});return un(o,r)},e}(or),Ss=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Hr=function(){return Hr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Fn=function(n){ws(e,n);function e(){var t=n.call(this)||this;return t.onDragStart=function(){var r=t.props.model;r.dragAppendStart(),t.isShowAdjustPointTemp=r.isShowAdjustPoint,r.isShowAdjustPoint=!1},t.onDragging=function(r){var o=r.deltaX,i=r.deltaY,a=t.props,s=a.model,l=a.graphModel;t.isDragging=!0;var d=l.transformModel,u=l.editConfigModel,f=As(d.fixDeltaXY(o,i),2),c=f[0],h=f[1],y=s,p=u.adjustEdgeMiddle;p?t.appendInfo=y.dragAppendSimple(t.appendInfo,{x:c,y:h}):t.appendInfo=y.dragAppend(t.appendInfo,{x:c,y:h})},t.onDragEnd=function(){var r,o=t.props,i=o.model,a=o.graphModel.eventCenter,s=i;s.dragAppendEnd(),t.isDragging=!1,s.isShowAdjustPoint=(r=t.isShowAdjustPointTemp)!==null&&r!==void 0?r:!1,t.appendInfo=void 0,a.emit(T.EDGE_ADJUST,{data:s.getData()})},t.beforeDragStart=function(r,o){o.draggable&&t.drag.handleMouseDown(r),t.appendInfo=o},t.drag=new Mt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd,isStopPropagation:!1}),t}return e.prototype.getEdge=function(){var t=this.props.model,r=t.points,o=t.isAnimation,i=t.arrowConfig,a=t.getEdgeStyle(),s=t.getEdgeAnimationStyle(),l=s.strokeDasharray,d=s.stroke,u=s.strokeDashoffset,f=s.animationName,c=s.animationDuration,h=s.animationIterationCount,y=s.animationTimingFunction,p=s.animationDirection;return x(Si,Xt({points:r},a,i,o?{strokeDasharray:l,stroke:d,style:{strokeDashoffset:u,animationName:f,animationDuration:c,animationIterationCount:h,animationTimingFunction:y,animationDirection:p}}:{}))},e.prototype.getArrowInfo=function(){var t=this.props.model,r=t.points,o=t.isSelected,i=this.state.hover,a=kt(r),s=a[0],l=a[0];return a.length>=2&&(s=a[a.length-2],l=a[a.length-1]),{start:s,end:l,hover:i,isSelected:o}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.points,o=kt(r),i=o[0],a=o[0];return o.length>=2&&(i=o[o.length-2],a=o[o.length-1]),[i,a]},e.prototype.getAppendAttributes=function(t){var r=t.start,o=t.end,i;if(r.x===o.x&&r.y===o.y)i="";else{var a={start:r,end:o,offset:10,verticalLength:5},s=xe(Xt(Xt({},a),{type:"start"})),l=xe(Xt(Xt({},a),{type:"end"}));i="M".concat(s.leftX," ").concat(s.leftY,`
- L`).concat(s.rightX," ").concat(s.rightY,`
- L`).concat(l.rightX," ").concat(l.rightY,`
- L`).concat(l.leftX," ").concat(l.leftY," z")}return{d:i,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},e.prototype.getAppendShape=function(t){var r=this.getAppendAttributes(t),o=r.d,i=r.strokeWidth,a=r.fill,s=r.strokeDasharray,l=r.stroke;return x(Oe,{d:o,fill:a,strokeWidth:i,stroke:l,strokeDasharray:s})},e.prototype.getAppendWidth=function(){for(var t=this,r=this.props,o=r.model,i=r.graphModel,a=o.pointsList,s=o.draggable,l=[],d=a.length,u=function(h){var y="lf-polyline-append",p={start:{x:a[h].x,y:a[h].y},end:{x:a[h+1].x,y:a[h+1].y},startIndex:h,endIndex:h+1,direction:G.HORIZONTAL,draggable:!0},g=x("g",{className:y,children:f.getAppendShape(p)}),v=i.editConfigModel,_=v.adjustEdge,M=v.adjustEdgeMiddle;if(_&&s){var S=p.startIndex,O=p.endIndex,w=M&&(S===0||O===d-1);p.draggable=!w,p.start.x===p.end.x?(p.draggable&&(y+="-ew-resize"),p.direction=G.VERTICAL):p.start.y===p.end.y&&(p.draggable&&(y+="-ns-resize"),p.direction=G.HORIZONTAL),g=x("g",{className:f.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(A){return t.beforeDragStart(A,p)},children:x("g",{className:y,children:f.getAppendShape(p)})})}l.push(g)},f=this,c=0;c=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},bs=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Cs=function(n){Ds(e,n);function e(t){var r=n.call(this,t)||this;return r.ref=Gr(),r.__prevText={type:"",text:"",id:""},r.keyupHandler=function(o){var i=r.props.graphModel.textEditElement;o.key==="Enter"&&o.altKey&&(i==null||i.setElementState(X.DEFAULT))},r.inputHandler=function(o){var i=o.target.innerText,a=r.props.graphModel.textEditElement;a&&(r.__prevText={type:a.type,text:i.replace(/(\r\n)+$|(\n)+$/,""),id:a.id})},r.keydownHandler=function(o){o.stopPropagation()},r.state={style:{left:0,top:0}},r}return e.getDerivedStateFromProps=function(t){var r,o=t.textEditElement,i=t.graphModel,a=i.transformModel,s=i.theme,l=s.inputText,d;if(o){if(!(!((r=o.text)===null||r===void 0)&&r.value)&&o.BaseType===$.EDGE){var u=o.text,f=o.textPosition,c=f.x,h=f.y;u.x=c,u.y=h,o.setText(u)}var y={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(o.BaseType===$.EDGE){var p=s.edgeText,g=p.overflowMode,v=p.lineHeight,_=p.wrapPadding,M=p.textWidth;M&&g==="autoWrap"&&(d=Ot(Ot({},y),{width:M,minWidth:M,lineHeight:v,padding:_}))}else if(o.BaseType===$.NODE){var S=s.nodeText,g=S.overflowMode,v=S.lineHeight,_=S.wrapPadding,M=S.textWidth,O=o.width,w=o.modelType,A=o.textWidth,b=A||M||O;(w!==j.TEXT_NODE&&g==="autoWrap"||w===j.TEXT_NODE&&M)&&(d=Ot(Ot({},y),{width:b,minWidth:b,lineHeight:v,padding:_}))}var R=o.text,L=R.x,z=R.y,I=bs(a.CanvasPointToHtmlPoint([L,z]),2),U=I[0],Y=I[1];return{style:Ot(Ot({left:U,top:Y},d),l)}}return null},e.prototype.componentDidUpdate=function(){var t=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var r=this.__prevText,o=r.text,i=r.id;t.updateText(i,o),t.eventCenter.emit(T.TEXT_UPDATE,{data:Ot({},this.__prevText)}),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}},e.prototype.placeCaretAtEnd=function(t){if(window.getSelection!==void 0&&document.createRange!==void 0){var r=document.createRange();r.selectNodeContents(t),r.collapse(!1);var o=window.getSelection();o==null||o.removeAllRanges(),o==null||o.addRange(r)}},e.prototype.render=function(){var t,r=this.props.graphModel.textEditElement,o=this.state.style;return r?x("div",{contentEditable:!0,className:"lf-text-input",style:o,ref:this.ref,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler,children:(t=r.text)===null||t===void 0?void 0:t.value},r.id):null},e.toolName="text-edit-tool",e=Ns([ot],e),e}(K),Ls=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),js=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},pr=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Rs=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Bs=[Cs,Is],Xs=function(){function n(e){var t=this;this.toolMap=new Map,this.disabledToolMap=new Map,this.instance=e,W(Bs,function(i){t.isDisabled(i.toolName)||t.registerTool(i.toolName,i)});var r=e.graphModel,o=r.eventCenter;o.on("".concat(T.GRAPH_TRANSFORM,",").concat(T.NODE_CLICK,",").concat(T.BLANK_CLICK," "),function(){var i,a=r.textEditElement,s=r.editConfigModel,l=s.edgeTextEdit,d=s.nodeTextEdit;(l||d)&&a&&((i=r.textEditElement)===null||i===void 0||i.setElementState(X.DEFAULT))})}return n.prototype.isDisabled=function(e){var t;return((t=this.instance.options.disabledTools)===null||t===void 0?void 0:t.indexOf(e))!==-1},n.prototype.registerTool=function(e,t){this.toolMap.set(e,t)},n.prototype.disableTool=function(e){var t=this.toolMap.get(e);if(t)return this.disabledToolMap.set(e,t),this.toolMap.delete(e),!0;throw new Error("禁用失败,不存在名为 ${tool} 的工具")},n.prototype.enableTool=function(e){var t=this.disabledToolMap.get(e);if(t)return this.toolMap.set(e,t),this.disabledToolMap.delete(e),!0;throw new Error("不存在名为 ${tool} 的工具")},n.prototype.getTools=function(){return Array.from(this.toolMap.values())},n.prototype.getInstance=function(){return this.instance},n.prototype.destroy=function(){this.toolMap.clear(),this.disabledToolMap.clear()},hr([E],n.prototype,"toolMap",void 0),hr([m],n.prototype,"disableTool",null),hr([m],n.prototype,"enableTool",null),n}(),kr=function(){return kr=Object.assign||function(n){for(var e,t=1,r=arguments.length;tthis.maxSize&&this.undos.shift())},n.prototype.undoAble=function(){return this.undos.length>1},n.prototype.undo=function(){if(this.undoAble()){var e=this.undos.pop();this.redos.push(e);var t=this.undos.pop();return this.curData=C(t),t}},n.prototype.redoAble=function(){return this.redos.length>0},n.prototype.redo=function(){if(this.redoAble()){var e=this.redos.pop();return this.curData=C(e),e}},n.prototype.watch=function(e){var t=this;this.stopWatch&&this.stopWatch(),this.undos.push(e.modelToGraphData()),this.stopWatch=bo(e,Vn(function(){var r=e.modelToHistoryData();r&&t.add(kr({},r))},this.waitTime))},n.prototype.destroy=function(){this.undos=[],this.redos=[],this.curData=null,this.stopWatch&&this.stopWatch()},n}();var gt=null;function $n(n,e){return n.x+=e,n.y+=e,Kn(n.text)||(n.text.x+=e,n.text.y+=e),n}function Un(n,e){return n.startPoint&&(n.startPoint.x+=e,n.startPoint.y+=e),n.endPoint&&(n.endPoint.x+=e,n.endPoint.y+=e),n.pointsList&&n.pointsList.length>0&&n.pointsList.forEach(function(t){t.x+=e,t.y+=e}),Kn(n.text)||(n.text.x+=e,n.text.y+=e),n}var Vt=40,ke=40;function Hs(n,e){var t=n.keyboard,r=t.options.keyboard;t.on(["cmd + c","ctrl + c"],function(){if(ke=Vt,!(r!=null&&r.enabled)||e.textEditElement)return!0;var o=n.options.guards,i=e.getSelectElements(!1),a=o&&o.beforeClone?o.beforeClone(i):!0;return!a||i.nodes.length===0&&i.edges.length===0?(gt=null,!0):(gt=i,gt.nodes.forEach(function(s){return $n(s,Vt)}),gt.edges.forEach(function(s){return Un(s,Vt)}),!1)}),t.on(["cmd + v","ctrl + v"],function(){if(!(r!=null&&r.enabled)||e.textEditElement)return!0;if(gt&&(gt.nodes||gt.edges)){n.clearSelectElements();var o=n.addElements(gt,ke);if(!o)return!0;o.nodes.forEach(function(i){return n.selectElementById(i.id,!0)}),o.edges.forEach(function(i){return n.selectElementById(i.id,!0)}),gt.nodes.forEach(function(i){return $n(i,Vt)}),gt.edges.forEach(function(i){return Un(i,Vt)}),ke=ke+Vt}return!1}),t.on(["cmd + z","ctrl + z"],function(){return!(r!=null&&r.enabled)||e.textEditElement?!0:(n.undo(),!1)}),t.on(["cmd + y","ctrl + y"],function(){return!(r!=null&&r.enabled)||e.textEditElement?!0:(n.redo(),!1)}),t.on(["backspace"],function(){if(!(r!=null&&r.enabled)||e.textEditElement)return!0;var o=e.getSelectElements(!0);return n.clearSelectElements(),o.edges.forEach(function(i){return i.id&&n.deleteEdge(i.id)}),o.nodes.forEach(function(i){return i.id&&n.deleteNode(i.id)}),!1})}var ks=function(){function n(e){e.keyboard||(e.keyboard={enabled:!1}),this.options=e;var t=e.lf;this.target=t.container,this.mousetrap=new No(this.target),e.keyboard.enabled&&!t.options.isSilentMode&&this.enable(!0)}return n.prototype.initShortcuts=function(){var e=this,t,r=((t=this.options.keyboard)!==null&&t!==void 0?t:{}).shortcuts;if(r)if(Oo(r))r.forEach(function(s){var l=s.keys,d=s.callback,u=s.action;return e.on(l,d,u)});else{var o=r.keys,i=r.callback,a=r.action;this.on(o,i,a)}},n.prototype.on=function(e,t,r){this.mousetrap.bind(this.getKeys(e),t,r)},Object.defineProperty(n.prototype,"disabled",{get:function(){var e,t;return((t=(e=this.options)===null||e===void 0?void 0:e.keyboard)===null||t===void 0?void 0:t.enabled)!==!0},enumerable:!1,configurable:!0}),n.prototype.off=function(e,t){this.mousetrap.unbind(this.getKeys(e),t)},n.prototype.enable=function(e){(this.disabled||e)&&(this.options.keyboard&&(this.options.keyboard.enabled=!0),this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))},n.prototype.disable=function(){this.disabled||(this.options.keyboard&&(this.options.keyboard.enabled=!1),this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))},n.prototype.destroy=function(){this.mousetrap.reset()},n.prototype.getKeys=function(e){var t=this;return(Array.isArray(e)?e:[e]).map(function(r){return t.formatKey(r)})},n.prototype.formatKey=function(e){return e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")},n}(),Tt=function(){return Tt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},vr=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;rv.step||Math.abs(v.sumDeltaY)>v.step)){var O=v.sumDeltaX%v.step,w=v.sumDeltaY%v.step,A=v.sumDeltaX-O,C=v.sumDeltaY-w;v.sumDeltaX=O,v.sumDeltaY=w;var R=(M=v.model)===null||M===void 0?void 0:M.getData();v.isDragging||((S=v.eventCenter)===null||S===void 0||S.emit(T["".concat(v.eventType,"_DRAGSTART")],{e:_,data:v.data||R}),v.onDragStart({event:_})),v.isDragging=!0,Promise.resolve().then(function(){var b,z;v.onDragging({deltaX:A,deltaY:C,event:_}),(b=v.eventCenter)===null||b===void 0||b.emit(T["".concat(v.eventType,"_MOUSEMOVE")],{deltaX:A,deltaY:C,e:_,data:v.data||R}),(z=v.eventCenter)===null||z===void 0||z.emit(T["".concat(v.eventType,"_DRAG")],{e:_,data:v.data||R})})}},this.handleMouseUp=function(_){var M=window.document;v.isStartDragging=!1,v.isStopPropagation&&_.stopPropagation(),Promise.resolve().then(function(){var S,O,w;M.removeEventListener("mousemove",v.handleMouseMove,!1),M.removeEventListener("mouseup",v.handleMouseUp,!1);var A=(S=v.model)===null||S===void 0?void 0:S.getData();(O=v.eventCenter)===null||O===void 0||O.emit(T["".concat(v.eventType,"_MOUSEUP")],{e:_,data:v.data||A}),v.isDragging&&(v.isDragging=!1,v.onDragEnd({event:_}),(w=v.eventCenter)===null||w===void 0||w.emit(T["".concat(v.eventType,"_DROP")],{e:_,data:v.data||A}))})},this.cancelDrag=function(){var _=window?.document;_.removeEventListener("mousemove",v.handleMouseMove,!1),_.removeEventListener("mouseup",v.handleMouseUp,!1),v.onDragEnd({event:void 0}),v.isDragging=!1},this.destroy=function(){v.isStartDragging&&v.cancelDrag()},this.onDragStart=r,this.onDragging=i,this.onDragEnd=s,this.step=c,this.isStopPropagation=y,this.eventType=d,this.eventCenter=u,this.model=p,this.data=g}return n.prototype.setStep=function(e){this.step=e},n.prototype.setModel=function(e){this.model=e},n})(),Yo=function(n){var e=n.x,t=n.y,r=n.width,o=n.height;return{x:e-r/2,y:t-o/2,x1:e+r/2,y1:t+o/2}},Ho=function(n){var e=n.startPoint,t=n.endPoint,r=(e.x+t.x)/2,o=(e.y+t.y)/2,i=Math.abs(e.x-t.x)+10,a=Math.abs(e.y-t.y)+10;return{x:r-i/2,y:o-a/2,x1:r+i/2,y1:o+a/2}},ko=function(n){var e=n.points,t=kt(e),r=Ee(t,8),o=r.x,i=r.y,a=r.width,s=r.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},zo=function(n){var e=n.path,t=Ur(e),r=Ee(t,8),o=r.x,i=r.y,a=r.width,s=r.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},Go=function(n){if(n.modelType===j.LINE_EDGE)return Ho(n);if(n.modelType===j.POLYLINE_EDGE)return ko(n);if(n.modelType===j.BEZIER_EDGE)return zo(n)},Fo=function(n,e,t,r){var o=(e.y-n.y)*(r.x-t.x)-(n.x-e.x)*(t.y-r.y);if(o===0)return!1;var i=((e.x-n.x)*(r.x-t.x)*(t.y-n.y)+(e.y-n.y)*(r.x-t.x)*n.x-(r.y-t.y)*(e.x-n.x)*t.x)/o,a=-((e.y-n.y)*(r.y-t.y)*(t.x-n.x)+(e.x-n.x)*(r.y-t.y)*n.y-(r.x-t.x)*(e.y-n.y)*t.y)/o;return(i-n.x)*(i-e.x)<=0&&(a-n.y)*(a-e.y)<=0&&(i-t.x)*(i-r.x)<=0&&(a-t.y)*(a-r.y)<=0?{x:i,y:a}:!1},me=function(n,e,t){var r=n.x,o=n.y,i=e.x,a=e.y,s=t.x,l=t.y,d=(l-a)/(s-i),u=a-d*i;return(r>=i&&r<=s||r<=i&&r>=s)&&(o>=a&&o<=l||o<=a&&o>=l)&&Math.abs(o-d*r-u)=e.x?(a.leftX=e.x+d*Math.sin(s+l),a.leftY=e.y-d*Math.cos(s+l),a.rightX=e.x-d*Math.sin(s-l),a.rightY=e.y+d*Math.cos(s-l)):(a.leftX=e.x-d*Math.sin(s+l),a.leftY=e.y+d*Math.cos(s+l),a.rightX=e.x+d*Math.sin(s-l),a.rightY=e.y-d*Math.cos(s-l)):i==="end"&&(t.x>=e.x?(a.leftX=t.x+d*Math.sin(s-l),a.leftY=t.y-d*Math.cos(s-l),a.rightX=t.x-d*Math.sin(s+l),a.rightY=t.y+d*Math.cos(s+l)):(a.leftX=t.x-d*Math.sin(s-l),a.leftY=t.y+d*Math.cos(s-l),a.rightX=t.x+d*Math.sin(s+l),a.rightY=t.y-d*Math.cos(s+l))),a},qt=function(){return qt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Dt=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;rr/e.height?G.HORIZONTAL:G.VERTICAL},$e=function(n,e,t){var r=Uo(t,e);return r===G.HORIZONTAL?{x:t.x>n.centerX?n.maxX:n.minX,y:t.y}:{x:t.x,y:t.y>n.centerY?n.maxY:n.minY}},Qr=function(n,e){var t=Math.min(n.minX,e.minX),r=Math.min(n.minY,e.minY),o=Math.max(n.maxX,e.maxX),i=Math.max(n.maxY,e.maxY);return{x:(t+o)/2,y:(r+i)/2,centerX:(t+o)/2,centerY:(r+i)/2,minX:t,minY:r,maxX:o,maxY:i,height:i-r,width:o-t}},Ee=function(n,e){n===void 0&&(n=[]);var t=[],r=[];n.forEach(function(u){t.push(u.x),r.push(u.y)});var o=Math.min.apply(Math,Dt([],at(t),!1)),i=Math.max.apply(Math,Dt([],at(t),!1)),a=Math.min.apply(Math,Dt([],at(r),!1)),s=Math.max.apply(Math,Dt([],at(r),!1)),l=i-o,d=s-a;return e&&(l+=e,d+=e),{centerX:(o+i)/2,centerY:(a+s)/2,maxX:i,maxY:s,minX:o,minY:a,x:(o+i)/2,y:(a+s)/2,height:d,width:l}},Ue=function(n){var e=n.minX,t=n.minY,r=n.maxX,o=n.maxY;return[{x:e,y:t},{x:r,y:t},{x:r,y:o},{x:e,y:o}]},be=function(n,e){var t=n.x,r=n.y;return te.maxX||re.maxY},Wo=function(n,e){return en.maxX?[]:[{x:e,y:n.minY},{x:e,y:n.maxY}]},Zo=function(n,e){return en.maxY?[]:[{x:n.minX,y:e},{x:n.maxX,y:e}]},Vo=function(n,e){return Dt(Dt([],at(Wo(n,e.x)),!1),at(Zo(n,e.y)),!1)},xr=function(n,e){return Math.abs(n.x-e.x)+Math.abs(n.y-e.y)},Ko=function(n,e){var t=-2,r=0;return e.forEach(function(o){o&&(n.x===o.x&&(r+=t),n.y===o.y&&(r+=t))}),r},tn=function(n,e,t,r,o){return xr(n,e)+xr(n,t)+Ko(n,[e,t,r,o])},Jn=function(n,e,t,r,o){o||(o=0),n.unshift(e[r]),t[r]&&t[r]!==r&&o<=100&&Jn(n,e,t,t[r],o+1)},qo=function(n,e){var t=n.indexOf(e);t>-1&&n.splice(t,1)},ie=function(n,e,t,r){var o=e.x-n.x,i=e.y-n.y,a=r.x-t.x,s=r.y-t.y,l=(-i*(n.x-t.x)+o*(n.y-t.y))/(-a*i+o*s),d=(a*(n.y-t.y)-s*(n.x-t.x))/(-a*i+o*s);return l>=0&&l<=1&&d>=0&&d<=1},en=function(n,e,t){if(t.width===0&&t.height===0)return!1;var r=at(Ue(t),4),o=r[0],i=r[1],a=r[2],s=r[3];return ie(n,e,o,i)||ie(n,e,o,s)||ie(n,e,i,a)||ie(n,e,a,s)},Jo=function(n,e,t,r){var o=[];return n.forEach(function(i){i!==e&&(i.x===e.x||i.y===e.y)&&!en(i,e,t)&&!en(i,e,r)&&o.push(i)}),mr(o)},Qo=function(n,e,t,r,o,i,a){var s=[],l=[e],d={},u={},f={};e.id&&(u[e.id]=0,f[e.id]=tn(e,t,e));var c={};n.forEach(function(p){p.id&&(c[p.id]=p)});for(var h=function(){var p,g=1/0;if(l.forEach(function(_){_.id&&f[_.id]=u[_.id])return;d[_.id]=p.id,u[_.id]=M,f[_.id]=u[_.id]+tn(_,t,e,i,a)}})};l.length;){var y=h();if(typeof y=="object")return y.value}return[e,t]},rn=function(n){return rt(n)},Qn=function(n){for(var e=1;e2&&(v=Qn(v)),mr(v)},ti=function(n){if(n.length===1){var e=at(n,1),t=e[0];return[t,t]}else{for(var r=n[0],o=n[1],i=vt(r.x,r.y,o.x,o.y),a=1;ai&&(i=d,r=s,o=l)}return[r,o]}},on=function(n,e,t){var r=Nt(n,t),o=Nt(e,t);return r&&o},an=function(n,e,t){var r=Nt(n,t),o=Nt(e,t),i=r&&o,a=r||o;return!i&&a},sn=function(n,e,t){for(var r=void 0,o=rt(t),i=Ue(o),a=0;a=1&&r<=126||r>=65376&&r<=65439?e+=1:e+=2}return e},ri=function(n){var e=n.start,t=n.end,r;if(e.x===t.x&&e.y===t.y)r="";else{var o={start:e,end:t,offset:10,verticalLength:5},i=xe(qt(qt({},o),{type:"start"})),a=xe(qt(qt({},o),{type:"end"}));r="M".concat(i.leftX," ").concat(i.leftY,`
+ L`).concat(i.rightX," ").concat(i.rightY,`
+ L`).concat(a.rightX," ").concat(a.rightY,`
+ L`).concat(a.leftX," ").concat(a.leftY," z")}return{d:r,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},dn=function(n){var e=n.start,t=n.end,r=n.sourceNode,o=n.targetNode,i=n.offset,a=rt(r),s=rt(o),l=Fe(a,i),d=Fe(s,i),u=$e(l,a,e),f=$e(d,s,t);return{sNext:u,ePre:f}},Ur=function(n){var e=n.replace(/M/g,"").replace(/C/g,",").split(","),t=Ce(e[0]),r=Ce(e[1]),o=Ce(e[2]),i=Ce(e[3]);return[t,r,o,i]},Ce=function(n){var e=at(n.replace(/(^\s*)/g,"").split(" "),2),t=e[0],r=e[1];return{x:+t,y:+r}},un=function(n,e){var t=at(n,4),r=t[0],o=t[1],i=t[2],a=t[3],s=Hi(r,o,i,a,e);return[s,n[3]]},eo=function(n,e){for(var t=n.x,r=n.y,o=kt(e),i=Number.MAX_SAFE_INTEGER,a,s=[],l=0;lo?a:o}),{width:Math.ceil(o/2)*r+r/4,height:t*(r+2)+r/4}},$t=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Le=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ur=function(n,e,t){var r=dr(n,2),o=r[0],i=r[1],a=dr(e,2),s=a[0],l=a[1],d=dr(t,2),u=d[0],f=d[1];return o>s&&ol&&i=0?o:-o},e})(no),Er=(function(n){Wr(e,n);function e(t,r){var o=n.call(this,t,r,1)||this;return Object.setPrototypeOf(o,e.prototype),o}return e.prototype.toString=function(){return"Point"},e})(no),er=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Ut=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},fr=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;o--){var i=t[o],a=fi(n,i);if(a){var s=i.getTargetAnchor(n);if(s){var l={node:i,anchorIndex:s.index,anchor:s.anchor};(!r||di(i,r.node,e))&&(r=l)}}}return r},di=function(n,e,t){return n.zIndex>e.zIndex?!0:t.nodesMap[n.id].index>t.nodesMap[e.id].index},ui=function(n,e){for(var t=Mr(e),r,o=Number.MAX_SAFE_INTEGER,i=0;i=o.minX-r&&n.x<=o.maxX+r&&n.y>=o.minY-r&&n.y<=o.maxY+r&&(t=!0),t},fi=function(n,e){var t=!1,r=5,o=rt(e);return n.x>=o.minX-r&&n.x<=o.maxX+r&&n.y>=o.minY-r&&n.y<=o.maxY+r&&(t=!0),t},rt=function(n){var e=n.x,t=n.y,r=n.width,o=n.height;return{minX:e-r/2,minY:t-o/2,maxX:e+r/2,maxY:t+o/2,x:e,y:t,width:r,height:o,centerX:e,centerY:t}},ci=function(n){var e=n,t=e.x,r=e.y,o=e.width,i=e.height,a=e.radius;return[{x:t-o/2+a,y:r-i/2+a,r:a},{x:t+o/2-a,y:r-i/2+a,r:a},{x:t-o/2+a,y:r+i/2-a,r:a},{x:t+o/2-a,y:r+i/2-a,r:a}]},pn=function(n,e,t){var r=ci(t),o,i=Number.MAX_SAFE_INTEGER;return r.forEach(function(a){var s=vt(n.x,n.y,a.x,a.y);sd.minX&&n.xd.minY&&n.yu.x&&(f=u,c=d);var h={x:n.x,y:n.y};if(f.x===c.x&&e===G.HORIZONTAL&&(h={x:f.x,y:n.y}),f.y===c.y&&e===G.VERTICAL&&(h={x:n.x,y:f.y}),f.x!==c.x&&f.y!==c.y){var y=(c.y-f.y)/(c.x-f.x),p=(f.x*c.y-c.x*f.y)/(f.x-c.x);e===G.HORIZONTAL?h={x:(n.y-p)/y,y:n.y}:e===G.VERTICAL&&(h={x:n.x,y:y*n.x+p})}var g=me(h,d,u);if(g){var v=vt(h.x,h.y,n.x,n.y);vn.x?o=n.x+t/2:e.xn.y?i=n.y+r/2:e.y1?e.forEach(function(s){var l=document.createElement("div");l.textContent=s,i.appendChild(l)}):i.textContent=e[0],document.body.appendChild(i);var a=i.clientHeight;return document.body.removeChild(i),a},gn=function(n){var e=n.rows,t=n.rowsLength,r=n.fontSize,o=0;return e&&e.forEach(function(i){var a=to(i);o=a>o?a:o}),{width:Math.ceil(o/2)*r+r/4,height:t*(r+2)+r/4}},Ke=function(n){return typeof n!="object"?{isAllPass:!!n,msg:n?"":"不允许连接"}:n},Yt=function(){return To()},se=new Map,io=function(n){var e=Yt();function t(){n();var o=se.get(e);if(o){var i=window.requestAnimationFrame(t);se.set(e,i)}}var r=window.requestAnimationFrame(t);return se.set(e,r),e},qe=function(n){var e=se.get(n);e&&(window.cancelAnimationFrame(e),se.delete(n))},Me=function(){return Me=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function ao(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.value,a=n.fontSize,s=a===void 0?12:a,l=n.fill,d=l===void 0?"currentColor":l,u=n.overflowMode,f=u===void 0?"default":u,c=n.textWidth,h=c===void 0?void 0:c,y=n.model,p={x:t,y:o,fill:d,fontSize:s,textAnchor:"middle",dominantBaseline:"central"};if(W(bt(n),function(O){var w=hi(O,2),A=w[0],C=w[1];typeof C!="object"&&(p[A]=C)}),i){var g=String(i).split(/[\r\n]/g),v=g.length;if(f!=="default"){var _=y.BaseType,M=y.modelType;if(_===$.NODE&&M!==j.TEXT_NODE||_===$.EDGE&&h)return vi(n)}if(v>1){var S=g.map(function(O,w){var A=s+2,C=(w-(v-1)/2)*A;return x("tspan",{className:"lf-text-tspan",x:t,y:o+C,children:O})});return x("text",Me({},p,{children:S}))}return x("text",Me({},p,{children:i}))}return null}function vi(n){var e=n.x,t=n.y,r=n.value,o=n.model,i=n.textWidth,a=n.fontSize,s=a===void 0?12:a,l=n.lineHeight,d=n.fontFamily,u=d===void 0?"":d,f=n.wrapPadding,c=f===void 0?"0, 0":f,h=n.overflowMode,y=o.width,p=o.height,g=o.textHeight,v=i||y,_=String(r).split(/[\r\n]/g),M=_.length,S=oo({rows:_,style:{fontSize:"".concat(s,"px"),width:"".concat(v,"px"),fontFamily:u,lineHeight:l,padding:c},rowsLength:M,className:"lf-get-text-height"}),O=p>S?p:S;g&&(O=g);var w=h==="ellipsis";return w&&(O=s+2),x("g",{children:x("foreignObject",{width:v,height:O,x:e-v/2,y:t-O/2,style:{overflow:"visible",textAlign:"left"},children:x("div",{className:"lf-node-text-auto-wrap",style:{minHeight:O,width:v,padding:c},children:x("div",{className:w?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:w?_.join(""):"",style:Me({},n),children:_.map(function(A){return x("div",{className:"lf-node-text--auto-wrap-inner",children:A})})})})})})}var Sr=function(){return Sr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function ee(n){var e={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return W(bt(n),function(t){var r=yi(t,2),o=r[0],i=r[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("line",Sr({},e))}var wr=function(){return wr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Et(n){var e=n.x,t=n.y,r=n.width,o=n.height,i=n.className,a=n.strokeWidth,s=n.radius,l=s===void 0?0:s,d=e-r/2,u=t-o/2,f={};return f["stroke-width"]=a,W(bt(n),function(c){var h=gi(c,2),y=h[0],p=h[1];typeof p!="object"&&(f[y]=p)}),i?f.className="lf-basic-shape ".concat(i):f.className="lf-basic-shape",l&&(f.rx=l,f.ry=l),f.x=d,f.y=u,x("rect",wr({},f))}var Ar=function(){return Ar=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Oe(n){var e={d:""};return W(bt(n),function(t){var r=_i(t,2),o=r[0],i=r[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("path",Ar({},e))}var Pr=function(){return Pr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function re(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.r,a=i===void 0?4:i,s=n.className,l={cx:t,cy:o,r:a,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(bt(n),function(d){var u=mi(d,2),f=u[0],c=u[1];typeof c!="object"&&(l[f]=c)}),s?l.className="lf-basic-shape ".concat(s):l.className="lf-basic-shape",x("circle",Pr({},l))}var Tr=function(){return Tr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Ei(n){var e=n.x,t=e===void 0?0:e,r=n.y,o=r===void 0?0:r,i=n.rx,a=i===void 0?4:i,s=n.ry,l=s===void 0?4:s,d=n.className,u={cx:t,cy:o,rx:a,ry:l,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(bt(n),function(f){var c=xi(f,2),h=c[0],y=c[1];typeof y!="object"&&(u[h]=y)}),d?u.className="lf-basic-shape ".concat(d):u.className="lf-basic-shape",x("ellipse",Tr({},u))}var Dr=function(){return Dr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function so(n){var e=n.points,t=e===void 0?[]:e,r=n.className,o={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return W(bt(n),function(i){var a=Mi(i,2),s=a[0],l=a[1];typeof l!="object"&&(o[s]=l)}),r?o.classNmae="lf-basic-shape ".concat(r):o.className="lf-basic-shape",o.points=t.map(function(i){return i.join(",")}).join(" "),x("polygon",Dr({},o))}var Nr=function(){return Nr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i};function Si(n){var e=n.className,t={points:"",fill:"none"};return W(bt(n),function(r){var o=Oi(r,2),i=o[0],a=o[1];(i==="style"||typeof a!="object")&&(t[i]=a)}),e&&(t.className="".concat(e)),x("polyline",Nr({},t))}var lo=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Se=function(){return Se=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},H;(function(n){n[n.LEFT_TOP=0]="LEFT_TOP",n[n.RIGHT_TOP=1]="RIGHT_TOP",n[n.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",n[n.LEFT_BOTTOM=3]="LEFT_BOTTOM"})(H||(H={}));var Pi=(function(n){lo(e,n);function e(t){var r=n.call(this)||this;r.updateEdgePointByAnchors=function(){var s=r.nodeModel,l=s.id,d=s.anchors,u=r.graphModel.getNodeEdges(l);W(u,function(f){if(f.sourceNodeId===l){var c=Ht(d,function(h){return h.id===f.sourceAnchorId});c&&f.updateStartPoint({x:c.x,y:c.y})}else if(f.targetNodeId===l){var c=Ht(d,function(y){return y.id===f.targetAnchorId});c&&f.updateEndPoint({x:c.x,y:c.y})}})},r.triggerResizeEvent=function(s,l,d,u,f,c){r.graphModel.eventCenter.emit(T.NODE_RESIZE,{preData:s,data:l,deltaX:d,deltaY:u,index:f,model:c})},r.recalcResizeInfo=function(s,l,d,u,f){d===void 0&&(d=1),u===void 0&&(u=!1),f===void 0&&(f=!1);var c=L(l),h=c.deltaX,y=c.deltaY,p=c.width,g=c.height,v=c.PCTResizeInfo;if(v){var _=4,M=0,S=0;switch(s){case H.LEFT_TOP:S=(h*-1-y)/_;break;case H.RIGHT_TOP:S=(h-y)/_;break;case H.RIGHT_BOTTOM:S=(h+y)/_;break;case H.LEFT_BOTTOM:S=(h*-1+y)/_;break}S!==0&&(M=Math.round(S/v.ResizeBasis.basisHeight*1e5)/1e3),v.ResizePCT.widthPCT=Math.max(Math.min(v.ResizePCT.widthPCT+M,v.ScaleLimit.maxScaleLimit),v.ScaleLimit.minScaleLimit),v.ResizePCT.heightPCT=Math.max(Math.min(v.ResizePCT.heightPCT+M,v.ScaleLimit.maxScaleLimit),v.ScaleLimit.minScaleLimit);var O=Math.round(v.ResizePCT.widthPCT*v.ResizeBasis.basisWidth/100),w=Math.round(v.ResizePCT.heightPCT*v.ResizeBasis.basisHeight/100);switch(s){case H.LEFT_TOP:h=p-O,y=g-w;break;case H.RIGHT_TOP:h=O-p,y=g-w;break;case H.RIGHT_BOTTOM:h=O-p,y=w-g;break;case H.LEFT_BOTTOM:h=p-O,y=w-g;break}return c}switch(s){case H.LEFT_TOP:c.width=u?p:p-h*d,c.height=f?g:g-y*d;break;case H.RIGHT_TOP:c.width=u?p:p+h*d,c.height=f?g:g-y*d;break;case H.RIGHT_BOTTOM:c.width=u?p:p+h*d,c.height=f?g:g+y*d;break;case H.LEFT_BOTTOM:c.width=u?p:p-h*d,c.height=f?g:g+y*d;break}return c},r.resizeNode=function(s){var l=s.deltaX,d=s.deltaY,u=r.index,f=r.props,c=f.model,h=f.graphModel,y=f.x,p=f.y;Ii({x:y,y:p,deltaX:l,deltaY:d,index:u,nodeModel:c,graphModel:h,cancelCallback:function(){r.dragHandler.cancelDrag()}})},r.onDragging=function(s){var l=s.deltaX,d=s.deltaY,u=r.graphModel.transformModel,f=Ai(u.fixDeltaXY(l,d),2),c=f[0],h=f[1];r.resizeNode({deltaX:c,deltaY:h})},r.onDragEnd=function(){var s=r.nodeModel.x,l=r.nodeModel.y;r.nodeModel.moveTo(s,l),r.updateEdgePointByAnchors()};var o=t.index,i=t.model,a=t.graphModel;return r.index=o,r.nodeModel=i,r.graphModel=a,r.dragHandler=new Mt({onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:a.gridSize}),r}return e.prototype.componentWillUnmount=function(){this.dragHandler.destroy()},e.prototype.render=function(){var t=this.props,r=t.x,o=t.y,i=t.direction,a=t.model,s=a.getResizeControlStyle(),l=s.width,d=s.height,u=wi(s,["width","height"]);return x("g",{className:"lf-resize-control lf-resize-control-".concat(i),children:[x(Et,Se({className:"lf-resize-control-content",x:r,y:o,width:l??7,height:d??7},u)),x(Et,{className:"lf-resize-control-content",x:r,y:o,width:25,height:25,fill:"transparent",stroke:"transparent",onMouseDown:this.dragHandler.handleMouseDown})]})},e})(K),Ti=(function(n){lo(e,n);function e(){return n.call(this)||this}return e.prototype.getResizeControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=rt(r),a=i.minX,s=i.minY,l=i.maxX,d=i.maxY,u=[{index:H.LEFT_TOP,direction:"nw",x:a,y:s},{index:H.RIGHT_TOP,direction:"ne",x:l,y:s},{index:H.RIGHT_BOTTOM,direction:"se",x:l,y:d},{index:H.LEFT_BOTTOM,direction:"sw",x:a,y:d}];return St(u,function(f){return x(Pi,Se({},f,{model:r,graphModel:o}))})},e.prototype.getResizeOutline=function(){var t=this.props.model,r=t.x,o=t.y,i=t.width,a=t.height,s=t.getResizeOutlineStyle();return x(Et,Se({},s,{x:r,y:o,width:i,height:a}))},e.prototype.render=function(){return x("g",{className:"lf-resize-control-group",children:[this.getResizeOutline(),this.getResizeControl()]})},e})(K);function Di(n,e){var t=n.x,r=n.y,o=e.x,i=e.y,a={x:t+(o-t)/2,y:r+(i-r)/2};return a}function ae(n,e,t){var r=Ni(t),o=n.x-e.x,i=n.y-e.y,a=o*Math.cos(r)-i*Math.sin(r)+e.x,s=o*Math.sin(r)+i*Math.cos(r)+e.y;return{x:a,y:s}}function Ni(n){return n*Math.PI/180}function bi(n){return n/Math.PI*180}function Ci(n,e,t,r,o,i,a,s,l){s===void 0&&(s=!1),l===void 0&&(l=!1);var d=e.deltaX,u=e.deltaY,f=e.width,c=e.height,h=bi(t),y={x:r,y:o},p={x:i,y:a},g=ae(y,p,h),v={x:g.x+d,y:g.y+u},_=Bi(g,v,p,h,s,l,f,c),M=_.width,S=_.height,O=_.center;return e.width=M*n,e.height=S*n,e.deltaX=(O.x-p.x)*2,e.deltaY=(O.y-p.y)*2,e}var Li=function(n,e,t,r,o,i,a,s,l,d){t===void 0&&(t=1),r===void 0&&(r=!1),o===void 0&&(o=!1),i===void 0&&(i=0);var u=L(e),f=u.deltaX,c=u.deltaY,h=u.width,y=u.height,p=u.PCTResizeInfo;if(p){var g=4,v=0,_=0;switch(n){case H.LEFT_TOP:_=(f*-1-c)/g;break;case H.RIGHT_TOP:_=(f-c)/g;break;case H.RIGHT_BOTTOM:_=(f+c)/g;break;case H.LEFT_BOTTOM:_=(f*-1+c)/g;break}_!==0&&(v=Math.round(_/p.ResizeBasis.basisHeight*1e5)/1e3),p.ResizePCT.widthPCT=Math.max(Math.min(p.ResizePCT.widthPCT+v,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit),p.ResizePCT.heightPCT=Math.max(Math.min(p.ResizePCT.heightPCT+v,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit);var M=Math.round(p.ResizePCT.widthPCT*p.ResizeBasis.basisWidth/100),S=Math.round(p.ResizePCT.heightPCT*p.ResizeBasis.basisHeight/100);switch(n){case H.LEFT_TOP:f=h-M,c=y-S;break;case H.RIGHT_TOP:f=M-h,c=y-S;break;case H.RIGHT_BOTTOM:f=M-h,c=S-y;break;case H.LEFT_BOTTOM:f=h-M,c=S-y;break}return u}if(i%(2*Math.PI)!==0&&a!==void 0&&s!==void 0)return Ci(t,u,i,a,s,l,d,r,o);switch(n){case H.LEFT_TOP:u.width=r?h:h-f*t,u.height=o?y:y-c*t;break;case H.RIGHT_TOP:u.width=r?h:h+f*t,u.height=o?y:y-c*t;break;case H.RIGHT_BOTTOM:u.width=r?h:h+f*t,u.height=o?y:y+c*t;break;case H.LEFT_BOTTOM:u.width=r?h:h-f*t,u.height=o?y:y+c*t;break}return u},ji=function(n,e){var t=n.id,r=n.anchors,o=e.getNodeEdges(t);W(o,function(i){if(i.sourceNodeId===t){var a=Ht(r,function(s){return s.id===i.sourceAnchorId});a&&i.updateStartPoint({x:a.x,y:a.y})}else if(i.targetNodeId===t){var a=Ht(r,function(l){return l.id===i.targetAnchorId});a&&i.updateEndPoint({x:a.x,y:a.y})}})},Ri=function(n,e,t,r,o,i,a){a.eventCenter.emit(T.NODE_RESIZE,{preData:n,data:e,deltaX:t,deltaY:r,index:o,model:i})},Ii=function(n){var e=n.x,t=n.y,r=n.deltaX,o=n.deltaY,i=n.index,a=n.nodeModel,s=n.graphModel,l=n.cancelCallback,d=a.r,u=a.rx,f=a.ry,c=a.width,h=a.height,y=a.PCTResizeInfo,p=a.minWidth,g=a.minHeight,v=a.maxWidth,_=a.maxHeight,M=a.rotate,S=a.x,O=a.y,w=p===v,A=g===_,C={width:d||u||c,height:d||f||h,deltaX:r,deltaY:o,PCTResizeInfo:y},R=d||u&&f?1/2:1,b=e,z=t,I=Li(i,C,R,w,A,M,b,z,S,O);if(I.widthv||I.height_){l?.();return}(M%(2*Math.PI)==0||y||b===void 0||z===void 0)&&(I.deltaX=w?0:I.deltaX,I.deltaY=A?0:I.deltaY);var U=a.getData(),Y=a.resize(I);U.x===Y.x&&U.y===Y.y||(ji(a,s),Ri(U,Y,r,o,i,a,s))};function Bi(n,e,t,r,o,i,a,s){o===void 0&&(o=!1),i===void 0&&(i=!1);var l={x:t.x-(n.x-t.x),y:t.y-(n.y-t.y)},d=Di(l,e),u=ae(e,d,-r),f=ae(l,d,-r);if(o){var c=Math.abs(u.x-f.x),h=c-a;d.x>u.x?d.x=d.x+h/2:d.x=d.x-h/2}if(i){var y=Math.abs(u.y-f.y),p=y-s;d.y>u.y?d.y=d.y+p/2:d.y=d.y-p/2}if(o||i){var g=ae(f,d,r),v=g.x-l.x,_=g.y-l.y;d.x=d.x-v,d.y=d.y-_,f=ae(l,d,-r),u={x:d.x-(f.x-d.x),y:d.y-(f.y-d.y)}}var M=Math.abs(u.x-f.x),S=Math.abs(u.y-f.y);return o&&(M=a),i&&(S=s),{width:M,height:S,center:d}}var Xi=100,Yi={x:1,y:0};function Hi(n,e,t,r,o){for(var i=function(h){if(h<0||h>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:n.x*Math.pow(1-h,3)+3*e.x*h*Math.pow(1-h,2)+3*t.x*Math.pow(h,2)*(1-h)+r.x*Math.pow(h,3),y:n.y*Math.pow(1-h,3)+3*e.y*h*Math.pow(1-h,2)+3*t.y*Math.pow(h,2)*(1-h)+r.y*Math.pow(h,3)}},a=0,s=2,l=r.x,d=r.y,u=r;a=0?r:-r}function _n(n){var e=Math.hypot(n.x,n.y);return{x:n.x/e,y:n.y/e,z:0}}function Fi(n){return Gi(Yi,n)}function $i(n){return n*(180/Math.PI)}var Ui={baseNode:{fill:"#fff",stroke:"#000",strokeWidth:2},baseEdge:{stroke:"#000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000",fill:"#fff",r:4,hover:{r:10,fill:"#949494",fillOpacity:.5,stroke:"#949494"}},anchorLine:{stroke:"#000",strokeWidth:2,strokeDasharray:"3,2"},nodeText:{color:"#000",overflowMode:"default",fontSize:12,lineHeight:1.2},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#fff"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",fillOpacity:1,stroke:"#949494"}},arrow:{offset:10,verticalLength:5},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#fff",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10,10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5},resizeControl:{width:7,height:7,fill:"#fff",stroke:"#000"},resizeOutline:{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},uo=function(n){var e=L(Ui);return n&&(e=$r(e,n)),e},Wi=uo,Zi=1e3,Vi=999,Zr=function(){return++Zi},Ki=function(){return--Vi},V=function(){return V=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},or=(function(){function n(e,t){var r;this.BaseType=$.EDGE,this.id="",this.type="",this.sourceNodeId="",this.targetNodeId="",this.textMode=st.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this.points="",this.pointsList=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.isAnimation=!1,this.isShowAdjustPoint=!1,this.zIndex=0,this.state=X.DEFAULT,this.modelType=j.EDGE,this.customTextPosition=!1,this.style={},this.arrowConfig={markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")},this.graphModel=t,this.properties=(r=e.properties)!==null&&r!==void 0?r:{},this.initEdgeData(e),this.setAttributes()}return n.prototype.initEdgeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,r=t&&t(e.type),o=this.createId();e.id=o||r||Yt()}this.arrowConfig.markerEnd="url(#marker-end-".concat(e.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(e.id,")");var i=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=i,k(this,ni(e));var a=this.graphModel.overlapMode;a===pt.INCREASE&&(this.zIndex=e.zIndex||Zr()),this.setAnchors(),this.initPoints(),this.formatText(e)},n.prototype.setAttributes=function(){},n.prototype.createId=function(){return null},n.prototype.getEdgeStyle=function(){return V(V({},this.graphModel.theme.baseEdge),this.style)},n.prototype.getAdjustPointStyle=function(){return V({},this.graphModel.theme.edgeAdjust)},n.prototype.getTextStyle=function(){var e=this.graphModel.theme.edgeText;return L(e)},n.prototype.getEdgeAnimationStyle=function(){var e=this.graphModel.theme.edgeAnimation;return L(e)},n.prototype.getArrowStyle=function(){var e=this.getEdgeStyle(),t=this.getEdgeAnimationStyle(),r=this.graphModel.theme.arrow,o=this.isAnimation?t.stroke:e.stroke;return V(V(V({},e),{fill:o,stroke:o}),r)},n.prototype.getOutlineStyle=function(){var e=this.graphModel,t=e.theme.outline;return L(t)},n.prototype.getTextPosition=function(){return{x:0,y:0}},Object.defineProperty(n.prototype,"sourceNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.sourceNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"targetNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.targetNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"textPosition",{get:function(){return this.getTextPosition()},enumerable:!1,configurable:!0}),n.prototype.getBeginAnchor=function(e,t,r){var o,i,a=Mr(e);return r&&(o=Ht(a,function(s){return s.id===r}),o)||a.forEach(function(s){var l=fn(s,t);(i===void 0||l=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},cr=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},mn=(function(n){qi(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.BEZIER_EDGE,o.path="",o.initEdgeData(t),o.setAttributes(),o}return e.prototype.initEdgeData=function(t){this.offset=100,n.prototype.initEdgeData.call(this,t)},e.prototype.getEdgeStyle=function(){var t=this.graphModel.theme.bezier,r=n.prototype.getEdgeStyle.call(this),o=this.properties.style,i=o===void 0?{}:o;return It(It(It({},r),L(t)),L(i))},e.prototype.getTextPosition=function(){if(this.pointsList&&this.pointsList.length>0){var t=0,r=0;return this.pointsList.forEach(function(o){var i=o.x,a=o.y;t+=i,r+=a}),{x:t/this.pointsList.length,y:r/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}},e.prototype.getData=function(){var t=n.prototype.getData.call(this),r=this.pointsList.map(function(o){var i=o.x,a=o.y;return{x:i,y:a}});return It(It({},t),{pointsList:r})},e.prototype.getControls=function(){var t=this.startPoint,r=this.endPoint,o=dn({start:t,end:r,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset});return o},e.prototype.getPath=function(t){var r=cr(t,4),o=r[0],i=r[1],a=r[2],s=r[3];return"M ".concat(o.x," ").concat(o.y,`
+ C `).concat(i.x," ").concat(i.y,`,
+ `).concat(a.x," ").concat(a.y,`,
+ `).concat(s.x," ").concat(s.y)},e.prototype.initPoints=function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=this.getControls(),r=t.sNext,o=t.ePre;this.updatePath(r,o)},e.prototype.updatePath=function(t,r){t=L(t),r=L(r);var o={x:this.startPoint.x,y:this.startPoint.y},i={x:this.endPoint.x,y:this.endPoint.y};if(!t||!r){var a=this.getControls();t=a.sNext,r=a.ePre}this.pointsList=[o,t,r,i],this.path=this.getPath(this.pointsList)},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,r){this.startPoint.x+=t,this.startPoint.y+=r;var o=cr(this.pointsList,3),i=o[1],a=o[2];i.x+=t,i.y+=r,this.updatePath(i,a)},e.prototype.moveEndPoint=function(t,r){this.endPoint.x+=t,this.endPoint.y+=r;var o=cr(this.pointsList,3),i=o[1],a=o[2];a.x+=t,a.y+=r,this.updatePath(i,a)},e.prototype.updateAdjustAnchor=function(t,r){var o;r==="sNext"?this.pointsList[1]=t:r==="ePre"&&(this.pointsList[2]=t),this.path=this.getPath(this.pointsList),!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition))},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var r=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode,s=dn({start:r,end:o,sourceNode:i,targetNode:a,offset:this.offset}),l=s.sNext,d=s.ePre;this.pointsList=[r,l,d,o],this.initPoints()},dt([E],e.prototype,"path",void 0),dt([m],e.prototype,"initPoints",null),dt([m],e.prototype,"updatePoints",null),dt([m],e.prototype,"updateStartPoint",null),dt([m],e.prototype,"updateEndPoint",null),dt([m],e.prototype,"moveStartPoint",null),dt([m],e.prototype,"moveEndPoint",null),dt([m],e.prototype,"updateAdjustAnchor",null),dt([m],e.prototype,"getAdjustStart",null),dt([m],e.prototype,"getAdjustEnd",null),dt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e})(or),Ji=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),le=function(){return le=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Qi=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Mn=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ea=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;rl)&&(a=l,i=s)}),i},e.prototype.getCrossPoint=function(t,r,o){var i;return t===G.HORIZONTAL?i={x:o.x,y:r.y}:t===G.VERTICAL&&(i={x:r.x,y:o.y}),i},e.prototype.removeCrossPoints=function(t,r,o){var i=o.map(function(v){return v});if(t===1){var a=i[t],s=i[r],l=i[t-1],d=on(l,a,this.sourceNode);if(d){var u=an(a,s,this.sourceNode);if(u){var f=sn(a,s,this.sourceNode);f&&(i[t]=f,i.splice(t-1,1),t--,r--)}}else{var c=this.sourceNode.anchors;c.forEach(function(v){if(v.x===l.x&&v.x===a.x||v.y===l.y&&v.y===a.y){var _=vt(v.x,v.y,a.x,a.y),M=vt(l.x,l.y,a.x,a.y);_0?this.points=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=nn({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=t,this.points=t.map(function(r){return"".concat(r.x,",").concat(r.y)}).join(" ")},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,r){this.startPoint.x+=t,this.startPoint.y+=r,this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveEndPoint=function(t,r){this.endPoint.x+=t,this.endPoint.y+=r,this.updatePoints()},e.prototype.updatePointsList=function(t,r){this.pointsList.forEach(function(a){a.x+=t,a.y+=r});var o=this.pointsList[0];this.startPoint=Object.assign({},o);var i=this.pointsList[this.pointsList.length-1];this.endPoint=Object.assign({},i),this.initPoints()},e.prototype.dragAppendStart=function(){this.draggingPointList=this.pointsList.map(function(t){return t})},e.prototype.dragAppendSimple=function(t,r){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,l=t.endIndex,d=t.direction,u=this.pointsList,f=u;return d===G.HORIZONTAL?(u[s]={x:i.x,y:i.y+r.y},u[l]={x:a.x,y:a.y+r.y},f=this.pointsList.map(function(c){return c})):d===G.VERTICAL&&(u[s]={x:i.x+r.x,y:i.y},u[l]={x:a.x+r.x,y:a.y},f=this.pointsList.map(function(c){return c})),this.updatePointsAfterDrag(f),this.draggingPointList=f,!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition)),{start:k({},u[s]),end:k({},u[l]),startIndex:s,endIndex:l,direction:d}},e.prototype.dragAppend=function(t,r){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,l=t.endIndex,d=t.direction,u=this.pointsList;if(d===G.HORIZONTAL){u[s]={x:i.x,y:i.y+r.y},u[l]={x:a.x,y:a.y+r.y};var f=this.pointsList.map(function(g){return g});if(s!==0&&l!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,l,f)),s===0){var c={x:i.x,y:i.y+r.y},h=Nt(c,this.sourceNode);if(!h){var y=this.sourceNode.anchors;f=this.getDraggingPoints(d,"start",c,y,f)}}if(l===this.pointsList.length-1){var p={x:a.x,y:a.y+r.y},h=Nt(p,this.targetNode);if(!h){var y=this.targetNode.anchors;f=this.getDraggingPoints(d,"end",p,y,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}else if(d===G.VERTICAL){u[s]={x:i.x+r.x,y:i.y},u[l]={x:a.x+r.x,y:a.y};var f=this.pointsList.map(function(v){return v});if(s!==0&&l!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,l,f)),s===0){var c={x:i.x+r.x,y:i.y},h=Nt(c,this.sourceNode);if(!h){var y=this.sourceNode.anchors;f=this.getDraggingPoints(d,"start",c,y,f)}}if(l===this.pointsList.length-1){var p={x:a.x+r.x,y:a.y},h=Nt(p,this.targetNode);if(!h){var y=this.targetNode.anchors;f=this.getDraggingPoints(d,"end",p,y,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}return!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition)),{start:k({},u[s]),end:k({},u[l]),startIndex:s,endIndex:l,direction:d}},e.prototype.dragAppendEnd=function(){if(this.draggingPointList){var t=Qn(kt(this.points));this.pointsList=t.map(function(i){return i}),this.draggingPointList=[];var r=t[0];this.startPoint=k({},r);var o=t[t.length-1];this.endPoint=k({},o)}this.isDragging=!1},e.prototype.updatePointsAfterDrag=function(t){var r=this.updateCrossPoints(t);this.points=r.map(function(o){return"".concat(o.x,",").concat(o.y)}).join(" ")},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var r=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode;this.pointsList=nn({x:r.x,y:r.y},{x:o.x,y:o.y},i,a,this.offset||0),this.initPoints()},tt([E],e.prototype,"dbClickPosition",void 0),tt([m],e.prototype,"initPoints",null),tt([m],e.prototype,"updatePoints",null),tt([m],e.prototype,"updateStartPoint",null),tt([m],e.prototype,"moveStartPoint",null),tt([m],e.prototype,"updateEndPoint",null),tt([m],e.prototype,"moveEndPoint",null),tt([m],e.prototype,"updatePointsList",null),tt([m],e.prototype,"dragAppendStart",null),tt([m],e.prototype,"dragAppendSimple",null),tt([m],e.prototype,"dragAppend",null),tt([m],e.prototype,"dragAppendEnd",null),tt([m],e.prototype,"updatePointsAfterDrag",null),tt([m],e.prototype,"getAdjustStart",null),tt([m],e.prototype,"getAdjustEnd",null),tt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e})(or),q=function(){return q=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Sn=function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ra=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ct=(function(){function n(e,t){var r;this.BaseType=$.NODE,this.id="",this.type="",this.x=0,this.y=0,this.textMode=st.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this._width=100,this._height=80,this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.anchorsOffset=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isShowAnchor=!1,this.isDragging=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.rotatable=!0,this.resizable=!0,this.zIndex=1,this.state=X.DEFAULT,this.autoToFront=!0,this.style={},this._rotate=0,this.modelType=j.NODE,this.additionStateData={},this.targetRules=[],this.sourceRules=[],this.moveRules=[],this.resizeRules=[],this.hasSetTargetRules=!1,this.hasSetSourceRules=!1,this.graphModel=t,this.properties=(r=e.properties)!==null&&r!==void 0?r:{},this.initNodeData(e),this.setAttributes()}return Object.defineProperty(n.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e;var t=this,r=t.x,o=r===void 0?0:r,i=t.y,a=i===void 0?0:i;this.transform=new nr(-o,-a).rotate(e).translate(o,a).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"incoming",{get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"outgoing",{get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}},enumerable:!1,configurable:!0}),n.prototype.initNodeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,r=t&&t(e.type),o=this.createId();e.id=o||r||Yt()}this.formatText(e),k(this,pi(e));var i=this.graphModel.overlapMode;i===pt.INCREASE&&(this.zIndex=e.zIndex||Zr())},n.prototype.setAttributes=function(){},n.prototype.createId=function(){return null},n.prototype.setTextMode=function(e){this.textMode=e},n.prototype.formatText=function(e){var t,r,o,i=this.graphModel.editConfigModel,a=i.nodeTextDraggable,s=i.nodeTextEdit,l=e.x,d=e.y,u=e.text,f={value:"",x:l,y:d,draggable:a,editable:s};u&&(typeof u=="string"?f.value=u:(f=q(q({},f),{x:(t=u.x)!==null&&t!==void 0?t:l,y:(r=u.y)!==null&&r!==void 0?r:d,value:(o=u.value)!==null&&o!==void 0?o:""}),Qt(u.draggable)||(f.draggable=u.draggable),Qt(u.editable)||(f.editable=u.editable))),e.text=f},n.prototype.resize=function(e){var t=e.width,r=e.height,o=e.deltaX,i=e.deltaY,a=this.isAllowResizeNode(o,i,t,r);return a?(this.move(o/2,i/2),this.width=t,this.height=r,this.setProperties({width:t,height:r}),this.getData()):this.getData()},n.prototype.proportionalResize=function(){},n.prototype.getData=function(){var e=this.text,t=e.x,r=e.y,o=e.value,i=this.properties;qn(i)&&(i=mt(i)),ht(i.width)&&(i.width=this.width),ht(i.height)&&(i.height=this.height);var a={id:this.id,type:this.type,x:this.x,y:this.y,properties:i};return this.rotate&&(a.rotate=this.rotate),this.graphModel.overlapMode===pt.INCREASE&&(a.zIndex=this.zIndex),o&&(a.text={x:t,y:r,value:o}),a},n.prototype.getHistoryData=function(){return this.getData()},n.prototype.getProperties=function(){return mt(this.properties)},n.prototype.getOuterGAttributes=function(){return{className:""}},n.prototype.getNodeStyle=function(){return q(q({},this.graphModel.theme.baseNode),this.style)},n.prototype.getTextStyle=function(){var e=this.graphModel.theme.nodeText,t=this.properties.textStyle,r=t===void 0?{}:t;return q(q({},L(e)),L(r))},n.prototype.getRotateControlStyle=function(){var e=this.graphModel.theme.rotateControl;return L(e)},n.prototype.getResizeControlStyle=function(){var e=this.graphModel.theme.resizeControl;return L(e)},n.prototype.getResizeOutlineStyle=function(){var e=this.graphModel.theme.resizeOutline;return L(e)},n.prototype.getAnchorStyle=function(e){var t=this.graphModel.theme.anchor;return L(t)},n.prototype.getAnchorLineStyle=function(e){var t=this.graphModel.theme.anchorLine;return L(t)},n.prototype.getOutlineStyle=function(){var e=this.graphModel.theme.outline;return L(e)},n.prototype.isAllowConnectedAsSource=function(e,t,r,o){var i=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var a=!0,s="",l=0;l0?t.map(function(a,s){return a.length?(a=a,{id:"".concat(r,"_").concat(s),x:o+a[0],y:i+a[1]}):(a=a,q(q({},a),{x:o+a.x,y:i+a.y,id:a.id||"".concat(r,"_").concat(s)}))}):this.getDefaultAnchor()},n.prototype.getDefaultAnchor=function(){return[]},n.prototype.getTargetAnchor=function(e){return ui(e,this)},n.prototype.getBounds=function(){return{minX:this.x-this.width/2,minY:this.y-this.height/2,maxX:this.x+this.width/2,maxY:this.y+this.height/2}},Object.defineProperty(n.prototype,"anchors",{get:function(){var e=this.getAnchorsByOffset(),t=this,r=t.x,o=t.y,i=t.rotate;return e.forEach(function(a){var s=a.x,l=a.y,d=ra(new rr([s,l,1]).translate(-r,-o).rotate(i).translate(r,o)[0],2),u=d[0],f=d[1];a.x=u,a.y=f}),e},enumerable:!1,configurable:!0}),n.prototype.getAnchorInfo=function(e){if(!ht(e))for(var t=0;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wn=(function(n){na(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.CIRCLE_NODE,o.r=50,o.initNodeData(t),o.setAttributes(),o}return Object.defineProperty(e.prototype,"width",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties.r;t&&(this.r=t)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.circle,o=this.properties.style,i=o===void 0?{}:o;return ue(ue(ue({},t),L(r)),L(i))},e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.r;return[{x:r,y:o-i,id:"".concat(this.id,"_0")},{x:r+i,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+i,id:"".concat(this.id,"_2")},{x:r-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var r=t.width,o=t.deltaX,i=t.deltaY;return this.move(o/2,i/2),this.r=r,this.setProperties({r}),this.getData()},pr([E],e.prototype,"r",void 0),pr([F],e.prototype,"width",null),pr([F],e.prototype,"height",null),e})(Ct),oa=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),fe=function(){return fe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Re=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},An=(function(n){oa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.DIAMOND_NODE,o.rx=30,o.ry=50,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.rx,o=t.ry;r&&(this.rx=r),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.diamond,o=this.properties.style,i=o===void 0?{}:o;return fe(fe(fe({},t),L(r)),L(i))},Object.defineProperty(e.prototype,"points",{get:function(){var t=this,r=t.x,o=t.y,i=t.rx,a=t.ry;return[[r,o-a],[r+i,o],[r,o+a],[r-i,o]]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointsPosition",{get:function(){return St(this.points,function(t){var r=Re(t,2),o=r[0],i=r[1];return{x:o,y:i}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=Re(o,1),a=i[0];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=Re(o,2),a=i[1];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this;return St(this.points,function(r,o){var i=Re(r,2),a=i[0],s=i[1];return{x:a,y:s,id:"".concat(t.id,"_").concat(o)}})},e.prototype.resize=function(t){var r=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=r,this.ry=o,this.setProperties({rx:r,ry:o}),this.getData()},Wt([E],e.prototype,"rx",void 0),Wt([E],e.prototype,"ry",void 0),Wt([F],e.prototype,"points",null),Wt([F],e.prototype,"pointsPosition",null),Wt([F],e.prototype,"width",null),Wt([F],e.prototype,"height",null),e})(Ct),ia=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),ce=function(){return ce=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Pn=(function(n){ia(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.ELLIPSE_NODE,o.rx=30,o.ry=45,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.rx,o=t.ry;r&&(this.rx=r),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.ellipse,o=this.properties.style,i=o===void 0?{}:o;return ce(ce(ce({},t),L(r)),L(i))},Object.defineProperty(e.prototype,"width",{get:function(){return this.rx*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.ry*2},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.rx,a=t.ry;return[{x:r,y:o-a,id:"".concat(this.id,"_0")},{x:r+i,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+a,id:"".concat(this.id,"_2")},{x:r-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var r=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=r,this.ry=o,this.setProperties({rx:r,ry:o}),this.getData()},Ie([E],e.prototype,"rx",void 0),Ie([E],e.prototype,"ry",void 0),Ie([F],e.prototype,"width",null),Ie([F],e.prototype,"height",null),e})(Ct),aa=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),pe=function(){return pe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Xe=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Tn=(function(n){aa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.POLYGON_NODE,o.points=[[50,0],[100,50],[50,100],[0,50]],o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.points,o=t.width,i=t.height,a=r||this.points;this.points=ai(a,o,i)},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.polygon,o=this.properties.style,i=o===void 0?{}:o;return pe(pe(pe({},t),L(r)),L(i))},Object.defineProperty(e.prototype,"pointsPosition",{get:function(){var t=this,r=t.x,o=t.y,i=t.width,a=t.height;return this.points.map(function(s){return{x:s[0]+r-i/2,y:s[1]+o-a/2}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Xe(o,1),a=i[0];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Xe(o,2),a=i[1];ar&&(r=a)}),r-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,r=this,o=r.x,i=r.y,a=r.width,s=r.height,l=r.points;return l.map(function(d,u){var f=Xe(d,2),c=f[0],h=f[1];return{x:o+c-a/2,y:i+h-s/2,id:"".concat(t.id,"_").concat(u)}})},e.prototype.resize=function(t){var r=this,o=t.width,i=t.height,a=t.deltaX,s=t.deltaY;this.move(a/2,s/2);var l=St(this.points,function(d){var u=Xe(d,2),f=u[0],c=u[1];return[f*o/r.width,c*i/r.height]});return this.points=l,this.properties.points=l,this.getData()},Be([E],e.prototype,"points",void 0),Be([F],e.prototype,"pointsPosition",null),Be([F],e.prototype,"width",null),Be([F],e.prototype,"height",null),e})(Ct),sa=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),he=function(){return he=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Dn=(function(n){sa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.modelType=j.RECT_NODE,o.radius=0,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){n.prototype.setAttributes.call(this);var t=this.properties,r=t.width,o=t.height,i=t.radius;ht(r)||(this.width=r),ht(o)||(this.height=o),ht(i)||(this.radius=i)},e.prototype.getDefaultAnchor=function(){var t=this,r=t.x,o=t.y,i=t.width,a=t.height;return[{x:r,y:o-a/2,id:"".concat(this.id,"_0")},{x:r+i/2,y:o,id:"".concat(this.id,"_1")},{x:r,y:o+a/2,id:"".concat(this.id,"_2")},{x:r-i/2,y:o,id:"".concat(this.id,"_3")}]},e.prototype.getNodeStyle=function(){var t=n.prototype.getNodeStyle.call(this),r=this.graphModel.theme.rect,o=this.properties.style,i=o===void 0?{}:o;return he(he(he({},t),L(r)),L(i))},la([E],e.prototype,"radius",void 0),e})(Ct),da=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),ve=function(){return ve=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ua=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},fa=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},pa={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotate:!1,allowResize:!1,nodeSelectedOutline:!0,textEdit:!1,nodeTextEdit:!1,edgeTextEdit:!1,textDraggable:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},Ye=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","snapGrid","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustEdgeStart","adjustEdgeEnd","adjustNodePosition","hideAnchors","allowRotate","allowResize","autoExpand","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","textEdit","nodeTextEdit","edgeTextEdit","textDraggable","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","textMode","nodeTextMode","edgeTextMode","nodeTextMultiple","edgeTextMultiple","nodeTextVertical","edgeTextVertical"],ha=(function(){function n(e){this.isSilentMode=!1,this.stopZoomGraph=!1,this.stopMoveGraph=!1,this.stopScrollGraph=!1,this.snapGrid=!1,this.textMode=st.TEXT,this.textEdit=!0,this.textDraggable=!1,this.nodeTextEdit=!0,this.nodeTextDraggable=!1,this.nodeTextMultiple=!1,this.nodeTextVertical=!1,this.nodeTextMode=st.TEXT,this.edgeTextMode=st.TEXT,this.edgeTextEdit=!0,this.edgeTextDraggable=!1,this.edgeTextMultiple=!1,this.edgeTextVertical=!1,this.hideAnchors=!1,this.allowRotate=!1,this.allowResize=!1,this.hoverOutline=!0,this.nodeSelectedOutline=!0,this.adjustNodePosition=!0,this.autoExpand=!1,this.adjustEdge=!0,this.adjustEdgeMiddle=!1,this.adjustEdgeStartAndEnd=!1,this.adjustEdgeStart=!1,this.adjustEdgeEnd=!1,this.edgeSelectedOutline=!0,this.multipleSelectKey="",k(this,this.computeConfig(e))}return n.prototype.updateEditConfig=function(e){var t=this.computeConfig(e);k(this,t)},n.prototype.computeConfig=function(e){var t=e.isSilentMode,r=e.textDraggable,o=e.textMode,i=e.textEdit,a=e.adjustEdgeStartAndEnd,s={};if(t===!1&&k(s,this.stagedConfig),t===!0&&t!==this.isSilentMode){var l=Kt(pa,Ye);this.stagedConfig=Kt(this,Ye),k(s,l)}Qt(i)||k(s,{nodeTextEdit:i,edgeTextEdit:i}),Qt(r)||k(s,{nodeTextDraggable:r,edgeTextDraggable:r}),o&&k(s,{nodeTextMode:o,edgeTextMode:o}),_r(a)&&k(s,{adjustEdgeStart:a,adjustEdgeEnd:a});var d=Kt(e,Ye);return k(s,d)},n.prototype.updateTextMode=function(e){this.textMode=e,this.edgeTextMode=e,this.nodeTextMode=e},n.prototype.getConfig=function(){return Kt(this,Ye)},B([E],n.prototype,"isSilentMode",void 0),B([E],n.prototype,"stopZoomGraph",void 0),B([E],n.prototype,"stopMoveGraph",void 0),B([E],n.prototype,"stopScrollGraph",void 0),B([E],n.prototype,"snapGrid",void 0),B([E],n.prototype,"textMode",void 0),B([E],n.prototype,"textEdit",void 0),B([E],n.prototype,"textDraggable",void 0),B([E],n.prototype,"nodeTextEdit",void 0),B([E],n.prototype,"nodeTextDraggable",void 0),B([E],n.prototype,"nodeTextMultiple",void 0),B([E],n.prototype,"nodeTextVertical",void 0),B([E],n.prototype,"nodeTextMode",void 0),B([E],n.prototype,"edgeTextMode",void 0),B([E],n.prototype,"edgeTextEdit",void 0),B([E],n.prototype,"edgeTextDraggable",void 0),B([E],n.prototype,"edgeTextMultiple",void 0),B([E],n.prototype,"edgeTextVertical",void 0),B([E],n.prototype,"hideAnchors",void 0),B([E],n.prototype,"allowRotate",void 0),B([E],n.prototype,"allowResize",void 0),B([E],n.prototype,"hoverOutline",void 0),B([E],n.prototype,"nodeSelectedOutline",void 0),B([E],n.prototype,"adjustNodePosition",void 0),B([E],n.prototype,"autoExpand",void 0),B([E],n.prototype,"adjustEdge",void 0),B([E],n.prototype,"adjustEdgeMiddle",void 0),B([E],n.prototype,"adjustEdgeStartAndEnd",void 0),B([E],n.prototype,"adjustEdgeStart",void 0),B([E],n.prototype,"adjustEdgeEnd",void 0),B([E],n.prototype,"edgeSelectedOutline",void 0),B([m],n.prototype,"updateEditConfig",null),B([m],n.prototype,"updateTextMode",null),n})(),va="*",ya=(function(){function n(){this._events={}}return n.prototype.on=function(e,t,r){var o=this;e?.split(",").forEach(function(i){i=i.trim(),o._events[i]||(o._events[i]=[]),o._events[i].push({callback:t,once:!!r})})},n.prototype.once=function(e,t){var r=this;e?.split(",").forEach(function(o){o=o.trim(),r.on(o,t,!0)})},n.prototype.emit=function(e,t){var r=this;e?.split(",").forEach(function(o){var i=r._events[o]||[],a=r._events[va]||[],s=function(l){for(var d=l.length,u=0;u=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ma=(function(n){ga(e,n);function e(t){var r=n.call(this)||this;r.stepScrollX=0,r.stepScrollY=0,r.onDragging=function(s){var l=s.deltaX,d=s.deltaY;r.setState({isDragging:!0});var u=r.props.graphModel,f=u.transformModel,c=u.editConfigModel;c.stopMoveGraph!==!0&&f.translate(l,d)},r.onDragEnd=function(){r.setState({isDragging:!1})},r.zoomHandler=function(s){var l=r.props,d=l.graphModel,u=d.editConfigModel,f=d.transformModel,c=d.gridSize,h=l.graphModel,y=s.deltaX,p=s.deltaY,g=u.stopScrollGraph,v=u.stopZoomGraph;if(!g&&!s.ctrlKey&&!s.metaKey){if(s.preventDefault(),r.stepScrollX+=y,r.stepScrollY+=p,Math.abs(r.stepScrollX)>=c){var _=r.stepScrollX%c,M=r.stepScrollX-_;f.translate(-M*f.SCALE_X,0),r.stepScrollX=_}if(Math.abs(r.stepScrollY)>=c){var S=r.stepScrollY%c,O=r.stepScrollY-S;f.translate(0,-O*f.SCALE_Y),r.stepScrollY=S}return}if(!v){s.preventDefault();var w=h.getPointByClient({x:s.clientX,y:s.clientY}),A=w.canvasOverlayPosition,C=A.x,R=A.y;f.zoom(s.deltaY<0,[C,R])}},r.clickHandler=function(s){var l=s.target;if(l.getAttribute("name")==="canvas-overlay"){var d=r.props.graphModel,u=d.selectElements;u.size>0&&d.clearSelectElements(),d.eventCenter.emit(T.BLANK_CLICK,{e:s})}},r.handleContextMenu=function(s){var l=s.target;if(l.getAttribute("name")==="canvas-overlay"){s.preventDefault();var d=r.props.graphModel,u=d.getPointByClient({x:s.clientX,y:s.clientY});d.eventCenter.emit(T.BLANK_CONTEXTMENU,{e:s,position:u})}},r.mouseDownHandler=function(s){var l=r.props.graphModel,d=l.eventCenter,u=l.editConfigModel,f=l.transformModel.SCALE_X,c=l.gridSize,h=u.adjustEdge,y=u.adjustNodePosition,p=u.stopMoveGraph,g=s.target,v=!h&&!y;(g.getAttribute("name")==="canvas-overlay"||v)&&(p!==!0?(r.stepDrag.setStep(c*f),r.stepDrag.handleMouseDown(s)):d.emit(T.BLANK_MOUSEDOWN,{e:s}),r.clickHandler(s))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter;return r.stepDrag=new Mt({onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:i,eventType:"BLANK",isStopPropagation:!1,eventCenter:a,model:void 0}),r.state={isDragging:!1},r}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=t.getTransformStyle().transform,o=this.props,i=o.children,a=o.dnd,s=this.state.isDragging;return x("svg",br({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:s?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},a.eventMap(),{children:x("g",{transform:r,children:i})}))},e=_a([ot],e),e})(K),fo=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),we=function(){return we=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ea=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ln=(function(n){fo(e,n);function e(){var t=n.call(this)||this;return t.onDragging=function(r){var o=r.event,i=t.props,a=i.graphModel,s=i.bezierModel,l=i.type,d=a.getPointByClient({x:o.clientX,y:o.clientY}).canvasOverlayPosition,u=d.x,f=d.y;s.updateAdjustAnchor({x:u,y:f},l),a.eventCenter.emit(T.EDGE_ADJUST,{data:s.getData()})},t.onDragEnd=function(){var r=t.props.bezierModel;r.isDragging=!1},t.dragHandler=new Mt({onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.render=function(){var t=this,r=this.props.position,o=r.x,i=r.y,a=this.props.bezierModel,s=a.getEdgeStyle().adjustAnchor;return x(re,we({className:"lf-bezier-adjust-anchor",x:o,y:i},s,{onMouseDown:function(l){t.dragHandler.handleMouseDown(l)}}))},e})(K),Ma=(function(n){fo(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getBezierAdjust=function(t,r){var o=t.path,i=t.id,a=Ur(o),s=Ea(a,4),l=s[0],d=s[1],u=s[2],f=s[3],c=t.getEdgeStyle().adjustLine,h=[];return h.push(x(ee,we({x1:l.x,y1:l.y,x2:d.x,y2:d.y},c))),h.push(x(Ln,{position:d,bezierModel:t,graphModel:r,type:"sNext"},"".concat(i,"_ePre"))),h.push(x(ee,we({x1:f.x,y1:f.y,x2:u.x,y2:u.y},c))),h.push(x(Ln,{position:u,bezierModel:t,graphModel:r,type:"ePre"},"".concat(i,"_sNext"))),h},e.prototype.selectedBezierEdge=function(){for(var t=this.props.graphModel,r=t.edges,o=[],i=0;i=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wa=(function(n){Oa(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.background;return x("div",{className:"lf-background",children:x("div",{style:mo(t)?t:{},className:"lf-background-area"})})},e=Sa([ot],e),e})(K),Aa=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Pa=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Je=(function(n){Aa(e,n);function e(t){var r=n.call(this,t)||this;return r.id=Yt(),r.gridOptions=r.props.graphModel.grid,r}return e.prototype.renderDot=function(){var t=this.gridOptions,r=t.config,o=t.size,i=o===void 0?1:o,a=t.visible,s=r??{},l=s.color,d=s.thickness,u=d===void 0?2:d,f=Math.min(Math.max(2,u),i/4),c=a?1:0;return x("g",{fill:l,opacity:c,children:[x("circle",{cx:0,cy:0,r:f/2}),x("circle",{cx:0,cy:i,r:f/2}),x("circle",{cx:i,cy:0,r:f/2}),x("circle",{cx:i,cy:i,r:f/2})]})},e.prototype.renderMesh=function(){var t=this.gridOptions,r=t.config,o=t.size,i=o===void 0?1:o,a=t.visible,s=r??{},l=s.color,d=s.thickness,u=d===void 0?1:d,f=Math.min(Math.max(1,u),i/2),c="M 0 0 H ".concat(i," V ").concat(i," H 0 Z"),h=a?1:0;return x("path",{d:c,stroke:l,strokeWidth:f/2,opacity:h,fill:"transparent"})},e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=this.gridOptions,o=r.type,i=r.size,a=i===void 0?1:i,s=t.SCALE_X,l=t.SKEW_Y,d=t.SKEW_X,u=t.SCALE_Y,f=t.TRANSLATE_X,c=t.TRANSLATE_Y,h=[s,l,d,u,f,c].join(","),y="matrix(".concat(h,")");return x("div",{className:"lf-grid",children:x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",children:[x("defs",{children:x("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:y,x:"0",y:"0",width:a,height:a,children:[o==="dot"&&this.renderDot(),o==="mesh"&&this.renderMesh()]})}),x("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})]})})},e=Pa([ot],e),e})(K);(function(n){n.defaultProps={size:Bo,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}};function e(t){var r=L(n.defaultProps);return typeof t=="number"?k(r,{size:t}):typeof t=="boolean"?k(r,{visible:t}):k(r,t)}n.getGridOptions=e})(Je||(Je={}));var Ta=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Da=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Na=(function(n){Ta(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,r=t.getTransformStyle().transform,o=this.props.children;return x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay",children:x("g",{transform:r,children:o})})},e=Da([ot],e),e})(K),ba=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),wt=function(){return wt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},La=(function(n){ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getNodesOutline=function(){var t=this.props.graphModel,r=t.nodes,o=t.editConfigModel,i=o.hoverOutline,a=o.nodeSelectedOutline,s=[];return r.forEach(function(l){if(l.isHovered||l.isSelected){var d=l.isHovered,u=l.isSelected,f=l.x,c=l.y,h=l.width,y=l.height;if(a&&u||i&&d){var p=l.getOutlineStyle(),g={};if(Object.keys(p).forEach(function(_){_!=="hover"&&(g[_]=p[_])}),d){var v=p.hover;g=wt(wt({},g),v)}s.push(x(Et,wt({transform:l.transform,className:"lf-outline-node",x:f,y:c,width:h+10,height:y+10},g)))}}}),s},e.prototype.getEdgeOutline=function(){for(var t=this.props.graphModel,r=t.edges,o=t.editConfigModel,i=o.edgeSelectedOutline,a=o.hoverOutline,s=[],l=0;l=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ia=(function(n){ja(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.snaplineModel,r=t??{},o=r.position,i=r.isShowHorizontal,a=r.isShowVertical,s=t?.getStyle(),l=o??{},d=l.x,u=d===void 0?0:d,f=l.y,c=f===void 0?0:f,h=At(At({x1:-1e5,y1:c,x2:1e5,y2:c},s),{stroke:i?s?.stroke:"none"}),y=At(At({x1:u,y1:-1e5,x2:u,y2:1e5},s),{stroke:a?s?.stroke:"none"});return x("g",{className:"lf-snapline",children:[x(ee,At({},h)),x(ee,At({},y))]})},e=Ra([ot],e),e})(K),Ba=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Xa=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ya=(function(n){Ba(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){this.triggerToolRender()},e.prototype.componentDidUpdate=function(){this.triggerToolRender()},e.prototype.getTools=function(){var t=this.props,r=t.tool,o=t.graphModel,i=o.textEditElement,a=r.getTools(),s=a.map(function(l){return Wn(l,{textEditElement:i,graphModel:o,lf:r.instance})});return r.components=s,s},e.prototype.triggerToolRender=function(){var t=this.props,r=t.tool,o=t.graphModel,i=document.querySelector("#ToolOverlay_".concat(o.flowId)),a=r.getInstance();a.components.forEach(function(s){return s(a,i)}),a.components=[]},e.prototype.render=function(){var t=this.props.graphModel;return x("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(t.flowId),children:this.getTools()})},e=Xa([ot],e),e})(K),Pt=function(){return Pt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ha=function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},J=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},it=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},za=(function(){function n(e){this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=e}return n.prototype.getStyle=function(){return Bt({},this.graphModel.theme.snapline)},n.prototype.getCenterSnapLine=function(e,t){for(var r=e.x,o=e.y,i=!1,a=!1,s=0;s=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Zt=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ga={false:[-1/0,-1/0,1/0,1/0],true:[-1/0,-1/0,1/0,1/0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},Fa=(function(){function n(e,t){this.MINI_SCALE_SIZE=.2,this.MAX_SCALE_SIZE=16,this.SCALE_X=1,this.SKEW_Y=0,this.SKEW_X=0,this.SCALE_Y=1,this.TRANSLATE_X=0,this.TRANSLATE_Y=0,this.ZOOM_SIZE=.04,this.translateLimitMinX=-1/0,this.translateLimitMinY=-1/0,this.translateLimitMaxX=1/0,this.translateLimitMaxY=1/0,this.eventCenter=e;var r=t.stopMoveGraph,o=r===void 0?!1:r;this.updateTranslateLimits(o)}return n.prototype.setZoomMiniSize=function(e){this.MINI_SCALE_SIZE=e},n.prototype.setZoomMaxSize=function(e){this.MAX_SCALE_SIZE=e},n.prototype.HtmlPointToCanvasPoint=function(e){var t=Zt(e,2),r=t[0],o=t[1];return[(r-this.TRANSLATE_X)/this.SCALE_X,(o-this.TRANSLATE_Y)/this.SCALE_Y]},n.prototype.CanvasPointToHtmlPoint=function(e){var t=Zt(e,2),r=t[0],o=t[1];return[r*this.SCALE_X+this.TRANSLATE_X,o*this.SCALE_Y+this.TRANSLATE_Y]},n.prototype.moveCanvasPointByHtml=function(e,t,r){var o=Zt(e,2),i=o[0],a=o[1];return[i+t/this.SCALE_X,a+r/this.SCALE_Y]},n.prototype.fixDeltaXY=function(e,t){return[e/this.SCALE_X,t/this.SCALE_Y]},n.prototype.getTransformStyle=function(){var e=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(e,")")}},n.prototype.zoom=function(e,t){e===void 0&&(e=!1);var r=this.SCALE_X,o=this.SCALE_Y;return typeof e=="number"?(r=e,o=e):e?(r+=this.ZOOM_SIZE,o+=this.ZOOM_SIZE):(r-=this.ZOOM_SIZE,o-=this.ZOOM_SIZE),rthis.MAX_SCALE_SIZE?"".concat(this.SCALE_X*100,"%"):(t&&(this.TRANSLATE_X-=(r-this.SCALE_X)*t[0],this.TRANSLATE_Y-=(o-this.SCALE_Y)*t[1]),this.SCALE_X=r,this.SCALE_Y=o,this.emitGraphTransform("zoom"),"".concat(this.SCALE_X*100,"%"))},n.prototype.emitGraphTransform=function(e){this.eventCenter.emit(T.GRAPH_TRANSFORM,{type:e,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})},n.prototype.resetZoom=function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")},n.prototype.translate=function(e,t){this.TRANSLATE_X+e<=this.translateLimitMaxX&&this.TRANSLATE_X+e>=this.translateLimitMinX&&(this.TRANSLATE_X+=e),this.TRANSLATE_Y+t<=this.translateLimitMaxY&&this.TRANSLATE_Y+t>=this.translateLimitMinY&&(this.TRANSLATE_Y+=t),this.emitGraphTransform("translate")},n.prototype.focusOn=function(e,t,r,o){var i=Zt(this.CanvasPointToHtmlPoint([e,t]),2),a=i[0],s=i[1],l=Zt([r/2-a,o/2-s],2),d=l[0],u=l[1];this.TRANSLATE_X+=d,this.TRANSLATE_Y+=u,this.emitGraphTransform("focusOn")},n.prototype.updateTranslateLimits=function(e){var t;t=Zt(Array.isArray(e)&&e.length===4?e:Ga[e.toString()],4),this.translateLimitMinX=t[0],this.translateLimitMinY=t[1],this.translateLimitMaxX=t[2],this.translateLimitMaxY=t[3]},ut([E],n.prototype,"SCALE_X",void 0),ut([E],n.prototype,"SKEW_Y",void 0),ut([E],n.prototype,"SKEW_X",void 0),ut([E],n.prototype,"SCALE_Y",void 0),ut([E],n.prototype,"TRANSLATE_X",void 0),ut([E],n.prototype,"TRANSLATE_Y",void 0),ut([E],n.prototype,"ZOOM_SIZE",void 0),ut([m],n.prototype,"zoom",null),ut([m],n.prototype,"resetZoom",null),ut([m],n.prototype,"translate",null),ut([m],n.prototype,"focusOn",null),n})(),$a=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Ua=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Wa=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Za=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Ja=(function(n){Ka(e,n);function e(){var t=n.call(this)||this;return t.onDragStart=function(r){var o=r.event,i=t.props,a=i.anchorData,s=i.nodeModel,l=i.graphModel;l.selectNodeById(s.id),s.autoToFront&&l.toFront(s.id),l.eventCenter.emit(T.ANCHOR_DRAGSTART,{data:a,e:o,nodeModel:s}),t.setState({startX:a.x,startY:a.y,endX:a.x,endY:a.y})},t.onDragging=function(r){var o=r.event,i=t.props,a=i.graphModel,s=i.nodeModel,l=i.anchorData,d=a.transformModel,u=a.eventCenter,f=a.width,c=a.height,h=a.editConfigModel,y=h.autoExpand,p=h.stopMoveGraph;if(o){var g=o.clientX,v=o.clientY,_=a.getPointByClient({x:g,y:v}),M=_.domOverlayPosition,S=M.x,O=M.y,w=_.canvasOverlayPosition,A=w.x,C=w.y;t.t&&qe(t.t);var R=[],b=10;S<10?R=[b,0]:S+10>f?R=[-b,0]:O<10?R=[0,b]:O+10>c&&(R=[0,-b]),t.setState({endX:A,endY:C,dragging:!0}),t.moveAnchorEnd(A,C),R.length>0&&!p&&y&&(t.t=io(function(){var z=qa(R,2),I=z[0],U=z[1];d.translate(I,U);var Y=t.state,Z=Y.endX,lt=Y.endY;t.setState({endX:Z-I,endY:lt-U}),t.moveAnchorEnd(Z-I,lt-U)})),u.emit(T.ANCHOR_DRAG,{data:l,e:o,nodeModel:s})}},t.onDragEnd=function(r){var o=r.event;t.t&&qe(t.t);var i=t.checkEnd(o);t.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),t.sourceRuleResults.clear(),t.targetRuleResults.clear();var a=t.props,s=a.graphModel,l=a.nodeModel,d=a.anchorData;s.eventCenter.emit(T.ANCHOR_DRAGEND,{data:d,e:o,nodeModel:l,edgeModel:i??void 0})},t.checkEnd=function(r){var o,i=t.props,a=i.graphModel,s=i.nodeModel,l=i.anchorData,d=l.x,u=l.y,f=l.id,c=t.state,h=c.endX,y=c.endY,p=c.dragging,g=Ve({x:h,y},a);if(t.preTargetNode&&t.preTargetNode.state!==X.DEFAULT&&t.preTargetNode.setElementState(X.DEFAULT),!!p&&g&&g.node){var v=g.node,_=g.anchor.id,M="".concat(s.id,"_").concat(v.id,"_").concat(_,"_").concat(f),S=t.sourceRuleResults.get(M)||{},O=S.isAllPass,w=S.msg,A=t.targetRuleResults.get(M)||{},C=A.isAllPass,R=A.msg;if(O&&C){v.setElementState(X.DEFAULT);var b=a.getNodeModelById(g.node.id),z=(o=a.edgeGenerator)===null||o===void 0?void 0:o.call(a,s.getData(),b?.getData()),I=a.addEdge(_t(_t({},z),{sourceNodeId:s.id,sourceAnchorId:f,startPoint:{x:d,y:u},targetNodeId:g.node.id,targetAnchorId:g.anchor.id,endPoint:{x:g.anchor.x,y:g.anchor.y}})),U=t.props.anchorData;return a.eventCenter.emit(T.ANCHOR_DROP,{data:U,e:r,nodeModel:s,edgeModel:I}),I}var Y=v.getData();return a.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:Y,msg:R||w||"不允许添加连线"}),null}},t.sourceRuleResults=new Map,t.targetRuleResults=new Map,t.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},t.dragHandler=new Mt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.getAnchorShape=function(){var t=this.props,r=t.anchorData,o=t.style,i=t.node,a=i.getAnchorShape(r);if(a)return a;var s=r.x,l=r.y,d=_t(_t({},o),o?.hover);return x("g",{children:[x(re,_t({className:"lf-node-anchor-hover"},d,{x:s,y:l})),x(re,_t({className:"lf-node-anchor"},o,{x:s,y:l}))]})},Object.defineProperty(e.prototype,"customTrajectory",{get:function(){var t=this.props.graphModel.customTrajectory;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relateEdges",{get:function(){var t=this.props,r=t.graphModel,o=r.getAnchorIncomingEdge,i=r.getAnchorOutgoingEdge,a=t.anchorData.id;return{incomingEdgeList:o(a),outgoingEdgeList:i(a)}},enumerable:!1,configurable:!0}),e.prototype.moveAnchorEnd=function(t,r){var o,i,a=this.props,s=a.graphModel,l=a.nodeModel,d=a.anchorData,u=Ve({x:t,y:r},s);if(u){var f=u.node,c=u.anchor.id;if(this.preTargetNode&&this.preTargetNode!==u.node&&this.preTargetNode.setElementState(X.DEFAULT),d.id===c)return;this.preTargetNode=f;var h="".concat(l.id,"_").concat(f.id,"_").concat(c,"_").concat(d.id);if(!this.targetRuleResults.has(h)){var y=u.anchor,p=l.isAllowConnectedAsSource(f,d,y),g=f.isAllowConnectedAsTarget(l,d,y);this.sourceRuleResults.set(h,Ke(p)),this.targetRuleResults.set(h,Ke(g))}var v=((o=this.sourceRuleResults.get(h))!==null&&o!==void 0?o:{}).isAllPass,_=((i=this.targetRuleResults.get(h))!==null&&i!==void 0?i:{}).isAllPass;v&&_?f.setElementState(X.ALLOW_CONNECT):f.setElementState(X.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==X.DEFAULT&&this.preTargetNode.setElementState(X.DEFAULT)},e.prototype.isShowLine=function(){var t=this.state,r=t.startX,o=t.startY,i=t.endX,a=t.endY,s=vt(r,o,i,a);return s>10},e.prototype.render=function(){var t=this,r=this.state,o=r.startX,i=r.startY,a=r.endX,s=r.endY,l=this.props,d=l.anchorData.edgeAddable,u=l.edgeStyle;return x("g",{className:"lf-anchor",children:[x("g",{onMouseDown:function(f){d!==!1&&t.dragHandler.handleMouseDown(f)},children:this.getAnchorShape()}),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(_t({sourcePoint:{x:o,y:i},targetPoint:{x:a,y:s}},u)):x(ee,_t({x1:o,y1:i,x2:a,y2:s},u,{"pointer-events":"none"})))]})},e})(K),Qa=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Cr=function(){return Cr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},co=(function(n){es(e,n);function e(t){var r=n.call(this)||this;r.mouseDownHandler=function(i){var a=r.props,s=a.draggable,l=a.model,d=a.graphModel,u=d.editConfigModel.nodeTextDraggable;(s??u)&&(i.stopPropagation(),r.stepperDrag.model=l,r.stepperDrag.handleMouseDown(i))},r.onDragging=function(i){var a=i.deltaX,s=i.deltaY,l=r.props,d=l.model,u=l.graphModel.transformModel;if(a||s){var f=rs(u.fixDeltaXY(a,s),2),c=f[0],h=f[1];d.moveText(c,h)}},r.dbClickHandler=function(){var i=r.props,a=i.editable,s=i.graphModel.eventCenter,l=i.model;a&&l.setElementState(X.TEXT_EDIT),s.emit(T.TEXT_DBCLICK,{data:l.text,model:l})};var o=t.draggable;return r.stepperDrag=new Mt({onDragging:r.onDragging,step:1,eventType:"TEXT",isStopPropagation:o}),r}return e.prototype.getShape=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=r.text,s=a.value,l=a.x,d=a.y,u=a.editable,f=a.draggable,c={x:l,y:d,className:"",value:s},h=r.getTextStyle(),y=i.nodeTextDraggable||f;return x(ao,Lr({},c,h,{className:Do({"lf-element-text":u,"lf-text-draggable":!u&&y,"lf-text-disabled":!u&&!y}),model:r}))},e.prototype.render=function(){var t=this.props.model.text;if(t)return x("g",{onMouseDown:this.mouseDownHandler,onDblClick:this.dbClickHandler,children:this.getShape()})},e})(K),ns=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),ft=function(){return ft=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},os=(function(n){ns(e,n);function e(t){var r=n.call(this,t)||this;return r.setHoverOn=function(){r.setState({isHovered:!0})},r.setHoverOff=function(){r.setState({isHovered:!1})},r.state={isHovered:!1},r}return e.prototype.getBackground=function(){var t=this.state.isHovered,r=this.props.model,o=r.text,i=r.getTextStyle(),a=i.background||{};if(t&&i.hover&&i.hover.background&&(a=ft(ft({},a),i.hover.background)),o?.value&&a?.fill!=="transparent"){var s=i.fontSize,l=i.textWidth,d=i.lineHeight,u=i.overflowMode,f=a.wrapPadding,c=o?.value.split(/[\r\n]/g),h=c.length,y=o.x,p=o.y,g={};if(u==="autoWrap"&&l){var v=oo({rows:c,style:{fontSize:"".concat(s,"px"),width:"".concat(l,"px"),lineHeight:d,padding:f},rowsLength:h,className:"lf-get-text-height"});g=ft(ft({},a),{x:y,y:p,width:l,height:v})}else{var _=ii({rows:c,rowsLength:h,fontSize:s}),M=_.width,S=_.height;if(u==="ellipsis"&&(M=l,S=s+2),typeof a.wrapPadding=="string"){var O=a.wrapPadding.split(",").filter(function(nt){return nt.trim()}).map(function(nt){return parseFloat(nt.trim())});if(O.length>0&&O.length<=4){if(O.length===1){var w=He(O,1),A=w[0];O=[A,A,A,A]}else if(O.length===2){var C=He(O,2),R=C[0],b=C[1];O=[R,b,R,b]}else if(O.length===3){var z=He(O,3),I=z[0],b=z[1],U=z[2];O=[I,b,U,b]}var Y=He(O,4),Z=Y[0],lt=Y[1],jt=Y[2],Rt=Y[3];M+=lt+Rt,S+=Z+jt,y=y+(lt-Rt)/2,p=p+(jt-Z)/2}}g=ft(ft({},a),{x:y-1,y:p-1,width:M,height:S})}return x(Et,ft({},g))}return null},e.prototype.getShape=function(){var t=this.props.model,r=t.text,o=r.x,i=r.y,a=r.value;if(!a)return null;var s=t.getTextStyle(),l=ft({x:o,y:i,value:a,model:t,className:"lf-element-text"},s);return x("g",{className:"lf-line-text",onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getBackground(),x(ao,ft({},l))]})},e})(co),is=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Qe=function(){return Qe=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Lt=(function(n){is(e,n);function e(t){var r=n.call(this)||this;r.onDragStart=function(l){var d=l.event,u=r.props,f=u.model,c=u.graphModel;if(d){var h=c.getPointByClient({x:d.clientX,y:d.clientY}).canvasOverlayPosition,y=h.x,p=h.y;r.moveOffset={dx:f.x-y,dy:f.y-p}}},r.onDragging=function(l){var d,u,f,c,h=l.event,y=r.props,p=y.model,g=y.graphModel,v=g.editConfigModel,_=v.stopMoveGraph,M=v.autoExpand,S=v.snapGrid,O=g.transformModel,w=g.selectNodes,A=g.width,C=g.height,R=g.gridSize;p.isDragging=!0;var b=h,z=b.clientX,I=b.clientY,U=g.getPointByClient({x:z,y:I}).canvasOverlayPosition,Y=U.x,Z=U.y,lt=ke(O.CanvasPointToHtmlPoint([Y,Z]),2),jt=lt[0],Rt=lt[1];if(Y=Y+((u=(d=r.moveOffset)===null||d===void 0?void 0:d.dx)!==null&&u!==void 0?u:0),Z=Z+((c=(f=r.moveOffset)===null||f===void 0?void 0:f.dy)!==null&&c!==void 0?c:0),Y=te(Y,R,S),Z=te(Z,R,S),!A||!C){g.moveNode2Coordinate(p.id,Y,Z);return}var nt=jt<0||Rt<0||jt>A||Rt>C;if(!(M&&!_&&nt)){var yt=ke(O.CanvasPointToHtmlPoint([Y-p.width/2,Z-p.height/2]),2),ne=yt[0],ar=yt[1],Ae=ke(O.CanvasPointToHtmlPoint([Y+p.width/2,Z+p.height/2]),2),sr=Ae[0],po=Ae[1],Pe=Math.max(R,20),zt=[];ne<0?zt=[Pe,0]:sr>g.width?zt=[-Pe,0]:ar<0?zt=[0,Pe]:po>g.height&&(zt=[0,-Pe]),r.t&&qe(r.t),p.transform=new nr(-Y,-Z).rotate(p.rotate).translate(Y,Z).toString();var Te=w.map(function(De){return De.id});Te.indexOf(p.id)===-1&&(Te=[p.id]),zt.length>0&&!_&&M?r.t=io(function(){var De=ke(zt,2),Gt=De[0],Ft=De[1];O.translate(Gt??0,Ft??0);var ho=-(Gt??0)/O.SCALE_X,vo=-(Ft??0)/O.SCALE_X;g.moveNodes(Te,ho,vo)}):g.moveNodes(Te,Y-p.x,Z-p.y)}},r.onDragEnd=function(){r.t&&qe(r.t);var l=r.props.model;l.isDragging=!1},r.onMouseOut=function(l){Ro()&&r.setHoverOff(l)},r.handleMouseUp=function(){var l=r.props.model;r.mouseUpDrag=l.isDragging},r.handleClick=function(l){var d=r.mouseUpDrag===!1;if(r.startTime){var u=r.props,f=u.model,c=u.graphModel;if(d){var h=f.getData(),y=c.getPointByClient({x:l.clientX,y:l.clientY}),p={data:h,e:l,position:y,isSelected:!1,isMultiple:!1},g=l.button===2,v=l.detail===2;if(!g){var _=c.editConfigModel,M=ro(l,_);p.isMultiple=M,f.isSelected&&!v&&M?(p.isSelected=!1,f.setSelected(!1)):(c.selectNodeById(f.id,M),p.isSelected=!0,_.isSilentMode||r.toFront()),v?(_.nodeTextEdit&&f.text.editable&&_.textMode===st.TEXT&&(f.setSelected(!1),c.setElementStateById(f.id,X.TEXT_EDIT)),c.eventCenter.emit(T.NODE_DBCLICK,p)):(c.eventCenter.emit(T.ELEMENT_CLICK,p),c.eventCenter.emit(T.NODE_CLICK,p))}}}},r.handleContextMenu=function(l){l.preventDefault();var d=r.props,u=d.model,f=d.graphModel,c=f.editConfigModel,h=u.getData(),y=f.getPointByClient({x:l.clientX,y:l.clientY});f.setElementStateById(u.id,X.SHOW_MENU,y.domOverlayPosition),u.isSelected||f.selectNodeById(u.id),f.eventCenter.emit(T.NODE_CONTEXTMENU,{data:h,e:l,position:y}),c.isSilentMode||r.toFront()},r.handleMouseDown=function(l){var d=r.props,u=d.model,f=d.graphModel;r.startTime=new Date().getTime();var c=f.editConfigModel;c.adjustNodePosition&&u.draggable&&r.stepDrag&&r.stepDrag.handleMouseDown(l)},r.handleFocus=function(){var l=r.props,d=l.model,u=l.graphModel;u.eventCenter.emit(T.NODE_FOCUS,{data:d.getData()})},r.handleBlur=function(){var l=r.props,d=l.model,u=l.graphModel;u.eventCenter.emit(T.NODE_BLUR,{data:d.getData()})},r.setHoverOn=function(l){var d=r.props,u=d.model,f=d.graphModel;if(!u.isHovered){var c=u.getData();u.setHovered(!0),f.eventCenter.emit(T.NODE_MOUSEENTER,{data:c,e:l})}},r.setHoverOff=function(l){var d=r.props,u=d.model,f=d.graphModel,c=u.getData();u.isHovered&&(u.setHovered(!1),f.eventCenter.emit(T.NODE_MOUSELEAVE,{data:c,e:l}))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter,s=t.model;return r.stepDrag=new Mt({onDragStart:r.onDragStart,onDragging:r.onDragging,onDragEnd:r.onDragEnd,step:i,eventType:"NODE",isStopPropagation:!1,eventCenter:a,model:s}),r.modelDisposer=Po(function(){return r.props},function(l){l&&l.model&&r.stepDrag.setModel(l.model)}),r}return e.prototype.componentWillUnmount=function(){this.modelDisposer&&this.modelDisposer(),this.render.$mobx&&this.render.$mobx.dispose()},e.prototype.componentDidMount=function(){},e.prototype.componentDidUpdate=function(){},e.prototype.getAnchorShape=function(t){return null},e.prototype.getAnchors=function(){var t=this,r=this.props,o=r.model,i=r.graphModel,a=o.isSelected,s=o.isHitable,l=o.isDragging,d=o.isShowAnchor;return s&&(a||d)&&!l?St(o.anchors,function(u,f){var c=o.getAnchorLineStyle(u),h=o.getAnchorStyle(u);return x(Ja,{anchorData:u,node:t,style:h,edgeStyle:c,anchorIndex:f,nodeModel:o,graphModel:i,setHoverOff:t.setHoverOff})}):[]},e.prototype.getRotateControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowRotate,l=r.isSelected,d=r.isHitable,u=r.rotatable,f=r.isHovered,c=s&&u,h=r.getRotateControlStyle();if(!a&&d&&(l||f)&&c)return x(ts,{graphModel:o,nodeModel:r,eventCenter:o.eventCenter,style:h})},e.prototype.getResizeControl=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowResize,l=r.isSelected,d=r.isHitable,u=r.resizable,f=r.isHovered,c=s&&u,h=r.getResizeControlStyle();return!a&&d&&(l||f)&&c?x(Ti,{style:h,model:r,graphModel:o}):null},e.prototype.getText=function(){var t,r=this.props,o=r.model,i=r.graphModel,a=i.editConfigModel;if(a.nodeTextMode!==st.TEXT||o.state===X.TEXT_EDIT)return null;if(o.text){var s=!1;return a.nodeTextDraggable&&o.text.draggable&&(s=!0),x(co,{editable:a.nodeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getStateClassName=function(){var t=this.props.model,r=t.state,o=t.isDragging,i=t.isSelected,a="lf-node";switch(r){case X.ALLOW_CONNECT:a+=" lf-node-allow";break;case X.NOT_ALLOW_CONNECT:a+=" lf-node-not-allow";break;default:a+=" lf-node-default";break}return o&&(a+=" lf-dragging"),i&&(a+=" lf-node-selected"),a},e.prototype.toFront=function(){var t=this.props,r=t.model,o=t.graphModel;r.autoToFront&&o.toFront(r.id)},e.prototype.render=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.hideAnchors,s=i.adjustNodePosition,l=i.allowRotate,d=i.allowResize,u=o.gridSize,f=o.transformModel.SCALE_X,c=r.isHitable,h=r.draggable,y=r.transform,p=r.getOuterGAttributes(),g=p.className,v=g===void 0?"":g,_=as(p,["className"]),M=x("g",{className:"lf-node-content",children:[x("g",{transform:y,children:[this.getShape(),this.getText(),l&&this.getRotateControl(),d&&this.getResizeControl()]}),!a&&this.getAnchors()]}),S;return c?(s&&h&&this.stepDrag.setStep(u*f),S=x("g",Qe({className:"".concat(this.getStateClassName()," ").concat(v),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverOn,onMouseOver:this.setHoverOn,onMouseLeave:this.setHoverOff,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu,onFocus:this.handleFocus,onBlur:this.handleBlur},_,{children:M}))):S=x("g",Qe({className:"".concat(this.getStateClassName()," ").concat(v)},_,{children:M})),S},e.isObserved=!1,e})(K),ss=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),jr=function(){return jr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},vs=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},xt;(function(n){n.SOURCE="SOURCE",n.TARGET="TARGET"})(xt||(xt={}));var kn=(function(n){ys(e,n);function e(t){var r=n.call(this)||this;r.handleMouseDown=function(l){r.stepDrag&&r.stepDrag.handleMouseDown(l)},r.onDragStart=function(){var l=r.props,d=l.x,u=l.y,f=l.edgeModel,c=f.startPoint,h=f.endPoint,y=f.pointsList;r.oldEdge={startPoint:c,endPoint:h,pointsList:y},r.setState({endX:d,endY:u,dragging:!0})},r.onDragging=function(l){var d=l.deltaX,u=l.deltaY,f=r.state,c=f.endX,h=f.endY,y=r.props,p=y.graphModel,g=y.type,v=p.transformModel,_=p.editConfigModel,M=_s(v.moveCanvasPointByHtml([c,h],d,u),2),S=M[0],O=M[1];r.setState({endX:S,endY:O,dragging:!0});var w=r.props.edgeModel,A=Ve({x:c,y:h},p);if(A&&A.node&&r.isAllowAdjust(A).pass){var C=w.startPoint,R=w.endPoint,b=w.sourceNode,z=w.targetNode,I=g===xt.SOURCE?{startPoint:{x:A.anchor.x,y:A.anchor.y},endPoint:{x:R.x,y:R.y},sourceNode:A.node,targetNode:z}:{startPoint:{x:C.x,y:C.y},endPoint:{x:A.anchor.x,y:A.anchor.y},sourceNode:b,targetNode:A.node};w.updateAfterAdjustStartAndEnd(I)}else g===xt.SOURCE?w.updateStartPoint({x:S,y:O}):w.updateEndPoint({x:S,y:O});w.text.value&&_.adjustEdge&&w.setText(Object.assign({},w.text,w.textPosition))},r.onDragEnd=function(l){var d,u,f,c=l.event;try{r.setState({dragging:!1});var h=r.props,y=h.graphModel,p=h.edgeModel,g=h.type,v=r.state,_=v.endX,M=v.endY,S=v.dragging,O=Ve({x:_,y:M},y);if(!S)return;var w=!1,A=void 0;if(O&&O.node){var C=r.isAllowAdjust(O),R=C.pass,b=C.msg,z=C.newTargetNode;if(R){var I=p.getData(),U=I.text,Y=I.sourceAnchorId,Z=Y===void 0?"":Y,lt=I.targetAnchorId,jt=lt===void 0?"":lt,Rt=gs(I,["text","sourceAnchorId","targetAnchorId"]);if(A=ct(ct({sourceAnchorId:Z,targetAnchorId:jt},Rt),{text:U?.value||""}),g===xt.SOURCE){var nt=y.getNodeModelById(O.node.id),yt=y.getNodeModelById(p.targetNodeId),ne=(d=y.edgeGenerator)===null||d===void 0?void 0:d.call(y,nt?.getData(),yt?.getData(),A);A=ct(ct({},ne),{sourceNodeId:O.node.id,sourceAnchorId:O.anchor.id,startPoint:{x:O.anchor.x,y:O.anchor.y},targetNodeId:p.targetNodeId,endPoint:ct({},p.endPoint)}),p.sourceNodeId===O.node.id&&p.sourceAnchorId===O.anchor.id&&(w=!0)}else if(g===xt.TARGET){var nt=y.getNodeModelById(p.sourceNodeId),yt=y.getNodeModelById(O.node.id),ne=(u=y.edgeGenerator)===null||u===void 0?void 0:u.call(y,nt?.getData(),yt?.getData(),A);A=ct(ct({},ne),{sourceNodeId:p.sourceNodeId,startPoint:ct({},p.startPoint),targetNodeId:O.node.id,targetAnchorId:O.anchor.id,endPoint:{x:O.anchor.x,y:O.anchor.y}}),p.targetNodeId===O.node.id&&p.targetAnchorId===O.anchor.id&&(w=!0)}}else{w=!0;var ar=z.getData();y.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:ar,msg:b})}}else w=!0;if(w)r.recoveryEdge();else{var Ae=p.getData();y.deleteEdgeById(p.id);var sr=y.addEdge(ct({},A));y.eventCenter.emit(T.EDGE_EXCHANGE_NODE,{data:{newEdge:sr.getData(),oldEdge:Ae}})}(f=r.preTargetNode)===null||f===void 0||f.setElementState(X.DEFAULT)}finally{var y=r.props.graphModel;y.eventCenter.emit(T.ADJUST_POINT_DRAGEND,{e:c,data:r.stepDragData})}},r.recoveryEdge=function(){var l=r.props.edgeModel,d=r.oldEdge,u=d.startPoint,f=d.endPoint,c=d.pointsList;l.updateStartPoint(u),l.updateEndPoint(f),l.modelType!==j.LINE_EDGE&&(l.pointsList=c??[],l.initPoints())},r.getAdjustPointStyle=function(){var l=r.props.graphModel.theme,d=l.edgeAdjust;return d},r.state={dragging:!1,endX:0,endY:0},r.targetRuleResults=new Map,r.sourceRuleResults=new Map;var o=t.type,i=t.edgeModel,a=t.graphModel,s=a.eventCenter;return r.stepDragData={type:o,edgeData:i.getData()},r.stepDrag=new Mt({onDragStart:r.onDragStart,onDragging:r.onDragging,onDragEnd:r.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:s,data:r.stepDragData}),r}return e.prototype.isAllowAdjust=function(t){var r=this.props,o=r.edgeModel,i=o.id,a=o.sourceNode,s=o.targetNode,l=o.sourceAnchorId,d=o.targetAnchorId,u=r.type,f,c,h,y;if(u===xt.SOURCE?(f=t.node,c=s,h=t.anchor,y=s.getAnchorInfo(d)):(f=a,c=t.node,y=t.anchor,h=a.getAnchorInfo(l)),this.preTargetNode&&this.preTargetNode!==t.node&&this.preTargetNode.setElementState(X.DEFAULT),this.preTargetNode=t.node,y.id===h.id)return{pass:!1,msg:"",newTargetNode:c};var p="".concat(f.id,"_").concat(c.id,"_").concat(h.id,"_").concat(y.id);if(!this.targetRuleResults.has(p)){var g=f.isAllowConnectedAsSource(c,h,y,i),v=c.isAllowConnectedAsTarget(f,h,y,i);this.sourceRuleResults.set(p,Ke(g)),this.targetRuleResults.set(p,Ke(v))}var _=this.sourceRuleResults.get(p),M=_.isAllPass,S=_.msg,O=this.targetRuleResults.get(p),w=O.isAllPass,A=O.msg,C=M&&w?X.ALLOW_CONNECT:X.NOT_ALLOW_CONNECT;return u===xt.SOURCE?f.setElementState(C):c.setElementState(C),{pass:M&&w,msg:A||S,newTargetNode:c}},e.prototype.render=function(){var t=this.props,r=t.x,o=t.y,i=t.getAdjustPointShape,a=t.edgeModel,s=this.state.dragging;return x("g",{pointerEvents:s?"none":"",onMouseDown:this.handleMouseDown,children:s?"":i(r,o,a)})},e})(K),ms=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Yr=function(){return Yr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},ir=(function(n){xs(e,n);function e(){var t=n.call(this)||this;return t.textRef=Fr(),t.handleHover=function(r,o){var i=t.props,a=i.model,s=i.graphModel.eventCenter;a.setHovered(r);var l=r?T.EDGE_MOUSEENTER:T.EDGE_MOUSELEAVE,d=a.getData();s.emit(l,{data:d,e:o})},t.setHoverOn=function(r){var o=t.props.model.isHovered;o||(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOn(),t.handleHover(!0,r))},t.setHoverOff=function(r){var o=t.props.model.isHovered;o&&(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOff(),t.handleHover(!1,r))},t.handleContextMenu=function(r){r.preventDefault(),t.contextMenuTime=new Date().getTime(),t.clickTimer&&clearTimeout(t.clickTimer);var o=t.props,i=o.model,a=o.graphModel,s=a.editConfigModel,l=a.getPointByClient({x:r.clientX,y:r.clientY});a.setElementStateById(i.id,X.SHOW_MENU,l.domOverlayPosition),s.isSilentMode||t.toFront(),i.isSelected||a.selectEdgeById(i.id);var d=i?.getData();a.eventCenter.emit(T.EDGE_CONTEXTMENU,{data:d,e:r,position:l})},t.handleMouseDown=function(r){r.stopPropagation(),t.startTime=new Date().getTime()},t.handleMouseUp=function(){var r=t.props.model;t.mouseUpDrag=r.isDragging},t.handleClick=function(r){if(t.startTime&&!t.mouseUpDrag){var o=r.button===2;if(!o){var i=r.detail===2,a=t.props,s=a.model,l=a.graphModel,d=s?.getData(),u=l.getPointByClient({x:r.clientX,y:r.clientY});if(i){var f=l.editConfigModel,c=l.textEditElement,h=s.id,y=s.text,p=s.modelType;if(c&&c.id===h&&l.setElementStateById(h,X.DEFAULT),f.edgeTextEdit&&y.editable&&(s.setSelected(!1),l.setElementStateById(h,X.TEXT_EDIT)),p===j.POLYLINE_EDGE){var g=s,v=l.getPointByClient({x:r.x,y:r.y}).canvasOverlayPosition,_=v.x,M=v.y;g.dbClickPosition=eo({x:_,y:M},g.points)}l.eventCenter.emit(T.EDGE_DBCLICK,{data:d,e:r,position:u})}else l.eventCenter.emit(T.ELEMENT_CLICK,{data:d,e:r,position:u}),l.eventCenter.emit(T.EDGE_CLICK,{data:d,e:r,position:u});var S=l.editConfigModel;l.selectEdgeById(s.id,ro(r,S)),S.isSilentMode||t.toFront()}}},t.handleFocus=function(){var r=t.props,o=r.model,i=r.graphModel;i.eventCenter.emit(T.EDGE_FOCUS,{data:o.getData()})},t.handleBlur=function(){var r=t.props,o=r.model,i=r.graphModel;i.eventCenter.emit(T.EDGE_BLUR,{data:o.getData()})},t}return e.prototype.getShape=function(){return x("g",{children:this.getEdge()})},e.prototype.getTextStyle=function(){},e.prototype.getText=function(){var t,r=this.props,o=r.model,i=r.graphModel,a=i.editConfigModel;if(a.edgeTextMode!==st.TEXT||o.state===X.TEXT_EDIT)return null;if(o.text){var s=!1;return a.edgeTextDraggable&&o.text.draggable&&(s=!0),x(os,{ref:this.textRef,editable:a.edgeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getArrowInfo=function(){var t=this.props.model,r=t.startPoint,o=t.endPoint,i=t.isSelected,a=this.state.hover;return{start:r,end:o,hover:a,isSelected:i}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.startPoint,o=t.endPoint;return[r,o]},e.prototype.getArrowStyle=function(){return null},e.prototype.getArrow=function(){var t=this.props.model,r=t.id,o=t.getArrowStyle(),i=o.refY,a=i===void 0?0:i,s=o.refX,l=s===void 0?2:s,d=Es(this.getLastTwoPoints(),2),u=d[0],f=d[1],c="auto";return u!==null&&f!==null&&(c=$i(Fi({x:f.x-u.x,y:f.y-u.y}))),x("g",{children:x("defs",{children:[x("marker",{id:"marker-start-".concat(r),refX:-l,refY:a,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse",children:this.getStartArrow()}),x("marker",{id:"marker-end-".concat(r),refX:l,refY:a,overflow:"visible",orient:c,markerUnits:"userSpaceOnUse",children:this.getEndArrow()})]})})},e.prototype.getStartArrow=function(){return x("path",{})},e.prototype.getEndArrow=function(){var t=this.props.model,r=t.getArrowStyle(),o=r.stroke,i=r.strokeWidth,a=r.offset,s=r.verticalLength;return x("path",{stroke:o,fill:o,strokeWidth:i,transform:"rotate(180)",d:"M 0 0 L ".concat(a," -").concat(s," L ").concat(a," ").concat(s," Z")})},e.prototype.getAdjustPointShape=function(t,r,o){var i=o.getAdjustPointStyle();return x(re,ge({className:"lf-edge-adjust-point"},i,{x:t,y:r}))},e.prototype.getAdjustPoints=function(){var t=this.props,r=t.model,o=t.graphModel,i=o.editConfigModel,a=i.adjustEdgeStartAndEnd,s=i.adjustEdgeStart,l=i.adjustEdgeEnd,d=r.getAdjustStart(),u=r.getAdjustEnd();return x("g",{children:[a&&s&&x(kn,ge({type:xt.SOURCE},d,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:r,graphModel:o})),a&&l&&x(kn,ge({type:xt.TARGET},u,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:r,graphModel:o}))]})},e.prototype.getAnimation=function(){},e.prototype.getAppendWidth=function(){return x("g",{})},e.prototype.getAppend=function(){return x("g",{className:"lf-edge-append",children:this.getAppendWidth()})},e.prototype.getEdge=function(){return null},e.prototype.toFront=function(){var t=this.props,r=t.graphModel,o=t.model;r.toFront(o.id)},e.prototype.render=function(){var t=this.props.model,r=t.isSelected,o=t.isHitable,i=t.isShowAdjustPoint;return x("g",{children:[x("g",{className:["lf-edge",!o&&"pointer-none",r&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverOn,onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,onFocus:this.handleFocus,onBlur:this.handleBlur,children:[this.getShape(),this.getAppend(),this.getText(),this.getArrow()]}),i&&r?this.getAdjustPoints():""]})},e.isObserved=!1,e})(K),Ms=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),Hr=function(){return Hr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},zn=(function(n){Ms(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getEdge=function(){var t=this.props.model,r=t.getEdgeStyle(),o=t,i=o.path,a=o.isAnimation,s=o.arrowConfig,l=t.getEdgeAnimationStyle(),d=l.strokeDasharray,u=l.stroke,f=l.strokeDashoffset,c=l.animationName,h=l.animationDuration,y=l.animationIterationCount,p=l.animationTimingFunction,g=l.animationDirection;return x(Oe,Hr({d:i},r,s,a?{strokeDasharray:d,stroke:u,style:{strokeDashoffset:f,animationName:c,animationDuration:h,animationIterationCount:y,animationTimingFunction:p,animationDirection:g}}:{}))},e.prototype.getAppendWidth=function(){var t=this.props.model.path;return x(Oe,{d:t,strokeWidth:10,stroke:"transparent",fill:"none"})},e.prototype.getArrowInfo=function(){var t=this.props.model,r=this.state.hover,o=t.isSelected,i=t.getArrowStyle().offset,a=t.pointsList.map(function(f){return{x:f.x,y:f.y}}),s=Os(un(a,i),2),l=s[0],d=s[1],u={start:l,end:d,hover:r,isSelected:o};return u},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.getArrowStyle().offset,o=t.pointsList.map(function(i){return{x:i.x,y:i.y}});return un(o,r)},e})(ir),Ss=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),kr=function(){return kr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Fn=(function(n){ws(e,n);function e(){var t=n.call(this)||this;return t.onDragStart=function(){var r=t.props.model;r.dragAppendStart(),t.isShowAdjustPointTemp=r.isShowAdjustPoint,r.isShowAdjustPoint=!1},t.onDragging=function(r){var o=r.deltaX,i=r.deltaY,a=t.props,s=a.model,l=a.graphModel;t.isDragging=!0;var d=l.transformModel,u=l.editConfigModel,f=As(d.fixDeltaXY(o,i),2),c=f[0],h=f[1],y=s,p=u.adjustEdgeMiddle;p?t.appendInfo=y.dragAppendSimple(t.appendInfo,{x:c,y:h}):t.appendInfo=y.dragAppend(t.appendInfo,{x:c,y:h})},t.onDragEnd=function(){var r,o=t.props,i=o.model,a=o.graphModel.eventCenter,s=i;s.dragAppendEnd(),t.isDragging=!1,s.isShowAdjustPoint=(r=t.isShowAdjustPointTemp)!==null&&r!==void 0?r:!1,t.appendInfo=void 0,a.emit(T.EDGE_ADJUST,{data:s.getData()})},t.beforeDragStart=function(r,o){o.draggable&&t.drag.handleMouseDown(r),t.appendInfo=o},t.drag=new Mt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd,isStopPropagation:!1}),t}return e.prototype.getEdge=function(){var t=this.props.model,r=t.points,o=t.isAnimation,i=t.arrowConfig,a=t.getEdgeStyle(),s=t.getEdgeAnimationStyle(),l=s.strokeDasharray,d=s.stroke,u=s.strokeDashoffset,f=s.animationName,c=s.animationDuration,h=s.animationIterationCount,y=s.animationTimingFunction,p=s.animationDirection;return x(Si,Xt({points:r},a,i,o?{strokeDasharray:l,stroke:d,style:{strokeDashoffset:u,animationName:f,animationDuration:c,animationIterationCount:h,animationTimingFunction:y,animationDirection:p}}:{}))},e.prototype.getArrowInfo=function(){var t=this.props.model,r=t.points,o=t.isSelected,i=this.state.hover,a=kt(r),s=a[0],l=a[0];return a.length>=2&&(s=a[a.length-2],l=a[a.length-1]),{start:s,end:l,hover:i,isSelected:o}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,r=t.points,o=kt(r),i=o[0],a=o[0];return o.length>=2&&(i=o[o.length-2],a=o[o.length-1]),[i,a]},e.prototype.getAppendAttributes=function(t){var r=t.start,o=t.end,i;if(r.x===o.x&&r.y===o.y)i="";else{var a={start:r,end:o,offset:10,verticalLength:5},s=xe(Xt(Xt({},a),{type:"start"})),l=xe(Xt(Xt({},a),{type:"end"}));i="M".concat(s.leftX," ").concat(s.leftY,`
+ L`).concat(s.rightX," ").concat(s.rightY,`
+ L`).concat(l.rightX," ").concat(l.rightY,`
+ L`).concat(l.leftX," ").concat(l.leftY," z")}return{d:i,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},e.prototype.getAppendShape=function(t){var r=this.getAppendAttributes(t),o=r.d,i=r.strokeWidth,a=r.fill,s=r.strokeDasharray,l=r.stroke;return x(Oe,{d:o,fill:a,strokeWidth:i,stroke:l,strokeDasharray:s})},e.prototype.getAppendWidth=function(){for(var t=this,r=this.props,o=r.model,i=r.graphModel,a=o.pointsList,s=o.draggable,l=[],d=a.length,u=function(h){var y="lf-polyline-append",p={start:{x:a[h].x,y:a[h].y},end:{x:a[h+1].x,y:a[h+1].y},startIndex:h,endIndex:h+1,direction:G.HORIZONTAL,draggable:!0},g=x("g",{className:y,children:f.getAppendShape(p)}),v=i.editConfigModel,_=v.adjustEdge,M=v.adjustEdgeMiddle;if(_&&s){var S=p.startIndex,O=p.endIndex,w=M&&(S===0||O===d-1);p.draggable=!w,p.start.x===p.end.x?(p.draggable&&(y+="-ew-resize"),p.direction=G.VERTICAL):p.start.y===p.end.y&&(p.draggable&&(y+="-ns-resize"),p.direction=G.HORIZONTAL),g=x("g",{className:f.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(A){return t.beforeDragStart(A,p)},children:x("g",{className:y,children:f.getAppendShape(p)})})}l.push(g)},f=this,c=0;c=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},bs=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Cs=(function(n){Ds(e,n);function e(t){var r=n.call(this,t)||this;return r.ref=Fr(),r.__prevText={type:"",text:"",id:""},r.keyupHandler=function(o){var i=r.props.graphModel.textEditElement;o.key==="Enter"&&o.altKey&&i?.setElementState(X.DEFAULT)},r.inputHandler=function(o){var i=o.target.innerText,a=r.props.graphModel.textEditElement;a&&(r.__prevText={type:a.type,text:i.replace(/(\r\n)+$|(\n)+$/,""),id:a.id})},r.keydownHandler=function(o){o.stopPropagation()},r.state={style:{left:0,top:0}},r}return e.getDerivedStateFromProps=function(t){var r,o=t.textEditElement,i=t.graphModel,a=i.transformModel,s=i.theme,l=s.inputText,d;if(o){if(!(!((r=o.text)===null||r===void 0)&&r.value)&&o.BaseType===$.EDGE){var u=o.text,f=o.textPosition,c=f.x,h=f.y;u.x=c,u.y=h,o.setText(u)}var y={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(o.BaseType===$.EDGE){var p=s.edgeText,g=p.overflowMode,v=p.lineHeight,_=p.wrapPadding,M=p.textWidth;M&&g==="autoWrap"&&(d=Ot(Ot({},y),{width:M,minWidth:M,lineHeight:v,padding:_}))}else if(o.BaseType===$.NODE){var S=s.nodeText,g=S.overflowMode,v=S.lineHeight,_=S.wrapPadding,M=S.textWidth,O=o.width,w=o.modelType,A=o.textWidth,C=A||M||O;(w!==j.TEXT_NODE&&g==="autoWrap"||w===j.TEXT_NODE&&M)&&(d=Ot(Ot({},y),{width:C,minWidth:C,lineHeight:v,padding:_}))}var R=o.text,b=R.x,z=R.y,I=bs(a.CanvasPointToHtmlPoint([b,z]),2),U=I[0],Y=I[1];return{style:Ot(Ot({left:U,top:Y},d),l)}}return null},e.prototype.componentDidUpdate=function(){var t=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var r=this.__prevText,o=r.text,i=r.id;t.updateText(i,o),t.eventCenter.emit(T.TEXT_UPDATE,{data:Ot({},this.__prevText)}),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}},e.prototype.placeCaretAtEnd=function(t){if(window.getSelection!==void 0&&document.createRange!==void 0){var r=document.createRange();r.selectNodeContents(t),r.collapse(!1);var o=window.getSelection();o?.removeAllRanges(),o?.addRange(r)}},e.prototype.render=function(){var t,r=this.props.graphModel.textEditElement,o=this.state.style;return r?x("div",{contentEditable:!0,className:"lf-text-input",style:o,ref:this.ref,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler,children:(t=r.text)===null||t===void 0?void 0:t.value},r.id):null},e.toolName="text-edit-tool",e=Ns([ot],e),e})(K),Ls=(function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})(),js=function(n,e,t,r){var o=arguments.length,i=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},hr=function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},Rs=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r=0;s--)(a=n[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Bs=[Cs,Is],Xs=(function(){function n(e){var t=this;this.toolMap=new Map,this.disabledToolMap=new Map,this.instance=e,W(Bs,function(i){t.isDisabled(i.toolName)||t.registerTool(i.toolName,i)});var r=e.graphModel,o=r.eventCenter;o.on("".concat(T.GRAPH_TRANSFORM,",").concat(T.NODE_CLICK,",").concat(T.BLANK_CLICK," "),function(){var i,a=r.textEditElement,s=r.editConfigModel,l=s.edgeTextEdit,d=s.nodeTextEdit;(l||d)&&a&&((i=r.textEditElement)===null||i===void 0||i.setElementState(X.DEFAULT))})}return n.prototype.isDisabled=function(e){var t;return((t=this.instance.options.disabledTools)===null||t===void 0?void 0:t.indexOf(e))!==-1},n.prototype.registerTool=function(e,t){this.toolMap.set(e,t)},n.prototype.disableTool=function(e){var t=this.toolMap.get(e);if(t)return this.disabledToolMap.set(e,t),this.toolMap.delete(e),!0;throw new Error("禁用失败,不存在名为 ${tool} 的工具")},n.prototype.enableTool=function(e){var t=this.disabledToolMap.get(e);if(t)return this.toolMap.set(e,t),this.disabledToolMap.delete(e),!0;throw new Error("不存在名为 ${tool} 的工具")},n.prototype.getTools=function(){return Array.from(this.toolMap.values())},n.prototype.getInstance=function(){return this.instance},n.prototype.destroy=function(){this.toolMap.clear(),this.disabledToolMap.clear()},vr([E],n.prototype,"toolMap",void 0),vr([m],n.prototype,"disableTool",null),vr([m],n.prototype,"enableTool",null),n})(),zr=function(){return zr=Object.assign||function(n){for(var e,t=1,r=arguments.length;tthis.maxSize&&this.undos.shift())},n.prototype.undoAble=function(){return this.undos.length>1},n.prototype.undo=function(){if(this.undoAble()){var e=this.undos.pop();this.redos.push(e);var t=this.undos.pop();return this.curData=L(t),t}},n.prototype.redoAble=function(){return this.redos.length>0},n.prototype.redo=function(){if(this.redoAble()){var e=this.redos.pop();return this.curData=L(e),e}},n.prototype.watch=function(e){var t=this;this.stopWatch&&this.stopWatch(),this.undos.push(e.modelToGraphData()),this.stopWatch=bo(e,Vn(function(){var r=e.modelToHistoryData();r&&t.add(zr({},r))},this.waitTime))},n.prototype.destroy=function(){this.undos=[],this.redos=[],this.curData=null,this.stopWatch&&this.stopWatch()},n})();var gt=null;function $n(n,e){return n.x+=e,n.y+=e,Kn(n.text)||(n.text.x+=e,n.text.y+=e),n}function Un(n,e){return n.startPoint&&(n.startPoint.x+=e,n.startPoint.y+=e),n.endPoint&&(n.endPoint.x+=e,n.endPoint.y+=e),n.pointsList&&n.pointsList.length>0&&n.pointsList.forEach(function(t){t.x+=e,t.y+=e}),Kn(n.text)||(n.text.x+=e,n.text.y+=e),n}var Vt=40,ze=40;function Hs(n,e){var t=n.keyboard,r=t.options.keyboard;t.on(["cmd + c","ctrl + c"],function(){if(ze=Vt,!r?.enabled||e.textEditElement)return!0;var o=n.options.guards,i=e.getSelectElements(!1),a=o&&o.beforeClone?o.beforeClone(i):!0;return!a||i.nodes.length===0&&i.edges.length===0?(gt=null,!0):(gt=i,gt.nodes.forEach(function(s){return $n(s,Vt)}),gt.edges.forEach(function(s){return Un(s,Vt)}),!1)}),t.on(["cmd + v","ctrl + v"],function(){if(!r?.enabled||e.textEditElement)return!0;if(gt&&(gt.nodes||gt.edges)){n.clearSelectElements();var o=n.addElements(gt,ze);if(!o)return!0;o.nodes.forEach(function(i){return n.selectElementById(i.id,!0)}),o.edges.forEach(function(i){return n.selectElementById(i.id,!0)}),gt.nodes.forEach(function(i){return $n(i,Vt)}),gt.edges.forEach(function(i){return Un(i,Vt)}),ze=ze+Vt}return!1}),t.on(["cmd + z","ctrl + z"],function(){return!r?.enabled||e.textEditElement?!0:(n.undo(),!1)}),t.on(["cmd + y","ctrl + y"],function(){return!r?.enabled||e.textEditElement?!0:(n.redo(),!1)}),t.on(["backspace"],function(){if(!r?.enabled||e.textEditElement)return!0;var o=e.getSelectElements(!0);return n.clearSelectElements(),o.edges.forEach(function(i){return i.id&&n.deleteEdge(i.id)}),o.nodes.forEach(function(i){return i.id&&n.deleteNode(i.id)}),!1})}var ks=(function(){function n(e){e.keyboard||(e.keyboard={enabled:!1}),this.options=e;var t=e.lf;this.target=t.container,this.mousetrap=new No(this.target),e.keyboard.enabled&&!t.options.isSilentMode&&this.enable(!0)}return n.prototype.initShortcuts=function(){var e=this,t,r=((t=this.options.keyboard)!==null&&t!==void 0?t:{}).shortcuts;if(r)if(Oo(r))r.forEach(function(s){var l=s.keys,d=s.callback,u=s.action;return e.on(l,d,u)});else{var o=r.keys,i=r.callback,a=r.action;this.on(o,i,a)}},n.prototype.on=function(e,t,r){this.mousetrap.bind(this.getKeys(e),t,r)},Object.defineProperty(n.prototype,"disabled",{get:function(){var e,t;return((t=(e=this.options)===null||e===void 0?void 0:e.keyboard)===null||t===void 0?void 0:t.enabled)!==!0},enumerable:!1,configurable:!0}),n.prototype.off=function(e,t){this.mousetrap.unbind(this.getKeys(e),t)},n.prototype.enable=function(e){(this.disabled||e)&&(this.options.keyboard&&(this.options.keyboard.enabled=!0),this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))},n.prototype.disable=function(){this.disabled||(this.options.keyboard&&(this.options.keyboard.enabled=!1),this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))},n.prototype.destroy=function(){this.mousetrap.reset()},n.prototype.getKeys=function(e){var t=this;return(Array.isArray(e)?e:[e]).map(function(r){return t.formatKey(r)})},n.prototype.formatKey=function(e){return e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")},n})(),Tt=function(){return Tt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return i},yr=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,i;r0&&--this._on===0&&(v=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(V){let e=V;for(V=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;W;){let e=W;for(W=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function xt(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function yt(t){let e,s=t.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),gt(n),te(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=s}function ct(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Tt(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Tt(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===z)||(t.globalVersion=z,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!ct(t))))return;t.flags|=2;const e=t.dep,s=h,n=R;h=t,R=!0;try{xt(t);const i=t.fn(t._value);(e.version===0||I(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{h=s,R=n,yt(t),t.flags&=-3}}function gt(t,e=!1){const{dep:s,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)gt(r,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function te(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let R=!0;const Dt=[];function It(){Dt.push(R),R=!1}function Et(){const t=Dt.pop();R=t===void 0?!0:t}function bt(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=h;h=void 0;try{e()}finally{h=s}}}let z=0;class ee{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class et{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!h||!R||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new ee(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,Mt(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=n)}return s}trigger(e){this.version++,z++,this.notify(e)}notify(e){_t();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{vt()}}}function Mt(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)Mt(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const k=new WeakMap,P=Symbol(""),lt=Symbol(""),B=Symbol("");function w(t,e,s){if(R&&h){let n=k.get(t);n||k.set(t,n=new Map);let i=n.get(s);i||(n.set(s,i=new et),i.map=n,i.key=s),i.track()}}function T(t,e,s,n,i,r){const o=k.get(t);if(!o){z++;return}const a=f=>{f&&f.trigger()};if(_t(),e==="clear")o.forEach(a);else{const f=y(t),d=f&&dt(s);if(f&&s==="length"){const c=Number(n);o.forEach((p,_)=>{(_==="length"||_===B||!F(_)&&_>=c)&&a(p)})}else switch((s!==void 0||o.has(void 0))&&a(o.get(s)),d&&a(o.get(B)),e){case"add":f?d&&a(o.get("length")):(a(o.get(P)),C(t)&&a(o.get(lt)));break;case"delete":f||(a(o.get(P)),C(t)&&a(o.get(lt)));break;case"set":C(t)&&a(o.get(P));break}}vt()}function se(t,e){const s=k.get(t);return s&&s.get(e)}function j(t){const e=u(t);return e===t?e:(w(e,"iterate",B),S(t)?e:e.map(g))}function wt(t){return w(t=u(t),"iterate",B),t}const ie={__proto__:null,[Symbol.iterator](){return at(this,Symbol.iterator,g)},concat(...t){return j(this).concat(...t.map(e=>y(e)?j(e):e))},entries(){return at(this,"entries",t=>(t[1]=g(t[1]),t))},every(t,e){return x(this,"every",t,e,void 0,arguments)},filter(t,e){return x(this,"filter",t,e,s=>s.map(g),arguments)},find(t,e){return x(this,"find",t,e,g,arguments)},findIndex(t,e){return x(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return x(this,"findLast",t,e,g,arguments)},findLastIndex(t,e){return x(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return x(this,"forEach",t,e,void 0,arguments)},includes(...t){return ft(this,"includes",t)},indexOf(...t){return ft(this,"indexOf",t)},join(t){return j(this).join(t)},lastIndexOf(...t){return ft(this,"lastIndexOf",t)},map(t,e){return x(this,"map",t,e,void 0,arguments)},pop(){return H(this,"pop")},push(...t){return H(this,"push",t)},reduce(t,...e){return Rt(this,"reduce",t,e)},reduceRight(t,...e){return Rt(this,"reduceRight",t,e)},shift(){return H(this,"shift")},some(t,e){return x(this,"some",t,e,void 0,arguments)},splice(...t){return H(this,"splice",t)},toReversed(){return j(this).toReversed()},toSorted(t){return j(this).toSorted(t)},toSpliced(...t){return j(this).toSpliced(...t)},unshift(...t){return H(this,"unshift",t)},values(){return at(this,"values",g)}};function at(t,e,s){const n=wt(t),i=n[e]();return n!==t&&!S(t)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=s(r.value)),r}),i}const ne=Array.prototype;function x(t,e,s,n,i,r){const o=wt(t),a=o!==t&&!S(t),f=o[e];if(f!==ne[e]){const p=f.apply(t,r);return a?g(p):p}let d=s;o!==t&&(a?d=function(p,_){return s.call(this,g(p),_,t)}:s.length>2&&(d=function(p,_){return s.call(this,p,_,t)}));const c=f.call(o,d,n);return a&&i?i(c):c}function Rt(t,e,s,n){const i=wt(t);let r=s;return i!==t&&(S(t)?s.length>3&&(r=function(o,a,f){return s.call(this,o,a,f,t)}):r=function(o,a,f){return s.call(this,o,g(a),f,t)}),i[e](r,...n)}function ft(t,e,s){const n=u(t);w(n,"iterate",B);const i=n[e](...s);return(i===-1||i===!1)&&be(s[0])?(s[0]=u(s[0]),n[e](...s)):i}function H(t,e,s=[]){It(),_t();const n=u(t)[e].apply(t,s);return vt(),Et(),n}const re=Jt("__proto__,__v_isRef,__isVue"),Pt=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(F));function oe(t){F(t)||(t=String(t));const e=u(this);return w(e,"has",t),e.hasOwnProperty(t)}class Ot{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){if(s==="__v_skip")return e.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?Ct:Ht:r?Kt:jt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=y(e);if(!i){let f;if(o&&(f=ie[s]))return f;if(s==="hasOwnProperty")return oe}const a=Reflect.get(e,s,b(e)?e:n);if((F(s)?Pt.has(s):re(s))||(i||w(e,"get",s),r))return a;if(b(a)){const f=o&&dt(s)?a:a.value;return i&&O(f)?ht(f):f}return O(a)?i?ht(a):Wt(a):a}}class At extends Ot{constructor(e=!1){super(!1,e)}set(e,s,n,i){let r=e[s];if(!this._isShallow){const f=A(r);if(!S(n)&&!A(n)&&(r=u(r),n=u(n)),!y(e)&&b(r)&&!b(n))return f||(r.value=n),!0}const o=y(e)&&dt(s)?Number(s)t,Q=t=>Reflect.getPrototypeOf(t);function ue(t,e,s){return function(...n){const i=this.__v_raw,r=u(i),o=C(r),a=t==="entries"||t===Symbol.iterator&&o,f=t==="keys"&&o,d=i[t](...n),c=s?ut:e?pt:g;return!e&&w(r,"iterate",f?lt:P),{next(){const{value:p,done:_}=d.next();return _?{value:p,done:_}:{value:a?[c(p[0]),c(p[1])]:c(p),done:_}},[Symbol.iterator](){return this}}}}function X(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function he(t,e){const s={get(i){const r=this.__v_raw,o=u(r),a=u(i);t||(I(i,a)&&w(o,"get",i),w(o,"get",a));const{has:f}=Q(o),d=e?ut:t?pt:g;if(f.call(o,i))return d(r.get(i));if(f.call(o,a))return d(r.get(a));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!t&&w(u(i),"iterate",P),i.size},has(i){const r=this.__v_raw,o=u(r),a=u(i);return t||(I(i,a)&&w(o,"has",i),w(o,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const o=this,a=o.__v_raw,f=u(a),d=e?ut:t?pt:g;return!t&&w(f,"iterate",P),a.forEach((c,p)=>i.call(r,d(c),d(p),o))}};return Bt(s,t?{add:X("add"),set:X("set"),delete:X("delete"),clear:X("clear")}:{add(i){!e&&!S(i)&&!A(i)&&(i=u(i));const r=u(this);return Q(r).has.call(r,i)||(r.add(i),T(r,"add",i,i)),this},set(i,r){!e&&!S(r)&&!A(r)&&(r=u(r));const o=u(this),{has:a,get:f}=Q(o);let d=a.call(o,i);d||(i=u(i),d=a.call(o,i));const c=f.call(o,i);return o.set(i,r),d?I(r,c)&&T(o,"set",i,r):T(o,"add",i,r),this},delete(i){const r=u(this),{has:o,get:a}=Q(r);let f=o.call(r,i);f||(i=u(i),f=o.call(r,i)),a&&a.call(r,i);const d=r.delete(i);return f&&T(r,"delete",i,void 0),d},clear(){const i=u(this),r=i.size!==0,o=i.clear();return r&&T(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=ue(i,t,e)}),s}function st(t,e){const s=he(t,e);return(n,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get($(s,i)&&i in n?s:n,i,r)}const pe={get:st(!1,!1)},de={get:st(!1,!0)},_e={get:st(!0,!1)},ve={get:st(!0,!0)},jt=new WeakMap,Kt=new WeakMap,Ht=new WeakMap,Ct=new WeakMap;function ge(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function we(t){return t.__v_skip||!Object.isExtensible(t)?0:ge(zt(t))}function Wt(t){return A(t)?t:it(t,!1,ae,pe,jt)}function Oe(t){return it(t,!1,ce,de,Kt)}function ht(t){return it(t,!0,fe,_e,Ht)}function Ae(t){return it(t,!0,le,ve,Ct)}function it(t,e,s,n,i){if(!O(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=we(t);if(r===0)return t;const o=i.get(t);if(o)return o;const a=new Proxy(t,r===2?n:s);return i.set(t,a),a}function N(t){return A(t)?N(t.__v_raw):!!(t&&t.__v_isReactive)}function A(t){return!!(t&&t.__v_isReadonly)}function S(t){return!!(t&&t.__v_isShallow)}function be(t){return t?!!t.__v_raw:!1}function u(t){const e=t&&t.__v_raw;return e?u(e):t}function Le(t){return!$(t,"__v_skip")&&Object.isExtensible(t)&&Gt(t,"__v_skip",!0),t}const g=t=>O(t)?Wt(t):t,pt=t=>O(t)?ht(t):t;function b(t){return t?t.__v_isRef===!0:!1}function Re(t){return Vt(t,!1)}function je(t){return Vt(t,!0)}function Vt(t,e){return b(t)?t:new Se(t,e)}class Se{constructor(e,s){this.dep=new et,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:u(e),this._value=s?e:g(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||S(e)||A(e);e=n?e:u(e),I(e,s)&&(this._rawValue=e,this._value=n?e:g(e),this.dep.trigger())}}function Nt(t){return b(t)?t.value:t}function Ke(t){return Y(t)?t():Nt(t)}const me={get:(t,e,s)=>e==="__v_raw"?t:Nt(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const i=t[e];return b(i)&&!b(s)?(i.value=s,!0):Reflect.set(t,e,s,n)}};function He(t){return N(t)?t:new Proxy(t,me)}class xe{constructor(e){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new et,{get:n,set:i}=e(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Ce(t){return new xe(t)}function We(t){const e=y(t)?new Array(t.length):{};for(const s in t)e[s]=Yt(t,s);return e}class ye{constructor(e,s,n){this._object=e,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return se(u(this._object),this._key)}}class Te{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ve(t,e,s){return b(t)?t:Y(t)?new Te(t):O(t)&&arguments.length>1?Yt(t,e,s):Re(t)}function Yt(t,e,s){const n=t[e];return b(n)?n:new ye(t,e,s)}class De{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new et(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=z-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return mt(this,!0),!0}get value(){const e=this.dep.track();return Tt(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ne(t,e,s=!1){let n,i;return Y(t)?n=t:(n=t.get,i=t.set),new De(n,i,s)}const Z={},tt=new WeakMap;let M;function Ie(t,e=!1,s=M){if(s){let n=tt.get(s);n||tt.set(s,n=[]),n.push(t)}}function Ye(t,e,s=Ft){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:a,call:f}=s,d=l=>i?l:S(l)||i===!1||i===0?D(l,1):D(l);let c,p,_,G,J=!1,U=!1;if(b(t)?(p=()=>t.value,J=S(t)):N(t)?(p=()=>d(t),J=!0):y(t)?(U=!0,J=t.some(l=>N(l)||S(l)),p=()=>t.map(l=>{if(b(l))return l.value;if(N(l))return d(l);if(Y(l))return f?f(l,2):l()})):Y(t)?e?p=f?()=>f(t,2):t:p=()=>{if(_){It();try{_()}finally{Et()}}const l=M;M=c;try{return f?f(t,3,[G]):t(G)}finally{M=l}}:p=Xt,e&&i){const l=p,m=i===!0?1/0:i;p=()=>D(l(),m)}const nt=$t(),L=()=>{c.stop(),nt&&nt.active&&Ut(nt.effects,c)};if(r&&e){const l=e;e=(...m)=>{l(...m),L()}}let E=U?new Array(t.length).fill(Z):Z;const K=l=>{if(!(!(c.flags&1)||!c.dirty&&!l))if(e){const m=c.run();if(i||J||(U?m.some((rt,q)=>I(rt,E[q])):I(m,E))){_&&_();const rt=M;M=c;try{const q=[m,E===Z?void 0:U&&E[0]===Z?[]:E,G];E=m,f?f(e,3,q):e(...q)}finally{M=rt}}}else c.run()};return a&&a(K),c=new kt(p),c.scheduler=o?()=>o(K,!1):K,G=l=>Ie(l,!1,c),_=c.onStop=()=>{const l=tt.get(c);if(l){if(f)f(l,4);else for(const m of l)m();tt.delete(c)}},e?n?K(!0):E=c.run():o?o(K.bind(null,!0),!0):c.run(),L.pause=c.pause.bind(c),L.resume=c.resume.bind(c),L.stop=L,L}function D(t,e=1/0,s){if(e<=0||!O(t)||t.__v_skip||(s=s||new Map,(s.get(t)||0)>=e))return t;if(s.set(t,e),e--,b(t))D(t.value,e,s);else if(y(t))for(let n=0;n{D(n,e,s)});else if(Qt(t)){for(const n in t)D(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&D(t[n],e,s)}return t}export{N as A,Zt as E,kt as R,b as a,It as b,Ne as c,Oe as d,w as e,Ae as f,T as g,Wt as h,be as i,D as j,Re as k,Ke as l,Le as m,ht as n,Ve as o,He as p,Ce as q,Et as r,je as s,u as t,Nt as u,$t as v,Ye as w,Pe as x,We as y,Me as z};
diff --git a/js/@vue_reactivity@3.5.22-BvBzZonp.js.gz b/js/@vue_reactivity@3.5.22-BvBzZonp.js.gz
deleted file mode 100644
index ab955a41..00000000
Binary files a/js/@vue_reactivity@3.5.22-BvBzZonp.js.gz and /dev/null differ
diff --git a/js/@vue_reactivity@3.5.25-CWykDyL9.js b/js/@vue_reactivity@3.5.25-CWykDyL9.js
new file mode 100644
index 00000000..34b9dd35
--- /dev/null
+++ b/js/@vue_reactivity@3.5.25-CWykDyL9.js
@@ -0,0 +1 @@
+import{i as z,e as Ft,h as E,E as Gt,a as K,b as x,t as Jt,c as tt,d as J,m as Ut,f as it,g as V,j as qt,r as Qt,k as Xt,l as Zt,N as $t}from"./@vue_shared@3.5.25-ClSOc5xY.js";let v;class kt{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=v,!e&&v&&(this.index=(v.scopes||(v.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e0&&--this._on===0&&(v=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(Y){let e=Y;for(Y=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;N;){let e=N;for(N=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function Tt(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Dt(t){let e,s=t.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),wt(n),se(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=s}function ht(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(It(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function It(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===B)||(t.globalVersion=B,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!ht(t))))return;t.flags|=2;const e=t.dep,s=h,n=b;h=t,b=!0;try{Tt(t);const i=t.fn(t._value);(e.version===0||E(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{h=s,b=n,Dt(t),t.flags&=-3}}function wt(t,e=!1){const{dep:s,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)wt(r,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function se(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let b=!0;const Et=[];function Mt(){Et.push(b),b=!1}function Pt(){const t=Et.pop();b=t===void 0?!0:t}function St(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=h;h=void 0;try{e()}finally{h=s}}}let B=0;class ie{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class nt{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!h||!b||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new ie(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,At(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=n)}return s}trigger(e){this.version++,B++,this.notify(e)}notify(e){vt();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{gt()}}}function At(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)At(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const et=new WeakMap,O=Symbol(""),pt=Symbol(""),F=Symbol("");function w(t,e,s){if(b&&h){let n=et.get(t);n||et.set(t,n=new Map);let i=n.get(s);i||(n.set(s,i=new nt),i.map=n,i.key=s),i.track()}}function D(t,e,s,n,i,r){const o=et.get(t);if(!o){B++;return}const a=f=>{f&&f.trigger()};if(vt(),e==="clear")o.forEach(a);else{const f=x(t),p=f&&it(s);if(f&&s==="length"){const c=Number(n);o.forEach((d,_)=>{(_==="length"||_===F||!J(_)&&_>=c)&&a(d)})}else switch((s!==void 0||o.has(void 0))&&a(o.get(s)),p&&a(o.get(F)),e){case"add":f?p&&a(o.get("length")):(a(o.get(O)),V(t)&&a(o.get(pt)));break;case"delete":f||(a(o.get(O)),V(t)&&a(o.get(pt)));break;case"set":V(t)&&a(o.get(O));break}}gt()}function ne(t,e){const s=et.get(t);return s&&s.get(e)}function j(t){const e=u(t);return e===t?e:(w(e,"iterate",F),R(t)?e:e.map(y))}function Rt(t){return w(t=u(t),"iterate",F),t}function T(t,e){return M(t)?H(t)?G(y(e)):G(e):y(e)}const re={__proto__:null,[Symbol.iterator](){return lt(this,Symbol.iterator,t=>T(this,t))},concat(...t){return j(this).concat(...t.map(e=>x(e)?j(e):e))},entries(){return lt(this,"entries",t=>(t[1]=T(this,t[1]),t))},every(t,e){return m(this,"every",t,e,void 0,arguments)},filter(t,e){return m(this,"filter",t,e,s=>s.map(n=>T(this,n)),arguments)},find(t,e){return m(this,"find",t,e,s=>T(this,s),arguments)},findIndex(t,e){return m(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return m(this,"findLast",t,e,s=>T(this,s),arguments)},findLastIndex(t,e){return m(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return m(this,"forEach",t,e,void 0,arguments)},includes(...t){return ut(this,"includes",t)},indexOf(...t){return ut(this,"indexOf",t)},join(t){return j(this).join(t)},lastIndexOf(...t){return ut(this,"lastIndexOf",t)},map(t,e){return m(this,"map",t,e,void 0,arguments)},pop(){return C(this,"pop")},push(...t){return C(this,"push",t)},reduce(t,...e){return mt(this,"reduce",t,e)},reduceRight(t,...e){return mt(this,"reduceRight",t,e)},shift(){return C(this,"shift")},some(t,e){return m(this,"some",t,e,void 0,arguments)},splice(...t){return C(this,"splice",t)},toReversed(){return j(this).toReversed()},toSorted(t){return j(this).toSorted(t)},toSpliced(...t){return j(this).toSpliced(...t)},unshift(...t){return C(this,"unshift",t)},values(){return lt(this,"values",t=>T(this,t))}};function lt(t,e,s){const n=Rt(t),i=n[e]();return n!==t&&!R(t)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=s(r.value)),r}),i}const oe=Array.prototype;function m(t,e,s,n,i,r){const o=Rt(t),a=o!==t&&!R(t),f=o[e];if(f!==oe[e]){const d=f.apply(t,r);return a?y(d):d}let p=s;o!==t&&(a?p=function(d,_){return s.call(this,T(t,d),_,t)}:s.length>2&&(p=function(d,_){return s.call(this,d,_,t)}));const c=f.call(o,p,n);return a&&i?i(c):c}function mt(t,e,s,n){const i=Rt(t);let r=s;return i!==t&&(R(t)?s.length>3&&(r=function(o,a,f){return s.call(this,o,a,f,t)}):r=function(o,a,f){return s.call(this,o,T(t,a),f,t)}),i[e](r,...n)}function ut(t,e,s){const n=u(t);w(n,"iterate",F);const i=n[e](...s);return(i===-1||i===!1)&&Yt(s[0])?(s[0]=u(s[0]),n[e](...s)):i}function C(t,e,s=[]){Mt(),vt();const n=u(t)[e].apply(t,s);return gt(),Pt(),n}const ae=Ut("__proto__,__v_isRef,__isVue"),Ot=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(J));function fe(t){J(t)||(t=String(t));const e=u(this);return w(e,"has",t),e.hasOwnProperty(t)}class Kt{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){if(s==="__v_skip")return e.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?Vt:Ct:r?Wt:Ht).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=x(e);if(!i){let f;if(o&&(f=re[s]))return f;if(s==="hasOwnProperty")return fe}const a=Reflect.get(e,s,g(e)?e:n);if((J(s)?Ot.has(s):ae(s))||(i||w(e,"get",s),r))return a;if(g(a)){const f=o&&it(s)?a:a.value;return i&&K(f)?_t(f):f}return K(a)?i?_t(a):Nt(a):a}}class Lt extends Kt{constructor(e=!1){super(!1,e)}set(e,s,n,i){let r=e[s];const o=x(e)&&it(s);if(!this._isShallow){const p=M(r);if(!R(n)&&!M(n)&&(r=u(r),n=u(n)),!o&&g(r)&&!g(n))return p||(r.value=n),!0}const a=o?Number(s)t,Z=t=>Reflect.getPrototypeOf(t);function pe(t,e,s){return function(...n){const i=this.__v_raw,r=u(i),o=V(r),a=t==="entries"||t===Symbol.iterator&&o,f=t==="keys"&&o,p=i[t](...n),c=s?dt:e?G:y;return!e&&w(r,"iterate",f?pt:O),{next(){const{value:d,done:_}=p.next();return _?{value:d,done:_}:{value:a?[c(d[0]),c(d[1])]:c(d),done:_}},[Symbol.iterator](){return this}}}}function $(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function de(t,e){const s={get(i){const r=this.__v_raw,o=u(r),a=u(i);t||(E(i,a)&&w(o,"get",i),w(o,"get",a));const{has:f}=Z(o),p=e?dt:t?G:y;if(f.call(o,i))return p(r.get(i));if(f.call(o,a))return p(r.get(a));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!t&&w(u(i),"iterate",O),i.size},has(i){const r=this.__v_raw,o=u(r),a=u(i);return t||(E(i,a)&&w(o,"has",i),w(o,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const o=this,a=o.__v_raw,f=u(a),p=e?dt:t?G:y;return!t&&w(f,"iterate",O),a.forEach((c,d)=>i.call(r,p(c),p(d),o))}};return Ft(s,t?{add:$("add"),set:$("set"),delete:$("delete"),clear:$("clear")}:{add(i){!e&&!R(i)&&!M(i)&&(i=u(i));const r=u(this);return Z(r).has.call(r,i)||(r.add(i),D(r,"add",i,i)),this},set(i,r){!e&&!R(r)&&!M(r)&&(r=u(r));const o=u(this),{has:a,get:f}=Z(o);let p=a.call(o,i);p||(i=u(i),p=a.call(o,i));const c=f.call(o,i);return o.set(i,r),p?E(r,c)&&D(o,"set",i,r):D(o,"add",i,r),this},delete(i){const r=u(this),{has:o,get:a}=Z(r);let f=o.call(r,i);f||(i=u(i),f=o.call(r,i)),a&&a.call(r,i);const p=r.delete(i);return f&&D(r,"delete",i,void 0),p},clear(){const i=u(this),r=i.size!==0,o=i.clear();return r&&D(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=pe(i,t,e)}),s}function rt(t,e){const s=de(t,e);return(n,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(tt(s,i)&&i in n?s:n,i,r)}const _e={get:rt(!1,!1)},ve={get:rt(!1,!0)},ge={get:rt(!0,!1)},we={get:rt(!0,!0)},Ht=new WeakMap,Wt=new WeakMap,Ct=new WeakMap,Vt=new WeakMap;function Re(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function be(t){return t.__v_skip||!Object.isExtensible(t)?0:Re(Jt(t))}function Nt(t){return M(t)?t:ot(t,!1,ce,_e,Ht)}function Oe(t){return ot(t,!1,ue,ve,Wt)}function _t(t){return ot(t,!0,le,ge,Ct)}function Ke(t){return ot(t,!0,he,we,Vt)}function ot(t,e,s,n,i){if(!K(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=be(t);if(r===0)return t;const o=i.get(t);if(o)return o;const a=new Proxy(t,r===2?n:s);return i.set(t,a),a}function H(t){return M(t)?H(t.__v_raw):!!(t&&t.__v_isReactive)}function M(t){return!!(t&&t.__v_isReadonly)}function R(t){return!!(t&&t.__v_isShallow)}function Yt(t){return t?!!t.__v_raw:!1}function u(t){const e=t&&t.__v_raw;return e?u(e):t}function Le(t){return!tt(t,"__v_skip")&&Object.isExtensible(t)&&qt(t,"__v_skip",!0),t}const y=t=>K(t)?Nt(t):t,G=t=>K(t)?_t(t):t;function g(t){return t?t.__v_isRef===!0:!1}function Se(t){return zt(t,!1)}function je(t){return zt(t,!0)}function zt(t,e){return g(t)?t:new me(t,e)}class me{constructor(e,s){this.dep=new nt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:u(e),this._value=s?e:y(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||R(e)||M(e);e=n?e:u(e),E(e,s)&&(this._rawValue=e,this._value=n?e:y(e),this.dep.trigger())}}function bt(t){return g(t)?t.value:t}function He(t){return z(t)?t():bt(t)}const xe={get:(t,e,s)=>e==="__v_raw"?t:bt(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const i=t[e];return g(i)&&!g(s)?(i.value=s,!0):Reflect.set(t,e,s,n)}};function We(t){return H(t)?t:new Proxy(t,xe)}class ye{constructor(e){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new nt,{get:n,set:i}=e(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Ce(t){return new ye(t)}function Ve(t){const e=x(t)?new Array(t.length):{};for(const s in t)e[s]=Bt(t,s);return e}class Te{constructor(e,s,n){this._object=e,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=u(e);let i=!0,r=e;if(!x(e)||!it(String(s)))do i=!Yt(r)||R(r);while(i&&(r=r.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=bt(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&g(this._raw[this._key])){const s=this._object[this._key];if(g(s)){s.value=e;return}}this._object[this._key]=e}get dep(){return ne(this._raw,this._key)}}class De{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ne(t,e,s){return g(t)?t:z(t)?new De(t):K(t)&&arguments.length>1?Bt(t,e,s):Se(t)}function Bt(t,e,s){return new Te(t,e,s)}class Ie{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new nt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=B-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return yt(this,!0),!0}get value(){const e=this.dep.track();return It(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ye(t,e,s=!1){let n,i;return z(t)?n=t:(n=t.get,i=t.set),new Ie(n,i,s)}const k={},st=new WeakMap;let A;function Ee(t,e=!1,s=A){if(s){let n=st.get(s);n||st.set(s,n=[]),n.push(t)}}function ze(t,e,s=Gt){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:a,call:f}=s,p=l=>i?l:R(l)||i===!1||i===0?I(l,1):I(l);let c,d,_,U,q=!1,Q=!1;if(g(t)?(d=()=>t.value,q=R(t)):H(t)?(d=()=>p(t),q=!0):x(t)?(Q=!0,q=t.some(l=>H(l)||R(l)),d=()=>t.map(l=>{if(g(l))return l.value;if(H(l))return p(l);if(z(l))return f?f(l,2):l()})):z(t)?e?d=f?()=>f(t,2):t:d=()=>{if(_){Mt();try{_()}finally{Pt()}}const l=A;A=c;try{return f?f(t,3,[U]):t(U)}finally{A=l}}:d=$t,e&&i){const l=d,S=i===!0?1/0:i;d=()=>I(l(),S)}const at=te(),L=()=>{c.stop(),at&&at.active&&Qt(at.effects,c)};if(r&&e){const l=e;e=(...S)=>{l(...S),L()}}let P=Q?new Array(t.length).fill(k):k;const W=l=>{if(!(!(c.flags&1)||!c.dirty&&!l))if(e){const S=c.run();if(i||q||(Q?S.some((ft,X)=>E(ft,P[X])):E(S,P))){_&&_();const ft=A;A=c;try{const X=[S,P===k?void 0:Q&&P[0]===k?[]:P,U];P=S,f?f(e,3,X):e(...X)}finally{A=ft}}}else c.run()};return a&&a(W),c=new ee(d),c.scheduler=o?()=>o(W,!1):W,U=l=>Ee(l,!1,c),_=c.onStop=()=>{const l=st.get(c);if(l){if(f)f(l,4);else for(const S of l)S();st.delete(c)}},e?n?W(!0):P=c.run():o?o(W.bind(null,!0),!0):c.run(),L.pause=c.pause.bind(c),L.resume=c.resume.bind(c),L.stop=L,L}function I(t,e=1/0,s){if(e<=0||!K(t)||t.__v_skip||(s=s||new Map,(s.get(t)||0)>=e))return t;if(s.set(t,e),e--,g(t))I(t.value,e,s);else if(x(t))for(let n=0;n{I(n,e,s)});else if(Zt(t)){for(const n in t)I(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&I(t[n],e,s)}return t}export{H as A,kt as E,ee as R,g as a,Mt as b,Ye as c,Oe as d,w as e,Ke as f,D as g,Nt as h,Yt as i,I as j,Se as k,He as l,Le as m,_t as n,Ne as o,We as p,Ce as q,Pt as r,je as s,u as t,bt as u,te as v,ze as w,Ae as x,Ve as y,Pe as z};
diff --git a/js/@vue_reactivity@3.5.25-CWykDyL9.js.gz b/js/@vue_reactivity@3.5.25-CWykDyL9.js.gz
new file mode 100644
index 00000000..2b84cdce
Binary files /dev/null and b/js/@vue_reactivity@3.5.25-CWykDyL9.js.gz differ
diff --git a/js/@vue_runtime-core@3.5.22-0v1MMfjG.js b/js/@vue_runtime-core@3.5.22-0v1MMfjG.js
deleted file mode 100644
index eb765a57..00000000
--- a/js/@vue_runtime-core@3.5.22-0v1MMfjG.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import{c as Nl,w as $l,i as Ls,a as Tt,s as Ll,p as Vs,m as Vl,b as Ue,r as je,t as wt,E as Ul,R as jl,d as Dl,e as Us,g as Rl,h as Kl,j as Wl}from"./@vue_reactivity@3.5.22-BvBzZonp.js";import{a as V,n as js,b as K,E as q,e as ae,o as me,p as Ds,i as ge,q as Rs,s as is,u as Ke,r as Ks,v as Ht,N as Be,w as Ws,x as et,c as Q,y as tt,z as ke,A as ql,B as jt,C as ct,d as Gl,D as qs,F as Gs,G as Jl,H as Yl,f as Ql}from"./@vue_shared@3.5.22-Dikn8ojA.js";/**
-* @vue/runtime-core v3.5.22
-* (c) 2018-present Yuxi (Evan) You and Vue contributors
-* @license MIT
-**/function ut(e,t,s,l){try{return l?e(...l):e()}catch(n){at(n,t,s)}}function Ee(e,t,s,l){if(V(e)){const n=ut(e,t,s,l);return n&&js(n)&&n.catch(r=>{at(r,t,s)}),n}if(K(e)){const n=[];for(let r=0;r>>1,n=ie[l],r=it(n);r=it(s)?ie.push(e):ie.splice(zl(t),0,e),e.flags|=1,Ys()}}function Ys(){vt||(vt=Js.then(Xs))}function Gt(e){K(e)?We.push(...e):Me&&e.id===-1?Me.splice(Re+1,0,e):e.flags&1||(We.push(e),e.flags|=1),Ys()}function Ts(e,t,s=ve+1){for(;sit(s)-it(l));if(We.length=0,Me){Me.push(...t);return}for(Me=t,Re=0;Ree.id==null?e.flags&2?-1:1/0:e.id;function Xs(e){try{for(ve=0;ve{l._d&&Pt(-1);const r=kt(t);let i;try{i=e(...n)}finally{kt(r),l._d&&Pt(1)}return i};return l._n=!0,l._c=!0,l._d=!0,l}function yr(e,t){if(se===null)return e;const s=Vt(se),l=e.dirs||(e.dirs=[]);for(let n=0;ne.__isTeleport,st=e=>e&&(e.disabled||e.disabled===""),vs=e=>e&&(e.defer||e.defer===""),ks=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Es=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Jt=(e,t)=>{const s=e&&e.to;return me(s)?t?t(s):null:s},tl={name:"Teleport",__isTeleport:!0,process(e,t,s,l,n,r,i,f,u,h){const{mc:a,pc:d,pbc:_,o:{insert:x,querySelector:A,createText:B,createComment:L}}=h,$=st(t.props);let{shapeFlag:v,children:P,dynamicChildren:O}=t;if(e==null){const E=t.el=B(""),M=t.anchor=B("");x(E,s,l),x(M,s,l);const j=(I,H)=>{v&16&&a(P,I,H,n,r,i,f,u)},U=()=>{const I=t.target=Jt(t.props,A),H=sl(I,t,B,x);I&&(i!=="svg"&&ks(I)?i="svg":i!=="mathml"&&Es(I)&&(i="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(I),$||(j(I,H),_t(t,!1)))};$&&(j(s,M),_t(t,!0)),vs(t.props)?(t.el.__isMounted=!1,z(()=>{U(),delete t.el.__isMounted},r)):U()}else{if(vs(t.props)&&e.el.__isMounted===!1){z(()=>{tl.process(e,t,s,l,n,r,i,f,u,h)},r);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,M=t.target=e.target,j=t.targetAnchor=e.targetAnchor,U=st(e.props),I=U?s:M,H=U?E:j;if(i==="svg"||ks(M)?i="svg":(i==="mathml"||Es(M))&&(i="mathml"),O?(_(e.dynamicChildren,O,I,n,r,i,f),gs(e,t,!0)):u||d(e,t,I,H,n,r,i,f,!1),$)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):yt(t,s,E,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=Jt(t.props,A);D&&yt(t,D,null,h,0)}else U&&yt(t,M,j,h,1);_t(t,$)}},remove(e,t,s,{um:l,o:{remove:n}},r){const{shapeFlag:i,children:f,anchor:u,targetStart:h,targetAnchor:a,target:d,props:_}=e;if(d&&(n(h),n(a)),r&&n(u),i&16){const x=r||!st(_);for(let A=0;A{e.isMounted=!0}),cs(()=>{e.isUnmounting=!0}),e}const pe=[Function,Array],ln={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pe,onEnter:pe,onAfterEnter:pe,onEnterCancelled:pe,onBeforeLeave:pe,onLeave:pe,onAfterLeave:pe,onLeaveCancelled:pe,onBeforeAppear:pe,onAppear:pe,onAfterAppear:pe,onAppearCancelled:pe},ll=e=>{const t=e.subTree;return t.component?ll(t.component):t},nn={name:"BaseTransition",props:ln,setup(e,{slots:t}){const s=dt(),l=sn();return()=>{const n=t.default&&il(t.default(),!0);if(!n||!n.length)return;const r=nl(n),i=wt(e),{mode:f}=i;if(l.isLeaving)return Dt(r);const u=As(r);if(!u)return Dt(r);let h=Yt(u,i,l,s,d=>h=d);u.type!==ee&&Ge(u,h);let a=s.subTree&&As(s.subTree);if(a&&a.type!==ee&&!_e(a,u)&&ll(s).type!==ee){let d=Yt(a,i,l,s);if(Ge(a,d),f==="out-in"&&u.type!==ee)return l.isLeaving=!0,d.afterLeave=()=>{l.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,a=void 0},Dt(r);f==="in-out"&&u.type!==ee?d.delayLeave=(_,x,A)=>{const B=rl(l,a);B[String(a.key)]=a,_[Ie]=()=>{x(),_[Ie]=void 0,delete h.delayedLeave,a=void 0},h.delayedLeave=()=>{A(),delete h.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return r}}};function nl(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==ee){t=s;break}}return t}const br=nn;function rl(e,t){const{leavingVNodes:s}=e;let l=s.get(t.type);return l||(l=Object.create(null),s.set(t.type,l)),l}function Yt(e,t,s,l,n){const{appear:r,mode:i,persisted:f=!1,onBeforeEnter:u,onEnter:h,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:_,onLeave:x,onAfterLeave:A,onLeaveCancelled:B,onBeforeAppear:L,onAppear:$,onAfterAppear:v,onAppearCancelled:P}=t,O=String(e.key),E=rl(s,e),M=(I,H)=>{I&&Ee(I,l,9,H)},j=(I,H)=>{const D=H[1];M(I,H),K(I)?I.every(X=>X.length<=1)&&D():I.length<=1&&D()},U={mode:i,persisted:f,beforeEnter(I){let H=u;if(!s.isMounted)if(r)H=L||u;else return;I[Ie]&&I[Ie](!0);const D=E[O];D&&_e(e,D)&&D.el[Ie]&&D.el[Ie](),M(H,[I])},enter(I){let H=h,D=a,X=d;if(!s.isMounted)if(r)H=$||h,D=v||a,X=P||d;else return;let te=!1;const ne=I[mt]=Ae=>{te||(te=!0,Ae?M(X,[I]):M(D,[I]),U.delayedLeave&&U.delayedLeave(),I[mt]=void 0)};H?j(H,[I,ne]):ne()},leave(I,H){const D=String(e.key);if(I[mt]&&I[mt](!0),s.isUnmounting)return H();M(_,[I]);let X=!1;const te=I[Ie]=ne=>{X||(X=!0,H(),ne?M(B,[I]):M(A,[I]),I[Ie]=void 0,E[D]===e&&delete E[D])};E[D]=e,x?j(x,[I,te]):te()},clone(I){const H=Yt(I,t,s,l,n);return n&&n(H),H}};return U}function Dt(e){if(St(e))return e=Oe(e),e.children=null,e}function As(e){if(!St(e))return el(e.type)&&e.children?nl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&V(s.default))return s.default()}}function Ge(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ge(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function il(e,t=!1,s){let l=[],n=0;for(let r=0;r1)for(let r=0;rs.value,set:r=>s.value=r})}return s}const Et=new WeakMap;function lt(e,t,s,l,n=!1){if(K(e)){e.forEach((A,B)=>lt(A,t&&(K(t)?t[B]:t),s,l,n));return}if(Le(l)&&!n){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&<(e,t,s,l.component.subTree);return}const r=l.shapeFlag&4?Vt(l.component):l.el,i=n?null:r,{i:f,r:u}=e,h=t&&t.r,a=f.refs===q?f.refs={}:f.refs,d=f.setupState,_=wt(d),x=d===q?Ws:A=>Q(_,A);if(h!=null&&h!==u){if(Is(t),me(h))a[h]=null,x(h)&&(d[h]=null);else if(Tt(h)){h.value=null;const A=t;A.k&&(a[A.k]=null)}}if(V(u))ut(u,f,12,[i,a]);else{const A=me(u),B=Tt(u);if(A||B){const L=()=>{if(e.f){const $=A?x(u)?d[u]:a[u]:u.value;if(n)K($)&&Ks($,r);else if(K($))$.includes(r)||$.push(r);else if(A)a[u]=[r],x(u)&&(d[u]=a[u]);else{const v=[r];u.value=v,e.k&&(a[e.k]=v)}}else A?(a[u]=i,x(u)&&(d[u]=i)):B&&(u.value=i,e.k&&(a[e.k]=i))};if(i){const $=()=>{L(),Et.delete(e)};$.id=-1,Et.set(e,$),z($,s)}else Is(e),L()}}}function Is(e){const t=Et.get(e);t&&(t.flags|=8,Et.delete(e))}Ht().requestIdleCallback;Ht().cancelIdleCallback;const Le=e=>!!e.type.__asyncLoader,St=e=>e.type.__isKeepAlive,rn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=dt(),l=s.ctx;if(!l.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const n=new Map,r=new Set;let i=null;const f=s.suspense,{renderer:{p:u,m:h,um:a,o:{createElement:d}}}=l,_=d("div");l.activate=(v,P,O,E,M)=>{const j=v.component;h(v,P,O,0,f),u(j.vnode,v,P,O,j,f,E,v.slotScopeIds,M),z(()=>{j.isDeactivated=!1,j.a&&et(j.a);const U=v.props&&v.props.onVnodeMounted;U&&ye(U,j.parent,v)},f)},l.deactivate=v=>{const P=v.component;It(P.m),It(P.a),h(v,_,null,1,f),z(()=>{P.da&&et(P.da);const O=v.props&&v.props.onVnodeUnmounted;O&&ye(O,P.parent,v),P.isDeactivated=!0},f)};function x(v){Rt(v),a(v,s,f,!0)}function A(v){n.forEach((P,O)=>{const E=rs(P.type);E&&!v(E)&&B(O)})}function B(v){const P=n.get(v);P&&(!i||!_e(P,i))?x(P):i&&Rt(i),n.delete(v),r.delete(v)}Ft(()=>[e.include,e.exclude],([v,P])=>{v&&A(O=>Ze(v,O)),P&&A(O=>!Ze(P,O))},{flush:"post",deep:!0});let L=null;const $=()=>{L!=null&&(Bt(s.subTree.type)?z(()=>{n.set(L,bt(s.subTree))},s.subTree.suspense):n.set(L,bt(s.subTree)))};return fs($),cl($),cs(()=>{n.forEach(v=>{const{subTree:P,suspense:O}=s,E=bt(P);if(v.type===E.type&&v.key===E.key){Rt(E);const M=E.component.da;M&&z(M,O);return}x(v)})}),()=>{if(L=null,!t.default)return i=null;const v=t.default(),P=v[0];if(v.length>1)return i=null,v;if(!De(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let O=bt(P);if(O.type===ee)return i=null,O;const E=O.type,M=rs(Le(O)?O.type.__asyncResolved||{}:E),{include:j,exclude:U,max:I}=e;if(j&&(!M||!Ze(j,M))||U&&M&&Ze(U,M))return O.shapeFlag&=-257,i=O,P;const H=O.key==null?E:O.key,D=n.get(H);return O.el&&(O=Oe(O),P.shapeFlag&128&&(P.ssContent=O)),L=H,D?(O.el=D.el,O.component=D.component,O.transition&&Ge(O,O.transition),O.shapeFlag|=512,r.delete(H),r.add(H)):(r.add(H),I&&r.size>parseInt(I,10)&&B(r.values().next().value)),O.shapeFlag|=256,i=O,Bt(P.type)?P:O}}},Fr=rn;function Ze(e,t){return K(e)?e.some(s=>Ze(s,t)):me(e)?e.split(",").includes(t):Yl(e)?(e.lastIndex=0,e.test(t)):!1}function on(e,t){fl(e,"a",t)}function fn(e,t){fl(e,"da",t)}function fl(e,t,s=le){const l=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Nt(t,l,s),s){let n=s.parent;for(;n&&n.parent;)St(n.parent.vnode)&&cn(l,t,s,n),n=n.parent}}function cn(e,t,s,l){const n=Nt(t,e,l,!0);ul(()=>{Ks(l[t],n)},s)}function Rt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function bt(e){return e.shapeFlag&128?e.ssContent:e}function Nt(e,t,s=le,l=!1){if(s){const n=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ue();const f=ht(s),u=Ee(t,s,e,i);return f(),je(),u});return l?n.unshift(r):n.push(r),r}}const Pe=e=>(t,s=le)=>{(!ft||e==="sp")&&Nt(e,(...l)=>t(...l),s)},un=Pe("bm"),fs=Pe("m"),an=Pe("bu"),cl=Pe("u"),cs=Pe("bum"),ul=Pe("um"),dn=Pe("sp"),hn=Pe("rtg"),gn=Pe("rtc");function pn(e,t=le){Nt("ec",e,t)}const us="components",yn="directives";function Cr(e,t){return as(us,e,!0,t)||e}const al=Symbol.for("v-ndc");function Tr(e){return me(e)?as(us,e,!1)||e:e||al}function vr(e){return as(yn,e)}function as(e,t,s=!0,l=!1){const n=se||le;if(n){const r=n.type;if(e===us){const f=rs(r,!1);if(f&&(f===t||f===ke(t)||f===Gs(ke(t))))return r}const i=Bs(n[e]||r[e],t)||Bs(n.appContext[e],t);return!i&&l?r:i}}function Bs(e,t){return e&&(e[t]||e[ke(t)]||e[Gs(ke(t))])}function kr(e,t,s={},l,n){if(se.ce||se.parent&&Le(se.parent)&&se.parent.ce){const h=Object.keys(s).length>0;return Ot(),ss(he,null,[oe("slot",s,l)],h?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),Ot();const i=r&&dl(r(s)),f=s.key||i&&i.key,u=ss(he,{key:(f&&!Ql(f)?f:`_${t}`)+""},i||[],i&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),r&&r._c&&(r._d=!0),u}function dl(e){return e.some(t=>De(t)?!(t.type===ee||t.type===he&&!dl(t.children)):!0)?e:null}const Qt=e=>e?Ml(e)?Vt(e):Qt(e.parent):null,nt=ae(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Qt(e.parent),$root:e=>Qt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>gl(e),$forceUpdate:e=>e.f||(e.f=()=>{os(e.update)}),$nextTick:e=>e.n||(e.n=Zl.bind(e.proxy)),$watch:e=>$n.bind(e)}),Kt=(e,t)=>e!==q&&!e.__isScriptSetup&&Q(e,t),mn={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:n,props:r,accessCache:i,type:f,appContext:u}=e;let h;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return l[t];case 2:return n[t];case 4:return s[t];case 3:return r[t]}else{if(Kt(l,t))return i[t]=1,l[t];if(n!==q&&Q(n,t))return i[t]=2,n[t];if((h=e.propsOptions[0])&&Q(h,t))return i[t]=3,r[t];if(s!==q&&Q(s,t))return i[t]=4,s[t];Zt&&(i[t]=0)}}const a=nt[t];let d,_;if(a)return t==="$attrs"&&Us(e.attrs,"get",""),a(e);if((d=f.__cssModules)&&(d=d[t]))return d;if(s!==q&&Q(s,t))return i[t]=4,s[t];if(_=u.config.globalProperties,Q(_,t))return _[t]},set({_:e},t,s){const{data:l,setupState:n,ctx:r}=e;return Kt(n,t)?(n[t]=s,!0):l!==q&&Q(l,t)?(l[t]=s,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:n,propsOptions:r,type:i}},f){let u,h;return!!(s[f]||e!==q&&f[0]!=="$"&&Q(e,f)||Kt(t,f)||(u=r[0])&&Q(u,f)||Q(l,f)||Q(nt,f)||Q(n.config.globalProperties,f)||(h=i.__cssModules)&&h[f])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Q(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Xt(e){return K(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Er(e,t){const s=Xt(e);for(const l in t){if(l.startsWith("__skip"))continue;let n=s[l];n?K(n)||V(n)?n=s[l]={type:n,default:t[l]}:n.default=t[l]:n===null&&(n=s[l]={default:t[l]}),n&&t[`__skip_${l}`]&&(n.skipFactory=!0)}return s}let Zt=!0;function bn(e){const t=gl(e),s=e.proxy,l=e.ctx;Zt=!1,t.beforeCreate&&Os(t.beforeCreate,e,"bc");const{data:n,computed:r,methods:i,watch:f,provide:u,inject:h,created:a,beforeMount:d,mounted:_,beforeUpdate:x,updated:A,activated:B,deactivated:L,beforeDestroy:$,beforeUnmount:v,destroyed:P,unmounted:O,render:E,renderTracked:M,renderTriggered:j,errorCaptured:U,serverPrefetch:I,expose:H,inheritAttrs:D,components:X,directives:te,filters:ne}=t;if(h&&_n(h,l,null),i)for(const G in i){const J=i[G];V(J)&&(l[G]=J.bind(s))}if(n){const G=n.call(s,s);ge(G)&&(e.data=Kl(G))}if(Zt=!0,r)for(const G in r){const J=r[G],He=V(J)?J.bind(s,s):V(J.get)?J.get.bind(s,s):Be,gt=!V(J)&&V(J.set)?J.set.bind(s):Be,Se=ur({get:He,set:gt});Object.defineProperty(l,G,{enumerable:!0,configurable:!0,get:()=>Se.value,set:xe=>Se.value=xe})}if(f)for(const G in f)hl(f[G],l,s,G);if(u){const G=V(u)?u.call(s):u;Reflect.ownKeys(G).forEach(J=>{kn(J,G[J])})}a&&Os(a,e,"c");function Z(G,J){K(J)?J.forEach(He=>G(He.bind(s))):J&&G(J.bind(s))}if(Z(un,d),Z(fs,_),Z(an,x),Z(cl,A),Z(on,B),Z(fn,L),Z(pn,U),Z(gn,M),Z(hn,j),Z(cs,v),Z(ul,O),Z(dn,I),K(H))if(H.length){const G=e.exposed||(e.exposed={});H.forEach(J=>{Object.defineProperty(G,J,{get:()=>s[J],set:He=>s[J]=He,enumerable:!0})})}else e.exposed||(e.exposed={});E&&e.render===Be&&(e.render=E),D!=null&&(e.inheritAttrs=D),X&&(e.components=X),te&&(e.directives=te),I&&ol(e)}function _n(e,t,s=Be){K(e)&&(e=zt(e));for(const l in e){const n=e[l];let r;ge(n)?"default"in n?r=xt(n.from||l,n.default,!0):r=xt(n.from||l):r=xt(n),Tt(r)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[l]=r}}function Os(e,t,s){Ee(K(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function hl(e,t,s,l){let n=l.includes(".")?kl(s,l):()=>s[l];if(me(e)){const r=t[e];V(r)&&Ft(n,r)}else if(V(e))Ft(n,e.bind(s));else if(ge(e))if(K(e))e.forEach(r=>hl(r,t,s,l));else{const r=V(e.handler)?e.handler.bind(s):t[e.handler];V(r)&&Ft(n,r,e)}}function gl(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:n,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,f=r.get(t);let u;return f?u=f:!n.length&&!s&&!l?u=t:(u={},n.length&&n.forEach(h=>At(u,h,i,!0)),At(u,t,i)),ge(t)&&r.set(t,u),u}function At(e,t,s,l=!1){const{mixins:n,extends:r}=t;r&&At(e,r,s,!0),n&&n.forEach(i=>At(e,i,s,!0));for(const i in t)if(!(l&&i==="expose")){const f=xn[i]||s&&s[i];e[i]=f?f(e[i],t[i]):t[i]}return e}const xn={data:Ps,props:Ms,emits:Ms,methods:ze,computed:ze,beforeCreate:re,created:re,beforeMount:re,mounted:re,beforeUpdate:re,updated:re,beforeDestroy:re,beforeUnmount:re,destroyed:re,unmounted:re,activated:re,deactivated:re,errorCaptured:re,serverPrefetch:re,components:ze,directives:ze,watch:Cn,provide:Ps,inject:Fn};function Ps(e,t){return t?e?function(){return ae(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Fn(e,t){return ze(zt(e),zt(t))}function zt(e){if(K(e)){const t={};for(let s=0;s1)return s&&V(t)?t.call(l&&l.proxy):t}}function Ar(){return!!(dt()||Ve)}const yl={},ml=()=>Object.create(yl),bl=e=>Object.getPrototypeOf(e)===yl;function En(e,t,s,l=!1){const n={},r=ml();e.propsDefaults=Object.create(null),_l(e,t,n,r);for(const i in e.propsOptions[0])i in n||(n[i]=void 0);s?e.props=l?n:Dl(n):e.type.props?e.props=n:e.props=r,e.attrs=r}function An(e,t,s,l){const{props:n,attrs:r,vnode:{patchFlag:i}}=e,f=wt(n),[u]=e.propsOptions;let h=!1;if((l||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d{u=!0;const[_,x]=xl(d,t,!0);ae(i,_),x&&f.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!u)return ge(e)&&l.set(e,Ke),Ke;if(K(r))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",hs=e=>K(e)?e.map(be):[be(e)],Bn=(e,t,s)=>{if(t._n)return t;const l=en((...n)=>hs(t(...n)),s);return l._c=!1,l},Fl=(e,t,s)=>{const l=e._ctx;for(const n in e){if(ds(n))continue;const r=e[n];if(V(r))t[n]=Bn(n,r,l);else if(r!=null){const i=hs(r);t[n]=()=>i}}},Cl=(e,t)=>{const s=hs(t);e.slots.default=()=>s},Tl=(e,t,s)=>{for(const l in t)(s||!ds(l))&&(e[l]=t[l])},On=(e,t,s)=>{const l=e.slots=ml();if(e.vnode.shapeFlag&32){const n=t._;n?(Tl(l,t,s),s&&Gl(l,"_",n,!0)):Fl(t,l)}else t&&Cl(e,t)},Pn=(e,t,s)=>{const{vnode:l,slots:n}=e;let r=!0,i=q;if(l.shapeFlag&32){const f=t._;f?s&&f===1?r=!1:Tl(n,t,s):(r=!t.$stable,Fl(t,n)),i=t}else t&&(Cl(e,t),i={default:1});if(r)for(const f in n)!ds(f)&&i[f]==null&&delete n[f]},z=Qn;function Ir(e){return Mn(e)}function Mn(e,t){const s=Ht();s.__VUE__=!0;const{insert:l,remove:n,patchProp:r,createElement:i,createText:f,createComment:u,setText:h,setElementText:a,parentNode:d,nextSibling:_,setScopeId:x=Be,insertStaticContent:A}=e,B=(o,c,g,m=null,p=null,y=null,T=void 0,C=null,F=!!c.dynamicChildren)=>{if(o===c)return;o&&!_e(o,c)&&(m=pt(o),xe(o,p,y,!0),o=null),c.patchFlag===-2&&(F=!1,c.dynamicChildren=null);const{type:b,ref:S,shapeFlag:k}=c;switch(b){case Lt:L(o,c,g,m);break;case ee:$(o,c,g,m);break;case qt:o==null&&v(c,g,m,T);break;case he:X(o,c,g,m,p,y,T,C,F);break;default:k&1?E(o,c,g,m,p,y,T,C,F):k&6?te(o,c,g,m,p,y,T,C,F):(k&64||k&128)&&b.process(o,c,g,m,p,y,T,C,F,Qe)}S!=null&&p?lt(S,o&&o.ref,y,c||o,!c):S==null&&o&&o.ref!=null&<(o.ref,null,y,o,!0)},L=(o,c,g,m)=>{if(o==null)l(c.el=f(c.children),g,m);else{const p=c.el=o.el;c.children!==o.children&&h(p,c.children)}},$=(o,c,g,m)=>{o==null?l(c.el=u(c.children||""),g,m):c.el=o.el},v=(o,c,g,m)=>{[o.el,o.anchor]=A(o.children,c,g,m,o.el,o.anchor)},P=({el:o,anchor:c},g,m)=>{let p;for(;o&&o!==c;)p=_(o),l(o,g,m),o=p;l(c,g,m)},O=({el:o,anchor:c})=>{let g;for(;o&&o!==c;)g=_(o),n(o),o=g;n(c)},E=(o,c,g,m,p,y,T,C,F)=>{c.type==="svg"?T="svg":c.type==="math"&&(T="mathml"),o==null?M(c,g,m,p,y,T,C,F):I(o,c,p,y,T,C,F)},M=(o,c,g,m,p,y,T,C)=>{let F,b;const{props:S,shapeFlag:k,transition:w,dirs:N}=o;if(F=o.el=i(o.type,y,S&&S.is,S),k&8?a(F,o.children):k&16&&U(o.children,F,null,m,p,Wt(o,y),T,C),N&&Ne(o,null,m,"created"),j(F,o,o.scopeId,T,m),S){for(const Y in S)Y!=="value"&&!tt(Y)&&r(F,Y,null,S[Y],y,m);"value"in S&&r(F,"value",null,S.value,y),(b=S.onVnodeBeforeMount)&&ye(b,m,o)}N&&Ne(o,null,m,"beforeMount");const R=wn(p,w);R&&w.beforeEnter(F),l(F,c,g),((b=S&&S.onVnodeMounted)||R||N)&&z(()=>{b&&ye(b,m,o),R&&w.enter(F),N&&Ne(o,null,m,"mounted")},p)},j=(o,c,g,m,p)=>{if(g&&x(o,g),m)for(let y=0;y{for(let b=F;b{const C=c.el=o.el;let{patchFlag:F,dynamicChildren:b,dirs:S}=c;F|=o.patchFlag&16;const k=o.props||q,w=c.props||q;let N;if(g&&$e(g,!1),(N=w.onVnodeBeforeUpdate)&&ye(N,g,c,o),S&&Ne(c,o,g,"beforeUpdate"),g&&$e(g,!0),(k.innerHTML&&w.innerHTML==null||k.textContent&&w.textContent==null)&&a(C,""),b?H(o.dynamicChildren,b,C,g,m,Wt(c,p),y):T||J(o,c,C,null,g,m,Wt(c,p),y,!1),F>0){if(F&16)D(C,k,w,g,p);else if(F&2&&k.class!==w.class&&r(C,"class",null,w.class,p),F&4&&r(C,"style",k.style,w.style,p),F&8){const R=c.dynamicProps;for(let Y=0;Y{N&&ye(N,g,c,o),S&&Ne(c,o,g,"updated")},m)},H=(o,c,g,m,p,y,T)=>{for(let C=0;C{if(c!==g){if(c!==q)for(const y in c)!tt(y)&&!(y in g)&&r(o,y,c[y],null,p,m);for(const y in g){if(tt(y))continue;const T=g[y],C=c[y];T!==C&&y!=="value"&&r(o,y,C,T,p,m)}"value"in g&&r(o,"value",c.value,g.value,p)}},X=(o,c,g,m,p,y,T,C,F)=>{const b=c.el=o?o.el:f(""),S=c.anchor=o?o.anchor:f("");let{patchFlag:k,dynamicChildren:w,slotScopeIds:N}=c;N&&(C=C?C.concat(N):N),o==null?(l(b,g,m),l(S,g,m),U(c.children||[],g,S,p,y,T,C,F)):k>0&&k&64&&w&&o.dynamicChildren?(H(o.dynamicChildren,w,g,p,y,T,C),(c.key!=null||p&&c===p.subTree)&&gs(o,c,!0)):J(o,c,g,S,p,y,T,C,F)},te=(o,c,g,m,p,y,T,C,F)=>{c.slotScopeIds=C,o==null?c.shapeFlag&512?p.ctx.activate(c,g,m,T,F):ne(c,g,m,p,y,T,F):Ae(o,c,F)},ne=(o,c,g,m,p,y,T)=>{const C=o.component=nr(o,m,p);if(St(o)&&(C.ctx.renderer=Qe),rr(C,!1,T),C.asyncDep){if(p&&p.registerDep(C,Z,T),!o.el){const F=C.subTree=oe(ee);$(null,F,c,g),o.placeholder=F.el}}else Z(C,o,c,g,p,y,T)},Ae=(o,c,g)=>{const m=c.component=o.component;if(Kn(o,c,g))if(m.asyncDep&&!m.asyncResolved){G(m,c,g);return}else m.next=c,m.update();else c.el=o.el,m.vnode=c},Z=(o,c,g,m,p,y,T)=>{const C=()=>{if(o.isMounted){let{next:k,bu:w,u:N,parent:R,vnode:Y}=o;{const Ce=vl(o);if(Ce){k&&(k.el=Y.el,G(o,k,T)),Ce.asyncDep.then(()=>{o.isUnmounted||C()});return}}let W=k,fe;$e(o,!1),k?(k.el=Y.el,G(o,k,T)):k=Y,w&&et(w),(fe=k.props&&k.props.onVnodeBeforeUpdate)&&ye(fe,R,k,Y),$e(o,!0);const ce=Hs(o),Fe=o.subTree;o.subTree=ce,B(Fe,ce,d(Fe.el),pt(Fe),o,p,y),k.el=ce.el,W===null&&ys(o,ce.el),N&&z(N,p),(fe=k.props&&k.props.onVnodeUpdated)&&z(()=>ye(fe,R,k,Y),p)}else{let k;const{el:w,props:N}=c,{bm:R,m:Y,parent:W,root:fe,type:ce}=o,Fe=Le(c);$e(o,!1),R&&et(R),!Fe&&(k=N&&N.onVnodeBeforeMount)&&ye(k,W,c),$e(o,!0);{fe.ce&&fe.ce._def.shadowRoot!==!1&&fe.ce._injectChildStyle(ce);const Ce=o.subTree=Hs(o);B(null,Ce,g,m,o,p,y),c.el=Ce.el}if(Y&&z(Y,p),!Fe&&(k=N&&N.onVnodeMounted)){const Ce=c;z(()=>ye(k,W,Ce),p)}(c.shapeFlag&256||W&&Le(W.vnode)&&W.vnode.shapeFlag&256)&&o.a&&z(o.a,p),o.isMounted=!0,c=g=m=null}};o.scope.on();const F=o.effect=new jl(C);o.scope.off();const b=o.update=F.run.bind(F),S=o.job=F.runIfDirty.bind(F);S.i=o,S.id=o.uid,F.scheduler=()=>os(S),$e(o,!0),b()},G=(o,c,g)=>{c.component=o;const m=o.vnode.props;o.vnode=c,o.next=null,An(o,c.props,m,g),Pn(o,c.children,g),Ue(),Ts(o),je()},J=(o,c,g,m,p,y,T,C,F=!1)=>{const b=o&&o.children,S=o?o.shapeFlag:0,k=c.children,{patchFlag:w,shapeFlag:N}=c;if(w>0){if(w&128){gt(b,k,g,m,p,y,T,C,F);return}else if(w&256){He(b,k,g,m,p,y,T,C,F);return}}N&8?(S&16&&Ye(b,p,y),k!==b&&a(g,k)):S&16?N&16?gt(b,k,g,m,p,y,T,C,F):Ye(b,p,y,!0):(S&8&&a(g,""),N&16&&U(k,g,m,p,y,T,C,F))},He=(o,c,g,m,p,y,T,C,F)=>{o=o||Ke,c=c||Ke;const b=o.length,S=c.length,k=Math.min(b,S);let w;for(w=0;wS?Ye(o,p,y,!0,!1,k):U(c,g,m,p,y,T,C,F,k)},gt=(o,c,g,m,p,y,T,C,F)=>{let b=0;const S=c.length;let k=o.length-1,w=S-1;for(;b<=k&&b<=w;){const N=o[b],R=c[b]=F?we(c[b]):be(c[b]);if(_e(N,R))B(N,R,g,null,p,y,T,C,F);else break;b++}for(;b<=k&&b<=w;){const N=o[k],R=c[w]=F?we(c[w]):be(c[w]);if(_e(N,R))B(N,R,g,null,p,y,T,C,F);else break;k--,w--}if(b>k){if(b<=w){const N=w+1,R=Nw)for(;b<=k;)xe(o[b],p,y,!0),b++;else{const N=b,R=b,Y=new Map;for(b=R;b<=w;b++){const de=c[b]=F?we(c[b]):be(c[b]);de.key!=null&&Y.set(de.key,b)}let W,fe=0;const ce=w-R+1;let Fe=!1,Ce=0;const Xe=new Array(ce);for(b=0;b=ce){xe(de,p,y,!0);continue}let Te;if(de.key!=null)Te=Y.get(de.key);else for(W=R;W<=w;W++)if(Xe[W-R]===0&&_e(de,c[W])){Te=W;break}Te===void 0?xe(de,p,y,!0):(Xe[Te-R]=b+1,Te>=Ce?Ce=Te:Fe=!0,B(de,c[Te],g,null,p,y,T,C,F),fe++)}const xs=Fe?Hn(Xe):Ke;for(W=xs.length-1,b=ce-1;b>=0;b--){const de=R+b,Te=c[de],Fs=c[de+1],Cs=de+1{const{el:y,type:T,transition:C,children:F,shapeFlag:b}=o;if(b&6){Se(o.component.subTree,c,g,m);return}if(b&128){o.suspense.move(c,g,m);return}if(b&64){T.move(o,c,g,Qe);return}if(T===he){l(y,c,g);for(let k=0;kC.enter(y),p);else{const{leave:k,delayLeave:w,afterLeave:N}=C,R=()=>{o.ctx.isUnmounted?n(y):l(y,c,g)},Y=()=>{y._isLeaving&&y[Ie](!0),k(y,()=>{R(),N&&N()})};w?w(y,R,Y):Y()}else l(y,c,g)},xe=(o,c,g,m=!1,p=!1)=>{const{type:y,props:T,ref:C,children:F,dynamicChildren:b,shapeFlag:S,patchFlag:k,dirs:w,cacheIndex:N}=o;if(k===-2&&(p=!1),C!=null&&(Ue(),lt(C,null,g,o,!0),je()),N!=null&&(c.renderCache[N]=void 0),S&256){c.ctx.deactivate(o);return}const R=S&1&&w,Y=!Le(o);let W;if(Y&&(W=T&&T.onVnodeBeforeUnmount)&&ye(W,c,o),S&6)Sl(o.component,g,m);else{if(S&128){o.suspense.unmount(g,m);return}R&&Ne(o,null,c,"beforeUnmount"),S&64?o.type.remove(o,c,g,Qe,m):b&&!b.hasOnce&&(y!==he||k>0&&k&64)?Ye(b,c,g,!1,!0):(y===he&&k&384||!p&&S&16)&&Ye(F,c,g),m&&bs(o)}(Y&&(W=T&&T.onVnodeUnmounted)||R)&&z(()=>{W&&ye(W,c,o),R&&Ne(o,null,c,"unmounted")},g)},bs=o=>{const{type:c,el:g,anchor:m,transition:p}=o;if(c===he){Hl(g,m);return}if(c===qt){O(o);return}const y=()=>{n(g),p&&!p.persisted&&p.afterLeave&&p.afterLeave()};if(o.shapeFlag&1&&p&&!p.persisted){const{leave:T,delayLeave:C}=p,F=()=>T(g,y);C?C(o.el,y,F):F()}else y()},Hl=(o,c)=>{let g;for(;o!==c;)g=_(o),n(o),o=g;n(c)},Sl=(o,c,g)=>{const{bum:m,scope:p,job:y,subTree:T,um:C,m:F,a:b}=o;It(F),It(b),m&&et(m),p.stop(),y&&(y.flags|=8,xe(T,o,c,g)),C&&z(C,c),z(()=>{o.isUnmounted=!0},c)},Ye=(o,c,g,m=!1,p=!1,y=0)=>{for(let T=y;T{if(o.shapeFlag&6)return pt(o.component.subTree);if(o.shapeFlag&128)return o.suspense.next();const c=_(o.anchor||o.el),g=c&&c[zs];return g?_(g):c};let Ut=!1;const _s=(o,c,g)=>{o==null?c._vnode&&xe(c._vnode,null,null,!0):B(c._vnode||null,o,c,null,null,null,g),c._vnode=o,Ut||(Ut=!0,Ts(),Qs(),Ut=!1)},Qe={p:B,um:xe,m:Se,r:bs,mt:ne,mc:U,pc:J,pbc:H,n:pt,o:e};return{render:_s,hydrate:void 0,createApp:vn(_s)}}function Wt({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function $e({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gs(e,t,s=!1){const l=e.children,n=t.children;if(K(l)&&K(n))for(let r=0;r>1,e[s[f]]0&&(t[l]=s[r-1]),s[r]=l)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function vl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:vl(t)}function It(e){if(e)for(let t=0;txt(Sn);function Br(e,t){return ps(e,null,t)}function Ft(e,t,s){return ps(e,t,s)}function ps(e,t,s=q){const{immediate:l,deep:n,flush:r,once:i}=s,f=ae({},s),u=t&&l||!t&&r!=="post";let h;if(ft){if(r==="sync"){const x=Nn();h=x.__watcherHandles||(x.__watcherHandles=[])}else if(!u){const x=()=>{};return x.stop=Be,x.resume=Be,x.pause=Be,x}}const a=le;f.call=(x,A,B)=>Ee(x,a,A,B);let d=!1;r==="post"?f.scheduler=x=>{z(x,a&&a.suspense)}:r!=="sync"&&(d=!0,f.scheduler=(x,A)=>{A?x():os(x)}),f.augmentJob=x=>{t&&(x.flags|=4),d&&(x.flags|=2,a&&(x.id=a.uid,x.i=a))};const _=$l(e,t,f);return ft&&(h?h.push(_):u&&_()),_}function $n(e,t,s){const l=this.proxy,n=me(e)?e.includes(".")?kl(l,e):()=>l[e]:e.bind(l,l);let r;V(t)?r=t:(r=t.handler,s=t);const i=ht(this),f=ps(n,r.bind(l),s);return i(),f}function kl(e,t){const s=t.split(".");return()=>{let l=e;for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ke(t)}Modifiers`]||e[`${ct(t)}Modifiers`];function Vn(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||q;let n=s;const r=t.startsWith("update:"),i=r&&Ln(l,t.slice(7));i&&(i.trim&&(n=s.map(a=>me(a)?a.trim():a)),i.number&&(n=s.map(ql)));let f,u=l[f=jt(t)]||l[f=jt(ke(t))];!u&&r&&(u=l[f=jt(ct(t))]),u&&Ee(u,e,6,n);const h=l[f+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,Ee(h,e,6,n)}}const Un=new WeakMap;function El(e,t,s=!1){const l=s?Un:t.emitsCache,n=l.get(e);if(n!==void 0)return n;const r=e.emits;let i={},f=!1;if(!V(e)){const u=h=>{const a=El(h,t,!0);a&&(f=!0,ae(i,a))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!f?(ge(e)&&l.set(e,null),null):(K(r)?r.forEach(u=>i[u]=null):ae(i,r),ge(e)&&l.set(e,i),i)}function $t(e,t){return!e||!is(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ct(t))||Q(e,t))}function Hs(e){const{type:t,vnode:s,proxy:l,withProxy:n,propsOptions:[r],slots:i,attrs:f,emit:u,render:h,renderCache:a,props:d,data:_,setupState:x,ctx:A,inheritAttrs:B}=e,L=kt(e);let $,v;try{if(s.shapeFlag&4){const O=n||l,E=O;$=be(h.call(E,O,a,d,x,_,A)),v=f}else{const O=t;$=be(O.length>1?O(d,{attrs:f,slots:i,emit:u}):O(d,null)),v=t.props?f:Dn(f)}}catch(O){rt.length=0,at(O,e,1),$=oe(ee)}let P=$;if(v&&B!==!1){const O=Object.keys(v),{shapeFlag:E}=P;O.length&&E&7&&(r&&O.some(qs)&&(v=Rn(v,r)),P=Oe(P,v,!1,!0))}return s.dirs&&(P=Oe(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&Ge(P,s.transition),$=P,kt(L),$}function jn(e,t=!0){let s;for(let l=0;l{let t;for(const s in e)(s==="class"||s==="style"||is(s))&&((t||(t={}))[s]=e[s]);return t},Rn=(e,t)=>{const s={};for(const l in e)(!qs(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Kn(e,t,s){const{props:l,children:n,component:r}=e,{props:i,children:f,patchFlag:u}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return l?Ss(l,i,h):!!i;if(u&8){const a=t.dynamicProps;for(let d=0;de.__isSuspense;let ts=0;const Wn={name:"Suspense",__isSuspense:!0,process(e,t,s,l,n,r,i,f,u,h){if(e==null)qn(t,s,l,n,r,i,f,u,h);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Gn(e,t,s,l,n,i,f,u,h)}},hydrate:Jn,normalize:Yn},Or=Wn;function ot(e,t){const s=e.props&&e.props[t];V(s)&&s()}function qn(e,t,s,l,n,r,i,f,u){const{p:h,o:{createElement:a}}=u,d=a("div"),_=e.suspense=Al(e,n,l,t,d,s,r,i,f,u);h(null,_.pendingBranch=e.ssContent,d,null,l,_,r,i),_.deps>0?(ot(e,"onPending"),ot(e,"onFallback"),h(null,e.ssFallback,t,s,l,null,r,i),qe(_,e.ssFallback)):_.resolve(!1,!0)}function Gn(e,t,s,l,n,r,i,f,{p:u,um:h,o:{createElement:a}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const _=t.ssContent,x=t.ssFallback,{activeBranch:A,pendingBranch:B,isInFallback:L,isHydrating:$}=d;if(B)d.pendingBranch=_,_e(B,_)?(u(B,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0?d.resolve():L&&($||(u(A,x,s,l,n,null,r,i,f),qe(d,x)))):(d.pendingId=ts++,$?(d.isHydrating=!1,d.activeBranch=B):h(B,n,d),d.deps=0,d.effects.length=0,d.hiddenContainer=a("div"),L?(u(null,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0?d.resolve():(u(A,x,s,l,n,null,r,i,f),qe(d,x))):A&&_e(A,_)?(u(A,_,s,l,n,d,r,i,f),d.resolve(!0)):(u(null,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0&&d.resolve()));else if(A&&_e(A,_))u(A,_,s,l,n,d,r,i,f),qe(d,_);else if(ot(t,"onPending"),d.pendingBranch=_,_.shapeFlag&512?d.pendingId=_.component.suspenseId:d.pendingId=ts++,u(null,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0)d.resolve();else{const{timeout:v,pendingId:P}=d;v>0?setTimeout(()=>{d.pendingId===P&&d.fallback(x)},v):v===0&&d.fallback(x)}}function Al(e,t,s,l,n,r,i,f,u,h,a=!1){const{p:d,m:_,um:x,n:A,o:{parentNode:B,remove:L}}=h;let $;const v=Xn(e);v&&t&&t.pendingBranch&&($=t.pendingId,t.deps++);const P=e.props?Jl(e.props.timeout):void 0,O=r,E={vnode:e,parent:t,parentComponent:s,namespace:i,container:l,hiddenContainer:n,deps:0,pendingId:ts++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!a,isHydrating:a,isUnmounted:!1,effects:[],resolve(M=!1,j=!1){const{vnode:U,activeBranch:I,pendingBranch:H,pendingId:D,effects:X,parentComponent:te,container:ne}=E;let Ae=!1;E.isHydrating?E.isHydrating=!1:M||(Ae=I&&H.transition&&H.transition.mode==="out-in",Ae&&(I.transition.afterLeave=()=>{D===E.pendingId&&(_(H,ne,r===O?A(I):r,0),Gt(X))}),I&&(B(I.el)===ne&&(r=A(I)),x(I,te,E,!0)),Ae||_(H,ne,r,0)),qe(E,H),E.pendingBranch=null,E.isInFallback=!1;let Z=E.parent,G=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...X),G=!0;break}Z=Z.parent}!G&&!Ae&&Gt(X),E.effects=[],v&&t&&t.pendingBranch&&$===t.pendingId&&(t.deps--,t.deps===0&&!j&&t.resolve()),ot(U,"onResolve")},fallback(M){if(!E.pendingBranch)return;const{vnode:j,activeBranch:U,parentComponent:I,container:H,namespace:D}=E;ot(j,"onFallback");const X=A(U),te=()=>{E.isInFallback&&(d(null,M,H,X,I,null,D,f,u),qe(E,M))},ne=M.transition&&M.transition.mode==="out-in";ne&&(U.transition.afterLeave=te),E.isInFallback=!0,x(U,I,null,!0),ne||te()},move(M,j,U){E.activeBranch&&_(E.activeBranch,M,j,U),E.container=M},next(){return E.activeBranch&&A(E.activeBranch)},registerDep(M,j,U){const I=!!E.pendingBranch;I&&E.deps++;const H=M.vnode.el;M.asyncDep.catch(D=>{at(D,M,0)}).then(D=>{if(M.isUnmounted||E.isUnmounted||E.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:X}=M;ns(M,D),H&&(X.el=H);const te=!H&&M.subTree.el;j(M,X,B(H||M.subTree.el),H?null:A(M.subTree),E,i,U),te&&L(te),ys(M,X.el),I&&--E.deps===0&&E.resolve()})},unmount(M,j){E.isUnmounted=!0,E.activeBranch&&x(E.activeBranch,s,M,j),E.pendingBranch&&x(E.pendingBranch,s,M,j)}};return E}function Jn(e,t,s,l,n,r,i,f,u){const h=t.suspense=Al(t,l,s,e.parentNode,document.createElement("div"),null,n,r,i,f,!0),a=u(e,h.pendingBranch=t.ssContent,s,h,r,i);return h.deps===0&&h.resolve(!1,!0),a}function Yn(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Ns(l?s.default:s),e.ssFallback=l?Ns(s.fallback):oe(ee)}function Ns(e){let t;if(V(e)){const s=Je&&e._c;s&&(e._d=!1,Ot()),e=e(),s&&(e._d=!0,t=ue,Il())}return K(e)&&(e=jn(e)),e=be(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Qn(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):Gt(e)}function qe(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;s.el=n,l&&l.subTree===s&&(l.vnode.el=n,ys(l,n))}function Xn(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const he=Symbol.for("v-fgt"),Lt=Symbol.for("v-txt"),ee=Symbol.for("v-cmt"),qt=Symbol.for("v-stc"),rt=[];let ue=null;function Ot(e=!1){rt.push(ue=e?null:[])}function Il(){rt.pop(),ue=rt[rt.length-1]||null}let Je=1;function Pt(e,t=!1){Je+=e,e<0&&ue&&t&&(ue.hasOnce=!0)}function Bl(e){return e.dynamicChildren=Je>0?ue||Ke:null,Il(),Je>0&&ue&&ue.push(e),e}function Pr(e,t,s,l,n,r){return Bl(Pl(e,t,s,l,n,r,!0))}function ss(e,t,s,l,n){return Bl(oe(e,t,s,l,n,!0))}function De(e){return e?e.__v_isVNode===!0:!1}function _e(e,t){return e.type===t.type&&e.key===t.key}const Ol=({key:e})=>e??null,Ct=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?me(e)||Tt(e)||V(e)?{i:se,r:e,k:t,f:!!s}:e:null);function Pl(e,t=null,s=null,l=0,n=null,r=e===he?0:1,i=!1,f=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ol(t),ref:t&&Ct(t),scopeId:Zs,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:l,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:se};return f?(ms(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=me(s)?8:16),Je>0&&!i&&ue&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&ue.push(u),u}const oe=Zn;function Zn(e,t=null,s=null,l=0,n=null,r=!1){if((!e||e===al)&&(e=ee),De(e)){const f=Oe(e,t,!0);return s&&ms(f,s),Je>0&&!r&&ue&&(f.shapeFlag&6?ue[ue.indexOf(e)]=f:ue.push(f)),f.patchFlag=-2,f}if(cr(e)&&(e=e.__vccOpts),t){t=zn(t);let{class:f,style:u}=t;f&&!me(f)&&(t.class=Ds(f)),ge(u)&&(Ls(u)&&!K(u)&&(u=ae({},u)),t.style=Rs(u))}const i=me(e)?1:Bt(e)?128:el(e)?64:ge(e)?4:V(e)?2:0;return Pl(e,t,s,l,n,i,r,!0)}function zn(e){return e?Ls(e)||bl(e)?ae({},e):e:null}function Oe(e,t,s=!1,l=!1){const{props:n,ref:r,patchFlag:i,children:f,transition:u}=e,h=t?tr(n||{},t):n,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Ol(h),ref:t&&t.ref?s&&r?K(r)?r.concat(Ct(t)):[r,Ct(t)]:Ct(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Oe(e.ssContent),ssFallback:e.ssFallback&&Oe(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&l&&Ge(a,u.clone(a)),a}function er(e=" ",t=0){return oe(Lt,null,e,t)}function Mr(e="",t=!1){return t?(Ot(),ss(ee,null,e)):oe(ee,null,e)}function be(e){return e==null||typeof e=="boolean"?oe(ee):K(e)?oe(he,null,e.slice()):De(e)?we(e):oe(Lt,null,String(e))}function we(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Oe(e)}function ms(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(K(t))s=16;else if(typeof t=="object")if(l&65){const n=t.default;n&&(n._c&&(n._d=!1),ms(e,n()),n._c&&(n._d=!0));return}else{s=32;const n=t._;!n&&!bl(t)?t._ctx=se:n===3&&se&&(se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:se},s=32):(t=String(t),l&64?(s=16,t=[er(t)]):s=8);e.children=t,e.shapeFlag|=s}function tr(...e){const t={};for(let s=0;sle||se;let Mt,ls;{const e=Ht(),t=(s,l)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(l),r=>{n.length>1?n.forEach(i=>i(r)):n[0](r)}};Mt=t("__VUE_INSTANCE_SETTERS__",s=>le=s),ls=t("__VUE_SSR_SETTERS__",s=>ft=s)}const ht=e=>{const t=le;return Mt(e),e.scope.on(),()=>{e.scope.off(),Mt(t)}},$s=()=>{le&&le.scope.off(),Mt(null)};function Ml(e){return e.vnode.shapeFlag&4}let ft=!1;function rr(e,t=!1,s=!1){t&&ls(t);const{props:l,children:n}=e.vnode,r=Ml(e);En(e,l,r,t),On(e,n,s||t);const i=r?ir(e,t):void 0;return t&&ls(!1),i}function ir(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mn);const{setup:l}=s;if(l){Ue();const n=e.setupContext=l.length>1?fr(e):null,r=ht(e),i=ut(l,e,0,[e.props,n]),f=js(i);if(je(),r(),(f||e.sp)&&!Le(e)&&ol(e),f){if(i.then($s,$s),t)return i.then(u=>{ns(e,u)}).catch(u=>{at(u,e,0)});e.asyncDep=i}else ns(e,i)}else wl(e)}function ns(e,t,s){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Vs(t)),wl(e)}function wl(e,t,s){const l=e.type;e.render||(e.render=l.render||Be);{const n=ht(e);Ue();try{bn(e)}finally{je(),n()}}}const or={get(e,t){return Us(e,"get",""),e[t]}};function fr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,or),slots:e.slots,emit:e.emit,expose:t}}function Vt(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vs(Vl(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in nt)return nt[s](e)},has(t,s){return s in t||s in nt}})):e.proxy}function rs(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function cr(e){return V(e)&&"__vccOpts"in e}const ur=(e,t)=>Nl(e,t,ft);function wr(e,t,s){try{Pt(-1);const l=arguments.length;return l===2?ge(t)&&!K(t)?De(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&De(s)&&(s=[s]),oe(e,t,s))}finally{Pt(1)}}const ar="3.5.22";export{Cr as A,ln as B,Pr as C,Ot as D,en as E,he as F,ss as G,Mr as H,Tr as I,er as J,Fr as K,on as L,fn as M,ee as N,yr as O,Oe as P,Lt as Q,ul as R,Or as S,mr as T,kr as U,vr as V,br as a,il as b,Ir as c,oe as d,Ee as e,ur as f,dt as g,wr as h,xt as i,Br as j,Ar as k,fs as l,_r as m,Zl as n,cl as o,tr as p,De as q,Yt as r,Ge as s,xr as t,sn as u,un as v,Ft as w,cs as x,kn as y,Er as z};
diff --git a/js/@vue_runtime-core@3.5.22-0v1MMfjG.js.gz b/js/@vue_runtime-core@3.5.22-0v1MMfjG.js.gz
deleted file mode 100644
index 5f827ebc..00000000
Binary files a/js/@vue_runtime-core@3.5.22-0v1MMfjG.js.gz and /dev/null differ
diff --git a/js/@vue_runtime-core@3.5.25-CyFcdXRD.js b/js/@vue_runtime-core@3.5.25-CyFcdXRD.js
new file mode 100644
index 00000000..8df50bdc
--- /dev/null
+++ b/js/@vue_runtime-core@3.5.25-CyFcdXRD.js
@@ -0,0 +1 @@
+import{c as Nl,w as $l,i as Ls,a as Tt,s as Ll,p as Vs,m as Vl,b as je,r as Ue,t as wt,E as jl,R as Ul,d as Dl,e as js,g as Rl,h as Kl,j as Wl}from"./@vue_reactivity@3.5.25-CWykDyL9.js";import{i as j,n as Us,b as K,E as J,e as ae,o as me,p as Ds,a as ge,q as Rs,s as is,u as Ke,r as Ks,v as Ht,N as Ie,w as Ws,x as et,c as Q,y as tt,z as ke,A as ql,B as Ut,C as ct,j as Gl,D as qs,F as Gs,G as Jl,H as Yl,d as Ql}from"./@vue_shared@3.5.25-ClSOc5xY.js";function ut(e,t,s,l){try{return l?e(...l):e()}catch(n){at(n,t,s)}}function Ee(e,t,s,l){if(j(e)){const n=ut(e,t,s,l);return n&&Us(n)&&n.catch(r=>{at(r,t,s)}),n}if(K(e)){const n=[];for(let r=0;r>>1,n=ie[l],r=it(n);r=it(s)?ie.push(e):ie.splice(zl(t),0,e),e.flags|=1,Ys()}}function Ys(){vt||(vt=Js.then(Xs))}function Gt(e){K(e)?We.push(...e):Pe&&e.id===-1?Pe.splice(Re+1,0,e):e.flags&1||(We.push(e),e.flags|=1),Ys()}function Ts(e,t,s=ve+1){for(;sit(s)-it(l));if(We.length=0,Pe){Pe.push(...t);return}for(Pe=t,Re=0;Ree.id==null?e.flags&2?-1:1/0:e.id;function Xs(e){try{for(ve=0;ve{l._d&&Pt(-1);const r=kt(t);let i;try{i=e(...n)}finally{kt(r),l._d&&Pt(1)}return i};return l._n=!0,l._c=!0,l._d=!0,l}function yr(e,t){if(se===null)return e;const s=Vt(se),l=e.dirs||(e.dirs=[]);for(let n=0;ne.__isTeleport,st=e=>e&&(e.disabled||e.disabled===""),vs=e=>e&&(e.defer||e.defer===""),ks=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Es=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Jt=(e,t)=>{const s=e&&e.to;return me(s)?t?t(s):null:s},tl={name:"Teleport",__isTeleport:!0,process(e,t,s,l,n,r,i,f,u,g){const{mc:a,pc:d,pbc:_,o:{insert:x,querySelector:A,createText:B,createComment:L}}=g,$=st(t.props);let{shapeFlag:v,children:P,dynamicChildren:O}=t;if(e==null){const E=t.el=B(""),M=t.anchor=B("");x(E,s,l),x(M,s,l);const U=(I,H)=>{v&16&&a(P,I,H,n,r,i,f,u)},V=()=>{const I=t.target=Jt(t.props,A),H=sl(I,t,B,x);I&&(i!=="svg"&&ks(I)?i="svg":i!=="mathml"&&Es(I)&&(i="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(I),$||(U(I,H),_t(t,!1)))};$&&(U(s,M),_t(t,!0)),vs(t.props)?(t.el.__isMounted=!1,z(()=>{V(),delete t.el.__isMounted},r)):V()}else{if(vs(t.props)&&e.el.__isMounted===!1){z(()=>{tl.process(e,t,s,l,n,r,i,f,u,g)},r);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,M=t.target=e.target,U=t.targetAnchor=e.targetAnchor,V=st(e.props),I=V?s:M,H=V?E:U;if(i==="svg"||ks(M)?i="svg":(i==="mathml"||Es(M))&&(i="mathml"),O?(_(e.dynamicChildren,O,I,n,r,i,f),ys(e,t,!0)):u||d(e,t,I,H,n,r,i,f,!1),$)V?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):yt(t,s,E,g,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=Jt(t.props,A);D&&yt(t,D,null,g,0)}else V&&yt(t,M,U,g,1);_t(t,$)}},remove(e,t,s,{um:l,o:{remove:n}},r){const{shapeFlag:i,children:f,anchor:u,targetStart:g,targetAnchor:a,target:d,props:_}=e;if(d&&(n(g),n(a)),r&&n(u),i&16){const x=r||!st(_);for(let A=0;A{e.isMounted=!0}),cs(()=>{e.isUnmounting=!0}),e}const pe=[Function,Array],ln={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pe,onEnter:pe,onAfterEnter:pe,onEnterCancelled:pe,onBeforeLeave:pe,onLeave:pe,onAfterLeave:pe,onLeaveCancelled:pe,onBeforeAppear:pe,onAppear:pe,onAfterAppear:pe,onAppearCancelled:pe},ll=e=>{const t=e.subTree;return t.component?ll(t.component):t},nn={name:"BaseTransition",props:ln,setup(e,{slots:t}){const s=dt(),l=sn();return()=>{const n=t.default&&il(t.default(),!0);if(!n||!n.length)return;const r=nl(n),i=wt(e),{mode:f}=i;if(l.isLeaving)return Dt(r);const u=As(r);if(!u)return Dt(r);let g=Yt(u,i,l,s,d=>g=d);u.type!==ee&&Ge(u,g);let a=s.subTree&&As(s.subTree);if(a&&a.type!==ee&&!_e(a,u)&&ll(s).type!==ee){let d=Yt(a,i,l,s);if(Ge(a,d),f==="out-in"&&u.type!==ee)return l.isLeaving=!0,d.afterLeave=()=>{l.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,a=void 0},Dt(r);f==="in-out"&&u.type!==ee?d.delayLeave=(_,x,A)=>{const B=rl(l,a);B[String(a.key)]=a,_[Ae]=()=>{x(),_[Ae]=void 0,delete g.delayedLeave,a=void 0},g.delayedLeave=()=>{A(),delete g.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return r}}};function nl(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==ee){t=s;break}}return t}const br=nn;function rl(e,t){const{leavingVNodes:s}=e;let l=s.get(t.type);return l||(l=Object.create(null),s.set(t.type,l)),l}function Yt(e,t,s,l,n){const{appear:r,mode:i,persisted:f=!1,onBeforeEnter:u,onEnter:g,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:_,onLeave:x,onAfterLeave:A,onLeaveCancelled:B,onBeforeAppear:L,onAppear:$,onAfterAppear:v,onAppearCancelled:P}=t,O=String(e.key),E=rl(s,e),M=(I,H)=>{I&&Ee(I,l,9,H)},U=(I,H)=>{const D=H[1];M(I,H),K(I)?I.every(X=>X.length<=1)&&D():I.length<=1&&D()},V={mode:i,persisted:f,beforeEnter(I){let H=u;if(!s.isMounted)if(r)H=L||u;else return;I[Ae]&&I[Ae](!0);const D=E[O];D&&_e(e,D)&&D.el[Ae]&&D.el[Ae](),M(H,[I])},enter(I){let H=g,D=a,X=d;if(!s.isMounted)if(r)H=$||g,D=v||a,X=P||d;else return;let te=!1;const ne=I[mt]=we=>{te||(te=!0,we?M(X,[I]):M(D,[I]),V.delayedLeave&&V.delayedLeave(),I[mt]=void 0)};H?U(H,[I,ne]):ne()},leave(I,H){const D=String(e.key);if(I[mt]&&I[mt](!0),s.isUnmounting)return H();M(_,[I]);let X=!1;const te=I[Ae]=ne=>{X||(X=!0,H(),ne?M(B,[I]):M(A,[I]),I[Ae]=void 0,E[D]===e&&delete E[D])};E[D]=e,x?U(x,[I,te]):te()},clone(I){const H=Yt(I,t,s,l,n);return n&&n(H),H}};return V}function Dt(e){if(St(e))return e=Be(e),e.children=null,e}function As(e){if(!St(e))return el(e.type)&&e.children?nl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&j(s.default))return s.default()}}function Ge(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ge(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function il(e,t=!1,s){let l=[],n=0;for(let r=0;r1)for(let r=0;rs.value,set:r=>s.value=r})}return s}const Et=new WeakMap;function lt(e,t,s,l,n=!1){if(K(e)){e.forEach((A,B)=>lt(A,t&&(K(t)?t[B]:t),s,l,n));return}if(Le(l)&&!n){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&<(e,t,s,l.component.subTree);return}const r=l.shapeFlag&4?Vt(l.component):l.el,i=n?null:r,{i:f,r:u}=e,g=t&&t.r,a=f.refs===J?f.refs={}:f.refs,d=f.setupState,_=wt(d),x=d===J?Ws:A=>Q(_,A);if(g!=null&&g!==u){if(Is(t),me(g))a[g]=null,x(g)&&(d[g]=null);else if(Tt(g)){g.value=null;const A=t;A.k&&(a[A.k]=null)}}if(j(u))ut(u,f,12,[i,a]);else{const A=me(u),B=Tt(u);if(A||B){const L=()=>{if(e.f){const $=A?x(u)?d[u]:a[u]:u.value;if(n)K($)&&Ks($,r);else if(K($))$.includes(r)||$.push(r);else if(A)a[u]=[r],x(u)&&(d[u]=a[u]);else{const v=[r];u.value=v,e.k&&(a[e.k]=v)}}else A?(a[u]=i,x(u)&&(d[u]=i)):B&&(u.value=i,e.k&&(a[e.k]=i))};if(i){const $=()=>{L(),Et.delete(e)};$.id=-1,Et.set(e,$),z($,s)}else Is(e),L()}}}function Is(e){const t=Et.get(e);t&&(t.flags|=8,Et.delete(e))}Ht().requestIdleCallback;Ht().cancelIdleCallback;const Le=e=>!!e.type.__asyncLoader,St=e=>e.type.__isKeepAlive,rn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=dt(),l=s.ctx;if(!l.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const n=new Map,r=new Set;let i=null;const f=s.suspense,{renderer:{p:u,m:g,um:a,o:{createElement:d}}}=l,_=d("div");l.activate=(v,P,O,E,M)=>{const U=v.component;g(v,P,O,0,f),u(U.vnode,v,P,O,U,f,E,v.slotScopeIds,M),z(()=>{U.isDeactivated=!1,U.a&&et(U.a);const V=v.props&&v.props.onVnodeMounted;V&&ye(V,U.parent,v)},f)},l.deactivate=v=>{const P=v.component;It(P.m),It(P.a),g(v,_,null,1,f),z(()=>{P.da&&et(P.da);const O=v.props&&v.props.onVnodeUnmounted;O&&ye(O,P.parent,v),P.isDeactivated=!0},f)};function x(v){Rt(v),a(v,s,f,!0)}function A(v){n.forEach((P,O)=>{const E=rs(P.type);E&&!v(E)&&B(O)})}function B(v){const P=n.get(v);P&&(!i||!_e(P,i))?x(P):i&&Rt(i),n.delete(v),r.delete(v)}Ft(()=>[e.include,e.exclude],([v,P])=>{v&&A(O=>Ze(v,O)),P&&A(O=>!Ze(P,O))},{flush:"post",deep:!0});let L=null;const $=()=>{L!=null&&(Bt(s.subTree.type)?z(()=>{n.set(L,bt(s.subTree))},s.subTree.suspense):n.set(L,bt(s.subTree)))};return fs($),cl($),cs(()=>{n.forEach(v=>{const{subTree:P,suspense:O}=s,E=bt(P);if(v.type===E.type&&v.key===E.key){Rt(E);const M=E.component.da;M&&z(M,O);return}x(v)})}),()=>{if(L=null,!t.default)return i=null;const v=t.default(),P=v[0];if(v.length>1)return i=null,v;if(!De(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let O=bt(P);if(O.type===ee)return i=null,O;const E=O.type,M=rs(Le(O)?O.type.__asyncResolved||{}:E),{include:U,exclude:V,max:I}=e;if(U&&(!M||!Ze(U,M))||V&&M&&Ze(V,M))return O.shapeFlag&=-257,i=O,P;const H=O.key==null?E:O.key,D=n.get(H);return O.el&&(O=Be(O),P.shapeFlag&128&&(P.ssContent=O)),L=H,D?(O.el=D.el,O.component=D.component,O.transition&&Ge(O,O.transition),O.shapeFlag|=512,r.delete(H),r.add(H)):(r.add(H),I&&r.size>parseInt(I,10)&&B(r.values().next().value)),O.shapeFlag|=256,i=O,Bt(P.type)?P:O}}},Fr=rn;function Ze(e,t){return K(e)?e.some(s=>Ze(s,t)):me(e)?e.split(",").includes(t):Yl(e)?(e.lastIndex=0,e.test(t)):!1}function on(e,t){fl(e,"a",t)}function fn(e,t){fl(e,"da",t)}function fl(e,t,s=le){const l=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Nt(t,l,s),s){let n=s.parent;for(;n&&n.parent;)St(n.parent.vnode)&&cn(l,t,s,n),n=n.parent}}function cn(e,t,s,l){const n=Nt(t,e,l,!0);ul(()=>{Ks(l[t],n)},s)}function Rt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function bt(e){return e.shapeFlag&128?e.ssContent:e}function Nt(e,t,s=le,l=!1){if(s){const n=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{je();const f=ht(s),u=Ee(t,s,e,i);return f(),Ue(),u});return l?n.unshift(r):n.push(r),r}}const Oe=e=>(t,s=le)=>{(!ft||e==="sp")&&Nt(e,(...l)=>t(...l),s)},un=Oe("bm"),fs=Oe("m"),an=Oe("bu"),cl=Oe("u"),cs=Oe("bum"),ul=Oe("um"),dn=Oe("sp"),hn=Oe("rtg"),gn=Oe("rtc");function pn(e,t=le){Nt("ec",e,t)}const us="components",yn="directives";function Cr(e,t){return as(us,e,!0,t)||e}const al=Symbol.for("v-ndc");function Tr(e){return me(e)?as(us,e,!1)||e:e||al}function vr(e){return as(yn,e)}function as(e,t,s=!0,l=!1){const n=se||le;if(n){const r=n.type;if(e===us){const f=rs(r,!1);if(f&&(f===t||f===ke(t)||f===Gs(ke(t))))return r}const i=Bs(n[e]||r[e],t)||Bs(n.appContext[e],t);return!i&&l?r:i}}function Bs(e,t){return e&&(e[t]||e[ke(t)]||e[Gs(ke(t))])}function kr(e,t,s={},l,n){if(se.ce||se.parent&&Le(se.parent)&&se.parent.ce){const g=Object.keys(s).length>0;return Ot(),ss(he,null,[oe("slot",s,l)],g?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),Ot();const i=r&&dl(r(s)),f=s.key||i&&i.key,u=ss(he,{key:(f&&!Ql(f)?f:`_${t}`)+(!i&&l?"_fb":"")},i||[],i&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),r&&r._c&&(r._d=!0),u}function dl(e){return e.some(t=>De(t)?!(t.type===ee||t.type===he&&!dl(t.children)):!0)?e:null}const Qt=e=>e?Ml(e)?Vt(e):Qt(e.parent):null,nt=ae(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Qt(e.parent),$root:e=>Qt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>gl(e),$forceUpdate:e=>e.f||(e.f=()=>{os(e.update)}),$nextTick:e=>e.n||(e.n=Zl.bind(e.proxy)),$watch:e=>In.bind(e)}),Kt=(e,t)=>e!==J&&!e.__isScriptSetup&&Q(e,t),mn={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:n,props:r,accessCache:i,type:f,appContext:u}=e;if(t[0]!=="$"){const _=i[t];if(_!==void 0)switch(_){case 1:return l[t];case 2:return n[t];case 4:return s[t];case 3:return r[t]}else{if(Kt(l,t))return i[t]=1,l[t];if(n!==J&&Q(n,t))return i[t]=2,n[t];if(Q(r,t))return i[t]=3,r[t];if(s!==J&&Q(s,t))return i[t]=4,s[t];Zt&&(i[t]=0)}}const g=nt[t];let a,d;if(g)return t==="$attrs"&&js(e.attrs,"get",""),g(e);if((a=f.__cssModules)&&(a=a[t]))return a;if(s!==J&&Q(s,t))return i[t]=4,s[t];if(d=u.config.globalProperties,Q(d,t))return d[t]},set({_:e},t,s){const{data:l,setupState:n,ctx:r}=e;return Kt(n,t)?(n[t]=s,!0):l!==J&&Q(l,t)?(l[t]=s,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:n,props:r,type:i}},f){let u;return!!(s[f]||e!==J&&f[0]!=="$"&&Q(e,f)||Kt(t,f)||Q(r,f)||Q(l,f)||Q(nt,f)||Q(n.config.globalProperties,f)||(u=i.__cssModules)&&u[f])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Q(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Xt(e){return K(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Er(e,t){const s=Xt(e);for(const l in t){if(l.startsWith("__skip"))continue;let n=s[l];n?K(n)||j(n)?n=s[l]={type:n,default:t[l]}:n.default=t[l]:n===null&&(n=s[l]={default:t[l]}),n&&t[`__skip_${l}`]&&(n.skipFactory=!0)}return s}let Zt=!0;function bn(e){const t=gl(e),s=e.proxy,l=e.ctx;Zt=!1,t.beforeCreate&&Os(t.beforeCreate,e,"bc");const{data:n,computed:r,methods:i,watch:f,provide:u,inject:g,created:a,beforeMount:d,mounted:_,beforeUpdate:x,updated:A,activated:B,deactivated:L,beforeDestroy:$,beforeUnmount:v,destroyed:P,unmounted:O,render:E,renderTracked:M,renderTriggered:U,errorCaptured:V,serverPrefetch:I,expose:H,inheritAttrs:D,components:X,directives:te,filters:ne}=t;if(g&&_n(g,l,null),i)for(const W in i){const q=i[W];j(q)&&(l[W]=q.bind(s))}if(n){const W=n.call(s,s);ge(W)&&(e.data=Kl(W))}if(Zt=!0,r)for(const W in r){const q=r[W],He=j(q)?q.bind(s,s):j(q.get)?q.get.bind(s,s):Ie,gt=!j(q)&&j(q.set)?q.set.bind(s):Ie,Se=ur({get:He,set:gt});Object.defineProperty(l,W,{enumerable:!0,configurable:!0,get:()=>Se.value,set:xe=>Se.value=xe})}if(f)for(const W in f)hl(f[W],l,s,W);if(u){const W=j(u)?u.call(s):u;Reflect.ownKeys(W).forEach(q=>{kn(q,W[q])})}a&&Os(a,e,"c");function Z(W,q){K(q)?q.forEach(He=>W(He.bind(s))):q&&W(q.bind(s))}if(Z(un,d),Z(fs,_),Z(an,x),Z(cl,A),Z(on,B),Z(fn,L),Z(pn,V),Z(gn,M),Z(hn,U),Z(cs,v),Z(ul,O),Z(dn,I),K(H))if(H.length){const W=e.exposed||(e.exposed={});H.forEach(q=>{Object.defineProperty(W,q,{get:()=>s[q],set:He=>s[q]=He,enumerable:!0})})}else e.exposed||(e.exposed={});E&&e.render===Ie&&(e.render=E),D!=null&&(e.inheritAttrs=D),X&&(e.components=X),te&&(e.directives=te),I&&ol(e)}function _n(e,t,s=Ie){K(e)&&(e=zt(e));for(const l in e){const n=e[l];let r;ge(n)?"default"in n?r=xt(n.from||l,n.default,!0):r=xt(n.from||l):r=xt(n),Tt(r)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[l]=r}}function Os(e,t,s){Ee(K(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function hl(e,t,s,l){let n=l.includes(".")?yl(s,l):()=>s[l];if(me(e)){const r=t[e];j(r)&&Ft(n,r)}else if(j(e))Ft(n,e.bind(s));else if(ge(e))if(K(e))e.forEach(r=>hl(r,t,s,l));else{const r=j(e.handler)?e.handler.bind(s):t[e.handler];j(r)&&Ft(n,r,e)}}function gl(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:n,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,f=r.get(t);let u;return f?u=f:!n.length&&!s&&!l?u=t:(u={},n.length&&n.forEach(g=>At(u,g,i,!0)),At(u,t,i)),ge(t)&&r.set(t,u),u}function At(e,t,s,l=!1){const{mixins:n,extends:r}=t;r&&At(e,r,s,!0),n&&n.forEach(i=>At(e,i,s,!0));for(const i in t)if(!(l&&i==="expose")){const f=xn[i]||s&&s[i];e[i]=f?f(e[i],t[i]):t[i]}return e}const xn={data:Ps,props:Ms,emits:Ms,methods:ze,computed:ze,beforeCreate:re,created:re,beforeMount:re,mounted:re,beforeUpdate:re,updated:re,beforeDestroy:re,beforeUnmount:re,destroyed:re,unmounted:re,activated:re,deactivated:re,errorCaptured:re,serverPrefetch:re,components:ze,directives:ze,watch:Cn,provide:Ps,inject:Fn};function Ps(e,t){return t?e?function(){return ae(j(e)?e.call(this,this):e,j(t)?t.call(this,this):t)}:t:e}function Fn(e,t){return ze(zt(e),zt(t))}function zt(e){if(K(e)){const t={};for(let s=0;s1)return s&&j(t)?t.call(l&&l.proxy):t}}function Ar(){return!!(dt()||Ve)}const En=Symbol.for("v-scx"),An=()=>xt(En);function Ir(e,t){return ds(e,null,t)}function Ft(e,t,s){return ds(e,t,s)}function ds(e,t,s=J){const{immediate:l,deep:n,flush:r,once:i}=s,f=ae({},s),u=t&&l||!t&&r!=="post";let g;if(ft){if(r==="sync"){const x=An();g=x.__watcherHandles||(x.__watcherHandles=[])}else if(!u){const x=()=>{};return x.stop=Ie,x.resume=Ie,x.pause=Ie,x}}const a=le;f.call=(x,A,B)=>Ee(x,a,A,B);let d=!1;r==="post"?f.scheduler=x=>{z(x,a&&a.suspense)}:r!=="sync"&&(d=!0,f.scheduler=(x,A)=>{A?x():os(x)}),f.augmentJob=x=>{t&&(x.flags|=4),d&&(x.flags|=2,a&&(x.id=a.uid,x.i=a))};const _=$l(e,t,f);return ft&&(g?g.push(_):u&&_()),_}function In(e,t,s){const l=this.proxy,n=me(e)?e.includes(".")?yl(l,e):()=>l[e]:e.bind(l,l);let r;j(t)?r=t:(r=t.handler,s=t);const i=ht(this),f=ds(n,r.bind(l),s);return i(),f}function yl(e,t){const s=t.split(".");return()=>{let l=e;for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ke(t)}Modifiers`]||e[`${ct(t)}Modifiers`];function On(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||J;let n=s;const r=t.startsWith("update:"),i=r&&Bn(l,t.slice(7));i&&(i.trim&&(n=s.map(a=>me(a)?a.trim():a)),i.number&&(n=s.map(ql)));let f,u=l[f=Ut(t)]||l[f=Ut(ke(t))];!u&&r&&(u=l[f=Ut(ct(t))]),u&&Ee(u,e,6,n);const g=l[f+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,Ee(g,e,6,n)}}const Pn=new WeakMap;function ml(e,t,s=!1){const l=s?Pn:t.emitsCache,n=l.get(e);if(n!==void 0)return n;const r=e.emits;let i={},f=!1;if(!j(e)){const u=g=>{const a=ml(g,t,!0);a&&(f=!0,ae(i,a))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!f?(ge(e)&&l.set(e,null),null):(K(r)?r.forEach(u=>i[u]=null):ae(i,r),ge(e)&&l.set(e,i),i)}function $t(e,t){return!e||!is(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ct(t))||Q(e,t))}function ws(e){const{type:t,vnode:s,proxy:l,withProxy:n,propsOptions:[r],slots:i,attrs:f,emit:u,render:g,renderCache:a,props:d,data:_,setupState:x,ctx:A,inheritAttrs:B}=e,L=kt(e);let $,v;try{if(s.shapeFlag&4){const O=n||l,E=O;$=be(g.call(E,O,a,d,x,_,A)),v=f}else{const O=t;$=be(O.length>1?O(d,{attrs:f,slots:i,emit:u}):O(d,null)),v=t.props?f:wn(f)}}catch(O){rt.length=0,at(O,e,1),$=oe(ee)}let P=$;if(v&&B!==!1){const O=Object.keys(v),{shapeFlag:E}=P;O.length&&E&7&&(r&&O.some(qs)&&(v=Hn(v,r)),P=Be(P,v,!1,!0))}return s.dirs&&(P=Be(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&Ge(P,s.transition),$=P,kt(L),$}function Mn(e,t=!0){let s;for(let l=0;l{let t;for(const s in e)(s==="class"||s==="style"||is(s))&&((t||(t={}))[s]=e[s]);return t},Hn=(e,t)=>{const s={};for(const l in e)(!qs(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Sn(e,t,s){const{props:l,children:n,component:r}=e,{props:i,children:f,patchFlag:u}=t,g=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return l?Hs(l,i,g):!!i;if(u&8){const a=t.dynamicProps;for(let d=0;dObject.create(bl),xl=e=>Object.getPrototypeOf(e)===bl;function Nn(e,t,s,l=!1){const n={},r=_l();e.propsDefaults=Object.create(null),Fl(e,t,n,r);for(const i in e.propsOptions[0])i in n||(n[i]=void 0);s?e.props=l?n:Dl(n):e.type.props?e.props=n:e.props=r,e.attrs=r}function $n(e,t,s,l){const{props:n,attrs:r,vnode:{patchFlag:i}}=e,f=wt(n),[u]=e.propsOptions;let g=!1;if((l||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d{u=!0;const[_,x]=Cl(d,t,!0);ae(i,_),x&&f.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!u)return ge(e)&&l.set(e,Ke),Ke;if(K(r))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",ps=e=>K(e)?e.map(be):[be(e)],Vn=(e,t,s)=>{if(t._n)return t;const l=en((...n)=>ps(t(...n)),s);return l._c=!1,l},Tl=(e,t,s)=>{const l=e._ctx;for(const n in e){if(gs(n))continue;const r=e[n];if(j(r))t[n]=Vn(n,r,l);else if(r!=null){const i=ps(r);t[n]=()=>i}}},vl=(e,t)=>{const s=ps(t);e.slots.default=()=>s},kl=(e,t,s)=>{for(const l in t)(s||!gs(l))&&(e[l]=t[l])},jn=(e,t,s)=>{const l=e.slots=_l();if(e.vnode.shapeFlag&32){const n=t._;n?(kl(l,t,s),s&&Gl(l,"_",n,!0)):Tl(t,l)}else t&&vl(e,t)},Un=(e,t,s)=>{const{vnode:l,slots:n}=e;let r=!0,i=J;if(l.shapeFlag&32){const f=t._;f?s&&f===1?r=!1:kl(n,t,s):(r=!t.$stable,Tl(t,n)),i=t}else t&&(vl(e,t),i={default:1});if(r)for(const f in n)!gs(f)&&i[f]==null&&delete n[f]},z=Qn;function Br(e){return Dn(e)}function Dn(e,t){const s=Ht();s.__VUE__=!0;const{insert:l,remove:n,patchProp:r,createElement:i,createText:f,createComment:u,setText:g,setElementText:a,parentNode:d,nextSibling:_,setScopeId:x=Ie,insertStaticContent:A}=e,B=(o,c,h,b=null,p=null,y=null,T=void 0,C=null,F=!!c.dynamicChildren)=>{if(o===c)return;o&&!_e(o,c)&&(b=pt(o),xe(o,p,y,!0),o=null),c.patchFlag===-2&&(F=!1,c.dynamicChildren=null);const{type:m,ref:S,shapeFlag:k}=c;switch(m){case Lt:L(o,c,h,b);break;case ee:$(o,c,h,b);break;case qt:o==null&&v(c,h,b,T);break;case he:X(o,c,h,b,p,y,T,C,F);break;default:k&1?E(o,c,h,b,p,y,T,C,F):k&6?te(o,c,h,b,p,y,T,C,F):(k&64||k&128)&&m.process(o,c,h,b,p,y,T,C,F,Qe)}S!=null&&p?lt(S,o&&o.ref,y,c||o,!c):S==null&&o&&o.ref!=null&<(o.ref,null,y,o,!0)},L=(o,c,h,b)=>{if(o==null)l(c.el=f(c.children),h,b);else{const p=c.el=o.el;c.children!==o.children&&g(p,c.children)}},$=(o,c,h,b)=>{o==null?l(c.el=u(c.children||""),h,b):c.el=o.el},v=(o,c,h,b)=>{[o.el,o.anchor]=A(o.children,c,h,b,o.el,o.anchor)},P=({el:o,anchor:c},h,b)=>{let p;for(;o&&o!==c;)p=_(o),l(o,h,b),o=p;l(c,h,b)},O=({el:o,anchor:c})=>{let h;for(;o&&o!==c;)h=_(o),n(o),o=h;n(c)},E=(o,c,h,b,p,y,T,C,F)=>{if(c.type==="svg"?T="svg":c.type==="math"&&(T="mathml"),o==null)M(c,h,b,p,y,T,C,F);else{const m=o.el&&o.el._isVueCE?o.el:null;try{m&&m._beginPatch(),I(o,c,p,y,T,C,F)}finally{m&&m._endPatch()}}},M=(o,c,h,b,p,y,T,C)=>{let F,m;const{props:S,shapeFlag:k,transition:w,dirs:N}=o;if(F=o.el=i(o.type,y,S&&S.is,S),k&8?a(F,o.children):k&16&&V(o.children,F,null,b,p,Wt(o,y),T,C),N&&Ne(o,null,b,"created"),U(F,o,o.scopeId,T,b),S){for(const Y in S)Y!=="value"&&!tt(Y)&&r(F,Y,null,S[Y],y,b);"value"in S&&r(F,"value",null,S.value,y),(m=S.onVnodeBeforeMount)&&ye(m,b,o)}N&&Ne(o,null,b,"beforeMount");const R=Rn(p,w);R&&w.beforeEnter(F),l(F,c,h),((m=S&&S.onVnodeMounted)||R||N)&&z(()=>{m&&ye(m,b,o),R&&w.enter(F),N&&Ne(o,null,b,"mounted")},p)},U=(o,c,h,b,p)=>{if(h&&x(o,h),b)for(let y=0;y{for(let m=F;m{const C=c.el=o.el;let{patchFlag:F,dynamicChildren:m,dirs:S}=c;F|=o.patchFlag&16;const k=o.props||J,w=c.props||J;let N;if(h&&$e(h,!1),(N=w.onVnodeBeforeUpdate)&&ye(N,h,c,o),S&&Ne(c,o,h,"beforeUpdate"),h&&$e(h,!0),(k.innerHTML&&w.innerHTML==null||k.textContent&&w.textContent==null)&&a(C,""),m?H(o.dynamicChildren,m,C,h,b,Wt(c,p),y):T||q(o,c,C,null,h,b,Wt(c,p),y,!1),F>0){if(F&16)D(C,k,w,h,p);else if(F&2&&k.class!==w.class&&r(C,"class",null,w.class,p),F&4&&r(C,"style",k.style,w.style,p),F&8){const R=c.dynamicProps;for(let Y=0;Y{N&&ye(N,h,c,o),S&&Ne(c,o,h,"updated")},b)},H=(o,c,h,b,p,y,T)=>{for(let C=0;C{if(c!==h){if(c!==J)for(const y in c)!tt(y)&&!(y in h)&&r(o,y,c[y],null,p,b);for(const y in h){if(tt(y))continue;const T=h[y],C=c[y];T!==C&&y!=="value"&&r(o,y,C,T,p,b)}"value"in h&&r(o,"value",c.value,h.value,p)}},X=(o,c,h,b,p,y,T,C,F)=>{const m=c.el=o?o.el:f(""),S=c.anchor=o?o.anchor:f("");let{patchFlag:k,dynamicChildren:w,slotScopeIds:N}=c;N&&(C=C?C.concat(N):N),o==null?(l(m,h,b),l(S,h,b),V(c.children||[],h,S,p,y,T,C,F)):k>0&&k&64&&w&&o.dynamicChildren?(H(o.dynamicChildren,w,h,p,y,T,C),(c.key!=null||p&&c===p.subTree)&&ys(o,c,!0)):q(o,c,h,S,p,y,T,C,F)},te=(o,c,h,b,p,y,T,C,F)=>{c.slotScopeIds=C,o==null?c.shapeFlag&512?p.ctx.activate(c,h,b,T,F):ne(c,h,b,p,y,T,F):we(o,c,F)},ne=(o,c,h,b,p,y,T)=>{const C=o.component=nr(o,b,p);if(St(o)&&(C.ctx.renderer=Qe),rr(C,!1,T),C.asyncDep){if(p&&p.registerDep(C,Z,T),!o.el){const F=C.subTree=oe(ee);$(null,F,c,h),o.placeholder=F.el}}else Z(C,o,c,h,p,y,T)},we=(o,c,h)=>{const b=c.component=o.component;if(Sn(o,c,h))if(b.asyncDep&&!b.asyncResolved){W(b,c,h);return}else b.next=c,b.update();else c.el=o.el,b.vnode=c},Z=(o,c,h,b,p,y,T)=>{const C=()=>{if(o.isMounted){let{next:k,bu:w,u:N,parent:R,vnode:Y}=o;{const Ce=El(o);if(Ce){k&&(k.el=Y.el,W(o,k,T)),Ce.asyncDep.then(()=>{o.isUnmounted||C()});return}}let G=k,fe;$e(o,!1),k?(k.el=Y.el,W(o,k,T)):k=Y,w&&et(w),(fe=k.props&&k.props.onVnodeBeforeUpdate)&&ye(fe,R,k,Y),$e(o,!0);const ce=ws(o),Fe=o.subTree;o.subTree=ce,B(Fe,ce,d(Fe.el),pt(Fe),o,p,y),k.el=ce.el,G===null&&hs(o,ce.el),N&&z(N,p),(fe=k.props&&k.props.onVnodeUpdated)&&z(()=>ye(fe,R,k,Y),p)}else{let k;const{el:w,props:N}=c,{bm:R,m:Y,parent:G,root:fe,type:ce}=o,Fe=Le(c);$e(o,!1),R&&et(R),!Fe&&(k=N&&N.onVnodeBeforeMount)&&ye(k,G,c),$e(o,!0);{fe.ce&&fe.ce._def.shadowRoot!==!1&&fe.ce._injectChildStyle(ce);const Ce=o.subTree=ws(o);B(null,Ce,h,b,o,p,y),c.el=Ce.el}if(Y&&z(Y,p),!Fe&&(k=N&&N.onVnodeMounted)){const Ce=c;z(()=>ye(k,G,Ce),p)}(c.shapeFlag&256||G&&Le(G.vnode)&&G.vnode.shapeFlag&256)&&o.a&&z(o.a,p),o.isMounted=!0,c=h=b=null}};o.scope.on();const F=o.effect=new Ul(C);o.scope.off();const m=o.update=F.run.bind(F),S=o.job=F.runIfDirty.bind(F);S.i=o,S.id=o.uid,F.scheduler=()=>os(S),$e(o,!0),m()},W=(o,c,h)=>{c.component=o;const b=o.vnode.props;o.vnode=c,o.next=null,$n(o,c.props,b,h),Un(o,c.children,h),je(),Ts(o),Ue()},q=(o,c,h,b,p,y,T,C,F=!1)=>{const m=o&&o.children,S=o?o.shapeFlag:0,k=c.children,{patchFlag:w,shapeFlag:N}=c;if(w>0){if(w&128){gt(m,k,h,b,p,y,T,C,F);return}else if(w&256){He(m,k,h,b,p,y,T,C,F);return}}N&8?(S&16&&Ye(m,p,y),k!==m&&a(h,k)):S&16?N&16?gt(m,k,h,b,p,y,T,C,F):Ye(m,p,y,!0):(S&8&&a(h,""),N&16&&V(k,h,b,p,y,T,C,F))},He=(o,c,h,b,p,y,T,C,F)=>{o=o||Ke,c=c||Ke;const m=o.length,S=c.length,k=Math.min(m,S);let w;for(w=0;wS?Ye(o,p,y,!0,!1,k):V(c,h,b,p,y,T,C,F,k)},gt=(o,c,h,b,p,y,T,C,F)=>{let m=0;const S=c.length;let k=o.length-1,w=S-1;for(;m<=k&&m<=w;){const N=o[m],R=c[m]=F?Me(c[m]):be(c[m]);if(_e(N,R))B(N,R,h,null,p,y,T,C,F);else break;m++}for(;m<=k&&m<=w;){const N=o[k],R=c[w]=F?Me(c[w]):be(c[w]);if(_e(N,R))B(N,R,h,null,p,y,T,C,F);else break;k--,w--}if(m>k){if(m<=w){const N=w+1,R=Nw)for(;m<=k;)xe(o[m],p,y,!0),m++;else{const N=m,R=m,Y=new Map;for(m=R;m<=w;m++){const de=c[m]=F?Me(c[m]):be(c[m]);de.key!=null&&Y.set(de.key,m)}let G,fe=0;const ce=w-R+1;let Fe=!1,Ce=0;const Xe=new Array(ce);for(m=0;m=ce){xe(de,p,y,!0);continue}let Te;if(de.key!=null)Te=Y.get(de.key);else for(G=R;G<=w;G++)if(Xe[G-R]===0&&_e(de,c[G])){Te=G;break}Te===void 0?xe(de,p,y,!0):(Xe[Te-R]=m+1,Te>=Ce?Ce=Te:Fe=!0,B(de,c[Te],h,null,p,y,T,C,F),fe++)}const xs=Fe?Kn(Xe):Ke;for(G=xs.length-1,m=ce-1;m>=0;m--){const de=R+m,Te=c[de],Fs=c[de+1],Cs=de+1{const{el:y,type:T,transition:C,children:F,shapeFlag:m}=o;if(m&6){Se(o.component.subTree,c,h,b);return}if(m&128){o.suspense.move(c,h,b);return}if(m&64){T.move(o,c,h,Qe);return}if(T===he){l(y,c,h);for(let k=0;kC.enter(y),p);else{const{leave:k,delayLeave:w,afterLeave:N}=C,R=()=>{o.ctx.isUnmounted?n(y):l(y,c,h)},Y=()=>{y._isLeaving&&y[Ae](!0),k(y,()=>{R(),N&&N()})};w?w(y,R,Y):Y()}else l(y,c,h)},xe=(o,c,h,b=!1,p=!1)=>{const{type:y,props:T,ref:C,children:F,dynamicChildren:m,shapeFlag:S,patchFlag:k,dirs:w,cacheIndex:N}=o;if(k===-2&&(p=!1),C!=null&&(je(),lt(C,null,h,o,!0),Ue()),N!=null&&(c.renderCache[N]=void 0),S&256){c.ctx.deactivate(o);return}const R=S&1&&w,Y=!Le(o);let G;if(Y&&(G=T&&T.onVnodeBeforeUnmount)&&ye(G,c,o),S&6)Sl(o.component,h,b);else{if(S&128){o.suspense.unmount(h,b);return}R&&Ne(o,null,c,"beforeUnmount"),S&64?o.type.remove(o,c,h,Qe,b):m&&!m.hasOnce&&(y!==he||k>0&&k&64)?Ye(m,c,h,!1,!0):(y===he&&k&384||!p&&S&16)&&Ye(F,c,h),b&&bs(o)}(Y&&(G=T&&T.onVnodeUnmounted)||R)&&z(()=>{G&&ye(G,c,o),R&&Ne(o,null,c,"unmounted")},h)},bs=o=>{const{type:c,el:h,anchor:b,transition:p}=o;if(c===he){Hl(h,b);return}if(c===qt){O(o);return}const y=()=>{n(h),p&&!p.persisted&&p.afterLeave&&p.afterLeave()};if(o.shapeFlag&1&&p&&!p.persisted){const{leave:T,delayLeave:C}=p,F=()=>T(h,y);C?C(o.el,y,F):F()}else y()},Hl=(o,c)=>{let h;for(;o!==c;)h=_(o),n(o),o=h;n(c)},Sl=(o,c,h)=>{const{bum:b,scope:p,job:y,subTree:T,um:C,m:F,a:m}=o;It(F),It(m),b&&et(b),p.stop(),y&&(y.flags|=8,xe(T,o,c,h)),C&&z(C,c),z(()=>{o.isUnmounted=!0},c)},Ye=(o,c,h,b=!1,p=!1,y=0)=>{for(let T=y;T{if(o.shapeFlag&6)return pt(o.component.subTree);if(o.shapeFlag&128)return o.suspense.next();const c=_(o.anchor||o.el),h=c&&c[zs];return h?_(h):c};let jt=!1;const _s=(o,c,h)=>{o==null?c._vnode&&xe(c._vnode,null,null,!0):B(c._vnode||null,o,c,null,null,null,h),c._vnode=o,jt||(jt=!0,Ts(),Qs(),jt=!1)},Qe={p:B,um:xe,m:Se,r:bs,mt:ne,mc:V,pc:q,pbc:H,n:pt,o:e};return{render:_s,hydrate:void 0,createApp:vn(_s)}}function Wt({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function $e({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Rn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ys(e,t,s=!1){const l=e.children,n=t.children;if(K(l)&&K(n))for(let r=0;r>1,e[s[f]]0&&(t[l]=s[r-1]),s[r]=l)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function El(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:El(t)}function It(e){if(e)for(let t=0;te.__isSuspense;let ts=0;const Wn={name:"Suspense",__isSuspense:!0,process(e,t,s,l,n,r,i,f,u,g){if(e==null)qn(t,s,l,n,r,i,f,u,g);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Gn(e,t,s,l,n,i,f,u,g)}},hydrate:Jn,normalize:Yn},Or=Wn;function ot(e,t){const s=e.props&&e.props[t];j(s)&&s()}function qn(e,t,s,l,n,r,i,f,u){const{p:g,o:{createElement:a}}=u,d=a("div"),_=e.suspense=Al(e,n,l,t,d,s,r,i,f,u);g(null,_.pendingBranch=e.ssContent,d,null,l,_,r,i),_.deps>0?(ot(e,"onPending"),ot(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,r,i),qe(_,e.ssFallback)):_.resolve(!1,!0)}function Gn(e,t,s,l,n,r,i,f,{p:u,um:g,o:{createElement:a}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const _=t.ssContent,x=t.ssFallback,{activeBranch:A,pendingBranch:B,isInFallback:L,isHydrating:$}=d;if(B)d.pendingBranch=_,_e(B,_)?(u(B,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0?d.resolve():L&&($||(u(A,x,s,l,n,null,r,i,f),qe(d,x)))):(d.pendingId=ts++,$?(d.isHydrating=!1,d.activeBranch=B):g(B,n,d),d.deps=0,d.effects.length=0,d.hiddenContainer=a("div"),L?(u(null,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0?d.resolve():(u(A,x,s,l,n,null,r,i,f),qe(d,x))):A&&_e(A,_)?(u(A,_,s,l,n,d,r,i,f),d.resolve(!0)):(u(null,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0&&d.resolve()));else if(A&&_e(A,_))u(A,_,s,l,n,d,r,i,f),qe(d,_);else if(ot(t,"onPending"),d.pendingBranch=_,_.shapeFlag&512?d.pendingId=_.component.suspenseId:d.pendingId=ts++,u(null,_,d.hiddenContainer,null,n,d,r,i,f),d.deps<=0)d.resolve();else{const{timeout:v,pendingId:P}=d;v>0?setTimeout(()=>{d.pendingId===P&&d.fallback(x)},v):v===0&&d.fallback(x)}}function Al(e,t,s,l,n,r,i,f,u,g,a=!1){const{p:d,m:_,um:x,n:A,o:{parentNode:B,remove:L}}=g;let $;const v=Xn(e);v&&t&&t.pendingBranch&&($=t.pendingId,t.deps++);const P=e.props?Jl(e.props.timeout):void 0,O=r,E={vnode:e,parent:t,parentComponent:s,namespace:i,container:l,hiddenContainer:n,deps:0,pendingId:ts++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!a,isHydrating:a,isUnmounted:!1,effects:[],resolve(M=!1,U=!1){const{vnode:V,activeBranch:I,pendingBranch:H,pendingId:D,effects:X,parentComponent:te,container:ne,isInFallback:we}=E;let Z=!1;E.isHydrating?E.isHydrating=!1:M||(Z=I&&H.transition&&H.transition.mode==="out-in",Z&&(I.transition.afterLeave=()=>{D===E.pendingId&&(_(H,ne,r===O?A(I):r,0),Gt(X),we&&V.ssFallback&&(V.ssFallback.el=null))}),I&&(B(I.el)===ne&&(r=A(I)),x(I,te,E,!0),!Z&&we&&V.ssFallback&&z(()=>V.ssFallback.el=null,E)),Z||_(H,ne,r,0)),qe(E,H),E.pendingBranch=null,E.isInFallback=!1;let W=E.parent,q=!1;for(;W;){if(W.pendingBranch){W.effects.push(...X),q=!0;break}W=W.parent}!q&&!Z&&Gt(X),E.effects=[],v&&t&&t.pendingBranch&&$===t.pendingId&&(t.deps--,t.deps===0&&!U&&t.resolve()),ot(V,"onResolve")},fallback(M){if(!E.pendingBranch)return;const{vnode:U,activeBranch:V,parentComponent:I,container:H,namespace:D}=E;ot(U,"onFallback");const X=A(V),te=()=>{E.isInFallback&&(d(null,M,H,X,I,null,D,f,u),qe(E,M))},ne=M.transition&&M.transition.mode==="out-in";ne&&(V.transition.afterLeave=te),E.isInFallback=!0,x(V,I,null,!0),ne||te()},move(M,U,V){E.activeBranch&&_(E.activeBranch,M,U,V),E.container=M},next(){return E.activeBranch&&A(E.activeBranch)},registerDep(M,U,V){const I=!!E.pendingBranch;I&&E.deps++;const H=M.vnode.el;M.asyncDep.catch(D=>{at(D,M,0)}).then(D=>{if(M.isUnmounted||E.isUnmounted||E.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:X}=M;ns(M,D),H&&(X.el=H);const te=!H&&M.subTree.el;U(M,X,B(H||M.subTree.el),H?null:A(M.subTree),E,i,V),te&&(X.placeholder=null,L(te)),hs(M,X.el),I&&--E.deps===0&&E.resolve()})},unmount(M,U){E.isUnmounted=!0,E.activeBranch&&x(E.activeBranch,s,M,U),E.pendingBranch&&x(E.pendingBranch,s,M,U)}};return E}function Jn(e,t,s,l,n,r,i,f,u){const g=t.suspense=Al(t,l,s,e.parentNode,document.createElement("div"),null,n,r,i,f,!0),a=u(e,g.pendingBranch=t.ssContent,s,g,r,i);return g.deps===0&&g.resolve(!1,!0),a}function Yn(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Ns(l?s.default:s),e.ssFallback=l?Ns(s.fallback):oe(ee)}function Ns(e){let t;if(j(e)){const s=Je&&e._c;s&&(e._d=!1,Ot()),e=e(),s&&(e._d=!0,t=ue,Il())}return K(e)&&(e=Mn(e)),e=be(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Qn(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):Gt(e)}function qe(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;s.el=n,l&&l.subTree===s&&(l.vnode.el=n,hs(l,n))}function Xn(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const he=Symbol.for("v-fgt"),Lt=Symbol.for("v-txt"),ee=Symbol.for("v-cmt"),qt=Symbol.for("v-stc"),rt=[];let ue=null;function Ot(e=!1){rt.push(ue=e?null:[])}function Il(){rt.pop(),ue=rt[rt.length-1]||null}let Je=1;function Pt(e,t=!1){Je+=e,e<0&&ue&&t&&(ue.hasOnce=!0)}function Bl(e){return e.dynamicChildren=Je>0?ue||Ke:null,Il(),Je>0&&ue&&ue.push(e),e}function Pr(e,t,s,l,n,r){return Bl(Pl(e,t,s,l,n,r,!0))}function ss(e,t,s,l,n){return Bl(oe(e,t,s,l,n,!0))}function De(e){return e?e.__v_isVNode===!0:!1}function _e(e,t){return e.type===t.type&&e.key===t.key}const Ol=({key:e})=>e??null,Ct=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?me(e)||Tt(e)||j(e)?{i:se,r:e,k:t,f:!!s}:e:null);function Pl(e,t=null,s=null,l=0,n=null,r=e===he?0:1,i=!1,f=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ol(t),ref:t&&Ct(t),scopeId:Zs,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:l,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:se};return f?(ms(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=me(s)?8:16),Je>0&&!i&&ue&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&ue.push(u),u}const oe=Zn;function Zn(e,t=null,s=null,l=0,n=null,r=!1){if((!e||e===al)&&(e=ee),De(e)){const f=Be(e,t,!0);return s&&ms(f,s),Je>0&&!r&&ue&&(f.shapeFlag&6?ue[ue.indexOf(e)]=f:ue.push(f)),f.patchFlag=-2,f}if(cr(e)&&(e=e.__vccOpts),t){t=zn(t);let{class:f,style:u}=t;f&&!me(f)&&(t.class=Ds(f)),ge(u)&&(Ls(u)&&!K(u)&&(u=ae({},u)),t.style=Rs(u))}const i=me(e)?1:Bt(e)?128:el(e)?64:ge(e)?4:j(e)?2:0;return Pl(e,t,s,l,n,i,r,!0)}function zn(e){return e?Ls(e)||xl(e)?ae({},e):e:null}function Be(e,t,s=!1,l=!1){const{props:n,ref:r,patchFlag:i,children:f,transition:u}=e,g=t?tr(n||{},t):n,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Ol(g),ref:t&&t.ref?s&&r?K(r)?r.concat(Ct(t)):[r,Ct(t)]:Ct(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Be(e.ssContent),ssFallback:e.ssFallback&&Be(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&l&&Ge(a,u.clone(a)),a}function er(e=" ",t=0){return oe(Lt,null,e,t)}function Mr(e="",t=!1){return t?(Ot(),ss(ee,null,e)):oe(ee,null,e)}function be(e){return e==null||typeof e=="boolean"?oe(ee):K(e)?oe(he,null,e.slice()):De(e)?Me(e):oe(Lt,null,String(e))}function Me(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Be(e)}function ms(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(K(t))s=16;else if(typeof t=="object")if(l&65){const n=t.default;n&&(n._c&&(n._d=!1),ms(e,n()),n._c&&(n._d=!0));return}else{s=32;const n=t._;!n&&!xl(t)?t._ctx=se:n===3&&se&&(se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else j(t)?(t={default:t,_ctx:se},s=32):(t=String(t),l&64?(s=16,t=[er(t)]):s=8);e.children=t,e.shapeFlag|=s}function tr(...e){const t={};for(let s=0;sle||se;let Mt,ls;{const e=Ht(),t=(s,l)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(l),r=>{n.length>1?n.forEach(i=>i(r)):n[0](r)}};Mt=t("__VUE_INSTANCE_SETTERS__",s=>le=s),ls=t("__VUE_SSR_SETTERS__",s=>ft=s)}const ht=e=>{const t=le;return Mt(e),e.scope.on(),()=>{e.scope.off(),Mt(t)}},$s=()=>{le&&le.scope.off(),Mt(null)};function Ml(e){return e.vnode.shapeFlag&4}let ft=!1;function rr(e,t=!1,s=!1){t&&ls(t);const{props:l,children:n}=e.vnode,r=Ml(e);Nn(e,l,r,t),jn(e,n,s||t);const i=r?ir(e,t):void 0;return t&&ls(!1),i}function ir(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mn);const{setup:l}=s;if(l){je();const n=e.setupContext=l.length>1?fr(e):null,r=ht(e),i=ut(l,e,0,[e.props,n]),f=Us(i);if(Ue(),r(),(f||e.sp)&&!Le(e)&&ol(e),f){if(i.then($s,$s),t)return i.then(u=>{ns(e,u)}).catch(u=>{at(u,e,0)});e.asyncDep=i}else ns(e,i)}else wl(e)}function ns(e,t,s){j(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Vs(t)),wl(e)}function wl(e,t,s){const l=e.type;e.render||(e.render=l.render||Ie);{const n=ht(e);je();try{bn(e)}finally{Ue(),n()}}}const or={get(e,t){return js(e,"get",""),e[t]}};function fr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,or),slots:e.slots,emit:e.emit,expose:t}}function Vt(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vs(Vl(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in nt)return nt[s](e)},has(t,s){return s in t||s in nt}})):e.proxy}function rs(e,t=!0){return j(e)?e.displayName||e.name:e.name||t&&e.__name}function cr(e){return j(e)&&"__vccOpts"in e}const ur=(e,t)=>Nl(e,t,ft);function wr(e,t,s){try{Pt(-1);const l=arguments.length;return l===2?ge(t)&&!K(t)?De(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&De(s)&&(s=[s]),oe(e,t,s))}finally{Pt(1)}}const ar="3.5.25";export{Cr as A,ln as B,Pr as C,Ot as D,en as E,he as F,ss as G,Mr as H,Tr as I,er as J,Fr as K,on as L,fn as M,ee as N,yr as O,Be as P,Lt as Q,ul as R,Or as S,mr as T,kr as U,vr as V,br as a,il as b,Br as c,oe as d,Ee as e,ur as f,dt as g,wr as h,xt as i,Ir as j,Ar as k,fs as l,_r as m,Zl as n,cl as o,tr as p,xr as q,Yt as r,Ge as s,De as t,sn as u,un as v,Ft as w,cs as x,kn as y,Er as z};
diff --git a/js/@vue_runtime-core@3.5.25-CyFcdXRD.js.gz b/js/@vue_runtime-core@3.5.25-CyFcdXRD.js.gz
new file mode 100644
index 00000000..2bbe8911
Binary files /dev/null and b/js/@vue_runtime-core@3.5.25-CyFcdXRD.js.gz differ
diff --git a/js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js b/js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js
deleted file mode 100644
index 58d1d125..00000000
--- a/js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import{B as Pt,c as Dt,h as It,a as yt,u as $t,o as Ot,g as Rt,F as Ht,b as Bt,s as j,r as V,d as Ft,e as xt}from"./@vue_runtime-core@3.5.22-0v1MMfjG.js";import{e as I,a as ut,o as N,i as Gt,G as zt,b as y,s as Wt,D as qt,I as Kt,z as dt,J as pt,f as Ut,C as mt,F as jt}from"./@vue_shared@3.5.22-Dikn8ojA.js";import{t as Vt}from"./@vue_reactivity@3.5.22-BvBzZonp.js";/**
-* @vue/runtime-dom v3.5.22
-* (c) 2018-present Yuxi (Evan) You and Vue contributors
-* @license MIT
-**/let B;const X=typeof window<"u"&&window.trustedTypes;if(X)try{B=X.createPolicy("vue",{createHTML:t=>t})}catch{}const ht=B?t=>B.createHTML(t):t=>t,Xt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1998/Math/MathML",g=typeof document<"u"?document:null,J=g&&g.createElement("template"),Zt={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const o=e==="svg"?g.createElementNS(Xt,t):e==="mathml"?g.createElementNS(Jt,t):n?g.createElement(t,{is:n}):g.createElement(t);return t==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:t=>g.createTextNode(t),createComment:t=>g.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>g.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,o,i){const r=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{J.innerHTML=ht(s==="svg"?``:s==="mathml"?``:t);const c=J.content;if(s==="svg"||s==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}e.insertBefore(c,n)}return[r?r.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},v="transition",w="animation",A=Symbol("_vtc"),gt={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},vt=I({},Pt,gt),Qt=t=>(t.displayName="Transition",t.props=vt,t),_e=Qt((t,{slots:e})=>It(yt,Ct(t),e)),T=(t,e=[])=>{y(t)?t.forEach(n=>n(...e)):t&&t(...e)},Z=t=>t?y(t)?t.some(e=>e.length>1):t.length>1:!1;function Ct(t){const e={};for(const a in t)a in gt||(e[a]=t[a]);if(t.css===!1)return e;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:l=r,appearToClass:f=c,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=t,E=Yt(o),At=E&&E[0],wt=E&&E[1],{onBeforeEnter:x,onEnter:G,onEnterCancelled:z,onLeave:W,onLeaveCancelled:Lt,onBeforeAppear:Nt=x,onAppear:Mt=G,onAppearCancelled:_t=z}=e,$=(a,m,S,M)=>{a._enterCancelled=M,C(a,m?f:c),C(a,m?l:r),S&&S()},q=(a,m)=>{a._isLeaving=!1,C(a,p),C(a,b),C(a,d),m&&m()},K=a=>(m,S)=>{const M=a?Mt:G,U=()=>$(m,a,S);T(M,[m,U]),Q(()=>{C(m,a?u:i),h(m,a?f:c),Z(M)||Y(m,s,At,U)})};return I(e,{onBeforeEnter(a){T(x,[a]),h(a,i),h(a,r)},onBeforeAppear(a){T(Nt,[a]),h(a,u),h(a,l)},onEnter:K(!1),onAppear:K(!0),onLeave(a,m){a._isLeaving=!0;const S=()=>q(a,m);h(a,p),a._enterCancelled?(h(a,d),F(a)):(F(a),h(a,d)),Q(()=>{a._isLeaving&&(C(a,p),h(a,b),Z(W)||Y(a,s,wt,S))}),T(W,[a,S])},onEnterCancelled(a){$(a,!1,void 0,!0),T(z,[a])},onAppearCancelled(a){$(a,!0,void 0,!0),T(_t,[a])},onLeaveCancelled(a){q(a),T(Lt,[a])}})}function Yt(t){if(t==null)return null;if(Gt(t))return[O(t.enter),O(t.leave)];{const e=O(t);return[e,e]}}function O(t){return zt(t)}function h(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[A]||(t[A]=new Set)).add(e)}function C(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[A];n&&(n.delete(e),n.size||(t[A]=void 0))}function Q(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let kt=0;function Y(t,e,n,s){const o=t._endId=++kt,i=()=>{o===t._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:c,propCount:u}=St(t,e);if(!r)return s();const l=r+"end";let f=0;const p=()=>{t.removeEventListener(l,d),i()},d=b=>{b.target===t&&++f>=u&&p()};setTimeout(()=>{f(n[E]||"").split(", "),o=s(`${v}Delay`),i=s(`${v}Duration`),r=k(o,i),c=s(`${w}Delay`),u=s(`${w}Duration`),l=k(c,u);let f=null,p=0,d=0;e===v?r>0&&(f=v,p=r,d=i.length):e===w?l>0&&(f=w,p=l,d=u.length):(p=Math.max(r,l),f=p>0?r>l?v:w:null,d=f?f===v?i.length:u.length:0);const b=f===v&&/\b(?:transform|all)(?:,|$)/.test(s(`${v}Property`).toString());return{type:f,timeout:p,propCount:d,hasTransform:b}}function k(t,e){for(;t.lengthtt(n)+tt(t[s])))}function tt(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function F(t){return(t?t.ownerDocument:document).body.offsetHeight}function te(t,e,n){const s=t[A];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const P=Symbol("_vod"),Tt=Symbol("_vsh"),Pe={name:"show",beforeMount(t,{value:e},{transition:n}){t[P]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):L(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),L(t,!0),s.enter(t)):s.leave(t,()=>{L(t,!1)}):L(t,e))},beforeUnmount(t,{value:e}){L(t,e)}};function L(t,e){t.style.display=e?t[P]:"none",t[Tt]=!e}const ee=Symbol(""),ne=/(?:^|;)\s*display\s*:/;function se(t,e,n){const s=t.style,o=N(n);let i=!1;if(n&&!o){if(e)if(N(e))for(const r of e.split(";")){const c=r.slice(0,r.indexOf(":")).trim();n[c]==null&&_(s,c,"")}else for(const r in e)n[r]==null&&_(s,r,"");for(const r in n)r==="display"&&(i=!0),_(s,r,n[r])}else if(o){if(e!==n){const r=s[ee];r&&(n+=";"+r),s.cssText=n,i=ne.test(n)}}else e&&t.removeAttribute("style");P in t&&(t[P]=i?s.display:"",t[Tt]&&(s.display="none"))}const et=/\s*!important$/;function _(t,e,n){if(y(n))n.forEach(s=>_(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=oe(t,e);et.test(n)?t.setProperty(mt(s),n.replace(et,""),"important"):t[s]=n}}const nt=["Webkit","Moz","ms"],R={};function oe(t,e){const n=R[e];if(n)return n;let s=dt(e);if(s!=="filter"&&s in t)return R[e]=s;s=jt(s);for(let o=0;oH||(le.then(()=>H=0),H=Date.now());function ue(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;xt(de(s,n.value),e,5,[s])};return n.value=t,n.attached=fe(),n}function de(t,e){if(y(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>o=>!o._stopped&&s&&s(o))}else return e}const ct=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,pe=(t,e,n,s,o,i)=>{const r=o==="svg";e==="class"?te(t,s,r):e==="style"?se(t,n,s):Wt(e)?qt(e)||ae(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):me(t,e,s,r))?(it(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&ot(t,e,s,r,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!N(s))?it(t,dt(e),s,i,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),ot(t,e,s,r))};function me(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&ct(e)&&ut(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return ct(e)&&N(n)?!1:e in t}const bt=new WeakMap,Et=new WeakMap,D=Symbol("_moveCb"),lt=Symbol("_enterCb"),he=t=>(delete t.props.mode,t),ge=he({name:"TransitionGroup",props:I({},vt,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Rt(),s=$t();let o,i;return Ot(()=>{if(!o.length)return;const r=t.moveClass||`${t.name||"v"}-move`;if(!Te(o[0].el,n.vnode.el,r)){o=[];return}o.forEach(ve),o.forEach(Ce);const c=o.filter(Se);F(n.vnode.el),c.forEach(u=>{const l=u.el,f=l.style;h(l,r),f.transform=f.webkitTransform=f.transitionDuration="";const p=l[D]=d=>{d&&d.target!==l||(!d||d.propertyName.endsWith("transform"))&&(l.removeEventListener("transitionend",p),l[D]=null,C(l,r))};l.addEventListener("transitionend",p)}),o=[]}),()=>{const r=Vt(t),c=Ct(r);let u=r.tag||Ht;if(o=[],i)for(let l=0;l{c.split(/\s+/).forEach(u=>u&&s.classList.remove(u))}),n.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:r}=St(s);return i.removeChild(s),r}const be=I({patchProp:pe},Zt);let ft;function Ee(){return ft||(ft=Dt(be))}const Ie=(...t)=>{const e=Ee().createApp(...t),{mount:n}=e;return e.mount=s=>{const o=we(s);if(!o)return;const i=e._component;!ut(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Ae(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},e};function Ae(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function we(t){return N(t)?document.querySelector(t):t}export{_e as T,De as a,Ie as c,Pe as v};
diff --git a/js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js.gz b/js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js.gz
deleted file mode 100644
index e462eca3..00000000
Binary files a/js/@vue_runtime-dom@3.5.22-Ieyd1mDe.js.gz and /dev/null differ
diff --git a/js/@vue_runtime-dom@3.5.25-qbdLeVMc.js b/js/@vue_runtime-dom@3.5.25-qbdLeVMc.js
new file mode 100644
index 00000000..c7b3fd21
--- /dev/null
+++ b/js/@vue_runtime-dom@3.5.25-qbdLeVMc.js
@@ -0,0 +1 @@
+import{B as Pt,c as Dt,h as It,a as $t,u as yt,o as Ot,g as Rt,F as Ht,b as Ft,s as j,r as V,d as xt,e as Bt}from"./@vue_runtime-core@3.5.25-CyFcdXRD.js";import{e as I,i as ut,o as N,a as Gt,G as zt,b as $,s as Wt,D as qt,I as Kt,z as dt,J as pt,d as Ut,C as mt,F as jt}from"./@vue_shared@3.5.25-ClSOc5xY.js";import{t as Vt}from"./@vue_reactivity@3.5.25-CWykDyL9.js";let F;const X=typeof window<"u"&&window.trustedTypes;if(X)try{F=X.createPolicy("vue",{createHTML:t=>t})}catch{}const ht=F?t=>F.createHTML(t):t=>t,Xt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1998/Math/MathML",g=typeof document<"u"?document:null,J=g&&g.createElement("template"),Zt={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const o=e==="svg"?g.createElementNS(Xt,t):e==="mathml"?g.createElementNS(Jt,t):n?g.createElement(t,{is:n}):g.createElement(t);return t==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:t=>g.createTextNode(t),createComment:t=>g.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>g.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,o,i){const r=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{J.innerHTML=ht(s==="svg"?``:s==="mathml"?``:t);const c=J.content;if(s==="svg"||s==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}e.insertBefore(c,n)}return[r?r.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},v="transition",w="animation",A=Symbol("_vtc"),gt={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},vt=I({},Pt,gt),Qt=t=>(t.displayName="Transition",t.props=vt,t),_e=Qt((t,{slots:e})=>It($t,Ct(t),e)),T=(t,e=[])=>{$(t)?t.forEach(n=>n(...e)):t&&t(...e)},Z=t=>t?$(t)?t.some(e=>e.length>1):t.length>1:!1;function Ct(t){const e={};for(const a in t)a in gt||(e[a]=t[a]);if(t.css===!1)return e;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:f=r,appearToClass:l=c,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=t,E=Yt(o),At=E&&E[0],wt=E&&E[1],{onBeforeEnter:B,onEnter:G,onEnterCancelled:z,onLeave:W,onLeaveCancelled:Lt,onBeforeAppear:Nt=B,onAppear:Mt=G,onAppearCancelled:_t=z}=e,y=(a,m,S,M)=>{a._enterCancelled=M,C(a,m?l:c),C(a,m?f:r),S&&S()},q=(a,m)=>{a._isLeaving=!1,C(a,p),C(a,b),C(a,d),m&&m()},K=a=>(m,S)=>{const M=a?Mt:G,U=()=>y(m,a,S);T(M,[m,U]),Q(()=>{C(m,a?u:i),h(m,a?l:c),Z(M)||Y(m,s,At,U)})};return I(e,{onBeforeEnter(a){T(B,[a]),h(a,i),h(a,r)},onBeforeAppear(a){T(Nt,[a]),h(a,u),h(a,f)},onEnter:K(!1),onAppear:K(!0),onLeave(a,m){a._isLeaving=!0;const S=()=>q(a,m);h(a,p),a._enterCancelled?(h(a,d),x(a)):(x(a),h(a,d)),Q(()=>{a._isLeaving&&(C(a,p),h(a,b),Z(W)||Y(a,s,wt,S))}),T(W,[a,S])},onEnterCancelled(a){y(a,!1,void 0,!0),T(z,[a])},onAppearCancelled(a){y(a,!0,void 0,!0),T(_t,[a])},onLeaveCancelled(a){q(a),T(Lt,[a])}})}function Yt(t){if(t==null)return null;if(Gt(t))return[O(t.enter),O(t.leave)];{const e=O(t);return[e,e]}}function O(t){return zt(t)}function h(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[A]||(t[A]=new Set)).add(e)}function C(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[A];n&&(n.delete(e),n.size||(t[A]=void 0))}function Q(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let kt=0;function Y(t,e,n,s){const o=t._endId=++kt,i=()=>{o===t._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:c,propCount:u}=St(t,e);if(!r)return s();const f=r+"end";let l=0;const p=()=>{t.removeEventListener(f,d),i()},d=b=>{b.target===t&&++l>=u&&p()};setTimeout(()=>{l(n[E]||"").split(", "),o=s(`${v}Delay`),i=s(`${v}Duration`),r=k(o,i),c=s(`${w}Delay`),u=s(`${w}Duration`),f=k(c,u);let l=null,p=0,d=0;e===v?r>0&&(l=v,p=r,d=i.length):e===w?f>0&&(l=w,p=f,d=u.length):(p=Math.max(r,f),l=p>0?r>f?v:w:null,d=l?l===v?i.length:u.length:0);const b=l===v&&/\b(?:transform|all)(?:,|$)/.test(s(`${v}Property`).toString());return{type:l,timeout:p,propCount:d,hasTransform:b}}function k(t,e){for(;t.lengthtt(n)+tt(t[s])))}function tt(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function x(t){return(t?t.ownerDocument:document).body.offsetHeight}function te(t,e,n){const s=t[A];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const P=Symbol("_vod"),Tt=Symbol("_vsh"),Pe={name:"show",beforeMount(t,{value:e},{transition:n}){t[P]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):L(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),L(t,!0),s.enter(t)):s.leave(t,()=>{L(t,!1)}):L(t,e))},beforeUnmount(t,{value:e}){L(t,e)}};function L(t,e){t.style.display=e?t[P]:"none",t[Tt]=!e}const ee=Symbol(""),ne=/(?:^|;)\s*display\s*:/;function se(t,e,n){const s=t.style,o=N(n);let i=!1;if(n&&!o){if(e)if(N(e))for(const r of e.split(";")){const c=r.slice(0,r.indexOf(":")).trim();n[c]==null&&_(s,c,"")}else for(const r in e)n[r]==null&&_(s,r,"");for(const r in n)r==="display"&&(i=!0),_(s,r,n[r])}else if(o){if(e!==n){const r=s[ee];r&&(n+=";"+r),s.cssText=n,i=ne.test(n)}}else e&&t.removeAttribute("style");P in t&&(t[P]=i?s.display:"",t[Tt]&&(s.display="none"))}const et=/\s*!important$/;function _(t,e,n){if($(n))n.forEach(s=>_(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=oe(t,e);et.test(n)?t.setProperty(mt(s),n.replace(et,""),"important"):t[s]=n}}const nt=["Webkit","Moz","ms"],R={};function oe(t,e){const n=R[e];if(n)return n;let s=dt(e);if(s!=="filter"&&s in t)return R[e]=s;s=jt(s);for(let o=0;oH||(le.then(()=>H=0),H=Date.now());function ue(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Bt(de(s,n.value),e,5,[s])};return n.value=t,n.attached=fe(),n}function de(t,e){if($(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>o=>!o._stopped&&s&&s(o))}else return e}const ct=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,pe=(t,e,n,s,o,i)=>{const r=o==="svg";e==="class"?te(t,s,r):e==="style"?se(t,n,s):Wt(e)?qt(e)||ae(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):me(t,e,s,r))?(it(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&ot(t,e,s,r,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!N(s))?it(t,dt(e),s,i,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),ot(t,e,s,r))};function me(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&ct(e)&&ut(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return ct(e)&&N(n)?!1:e in t}const bt=new WeakMap,Et=new WeakMap,D=Symbol("_moveCb"),lt=Symbol("_enterCb"),he=t=>(delete t.props.mode,t),ge=he({name:"TransitionGroup",props:I({},vt,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Rt(),s=yt();let o,i;return Ot(()=>{if(!o.length)return;const r=t.moveClass||`${t.name||"v"}-move`;if(!Te(o[0].el,n.vnode.el,r)){o=[];return}o.forEach(ve),o.forEach(Ce);const c=o.filter(Se);x(n.vnode.el),c.forEach(u=>{const f=u.el,l=f.style;h(f,r),l.transform=l.webkitTransform=l.transitionDuration="";const p=f[D]=d=>{d&&d.target!==f||(!d||d.propertyName.endsWith("transform"))&&(f.removeEventListener("transitionend",p),f[D]=null,C(f,r))};f.addEventListener("transitionend",p)}),o=[]}),()=>{const r=Vt(t),c=Ct(r);let u=r.tag||Ht;if(o=[],i)for(let f=0;f{c.split(/\s+/).forEach(u=>u&&s.classList.remove(u))}),n.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:r}=St(s);return i.removeChild(s),r}const be=I({patchProp:pe},Zt);let ft;function Ee(){return ft||(ft=Dt(be))}const Ie=((...t)=>{const e=Ee().createApp(...t),{mount:n}=e;return e.mount=s=>{const o=we(s);if(!o)return;const i=e._component;!ut(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Ae(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},e});function Ae(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function we(t){return N(t)?document.querySelector(t):t}export{_e as T,De as a,Ie as c,Pe as v};
diff --git a/js/@vue_runtime-dom@3.5.25-qbdLeVMc.js.gz b/js/@vue_runtime-dom@3.5.25-qbdLeVMc.js.gz
new file mode 100644
index 00000000..d445a017
Binary files /dev/null and b/js/@vue_runtime-dom@3.5.25-qbdLeVMc.js.gz differ
diff --git a/js/@vue_shared@3.5.22-Dikn8ojA.js b/js/@vue_shared@3.5.22-Dikn8ojA.js
deleted file mode 100644
index b683ec8c..00000000
--- a/js/@vue_shared@3.5.22-Dikn8ojA.js
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
-* @vue/shared v3.5.22
-* (c) 2018-present Yuxi (Evan) You and Vue contributors
-* @license MIT
-**/function d(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const E={},R=[],T=()=>{},B=()=>!1,P=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),z=t=>t.startsWith("onUpdate:"),M=Object.assign,U=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},u=Object.prototype.hasOwnProperty,x=(t,e)=>u.call(t,e),m=Array.isArray,V=t=>c(t)==="[object Map]",F=t=>c(t)==="[object Set]",_=t=>c(t)==="[object RegExp]",a=t=>typeof t=="function",s=t=>typeof t=="string",D=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object",I=t=>(l(t)||a(t))&&a(t.then)&&a(t.catch),h=Object.prototype.toString,c=t=>h.call(t),G=t=>c(t).slice(8,-1),H=t=>c(t)==="[object Object]",J=t=>s(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,K=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),r=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},b=/-\w/g,L=r(t=>t.replace(b,e=>e.slice(1).toUpperCase())),g=/\B([A-Z])/g,Y=r(t=>t.replace(g,"-$1").toLowerCase()),y=r(t=>t.charAt(0).toUpperCase()+t.slice(1)),$=r(t=>t?`on${y(t)}`:""),q=(t,e)=>!Object.is(t,e),W=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:n})},k=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Q=t=>{const e=s(t)?Number(t):NaN;return isNaN(e)?t:e};let p;const X=()=>p||(p=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function O(t){if(m(t)){const e={};for(let n=0;n{if(n){const o=n.split(A);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function S(t){let e="";if(s(t))e=t;else if(m(t))for(let n=0;nn in e}const E={},R=[],T=()=>{},B=()=>!1,P=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),z=t=>t.startsWith("onUpdate:"),M=Object.assign,U=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},u=Object.prototype.hasOwnProperty,x=(t,e)=>u.call(t,e),m=Array.isArray,V=t=>c(t)==="[object Map]",F=t=>c(t)==="[object Set]",_=t=>c(t)==="[object RegExp]",a=t=>typeof t=="function",s=t=>typeof t=="string",D=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object",I=t=>(l(t)||a(t))&&a(t.then)&&a(t.catch),h=Object.prototype.toString,c=t=>h.call(t),G=t=>c(t).slice(8,-1),H=t=>c(t)==="[object Object]",J=t=>s(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,K=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),r=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},b=/-\w/g,L=r(t=>t.replace(b,e=>e.slice(1).toUpperCase())),g=/\B([A-Z])/g,Y=r(t=>t.replace(g,"-$1").toLowerCase()),y=r(t=>t.charAt(0).toUpperCase()+t.slice(1)),$=r(t=>t?`on${y(t)}`:""),q=(t,e)=>!Object.is(t,e),W=(t,...e)=>{for(let n=0;n