drawio-offline
Version:
diagrams.net desktop
99 lines • 2.48 MB
JavaScript
LucidImporter={};
(function(){function e(a){if(a&&null!=LucidImporter.imgSrcRepl)for(var b=0;b<LucidImporter.imgSrcRepl.length;b++){var c=LucidImporter.imgSrcRepl[b];a=a.replace(c.searchVal,c.replVal)}return a}function m(a){Da="";try{if(a){var b=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(b=LucidImporter.advImpConfig.fontMapping[a]);if(b){for(var c in b)Da+=c+"="+b[c]+";";return b.fontFamily?"font-family: "+b.fontFamily:""}if("Liberation Sans"!=a)return Da="fontFamily="+a+";","font-family: "+
a+";"}}catch(Ea){}return""}function g(a){return Math.round(10*a)/10}function q(a,b,c){function f(a,b){var f="",h=a.t,d=a.l||{v:h&&"ul"==h.v?"auto":"decimal"};if(null==h||0!=F&&F==h.v&&l==d.v)null==h&&(F&&(f+=n(!0),F=!1),f+='<div style="',pa.push("div"));else{F&&(f+=n(!0));F=h.v;l=d.v;"ul"==h.v?(f+="<ul ",pa.push("ul")):(f+="<ol ",pa.push("ol"));f+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';if("hl"==h.v)f+="upper-roman";else switch(d.v){case "auto":f+="disc";
break;case "inv":f+="circle";break;case "disc":f+="circle";break;case "trib":f+="square";break;case "square":f+="square";break;case "dash":f+="square";break;case "heart":f+="disc";break;default:f+="decimal"}f+='">'}if(null!=h){var f=f+('<li style="text-align:'+(a.a?a.a.v:c.TextAlign||"center")+";"),e,x;null!=b&&(b.c&&(e=b.c.v),b.s&&(x=b.s.v));try{var A=k[y],w=D[C],h=y;if(A&&w&&A.s<w.e)for(var r=A.s;null!=A&&A.s==r;)"s"==A.n?x=A.v:"c"==A.n&&(e=A.v),A=k[++h]}catch(Pc){console.log(Pc)}e=ya(e);null!=
e&&(e=e.substring(0,7),f+="color:"+e+";");null!=x&&(f+="font-size:"+g(.75*x)+"px;");f+='">';pa.push("li");f+='<span style="';pa.push("span")}F||(x=e=a.a?a.a.v:c.TextAlign||"center","left"==e?x="flex-start":"right"==e&&(x="flex-end"),f+="display: flex; justify-content: "+x+"; text-align: "+e+"; align-items: baseline; font-size: 0; line-height: 1.25;");a.il&&(f+="margin-left: "+Math.max(0,g(.75*a.il.v-(F?28:0)))+"px;");a.ir&&(f+="margin-right: "+g(.75*a.ir.v)+"px;");a.mt&&(f+="margin-top: "+g(.75*a.mt.v)+
"px;");a.mb&&(f+="margin-bottom: "+g(.75*a.mb.v)+"px;");f+='margin-top: -2px;">';F||(f+="<span>",pa.push("span"));return f}function h(a){if(0==Object.keys(a).length)return"";var b="",f=0;if(a.lk){var h=a.lk;null!=h.v&&0<h.v.length&&(b+='<a href="'+w(h.v[0])+'">',z.push("a"),f++)}b+='<span style="';z.push("span");f++;b+="font-size:"+(a.s?g(.75*a.s.v):"13")+"px;";a.c&&(h=ya(a.c.v),null!=h&&(h=h.substring(0,7),b+="color:"+h+";"));if(a.b&&a.b.v||a.fc&&a.fc.v&&0==a.fc.v.indexOf("Bold"))b+="font-weight: bold;";
a.i&&a.i.v&&(b+="font-style: italic;");a.ac&&a.ac.v&&(b+="text-transform: uppercase;");h=null;a.f?h=a.f.v:c.Font&&(h=c.Font);b+=m(h);h=[];a.u&&a.u.v&&h.push("underline");a.k&&a.k.v&&h.push("line-through");0<h.length&&(b+="text-decoration: "+h.join(" ")+";");b+='">';Ca.push(f);return b}function n(a){var b="";do{var c=pa.pop();if(!a&&F&&("ul"==c||"ol"==c)){pa.push(c);break}b+="</"+c+">"}while(0<pa.length);return b}function d(a,b,c,f){a=a?a.substring(b,c):"";F&&(a=a.trim());0==z.length&&0<a.length&&
(a=h({dummy:1})+a);a=a.replace(/</g,"<").replace(/>/g,">");do for(b=Ca.pop(),c=0;c<b;c++){var n=z.pop();a+="</"+n+">"}while(f&&0<z.length);return a}var e={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},x={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,k:!0,f:!0,ac:!0};b.sort(function(a,b){return a.s-b.s});var k=b.filter(function(a){return x[a.n]});k[0]&&0!=k[0].s&&k.unshift({s:0,n:"dummy",v:"",e:k[0].s});b=b.filter(function(a){return e[a.n]});for(var A=[0],aa=0;0<(aa=a.indexOf("\n",aa));)aa++,A.push(aa);
for(var y=aa=0;y<b.length;y++){if(b[y].s>A[aa])b.splice(y,0,{s:A[aa],n:"a",v:c.TextAlign||"center"});else{for(var q=0;y+q<b.length&&b[y+q].s==A[aa];)q++;1<q&&(y+=q-1)}aa++}null!=A[aa]&&b.push({s:A[aa],n:"a",v:c.TextAlign||"center"});var A="",D=k.slice();D.sort(function(a,b){return a.e-b.e});for(var C=y=0,aa=0,q={},B={},z=[],Ca=[],pa=[],O=!1,F=!1,l,H=0,K=0,da=a.length,Y=!0;aa<b.length||Y;){Y=!1;if(aa<b.length){var E=b[aa],S=b[aa].s;O&&(B={},A+=d(a,H,da,!0),K=H=da,A+=n());for(;null!=E&&E.s==S;)B[E.n]=
E,E=b[++aa];da=null!=E?E.s:a.length;A+=f(B,q);O&&(A+=h(q));O=!0}for(;y>=C&&(y<k.length||C<D.length);)if(E=k[y],S=D[C],E&&S&&E.s<S.e){if(E.s>=da)break;H=E.s;0<H-K&&(A+=h(q)+d(a,K,H),K=H);for(;null!=E&&E.s==H;)q[E.n]=E,E=k[++y];A+=h(q)}else if(S){if(S.e>da)break;K=S.e;do delete q[S.n],S=D[++C];while(null!=S&&S.e==K);A+=d(a,H,K);H=K;0!=Ca.length||null!=E&&E.s==K||(k.splice(y,0,{s:K,n:"dummy",v:""}),D.splice(C,0,{e:E?E.s:da,n:"dummy",v:""}))}else break}A+=d(null,null,null,!0);O&&(K!=da&&(A+=h({dummy:1})+
d(a,K,da)),A+=n(!0));return A}function k(a,b){z=!1;var c=null!=a.Text&&a.Text.t?a.Text:null!=a.Value&&a.Value.t?a.Value:null!=a.Lane_0&&a.Lane_0.t?a.Lane_0:null;null==c&&null!=a.State?a.State.t&&(c=a.State):null==c&&null!=a.Note?a.Note.t&&(c=a.Note):null==c&&null!=a.Title?a.Title.t&&(c=a.Title):a.t&&(c=a);null==c&&null!=a.TextAreas?null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&a.TextAreas.Text.Value.t&&(c=a.TextAreas.Text.Value):null==c&&null!=a.t0&&a.t0.t&&(c=a.t0);if(null!=c){if(null!=c.t){var f=
c.t,f=f.replace(/\u2028/g,"\n"),c=c.m;try{for(var h=0;h<c.length;h++)if(0<c[h].s||null!=c[h].e&&c[h].e<f.length||"t"==c[h].n||"ac"==c[h].n||"lk"==c[h].n){z=!0;break}if(z=z||b)return q(f,c,a)}catch(df){console.log(df)}f=f.replace(/</g,"<");return f=f.replace(/>/g,">")}if(null!=c.Value&&null!=c.Value.t)return c.Value.t=c.Value.t.replace(/</g,"<"),c.Value.t=c.Value.t.replace(/>/g,">"),c.Value.t}return""}function d(a){return null!=a.Action?a.Action:a}function b(a){if(null!=a.Text){if(null!=
a.Text.m)return a.Text.m}else if(null!=a.TextAreas){if(null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.m)return a.TextAreas.Text.Value.m}else{if(null!=a.m)return a.m;if(null!=a.Title){if(null!=a.Title.m)return a.Title.m}else if(null!=a.State){if(null!=a.State.m)return a.State.m}else if(null!=a.Note&&null!=a.Note.m)return a.Note.m}return null}function a(a,b){var c="whiteSpace=wrap;"+(b?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+Da:n(a)+x(a)+A(a)+y(a)+D(a)+
B(a)+F(a)+E(a)+K(a))+W(a)+O(a)+ob(mxConstants.STYLE_ALIGN,a.TextAlign,"center");Da="";return c}function c(a,b,c,n,h){var d="";null!=a&&""!=a&&";"!=a.charAt(a.length-1)&&(d=";");d+="whiteSpace=wrap;"+(h?(uc(a,"overflow")?"":"overflow=block;blockSpacing=1;")+(uc(a,"html")?"":"html=1;")+"fontSize=13;"+Da:f(mxConstants.STYLE_FONTSIZE,a,b,c,n)+f(mxConstants.STYLE_FONTFAMILY,a,b,c,n)+f(mxConstants.STYLE_FONTCOLOR,a,b,c,n)+f(mxConstants.STYLE_FONTSTYLE,a,b,c,n)+f(mxConstants.STYLE_ALIGN,a,b,c,n)+f(mxConstants.STYLE_SPACING_LEFT,
a,b,c,n)+f(mxConstants.STYLE_SPACING_RIGHT,a,b,c,n)+f(mxConstants.STYLE_SPACING_TOP,a,b,c,n)+f(mxConstants.STYLE_SPACING_BOTTOM,a,b,c,n))+f(mxConstants.STYLE_ALIGN+"Global",a,b,c,n)+f(mxConstants.STYLE_SPACING,a,b,c,n)+f(mxConstants.STYLE_VERTICAL_ALIGN,a,b,c,n)+f(mxConstants.STYLE_STROKECOLOR,a,b,c,n)+f(mxConstants.STYLE_OPACITY,a,b,c,n)+f(mxConstants.STYLE_ROUNDED,a,b,c,n)+f(mxConstants.STYLE_ROTATION,a,b,c,n)+f(mxConstants.STYLE_FLIPH,a,b,c,n)+f(mxConstants.STYLE_FLIPV,a,b,c,n)+f(mxConstants.STYLE_SHADOW,
a,b,c,n)+f(mxConstants.STYLE_FILLCOLOR,a,b,c,n)+f(mxConstants.STYLE_DASHED,a,b,c,n)+f(mxConstants.STYLE_STROKEWIDTH,a,b,c,n)+f(mxConstants.STYLE_IMAGE,a,b,c,n);Da="";return d}function f(a,b,c,f,h){if(!uc(b,a))switch(a){case mxConstants.STYLE_FONTSIZE:return n(c);case mxConstants.STYLE_FONTFAMILY:return x(c);case mxConstants.STYLE_FONTCOLOR:return A(c);case mxConstants.STYLE_FONTSTYLE:return y(c);case mxConstants.STYLE_ALIGN:return D(c);case mxConstants.STYLE_ALIGN+"Global":return ob(mxConstants.STYLE_ALIGN,
c.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return B(c);case mxConstants.STYLE_SPACING_RIGHT:return F(c);case mxConstants.STYLE_SPACING_TOP:return E(c);case mxConstants.STYLE_SPACING_BOTTOM:return K(c);case mxConstants.STYLE_SPACING:return W(c);case mxConstants.STYLE_VERTICAL_ALIGN:return O(c);case mxConstants.STYLE_STROKECOLOR:return H(c,f);case mxConstants.STYLE_OPACITY:return S(c,f,h);case mxConstants.STYLE_ROUNDED:return a=!h.edge&&!h.style.includes("rounded")&&null!=c.Rounding&&
0<c.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+g(.75*c.Rounding)+";":"",a;case mxConstants.STYLE_ROTATION:return ka(c,f,h);case mxConstants.STYLE_FLIPH:return a=c.FlipX?"flipH=1;":"",a;case mxConstants.STYLE_FLIPV:return a=c.FlipY?"flipV=1;":"",a;case mxConstants.STYLE_SHADOW:return la(c);case mxConstants.STYLE_FILLCOLOR:return ca(c,f);case mxConstants.STYLE_DASHED:return ec(c);case mxConstants.STYLE_STROKEWIDTH:return Na(c);case mxConstants.STYLE_IMAGE:return fc(c,f)}return""}function n(a){a=
b(a);if(null!=a)for(var c=0;c<a.length;){var f=a[c];if("s"==f.n&&null!=f.v)return"fontSize="+g(.75*f.v)+";";c++}return"fontSize=13;"}function x(a){var c=b(a),f;if(null!=c)for(var n=0;n<c.length;n++)if("f"==c[n].n&&c[n].v){f=c[n].v;break}!f&&a.Font&&(f=a.Font);m(f);return Da}function w(a){return"ext"==a.tp?a.url:"ml"==a.tp?"mailto:"+a.eml:"pg"==a.tp?"data:page/id,"+(LucidImporter.pageIdsMap[a.id]||0):"c"==a.tp?"data:confluence/id,"+a.ccid:null}function A(a){a=b(a);if(null!=a)for(var c=0;c<a.length;){var f=
a[c];if("c"==f.n&&null!=f.v)return a=ya(f.v).substring(0,7),mxConstants.STYLE_FONTCOLOR+"="+a+";";c++}return""}function y(a){return C(b(a))}function C(a){if(null!=a){var b=0,c=!1;if(null!=a)for(var f=0;!c&&f<a.length;){var n=a[f];"b"==n.n?null!=n.v&&n.v&&(c=!0,b+=1):"fc"==n.n&&"Bold"==n.v&&(c=!0,b+=1);f++}c=!1;if(null!=a)for(f=0;!c&&f<a.length;)n=a[f],"i"==n.n&&null!=n.v&&n.v&&(c=!0,b+=2),f++;c=!1;if(null!=a)for(f=0;!c&&f<a.length;)n=a[f],"u"==n.n&&null!=n.v&&n.v&&(c=!0,b+=4),f++;if(0<b)return"fontStyle="+
b+";"}return""}function D(a){a=b(a);if(null!=a)for(var c=0;c<a.length;){var f=a[c];if("a"==f.n&&null!=f.v)return"align="+f.v+";";c++}return""}function B(a){a=b(a);if(null!=a)for(var c=0;c<a.length;){var f=a[c];if(null!=f.v&&"il"==f.n)return"spacingLeft="+g(.75*f.v)+";";c++}return""}function F(a){a=b(a);if(null!=a)for(var c=0;c<a.length;){var f=a[c];if("ir"==f.n&&null!=f.v)return"spacingRight="+g(.75*f.v)+";";c++}return""}function E(a){a=b(a);if(null!=a)for(var c=0;c<a.length;){var f=a[c];if("mt"==
f.n&&null!=f.v)return"spacingTop="+g(.75*f.v)+";";c++}return""}function K(a){a=b(a);if(null!=a)for(var c=0;c<a.length;){var f=a[c];if("mb"==f.n&&null!=f.v)return"spacingBottom="+g(.75*f.v)+";";c++}return""}function W(a){return"number"===typeof a.InsetMargin?"spacing="+Math.max(0,g(.75*a.InsetMargin))+";":""}function O(a){return null!=a.Text_VAlign&&"string"===typeof a.Text_VAlign?"verticalAlign="+a.Text_VAlign+";":null!=a.Title_VAlign&&"string"===typeof a.Title_VAlign?"verticalAlign="+a.Title_VAlign+
";":ob(mxConstants.STYLE_VERTICAL_ALIGN,a.TextVAlign,"middle")}function H(a,b){return 0==a.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":ob(mxConstants.STYLE_STROKECOLOR,ga(a.LineColor),"#000000")}function da(a){return null!=a?mxConstants.STYLE_FILLCOLOR+"="+ga(a)+";":""}function Y(a){return null!=a?"swimlaneFillColor="+ga(a)+";":""}function S(a,b,c){b="";if("string"===typeof a.LineColor&&(a.LineColor=ya(a.LineColor),7<a.LineColor.length)){var f="0x"+a.LineColor.substring(a.LineColor.length-2,
a.LineColor.length);c.style.includes("strokeOpacity")||(b+="strokeOpacity="+Math.round(parseInt(f)/2.55)+";")}"string"===typeof a.FillColor&&(a.FillColor=ya(a.FillColor),7<a.FillColor.length&&(a="0x"+a.FillColor.substring(a.FillColor.length-2,a.FillColor.length),c.style.includes("fillOpacity")||(b+="fillOpacity="+Math.round(parseInt(a)/2.55)+";")));return b}function ka(a,b,c){var f="";if(null!=a.Rotation){a=mxUtils.toDegree(parseFloat(a.Rotation));var n=!0;0!=a&&b.Class&&("UMLSwimLaneBlockV2"==b.Class||
(0<=b.Class.indexOf("Rotated")||-90==a||270==a)&&(0<=b.Class.indexOf("Pool")||0<=b.Class.indexOf("SwimLane")))?(a+=90,c.geometry.rotate90(),c.geometry.isRotated=!0,n=!1):0<=mxUtils.indexOf(Qd,b.Class)?(a-=90,c.geometry.rotate90()):0<=mxUtils.indexOf(Rd,b.Class)&&(a+=180);0!=a&&(f+="rotation="+a+";");n||(f+="horizontal=0;")}return f}function la(a){return null!=a.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function ya(a){if(a){if("object"===typeof a)try{a=a.cs[0].c}catch(pa){console.log(pa),a="#ffffff"}"rgb"==
a.substring(0,3)?a="#"+a.match(/\d+/g).map(function(a){a=parseInt(a).toString(16);return(1==a.length?"0":"")+a}).join(""):"#"!=a.charAt(0)&&(a="#"+a)}return a}function ga(a){return(a=ya(a))?a.substring(0,7):null}function Ra(a,b){return(a=ya(a))&&7<a.length?b+"="+Math.round(parseInt("0x"+a.substr(7))/2.55)+";":""}function ca(a,b){if(null!=a.FillColor)if("object"===typeof a.FillColor){if(null!=a.FillColor.cs&&1<a.FillColor.cs.length)return ob(mxConstants.STYLE_FILLCOLOR,ga(a.FillColor.cs[0].c))+ob(mxConstants.STYLE_GRADIENTCOLOR,
ga(a.FillColor.cs[1].c))}else return"string"===typeof a.FillColor?ob(mxConstants.STYLE_FILLCOLOR,ga(a.FillColor),"#FFFFFF"):ob(mxConstants.STYLE_FILLCOLOR,"none");return""}function ec(a){return"dotted"==a.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 4;":"dashdot"==a.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5;":"dashdotdot"==a.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==a.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 2;":"longdash"==a.StrokeStyle?"dashed=1;fixDash=1;dashPattern=16 6;":
"dashlongdash"==a.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 6 16 6;":"dashed24"==a.StrokeStyle?"dashed=1;fixDash=1;dashPattern=3 8;":"dashed32"==a.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==a.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":null!=a.StrokeStyle&&"dashed"==a.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function Na(a){return null!=a.LineWidth?ob(mxConstants.STYLE_STROKEWIDTH,g(.75*parseFloat(a.LineWidth)),"1"):""}function fc(a,b,c){var f="";a.FillColor&&
a.FillColor.url?(c=a.FillColor.url,"fill"==a.FillColor.pos&&(f="imageAspect=0;")):"ImageSearchBlock2"==b.Class?c=a.URL:"UserImage2Block"==b.Class&&null!=a.ImageFillProps&&null!=a.ImageFillProps.url&&(c=a.ImageFillProps.url);return null!=c?"image="+e(c)+";"+f:""}function Gb(a,b,c){null!=b.Link&&0<b.Link.length&&c.setAttributeForCell(a,"link",w(b.Link[0]));var f=[],n=c.convertValueToString(a),d=!1;if(null!=n){for(var e=0;match=Sd.exec(n);){var x=match[0],d=!0;if(2<x.length){var k=x.substring(2,x.length-
2);"documentName"==k?k="filename":"pageName"==k?k="page":"totalPages"==k?k="pagecount":"page"==k?k="pagenumber":"date:"==k.substring(0,5)?k="date{"+k.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==k.substring(0,16)?k=k.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==k.substring(0,9)&&(k="date{"+k.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");k="%"+
k+"%";f.push(n.substring(e,match.index)+(null!=k?k:x));e=match.index+x.length}}d&&(f.push(n.substring(e)),c.setAttributeForCell(a,"label",f.join("")),c.setAttributeForCell(a,"placeholders","1"))}for(var A in b)if(b.hasOwnProperty(A)&&A.toString().startsWith("ShapeData_"))try{var y=b[A],g=mxUtils.trim(y.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");oa(a,g,y.Value,c)}catch(Nd){window.console&&console.log("Ignored "+A+":",Nd)}}function oa(a,b,c,f){for(var n=b,d=0;null!=f.getAttributeForCell(a,
n);)d++,n=b+"_"+d;f.setAttributeForCell(a,n,null!=c?c:"")}function vd(b,f,n,e,h,x){var A=d(f);if(null!=A){var w=vc[A.Class];null!=w?b.style+=w+";":b.edge||(console.log("No mapping found for: "+A.Class),LucidImporter.hasUnknownShapes=!0);w=null!=A.Properties?A.Properties:A;if(null!=w&&(b.value=x?"":k(w),b.style+=c(b.style,w,A,b,z),b.style.includes("strokeColor")||(b.style+=H(w,A)),Gb(b,w,n),w.Title&&w.Title.t&&w.Text&&w.Text.t&&"ExtShape"!=A.Class.substr(0,8)&&(x=b.geometry,x=new mxCell(k(w.Title),
new mxGeometry(0,x.height,x.width,10),"strokeColor=none;fillColor=none;"),x.vertex=!0,b.insert(x),x.style+=a(w.Title,z)),b.edge)){b.style=null!=w.Rounding&&"diagonal"!=w.Shape?b.style+("rounded=1;arcSize="+w.Rounding+";"):b.style+"rounded=0;";x=!1;if("diagonal"!=w.Shape)if(null!=w.ElbowPoints&&0<w.ElbowPoints.length)for(b.geometry.points=[],A=0;A<w.ElbowPoints.length;A++)b.geometry.points.push(new mxPoint(Math.round(.75*w.ElbowPoints[A].x+Sb),Math.round(.75*w.ElbowPoints[A].y+Tb)));else"elbow"==w.Shape?
b.style+="edgeStyle=orthogonalEdgeStyle;":null!=w.Endpoint1.Block&&null!=w.Endpoint2.Block&&(b.style+="edgeStyle=orthogonalEdgeStyle;","curve"==w.Shape&&(b.style+="curved=1;",x=!0));if(w.LineJumps||LucidImporter.globalProps.LineJumps)b.style+="jumpStyle=arc;";null!=w.Endpoint1.Style&&(A=Rc[w.Endpoint1.Style],null!=A?(A=A.replace(/xyz/g,"start"),b.style+="startArrow="+A+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+w.Endpoint1.Style)));null!=w.Endpoint2.Style&&
(A=Rc[w.Endpoint2.Style],null!=A?(A=A.replace(/xyz/g,"end"),b.style+="endArrow="+A+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+w.Endpoint2.Style)));x=null!=w.ElbowControlPoints&&0<w.ElbowControlPoints.length?w.ElbowControlPoints:x&&null!=w.BezierJoints&&0<w.BezierJoints.length?w.BezierJoints:w.Joints;if(null!=x)for(b.geometry.points=[],A=0;A<x.length;A++){var y=x[A].p?x[A].p:x[A];b.geometry.points.push(new mxPoint(Math.round(.75*y.x+Sb),Math.round(.75*
y.y+Tb)))}x=!1;if((null==b.geometry.points||0==b.geometry.points.length)&&null!=w.Endpoint1.Block&&w.Endpoint1.Block==w.Endpoint2.Block&&null!=e&&null!=h){x=new mxPoint(Math.round(e.geometry.x+e.geometry.width*w.Endpoint1.LinkX),Math.round(e.geometry.y+e.geometry.height*w.Endpoint1.LinkY));A=new mxPoint(Math.round(h.geometry.x+h.geometry.width*w.Endpoint2.LinkX),Math.round(h.geometry.y+h.geometry.height*w.Endpoint2.LinkY));Sb=x.x==A.x?Math.abs(x.x-e.geometry.x)<e.geometry.width/2?-20:20:0;Tb=x.y==
A.y?Math.abs(x.y-e.geometry.y)<e.geometry.height/2?-20:20:0;var g=new mxPoint(x.x+Sb,x.y+Tb),Ea=new mxPoint(A.x+Sb,A.y+Tb);g.generated=!0;Ea.generated=!0;b.geometry.points=[g,Ea];x=x.x==A.x}null!=e&&e.geometry.isRotated||(g=Sc(b,w.Endpoint1,!0,x,null,e));null!=e&&null!=g&&(null==e.stylePoints&&(e.stylePoints=[]),e.stylePoints.push(g),LucidImporter.stylePointsSet.add(e));null!=h&&h.geometry.isRotated||(Ea=Sc(b,w.Endpoint2,!1,x,null,h));null!=h&&null!=Ea&&(null==h.stylePoints&&(h.stylePoints=[]),h.stylePoints.push(Ea),
LucidImporter.stylePointsSet.add(h))}}null!=f.id&&oa(b,"lucidchartObjectId",f.id,n)}function Ya(a,b){var f=d(a),n=f.Properties,h=n.BoundingBox;null==a.Class||"AWS"!==a.Class.substring(0,3)&&"Amazon"!==a.Class.substring(0,6)||a.Class.includes("AWS19")||(h.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*h.x+Sb),Math.round(.75*h.y+Tb),Math.round(.75*h.w),Math.round(.75*h.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;vd(v,a,b);v.zOrder=n.ZOrder;null!=v&&0<=v.style.indexOf(";grIcon=")&&
(h=new mxCell("",new mxGeometry(v.geometry.x,v.geometry.y,v.geometry.width,v.geometry.height),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;"),h.vertex=!0,h.style+=c(h.style,n,f,h),v.geometry.x=0,v.geometry.y=0,v.style+="part=1;",h.insert(v),v=h);ye(v,n);n.Hidden&&(v.visible=!1);return v}function wd(a,b,c,f){var n=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");n.geometry.relative=!0;n.edge=!0;vd(n,a,b,c,f,!0);b=d(a).Properties;var e=null!=b?b.TextAreas:a.TextAreas;if(null!=
e){for(var x=0;void 0!==e["t"+x];){var k=e["t"+x];null!=k&&(n=wc(k,n,a,c,f));x++}for(x=0;void 0!==e["m"+x]||1>x;)k=e["m"+x],null!=k&&(n=wc(k,n,a,c,f)),x++;null!=e.Text&&(n=wc(e.Text,n,a,c,f));e=null!=b?b.TextAreas:a.TextAreas;null!=e.Message&&(n=wc(e.Message,n,a,c,f))}a.Hidden&&(n.visible=!1);return n}function wc(a,b,c,f,n){var h=2*(parseFloat(a.Location)-.5);isNaN(h)&&null!=a.Text&&null!=a.Text.Location&&(h=2*(parseFloat(a.Text.Location)-.5));var d=k(a),e=mxCell,h=new mxGeometry(isNaN(h)?0:h,0,0,
0),A=xc,w;w=c;if(z)w=Da;else{var y="13",Ea="";if(null!=a&&null!=a.Value&&null!=a.Value.m){for(var Ea=C(a.Value.m),m=0;m<a.Value.m.length;m++)if("s"==a.Value.m[m].n)y=g(.75*parseFloat(a.Value.m[m].v));else if("c"==a.Value.m[m].n){var q=ya(a.Value.m[m].v);null!=q&&(q=q.substring(0,7));Ea+="fontColor="+q+";"}Ea+=x(w);Da=""}w=Ea+";fontSize="+y+";"}e=new e(d,h,A+w);e.geometry.relative=!0;e.vertex=!0;if(a.Side)try{c.Action&&c.Action.Properties&&(c=c.Action.Properties);var D,B;if(null!=f&&null!=n){var F=
f.geometry,O=n.geometry;D=Math.abs(F.x+F.width*c.Endpoint1.LinkX-(O.x+O.width*c.Endpoint2.LinkX));B=Math.abs(F.y+F.height*c.Endpoint1.LinkY-(O.y+O.height*c.Endpoint2.LinkY))}else D=Math.abs(c.Endpoint1.x-c.Endpoint2.x),B=Math.abs(c.Endpoint1.y-c.Endpoint2.y);var H=mxUtils.getSizeForString(d);e.geometry.offset=0==D||D<B?new mxPoint(-a.Side*(H.width/2+5+D),0):new mxPoint(0,Math.sign(c.Endpoint2.x-c.Endpoint1.x)*a.Side*(H.height/2+5+B))}catch(Oc){console.log(Oc)}b.insert(e);return b}function ob(a,b,
c,f){null!=b&&null!=f&&(b=f(b));return null!=b&&b!=c?a+"="+b+";":""}function Sc(a,b,c,f,n,d){if(null!=b&&null!=b.LinkX&&null!=b.LinkY&&(b.LinkX=Math.round(1E3*b.LinkX)/1E3,b.LinkY=Math.round(1E3*b.LinkY)/1E3,null!=d&&d.style&&-1<d.style.indexOf("flipH=1")&&(b.LinkX=1-b.LinkX),null!=d&&d.style&&-1<d.style.indexOf("flipV=1")&&(b.LinkY=1-b.LinkY),a.style+=(f?"":(c?"exitX":"entryX")+"="+b.LinkX+";")+(n?"":(c?"exitY":"entryY")+"="+b.LinkY+";")+(c?"exitPerimeter":"entryPerimeter")+"=0;",b.Inside))return"["+
b.LinkX+","+b.LinkY+",0]"}function Tc(a,b,c,f){try{var n=function(a,b){if(null!=a)if(Array.isArray(a))for(var c=0;c<a.length;c++)n(a[c].p?a[c].p:a[c],b);else c=b?.75:1,e=Math.min(e,a.x*c),x=Math.min(x,a.y*c),k=Math.max(k,(a.x+(a.width?a.width:0))*c),A=Math.max(A,(a.y+(a.height?a.height:0))*c)};null!=a.Action&&null!=a.Action.Properties&&(a=a.Action.Properties);var d=new mxCell("",new mxGeometry,"group;dropTarget=0;");d.vertex=!0;d.zOrder=a.ZOrder;var e=Infinity,x=Infinity,k=-Infinity,A=-Infinity,w=
a.Members,y=[],g;for(g in w){var m=b[g];null!=m?y.push(m):null!=f[g]&&(y.push(f[g]),c[g]=d)}y.sort(function(a,b){var c=a.zOrder,f=b.zOrder;return null!=c&&null!=f?c>f?1:c<f?-1:0:0});for(c=b=0;c<y.length;c++)if(m=y[c],m.vertex)n(m.geometry),m.parent=d,d.insert(m,b++);else{var Ea=null!=m.Action&&m.Action.Properties?m.Action.Properties:m;n(Ea.Endpoint1,!0);n(Ea.Endpoint2,!0);n(Ea.ElbowPoints,!0);n(Ea.ElbowControlPoints,!0);n(Ea.BezierJoints,!0);n(Ea.Joints,!0)}d.geometry.x=e;d.geometry.y=x;d.geometry.width=
k-e;d.geometry.height=A-x;if(null!=d.children)for(c=0;c<d.children.length;c++){var q=d.children[c].geometry;q.x-=e;q.y-=x}a.IsState?d.lucidLayerInfo={name:a.Name,visible:!a.Hidden,locked:a.Restrictions.b&&a.Restrictions.p&&a.Restrictions.c}:a.Hidden&&(d.visible=!1);return d}catch(ef){console.log(ef)}}function Td(a,b,c){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=new Set;a.getModel().beginUpdate();try{var f=function(b,c){function f(a,b,c){null==a||a.generated||(a.x-=b,a.y-=c)}var h=null!=
c.Endpoint1.Block?e[c.Endpoint1.Block]:null,d=null!=c.Endpoint2.Block?e[c.Endpoint2.Block]:null,k=wd(b,a,h,d);if(c.Endpoint1&&c.Endpoint1.Line||c.Endpoint2&&c.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==h&&null!=c.Endpoint1&&k.geometry.setTerminalPoint(new mxPoint(Math.round(.75*c.Endpoint1.x),Math.round(.75*c.Endpoint1.y)),!0);null==d&&null!=c.Endpoint2&&k.geometry.setTerminalPoint(new mxPoint(Math.round(.75*c.Endpoint2.x),Math.round(.75*c.Endpoint2.y)),
!1);var A=x[b.id];if(null!=A){for(var w=k.geometry,y=0,r=0,t=A;null!=t&&null!=t.geometry;)y+=t.geometry.x,r+=t.geometry.y,t=t.parent;f(w.sourcePoint,y,r);f(w.targetPoint,y,r);f(w.offset,y,r);w=w.points;if(null!=w)for(t=0;t<w.length;t++)f(w[t],y,r)}n.push(a.addCell(k,A,null,h,d))},n=[],e={},x={},k={},A=[];null!=b.Lines&&(k=b.Lines);if(null!=b.Blocks){Object.assign(k,b.Blocks);for(var w in b.Blocks){var y=b.Blocks[w];y.id=w;var g=!1;null!=vc[y.Class]&&"mxCompositeShape"==vc[y.Class]&&(e[y.id]=Uc(y,
n,a),A.push(y),g=!0);g||(e[y.id]=Ya(y,a),A.push(y))}if(null!=b.Generators)for(w in b.Generators)"OrgChart2018"==b.Generators[w].ClassName?(LucidImporter.hasUnknownShapes=!0,xd(w,b.Generators[w],b.Data,a,e)):LucidImporter.hasUnknownShapes=!0}else{for(var m=0;m<b.Objects.length;m++)y=b.Objects[m],k[y.id]=y,null!=y.Action&&"mxCompositeShape"==vc[y.Action.Class]?e[y.id]=Uc(y,n,a):y.IsBlock&&null!=y.Action&&null!=y.Action.Properties?e[y.id]=Ya(y,a):y.IsGenerator&&y.GeneratorData&&y.GeneratorData.p&&("OrgChart2018"==
y.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,xd(y.GeneratorData.id,y.GeneratorData.p,y.GeneratorData.gs,a,e)):LucidImporter.hasUnknownShapes=!0),A.push(y);for(m=0;m<b.Objects.length;m++)if(y=b.Objects[m],y.IsGroup){var q=Tc(y,e,x,k);q&&(e[y.id]=q,A.push(y))}}if(null!=b.Groups)try{for(w in b.Groups)if(y=b.Groups[w],y.id=w,q=Tc(y,e,x,k))e[y.id]=q,A.push(y)}catch(dc){console.log(dc)}if(null!=b.Lines)for(w in b.Lines)y=b.Lines[w],y.id=w,A.push(y);A.sort(function(a,b){a=d(a);b=d(b);var c=
null!=a.Properties?a.Properties.ZOrder:a.ZOrder,f=null!=b.Properties?b.Properties.ZOrder:b.ZOrder;return null!=c&&null!=f?c>f?1:c<f?-1:0:0});for(m=0;m<A.length;m++){var y=A[m],D=e[y.id];if(null!=D){if(null==D.parent)if(D.lucidLayerInfo){var C=new mxCell;a.addCell(C,a.model.root);C.setVisible(D.lucidLayerInfo.visible);D.lucidLayerInfo.locked&&C.setStyle("locked=1;");C.setValue(D.lucidLayerInfo.name);delete D.lucidLayerInfo;a.addCell(D,C)}else n.push(a.addCell(D))}else y.IsLine&&null!=y.Action&&null!=
y.Action.Properties?f(y,y.Action.Properties):null!=y.StrokeStyle&&f(y,y)}LucidImporter.stylePointsSet.forEach(function(a){a.style="points=["+a.stylePoints.join(",")+"];"+a.style;delete a.stylePoints});try{var B=a.getModel().cells,z;for(z in B)delete B[z].zOrder}catch(dc){}c||a.setSelectionCells(n)}finally{a.getModel().endUpdate()}}function Ud(){var a=new Graph;a.setExtendParents(!1);a.setExtendParentsOnAdd(!1);a.setConstrainChildren(!1);a.setHtmlLabels(!0);a.getModel().maintainEdgeParent=!1;return a}
function Ub(a,b,c,f,n,d,e,x){this.nurbsValues=[1,3,0,0,100*(a+c),100-100*(1-(b+f)),0,1,100*(n+e),100-100*(1-(d+x)),0,1]}function ze(a,b){try{for(var c=[],f=b.BoundingBox.w,n=b.BoundingBox.h,d=0;d<b.Shapes.length;d++){var e=b.Shapes[d],x=e.FillColor,k=e.StrokeColor,A=e.LineWidth,w=e.Points,y=e.Lines,g=['<shape strokewidth="inherit"><foreground>'];g.push("<path>");for(var m=null,q=0;q<y.length;q++){var D=y[q];if(m!=D.p1){var C=w[D.p1].x,B=w[D.p1].y,C=100*C/f,B=100*B/n,C=Math.round(100*C)/100,B=Math.round(100*
B)/100;g.push('<move x="'+C+'" y="'+B+'"/>')}if(null!=D.n1){var z;var F=w[D.p2].x,O=w[D.p2].y,H=f,l=n,K=new Ub(w[D.p1].x,w[D.p1].y,D.n1.x,D.n1.y,w[D.p2].x,w[D.p2].y,D.n2.x,D.n2.y);if(2<=K.getSize()){K.getX(0);K.getY(0);K.getX(1);K.getY(1);for(var F=Math.round(100*F/H*100)/100,O=Math.round(100*O/l*100)/100,H=[],l=[],da=[],E=K.getSize(),aa=0;aa<E-1;aa+=3)H.push(new mxPoint(K.getX(aa),K.getY(aa))),l.push(new mxPoint(K.getX(aa+1),K.getY(aa+1))),aa<E-2?da.push(new mxPoint(K.getX(aa+2),K.getY(aa+2))):da.push(new mxPoint(F,
O));for(var Y="",aa=0;aa<H.length;aa++)Y+='<curve x1="'+H[aa].x+'" y1="'+H[aa].y+'" x2="'+l[aa].x+'" y2="'+l[aa].y+'" x3="'+da[aa].x+'" y3="'+da[aa].y+'"/>';z=Y}else z=void 0;g.push(z)}else C=w[D.p2].x,B=w[D.p2].y,C=100*C/f,B=100*B/n,C=Math.round(100*C)/100,B=Math.round(100*B)/100,g.push('<line x="'+C+'" y="'+B+'"/>');m=D.p2}g.push("</path>");g.push("<fillstroke/>");g.push("</foreground></shape>");c.push({shapeStencil:"stencil("+Graph.compress(g.join(""))+")",FillColor:x,LineColor:k,LineWidth:A})}LucidImporter.stencilsMap[a]=
{text:b.Text,w:f,h:n,stencils:c}}catch(Pd){console.log("Stencil parsing error:",Pd)}}function Hb(a,b,c,f,n,d,e,x){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;e.insert(a);d=[a];c=c.clone();x.insertEdge(c,!1);a.insertEdge(c,!0);d.push(c);f.push(n.addCell(c,null,null,null,null))}function wa(a,b,c,f,n,d,e,x,k){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;k.insert(a);c=new mxCell("",new mxGeometry(c,f,0,0),"strokeColor=none;fillColor=none;");
c.vertex=!0;k.insert(c);x=[c];n=n.clone();a.insertEdge(n,!0);c.insertEdge(n,!1);x.push(n);d.push(e.addCell(n,null,null,null,null))}function ha(a,b,f,n,h,d){n.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";n.style+=c(n.style,h,d,n);b=k(h);n.vertex=!0;a=new mxCell(b,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+a+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");
a.style+=c(a.style,h,d,a,z);a.geometry.relative=!0;a.geometry.offset=new mxPoint(5,-12);a.vertex=!0;n.insert(a)}function ja(a,b,f,n,h,d,e,x){h="transparent"!=a?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";d.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";d.style+=c(d.style,e,x,d);d.value=k(e);d.vertex=!0;a=new mxCell(null,new mxGeometry(.5,0,.7*n*b,.7*n*f),h+a+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");
a.geometry.relative=!0;a.geometry.offset=new mxPoint(-b*n*.35,10+(1-f)*n*.35);a.vertex=!0;a.style+=c(a.style,e,x,a,z);d.insert(a)}function uc(a,b){return null==a||null==b||!a.includes(";"+b+"=")&&a.substring(0,b.length+1)!=b+"="?!1:!0}function Vd(a,b){function c(a){a=Math.round(parseInt("0x"+a)*b).toString(16);return 1==a.length?"0"+a:a}return"#"+c(a.substr(1,2))+c(a.substr(3,2))+c(a.substr(5,2))}function Uc(b,f,w){var g=d(b),h=g.Properties,m=h.BoundingBox,t=Math.round(.75*m.w),r=Math.round(.75*m.h),
q=Math.round(.75*m.x+Sb),C=Math.round(.75*m.y+Tb);null==b.Class||"GCPInputDatabase"!==b.Class&&"GCPInputRecord"!==b.Class&&"GCPInputPayment"!==b.Class&&"GCPInputGateway"!==b.Class&&"GCPInputLocalCompute"!==b.Class&&"GCPInputBeacon"!==b.Class&&"GCPInputStorage"!==b.Class&&"GCPInputList"!==b.Class&&"GCPInputStream"!==b.Class&&"GCPInputMobileDevices"!==b.Class&&"GCPInputCircuitBoard"!==b.Class&&"GCPInputLive"!==b.Class&&"GCPInputUsers"!==b.Class&&"GCPInputLaptop"!==b.Class&&"GCPInputApplication"!==b.Class&&
"GCPInputLightbulb"!==b.Class&&"GCPInputGame"!==b.Class&&"GCPInputDesktop"!==b.Class&&"GCPInputDesktopAndMobile"!==b.Class&&"GCPInputWebcam"!==b.Class&&"GCPInputSpeaker"!==b.Class&&"GCPInputRetail"!==b.Class&&"GCPInputReport"!==b.Class&&"GCPInputPhone"!==b.Class&&"GCPInputBlank"!==b.Class||(r+=20);v=new mxCell("",new mxGeometry(q,C,t,r),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=h.ZOrder;var ya=null!=b.Class?b.Class:null!=g?g.Class:null;switch(ya){case "BraceNoteBlock":case "UI2BraceNoteBlock":var aa=
!1;null!=h.BraceDirection&&"Right"==h.BraceDirection&&(aa=!0);var pa=null,oa=null;aa?(pa=new mxCell("",new mxGeometry(t-.125*r,0,.125*r,r),"shape=curlyBracket;rounded=1;"),oa=new mxCell("",new mxGeometry(0,0,t-.125*r,r),"strokeColor=none;fillColor=none;")):(pa=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),oa=new mxCell("",new mxGeometry(.125*r,0,t-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=c(v.style,h,g,
v);pa.vertex=!0;v.insert(pa);pa.style+=c(pa.style,h,g,pa);oa.vertex=!0;oa.value=k(h);v.insert(oa);oa.style+=c(oa.style,h,g,oa,z);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var Ca="MainText",Ya=null,wd="HeaderFill_",ve="BodyFill_",dc=25,Oc=25,Qc=0;if(null!=h.Lanes)Qc=h.Lanes.length;else if(null!=h.PrimaryLane){for(var te=
function(a){if(a)32>a?a=32:208<a&&(a=208);else return 0;return.75*a},Qc=h.PrimaryLane.length,l=r=t=0;l<Qc;l++)t+=h.PrimaryLane[l];for(l=0;l<h.SecondaryLane.length;l++)r+=h.SecondaryLane[l];dc=te(h.PrimaryPoolTitleHeight);Oc=te(h.PrimaryLaneTitleHeight);t*=.75;r=.75*r+dc+Oc;v.geometry.width=t;v.geometry.height=r;Ca="poolPrimaryTitleKey";wd="PrimaryLaneHeaderFill_";ve="CellFill_0,";Ya=h.PrimaryLaneTextAreaIds;if(null==Ya)for(Ya=[],l=0;l<Qc;l++)Ya.push("Primary_"+l)}if(0==h.IsPrimaryLaneVertical){h.Rotation=
-1.5707963267948966;var we=v.geometry.x,ff=v.geometry.y}var Od=0!=h.Rotation,xe=0<ya.indexOf("Pool"),vc=0==ya.indexOf("BPMN"),Pd=null!=h[Ca];v.style=(xe?"swimlane;startSize="+dc+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(Od?"horizontalStack=0;":"");v.style+=c(v.style,h,g,v);Pd&&(v.value=k(h[Ca]),v.style+=(z?"overflow=block;blockSpacing=1;fontSize=13;"+Da:n(h[Ca])+A(h[Ca])+
x(h[Ca])+y(h[Ca])+D(h[Ca],v)+B(h[Ca])+F(h[Ca])+E(h[Ca])+K(h[Ca]))+W(h[Ca])+O(h[Ca]));for(var se=0,Kb=[],cf="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="+Oc+";dropTarget=0;rounded=0;"+(Od?"horizontal=0;":"")+(vc?"swimlaneLine=0;fillColor=none;":""),Q=h.Rotation=0;Q<Qc;Q++){if(null==Ya)var td=parseFloat(h.Lanes[Q].p),l=parseInt(h.Lanes[Q].tid)||Q,fb="Lane_"+l;else td=.75*h.PrimaryLane[Q]/t,l=Q,fb=Ya[Q];var ue=t*se,ud=xe?dc:0;Kb.push(new mxCell("",Od?
new mxGeometry(ud,ue,r-ud,t*td):new mxGeometry(ue,ud,t*td,r-ud),cf));Kb[Q].vertex=!0;v.insert(Kb[Q]);Kb[Q].value=k(h[fb]);Kb[Q].style+=c(Kb[Q].style,h,g,Kb[Q],z)+(z?"fontSize=13;":n(h[fb])+A(h[fb])+y(h[fb])+D(h[fb],Kb[Q])+B(h[fb])+F(h[fb])+E(h[fb])+K(h[fb]))+W(h[fb])+O(h[fb])+da(h[wd+l])+Y(h[ve+l]);se+=td}null!=we&&(v.geometry.x=we,v.geometry.y=ff);break;case "UMLMultidimensionalSwimlane":var bc=0,cc=0,Pc=null,Wd=null;if(null!=h.Rows&&null!=h.Columns)var bc=h.Rows.length,cc=h.Columns.length,Vc=.75*
h.TitleHeight||25,gc=.75*h.TitleWidth||25;else if(null!=h.PrimaryLane&&null!=h.SecondaryLane){bc=h.SecondaryLane.length;cc=h.PrimaryLane.length;gc=.75*h.SecondaryLaneTitleHeight||25;Vc=.75*h.PrimaryLaneTitleHeight||25;for(l=r=t=0;l<bc;l++)r+=h.SecondaryLane[l];for(l=0;l<cc;l++)t+=h.PrimaryLane[l];t=.75*t+gc;r=.75*r+Vc;v.geometry.width=t;v.geometry.height=r;Pc=h.SecondaryLaneTextAreaIds;Wd=h.PrimaryLaneTextAreaIds}v.style="group;";var Xd=new mxCell("",new mxGeometry(0,Vc,t,r-Vc),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");
Xd.vertex=!0;var Wc=new mxCell("",new mxGeometry(gc,0,t-gc,r),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");Wc.vertex=!0;v.insert(Xd);v.insert(Wc);for(var C=0,gf="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+gc+";",Q=0;Q<bc;Q++){if(null==Pc)var Yd=.75*parseInt(h.Rows[Q].height),l=parseInt(h.Rows[Q].id)||Q,hb="Row_"+l;else Yd=.75*h.SecondaryLane[Q],
hb=Pc[Q];var Vb=new mxCell("",new mxGeometry(0,C,t,Yd),gf),C=C+Yd;Vb.vertex=!0;Xd.insert(Vb);Vb.value=k(h[hb]);Vb.style+=c(Vb.style,h,g,Vb,z)+(z?"fontSize=13;":n(h[hb])+A(h[hb])+y(h[hb])+D(h[hb],Vb)+B(h[hb])+F(h[hb])+E(h[hb])+K(h[hb]))+W(h[hb])+O(h[hb])}for(var wc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+Vc+";",Q=q=0;Q<cc;Q++){if(null==Wd)var yc=.75*parseInt(h.Columns[Q].width),l=parseInt(h.Columns[Q].id)||Q,ib="Column_"+l;else yc=
.75*h.PrimaryLane[Q],ib=Wd[Q];var Wb=new mxCell("",new mxGeometry(q,0,yc,r),wc),q=q+yc;Wb.vertex=!0;Wc.insert(Wb);Wb.value=k(h[ib]);Wb.style+=c(Wb.style,h,g,Wb,z)+(z?"fontSize=13;":n(h[ib])+A(h[ib])+y(h[ib])+D(h[ib],Wb)+B(h[ib])+F(h[ib])+E(h[ib])+K(h[ib]))+W(h[ib])+O(h[ib])}break;case "UMLStateBlock":if(0==h.Composite)v.style="rounded=1;arcSize=20",v.value=k(h.State,!0),v.style+=c(v.style,h,g,v,z);else{v.style="swimlane;startSize=25;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;rounded=1;arcSize=20;fontStyle=0;";
v.value=k(h.State,!0);v.style+=c(v.style,h,g,v,z);v.style+=ca(h,g).replace("fillColor","swimlaneFillColor");var Sa=new mxCell("",new mxGeometry(0,25,t,r-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");Sa.value=k(h.Action,!0);Sa.style+=c(Sa.style,h,g,Sa,z);Sa.vertex=!0;v.insert(Sa)}break;case "GSDFDProcessBlock":var Ub=Math.round(.75*h.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+Ub;v.value=k(h.Number,!0);v.style+=c(v.style,h,g,v,
z);v.style+=ca(h,g).replace("fillColor","swimlaneFillColor");Sa=new mxCell("",new mxGeometry(0,Ub,t,r-Ub),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");Sa.value=k(h.Text,!0);Sa.style+=c(Sa.style,h,g,Sa,z);Sa.vertex=!0;v.insert(Sa);break;case "AndroidDevice":if(null!=h.AndroidDeviceName){var Fa=ka(h,g,v);v.style="fillColor=#000000;strokeColor=#000000;";var Lb=null,zc=null,Ac=null;if("Tablet"==h.AndroidDeviceName||"Mini Tablet"==h.AndroidDeviceName||"custom"==h.AndroidDeviceName&&"Tablet"==
h.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",Lb=new mxCell("",new mxGeometry(.112,.077,.77*t,.85*r),Fa),h.KeyboardShown&&(zc=new mxCell("",new mxGeometry(.112,.727,.77*t,.2*r),"shape=mxgraph.android.keyboard;"+Fa)),h.FullScreen||(Ac=new mxCell("",new mxGeometry(.112,.077,.77*t,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*r+";"+Fa));else if("Large Phone"==h.AndroidDeviceName||"Phone"==h.AndroidDeviceName||"custom"==h.AndroidDeviceName&&
"Phone"==h.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",Lb=new mxCell("",new mxGeometry(.04,.092,.92*t,.816*r),Fa),h.KeyboardShown&&(zc=new mxCell("",new mxGeometry(.04,.708,.92*t,.2*r),"shape=mxgraph.android.keyboard;"+Fa)),h.FullScreen||(Ac=new mxCell("",new mxGeometry(.04,.092,.92*t,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*r+";"+Fa));Lb.vertex=!0;Lb.geometry.relative=!0;v.insert(Lb);"Dark"==h.Scheme?Lb.style+="fillColor=#111111;":
"Light"==h.Scheme&&(Lb.style+="fillColor=#ffffff;");null!=zc&&(zc.vertex=!0,zc.geometry.relative=!0,v.insert(zc));null!=Ac&&(Ac.vertex=!0,Ac.geometry.relative=!0,v.insert(Ac))}v.style+=c(v.style,h,g,v);break;case "AndroidAlertDialog":var pb=new mxCell("",new mxGeometry(0,0,t,30),"strokeColor=none;fillColor=none;spacingLeft=9;");pb.vertex=!0;v.insert(pb);var ia=new mxCell("",new mxGeometry(0,25,t,10),"shape=line;strokeColor=#33B5E5;");ia.vertex=!0;v.insert(ia);var Xc=new mxCell("",new mxGeometry(0,
30,t,r-30),"strokeColor=none;fillColor=none;verticalAlign=top;");Xc.vertex=!0;v.insert(Xc);var za=new mxCell("",new mxGeometry(0,r-25,.5*t,25),"fillColor=none;");za.vertex=!0;v.insert(za);var Aa=new mxCell("",new mxGeometry(.5*t,r-25,.5*t,25),"fillColor=none;");Aa.vertex=!0;v.insert(Aa);pb.value=k(h.DialogTitle);pb.style+=a(h.DialogTitle,z);Xc.value=k(h.DialogText);Xc.style+=a(h.DialogText,z);za.value=k(h.Button_0);za.style+=a(h.Button_0,z);Aa.value=k(h.Button_1);Aa.style+=a(h.Button_1,z);"Dark"==
h.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",za.style+="strokeColor=#353535;",Aa.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",za.style+="strokeColor=#E2E2E2;",Aa.style+="strokeColor=#E2E2E2;");v.style+=c(v.style,h,g,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":pb=new mxCell("",new mxGeometry(0,0,t,30),"strokeColor=none;fillColor=none;spacingLeft=9;");pb.vertex=!0;v.insert(pb);pb.value=k(h.DialogTitle);pb.style+=a(h.DialogTitle,
z);ia=new mxCell("",new mxGeometry(0,25,t,10),"shape=line;strokeColor=#33B5E5;");ia.vertex=!0;v.insert(ia);za=new mxCell("",new mxGeometry(0,r-25,.5*t,25),"fillColor=none;");za.vertex=!0;v.insert(za);za.value=k(h.Button_0);za.style+=a(h.Button_0,z);Aa=new mxCell("",new mxGeometry(.5*t,r-25,.5*t,25),"fillColor=none;");Aa.vertex=!0;v.insert(Aa);Aa.value=k(h.Button_1);Aa.style+=a(h.Button_1,z);var Bc=new mxCell("",new mxGeometry(.5*t-4,41,8,4),"shape=triangle;direction=north;");Bc.vertex=!0;v.insert(Bc);
var Cc=new mxCell("",new mxGeometry(.25*t-4,41,8,4),"shape=triangle;direction=north;");Cc.vertex=!0;v.insert(Cc);var Dc=new mxCell("",new mxGeometry(.75*t-4,41,8,4),"shape=triangle;direction=north;");Dc.vertex=!0;v.insert(Dc);var Yc=new mxCell("",new mxGeometry(.375*t,50,.2*t,15),"strokeColor=none;fillColor=none;");Yc.vertex=!0;v.insert(Yc);Yc.value=k(h.Label_1);Yc.style+=a(h.Label_1,z);var Zc=new mxCell("",new mxGeometry(.125*t,50,.2*t,15),"strokeColor=none;fillColor=none;");Zc.vertex=!0;v.insert(Zc);
Zc.value=k(h.Label_0);Zc.style+=a(h.Label_0,z);var Ec=null;"AndroidDateDialog"==b.Class&&(Ec=new mxCell("",new mxGeometry(.625*t,50,.2*t,15),"strokeColor=none;fillColor=none;"),Ec.vertex=!0,v.insert(Ec),Ec.value=k(h.Label_2),Ec.style+=a(h.Label_2,z));var Ta=new mxCell("",new mxGeometry(.43*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");Ta.vertex=!0;v.insert(Ta);var Ua=new mxCell("",new mxGeometry(.18*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");Ua.vertex=!0;v.insert(Ua);var uc=new mxCell("",
new mxGeometry(.68*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");uc.vertex=!0;v.insert(uc);var $c=new mxCell("",new mxGeometry(.375*t,65,.2*t,15),"strokeColor=none;fillColor=none;");$c.vertex=!0;v.insert($c);$c.value=k(h.Label_4);$c.style+=a(h.Label_4,z);var Fc=null;"AndroidTimeDialog"==b.Class&&(Fc=new mxCell("",new mxGeometry(.3*t,65,.1*t,15),"strokeColor=none;fillColor=none;"),Fc.vertex=!0,v.insert(Fc),Fc.value=k(h.Label_Colon),Fc.style+=a(h.Label_Colon,z));var ad=new mxCell("",new mxGeometry(.125*
t,65,.2*t,15),"strokeColor=none;fillColor=none;");ad.vertex=!0;v.insert(ad);ad.value=k(h.Label_3);ad.style+=a(h.Label_3,z);var bd=new mxCell("",new mxGeometry(.625*t,65,.2*t,15),"strokeColor=none;fillColor=none;");bd.vertex=!0;v.insert(bd);bd.value=k(h.Label_5);bd.style+=a(h.Label_5,z);var xc=new mxCell("",new mxGeometry(.43*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");xc.vertex=!0;v.insert(xc);var Rc=new mxCell("",new mxGeometry(.18*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");Rc.vertex=
!0;v.insert(Rc);var Sc=new mxCell("",new mxGeometry(.68*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");Sc.vertex=!0;v.insert(Sc);var cd=new mxCell("",new mxGeometry(.375*t,80,.2*t,15),"strokeColor=none;fillColor=none;");cd.vertex=!0;v.insert(cd);cd.value=k(h.Label_7);cd.style+=a(h.Label_7,z);var dd=new mxCell("",new mxGeometry(.125*t,80,.2*t,15),"strokeColor=none;fillColor=none;");dd.vertex=!0;v.insert(dd);dd.value=k(h.Label_6);dd.style+=a(h.Label_6,z);var ed=new mxCell("",new mxGeometry(.625*
t,80,.2*t,15),"strokeColor=none;fillColor=none;");ed.vertex=!0;v.insert(ed);ed.value=k(h.Label_8);ed.style+=a(h.Label_8,z);var Gc=new mxCell("",new mxGeometry(.5*t-4,99,8,4),"shape=triangle;direction=south;");Gc.vertex=!0;v.insert(Gc);var Hc=new mxCell("",new mxGeometry(.25*t-4,99,8,4),"shape=triangle;direction=south;");Hc.vertex=!0;v.insert(Hc);var Ic=new mxCell("",new mxGeometry(.75*t-4,99,8,4),"shape=triangle;direction=south;");Ic.vertex=!0;v.insert(Ic);"Dark"==h.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",
za.style+="strokeColor=#353535;",Aa.style+="strokeColor=#353535;",Bc.style+="strokeColor=none;fillColor=#7E7E7E;",Cc.style+="strokeColor=none;fillColor=#7E7E7E;",Dc.style+="strokeColor=none;fillColor=#7E7E7E;",Gc.style+="strokeColor=none;fillColor=#7E7E7E;",Hc.style+="strokeColor=none;fillColor=#7E7E7E;",Ic.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",za.style+="strokeColor=#E2E2E2;",Aa.style+="strokeColor=#E2E2E2;",Bc.style+="strokeColor=none;fillColor=#939393;",
Cc.style+="strokeColor=none;fillColor=#939393;",Dc.style+="strokeColor=none;fillColor=#939393;",Gc.style+="strokeColor=none;fillColor=#939393;",Hc.style+="strokeColor=none;fillColor=#939393;",Ic.style+="strokeColor=none;fillColor=#939393;");v.style+=c(v.style,h,g,v);break;case "AndroidListItems":var Oa=r,Mb=0;if(h.ShowHeader){var Mb=8,hc=new mxCell("",new mxGeometry(0,0,t,Mb),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=k(h.Header);hc.style+=a(h.Header,z);var Oa=Oa-Mb,Tc=
new mxCell("",new mxGeometry(0,Mb-2,t,4),"shape=line;strokeColor=#999999;");Tc.vertex=!0;v.insert(Tc)}var qb=parseInt(h.Items);0<qb&&(Oa/=qb);for(var I=[],ia=[],l=0;l<qb;l++)I[l]=new mxCell("",new mxGeometry(0,Mb+l*Oa,t,Oa),"strokeColor=none;fillColor=none;"),I[l].vertex=!0,v.insert(I[l]),I[l].value=k(h["Item_"+l]),I[l].style+=a(h["Item_"+l],z),0<l&&(ia[l]=new mxCell("",new mxGeometry(0,Mb+l*Oa-2,t,4),"shape=line;"),ia[l].vertex=!0,v.insert(ia[l]),ia[l].style="Dark"==h.Scheme?ia[l].style+"strokeColor=#ffffff;":
ia[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==h.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=c(v.style,h,g,v);break;case "AndroidTabs":var rb=parseInt(h.Tabs),Za=t;0<rb&&(Za/=rb);for(var ma=[],ia=[],l=0;l<rb;l++)ma[l]=new mxCell("",new mxGeometry(l*Za,0,Za,r),"strokeColor=none;fillColor=none;"),ma[l].vertex=!0,v.insert(ma[l]),ma[l].value=k(h["Tab_"+l]),ma[l].style+=a(h["Tab_"+l],z),0<l&&(ia[l]=new mxCell("",new mxGeometry(l*Za-2,
.2*r,4,.6*r),"shape=line;direction=north;"),ia[l].vertex=!0,v.insert(ia[l]),ia[l].style="Dark"==h.Scheme?ia[l].style+"strokeColor=#484848;":ia[l].style+"strokeColor=#CCCCCC;");var Uc=new mxCell("",new mxGeometry(h.Selected*Za+2,r-3,Za-4,3),"strokeColor=none;fillColor=#33B5E5;");Uc.vertex=!0;v.insert(Uc);v.style="Dark"==h.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=c(v.style,h,g,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(q),
Math.round(C+.25*r),Math.round(t),Math.round(.5*r)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var fd=new mxCell("",new mxGeometry(0,0,t*h.BarPosition,Math.round(.5*r)),"strokeColor=none;fillColor=#33B5E5;");fd.vertex=!0;v.insert(fd);v.style="Dark"==h.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=c(v.style,h,g,v);break;case "AndroidImageBlock":v.style="Dark"==h.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":
v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";v.style+=c(v.style,h,g,v);break;case "AndroidTextBlock":v.style="Dark"==h.Scheme?h.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":h.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=k(h.Label);v.style+=a(h.Label,z);v.style+=c(v.style,h,g,v,z);break;case "AndroidActionBar":v.style+="strokeColor=none;";
switch(h.BarBackground){case "Blue":v.style+="fillColor=#002E3E;";break;case "Gray":v.style+="fillColor=#DDDDDD;";break;case "Dark Gray":v.style+="fillColor=#474747;";break;case "White":v.style+="fillColor=#ffffff;"}if(h.HighlightShow){var Nb=null,Nb=h.HighlightTop?new mxCell("",new mxGeometry(0,0,t,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,r-2,t,2),"strokeColor=none;");Nb.vertex=!0;v.insert(Nb);switch(h.HighlightColor){case "Blue":Nb.style+="fillColor=#33B5E5;";break;case "Dark Gray":Nb.style+=
"fillColor=#B0B0B0;";break;case "White":Nb.style+="fillColor=#ffffff;"}}if(h.VlignShow){var Jc=new mxCell("",new mxGeometry(20,5,2,r-10),"shape=line;direction=north;");Jc.vertex=!0;v.insert(Jc);switch(h.VlignColor){case "Blue":Jc.style+="strokeColor=#244C5A;";break;case "White":Jc.style+="strokeColor=#ffffff;"}}v.style+=c(v.style,h,g,v);break;case "AndroidButton":v.value=k(h.Label);v.style+=a(h.Label,z)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==h.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":
v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";v.style+=c(v.style,h,g,v);break;case "AndroidTextBox":v.value=k(h.Label);v.style+=a(h.Label,z);var gd=new mxCell("",new mxGeometry(2,r-6,t-4,4),"shape=partialRectangle;top=0;fillColor=none;");gd.vertex=!0;v.insert(gd);v.style="Dark"==h.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";gd.style=h.TextFocused?gd.style+"strokeColor=#33B5E5;":gd.style+"strokeColor=#A9A9A9;";v.style+=c(v.style,h,g,v);
break;case "AndroidRadioButton":var ic=null;h.Checked&&(ic=new mxCell("",new mxGeometry(.15*t,.15*r,.7*t,.7*r),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),ic.vertex=!0,v.insert(ic));"Dark"==h.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",h.Checked?(ic.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",h.Checked&&
(ic.style+="strokeColor=#999999;"));v.style+=c(v.style,h,g,v);break;case "AndroidCheckBox":var Zd=null;h.Checked&&(Zd=new mxCell("",new mxGeometry(.25*t,.05*-r,t,.8*r),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),Zd.vertex=!0,v.insert(Zd));v.style="Dark"==h.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=c(v.style,h,g,v);break;case "AndroidToggle":v.style="Dark"==h.Scheme?h.Checked?
v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":h.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";v.style+=c(v.style,h,g,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+h.BarPosition+";fillColor=#33b5e5;";v.style+=c(v.style,h,g,v);break;case "iOSSegmentedControl":rb=parseInt(h.Tabs);Za=t;v.style+="strokeColor=none;fillColor=none;";
0<rb&&(Za/=rb);ma=[];ia=[];for(l=0;l<rb;l++)ma[l]=new mxCell("",new mxGeometry(l*Za,0,Za,r),"strokeColor="+h.FillColor+";"),ma[l].vertex=!0,v.insert(ma[l