You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1177 lines
2.2 MiB
1177 lines
2.2 MiB
(self.webpackChunk=self.webpackChunk||[]).push([[5624],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(xn,$n){"use strict";$n.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},22982:function(xn,$n){"use strict";$n.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_checkbox_group:"work_checkbox_group___sGLxY"}},63720:function(){"use strict";function xn(bt,et,nt,ct){nt===void 0&&(nt=0),ct===void 0&&(ct=1/0),this._name=bt,this._defaultValue=et,this._minimum=nt,this._maximum=ct}Object.defineProperty(xn.prototype,"name",{get:function(){return this._name},set:function(bt){if(typeof bt!="string"||bt==="")throw new Error("Shape name must be a valid string.");this._name=bt}}),Object.defineProperty(xn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(bt){if(typeof bt!="number"||isNaN(bt))throw new Error("The default value must be a real number, not: "+bt);this._defaultValue=bt}}),Object.defineProperty(xn.prototype,"minimum",{get:function(){return this._minimum},set:function(bt){if(typeof bt!="number"||isNaN(bt))throw new Error("Minimum must be a real number, not: "+bt);this._minimum=bt}}),Object.defineProperty(xn.prototype,"maximum",{get:function(){return this._maximum},set:function(bt){if(typeof bt!="number"||isNaN(bt))throw new Error("Maximum must be a real number, not: "+bt);this._maximum=bt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(bt,et){var nt=go.Shape._FigureParameters[bt];return nt?nt[et]:null},go.Shape.setFigureParameter=function(bt,et,nt){if(!(nt instanceof xn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+nt);if(nt.defaultValue<nt.minimum||nt.defaultValue>nt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+nt.defaultValue);var ct=go.Shape._FigureParameters[bt];ct||(ct=[],go.Shape._FigureParameters[bt]=ct),ct[et]=nt};var $n=[];function Rt(bt,et){var nt=$n.pop();return nt===void 0?new go.Point(bt,et):(nt.x=bt,nt.y=et,nt)}function St(){var bt=$n.pop();return bt===void 0?new go.Point:bt}function ee(bt){$n.push(bt)}function me(bt,et,nt,ct,lt,pt,vt,Pt,Dt){Dt||(Dt=new go.Point);var Vt=bt-nt,Ut=lt-vt,se=NaN,qt=NaN;if(Vt===0)if(Ut===0)bt===nt&&(se=bt,qt=et);else{var Jt=(pt-Pt)/Ut,Me=pt-Jt*lt;se=bt,qt=Jt*se+Me}else if(Ut===0){var pe=(et-ct)/Vt,He=et-pe*bt;se=lt,qt=pe*se+He}else{var pe=(et-ct)/Vt,Jt=(pt-Pt)/Ut,He=et-pe*bt,Me=pt-Jt*lt;se=(Me-He)/(pe-Jt),qt=pe*se+He}return Dt.x=se,Dt.y=qt,Dt}function he(bt,et,nt,ct,lt,pt,vt,Pt,Dt,Vt,Ut,se,qt,Jt){var Me=1-Dt,pe=Dt,He=bt*Me+nt*pe,De=et*Me+ct*pe,tn=nt*Me+lt*pe,Fn=ct*Me+pt*pe,on=lt*Me+vt*pe,pn=pt*Me+Pt*pe,fn=He*Me+tn*pe,te=De*Me+Fn*pe,Ot=tn*Me+on*pe,Le=Fn*Me+pn*pe,dn=fn*Me+Ot*pe,_e=te*Me+Le*pe;Vt.x=He,Vt.y=De,Ut.x=fn,Ut.y=te,se.x=dn,se.y=_e,qt.x=Ot,qt.y=Le,Jt.x=on,Jt.y=pn}var ce=new go.Spot(.156,.156),fe=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new xn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=5),ct=Math.min(ct,et/3),ct=Math.min(ct,nt/3);var lt=ct*ue,pt=new go.Geometry().add(new go.PathFigure(ct,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-ct,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,ct,et-lt,0,et,lt)).add(new go.PathSegment(go.PathSegment.Line,et,nt-ct)).add(new go.PathSegment(go.PathSegment.Bezier,et-ct,nt,et,nt-lt,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,ct,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ct,lt,nt,0,nt-lt)).add(new go.PathSegment(go.PathSegment.Line,0,ct)).add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,lt,lt,0).close()));return lt>1&&(pt.spot1=new go.Spot(0,0,lt,lt),pt.spot2=new go.Spot(1,1,-lt,-lt)),pt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(bt,et,nt){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=0,ct.startY=nt/2,ct.endX=et,ct.endY=nt/2,ct}),go.Shape.defineFigureGenerator("LineV",function(bt,et,nt){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=et/2,ct.startY=0,ct.endX=et/2,ct.endY=nt,ct}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("XLine",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LineRight",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)))}),go.Shape.defineFigureGenerator("LineDown",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.25*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)))}),go.Shape.defineFigureGenerator("LineLeft",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)))}),go.Shape.defineFigureGenerator("LineUp",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.75*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(bt,et,nt){var ct=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ct*et,(1-ct)*nt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,ct*nt)).add(new go.PathSegment(go.PathSegment.Move,ct*et,ct*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,(1-ct)*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt/2)).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("CircleLine",function(bt,et,nt){var ct=et/2,lt=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ct,ct,ct,ct).close()));return lt.spot1=ce,lt.spot2=fe,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Line1",function(bt,et,nt){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=0,ct.startY=0,ct.endX=et,ct.endY=nt,ct}),go.Shape.defineFigureGenerator("Line2",function(bt,et,nt){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=et,ct.startY=0,ct.endX=0,ct.endY=nt,ct}),go.Shape.defineFigureGenerator("Curve1",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,ue*et,0,et,(1-ue)*nt)))}),go.Shape.defineFigureGenerator("Curve2",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,0,ue*nt,(1-ue)*et,nt)))}),go.Shape.defineFigureGenerator("Curve3",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,ue*nt,ue*et,nt)))}),go.Shape.defineFigureGenerator("Curve4",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,(1-ue)*et,0,0,(1-ue)*nt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new xn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)?ct=.1:ct<-1?ct=-1:ct>1&&(ct=1);var lt=Math.abs(ct)*et;if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return ct>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt<et/2&&pt.setSpots(lt/et,0,(et-lt)/et,1),pt}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new xn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)?ct=10:ct<-et?ct=-et:ct>et&&(ct=et);var lt=Math.abs(ct);if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return ct>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt<et/2&&pt.setSpots(lt/et,0,(et-lt)/et,1),pt}}),go.Shape.setFigureParameter("Trapezoid1",0,new xn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)?ct=.2:ct<.5?ct=-.5:ct>.5&&(ct=.5);var lt=Math.abs(ct)*et;if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return ct>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt<et/2&&pt.setSpots(lt/et,0,(et-lt)/et,1),pt}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new xn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)?ct=20:ct<-et?ct=-et/2:ct>et&&(ct=et/2);var lt=Math.abs(ct);if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return ct>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt<et/2&&pt.setSpots(lt/et,0,(et-lt)/et,1),pt}}),go.Shape.setFigureParameter("ManualOperation",0,new xn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)?ct=10:ct<-et?ct=-et/2:ct>et&&(ct=et/2);var lt=Math.abs(ct);if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return ct>0?pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())):pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())),lt<et/2&&pt.setSpots(lt/et,0,(et-lt)/et,1),pt}});var Be=[];function Ce(){var bt=Be.pop();return bt===void 0?[]:bt}function Bt(bt){bt.length=0,Be.push(bt)}function je(bt){for(var et=Ce(),nt=.5,ct=.5,lt=Math.PI*1.5,pt=0,vt=0;vt<bt;vt++)pt=2*Math.PI/bt*vt+lt,et[vt]=new go.Point(ct+nt*Math.cos(pt),ct+nt*Math.sin(pt));return et.push(et[0]),et}function le(bt){var et=Ge(bt),nt=Ce();nt[0]=et[0];for(var ct=1,lt=1;ct<et.length;ct+=2,lt+=3)nt[lt]=et[ct],nt[lt+1]=et[ct],nt[lt+2]=et[ct+1];return Bt(et),nt}function Ge(bt){for(var et=je(bt),nt=Ce(),ct=Math.floor(et.length/2),lt=et.length-1,pt=bt%2===0?2:1,vt=0;vt<lt;vt++){var Pt=et[vt],Dt=et[vt+1],Vt=et[(ct+vt-1)%lt],Ut=et[(ct+vt+pt)%lt];nt[vt*2]=Pt,nt[vt*2+1]=me(Pt.x,Pt.y,Vt.x,Vt.y,Dt.x,Dt.y,Ut.x,Ut.y,new go.Point)}return nt[nt.length]=nt[0],Bt(et),nt}go.Shape.defineFigureGenerator("Pentagon",function(bt,et,nt){var ct=je(5),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<5;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.2,.22),lt.spot2=new go.Spot(.8,.9),lt}),go.Shape.defineFigureGenerator("Hexagon",function(bt,et,nt){var ct=je(6),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<6;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.07,.25),lt.spot2=new go.Spot(.93,.75),lt}),go.Shape.defineFigureGenerator("Heptagon",function(bt,et,nt){var ct=je(7),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<7;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.2,.15),lt.spot2=new go.Spot(.8,.85),lt}),go.Shape.defineFigureGenerator("Octagon",function(bt,et,nt){var ct=je(8),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<8;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.85),lt}),go.Shape.defineFigureGenerator("Nonagon",function(bt,et,nt){var ct=je(9),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<9;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.17,.13),lt.spot2=new go.Spot(.82,.82),lt}),go.Shape.defineFigureGenerator("Decagon",function(bt,et,nt){var ct=je(10),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<10;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("Dodecagon",function(bt,et,nt){var ct=je(12),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<12;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("FivePointedStar",function(bt,et,nt){var ct=Ge(5),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<10;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.266,.333),lt.spot2=new go.Spot(.733,.733),lt}),go.Shape.defineFigureGenerator("SixPointedStar",function(bt,et,nt){var ct=Ge(6),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<12;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.17,.25),lt.spot2=new go.Spot(.83,.75),lt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(bt,et,nt){var ct=Ge(7),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<14;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("EightPointedStar",function(bt,et,nt){var ct=Ge(8),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<16;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("NinePointedStar",function(bt,et,nt){var ct=Ge(9),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<18;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("TenPointedStar",function(bt,et,nt){var ct=Ge(10),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<20;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*et,ct[vt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*et,ct[0].y*nt).close()),Bt(ct),lt.spot1=new go.Spot(.281,.261),lt.spot2=new go.Spot(.723,.748),lt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(bt,et,nt){var ct=le(5),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<ct.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ct[vt+2].x*et,ct[vt+2].y*nt,ct[vt].x*et,ct[vt].y*nt,ct[vt+1].x*et,ct[vt+1].y*nt));return pt.segments.last().close(),Bt(ct),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(bt,et,nt){var ct=le(6),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<ct.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ct[vt+2].x*et,ct[vt+2].y*nt,ct[vt].x*et,ct[vt].y*nt,ct[vt+1].x*et,ct[vt+1].y*nt));return pt.segments.last().close(),Bt(ct),lt.spot1=new go.Spot(.17,.222),lt.spot2=new go.Spot(.833,.777),lt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(bt,et,nt){var ct=le(7),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<ct.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ct[vt+2].x*et,ct[vt+2].y*nt,ct[vt].x*et,ct[vt].y*nt,ct[vt+1].x*et,ct[vt+1].y*nt));return pt.segments.last().close(),Bt(ct),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(bt,et,nt){var ct=le(8),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<ct.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ct[vt+2].x*et,ct[vt+2].y*nt,ct[vt].x*et,ct[vt].y*nt,ct[vt+1].x*et,ct[vt+1].y*nt));return pt.segments.last().close(),Bt(ct),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(bt,et,nt){var ct=le(9),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<ct.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ct[vt+2].x*et,ct[vt+2].y*nt,ct[vt].x*et,ct[vt].y*nt,ct[vt+1].x*et,ct[vt+1].y*nt));return pt.segments.last().close(),Bt(ct),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(bt,et,nt){var ct=le(10),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*et,ct[0].y*nt,!0);lt.add(pt);for(var vt=1;vt<ct.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ct[vt+2].x*et,ct[vt+2].y*nt,ct[vt].x*et,ct[vt].y*nt,ct[vt+1].x*et,ct[vt+1].y*nt));return pt.segments.last().close(),Bt(ct),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.setFigureParameter("FramedRectangle",0,new xn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new xn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(bt,et,nt){var ct=bt?bt.parameter1:NaN,lt=bt?bt.parameter2:NaN;isNaN(ct)&&(ct=8),isNaN(lt)&&(lt=8);var pt=new go.Geometry,vt=new go.PathFigure(0,0,!0);return pt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct<et/2&<<nt/2&&(vt.add(new go.PathSegment(go.PathSegment.Move,ct,lt)),vt.add(new go.PathSegment(go.PathSegment.Line,ct,nt-lt)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ct,nt-lt)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ct,lt).close())),pt.setSpots(0,0,1,1,ct,lt,-ct,-lt),pt}),go.Shape.setFigureParameter("Ring",0,new xn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=8);var lt=et/2,pt=new go.Geometry,vt=new go.PathFigure(et,et/2,!0);pt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Arc,0,360,lt,lt,lt,lt).close());var Pt=Math.max(lt-ct,0);return Pt>0&&(vt.add(new go.PathSegment(go.PathSegment.Move,et/2+Pt,et/2)),vt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,lt,lt,Pt,Pt).close())),pt.spot1=ce,pt.spot2=fe,pt.defaultStretch=go.GraphObject.Uniform,pt}),go.Shape.defineFigureGenerator("Cloud",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*nt,-.09239631*et,.07836421*nt,.1406031*et,-.0542823*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*nt,.2450511*et,-.00697547*nt,.3776197*et,-.01112067*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*nt,.4539471*et,0,.6066018*et,-.02526587*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*nt,.6914277*et,-.01904177*nt,.8921095*et,-.01220843*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*nt,1.036446*et,.04105738*nt,1.020377*et,.3022052*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*nt,1.04448*et,.360238*nt,.992256*et,.5219009*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*nt,1.032337*et,.5771781*nt,1.018411*et,.8120651*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*nt,1.028411*et,.9571472*nt,.8556702*et,1.052487*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*nt,.7431877*et,1.009325*nt,.5624123*et,1.021761*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*nt,.4820677*et,1.031761*nt,.3030112*et,1.002796*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*nt,.2329994*et,1.01518*nt,.03213784*et,1.01518*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*nt,-.02812061*et,.9032597*nt,-.01205169*et,.6835638*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*nt,-.01812061*et,.6089503*nt,-.00606892*et,.4555777*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*nt,-.01606892*et,.3892545*nt,-.01205169*et,.1944299*nt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(bt,et,nt){var ct=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ct*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,ct*nt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-ct)*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,nt)).add(new go.PathSegment(go.PathSegment.Line,ct*et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ct)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,ct*nt).close())).setSpots(ct/2,ct/2,1-ct/2,1-ct/2)}),go.Shape.setFigureParameter("Pie",0,new xn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new xn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(bt,et,nt){var ct=bt?bt.parameter1:NaN,lt=bt?bt.parameter2:NaN;isNaN(ct)&&(ct=0),isNaN(lt)&&(lt=315);var pt=ct%360;pt<0&&(pt+=360);var vt=lt%360,Pt=Math.min(et,nt)/2;return new go.Geometry().add(new go.PathFigure(Pt,Pt).add(new go.PathSegment(go.PathSegment.Arc,pt,vt,Pt,Pt,Pt,Pt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(bt,et,nt){var ct=ue/Math.SQRT2*.5,lt=Math.SQRT2/2,pt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,lt*et,pt*nt,et,(1-ct)*nt,(lt+ct)*et,(pt+ct)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new xn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=30);var lt=Math.min(ct,et)/2,pt=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(pt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,pt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,vt-lt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new xn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=10);var lt=Math.min(ct,et)/2,pt=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(pt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,pt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,vt-lt).close()))}),go.Shape.setFigureParameter("ThickX",0,new xn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;if((isNaN(ct)||ct<0)&&(ct=30),et===0||nt===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=et,lt.endY=nt,lt}else{var pt=et/2,vt=nt/2,Pt=Math.atan2(nt,et),Dt=ct-Math.min(Math.cos(Pt)*ct/2,pt),Vt=ct-Math.min(Math.sin(Pt)*ct/2,vt),lt=new go.Geometry,Ut=new go.PathFigure(Dt,0,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,pt,.2*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,et-Dt,0)),Ut.add(new go.PathSegment(go.PathSegment.Line,et,Vt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,vt)),Ut.add(new go.PathSegment(go.PathSegment.Line,et,nt-Vt)),Ut.add(new go.PathSegment(go.PathSegment.Line,et-Dt,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,pt,.8*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,Dt,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,nt-Vt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,Vt).close()),lt}}),go.Shape.setFigureParameter("ThinX",0,new xn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=10);var lt=new go.Geometry,pt=new go.PathFigure(.1*et,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt).close()),lt}),go.Shape.setFigureParameter("SquareIBeam",0,new xn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.2);var lt=new go.Geometry,pt=new go.PathFigure(0,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,ct*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+ct/2)*et,ct*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+ct/2)*et,(1-ct)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,(1-ct)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,(1-ct)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-ct/2)*et,(1-ct)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-ct/2)*et,ct*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ct*nt).close()),lt}),go.Shape.setFigureParameter("RoundedIBeam",0,new xn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.5);var lt=new go.Geometry,pt=new go.PathFigure(0,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Math.abs(1-ct)*et,.25*nt,Math.abs(1-ct)*et,.75*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ct*et,.75*nt,ct*et,.25*nt).close()),lt}),go.Shape.defineFigureGenerator("HalfEllipse",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,ue*et,0,et,(.5-ue/2)*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,(.5+ue/2)*nt,ue*et,nt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,0,et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*nt,.5*et,.25*nt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,.1*et,.8*nt,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.5*nt,.9*et,.8*nt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*nt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.6*et,.2*nt,et,.25*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*nt,et,.8*nt,.6*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,.5*et,.75*nt,.55*et,.95*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*nt,.45*et,.95*nt,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.4*et,.8*nt,0,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*nt,0,.25*nt,.4*et,.2*nt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.4*et,.6*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,nt,.5*et,.75*nt,.45*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*nt,.55*et,.95*nt,.5*et,.75*nt));var pt=.2,vt=.3,Pt=0,Dt=pt*ue;return lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+pt+Pt)*nt,(.5-pt+vt)*et,(.5+Dt+Pt)*nt,(.5-Dt+vt)*et,(.5+pt+Pt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+vt)*et,(.5+Pt)*nt,(.5+Dt+vt)*et,(.5+pt+Pt)*nt,(.5+pt+vt)*et,(.5+Dt+Pt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-pt+Pt)*nt,(1-.5+pt+vt)*et,(.5-Dt+Pt)*nt,(.5+Dt+vt)*et,(.5-pt+Pt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*nt,(.5-Dt+vt)*et,(.5-pt+Pt)*nt,(.5-pt+vt+.05)*et,(.5-Dt+Pt-.02)*nt)),pt=.2,vt=0,Pt=-.3,Dt=pt*ue,lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+vt)*et,(.5+Pt)*nt,(.5+Dt+vt)*et,(.5+pt+Pt)*nt,(.5+pt+vt)*et,(.5+Dt+Pt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-pt+Pt)*nt,(1-.5+pt+vt)*et,(.5-Dt+Pt)*nt,(.5+Dt+vt)*et,(.5-pt+Pt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+vt)*et,(.5+Pt)*nt,(.5-Dt+vt)*et,(.5-pt+Pt)*nt,(.5-pt+vt)*et,(.5-Dt+Pt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Dt+vt)*et,(.5+pt+Pt)*nt,(.5-pt+vt)*et,(.5+Dt+Pt)*nt,(.5-Dt+vt)*et,(.5+pt+Pt)*nt)),pt=.2,vt=-.3,Pt=0,Dt=pt*ue,lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-pt+Pt)*nt,(1-.5+pt+vt-.05)*et,(.5-Dt+Pt-.02)*nt,(.5+Dt+vt)*et,(.5-pt+Pt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+vt)*et,(.5+Pt)*nt,(.5-Dt+vt)*et,(.5-pt+Pt)*nt,(.5-pt+vt)*et,(.5-Dt+Pt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+pt+Pt)*nt,(.5-pt+vt)*et,(.5+Dt+Pt)*nt,(.5-Dt+vt)*et,(.5+pt+Pt)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*nt,(.5+Dt+vt)*et,(.5+pt+Pt)*nt,(.5+pt+vt)*et,(.5+Dt+Pt)*nt).close()),ct.setSpots(.06,.33,.93,.68),ct}),go.Shape.defineFigureGenerator("YinYang",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*.5,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var pt=.1,vt=.5,Pt=.25;return lt.add(new go.PathSegment(go.PathSegment.Move,(vt+pt)*et,Pt*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*vt,nt*Pt,pt*et,pt*et).close()),lt=new go.PathFigure(et*.5,0,!1),ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),Pt=.75,lt=new go.PathFigure((vt+pt)*et,Pt*nt,!0),ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*vt,nt*Pt,pt*et,pt*et).close()),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("Peace",function(bt,et,nt){var ct=.8535533905932737,lt=.5*et,pt=.5*nt;return new go.Geometry().add(new go.PathFigure(lt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,lt,pt,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt)).add(new go.PathSegment(go.PathSegment.Move,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,ct*nt)).add(new go.PathSegment(go.PathSegment.Move,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,ct*et,ct*nt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.5,pt=.5,vt=.5,Pt=.5,Dt=new go.PathFigure(vt*et,(Pt-pt)*nt);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Pt*nt,(vt-lt)*et,(Pt-pt)*nt,(vt-pt)*et,(Pt-lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+pt)*nt,(vt-pt)*et,(Pt+lt)*nt,(vt-lt)*et,(Pt+pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Pt*nt,(vt+lt)*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-pt)*nt,(vt+pt)*et,(Pt-lt)*nt,(vt+lt)*et,(Pt-pt)*nt)),pt=.4,lt=ue*.4;var Vt=St(),Ut=St(),se=St(),qt=St();he(vt,Pt-pt,vt+lt,Pt-pt,vt+pt,Pt-lt,vt+pt,Pt,.42,Vt,Ut,se,qt,qt);var Jt=St(),Me=St(),pe=St();he(vt,Pt-pt,vt+lt,Pt-pt,vt+pt,Pt-lt,vt+pt,Pt,.58,qt,qt,pe,Jt,Me);var He=St(),De=St(),tn=St();he(vt,Pt+pt,vt-lt,Pt+pt,vt-pt,Pt+lt,vt-pt,Pt,.42,He,De,tn,qt,qt);var Fn=St(),on=St(),pn=St();return he(vt,Pt+pt,vt-lt,Pt+pt,vt-pt,Pt+lt,vt-pt,Pt,.58,qt,qt,pn,Fn,on),Dt.add(new go.PathSegment(go.PathSegment.Move,pn.x*et,pn.y*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Pt*nt,Fn.x*et,Fn.y*nt,on.x*et,on.y*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-pt)*nt,(vt-pt)*et,(Pt-lt)*nt,(vt-lt)*et,(Pt-pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,se.x*et,se.y*nt,Vt.x*et,Vt.y*nt,Ut.x*et,Ut.y*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,pn.x*et,pn.y*nt).close()),Dt.add(new go.PathSegment(go.PathSegment.Move,tn.x*et,tn.y*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,pe.x*et,pe.y*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Pt*nt,Jt.x*et,Jt.y*nt,Me.x*et,Me.y*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt,(vt+lt)*et,(Pt+pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,tn.x*et,tn.y*nt,He.x*et,He.y*nt,De.x*et,De.y*nt).close()),ee(Vt),ee(Ut),ee(se),ee(qt),ee(Jt),ee(Me),ee(pe),ee(He),ee(De),ee(tn),ee(Fn),ee(on),ee(pn),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("Fragile",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*nt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*nt,et,.25*nt,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*nt,0,.25*nt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new xn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=30),ct>et&&(ct=et);var lt=(et-ct)/2,pt=lt+ct;return new go.Geometry().add(new go.PathFigure(pt,.5*nt).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.55*nt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*nt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.4,pt=.4,vt=.5,Pt=.5,Dt=St(),Vt=St(),Ut=St(),se=St(),qt=new go.PathFigure((vt-pt)*et,Pt*nt,!1);ct.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-pt)*nt,(vt-pt)*et,(Pt-lt)*nt,(vt-lt)*et,(Pt-pt)*nt)),he(vt,Pt-pt,vt+lt,Pt-pt,vt+pt,Pt-lt,vt+pt,Pt,.44,Ut,se,Vt,Dt,Dt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Vt.x*et,Vt.y*nt,Ut.x*et,Ut.y*nt,se.x*et,se.y*nt));var Jt=Rt(Vt.x,Vt.y);he(vt,Pt-pt,vt+lt,Pt-pt,vt+pt,Pt-lt,vt+pt,Pt,.56,Dt,Dt,Vt,Ut,se);var Me=Rt(Vt.x,Vt.y);qt.add(new go.PathSegment(go.PathSegment.Line,(Jt.x*.1+.95*.9)*et,Jt.y*.1*nt)),qt.add(new go.PathSegment(go.PathSegment.Line,.85*et,Jt.y*.1*nt)),qt.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),qt.add(new go.PathSegment(go.PathSegment.Line,et,0)),qt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),qt.add(new go.PathSegment(go.PathSegment.Line,(Me.x*.1+.9)*et,.15*nt)),qt.add(new go.PathSegment(go.PathSegment.Line,(Me.x*.1+.9)*et,(Me.y*.1+.05*.9)*nt)),qt.add(new go.PathSegment(go.PathSegment.Line,Me.x*et,Me.y*nt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Pt*nt,Ut.x*et,Ut.y*nt,se.x*et,se.y*nt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt,(vt+lt)*et,(Pt+pt)*nt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Pt*nt,(vt-lt)*et,(Pt+pt)*nt,(vt-pt)*et,(Pt+lt)*nt)),pt=.35,lt=ue*.35;var pe=new go.PathFigure(vt*et,(Pt-pt)*nt,!1);ct.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Pt*nt,(vt-lt)*et,(Pt-pt)*nt,(vt-pt)*et,(Pt-lt)*nt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+pt)*nt,(vt-pt)*et,(Pt+lt)*nt,(vt-lt)*et,(Pt+pt)*nt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Pt*nt,(vt+lt)*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-pt)*nt,(vt+pt)*et,(Pt-lt)*nt,(vt+lt)*et,(Pt-pt)*nt));var He=new go.PathFigure((vt-pt)*et,Pt*nt,!1);return ct.add(He),ee(Dt),ee(Vt),ee(Ut),ee(se),ee(Jt),ee(Me),ct.spot1=new go.Spot(.202,.257),ct.spot2=new go.Spot(.792,.739),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("GenderFemale",function(bt,et,nt){var ct=new go.Geometry,lt=.375,pt=0,vt=-.125,Pt=lt*ue,Dt=new go.PathFigure((.525+pt)*et,(.5+lt+vt)*nt,!1);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+pt)*et,(.5+vt)*nt,(.5+Pt+pt)*et,(.5+lt+vt)*nt,(.5+lt+pt)*et,(.5+Pt+vt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*et,(.5-lt+vt)*nt,(1-.5+lt+pt)*et,(.5-Pt+vt)*nt,(.5+Pt+pt)*et,(.5-lt+vt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*et,(.5+vt)*nt,(.5-Pt+pt)*et,(.5-lt+vt)*nt,(.5-lt+pt)*et,(.5-Pt+vt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+pt)*et,(.5+lt+vt)*nt,(.5-lt+pt)*et,(.5+Pt+vt)*nt,(.5-Pt+pt)*et,(.5+lt+vt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.475*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.525*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt).close()),lt=.325,pt=0,vt=-.125,Pt=lt*ue;var Dt=new go.PathFigure((1-.5+lt+pt)*et,(.5+vt)*nt,!1);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*et,(.5+lt+vt)*nt,(.5+lt+pt)*et,(.5+Pt+vt)*nt,(.5+Pt+pt)*et,(.5+lt+vt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*et,(.5+vt)*nt,(.5-Pt+pt)*et,(.5+lt+vt)*nt,(.5-lt+pt)*et,(.5+Pt+vt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*et,(.5-lt+vt)*nt,(.5-lt+pt)*et,(.5-Pt+vt)*nt,(.5-Pt+pt)*et,(.5-lt+vt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+pt)*et,(.5+vt)*nt,(.5+Pt+pt)*et,(.5-lt+vt)*nt,(1-.5+lt+pt)*et,(.5-Pt+vt)*nt));var Dt=new go.PathFigure((.525+pt)*et,(.5+lt+vt)*nt,!1);return ct.add(Dt),ct.spot1=new go.Spot(.232,.136),ct.spot2=new go.Spot(.682,.611),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("LogicImplies",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;return isNaN(ct)&&(ct=.2),new go.Geometry().add(new go.PathFigure((1-ct)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;return isNaN(ct)&&(ct=.2),new go.Geometry().add(new go.PathFigure((1-ct)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,ct*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,ct*et,nt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(bt,et,nt){var ct=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*nt,.5*et,.5*nt)));return ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("LogicTruth",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(bt,et,nt){var ct=.5;return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,0,ct*nt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ct*et,ct*nt,ct*et,ct*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(bt,et,nt){var ct=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,ct*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ct*et,ct*nt,ct*et,ct*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new xn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new xn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=.3);var pt=(1-ct)*et,vt=(.5-lt/2)*nt,Pt=(.5+lt/2)*nt,Dt=new go.Geometry,Vt=new go.PathFigure(0,vt,!0);Dt.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Line,pt,vt)),Vt.add(new go.PathSegment(go.PathSegment.Line,pt,0)),Vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,pt,nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,pt,Pt)),Vt.add(new go.PathSegment(go.PathSegment.Line,0,Pt).close()),Dt.spot1=new go.Spot(0,vt/nt);var Ut=me(0,Pt/nt,1,Pt/nt,pt/et,1,1,.5,St());return Dt.spot2=new go.Spot(Ut.x,Ut.y),ee(Ut),Dt}),go.Shape.setFigureParameter("Arrow2",0,new xn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new xn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=30),ct>et&&(ct=et);var lt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=30),lt=Math.min(lt,nt/2);var pt=et-ct,vt=(nt-lt)/2,Pt=vt+lt,Dt=new go.Geometry,Vt=new go.PathFigure(0,vt,!0);Dt.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Line,pt,vt)),Vt.add(new go.PathSegment(go.PathSegment.Line,pt,0)),Vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,pt,nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,pt,Pt)),Vt.add(new go.PathSegment(go.PathSegment.Line,0,Pt).close()),Dt.spot1=new go.Spot(0,vt/nt);var Ut=me(0,Pt/nt,1,Pt/nt,pt/et,1,1,.5,St());return Dt.spot2=new go.Spot(Ut.x,Ut.y),ee(Ut),Dt}),go.Shape.defineFigureGenerator("Chevron",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ct}),go.Shape.defineFigureGenerator("DoubleArrow",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,1*nt).close()),ct}),go.Shape.setFigureParameter("DoubleEndArrow",0,new xn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=(.5-ct/2)*nt,pt=(.5+ct/2)*nt,vt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,lt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Dt=me(0,.5,.3,0,0,lt/nt,.1,lt/nt,St());return vt.spot1=new go.Spot(Dt.x,Dt.y),Dt=me(.7,1,1,.5,0,pt/nt,1,pt/nt,Dt),vt.spot2=new go.Spot(Dt.x,Dt.y),ee(Dt),vt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new xn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new xn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=40);var lt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=100);var pt=(nt-ct)/2,vt=pt+ct,Pt=(nt-lt)/2,Dt=Pt+lt;(ct>nt||lt>nt)&&(lt>ct?(ct=ct*nt/lt,pt=(nt-ct)/2,vt=pt+ct,Pt=0,Dt=nt):(pt=0,vt=nt,Pt=0,Dt=nt));var Vt=new go.Geometry,Ut=new go.PathFigure(et,.5*nt,!0);Vt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,Dt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.3*et,vt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.3*et,Dt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.3*et,Pt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,Pt).close());var se=me(0,.5,.3,Pt/nt,0,pt/nt,1,pt/nt,St());return Vt.spot1=new go.Spot(se.x,se.y),se=me(.7,Dt/nt,1,.5,0,vt/nt,1,vt/nt,se),Vt.spot2=new go.Spot(se.x,se.y),ee(se),Vt}),go.Shape.setFigureParameter("IBeamArrow",0,new xn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=(.5-ct/2)*nt,pt=(.5+ct/2)*nt,vt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,lt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(0,lt/nt);var Dt=me(.7,1,1,.5,0,pt/nt,1,pt/nt,St());return vt.spot2=new go.Spot(Dt.x,Dt.y),ee(Dt),vt}),go.Shape.setFigureParameter("IBeamArrow2",0,new xn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new xn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=40);var lt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=100);var pt=(nt-ct)/2,vt=pt+ct,Pt=(nt-lt)/2,Dt=Pt+lt;(ct>nt||lt>nt)&&(lt>ct?(ct=ct*nt/lt,pt=(nt-ct)/2,vt=pt+ct,Pt=0,Dt=nt):(pt=0,vt=nt,Pt=0,Dt=nt));var Vt=new go.Geometry,Ut=new go.PathFigure(et,.5*nt,!0);Vt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,Dt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,Dt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,Dt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,Pt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,Pt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,Pt).close()),Vt.spot1=new go.Spot(0,pt/nt);var se=me(.7,Dt/nt,1,.5,0,vt/nt,1,vt/nt,St());return Vt.spot2=new go.Spot(se.x,se.y),ee(se),Vt}),go.Shape.setFigureParameter("Pointer",0,new xn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.1);var lt=new go.Geometry,pt=new go.PathFigure(et,.5*nt,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,ct*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),lt.spot1=new go.Spot(ct,.35);var vt=me(.2,.65,1,.65,0,1,1,.5,St());return lt.spot2=new go.Spot(vt.x,vt.y),ee(vt),lt}),go.Shape.setFigureParameter("RoundedPointer",0,new xn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=new go.Geometry,pt=new go.PathFigure(et,.5*nt,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ct*et,.75*nt,ct*et,.25*nt).close()),lt.spot1=new go.Spot(ct,.35);var vt=me(0,.65,1,.65,0,1,1,.5,St());return lt.spot2=new go.Spot(vt.x,vt.y),ee(vt),lt}),go.Shape.setFigureParameter("SplitEndArrow",0,new xn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.4);var lt=(.5-ct/2)*nt,pt=(.5+ct/2)*nt,vt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,.3);var Dt=me(.7,1,1,.5,0,pt/nt,1,pt/nt,St());return vt.spot2=new go.Spot(Dt.x,Dt.y),ee(Dt),vt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new xn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=50);var lt=(nt-ct)/2,pt=lt+ct;ct>nt&&(lt=0,pt=nt);var vt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,lt/nt);var Dt=me(.7,1,1,.5,0,pt/nt,1,pt/nt,St());return vt.spot2=new go.Spot(Dt.x,Dt.y),ee(Dt),vt}),go.Shape.setFigureParameter("SquareArrow",0,new xn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.7);var lt=new go.Geometry,pt=new go.PathFigure(et,.5*nt,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,ct*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,ct*et,0).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(ct,1),lt}),go.Shape.defineFigureGenerator("Cone1",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.5,pt=ue*.1,vt=new go.PathFigure(0,.9*nt,!0);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+pt)*nt,(.5+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+pt)*nt).close()),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.97),ct}),go.Shape.defineFigureGenerator("Cone2",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.9*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,nt,.85/.9*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt).close());var pt=new go.PathFigure(0,.9*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,.8*nt,.85/.9*et,.8*nt)),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.82),ct}),go.Shape.defineFigureGenerator("Cube1",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var pt=new go.PathFigure(.5*et,nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(.5,.85),ct}),go.Shape.defineFigureGenerator("Cube2",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.3*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var pt=new go.PathFigure(0,.3*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(.7,1),ct}),go.Shape.defineFigureGenerator("Cylinder1",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,nt/3);var lt=new go.Geometry,pt=ue*.5,vt=new go.PathFigure(0,ct,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,ue*ct,(.5-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,ct,(.5+pt)*et,0,1*et,ue*ct)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ct)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*nt,1*et,nt-ue*ct,(.5+pt)*et,1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ct,(.5-pt)*et,1*nt,0,nt-ue*ct)),vt.add(new go.PathSegment(go.PathSegment.Line,0,ct));var Pt=new go.PathFigure(et,ct,!1);return lt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*ct,1*et,2*ct-ue*ct,(.5+pt)*et,2*ct)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,ct,(.5-pt)*et,2*ct,0,2*ct-ue*ct)),lt.spot1=new go.Spot(0,0,0,2*ct),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder2",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,nt/3);var lt=new go.Geometry,pt=ue*.5,vt=new go.PathFigure(0,nt-ct,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,ct)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,ue*ct,(.5-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,ct,(.5+pt)*et,0,et,ue*ct)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ct)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,nt-ue*ct,(.5+pt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ct,(.5-pt)*et,nt,0,nt-ue*ct));var Pt=new go.PathFigure(0,nt-ct,!1);return lt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt-2*ct,0,nt-ct-ue*ct,(.5-pt)*et,nt-2*ct)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt-ct,(.5+pt)*et,nt-2*ct,et,nt-ct-ue*ct)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,0,-2*ct),lt}),go.Shape.defineFigureGenerator("Cylinder3",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,et/3);var lt=new go.Geometry,pt=ue*.5,vt=new go.PathFigure(ct,0,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et-ct,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-ue*ct,0,et,(.5-pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-ct,nt,et,(.5+pt)*nt,et-ue*ct,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,ct,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,ue*ct,nt,0,(.5+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,(.5-pt)*nt,ue*ct,0));var Pt=new go.PathFigure(ct,0,!1);return lt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,2*ct,.5*nt,ct+ue*ct,0,2*ct,(.5-pt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct,nt,2*ct,(.5+pt)*nt,ct+ue*ct,nt)),lt.spot1=new go.Spot(0,0,2*ct,0),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder4",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,et/3);var lt=new go.Geometry,pt=ue*.5,vt=new go.PathFigure(et-ct,0,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-ue*ct,0,et,(.5-pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-ct,nt,et,(.5+pt)*nt,et-ue*ct,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,ct,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,ue*ct,nt,0,(.5+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,(.5-pt)*nt,ue*ct,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ct,0));var Pt=new go.PathFigure(et-ct,0,!1);return lt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*ct,.5*nt,et-ct-ue*ct,0,et-2*ct,(.5-pt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et-ct,nt,et-2*ct,(.5+pt)*nt,et-ct-ue*ct,nt)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,-2*ct,0),lt}),go.Shape.defineFigureGenerator("Prism1",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.25*et,.25*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(.25*et,.25*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ct.spot1=new go.Spot(.408,.172),ct.spot2=new go.Spot(.833,.662),ct}),go.Shape.defineFigureGenerator("Prism2",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.25*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(0,nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("Pyramid1",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt).close());var pt=new go.PathFigure(.5*et,0,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ct.spot1=new go.Spot(.25,.367),ct.spot2=new go.Spot(.75,.875),ct}),go.Shape.defineFigureGenerator("Pyramid2",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var pt=new go.PathFigure(.5*et,0,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),ct.spot1=new go.Spot(.25,.367),ct.spot2=new go.Spot(.75,.875),ct}),go.Shape.defineFigureGenerator("Actor",function(bt,et,nt){var ct=new go.Geometry,lt=.2,pt=.1,vt=ue*lt,Pt=ue*pt,Dt=.5,Vt=.1,Ut=new go.PathFigure(Dt*et,(Vt+pt)*nt,!0);ct.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-lt)*et,Vt*nt,(Dt-vt)*et,(Vt+pt)*nt,(Dt-lt)*et,(Vt+Pt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Vt-pt)*nt,(Dt-lt)*et,(Vt-Pt)*nt,(Dt-vt)*et,(Vt-pt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+lt)*et,Vt*nt,(Dt+vt)*et,(Vt-pt)*nt,(Dt+lt)*et,(Vt-Pt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Vt+pt)*nt,(Dt+lt)*et,(Vt+Pt)*nt,(Dt+vt)*et,(Vt+pt)*nt));var se=.05,qt=ue*se;Dt=.05,Vt=.25;var Jt=new go.PathFigure(.5*et,.2*nt,!0);return ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*nt)),Dt=.95,Vt=.25,Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+se)*et,Vt*nt,(Dt+qt)*et,(Vt-se)*nt,(Dt+se)*et,(Vt-qt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*nt)),se=.025,qt=ue*se,Dt=.825,Vt=.35,Jt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Vt-se)*nt,(Dt+se)*et,(Vt-qt)*nt,(Dt+qt)*et,(Vt-se)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-se)*et,Vt*nt,(Dt-qt)*et,(Vt-se)*nt,(Dt-se)*et,(Vt-qt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt)),se=.05,qt=ue*se,Dt=.5,Vt=.7,Jt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Vt-se)*nt,(Dt+se)*et,(Vt-qt)*nt,(Dt+qt)*et,(Vt-se)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-se)*et,Vt*nt,(Dt-qt)*et,(Vt-se)*nt,(Dt-se)*et,(Vt-qt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.45*et,nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*nt)),se=.025,qt=ue*se,Dt=.175,Vt=.35,Jt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Vt-se)*nt,(Dt+se)*et,(Vt-qt)*nt,(Dt+qt)*et,(Vt-se)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-se)*et,Vt*nt,(Dt-qt)*et,(Vt-se)*nt,(Dt-se)*et,(Vt-qt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),se=.05,qt=ue*se,Dt=.05,Vt=.25,Jt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Vt-se)*nt,(Dt-se)*et,(Vt-qt)*nt,(Dt-qt)*et,(Vt-se)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),ct.spot1=new go.Spot(.2,.2),ct.spot2=new go.Spot(.8,.65),ct}),go.Shape.setFigureParameter("Card",0,new xn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;isNaN(ct)&&(ct=.2);var lt=new go.Geometry,pt=new go.PathFigure(et,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ct*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,ct*et,0).close()),lt.spot1=new go.Spot(0,ct),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Collate",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,.5*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt));var pt=new go.PathFigure(.5*et,.5*nt,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),ct.spot1=new go.Spot(.25,0),ct.spot2=new go.Spot(.75,.25),ct}),go.Shape.defineFigureGenerator("CreateRequest",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,lt*nt,!1);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*nt)),ct}),go.Shape.defineFigureGenerator("Database",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.5,pt=ue*.1,vt=new go.PathFigure(et,.1*nt,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+pt)*nt,(.5+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-pt)*nt,(.5-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+lt)*et,0,et,(.1-pt)*nt));var Pt=new go.PathFigure(et,.1*nt,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+pt)*nt,(.5+lt)*et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-lt)*et,.2*nt,0,(.1+pt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+pt)*nt,(.5+lt)*et,.3*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-lt)*et,.3*nt,0,(.2+pt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,.3*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*nt,et,(.3+pt)*nt,(.5+lt)*et,.4*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,(.5-lt)*et,.4*nt,0,(.3+pt)*nt)),ct.spot1=new go.Spot(0,.4),ct.spot2=new go.Spot(1,.9),ct}),go.Shape.defineFigureGenerator("DataStorage",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*nt,.25*et,.1*nt).close()),ct.spot1=new go.Spot(.226,0),ct.spot2=new go.Spot(.81,1),ct}),go.Shape.defineFigureGenerator("DiskStorage",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.5,pt=ue*.1,vt=new go.PathFigure(et,.1*nt,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+pt)*nt,(.5+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-pt)*nt,(.5-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+lt)*et,0,et,(.1-pt)*nt));var Pt=new go.PathFigure(et,.1*nt,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+pt)*nt,(.5+lt)*et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-lt)*et,.2*nt,0,(.1+pt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+pt)*nt,(.5+lt)*et,.3*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-lt)*et,.3*nt,0,(.2+pt)*nt)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(1,.9),ct}),go.Shape.defineFigureGenerator("Display",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.25*et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close()),ct.spot1=new go.Spot(.25,0),ct.spot2=new go.Spot(.75,1),ct}),go.Shape.defineFigureGenerator("DividedEvent",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.15&&(lt=.15);var pt=ue*.2,vt=new go.PathFigure(0,.2*nt,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-pt)*nt,(.2-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*nt,(.8+pt)*et,0,et,(.2-pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,nt,et,(.8+pt)*nt,(.8+pt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*nt,(.2-pt)*et,nt,0,(.8+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt));var Pt=new go.PathFigure(0,lt*nt,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),ct}),go.Shape.defineFigureGenerator("DividedProcess",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;(isNaN(lt)||lt<.1)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,lt*nt,!1);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),ct}),go.Shape.defineFigureGenerator("Document",function(bt,et,nt){var ct=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(1,.6),ct}),go.Shape.defineFigureGenerator("ExternalOrganization",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;(isNaN(lt)||lt<.2)&&(lt=.2);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(lt*et,0,!1);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,lt*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,et,lt*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*nt)),ct}),go.Shape.defineFigureGenerator("ExternalProcess",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var pt=new go.PathFigure(.1*et,.4*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*nt)),ct.spot1=new go.Spot(.25,.25),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("File",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(.75*et,0,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("Interrupt",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et,.5*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt));var pt=new go.PathFigure(et,.5*nt,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt));var vt=new go.PathFigure(et,.5*nt,!1);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("InternalStorage",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN,pt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.1);var vt=new go.PathFigure(0,0,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var Pt=new go.PathFigure(lt*et,0,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,0,pt*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et,pt*nt)),ct}),go.Shape.defineFigureGenerator("Junction",function(bt,et,nt){var ct=new go.Geometry,lt=1/Math.SQRT2,pt=(1-1/Math.SQRT2)/2,vt=ue*.5,Pt=.5,Dt=new go.PathFigure(et,Pt*nt,!0);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,nt,et,(Pt+vt)*nt,(Pt+vt)*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,0,Pt*nt,(Pt-vt)*et,nt,0,(Pt+vt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,0,0,(Pt-vt)*nt,(Pt-vt)*et,0)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,et,Pt*nt,(Pt+vt)*et,0,et,(Pt-vt)*nt));var Vt=new go.PathFigure((pt+lt)*et,(pt+lt)*nt,!1);return ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Line,pt*et,pt*nt)),Vt.add(new go.PathSegment(go.PathSegment.Move,pt*et,(pt+lt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,(pt+lt)*et,pt*nt)),ct}),go.Shape.defineFigureGenerator("LinedDocument",function(bt,et,nt){var ct=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close());var pt=new go.PathFigure(.1*et,0,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*nt)),ct.spot1=new go.Spot(.1,0),ct.spot2=new go.Spot(1,.6),ct}),go.Shape.defineFigureGenerator("LoopLimit",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("MagneticTape",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.5,pt=.5,vt=new go.PathFigure(.5*et,nt,!0);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*nt,(pt-lt)*et,nt,0,(pt+lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-lt)*nt,(pt-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*nt,(pt+lt)*et,0,et,(pt-lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+.1)*et,.9*nt,et,(pt+lt)*nt,(pt+lt)*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ct.spot1=new go.Spot(.15,.15),ct.spot2=new go.Spot(.85,.8),ct}),go.Shape.defineFigureGenerator("ManualInput",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("MessageFromUser",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.7);var pt=new go.PathFigure(0,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct.spot1=go.Spot.TopLeft,ct}),go.Shape.defineFigureGenerator("MicroformProcessing",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.25);var pt=new go.PathFigure(0,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,lt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-lt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct}),go.Shape.defineFigureGenerator("MicroformRecording",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(1,.75),ct}),go.Shape.defineFigureGenerator("MultiDocument",function(bt,et,nt){var ct=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*nt,.96*et,.47*nt,.93*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*nt,.86*et,.57*nt,.83*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.4*et,.4*nt,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var pt=new go.PathFigure(.1*et,.2*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*nt)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.8,.77),ct}),go.Shape.defineFigureGenerator("MultiProcess",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.1*et,.1*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close());var pt=new go.PathFigure(.2*et,.1*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),ct.spot1=new go.Spot(0,.2),ct.spot2=new go.Spot(.8,1),ct}),go.Shape.defineFigureGenerator("OfflineStorage",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=1-lt,vt=new go.PathFigure(0,0,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close());var Pt=new go.PathFigure(.5*lt*et,lt*nt,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*lt)*et,lt*nt)),ct}),go.Shape.defineFigureGenerator("OffPageConnector",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(.75,1),ct}),go.Shape.defineFigureGenerator("Or",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.5,pt=.5,vt=new go.PathFigure(et,pt*nt,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,nt,et,(pt+lt)*nt,(pt+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*nt,(pt-lt)*et,nt,0,(pt+lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-lt)*nt,(pt-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*nt,(pt+lt)*et,0,et,(pt-lt)*nt));var Pt=new go.PathFigure(et,.5*nt,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct}),go.Shape.defineFigureGenerator("PaperTape",function(bt,et,nt){var ct=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.5*et,.6*nt,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ct.spot1=new go.Spot(0,.49),ct.spot2=new go.Spot(1,.75),ct}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN,pt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.3);var vt=new go.PathFigure(0,0,!0);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN,pt=bt?bt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.3);var vt=new go.PathFigure(0,0,!0);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct}),go.Shape.defineFigureGenerator("Procedure",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure((1-lt)*et,0,!1);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,lt*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),ct}),go.Shape.defineFigureGenerator("Process",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(lt*et,0,!1);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("Sort",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var pt=new go.PathFigure(0,.5*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),ct.spot1=new go.Spot(.25,.25),ct.spot2=new go.Spot(.75,.5),ct}),go.Shape.defineFigureGenerator("Start",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.25);var pt=new go.PathFigure(lt*et,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt));var vt=new go.PathFigure(lt*et,0,!1);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,nt)),ct.spot1=new go.Spot(lt,0),ct.spot2=new go.Spot(1-lt,1),ct}),go.Shape.defineFigureGenerator("Terminator",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.25*et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt)),ct.spot1=new go.Spot(.23,0),ct.spot2=new go.Spot(.77,1),ct}),go.Shape.defineFigureGenerator("TransmittalTape",function(bt,et,nt){var ct=new go.Geometry,lt=bt?bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-lt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*nt).close()),ct.spot1=go.Spot.TopLeft,ct}),go.Shape.defineFigureGenerator("AndGate",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.5,pt=new go.PathFigure(0,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(.5+lt)*et,0,et,(.5-lt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.5+lt)*nt,(.5+lt)*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(.55,1),ct}),go.Shape.defineFigureGenerator("Buffer",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("Clock",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.5,pt=.5,vt=new go.PathFigure(et,pt*nt,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,nt,et,(pt+lt)*nt,(pt+lt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*nt,(pt-lt)*et,nt,0,(pt+lt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-lt)*nt,(pt-lt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*nt,(pt+lt)*et,0,et,(pt-lt)*nt));var Pt=new go.PathFigure(et,pt*nt,!1);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,pt*nt));var Dt=new go.PathFigure(.8*et,.75*nt,!1);return ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*nt)),ct}),go.Shape.defineFigureGenerator("Ground",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),ct}),go.Shape.defineFigureGenerator("Inverter",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.1,pt=.1,vt=.9,Pt=.5,Dt=new go.PathFigure(.8*et,.5*nt,!0);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt));var Vt=new go.PathFigure((vt+pt)*et,Pt*nt,!0);return ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt,(vt+lt)*et,(Pt+pt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Pt*nt,(vt-lt)*et,(Pt+pt)*nt,(vt-pt)*et,(Pt+lt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-pt)*nt,(vt-pt)*et,(Pt-lt)*nt,(vt-lt)*et,(Pt-pt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Pt*nt,(vt+lt)*et,(Pt-pt)*nt,(vt+pt)*et,(Pt-lt)*nt)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.4,.75),ct}),go.Shape.defineFigureGenerator("NandGate",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.5,pt=ue*.4,vt=ue*.1,Pt=.1,Dt=.9,Vt=.5,Ut=new go.PathFigure(.8*et,.5*nt,!0);ct.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,.8*et,(.5+pt)*nt,(.4+lt)*et,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(.4+lt)*et,0,.8*et,(.5-pt)*nt));var se=new go.PathFigure((Dt+Pt)*et,Vt*nt,!0);return ct.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Vt+Pt)*nt,(Dt+Pt)*et,(Vt+vt)*nt,(Dt+vt)*et,(Vt+Pt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Pt)*et,Vt*nt,(Dt-vt)*et,(Vt+Pt)*nt,(Dt-Pt)*et,(Vt+vt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Vt-Pt)*nt,(Dt-Pt)*et,(Vt-vt)*nt,(Dt-vt)*et,(Vt-Pt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Pt)*et,Vt*nt,(Dt+vt)*et,(Vt-Pt)*nt,(Dt+Pt)*et,(Vt-vt)*nt)),ct.spot1=new go.Spot(0,.05),ct.spot2=new go.Spot(.55,.95),ct}),go.Shape.defineFigureGenerator("NorGate",function(bt,et,nt){var ct=new go.Geometry,lt=.5,pt=ue*lt,vt=0,Pt=.5,Dt=new go.PathFigure(.8*et,.5*nt,!0);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.7*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+pt)*et,(Pt-lt)*nt,.7*et,(Pt-pt)*nt)),lt=.1,pt=ue*.1,vt=.9,Pt=.5;var Vt=new go.PathFigure((vt-lt)*et,Pt*nt,!0);return ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-lt)*nt,(vt-lt)*et,(Pt-pt)*nt,(vt-pt)*et,(Pt-lt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Pt*nt,(vt+pt)*et,(Pt-lt)*nt,(vt+lt)*et,(Pt-pt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+lt)*nt,(vt+lt)*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Pt*nt,(vt-pt)*et,(Pt+lt)*nt,(vt-lt)*et,(Pt+pt)*nt)),ct.spot1=new go.Spot(.2,.25),ct.spot2=new go.Spot(.6,.75),ct}),go.Shape.defineFigureGenerator("OrGate",function(bt,et,nt){var ct=new go.Geometry,lt=.5,pt=ue*lt,vt=0,Pt=.5,Dt=new go.PathFigure(0,0,!0);return ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+pt+pt)*et,(Pt-lt)*nt,.8*et,(Pt-pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.8*et,(Pt+pt)*nt,(vt+pt+pt)*et,(Pt+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt).close()),ct.spot1=new go.Spot(.2,.25),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("XnorGate",function(bt,et,nt){var ct=new go.Geometry,lt=.5,pt=ue*lt,vt=.2,Pt=.5,Dt=new go.PathFigure(.1*et,0,!1);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var Vt=new go.PathFigure(.8*et,.5*nt,!0);ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.7*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+pt)*et,(Pt-lt)*nt,.7*et,(Pt-pt)*nt)),lt=.1,pt=ue*.1,vt=.9,Pt=.5;var Ut=new go.PathFigure((vt-lt)*et,Pt*nt,!0);return ct.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-lt)*nt,(vt-lt)*et,(Pt-pt)*nt,(vt-pt)*et,(Pt-lt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Pt*nt,(vt+pt)*et,(Pt-lt)*nt,(vt+lt)*et,(Pt-pt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+lt)*nt,(vt+lt)*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Pt*nt,(vt-pt)*et,(Pt+lt)*nt,(vt-lt)*et,(Pt+pt)*nt)),ct.spot1=new go.Spot(.4,.25),ct.spot2=new go.Spot(.65,.75),ct}),go.Shape.defineFigureGenerator("XorGate",function(bt,et,nt){var ct=new go.Geometry,lt=.5,pt=ue*lt,vt=.2,Pt=.5,Dt=new go.PathFigure(.1*et,0,!1);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var Vt=new go.PathFigure(.2*et,0,!0);return ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+pt)*et,(Pt-lt)*nt,.9*et,(Pt-pt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.9*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt).close()),ct.spot1=new go.Spot(.4,.25),ct.spot2=new go.Spot(.8,.75),ct}),go.Shape.defineFigureGenerator("Capacitor",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ct}),go.Shape.defineFigureGenerator("Resistor",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),ct}),go.Shape.defineFigureGenerator("Inductor",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.1,pt=.1,vt=.1,Pt=.5,Dt=new go.PathFigure((vt-lt*.5)*et,nt,!1);return ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,0,(vt-lt)*et,nt,(vt-pt)*et,0)),vt=.3,Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+pt)*et,0,(vt+lt)*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,0,(vt-lt)*et,nt,(vt-pt)*et,0)),vt=.5,Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+pt)*et,0,(vt+lt)*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,0,(vt-lt)*et,nt,(vt-pt)*et,0)),vt=.7,Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+pt)*et,0,(vt+lt)*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,0,(vt-lt)*et,nt,(vt-pt)*et,0)),vt=.9,Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt*.5)*et,nt,(vt+pt)*et,0,(vt+lt)*et,nt)),ct}),go.Shape.defineFigureGenerator("ACvoltageSource",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.5,pt=.5,vt=.5,Pt=.5,Dt=new go.PathFigure((vt-pt)*et,Pt*nt,!1);return ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-pt)*nt,(vt-pt)*et,(Pt-lt)*nt,(vt-lt)*et,(Pt-pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Pt*nt,(vt+lt)*et,(Pt-pt)*nt,(vt+pt)*et,(Pt-lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt,(vt+lt)*et,(Pt+pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Pt*nt,(vt-lt)*et,(Pt+pt)*nt,(vt-pt)*et,(Pt+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Move,(vt-pt+.1)*et,Pt*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt-.1)*et,Pt*nt,vt*et,(Pt-pt)*nt,vt*et,(Pt+pt)*nt)),ct}),go.Shape.defineFigureGenerator("DCvoltageSource",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.75*nt,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ct}),go.Shape.defineFigureGenerator("Diode",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("Wifi",function(bt,et,nt){var ct=new go.Geometry,lt=et,pt=nt;et=et*.38,nt=nt*.6;var vt=ue*.8,Pt=.8,Dt=0,Vt=.5,Ut=(lt-et)/2,se=(pt-nt)/2,qt=new go.PathFigure(Dt*et+Ut,(Vt+Pt)*nt+se,!0);ct.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Pt)*et+Ut,Vt*nt+se,(Dt-vt)*et+Ut,(Vt+Pt)*nt+se,(Dt-Pt)*et+Ut,(Vt+vt)*nt+se)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Ut,(Vt-Pt)*nt+se,(Dt-Pt)*et+Ut,(Vt-vt)*nt+se,(Dt-vt)*et+Ut,(Vt-Pt)*nt+se)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Pt+vt*.5)*et+Ut,Vt*nt+se,Dt*et+Ut,(Vt-Pt)*nt+se,(Dt-Pt+vt*.5)*et+Ut,(Vt-vt)*nt+se)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Ut,(Vt+Pt)*nt+se,(Dt-Pt+vt*.5)*et+Ut,(Vt+vt)*nt+se,Dt*et+Ut,(Vt+Pt)*nt+se).close()),vt=ue*.4,Pt=.4,Dt=.2,Vt=.5;var Jt=new go.PathFigure(Dt*et+Ut,(Vt+Pt)*nt+se,!0);ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Pt)*et+Ut,Vt*nt+se,(Dt-vt)*et+Ut,(Vt+Pt)*nt+se,(Dt-Pt)*et+Ut,(Vt+vt)*nt+se)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Ut,(Vt-Pt)*nt+se,(Dt-Pt)*et+Ut,(Vt-vt)*nt+se,(Dt-vt)*et+Ut,(Vt-Pt)*nt+se)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Pt+vt*.5)*et+Ut,Vt*nt+se,Dt*et+Ut,(Vt-Pt)*nt+se,(Dt-Pt+vt*.5)*et+Ut,(Vt-vt)*nt+se)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Ut,(Vt+Pt)*nt+se,(Dt-Pt+vt*.5)*et+Ut,(Vt+vt)*nt+se,Dt*et+Ut,(Vt+Pt)*nt+se).close()),vt=ue*.2,Pt=.2,Dt=.5,Vt=.5;var Me=new go.PathFigure((Dt-Pt)*et+Ut,Vt*nt+se,!0);ct.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Ut,(Vt-Pt)*nt+se,(Dt-Pt)*et+Ut,(Vt-vt)*nt+se,(Dt-vt)*et+Ut,(Vt-Pt)*nt+se)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Pt)*et+Ut,Vt*nt+se,(Dt+vt)*et+Ut,(Vt-Pt)*nt+se,(Dt+Pt)*et+Ut,(Vt-vt)*nt+se)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Ut,(Vt+Pt)*nt+se,(Dt+Pt)*et+Ut,(Vt+vt)*nt+se,(Dt+vt)*et+Ut,(Vt+Pt)*nt+se)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Pt)*et+Ut,Vt*nt+se,(Dt-vt)*et+Ut,(Vt+Pt)*nt+se,(Dt-Pt)*et+Ut,(Vt+vt)*nt+se)),vt=ue*.4,Pt=.4,Dt=.8,Vt=.5;var pe=new go.PathFigure(Dt*et+Ut,(Vt-Pt)*nt+se,!0);ct.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Pt)*et+Ut,Vt*nt+se,(Dt+vt)*et+Ut,(Vt-Pt)*nt+se,(Dt+Pt)*et+Ut,(Vt-vt)*nt+se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Ut,(Vt+Pt)*nt+se,(Dt+Pt)*et+Ut,(Vt+vt)*nt+se,(Dt+vt)*et+Ut,(Vt+Pt)*nt+se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Pt-vt*.5)*et+Ut,Vt*nt+se,Dt*et+Ut,(Vt+Pt)*nt+se,(Dt+Pt-vt*.5)*et+Ut,(Vt+vt)*nt+se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Ut,(Vt-Pt)*nt+se,(Dt+Pt-vt*.5)*et+Ut,(Vt-vt)*nt+se,Dt*et+Ut,(Vt-Pt)*nt+se).close()),vt=ue*.8,Pt=.8,Dt=1,Vt=.5;var He=new go.PathFigure(Dt*et+Ut,(Vt-Pt)*nt+se,!0);return ct.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Pt)*et+Ut,Vt*nt+se,(Dt+vt)*et+Ut,(Vt-Pt)*nt+se,(Dt+Pt)*et+Ut,(Vt-vt)*nt+se)),He.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Ut,(Vt+Pt)*nt+se,(Dt+Pt)*et+Ut,(Vt+vt)*nt+se,(Dt+vt)*et+Ut,(Vt+Pt)*nt+se)),He.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Pt-vt*.5)*et+Ut,Vt*nt+se,Dt*et+Ut,(Vt+Pt)*nt+se,(Dt+Pt-vt*.5)*et+Ut,(Vt+vt)*nt+se)),He.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Ut,(Vt-Pt)*nt+se,(Dt+Pt-vt*.5)*et+Ut,(Vt-vt)*nt+se,Dt*et+Ut,(Vt-Pt)*nt+se).close()),ct}),go.Shape.defineFigureGenerator("Email",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,0,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*nt)),ct}),go.Shape.defineFigureGenerator("Ethernet",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.35*et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var pt=new go.PathFigure(.1*et,nt,!0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var vt=new go.PathFigure(.6*et,nt,!0,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt).close());var Pt=new go.PathFigure(0,.5*nt,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*nt)),ct}),go.Shape.defineFigureGenerator("Power",function(bt,et,nt){var ct=new go.Geometry,lt=ue*.4,pt=.4,vt=.5,Pt=.5,Dt=St(),Vt=St(),Ut=St(),se=St();he(vt,Pt-pt,vt+lt,Pt-pt,vt+pt,Pt-lt,vt+pt,Pt,.5,Dt,Dt,Vt,Ut,se);var qt=Rt(Vt.x,Vt.y),Jt=new go.PathFigure(Vt.x*et,Vt.y*nt,!0);ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Pt*nt,Ut.x*et,Ut.y*nt,se.x*et,se.y*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt,(vt+lt)*et,(Pt+pt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Pt*nt,(vt-lt)*et,(Pt+pt)*nt,(vt-pt)*et,(Pt+lt)*nt)),he(vt-pt,Pt,vt-pt,Pt-lt,vt-lt,Pt-pt,vt,Pt-pt,.5,Ut,se,Vt,Dt,Dt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Vt.x*et,Vt.y*nt,Ut.x*et,Ut.y*nt,se.x*et,se.y*nt)),lt=ue*.3,pt=.3,he(vt-pt,Pt,vt-pt,Pt-lt,vt-lt,Pt-pt,vt,Pt-pt,.5,Ut,se,Vt,Dt,Dt),Jt.add(new go.PathSegment(go.PathSegment.Line,Vt.x*et,Vt.y*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*et,Pt*nt,se.x*et,se.y*nt,Ut.x*et,Ut.y*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+pt)*nt,(vt-pt)*et,(Pt+lt)*nt,(vt-lt)*et,(Pt+pt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*et,Pt*nt,(vt+lt)*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt)),he(vt,Pt-pt,vt+lt,Pt-pt,vt+pt,Pt-lt,vt+pt,Pt,.5,Dt,Dt,Vt,Ut,se),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Vt.x*et,Vt.y*nt,se.x*et,se.y*nt,Ut.x*et,Ut.y*nt).close());var Jt=new go.PathFigure(.45*et,0,!0);return ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*nt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),ee(Dt),ee(Vt),ee(Ut),ee(se),ee(qt),ct.spot1=new go.Spot(.25,.45),ct.spot2=new go.Spot(.75,.8),ct}),go.Shape.defineFigureGenerator("Fallout",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt/2,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,nt/2,et/2,nt/2));function pt(vt,Pt,Dt){vt.add(new go.PathSegment(go.PathSegment.Move,(.3+Pt)*et,(.8+Dt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.5+Pt)*et,(.5+Dt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.1+Pt)*et,(.5+Dt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.3+Pt)*et,(.8+Dt)*nt).close())}return pt(lt,0,0),pt(lt,.4,0),pt(lt,.2,-.3),ct}),go.Shape.defineFigureGenerator("IrritationHazard",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.2*et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close()),ct.spot1=new go.Spot(.3,.3),ct.spot2=new go.Spot(.7,.7),ct}),go.Shape.defineFigureGenerator("ElectricalHazard",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.37*et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.37*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt).close()),ct}),go.Shape.defineFigureGenerator("FireHazard",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.1*et,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*nt,.45*et,.44*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*nt,.48*et,.17*nt,.54*et,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*nt,.59*et,.29*nt,.58*et,.28*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*nt,.8*et,.34*nt,.88*et,.43*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*nt,.87*et,.48*nt,.88*et,.43*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,1.17*et,.76*nt,.82*et,.8*nt).close()),ct.spot1=new go.Spot(.07,.445),ct.spot2=new go.Spot(.884,.958),ct}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(bt,et,nt){var ct=new go.Geometry,lt=.5,pt=0,vt=0,Pt=lt*ue,Dt=.4*Math.SQRT2/2+.5,Vt=.5-.5*Math.SQRT2/2,Ut=1,se=.5,qt=.5,Jt=0,Me=new go.PathFigure(Dt*et,(1-Vt)*nt,!1);return ct.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,se*nt,Ut*et,.7*nt,Ut*et,se*nt)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(qt+pt)*et,(Jt+pt)*nt,(.5+lt+pt)*et,(.5-Pt+pt)*nt,(.5+Pt+pt)*et,(.5-lt+pt)*nt)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*et,(.5+vt)*nt,(.5-Pt+pt)*et,(.5-lt+vt)*nt,(.5-lt+pt)*et,(.5-Pt+vt)*nt)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.35+pt)*et,.9*nt,(.5-lt+pt)*et,(.5+Pt+vt)*nt,(.5-Pt+pt)*et,.9*nt)),Me.add(new go.PathSegment(go.PathSegment.Move,(.25+pt)*et,.8*nt)),Me.add(new go.PathSegment(go.PathSegment.Line,(.35+pt)*et,.9*nt)),Me.add(new go.PathSegment(go.PathSegment.Line,(.2+pt)*et,.95*nt)),ct}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ct}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ct}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt);var pt=new go.PathFigure(et,nt,!1);ct.add(pt);var vt=new go.PathFigure(0,.5*nt,!1);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.2*et,.35*nt,.3*et,.35*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.7*et,.65*nt,.8*et,.65*nt)),ct}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close()),ct}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.2*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt).close());var lt=new go.PathFigure(0,.2*nt,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),ct}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.7*et,nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*nt,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,nt,.4*et,.5*nt,et,.5*nt).close());var pt=new go.PathFigure(.45*et,.73*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*nt)),ct}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt);var pt=new go.PathFigure(.335*et,(1-.555)*nt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*nt,(1-.12)*et,.46*nt,(1-.02)*et,.54*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*nt,.02*et,.54*nt,.12*et,.46*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*nt));var vt=.5-.285,Pt=.5,Dt=vt,Vt=Math.PI/4,Ut=4*(1-Math.cos(Vt))/(3*Math.sin(Vt)),se=Ut*.5,qt=vt,Jt=vt,Me=Ut*qt,pe=Ut*Jt;pt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-qt)*et,Dt*nt,(Pt-(Me+qt)/2)*et,(Dt+(Jt+pe)/2)*nt,(Pt-qt)*et,(Dt+pe)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,(Dt-Jt)*nt,(Pt-qt)*et,(Dt-pe)*nt,(Pt-Me)*et,(Dt-Jt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+qt)*et,Dt*nt,(Pt+Me)*et,(Dt-Jt)*nt,(Pt+qt)*et,(Dt-pe)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*nt,(Pt+qt)*et,(Dt+pe)*nt,(Pt+(Me+qt)/2)*et,(Dt+(Jt+pe)/2)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt));var He=new go.PathFigure(.2*et,nt,!1);ct.add(He),He.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*nt));var De=new go.PathFigure(.8*et,nt,!1);return ct.add(De),De.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ct}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.1*et,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var pt=new go.PathFigure(.2*et,.2*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ct}),go.Shape.defineFigureGenerator("BpmnEventError",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*nt).close()),ct}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt);var pt=new go.PathFigure(et,nt,!1);ct.add(pt);var vt=new go.PathFigure(.1*et,nt,!0);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ct}),go.Shape.defineFigureGenerator("Caution",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.05*et,nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*nt,0,nt,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*nt,.5*et,0,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,et,nt,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,nt));var pt=.05;return lt.add(new go.PathSegment(go.PathSegment.Move,(.5-pt)*et,.875*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*nt,pt*et,pt*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*nt,.575*et,.725*nt,.625*et,.375*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*nt,.375*et,.375*nt,.425*et,.725*nt)),ct}),go.Shape.defineFigureGenerator("Recycle",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.45*et,.95*nt,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*nt,.17*et,.95*nt,.15*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*nt,0,.675*nt,0,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*nt));var pt=new go.PathFigure(.475*et,.2*nt,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*nt,.35*et,0,.375*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*nt,.625*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*nt));var vt=new go.PathFigure(.675*et,.575*nt,!1);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*nt,et,.8*nt,et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*nt)),ct}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(bt,et,nt){var ct=new go.Geometry,lt=.5,pt=ue*.5,vt=new go.PathFigure(et,lt*nt,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,lt*et,nt,et,(lt+pt)*nt,(lt+pt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*nt,(lt-pt)*et,nt,0,(lt+pt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,lt*et,0,0,(lt-pt)*nt,(lt-pt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt*nt,(lt+pt)*et,0,et,(lt-pt)*nt));var Pt=new go.PathFigure(lt*et,0,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,lt*et,.15*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,lt*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,lt*et,.85*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,0,lt*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.15*et,lt*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,lt*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,lt*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*nt)),ct}),go.Shape.defineFigureGenerator("Package",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.15*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(0,.15*nt,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*nt).close()),ct.spot1=new go.Spot(0,.1),ct.spot2=new go.Spot(1,1),ct}),go.Shape.defineFigureGenerator("Class",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,.2*nt,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(0,.5*nt,!1);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close()),ct}),go.Shape.defineFigureGenerator("Component",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et,nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close());var pt=new go.PathFigure(0,.2*nt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close());var vt=new go.PathFigure(0,.6*nt,!0);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt).close()),ct}),go.Shape.defineFigureGenerator("Boat Shipment",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.15*et,.6*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt));var pt=new go.PathFigure(.15*et,.6*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),ct}),go.Shape.defineFigureGenerator("Customer/Supplier",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ct}),go.Shape.defineFigureGenerator("Workcell",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ct}),go.Shape.defineFigureGenerator("Supermarket",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ct}),go.Shape.defineFigureGenerator("TruckShipment",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(et,.8*nt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt).close());var vt=.1,Pt=ue*.1,Dt=.2,Vt=.9,Ut=new go.PathFigure((Dt-vt)*et,Vt*nt,!0);ct.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Vt-vt)*nt,(Dt-vt)*et,(Vt-Pt)*nt,(Dt-Pt)*et,(Vt-vt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+vt)*et,Vt*nt,(Dt+Pt)*et,(Vt-vt)*nt,(Dt+vt)*et,(Vt-Pt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Vt+vt)*nt,(Dt+vt)*et,(Vt+Pt)*nt,(Dt+Pt)*et,(Vt+vt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-vt)*et,Vt*nt,(Dt-Pt)*et,(Vt+vt)*nt,(Dt-vt)*et,(Vt+Pt)*nt).close()),vt=.1,Pt=ue*.1,Dt=.8,Vt=.9;var se=new go.PathFigure((Dt-vt)*et,Vt*nt,!0);return ct.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Vt-vt)*nt,(Dt-vt)*et,(Vt-Pt)*nt,(Dt-Pt)*et,(Vt-vt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+vt)*et,Vt*nt,(Dt+Pt)*et,(Vt-vt)*nt,(Dt+vt)*et,(Vt-Pt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Vt+vt)*nt,(Dt+vt)*et,(Vt+Pt)*nt,(Dt+Pt)*et,(Vt+vt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-vt)*et,Vt*nt,(Dt-Pt)*et,(Vt+vt)*nt,(Dt-vt)*et,(Vt+Pt)*nt).close()),ct}),go.Shape.defineFigureGenerator("KanbanPost",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.2*et,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),ct}),go.Shape.defineFigureGenerator("Forklift",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0));var pt=new go.PathFigure(0,.5*nt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var vt=new go.PathFigure(.5*et,.8*nt,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt));var Pt=new go.PathFigure(.5*et,.7*nt,!1);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt));var Dt=.1,Vt=ue*.1,Ut=.1,se=.9,qt=new go.PathFigure((Ut-Dt)*et,se*nt,!0);ct.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,(se-Dt)*nt,(Ut-Dt)*et,(se-Vt)*nt,(Ut-Vt)*et,(se-Dt)*nt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Ut+Dt)*et,se*nt,(Ut+Vt)*et,(se-Dt)*nt,(Ut+Dt)*et,(se-Vt)*nt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,(se+Dt)*nt,(Ut+Dt)*et,(se+Vt)*nt,(Ut+Vt)*et,(se+Dt)*nt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Ut-Dt)*et,se*nt,(Ut-Vt)*et,(se+Dt)*nt,(Ut-Dt)*et,(se+Vt)*nt)),Dt=.1,Vt=ue*.1,Ut=.4,se=.9;var Jt=new go.PathFigure((Ut-Dt)*et,se*nt,!0);return ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,(se-Dt)*nt,(Ut-Dt)*et,(se-Vt)*nt,(Ut-Vt)*et,(se-Dt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Ut+Dt)*et,se*nt,(Ut+Vt)*et,(se-Dt)*nt,(Ut+Dt)*et,(se-Vt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,(se+Dt)*nt,(Ut+Dt)*et,(se+Vt)*nt,(Ut+Vt)*et,(se+Dt)*nt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Ut-Dt)*et,se*nt,(Ut-Vt)*et,(se+Dt)*nt,(Ut-Dt)*et,(se+Vt)*nt)),ct}),go.Shape.defineFigureGenerator("RailShipment",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.1*et,.4*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*nt).close());var pt=new go.PathFigure(.45*et,.7*nt,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt));var vt=new go.PathFigure(.55*et,.4*nt,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*nt).close());var Ut=.05,se=ue*.05,qt=.175,Jt=.95,Pt=new go.PathFigure((qt-Ut)*et,Jt*nt,!0);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,qt*et,(Jt-Ut)*nt,(qt-Ut)*et,(Jt-se)*nt,(qt-se)*et,(Jt-Ut)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(qt+Ut)*et,Jt*nt,(qt+se)*et,(Jt-Ut)*nt,(qt+Ut)*et,(Jt-se)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,qt*et,(Jt+Ut)*nt,(qt+Ut)*et,(Jt+se)*nt,(qt+se)*et,(Jt+Ut)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(qt-Ut)*et,Jt*nt,(qt-se)*et,(Jt+Ut)*nt,(qt-Ut)*et,(Jt+se)*nt));var Ut=.05,se=ue*.05,qt=.375,Jt=.95,Dt=new go.PathFigure((qt-Ut)*et,Jt*nt,!0);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,qt*et,(Jt-Ut)*nt,(qt-Ut)*et,(Jt-se)*nt,(qt-se)*et,(Jt-Ut)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(qt+Ut)*et,Jt*nt,(qt+se)*et,(Jt-Ut)*nt,(qt+Ut)*et,(Jt-se)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,qt*et,(Jt+Ut)*nt,(qt+Ut)*et,(Jt+se)*nt,(qt+se)*et,(Jt+Ut)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(qt-Ut)*et,Jt*nt,(qt-se)*et,(Jt+Ut)*nt,(qt-Ut)*et,(Jt+se)*nt));var Ut=.05,se=ue*.05,qt=.625,Jt=.95,Vt=new go.PathFigure((qt-Ut)*et,Jt*nt,!0);ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,qt*et,(Jt-Ut)*nt,(qt-Ut)*et,(Jt-se)*nt,(qt-se)*et,(Jt-Ut)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(qt+Ut)*et,Jt*nt,(qt+se)*et,(Jt-Ut)*nt,(qt+Ut)*et,(Jt-se)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,qt*et,(Jt+Ut)*nt,(qt+Ut)*et,(Jt+se)*nt,(qt+se)*et,(Jt+Ut)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(qt-Ut)*et,Jt*nt,(qt-se)*et,(Jt+Ut)*nt,(qt-Ut)*et,(Jt+se)*nt));var Ut=.05,se=ue*.05,qt=.825,Jt=.95,Me=new go.PathFigure((qt-Ut)*et,Jt*nt,!0);ct.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,qt*et,(Jt-Ut)*nt,(qt-Ut)*et,(Jt-se)*nt,(qt-se)*et,(Jt-Ut)*nt)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(qt+Ut)*et,Jt*nt,(qt+se)*et,(Jt-Ut)*nt,(qt+Ut)*et,(Jt-se)*nt)),Me.add(new go.PathSegment(go.PathSegment.Bezier,qt*et,(Jt+Ut)*nt,(qt+Ut)*et,(Jt+se)*nt,(qt+se)*et,(Jt+Ut)*nt)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(qt-Ut)*et,Jt*nt,(qt-se)*et,(Jt+Ut)*nt,(qt-Ut)*et,(Jt+se)*nt).close());var pe=new go.PathFigure(0,nt,!1);return ct.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ct}),go.Shape.defineFigureGenerator("Warehouse",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,.2*nt,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(.15*et,nt,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt).close());var Pt=.05,Dt=ue*.05,Vt=.35,Ut=.775,se=new go.PathFigure((Vt-Pt)*et,Ut*nt,!0);return ct.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Vt*et,(Ut-Pt)*nt,(Vt-Pt)*et,(Ut-Dt)*nt,(Vt-Dt)*et,(Ut-Pt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Vt+Pt)*et,Ut*nt,(Vt+Dt)*et,(Ut-Pt)*nt,(Vt+Pt)*et,(Ut-Dt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,Vt*et,(Ut+Pt)*nt,(Vt+Pt)*et,(Ut+Dt)*nt,(Vt+Dt)*et,(Ut+Pt)*nt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Vt-Pt)*et,Ut*nt,(Vt-Dt)*et,(Ut+Pt)*nt,(Vt-Pt)*et,(Ut+Dt)*nt).close()),ct}),go.Shape.defineFigureGenerator("ControlCenter",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt).close()),ct}),go.Shape.defineFigureGenerator("Bluetooth",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.75*nt,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),ct}),go.Shape.defineFigureGenerator("Bookmark",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ct}),go.Shape.defineFigureGenerator("Bookmark",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ct}),go.Shape.defineFigureGenerator("Globe",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.75*et,0,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.75*nt,.75*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.25*et,nt,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*nt,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,.15*et,.25*nt,.15*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*nt,.85*et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*nt,.35*et,.3*nt,.65*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*nt,.35*et,.7*nt,.65*et,.7*nt)),ct}),go.Shape.defineFigureGenerator("Wave",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.25*nt,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*nt,.1*et,0,.2*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*nt,.425*et,.5*nt,.575*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*nt,.8*et,0,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*nt,.1*et,.5*nt,.2*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*nt,.425*et,nt,.575*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*nt,.8*et,.5*nt,.9*et,.5*nt)),ct}),go.Shape.defineFigureGenerator("Operator",function(bt,et,nt){var ct=new go.Geometry,lt=.3,pt=ue*.3,vt=.5,Pt=.7,Dt=new go.PathFigure((vt-lt)*et,Pt*nt,!0);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-lt)*nt,(vt-lt)*et,(Pt-pt)*nt,(vt-pt)*et,(Pt-lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Pt*nt,(vt+pt)*et,(Pt-lt)*nt,(vt+lt)*et,(Pt-pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+lt)*nt,(vt+lt)*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Pt*nt,(vt-pt)*et,(Pt+lt)*nt,(vt-lt)*et,(Pt+pt)*nt));var Vt=new go.PathFigure(0,.7*nt,!1);return ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*nt,0,0,et,0)),ct}),go.Shape.defineFigureGenerator("TripleFanBlades",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.65*et,.3*nt,.65*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*nt,.35*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.3*et,.6*nt,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.2*et,nt,.35*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,.7*et,.6*nt,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.8*et,nt,.65*et,.95*nt)),ct}),go.Shape.defineFigureGenerator("CentrifugalPump",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,0,.075*nt,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,0,nt,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*nt,.8*et,nt,.85*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct}),go.Shape.defineFigureGenerator("Battery",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*nt));var pt=new go.PathFigure(0,.6*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,0,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),ct}),go.Shape.defineFigureGenerator("Delete",function(bt,et,nt){var ct=new go.Geometry,lt=.5,pt=ue*.5,vt=.5,Pt=.5,Dt=new go.PathFigure((vt-lt)*et,Pt*nt,!0);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-lt)*nt,(vt-lt)*et,(Pt-pt)*nt,(vt-pt)*et,(Pt-lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Pt*nt,(vt+pt)*et,(Pt-lt)*nt,(vt+lt)*et,(Pt-pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+lt)*nt,(vt+lt)*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Pt*nt,(vt-pt)*et,(Pt+lt)*nt,(vt-lt)*et,(Pt+pt)*nt));var Vt=new go.PathFigure(.15*et,.5*nt,!1);return ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*nt)),ct}),go.Shape.defineFigureGenerator("Flag",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.1*nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*nt,.15*et,0,.35*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,.65*et,.2*nt,.85*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.85*et,.6*nt,.65*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.35*et,.4*nt,.15*et,.4*nt).close()),ct}),go.Shape.defineFigureGenerator("Help",function(bt,et,nt){var ct=new go.Geometry,lt=.5,pt=ue*.5,vt=.5,Pt=.5,Dt=new go.PathFigure((vt-lt)*et,Pt*nt,!1);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-lt)*nt,(vt-lt)*et,(Pt-pt)*nt,(vt-pt)*et,(Pt-lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Pt*nt,(vt+pt)*et,(Pt-lt)*nt,(vt+lt)*et,(Pt-pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+lt)*nt,(vt+lt)*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Pt*nt,(vt-pt)*et,(Pt+lt)*nt,(vt-lt)*et,(Pt+pt)*nt).close()),lt=.05,pt=ue*.05,vt=.5,Pt=.8;var Vt=new go.PathFigure((vt-lt)*et,Pt*nt,!1);return ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-lt)*nt,(vt-lt)*et,(Pt-pt)*nt,(vt-pt)*et,(Pt-lt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*et,Pt*nt,(vt+pt)*et,(Pt-lt)*nt,(vt+lt)*et,(Pt-pt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+lt)*nt,(vt+lt)*et,(Pt+pt)*nt,(vt+pt)*et,(Pt+lt)*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*et,Pt*nt,(vt-pt)*et,(Pt+lt)*nt,(vt-lt)*et,(Pt+pt)*nt).close()),Vt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),Vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,.75*et,.475*nt,.75*et,.225*nt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*nt,.4*et,.2*nt,.3*et,.25*nt)),ct}),go.Shape.defineFigureGenerator("Location",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*nt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*nt,.5*et,0,.025*et,.025*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Lock",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var pt=new go.PathFigure(.2*et,.5*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*nt)),ct}),go.Shape.defineFigureGenerator("Unlocked",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var pt=new go.PathFigure(.2*et,.5*nt,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*nt)),ct}),go.Shape.defineFigureGenerator("Gear",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*nt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*nt,.79840625*et,.39915625*nt,.7834375*et,.3635*nt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*nt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*nt,.64228125*et,.2188125*nt,.603875*et,.2021875*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*nt,.39759375*et,.20190625*nt,.36053125*et,.2176875*nt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*nt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*nt,.21765625*et,.36059375*nt,.201875*et,.397625*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*nt,.20221875*et,.603875*nt,.21884375*et,.64228125*nt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*nt,.36353125*et,.78340625*nt,.3991875*et,.79840625*nt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*nt,.602375*et,.79809375*nt,.63946875*et,.78234375*nt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*nt,.78234375*et,.63940625*nt,.798125*et,.602375*nt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Hand",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*nt,0,.375*nt,.05*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*nt,.3*et,.225*nt,.4*et,.175*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*nt,.46*et,.05*nt,.525*et,.05*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*nt,.525*et,.275*nt,.475*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*nt,et,.4*nt,et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*nt,.675*et,.55*nt,.675*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*nt,.65*et,.7*nt,.65*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,nt,.61*et,.85*nt,.61*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,.435*et,nt,0,nt).close()),ct}),go.Shape.defineFigureGenerator("Map",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,.2*nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),ct}),go.Shape.defineFigureGenerator("Eject",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.7)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.7).close());var pt=new go.PathFigure(0,nt*.6,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),ct}),go.Shape.defineFigureGenerator("Pencil",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close()))}),go.Shape.defineFigureGenerator("Building",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*1,nt*1,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.85).close());var pt=new go.PathFigure(.126*et,.85*nt,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*nt).close());var vt=new go.PathFigure(.402*et,.85*nt,!1);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*nt).close());var Pt=new go.PathFigure(.678*et,.85*nt,!1);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*nt).close());var Dt=new go.PathFigure(.5*et,.1*nt,!1);return ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*nt).close()),ct}),go.Shape.defineFigureGenerator("Staircase",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt*1,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.95).close()),ct}),go.Shape.defineFigureGenerator("5Bars",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,nt*1,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*(1-.184)).close());var pt=new go.PathFigure(et*.204,nt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.204,nt*(1-.184))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*(1-.184*2))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*1).close());var vt=new go.PathFigure(et*.408,nt,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.408,nt*(1-.184*2))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*(1-.184*3))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*1).close());var Pt=new go.PathFigure(et*.612,nt,!0);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.612,nt*(1-.184*3))),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*(1-.184*4))),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*1).close());var Dt=new go.PathFigure(et*.816,nt,!0);return ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,et*.816,nt*(1-.184*4))),Dt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-.184*5))),Dt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1).close()),ct}),go.Shape.defineFigureGenerator("PC",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var pt=new go.PathFigure(et*.055,.07*nt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.07)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.1).close());var vt=new go.PathFigure(et*.055,.13*nt,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.13)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.16)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.16).close());var Pt=new go.PathFigure(et*.055,.18*nt,!0);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.18)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.21)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.21).close());var Dt=new go.PathFigure(et*1,0,!0);return ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.65)),Dt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.65).close()),ct}),go.Shape.defineFigureGenerator("Plane",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(.55*et,nt,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*nt,0,.4*nt,.225*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*nt,.975*et,0,et,.08*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt).close()),ct}),go.Shape.defineFigureGenerator("Key",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*1,nt*.5,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*nt).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*nt,.075*et,.075*nt).close()),ct}),go.Shape.defineFigureGenerator("FilmTape",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var pt=new go.PathFigure(0,0,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*0)),pt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var vt=new go.PathFigure(et*.11,nt*.1,!1);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.1)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.8)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.11,nt*.8).close());var Pt=new go.PathFigure(et*(.11+.24133333*1+.028*1),nt*.1,!1);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.1)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.8)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),nt*.8).close());var Dt=new go.PathFigure(et*(.11+.24133333*2+.028*2),nt*.1,!1);return ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.1)),Dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.8)),Dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),nt*.8).close()),ct}),go.Shape.defineFigureGenerator("FloppyDisk",function(bt,et,nt){var ct=new go.Geometry,lt=8,pt=lt*ue,vt=new go.PathFigure(lt,0,!1);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.14)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-lt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,nt,et,nt-pt,et-pt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,lt,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-lt,pt,nt,0,nt-pt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,pt,pt,0).close());var Pt=new go.PathFigure(et*.83,0,!1);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.3)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.3)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*0).close());var Dt=new go.PathFigure(et*.83,nt*1,!1);ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.5)),Dt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.5)),Dt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*1).close());var Vt=new go.PathFigure(et*.78,nt*.05,!1);return ct.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.05)),Vt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.25)),Vt.add(new go.PathSegment(go.PathSegment.Line,et*.78,nt*.25).close()),ct}),go.Shape.defineFigureGenerator("SpeechBubble",function(bt,et,nt){var ct=bt?bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=15),ct=Math.min(ct,et/3),ct=Math.min(ct,nt/3);var lt=ct*ue,pt=nt*.8,vt=new go.Geometry,Pt=new go.PathFigure(ct,0,!0);return vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et-ct,0)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et,ct,et-lt,0,et,lt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et,pt-ct)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et-ct,pt,et,pt-lt,et-lt,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.55,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ct,pt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt-ct,lt,pt,0,pt-lt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,ct)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,lt,lt,0).close()),lt>1?(vt.spot1=new go.Spot(0,0,lt,lt),vt.spot2=new go.Spot(1,.8,-lt,-lt)):(vt.spot1=go.Spot.TopLeft,vt.spot2=new go.Spot(1,.8)),vt}),go.Shape.defineFigureGenerator("Repeat",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*0,nt*.45,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.45).close());var pt=new go.PathFigure(et*1,nt*.55,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.55)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.55)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*0)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.55).close()),ct}),go.Shape.defineFigureGenerator("Windows",function(bt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*0,nt*.1,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.9).close());var pt=new go.PathFigure(et*.1,nt*.2,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.25)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.22,nt*.285)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.32)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.37)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.32)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.25).close());var vt=new go.PathFigure(et*.28,nt*.37,!0);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.37)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.41)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.28,nt*.41).close()),ct}),go.Shape.defineFigureGenerator("Beaker",function(bt,et,nt){var ct=new go.Geometry,lt=15,pt=lt*ue,vt=new go.PathFigure(et*.62,nt*.475,!0);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-lt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,nt,et,nt-pt,et-pt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,lt,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-lt,pt,nt,0,nt-pt)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.475)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.03)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.62,nt*.03).close()),pt>1?(ct.spot1=new go.Spot(0,0,pt,pt),ct.spot2=new go.Spot(1,1,-pt,-pt)):(ct.spot1=go.Spot.TopLeft,ct.spot2=go.Spot.BottomRight),ct}),go.Shape.defineFigureGenerator("Download",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);ct.add(lt);var pt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-pt)).close());var vt=new go.PathFigure(et*.4,nt*0,!0);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.66)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*0).close()),ct}),go.Shape.defineFigureGenerator("Bin",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);ct.add(lt);var pt=.1/.3;return lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-pt)).close()),ct}),go.Shape.defineFigureGenerator("Upload",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);ct.add(lt);var pt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-pt)).close());var vt=new go.PathFigure(et*.5,nt*0,!0);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.74,nt*.25).close()),ct}),go.Shape.defineFigureGenerator("EmptyDrink",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*.15,nt*0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close()),ct}),go.Shape.defineFigureGenerator("Drink",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*.15,nt*0,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close());var pt=new go.PathFigure(et*.235,nt*.28,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.765,nt*.28)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.655,nt*.97)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.345,nt*.97).close()),ct}),go.Shape.defineFigureGenerator("4Arrows",function(bt,et,nt){var ct=new go.Geometry,lt=new go.PathFigure(et*.5,nt*0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.25).close()),ct}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},43001:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var xn={},$n="5.0",Rt={},St=null,ee=!1,me=!1,he=null,ce=!1,fe=null,ue=null,Be=0;Be<arguments.length;Be++){var Ce=arguments[Be];if(Ce!==null)switch(typeof Ce){case"number":$n=Ce.toFixed(1);break;case"string":Ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?$n=Ce:he=Ce;break;case"object":typeof Ce.is3D!="undefined"?St=Ce:Rt=Ce;break;case"boolean":ee=Ce,me=!0;break}}St===null&&(St={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Rt.material_id!==void 0&&!me&&(ee=!0)),he!==null&&Rt.id===void 0&&(Rt.id=he);var Bt="",je="",le=!1,Ge=null,bt=null,et=null,nt=!1,ct=null,lt=null,pt=null,vt=null,Pt=null;Rt.height!==void 0&&(Rt.height=Math.round(Rt.height)),Rt.width!==void 0&&(Rt.width=Math.round(Rt.width));var Dt=function(ve){return parseFloat(ve)>4?parseFloat(ve):5};xn.setHTML5Codebase=function(ve,Xe){ue=ve,Le(ve,Xe)},xn.setJavaCodebase=xn.setJavaCodebaseVersion=xn.isCompiledInstalled=xn.setPreCompiledScriptPath=xn.setPreCompiledResourcePath=function(){},xn.setHTML5CodebaseVersion=function(ve,Xe){var ke=parseFloat(ve);if(ke!==NaN&&ke<5){console.log("The GeoGebra HTML5 codebase version "+ke+" is deprecated. Using version latest instead.");return}fe=ve,Ot(ve,Xe)},xn.getHTML5CodebaseVersion=function(){return bt},xn.getParameters=function(){return Rt},xn.setFontsCSSURL=function(ve){vt=ve},xn.setGiacJSURL=function(ve){},xn.setJNLPFile=function(ve){Bt=ve},xn.setJNLPBaseDir=function(ve){},xn.inject=function(){function ve(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Xe="auto",ke=Rt.id,cn,Ie=!1,ae=0;ae<arguments.length;ae++){var Pe=arguments[ae];typeof Pe=="string"?(Pe=Pe.toLowerCase(),Pe.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Xe=Pe:ke=arguments[ae]):typeof Pe=="boolean"?Ie=Pe:Pe instanceof HTMLElement&&(cn=Pe)}sn();function sn(){if(!ce){setTimeout(sn,200);return}Xe=fn(Xe);var an=cn||document.getElementById(ke);if(!an){console.log("possibly bug on ajax loading? ");return}if(xn.removeExistingApplet(an,!1),Rt.width===void 0&&an.clientWidth&&(Rt.width=an.clientWidth),Rt.height===void 0&&an.clientHeight&&(Rt.height=an.clientHeight),!(Rt.width&&Rt.height)&&Xe==="html5"&&(delete Rt.width,delete Rt.height),Ge=Xe,Xe==="screenshot")De(an,Rt);else{var Tt=!1;Rt.hasOwnProperty("playButton")&&Rt.playButton||Rt.hasOwnProperty("clickToLoad")&&Rt.clickToLoad?Tt=!0:Rt.hasOwnProperty("playButtonAutoDecide")&&Rt.playButtonAutoDecide&&(Tt=(!Vt()||ve())&&Ut()),Tt?(Ge="screenshot",Fn(an,Rt,Ie,Xe)):He(an,Rt,Ie)}}};function Vt(){try{return window.self!==window.top}catch(ve){return!0}}function Ut(){return Rt.hasOwnProperty("screenshotGenerator")&&Rt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}xn.getViews=function(){return St},xn.isJavaInstalled=function(){return!1};var se=function(ve){var Xe=function(ae){var Pe=JSON.parse(ae),sn=function(Ct){return Ct.type=="G"||Ct.type=="E"},an=Pe.elements?Pe.elements.filter(sn)[0]:Pe;if(!an||!an.url){ke();return}Rt.fileName=an.url,qt(an.settings||{}),St.is3D=!0;var Tt="https://www.geogebra.org/images/";xn.setPreviewImage(ct||an.previewUrl,Tt+"GeoGebra_loading.png",Tt+"applet_play.png"),ve()},ke=function(){Rt.onError&&Rt.onError(),dn("Error: Fetching material (id "+Rt.material_id+") failed.",Rt)},cn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ie="/materials/"+Rt.material_id+"?scope=basic";Jt("https://"+cn+"/api/proxy.php?path="+encodeURIComponent(Ie),Xe,ke)};function qt(ve){var Xe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ke){ve[ke]=!!ve[ke]}),Xe.forEach(function(ke){Rt[ke]===void 0&&ve[ke]!==void 0&&(Rt[ke]=ve[ke])}),Rt.showToolBarHelp===void 0&&(Rt.showToolBarHelp=Rt.showToolBar)}function Jt(ve,Xe,ke){var cn=new XMLHttpRequest;cn.open("GET",ve),cn.onload=function(){Xe(cn.responseText)},cn.onerror=ke,cn.send()}xn.isHTML5Installed=function(){return!0},xn.getLoadedAppletType=function(){return Ge},xn.setPreviewImage=function(ve,Xe,ke){ct=ve,lt=Xe,pt=ke},xn.removeExistingApplet=function(ve,Xe){var ke;typeof ve=="string"&&(ve=document.getElementById(ve)),Ge=null;var cn=null;for(ke=0;ke<ve.childNodes.length;ke++){var Ie=ve.childNodes[ke],ae=Ie.className;ae==="applet_screenshot"?Xe?(Ie.style.display="block",Ge="screenshot"):Ie.style.display="none":ae!=="applet_scaler prerender"&&(ve.removeChild(Ie),cn=ae&&ae.indexOf("appletParameters")!=-1?Ie.id:null,ke--)}var Pe=Rt.id!==void 0?Rt.id:cn,sn=window[Pe];sn&&typeof sn.getBase64=="function"&&(sn.remove(),window[Pe]=null)},xn.refreshHitPoints=function(){if(Dt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ve=xn.getAppletObject();return ve&&typeof ve.recalculateEnvironments=="function"?(ve.recalculateEnvironments(),!0):!1},xn.startAnimation=function(){var ve=xn.getAppletObject();return ve&&typeof ve.startAnimation=="function"?(ve.startAnimation(),!0):!1},xn.stopAnimation=function(){var ve=xn.getAppletObject();return ve&&typeof ve.stopAnimation=="function"?(ve.stopAnimation(),!0):!1},xn.getAppletObject=function(){var ve=Rt.id!==void 0?Rt.id:"ggbApplet";return window[ve]},xn.resize=function(){};var Me=function(ve,Xe,ke){var cn=document.createElement("param");cn.setAttribute("name",Xe),cn.setAttribute("value",ke),ve.appendChild(cn)},pe=function(ve){return ve&&ve!=="false"},He=function(ve,Xe,ke){Dt(bt)<=4.2&&(ke=!0);var cn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==bt||ggbHTML5LoadedCodebaseIsWebSimple&&!nt)&&(cn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ie=document.createElement("div");Ie.classList.add("appletParameters","notranslate");var ae=Xe.width,Pe=Xe.height;if(Xe.disableAutoScale=Xe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Xe.disableAutoScale,Xe.width!==void 0)if(Dt(bt)<=4.4)pe(Xe.showToolBar)&&(Xe.height-=7),pe(Xe.showAlgebraInput)&&(Xe.height-=37),Xe.width<605&&pe(Xe.showToolBar)&&(Xe.width=605,ae=605);else{var sn=100;(pe(Xe.showToolBar)||pe(Xe.showMenuBar))&&(Xe.hasOwnProperty("customToolBar")&&(Xe.customToolbar=Xe.customToolBar),sn=pe(Xe.showMenuBar)?245:155),ae<sn&&(Xe.width=sn,ae=sn)}Ie.style.border="none",Ie.style.display="inline-block";for(var an in Xe)Xe.hasOwnProperty(an)&&an!=="appletOnLoad"&&Ie.setAttribute("data-param-"+an,Xe[an]);vt&&Ie.setAttribute("data-param-fontscssurl",vt),xn.resize=function(){GGBAppletUtils.responsiveResize(ve,Xe)},window.addEventListener("resize",function(ri){xn.resize()});var Tt=typeof Xe.appletOnLoad=="function"?Xe.appletOnLoad:function(){};if(!ke&&Xe.width!==void 0){Xe.hasOwnProperty("showSplash")||Ie.setAttribute("data-param-showSplash","false");var Ct=ve.querySelector(".applet_scaler.prerender"),xt=Ct!==null;if(xt)var kt=Ct.querySelector(".ggb_preview");else{var kt=pn(ae,Pe,Xe.borderColor,!1);Ct=document.createElement("div"),Ct.className="applet_scaler",Ct.style.position="relative",Ct.style.display="block",Ct.style.width=ae+"px",Ct.style.height=Pe+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ct,"66%"),Dt(bt)>=5?(Xe.appletOnLoad=function(ri){var Sn=ve.querySelector(".ggb_preview");Sn&&Sn.parentNode.removeChild(Sn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ct),window.GGBT_wsf_view&&$(window).trigger("resize"),Tt(ri)},xt||Ct.appendChild(kt)):Ie.appendChild(kt),Ct.appendChild(Ie),xt||ve.appendChild(Ct),setTimeout(function(){xn.resize()},1)}else{var zt=document.createElement("div");zt.className="applet_scaler",zt.style.position="relative",zt.style.display="block",zt.appendChild(Ie),ve.appendChild(zt),Xe.appletOnLoad=function(ri){xn.resize(),Tt(ri)}}function Et(ri,Sn){Sn&&typeof Sn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ri,Sn.appletOnLoad):renderGGBElement(ri),dn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Sn)}function Ae(ri,Sn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ri,params:Sn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(hi){Et(hi.article,hi.params)}),html5AppletsToProcess=null)},Dt(bt)<5&&(ri.className+=" geogebraweb")):Et(ri,Sn)}if(cn){scriptLoadStarted=!0;for(var We=0;We<Ie.childNodes.length;We++){var Ue=Ie.childNodes[We].tagName;Ue==="TABLE"&&(Ie.removeChild(Ie.childNodes[We]),We--)}if(ggbHTML5LoadedScript!==null){var jn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');jn!=null&&jn.parentNode.removeChild(jn)}var Gn=document.createElement("script"),Ke=function(){Ae(Ie,Xe)};Gn.src=je+et,ggbHTML5LoadedCodebaseIsWebSimple=nt,ggbHTML5LoadedCodebaseVersion=bt,ggbHTML5LoadedScript=Gn.src,dn("GeoGebra HTML5 codebase loaded: '"+je+"'.",Xe),!ue&&(!fe||fe=="5.0")?(nt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ke()):je.requirejs?__webpack_require__.e(7963).then(function(){var ri=[__webpack_require__(87963)];Ke.apply(null,ri)}.bind(this)).catch(__webpack_require__.oe):(Gn.onload=Ke,ve.appendChild(Gn))}else Ae(Ie,Xe);Xe.height=Pe,Xe.width=ae},De=function(ve,Xe,ke){var cn=pn(Xe.width,Xe.height,Xe.borderColor,ke),Ie=document.createElement("div");Ie.style.position="relative",Ie.style.display="block",Ie.style.width=Xe.width+"px",Ie.style.height=Xe.height+"px",Ie.className="applet_screenshot applet_scaler"+(ke?" applet_screenshot_play":""),Ie.appendChild(cn);var ae=GGBAppletUtils.getScale(Xe,ve,ke);ke?(ve.appendChild(on()),window.GGBT_wsf_view||(ve.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ie,"66%"),ve.appendChild(Ie),ae!==1&&!isNaN(ae)&&(GGBAppletUtils.scaleElement(Ie,ae),Ie.style.width=Xe.width+"px",Ie.style.height=Xe.height+"px",Ie.parentNode.style.width=Xe.width*ae+"px",Ie.parentNode.style.height=Xe.height*ae+"px"),xn.resize=function(){tn(ve,cn,Ie,ke)},window.addEventListener("resize",function(Pe){xn.resize()}),xn.resize()};function tn(ve,Xe,ke,cn){if(ve.contains(Xe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ve.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}var Ie=GGBAppletUtils.getScale(Rt,ve,cn);ke.parentNode!==null&&(!isNaN(Ie)&&Ie!==1?(GGBAppletUtils.scaleElement(ke,Ie),ke.parentNode.style.width=Rt.width*Ie+"px",ke.parentNode.style.height=Rt.height*Ie+"px"):(GGBAppletUtils.scaleElement(ke,1),ke.parentNode.style.width=Rt.width+"px",ke.parentNode.style.height=Rt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ve),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}xn.onExitFullscreen=function(ve,Xe){Xe.appendChild(ve)};var Fn=function(ve,Xe,ke,cn){De(ve,Xe,!0);for(var Ie=function(){var sn=[];for(Pe=0;Pe<ve.childNodes.length;Pe++)sn.push(ve.childNodes[Pe]);if(window.GGBT_wsf_view){var an=window.GGBT_wsf_view.renderFullScreen(ve,Xe.id),Tt=document.getElementById("fullscreencontainer"),Ct=jQuery(ve).find(".fullscreencontent");Ct.length>0?(an.remove(),Ct.attr("id","fullscreencontent").show(),jQuery(Tt).append(Ct),window.dispatchEvent(new Event("resize"))):He(an,Xe,!1),window.GGBT_wsf_view.launchFullScreen(Tt)}else Ge=cn,He(ve,Xe,!1);if(!window.GGBT_wsf_view)for(Pe=0;Pe<sn.length;Pe++)ve.removeChild(sn[Pe])},ae=ve.getElementsByClassName("ggb_preview_play"),Pe=0;Pe<ae.length;Pe++)ae[Pe].addEventListener("click",Ie,!1),ae[Pe].addEventListener("ontouchstart",Ie,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ve),Ut()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},on=function(){var ve=document.createElement("div");if(ve.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Xe='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',ke=document.createElement("style");ke.styleSheet?ke.styleSheet.cssText=Xe:ke.appendChild(document.createTextNode(Xe)),document.getElementsByTagName("head")[0].appendChild(ke)}return ve},pn=function(ve,Xe,ke,cn){var Ie=document.createElement("div");Ie.className="ggb_preview",Ie.style.position="absolute",Ie.style.zIndex="90",Ie.style.width=ve-2+"px",Ie.style.height=Xe-2+"px",Ie.style.top="0px",Ie.style.left="0px",Ie.style.overflow="hidden",Ie.style.backgroundColor="white";var ae="lightgrey";ke!==void 0&&(ke==="none"?ae="transparent":ae=ke),Ie.style.border="1px solid "+ae;var Pe=document.createElement("img");if(Pe.style.position="relative",Pe.style.zIndex="1000",Pe.style.top="-1px",Pe.style.left="-1px",ct!==null&&Pe.setAttribute("src",ct),Pe.style.opacity=.7,lt!==null){var sn,an,Tt;if(!cn){sn=document.createElement("img"),sn.style.position="absolute",sn.style.zIndex="1001",sn.style.opacity=1,Pe.style.opacity=.3,an=360,an>ve/4*3&&(an=ve/4*3),Tt=an/5.8,sn.setAttribute("src",lt),sn.setAttribute("width",an),sn.setAttribute("height",Tt);var Ct=(ve-an)/2,xt=(Xe-Tt)/2;sn.style.left=Ct+"px",sn.style.top=xt+"px",Ie.appendChild(sn)}}return Ie.appendChild(Pe),Ie},fn=function(ve){return ve=ve.toLowerCase(),ve==="html5"||ve==="screenshot"?ve:"html5"},te=["web","webSimple","web3d","tablet","tablet3d","phone"],Ot=function(ve,Xe){if(bt=ve,Xe){Le(bt,!0);return}var ke=!ee;if(ke){var cn=Dt(bt);!isNaN(cn)&&cn<4.4&&(ke=!1)}var Ie,ae;window.location.protocol.substr(0,4)==="http"?Ie=window.location.protocol:Ie="http:";var Pe=bt.indexOf("//");Pe>0?ae=bt:Pe===0?ae=Ie+bt:ae="https://www.geogebra.org/apps/5.2.814.0/";for(var sn in te)if(bt.slice(te[sn].length*-1)===te[sn]||bt.slice((te[sn].length+1)*-1)===te[sn]+"/"){Le(ae,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ke&&!St.is3D&&!St.AV&&!St.SV&&!St.CV&&!St.EV2&&!St.CP&&!St.PC&&!St.DA&&!St.FI&&!St.PV&&!pe(Rt.showToolBar)&&!pe(Rt.showMenuBar)&&!pe(Rt.showAlgebraInput)&&!pe(Rt.enableRightClick)&&(!Rt.appName||Rt.appName=="classic")?ae+="webSimple/":ae+="web3d/",Le(ae,!1)},Le=function(ve,Xe){if(ve.requirejs){je=ve;return}ve.slice(-1)!=="/"&&(ve+="/"),je=ve,Xe===null&&(Xe=ve.indexOf("http")===-1),le=Xe,et="web.nocache.js",nt=!1;var ke=je.split("/");ke.length>1&&(!Xe&&ke[ke.length-2]==="webSimple"?(et="webSimple.nocache.js",nt=!0):te.indexOf(ke[ke.length-2])>=0&&(et=ke[ke.length-2]+".nocache.js")),ke=ve.split("/"),bt=ke[ke.length-3],bt.substr(0,4)==="test"?bt=bt.substr(4,1)+"."+bt.substr(5,1):(bt.substr(0,3)==="war"||bt.substr(0,4)==="beta")&&(bt="5.0");var cn=parseFloat(bt);cn!==NaN&&cn<5&&ve.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+cn+" is deprecated. Using version latest instead."),Ot("5.0",Xe))},dn=function(ve,Xe){window.console&&window.console.log&&(!Xe||typeof Xe.showLogging=="undefined"||Xe.showLogging&&Xe.showLogging!=="false")&&console.log(ve)};Rt.material_id!==void 0?se(_e):_e();function _e(){var ve=$n;fe!==null?ve=fe:parseFloat(ve)<5&&(ve="5.0"),Ot(ve,!1),ue!==null&&Le(ue,le),ce=!0}return xn},GGBAppletUtils=function(){"use strict";function xn(){return window.GGBT_wsf_edit!==void 0}function $n(ce,fe){fe!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+fe+","+fe+")",ce.style.webkitTransform="scale("+fe+","+fe+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function Rt(ce,fe,ue,Be,Ce,Bt){var je=null;if(Bt!=null&&Bt!="")for(var le=ce.parentNode;le!=null;)if((" "+le.className+" ").indexOf(" "+Bt+" ")>-1){je=le;break}else le=le.parentNode;var Ge=0,bt=0,et=0,nt=0,ct=0,lt=0,pt=0;if(je)Ge=je.offsetWidth,bt=Math.max(Be?je.offsetWidth:0,je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ge=Math.min(window.innerWidth,document.documentElement.clientWidth),bt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Ge):(Ge=window.innerWidth,bt=window.innerHeight,et=window.innerWidth),ce){var vt=ce.getBoundingClientRect();vt.left>0&&vt.left<=Ge&&(Ce===void 0||!Ce)&&(document.dir==="rtl"?(ct=Ge-vt.width-vt.left,lt=et<=480?10:30):(lt=vt.left,ct=et<=480?10:30),nt=lt+ct)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Pt=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt=40,pt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt=0,pt=40)}}return ce&&((ue===void 0||!ue)&&fe>0&&fe+nt<Ge?Ge=fe:Ge-=nt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(bt-=pt)),{width:Ge,height:bt}}function St(ce,fe,ue,Be,Ce){if(ce.isScreenshoGenerator)return 1;var Bt=Be!==void 0&&Be,je=ce.noScaleMargin!=null&&ce.noScaleMargin,le=function(Pt){return Pt&&Pt!=="false"},Ge=le(ce.autoHeight),bt=Rt(fe,ce.width,ue,Ge,Bt&&window.GGBT_wsf_view||je,Ce),et=parseInt(bt.width),nt=ce.width,ct=ce.height;if(nt===void 0){var lt=fe.querySelector(".appletParameters");lt&&(nt=lt.offsetWidth,ct=lt.offsetHeight)}var pt=et/nt,vt=Bt?1:bt.height/ct;return ue!==void 0&&!ue&&(pt=Math.min(1,pt),vt=Math.min(1,vt)),Math.min(pt,vt)}function ee(ce,fe,ue){var Be=1,Ce,Bt=!1;if(ce.hasOwnProperty("allowUpscale")&&(Bt=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Be=parseFloat(ce.scale),(isNaN(Be)||Be===null||Be===0)&&(Be=1),Be>1&&(Bt=!0)),fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Bt=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Ce=St(ce,fe,Bt,ue,ce.scaleContainerClass);else return Be;return Bt&&(!ce.hasOwnProperty("scale")||Be===1)?Ce:Math.min(Be,Ce)}function me(ce){var fe=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Be=ce.getBoundingClientRect(),Ce=(fe-Be.width)/2,Bt=(ue-Be.height)/2;Bt<0&&(Bt=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ce<40?ce.style.left="40px":ce.style.left=Ce+"px",ce.style.top=Bt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Bt<40?ce.style.top="40px":ce.style.top=Bt+"px",ce.style.left=Ce+"px")}function he(ce,fe){var ue=ce.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Be=ee(fe,ce);xn()&&ue.setAttribute("data-param-scale",Be);for(var Ce=null,Bt=0;Bt<ce.childNodes.length;Bt++)if(ce.childNodes[Bt].className!==void 0&&ce.childNodes[Bt].className.match(/^applet_scaler/)){Ce=ce.childNodes[Bt];break}if(Ce!==null&&Ce.querySelector(".noscale")!==null)return;var je=fe.id!==void 0?fe.id:"ggbApplet",le=window[je];(le==null||!le.recalculateEnvironments)&&Ce!==null&&!Ce.className.match(/fullscreen/)&&(Ce.parentNode.style.transform="",!isNaN(Be)&&Be!==1?(Ce.parentNode.style.width=fe.width*Be+"px",Ce.parentNode.style.height=fe.height*Be+"px",$n(Ce,Be)):($n(Ce,1),Ce.parentNode.style.width=fe.width+"px",Ce.parentNode.style.height=fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&me(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:he,isFlexibleWorksheetEditor:xn,positionCenter:me,getScale:ee,scaleElement:$n}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var xn=n.location.search;return xn.indexOf(J)!=-1||xn.indexOf(K)!=-1}function q(xn,$n){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(xn){var $n=s[L].bindings;s[L].bindings=function(){for(var Rt=$n?$n():{},St=xn[webModule.__softPermutationId],ee=O;ee<St.length;ee++){var me=St[ee];Rt[me[O]]=me[P]}return Rt}};var t;function u(){return v(),t}function v(){if(!t){var xn=o.createElement(Q);if(xn.id=L,xn.style.cssText=R+S,xn.tabIndex=-1,o.body.appendChild(xn),t=xn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var $n=document.compatMode==U?V:W;t.write($n+X),t.close()}}}function w(xn){function $n(St){function ee(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var me=ee();if(me){St();return}function he(){if(!me){if(!ee())return;me=!0,St(),o.removeEventListener&&o.removeEventListener(Z,he,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,he,!1);var ce=setInterval(function(){he()},$)}function Rt(St){var ee=u(),me=ee.body,he=ee.createElement(_);he.language=ab,he.crossOrigin=W,he.src=St,webModule.__errFn&&(he.onerror=function(){webModule.__errFn(L,new Error(bb+St))}),me.appendChild(he)}$n(function(){Rt(xn)})}webModule.__startLoadingFragment=function(xn){return C(xn)},webModule.__installRunAsyncCode=function(xn){var $n=u(),Rt=$n.body,St=$n.createElement(_);St.language=ab,St.text=xn,Rt.appendChild(St),Rt.removeChild(St)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(xn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(xn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(xn){var $n=c[xn];return $n==null?null:$n},r=d,webModule.__errFn=e}function B(){function xn(ce){var fe=ce.lastIndexOf(rb);fe==-1&&(fe=ce.length);var ue=ce.indexOf(sb);ue==-1&&(ue=ce.length);var Be=ce.lastIndexOf(tb,Math.min(ue,fe));return Be>=O?ce.substring(O,Be+P):W}function $n(ce){if(!ce.match(/^\w+:\/\//)){var fe=o.createElement(ub);fe.src=ce+vb,ce=xn(fe.src)}return ce}function Rt(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function St(){for(var ce=o.getElementsByTagName(_),fe=O;fe<ce.length;++fe)if(ce[fe].src.indexOf(xb)!=-1)return xn(ce[fe].src);return W}function ee(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function me(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var he=Rt();return he==W&&(he=St()),he==W&&(he=ee()),he==W&&me()&&(he=xn(o.location.href)),he=$n(he),he}function C(xn){return xn.match(/^\//)||xn.match(/^[a-zA-Z]+:\/\//)?xn:webModule.__moduleBase+xn}function D(){var xn=[],$n=O,Rt=[],St=[];function ee(ce){var fe=St[ce](),ue=Rt[ce];if(fe in ue)return fe;var Be=[];for(var Ce in ue)Be[ue[Ce]]=Ce;throw r&&r(ce,Be,fe),null}if(__gwt_isKnownPropertyValue=function(ce,fe){return fe in Rt[ce]},webModule.__getPropMap=function(){var ce={};for(var fe in Rt)Rt.hasOwnProperty(fe)&&(ce[fe]=ee(fe));return ce},webModule.__computePropValue=ee,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var me;try{me=Cb;var he=me.indexOf(Db);he!=-1&&($n=parseInt(me.substring(he+P),$),me=me.substring(O,he))}catch(ce){}return webModule.__softPermutationId=$n,C(me+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},46699:function(xn,$n,Rt){"use strict";Rt.d($n,{Ax:function(){return he},Ds:function(){return ce},KI:function(){return ue},SI:function(){return me},f1:function(){return ee}});var St=Rt(346);function ee(Be){let Ce=!0;if(Be.length>0){for(let Bt=0;Bt<Be.length;Bt++)if(Be[Bt].compile_success==0||!Be[Bt].compile_success){Ce=!1;break}}else Ce=!1;return Ce}function me(Be,Ce=""){let Bt=[];for(let je=0;je<Be.length;je++){let le=Be[je],Ge=Ce?`${Ce}/${le.name}`:`${le.name}`;Bt.push({title:le.name,type:le.type,isLeaf:le.type!=="tree",key:Ge})}return Bt}function he(Be,Ce,Bt){for(let je=0;je<Be.length;je++){let le=Be[je];if(le.key===Ce){le.children=Bt;break}le.children&&he(le.children,Ce,Bt)}return Be}function ce(Be,Ce,Bt){let je;return function(){let le=this,Ge=arguments,bt=function(){je=null,Bt||Be.apply(le,Ge)},et=Bt&&!je;clearTimeout(je),je=setTimeout(bt,Ce),et&&Be.apply(le,Ge)}}const fe=!0,ue=St.Z.API_SERVER},9507:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return je}});var St=Rt(59301),ee={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},me=Rt(92310),he=Rt.n(me),ce=Rt(29787),fe=Rt(2859),ue=Rt(38986),Be=Rt(51257),Ce=(le,Ge,bt)=>new Promise((et,nt)=>{var ct=vt=>{try{pt(bt.next(vt))}catch(Pt){nt(Pt)}},lt=vt=>{try{pt(bt.throw(vt))}catch(Pt){nt(Pt)}},pt=vt=>vt.done?et(vt.value):Promise.resolve(vt.value).then(ct,lt);pt((bt=bt.apply(le,Ge)).next())}),je=({data:le,className:Ge,fullWidth:bt,style:et={},onClose:nt,onOk:ct,showFullTools:lt,noAssociationId:pt})=>{const vt=(0,St.useRef)(null),Pt=(0,St.useRef)(null),Dt=(0,St.useRef)(null),Vt=(0,St.useRef)(null),[Ut,se]=(0,St.useState)(!1),[qt,Jt]=(0,St.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,St.useEffect)(()=>(Dt.current||(Dt.current=document.createElement("style"),document.head.appendChild(Dt.current)),le!=null&&le.visible?(document.body.setAttribute("data-custom","y-hidden"),Dt.current.innerHTML=" html { overflow-y: hidden; }",le!=null&&le.src&&Me()):(document.body.removeAttribute("data-custom"),Dt.current&&(document.head.removeChild(Dt.current),Dt.current=null)),()=>{document.body.removeAttribute("data-custom"),Dt.current&&(document.head.removeChild(Dt.current),Dt.current=null)}),[le==null?void 0:le.visible]);const Me=()=>Ce(void 0,null,function*(){se(!0),Jt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const tn=yield(0,Be.ZJ)(le==null?void 0:le.src);vt.current.src="",vt.current.src=tn,vt.current.onload=function(){De()},se(!1),Jt("")}),pe=tn=>Ce(void 0,null,function*(){se(!0),Jt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Fn=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:le.title,file:tn.dataUrl}});Fn!=null&&Fn.id&&!pt?(yield(0,ue.ZP)(`/api/attachments/${le.id}/add_subitem.json`,{method:"post",body:{subitem_id:Fn==null?void 0:Fn.id,settings:JSON.stringify(tn.state)}})).status===0&&ct():Fn!=null&&Fn.id&&ct(Fn),se(!1),Jt("")}),He=()=>{const tn=document.querySelector('a[href="https://markerjs.com/"]');tn&&tn.parentNode&&(tn.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(on=>{const pn=document.querySelector(on.name);pn&&pn.setAttribute("title",on.title)})},De=()=>{Pt.current=new fe.hP(vt.current),Pt.current.targetRoot=Vt.current,Pt.current.addEventListener("render",pe),Pt.current.addEventListener("beforeclose",nt),lt&&(Pt.current.availableMarkerTypes=Pt.current.ALL_MARKER_TYPES,Pt.current.uiStyleSettings.redoButtonVisible=!0,Pt.current.uiStyleSettings.notesButtonVisible=!0,Pt.current.uiStyleSettings.zoomButtonVisible=!0,Pt.current.uiStyleSettings.zoomOutButtonVisible=!0,Pt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Pt.current.uiStyleSettings,Pt.current.show(),le!=null&&le.snapshotData&&Pt.current.restoreState(le.snapshotData),setTimeout(()=>{window.scrollTo(0,0),He()},300)};return St.createElement(St.Fragment,null,(le==null?void 0:le.visible)&&St.createElement(ce.Z,{spinning:Ut,tip:qt,style:{position:"absolute",width:"100vw"}},St.createElement("div",{ref:Vt,className:he()(ee.imageDimensions,Ge,bt?ee.fullWidth:""),style:et},St.createElement("img",{className:ee.img,ref:vt}))))}},76562:function(xn,$n,Rt){"use strict";var St=Rt(59301),ee=Rt(77019),me=Rt(5269),he=Rt(20554),ce=Rt(99571),fe=Rt(76902),ue=Rt(99587),Be=Rt(48136),Ce=Rt(59301);const Bt=(0,St.forwardRef)(({callback:je,showSaveButton:le,value:Ge=""},bt)=>{const et=(0,St.useRef)(),nt=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ct=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],lt=Pt=>{et.current.setValue(et.current.getValue()+" "+Pt.value+" ")},pt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ce.createElement(ee.Z,{className:ue.Z.lists,gutter:[10,10]},nt.map((Pt,Dt)=>Ce.createElement(me.Z,{flex:"110px",className:ue.Z.item},Ce.createElement("div",null,Ce.createElement(fe.Z,{value:`$$${Pt.value}$$`}),Pt.name),Ce.createElement("div",{className:ue.Z.children},Pt.children.map((Vt,Ut)=>Ce.createElement("div",{key:Ut},Ce.createElement("h1",null,Vt.name),Ce.createElement(ee.Z,{gutter:[10,10]},Vt.data.map((se,qt)=>Ce.createElement(me.Z,{key:qt,onClick:()=>lt(se),className:ue.Z.diamond},Ce.createElement(fe.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ce.createElement(ee.Z,{className:ue.Z.lists,gutter:[10,10]},ct.map((Pt,Dt)=>Ce.createElement(me.Z,{flex:"110px",className:ue.Z.item},Ce.createElement("div",null,Ce.createElement(fe.Z,{value:"`$$"+Pt.value+"$$`"}),Pt.name),Ce.createElement("div",{className:ue.Z.children},Pt.children.map((Vt,Ut)=>Ce.createElement("div",{key:Ut},Vt.name&&Ce.createElement("h1",null,Vt.name),Ce.createElement(ee.Z,{gutter:[10,10]},Vt.data.map((se,qt)=>Ce.createElement(me.Z,{key:qt,onClick:()=>lt(se),className:ue.Z.diamond},Ce.createElement(fe.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],vt=()=>{var Pt=document.createElement("div");Pt.innerHTML=et.current.getValue();var Dt=Pt.innerText;return je&&je(Dt),Dt};return(0,St.useImperativeHandle)(bt,()=>({getData:vt})),Ce.createElement("div",{className:ue.Z.mathWrap},Ce.createElement(he.default,{defaultActiveKey:"1",items:pt}),Ce.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},Ge||""),le&&Ce.createElement("div",{className:ue.Z.button},Ce.createElement(ce.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});$n.Z=Bt},28426:function(xn,$n,Rt){"use strict";var St=Rt(59301),ee=Rt(93314),me=Rt(99571),he=Object.defineProperty,ce=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Bt=(bt,et,nt)=>et in bt?he(bt,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):bt[et]=nt,je=(bt,et)=>{for(var nt in et||(et={}))Be.call(et,nt)&&Bt(bt,nt,et[nt]);if(ue)for(var nt of ue(et))Ce.call(et,nt)&&Bt(bt,nt,et[nt]);return bt},le=(bt,et)=>ce(bt,fe(et));const Ge=({img:bt,buttonProps:et={},styles:nt={},customText:ct,ButtonText:lt,ButtonClick:pt,Buttonclass:vt,ButtonTwo:Pt,imgStyles:Dt,loading:Vt=!1,className:Ut=""})=>St.createElement("section",{className:`tc animated fadeIn ${Ut}`,style:je({color:"#999",margin:"100px auto",visibility:Vt?"hidden":"visible"},nt)},St.createElement("img",{src:bt||ee,style:le(je({},Dt),{pointerEvents:"none",userSelect:"none"})}),St.createElement("p",{className:"mt20 font14"},ct||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&St.createElement(me.ZP,je({className:vt,onClick:pt},et),lt),Pt&&Pt);$n.Z=Ge},43155:function(xn,$n,Rt){"use strict";Rt.d($n,{Q:function(){return fe}});var St=Rt(59301),ee=Rt(82326),me=Rt(47889),he=Rt(71051),ce=Rt(59301),fe=(Be=>(Be[Be.Number=1]="Number",Be[Be.Percent=2]="Percent",Be))(fe||{});const ue=({value:Be,onChange:Ce,disabled:Bt,hidePercentOption:je=!1,percentType:le="select"})=>{const Ge=(0,St.useMemo)(()=>je?1:2,[je]),[bt,et]=(0,St.useState)(Ge);console.log(bt);const nt=lt=>Be.type===1?`${lt}\u5206`:`${lt}%`,ct=(0,St.useCallback)(lt=>{if(bt===1){const pt=lt.replace("\u5206","");return isNaN(parseInt(pt,10))?0:pt}else return lt.replace("%","")},[bt]);return(0,St.useEffect)(()=>{et(Be.type)},[Be]),ce.createElement("div",{style:{display:"flex",alignItems:"center"}},le=="select"&&ce.createElement(ee.default,{size:"large",onChange:lt=>{et(lt),Ce({type:lt,inputValue:lt===1?5:20})},value:bt||Ge,style:{width:100},options:je?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:Bt}),le=="radio"&&ce.createElement(me.ZP.Group,{size:"large",onChange:lt=>{const pt=lt.target.value;et(pt),Ce({type:pt,inputValue:pt===1?5:20})},value:bt||Ge,disabled:Bt},!je&&ce.createElement(me.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),ce.createElement(me.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),le=="radio"&&ce.createElement("div",{style:{marginRight:"10px",color:"#000000"}},Be.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),ce.createElement(he.Z,{size:"large",disabled:Bt,value:Be.inputValue,style:{width:"120px"},parser:ct,addonAfter:Be.type===1?"\u5206":"%",max:bt===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:lt=>{Ce({type:bt,inputValue:lt})}}),le=="radio"&&Be.type==2&&ce.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};$n.Z=ue},45677:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return vt}});var St=Rt(59301),ee={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},me=Rt(99571),he=Rt(70557),ce=Rt(75975),fe=Rt(25399),ue=Rt(51257),Be=Rt(81722),Ce=Rt(28426),Bt=Rt(346),je=Rt(44203),le=Rt(59301),Ge=Object.defineProperty,bt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ct=(Pt,Dt,Vt)=>Dt in Pt?Ge(Pt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):Pt[Dt]=Vt,lt=(Pt,Dt)=>{for(var Vt in Dt||(Dt={}))et.call(Dt,Vt)&&ct(Pt,Vt,Dt[Vt]);if(bt)for(var Vt of bt(Dt))nt.call(Dt,Vt)&&ct(Pt,Vt,Dt[Vt]);return Pt},pt=(Pt,Dt,Vt)=>new Promise((Ut,se)=>{var qt=pe=>{try{Me(Vt.next(pe))}catch(He){se(He)}},Jt=pe=>{try{Me(Vt.throw(pe))}catch(He){se(He)}},Me=pe=>pe.done?Ut(pe.value):Promise.resolve(pe.value).then(qt,Jt);Me((Vt=Vt.apply(Pt,Dt)).next())}),vt=({editOffice:Pt="view",data:Dt,issaver:Vt,onSaver:Ut,theme:se,type:qt,filename:Jt,monacoEditor:Me,className:pe,style:He,close:De,onClose:tn,hasMask:Fn,disabledDownload:on,onImgDimensions:pn,showNodata:fn,recordInfo:te})=>{const[Ot,Le]=(0,St.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[dn,_e]=(0,St.useState)(""),[ve,Xe]=(0,St.useState)(),ke=window.ENV==="build"?"/react/build":"",cn=location.host.startsWith("localhost")?Bt.Z.PROXY_SERVER:Bt.Z.API_SERVER,ae=10*(1024*1024),Pe=(0,St.useRef)();Dt!=null&&Dt.startsWith("/api")&&qt!=="txt"&&(Dt=Bt.Z.API_SERVER+Dt);const sn=kt=>kt.substring(kt.lastIndexOf("/")+1).split(".").pop();Jt&&Me&&(Me.filename=Jt),(0,St.useEffect)(()=>{var kt,zt;const Et=(zt=(kt=document.cookie)==null?void 0:kt.replace(/\s/g,""))==null?void 0:zt.split(";");Et==null||Et.map(Ae=>{let We=Ae.split("=");We[0]==="_educoder_session"&&_e(We[1])})},[]),(0,St.useEffect)(()=>{qt==="office"&&(Dt.indexOf("bigfilescdn.")>-1||Dt.indexOf("bigfiles1")>-1?Xe({url:Dt,fileType:sn(Dt),model:Dt.indexOf("model=edit")?"edit":"view"}):Tt())},[qt,Dt]);function an(kt){return pt(this,null,function*(){kt.data.type==="pdfdata"&&(Ut(kt.data.data),window.removeEventListener("message",an,!1)),console.log("mess---:",kt.data)})}const Tt=()=>pt(void 0,null,function*(){console.log("data:",Dt);let kt=Dt;Dt.startsWith("http")||(kt=location.origin+kt);let zt=new URL(kt).pathname.split("/").pop();const Et=yield(0,Be.gJ)({attachment_id:zt});Et.url=cn+Et.url,Xe(Et)}),Ct=()=>{if(Dt.startsWith("http")||Dt.startsWith("blob:")){xt();return}(0,ue.Sv)(Jt||"educoder",Dt,Jt)},xt=()=>{te&&(0,je.fc)({id:te==null?void 0:te.id,watch_type:1,course_id:te==null?void 0:te.course_id}),(0,ue.Nd)(Jt||"educoder",decodeURIComponent(Dt))};return le.createElement("div",{style:lt({},He||{}),className:`${Fn&&ee.bgBlack} ${qt?ee.wrp:"hide"}`},De&&le.createElement("div",{className:ee.close,ref:Pe},!!pn&&le.createElement(fe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Pe.current},le.createElement("span",{onClick:()=>{tn(),pn()}},le.createElement("i",{className:"icon-yulanpizhu"}))),!on&&le.createElement(fe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Pe.current},le.createElement("span",{onClick:xt},le.createElement("i",{className:"icon-quxiaozhiding"}))),Vt&&le.createElement(fe.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Pe.current},le.createElement("span",{className:"",onClick:()=>{const kt=document.getElementById("pdfiframe");window.addEventListener("message",an,!1),setTimeout(()=>{kt.contentWindow.postMessage("getData","*")},300)}},le.createElement("i",{className:"icon-baocun"}))),le.createElement(fe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Pe.current},le.createElement("span",{className:"",onClick:()=>{tn()}},le.createElement("i",{className:"icon-guanbi1"})))),le.createElement("div",{className:`${ee[pe]} ${pe} ${ee.monaco} ${qt==="txt"?"show":"hide"}`},qt==="txt"&&le.createElement(le.Fragment,null,le.createElement(ce.ZP,lt({},Me)))),qt==="audio"&&le.createElement("audio",{src:`${(Dt==null?void 0:Dt.indexOf("http://"))>-1||(Dt==null?void 0:Dt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Dt}`,autoPlay:!0}),qt==="video"&&le.createElement(le.Fragment,null,(Dt==null?void 0:Dt.indexOf("http"))>-1?le.createElement("video",{controls:!0,src:`${Dt}`,autoPlay:!0}):le.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Dt}`,autoPlay:!0})),qt==="office"&&ve&&le.createElement("iframe",{src:`${ke}/office.html?key=${ve.key}&url=${btoa(ve.url)}&callbackUrl=${cn+(ve.callbackUrl||"")}&fileType=${ve.fileType}&title=${ve.title||""}&model=${Pt}&officeServer=${Bt.Z.ONLYOFFICE}&disabledDownload=${!!on}`}),qt==="html"&&le.createElement("iframe",{src:Dt+"&disposition=inline"}),qt==="pdf"&&le.createElement("iframe",{id:"pdfiframe",src:`${ke}/js/pdfview/index.html?filename=${Jt||"educoder.pdf"}&url=${encodeURIComponent(Dt)}&disabledDownload=${!!on}&model=${Pt}`}),qt==="image"&&le.createElement("img",{src:`${(Dt==null?void 0:Dt.indexOf("http://"))>-1||(Dt==null?void 0:Dt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Dt}`}),(qt==="other"||qt==="download")&&le.createElement(le.Fragment,null,fn?le.createElement(Ce.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:le.createElement(me.ZP,{icon:le.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ct,disabled:on},"\u4E0B\u8F7D")}):le.createElement(me.ZP,{type:"primary",size:"middle",onClick:Ct,disabled:on},le.createElement(he.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(xn,$n,Rt){"use strict";Rt.d($n,{z:function(){return se},Z:function(){return qt}});var St=Rt(59301),ee=Rt(8944),me=Rt(81428),he=Rt(64018),ce=Rt(81168),fe=Rt(346),ue=Rt(51257),Be=Rt(15342),Ce=Rt(1012),Bt=Rt(45677),je=Rt(59301),Ge=({html:Jt})=>{const Me=(0,St.useRef)(null),pe=(0,St.useRef)(null),He=`.markdown-body p {
|
|
margin: 0 0 16px 0 !important;
|
|
line-height: 28px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
ol,
|
|
ul,
|
|
li {
|
|
list-style-type: none
|
|
}
|
|
|
|
ol,
|
|
ul,
|
|
dl {
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.markdown-body {
|
|
-ms-text-size-adjust: 100%;
|
|
-webkit-text-size-adjust: 100%;
|
|
color: #333;
|
|
overflow: hidden;
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
word-break: break-word;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
white-space: normal;
|
|
word-wrap: break-word;
|
|
position: relative;
|
|
}
|
|
|
|
.markdown-body ul>li {
|
|
list-style-type: disc;
|
|
}
|
|
|
|
.markdown-body ol>li {
|
|
list-style-type: decimal;
|
|
}
|
|
|
|
.markdown-body a {
|
|
background: transparent;
|
|
}
|
|
|
|
.markdown-body a:active,
|
|
.markdown-body a:hover {
|
|
outline: 0;
|
|
}
|
|
|
|
.markdown-body strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 2em;
|
|
margin: 0.67em 0;
|
|
}
|
|
|
|
.markdown-body img {
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body hr {
|
|
-moz-box-sizing: content-box;
|
|
box-sizing: content-box;
|
|
height: 0;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
overflow: auto;
|
|
}
|
|
|
|
.markdown-body code,
|
|
.markdown-body kbd,
|
|
.markdown-body pre {
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-body input {
|
|
color: inherit;
|
|
font: inherit;
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-body html input[disabled] {
|
|
cursor: default;
|
|
}
|
|
|
|
.markdown-body input {
|
|
line-height: normal;
|
|
}
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
.markdown-body td,
|
|
.markdown-body th {
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body * {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.markdown-body input {
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
}
|
|
|
|
.markdown-body a {
|
|
color: #4183c4;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.markdown-body a:hover,
|
|
.markdown-body a:active {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.markdown-body hr {
|
|
height: 0;
|
|
margin: 15px 0;
|
|
overflow: hidden;
|
|
background: transparent;
|
|
border: 0;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.markdown-body hr:before {
|
|
display: table;
|
|
content: "";
|
|
}
|
|
|
|
.markdown-body hr:after {
|
|
display: table;
|
|
clear: both;
|
|
content: "";
|
|
}
|
|
|
|
.markdown-body h1,
|
|
.markdown-body h2,
|
|
.markdown-body h3,
|
|
.markdown-body h4,
|
|
.markdown-body h5,
|
|
.markdown-body h6 {
|
|
margin-top: 15px;
|
|
margin-bottom: 15px;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 30px;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
font-size: 21px;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-body ul,
|
|
.markdown-body ol {
|
|
padding: 0;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
ul.linenums,
|
|
ol.linenums {
|
|
padding: 16px 0 0 56px !important;
|
|
}
|
|
|
|
.markdown-body ul,
|
|
.markdown-body ol {
|
|
padding-left: 2em;
|
|
}
|
|
|
|
|
|
.markdown-body ol ol,
|
|
.markdown-body ul ol {
|
|
list-style-type: lower-roman;
|
|
}
|
|
|
|
.markdown-body ul ul ol,
|
|
.markdown-body ul ol ol,
|
|
.markdown-body ol ul ol,
|
|
.markdown-body ol ol ol {
|
|
list-style-type: lower-alpha;
|
|
}
|
|
|
|
.markdown-body dd {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.markdown-body code {
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
}
|
|
|
|
.markdown-body .octicon {
|
|
font: normal normal 16px octicons-anchor;
|
|
line-height: 1;
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.markdown-body .octicon-link:before {
|
|
content: '\f05c';
|
|
}
|
|
|
|
.markdown-body>*:first-child {
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
.markdown-body>*:last-child {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.markdown-body .anchor {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: block;
|
|
padding-right: 6px;
|
|
padding-left: 30px;
|
|
margin-left: -30px;
|
|
}
|
|
|
|
.markdown-body .anchor:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.markdown-body h1,
|
|
.markdown-body h2,
|
|
.markdown-body h3,
|
|
.markdown-body h4,
|
|
.markdown-body h5,
|
|
.markdown-body h6 {
|
|
position: relative;
|
|
margin-top: 1em;
|
|
margin-bottom: 16px;
|
|
font-weight: bold;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
.markdown-body h2 .octicon-link,
|
|
.markdown-body h3 .octicon-link,
|
|
.markdown-body h4 .octicon-link,
|
|
.markdown-body h5 .octicon-link,
|
|
.markdown-body h6 .octicon-link {
|
|
display: none;
|
|
color: #000;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
.markdown-body h2:hover .anchor,
|
|
.markdown-body h3:hover .anchor,
|
|
.markdown-body h4:hover .anchor,
|
|
.markdown-body h5:hover .anchor,
|
|
.markdown-body h6:hover .anchor {
|
|
padding-left: 8px;
|
|
margin-left: -30px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
display: inline-block;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
padding-bottom: 0.3em;
|
|
font-size: 2.25em;
|
|
line-height: 1.2;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.markdown-body h1 .anchor {
|
|
line-height: 1;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
padding-bottom: 0.3em;
|
|
font-size: 1.75em;
|
|
line-height: 1.225;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.markdown-body h2 .anchor {
|
|
line-height: 1;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 1.5em;
|
|
line-height: 1.43;
|
|
}
|
|
|
|
.markdown-body h3 .anchor {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.markdown-body h4 .anchor {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-body h5 .anchor {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 1em;
|
|
color: #777;
|
|
}
|
|
|
|
.markdown-body h6 .anchor {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body p,
|
|
.markdown-body blockquote,
|
|
.markdown-body ul,
|
|
.markdown-body ol,
|
|
.markdown-body dl,
|
|
.markdown-body table,
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body ul ul,
|
|
.markdown-body ul ol,
|
|
.markdown-body ol ol,
|
|
.markdown-body ol ul {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-body li>p {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.markdown-body dl {
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body dl dt {
|
|
padding: 0;
|
|
margin-top: 16px;
|
|
font-size: 1em;
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body dl dd {
|
|
padding: 0 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
padding: 0 15px;
|
|
color: #777;
|
|
border-left: 4px solid #ddd;
|
|
}
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-body table {
|
|
display: block;
|
|
width: 100%;
|
|
overflow: auto;
|
|
word-break: normal;
|
|
word-break: keep-all;
|
|
}
|
|
|
|
.markdown-body table th {
|
|
font-weight: bold;
|
|
text-align: revert;
|
|
}
|
|
|
|
.markdown-body table th,
|
|
.markdown-body table td {
|
|
padding: 6px 13px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.markdown-body table tr {
|
|
background-color: #fff;
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
.markdown-body img {
|
|
max-width: 100%;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.markdown-body code {
|
|
padding: 0;
|
|
padding-top: 0.2em;
|
|
padding-bottom: 0.2em;
|
|
margin: 0;
|
|
font-size: 85%;
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-body code:has(.katex) {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.markdown-body code:before,
|
|
.markdown-body code:after {
|
|
letter-spacing: -0.2em;
|
|
content: "\\00a0";
|
|
}
|
|
|
|
.markdown-body pre>code {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-size: 100%;
|
|
word-break: normal;
|
|
white-space: pre;
|
|
background: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body .highlight {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body .highlight pre,
|
|
.markdown-body pre {
|
|
padding: 16px;
|
|
overflow: auto;
|
|
font-size: 85%;
|
|
line-height: 1.45;
|
|
background-color: #f7f7f7;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-body .highlight pre {
|
|
margin-bottom: 0;
|
|
word-break: normal;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
word-wrap: normal;
|
|
}
|
|
|
|
.markdown-body pre code {
|
|
display: inline;
|
|
max-width: initial;
|
|
padding: 0;
|
|
margin: 0;
|
|
overflow: initial;
|
|
line-height: inherit;
|
|
word-wrap: normal;
|
|
background-color: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body pre code:before,
|
|
.markdown-body pre code:after {
|
|
content: normal;
|
|
}
|
|
|
|
.markdown-body kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font-size: 11px;
|
|
line-height: 10px;
|
|
color: #555;
|
|
vertical-align: middle;
|
|
background-color: #fcfcfc;
|
|
border: solid 1px #ccc;
|
|
border-bottom-color: #bbb;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
}
|
|
|
|
.markdown-body .pl-c {
|
|
color: #969896;
|
|
}
|
|
|
|
.markdown-body .pl-c1,
|
|
.markdown-body .pl-mdh,
|
|
.markdown-body .pl-mm,
|
|
.markdown-body .pl-mp,
|
|
.markdown-body .pl-mr,
|
|
.markdown-body .pl-s1 .pl-v,
|
|
.markdown-body .pl-s3,
|
|
.markdown-body .pl-sc,
|
|
.markdown-body .pl-sv {
|
|
color: #0086b3;
|
|
}
|
|
|
|
.markdown-body .pl-e,
|
|
.markdown-body .pl-en {
|
|
color: #795da3;
|
|
}
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
.markdown-body .pl-smi,
|
|
.markdown-body .pl-smp,
|
|
.markdown-body .pl-stj,
|
|
.markdown-body .pl-vo,
|
|
.markdown-body .pl-vpf {
|
|
color: #333;
|
|
}
|
|
|
|
.markdown-body .pl-ent {
|
|
color: #63a35c;
|
|
}
|
|
|
|
.markdown-body .pl-k,
|
|
.markdown-body .pl-s,
|
|
.markdown-body .pl-st {
|
|
color: #a71d5d;
|
|
}
|
|
|
|
.markdown-body .pl-pds,
|
|
.markdown-body .pl-s1,
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
.markdown-body .pl-sr,
|
|
.markdown-body .pl-sr .pl-cce,
|
|
.markdown-body .pl-sr .pl-sra,
|
|
.markdown-body .pl-sr .pl-sre,
|
|
.markdown-body .pl-src {
|
|
color: #df5000;
|
|
}
|
|
|
|
.markdown-body .pl-mo,
|
|
.markdown-body .pl-v {
|
|
color: #1d3e81;
|
|
}
|
|
|
|
.markdown-body .pl-id {
|
|
color: #b52a1d;
|
|
}
|
|
|
|
.markdown-body .pl-ii {
|
|
background-color: #b52a1d;
|
|
color: #f8f8f8;
|
|
}
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
color: #63a35c;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-ml {
|
|
color: #693a17;
|
|
}
|
|
|
|
.markdown-body .pl-mh,
|
|
.markdown-body .pl-mh .pl-en,
|
|
.markdown-body .pl-ms {
|
|
color: #1d3e81;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-mq {
|
|
color: #008080;
|
|
}
|
|
|
|
.markdown-body .pl-mi {
|
|
color: #333;
|
|
font-style: italic;
|
|
}
|
|
|
|
.markdown-body .pl-mb {
|
|
color: #333;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-md,
|
|
.markdown-body .pl-mdhf {
|
|
background-color: #ffecec;
|
|
color: #bd2c00;
|
|
}
|
|
|
|
.markdown-body .pl-mdht,
|
|
.markdown-body .pl-mi1 {
|
|
background-color: #eaffea;
|
|
color: #55a532;
|
|
}
|
|
|
|
.markdown-body .pl-mdr {
|
|
color: #795da3;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
line-height: 10px;
|
|
color: #555;
|
|
vertical-align: middle;
|
|
background-color: #fcfcfc;
|
|
border: solid 1px #ccc;
|
|
border-bottom-color: #bbb;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
}
|
|
|
|
.markdown-body .task-list-item {
|
|
list-style-type: none;
|
|
}
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.markdown-body .task-list-item input {
|
|
float: left;
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
z-index: 1;
|
|
position: relative;
|
|
border-color: #4183c4;
|
|
}
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
.pln {
|
|
color: #000
|
|
}
|
|
|
|
/* plain text */
|
|
|
|
@media screen {
|
|
.str {
|
|
color: #080
|
|
}
|
|
|
|
/* string content */
|
|
.kwd {
|
|
color: #008
|
|
}
|
|
|
|
/* a keyword */
|
|
.com {
|
|
color: #800
|
|
}
|
|
|
|
/* a comment */
|
|
.typ {
|
|
color: #606
|
|
}
|
|
|
|
/* a type name */
|
|
.lit {
|
|
color: #066
|
|
}
|
|
|
|
/* a literal value */
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
.pun,
|
|
.opn,
|
|
.clo {
|
|
color: #660
|
|
}
|
|
|
|
.tag {
|
|
color: #008
|
|
}
|
|
|
|
/* a markup tag name */
|
|
.atn {
|
|
color: #606
|
|
}
|
|
|
|
/* a markup attribute name */
|
|
.atv {
|
|
color: #080
|
|
}
|
|
|
|
/* a markup attribute value */
|
|
.dec,
|
|
.var {
|
|
color: #606
|
|
}
|
|
|
|
/* a declaration; a variable name */
|
|
.fun {
|
|
color: red
|
|
}
|
|
|
|
/* a function name */
|
|
}
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
@media print,
|
|
projection {
|
|
.str {
|
|
color: #060
|
|
}
|
|
|
|
.kwd {
|
|
color: #006;
|
|
font-weight: bold
|
|
}
|
|
|
|
.com {
|
|
color: #600;
|
|
font-style: italic
|
|
}
|
|
|
|
.typ {
|
|
color: #404;
|
|
font-weight: bold
|
|
}
|
|
|
|
.lit {
|
|
color: #044
|
|
}
|
|
|
|
.pun,
|
|
.opn,
|
|
.clo {
|
|
color: #440
|
|
}
|
|
|
|
.tag {
|
|
color: #006;
|
|
font-weight: bold
|
|
}
|
|
|
|
.atn {
|
|
color: #404
|
|
}
|
|
|
|
.atv {
|
|
color: #060
|
|
}
|
|
}
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
pre.prettyprint {
|
|
padding: 2px;
|
|
/* border: 1px solid #888 */
|
|
}
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
ol.linenums {
|
|
margin-top: 0;
|
|
margin-bottom: 0
|
|
}
|
|
|
|
/* IE indents via margin-left */
|
|
li.L0,
|
|
li.L1,
|
|
li.L2,
|
|
li.L3,
|
|
li.L5,
|
|
li.L6,
|
|
li.L7,
|
|
li.L8 {
|
|
list-style-type: none
|
|
}
|
|
|
|
/* Alternate shading for lines */
|
|
li.L1,
|
|
li.L3,
|
|
li.L5,
|
|
li.L7,
|
|
li.L9 {
|
|
background: #eee
|
|
}
|
|
|
|
.markdown-body p,
|
|
.markdown-body blockquote,
|
|
.markdown-body ul,
|
|
.markdown-body ol,
|
|
.markdown-body dl,
|
|
.markdown-body table,
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}`;return(0,St.useEffect)(()=>{const De=Me.current.attachShadow({mode:"open"});pe.current=document.createElement("div"),pe.current.className="markdown-body",pe.current.innerHTML=Jt,De.appendChild(pe.current);const tn=document.createElement("style");return tn.textContent=He,De.appendChild(tn),()=>{De.innerHTML=""}},[]),(0,St.useEffect)(()=>{pe.current&&(pe.current.innerHTML=Jt)},[Jt]),je.createElement("div",{ref:Me})};function bt(Jt){const Me=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],pe=new RegExp(`\\b(${Me.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Jt.replace(pe,"").trim()}var et=Object.defineProperty,nt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,pt=(Jt,Me,pe)=>Me in Jt?et(Jt,Me,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Jt[Me]=pe,vt=(Jt,Me)=>{for(var pe in Me||(Me={}))ct.call(Me,pe)&&pt(Jt,pe,Me[pe]);if(nt)for(var pe of nt(Me))lt.call(Me,pe)&&pt(Jt,pe,Me[pe]);return Jt};const Pt="@\u2581\u2581@",Dt="@\u2581@",Vt=/<pre[^>]*>/g;function Ut(Jt){let Me=document.createElement("div");return Me.innerHTML=Jt,Me.childNodes.length===0?"":Me.childNodes[0].nodeValue}const se=(Jt,Me)=>{Jt=Jt||"";const pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,De=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,tn=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Me?Jt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(pe,(Fn,on,pn,fn,te,Ot,Le)=>{const dn=on||fn||Ot,_e=pn||te||Le||"?";return fe.Z.API_SERVER+"/api/attachments/"+dn+_e+"&t="+(0,ue.Jn)(dn,Date.now())+(Fn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Jt=Jt.replace(tn,(Fn,on,pn,fn,te,Ot,Le)=>{const dn=on||fn||Ot,_e=pn||te||Le||"?";return fe.Z.API_SERVER+"/attachments/download/"+dn+_e+"&t="+(0,ue.Jn)(dn,Date.now())+(Fn.indexOf(")")>-1?")":"&")}).replace(pe,(Fn,on,pn,fn,te,Ot,Le)=>{const dn=on||fn||Ot,_e=pn||te||Le||"?";return fe.Z.API_SERVER+"/api/attachments/"+dn+_e+"&t="+(0,ue.Jn)(dn,Date.now())+(Fn.indexOf(")")>-1?")":"&")}).replace(He,(Fn,on,pn,fn,te)=>{const Ot=on||fn,Le=pn||te||"";return'"'+fe.Z.API_SERVER+"/api/attachments/"+Ot+Le+Ot+Le+"&t="+(0,ue.Jn)(Ot,Date.now())}).replace(De,(Fn,on,pn,fn,te)=>{const Ot=on||fn,Le=pn||te||"";return"("+fe.Z.API_SERVER+"/files/uploads/"+Ot+Le+Ot+Le+"&t="+(0,ue.Jn)(Ot,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
`),Jt)};var qt=({value:Jt="",className:Me,showTextOnly:pe,showLines:He,style:De={},stylesPrev:tn={},highlightKeywords:Fn,showProgramFill:on,isProgramFill:pn,disabledFill:fn=!1,programFillValue:te,onFillChange:Ot=_e=>{},onFillBlur:Le=()=>{},onFillFocus:dn=()=>{}})=>{let _e=bt(String(Jt||""));const[ve,Xe]=(0,St.useState)(""),[ke,cn]=(0,St.useState)("office"),[Ie,ae]=(0,St.useState)([]),Pe=(0,St.useRef)("a"+(0,Ce.Z)()),sn={},an=Ke=>/<style[\s\S]*?>/i.test(Ke||""),Tt=(Ke,ri,Sn)=>{const hi=document.createElement(Ke===Dt?"input":"textarea");hi.style.width="100%",hi.style.height=Ke===Dt?"40px":"151px",hi.rows=5,hi.spellcheck=!1,hi.name="edu-program-fill",hi.placeholder="\u8BF7\u8F93\u5165",hi.dataset.id=ri;const ti=Object.keys(sn).length;return sn[ti]=hi,`<span class="edu-program-fill-wrap ${Ke===Dt?"":"show"}" style="width:${Ke===Dt?"600px":"100%"}" title=${Sn||""}><span>${hi.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ct(Ke){return Ke=Ke.replace(/!\[.*?\]\(.*?\)/g,""),Ke=Ke.replace(/\[.*?\]\(.*?\)/g,""),Ke=Ke.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ke=Ke.replace(/<embed.*?>/g,""),Ke=Ke.replace(/<img.*?>/g,""),Ke=Ke.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ke=Ke.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ke=Ke.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ke=Ke.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ke}const xt=Ke=>!pe&&an(_e)?Ke:Ke.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ri,Sn){let hi=Sn.replace(/(\n|\r)/g,"").split("}"),ti=[];return hi.map(Wn=>{Wn!=""&&ti.push(`.${Pe.current} ${Wn}`)}),`<style>${ti.join("}")}</style>`}),kt=(0,St.useMemo)(()=>{try{const hi=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ti=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Wn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,bi=/\(\/attachments\/download\//g;_e=_e.replace(bi,"("+fe.Z.API_SERVER+"/attachments/download/").replace(hi,"("+fe.Z.API_SERVER+"/api/attachments/").replace(ti,'"'+fe.Z.API_SERVER+"/api/attachments/").replace(Wn,'"'+fe.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
`)}catch(hi){}if(on){let hi=-1;return _e=_e.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(ti,Wn,bi){var Ei;return++hi,Tt(ti,hi,(Ei=te==null?void 0:te[hi])==null?void 0:Ei.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${xt(_e||"")}</pre>`}let Ke=xt(_e);Ke=(0,me.ZP)(Ke);const ri=(0,me.ez)();_e.match(/\[TOC\]/)&&(Ke=Ke.replace("<p>[TOC]</p>",(0,me.Qv)()),(0,me.Iy)()),Ke=Ke.replace(/(__special_katext_id_\d+__)/g,(hi,ti)=>{const{type:Wn,expression:bi}=ri[ti];return(0,Be.renderToString)(Ut(bi)||"",{displayMode:Wn==="block",throwOnError:!1,output:"html"})}),Ke=Ke.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,me.AL)();const Sn=document.createElement("div");if(Sn.innerHTML=Ke,pe)return Sn.innerText;if(Fn){const hi=Fn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return We(Sn,hi),Sn.innerHTML}return setTimeout(()=>Gn(),500),Sn.innerHTML},[_e,Fn]);(0,St.useEffect)(()=>{Ue.current&&Ue.current.querySelectorAll(["input","textarea"]).forEach(ri=>{ri.oninput=zt,ri.onblur=Et,ri.onfocus=Ae})},[Ie]),(0,St.useEffect)(()=>{var Ke,ri,Sn,hi,ti;if(te!=null&&te.length)try{const Wn=Ue.current.querySelectorAll(".edu-program-fill-score"),bi=Ue.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ei,Pi]of bi.entries())Pi.value=((Ke=te==null?void 0:te[Ei])==null?void 0:Ke.value)||"",((ri=te==null?void 0:te[Ei])==null?void 0:ri.type)==="warning"?Pi.className="program-fill-warning":((Sn=te==null?void 0:te[Ei])==null?void 0:Sn.type)==="success"?Pi.className="program-fill-success":Pi.className="";for(const[Ei,Pi]of Wn.entries())Pi.innerHTML=(hi=te==null?void 0:te[Ei])!=null&&hi.score?`${(ti=te==null?void 0:te[Ei])==null?void 0:ti.score}\u5206`:"";ae(te)}catch(Wn){console.log(Wn,"error")}},[te]);const zt=Ke=>{Ie[Ke.target.dataset.id]=Ie[Ke.target.dataset.id]||{},Ie[Ke.target.dataset.id].value=Ke.target.value,ae([...Ie]),Ot(Ie,Ke.target.dataset.id)},Et=Ke=>{Ie[Ke.target.dataset.id]=Ie[Ke.target.dataset.id]||{},Ie[Ke.target.dataset.id].value=Ke.target.value,ae([...Ie]),Le(Ie,Ke.target.dataset.id)},Ae=Ke=>{Ie[Ke.target.dataset.id]=Ie[Ke.target.dataset.id]||{},Ie[Ke.target.dataset.id].value=Ke.target.value,ae([...Ie]),dn(Ie,Ke.target.dataset.id)};function We(Ke,ri){return Ke.childNodes.forEach(Sn=>{var hi;if(Sn.childNodes.length>0)We(Sn,ri);else if(Sn.nodeName!=="IMG")if(Sn.innerHTML)Sn.innerHTML=(hi=Sn.innerHTML)==null?void 0:hi.replace(new RegExp(ri,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ti=document.createElement("span");ti.innerHTML=Sn.textContent.replace(new RegExp(ri,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Sn.replaceWith(ti)}})}const Ue=(0,St.useRef)();me.jb.WebkitLineClamp=He,He&&(De=vt(vt({},De),me.jb));function jn(Ke){let ri=Ke.target;if(ri.tagName.toUpperCase()==="A"){let Sn=ri.getAttribute("href");if(Sn.indexOf("office")>-1)Ke.preventDefault(),Xe(Sn),cn("office");else if(Sn.indexOf("application/pdf")>-1)Ke.preventDefault(),Xe(Sn),cn("pdf");else if(Sn.indexOf("text/html")>-1)Ke.preventDefault(),Xe(Sn),cn("html");else if(Sn.startsWith("#")){Ke.preventDefault();let hi=document.getElementById(Sn.replace("#",""));hi&&hi.scrollIntoView(!0)}}}const Gn=()=>{var Ke;const ri=(Ke=Ue.current)==null?void 0:Ke.querySelectorAll("video");ri==null||ri.forEach(Sn=>{if(Sn.oncontextmenu=()=>!1,Sn.src.indexOf(".m3u8")>-1&&!Sn.canPlayType("application/vnd.apple.mpegurl")){if(ce.ZP.isSupported()){var hi=new ce.ZP;hi.loadSource(Sn.src),hi.attachMedia(Sn)}}})};return(0,St.useEffect)(()=>{if(Ue.current&&kt&&kt.match(Vt)&&window.PR.prettyPrint(),Ue.current)return Ue.current.addEventListener("click",jn),()=>{var Ke;(Ke=Ue.current)==null||Ke.removeEventListener("click",jn),(0,me.AL)(),(0,me.Iy)()}},[kt,Ue.current,jn]),(0,St.useEffect)(()=>{var Ke;const ri=Sn=>{Sn.preventDefault(),Sn.clipboardData.setData("text",window.getSelection().toString())};return(Ke=Ue.current)==null||Ke.addEventListener("copy",ri),()=>{var Sn;(Sn=Ue.current)==null||Sn.removeEventListener("copy",ri)}},[Ue.current]),St.createElement(St.Fragment,null,pe&&St.createElement("div",{ref:Ue},kt),!pe&&!an(kt)&&St.createElement("div",{ref:Ue,style:vt({},De),className:`${Me||""} ${fn?"disabled-fill":""} markdown-body ${Pe.current}`,dangerouslySetInnerHTML:{__html:kt}}),!pe&&an(kt)&&St.createElement(Ge,{html:kt}),St.createElement(Bt.Z,{close:!0,data:ve,type:ve!=null&&ve.length?ke:"",style:vt({},tn),onClose:()=>Xe("")}))}},3039:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return Be}});var St=Rt(59301),ee={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},me=Rt(62957),he="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",fe=(Ce,Bt,je)=>new Promise((le,Ge)=>{var bt=ct=>{try{nt(je.next(ct))}catch(lt){Ge(lt)}},et=ct=>{try{nt(je.throw(ct))}catch(lt){Ge(lt)}},nt=ct=>ct.done?le(ct.value):Promise.resolve(ct.value).then(bt,et);nt((je=je.apply(Ce,Bt)).next())}),Be=({type:Ce,resdata:Bt,onok:je,oktext:le,okloading:Ge})=>{const[bt,et]=(0,St.useState)(!1),{can_copy_list:nt,can_copy_num:ct,challenge_type:lt,course_data_list:pt,no_copy_list:vt,no_copy_num:Pt,no_use_list:Dt,no_use_num:Vt,repeat_shixun_num:Ut,student_count:se,total_num:qt,use_num:Jt}=Bt;let Me=ct>0||Ce==="exercise";(0,St.useEffect)(()=>{(Bt==null?void 0:Bt.student_count)>0&&et(!0)},[Bt]),console.log("---11",Ge),(0,St.useEffect)(()=>{Ge||et(!1)},[Ge]);const pe=()=>{if(Ce==="exercise"&<===1)return St.createElement(St.Fragment,null,"\u8BFE\u5802\u5185\u6709",St.createElement("span",{className:ee.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",St.createElement("span",{className:ee.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",St.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(Ce==="exercise"&<===2)return St.createElement(St.Fragment,null,"\u8BFE\u5802\u5185\u6709",St.createElement("span",{className:ee.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",St.createElement("span",{className:ee.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",St.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ce==="shixun"&<===1)return St.createElement(St.Fragment,null,"\u8BFE\u5802\u5185\u6709",St.createElement("span",{className:ee.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",St.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ce==="shixun"&<===2)return St.createElement(St.Fragment,null,"\u8BFE\u5802\u5185\u6709",St.createElement("span",{className:ee.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",St.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ce==="subject"&<===1)return St.createElement(St.Fragment,null,"\u8BFE\u5802\u5185\u6709",St.createElement("span",{className:ee.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",St.createElement("span",{className:ee.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",St.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ce==="subject"&<===2)return St.createElement(St.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",St.createElement("span",{className:ee.orangeColor},se)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",St.createElement("span",{className:ee.orangeColor},Jt)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",St.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ce==="exercisepush")return St.createElement(St.Fragment,null,"\u8BFE\u5802\u5185\u6709",St.createElement("span",{className:ee.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",St.createElement("span",{className:ee.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",St.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(Ce==="shixunpush"&<===1)return St.createElement(St.Fragment,null,"\u8BFE\u5802\u5185\u6709",St.createElement("span",{className:ee.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",St.createElement("span",{className:ee.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",St.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ce==="shixunpush"&<===2)return St.createElement(St.Fragment,null,"\u8BFE\u5802\u5185\u6709",St.createElement("span",{className:ee.orangeColor},se),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",St.createElement("span",{className:ee.orangeColor},Jt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",St.createElement("span",{className:ee.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},He=()=>{if(Ce==="exercise"||Ce==="subject"||Ce==="exercisepush"||Ce==="shixunpush")return St.createElement("div",{style:{marginTop:20}},Pt>0&&St.createElement("div",null,St.createElement("span",{className:ee.flex},St.createElement("img",{src:ce,style:{width:14}}),St.createElement("span",{className:ee.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),St.createElement("div",{className:ee.statusbody},Ce==="exercise"&&St.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",St.createElement("span",{className:ee.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(Ce==="subject"||Ce==="exercisepush")&&St.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Me&&St.createElement("span",{className:ee.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Ce==="shixunpush"&&St.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Me&&St.createElement("span",{className:ee.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),St.createElement("div",null,vt==null?void 0:vt.map((De,tn)=>St.createElement("a",{href:`/shixuns/${De.identifier}/challenges`,target:"_blank"},"\u300A",De==null?void 0:De.name,"\u300B",tn+1!==Pt&&"\u3001"))))),ct>0&&St.createElement("div",{style:{marginTop:20}},St.createElement("span",{className:ee.flex},St.createElement("img",{src:he,style:{width:14}}),St.createElement("span",{className:ee.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),St.createElement("div",{className:ee.statusbody},Ce==="exercise"&&St.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(Ce==="subject"||Ce==="exercisepush")&&St.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Ce==="shixunpush"&&St.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),St.createElement("div",null,nt==null?void 0:nt.map((De,tn)=>St.createElement("a",{href:`/shixuns/${De.identifier}/challenges`,target:"_blank"},"\u300A",De==null?void 0:De.name,"\u300B",tn+1!==ct&&"\u3001"))))));if(Ce==="shixun")return St.createElement("div",{style:{marginTop:20}},ct>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return St.createElement(me.default,{open:bt,onCancel:()=>{et(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Me&&"none"}},zIndex:1003,confirmLoading:Ge,okText:Me?le:"\u6211\u77E5\u9053\u4E86",onOk:()=>fe(void 0,null,function*(){Me?yield je([...nt,...Dt]):et(!1)})},St.createElement("div",{style:{maxHeight:600,overflow:"auto"}},pe(),He()))}},69720:function(xn,$n,Rt){"use strict";Rt.d($n,{h:function(){return Pt}});var St=Rt(59301),ee=Rt(82326),me=Rt(28284),he=Rt(99571),ce=Rt(89780),fe=Rt.n(ce),ue=Rt(8336),Be=Rt(12469),Ce=Object.defineProperty,Bt=Object.defineProperties,je=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,et=(Dt,Vt,Ut)=>Vt in Dt?Ce(Dt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Dt[Vt]=Ut,nt=(Dt,Vt)=>{for(var Ut in Vt||(Vt={}))Ge.call(Vt,Ut)&&et(Dt,Ut,Vt[Ut]);if(le)for(var Ut of le(Vt))bt.call(Vt,Ut)&&et(Dt,Ut,Vt[Ut]);return Dt},ct=(Dt,Vt)=>Bt(Dt,je(Vt));const lt=ee.default.Option,pt={labelCol:{span:4},wrapperCol:{span:20}},vt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};$n.Z=({callback:Dt,onCancel:Vt})=>{const[Ut,se]=(0,St.useState)("python");function qt(Me){se(vt[Me][1])}function Jt(Me){Dt(Me)}return St.createElement(me.default,ct(nt({},pt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Jt,style:{width:500}}),St.createElement(me.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},St.createElement(ee.default,{getPopupContainer:Me=>Me.parentNode,onChange:qt},Object.keys(vt).map(Me=>St.createElement(lt,{key:Me,value:Me},vt[Me][0])))),St.createElement(me.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},St.createElement(Pt,{mode:Ut})),St.createElement("div",{className:"flex-container flex-end"},St.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),St.createElement(he.ZP,{type:"ghost",onClick:Vt},"\u53D6\u6D88")))};function Pt({value:Dt,onChange:Vt,mode:Ut,options:se={}}){const qt=(0,St.useRef)(),[Jt,Me]=(0,St.useState)();return(0,St.useEffect)(()=>{if(Jt){let pe=function(He){const De=He.getValue();Vt&&Vt(De)};return Jt.on("change",pe),()=>{Jt.off("change",pe)}}},[Jt,Vt]),(0,St.useEffect)(()=>{Jt&&Jt.setOption("mode",Ut)},[Jt,Ut]),(0,St.useEffect)(()=>{Jt&&(Dt!==Jt.getValue()||Dt==="")&&setTimeout(()=>{Jt.setValue(Dt||"")},300)},[Jt,Dt]),(0,St.useEffect)(()=>{if(qt.current&&!Jt){const pe=fe().fromTextArea(qt.current,nt({mode:Ut,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},se));Me(pe)}},[qt.current,Jt]),St.createElement("div",{className:"my-codemirror-container"},St.createElement("textarea",{ref:qt}))}},39793:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return Ui}});var St=Rt(59301),ee=Rt(89780),me=Rt.n(ee),he=Rt(76374),ce=Rt(8336),fe=Rt(6313),ue=Rt(25717),Be=Rt(99498),Ce=Rt(25419),Bt=Rt(67549),je=Rt(76902),le=({value:Te="",className:Ne,showTextOnly:we,showLines:Ye,style:di={}})=>{const ci=(0,St.useMemo)(()=>"",[Te]);return St.createElement(St.Fragment,null,St.createElement("div",{dangerouslySetInnerHTML:{__html:ci}}))},Ge=Object.defineProperty,bt=Object.defineProperties,et=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,pt=(Te,Ne,we)=>Ne in Te?Ge(Te,Ne,{enumerable:!0,configurable:!0,writable:!0,value:we}):Te[Ne]=we,vt=(Te,Ne)=>{for(var we in Ne||(Ne={}))ct.call(Ne,we)&&pt(Te,we,Ne[we]);if(nt)for(var we of nt(Ne))lt.call(Ne,we)&&pt(Te,we,Ne[we]);return Te},Pt=(Te,Ne)=>bt(Te,et(Ne));let Dt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Vt({onActionCallback:Te,title:Ne,icon:we,actionName:Ye,className:di="",children:ci}){function Yi(){Te(Ye)}return St.createElement("a",{title:Ne,className:di,onClick:Yi},St.createElement("i",{className:`${we}`}),ci)}var Ut=({watch:Te,showNullButton:Ne,showNullProgramButton:we,onActionCallback:Ye,fullScreen:di,insertTemp:ci,hidetoolBar:Yi,extraUse:Re})=>{const hn=[...Dt,{title:`${Te?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Te?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return St.createElement("ul",{className:"markdown-toolbar-container"},!Yi&&hn.map((xi,_i)=>St.createElement("li",{key:_i},xi.actionName?St.createElement(Vt,Pt(vt({},xi),{onActionCallback:Ye})):St.createElement("span",{className:"v-line"}))),Ne?St.createElement("li",null,St.createElement(Vt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ye},St.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,we?St.createElement(St.Fragment,null,St.createElement("li",null,St.createElement(Vt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ye},St.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),St.createElement("li",null,St.createElement(Vt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ye},St.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,ci&&St.createElement("li",null,St.createElement(Vt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ci}`,onActionCallback:Ye},St.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Re&&St.createElement("li",null,Re),St.createElement("li",{className:"btn-full-screen"},St.createElement(Vt,{icon:`${di?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:di?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ye})))},se=Rt(91558),qt=Rt(28284),Jt=Rt(37568),Me=Rt(99571),pe=Object.defineProperty,He=Object.defineProperties,De=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,pn=(Te,Ne,we)=>Ne in Te?pe(Te,Ne,{enumerable:!0,configurable:!0,writable:!0,value:we}):Te[Ne]=we,fn=(Te,Ne)=>{for(var we in Ne||(Ne={}))Fn.call(Ne,we)&&pn(Te,we,Ne[we]);if(tn)for(var we of tn(Ne))on.call(Ne,we)&&pn(Te,we,Ne[we]);return Te},te=(Te,Ne)=>He(Te,De(Ne));const Ot={labelCol:{span:4},wrapperCol:{span:20}};var Le=({callback:Te,onCancel:Ne})=>{function we(Ye){Te(Ye)}return St.createElement(qt.default,te(fn({},Ot),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:we,style:{width:500}}),St.createElement(qt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},St.createElement(Jt.default,null)),St.createElement(qt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},St.createElement(Jt.default,null)),St.createElement("div",{className:"flex-container flex-end"},St.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),St.createElement(Me.ZP,{type:"ghost",onClick:Ne},"\u53D6\u6D88")))},dn=Rt(69720),_e=Rt(17077),ve=Rt(62957),Xe=Rt(77019),ke=Rt(9507),cn=Rt(59301),Ie=({callback:Te,onCancel:Ne})=>{const we=document.createElement("canvas"),Ye=we.getContext("2d");we.width=1e3,we.height=800,Ye.fillStyle="#ffffff",Ye.fillRect(0,0,we.width,we.height);const di=we.toDataURL("image/png");return cn.createElement(ve.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},cn.createElement(Xe.Z,{style:{height:"100vh"}},cn.createElement(ke.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:di,visible:!0,title:String(Date.now())},onOk:ci=>{Te({src:ci.url})},onClose:Ne})))},ae=Rt(12378);function Pe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Pe,go.CommandHandler),Pe.prototype.canAlignSelection=function(){var Te=this.diagram;return!(Te===null||Te.isReadOnly||Te.isModelReadOnly||Te.selection.count<2)},Pe.prototype.alignLeft=function(){var Te=this.diagram;Te.startTransaction("aligning left");var Ne=1/0;Te.selection.each(function(we){we instanceof go.Link||(Ne=Math.min(we.position.x,Ne))}),Te.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(Ne,we.position.y))}),Te.commitTransaction("aligning left")},Pe.prototype.alignRight=function(){var Te=this.diagram;Te.startTransaction("aligning right");var Ne=-1/0;Te.selection.each(function(we){if(!(we instanceof go.Link)){var Ye=we.actualBounds.x+we.actualBounds.width;Ne=Math.max(Ye,Ne)}}),Te.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(Ne-we.actualBounds.width,we.position.y))}),Te.commitTransaction("aligning right")},Pe.prototype.alignTop=function(){var Te=this.diagram;Te.startTransaction("alignTop");var Ne=1/0;Te.selection.each(function(we){we instanceof go.Link||(Ne=Math.min(we.position.y,Ne))}),Te.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(we.position.x,Ne))}),Te.commitTransaction("alignTop")},Pe.prototype.alignBottom=function(){var Te=this.diagram;Te.startTransaction("aligning bottom");var Ne=-1/0;Te.selection.each(function(we){if(!(we instanceof go.Link)){var Ye=we.actualBounds.y+we.actualBounds.height;Ne=Math.max(Ye,Ne)}}),Te.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(we.actualBounds.x,Ne-we.actualBounds.height))}),Te.commitTransaction("aligning bottom")},Pe.prototype.alignCenterX=function(){var Te=this.diagram,Ne=Te.selection.first();if(Ne){Te.startTransaction("aligning Center X");var we=Ne.actualBounds.x+Ne.actualBounds.width/2;Te.selection.each(function(Ye){Ye instanceof go.Link||Ye.move(new go.Point(we-Ye.actualBounds.width/2,Ye.actualBounds.y))}),Te.commitTransaction("aligning Center X")}},Pe.prototype.alignCenterY=function(){var Te=this.diagram,Ne=Te.selection.first();if(Ne){Te.startTransaction("aligning Center Y");var we=Ne.actualBounds.y+Ne.actualBounds.height/2;Te.selection.each(function(Ye){Ye instanceof go.Link||Ye.move(new go.Point(Ye.actualBounds.x,we-Ye.actualBounds.height/2))}),Te.commitTransaction("aligning Center Y")}},Pe.prototype.alignColumn=function(Te){var Ne=this.diagram;Ne.startTransaction("align Column"),Te===void 0&&(Te=0),Te=parseFloat(Te);var we=new Array;Ne.selection.each(function(Re){Re instanceof go.Link||we.push(Re)});for(var Ye=0;Ye<we.length-1;Ye++){var di=we[Ye],ci=di.actualBounds.y+di.actualBounds.height+Te,Yi=we[Ye+1];Yi.move(new go.Point(di.actualBounds.x,ci))}Ne.commitTransaction("align Column")},Pe.prototype.alignRow=function(Te){Te===void 0&&(Te=0),Te=parseFloat(Te);var Ne=this.diagram;Ne.startTransaction("align Row");var we=new Array;Ne.selection.each(function(Re){Re instanceof go.Link||we.push(Re)});for(var Ye=0;Ye<we.length-1;Ye++){var di=we[Ye],ci=di.actualBounds.x+di.actualBounds.width+Te,Yi=we[Ye+1];Yi.move(new go.Point(ci,di.actualBounds.y))}Ne.commitTransaction("align Row")},Pe.prototype.canRotate=function(Te){var Ne=this.diagram;return!(Ne===null||Ne.isReadOnly||Ne.isModelReadOnly||Ne.selection.count<1)},Pe.prototype.rotate=function(Te){Te===void 0&&(Te=90);var Ne=this.diagram;Ne.startTransaction("rotate "+Te.toString());var Ne=this.diagram;Ne.selection.each(function(we){we instanceof go.Link||we instanceof go.Group||(we.angle+=Te)}),Ne.commitTransaction("rotate "+Te.toString())},Pe.prototype.pullToFront=function(){var Te=this.diagram;Te.startTransaction("pullToFront");var Ne=new go.Map;Te.selection.each(function(we){Ne.set(we.layer,0)}),Ne.iteratorKeys.each(function(we){var Ye=0;we.parts.each(function(di){if(!di.isSelected){var ci=di.zOrder;isNaN(ci)?di.zOrder=0:Ye=Math.max(Ye,ci)}}),Ne.set(we,Ye)}),Te.selection.each(function(we){Pe._assignZOrder(we,Ne.get(we.layer)+1)}),Te.commitTransaction("pullToFront")},Pe.prototype.pushToBack=function(){var Te=this.diagram;Te.startTransaction("pushToBack");var Ne=new go.Map;Te.selection.each(function(we){Ne.set(we.layer,0)}),Ne.iteratorKeys.each(function(we){var Ye=0;we.parts.each(function(di){if(!di.isSelected){var ci=di.zOrder;isNaN(ci)?di.zOrder=0:Ye=Math.min(Ye,ci)}}),Ne.set(we,Ye)}),Te.selection.each(function(we){Pe._assignZOrder(we,Ne.get(we.layer)-1-Pe._findGroupDepth(we))}),Te.commitTransaction("pushToBack")},Pe._assignZOrder=function(Te,Ne,we){we===void 0&&(we=Te),Te.layer===we.layer&&(Te.zOrder=Ne),Te instanceof go.Group&&Te.memberParts.each(function(Ye){Pe._assignZOrder(Ye,Ne+1,we)})},Pe._findGroupDepth=function(Te){if(Te instanceof go.Group){var Ne=0;return Te.memberParts.each(function(we){Ne=Math.max(Ne,Pe._findGroupDepth(we))}),Ne+1}else return 0},Pe.prototype.doKeyDown=function(){var Te=this.diagram;if(Te!==null){var Ne=Te.lastInput;if(Ne.key==="Up"||Ne.key==="Down"||Ne.key==="Left"||Ne.key==="Right"){var we=this.arrowKeyBehavior;if(we==="none")return;if(we==="select"){this._arrowKeySelect();return}else if(we==="move"){this._arrowKeyMove();return}else if(we==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Pe.prototype._getAllParts=function(){var Te=new Array;return this.diagram.nodes.each(function(Ne){Te.push(Ne)}),this.diagram.parts.each(function(Ne){Te.push(Ne)}),Te},Pe.prototype._arrowKeyMove=function(){var Te=this.diagram,Ne=Te.lastInput,we=0,Ye=0;if(Ne.control||Ne.meta)we=1,Ye=1;else if(Te.grid!==null){var di=Te.grid.gridCellSize;Ye=di.width,we=di.height}Te.startTransaction("arrowKeyMove"),Te.selection.each(function(ci){Ne.key==="Up"?ci.move(new go.Point(ci.actualBounds.x,ci.actualBounds.y-we)):Ne.key==="Down"?ci.move(new go.Point(ci.actualBounds.x,ci.actualBounds.y+we)):Ne.key==="Left"?ci.move(new go.Point(ci.actualBounds.x-Ye,ci.actualBounds.y)):Ne.key==="Right"&&ci.move(new go.Point(ci.actualBounds.x+Ye,ci.actualBounds.y))}),Te.commitTransaction("arrowKeyMove")},Pe.prototype._arrowKeySelect=function(){var Te=this.diagram,Ne=Te.lastInput,we=null;Ne.key==="Up"?we=this._findNearestPartTowards(270):Ne.key==="Down"?we=this._findNearestPartTowards(90):Ne.key==="Left"?we=this._findNearestPartTowards(180):Ne.key==="Right"&&(we=this._findNearestPartTowards(0)),we!==null&&(Ne.shift?we.isSelected=!0:Ne.control||Ne.meta?we.isSelected=!we.isSelected:Te.select(we))},Pe.prototype._findNearestPartTowards=function(Te){var Ne=this.diagram.selection.first();if(Ne===null)return null;for(var we=Ne.actualBounds.center,Ye=this._getAllParts(),di=1/0,ci=Ne,Yi=0;Yi<Ye.length;Yi++){var Re=Ye[Yi];if(Re!==Ne&&Re.canSelect()){var hn=Re.actualBounds.center,xi=we.directionPoint(hn),_i=this._angleCloseness(xi,Te);if(_i<=45){var Pn=we.distanceSquaredPoint(hn);Pn*=1+Math.sin(_i*Math.PI/180),Pn<di&&(di=Pn,ci=Re)}}}return ci},Pe.prototype._angleCloseness=function(Te,Ne){return Math.min(Math.abs(Ne-Te),Math.min(Math.abs(Ne+360-Te),Math.abs(Ne-360-Te)))},Pe.prototype._arrowKeyTree=function(){var Te=this.diagram,Ne=Te.selection.first();if(Ne instanceof go.Node){var we=Te.lastInput;if(we.key==="Right"){if(!Ne.isTreeLeaf)if(!Ne.isTreeExpanded)Te.commandHandler.canExpandTree(Ne)&&Te.commandHandler.expandTree(Ne);else{var Ye=this._sortTreeChildrenByY(Ne).first();Ye!==null&&Te.select(Ye)}}else if(we.key==="Left")if(!Ne.isTreeLeaf&&Ne.isTreeExpanded)Te.commandHandler.canCollapseTree(Ne)&&Te.commandHandler.collapseTree(Ne);else{var di=Ne.findTreeParentNode();di!==null&&Te.select(di)}else if(we.key==="Up"){var di=Ne.findTreeParentNode();if(di!==null){var ci=this._sortTreeChildrenByY(di),Yi=ci.indexOf(Ne);if(Yi>0){for(var Re=ci.elt(Yi-1);Re!==null&&Re.isTreeExpanded&&!Re.isTreeLeaf;){var hn=this._sortTreeChildrenByY(Re);Re=hn.last()}Re!==null&&Te.select(Re)}else Te.select(di)}}else if(we.key==="Down")if(Ne.isTreeExpanded&&!Ne.isTreeLeaf){var Ye=this._sortTreeChildrenByY(Ne).first();Ye!==null&&Te.select(Ye)}else for(;Ne!==null;){var di=Ne.findTreeParentNode();if(di===null)break;var ci=this._sortTreeChildrenByY(di),Yi=ci.indexOf(Ne);if(Yi<ci.length-1){Te.select(ci.elt(Yi+1));break}else Ne=di}var xi=Te.selection.first();xi!==null&&Te.scrollToRect(xi.actualBounds)}},Pe.prototype._sortTreeChildrenByY=function(Te){var Ne=new go.List().addAll(Te.findTreeChildrenNodes());return Ne.sort(function(we,Ye){var di=we.location,ci=Ye.location;return di.y<ci.y?-1:di.y>ci.y?1:di.x<ci.x?-1:di.x>ci.x?1:0}),Ne},Pe.prototype.copyToClipboard=function(Te){go.CommandHandler.prototype.copyToClipboard.call(this,Te),this._lastPasteOffset.set(this.pasteOffset)},Pe.prototype.pasteFromClipboard=function(){var Te=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Te,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Te},Object.defineProperty(Pe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Te){if(Te!=="move"&&Te!=="select"&&Te!=="scroll"&&Te!=="tree"&&Te!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Te);this._arrowKeyBehavior=Te}}),Object.defineProperty(Pe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Te){if(!(Te instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Te);this._pasteOffset.set(Te)}});var sn=Pe,an=Rt(63720),Tt=Rt(5269),Ct=Rt(38986),xt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},kt=Rt(48790),zt=Rt(59301),Et=(Te,Ne,we)=>new Promise((Ye,di)=>{var ci=hn=>{try{Re(we.next(hn))}catch(xi){di(xi)}},Yi=hn=>{try{Re(we.throw(hn))}catch(xi){di(xi)}},Re=hn=>hn.done?Ye(hn.value):Promise.resolve(hn.value).then(ci,Yi);Re((we=we.apply(Te,Ne)).next())});function Ae({onCancel:Te,callback:Ne}){let we=(0,St.useRef)(),Ye=(0,St.useRef)(),di=(0,St.useRef)(),ci=(0,St.useRef)(!1);const Yi=(0,St.useRef)(!1),[Re,hn]=(0,St.useState)(0);function xi(){const Pn=ae.bx.make,Xt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};we.current=new ae.S0(Ye.current,{padding:20,grid:Pn(ae.s_,"Grid",Pn(ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pn(ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ee=>{var Mi=Ee.diagram.commandHandler.addTopLevelParts(Ee.diagram.selection,!0);Mi||Ee.diagram.currentTool.doCancel()},commandHandler:Pn(sn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ee=>{var Mi=Ee.subject;Mi.location=Mi.location.copy().snapToGridPoint(Ee.diagram.grid.gridOrigin,Ee.diagram.grid.gridCellSize),setTimeout(()=>{Ee.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ee=>{var Mi=Ee.subject;setTimeout(()=>{Ee.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ee=>{var Mi=Ee.parameter.part;Mi.invalidateConnectedLinks();var fr=Ee.subject;Ee.diagram.toolManager.linkingTool.isForwards?fr.toNode.invalidateConnectedLinks():fr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),we.current.nodeTemplate=Pn(ae.NB,"Auto",{locationSpot:ae.z6.Center,locationObjectName:"SHAPE",desiredSize:new ae.$u(120,60),minSize:new ae.$u(40,40),resizable:!0,resizeCellSize:new ae.$u(10,10),rotatable:!0},new ae.KX("location","loc",ae.E9.parse).makeTwoWay(ae.E9.stringify),new ae.KX("desiredSize","size",ae.$u.parse).makeTwoWay(ae.$u.stringify),Pn(ae.bn,{name:"SHAPE",fill:Xt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ae.z6.AllSides,toSpot:ae.z6.AllSides},new ae.KX("figure"),new ae.KX("fill"),new ae.KX("stroke","borderColor"),new ae.KX("strokeWidth","thickness"),new ae.KX("strokeDashArray","dash")),Pn(ae.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Pn(ae.al,{margin:1,textAlign:"center",overflow:ae.al.OverflowEllipsis,editable:!0},new ae.KX("text").makeTwoWay(),new ae.KX("stroke","color"))),we.current.nodeTemplate.toolTip=Pn("ToolTip",Pn(ae.s_,"Vertical",{maxSize:new ae.$u(200,NaN)},Pn(ae.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ae.KX("text")),Pn(ae.al,{font:"10pt sans-serif",textAlign:"center"},new ae.KX("text","details"))));function ye(Ee,Mi){var fr=(fi,Ir)=>{fi.handled=!0,fi.diagram.model.commit(Fr=>{var Nr=Ir.part.adornedPart,wr=new ae.E9().setRectSpot(Nr.actualBounds,Ee);wr.subtract(Nr.location),wr.scale(2,2),wr.x+=Math.sign(wr.x)*130,wr.y+=Math.sign(wr.y)*130,wr.add(Nr.location),wr.snapToGridPoint(fi.diagram.grid.gridOrigin,fi.diagram.grid.gridCellSize);var br=Fr.copyNodeData(Nr.data);Fr.setGroupKeyForNodeData(br,Fr.getGroupKeyForNodeData(Nr.data)),Fr.addNodeData(br);var Jr={from:Nr.key,to:Fr.getKeyForNodeData(br)};Fr.addLinkData(Jr);var rn=fi.diagram.findNodeForData(br);rn.location=wr,fi.diagram.select(rn),setTimeout(()=>{fi.diagram.commandHandler.editTextBlock()},20)})};return Pn(ae.bn,{figure:Mi,alignment:Ee,alignmentFocus:Ee.opposite(),width:Ee.equals(ae.z6.Top)||Ee.equals(ae.z6.Bottom)?25:18,height:Ee.equals(ae.z6.Top)||Ee.equals(ae.z6.Bottom)?18:25,fill:"orange",stroke:Xt.white,strokeWidth:4,mouseEnter:(fi,Ir)=>Ir.fill="dodgerblue",mouseLeave:(fi,Ir)=>Ir.fill="orange",isActionable:!0,click:fr,contextClick:fr})}function Mn(Ee){return Pn(ae.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Mi,fr)=>fr.fill="dodgerblue",mouseLeave:(Mi,fr)=>fr.fill="orange",click:(Mi,fr)=>{Mi.diagram.commandHandler.showContextMenu(fr.part.adornedPart)}},Ee||{})}we.current.nodeTemplate.selectionAdornmentTemplate=Pn(ae.uz,"Spot",Pn(ae.Vm,{padding:10}),ye(ae.z6.Top,"TriangleUp"),ye(ae.z6.Left,"TriangleLeft"),ye(ae.z6.Right,"TriangleRight"),ye(ae.z6.Bottom,"TriangleDown"),Mn({alignment:new ae.z6(.75,0)}));function wn(Ee,Mi){return(fr,fi)=>{fr.handled=!0,fr.diagram.model.commit(Ir=>{Ir.set(fi.part.adornedPart.data,Ee,Mi)})}}function be(Ee,Mi){return Mi||(Mi="color"),Pn(ae.bn,{width:16,height:16,stroke:"lightgray",fill:Ee,margin:1,background:"transparent",mouseEnter:(fr,fi)=>fi.stroke="dodgerblue",mouseLeave:(fr,fi)=>fi.stroke="lightgray",click:wn(Mi,Ee),contextClick:wn(Mi,Ee)})}function Ln(){return[Pn("ContextMenuButton",Pn(ae.s_,"Horizontal",be(Xt.white,"fill"),be(Xt.beige,"fill"),be(Xt.extralightblue,"fill"),be(Xt.extralightred,"fill"))),Pn("ContextMenuButton",Pn(ae.s_,"Horizontal",be(Xt.lightgray,"fill"),be(Xt.lightgreen,"fill"),be(Xt.lightblue,"fill"),be(Xt.lightred,"fill")))]}function Ni(){return[Pn("ContextMenuButton",Pn(ae.s_,"Horizontal",be(Xt.black),be(Xt.green),be(Xt.blue),be(Xt.red))),Pn("ContextMenuButton",Pn(ae.s_,"Horizontal",be(Xt.white),be(Xt.magenta),be(Xt.purple),be(Xt.orange)))]}function ji(Ee,Mi){return Mi||(Mi="thickness"),Pn(ae.bn,"LineH",{width:16,height:16,strokeWidth:Ee,margin:1,background:"transparent",mouseEnter:(fr,fi)=>fi.background="dodgerblue",mouseLeave:(fr,fi)=>fi.background="transparent",click:wn(Mi,Ee),contextClick:wn(Mi,Ee)})}function Qi(Ee,Mi){return Mi||(Mi="dash"),Pn(ae.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ee,margin:1,background:"transparent",mouseEnter:(fr,fi)=>fi.background="dodgerblue",mouseLeave:(fr,fi)=>fi.background="transparent",click:wn(Mi,Ee),contextClick:wn(Mi,Ee)})}function On(){return[Pn("ContextMenuButton",Pn(ae.s_,"Horizontal",ji(1),ji(2),ji(3),ji(4))),Pn("ContextMenuButton",Pn(ae.s_,"Horizontal",Qi(null),Qi([2,4]),Qi([4,4])))]}function Bn(Ee,Mi){return Mi||(Mi="figure"),Pn(ae.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ee,margin:1,background:"transparent",mouseEnter:(fr,fi)=>fi.fill="dodgerblue",mouseLeave:(fr,fi)=>fi.fill="lightgray",click:wn(Mi,Ee),contextClick:wn(Mi,Ee)})}we.current.nodeTemplate.contextMenu=Pn("ContextMenu",Pn("ContextMenuButton",Pn(ae.s_,"Horizontal",Bn("Rectangle"),Bn("RoundedRectangle"),Bn("Ellipse"),Bn("Diamond"))),Pn("ContextMenuButton",Pn(ae.s_,"Horizontal",Bn("Parallelogram2"),Bn("ManualOperation"),Bn("Procedure"),Bn("Cylinder1"))),Pn("ContextMenuButton",Pn(ae.s_,"Horizontal",Bn("Terminator"),Bn("CreateRequest"),Bn("Document"),Bn("TriangleDown"))),Ln(),Ni(),On()),we.current.groupTemplate=Pn(ae.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ae.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ee,Mi)=>{var fr=Mi.addMembers(Mi.diagram.selection,!0);fr||Mi.diagram.currentTool.doCancel()},avoidable:!1},new ae.KX("location","loc",ae.E9.parse).makeTwoWay(ae.E9.stringify),Pn(ae.s_,"Auto",{name:"BODY"},Pn(ae.bn,{parameter1:10,fill:Xt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ae.z6.AllSides,toSpot:ae.z6.AllSides},new ae.KX("fill"),new ae.KX("stroke","color"),new ae.KX("strokeWidth","thickness"),new ae.KX("strokeDashArray","dash")),Pn(ae.Vm,{background:"transparent",margin:20})),Pn(ae.al,{alignment:ae.z6.Top,alignmentFocus:ae.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ae.KX("text"),new ae.KX("stroke","color"))),we.current.groupTemplate.selectionAdornmentTemplate=Pn(ae.uz,"Spot",Pn(ae.s_,"Auto",Pn(ae.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Pn(ae.Vm,{margin:1.5})),Mn({alignment:ae.z6.TopRight,alignmentFocus:ae.z6.BottomRight})),we.current.groupTemplate.contextMenu=Pn("ContextMenu",Ln(),Ni(),On()),we.current.linkTemplate=Pn(ae.rU,{layerName:"Foreground",routing:ae.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ae.KX("fromSpot","fromSpot",ae.z6.parse),new ae.KX("toSpot","toSpot",ae.z6.parse),new ae.KX("fromShortLength","dir",Ee=>Ee>=1?10:0),new ae.KX("toShortLength","dir",Ee=>Ee>=1?10:0),new ae.KX("points").makeTwoWay(),Pn(ae.bn,{strokeWidth:2},new ae.KX("stroke","color"),new ae.KX("strokeWidth","thickness"),new ae.KX("strokeDashArray","dash")),Pn(ae.bn,{segmentIndex:0,segmentOffset:new ae.E9(15,0),segmentOrientation:ae.rU.OrientAlong,alignmentFocus:ae.z6.Right,figure:"circle",width:10,strokeWidth:0},new ae.KX("fill","color"),new ae.KX("visible","dir",Ee=>Ee===1)),Pn(ae.bn,{segmentIndex:-1,segmentOffset:new ae.E9(-10,6),segmentOrientation:ae.rU.OrientPlus90,alignmentFocus:ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ae.KX("fill","color"),new ae.KX("visible","dir",Ee=>Ee>=1),new ae.KX("width","thickness",Ee=>7+3*Ee),new ae.KX("height","thickness",Ee=>7+3*Ee),new ae.KX("segmentOffset","thickness",Ee=>new ae.E9(-15,4+1.5*Ee))),Pn(ae.bn,{segmentIndex:0,segmentOffset:new ae.E9(15,-6),segmentOrientation:ae.rU.OrientMinus90,alignmentFocus:ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ae.KX("fill","color"),new ae.KX("visible","dir",Ee=>Ee===2),new ae.KX("width","thickness",Ee=>7+3*Ee),new ae.KX("height","thickness",Ee=>7+3*Ee),new ae.KX("segmentOffset","thickness",Ee=>new ae.E9(-15,4+1.5*Ee))),Pn(ae.al,{alignmentFocus:new ae.z6(0,1,-4,0),editable:!0},new ae.KX("text").makeTwoWay(),new ae.KX("stroke","color"))),we.current.linkTemplate.selectionAdornmentTemplate=Pn(ae.uz,Pn(ae.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Kn(2)},new ae.KX("pathPattern","thickness",Kn)),Mn({alignmentFocus:new ae.z6(0,0,-6,-4)}));function Kn(Ee){return Pn(ae.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ee+4).toString()+" H3"})}function or(Ee){var Mi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ee===0?Mi="M0 0 M16 16 M0 8 L16 8":Ee===2&&(Mi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Pn(ae.bn,{geometryString:Mi,margin:2,background:"transparent",mouseEnter:(fr,fi)=>fi.background="dodgerblue",mouseLeave:(fr,fi)=>fi.background="transparent",click:wn("dir",Ee),contextClick:wn("dir",Ee)})}function Hi(Ee){var Mi=(fr,fi)=>{fr.handled=!0,fr.diagram.model.commit(Ir=>{var Fr=fi.part.adornedPart;Ir.set(Fr.data,Ee?"toSpot":"fromSpot",ae.z6.stringify(ae.z6.AllSides)),(Ee?Fr.toNode:Fr.fromNode).invalidateConnectedLinks()})};return Pn(ae.bn,{width:12,height:12,fill:"transparent",mouseEnter:(fr,fi)=>fi.background="dodgerblue",mouseLeave:(fr,fi)=>fi.background="transparent",click:Mi,contextClick:Mi})}function vn(Ee,Mi){var fr=0,fi=ae.z6.RightSide;Ee.equals(ae.z6.Top)?(fr=270,fi=ae.z6.TopSide):Ee.equals(ae.z6.Left)?(fr=180,fi=ae.z6.LeftSide):Ee.equals(ae.z6.Bottom)&&(fr=90,fi=ae.z6.BottomSide),Mi||(fr-=180);var Ir=(Fr,Nr)=>{Fr.handled=!0,Fr.diagram.model.commit(wr=>{var br=Nr.part.adornedPart;wr.set(br.data,Mi?"toSpot":"fromSpot",ae.z6.stringify(fi)),(Mi?br.toNode:br.fromNode).invalidateConnectedLinks()})};return Pn(ae.bn,{alignment:Ee,alignmentFocus:Ee.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:fr,background:"transparent",mouseEnter:(Fr,Nr)=>Nr.background="dodgerblue",mouseLeave:(Fr,Nr)=>Nr.background="transparent",click:Ir,contextClick:Ir})}we.current.linkTemplate.contextMenu=Pn("ContextMenu",Ni(),On(),Pn("ContextMenuButton",Pn(ae.s_,"Horizontal",or(0),or(1),or(2))),Pn("ContextMenuButton",Pn(ae.s_,"Horizontal",Pn(ae.s_,"Spot",Hi(!1),vn(ae.z6.Top,!1),vn(ae.z6.Left,!1),vn(ae.z6.Right,!1),vn(ae.z6.Bottom,!1)),Pn(ae.s_,"Spot",{margin:new ae.Zt(0,0,0,2)},Hi(!0),vn(ae.z6.Top,!0),vn(ae.z6.Left,!0),vn(ae.z6.Right,!0),vn(ae.z6.Bottom,!0)))));const si=`{ "class": "GraphLinksModel",
|
|
"nodeDataArray": [
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
],
|
|
"linkDataArray": [
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
]}`;var Tr=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Rr(Ee){return console.log("shapeName:",Ee),Tr.indexOf(Ee)>=0}var No=new ae.YI(di.current,{maxSelectionCount:1,linkTemplate:Pn(ae.rU,{locationSpot:ae.z6.Center,selectionAdornmentTemplate:Pn(ae.uz,"Link",{locationSpot:ae.z6.Center},Pn(ae.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Pn(ae.bn,{toArrow:"Standard",stroke:null}))},{routing:ae.rU.AvoidsNodes,curve:ae.rU.JumpOver,corner:5,toShortLength:4},new ae.KX("points"),Pn(ae.bn,{isPanelMain:!0,strokeWidth:2}),Pn(ae.bn,{toArrow:"Standard",stroke:null})),model:new ae.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ae.bn.getFigureGenerators().toArray().map(Ee=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ee.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return we.current.addDiagramListener("TextEdited",function(Ee){var Mi;const fr=Ee.subject.part;var fi=(Mi=document.activeElement)==null?void 0:Mi.value;typeof fi=="string"&&fi.trim()===""&&we.current.model.commit(function(Ir){Ir.set(fr.data,"text","\u672A\u547D\u540D"),we.current.commandHandler.stopCommand()},"increment")}),No.nodeTemplate=Pn(ae.NB,"Auto",{locationSpot:ae.z6.Center},new ae.KX("location","location",ae.E9.parse).makeTwoWay(ae.E9.stringify),Pn(ae.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new ae.KX("stroke").makeTwoWay(),new ae.KX("fill").makeTwoWay(),new ae.KX("figure")),Pn(ae.al,{margin:new ae.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ae.$u(16,16),maxSize:new ae.$u(10,NaN),textAlign:"center",editable:!0},new ae.KX("key").makeTwoWay())),setTimeout(()=>{we.current.grid=Pn(ae.s_,"Grid",Pn(ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pn(ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),we.current.grid.visible=!0,we.current.grid.gridCellStroke="darkgray",we.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=we.current,we.current}const _i=()=>Et(this,null,function*(){var Pn,Xt=we.current.makeImage();const ye=yield(0,Ct.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Xt.src,file_data:JSON.stringify({login:(Pn=(0,kt.eY)())==null?void 0:Pn.login,data:JSON.parse(we.current.model.toJson())})}});Ne({src:ye.url})});return(0,St.useEffect)(()=>(setTimeout(()=>{xi()},500),hn(Re+1),()=>{we.current=null}),[]),zt.createElement("div",{ref:Yi,className:"body-overflow-initial"},zt.createElement(ve.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Re,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:zt.createElement(Xe.Z,null,zt.createElement(Tt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),zt.createElement(Tt.Z,{onClick:()=>{var Pn,Xt,ye=we.current.selection.first();if(ci.current=!ci.current,document.activeElement&&ye){let Mn=(Xt=(Pn=document.activeElement)==null?void 0:Pn.value)==null?void 0:Xt.trim();typeof Mn=="string"&&we.current.model.commit(function(wn){wn.set(ye.data,"text",Mn||"\u672A\u547D\u540D"),we.current.commandHandler.stopCommand()},"increment")}hn(Re+1)}},zt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Te},zt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:ci.current?"none":"block"},className:xt.flowChartWrp},zt.createElement("div",{style:{display:"flex",height:"100%"}},zt.createElement("div",{style:{width:"300px",height:"100%"}},zt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),zt.createElement("div",{style:{height:"calc(100% - 50px)"},className:xt.myPaletteDiv,ref:di})),zt.createElement("div",{style:{flex:1,position:"relative"}},zt.createElement("div",{ref:Ye,style:{height:"80vh"}}))),zt.createElement("div",{className:"tr"},zt.createElement(Me.ZP,{size:"large",onClick:_i,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var We=Ae,Ue=Rt(47889),jn=Rt(71051);const Gn=Ue.ZP.Group,Ke={margin:"0 8px"};var ri=({callback:Te,onCancel:Ne})=>{function we(Ye){Te(Ye)}return St.createElement(qt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:we},St.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},St.createElement("span",{style:Ke},"\u5355\u5143\u683C\u6570\uFF1A"),St.createElement("span",{style:Ke},"\u884C\u6570"),St.createElement(qt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},St.createElement(jn.Z,null)),St.createElement("span",{style:Ke},"\u5217\u6570"),St.createElement(qt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},St.createElement(jn.Z,null))),St.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},St.createElement("span",{style:Ke},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),St.createElement(qt.default.Item,{name:"align"},St.createElement(Gn,null,St.createElement(Ue.ZP,{value:"default"},St.createElement("i",{className:"fa fa-align-justify"})),St.createElement(Ue.ZP,{value:"left"},St.createElement("i",{className:"fa fa-align-left"})),St.createElement(Ue.ZP,{value:"center"},St.createElement("i",{className:"fa fa-align-center"})),St.createElement(Ue.ZP,{value:"right"},St.createElement("i",{className:"fa fa-align-right"}))))),St.createElement("div",{className:"flex-container flex-end"},St.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),St.createElement(Me.ZP,{type:"ghost",onClick:Ne},"\u53D6\u6D88")))},Sn=Rt(71411),hi=Rt(43001),ti=Rt.n(hi),bi=(0,St.forwardRef)(({use3d:Te,width:Ne,height:we,callback:Ye,showSaveButton:di},ci)=>{const Yi=(0,St.useRef)(),Re=(0,St.useRef)(),[hn,xi]=(0,St.useState)(!1),_i=(0,St.useRef)({id:Yi,appName:"graphing",width:Ne||1e3,height:we||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,St.useEffect)(()=>{Re.current=new(ti())(_i.current,!0),window.onload=function(){Re.current.inject("applet_container")}},[]);const Pn=()=>{var Xt=window.ggbApplet.getPNGBase64(1,!0,72);return Ye&&Ye(Xt),Xt};return(0,St.useEffect)(()=>{_i.current.appName=hn?"3D":"graphing",Re.current.inject("applet_container")},[hn]),(0,St.useEffect)(()=>{xi(Te)},[Te]),(0,St.useImperativeHandle)(ci,()=>({getImgData:Pn})),St.createElement(St.Fragment,null,St.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Yi}),St.createElement(Xe.Z,{align:"middle"},St.createElement(Tt.Z,{flex:1},St.createElement(Sn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:hn,onChange:Xt=>xi(Xt)})),St.createElement(Tt.Z,null,St.createElement(Me.ZP,{size:"large",onClick:Pn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ei=Rt(76562),Pi=Rt(6767);const An="link",ei="upload-image",gr="add-flowchart",dr="draw-image",Sr="add-flowchart",_r="code-block",cr="add-table",jo="------------",Yo={default:jo,left:`:${jo}`,center:`:${jo}:`,right:`${jo}:`};var ko=Rt(37808);function $o(){}let ms=0;const Ho=1e4,Go="\u2581",nr="@\u2581\u2581@",lo="@\u2581@",Lt=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Rn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ii(Te){return/^\d+$/.test(Te)?`${Te}px`:Te}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Cn={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},gi={[An]:"\u6DFB\u52A0\u94FE\u63A5",[_r]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ei]:"\u6DFB\u52A0\u56FE\u7247",[dr]:"\u6DFB\u52A0\u753B\u56FE",[gr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[cr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ui=({defaultValue:Te="",onChange:Ne,width:we="100%",height:Ye=400,miniToolbar:di=!1,isFocus:ci=!1,watch:Yi,insertTemp:Re,mode:hn="markdown",id:xi="markdown-editor-id",showResizeBar:_i=!1,noStorage:Pn=!1,showNullButton:Xt=!1,showNullProgramButton:ye=!1,hidetoolBar:Mn=!1,fullScreen:wn=!1,onBlur:be,onCMBeforeChange:Ln,onFullScreen:Ni,className:ji="",disablePaste:Qi=!1,disabled:On=!1,disabledFill:Bn=!1,placeholder:Kn="",values:or="",extraUse:Hi})=>{const[vn,si]=(0,St.useState)(null),[Tr,Rr]=(0,St.useState)(Te),[No,Ee]=(0,St.useState)(Yi),[Mi,fr]=(0,St.useState)(wn),[fi,Ir]=(0,St.useState)(""),[Fr,Nr]=(0,St.useState)(0),[wr,br]=(0,St.useState)(Ye),[Jr,rn]=(0,St.useState)(!1),[fo,en]=(0,St.useState)(0),[zr,Uo]=(0,St.useState)(0),no=(0,St.useRef)(),Zo=(0,St.useRef)(),Or=(0,St.useRef)(),$i=(0,St.useRef)();(0,St.useEffect)(()=>{const Di=window.scrollY||window.pageYOffset;Rr(or),vn==null||vn.setValue(or),window.scrollTo(0,Di)},[or]),(0,St.useEffect)(()=>{Ni==null||Ni(Mi)},[Mi]),(0,St.useEffect)(()=>{if(no.current){let Di=function(re,Yt){var de;if(Qi){Yt.preventDefault();return}const ge=Yt.clipboardData;if(ge){const Oe=ge.types.toString(),ze=ge.items;if(Oe==="Files"||ge.types.indexOf("Files")>-1){if(Yt.preventDefault(),hn=="stex")return;try{let Je=ze[1];((de=ze[0])==null?void 0:de.kind)==="file"&&(Je=ze[0]);const kn=Je.getAsFile(),Dn=kn.name.split(".").pop();(0,_e.I)(kn,$e=>{var Zn,qn,oe;$e.id?((Zn=kn==null?void 0:kn.type)==null?void 0:Zn.indexOf("image"))>-1?Ft.replaceSelection(`<img width="100%" src="/api/attachments/${$e.id}?type=${$e.content_type})" alt="" />`):((qn=kn==null?void 0:kn.type)==null?void 0:qn.indexOf("video"))>-1?Ft.replaceSelection(`<video width="100%" controls src="/api/attachments/${$e.id}"></video>`):((oe=kn==null?void 0:kn.type)==null?void 0:oe.indexOf("pdf"))>-1?Ft.replaceSelection(`<a href="/api/attachments/${$e.id}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):Rn.includes(Dn)?Ft.replaceSelection(`<a href="/api/attachments/${$e.id}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):Ft.replaceSelection(`[${kn.name}](/api/attachments/${$e.id}?type=${$e.content_type})`):($e==null?void 0:$e.status)===401&&(document.location.href="/user/login")})}catch(Je){Pi.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ft=me().fromTextArea(no.current,{mode:hn,lineNumbers:!di,lineWrapping:!0,value:Te,autoCloseTags:!0,autoCloseBrackets:!0});return Ft.on("keyup",function(re,Yt){Yt.keyCode===8&&(re.getValue()==""?Ft.setOption("placeholder",Kn):Ft.setOption("placeholder",null))}),Ft.on("keydown",function(re,Yt){if(Yt.keyCode===8){var de=Ps(re);de&&Yt.preventDefault()}}),ci&&Ft.focus(),Ft.on("paste",Di),On&&Ft.on("beforeChange",function(re,Yt){(Yt.origin==="paste"||Yt.origin==="+input")&&Yt.cancel()}),si(Ft),()=>{Ft.off("paste",Di)}}},[]);const po=(0,St.useCallback)(()=>{if(Zo.current)try{}catch(Di){console.log(Di,"---- to set md editor body height")}},[wr,Zo,Mi]);(0,St.useEffect)(()=>{function Di(){let Ft=new he.Z(re=>{for(let Yt of re)(Yt.target.offsetHeight>0||Yt.target.offsetWidth>0)&&(po(),vn.setSize("100%","100%"),vn.refresh())});return Ft.observe(no.current.parentElement),Ft}if(vn){const Ft=Di();return()=>{var re,Yt;(re=no.current)!=null&&re.parentElement&&Ft.unobserve((Yt=no.current)==null?void 0:Yt.parentElement)}}},[vn,po]),(0,St.useEffect)(()=>{if(vn){let Di=[];for(const[Ft,re]of Object.entries(Cn)){let Yt={[Ft]:()=>{Po(re)}};Di.push(Yt),vn.addKeyMap(Yt)}return()=>{for(let Ft of Di)vn.removeKeyMap(Ft)}}},[vn]),(0,St.useEffect)(()=>{wn!==Mi&&fr(wn)},[wn]),(0,ko.Z)(()=>{if(!Pn&&Fr>0){let Di=new Date().getTime(),Ft=window.sessionStorage.getItem(xi);Di>=Fr+Ho&&(!Ft||Ft!==Tr)&&(window.sessionStorage.setItem(xi,Tr),rn(!0))}},Ho),(0,St.useEffect)(()=>{Ee(Yi)},[vn,Yi]),(0,St.useEffect)(()=>{vn&&ci&&vn.focus()},[vn,ci]),(0,St.useEffect)(()=>{if(No&&vn){let Di=function(re){let Yt=re.target;if($i.current){let de=Yt.scrollTop/Yt.scrollHeight;$i.current.scrollTop=$i.current.scrollHeight*de}};const Ft=vn.getScrollerElement();return Ft.addEventListener("scroll",Di),()=>{Ft.removeEventListener("scroll",Di)}}},[vn,No]),(0,St.useEffect)(()=>{if(vn&&Ln){let Di=function(Ft,re){Ln(Ft,re)};return vn.on("beforeChange",Di),()=>{vn.off("beforeChange",Di)}}},[vn,Ln]),(0,St.useEffect)(()=>{if(vn&&be){let Di=function(){be(vn.getValue())};return vn.on("blur",Di),()=>{vn.off("blur",Di)}}},[vn,be]);function Ps(Di,Ft){var re=Di.getDoc(),Yt=re.getCursor(),de=re.getLine(Yt.line),ge=de.charAt(Yt.ch-1),Oe=de.lastIndexOf("@\u2581@",Yt.ch),ze=de.lastIndexOf("@\u2581\u2581@",Yt.ch),Je=Oe>ze?Oe:ze,kn=Oe>ze?3:4;if(nr.indexOf(ge)===-1)return null;if(console.log("change1:",Ft,Di,de,Yt,Je,Oe,ze,ge),Je>=0&&Yt.ch-Je<5){var Dn=Je+kn;return re.replaceRange("",{line:Yt.line,ch:Je},{line:Yt.line,ch:Dn}),{line:Yt.line,ch:Dn}}return null}(0,St.useEffect)(()=>{if(vn){let Di=function(Ft,re){const Yt=Ft.getValue();Rr(Yt),Nr(new Date().getTime()),Ft.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ne&&(ye?Ne(Yt,Ai(Yt)):Ne(Yt))};return vn.on("change",Di),()=>{vn.off("change",Di)}}},[vn,Ne]),(0,St.useEffect)(()=>{if(vn)if(Te==null)vn.setValue(""),Rr("");else{const Di=window.scrollY||window.pageYOffset;Te!==vn.getValue()&&(vn.setValue(Te),Rr(Te),vn.setCursor(On?1:vn.lineCount(),0),window.scrollTo(0,Di))}},[vn,Te]);const Po=(0,St.useCallback)(Di=>{const Ft=vn.getCursor(),re=vn.getSelection();let Yt=re.split(`
|
|
`);switch(Di){case"bold":return vn.replaceSelection("**"+re+"**"),re===""&&vn.setCursor(Ft.line,Ft.ch+2),vn.focus();case"italic":return vn.replaceSelection("*"+re+"*"),re===""&&vn.setCursor(Ft.line,Ft.ch+1),vn.focus();case"code":return vn.replaceSelection("`"+re+"`"),re===""&&vn.setCursor(Ft.line,Ft.ch+1),vn.focus();case"inline-latex":return Ir("inline-latex"),vn.focus();case"latex":return vn.replaceSelection("```latex\n"+re+"\n```"),vn.setCursor(Ft.line+1,re.length+1),vn.focus();case"line-break":return vn.replaceSelection(`<br/>
|
|
`),vn.focus();case"list-ul":return re===""?vn.replaceSelection("- "+re):vn.replaceSelection(Yt.map(de=>de===""?"":`- ${de}`).join(`
|
|
`)),vn.focus();case"list-ol":return re===""?vn.replaceSelection("1. "+re):vn.replaceSelection(Yt.map((de,ge)=>de===""?"":`${ge+1}. ${de}`).join(`
|
|
`)),vn.focus();case"add-null-ch":return re===""&&vn.setCursor(Ft.line,Ft.ch),vn.replaceSelection(Go),vn.focus();case"add-signal":return re===""&&vn.setCursor(Ft.line,Ft.ch),vn.replaceSelection(lo),vn.focus();case"add-multiple":return re===""&&vn.setCursor(Ft.line,Ft.ch),vn.replaceSelection(nr),vn.focus();case"inster-template-1":return re===""&&vn.setCursor(Ft.line,Ft.ch),vn.replaceSelection(Lt),vn.focus();case"eraser":return vn.setValue(""),vn.focus();case"trigger-watch":return Ee(!No),vn.focus();case"trigger-full-screen":return fr(!Mi),vn.focus();case An:Ir(An);return;case _r:Ir(_r);return;case ei:Ir(ei);return;case dr:Ir(dr);return;case"maths-latex":Ir("maths-latex");return;case gr:Ir(gr);return;case cr:Ir(cr);return;default:throw new Error}},[vn,No,Mi]),Jn=(0,St.useCallback)((Di,Ft)=>{var re,Yt,de,ge,Oe,ze;switch(Ir(""),fi){case An:const{title:Zn,link:qn}=Di;return vn.replaceSelection(`[${Zn}](${qn})`),vn.focus();case _r:const{language:oe,content:Hn}=Di;return vn.replaceSelection(["```"+oe,Hn,"```"].join(`
|
|
`)),vn.focus();case"maths-latex":for(var Je=atob(Di),kn=new Uint8Array(Je.length),Dn=0;Dn<Je.length;Dn++)kn[Dn]=Je.charCodeAt(Dn);var $e=new Blob([kn],{type:"image/png"});(0,_e.I)($e,Li=>{Li.id?vn.replaceSelection(``):(Li==null?void 0:Li.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":vn.replaceSelection("`$$"+Di+"$$`");break;case ei:case dr:case Sr:const{src:Qn,alt:ni}=Di,In=Ft,Ti=(de=(Yt=(re=In==null?void 0:In.name)==null?void 0:re.split("."))==null?void 0:Yt.pop)==null?void 0:de.call(Yt);return((ge=In==null?void 0:In.type)==null?void 0:ge.indexOf("image"))>-1||!(In!=null&&In.type)?In!=null&&In.align||In!=null&&In.width?vn.replaceSelection(`<p style="text-align:${In.align||"initial"}"><img width="${In.width?In.width+"%":"initial"}" src="${Qn}" alt="${ni||""}" /></p>`):vn.replaceSelection(`<img width="100%" src="${Qn}" alt="${ni||""}" />`):((Oe=In==null?void 0:In.type)==null?void 0:Oe.indexOf("video"))>-1?vn.replaceSelection(`<video width="100%" controls src="${Qn}"></video>`):((ze=In==null?void 0:In.type)==null?void 0:ze.indexOf("pdf"))>-1?vn.replaceSelection(`<a href="${Qn}?type=${In.type}&disposition=inline" target="_blank">${In.name}</a>`):Rn.includes(Ti)?vn.replaceSelection(`<a href="${Qn}?type=office&disposition=inline" target="_blank">${In.name}</a>`):vn.replaceSelection(`[${In.name}](${Qn})`),vn.focus();case cr:const{row:wi,col:pi,align:ai}=Di;let ui=`
|
|
`;for(let Li=0;Li<wi;Li++){let vr=[],ir=[];for(let lr=0;lr<pi;lr++)Li===1&&ir.push(Yo[ai]),vr.push(" ");Li===1&&(ui+=`| ${ir.join(" | ")} |
|
|
`),ui+=`| ${vr.join(pi===1?"":" | ")} |
|
|
`}return vn.replaceSelection(ui+`
|
|
`),vn.focus();default:throw new Error}},[vn,fi]),Wt=(0,St.useMemo)(()=>{switch(fi){case An:return St.createElement(Le,{callback:Jn,onCancel:Co});case _r:return St.createElement(dn.Z,{callback:Jn,onCancel:Co});case ei:return St.createElement(_e.Z,{callback:Jn,onCancel:Co});case gr:return St.createElement(We,{callback:Jn,onCancel:Co});case cr:return St.createElement(ri,{callback:Jn,onCancel:Co});case"maths-latex":return St.createElement(bi,{showSaveButton:!0,callback:Jn});case"inline-latex":return St.createElement(Ei.Z,{showSaveButton:!0,callback:Jn});default:return null}},[fi]);function Co(){Ir("")}(0,St.useEffect)(()=>{if(Or.current){let Di=function(Oe){de=!0,ge=Oe.pageY},Ft=function(){de=!1},re=function(Oe){if(de){let ze=Oe.pageY-ge;ze<0&&(ze=0),ze>300&&(ze=300);let Je=Ye+ze+"px";br(Je)}},Yt=Or.current,de=!1,ge=0;return Yt.addEventListener("mousedown",Di),document.addEventListener("mousemove",re),document.addEventListener("mouseup",Ft),()=>{Yt.removeEventListener("mousedown",Di),document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",Ft)}}},[vn,Or]),(0,St.useEffect)(()=>{br(Ye)},[Ye]);const ea=ii(we),Js=ii(wr),vs={width:ea,height:Js},ro=(0,St.useMemo)(()=>{if(Fr){let Di=new Date(Fr),Ft=Di.getHours(),re=Di.getMinutes(),Yt=Di.getSeconds();return Ft=Ft<10?"0"+Ft:Ft,re=re<10?"0"+re:re,Yt=Yt<10?"0"+Yt:Yt,`${Ft}:${re}:${Yt}`}return 0},[Fr]),Ai=Di=>{const Ft=[];if(ye){let re=-1;Di=Di.replace(/(@▁▁@|@▁@)/g,function(Yt,de,ge){Ft.push({multiLine:Yt!==lo})})}return Ft};function Ii(){window.sessionStorage.removeItem(xi),rn(!1),Nr(0)}function xr(){rn(!1),Nr(0),vn.setValue(window.sessionStorage.getItem(xi))}(0,St.useEffect)(()=>{gi[fi]&&fi!==dr&&fi!==gr&&setTimeout(()=>{const Di=document.getElementsByClassName("markdown-popup-form")[0],Ft=window.innerWidth/2-Di.offsetWidth/2,re=window.innerHeight/2-Di.offsetHeight/2;en(Ft),Uo(re)},0)},[fi]);const Bi=Di=>{Di.preventDefault();const Ft=Di.clientX-fo,re=Di.clientY-zr;document.body.onmousemove=Yt=>{let de=Yt.clientX-Ft,ge=Yt.clientY-re;const Oe=document.getElementsByClassName("markdown-popup-form")[0],ze=window.innerWidth-Oe.offsetWidth,Je=window.innerHeight-Oe.offsetHeight;de=Math.max(0,Math.min(de,ze)),ge=Math.max(0,Math.min(ge,Je)),ar(Yt.clientX,Yt.clientY,Ft,re)&&(en(de),Uo(ge))},document.body.onmouseup=function(){document.body.onmousemove=null}},ar=(Di,Ft,re,Yt)=>{const de=document.body.clientHeight,ge=document.body.clientWidth;return Di<20&&re>Di||Di>ge-20&&re<Di||Ft<20&&Yt>Ft||Ft>de-20&&Yt<Ft?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return St.createElement(St.Fragment,null,St.createElement("div",{className:"markdown-editor-wrapper",ref:Zo},St.createElement("div",{className:`markdown-editor-container ${ji} ${No?"on-preview":""} ${di?"mini":""} ${Mi?"full-screen":""}`,style:vs},St.createElement(Ut,{insertTemp:Re,watch:No,fullScreen:Mi,showNullButton:Xt,showNullProgramButton:ye,onActionCallback:Po,hidetoolBar:Mn,extraUse:Hi}),St.createElement("div",{className:"markdown-editor-body"},St.createElement("div",{className:"codemirror-container"},St.createElement("textarea",{ref:no,placeholder:Kn})),No?St.createElement("div",{ref:$i,className:"preview-container"},hn==="stex"&&St.createElement(le,{value:Tr}),hn!=="stex"&&St.createElement(je.Z,{disabledFill:Bn,showProgramFill:ye,value:Tr})):null))),_i?St.createElement("a",{ref:Or,className:"editor-resize"}):null,fi===dr&&St.createElement(Ie,{callback:Jn,onCancel:Co}),fi===gr&&St.createElement(We,{callback:Jn,onCancel:Co}),St.createElement(se.Z,null,gi[fi]&&fi!==dr&&fi!==gr?St.createElement(ve.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:fo,top:zr},title:St.createElement("div",{style:{cursor:"move"},onMouseDown:Bi},gi[fi]),open:!0,onCancel:Co,footer:null,destroyOnClose:!0,width:fi===gr?"1200px":null,height:fi===gr?"80vh":null,className:"markdown-popup-form"},Wt):null))}},17077:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return Vt},I:function(){return se}});var St=Rt(28284),ee=Rt(6767),me=Rt(37568),he=Rt(77736),ce=Rt(71051),fe=Rt(47889),ue=Rt(99571),Be=Rt(46699),Ce=Rt(59301),Bt=Rt(59301),je=Object.defineProperty,le=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ct=(qt,Jt,Me)=>Jt in qt?je(qt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Me}):qt[Jt]=Me,lt=(qt,Jt)=>{for(var Me in Jt||(Jt={}))et.call(Jt,Me)&&ct(qt,Me,Jt[Me]);if(bt)for(var Me of bt(Jt))nt.call(Jt,Me)&&ct(qt,Me,Jt[Me]);return qt},pt=(qt,Jt)=>le(qt,Ge(Jt));const{useForm:vt}=St.default,Pt={width:280,marginRight:10},Dt={labelCol:{span:5},wrapperCol:{span:19}};var Vt=({callback:qt,onCancel:Jt})=>{const[Me]=vt();let pe=(0,Ce.useRef)();function He(Fn){pe.current.width=Me.getFieldValue("width"),pe.current.align=Me.getFieldValue("align"),qt(Fn,pe.current)}function De(Fn,on){if(Fn.status===-1){ee.ZP.error(Fn.message);return}Me.setFieldsValue({src:`/api/attachments/${Fn.id}`,type:on.type})}function tn(Fn){let on=Fn.target.files[0];pe.current=on,se(on,De)}return Bt.createElement(St.default,pt(lt({form:Me},Dt),{className:"upload-image-panel",onFinish:He,style:{width:470,overflow:"hidden"}}),Bt.createElement(St.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Bt.createElement("div",{className:"flex-container"},Bt.createElement(St.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Bt.createElement(me.default,{style:Pt})),Bt.createElement(Ut,{onFileChange:tn}))),Bt.createElement(St.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Bt.createElement(me.default,{style:{width:264}})),Bt.createElement(St.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Bt.createElement(he.Z,null,Bt.createElement(St.default.Item,{name:"width",style:{margin:0}},Bt.createElement(ce.Z,{style:{width:264}})),Bt.createElement("span",{className:"ml8"},"%"))),Bt.createElement(St.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Bt.createElement(fe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Bt.createElement("aside",null,Bt.createElement(St.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Bt.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Bt.createElement(ue.ZP,{type:"default",onClick:Jt},"\u53D6\u6D88"))))};function Ut({onFileChange:qt}){return Bt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Bt.createElement("input",{type:"file",onChange:qt}))}function se(qt,Jt){if(!qt)throw new String("\u6CA1\u6709\u6587\u4EF6");let Me=new FormData;Me.append("editormd-image-file",qt),Me.append("file_param_name","editormd-image-file"),Me.append("byxhr","true");var pe=new window.XMLHttpRequest;pe.withCredentials=!0,pe.addEventListener("load",function(He){Jt(JSON.parse(He.target.responseText),qt)},!1),pe.addEventListener("error",function(He){console.error(He)},!1),pe.open("POST",`${Be.KI}/api/attachments.json`),pe.send(Me)}},91558:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return me}});var St=Rt(59301),ee=Rt(4676);class me extends St.Component{constructor(ce){super(ce);const fe=window.document;this.node=fe.createElement("div"),fe.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,ee.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(xn,$n,Rt){"use strict";Rt.d($n,{SV:function(){return ae},ZP:function(){return Ie}});var St=Rt(59301),ee=Rt(76374);const me={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},he={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},ce={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
`)}]},fe={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
`)}]},ue={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
`)}]};var Be=Rt(53184),Ce=Rt.n(Be),Bt=(Pe,sn,an)=>new Promise((Tt,Ct)=>{var xt=Et=>{try{zt(an.next(Et))}catch(Ae){Ct(Ae)}},kt=Et=>{try{zt(an.throw(Et))}catch(Ae){Ct(Ae)}},zt=Et=>Et.done?Tt(Et.value):Promise.resolve(Et.value).then(xt,kt);zt((an=an.apply(Pe,sn)).next())});const je={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},le=(Pe,sn,an,Tt)=>{const Ct=sn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:an.lineNumber,endColumn:an.column});return Array.from(new Set(Ct.match(/\b\w{2,}\b/g)||[])).map(kt=>({label:kt,kind:Pe.languages.CompletionItemKind.Text,insertText:kt,range:Tt}))},Ge=(Pe,sn,an,Tt)=>{Pe.languages.registerCompletionItemProvider(sn,{provideCompletionItems(Ct,xt){const kt=Ct.getWordUntilPosition(xt),zt={startLineNumber:xt.lineNumber,endLineNumber:xt.lineNumber,startColumn:kt.startColumn,endColumn:kt.endColumn},Et=Ct.getLineContent(xt.lineNumber).substring(kt.startColumn-2,kt.endColumn);return{suggestions:[...le(Pe,Ct,xt,zt),...an.map(We=>({label:We,kind:Pe.languages.CompletionItemKind.Keyword,documentation:We,insertText:We,insertTextRules:Pe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:zt})),...Tt.map(We=>({label:We.label,kind:Pe.languages.CompletionItemKind.Snippet,documentation:We.content,insertText:Et.startsWith("#")?We.content.replace(/#/,""):We.content,insertTextRules:Pe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:zt}))]}}})};var bt=Pe=>{je.languages.forEach(sn=>{Pe.languages.registerDocumentFormattingEditProvider(sn,{provideDocumentFormattingEdits(an){return Bt(this,null,function*(){const Tt=Ce()(an.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:an.getFullModelRange(),text:Tt}]})}})}),Ge(Pe,"java",he.keywords,he.quickKey),Ge(Pe,"cpp",ce.keywords,ce.quickKey),Ge(Pe,"c",me.keywords,[]),Ge(Pe,"python",fe.keywords,fe.quickKey),Ge(Pe,"scala",ue.keywords,ue.quickKey)};const et="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var nt=Object.defineProperty,ct=(Pe,sn,an)=>sn in Pe?nt(Pe,sn,{enumerable:!0,configurable:!0,writable:!0,value:an}):Pe[sn]=an,lt=(Pe,sn,an)=>ct(Pe,typeof sn!="symbol"?sn+"":sn,an);const pt=class px{constructor(sn,an,Tt){this.placeholder=sn,this.editor=an,this.monaco=Tt,an.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};lt(pt,"ID","editor.widget.placeholderHint");var Pt=pt,Dt=Rt(96236),Vt=Rt(6767),Ut=Rt(25399),se=Rt(89392),qt=Rt(49535),Jt=Rt(56102),Me=Object.defineProperty,pe=Object.defineProperties,He=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable,on=(Pe,sn,an)=>sn in Pe?Me(Pe,sn,{enumerable:!0,configurable:!0,writable:!0,value:an}):Pe[sn]=an,pn=(Pe,sn)=>{for(var an in sn||(sn={}))tn.call(sn,an)&&on(Pe,an,sn[an]);if(De)for(var an of De(sn))Fn.call(sn,an)&&on(Pe,an,sn[an]);return Pe},fn=(Pe,sn)=>pe(Pe,He(sn)),te=(Pe,sn)=>{var an={};for(var Tt in Pe)tn.call(Pe,Tt)&&sn.indexOf(Tt)<0&&(an[Tt]=Pe[Tt]);if(Pe!=null&&De)for(var Tt of De(Pe))sn.indexOf(Tt)<0&&Fn.call(Pe,Tt)&&(an[Tt]=Pe[Tt]);return an},Ot=(Pe,sn,an)=>new Promise((Tt,Ct)=>{var xt=Et=>{try{zt(an.next(Et))}catch(Ae){Ct(Ae)}},kt=Et=>{try{zt(an.throw(Et))}catch(Ae){Ct(Ae)}},zt=Et=>Et.done?Tt(Et.value):Promise.resolve(Et.value).then(xt,kt);zt((an=an.apply(Pe,sn)).next())});function Le(Pe){return/^\d+$/.test(Pe)?`${Pe}px`:Pe}function dn(){}let _e=!1;const ve={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Xe(Pe=[]){let sn=Pe;if(Array.isArray(Pe)){for(let an=0;an<Pe.length;an++){let Tt=ve[Pe[an]];if(Tt)return Tt}return sn[0]}return ve[sn]||sn}let ke=null;const cn=()=>Ot(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Pe){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Pe)}});var Ie=Pe=>{var sn=Pe,{width:an="100%",height:Tt="100%",value:Ct,language:xt="javascript",style:kt={},options:zt={},overrideServices:Et={},theme:Ae="vs-dark",onEditBlur:We,isCopy:Ue=!1,onSave:jn,autoHeight:Gn=!1,forbidCopy:Ke=!1,onChange:ri=dn,editorDidMount:Sn=dn,onFocus:hi=dn,onBreakPoint:ti=dn,breakPointValue:Wn=[],filename:bi="educoder.txt",errorLine:Ei,errorContent:Pi="",highlightLine:An,openBreakPoint:ei=!1,placeholder:gr="",showMiniMap:dr=!0}=sn,Sr=te(sn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const _r=(0,St.useRef)(),cr=(0,St.useRef)({}),jo=(0,St.useRef)(),Yo=(0,St.useRef)(),ko=(0,St.useRef)([]),$o=(0,St.useRef)(!1),ms=(0,St.useRef)(),Ho=(0,St.useRef)(),Go=(0,St.useRef)(!1),[nr,lo]=(0,St.useState)(!1);function Lt(){let Re;return _r.current&&(Re=new ee.Z(hn=>{for(let xi of hn)(xi.target.offsetHeight>0||xi.target.offsetWidth>0)&&cr.current.instance.layout()}),Re.observe(_r.current)),Re}function Rn(){Vt.ZP.warning({content:decodeURIComponent(et),key:"monaco-editor-tip"})}const ii=()=>{let Re=cr.current.instance;if(Ct!=null&&Re&&nr){const hn=Re.getModel();hn&&Ct!==hn.getValue()&&(_e=!0,hn.setValue(Ct),Re.layout(),_e=!1)}};(0,St.useEffect)(()=>{const Re=qt.Z.subscribe("formatDocument",hn=>{var xi;let _i=cr.current.instance;(xi=_i==null?void 0:_i.getAction)==null||xi.call(_i,"editor.action.formatDocument").run()});return window.updateMonacoValue=hn=>{ri(hn)},Re},[]),(0,St.useEffect)(()=>{var Re;let hn=cr.current.instance;Yo.current&&clearTimeout(Yo.current),Yo.current=setTimeout(()=>{ii()},500),Ct&&(Ct!=null&&Ct.length)&&((Re=hn==null?void 0:hn.updateOptions)==null||Re.call(hn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ct.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ct,nr,cr.current]),(0,St.useEffect)(()=>{if(Ei&&cr.current&&cr.current.instance){let hn=cr.current.instance;hn.changeViewZones(function(xi){var _i=document.createElement("div");_i.style.padding="10px 20px",_i.style.width="calc(100% - 20px)",_i.className="my-error-line-wrp",_i.innerHTML=Pi,xi.addZone({afterLineNumber:Ei||11,heightInLines:3,domNode:_i})});var Re={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};hn.addOverlayWidget(Re),hn.revealPositionInCenter({lineNumber:20,column:1})}},[Ei,cr.current,nr]);const Vn=(Re="",hn)=>{if(!Re||Re.trim()==="")return!0;const _i=cr.current.instance.getModel().getLineTokens(hn);let Pn=!1;for(let Xt=0;Xt<2;Xt++)_i.getStandardTokenType(Xt)===1&&(Pn=!0);return Pn};(0,St.useEffect)(()=>{var Re;const hn=(Re=cr.current)==null?void 0:Re.instance;if(hn&&nr&&Ke){const xi=hn.onDidBlurEditorWidget(()=>{Go.current=!1}),_i=hn.onDidFocusEditorText(()=>{Go.current=!0});return()=>{xi.dispose(),_i.dispose()}}},[cr.current,nr,Ke]),(0,St.useEffect)(()=>{var Re;if((Re=cr.current)!=null&&Re.instance&&nr&&ei){let hn=cr.current.instance,xi=hn.getModel();if(!xi)return;(()=>{var On;let Bn=[],Kn=[];const or=xi.getAllDecorations();for(let vn of or)vn.options.className==="highlighted-line"&&(Bn.push((On=vn==null?void 0:vn.range)==null?void 0:On.startLineNumber),Kn.push(vn==null?void 0:vn.id));if(An===Bn[0])return;xi.deltaDecorations(Kn,[]);const Hi=xi.getLineCount();An&&An<=Hi&&(hn.deltaDecorations([],[{range:new ke.Range(An,1,An,xi.getLineMaxColumn(An)),options:{isWholeLine:!0,className:"highlighted-line"}}]),hn.revealLineInCenter(An))})();const Pn=(On=!1)=>{var Bn;let Kn=[],or=[];const Hi=xi.getAllDecorations();for(let vn of Hi)vn.options.linesDecorationsClassName==="breakpoints-select"&&(Kn.push((Bn=vn==null?void 0:vn.range)==null?void 0:Bn.startLineNumber),or.push(vn==null?void 0:vn.id));if(On)return{lines:Kn,ids:or};ti(Kn)},Xt=On=>Ot(void 0,null,function*(){let Bn={range:new ke.Range(On,1,On,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xi.deltaDecorations([],[Bn]),Pn()}),ye=On=>Ot(void 0,null,function*(){let Bn=[];const Kn=hn.getLineDecorations(On);for(let or of Kn)or.options.linesDecorationsClassName==="breakpoints-select"&&Bn.push(or.id);yield xi.deltaDecorations(Bn,[]),Pn()}),Mn=On=>{let Bn=hn.getLineDecorations(On);for(let Kn of Bn)if(Kn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,se.isEqual)(Wn,Pn(!0).lines)){xi.deltaDecorations(Pn(!0).ids,[]);const On=Wn.map(Bn=>({range:new ke.Range(Bn,1,Bn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xi.deltaDecorations([],On)}const wn=hn.onDidChangeModelContent(On=>{let Bn=hn.getPosition();if(Bn){let Kn=Bn.lineNumber;clearTimeout(Ho.current),Ho.current=setTimeout(()=>{Vn(xi.getLineContent(Kn),Kn)?ye(Kn):Mn(Kn)?(ye(Kn),Xt(Kn)):Pn()},100)}}),be=hn.onMouseDown(On=>{var Bn,Kn,or;if(On.target.detail&&((or=(Kn=(Bn=On.target)==null?void 0:Bn.element)==null?void 0:Kn.className)!=null&&or.includes("line-numbers"))){let Hi=On.target.position.lineNumber;if(Vn(xi.getLineContent(Hi),Hi))return;Mn(Hi)?ye(Hi):Xt(Hi)}}),Ln=On=>{let Bn={range:new ke.Range(On,1,On,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ko.current=hn.deltaDecorations(ko.current,[Bn])},Ni=()=>{ko.current=hn.deltaDecorations(ko.current,[])},ji=hn.onMouseMove(On=>{var Bn,Kn,or;if(Ni(),On.target.detail&&((or=(Kn=(Bn=On.target)==null?void 0:Bn.element)==null?void 0:Kn.className)!=null&&or.includes("line-numbers"))){let Hi=On.target.position.lineNumber;if(Vn(xi.getLineContent(Hi),Hi))return;Ln(Hi)}}),Qi=hn.onMouseLeave(()=>{Ni()});return()=>{wn.dispose(),be.dispose(),ji.dispose(),Qi.dispose()}}},[cr.current,nr,Wn,An,ei,xt]),(0,St.useEffect)(()=>{var Re;(Re=cr.current)!=null&&Re.instance&&ei&&cr.current.instance.setPosition({lineNumber:0,column:0})},[An]);function Nn(){let Re=cr.current.instance;if(Re){const hn=Re.getSelection(),xi=cr.current.pastePos||{},_i=new ke.Range(xi.startLineNumber||hn.endLineNumber,xi.startColumn||hn.endColumn,xi.endLineNumber||hn.endLineNumber,xi.endColumn||hn.endColumn);setTimeout(()=>{Re.executeEdits("",[{range:_i,text:""}])},300)}}function Cn(Re){(window.navigator.platform.match("Mac")?Re.metaKey:Re.ctrlKey)&&Re.keyCode==83&&(Re.preventDefault(),jn())}const gi=()=>{if(Gn&&cr.current.instance){const Re=cr.current.instance.getContentHeight();ci(Re<Tt?Tt:Re)}else ci(Tt)};function Ui(Re){var hn=document.createEvent("MouseEvents");hn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Re.dispatchEvent(hn)}const Te=Re=>{if(!Go.current)return;const{keyCode:hn,ctrlKey:xi,metaKey:_i,target:Pn,type:Xt}=Re;return(Xt==="paste"||(hn===67||hn===86)&&(_i||xi))&&Pn.nodeName==="TEXTAREA"&&(Rn(),Re.preventDefault()),!1};function Ne(Re,hn){var xi=window.URL||window.webkitURL||window,_i=new Blob([hn]),Pn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Pn.href=xi.createObjectURL(_i),Pn.download=Re,Ui(Pn)}(0,St.useEffect)(()=>{gi()},[gi]),(0,St.useEffect)(()=>{_r.current&&!nr&&Promise.all([Rt.e(8909),Rt.e(6656)]).then(Rt.bind(Rt,71448)).then(Re=>{try{ke=Re,cr.current.instance=ke.editor.create(_r.current,{value:Ct,language:Xe(xt),theme:Ae,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:dr||!1}},Et);const hn=cr.current.instance;let Pn=[...Dt.BH._menuItems].find(wn=>wn[0]._debugName=="EditorContext")[1],Xt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ye=(wn,be)=>{var Ln,Ni;let ji=wn._first;do be.includes((Ni=(Ln=ji.element)==null?void 0:Ln.command)==null?void 0:Ni.id)&&wn._remove(ji);while(ji=ji.next)};if(Sn(hn,ke),setTimeout(()=>{gi(),cr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ne(bi||"educoder.txt",hn.getValue())}})},500),cr.current.subscription=hn.onDidChangeModelContent(wn=>{$o.current?clearTimeout(ms.current):(gi(),ri(hn.getValue(),wn)),ms.current=setTimeout(()=>{$o.current=!1},500)}),window.Monaco||bt(ke,Xe(xt)),Ke&&(ye(Pn,Xt),_r.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Te),window.removeEventListener("paste",Te),window.addEventListener("keydown",Te),window.addEventListener("paste",Te)),window.Monaco=ke,We&&hn.onDidBlurEditorWidget(()=>{We(hn.getValue())}),hi&&hn.onDidFocusEditorText(()=>{Ke&&cn(),hi(hn.getValue())}),Ke){cn();try{hn.onDidPaste(wn=>{const be=hn.getSelection(),Ln=cr.current.pastePos||{},Ni=new ke.Range(Ln.startLineNumber||be.endLineNumber,Ln.startColumn||be.endColumn,Ln.endLineNumber||be.endLineNumber,Ln.endColumn||be.endColumn);hn.executeEdits("",[{range:wn.range,text:""}])})}catch(wn){}}let Mn=Lt();return gr&&typeof gr=="string"&&new Pt(gr,hn,ke),lo(!0),()=>{const wn=cr.current.instance;wn.dispose();const be=wn.getModel();be&&be.dispose(),cr.current.subscription&&cr.current.subscription.dispose(),Mn.unobserve(_r.current)}}catch(hn){}})},[]),(0,St.useEffect)(()=>{if(cr.current.instance&&nr)return document.addEventListener("keydown",Cn,!1),()=>{document.removeEventListener("keydown",Cn)}},[jn,nr]),(0,St.useEffect)(()=>{let Re=cr.current.instance;if(Re&&nr){let hn=Xe(xt);ke.editor.setModelLanguage(Re.getModel(),hn)}},[xt,nr]),(0,St.useEffect)(()=>{cr.current.instance&&nr&&ke.editor.setTheme(Ae)},[Ae,nr]),(0,St.useEffect)(()=>{let Re=cr.current.instance;jo.current=zt,Re&&nr&&(Re.updateOptions(pn({},zt)),setTimeout(()=>{Re.getModel().updateOptions(pn({},zt))},200))},[JSON.stringify(zt),nr]),(0,St.useEffect)(()=>{let Re=cr.current.instance;Re&&nr&&Re.layout()},[an,Tt,nr]);const[we,Ye]=(0,St.useState)(Le(an)),[di,ci]=(0,St.useState)(Le(Tt)),Yi=fn(pn({},kt),{width:we,height:di,position:"relative"});return St.createElement("div",{className:"my-monaco-editor",ref:_r,style:Yi},Ue&&St.createElement(Jt.CopyToClipboard,{text:Ct,onCopy:()=>Vt.ZP.success("\u590D\u5236\u6210\u529F")},St.createElement(Ut.Z,{title:"\u590D\u5236\u4EE3\u7801"},St.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},St.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ae({width:Pe="100%",height:sn="100%",original:an,modified:Tt,language:Ct,options:xt={}}){const kt=(0,St.useRef)(),[zt,Et]=(0,St.useState)(null);function Ae(Gn){let Ke;return kt.current&&(Ke=new ee.Z(ri=>{for(let Sn of ri)(Sn.target.offsetHeight>0||Sn.target.offsetWidth>0)&&Gn.layout()}),Ke.observe(kt.current)),Ke}(0,St.useEffect)(()=>(kt.current&&Promise.all([Rt.e(8909),Rt.e(9404)]).then(Rt.bind(Rt,2550)).then(Gn=>{ke=Gn;const Ke=ke.editor.createDiffEditor(kt.current,fn(pn({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},xt),{wordWrap:!0}));Et(Ke);let ri=Ae(Ke);return()=>{Ke.dispose();const Sn=Ke.getModel();Sn&&Sn.dispose(),ri.unobserve(kt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,St.useEffect)(()=>{zt&&zt.setModel({original:ke.editor.createModel(an,Ct),modified:ke.editor.createModel(Tt,Ct)})},[an,Tt,Ct,zt]);const We=Le(Pe),Ue=Le(sn),jn={width:We,height:Ue};return St.createElement("div",{className:"my-diff-editor",ref:kt,style:jn})}},10661:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return le}});var St={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},ee=Rt(29787),me=Rt(25399),he=Rt(60242),ce=Rt(92310),fe=Rt.n(ce),ue=Rt(51257),Be=Rt(28426),Ce=Rt(48790),Bt=Rt(59301),le=({className:Ge,dataSource:bt=[],col:et=4,right:nt,bottom:ct=23,precision:lt=0,wrapWidth:pt=1200,trackEventItems:vt,loading:Pt,onRemove:Dt=()=>{},isCurrent:Vt=!0,showProgress:Ut=!1,showAlias:se=!1})=>{const qt=Math.floor((pt-(et-1)*nt)/et),Jt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Bt.createElement(ee.Z,{spinning:Pt},Bt.createElement("div",{className:fe()(St.list,Ge)},!!(bt!=null&&bt.length)&&(bt==null?void 0:bt.map((Me,pe)=>{var He,De,tn,Fn,on,pn;const{name:fn,id:te,identifier:Ot,featured:Le,school_name:dn,image_url:_e,excellent:ve,is_plan:Xe}=Me;return Bt.createElement("div",{key:te,className:Vt&&Ut?St.wrapisCurrent:St.wrap,style:{width:qt,marginRight:(1+pe)%et===0?0:nt+lt,marginBottom:ct}},Bt.createElement("a",{className:St.li,onClick:ke=>{ke.preventDefault(),ke.stopPropagation(),vt&&(0,ue.L9)([vt]),(0,ue.xg)(`/paths/${Ot}`)}},Bt.createElement("div",{className:St.img},Bt.createElement("img",{className:St.cover,src:`${_e}`}),Vt&&(0,Ce.bg)()&&(Me==null?void 0:Me.studying)&&Bt.createElement("div",{className:`${St.movebq} user-path-items`,onClick:ke=>{ke.stopPropagation(),Dt(Me)}},Bt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Bt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(He=Me==null?void 0:Me.subject_tags)==null?void 0:He.map((ke,cn)=>{var Ie,ae;if(cn===0){const sn=(Ie=Jt.find(an=>an.name==ke))==null?void 0:Ie.swimg;return Bt.createElement("img",{className:St.sign,src:sn,style:{left:"-4px"}})}const Pe=(ae=Jt.find(sn=>sn.name==ke))==null?void 0:ae.ptimg;return Bt.createElement("img",{className:St.sign,src:Pe,style:{left:`${48+52*(cn-1)+2*cn}px`}})}),Bt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Me==null?void 0:Me.excellent)&&Bt.createElement("div",{className:St.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Bt.createElement("div",{className:St.name},Bt.createElement(me.Z,{title:se&&(Me!=null&&Me.excellent_alias_name)?Bt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${fn}`,Bt.createElement("br",null),Bt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Me==null?void 0:Me.excellent_alias_name}`)):fn},Bt.createElement("span",{className:St.e},se&&(Me==null?void 0:Me.excellent_alias_name)||fn))),Vt&&Ut&&((De=Me==null?void 0:Me.progress)==null?void 0:De.all_score)!=0&&Bt.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Bt.createElement(he.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((tn=Me==null?void 0:Me.progress)==null?void 0:tn.my_score)/((Fn=Me==null?void 0:Me.progress)==null?void 0:Fn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(on=Me==null?void 0:Me.progress)==null?void 0:on.my_score,"/",(pn=Me==null?void 0:Me.progress)==null?void 0:pn.all_score),(!Vt||!Ut)&&Bt.createElement(me.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${dn}`},Bt.createElement("div",{className:St.unit},Bt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),dn)),(!Vt||!Ut)&&Bt.createElement("div",{className:St.tags},Bt.createElement("div",null,Bt.createElement(me.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Bt.createElement("span",null,Bt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Bt.createElement("span",null,Me.stages_count))),Bt.createElement(me.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Bt.createElement("span",null,Bt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Bt.createElement("span",null,Me.members_count)))))))})),!bt.length&&Bt.createElement(Be.Z,null)))}},9148:function(xn,$n,Rt){"use strict";Rt.d($n,{jL:function(){return ce},w9:function(){return Le},QD:function(){return Ei},cQ:function(){return on.Z},op:function(){return ri},O5:function(){return ii},_b:function(){return Sr},t7:function(){return lt},Gi:function(){return cn},YG:function(){return Xe},qp:function(){return je},vr:function(){return ei},qE:function(){return ti},Je:function(){return Pt},wb:function(){return Fn},cq:function(){return Tt},tp:function(){return bt}});var St=Rt(59301),ee={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c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TMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ce=({dataSource:Vn=[],img:Nn,imgWidth:Cn=346,title:gi,sunTitle:Ui,bannerExtraContent:Te})=>St.createElement("div",{className:ee.banner},St.createElement("div",{className:ee.content},St.createElement("aside",null,St.createElement("p",null,St.createElement("b",null,gi),St.createElement("span",null,Ui)),Vn.length>0&&St.createElement("div",{className:ee.btns},Vn.map((Ne,we)=>St.createElement("div",{key:we,onClick:Ne.click},Ne.name,Ne.sign?St.createElement("img",{src:me,width:39}):null))),Te),Nn&&St.createElement("img",{style:{marginTop:33,marginRight:38},src:Nn,width:Cn}))),fe={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ue=Rt(92310),Be=Rt.n(ue),Ce=Rt(89392),je=({dataSource:Vn=[],value:Nn,onChange:Cn,onTitleChange:gi,className:Ui,title:Te,titleWidth:Ne=41,style:we={},fontColor:Ye="#6A7283",showCount:di})=>{const[ci,Yi]=(0,St.useState)(0),[Re,hn]=(0,St.useState)(!1),xi=(0,St.useRef)(null),_i=(0,St.useRef)(null);return(0,St.useEffect)(()=>{var Pn;Vn.length!==0&&(((Pn=xi==null?void 0:xi.current)==null?void 0:Pn.clientHeight)>97?Yi(1):Yi(0)),Vn.length===0&&Yi(0),hn(!1)},[Vn]),St.createElement("div",{className:Be()(fe.row,Ui),style:we},St.createElement("div",{onClick:(0,Ce.throttle)(()=>gi==null?void 0:gi(),2e3),style:{width:Ne,marginTop:Re?12:4},className:`${fe.title} ${gi?"current":""}`},Te),St.createElement("div",{className:Re?`${fe.tagsWrap} ${fe.tagsBorderWrap}`:fe.tagsWrap},St.createElement("div",{className:fe.bar,ref:_i,style:ci>0?{height:ci===1?97:"auto",overflow:ci===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},St.createElement("div",{className:fe.tag,ref:xi},Vn==null?void 0:Vn.map(Pn=>St.createElement("span",{onClick:()=>Cn(Pn.id),key:Pn.id,style:{color:Ye},className:Nn===Pn.id?fe.active:""},St.createElement("span",{title:Pn.name,className:fe.name},Pn.name),!!di&&St.createElement("span",{className:fe.num},Pn.count))))),!!ci&&St.createElement(St.Fragment,null,ci===1?St.createElement("div",{onClick:()=>{var Pn;Yi(2),((Pn=xi==null?void 0:xi.current)==null?void 0:Pn.clientHeight)>245?hn(!0):hn(!1)},className:fe.action},"\u5C55\u5F00",St.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):St.createElement("div",{onClick:()=>{_i.current.scrollTop=0,Yi(1),hn(!1)},className:fe.action},"\u6536\u8D77",St.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},le={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},bt=({dataSource:Vn=[],value:Nn,onChange:Cn,className:gi,style:Ui={}})=>St.createElement("div",{style:Ui,className:Be()(le.tabs,gi)},Vn.map(Te=>St.createElement("span",{onClick:()=>Cn(Te.id),className:Nn===Te.id?le.active:"",key:Te.id},Te.name))),et={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},nt=Rt(37568),lt=({dataSource:Vn=[],value:Nn="",onChange:Cn,onInputChange:gi=()=>{},className:Ui,style:Te={},placeholder:Ne,allowClear:we=!1})=>{var Ye;const[di,ci]=(0,St.useState)(""),[Yi,Re]=(0,St.useState)("");(0,St.useEffect)(()=>{var _i;let Pn=Nn;(_i=JSON.stringify(Nn))!=null&&_i.includes("{")&&(ci(Nn.id),Pn=Nn.value||"");try{Re(decodeURIComponent(Pn||""))}catch(Xt){Re(decodeURIComponent(Pn||""))}},[Nn]);const hn=()=>{Cn(encodeURIComponent(Yi),di||null)},xi=_i=>{_i!==di&&(ci(_i),Cn(encodeURIComponent(Yi),_i))};return St.createElement("div",{className:Be()(et.input,Ui),style:Te},!!Vn.length&&St.createElement("div",{className:et.dropdown},St.createElement("div",{className:et.text},(Ye=Vn.find(_i=>_i.id===di))==null?void 0:Ye.name,St.createElement("i",{className:"iconfont icon-zhankai4"}),St.createElement("b",{className:et.b1}),St.createElement("b",{className:et.b2})),St.createElement("div",{className:et.menu},Vn.map((_i,Pn)=>St.createElement("div",{key:Pn,onClick:()=>xi(_i.id)},_i.name)))),St.createElement(nt.default,{onPressEnter:hn,value:Yi,onChange:_i=>{Re(_i.target.value),gi(encodeURIComponent(_i.target.value),di||null)},bordered:!1,placeholder:Ne}),St.createElement("i",{onClick:hn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},pt={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Pt=({value:Vn,onChange:Nn,className:Cn,total:gi,pageSize:Ui,style:Te={}})=>{const Ne=Vn<2,we=Vn>=Math.ceil(gi/Ui);return gi<=Ui?St.createElement(St.Fragment,null):St.createElement("div",{className:Be()(pt.quickPager,Cn),style:Te},St.createElement("div",{onClick:()=>{Ne||Nn(Vn-1,"prev")},className:Ne?pt.disabled:""},"\u4E0A\u4E00\u9875"),St.createElement("div",{onClick:()=>{we||Nn(Vn+1,"next")},className:we?pt.disabled:""},"\u4E0B\u4E00\u9875"))},Dt={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Vt=Rt(29787),Ut=Rt(25399),se=Rt(58018),qt=Rt(346),Jt=Rt(51257),Me=Rt(96908),pe=Rt(57177),He=Rt(81378),De=Rt(28426),Fn=({className:Vn,dataSource:Nn=[],col:Cn=4,right:gi,bottom:Ui=23,precision:Te=0,wrapWidth:Ne=1200,trackEventItems:we,loading:Ye})=>{const di=Math.floor((Ne-(Cn-1)*gi)/Cn);return St.createElement(Vt.Z,{spinning:Ye},St.createElement("div",{className:Be()(Dt.list,Vn)},!!Nn.length&&Nn.map((ci,Yi)=>{const{name:Re,id:hn,identifier:xi,power:_i,cover_image_id:Pn,pic:Xt}=ci;return St.createElement("div",{className:Dt.wrap,key:hn,style:{width:di,marginRight:(1+Yi)%Cn===0?0:gi+Te,marginBottom:Ui}},St.createElement("a",{target:"_blank",href:`/shixuns/${xi}/challenges`,className:Dt.li,onClick:ye=>{ye.preventDefault(),we&&(0,Jt.L9)([we]),_i&&(0,Jt.xg)(`/shixuns/${xi}/challenges`)}},St.createElement("div",{className:Dt.img},St.createElement("img",{className:Dt.cover,src:`${Xt}`}),ci.is_jupyter&&St.createElement("img",{className:Dt.sign,src:Me}),ci.is_jupyter_lab&&St.createElement("img",{className:Dt.sign,src:pe}),ci.is_unity_3d&&St.createElement("img",{className:Dt.sign,src:He})),St.createElement("div",{className:Dt.name},St.createElement(Ut.Z,{title:Re||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},St.createElement("span",{className:Dt.e},Re||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),St.createElement("div",{className:Dt.tags},St.createElement(Ut.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),St.createElement("span",null,ci.challenges_count))),!!ci.myshixuns_count&&St.createElement(Ut.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),St.createElement("span",null,ci.myshixuns_count))),St.createElement(Ut.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},St.createElement("span",null,St.createElement("span",null,ci.level))),St.createElement("div",{className:Dt.rate},St.createElement(se.Z,{allowHalf:!0,disabled:!0,defaultValue:ci.score_info}),St.createElement("span",null,"\xA0",ci.score_info?`${ci.score_info}\u5206`:"5\u5206")))),!_i&&St.createElement("div",{className:Dt.lockWrap},St.createElement("img",{src:`${qt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),St.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Nn.length&&St.createElement(De.Z,null)))},on=Rt(10661),pn={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},fn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDi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ME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",te=Rt(59301),Le=({className:Vn,dataSource:Nn=[],col:Cn=4,right:gi,bottom:Ui=23,precision:Te=0,wrapWidth:Ne=1200,trackEventItems:we,loading:Ye,handleVery:di=()=>!0})=>{const ci=Math.floor((Ne-(Cn-1)*gi)/Cn);return te.createElement(Vt.Z,{spinning:Ye},te.createElement("div",{className:Be()(pn.list,Vn)},!!Nn.length&&Nn.map((Yi,Re)=>{const{subject_identifier:hn,id:xi,identifier:_i,power:Pn}=Yi,Xt=Yi.is_public!=0&&Yi.is_public;return te.createElement("div",{className:pn.wrap,key:xi,style:{width:ci,marginRight:(1+Re)%Cn===0?0:gi+Te,marginBottom:Ui}},te.createElement("a",{className:pn.li,onClick:ye=>{ye.preventDefault(),di(Yi==null?void 0:Yi.first_category_url)&&(we&&(0,Jt.L9)([we]),(0,Jt.xg)(Yi.first_category_url))}},te.createElement("div",{className:pn.top},te.createElement(Ut.Z,{title:Yi.name},te.createElement("div",{className:pn.name},Yi.name)),te.createElement("img",{className:pn.img,src:qt.Z.IMG_SERVER+"/images/"+Yi.avatar_url}),te.createElement("div",{className:pn.text,title:Yi.creator},Yi.creator),hn&&te.createElement("div",{className:pn.btns},te.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),te.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Xt&&te.createElement("div",{className:pn.sign},"\u516C\u5F00")),te.createElement("div",{className:pn.bottom},Yi.visits>0&&te.createElement(Ut.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-liulanyan"}),te.createElement("span",null,Yi.visits))),Yi.course_members_count>0&&te.createElement(Ut.Z,{title:"\u6210\u5458",placement:"bottom"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-chengyuan"}),Yi.course_members_count)),Yi.tasks_count>0&&te.createElement(Ut.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-zuoye"}),Yi.tasks_count)),Yi.is_end?te.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):te.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Yi.is_accessible&&te.createElement("div",{className:pn.lockWrap},te.createElement("img",{src:`${qt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),te.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Nn.length&&te.createElement(De.Z,null)))},dn={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},_e=Rt(25690),Xe=({dataSource:Vn=[],value:Nn,onChange:Cn,className:gi,style:Ui={},tabBarExtraContent:Te})=>St.createElement("div",{className:Be()(dn.tabs,gi),style:Ui},St.createElement("div",{className:dn.tabsWrap},Vn.map((Ne,we)=>!(Ne!=null&&Ne.hide)&&St.createElement("aside",{className:dn.tab,onClick:()=>{Cn(Ne.id),Ne.link&&_e.history.push(Ne.link)},key:we},St.createElement("div",{className:Nn===Ne.id?dn.active:""},Ne.name),(Ne==null?void 0:Ne.resetCount)==null&&(Ne==null?void 0:Ne.total)!==void 0&&St.createElement("span",null,"\uFF08",Ne==null?void 0:Ne.total,"\uFF09"),(Ne==null?void 0:Ne.resetCount)!==void 0&&(Ne==null?void 0:Ne.total)!==void 0&&St.createElement(Ut.Z,{title:(Ne==null?void 0:Ne.tip)!=null?Ne==null?void 0:Ne.tip:""},St.createElement("span",{style:{color:"#9096A3"}},"\uFF08",St.createElement("span",{style:{color:"#000"}},Ne==null?void 0:Ne.resetCount),"/",St.createElement("span",null,Ne==null?void 0:Ne.total),"\uFF09"))))),St.createElement("div",{className:dn.tabBar},Te)),cn=({className:Vn,style:Nn={},children:Cn})=>St.createElement("div",{className:Be()(Vn),style:Nn},Cn),Ie={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},ae=Rt(75727),Pe=Rt(93041);const sn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Tt=({sortValue:Vn,dropValue:Nn,className:Cn,onSort:gi,onDrop:Ui,dataSource:Te=sn})=>{var Ne;return St.createElement("div",{className:Be()(Ie.orderWrap,Cn)},St.createElement(ae.Z,{dropdownRender:()=>St.createElement(Pe.default,null,Te.map((we,Ye)=>St.createElement(Pe.default.Item,{key:Ye,onClick:()=>Ui(we.id)},we.name)))},St.createElement("span",{className:Ie.orderTextWrap},(Ne=Te.find(we=>Nn===we.id))==null?void 0:Ne.name)),St.createElement("span",{className:Ie.orderIconWrap},St.createElement("span",{className:Ie.orderAsc},St.createElement("i",{className:Vn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ie.cursorPointer} ${Ie.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ie.cursorPointer}`,onClick:()=>gi(Vn==="asc"?"desc":"asc")})),St.createElement("span",{className:Ie.orderDesc},St.createElement("i",{className:Vn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ie.cursorPointer} ${Ie.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ie.cursorPointer}`,onClick:()=>gi(Vn==="asc"?"desc":"asc")}))))},Ct={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},xt=Rt(99571),kt=Object.defineProperty,zt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,We=(Vn,Nn,Cn)=>Nn in Vn?kt(Vn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:Cn}):Vn[Nn]=Cn,Ue=(Vn,Nn)=>{for(var Cn in Nn||(Nn={}))Et.call(Nn,Cn)&&We(Vn,Cn,Nn[Cn]);if(zt)for(var Cn of zt(Nn))Ae.call(Nn,Cn)&&We(Vn,Cn,Nn[Cn]);return Vn},jn=(Vn,Nn)=>{var Cn={};for(var gi in Vn)Et.call(Vn,gi)&&Nn.indexOf(gi)<0&&(Cn[gi]=Vn[gi]);if(Vn!=null&&zt)for(var gi of zt(Vn))Nn.indexOf(gi)<0&&Ae.call(Vn,gi)&&(Cn[gi]=Vn[gi]);return Cn},Gn=(Vn,Nn,Cn)=>new Promise((gi,Ui)=>{var Te=Ye=>{try{we(Cn.next(Ye))}catch(di){Ui(di)}},Ne=Ye=>{try{we(Cn.throw(Ye))}catch(di){Ui(di)}},we=Ye=>Ye.done?gi(Ye.value):Promise.resolve(Ye.value).then(Te,Ne);we((Cn=Cn.apply(Vn,Nn)).next())}),ri=Vn=>{var Nn=Vn,{className:Cn,style:gi,children:Ui,loading:Te=!1,openLoading:Ne,onClick:we=()=>{},size:Ye="middle",shape:di="round"}=Nn,ci=jn(Nn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Yi,Re]=(0,St.useState)(!1);return St.createElement(xt.ZP,Ue({onClick:(0,Ce.throttle)(hn=>Gn(void 0,null,function*(){Ne&&Re(!0);try{yield we(hn)}catch(xi){console.log("error",xi)}Ne&&Re(!1)}),2e3,{leading:!0,trailing:!1}),className:Be()(Ct.btn,Ct[`${Ye}-${di}`],Cn),style:gi,size:Ye,shape:di,loading:Yi||Te},ci),Ui)},Sn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},ti=({className:Vn,style:Nn,children:Cn=null,onClick:gi,title:Ui})=>St.createElement("div",{className:Be()(Sn.head,Vn),style:Nn},St.createElement("span",{className:"primary-hover",onClick:gi},St.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),St.createElement("b",{title:Ui},Ui),St.createElement("div",{className:Sn.node},Cn)),Wn={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Ei=({confirmShow:Vn=!0,confirmTitle:Nn,confirmClick:Cn,cancelShow:gi=!0,cancelTitle:Ui,cancelClick:Te,className:Ne,style:we,confirmLoading:Ye=!1})=>St.createElement("div",{className:Be()(Wn.btns,Ne),style:we},Vn&&St.createElement(xt.ZP,{loading:Ye,onClick:Cn,type:"primary",className:Wn.confirm},Nn),gi&&St.createElement(xt.ZP,{onClick:Te,className:Wn.cancel},Ui)),Pi={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},ei=({className:Vn,style:Nn={},LeftContent:Cn,children:gi,RightContent:Ui})=>St.createElement("div",{className:Be()(Pi.fixedBottom,Vn),style:Nn},St.createElement("div",{className:Pi.wrap},St.createElement("div",{className:Pi.left},Cn),St.createElement("div",{className:Pi.center},gi),St.createElement("div",{className:Pi.right},Ui))),gr={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Sr=({className:Vn,style:Nn={},dataSource:Cn=[]})=>St.createElement("div",{className:Be()(gr.crumbs,Vn),style:Nn},Cn.map((gi,Ui)=>Ui<Cn.length-1?St.createElement(St.Fragment,{key:Ui},gi.path||gi.onClick?St.createElement("span",{className:gr.hover,onClick:gi!=null&&gi.onClick?gi.onClick:()=>_e.history.push(gi.path)},gi.name):St.createElement("span",null,gi.name),St.createElement("span",null,"\xA0",">","\xA0")):St.createElement("span",{key:Ui,style:{color:"#5F6368"}},gi.name))),_r=Rt(11938),cr=Object.defineProperty,jo=Object.defineProperties,Yo=Object.getOwnPropertyDescriptors,ko=Object.getOwnPropertySymbols,$o=Object.prototype.hasOwnProperty,ms=Object.prototype.propertyIsEnumerable,Ho=(Vn,Nn,Cn)=>Nn in Vn?cr(Vn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:Cn}):Vn[Nn]=Cn,Go=(Vn,Nn)=>{for(var Cn in Nn||(Nn={}))$o.call(Nn,Cn)&&Ho(Vn,Cn,Nn[Cn]);if(ko)for(var Cn of ko(Nn))ms.call(Nn,Cn)&&Ho(Vn,Cn,Nn[Cn]);return Vn},nr=(Vn,Nn)=>jo(Vn,Yo(Nn)),lo=(Vn,Nn)=>{var Cn={};for(var gi in Vn)$o.call(Vn,gi)&&Nn.indexOf(gi)<0&&(Cn[gi]=Vn[gi]);if(Vn!=null&&ko)for(var gi of ko(Vn))Nn.indexOf(gi)<0&&ms.call(Vn,gi)&&(Cn[gi]=Vn[gi]);return Cn};const{Countdown:Lt}=_r.default;var ii=Vn=>{var Nn=Vn,{onChange:Cn}=Nn,gi=lo(Nn,["onChange"]);const[Ui,Te]=(0,St.useState)(null);(0,St.useEffect)(()=>{typeof Ui=="number"&&Ui>=0&&Cn(Ui)},[Ui]);const Ne=we=>{const Ye=Math.floor(we/1e3);Te(Ye)};return St.createElement(Lt,nr(Go({},gi),{onChange:Ne}))}},37808:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return ee}});var St=Rt(59301);function ee(me,he){const ce=(0,St.useRef)();(0,St.useEffect)(()=>{ce.current=me}),(0,St.useEffect)(()=>{function fe(){ce.current()}if(he!==null){let ue=setInterval(fe,he);return()=>clearInterval(ue)}},[he])}},48716:function(xn,$n,Rt){"use strict";Rt.d($n,{Q8:function(){return Ot},d0:function(){return Le},w6:function(){return te}});var St=Rt(59301),ee=Rt(16326),me=Rt(82326),he=Rt(6767),ce=Rt(62957),fe=Rt(47889),ue=Rt(77019),Be=Rt(5269),Ce=Rt(25399),Bt=Rt(62673),je=Rt(99571),le=Rt(61186),Ge=Rt.n(le),bt=Rt(48790),et=Rt(38986),nt=Rt(89392),ct=Rt.n(nt),lt=Rt(51257),pt=Rt(22982),vt=Rt(25690),Pt=Rt(43155),Dt=Rt(40197),Vt=Rt(59229),Ut=Rt(3039),se=Rt(75736),qt=Rt(59301),Jt=Object.defineProperty,Me=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,Fn=(ke,cn,Ie)=>cn in ke?Jt(ke,cn,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):ke[cn]=Ie,on=(ke,cn)=>{for(var Ie in cn||(cn={}))De.call(cn,Ie)&&Fn(ke,Ie,cn[Ie]);if(He)for(var Ie of He(cn))tn.call(cn,Ie)&&Fn(ke,Ie,cn[Ie]);return ke},pn=(ke,cn)=>Me(ke,pe(cn)),fn=(ke,cn,Ie)=>new Promise((ae,Pe)=>{var sn=Ct=>{try{Tt(Ie.next(Ct))}catch(xt){Pe(xt)}},an=Ct=>{try{Tt(Ie.throw(Ct))}catch(xt){Pe(xt)}},Tt=Ct=>Ct.done?ae(Ct.value):Promise.resolve(Ct.value).then(sn,an);Tt((Ie=Ie.apply(ke,cn)).next())});function te(ke,cn){const Ie=[];for(let ae=ke;ae<cn;ae++)Ie.push(ae);return Ie}const Ot=(ke,cn,Ie)=>{const ae=ke<Ge()().startOf("day"),Pe=ke>Ge()(cn).endOf("day"),sn=ke<Ge()(Ie).startOf("day");return cn?Ie?Ge()()<=Ge()(Ie)?sn||Pe:ae||Pe:ke&&ae||Pe:Ie&&Ge()()<=Ge()(Ie)?sn:ae},Le=(ke,cn)=>{const Ie=parseInt(Ge()(ke).format("HH")),ae=parseInt(Ge()().format("HH")),Pe=parseInt(Ge()().format("mm"));if(!ke)return{disabledHours:()=>te(0,ae),disabledMinutes:()=>te(0,Pe)};if(cn){const sn=parseInt(Ge()(cn).format("HH")),an=parseInt(Ge()(cn).format("mm"));return Ge()(ke).isSame(Ge()(cn),"day")?{disabledHours:()=>te(0,sn),disabledMinutes:()=>Ie<=sn?te(0,an):[]}:void 0}if(Ge()(ke).isSame(Ge()(),"day"))return{disabledHours:()=>te(0,ae),disabledMinutes:()=>Ge()(ke).isSame(Ge()(),"hour")&&Ie<=ae?te(0,Pe):[]}},dn=(ke,cn)=>ke==null?void 0:ke.map(Ie=>{var ae;return(ae=cn==null?void 0:cn.find(Pe=>Pe.value===Ie))==null?void 0:ae.id}),{RangePicker:_e}=ee.default,{Option:ve}=me.default,Xe=({shixunHomeworks:ke,loading:cn,dispatch:Ie,classroomList:ae,user:Pe})=>{var sn,an,Tt,Ct,xt,kt,zt,Et,Ae;const We=(0,vt.useParams)(),{workSetting:Ue,workList:jn,shixunWorkList:Gn,headerInfo:Ke,changeData:ri}=ke,[Sn,hi]=(0,St.useState)(!1),[ti,Wn]=(0,St.useState)(!1);let[bi,Ei]=(0,St.useState)([]),[Pi,An]=(0,St.useState)([]),[ei,gr]=(0,St.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:Pt.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[dr,Sr]=(0,St.useState)({}),[_r,cr]=(0,St.useState)({});(0,St.useEffect)(()=>()=>{Ei([])},[]),(0,St.useEffect)(()=>{hi(!(0,bt.GJ)())},[(0,bt.GJ)()]);const jo=()=>{Ie({type:"shixunHomeworks/getWorkSetting",payload:on({},We)})};(0,St.useEffect)(()=>{if(!(Ue!=null&&Ue.course_id))return;Object.keys(ei).map(function(ii){ei[ii]=Ue[ii]}),(!ei.allow_late||!ei.unified_late)&&(ei.late_penalty=20,ei.penalty_type=Pt.Q.Percent),ei.unified_setting||(ei.unified_late=!1,ei.unified_anonymous_comment=!1,ei.unified_anonymous_appeal=!1),bi=JSON.parse(JSON.stringify(Ue.group_settings.map(ii=>pn(on({},ii),{group_name:[ii.group_name]})).filter(ii=>ii.publish_time!==null))),Pi=JSON.parse(JSON.stringify(Ue.allow_late_settings.map(ii=>pn(on({},ii),{group_name:[ii.group_name]})).filter(ii=>ii.late_time!==null))),gr(on({},ei));const Rn=(0,lt.QE)((bi==null?void 0:bi.length)>0?bi:[]);Ei([...Rn]),(Pi==null?void 0:Pi.length)<=0?An([{penalty_type:Pt.Q.Percent,late_penalty:20}]):An([...Pi])},[Ue]);const Yo=()=>fn(void 0,null,function*(){var Rn,ii;if(((Rn=Pe==null?void 0:Pe.userInfo)==null?void 0:Rn.user_status)===2){(0,Dt.Rd)();return}const Vn=JSON.parse(JSON.stringify(ei));if(Vn.challenge_settings.filter(Cn=>!Cn.hide),Vn.categoryId=We.categoryId,(ii=Vn.challenge_settings)!=null&&ii.every(Cn=>!Cn.checked)){he.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(bi),!ei.unified_setting)bi=bi==null?void 0:bi.map(Cn=>{var gi;if(!Cn.publish_time||!Cn.end_time)throw he.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Cn.group_name)throw he.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Cn.group_name=typeof(Cn==null?void 0:Cn.group_name)=="string"?[Cn==null?void 0:Cn.group_name]:Cn==null?void 0:Cn.group_name,Cn.group_id=(gi=Ue.group_settings)==null?void 0:gi.filter(Ui=>{var Te;return(Te=Cn==null?void 0:Cn.group_name)==null?void 0:Te.includes(Ui.group_name)}).map(Ui=>Ui.group_id||Ui.id).toString().split(","),Cn});else if(!ei.publish_time||!ei.end_time)throw he.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(Vn.group_settings=bi,ei.allow_late)if(ei.unified_late){if(ei.late_penalty===null||ei.late_penalty===void 0||ei.late_penalty<0||ei.late_penalty>100)throw he.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!ei.late_time)throw he.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else Pi=Pi==null?void 0:Pi.map(Cn=>{var gi,Ui;if(Cn.late_penalty===null||Cn.late_penalty===void 0||Cn.late_penalty<0||Cn.late_penalty>100)throw he.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Cn.late_time)throw he.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Cn.group_name)throw he.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Cn.group_name=typeof(Cn==null?void 0:Cn.group_name)=="string"?[Cn==null?void 0:Cn.group_name]:Cn==null?void 0:Cn.group_name,Cn.group_id=(Ui=(gi=Cn==null?void 0:Cn.group_name)==null?void 0:gi.map(Te=>{var Ne,we;let Ye=(we=(Ne=Ue.group_settings)==null?void 0:Ne.filter(di=>(di==null?void 0:di.group_name)===Te))==null?void 0:we[0];return Ye==null?void 0:Ye.group_id}))==null?void 0:Ui.toString().split(","),Cn}),Vn.allow_late_settings=Pi;let Nn=yield(0,se.Tr)({homework_common_ids:[parseInt(We.categoryId)],course_id:We.coursesId,type:"homework_common"});(Nn==null?void 0:Nn.student_count)===0?ko(Vn):(cr(Vn),Sr(Nn))}),ko=Rn=>{var ii;if(Rn.total_score===null){he.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Rn!=null&&Rn.work_efficiency&&Rn.eff_score===null){he.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const Vn=Rn.challenge_settings.reduce((gi,Ui)=>gi+Number(Ui.challenge_score),0);if((Vn==null?void 0:Vn.toFixed(10))!==((ii=Rn.total_score-Rn.eff_score)==null?void 0:ii.toFixed(10))){he.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Rn.total_score}\u5206`);return}const Nn={shixun_evaluation:Rn.shixun_evaluation,challenge_settings:Rn.challenge_settings};let Cn=()=>{var gi;const Ui=()=>fn(void 0,null,function*(){Wn(!0),(yield(0,et.ZP)(`/api/homework_commons/${We.categoryId}/publish_setting.json`,{method:"post",body:on({},Rn)})).status===0&&(he.ZP.success("\u66F4\u65B0\u6210\u529F"),jo(),Ie({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:on({},We)})),Wn(!1)});!(0,nt.isEqual)(ri,Nn)&&!((gi=Ke==null?void 0:Ke.homework_status)!=null&&gi.includes("\u672A\u53D1\u5E03"))?ce.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Ui}):Ui()};Ue!=null&&Ue.high_resources_consume&&!(Ue!=null&&Ue.high_resources_consume_permission)?Ie({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:We.coursesId,type:"shixun",type_id:We.categoryId,name:Ue.homework_name,fn:()=>{Cn()}}}):Cn()},$o=(Rn,ii,Vn="group_id")=>{var Nn;return ii?ii.find(Cn=>Cn[Vn]===Rn):(Nn=Ue==null?void 0:Ue.group_settings)==null?void 0:Nn.find(Cn=>Cn.group_id[0]===Rn)},ms=(Ue==null?void 0:Ue.allow_late)||(Ue==null?void 0:Ue.anonymous_comment),Ho=Rn=>{var ii,Vn;const Nn=$o(Rn,Ue==null?void 0:Ue.allow_late_settings,"id"),Cn=$o(Rn,Ue==null?void 0:Ue.anonymous_comment_settings),gi=$o(Rn);return(Ue==null?void 0:Ue.allow_late)&&Nn&&Ge()(Nn==null?void 0:Nn.late_time)<=Ge()()||(Ue==null?void 0:Ue.anonymous_comment)&&Cn&&(Cn==null?void 0:Cn.evaluation_start)!==null||((Vn=(Ge()(gi==null?void 0:gi.end_time)<=Ge()()&&((ii=Ue==null?void 0:Ue.allow_late_settings)==null?void 0:ii.filter(Ui=>Ui.group_id.includes(Rn))))[0])==null?void 0:Vn.late_time)!=null},Go=(0,St.useMemo)(()=>(Ue==null?void 0:Ue.allow_late)||(Ue==null?void 0:Ue.all_group_late),[Ue,Ke]),nr=Ue==null?void 0:Ue.anonymous_comment,lo=Rn=>{if(!Rn)return!1;const ii=$o(Rn,Ue==null?void 0:Ue.anonymous_comment_settings);return(Ue==null?void 0:Ue.anonymous_comment)&&ii&&(ii==null?void 0:ii.evaluation_start)!==null},Lt=(Rn,ii)=>{var Vn,Nn,Cn,gi,Ui;Rn!=null&&Rn.group_id||(Rn.group_id=dn(Rn==null?void 0:Rn.group_name,Ue==null?void 0:Ue.group_settings)),Ie({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Rn,index:ii,rangePickerDisabled:(Nn=(Vn=Rn==null?void 0:Rn.group_id)==null?void 0:Vn[0])!=null&&Nn.publish_time?Sn||(Ge()()<=Ge()((gi=$o((Cn=Rn==null?void 0:Rn.group_id)==null?void 0:Cn[0]))==null?void 0:gi.publish_time)?!1:[!0,Ho((Ui=Rn==null?void 0:Rn.group_id)==null?void 0:Ui[0])]):!1,disabledDate:Ue==null?void 0:Ue.course_end_date}})};return qt.createElement("section",{className:pt.Z.form},qt.createElement("div",{className:pt.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",qt.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),qt.createElement("div",null,qt.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},qt.createElement(fe.ZP.Group,{disabled:Sn||!((sn=Ke==null?void 0:Ke.homework_status)!=null&&sn.includes("\u672A\u53D1\u5E03"))||(0,bt.Rm)()&&!((an=ae.AssistantObject.practice)!=null&&an.can_publish),value:ei.unified_setting,onChange:Rn=>{var ii;if(!((ii=Ke==null?void 0:Ke.homework_status)!=null&&ii.includes("\u672A\u53D1\u5E03"))){he.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(ei.unified_setting=!ei.unified_setting,ei.unified_setting||(ei.unified_late=!1,An([{late_penalty:5}])),gr(Object.assign({},ei)),ei.unified_setting===!1&&bi==""){Ei(bi.concat({}));return}ei.unified_setting&&(Ei([]),An([{late_penalty:5}]))}},qt.createElement(fe.ZP,{value:!0,disabled:Sn||!(Ue!=null&&Ue.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),qt.createElement(fe.ZP,{disabled:Sn||!((Tt=Ue==null?void 0:Ue.group_settings)!=null&&Tt.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((Ct=Ue==null?void 0:Ue.group_settings)==null?void 0:Ct.length)===0&&qt.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),ei.unified_setting&&qt.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},qt.createElement(ue.Z,{align:"middle"},qt.createElement(Be.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),qt.createElement(Be.Z,{className:"ml10"},qt.createElement(ee.default,{size:"large",disabled:Sn||!((xt=Ke==null?void 0:Ke.homework_status)!=null&&xt.includes("\u672A\u53D1\u5E03")||(kt=Ke==null?void 0:Ke.homework_status)!=null&&kt.includes("\u672A\u5F00\u59CB"))||(0,bt.Rm)()&&!((zt=ae.AssistantObject.practice)!=null&&zt.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:Rn=>Ot(Rn,Ue==null?void 0:Ue.course_end_date),disabledTime:Rn=>Le(Rn),value:ei.publish_time?Ge()(ei.publish_time):"",onChange:(Rn,ii)=>{ei.publish_time=ii,(ei.end_time==""||!ei.end_time)&&ei.unified_setting&&(ei.end_time=Ge()(Rn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),gr(Object.assign({},ei))}}))),qt.createElement(ue.Z,{align:"middle",className:"pl30"},qt.createElement(Be.Z,null,"\u622A\u6B62\u65F6\u95F4"),qt.createElement(Be.Z,{className:"ml10"},qt.createElement(ee.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ge()((0,lt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Ue==null?void 0:Ue.allow_late)&&(Ue==null?void 0:Ue.homework_status.includes("\u5DF2\u622A\u6B62"))||Sn||(Ue==null?void 0:Ue.allow_late)&&Ge()()>=Ge()(Ue==null?void 0:Ue.end_time)||(0,bt.Rm)()&&!((Et=ae.AssistantObject.practice)!=null&&Et.can_publish),disabledDate:Rn=>Ot(Rn,Ue==null?void 0:Ue.course_end_date,ei.publish_time),disabledTime:Rn=>Le(Rn,ei.publish_time),value:ei.end_time?Ge()(ei.end_time):"",onChange:(Rn,ii)=>{ei.end_time=ii,gr(Object.assign({},ei))}})))),!ei.unified_setting&&(bi==null?void 0:bi.length)>0&&qt.createElement(ue.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},bi&&bi.map(function(Rn,ii){var Vn,Nn,Cn,gi,Ui,Te,Ne;return qt.createElement(Be.Z,{span:24,key:ii},qt.createElement(ue.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:ii==(bi==null?void 0:bi.length)-1?"0px":"10px"}},qt.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",ii+1),qt.createElement(me.default,{disabled:Sn||((Vn=Ke==null?void 0:Ke.homework_status)!=null&&Vn.includes("\u672A\u53D1\u5E03")&&Rn.id||Ge()()<Ge()(Rn==null?void 0:Rn.publish_time)?!1:!!(Rn!=null&&Rn.publish_time))||(0,bt.Rm)()&&!((Nn=ae.AssistantObject.practice)!=null&&Nn.can_publish),mode:"multiple",className:pt.Z.multiple_select,style:{width:"250px"},value:Rn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:we=>{var Ye;if((0,bt.Rm)()&&!((Ye=ae.AssistantObject.practice)!=null&&Ye.can_publish)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}bi[ii].group_name=we,bi[ii].group_id=Rn.group_id;const di=(0,nt.flattenDeep)(bi.map(Yi=>Yi.group_name)),ci=Pi.map(Yi=>{let Re=(Yi==null?void 0:Yi.group_name)||[];return pn(on({},Yi),{group_name:(0,nt.remove)(Re,hn=>di.includes(hn))})});An(ci),Ei(bi.slice())},maxTagCount:4,maxTagPlaceholder:we=>qt.createElement("div",{style:{cursor:"pointer"},onClick:()=>Lt(Rn,ii)},"+",we==null?void 0:we.length)},Ue.group_settings&&Ue.group_settings.map(function(we){if(!bi.map(di=>di.group_name).flat().includes(we.group_name))return qt.createElement(ve,{value:we.group_name,key:we.id},we.group_name)})),qt.createElement("div",{className:"ml20"},qt.createElement(_e,{size:"large",ranges:{\u6B64\u523B:[Rn.publish_time?Ge()(Rn.publish_time):Ge()(),Ge()()]},allowClear:!1,disabled:Sn||(Ge()()<=Ge()((gi=$o((Cn=Rn==null?void 0:Rn.group_id)==null?void 0:Cn[0]))==null?void 0:gi.publish_time)?!1:[!0,Ho((Ui=Rn==null?void 0:Rn.group_id)==null?void 0:Ui[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:we=>Ot(we,Ue==null?void 0:Ue.course_end_date),disabledTime:we=>Le(we),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Ge()((0,lt.U6)(),"HH:mm"),Ge()((0,lt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[Rn.publish_time?Ge()(Rn.publish_time):void 0,Rn.end_time?Ge()(Rn.end_time):void 0],onChange:(we,Ye)=>{var di;if((0,bt.Rm)()&&!((di=ae.AssistantObject.practice)!=null&&di.can_publish)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}bi[ii].publish_time=Ye[0],!Rn.end_time&&Ye[0]?bi[ii].end_time=Ge()(Ye[0]).add(7,"days"):bi[ii].end_time=Ye[1],Ei([...bi])},onCalendarChange:(we,Ye,di)=>{if(Ye!=null&&Ye[0]&&!Ye[1]){const ci=Ge()(Ye[0]).add(7,"days");bi[ii].publish_time=Ye[0],bi[ii].end_time=ci,Ei([...bi])}}})),!Sn&&qt.createElement("div",{style:{display:"flex",width:"50px"}},((Te=Rn==null?void 0:Rn.group_id)==null?void 0:Te.length)>1&&qt.createElement(Ce.Z,{title:"\u89C4\u5219\u62C6\u5206"},qt.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Lt(Rn,ii)})),bi.length<((Ne=Ue==null?void 0:Ue.group_settings)==null?void 0:Ne.length)&&qt.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var we;if((0,bt.Rm)()&&!((we=ae.AssistantObject.practice)!=null&&we.can_publish)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ei(bi.concat({}))}}),((Rn==null?void 0:Rn.publish_time)&&Ge()()<Ge()(Rn==null?void 0:Rn.publish_time)||!(Rn!=null&&Rn.publish_time))&&ii!=0&&qt.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const we=(0,nt.cloneDeep)(Pi);we.forEach((Ye,di)=>{Ye.group_name&&(Ye.group_name=Ye.group_name.filter(ci=>{var Yi;return!((Yi=bi[ii].group_name)!=null&&Yi.includes(ci))}))}),bi=bi.filter((Ye,di)=>ii!==di),An(we),Ei(bi.slice()),setTimeout(()=>Ei(bi.slice()),10)}}))))}))),qt.createElement(ue.Z,null,qt.createElement(Be.Z,null,qt.createElement("div",{className:pt.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",qt.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),qt.createElement(Be.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},qt.createElement(Bt.default,{checked:ei.allow_late,disabled:Sn||Go,onChange:Rn=>{var ii;if((0,bt.Rm)()&&!((ii=ae.AssistantObject.practice)!=null&&ii.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Rn.target.checked&&ce.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:qt.createElement("div",{style:{padding:10,background:"#f5f6f9"}},qt.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),qt.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),qt.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),ei.allow_late=!ei.allow_late,Pi==""&&An([{late_penalty:5}]),gr(Object.assign({},ei))}},qt.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(ei==null?void 0:ei.allow_late)&&qt.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},qt.createElement("div",{style:{display:"flex"}},qt.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),qt.createElement(fe.ZP.Group,{style:{marginLeft:"20px"},disabled:Sn||(Ue==null?void 0:Ue.anonymous_comment)||(Ue==null?void 0:Ue.allow_late),value:ei.unified_late,onChange:Rn=>{var ii;if((0,bt.Rm)()&&!((ii=ae.AssistantObject.practice)!=null&&ii.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ei.unified_late=Rn.target.value,Pi==""&&!Rn.target.value&&An([{penalty_type:Pt.Q.Percent,late_penalty:20}]),gr(on({},ei))}},(ei==null?void 0:ei.unified_setting)&&qt.createElement(fe.ZP,{value:!0,disabled:!(Ue!=null&&Ue.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((Ae=Ue==null?void 0:Ue.group_settings)==null?void 0:Ae.length)>0&&qt.createElement(fe.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),ei!=null&&ei.unified_late?qt.createElement(qt.Fragment,null,qt.createElement(ue.Z,{align:"middle",style:{marginTop:"10px"}},qt.createElement(Be.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),qt.createElement(Be.Z,{className:"ml20"},qt.createElement(Pt.Z,{disabled:Sn||nr,value:{type:ei.penalty_type,inputValue:ei.late_penalty},onChange:Rn=>{var ii;if((0,bt.Rm)()&&!((ii=ae.AssistantObject.practice)!=null&&ii.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}gr(pn(on({},ei),{late_penalty:Rn.inputValue,penalty_type:Rn.type}))}})),qt.createElement(Be.Z,{flex:"1",className:"ml5"},qt.createElement("span",{className:"c-grey-c ml10"},ei.penalty_type===Pt.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),qt.createElement(ue.Z,{align:"middle",style:{marginTop:"15px"}},qt.createElement(Be.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),qt.createElement(Be.Z,{className:"ml20"},qt.createElement(ee.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ge()((0,lt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Sn||nr,value:ei.late_time?Ge()(ei.late_time):"",disabledDate:Rn=>Ot(Rn,Ue==null?void 0:Ue.course_end_date),onChange:(Rn,ii)=>{var Vn;if((0,bt.Rm)()&&!((Vn=ae.AssistantObject.practice)!=null&&Vn.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ei.late_time=ii,gr(Object.assign({},ei))}})))):Pi.map(function(Rn,ii){var Vn;return qt.createElement(Be.Z,{span:24,key:ii},qt.createElement(ue.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},qt.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",ii+1),qt.createElement(me.default,{disabled:Sn||!((Vn=Ke==null?void 0:Ke.homework_status)!=null&&Vn.includes("\u672A\u53D1\u5E03"))&&Rn.id||(Ue==null?void 0:Ue.anonymous_comment),mode:"multiple",className:pt.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Rn.group_name=="string"?[Rn.group_name]:Rn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Nn=>{var Cn;if((0,bt.Rm)()&&!((Cn=ae.AssistantObject.practice)!=null&&Cn.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Pi[ii].group_name=Nn,Pi[ii].group_id=Rn.group_id,An(Pi.slice())}},Ue.group_settings&&Ue.group_settings.map(function(Nn){const Cn=Pi.map(Ui=>Ui.group_name).flat(),gi=bi.map(Ui=>Ui.group_name).flat();if(ei!=null&&ei.unified_setting){if(!Cn.includes(Nn.group_name))return qt.createElement(ve,{value:Nn.group_name,key:Nn.id},Nn.group_name)}else if(gi.includes(Nn.group_name)&&!Cn.includes(Nn.group_name))return qt.createElement(ve,{value:Nn.group_name,key:Nn.id},Nn.group_name)})),qt.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),qt.createElement(Pt.Z,{disabled:Sn||lo(Rn.id),value:{type:Rn.penalty_type,inputValue:Rn.late_penalty},onChange:Nn=>{var Cn;if((0,bt.Rm)()&&!((Cn=ae.AssistantObject.practice)!=null&&Cn.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Pi[ii].late_penalty=Nn.inputValue,Pi[ii].penalty_type=Nn.type,An([...Pi])}}),qt.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),qt.createElement(ee.default,{size:"large",disabled:Sn||lo(Rn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:Ge()((0,lt.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:Nn=>Ot(Nn,Ue==null?void 0:Ue.course_end_date),format:"YYYY-MM-DD HH:mm",value:Rn!=null&&Rn.late_time?Ge()(Rn.late_time):void 0,onChange:(Nn,Cn)=>{var gi;if((0,bt.Rm)()&&!((gi=ae.AssistantObject.practice)!=null&&gi.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Pi[ii].late_time=Cn,An([...Pi])}}),!Sn&&qt.createElement("div",{style:{display:"flex",width:"50px"}},qt.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Nn;if((0,bt.Rm)()&&!((Nn=ae.AssistantObject.practice)!=null&&Nn.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}An(Pi.concat({penalty_type:Pt.Q.Percent,late_penalty:20}))}}),ii>0&&!Rn.id&&qt.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var Nn;if((0,bt.Rm)()&&!((Nn=ae.AssistantObject.practice)!=null&&Nn.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Pi=Pi.filter((Cn,gi)=>ii!==gi),An(Pi.slice()),setTimeout(()=>An(Pi.slice()),10)}}))))})),!Sn&&qt.createElement(qt.Fragment,null,qt.createElement(je.ZP,{type:"primary",size:"large",loading:ti,style:{width:"138px",marginTop:"30px"},onClick:()=>Yo()},"\u4FDD\u5B58")),qt.createElement(Vt.Z,{onConfirm:(Rn,ii)=>{bi.splice(Rn,0,...ii),bi.splice(Rn+ii.length,1);const Vn=(0,lt.QE)([...bi]);Ei([...Vn])}}),qt.createElement(Ut.Z,{resdata:dr,type:"shixun",okloading:ti,oktext:(dr==null?void 0:dr.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Rn=>fn(void 0,null,function*(){Wn(!0);let ii=yield(0,et.ZP)(`/api/courses/${We.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(We.categoryId)]}});Wn(!1),(ii==null?void 0:ii.status)===0&&ko(_r)})}))};$n.ZP=(0,vt.connect)(({shixunHomeworks:ke,classroomList:cn,loading:Ie,user:ae})=>({shixunHomeworks:ke,classroomList:cn,loading:Ie.effects,user:ae}))(Xe)},59229:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return ct}});var St=Rt(59301),ee=Rt(25690),me=Rt(16326),he=Rt(62957),ce=Rt(37568),fe=Rt(6767),ue=Rt(77019),Be=Rt(5269),Ce={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Bt=Rt(61186),je=Rt.n(Bt),le=Rt(51257),Ge=Rt(28426),bt=Rt(59301);const{RangePicker:et}=me.default,nt=({dispatch:lt,classroomList:pt,onConfirm:vt})=>{const[Pt,Dt]=(0,St.useState)([]),[Vt,Ut]=(0,St.useState)([]),[se,qt]=(0,St.useState)(""),[Jt,Me]=(0,St.useState)([!1,!1]);(0,St.useEffect)(()=>{var De,tn,Fn,on;if(pt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((De=pt.actionTabs)==null?void 0:De.rangePickerDisabled),(tn=pt.actionTabs)!=null&&tn.rangePickerDisabled?Me((Fn=pt.actionTabs)==null?void 0:Fn.rangePickerDisabled):Me([!1,!1]);let pn=pt.actionTabs.data,fn=(on=pn==null?void 0:pn.group_name)==null?void 0:on.map((te,Ot)=>{var Le;return{group_id:pn==null?void 0:pn.group_id[Ot],group_name:pn==null?void 0:pn.group_name[Ot],is_admin:pn==null?void 0:pn.is_admin,end_time:pn==null?void 0:pn.end_time,publish_time:Array.isArray(pn==null?void 0:pn.publish_time)?(Le=pn==null?void 0:pn.publish_time)==null?void 0:Le[0]:pn==null?void 0:pn.publish_time}});fn&&(Dt([...fn]),Ut([...fn]))}},[pt.actionTabs]);const pe=()=>{lt({type:"classroomList/setActionTabs",payload:{}}),qt("")},He=De=>{if(De){const tn=Vt==null?void 0:Vt.filter(Fn=>{var on,pn;return(pn=(on=Fn==null?void 0:Fn.group_name)==null?void 0:on.toLowerCase())==null?void 0:pn.includes(De==null?void 0:De.toLowerCase())});Dt(tn)}else Dt(Vt)};return bt.createElement(he.default,{width:980,title:bt.createElement("div",{style:{fontWeight:"bold",display:"flex"}},bt.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",bt.createElement("span",{className:Ce.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),bt.createElement(ce.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:se,onChange:De=>{qt(De.target.value.trim()),He(De.target.value.trim())}})),centered:!0,maskClosable:!1,open:pt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>pe(),onOk:()=>{var De;if(Vt.some(Fn=>!Fn.end_time||!Fn.publish_time)){fe.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}vt((De=pt.actionTabs)==null?void 0:De.index,Vt),pe()}},bt.createElement("div",{className:Ce.modal_con},bt.createElement(ue.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(Pt==null?void 0:Pt.length)>0?Pt.map(function(De,tn){return bt.createElement(Be.Z,{span:24,key:tn},bt.createElement(ue.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:tn==(Pt==null?void 0:Pt.length)-1?"0px":"10px"}},bt.createElement("div",{className:Ce.multiple_select,title:De==null?void 0:De.group_name},De==null?void 0:De.group_name),bt.createElement("div",{className:"ml20"},bt.createElement(et,{size:"large",allowClear:!1,disabled:Jt,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Fn=>{var on;return(0,le.Q8)(Fn,(on=pt.actionTabs)==null?void 0:on.disabledDate)},disabledTime:Fn=>(0,le.d0)(Fn),showTime:{showNow:!0,format:"HH:mm",defaultValue:[je()((0,le.U6)(),"HH:mm"),je()((0,le.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(De==null?void 0:De.publish_time)&&[je()(De==null?void 0:De.publish_time),De!=null&&De.end_time?je()(De==null?void 0:De.end_time):void 0],onChange:(Fn,on)=>{Pt[tn].publish_time=on[0],Pt[tn].end_time=on[1],Dt([...Pt]),Vt.forEach(pn=>{pn.group_id===(De==null?void 0:De.group_id)&&(pn.publish_time=on[0],pn.end_time=on[1])}),Ut([...Vt])},onCalendarChange:(Fn,on,pn)=>{if(on!=null&&on[0]&&!on[1]){const fn=je()(on[0]).add(7,"days");Pt[tn].publish_time=on[0],Pt[tn].end_time=fn,Dt([...Pt]),Vt.forEach(te=>{te.group_id===(De==null?void 0:De.group_id)&&(te.publish_time=on[0],te.end_time=fn)}),Ut([...Vt])}}})),Jt[0]?bt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):bt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{Pt.splice(tn,1),Dt([...Pt]),Vt.forEach((Fn,on)=>{Fn.group_id===(De==null?void 0:De.group_id)&&Vt.splice(on,1)}),Ut([...Vt])}})))}):bt.createElement(Ge.Z,null))))};var ct=(0,ee.connect)(({classroomList:lt})=>({classroomList:lt}))(nt)},66493:function(xn,$n,Rt){"use strict";Rt.r($n),Rt.d($n,{default:function(){return pn}});var St=Rt(59301),ee={flex_box_center:"flex_box_center___Mycwq",flex_space_between:"flex_space_between___Xbrn7",flex_box_vertical_center:"flex_box_vertical_center___Y038R",flex_box_center_end:"flex_box_center_end___PH9yW",flex_box_column:"flex_box_column___BegNe",body:"body___nOABp",Onerow:"Onerow___dGLJJ",MultiLine:"MultiLine___QhT8_",divbox:"divbox___y8Apd",GuideIcon:"GuideIcon___ooxgw",Guide:"Guide___hS9i1",GuideItem:"GuideItem___RMU_S",Title:"Title___a3Njm",Overview:"Overview___xEPym",OverviewIcon:"OverviewIcon___aHj1M",OverviewNum:"OverviewNum___m5Gze",OverviewName:"OverviewName___ieWMD",BadgeDot:"BadgeDot___dmDYU",left69:"left69___dTE5Q",left55:"left55___E3b4z",Active16:"Active16___UsmSC",Action:"Action___FZzt9",ActionItem:"ActionItem___HIqhX",ActionItemName:"ActionItemName___o_fmR",ActionItemDes:"ActionItemDes___wF2m3",Steps:"Steps___o0fdB",Status:"Status___DkqBa",StepsItemActive:"StepsItemActive___uCmfI",StepsItem:"StepsItem___uuysT",StepsItemLeft:"StepsItemLeft___yikqm",StepsItemCent:"StepsItemCent___uiT_W",StepsItemCentDot:"StepsItemCentDot___NO_kn",StepsItemRight:"StepsItemRight___gSq33",StepsItemRightTitle:"StepsItemRightTitle___XRf_G",shezhi:"shezhi___V4H3V"},me=Rt(25690),he=Rt(77019),ce=Rt(5269),fe=Rt(25399),ue=Rt(458),Be=Rt(88390),Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQEAAADICAYAAADofFQ1AAAAAXNSR0IArs4c6QAAIABJREFUeF7tfQd4XNXx72/uriRbZVfu3cYNbNPBiekBQu8ktJCEWJIhPSSBJPAnvACPkEpeXkh1LMl5hNAhGAglIZQACcF0G4N7lbulXVlde+d9s6s1srTllnNXd1fnfJ8+J+ycOXN+597fndNmCAVayqt4ToDMq8A0DYRyAq9lNt6N1NPCAu2yb7o15vNc1hbAHMOIHcwIzAHzwTCogU3zHWLzwwAFP9hTT5t8Y/AgN4QKsf+h6tgtBPoWgFC//jHeYKKbo3X0VCH2fSD7FJrP55CBiwC+GMDITLYw8LIBetQkLI7W0p6BtHuwt11wJBCu5i8B/LssA7u626ATWhbR9sH+AKjqf7iG7wDzjXb1MdFyMH4UraN77NbV8moQKCgSKL2GxxV1c4MVaAh8V1Nd4BtWZLV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v36zqyNtKp9+7RKUZcfqsXMidSx6MEqgJASx1ZijKTwdLxIep80WVkeZRbPmQFP9GV495R49uRACz3xcputnzo5XMhsJZAax1Bid2qxJL4zt7m7DsVnDIsSujHB9JX11RrDxDB4kBadXsLMCUXOzidC7HzMAG7ixoUEmakFpeMaw50+L5dKKKihK4a7Y9m7gkF6U12HVhOnP69vpIotItSTwhULgGVStteTQhnbRF7eswrCf5iZ4t+bTEUiha6anxo3OgN+NCVqyPq6a4En84U012pKwQqg4BPPy3wWovrls4dYTKNvvZGbW+xoy6J0I8N8n+NVPH9AV/2MdDndlCd+55Kn/6jVtElUpKGK3YCpX55EFD7ywM+gjrCWW1BVaveVCotV0lnsBhP0qvcXNRg568kQlfOnxjk19ScFrsUISAEiiSgHoTJlLvbWHI1WTKhnxF7lY/vV3c6SxECQqAwAurSUvUkv7CTvlmYh+xaJRW6cv/QE1y9u5a/Wx3C80vVSfEjBLxCYC6GEyMxuuKlB51ft+SETcmFfqbRJwb5MyG/cU04SPVOOiI2QsDLBJYTPLmcxDcu6tCztn+Xgsu6CX316c7saxkx3l8VpNf7NRzM9/KhFAMSH0KgXAisvpw2cCye4H+JtmkffRFRer36vq5CP7fTR57i80N+481+H10FwnYNqNF9iIChr9fgxK8Q2DIECJlMGjEDWARjLp2m+zIZfOXi/dS7EX38/yomdUyE12zdAAAAAElFTkSuQmCC",bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAADICAYAAAAZdw+4AAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQeYXFX1/533ZmZTdzZASC+bBklAukQ6gnSUItIEsrMQmihiQYwooKBiQ1H/GNjZQASVJnawgRQBCZAAoaTMkpBsCik7m7pT3vl/Z95OMruZfe/Nmzcz9+3O/b79gs4t55575zfnnkqotioHCuTAkEs7PmIEQxeA+aacoTGAYgBiIMTA6RZAjzEh1t5EGwtcotpdcQ6Q4vRVyVOMA7Uz+TQingPCqAJIa8sAigCLgIr8N6damAKx9jGI4RYyCpir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B3Ayrr2CbAwYfUzjC0g+98yQJYCtBtFLAUxDMHTgDwNJJ7CCJ62N6vxiycI+/8HfEVpfO0A478AAAAASUVORK5CYII=",lt=Rt(9148),pt=Rt(12309),vt=Rt(28426),Pt=Rt(89674),Dt=Rt(346),Vt=Rt(48790),Ut=Object.defineProperty,se=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,He=(fn,te,Ot)=>te in fn?Ut(fn,te,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):fn[te]=Ot,De=(fn,te)=>{for(var Ot in te||(te={}))Me.call(te,Ot)&&He(fn,Ot,te[Ot]);if(Jt)for(var Ot of Jt(te))pe.call(te,Ot)&&He(fn,Ot,te[Ot]);return fn},tn=(fn,te)=>se(fn,qt(te)),Fn=(fn,te,Ot)=>new Promise((Le,dn)=>{var _e=ke=>{try{Xe(Ot.next(ke))}catch(cn){dn(cn)}},ve=ke=>{try{Xe(Ot.throw(ke))}catch(cn){dn(cn)}},Xe=ke=>ke.done?Le(ke.value):Promise.resolve(ke.value).then(_e,ve);Xe((Ot=Ot.apply(fn,te)).next())});const on=({graduations:fn,loading:te,user:Ot,dispatch:Le})=>{var dn,_e,ve,Xe,ke,cn,Ie,ae,Pe,sn,an,Tt;const Ct=(0,me.useParams)(),[xt]=(0,me.useSearchParams)(),[kt,zt]=(0,St.useState)({}),[Et,Ae]=(0,St.useState)({}),[We,Ue]=(0,St.useState)(!1),[jn,Gn]=(0,St.useState)("0"),[Ke,ri]=(0,St.useState)(!0),[Sn,hi]=(0,St.useState)({name:"\u5B66\u751F\u6307\u5357",list:[{icon:nt,title:"1.\u5B66\u751F\u9009\u9898\u786E\u5B9A"},{icon:bt,title:"2.\u63D0\u4EA4\u8FC7\u7A0B\u6587\u6863"},{icon:et,title:"3.\u6BD5\u8BBE\u7B54\u8FA9"},{icon:Ge,title:"4.\u5F52\u6863"}]}),ti={0:{name:"\u672A\u5F00\u59CB",color:"#ADB2B8"},1:{name:"\u8FDB\u884C\u4E2D",color:"#00b187"},2:{name:"\u5DF2\u7ED3\u675F",color:"#E30000"}},Wn=[{id:"0",name:(0,Vt.tu)()?"\u5F85\u5904\u7406":"\u672A\u8BFB"},{id:"1",name:"\u5168\u90E8"}],bi=()=>Fn(void 0,null,function*(){var An;const ei=yield(0,pt.zC)(Ct.id);ri((An=ei==null?void 0:ei.graduation)==null?void 0:An.novice_guide),zt(De({},ei)),(0,Vt.tu)()&&hi({name:"\u7BA1\u7406\u5458\u6307\u5357",list:[{icon:Ce,title:"1.\u6BD5\u8BBE\u57FA\u7840\u8BBE\u7F6E"},{icon:Bt,title:"2.\u6BD5\u8BBE\u6D41\u7A0B\u8BBE\u7F6E"},{icon:je,title:"3.\u5BFC\u5165/\u9080\u8BF7\u4EBA\u5458"},{icon:le,title:"4.\u6BD5\u8BBE\u9636\u6BB5\u7BA1\u7406"}]})}),Ei=()=>Fn(void 0,null,function*(){Le({type:"graduations/getGraduationsDetails",payload:{id:Ct==null?void 0:Ct.id}})}),Pi=()=>{Le({type:"graduations/getGraduationsNotices",payload:{id:Ct.id,page:1,per_page:6,state:jn=="1"?"":"0"}})};return(0,St.useEffect)(()=>{bi()},[]),(0,St.useEffect)(()=>{Gn(String(Number(xt.get("state"))))},[xt.get("state")]),(0,St.useEffect)(()=>{Pi()},[jn]),console.log("loading",te.effects["graduations/getGraduationsNotices"],te),St.createElement("section",{className:ee.body},Ke?St.createElement(he.Z,{className:`mb20 ${ee.Guide} fadeIn animated`,justify:"space-between"},St.createElement(ce.Z,{style:{color:"#000"}},Sn.name),Sn.list.map((An,ei)=>St.createElement(ce.Z,{className:ee.GuideItem,key:ei},St.createElement("img",{height:42,src:`${An.icon}`}),St.createElement("div",{style:{marginTop:"8px",fontSize:"12px",color:"#9096A3"}},An.title))),St.createElement(ce.Z,null,St.createElement("i",{className:"iconfont icon-guanbi10",style:{cursor:"pointer",color:"#979797"},onClick:()=>{ri(!1),(0,pt.Dd)({id:Ct.id,novice_guide:!1})}}))):St.createElement("div",{className:ee.GuideIcon,onClick:()=>{ri(!0),(0,pt.Dd)({id:Ct.id,novice_guide:!0})}},St.createElement(fe.Z,{title:Sn.name},St.createElement("img",{height:20,src:ct}))),St.createElement("div",{style:{display:"flex"},className:"mb20"},St.createElement("div",{style:{display:"flex",flex:1,flexDirection:"column"}},(0,Vt.tu)()&&St.createElement("div",{className:`mb20 ${ee.Overview}`},St.createElement("span",{className:ee.Title},"\u6982\u89C8"),St.createElement(ue.Z,{loading:te.effects["graduations/getGraduationsInfo"],active:!0,avatar:!0,className:"mt20"},St.createElement(he.Z,{className:"fadeIn animated",wrap:!1,justify:"space-between",style:{marginTop:"25px"}},St.createElement(he.Z,{wrap:!1},St.createElement(ce.Z,{className:ee.OverviewIcon},St.createElement("i",{className:"iconfont icon-bishexueshengshu c-grey-666",style:{fontSize:"16px"}})),St.createElement(ce.Z,{style:{marginLeft:"8px"}},St.createElement("div",{className:ee.OverviewNum,onClick:()=>me.history.push(`/graduations/${Ct.id}/students`)},((dn=kt.graduation)==null?void 0:dn.students_count)||0),St.createElement("div",{className:ee.OverviewName},"\u6BD5\u8BBE\u5B66\u751F\u6570"))),St.createElement(he.Z,{wrap:!1},St.createElement(ce.Z,{className:ee.OverviewIcon},St.createElement("i",{className:"iconfont icon-jiaoshishu c-grey-666",style:{fontSize:"16px"}})),St.createElement(ce.Z,{style:{marginLeft:"8px"}},St.createElement("div",{className:ee.OverviewNum,onClick:()=>me.history.push(`/graduations/${Ct.id}/teachers`)},((_e=kt.graduation)==null?void 0:_e.teachers_count)||0),St.createElement("div",{className:ee.OverviewName},"\u6559\u5E08\u6570"))),St.createElement(he.Z,{wrap:!1},St.createElement(ce.Z,{className:ee.OverviewIcon},St.createElement("i",{className:"iconfont icon-ketizongshu c-grey-666",style:{fontSize:"16px"}})),St.createElement(ce.Z,{style:{marginLeft:"8px"}},St.createElement("div",{className:ee.OverviewNum,onClick:()=>me.history.push(`/graduations/${Ct.id}/topics`)},((ve=kt.graduation)==null?void 0:ve.graduation_total_tasks_count)||0),St.createElement("div",{className:ee.OverviewName},"\u8BFE\u9898\u603B\u6570")))))),St.createElement("div",{className:ee.Action},St.createElement(he.Z,{wrap:!1,align:"middle",justify:"space-between"},St.createElement(ce.Z,{className:ee.Title},"\u52A8\u6001"),St.createElement(ce.Z,null,te.effects["graduations/getGraduationsNotices"]&&St.createElement(ue.Z.Input,{active:!0}),!te.effects["graduations/getGraduationsNotices"]&&St.createElement(St.Fragment,null,((Xe=fn.Notices)==null?void 0:Xe.no_deal_count)>0&&St.createElement(Be.Z,{dot:!0,count:(ke=fn.Notices)==null?void 0:ke.no_deal_count,className:`${ee.BadgeDot} ${(0,Vt.tu)()?ee.left69:ee.left55}`}),St.createElement(lt.tp,{dataSource:Wn,value:jn,onChange:An=>Gn(An)})))),St.createElement(ue.Z,{loading:te.effects["graduations/getGraduationsNotices"],active:!0,avatar:!0,className:"mt20"},!((Ie=(cn=fn.Notices)==null?void 0:cn.graduation_notices)!=null&&Ie.length)&&St.createElement(vt.Z,null),(Pe=(ae=fn.Notices)==null?void 0:ae.graduation_notices)==null?void 0:Pe.map((An,ei)=>St.createElement(he.Z,{key:ei,wrap:!1,onClick:()=>Fn(void 0,null,function*(){(An.action=="DealJoinGraduation"||!(0,Vt.tu)()&&An.state!=1)&&(yield(0,pt.ck)({id:Ct.id,doid:An.id})),An.url&&An.url!=""?(yield Ei(),me.history.push(An.url)):Gn("1"),An.url.includes("index")&&Gn(String(Number(xt.get("state")||"1")))}),className:`${ee.ActionItem} animated fadeIn`},St.createElement(ce.Z,null,St.createElement("img",{width:36,height:36,style:{borderRadius:"50%"},src:`${Dt.Z.IMG_SERVER}/images/${An.avatar_url}`})),St.createElement(ce.Z,{className:"ml10",flex:1},St.createElement(he.Z,{wrap:!1,justify:"space-between",align:"middle"},St.createElement(he.Z,{wrap:!1,align:"middle"},St.createElement("div",{className:ee.ActionItemName},An.real_name),St.createElement("div",{className:"ml10",style:{fontSize:"12px",color:"#9096A3"}},An.created_at)),St.createElement(ce.Z,null,An.state==1&&!(0,Vt.tu)()&&St.createElement("span",{style:{fontSize:"12px",color:"#165DFF"}},"\u5DF2\u8BFB"),An.state==1&&(0,Vt.tu)()&&St.createElement("span",{style:{fontSize:"12px",color:"#00B187"}},"\u5DF2\u5904\u7406"))),St.createElement("div",{className:ee.ActionItemDes},St.createElement(fe.Z,{placement:"topLeft",title:An.source_content},An.source_content))))),((sn=fn.Notices)==null?void 0:sn.total_count)>6&&St.createElement("div",{className:ee.Active16,style:{width:"100%",cursor:"pointer",textAlign:"center",color:"#3061D0",paddingTop:"20px"},onClick:()=>{var An;return me.history.push(`/messages/${(An=Ot==null?void 0:Ot.userInfo)==null?void 0:An.login}/user_tidings?tabsKey=6`)}},"\u67E5\u770B\u66F4\u591A")))),St.createElement("div",{className:`ml20 ${ee.Steps}`},St.createElement(he.Z,{wrap:!1,align:"middle",justify:"space-between"},St.createElement(ce.Z,{className:ee.Title},(0,Vt.tu)()?"\u6BD5\u8BBE\u9636\u6BB5\u7BA1\u7406":"\u6BD5\u8BBE\u6D41\u7A0B\u6982\u89C8"),St.createElement(ce.Z,{className:ee.Status},St.createElement(Be.Z,{color:"#00B187",text:"\u8FDB\u884C\u4E2D"}),St.createElement(Be.Z,{className:"ml20",color:"#ADB2B8",text:"\u672A\u5F00\u59CB"}),St.createElement(Be.Z,{className:"ml20",color:"#E30000",text:"\u5DF2\u7ED3\u675F"}))),St.createElement(ue.Z,{loading:!((an=kt==null?void 0:kt.graduation_stages)!=null&&an.length),active:!0,avatar:!0,className:"mt20"},St.createElement("div",{className:"animated fadeIn"},(Tt=kt==null?void 0:kt.graduation_stages)==null?void 0:Tt.map((An,ei)=>{var gr,dr;return St.createElement("div",{key:ei,className:`${ee.StepsItem} ${An.name=="\u5F55\u5165\u8BFE\u9898"&&(kt==null?void 0:kt.graduation_stages[1].status)!=0?"":An.status==1?ee.StepsItemActive:""}`},St.createElement("div",{style:{flex:1}},An.name!="\u5F55\u5165\u8BFE\u9898"&&St.createElement("div",{className:ee.StepsItemLeft},St.createElement("div",{style:{color:"#9096A3"}},St.createElement("span",null,"\u5F00\u59CB"),St.createElement("span",{className:"ml10"},An.start_at||"--")),St.createElement("div",{style:{color:"#333"}},St.createElement("span",null,"\u622A\u6B62"),St.createElement("span",{className:"ml10"},An.end_at||"--")))),St.createElement("div",{className:ee.StepsItemCent,style:{background:`${An.status==0?"#F5F5F5":An.status==1?"#E5F7F3":"#FAD6D6"}`}},St.createElement("div",{className:ee.StepsItemCentDot,style:{background:`${An.status==0?"#ADB2B8":An.status==1?"#00B187":"#E30000"}`}})),St.createElement("div",{style:{flex:1}},St.createElement("div",{className:ee.StepsItemRight},St.createElement(fe.Z,{placement:"topLeft",title:!(0,Vt.tu)()&&An.status==0?"\u8BE5\u9636\u6BB5\u672A\u542F\u7528":""},St.createElement("div",{className:ee.StepsItemRightTitle,onClick:()=>Fn(void 0,null,function*(){((0,Vt.tu)()||An.status!=0)&&(yield Ei(),me.history.push(An.stage_url))})},ei+1,"\xA0",An.name)),An.name=="\u5F55\u5165\u8BFE\u9898"?St.createElement(he.Z,{align:"middle",className:"mt10",style:{color:((gr=kt==null?void 0:kt.graduation)==null?void 0:gr.graduation_tasks_count)===0?ti[0].color:ti[1].color}},St.createElement("i",{className:"iconfont icon-yiwancheng4",style:{fontSize:"14px"}}),"\xA0",St.createElement("span",{style:{color:"#ADB2B8"}},"\u60A8\u5DF2\u5F55\u5165\u8BFE\u9898"),"\xA0",((dr=kt==null?void 0:kt.graduation)==null?void 0:dr.graduation_tasks_count)||0):St.createElement(St.Fragment,null,St.createElement("div",{className:"mt10"},(0,Vt.tu)()?St.createElement(he.Z,{align:"middle",wrap:!1,style:{color:"#ADB2B8"}},An.state==0?St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-weixiada font14",style:{color:"#ADB2B8"}}),"\xA0\u672A\u8BBE\u7F6E"):St.createElement(St.Fragment,null,An.name=="\u5B66\u751F\u9009\u9898"&&An.status!=0&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-daishenhe font14",style:{color:"#ff9d18"}}),"\xA0 \u5F85\u5BA1\u6838 \xA0",St.createElement("span",{style:{color:"#ff9d18"}},An.num||0)),An.name=="\u4EFB\u52A1\u4E66"&&An.status!=0&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-daixiadarenwushu font14",style:{color:"#165dff"}})," \xA0\u5F85\u4E0B\u8FBE\u4EFB\u52A1\u4E66\xA0 ",St.createElement("span",{style:{color:"#165dff"}},An.num||0)),["\u5F00\u9898\u62A5\u544A","\u4E2D\u671F\u68C0\u67E5","\u6BD5\u4E1A\u8BBA\u6587","\u6BD5\u4E1A\u7B54\u8FA9","\u8BBA\u6587\u5B9A\u7A3F"].includes(An.name)&&An.status!=0&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-daipingyue font14",style:{color:"#ff9d18"}})," \xA0\u5F85\u8BC4\u9605\xA0 ",St.createElement("span",{style:{color:"#ff9d18"}},An.num||0)),An.name=="\u5F52\u6863"&&An.status!=0&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-yiwancheng4 font14",style:{color:"#165dff"}})," \xA0\u5F85\u63D0\u4EA4\u5B66\u751F\xA0 ",St.createElement("span",{style:{color:"#165dff"}},An.num||0)))):St.createElement(he.Z,{align:"middle",wrap:!1,style:{color:"#ADB2B8"}},An.state==-1?St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-weixiada font14",style:{color:"#ADB2B8"}})," \xA0\u8BE5\u9636\u6BB5\u672A\u5F00\u542F"):St.createElement(St.Fragment,null,An.name=="\u5B66\u751F\u9009\u9898"&&St.createElement(St.Fragment,null,An.state==0&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-weixiada font14",style:{color:"#ADB2B8"}})," \xA0\u672A\u786E\u5B9A\u9009\u9898"),An.state==1&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-yiwancheng4 font14",style:{color:"#00B187"}})," \xA0\u5DF2\u786E\u5B9A\u9009\u9898")),An.name=="\u4EFB\u52A1\u4E66"&&St.createElement(St.Fragment,null,An.state==0&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-weixiada font14",style:{color:"#ADB2B8"}})," \xA0\u672A\u4E0B\u8FBE\xA0"),An.state==1&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-yiwancheng4 font14",style:{color:"#00B187"}})," \xA0\u5DF2\u4E0B\u8FBE\xA0")),["\u5F00\u9898\u62A5\u544A","\u4E2D\u671F\u68C0\u67E5","\u6BD5\u4E1A\u8BBA\u6587","\u6BD5\u4E1A\u7B54\u8FA9","\u8BBA\u6587\u5B9A\u7A3F"].includes(An.name)&&St.createElement(St.Fragment,null,An.state==0&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-weixiada font14",style:{color:"#ADB2B8"}})," \xA0\u672A\u63D0\u4EA4\xA0"),An.state==1&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-daipingyue font14",style:{color:"#ff9d18"}})," \xA0\u5F85\u8BC4\u9605\xA0"),An.state==2&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-yiwancheng4 font14",style:{color:"#00B187"}})," \xA0\u5DF2\u901A\u8FC7\xA0"),An.state==3&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-weishezhi font14",style:{color:"#e53333"}})," \xA0\u5DF2\u9A73\u56DE\xA0"),An.state==4&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-yiwancheng4 font14",style:{color:"#E5F7F3"}})," \xA0\u5DF2\u901A\u8FC7\u9700\u4FEE\u6539\xA0"),An.state==5&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-daipingyue font14",style:{color:"#00B187"}})," \xA0\u5DF2\u4FEE\u6539\xA0")),An.name=="\u5F52\u6863"&&St.createElement(St.Fragment,null,An.state==0&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-weixiada font14",style:{color:"#ADB2B8"}})," \xA0\u672A\u63D0\u4EA4\xA0"),An.state==1&&St.createElement(St.Fragment,null,St.createElement("i",{className:"iconfont icon-daixiadarenwushu font14",style:{color:"#165dff"}})," \xA0\u5DF2\u63D0\u4EA4\xA0"))))),(0,Vt.tu)()&&An.setting_show&&St.createElement(fe.Z,{title:""},St.createElement("i",{onClick:()=>{var Sr,_r;Ue(!0),Ae(tn(De({},An),{disabled_time:(_r=(Sr=kt==null?void 0:kt.graduation_stages)==null?void 0:Sr[ei-1])==null?void 0:_r.end_at}))},className:`iconfont icon-shequshezhi c-grey-666 ${ee.shezhi}`}))))))}))))),St.createElement(Pt.Z,{visible:We,data:Et,onClose:()=>Ue(!1),onSuccess:()=>{Ue(!1),bi()}}))};var pn=(0,me.connect)(({graduations:fn,loading:te,user:Ot})=>({graduations:fn,user:Ot,loading:te}))(on)},89674:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return se}});var St=Rt(59301),ee=Rt(6767),me=Rt(14566),he=Rt(62957),ce=Rt(77019),fe=Rt(16326),ue={flex_box_center:"flex_box_center___cQ5Sl",flex_space_between:"flex_space_between___BU1Wl",flex_box_vertical_center:"flex_box_vertical_center___jBfz4",flex_box_center_end:"flex_box_center_end___mFYce",flex_box_column:"flex_box_column___jBfuW",wrap:"wrap___npJKs",label:"label___mSlLf"},Be=Rt(346),Ce=Rt(25690),Bt=Rt(9148),je=Rt(38986),le=Rt(51257),Ge=Rt(39793),bt=Rt(61186),et=Rt.n(bt),nt=Rt(48716),ct=Object.defineProperty,lt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Pt=(qt,Jt,Me)=>Jt in qt?ct(qt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Me}):qt[Jt]=Me,Dt=(qt,Jt)=>{for(var Me in Jt||(Jt={}))pt.call(Jt,Me)&&Pt(qt,Me,Jt[Me]);if(lt)for(var Me of lt(Jt))vt.call(Jt,Me)&&Pt(qt,Me,Jt[Me]);return qt},Vt=(qt,Jt,Me)=>new Promise((pe,He)=>{var De=on=>{try{Fn(Me.next(on))}catch(pn){He(pn)}},tn=on=>{try{Fn(Me.throw(on))}catch(pn){He(pn)}},Fn=on=>on.done?pe(on.value):Promise.resolve(on.value).then(De,tn);Fn((Me=Me.apply(qt,Jt)).next())}),se=({visible:qt,data:Jt,onClose:Me=()=>{},onSuccess:pe=()=>{}})=>{const[He,De]=(0,St.useState)([]),[tn,Fn]=(0,St.useState)(""),[on,pn]=(0,St.useState)(""),[fn,te]=(0,St.useState)(""),[Ot,Le]=(0,St.useState)(!1),dn=(0,Ce.useParams)();(0,St.useEffect)(()=>{var an;qt&&(te((Jt==null?void 0:Jt.description)||""),Fn((Jt==null?void 0:Jt.start_at)||""),pn((Jt==null?void 0:Jt.end_at)||""),De(((an=Jt==null?void 0:Jt.attachments)==null?void 0:an.map(Tt=>({name:Tt.name||Tt.title,status:"done",response:{id:Tt.id}})))||[]))},[qt]);const _e={multiple:!0,withCredentials:!0,fileList:He,beforeUpload:an=>an.size/1024/1024>150?(ee.ZP.error(`\u300A${an.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(150M)`),me.default.LIST_IGNORE):!0,action:`${Be.Z.API_SERVER}/api/attachments.json`,onChange(an){De((0,le.uD)(an))}},ve=()=>Vt(void 0,null,function*(){if(!tn||!on){ee.ZP.warning(`\u8BF7\u9009\u62E9${Ie}`);return}Le(!0),console.log(He,"fileList");const an=yield(0,je.ZP)(`/api/graduations/${dn.id}/graduation_stages/${Jt.id}.json`,{method:"put",body:{start_at:tn,end_at:on,description:fn,attachment_ids:He.map(Tt=>{var Ct;return(Ct=Tt==null?void 0:Tt.response)==null?void 0:Ct.id})}});if((an==null?void 0:an.status)===0){ee.ZP.success("\u4FDD\u5B58\u8BBE\u7F6E\u6210\u529F"),(0,Ce.getDvaApp)()._store.dispatch({type:"graduations/getGraduationsDetails",payload:{id:dn==null?void 0:dn.id}}),pe();return}Le(!1)});console.log(Jt,"data");const Xe=[{name:"\u5B66\u751F\u9009\u9898",key:"student_selection",timeName:"\u5B66\u751F\u9009\u9898\u8D77\u6B62\u65F6\u95F4",width:460,text:"\u5728\u6B64\u65F6\u95F4\u5185\uFF0C\u5B66\u751F\u53EF\u81EA\u52A9\u64CD\u4F5C\u9009\u9898\u548C\u66F4\u6539\u9009\u9898"},{name:"\u4EFB\u52A1\u4E66",key:"tasks",width:460,timeName:"\u4EFB\u52A1\u4E66\u8D77\u6B62\u65F6\u95F4",text:""},{name:"\u5F00\u9898\u62A5\u544A",key:"opening_report",width:1146,timeName:"\u5B66\u751F\u63D0\u4EA4\u5F00\u9898\u62A5\u544A\u8D77\u6B62\u65F6\u95F4",text:"\u5728\u8BE5\u9636\u6BB5\u5185\u6216\u8005\u8001\u5E08\u8BC4\u9605\u901A\u8FC7\u4E4B\u524D\uFF0C\u5B66\u751F\u53EF\u4EE5\u81EA\u7531\u63D0\u4EA4\u6587\u6863\uFF0C\u4E00\u65E6\u8FC7\u4E86\u622A\u6B62\u65F6\u95F4\uFF0C\u5219\u9700\u8981\u7BA1\u7406\u5458\u6388\u6743\u8865\u4EA4"},{name:"\u4E2D\u671F\u68C0\u67E5",key:"midterm_report",width:1146,timeName:"\u5B66\u751F\u63D0\u4EA4\u4E2D\u671F\u68C0\u67E5\u8D77\u6B62\u65F6\u95F4",text:"\u5728\u8BE5\u9636\u6BB5\u5185\u6216\u8005\u8001\u5E08\u8BC4\u9605\u901A\u8FC7\u4E4B\u524D\uFF0C\u5B66\u751F\u53EF\u4EE5\u81EA\u7531\u63D0\u4EA4\u6587\u6863\uFF0C\u4E00\u65E6\u8FC7\u4E86\u622A\u6B62\u65F6\u95F4\uFF0C\u5219\u9700\u8981\u7BA1\u7406\u5458\u6388\u6743\u8865\u4EA4"},{name:"\u6BD5\u4E1A\u8BBA\u6587",key:"thesis",width:1146,timeName:"\u5B66\u751F\u63D0\u4EA4\u6BD5\u4E1A\u8BBA\u6587\u8D77\u6B62\u65F6\u95F4",text:"\u5728\u8BE5\u9636\u6BB5\u5185\u6216\u8005\u8001\u5E08\u8BC4\u9605\u901A\u8FC7\u4E4B\u524D\uFF0C\u5B66\u751F\u53EF\u4EE5\u81EA\u7531\u63D0\u4EA4\u6587\u6863\uFF0C\u4E00\u65E6\u8FC7\u4E86\u622A\u6B62\u65F6\u95F4\uFF0C\u5219\u9700\u8981\u7BA1\u7406\u5458\u6388\u6743\u8865\u4EA4"},{name:"\u6BD5\u4E1A\u7B54\u8FA9",key:"final_defense",width:1146,timeName:"\u5B66\u751F\u63D0\u4EA4\u6BD5\u4E1A\u7B54\u8FA9\u8D77\u6B62\u65F6\u95F4",text:"\u5728\u8BE5\u9636\u6BB5\u5185\u6216\u8005\u8001\u5E08\u8BC4\u9605\u901A\u8FC7\u4E4B\u524D\uFF0C\u5B66\u751F\u53EF\u4EE5\u81EA\u7531\u63D0\u4EA4\u6587\u6863\uFF0C\u4E00\u65E6\u8FC7\u4E86\u622A\u6B62\u65F6\u95F4\uFF0C\u5219\u9700\u8981\u7BA1\u7406\u5458\u6388\u6743\u8865\u4EA4"},{name:"\u8BBA\u6587\u5B9A\u7A3F",key:"final_thesis",width:1146,timeName:"\u5B66\u751F\u63D0\u4EA4\u8BBA\u6587\u5B9A\u7A3F\u8D77\u6B62\u65F6\u95F4",text:"\u5728\u8BE5\u9636\u6BB5\u5185\u6216\u8005\u8001\u5E08\u8BC4\u9605\u901A\u8FC7\u4E4B\u524D\uFF0C\u5B66\u751F\u53EF\u4EE5\u81EA\u7531\u63D0\u4EA4\u6587\u6863\uFF0C\u4E00\u65E6\u8FC7\u4E86\u622A\u6B62\u65F6\u95F4\uFF0C\u5219\u9700\u8981\u7BA1\u7406\u5458\u6388\u6743\u8865\u4EA4"},{name:"\u5F52\u6863",key:"archives",width:1146,timeName:"\u5B66\u751F\u63D0\u4EA4\u5F52\u6863\u8D77\u6B62\u65F6\u95F4",text:"\u5728\u8BE5\u9636\u6BB5\u5185\u6216\u8005\u8001\u5E08\u8BC4\u9605\u901A\u8FC7\u4E4B\u524D\uFF0C\u5B66\u751F\u53EF\u4EE5\u81EA\u7531\u63D0\u4EA4\u6587\u6863\uFF0C\u4E00\u65E6\u8FC7\u4E86\u622A\u6B62\u65F6\u95F4\uFF0C\u5219\u9700\u8981\u7BA1\u7406\u5458\u6388\u6743\u8865\u4EA4"}],ke=["opening_report","midterm_report","thesis","final_defense","final_thesis","archives"],cn=He.some(an=>!(an!=null&&an.response)),{timeName:Ie,text:ae,width:Pe,key:sn}=(Xe==null?void 0:Xe.find(an=>an.key===(Jt==null?void 0:Jt.clazz)))||{};return St.createElement(he.default,{centered:!0,destroyOnClose:!0,confirmLoading:Ot,okButtonProps:{disabled:cn},onCancel:Me,onOk:ve,open:qt,title:`${Jt.name}\u8BBE\u7F6E`,width:Pe,afterClose:()=>{De([]),Fn(""),te(""),pn(""),Le(!1)},okText:"\u4FDD\u5B58\u8BBE\u7F6E",cancelText:"\u53D6\u6D88"},St.createElement("div",{className:ue.wrap},St.createElement("div",{className:ue.label},St.createElement("span",null,"*"),Ie),St.createElement(ce.Z,{align:"middle",className:ke.includes(sn)?"mb20":""},St.createElement(fe.default,{format:"YYYY-MM-DD HH:mm",value:tn?et()(tn):"",disabledDate:an=>(0,nt.Q8)(an,"",Jt==null?void 0:Jt.disabled_time),disabledTime:an=>(0,nt.d0)(an,Jt==null?void 0:Jt.disabled_time),showTime:{format:"HH:mm"},onChange:(an,Tt)=>{Fn(Tt)}}),St.createElement("span",{className:"ml10 mr10"},"\u81F3"),St.createElement(fe.default,{format:"YYYY-MM-DD HH:mm",value:on?et()(on):"",disabledDate:an=>(0,nt.Q8)(an,"",Jt==null?void 0:Jt.disabled_time),disabledTime:an=>(0,nt.d0)(an,Jt==null?void 0:Jt.disabled_time),showTime:{format:"HH:mm"},onChange:(an,Tt)=>{pn(Tt)}}),St.createElement("span",{className:`${sn==="student_selection"?"mt10":"ml10"} font14`,style:{color:"#9096A3"}},ae)),ke.includes(sn)&&St.createElement(St.Fragment,null,St.createElement("div",{className:ue.label},"\u9636\u6BB5\u63CF\u8FF0"),St.createElement(Ge.Z,{height:140,defaultValue:fn,onChange:an=>{te(an)}}),St.createElement(me.default,Dt({},_e),St.createElement(ce.Z,{align:"middle",className:"mt10"},St.createElement(Bt.op,{style:{borderRadius:2}},St.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6587\u6863"),St.createElement("div",{className:"ml10 font14",style:{color:"#5F6367"},onClick:an=>{an.stopPropagation()}},"\u4E0A\u4F20\u6B64\u9636\u6BB5\u7684\u6587\u6863\u6A21\u7248\u3001\u6279\u9605\u8981\u6C42\u7B49\u6587\u6863\uFF0C\u5355\u4E2A\u6587\u6863\u5927\u5C0F\u4E0D\u8D85\u8FC7150M"))))))}},81428:function(xn,$n,Rt){"use strict";Rt.d($n,{AL:function(){return Pt},Iy:function(){return je},Qv:function(){return bt},ez:function(){return vt},jb:function(){return le}});var St=Rt(32834),ee=Rt.n(St),me=Rt(11690),he=Rt.n(me);let ce=1;function fe(qt,Jt){const Me=qt.match(/^(\s+)(?:```)/);if(Me===null)return Jt;const pe=Me[1];return Jt.split(`
|
|
`).map(He=>{const De=He.match(/^\s+/);if(De===null)return He;const[tn]=De;return tn.length>=pe.length?He.slice(pe.length):He}).join(`
|
|
`)}let ue=[],Be=["<ul>"];const Ce=new(ee()).Renderer,Bt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function je(){ue.length=0,Be=["<ul>"]}const le={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ge(qt,Jt,Me,pe){if(Jt>=qt.length||qt[Jt].level<=Me)return Jt;var He=qt[Jt];pe.push("<li><a href='#"+ce+He.anchor+"'>"+He.text+"</a>"),Jt++;var De=[];return Jt=Ge(qt,Jt,He.level,De),De.length>0&&(pe.push("<ul>"),De.forEach(function(tn){pe.push(tn)}),pe.push("</ul>")),pe.push("</li>"),Jt=Ge(qt,Jt,Me,pe),Jt}function bt(){return Ge(ue,0,0,Be),Be.push("</ul>"),Be.join("")}const et={heading(qt){const Jt=Bt.exec(qt);if(ce+=1,Jt)return{type:"heading",raw:Jt[0],depth:Jt[1].length,text:Jt[2]}},fences(qt){const Jt=this.rules.block.fences.exec(qt);if(Jt){const Me=Jt[0];let pe=fe(Me,Jt[3]||"");const He=Jt[2]?Jt[2].trim():Jt[2];if(["latex","katex","math"].indexOf(He)>=0){const De=lt(),tn=pe;pe=De,pt[De]={type:"block",expression:tn}}return{type:"code",raw:Me,lang:He,text:pe}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ct=0;const lt=()=>`__special_katext_id_${ct++}__`;let pt={};function vt(){return pt}function Pt(){ct=0,pt={}}function Dt(qt){return qt=qt.replace(nt,(Jt,Me)=>{const pe=lt();return pt[pe]={type:"inline",expression:Me},pe}),qt}const Vt=Ce.listitem;Ce.listitem=function(qt){return Vt(Dt(qt))};const Ut=Ce.paragraph;Ce.paragraph=function(qt){return Ut(Dt(qt))};const se=Ce.tablecell;Ce.tablecell=function(qt,Jt){return se(Dt(qt),Jt)},Ce.code=function(qt,Jt,Me){const pe=(Jt||"").match(/\S*/)[0];return pe?["latex","katex","math"].indexOf(pe)>=0?`<p class='editormd-tex'>${qt}</p>`:`<pre class="prettyprint linenums"><code class="language-${Jt}">${Me?qt:(0,me.escape)(qt,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(Me?qt:(0,me.escape)(qt,!0))+"</code></pre>"},Ce.heading=function(qt,Jt,Me){let pe=this.options.headerPrefix+Me.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ue.push({anchor:pe,level:Jt,text:qt}),"<h"+Jt+' id="'+ce+pe+'">'+qt+"</h"+Jt+">"},ee().setOptions({silent:!0,gfm:!0,pedantic:!1}),ee().use({tokenizer:et,renderer:Ce}),$n.ZP=ee()},40197:function(xn,$n,Rt){"use strict";Rt.d($n,{rX:function(){return Dt},pW:function(){return Vt},gy:function(){return Ut},xY:function(){return Pt},O5:function(){return vt},hs:function(){return nt},tJ:function(){return bt},o1:function(){return et},Rd:function(){return pt}});var St=Rt(25690),ee=Rt(62957),me=Rt(37285),he=Rt(6767),ce=Rt(48790),fe=Rt(51257),ue=Rt(87169),Be=Rt(25510),Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgAyLBnW4Cx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L7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Bt=Rt.p+"static/newqrcode.a8740efb.png",je=Rt(32637),le=Rt(59301),Ge=(se,qt,Jt)=>new Promise((Me,pe)=>{var He=Fn=>{try{tn(Jt.next(Fn))}catch(on){pe(on)}},De=Fn=>{try{tn(Jt.throw(Fn))}catch(on){pe(on)}},tn=Fn=>Fn.done?Me(Fn.value):Promise.resolve(Fn.value).then(He,De);tn((Jt=Jt.apply(se,qt)).next())});const bt=(se,qt=!1,Jt=!1,Me="",pe=!1)=>!!(et(se)&&ct(se,qt,Jt,Me,pe)),et=se=>(0,ce.bg)()?!0:(se({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),nt=se=>{var qt,Jt,Me;const{user:pe}=(0,St.getDvaApp)()._store.getState();(0,ce.bg)()&&!((Jt=(qt=pe==null?void 0:pe.userInfo)==null?void 0:qt.course)!=null&&Jt.course_public)&&!((Me=pe==null?void 0:pe.userInfo)!=null&&Me.profile_completed)&&se({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ct=(se,qt=!1,Jt=!0,Me="",pe=!1)=>{var He;const{user:De}=(0,St.getDvaApp)()._store.getState();return(He=De.userInfo)!=null&&He.profile_completed?!0:(Jt?se({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:Me,isCurrentPage:pe}}):ee.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,fe.xg)("/account/profile/edit"),lt()}}),!1)},lt=()=>{ee.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},pt=()=>{ee.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:le.createElement("div",{style:{textAlign:"center"}},le.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),le.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:je}),le.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},vt=()=>{var se;const{user:qt}=(0,St.getDvaApp)()._store.getState();return(se=qt.userInfo)!=null&&se.professional_certification?!0:(ee.default.confirm({title:"\u63D0\u793A",centered:!0,content:le.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,fe.xg)("/account/certification")}}),!1)},Pt=()=>(0,ce.V9)()?!0:(ee.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:le.createElement("div",{className:"tc",style:{marginLeft:-38}},le.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),le.createElement("img",{src:Bt,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Dt=(se,qt)=>se?!0:(ee.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:le.createElement("div",null,le.createElement("p",null,qt||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),le.createElement("div",{style:{marginLeft:"110px"}},le.createElement("img",{src:Ce,width:200}),le.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,fe.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Vt=se=>{ee.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:le.createElement("div",null,le.createElement("div",null,le.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),le.createElement(me.Z,null),le.createElement("p",{style:{color:"#666666",fontSize:12}}," ",le.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",le.createElement("a",null,se),"\u5929\u3002"),le.createElement("p",{style:{color:"#666666",fontSize:12}}," ",le.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),le.createElement("div",{style:{textAlign:"center",marginTop:30}},le.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Be,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Ut=(se,qt="")=>{const{shixunsDetail:{detail:Jt}}=(0,St.getDvaApp)()._store.getState();if((Jt==null?void 0:Jt.public)===2||(Jt==null?void 0:Jt.public)===1||(Jt==null?void 0:Jt.shixun_status)===3){let Me="";return(Jt==null?void 0:Jt.public)===2&&(Me="\u5DF2\u516C\u5F00"),(Jt==null?void 0:Jt.public)===1&&(Me="\u5F85\u5BA1\u6838"),(Jt==null?void 0:Jt.shixun_status)===3&&(Me="\u5DF2\u5173\u95ED"),ee.default.info({centered:!0,icon:le.createElement(ue.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:le.createElement("div",{className:"tc",style:{marginLeft:-38}},le.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},le.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Me,"\uFF0C",qt,"\u3002"),le.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),le.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Be,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Jt==null?void 0:Jt.shixun_status)===2?(ee.default.confirm({centered:!0,icon:le.createElement(ue.Z,null),title:"\u63D0\u793A",content:le.createElement("div",null,le.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",qt,"\u3002"),le.createElement("br",null),le.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{ee.default.confirm({width:440,centered:!0,icon:le.createElement(ue.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>Ge(void 0,null,function*(){(yield se({type:"shixunsDetail/cancelRelease",payload:{id:Jt==null?void 0:Jt.identifier}})).status!==401&&(he.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),se({type:"shixunsDetail/getShixunsDetail",payload:{id:Jt==null?void 0:Jt.identifier}}),se({type:"practiceSetting/getCommonData",payload:{id:Jt==null?void 0:Jt.identifier}}))})})}}),!0):!1}},88390:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return te}});var St=Rt(59301),ee=Rt(92310),me=Rt.n(ee),he=Rt(77900),ce=Rt(29509),fe=Rt(22703),ue=Rt(48755),Be=Rt(36237),Ce=Rt(63356),Bt=Rt(93427),je=Rt(51636),le=Rt(16931);const Ge=new Be.Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),bt=new Be.Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),et=new Be.Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),nt=new Be.Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),ct=new Be.Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),lt=new Be.Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),pt=Ot=>{const{componentCls:Le,iconCls:dn,antCls:_e,badgeShadowSize:ve,textFontSize:Xe,textFontSizeSM:ke,statusSize:cn,dotSize:Ie,textFontWeight:ae,indicatorHeight:Pe,indicatorHeightSM:sn,marginXS:an,calc:Tt}=Ot,Ct=`${_e}-scroll-number`,xt=(0,Bt.Z)(Ot,(kt,zt)=>{let{darkColor:Et}=zt;return{[`&${Le} ${Le}-color-${kt}`]:{background:Et,[`&:not(${Le}-count)`]:{color:Et},"a:hover &":{background:Et}}}});return{[Le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ce.Wf)(Ot)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${Le}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:Ot.indicatorZIndex,minWidth:Pe,height:Pe,color:Ot.badgeTextColor,fontWeight:ae,fontSize:Xe,lineHeight:(0,Be.unit)(Pe),whiteSpace:"nowrap",textAlign:"center",background:Ot.badgeColor,borderRadius:Tt(Pe).div(2).equal(),boxShadow:`0 0 0 ${(0,Be.unit)(ve)} ${Ot.badgeShadowColor}`,transition:`background ${Ot.motionDurationMid}`,a:{color:Ot.badgeTextColor},"a:hover":{color:Ot.badgeTextColor},"a:hover &":{background:Ot.badgeColorHover}},[`${Le}-count-sm`]:{minWidth:sn,height:sn,fontSize:ke,lineHeight:(0,Be.unit)(sn),borderRadius:Tt(sn).div(2).equal()},[`${Le}-multiple-words`]:{padding:`0 ${(0,Be.unit)(Ot.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${Le}-dot`]:{zIndex:Ot.indicatorZIndex,width:Ie,minWidth:Ie,height:Ie,background:Ot.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,Be.unit)(ve)} ${Ot.badgeShadowColor}`},[`${Le}-count, ${Le}-dot, ${Ct}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${dn}-spin`]:{animationName:lt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${Le}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${Le}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:cn,height:cn,verticalAlign:"middle",borderRadius:"50%"},[`${Le}-status-success`]:{backgroundColor:Ot.colorSuccess},[`${Le}-status-processing`]:{overflow:"visible",color:Ot.colorInfo,backgroundColor:Ot.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:ve,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Ge,animationDuration:Ot.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${Le}-status-default`]:{backgroundColor:Ot.colorTextPlaceholder},[`${Le}-status-error`]:{backgroundColor:Ot.colorError},[`${Le}-status-warning`]:{backgroundColor:Ot.colorWarning},[`${Le}-status-text`]:{marginInlineStart:an,color:Ot.colorText,fontSize:Ot.fontSize}}}),xt),{[`${Le}-zoom-appear, ${Le}-zoom-enter`]:{animationName:bt,animationDuration:Ot.motionDurationSlow,animationTimingFunction:Ot.motionEaseOutBack,animationFillMode:"both"},[`${Le}-zoom-leave`]:{animationName:et,animationDuration:Ot.motionDurationSlow,animationTimingFunction:Ot.motionEaseOutBack,animationFillMode:"both"},[`&${Le}-not-a-wrapper`]:{[`${Le}-zoom-appear, ${Le}-zoom-enter`]:{animationName:nt,animationDuration:Ot.motionDurationSlow,animationTimingFunction:Ot.motionEaseOutBack},[`${Le}-zoom-leave`]:{animationName:ct,animationDuration:Ot.motionDurationSlow,animationTimingFunction:Ot.motionEaseOutBack},[`&:not(${Le}-status)`]:{verticalAlign:"middle"},[`${Ct}-custom-component, ${Le}-count`]:{transform:"none"},[`${Ct}-custom-component, ${Ct}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[Ct]:{overflow:"hidden",transition:`all ${Ot.motionDurationMid} ${Ot.motionEaseOutBack}`,[`${Ct}-only`]:{position:"relative",display:"inline-block",height:Pe,transition:`all ${Ot.motionDurationSlow} ${Ot.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${Ct}-only-unit`]:{height:Pe,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${Ct}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${Le}-count, ${Le}-dot, ${Ct}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},vt=Ot=>{const{fontHeight:Le,lineWidth:dn,marginXS:_e,colorBorderBg:ve}=Ot,Xe=Le,ke=dn,cn=Ot.colorTextLightSolid,Ie=Ot.colorError,ae=Ot.colorErrorHover;return(0,je.mergeToken)(Ot,{badgeFontHeight:Xe,badgeShadowSize:ke,badgeTextColor:cn,badgeColor:Ie,badgeColorHover:ae,badgeShadowColor:ve,badgeProcessingDuration:"1.2s",badgeRibbonOffset:_e,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Pt=Ot=>{const{fontSize:Le,lineHeight:dn,fontSizeSM:_e,lineWidth:ve}=Ot;return{indicatorZIndex:"auto",indicatorHeight:Math.round(Le*dn)-2*ve,indicatorHeightSM:Le,dotSize:_e/2,textFontSize:_e,textFontSizeSM:_e,textFontWeight:"normal",statusSize:_e/2}};var Dt=(0,le.I$)("Badge",Ot=>{const Le=vt(Ot);return pt(Le)},Pt);const Vt=Ot=>{const{antCls:Le,badgeFontHeight:dn,marginXS:_e,badgeRibbonOffset:ve,calc:Xe}=Ot,ke=`${Le}-ribbon`,cn=`${Le}-ribbon-wrapper`,Ie=(0,Bt.Z)(Ot,(ae,Pe)=>{let{darkColor:sn}=Pe;return{[`&${ke}-color-${ae}`]:{background:sn,color:sn}}});return{[cn]:{position:"relative"},[ke]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ce.Wf)(Ot)),{position:"absolute",top:_e,padding:`0 ${(0,Be.unit)(Ot.paddingXS)}`,color:Ot.colorPrimary,lineHeight:(0,Be.unit)(dn),whiteSpace:"nowrap",backgroundColor:Ot.colorPrimary,borderRadius:Ot.borderRadiusSM,[`${ke}-text`]:{color:Ot.badgeTextColor},[`${ke}-corner`]:{position:"absolute",top:"100%",width:ve,height:ve,color:"currentcolor",border:`${(0,Be.unit)(Xe(ve).div(2).equal())} solid`,transform:Ot.badgeRibbonCornerTransform,transformOrigin:"top",filter:Ot.badgeRibbonCornerFilter}}),Ie),{[`&${ke}-placement-end`]:{insetInlineEnd:Xe(ve).mul(-1).equal(),borderEndEndRadius:0,[`${ke}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${ke}-placement-start`]:{insetInlineStart:Xe(ve).mul(-1).equal(),borderEndStartRadius:0,[`${ke}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var Ut=(0,le.I$)(["Badge","Ribbon"],Ot=>{const Le=vt(Ot);return Vt(Le)},Pt),qt=Ot=>{const{className:Le,prefixCls:dn,style:_e,color:ve,children:Xe,text:ke,placement:cn="end",rootClassName:Ie}=Ot,{getPrefixCls:ae,direction:Pe}=St.useContext(ue.E_),sn=ae("ribbon",dn),an=`${sn}-wrapper`,[Tt,Ct,xt]=Ut(sn,an),kt=(0,ce.o2)(ve,!1),zt=me()(sn,`${sn}-placement-${cn}`,{[`${sn}-rtl`]:Pe==="rtl",[`${sn}-color-${ve}`]:kt},Le),Et={},Ae={};return ve&&!kt&&(Et.background=ve,Ae.color=ve),Tt(St.createElement("div",{className:me()(an,Ie,Ct,xt)},Xe,St.createElement("div",{className:me()(zt,Ct),style:Object.assign(Object.assign({},Et),_e)},St.createElement("span",{className:`${sn}-text`},ke),St.createElement("div",{className:`${sn}-corner`,style:Ae}))))};const Jt=Ot=>{const{prefixCls:Le,value:dn,current:_e,offset:ve=0}=Ot;let Xe;return ve&&(Xe={position:"absolute",top:`${ve}00%`,left:0}),St.createElement("span",{style:Xe,className:me()(`${Le}-only-unit`,{current:_e})},dn)};function Me(Ot,Le,dn){let _e=Ot,ve=0;for(;(_e+10)%10!==Le;)_e+=dn,ve+=dn;return ve}var He=Ot=>{const{prefixCls:Le,count:dn,value:_e}=Ot,ve=Number(_e),Xe=Math.abs(dn),[ke,cn]=St.useState(ve),[Ie,ae]=St.useState(Xe),Pe=()=>{cn(ve),ae(Xe)};St.useEffect(()=>{const Tt=setTimeout(Pe,1e3);return()=>clearTimeout(Tt)},[ve]);let sn,an;if(ke===ve||Number.isNaN(ve)||Number.isNaN(ke))sn=[St.createElement(Jt,Object.assign({},Ot,{key:ve,current:!0}))],an={transition:"none"};else{sn=[];const Tt=ve+10,Ct=[];for(let Et=ve;Et<=Tt;Et+=1)Ct.push(Et);const xt=Ie<Xe?1:-1,kt=Ct.findIndex(Et=>Et%10===ke);sn=(xt<0?Ct.slice(0,kt+1):Ct.slice(kt)).map((Et,Ae)=>{const We=Et%10;return St.createElement(Jt,Object.assign({},Ot,{key:Et,value:We,offset:xt<0?Ae-kt:Ae,current:Ae===kt}))}),an={transform:`translateY(${-Me(ke,ve,xt)}00%)`}}return St.createElement("span",{className:`${Le}-only`,style:an,onTransitionEnd:Pe},sn)},De=function(Ot,Le){var dn={};for(var _e in Ot)Object.prototype.hasOwnProperty.call(Ot,_e)&&Le.indexOf(_e)<0&&(dn[_e]=Ot[_e]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,_e=Object.getOwnPropertySymbols(Ot);ve<_e.length;ve++)Le.indexOf(_e[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ot,_e[ve])&&(dn[_e[ve]]=Ot[_e[ve]]);return dn},Fn=St.forwardRef((Ot,Le)=>{const{prefixCls:dn,count:_e,className:ve,motionClassName:Xe,style:ke,title:cn,show:Ie,component:ae="sup",children:Pe}=Ot,sn=De(Ot,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:an}=St.useContext(ue.E_),Tt=an("scroll-number",dn),Ct=Object.assign(Object.assign({},sn),{"data-show":Ie,style:ke,className:me()(Tt,ve,Xe),title:cn});let xt=_e;if(_e&&Number(_e)%1===0){const kt=String(_e).split("");xt=St.createElement("bdi",null,kt.map((zt,Et)=>St.createElement(He,{prefixCls:Tt,count:Number(_e),value:zt,key:kt.length-Et})))}return ke!=null&&ke.borderColor&&(Ct.style=Object.assign(Object.assign({},ke),{boxShadow:`0 0 0 1px ${ke.borderColor} inset`})),Pe?(0,fe.Tm)(Pe,kt=>({className:me()(`${Tt}-custom-component`,kt==null?void 0:kt.className,Xe)})):St.createElement(ae,Object.assign({},Ct,{ref:Le}),xt)}),on=function(Ot,Le){var dn={};for(var _e in Ot)Object.prototype.hasOwnProperty.call(Ot,_e)&&Le.indexOf(_e)<0&&(dn[_e]=Ot[_e]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,_e=Object.getOwnPropertySymbols(Ot);ve<_e.length;ve++)Le.indexOf(_e[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ot,_e[ve])&&(dn[_e[ve]]=Ot[_e[ve]]);return dn};const fn=St.forwardRef((Ot,Le)=>{var dn,_e,ve,Xe,ke;const{prefixCls:cn,scrollNumberPrefixCls:Ie,children:ae,status:Pe,text:sn,color:an,count:Tt=null,overflowCount:Ct=99,dot:xt=!1,size:kt="default",title:zt,offset:Et,style:Ae,className:We,rootClassName:Ue,classNames:jn,styles:Gn,showZero:Ke=!1}=Ot,ri=on(Ot,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:Sn,direction:hi,badge:ti}=St.useContext(ue.E_),Wn=Sn("badge",cn),[bi,Ei,Pi]=Dt(Wn),An=Tt>Ct?`${Ct}+`:Tt,ei=An==="0"||An===0,gr=Tt===null||ei&&!Ke,dr=(Pe!=null||an!=null)&&gr,Sr=xt&&!ei,_r=Sr?"":An,cr=(0,St.useMemo)(()=>(_r==null||_r===""||ei&&!Ke)&&!Sr,[_r,ei,Ke,Sr]),jo=(0,St.useRef)(Tt);cr||(jo.current=Tt);const Yo=jo.current,ko=(0,St.useRef)(_r);cr||(ko.current=_r);const $o=ko.current,ms=(0,St.useRef)(Sr);cr||(ms.current=Sr);const Ho=(0,St.useMemo)(()=>{if(!Et)return Object.assign(Object.assign({},ti==null?void 0:ti.style),Ae);const Nn={marginTop:Et[1]};return hi==="rtl"?Nn.left=parseInt(Et[0],10):Nn.right=-parseInt(Et[0],10),Object.assign(Object.assign(Object.assign({},Nn),ti==null?void 0:ti.style),Ae)},[hi,Et,Ae,ti==null?void 0:ti.style]),Go=zt!=null?zt:typeof Yo=="string"||typeof Yo=="number"?Yo:void 0,nr=cr||!sn?null:St.createElement("span",{className:`${Wn}-status-text`},sn),lo=!Yo||typeof Yo!="object"?void 0:(0,fe.Tm)(Yo,Nn=>({style:Object.assign(Object.assign({},Ho),Nn.style)})),Lt=(0,ce.o2)(an,!1),Rn=me()(jn==null?void 0:jn.indicator,(dn=ti==null?void 0:ti.classNames)===null||dn===void 0?void 0:dn.indicator,{[`${Wn}-status-dot`]:dr,[`${Wn}-status-${Pe}`]:!!Pe,[`${Wn}-color-${an}`]:Lt}),ii={};an&&!Lt&&(ii.color=an,ii.background=an);const Vn=me()(Wn,{[`${Wn}-status`]:dr,[`${Wn}-not-a-wrapper`]:!ae,[`${Wn}-rtl`]:hi==="rtl"},We,Ue,ti==null?void 0:ti.className,(_e=ti==null?void 0:ti.classNames)===null||_e===void 0?void 0:_e.root,jn==null?void 0:jn.root,Ei,Pi);if(!ae&&dr){const Nn=Ho.color;return bi(St.createElement("span",Object.assign({},ri,{className:Vn,style:Object.assign(Object.assign(Object.assign({},Gn==null?void 0:Gn.root),(ve=ti==null?void 0:ti.styles)===null||ve===void 0?void 0:ve.root),Ho)}),St.createElement("span",{className:Rn,style:Object.assign(Object.assign(Object.assign({},Gn==null?void 0:Gn.indicator),(Xe=ti==null?void 0:ti.styles)===null||Xe===void 0?void 0:Xe.indicator),ii)}),sn&&St.createElement("span",{style:{color:Nn},className:`${Wn}-status-text`},sn)))}return bi(St.createElement("span",Object.assign({ref:Le},ri,{className:Vn,style:Object.assign(Object.assign({},(ke=ti==null?void 0:ti.styles)===null||ke===void 0?void 0:ke.root),Gn==null?void 0:Gn.root)}),ae,St.createElement(he.default,{visible:!cr,motionName:`${Wn}-zoom`,motionAppear:!1,motionDeadline:1e3},Nn=>{let{className:Cn}=Nn;var gi,Ui;const Te=Sn("scroll-number",Ie),Ne=ms.current,we=me()(jn==null?void 0:jn.indicator,(gi=ti==null?void 0:ti.classNames)===null||gi===void 0?void 0:gi.indicator,{[`${Wn}-dot`]:Ne,[`${Wn}-count`]:!Ne,[`${Wn}-count-sm`]:kt==="small",[`${Wn}-multiple-words`]:!Ne&&$o&&$o.toString().length>1,[`${Wn}-status-${Pe}`]:!!Pe,[`${Wn}-color-${an}`]:Lt});let Ye=Object.assign(Object.assign(Object.assign({},Gn==null?void 0:Gn.indicator),(Ui=ti==null?void 0:ti.styles)===null||Ui===void 0?void 0:Ui.indicator),Ho);return an&&!Lt&&(Ye=Ye||{},Ye.background=an),St.createElement(Fn,{prefixCls:Te,show:!cr,motionClassName:Cn,className:we,count:$o,title:Go,style:Ye,key:"scrollNumber"},lo)}),nr))});fn.Ribbon=qt;var te=fn},99498:function(xn,$n,Rt){(function(St){St(Rt(89780))})(function(St){St.defineOption("placeholder","",function(Be,Ce,Bt){var je=Bt&&Bt!=St.Init;if(Ce&&!je)Be.on("blur",ce),Be.on("change",fe),Be.on("swapDoc",fe),St.on(Be.getInputField(),"compositionupdate",Be.state.placeholderCompose=function(){he(Be)}),fe(Be);else if(!Ce&&je){Be.off("blur",ce),Be.off("change",fe),Be.off("swapDoc",fe),St.off(Be.getInputField(),"compositionupdate",Be.state.placeholderCompose),ee(Be);var le=Be.getWrapperElement();le.className=le.className.replace(" CodeMirror-empty","")}Ce&&!Be.hasFocus()&&ce(Be)});function ee(Be){Be.state.placeholder&&(Be.state.placeholder.parentNode.removeChild(Be.state.placeholder),Be.state.placeholder=null)}function me(Be){ee(Be);var Ce=Be.state.placeholder=document.createElement("pre");Ce.style.cssText="height: 0; overflow: visible",Ce.style.direction=Be.getOption("direction"),Ce.className="CodeMirror-placeholder CodeMirror-line-like";var Bt=Be.getOption("placeholder");typeof Bt=="string"&&(Bt=document.createTextNode(Bt)),Ce.appendChild(Bt),Be.display.lineSpace.insertBefore(Ce,Be.display.lineSpace.firstChild)}function he(Be){setTimeout(function(){var Ce=!1,Bt=Be.getInputField();Bt.nodeName=="TEXTAREA"?Ce=!Bt.value:Be.lineCount()==1&&(Ce=!/[^\u200b]/.test(Bt.querySelector(".CodeMirror-line").textContent)),Ce?me(Be):ee(Be)},20)}function ce(Be){ue(Be)&&me(Be)}function fe(Be){var Ce=Be.getWrapperElement(),Bt=ue(Be);Ce.className=Ce.className.replace(" CodeMirror-empty","")+(Bt?" CodeMirror-empty":""),Bt?me(Be):ee(Be)}function ue(Be){return Be.lineCount()===1&&Be.getLine(0)===""}})},25717:function(xn,$n,Rt){(function(St){St(Rt(89780))})(function(St){var ee={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},me=St.Pos;St.defineOption("autoCloseBrackets",!1,function(et,nt,ct){ct&&ct!=St.Init&&(et.removeKeyMap(ce),et.state.closeBrackets=null),nt&&(fe(he(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(ce))});function he(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:ee[nt]}var ce={Backspace:Ce,Enter:Bt};function fe(et){for(var nt=0;nt<et.length;nt++){var ct=et.charAt(nt),lt="'"+ct+"'";ce[lt]||(ce[lt]=ue(ct))}}fe(ee.pairs+"`");function ue(et){return function(nt){return le(nt,et)}}function Be(et){var nt=et.state.closeBrackets;if(!nt||nt.override)return nt;var ct=et.getModeAt(et.getCursor());return ct.closeBrackets||nt}function Ce(et){var nt=Be(et);if(!nt||et.getOption("disableInput"))return St.Pass;for(var ct=he(nt,"pairs"),lt=et.listSelections(),pt=0;pt<lt.length;pt++){if(!lt[pt].empty())return St.Pass;var vt=Ge(et,lt[pt].head);if(!vt||ct.indexOf(vt)%2!=0)return St.Pass}for(var pt=lt.length-1;pt>=0;pt--){var Pt=lt[pt].head;et.replaceRange("",me(Pt.line,Pt.ch-1),me(Pt.line,Pt.ch+1),"+delete")}}function Bt(et){var nt=Be(et),ct=nt&&he(nt,"explode");if(!ct||et.getOption("disableInput"))return St.Pass;for(var lt=et.listSelections(),pt=0;pt<lt.length;pt++){if(!lt[pt].empty())return St.Pass;var vt=Ge(et,lt[pt].head);if(!vt||ct.indexOf(vt)%2!=0)return St.Pass}et.operation(function(){var Pt=et.lineSeparator()||`
|
|
`;et.replaceSelection(Pt+Pt,null),et.execCommand("goCharLeft"),lt=et.listSelections();for(var Dt=0;Dt<lt.length;Dt++){var Vt=lt[Dt].head.line;et.indentLine(Vt,null,!0),et.indentLine(Vt+1,null,!0)}})}function je(et){var nt=St.cmpPos(et.anchor,et.head)>0;return{anchor:new me(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new me(et.head.line,et.head.ch+(nt?1:-1))}}function le(et,nt){var ct=Be(et);if(!ct||et.getOption("disableInput"))return St.Pass;var lt=he(ct,"pairs"),pt=lt.indexOf(nt);if(pt==-1)return St.Pass;for(var vt=he(ct,"closeBefore"),Pt=he(ct,"triples"),Dt=lt.charAt(pt+1)==nt,Vt=et.listSelections(),Ut=pt%2==0,se,qt=0;qt<Vt.length;qt++){var Jt=Vt[qt],Me=Jt.head,pe,He=et.getRange(Me,me(Me.line,Me.ch+1));if(Ut&&!Jt.empty())pe="surround";else if((Dt||!Ut)&&He==nt)Dt&&bt(et,Me)?pe="both":Pt.indexOf(nt)>=0&&et.getRange(Me,me(Me.line,Me.ch+3))==nt+nt+nt?pe="skipThree":pe="skip";else if(Dt&&Me.ch>1&&Pt.indexOf(nt)>=0&&et.getRange(me(Me.line,Me.ch-2),Me)==nt+nt){if(Me.ch>2&&/\bstring/.test(et.getTokenTypeAt(me(Me.line,Me.ch-2))))return St.Pass;pe="addFour"}else if(Dt){var De=Me.ch==0?" ":et.getRange(me(Me.line,Me.ch-1),Me);if(!St.isWordChar(He)&&De!=nt&&!St.isWordChar(De))pe="both";else return St.Pass}else if(Ut&&(He.length===0||/\s/.test(He)||vt.indexOf(He)>-1))pe="both";else return St.Pass;if(!se)se=pe;else if(se!=pe)return St.Pass}var tn=pt%2?lt.charAt(pt-1):nt,Fn=pt%2?nt:lt.charAt(pt+1);et.operation(function(){if(se=="skip")et.execCommand("goCharRight");else if(se=="skipThree")for(var on=0;on<3;on++)et.execCommand("goCharRight");else if(se=="surround"){for(var pn=et.getSelections(),on=0;on<pn.length;on++)pn[on]=tn+pn[on]+Fn;et.replaceSelections(pn,"around"),pn=et.listSelections().slice();for(var on=0;on<pn.length;on++)pn[on]=je(pn[on]);et.setSelections(pn)}else se=="both"?(et.replaceSelection(tn+Fn,null),et.triggerElectric(tn+Fn),et.execCommand("goCharLeft")):se=="addFour"&&(et.replaceSelection(tn+tn+tn+tn,"before"),et.execCommand("goCharRight"))})}function Ge(et,nt){var ct=et.getRange(me(nt.line,nt.ch-1),me(nt.line,nt.ch+1));return ct.length==2?ct:null}function bt(et,nt){var ct=et.getTokenAt(me(nt.line,nt.ch+1));return/\bstring/.test(ct.type)&&ct.start==nt.ch&&(nt.ch==0||!/\bstring/.test(et.getTokenTypeAt(nt)))}})},6313:function(xn,$n,Rt){(function(St){St(Rt(89780),Rt(32855))})(function(St){St.defineOption("autoCloseTags",!1,function(Ce,Bt,je){if(je!=St.Init&&je&&Ce.removeKeyMap("autoCloseTags"),!!Bt){var le={name:"autoCloseTags"};(typeof Bt!="object"||Bt.whenClosing!==!1)&&(le["'/'"]=function(Ge){return fe(Ge)}),(typeof Bt!="object"||Bt.whenOpening!==!1)&&(le["'>'"]=function(Ge){return he(Ge)}),Ce.addKeyMap(le)}});var ee=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],me=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function he(Ce){if(Ce.getOption("disableInput"))return St.Pass;for(var Bt=Ce.listSelections(),je=[],le=Ce.getOption("autoCloseTags"),Ge=0;Ge<Bt.length;Ge++){if(!Bt[Ge].empty())return St.Pass;var bt=Bt[Ge].head,et=Ce.getTokenAt(bt),nt=St.innerMode(Ce.getMode(),et.state),ct=nt.state,lt=nt.mode.xmlCurrentTag&&nt.mode.xmlCurrentTag(ct),pt=lt&<.name;if(!pt)return St.Pass;var vt=nt.mode.configuration=="html",Pt=typeof le=="object"&&le.dontCloseTags||vt&&ee,Dt=typeof le=="object"&&le.indentTags||vt&&me;et.end>bt.ch&&(pt=pt.slice(0,pt.length-et.end+bt.ch));var Vt=pt.toLowerCase();if(!pt||et.type=="string"&&(et.end!=bt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&<.close||et.string.indexOf("/")==bt.ch-et.start-1||Pt&&ue(Pt,Vt)>-1||Be(Ce,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(ct)||[],pt,bt,!0))return St.Pass;var Ut=typeof le=="object"&&le.emptyTags;if(Ut&&ue(Ut,pt)>-1){je[Ge]={text:"/>",newPos:St.Pos(bt.line,bt.ch+2)};continue}var se=Dt&&ue(Dt,Vt)>-1;je[Ge]={indent:se,text:">"+(se?`
|
|
|
|
`:"")+"</"+pt+">",newPos:se?St.Pos(bt.line+1,0):St.Pos(bt.line,bt.ch+1)}}for(var qt=typeof le=="object"&&le.dontIndentOnAutoClose,Ge=Bt.length-1;Ge>=0;Ge--){var Jt=je[Ge];Ce.replaceRange(Jt.text,Bt[Ge].head,Bt[Ge].anchor,"+insert");var Me=Ce.listSelections().slice(0);Me[Ge]={head:Jt.newPos,anchor:Jt.newPos},Ce.setSelections(Me),!qt&&Jt.indent&&(Ce.indentLine(Jt.newPos.line,null,!0),Ce.indentLine(Jt.newPos.line+1,null,!0))}}function ce(Ce,Bt){for(var je=Ce.listSelections(),le=[],Ge=Bt?"/":"</",bt=Ce.getOption("autoCloseTags"),et=typeof bt=="object"&&bt.dontIndentOnSlash,nt=0;nt<je.length;nt++){if(!je[nt].empty())return St.Pass;var ct=je[nt].head,lt=Ce.getTokenAt(ct),pt=St.innerMode(Ce.getMode(),lt.state),vt=pt.state;if(Bt&&(lt.type=="string"||lt.string.charAt(0)!="<"||lt.start!=ct.ch-1))return St.Pass;var Pt,Dt=pt.mode.name!="xml"&&Ce.getMode().name=="htmlmixed";if(Dt&&pt.mode.name=="javascript")Pt=Ge+"script";else if(Dt&&pt.mode.name=="css")Pt=Ge+"style";else{var Vt=pt.mode.xmlCurrentContext&&pt.mode.xmlCurrentContext(vt);if(!Vt||Vt.length&&Be(Ce,Vt,Vt[Vt.length-1],ct))return St.Pass;Pt=Ge+Vt[Vt.length-1]}Ce.getLine(ct.line).charAt(lt.end)!=">"&&(Pt+=">"),le[nt]=Pt}if(Ce.replaceSelections(le),je=Ce.listSelections(),!et)for(var nt=0;nt<je.length;nt++)(nt==je.length-1||je[nt].head.line<je[nt+1].head.line)&&Ce.indentLine(je[nt].head.line)}function fe(Ce){return Ce.getOption("disableInput")?St.Pass:ce(Ce,!0)}St.commands.closeTag=function(Ce){return ce(Ce)};function ue(Ce,Bt){if(Ce.indexOf)return Ce.indexOf(Bt);for(var je=0,le=Ce.length;je<le;++je)if(Ce[je]==Bt)return je;return-1}function Be(Ce,Bt,je,le,Ge){if(!St.scanForClosingTag)return!1;var bt=Math.min(Ce.lastLine()+1,le.line+500),et=St.scanForClosingTag(Ce,le,null,bt);if(!et||et.tag!=je)return!1;for(var nt=Ge?1:0,ct=Bt.length-1;ct>=0&&Bt[ct]==je;ct--)++nt;le=et.to;for(var ct=1;ct<nt;ct++){var lt=St.scanForClosingTag(Ce,le,null,bt);if(!lt||lt.tag!=je)return!1;le=lt.to}return!0}})},32855:function(xn,$n,Rt){(function(St){St(Rt(89780))})(function(St){"use strict";var ee=St.Pos;function me(ct,lt){return ct.line-lt.line||ct.ch-lt.ch}var he="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ce=he+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",fe=new RegExp("<(/?)(["+he+"]["+ce+"]*)","g");function ue(ct,lt,pt,vt){this.line=lt,this.ch=pt,this.cm=ct,this.text=ct.getLine(lt),this.min=vt?Math.max(vt.from,ct.firstLine()):ct.firstLine(),this.max=vt?Math.min(vt.to-1,ct.lastLine()):ct.lastLine()}function Be(ct,lt){var pt=ct.cm.getTokenTypeAt(ee(ct.line,lt));return pt&&/\btag\b/.test(pt)}function Ce(ct){if(!(ct.line>=ct.max))return ct.ch=0,ct.text=ct.cm.getLine(++ct.line),!0}function Bt(ct){if(!(ct.line<=ct.min))return ct.text=ct.cm.getLine(--ct.line),ct.ch=ct.text.length,!0}function je(ct){for(;;){var lt=ct.text.indexOf(">",ct.ch);if(lt==-1){if(Ce(ct))continue;return}if(!Be(ct,lt+1)){ct.ch=lt+1;continue}var pt=ct.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(ct.text.slice(pt+1,lt));return ct.ch=lt+1,vt?"selfClose":"regular"}}function le(ct){for(;;){var lt=ct.ch?ct.text.lastIndexOf("<",ct.ch-1):-1;if(lt==-1){if(Bt(ct))continue;return}if(!Be(ct,lt+1)){ct.ch=lt;continue}fe.lastIndex=lt,ct.ch=lt;var pt=fe.exec(ct.text);if(pt&&pt.index==lt)return pt}}function Ge(ct){for(;;){fe.lastIndex=ct.ch;var lt=fe.exec(ct.text);if(!lt){if(Ce(ct))continue;return}if(!Be(ct,lt.index+1)){ct.ch=lt.index+1;continue}return ct.ch=lt.index+lt[0].length,lt}}function bt(ct){for(;;){var lt=ct.ch?ct.text.lastIndexOf(">",ct.ch-1):-1;if(lt==-1){if(Bt(ct))continue;return}if(!Be(ct,lt+1)){ct.ch=lt;continue}var pt=ct.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(ct.text.slice(pt+1,lt));return ct.ch=lt+1,vt?"selfClose":"regular"}}function et(ct,lt){for(var pt=[];;){var vt=Ge(ct),Pt,Dt=ct.line,Vt=ct.ch-(vt?vt[0].length:0);if(!vt||!(Pt=je(ct)))return;if(Pt!="selfClose")if(vt[1]){for(var Ut=pt.length-1;Ut>=0;--Ut)if(pt[Ut]==vt[2]){pt.length=Ut;break}if(Ut<0&&(!lt||lt==vt[2]))return{tag:vt[2],from:ee(Dt,Vt),to:ee(ct.line,ct.ch)}}else pt.push(vt[2])}}function nt(ct,lt){for(var pt=[];;){var vt=bt(ct);if(!vt)return;if(vt=="selfClose"){le(ct);continue}var Pt=ct.line,Dt=ct.ch,Vt=le(ct);if(!Vt)return;if(Vt[1])pt.push(Vt[2]);else{for(var Ut=pt.length-1;Ut>=0;--Ut)if(pt[Ut]==Vt[2]){pt.length=Ut;break}if(Ut<0&&(!lt||lt==Vt[2]))return{tag:Vt[2],from:ee(ct.line,ct.ch),to:ee(Pt,Dt)}}}}St.registerHelper("fold","xml",function(ct,lt){for(var pt=new ue(ct,lt.line,0);;){var vt=Ge(pt);if(!vt||pt.line!=lt.line)return;var Pt=je(pt);if(!Pt)return;if(!vt[1]&&Pt!="selfClose"){var Dt=ee(pt.line,pt.ch),Vt=et(pt,vt[2]);return Vt&&me(Vt.from,Dt)>0?{from:Dt,to:Vt.from}:null}}}),St.findMatchingTag=function(ct,lt,pt){var vt=new ue(ct,lt.line,lt.ch,pt);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var Pt=je(vt),Dt=Pt&&ee(vt.line,vt.ch),Vt=Pt&&le(vt);if(!(!Pt||!Vt||me(vt,lt)>0)){var Ut={from:ee(vt.line,vt.ch),to:Dt,tag:Vt[2]};return Pt=="selfClose"?{open:Ut,close:null,at:"open"}:Vt[1]?{open:nt(vt,Vt[2]),close:Ut,at:"close"}:(vt=new ue(ct,Dt.line,Dt.ch,pt),{open:Ut,close:et(vt,Vt[2]),at:"open"})}}},St.findEnclosingTag=function(ct,lt,pt,vt){for(var Pt=new ue(ct,lt.line,lt.ch,pt);;){var Dt=nt(Pt,vt);if(!Dt)break;var Vt=new ue(ct,lt.line,lt.ch,pt),Ut=et(Vt,Dt.tag);if(Ut)return{open:Dt,close:Ut}}},St.scanForClosingTag=function(ct,lt,pt,vt){var Pt=new ue(ct,lt.line,lt.ch,vt?{from:0,to:vt}:null);return et(Pt,pt)}})},89780:function(xn){(function($n,Rt){xn.exports=Rt()})(this,function(){"use strict";var $n=navigator.userAgent,Rt=navigator.platform,St=/gecko\/\d/i.test($n),ee=/MSIE \d/.test($n),me=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec($n),he=/Edge\/(\d+)/.exec($n),ce=ee||me||he,fe=ce&&(ee?document.documentMode||6:+(he||me)[1]),ue=!he&&/WebKit\//.test($n),Be=ue&&/Qt\/\d+\.\d+/.test($n),Ce=!he&&/Chrome\//.test($n),Bt=/Opera\//.test($n),je=/Apple Computer/.test(navigator.vendor),le=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test($n),Ge=/PhantomJS/.test($n),bt=!he&&/AppleWebKit/.test($n)&&/Mobile\/\w+/.test($n),et=/Android/.test($n),nt=bt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test($n),ct=bt||/Mac/.test(Rt),lt=/\bCrOS\b/.test($n),pt=/win/i.test(Rt),vt=Bt&&$n.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(Bt=!1,ue=!0);var Pt=ct&&(Be||Bt&&(vt==null||vt<12.11)),Dt=St||ce&&fe>=9;function Vt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Ut=function(it,st){var dt=it.className,ht=Vt(st).exec(dt);if(ht){var gt=dt.slice(ht.index+ht[0].length);it.className=dt.slice(0,ht.index)+(gt?ht[1]+gt:"")}};function se(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function qt(it,st){return se(it).appendChild(st)}function Jt(it,st,dt,ht){var gt=document.createElement(it);if(dt&&(gt.className=dt),ht&&(gt.style.cssText=ht),typeof st=="string")gt.appendChild(document.createTextNode(st));else if(st)for(var At=0;At<st.length;++At)gt.appendChild(st[At]);return gt}function Me(it,st,dt,ht){var gt=Jt(it,st,dt,ht);return gt.setAttribute("role","presentation"),gt}var pe;document.createRange?pe=function(it,st,dt,ht){var gt=document.createRange();return gt.setEnd(ht||it,dt),gt.setStart(it,st),gt}:pe=function(it,st,dt){var ht=document.body.createTextRange();try{ht.moveToElementText(it.parentNode)}catch(gt){return ht}return ht.collapse(!0),ht.moveEnd("character",dt),ht.moveStart("character",st),ht};function He(it,st){if(st.nodeType==3&&(st=st.parentNode),it.contains)return it.contains(st);do if(st.nodeType==11&&(st=st.host),st==it)return!0;while(st=st.parentNode)}function De(){var it;try{it=document.activeElement}catch(st){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function tn(it,st){var dt=it.className;Vt(st).test(dt)||(it.className+=(dt?" ":"")+st)}function Fn(it,st){for(var dt=it.split(" "),ht=0;ht<dt.length;ht++)dt[ht]&&!Vt(dt[ht]).test(st)&&(st+=" "+dt[ht]);return st}var on=function(it){it.select()};bt?on=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:ce&&(on=function(it){try{it.select()}catch(st){}});function pn(it){var st=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,st)}}function fn(it,st,dt){st||(st={});for(var ht in it)it.hasOwnProperty(ht)&&(dt!==!1||!st.hasOwnProperty(ht))&&(st[ht]=it[ht]);return st}function te(it,st,dt,ht,gt){st==null&&(st=it.search(/[^\s\u00a0]/),st==-1&&(st=it.length));for(var At=ht||0,Nt=gt||0;;){var Gt=it.indexOf(" ",At);if(Gt<0||Gt>=st)return Nt+(st-At);Nt+=Gt-At,Nt+=dt-Nt%dt,At=Gt+1}}var Ot=function(){this.id=null,this.f=null,this.time=0,this.handler=pn(this.onTimeout,this)};Ot.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Ot.prototype.set=function(it,st){this.f=st;var dt=+new Date+it;(!this.id||dt<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=dt)};function Le(it,st){for(var dt=0;dt<it.length;++dt)if(it[dt]==st)return dt;return-1}var dn=50,_e={toString:function(){return"CodeMirror.Pass"}},ve={scroll:!1},Xe={origin:"*mouse"},ke={origin:"+move"};function cn(it,st,dt){for(var ht=0,gt=0;;){var At=it.indexOf(" ",ht);At==-1&&(At=it.length);var Nt=At-ht;if(At==it.length||gt+Nt>=st)return ht+Math.min(Nt,st-gt);if(gt+=At-ht,gt+=dt-gt%dt,ht=At+1,gt>=st)return ht}}var Ie=[""];function ae(it){for(;Ie.length<=it;)Ie.push(Pe(Ie)+" ");return Ie[it]}function Pe(it){return it[it.length-1]}function sn(it,st){for(var dt=[],ht=0;ht<it.length;ht++)dt[ht]=st(it[ht],ht);return dt}function an(it,st,dt){for(var ht=0,gt=dt(st);ht<it.length&&dt(it[ht])<=gt;)ht++;it.splice(ht,0,st)}function Tt(){}function Ct(it,st){var dt;return Object.create?dt=Object.create(it):(Tt.prototype=it,dt=new Tt),st&&fn(st,dt),dt}var xt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function kt(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||xt.test(it))}function zt(it,st){return st?st.source.indexOf("\\w")>-1&&kt(it)?!0:st.test(it):kt(it)}function Et(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var Ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function We(it){return it.charCodeAt(0)>=768&&Ae.test(it)}function Ue(it,st,dt){for(;(dt<0?st>0:st<it.length)&&We(it.charAt(st));)st+=dt;return st}function jn(it,st,dt){for(var ht=st>dt?-1:1;;){if(st==dt)return st;var gt=(st+dt)/2,At=ht<0?Math.ceil(gt):Math.floor(gt);if(At==st)return it(At)?st:dt;it(At)?dt=At:st=At+ht}}function Gn(it,st,dt,ht){if(!it)return ht(st,dt,"ltr",0);for(var gt=!1,At=0;At<it.length;++At){var Nt=it[At];(Nt.from<dt&&Nt.to>st||st==dt&&Nt.to==st)&&(ht(Math.max(Nt.from,st),Math.min(Nt.to,dt),Nt.level==1?"rtl":"ltr",At),gt=!0)}gt||ht(st,dt,"ltr")}var Ke=null;function ri(it,st,dt){var ht;Ke=null;for(var gt=0;gt<it.length;++gt){var At=it[gt];if(At.from<st&&At.to>st)return gt;At.to==st&&(At.from!=At.to&&dt=="before"?ht=gt:Ke=gt),At.from==st&&(At.from!=At.to&&dt!="before"?ht=gt:Ke=gt)}return ht!=null?ht:Ke}var Sn=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function dt(_t){return _t<=247?it.charAt(_t):1424<=_t&&_t<=1524?"R":1536<=_t&&_t<=1785?st.charAt(_t-1536):1774<=_t&&_t<=2220?"r":8192<=_t&&_t<=8203?"w":_t==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,gt=/[stwN]/,At=/[LRr]/,Nt=/[Lb1n]/,Gt=/[1n]/;function jt(_t,Fe,ie){this.level=_t,this.from=Fe,this.to=ie}return function(_t,Fe){var ie=Fe=="ltr"?"L":"R";if(_t.length==0||Fe=="ltr"&&!ht.test(_t))return!1;for(var qe=_t.length,Ze=[],Un=0;Un<qe;++Un)Ze.push(dt(_t.charCodeAt(Un)));for(var _n=0,Si=ie;_n<qe;++_n){var zi=Ze[_n];zi=="m"?Ze[_n]=Si:Si=zi}for(var hr=0,Ki=ie;hr<qe;++hr){var yr=Ze[hr];yr=="1"&&Ki=="r"?Ze[hr]="n":At.test(yr)&&(Ki=yr,yr=="r"&&(Ze[hr]="R"))}for(var Zr=1,Zi=Ze[0];Zr<qe-1;++Zr){var wo=Ze[Zr];wo=="+"&&Zi=="1"&&Ze[Zr+1]=="1"?Ze[Zr]="1":wo==","&&Zi==Ze[Zr+1]&&(Zi=="1"||Zi=="n")&&(Ze[Zr]=Zi),Zi=wo}for(var As=0;As<qe;++As){var la=Ze[As];if(la==",")Ze[As]="N";else if(la=="%"){var Ds=void 0;for(Ds=As+1;Ds<qe&&Ze[Ds]=="%";++Ds);for(var $a=As&&Ze[As-1]=="!"||Ds<qe&&Ze[Ds]=="1"?"1":"N",Oa=As;Oa<Ds;++Oa)Ze[Oa]=$a;As=Ds-1}}for(var ra=0,hl=ie;ra<qe;++ra){var ka=Ze[ra];hl=="L"&&ka=="1"?Ze[ra]="L":At.test(ka)&&(hl=ka)}for(var oa=0;oa<qe;++oa)if(gt.test(Ze[oa])){var Jo=void 0;for(Jo=oa+1;Jo<qe&>.test(Ze[Jo]);++Jo);for(var zs=(oa?Ze[oa-1]:ie)=="L",va=(Jo<qe?Ze[Jo]:ie)=="L",ba=zs==va?zs?"L":"R":ie,_l=oa;_l<Jo;++_l)Ze[_l]=ba;oa=Jo-1}for(var Ns=[],zl,Ws=0;Ws<qe;)if(Nt.test(Ze[Ws])){var Bc=Ws;for(++Ws;Ws<qe&&Nt.test(Ze[Ws]);++Ws);Ns.push(new jt(0,Bc,Ws))}else{var Al=Ws,dl=Ns.length,tl=Fe=="rtl"?1:0;for(++Ws;Ws<qe&&Ze[Ws]!="L";++Ws);for(var fs=Al;fs<Ws;)if(Gt.test(Ze[fs])){Al<fs&&(Ns.splice(dl,0,new jt(1,Al,fs)),dl+=tl);var ya=fs;for(++fs;fs<Ws&&Gt.test(Ze[fs]);++fs);Ns.splice(dl,0,new jt(2,ya,fs)),dl+=tl,Al=fs}else++fs;Al<Ws&&Ns.splice(dl,0,new jt(1,Al,Ws))}return Fe=="ltr"&&(Ns[0].level==1&&(zl=_t.match(/^\s+/))&&(Ns[0].from=zl[0].length,Ns.unshift(new jt(0,0,zl[0].length))),Pe(Ns).level==1&&(zl=_t.match(/\s+$/))&&(Pe(Ns).to-=zl[0].length,Ns.push(new jt(0,qe-zl[0].length,qe)))),Fe=="rtl"?Ns.reverse():Ns}}();function hi(it,st){var dt=it.order;return dt==null&&(dt=it.order=Sn(it.text,st)),dt}var ti=[],Wn=function(it,st,dt){if(it.addEventListener)it.addEventListener(st,dt,!1);else if(it.attachEvent)it.attachEvent("on"+st,dt);else{var ht=it._handlers||(it._handlers={});ht[st]=(ht[st]||ti).concat(dt)}};function bi(it,st){return it._handlers&&it._handlers[st]||ti}function Ei(it,st,dt){if(it.removeEventListener)it.removeEventListener(st,dt,!1);else if(it.detachEvent)it.detachEvent("on"+st,dt);else{var ht=it._handlers,gt=ht&&ht[st];if(gt){var At=Le(gt,dt);At>-1&&(ht[st]=gt.slice(0,At).concat(gt.slice(At+1)))}}}function Pi(it,st){var dt=bi(it,st);if(dt.length)for(var ht=Array.prototype.slice.call(arguments,2),gt=0;gt<dt.length;++gt)dt[gt].apply(null,ht)}function An(it,st,dt){return typeof st=="string"&&(st={type:st,preventDefault:function(){this.defaultPrevented=!0}}),Pi(it,dt||st.type,it,st),cr(st)||st.codemirrorIgnore}function ei(it){var st=it._handlers&&it._handlers.cursorActivity;if(st)for(var dt=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),ht=0;ht<st.length;++ht)Le(dt,st[ht])==-1&&dt.push(st[ht])}function gr(it,st){return bi(it,st).length>0}function dr(it){it.prototype.on=function(st,dt){Wn(this,st,dt)},it.prototype.off=function(st,dt){Ei(this,st,dt)}}function Sr(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function _r(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function cr(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function jo(it){Sr(it),_r(it)}function Yo(it){return it.target||it.srcElement}function ko(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),ct&&it.ctrlKey&&st==1&&(st=3),st}var $o=function(){if(ce&&fe<9)return!1;var it=Jt("div");return"draggable"in it||"dragDrop"in it}(),ms;function Ho(it){if(ms==null){var st=Jt("span","\u200B");qt(it,Jt("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(ms=st.offsetWidth<=1&&st.offsetHeight>2&&!(ce&&fe<8))}var dt=ms?Jt("span","\u200B"):Jt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return dt.setAttribute("cm-text",""),dt}var Go;function nr(it){if(Go!=null)return Go;var st=qt(it,document.createTextNode("A\u062EA")),dt=pe(st,0,1).getBoundingClientRect(),ht=pe(st,1,2).getBoundingClientRect();return se(it),!dt||dt.left==dt.right?!1:Go=ht.right-dt.right<3}var lo=`
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var st=0,dt=[],ht=it.length;st<=ht;){var gt=it.indexOf(`
|
|
`,st);gt==-1&&(gt=it.length);var At=it.slice(st,it.charAt(gt-1)=="\r"?gt-1:gt),Nt=At.indexOf("\r");Nt!=-1?(dt.push(At.slice(0,Nt)),st+=Nt+1):(dt.push(At),st=gt+1)}return dt}:function(it){return it.split(/\r\n?|\n/)},Lt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(st){return!1}}:function(it){var st;try{st=it.ownerDocument.selection.createRange()}catch(dt){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},Rn=function(){var it=Jt("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),ii=null;function Vn(it){if(ii!=null)return ii;var st=qt(it,Jt("span","x")),dt=st.getBoundingClientRect(),ht=pe(st,0,1).getBoundingClientRect();return ii=Math.abs(dt.left-ht.left)>1}var Nn={},Cn={};function gi(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),Nn[it]=st}function Ui(it,st){Cn[it]=st}function Te(it){if(typeof it=="string"&&Cn.hasOwnProperty(it))it=Cn[it];else if(it&&typeof it.name=="string"&&Cn.hasOwnProperty(it.name)){var st=Cn[it.name];typeof st=="string"&&(st={name:st}),it=Ct(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Te("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Te("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Ne(it,st){st=Te(st);var dt=Nn[st.name];if(!dt)return Ne(it,"text/plain");var ht=dt(it,st);if(we.hasOwnProperty(st.name)){var gt=we[st.name];for(var At in gt)gt.hasOwnProperty(At)&&(ht.hasOwnProperty(At)&&(ht["_"+At]=ht[At]),ht[At]=gt[At])}if(ht.name=st.name,st.helperType&&(ht.helperType=st.helperType),st.modeProps)for(var Nt in st.modeProps)ht[Nt]=st.modeProps[Nt];return ht}var we={};function Ye(it,st){var dt=we.hasOwnProperty(it)?we[it]:we[it]={};fn(st,dt)}function di(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var dt={};for(var ht in st){var gt=st[ht];gt instanceof Array&&(gt=gt.concat([])),dt[ht]=gt}return dt}function ci(it,st){for(var dt;it.innerMode&&(dt=it.innerMode(st),!(!dt||dt.mode==it));)st=dt.state,it=dt.mode;return dt||{mode:it,state:st}}function Yi(it,st,dt){return it.startState?it.startState(st,dt):!0}var Re=function(it,st,dt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=dt};Re.prototype.eol=function(){return this.pos>=this.string.length},Re.prototype.sol=function(){return this.pos==this.lineStart},Re.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Re.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Re.prototype.eat=function(it){var st=this.string.charAt(this.pos),dt;if(typeof it=="string"?dt=st==it:dt=st&&(it.test?it.test(st):it(st)),dt)return++this.pos,st},Re.prototype.eatWhile=function(it){for(var st=this.pos;this.eat(it););return this.pos>st},Re.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Re.prototype.skipToEnd=function(){this.pos=this.string.length},Re.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Re.prototype.backUp=function(it){this.pos-=it},Re.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=te(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?te(this.string,this.lineStart,this.tabSize):0)},Re.prototype.indentation=function(){return te(this.string,null,this.tabSize)-(this.lineStart?te(this.string,this.lineStart,this.tabSize):0)},Re.prototype.match=function(it,st,dt){if(typeof it=="string"){var ht=function(Nt){return dt?Nt.toLowerCase():Nt},gt=this.string.substr(this.pos,it.length);if(ht(gt)==ht(it))return st!==!1&&(this.pos+=it.length),!0}else{var At=this.string.slice(this.pos).match(it);return At&&At.index>0?null:(At&&st!==!1&&(this.pos+=At[0].length),At)}},Re.prototype.current=function(){return this.string.slice(this.start,this.pos)},Re.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Re.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Re.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function hn(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var dt=it;!dt.lines;)for(var ht=0;;++ht){var gt=dt.children[ht],At=gt.chunkSize();if(st<At){dt=gt;break}st-=At}return dt.lines[st]}function xi(it,st,dt){var ht=[],gt=st.line;return it.iter(st.line,dt.line+1,function(At){var Nt=At.text;gt==dt.line&&(Nt=Nt.slice(0,dt.ch)),gt==st.line&&(Nt=Nt.slice(st.ch)),ht.push(Nt),++gt}),ht}function _i(it,st,dt){var ht=[];return it.iter(st,dt,function(gt){ht.push(gt.text)}),ht}function Pn(it,st){var dt=st-it.height;if(dt)for(var ht=it;ht;ht=ht.parent)ht.height+=dt}function Xt(it){if(it.parent==null)return null;for(var st=it.parent,dt=Le(st.lines,it),ht=st.parent;ht;st=ht,ht=ht.parent)for(var gt=0;ht.children[gt]!=st;++gt)dt+=ht.children[gt].chunkSize();return dt+st.first}function ye(it,st){var dt=it.first;t:do{for(var ht=0;ht<it.children.length;++ht){var gt=it.children[ht],At=gt.height;if(st<At){it=gt;continue t}st-=At,dt+=gt.chunkSize()}return dt}while(!it.lines);for(var Nt=0;Nt<it.lines.length;++Nt){var Gt=it.lines[Nt],jt=Gt.height;if(st<jt)break;st-=jt}return dt+Nt}function Mn(it,st){return st>=it.first&&st<it.first+it.size}function wn(it,st){return String(it.lineNumberFormatter(st+it.firstLineNumber))}function be(it,st,dt){if(dt===void 0&&(dt=null),!(this instanceof be))return new be(it,st,dt);this.line=it,this.ch=st,this.sticky=dt}function Ln(it,st){return it.line-st.line||it.ch-st.ch}function Ni(it,st){return it.sticky==st.sticky&&Ln(it,st)==0}function ji(it){return be(it.line,it.ch)}function Qi(it,st){return Ln(it,st)<0?st:it}function On(it,st){return Ln(it,st)<0?it:st}function Bn(it,st){return Math.max(it.first,Math.min(st,it.first+it.size-1))}function Kn(it,st){if(st.line<it.first)return be(it.first,0);var dt=it.first+it.size-1;return st.line>dt?be(dt,hn(it,dt).text.length):or(st,hn(it,st.line).text.length)}function or(it,st){var dt=it.ch;return dt==null||dt>st?be(it.line,st):dt<0?be(it.line,0):it}function Hi(it,st){for(var dt=[],ht=0;ht<st.length;ht++)dt[ht]=Kn(it,st[ht]);return dt}var vn=function(it,st){this.state=it,this.lookAhead=st},si=function(it,st,dt,ht){this.state=st,this.doc=it,this.line=dt,this.maxLookAhead=ht||0,this.baseTokens=null,this.baseTokenPos=1};si.prototype.lookAhead=function(it){var st=this.doc.getLine(this.line+it);return st!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),st},si.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},si.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},si.fromSaved=function(it,st,dt){return st instanceof vn?new si(it,di(it.mode,st.state),dt,st.lookAhead):new si(it,di(it.mode,st),dt)},si.prototype.save=function(it){var st=it!==!1?di(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new vn(st,this.maxLookAhead):st};function Tr(it,st,dt,ht){var gt=[it.state.modeGen],At={};Nr(it,st.text,it.doc.mode,dt,function(_t,Fe){return gt.push(_t,Fe)},At,ht);for(var Nt=dt.state,Gt=function(_t){dt.baseTokens=gt;var Fe=it.state.overlays[_t],ie=1,qe=0;dt.state=!0,Nr(it,st.text,Fe.mode,dt,function(Ze,Un){for(var _n=ie;qe<Ze;){var Si=gt[ie];Si>Ze&>.splice(ie,1,Ze,gt[ie+1],Si),ie+=2,qe=Math.min(Ze,Si)}if(Un)if(Fe.opaque)gt.splice(_n,ie-_n,Ze,"overlay "+Un),ie=_n+2;else for(;_n<ie;_n+=2){var zi=gt[_n+1];gt[_n+1]=(zi?zi+" ":"")+"overlay "+Un}},At),dt.state=Nt,dt.baseTokens=null,dt.baseTokenPos=1},jt=0;jt<it.state.overlays.length;++jt)Gt(jt);return{styles:gt,classes:At.bgClass||At.textClass?At:null}}function Rr(it,st,dt){if(!st.styles||st.styles[0]!=it.state.modeGen){var ht=No(it,Xt(st)),gt=st.text.length>it.options.maxHighlightLength&&di(it.doc.mode,ht.state),At=Tr(it,st,ht);gt&&(ht.state=gt),st.stateAfter=ht.save(!gt),st.styles=At.styles,At.classes?st.styleClasses=At.classes:st.styleClasses&&(st.styleClasses=null),dt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function No(it,st,dt){var ht=it.doc,gt=it.display;if(!ht.mode.startState)return new si(ht,!0,st);var At=wr(it,st,dt),Nt=At>ht.first&&hn(ht,At-1).stateAfter,Gt=Nt?si.fromSaved(ht,Nt,At):new si(ht,Yi(ht.mode),At);return ht.iter(At,st,function(jt){Ee(it,jt.text,Gt);var _t=Gt.line;jt.stateAfter=_t==st-1||_t%5==0||_t>=gt.viewFrom&&_t<gt.viewTo?Gt.save():null,Gt.nextLine()}),dt&&(ht.modeFrontier=Gt.line),Gt}function Ee(it,st,dt,ht){var gt=it.doc.mode,At=new Re(st,it.options.tabSize,dt);for(At.start=At.pos=ht||0,st==""&&Mi(gt,dt.state);!At.eol();)fr(gt,At,dt.state),At.start=At.pos}function Mi(it,st){if(it.blankLine)return it.blankLine(st);if(it.innerMode){var dt=ci(it,st);if(dt.mode.blankLine)return dt.mode.blankLine(dt.state)}}function fr(it,st,dt,ht){for(var gt=0;gt<10;gt++){ht&&(ht[0]=ci(it,dt).mode);var At=it.token(st,dt);if(st.pos>st.start)return At}throw new Error("Mode "+it.name+" failed to advance stream.")}var fi=function(it,st,dt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=dt};function Ir(it,st,dt,ht){var gt=it.doc,At=gt.mode,Nt;st=Kn(gt,st);var Gt=hn(gt,st.line),jt=No(it,st.line,dt),_t=new Re(Gt.text,it.options.tabSize,jt),Fe;for(ht&&(Fe=[]);(ht||_t.pos<st.ch)&&!_t.eol();)_t.start=_t.pos,Nt=fr(At,_t,jt.state),ht&&Fe.push(new fi(_t,Nt,di(gt.mode,jt.state)));return ht?Fe:new fi(_t,Nt,jt.state)}function Fr(it,st){if(it)for(;;){var dt=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!dt)break;it=it.slice(0,dt.index)+it.slice(dt.index+dt[0].length);var ht=dt[1]?"bgClass":"textClass";st[ht]==null?st[ht]=dt[2]:new RegExp("(?:^|\\s)"+dt[2]+"(?:$|\\s)").test(st[ht])||(st[ht]+=" "+dt[2])}return it}function Nr(it,st,dt,ht,gt,At,Nt){var Gt=dt.flattenSpans;Gt==null&&(Gt=it.options.flattenSpans);var jt=0,_t=null,Fe=new Re(st,it.options.tabSize,ht),ie,qe=it.options.addModeClass&&[null];for(st==""&&Fr(Mi(dt,ht.state),At);!Fe.eol();){if(Fe.pos>it.options.maxHighlightLength?(Gt=!1,Nt&&Ee(it,st,ht,Fe.pos),Fe.pos=st.length,ie=null):ie=Fr(fr(dt,Fe,ht.state,qe),At),qe){var Ze=qe[0].name;Ze&&(ie="m-"+(ie?Ze+" "+ie:Ze))}if(!Gt||_t!=ie){for(;jt<Fe.start;)jt=Math.min(Fe.start,jt+5e3),gt(jt,_t);_t=ie}Fe.start=Fe.pos}for(;jt<Fe.pos;){var Un=Math.min(Fe.pos,jt+5e3);gt(Un,_t),jt=Un}}function wr(it,st,dt){for(var ht,gt,At=it.doc,Nt=dt?-1:st-(it.doc.mode.innerMode?1e3:100),Gt=st;Gt>Nt;--Gt){if(Gt<=At.first)return At.first;var jt=hn(At,Gt-1),_t=jt.stateAfter;if(_t&&(!dt||Gt+(_t instanceof vn?_t.lookAhead:0)<=At.modeFrontier))return Gt;var Fe=te(jt.text,null,it.options.tabSize);(gt==null||ht>Fe)&&(gt=Gt-1,ht=Fe)}return gt}function br(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontier<st-10)){for(var dt=it.first,ht=st-1;ht>dt;ht--){var gt=hn(it,ht).stateAfter;if(gt&&(!(gt instanceof vn)||ht+gt.lookAhead<st)){dt=ht+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,dt)}}var Jr=!1,rn=!1;function fo(){Jr=!0}function en(){rn=!0}function zr(it,st,dt){this.marker=it,this.from=st,this.to=dt}function Uo(it,st){if(it)for(var dt=0;dt<it.length;++dt){var ht=it[dt];if(ht.marker==st)return ht}}function no(it,st){for(var dt,ht=0;ht<it.length;++ht)it[ht]!=st&&(dt||(dt=[])).push(it[ht]);return dt}function Zo(it,st){it.markedSpans=it.markedSpans?it.markedSpans.concat([st]):[st],st.marker.attachLine(it)}function Or(it,st,dt){var ht;if(it)for(var gt=0;gt<it.length;++gt){var At=it[gt],Nt=At.marker,Gt=At.from==null||(Nt.inclusiveLeft?At.from<=st:At.from<st);if(Gt||At.from==st&&Nt.type=="bookmark"&&(!dt||!At.marker.insertLeft)){var jt=At.to==null||(Nt.inclusiveRight?At.to>=st:At.to>st);(ht||(ht=[])).push(new zr(Nt,At.from,jt?null:At.to))}}return ht}function $i(it,st,dt){var ht;if(it)for(var gt=0;gt<it.length;++gt){var At=it[gt],Nt=At.marker,Gt=At.to==null||(Nt.inclusiveRight?At.to>=st:At.to>st);if(Gt||At.from==st&&Nt.type=="bookmark"&&(!dt||At.marker.insertLeft)){var jt=At.from==null||(Nt.inclusiveLeft?At.from<=st:At.from<st);(ht||(ht=[])).push(new zr(Nt,jt?null:At.from-st,At.to==null?null:At.to-st))}}return ht}function po(it,st){if(st.full)return null;var dt=Mn(it,st.from.line)&&hn(it,st.from.line).markedSpans,ht=Mn(it,st.to.line)&&hn(it,st.to.line).markedSpans;if(!dt&&!ht)return null;var gt=st.from.ch,At=st.to.ch,Nt=Ln(st.from,st.to)==0,Gt=Or(dt,gt,Nt),jt=$i(ht,At,Nt),_t=st.text.length==1,Fe=Pe(st.text).length+(_t?gt:0);if(Gt)for(var ie=0;ie<Gt.length;++ie){var qe=Gt[ie];if(qe.to==null){var Ze=Uo(jt,qe.marker);Ze?_t&&(qe.to=Ze.to==null?null:Ze.to+Fe):qe.to=gt}}if(jt)for(var Un=0;Un<jt.length;++Un){var _n=jt[Un];if(_n.to!=null&&(_n.to+=Fe),_n.from==null){var Si=Uo(Gt,_n.marker);Si||(_n.from=Fe,_t&&(Gt||(Gt=[])).push(_n))}else _n.from+=Fe,_t&&(Gt||(Gt=[])).push(_n)}Gt&&(Gt=Ps(Gt)),jt&&jt!=Gt&&(jt=Ps(jt));var zi=[Gt];if(!_t){var hr=st.text.length-2,Ki;if(hr>0&&Gt)for(var yr=0;yr<Gt.length;++yr)Gt[yr].to==null&&(Ki||(Ki=[])).push(new zr(Gt[yr].marker,null,null));for(var Zr=0;Zr<hr;++Zr)zi.push(Ki);zi.push(jt)}return zi}function Ps(it){for(var st=0;st<it.length;++st){var dt=it[st];dt.from!=null&&dt.from==dt.to&&dt.marker.clearWhenEmpty!==!1&&it.splice(st--,1)}return it.length?it:null}function Po(it,st,dt){var ht=null;if(it.iter(st.line,dt.line+1,function(Ze){if(Ze.markedSpans)for(var Un=0;Un<Ze.markedSpans.length;++Un){var _n=Ze.markedSpans[Un].marker;_n.readOnly&&(!ht||Le(ht,_n)==-1)&&(ht||(ht=[])).push(_n)}}),!ht)return null;for(var gt=[{from:st,to:dt}],At=0;At<ht.length;++At)for(var Nt=ht[At],Gt=Nt.find(0),jt=0;jt<gt.length;++jt){var _t=gt[jt];if(!(Ln(_t.to,Gt.from)<0||Ln(_t.from,Gt.to)>0)){var Fe=[jt,1],ie=Ln(_t.from,Gt.from),qe=Ln(_t.to,Gt.to);(ie<0||!Nt.inclusiveLeft&&!ie)&&Fe.push({from:_t.from,to:Gt.from}),(qe>0||!Nt.inclusiveRight&&!qe)&&Fe.push({from:Gt.to,to:_t.to}),gt.splice.apply(gt,Fe),jt+=Fe.length-3}}return gt}function Jn(it){var st=it.markedSpans;if(st){for(var dt=0;dt<st.length;++dt)st[dt].marker.detachLine(it);it.markedSpans=null}}function Wt(it,st){if(st){for(var dt=0;dt<st.length;++dt)st[dt].marker.attachLine(it);it.markedSpans=st}}function Co(it){return it.inclusiveLeft?-1:0}function ea(it){return it.inclusiveRight?1:0}function Js(it,st){var dt=it.lines.length-st.lines.length;if(dt!=0)return dt;var ht=it.find(),gt=st.find(),At=Ln(ht.from,gt.from)||Co(it)-Co(st);if(At)return-At;var Nt=Ln(ht.to,gt.to)||ea(it)-ea(st);return Nt||st.id-it.id}function vs(it,st){var dt=rn&&it.markedSpans,ht;if(dt)for(var gt=void 0,At=0;At<dt.length;++At)gt=dt[At],gt.marker.collapsed&&(st?gt.from:gt.to)==null&&(!ht||Js(ht,gt.marker)<0)&&(ht=gt.marker);return ht}function ro(it){return vs(it,!0)}function Ai(it){return vs(it,!1)}function Ii(it,st){var dt=rn&&it.markedSpans,ht;if(dt)for(var gt=0;gt<dt.length;++gt){var At=dt[gt];At.marker.collapsed&&(At.from==null||At.from<st)&&(At.to==null||At.to>st)&&(!ht||Js(ht,At.marker)<0)&&(ht=At.marker)}return ht}function xr(it,st,dt,ht,gt){var At=hn(it,st),Nt=rn&&At.markedSpans;if(Nt)for(var Gt=0;Gt<Nt.length;++Gt){var jt=Nt[Gt];if(jt.marker.collapsed){var _t=jt.marker.find(0),Fe=Ln(_t.from,dt)||Co(jt.marker)-Co(gt),ie=Ln(_t.to,ht)||ea(jt.marker)-ea(gt);if(!(Fe>=0&&ie<=0||Fe<=0&&ie>=0)&&(Fe<=0&&(jt.marker.inclusiveRight&>.inclusiveLeft?Ln(_t.to,dt)>=0:Ln(_t.to,dt)>0)||Fe>=0&&(jt.marker.inclusiveRight&>.inclusiveLeft?Ln(_t.from,ht)<=0:Ln(_t.from,ht)<0)))return!0}}}function Bi(it){for(var st;st=ro(it);)it=st.find(-1,!0).line;return it}function ar(it){for(var st;st=Ai(it);)it=st.find(1,!0).line;return it}function Di(it){for(var st,dt;st=Ai(it);)it=st.find(1,!0).line,(dt||(dt=[])).push(it);return dt}function Ft(it,st){var dt=hn(it,st),ht=Bi(dt);return dt==ht?st:Xt(ht)}function re(it,st){if(st>it.lastLine())return st;var dt=hn(it,st),ht;if(!Yt(it,dt))return st;for(;ht=Ai(dt);)dt=ht.find(1,!0).line;return Xt(dt)+1}function Yt(it,st){var dt=rn&&st.markedSpans;if(dt){for(var ht=void 0,gt=0;gt<dt.length;++gt)if(ht=dt[gt],!!ht.marker.collapsed){if(ht.from==null)return!0;if(!ht.marker.widgetNode&&ht.from==0&&ht.marker.inclusiveLeft&&de(it,st,ht))return!0}}}function de(it,st,dt){if(dt.to==null){var ht=dt.marker.find(1,!0);return de(it,ht.line,Uo(ht.line.markedSpans,dt.marker))}if(dt.marker.inclusiveRight&&dt.to==st.text.length)return!0;for(var gt=void 0,At=0;At<st.markedSpans.length;++At)if(gt=st.markedSpans[At],gt.marker.collapsed&&!gt.marker.widgetNode&>.from==dt.to&&(gt.to==null||gt.to!=dt.from)&&(gt.marker.inclusiveLeft||dt.marker.inclusiveRight)&&de(it,st,gt))return!0}function ge(it){it=Bi(it);for(var st=0,dt=it.parent,ht=0;ht<dt.lines.length;++ht){var gt=dt.lines[ht];if(gt==it)break;st+=gt.height}for(var At=dt.parent;At;dt=At,At=dt.parent)for(var Nt=0;Nt<At.children.length;++Nt){var Gt=At.children[Nt];if(Gt==dt)break;st+=Gt.height}return st}function Oe(it){if(it.height==0)return 0;for(var st=it.text.length,dt,ht=it;dt=ro(ht);){var gt=dt.find(0,!0);ht=gt.from.line,st+=gt.from.ch-gt.to.ch}for(ht=it;dt=Ai(ht);){var At=dt.find(0,!0);st-=ht.text.length-At.from.ch,ht=At.to.line,st+=ht.text.length-At.to.ch}return st}function ze(it){var st=it.display,dt=it.doc;st.maxLine=hn(dt,dt.first),st.maxLineLength=Oe(st.maxLine),st.maxLineChanged=!0,dt.iter(function(ht){var gt=Oe(ht);gt>st.maxLineLength&&(st.maxLineLength=gt,st.maxLine=ht)})}var Je=function(it,st,dt){this.text=it,Wt(this,st),this.height=dt?dt(this):1};Je.prototype.lineNo=function(){return Xt(this)},dr(Je);function kn(it,st,dt,ht){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Jn(it),Wt(it,dt);var gt=ht?ht(it):1;gt!=it.height&&Pn(it,gt)}function Dn(it){it.parent=null,Jn(it)}var $e={},Zn={};function qn(it,st){if(!it||/^\s*$/.test(it))return null;var dt=st.addModeClass?Zn:$e;return dt[it]||(dt[it]=it.replace(/\S+/g,"cm-$&"))}function oe(it,st){var dt=Me("span",null,null,ue?"padding-right: .1px":null),ht={pre:Me("pre",[dt],"CodeMirror-line"),content:dt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var gt=0;gt<=(st.rest?st.rest.length:0);gt++){var At=gt?st.rest[gt-1]:st.line,Nt=void 0;ht.pos=0,ht.addToken=Qn,nr(it.display.measure)&&(Nt=hi(At,it.doc.direction))&&(ht.addToken=In(ht.addToken,Nt)),ht.map=[];var Gt=st!=it.display.externalMeasured&&Xt(At);wi(At,ht,Rr(it,At,Gt)),At.styleClasses&&(At.styleClasses.bgClass&&(ht.bgClass=Fn(At.styleClasses.bgClass,ht.bgClass||"")),At.styleClasses.textClass&&(ht.textClass=Fn(At.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(Ho(it.display.measure))),gt==0?(st.measure.map=ht.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(ht.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(ue){var jt=ht.content.lastChild;(/\bcm-tab\b/.test(jt.className)||jt.querySelector&&jt.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return Pi(it,"renderLine",it,st.line,ht.pre),ht.pre.className&&(ht.textClass=Fn(ht.pre.className,ht.textClass||"")),ht}function Hn(it){var st=Jt("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function Qn(it,st,dt,ht,gt,At,Nt){if(st){var Gt=it.splitSpaces?ni(st,it.trailingSpace):st,jt=it.cm.state.specialChars,_t=!1,Fe;if(!jt.test(st))it.col+=st.length,Fe=document.createTextNode(Gt),it.map.push(it.pos,it.pos+st.length,Fe),ce&&fe<9&&(_t=!0),it.pos+=st.length;else{Fe=document.createDocumentFragment();for(var ie=0;;){jt.lastIndex=ie;var qe=jt.exec(st),Ze=qe?qe.index-ie:st.length-ie;if(Ze){var Un=document.createTextNode(Gt.slice(ie,ie+Ze));ce&&fe<9?Fe.appendChild(Jt("span",[Un])):Fe.appendChild(Un),it.map.push(it.pos,it.pos+Ze,Un),it.col+=Ze,it.pos+=Ze}if(!qe)break;ie+=Ze+1;var _n=void 0;if(qe[0]==" "){var Si=it.cm.options.tabSize,zi=Si-it.col%Si;_n=Fe.appendChild(Jt("span",ae(zi),"cm-tab")),_n.setAttribute("role","presentation"),_n.setAttribute("cm-text"," "),it.col+=zi}else qe[0]=="\r"||qe[0]==`
|
|
`?(_n=Fe.appendChild(Jt("span",qe[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),_n.setAttribute("cm-text",qe[0]),it.col+=1):(_n=it.cm.options.specialCharPlaceholder(qe[0]),_n.setAttribute("cm-text",qe[0]),ce&&fe<9?Fe.appendChild(Jt("span",[_n])):Fe.appendChild(_n),it.col+=1);it.map.push(it.pos,it.pos+1,_n),it.pos++}}if(it.trailingSpace=Gt.charCodeAt(st.length-1)==32,dt||ht||gt||_t||At||Nt){var hr=dt||"";ht&&(hr+=ht),gt&&(hr+=gt);var Ki=Jt("span",[Fe],hr,At);if(Nt)for(var yr in Nt)Nt.hasOwnProperty(yr)&&yr!="style"&&yr!="class"&&Ki.setAttribute(yr,Nt[yr]);return it.content.appendChild(Ki)}it.content.appendChild(Fe)}}function ni(it,st){if(it.length>1&&!/ /.test(it))return it;for(var dt=st,ht="",gt=0;gt<it.length;gt++){var At=it.charAt(gt);At==" "&&dt&&(gt==it.length-1||it.charCodeAt(gt+1)==32)&&(At="\xA0"),ht+=At,dt=At==" "}return ht}function In(it,st){return function(dt,ht,gt,At,Nt,Gt,jt){gt=gt?gt+" cm-force-border":"cm-force-border";for(var _t=dt.pos,Fe=_t+ht.length;;){for(var ie=void 0,qe=0;qe<st.length&&(ie=st[qe],!(ie.to>_t&&ie.from<=_t));qe++);if(ie.to>=Fe)return it(dt,ht,gt,At,Nt,Gt,jt);it(dt,ht.slice(0,ie.to-_t),gt,At,null,Gt,jt),At=null,ht=ht.slice(ie.to-_t),_t=ie.to}}}function Ti(it,st,dt,ht){var gt=!ht&&dt.widgetNode;gt&&it.map.push(it.pos,it.pos+st,gt),!ht&&it.cm.display.input.needsContentAttribute&&(gt||(gt=it.content.appendChild(document.createElement("span"))),gt.setAttribute("cm-marker",dt.id)),gt&&(it.cm.display.input.setUneditable(gt),it.content.appendChild(gt)),it.pos+=st,it.trailingSpace=!1}function wi(it,st,dt){var ht=it.markedSpans,gt=it.text,At=0;if(!ht){for(var Nt=1;Nt<dt.length;Nt+=2)st.addToken(st,gt.slice(At,At=dt[Nt]),qn(dt[Nt+1],st.cm.options));return}for(var Gt=gt.length,jt=0,_t=1,Fe="",ie,qe,Ze=0,Un,_n,Si,zi,hr;;){if(Ze==jt){Un=_n=Si=qe="",hr=null,zi=null,Ze=1/0;for(var Ki=[],yr=void 0,Zr=0;Zr<ht.length;++Zr){var Zi=ht[Zr],wo=Zi.marker;if(wo.type=="bookmark"&&Zi.from==jt&&wo.widgetNode)Ki.push(wo);else if(Zi.from<=jt&&(Zi.to==null||Zi.to>jt||wo.collapsed&&Zi.to==jt&&Zi.from==jt)){if(Zi.to!=null&&Zi.to!=jt&&Ze>Zi.to&&(Ze=Zi.to,_n=""),wo.className&&(Un+=" "+wo.className),wo.css&&(qe=(qe?qe+";":"")+wo.css),wo.startStyle&&Zi.from==jt&&(Si+=" "+wo.startStyle),wo.endStyle&&Zi.to==Ze&&(yr||(yr=[])).push(wo.endStyle,Zi.to),wo.title&&((hr||(hr={})).title=wo.title),wo.attributes)for(var As in wo.attributes)(hr||(hr={}))[As]=wo.attributes[As];wo.collapsed&&(!zi||Js(zi.marker,wo)<0)&&(zi=Zi)}else Zi.from>jt&&Ze>Zi.from&&(Ze=Zi.from)}if(yr)for(var la=0;la<yr.length;la+=2)yr[la+1]==Ze&&(_n+=" "+yr[la]);if(!zi||zi.from==jt)for(var Ds=0;Ds<Ki.length;++Ds)Ti(st,0,Ki[Ds]);if(zi&&(zi.from||0)==jt){if(Ti(st,(zi.to==null?Gt+1:zi.to)-jt,zi.marker,zi.from==null),zi.to==null)return;zi.to==jt&&(zi=!1)}}if(jt>=Gt)break;for(var $a=Math.min(Gt,Ze);;){if(Fe){var Oa=jt+Fe.length;if(!zi){var ra=Oa>$a?Fe.slice(0,$a-jt):Fe;st.addToken(st,ra,ie?ie+Un:Un,Si,jt+ra.length==Ze?_n:"",qe,hr)}if(Oa>=$a){Fe=Fe.slice($a-jt),jt=$a;break}jt=Oa,Si=""}Fe=gt.slice(At,At=dt[_t++]),ie=qn(dt[_t++],st.cm.options)}}}function pi(it,st,dt){this.line=st,this.rest=Di(st),this.size=this.rest?Xt(Pe(this.rest))-dt+1:1,this.node=this.text=null,this.hidden=Yt(it,st)}function ai(it,st,dt){for(var ht=[],gt,At=st;At<dt;At=gt){var Nt=new pi(it.doc,hn(it.doc,At),At);gt=At+Nt.size,ht.push(Nt)}return ht}var ui=null;function Li(it){ui?ui.ops.push(it):it.ownsGroup=ui={ops:[it],delayedCallbacks:[]}}function vr(it){var st=it.delayedCallbacks,dt=0;do{for(;dt<st.length;dt++)st[dt].call(null);for(var ht=0;ht<it.ops.length;ht++){var gt=it.ops[ht];if(gt.cursorActivityHandlers)for(;gt.cursorActivityCalled<gt.cursorActivityHandlers.length;)gt.cursorActivityHandlers[gt.cursorActivityCalled++].call(null,gt.cm)}}while(dt<st.length)}function ir(it,st){var dt=it.ownsGroup;if(dt)try{vr(dt)}finally{ui=null,st(dt)}}var lr=null;function Yn(it,st){var dt=bi(it,st);if(dt.length){var ht=Array.prototype.slice.call(arguments,2),gt;ui?gt=ui.delayedCallbacks:lr?gt=lr:(gt=lr=[],setTimeout(Lr,0));for(var At=function(Gt){gt.push(function(){return dt[Gt].apply(null,ht)})},Nt=0;Nt<dt.length;++Nt)At(Nt)}}function Lr(){var it=lr;lr=null;for(var st=0;st<it.length;++st)it[st]()}function sr(it,st,dt,ht){for(var gt=0;gt<st.changes.length;gt++){var At=st.changes[gt];At=="text"?gn(it,st):At=="gutter"?yi(it,st,dt,ht):At=="class"?li(it,st):At=="widget"&&Ci(it,st,ht)}st.changes=null}function tr(it){return it.node==it.text&&(it.node=Jt("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),ce&&fe<8&&(it.node.style.zIndex=2)),it.node}function Vi(it,st){var dt=st.bgClass?st.bgClass+" "+(st.line.bgClass||""):st.line.bgClass;if(dt&&(dt+=" CodeMirror-linebackground"),st.background)dt?st.background.className=dt:(st.background.parentNode.removeChild(st.background),st.background=null);else if(dt){var ht=tr(st);st.background=ht.insertBefore(Jt("div",null,dt),ht.firstChild),it.display.input.setUneditable(st.background)}}function Pr(it,st){var dt=it.display.externalMeasured;return dt&&dt.line==st.line?(it.display.externalMeasured=null,st.measure=dt.measure,dt.built):oe(it,st)}function gn(it,st){var dt=st.text.className,ht=Pr(it,st);st.text==st.node&&(st.node=ht.pre),st.text.parentNode.replaceChild(ht.pre,st.text),st.text=ht.pre,ht.bgClass!=st.bgClass||ht.textClass!=st.textClass?(st.bgClass=ht.bgClass,st.textClass=ht.textClass,li(it,st)):dt&&(st.text.className=dt)}function li(it,st){Vi(it,st),st.line.wrapClass?tr(st).className=st.line.wrapClass:st.node!=st.text&&(st.node.className="");var dt=st.textClass?st.textClass+" "+(st.line.textClass||""):st.line.textClass;st.text.className=dt||""}function yi(it,st,dt,ht){if(st.gutter&&(st.node.removeChild(st.gutter),st.gutter=null),st.gutterBackground&&(st.node.removeChild(st.gutterBackground),st.gutterBackground=null),st.line.gutterClass){var gt=tr(st);st.gutterBackground=Jt("div",null,"CodeMirror-gutter-background "+st.line.gutterClass,"left: "+(it.options.fixedGutter?ht.fixedPos:-ht.gutterTotalWidth)+"px; width: "+ht.gutterTotalWidth+"px"),it.display.input.setUneditable(st.gutterBackground),gt.insertBefore(st.gutterBackground,st.text)}var At=st.line.gutterMarkers;if(it.options.lineNumbers||At){var Nt=tr(st),Gt=st.gutter=Jt("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?ht.fixedPos:-ht.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Gt),Nt.insertBefore(Gt,st.text),st.line.gutterClass&&(Gt.className+=" "+st.line.gutterClass),it.options.lineNumbers&&(!At||!At["CodeMirror-linenumbers"])&&(st.lineNumber=Gt.appendChild(Jt("div",wn(it.options,dt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ht.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),At)for(var jt=0;jt<it.display.gutterSpecs.length;++jt){var _t=it.display.gutterSpecs[jt].className,Fe=At.hasOwnProperty(_t)&&At[_t];Fe&&Gt.appendChild(Jt("div",[Fe],"CodeMirror-gutter-elt","left: "+ht.gutterLeft[_t]+"px; width: "+ht.gutterWidth[_t]+"px"))}}}function Ci(it,st,dt){st.alignable&&(st.alignable=null);for(var ht=Vt("CodeMirror-linewidget"),gt=st.node.firstChild,At=void 0;gt;gt=At)At=gt.nextSibling,ht.test(gt.className)&&st.node.removeChild(gt);vi(it,st,dt)}function mi(it,st,dt,ht){var gt=Pr(it,st);return st.text=st.node=gt.pre,gt.bgClass&&(st.bgClass=gt.bgClass),gt.textClass&&(st.textClass=gt.textClass),li(it,st),yi(it,st,dt,ht),vi(it,st,ht),st.node}function vi(it,st,dt){if(Tn(it,st.line,st,dt,!0),st.rest)for(var ht=0;ht<st.rest.length;ht++)Tn(it,st.rest[ht],st,dt,!1)}function Tn(it,st,dt,ht,gt){if(st.widgets)for(var At=tr(dt),Nt=0,Gt=st.widgets;Nt<Gt.length;++Nt){var jt=Gt[Nt],_t=Jt("div",[jt.node],"CodeMirror-linewidget"+(jt.className?" "+jt.className:""));jt.handleMouseEvents||_t.setAttribute("cm-ignore-events","true"),Ji(jt,_t,dt,ht),it.display.input.setUneditable(_t),gt&&jt.above?At.insertBefore(_t,dt.gutter||dt.text):At.appendChild(_t),Yn(jt,"redraw")}}function Ji(it,st,dt,ht){if(it.noHScroll){(dt.alignable||(dt.alignable=[])).push(st);var gt=ht.wrapperWidth;st.style.left=ht.fixedPos+"px",it.coverGutter||(gt-=ht.gutterTotalWidth,st.style.paddingLeft=ht.gutterTotalWidth+"px"),st.style.width=gt+"px"}it.coverGutter&&(st.style.zIndex=5,st.style.position="relative",it.noHScroll||(st.style.marginLeft=-ht.gutterTotalWidth+"px"))}function Er(it){if(it.height!=null)return it.height;var st=it.doc.cm;if(!st)return 0;if(!He(document.body,it.node)){var dt="position: relative;";it.coverGutter&&(dt+="margin-left: -"+st.display.gutters.offsetWidth+"px;"),it.noHScroll&&(dt+="width: "+st.display.wrapper.clientWidth+"px;"),qt(st.display.measure,Jt("div",[it.node],null,dt))}return it.height=it.node.parentNode.offsetHeight}function Mr(it,st){for(var dt=Yo(st);dt!=it.wrapper;dt=dt.parentNode)if(!dt||dt.nodeType==1&&dt.getAttribute("cm-ignore-events")=="true"||dt.parentNode==it.sizer&&dt!=it.mover)return!0}function rr(it){return it.lineSpace.offsetTop}function jr(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function kr(it){if(it.cachedPaddingH)return it.cachedPaddingH;var st=qt(it.measure,Jt("pre","x","CodeMirror-line-like")),dt=window.getComputedStyle?window.getComputedStyle(st):st.currentStyle,ht={left:parseInt(dt.paddingLeft),right:parseInt(dt.paddingRight)};return!isNaN(ht.left)&&!isNaN(ht.right)&&(it.cachedPaddingH=ht),ht}function Hr(it){return dn-it.display.nativeBarWidth}function Ur(it){return it.display.scroller.clientWidth-Hr(it)-it.display.barWidth}function oo(it){return it.display.scroller.clientHeight-Hr(it)-it.display.barHeight}function So(it,st,dt){var ht=it.options.lineWrapping,gt=ht&&Ur(it);if(!st.measure.heights||ht&&st.measure.width!=gt){var At=st.measure.heights=[];if(ht){st.measure.width=gt;for(var Nt=st.text.firstChild.getClientRects(),Gt=0;Gt<Nt.length-1;Gt++){var jt=Nt[Gt],_t=Nt[Gt+1];Math.abs(jt.bottom-_t.bottom)>2&&At.push((jt.bottom+_t.top)/2-dt.top)}}At.push(dt.bottom-dt.top)}}function mo(it,st,dt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;ht<it.rest.length;ht++)if(it.rest[ht]==st)return{map:it.measure.maps[ht],cache:it.measure.caches[ht]};for(var gt=0;gt<it.rest.length;gt++)if(Xt(it.rest[gt])>dt)return{map:it.measure.maps[gt],cache:it.measure.caches[gt],before:!0}}function Xo(it,st){st=Bi(st);var dt=Xt(st),ht=it.display.externalMeasured=new pi(it.doc,st,dt);ht.lineN=dt;var gt=ht.built=oe(it,ht);return ht.text=gt.pre,qt(it.display.lineMeasure,gt.pre),ht}function io(it,st,dt,ht){return To(it,uo(it,st),dt,ht)}function Ko(it,st){if(st>=it.display.viewFrom&&st<it.display.viewTo)return it.display.view[_s(it,st)];var dt=it.display.externalMeasured;if(dt&&st>=dt.lineN&&st<dt.lineN+dt.size)return dt}function uo(it,st){var dt=Xt(st),ht=Ko(it,dt);ht&&!ht.text?ht=null:ht&&ht.changes&&(sr(it,ht,dt,Vs(it)),it.curOp.forceUpdate=!0),ht||(ht=Xo(it,st));var gt=mo(ht,st,dt);return{line:st,view:ht,rect:null,map:gt.map,cache:gt.cache,before:gt.before,hasHeights:!1}}function To(it,st,dt,ht,gt){st.before&&(dt=-1);var At=dt+(ht||""),Nt;return st.cache.hasOwnProperty(At)?Nt=st.cache[At]:(st.rect||(st.rect=st.view.text.getBoundingClientRect()),st.hasHeights||(So(it,st.view,st.rect),st.hasHeights=!0),Nt=$r(it,st,dt,ht),Nt.bogus||(st.cache[At]=Nt)),{left:Nt.left,right:Nt.right,top:gt?Nt.rtop:Nt.top,bottom:gt?Nt.rbottom:Nt.bottom}}var ts={left:0,right:0,top:0,bottom:0};function Ro(it,st,dt){for(var ht,gt,At,Nt,Gt,jt,_t=0;_t<it.length;_t+=3)if(Gt=it[_t],jt=it[_t+1],st<Gt?(gt=0,At=1,Nt="left"):st<jt?(gt=st-Gt,At=gt+1):(_t==it.length-3||st==jt&&it[_t+3]>st)&&(At=jt-Gt,gt=At-1,st>=jt&&(Nt="right")),gt!=null){if(ht=it[_t+2],Gt==jt&&dt==(ht.insertLeft?"left":"right")&&(Nt=dt),dt=="left"&>==0)for(;_t&&it[_t-2]==it[_t-3]&&it[_t-1].insertLeft;)ht=it[(_t-=3)+2],Nt="left";if(dt=="right"&>==jt-Gt)for(;_t<it.length-3&&it[_t+3]==it[_t+4]&&!it[_t+5].insertLeft;)ht=it[(_t+=3)+2],Nt="right";break}return{node:ht,start:gt,end:At,collapse:Nt,coverStart:Gt,coverEnd:jt}}function Eo(it,st){var dt=ts;if(st=="left")for(var ht=0;ht<it.length&&(dt=it[ht]).left==dt.right;ht++);else for(var gt=it.length-1;gt>=0&&(dt=it[gt]).left==dt.right;gt--);return dt}function $r(it,st,dt,ht){var gt=Ro(st.map,dt,ht),At=gt.node,Nt=gt.start,Gt=gt.end,jt=gt.collapse,_t;if(At.nodeType==3){for(var Fe=0;Fe<4;Fe++){for(;Nt&&We(st.line.text.charAt(gt.coverStart+Nt));)--Nt;for(;gt.coverStart+Gt<gt.coverEnd&&We(st.line.text.charAt(gt.coverStart+Gt));)++Gt;if(ce&&fe<9&&Nt==0&&Gt==gt.coverEnd-gt.coverStart?_t=At.parentNode.getBoundingClientRect():_t=Eo(pe(At,Nt,Gt).getClientRects(),ht),_t.left||_t.right||Nt==0)break;Gt=Nt,Nt=Nt-1,jt="right"}ce&&fe<11&&(_t=os(it.display.measure,_t))}else{Nt>0&&(jt=ht="right");var ie;it.options.lineWrapping&&(ie=At.getClientRects()).length>1?_t=ie[ht=="right"?ie.length-1:0]:_t=At.getBoundingClientRect()}if(ce&&fe<9&&!Nt&&(!_t||!_t.left&&!_t.right)){var qe=At.parentNode.getClientRects()[0];qe?_t={left:qe.left,right:qe.left+qs(it.display),top:qe.top,bottom:qe.bottom}:_t=ts}for(var Ze=_t.top-st.rect.top,Un=_t.bottom-st.rect.top,_n=(Ze+Un)/2,Si=st.view.measure.heights,zi=0;zi<Si.length-1&&!(_n<Si[zi]);zi++);var hr=zi?Si[zi-1]:0,Ki=Si[zi],yr={left:(jt=="right"?_t.right:_t.left)-st.rect.left,right:(jt=="left"?_t.left:_t.right)-st.rect.left,top:hr,bottom:Ki};return!_t.left&&!_t.right&&(yr.bogus=!0),it.options.singleCursorHeightPerLine||(yr.rtop=Ze,yr.rbottom=Un),yr}function os(it,st){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Vn(it))return st;var dt=screen.logicalXDPI/screen.deviceXDPI,ht=screen.logicalYDPI/screen.deviceYDPI;return{left:st.left*dt,right:st.right*dt,top:st.top*ht,bottom:st.bottom*ht}}function ws(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var st=0;st<it.rest.length;st++)it.measure.caches[st]={}}function Mo(it){it.display.externalMeasure=null,se(it.display.lineMeasure);for(var st=0;st<it.display.view.length;st++)ws(it.display.view[st])}function Ts(it){Mo(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function to(){return Ce&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Xr(){return Ce&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Kr(it){var st=0;if(it.widgets)for(var dt=0;dt<it.widgets.length;++dt)it.widgets[dt].above&&(st+=Er(it.widgets[dt]));return st}function Wo(it,st,dt,ht,gt){if(!gt){var At=Kr(st);dt.top+=At,dt.bottom+=At}if(ht=="line")return dt;ht||(ht="local");var Nt=ge(st);if(ht=="local"?Nt+=rr(it.display):Nt-=it.display.viewOffset,ht=="page"||ht=="window"){var Gt=it.display.lineSpace.getBoundingClientRect();Nt+=Gt.top+(ht=="window"?0:Xr());var jt=Gt.left+(ht=="window"?0:to());dt.left+=jt,dt.right+=jt}return dt.top+=Nt,dt.bottom+=Nt,dt}function so(it,st,dt){if(dt=="div")return st;var ht=st.left,gt=st.top;if(dt=="page")ht-=to(),gt-=Xr();else if(dt=="local"||!dt){var At=it.display.sizer.getBoundingClientRect();ht+=At.left,gt+=At.top}var Nt=it.display.lineSpace.getBoundingClientRect();return{left:ht-Nt.left,top:gt-Nt.top}}function ca(it,st,dt,ht,gt){return ht||(ht=hn(it.doc,st.line)),Wo(it,ht,io(it,ht,st.ch,gt),dt)}function Xi(it,st,dt,ht,gt,At){ht=ht||hn(it.doc,st.line),gt||(gt=uo(it,ht));function Nt(Un,_n){var Si=To(it,gt,Un,_n?"right":"left",At);return _n?Si.left=Si.right:Si.right=Si.left,Wo(it,ht,Si,dt)}var Gt=hi(ht,it.doc.direction),jt=st.ch,_t=st.sticky;if(jt>=ht.text.length?(jt=ht.text.length,_t="before"):jt<=0&&(jt=0,_t="after"),!Gt)return Nt(_t=="before"?jt-1:jt,_t=="before");function Fe(Un,_n,Si){var zi=Gt[_n],hr=zi.level==1;return Nt(Si?Un-1:Un,hr!=Si)}var ie=ri(Gt,jt,_t),qe=Ke,Ze=Fe(jt,ie,_t=="before");return qe!=null&&(Ze.other=Fe(jt,qe,_t!="before")),Ze}function Fi(it,st){var dt=0;st=Kn(it.doc,st),it.options.lineWrapping||(dt=qs(it.display)*st.ch);var ht=hn(it.doc,st.line),gt=ge(ht)+rr(it.display);return{left:dt,right:dt,top:gt,bottom:gt+ht.height}}function qi(it,st,dt,ht,gt){var At=be(it,st,dt);return At.xRel=gt,ht&&(At.outside=ht),At}function Gi(it,st,dt){var ht=it.doc;if(dt+=it.display.viewOffset,dt<0)return qi(ht.first,0,null,-1,-1);var gt=ye(ht,dt),At=ht.first+ht.size-1;if(gt>At)return qi(ht.first+ht.size-1,hn(ht,At).text.length,null,1,1);st<0&&(st=0);for(var Nt=hn(ht,gt);;){var Gt=Qe(it,Nt,gt,st,dt),jt=Ii(Nt,Gt.ch+(Gt.xRel>0||Gt.outside>0?1:0));if(!jt)return Gt;var _t=jt.find(1);if(_t.line==gt)return _t;Nt=hn(ht,gt=_t.line)}}function En(it,st,dt,ht){ht-=Kr(st);var gt=st.text.length,At=jn(function(Nt){return To(it,dt,Nt-1).bottom<=ht},gt,0);return gt=jn(function(Nt){return To(it,dt,Nt).top>ht},At,gt),{begin:At,end:gt}}function Ao(it,st,dt,ht){dt||(dt=uo(it,st));var gt=Wo(it,st,To(it,dt,ht),"line").top;return En(it,st,dt,gt)}function $t(it,st,dt,ht){return it.bottom<=dt?!1:it.top>dt?!0:(ht?it.left:it.right)>st}function Qe(it,st,dt,ht,gt){gt-=ge(st);var At=uo(it,st),Nt=Kr(st),Gt=0,jt=st.text.length,_t=!0,Fe=hi(st,it.doc.direction);if(Fe){var ie=(it.options.lineWrapping?Os:Is)(it,st,dt,At,Fe,ht,gt);_t=ie.level!=1,Gt=_t?ie.from:ie.to-1,jt=_t?ie.to:ie.from-1}var qe=null,Ze=null,Un=jn(function(Zr){var Zi=To(it,At,Zr);return Zi.top+=Nt,Zi.bottom+=Nt,$t(Zi,ht,gt,!1)?(Zi.top<=gt&&Zi.left<=ht&&(qe=Zr,Ze=Zi),!0):!1},Gt,jt),_n,Si,zi=!1;if(Ze){var hr=ht-Ze.left<Ze.right-ht,Ki=hr==_t;Un=qe+(Ki?0:1),Si=Ki?"after":"before",_n=hr?Ze.left:Ze.right}else{!_t&&(Un==jt||Un==Gt)&&Un++,Si=Un==0?"after":Un==st.text.length?"before":To(it,At,Un-(_t?1:0)).bottom+Nt<=gt==_t?"after":"before";var yr=Xi(it,be(dt,Un,Si),"line",st,At);_n=yr.left,zi=gt<yr.top?-1:gt>=yr.bottom?1:0}return Un=Ue(st.text,Un,1),qi(dt,Un,Si,zi,ht-_n)}function Is(it,st,dt,ht,gt,At,Nt){var Gt=jn(function(ie){var qe=gt[ie],Ze=qe.level!=1;return $t(Xi(it,be(dt,Ze?qe.to:qe.from,Ze?"before":"after"),"line",st,ht),At,Nt,!0)},0,gt.length-1),jt=gt[Gt];if(Gt>0){var _t=jt.level!=1,Fe=Xi(it,be(dt,_t?jt.from:jt.to,_t?"after":"before"),"line",st,ht);$t(Fe,At,Nt,!0)&&Fe.top>Nt&&(jt=gt[Gt-1])}return jt}function Os(it,st,dt,ht,gt,At,Nt){var Gt=En(it,st,ht,Nt),jt=Gt.begin,_t=Gt.end;/\s/.test(st.text.charAt(_t-1))&&_t--;for(var Fe=null,ie=null,qe=0;qe<gt.length;qe++){var Ze=gt[qe];if(!(Ze.from>=_t||Ze.to<=jt)){var Un=Ze.level!=1,_n=To(it,ht,Un?Math.min(_t,Ze.to)-1:Math.max(jt,Ze.from)).right,Si=_n<At?At-_n+1e9:_n-At;(!Fe||ie>Si)&&(Fe=Ze,ie=Si)}}return Fe||(Fe=gt[gt.length-1]),Fe.from<jt&&(Fe={from:jt,to:Fe.to,level:Fe.level}),Fe.to>_t&&(Fe={from:Fe.from,to:_t,level:Fe.level}),Fe}var Gs;function ys(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Gs==null){Gs=Jt("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)Gs.appendChild(document.createTextNode("x")),Gs.appendChild(Jt("br"));Gs.appendChild(document.createTextNode("x"))}qt(it.measure,Gs);var dt=Gs.offsetHeight/50;return dt>3&&(it.cachedTextHeight=dt),se(it.measure),dt||1}function qs(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=Jt("span","xxxxxxxxxx"),dt=Jt("pre",[st],"CodeMirror-line-like");qt(it.measure,dt);var ht=st.getBoundingClientRect(),gt=(ht.right-ht.left)/10;return gt>2&&(it.cachedCharWidth=gt),gt||10}function Vs(it){for(var st=it.display,dt={},ht={},gt=st.gutters.clientLeft,At=st.gutters.firstChild,Nt=0;At;At=At.nextSibling,++Nt){var Gt=it.display.gutterSpecs[Nt].className;dt[Gt]=At.offsetLeft+At.clientLeft+gt,ht[Gt]=At.clientWidth}return{fixedPos:Sl(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:dt,gutterWidth:ht,wrapperWidth:st.wrapper.clientWidth}}function Sl(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function es(it){var st=ys(it.display),dt=it.options.lineWrapping,ht=dt&&Math.max(5,it.display.scroller.clientWidth/qs(it.display)-3);return function(gt){if(Yt(it.doc,gt))return 0;var At=0;if(gt.widgets)for(var Nt=0;Nt<gt.widgets.length;Nt++)gt.widgets[Nt].height&&(At+=gt.widgets[Nt].height);return dt?At+(Math.ceil(gt.text.length/ht)||1)*st:At+st}}function ur(it){var st=it.doc,dt=es(it);st.iter(function(ht){var gt=dt(ht);gt!=ht.height&&Pn(ht,gt)})}function Ys(it,st,dt,ht){var gt=it.display;if(!dt&&Yo(st).getAttribute("cm-not-content")=="true")return null;var At,Nt,Gt=gt.lineSpace.getBoundingClientRect();try{At=st.clientX-Gt.left,Nt=st.clientY-Gt.top}catch(ie){return null}var jt=Gi(it,At,Nt),_t;if(ht&&jt.xRel>0&&(_t=hn(it.doc,jt.line).text).length==jt.ch){var Fe=te(_t,_t.length,it.options.tabSize)-_t.length;jt=be(jt.line,Math.max(0,Math.round((At-kr(it.display).left)/qs(it.display))-Fe))}return jt}function _s(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var dt=it.display.view,ht=0;ht<dt.length;ht++)if(st-=dt[ht].size,st<0)return ht}function ns(it,st,dt,ht){st==null&&(st=it.doc.first),dt==null&&(dt=it.doc.first+it.doc.size),ht||(ht=0);var gt=it.display;if(ht&&dt<gt.viewTo&&(gt.updateLineNumbers==null||gt.updateLineNumbers>st)&&(gt.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=gt.viewTo)rn&&Ft(it.doc,st)<gt.viewTo&&Cs(it);else if(dt<=gt.viewFrom)rn&&re(it.doc,dt+ht)>gt.viewFrom?Cs(it):(gt.viewFrom+=ht,gt.viewTo+=ht);else if(st<=gt.viewFrom&&dt>=gt.viewTo)Cs(it);else if(st<=gt.viewFrom){var At=fa(it,dt,dt+ht,1);At?(gt.view=gt.view.slice(At.index),gt.viewFrom=At.lineN,gt.viewTo+=ht):Cs(it)}else if(dt>=gt.viewTo){var Nt=fa(it,st,st,-1);Nt?(gt.view=gt.view.slice(0,Nt.index),gt.viewTo=Nt.lineN):Cs(it)}else{var Gt=fa(it,st,st,-1),jt=fa(it,dt,dt+ht,1);Gt&&jt?(gt.view=gt.view.slice(0,Gt.index).concat(ai(it,Gt.lineN,jt.lineN)).concat(gt.view.slice(jt.index)),gt.viewTo+=ht):Cs(it)}var _t=gt.externalMeasured;_t&&(dt<_t.lineN?_t.lineN+=ht:st<_t.lineN+_t.size&&(gt.externalMeasured=null))}function Qr(it,st,dt){it.curOp.viewChanged=!0;var ht=it.display,gt=it.display.externalMeasured;if(gt&&st>=gt.lineN&&st<gt.lineN+gt.size&&(ht.externalMeasured=null),!(st<ht.viewFrom||st>=ht.viewTo)){var At=ht.view[_s(it,st)];if(At.node!=null){var Nt=At.changes||(At.changes=[]);Le(Nt,dt)==-1&&Nt.push(dt)}}}function Cs(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function fa(it,st,dt,ht){var gt=_s(it,st),At,Nt=it.display.view;if(!rn||dt==it.doc.first+it.doc.size)return{index:gt,lineN:dt};for(var Gt=it.display.viewFrom,jt=0;jt<gt;jt++)Gt+=Nt[jt].size;if(Gt!=st){if(ht>0){if(gt==Nt.length-1)return null;At=Gt+Nt[gt].size-st,gt++}else At=Gt-st;st+=At,dt+=At}for(;Ft(it.doc,dt)!=dt;){if(gt==(ht<0?0:Nt.length-1))return null;dt+=ht*Nt[gt-(ht<0?1:0)].size,gt+=ht}return{index:gt,lineN:dt}}function qo(it,st,dt){var ht=it.display,gt=ht.view;gt.length==0||st>=ht.viewTo||dt<=ht.viewFrom?(ht.view=ai(it,st,dt),ht.viewFrom=st):(ht.viewFrom>st?ht.view=ai(it,st,ht.viewFrom).concat(ht.view):ht.viewFrom<st&&(ht.view=ht.view.slice(_s(it,st))),ht.viewFrom=st,ht.viewTo<dt?ht.view=ht.view.concat(ai(it,ht.viewTo,dt)):ht.viewTo>dt&&(ht.view=ht.view.slice(0,_s(it,dt)))),ht.viewTo=dt}function ga(it){for(var st=it.display.view,dt=0,ht=0;ht<st.length;ht++){var gt=st[ht];!gt.hidden&&(!gt.node||gt.changes)&&++dt}return dt}function Rs(it){it.display.input.showSelection(it.display.input.prepareSelection())}function Xl(it,st){st===void 0&&(st=!0);for(var dt=it.doc,ht={},gt=ht.cursors=document.createDocumentFragment(),At=ht.selection=document.createDocumentFragment(),Nt=0;Nt<dt.sel.ranges.length;Nt++)if(!(!st&&Nt==dt.sel.primIndex)){var Gt=dt.sel.ranges[Nt];if(!(Gt.from().line>=it.display.viewTo||Gt.to().line<it.display.viewFrom)){var jt=Gt.empty();(jt||it.options.showCursorWhenSelecting)&&Lo(it,Gt.head,gt),jt||yo(it,Gt,At)}}return ht}function Lo(it,st,dt){var ht=Xi(it,st,"div",null,null,!it.options.singleCursorHeightPerLine),gt=dt.appendChild(Jt("div","\xA0","CodeMirror-cursor"));if(gt.style.left=ht.left+"px",gt.style.top=ht.top+"px",gt.style.height=Math.max(0,ht.bottom-ht.top)*it.options.cursorHeight+"px",ht.other){var At=dt.appendChild(Jt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));At.style.display="",At.style.left=ht.other.left+"px",At.style.top=ht.other.top+"px",At.style.height=(ht.other.bottom-ht.other.top)*.85+"px"}}function bs(it,st){return it.top-st.top||it.left-st.left}function yo(it,st,dt){var ht=it.display,gt=it.doc,At=document.createDocumentFragment(),Nt=kr(it.display),Gt=Nt.left,jt=Math.max(ht.sizerWidth,Ur(it)-ht.sizer.offsetLeft)-Nt.right,_t=gt.direction=="ltr";function Fe(Ki,yr,Zr,Zi){yr<0&&(yr=0),yr=Math.round(yr),Zi=Math.round(Zi),At.appendChild(Jt("div",null,"CodeMirror-selected","position: absolute; left: "+Ki+`px;
|
|
top: `+yr+"px; width: "+(Zr==null?jt-Ki:Zr)+`px;
|
|
height: `+(Zi-yr)+"px"))}function ie(Ki,yr,Zr){var Zi=hn(gt,Ki),wo=Zi.text.length,As,la;function Ds(ra,hl){return ca(it,be(Ki,ra),"div",Zi,hl)}function $a(ra,hl,ka){var oa=Ao(it,Zi,null,ra),Jo=hl=="ltr"==(ka=="after")?"left":"right",zs=ka=="after"?oa.begin:oa.end-(/\s/.test(Zi.text.charAt(oa.end-1))?2:1);return Ds(zs,Jo)[Jo]}var Oa=hi(Zi,gt.direction);return Gn(Oa,yr||0,Zr==null?wo:Zr,function(ra,hl,ka,oa){var Jo=ka=="ltr",zs=Ds(ra,Jo?"left":"right"),va=Ds(hl-1,Jo?"right":"left"),ba=yr==null&&ra==0,_l=Zr==null&&hl==wo,Ns=oa==0,zl=!Oa||oa==Oa.length-1;if(va.top-zs.top<=3){var Ws=(_t?ba:_l)&&Ns,Bc=(_t?_l:ba)&&zl,Al=Ws?Gt:(Jo?zs:va).left,dl=Bc?jt:(Jo?va:zs).right;Fe(Al,zs.top,dl-Al,zs.bottom)}else{var tl,fs,ya,Eu;Jo?(tl=_t&&ba&&Ns?Gt:zs.left,fs=_t?jt:$a(ra,ka,"before"),ya=_t?Gt:$a(hl,ka,"after"),Eu=_t&&_l&&zl?jt:va.right):(tl=_t?$a(ra,ka,"before"):Gt,fs=!_t&&ba&&Ns?jt:zs.right,ya=!_t&&_l&&zl?Gt:va.left,Eu=_t?$a(hl,ka,"after"):jt),Fe(tl,zs.top,fs-tl,zs.bottom),zs.bottom<va.top&&Fe(Gt,zs.bottom,null,va.top),Fe(ya,va.top,Eu-ya,va.bottom)}(!As||bs(zs,As)<0)&&(As=zs),bs(va,As)<0&&(As=va),(!la||bs(zs,la)<0)&&(la=zs),bs(va,la)<0&&(la=va)}),{start:As,end:la}}var qe=st.from(),Ze=st.to();if(qe.line==Ze.line)ie(qe.line,qe.ch,Ze.ch);else{var Un=hn(gt,qe.line),_n=hn(gt,Ze.line),Si=Bi(Un)==Bi(_n),zi=ie(qe.line,qe.ch,Si?Un.text.length+1:null).end,hr=ie(Ze.line,Si?0:null,Ze.ch).start;Si&&(zi.top<hr.top-2?(Fe(zi.right,zi.top,null,zi.bottom),Fe(Gt,hr.top,hr.left,hr.bottom)):Fe(zi.right,zi.top,hr.left-zi.right,zi.bottom)),zi.bottom<hr.top&&Fe(Gt,zi.bottom,null,hr.top)}dt.appendChild(At)}function Io(it){if(it.state.focused){var st=it.display;clearInterval(st.blinker);var dt=!0;st.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?st.blinker=setInterval(function(){it.hasFocus()||Dl(it),st.cursorDiv.style.visibility=(dt=!dt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function is(it){it.state.focused||(it.display.input.focus(),bo(it))}function ds(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Dl(it))},100)}function bo(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(Pi(it,"focus",it,st),it.state.focused=!0,tn(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),ue&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Io(it))}function Dl(it,st){it.state.delayingBlurEvent||(it.state.focused&&(Pi(it,"blur",it,st),it.state.focused=!1,Ut(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function mr(it){for(var st=it.display,dt=st.lineDiv.offsetTop,ht=0;ht<st.view.length;ht++){var gt=st.view[ht],At=it.options.lineWrapping,Nt=void 0,Gt=0;if(!gt.hidden){if(ce&&fe<8){var jt=gt.node.offsetTop+gt.node.offsetHeight;Nt=jt-dt,dt=jt}else{var _t=gt.node.getBoundingClientRect();Nt=_t.bottom-_t.top,!At&>.text.firstChild&&(Gt=gt.text.firstChild.getBoundingClientRect().right-_t.left-1)}var Fe=gt.line.height-Nt;if((Fe>.005||Fe<-.005)&&(Pn(gt.line,Nt),oh(gt.line),gt.rest))for(var ie=0;ie<gt.rest.length;ie++)oh(gt.rest[ie]);if(Gt>it.display.sizerWidth){var qe=Math.ceil(Gt/qs(it.display));qe>it.display.maxLineLength&&(it.display.maxLineLength=qe,it.display.maxLine=gt.line,it.display.maxLineChanged=!0)}}}}function oh(it){if(it.widgets)for(var st=0;st<it.widgets.length;++st){var dt=it.widgets[st],ht=dt.node.parentNode;ht&&(dt.height=ht.offsetHeight)}}function eo(it,st,dt){var ht=dt&&dt.top!=null?Math.max(0,dt.top):it.scroller.scrollTop;ht=Math.floor(ht-rr(it));var gt=dt&&dt.bottom!=null?dt.bottom:ht+it.wrapper.clientHeight,At=ye(st,ht),Nt=ye(st,gt);if(dt&&dt.ensure){var Gt=dt.ensure.from.line,jt=dt.ensure.to.line;Gt<At?(At=Gt,Nt=ye(st,ge(hn(st,Gt))+it.wrapper.clientHeight)):Math.min(jt,st.lastLine())>=Nt&&(At=ye(st,ge(hn(st,jt))-it.wrapper.clientHeight),Nt=jt)}return{from:At,to:Math.max(Nt,At+1)}}function Hu(it,st){if(!An(it,"scrollCursorIntoView")){var dt=it.display,ht=dt.sizer.getBoundingClientRect(),gt=null;if(st.top+ht.top<0?gt=!0:st.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(gt=!1),gt!=null&&!Ge){var At=Jt("div","\u200B",null,`position: absolute;
|
|
top: `+(st.top-dt.viewOffset-rr(it.display))+`px;
|
|
height: `+(st.bottom-st.top+Hr(it)+dt.barHeight)+`px;
|
|
left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(At),At.scrollIntoView(gt),it.display.lineSpace.removeChild(At)}}}function Nl(it,st,dt,ht){ht==null&&(ht=0);var gt;!it.options.lineWrapping&&st==dt&&(st=st.ch?be(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,dt=st.sticky=="before"?be(st.line,st.ch+1,"before"):st);for(var At=0;At<5;At++){var Nt=!1,Gt=Xi(it,st),jt=!dt||dt==st?Gt:Xi(it,dt);gt={left:Math.min(Gt.left,jt.left),top:Math.min(Gt.top,jt.top)-ht,right:Math.max(Gt.left,jt.left),bottom:Math.max(Gt.bottom,jt.bottom)+ht};var _t=sh(it,gt),Fe=it.doc.scrollTop,ie=it.doc.scrollLeft;if(_t.scrollTop!=null&&(hu(it,_t.scrollTop),Math.abs(it.doc.scrollTop-Fe)>1&&(Nt=!0)),_t.scrollLeft!=null&&(Tl(it,_t.scrollLeft),Math.abs(it.doc.scrollLeft-ie)>1&&(Nt=!0)),!Nt)break}return gt}function lu(it,st){var dt=sh(it,st);dt.scrollTop!=null&&hu(it,dt.scrollTop),dt.scrollLeft!=null&&Tl(it,dt.scrollLeft)}function sh(it,st){var dt=it.display,ht=ys(it.display);st.top<0&&(st.top=0);var gt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:dt.scroller.scrollTop,At=oo(it),Nt={};st.bottom-st.top>At&&(st.bottom=st.top+At);var Gt=it.doc.height+jr(dt),jt=st.top<ht,_t=st.bottom>Gt-ht;if(st.top<gt)Nt.scrollTop=jt?0:st.top;else if(st.bottom>gt+At){var Fe=Math.min(st.top,(_t?Gt:st.bottom)-At);Fe!=gt&&(Nt.scrollTop=Fe)}var ie=it.options.fixedGutter?0:dt.gutters.offsetWidth,qe=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:dt.scroller.scrollLeft-ie,Ze=Ur(it)-dt.gutters.offsetWidth,Un=st.right-st.left>Ze;return Un&&(st.right=st.left+Ze),st.left<10?Nt.scrollLeft=0:st.left<qe?Nt.scrollLeft=Math.max(0,st.left+ie-(Un?0:10)):st.right>Ze+qe-3&&(Nt.scrollLeft=st.right+(Un?0:10)-Ze),Nt}function ah(it,st){st!=null&&(xl(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function ol(it){xl(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function uu(it,st,dt){(st!=null||dt!=null)&&xl(it),st!=null&&(it.curOp.scrollLeft=st),dt!=null&&(it.curOp.scrollTop=dt)}function Bo(it,st){xl(it),it.curOp.scrollToPos=st}function xl(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var dt=Fi(it,st.from),ht=Fi(it,st.to);lh(it,dt,ht,st.margin)}}function lh(it,st,dt,ht){var gt=sh(it,{left:Math.min(st.left,dt.left),top:Math.min(st.top,dt.top)-ht,right:Math.max(st.right,dt.right),bottom:Math.max(st.bottom,dt.bottom)+ht});uu(it,gt.scrollLeft,gt.scrollTop)}function hu(it,st){Math.abs(it.doc.scrollTop-st)<2||(St||hh(it,{top:st}),Vh(it,st,!0),St&&hh(it),Zs(it,100))}function Vh(it,st,dt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!dt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function Tl(it,st,dt,ht){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((dt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!ht)&&(it.doc.scrollLeft=st,nf(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function Wa(it){var st=it.display,dt=st.gutters.offsetWidth,ht=Math.round(it.doc.height+jr(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?dt:0,docHeight:ht,scrollHeight:ht+Hr(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:dt}}var Kl=function(it,st,dt){this.cm=dt;var ht=this.vert=Jt("div",[Jt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),gt=this.horiz=Jt("div",[Jt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=gt.tabIndex=-1,it(ht),it(gt),Wn(ht,"scroll",function(){ht.clientHeight&&st(ht.scrollTop,"vertical")}),Wn(gt,"scroll",function(){gt.clientWidth&&st(gt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ce&&fe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Kl.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,dt=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(dt){this.vert.style.display="block",this.vert.style.bottom=st?ht+"px":"0";var gt=it.viewHeight-(st?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+gt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=dt?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var At=it.viewWidth-it.barLeft-(dt?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+At)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:dt?ht:0,bottom:st?ht:0}},Kl.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Kl.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Kl.prototype.zeroWidthHack=function(){var it=ct&&!le?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ot,this.disableVert=new Ot},Kl.prototype.enableZeroWidthBar=function(it,st,dt){it.style.pointerEvents="auto";function ht(){var gt=it.getBoundingClientRect(),At=dt=="vert"?document.elementFromPoint(gt.right-1,(gt.top+gt.bottom)/2):document.elementFromPoint((gt.right+gt.left)/2,gt.bottom-1);At!=it?it.style.pointerEvents="none":st.set(1e3,ht)}st.set(1e3,ht)},Kl.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var sl=function(){};sl.prototype.update=function(){return{bottom:0,right:0}},sl.prototype.setScrollLeft=function(){},sl.prototype.setScrollTop=function(){},sl.prototype.clear=function(){};function Ql(it,st){st||(st=Wa(it));var dt=it.display.barWidth,ht=it.display.barHeight;uh(it,st);for(var gt=0;gt<4&&dt!=it.display.barWidth||ht!=it.display.barHeight;gt++)dt!=it.display.barWidth&&it.options.lineWrapping&&mr(it),uh(it,Wa(it)),dt=it.display.barWidth,ht=it.display.barHeight}function uh(it,st){var dt=it.display,ht=dt.scrollbars.update(st);dt.sizer.style.paddingRight=(dt.barWidth=ht.right)+"px",dt.sizer.style.paddingBottom=(dt.barHeight=ht.bottom)+"px",dt.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(dt.scrollbarFiller.style.display="block",dt.scrollbarFiller.style.height=ht.bottom+"px",dt.scrollbarFiller.style.width=ht.right+"px"):dt.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(dt.gutterFiller.style.display="block",dt.gutterFiller.style.height=ht.bottom+"px",dt.gutterFiller.style.width=st.gutterWidth+"px"):dt.gutterFiller.style.display=""}var Yh={native:Kl,null:sl};function Zh(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Ut(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Yh[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),Wn(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,dt){dt=="horizontal"?Tl(it,st):hu(it,st)},it),it.display.scrollbars.addClass&&tn(it.display.wrapper,it.display.scrollbars.addClass)}var Oo=0;function qr(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Oo},Li(it.curOp)}function $s(it){var st=it.curOp;st&&ir(st,function(dt){for(var ht=0;ht<dt.ops.length;ht++)dt.ops[ht].cm.curOp=null;Jl(dt)})}function Jl(it){for(var st=it.ops,dt=0;dt<st.length;dt++)kd(st[dt]);for(var ht=0;ht<st.length;ht++)hg(st[ht]);for(var gt=0;gt<st.length;gt++)tf(st[gt]);for(var At=0;At<st.length;At++)Ms(st[At]);for(var Nt=0;Nt<st.length;Nt++)Gu(st[Nt])}function kd(it){var st=it.cm,dt=st.display;Gp(st),it.updateMaxLine&&ze(st),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<dt.viewFrom||it.scrollToPos.to.line>=dt.viewTo)||dt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new Uh(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function hg(it){it.updatedDisplay=it.mustUpdate&&ef(it.cm,it.update)}function tf(it){var st=it.cm,dt=st.display;it.updatedDisplay&&mr(st),it.barMeasure=Wa(st),dt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=io(st,dt.maxLine,dt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(dt.scroller.clientWidth,dt.sizer.offsetLeft+it.adjustWidthTo+Hr(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,dt.sizer.offsetLeft+it.adjustWidthTo-Ur(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=dt.input.prepareSelection())}function Ms(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<st.doc.scrollLeft&&Tl(st,Math.min(st.display.scroller.scrollLeft,it.maxScrollLeft),!0),st.display.maxLineChanged=!1);var dt=it.focus&&it.focus==De();it.preparedSelection&&st.display.input.showSelection(it.preparedSelection,dt),(it.updatedDisplay||it.startHeight!=st.doc.height)&&Ql(st,it.barMeasure),it.updatedDisplay&&ch(st,it.barMeasure),it.selectionChanged&&Io(st),st.state.focused&&it.updateInput&&st.display.input.reset(it.typing),dt&&is(it.cm)}function Gu(it){var st=it.cm,dt=st.display,ht=st.doc;if(it.updatedDisplay&&ss(st,it.update),dt.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(dt.wheelStartX=dt.wheelStartY=null),it.scrollTop!=null&&Vh(st,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&Tl(st,it.scrollLeft,!0,!0),it.scrollToPos){var gt=Nl(st,Kn(ht,it.scrollToPos.from),Kn(ht,it.scrollToPos.to),it.scrollToPos.margin);Hu(st,gt)}var At=it.maybeHiddenMarkers,Nt=it.maybeUnhiddenMarkers;if(At)for(var Gt=0;Gt<At.length;++Gt)At[Gt].lines.length||Pi(At[Gt],"hide");if(Nt)for(var jt=0;jt<Nt.length;++jt)Nt[jt].lines.length&&Pi(Nt[jt],"unhide");dt.wrapper.offsetHeight&&(ht.scrollTop=st.display.scroller.scrollTop),it.changeObjs&&Pi(st,"changes",st,it.changeObjs),it.update&&it.update.finish()}function Cr(it,st){if(it.curOp)return st();qr(it);try{return st()}finally{$s(it)}}function Dr(it,st){return function(){if(it.curOp)return st.apply(it,arguments);qr(it);try{return st.apply(it,arguments)}finally{$s(it)}}}function Yr(it){return function(){if(this.curOp)return it.apply(this,arguments);qr(this);try{return it.apply(this,arguments)}finally{$s(this)}}}function zo(it){return function(){var st=this.cm;if(!st||st.curOp)return it.apply(this,arguments);qr(st);try{return it.apply(this,arguments)}finally{$s(st)}}}function Zs(it,st){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(st,pn(na,it))}function na(it){var st=it.doc;if(!(st.highlightFrontier>=it.display.viewTo)){var dt=+new Date+it.options.workTime,ht=No(it,st.highlightFrontier),gt=[];st.iter(ht.line,Math.min(st.first+st.size,it.display.viewTo+500),function(At){if(ht.line>=it.display.viewFrom){var Nt=At.styles,Gt=At.text.length>it.options.maxHighlightLength?di(st.mode,ht.state):null,jt=Tr(it,At,ht,!0);Gt&&(ht.state=Gt),At.styles=jt.styles;var _t=At.styleClasses,Fe=jt.classes;Fe?At.styleClasses=Fe:_t&&(At.styleClasses=null);for(var ie=!Nt||Nt.length!=At.styles.length||_t!=Fe&&(!_t||!Fe||_t.bgClass!=Fe.bgClass||_t.textClass!=Fe.textClass),qe=0;!ie&&qe<Nt.length;++qe)ie=Nt[qe]!=At.styles[qe];ie&>.push(ht.line),At.stateAfter=ht.save(),ht.nextLine()}else At.text.length<=it.options.maxHighlightLength&&Ee(it,At.text,ht),At.stateAfter=ht.line%5==0?ht.save():null,ht.nextLine();if(+new Date>dt)return Zs(it,it.options.workDelay),!0}),st.highlightFrontier=ht.line,st.modeFrontier=Math.max(st.modeFrontier,ht.line),gt.length&&Cr(it,function(){for(var At=0;At<gt.length;At++)Qr(it,gt[At],"text")})}}var Uh=function(it,st,dt){var ht=it.display;this.viewport=st,this.visible=eo(ht,it.doc,st),this.editorIsHidden=!ht.wrapper.offsetWidth,this.wrapperHeight=ht.wrapper.clientHeight,this.wrapperWidth=ht.wrapper.clientWidth,this.oldDisplayWidth=Ur(it),this.force=dt,this.dims=Vs(it),this.events=[]};Uh.prototype.signal=function(it,st){gr(it,st)&&this.events.push(arguments)},Uh.prototype.finish=function(){for(var it=0;it<this.events.length;it++)Pi.apply(null,this.events[it])};function Gp(it){var st=it.display;!st.scrollbarsClipped&&st.scroller.offsetWidth&&(st.nativeBarWidth=st.scroller.offsetWidth-st.scroller.clientWidth,st.heightForcer.style.height=Hr(it)+"px",st.sizer.style.marginBottom=-st.nativeBarWidth+"px",st.sizer.style.borderRightWidth=Hr(it)+"px",st.scrollbarsClipped=!0)}function Wp(it){if(it.hasFocus())return null;var st=De();if(!st||!He(it.display.lineDiv,st))return null;var dt={activeElt:st};if(window.getSelection){var ht=window.getSelection();ht.anchorNode&&ht.extend&&He(it.display.lineDiv,ht.anchorNode)&&(dt.anchorNode=ht.anchorNode,dt.anchorOffset=ht.anchorOffset,dt.focusNode=ht.focusNode,dt.focusOffset=ht.focusOffset)}return dt}function qa(it){if(!(!it||!it.activeElt||it.activeElt==De())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&He(document.body,it.anchorNode)&&He(document.body,it.focusNode))){var st=window.getSelection(),dt=document.createRange();dt.setEnd(it.anchorNode,it.anchorOffset),dt.collapse(!1),st.removeAllRanges(),st.addRange(dt),st.extend(it.focusNode,it.focusOffset)}}function ef(it,st){var dt=it.display,ht=it.doc;if(st.editorIsHidden)return Cs(it),!1;if(!st.force&&st.visible.from>=dt.viewFrom&&st.visible.to<=dt.viewTo&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo)&&dt.renderedView==dt.view&&ga(it)==0)return!1;ta(it)&&(Cs(it),st.dims=Vs(it));var gt=ht.first+ht.size,At=Math.max(st.visible.from-it.options.viewportMargin,ht.first),Nt=Math.min(gt,st.visible.to+it.options.viewportMargin);dt.viewFrom<At&&At-dt.viewFrom<20&&(At=Math.max(ht.first,dt.viewFrom)),dt.viewTo>Nt&&dt.viewTo-Nt<20&&(Nt=Math.min(gt,dt.viewTo)),rn&&(At=Ft(it.doc,At),Nt=re(it.doc,Nt));var Gt=At!=dt.viewFrom||Nt!=dt.viewTo||dt.lastWrapHeight!=st.wrapperHeight||dt.lastWrapWidth!=st.wrapperWidth;qo(it,At,Nt),dt.viewOffset=ge(hn(it.doc,dt.viewFrom)),it.display.mover.style.top=dt.viewOffset+"px";var jt=ga(it);if(!Gt&&jt==0&&!st.force&&dt.renderedView==dt.view&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo))return!1;var _t=Wp(it);return jt>4&&(dt.lineDiv.style.display="none"),dg(it,dt.updateLineNumbers,st.dims),jt>4&&(dt.lineDiv.style.display=""),dt.renderedView=dt.view,qa(_t),se(dt.cursorDiv),se(dt.selectionDiv),dt.gutters.style.height=dt.sizer.style.minHeight=0,Gt&&(dt.lastWrapHeight=st.wrapperHeight,dt.lastWrapWidth=st.wrapperWidth,Zs(it,400)),dt.updateLineNumbers=null,!0}function ss(it,st){for(var dt=st.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||st.oldDisplayWidth==Ur(it)){if(dt&&dt.top!=null&&(dt={top:Math.min(it.doc.height+jr(it.display)-oo(it),dt.top)}),st.visible=eo(it.display,it.doc,dt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else ht&&(st.visible=eo(it.display,it.doc,dt));if(!ef(it,st))break;mr(it);var gt=Wa(it);Rs(it),Ql(it,gt),ch(it,gt),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function hh(it,st){var dt=new Uh(it,st);if(ef(it,dt)){mr(it),ss(it,dt);var ht=Wa(it);Rs(it),Ql(it,ht),ch(it,ht),dt.finish()}}function dg(it,st,dt){var ht=it.display,gt=it.options.lineNumbers,At=ht.lineDiv,Nt=At.firstChild;function Gt(Un){var _n=Un.nextSibling;return ue&&ct&&it.display.currentWheelTarget==Un?Un.style.display="none":Un.parentNode.removeChild(Un),_n}for(var jt=ht.view,_t=ht.viewFrom,Fe=0;Fe<jt.length;Fe++){var ie=jt[Fe];if(!ie.hidden)if(!ie.node||ie.node.parentNode!=At){var qe=mi(it,ie,_t,dt);At.insertBefore(qe,Nt)}else{for(;Nt!=ie.node;)Nt=Gt(Nt);var Ze=gt&&st!=null&&st<=_t&&ie.lineNumber;ie.changes&&(Le(ie.changes,"gutter")>-1&&(Ze=!1),sr(it,ie,_t,dt)),Ze&&(se(ie.lineNumber),ie.lineNumber.appendChild(document.createTextNode(wn(it.options,_t)))),Nt=ie.node.nextSibling}_t+=ie.size}for(;Nt;)Nt=Gt(Nt)}function dh(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function ch(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+Hr(it)+"px"}function nf(it){var st=it.display,dt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var ht=Sl(st)-st.scroller.scrollLeft+it.doc.scrollLeft,gt=st.gutters.offsetWidth,At=ht+"px",Nt=0;Nt<dt.length;Nt++)if(!dt[Nt].hidden){it.options.fixedGutter&&(dt[Nt].gutter&&(dt[Nt].gutter.style.left=At),dt[Nt].gutterBackground&&(dt[Nt].gutterBackground.style.left=At));var Gt=dt[Nt].alignable;if(Gt)for(var jt=0;jt<Gt.length;jt++)Gt[jt].style.left=At}it.options.fixedGutter&&(st.gutters.style.left=ht+gt+"px")}}function ta(it){if(!it.options.lineNumbers)return!1;var st=it.doc,dt=wn(it.options,st.first+st.size-1),ht=it.display;if(dt.length!=ht.lineNumChars){var gt=ht.measure.appendChild(Jt("div",[Jt("div",dt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),At=gt.firstChild.offsetWidth,Nt=gt.offsetWidth-At;return ht.lineGutter.style.width="",ht.lineNumInnerWidth=Math.max(At,ht.lineGutter.offsetWidth-Nt)+1,ht.lineNumWidth=ht.lineNumInnerWidth+Nt,ht.lineNumChars=ht.lineNumInnerWidth?dt.length:-1,ht.lineGutter.style.width=ht.lineNumWidth+"px",dh(it.display),!0}return!1}function pa(it,st){for(var dt=[],ht=!1,gt=0;gt<it.length;gt++){var At=it[gt],Nt=null;if(typeof At!="string"&&(Nt=At.style,At=At.className),At=="CodeMirror-linenumbers")if(st)ht=!0;else continue;dt.push({className:At,style:Nt})}return st&&!ht&&dt.push({className:"CodeMirror-linenumbers",style:null}),dt}function Xh(it){var st=it.gutters,dt=it.gutterSpecs;se(st),it.lineGutter=null;for(var ht=0;ht<dt.length;++ht){var gt=dt[ht],At=gt.className,Nt=gt.style,Gt=st.appendChild(Jt("div",null,"CodeMirror-gutter "+At));Nt&&(Gt.style.cssText=Nt),At=="CodeMirror-linenumbers"&&(it.lineGutter=Gt,Gt.style.width=(it.lineNumWidth||1)+"px")}st.style.display=dt.length?"":"none",dh(it)}function wl(it){Xh(it.display),ns(it),nf(it)}function fh(it,st,dt,ht){var gt=this;this.input=dt,gt.scrollbarFiller=Jt("div",null,"CodeMirror-scrollbar-filler"),gt.scrollbarFiller.setAttribute("cm-not-content","true"),gt.gutterFiller=Jt("div",null,"CodeMirror-gutter-filler"),gt.gutterFiller.setAttribute("cm-not-content","true"),gt.lineDiv=Me("div",null,"CodeMirror-code"),gt.selectionDiv=Jt("div",null,null,"position: relative; z-index: 1"),gt.cursorDiv=Jt("div",null,"CodeMirror-cursors"),gt.measure=Jt("div",null,"CodeMirror-measure"),gt.lineMeasure=Jt("div",null,"CodeMirror-measure"),gt.lineSpace=Me("div",[gt.measure,gt.lineMeasure,gt.selectionDiv,gt.cursorDiv,gt.lineDiv],null,"position: relative; outline: none");var At=Me("div",[gt.lineSpace],"CodeMirror-lines");gt.mover=Jt("div",[At],null,"position: relative"),gt.sizer=Jt("div",[gt.mover],"CodeMirror-sizer"),gt.sizerWidth=null,gt.heightForcer=Jt("div",null,null,"position: absolute; height: "+dn+"px; width: 1px;"),gt.gutters=Jt("div",null,"CodeMirror-gutters"),gt.lineGutter=null,gt.scroller=Jt("div",[gt.sizer,gt.heightForcer,gt.gutters],"CodeMirror-scroll"),gt.scroller.setAttribute("tabIndex","-1"),gt.wrapper=Jt("div",[gt.scrollbarFiller,gt.gutterFiller,gt.scroller],"CodeMirror"),ce&&fe<8&&(gt.gutters.style.zIndex=-1,gt.scroller.style.paddingRight=0),!ue&&!(St&&nt)&&(gt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(gt.wrapper):it(gt.wrapper)),gt.viewFrom=gt.viewTo=st.first,gt.reportedViewFrom=gt.reportedViewTo=st.first,gt.view=[],gt.renderedView=null,gt.externalMeasured=null,gt.viewOffset=0,gt.lastWrapHeight=gt.lastWrapWidth=0,gt.updateLineNumbers=null,gt.nativeBarWidth=gt.barHeight=gt.barWidth=0,gt.scrollbarsClipped=!1,gt.lineNumWidth=gt.lineNumInnerWidth=gt.lineNumChars=null,gt.alignWidgets=!1,gt.cachedCharWidth=gt.cachedTextHeight=gt.cachedPaddingH=null,gt.maxLine=null,gt.maxLineLength=0,gt.maxLineChanged=!1,gt.wheelDX=gt.wheelDY=gt.wheelStartX=gt.wheelStartY=null,gt.shift=!1,gt.selForContextMenu=null,gt.activeTouch=null,gt.gutterSpecs=pa(ht.gutters,ht.lineNumbers),Xh(gt),dt.init(gt)}var al=0,Us=null;ce?Us=-.53:St?Us=15:Ce?Us=-.7:je&&(Us=-1/3);function du(it){var st=it.wheelDeltaX,dt=it.wheelDeltaY;return st==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(st=it.detail),dt==null&&it.detail&&it.axis==it.VERTICAL_AXIS?dt=it.detail:dt==null&&(dt=it.wheelDelta),{x:st,y:dt}}function Pl(it){var st=du(it);return st.x*=Us,st.y*=Us,st}function ma(it,st){var dt=du(st),ht=dt.x,gt=dt.y,At=it.display,Nt=At.scroller,Gt=Nt.scrollWidth>Nt.clientWidth,jt=Nt.scrollHeight>Nt.clientHeight;if(ht&&Gt||gt&&jt){if(gt&&ct&&ue){t:for(var _t=st.target,Fe=At.view;_t!=Nt;_t=_t.parentNode)for(var ie=0;ie<Fe.length;ie++)if(Fe[ie].node==_t){it.display.currentWheelTarget=_t;break t}}if(ht&&!St&&!Bt&&Us!=null){gt&&jt&&hu(it,Math.max(0,Nt.scrollTop+gt*Us)),Tl(it,Math.max(0,Nt.scrollLeft+ht*Us)),(!gt||gt&&jt)&&Sr(st),At.wheelStartX=null;return}if(gt&&Us!=null){var qe=gt*Us,Ze=it.doc.scrollTop,Un=Ze+At.wrapper.clientHeight;qe<0?Ze=Math.max(0,Ze+qe-50):Un=Math.min(it.doc.height,Un+qe+50),hh(it,{top:Ze,bottom:Un})}al<20&&(At.wheelStartX==null?(At.wheelStartX=Nt.scrollLeft,At.wheelStartY=Nt.scrollTop,At.wheelDX=ht,At.wheelDY=gt,setTimeout(function(){if(At.wheelStartX!=null){var _n=Nt.scrollLeft-At.wheelStartX,Si=Nt.scrollTop-At.wheelStartY,zi=Si&&At.wheelDY&&Si/At.wheelDY||_n&&At.wheelDX&&_n/At.wheelDX;At.wheelStartX=At.wheelStartY=null,zi&&(Us=(Us*al+zi)/(al+1),++al)}},200)):(At.wheelDX+=ht,At.wheelDY+=gt))}}var Il=function(it,st){this.ranges=it,this.primIndex=st};Il.prototype.primary=function(){return this.ranges[this.primIndex]},Il.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var st=0;st<this.ranges.length;st++){var dt=this.ranges[st],ht=it.ranges[st];if(!Ni(dt.anchor,ht.anchor)||!Ni(dt.head,ht.head))return!1}return!0},Il.prototype.deepCopy=function(){for(var it=[],st=0;st<this.ranges.length;st++)it[st]=new as(ji(this.ranges[st].anchor),ji(this.ranges[st].head));return new Il(it,this.primIndex)},Il.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},Il.prototype.contains=function(it,st){st||(st=it);for(var dt=0;dt<this.ranges.length;dt++){var ht=this.ranges[dt];if(Ln(st,ht.from())>=0&&Ln(it,ht.to())<=0)return dt}return-1};var as=function(it,st){this.anchor=it,this.head=st};as.prototype.from=function(){return On(this.anchor,this.head)},as.prototype.to=function(){return Qi(this.anchor,this.head)},as.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ql(it,st,dt){var ht=it&&it.options.selectionsMayTouch,gt=st[dt];st.sort(function(qe,Ze){return Ln(qe.from(),Ze.from())}),dt=Le(st,gt);for(var At=1;At<st.length;At++){var Nt=st[At],Gt=st[At-1],jt=Ln(Gt.to(),Nt.from());if(ht&&!Nt.empty()?jt>0:jt>=0){var _t=On(Gt.from(),Nt.from()),Fe=Qi(Gt.to(),Nt.to()),ie=Gt.empty()?Nt.from()==Nt.head:Gt.from()==Gt.head;At<=dt&&--dt,st.splice(--At,2,new as(ie?Fe:_t,ie?_t:Fe))}}return new Il(st,dt)}function Wu(it,st){return new Il([new as(it,st||it)],0)}function gh(it){return it.text?be(it.from.line+it.text.length-1,Pe(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Kh(it,st){if(Ln(it,st.from)<0)return it;if(Ln(it,st.to)<=0)return gh(st);var dt=it.line+st.text.length-(st.to.line-st.from.line)-1,ht=it.ch;return it.line==st.to.line&&(ht+=gh(st).ch-st.to.ch),be(dt,ht)}function hc(it,st){for(var dt=[],ht=0;ht<it.sel.ranges.length;ht++){var gt=it.sel.ranges[ht];dt.push(new as(Kh(gt.anchor,st),Kh(gt.head,st)))}return ql(it.cm,dt,it.sel.primIndex)}function bd(it,st,dt){return it.line==st.line?be(dt.line,it.ch-st.ch+dt.ch):be(dt.line+(it.line-st.line),it.ch)}function dc(it,st,dt){for(var ht=[],gt=be(it.first,0),At=gt,Nt=0;Nt<st.length;Nt++){var Gt=st[Nt],jt=bd(Gt.from,gt,At),_t=bd(gh(Gt),gt,At);if(gt=Gt.to,At=_t,dt=="around"){var Fe=it.sel.ranges[Nt],ie=Ln(Fe.head,Fe.anchor)<0;ht[Nt]=new as(ie?_t:jt,ie?jt:_t)}else ht[Nt]=new as(jt,jt)}return new Il(ht,it.sel.primIndex)}function xo(it){it.doc.mode=Ne(it.options,it.doc.modeOption),cc(it)}function cc(it){it.doc.iter(function(st){st.stateAfter&&(st.stateAfter=null),st.styles&&(st.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,Zs(it,100),it.state.modeGen++,it.curOp&&ns(it)}function cg(it,st){return st.from.ch==0&&st.to.ch==0&&Pe(st.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function rf(it,st,dt,ht){function gt(hr){return dt?dt[hr]:null}function At(hr,Ki,yr){kn(hr,Ki,yr,ht),Yn(hr,"change",hr,st)}function Nt(hr,Ki){for(var yr=[],Zr=hr;Zr<Ki;++Zr)yr.push(new Je(_t[Zr],gt(Zr),ht));return yr}var Gt=st.from,jt=st.to,_t=st.text,Fe=hn(it,Gt.line),ie=hn(it,jt.line),qe=Pe(_t),Ze=gt(_t.length-1),Un=jt.line-Gt.line;if(st.full)it.insert(0,Nt(0,_t.length)),it.remove(_t.length,it.size-_t.length);else if(cg(it,st)){var _n=Nt(0,_t.length-1);At(ie,ie.text,Ze),Un&&it.remove(Gt.line,Un),_n.length&&it.insert(Gt.line,_n)}else if(Fe==ie)if(_t.length==1)At(Fe,Fe.text.slice(0,Gt.ch)+qe+Fe.text.slice(jt.ch),Ze);else{var Si=Nt(1,_t.length-1);Si.push(new Je(qe+Fe.text.slice(jt.ch),Ze,ht)),At(Fe,Fe.text.slice(0,Gt.ch)+_t[0],gt(0)),it.insert(Gt.line+1,Si)}else if(_t.length==1)At(Fe,Fe.text.slice(0,Gt.ch)+_t[0]+ie.text.slice(jt.ch),gt(0)),it.remove(Gt.line+1,Un);else{At(Fe,Fe.text.slice(0,Gt.ch)+_t[0],gt(0)),At(ie,qe+ie.text.slice(jt.ch),Ze);var zi=Nt(1,_t.length-1);Un>1&&it.remove(Gt.line+1,Un-1),it.insert(Gt.line+1,zi)}Yn(it,"change",it,st)}function cu(it,st,dt){function ht(gt,At,Nt){if(gt.linked)for(var Gt=0;Gt<gt.linked.length;++Gt){var jt=gt.linked[Gt];if(jt.doc!=At){var _t=Nt&&jt.sharedHist;dt&&!_t||(st(jt.doc,_t),ht(jt.doc,gt,_t))}}}ht(it,null,!0)}function of(it,st){if(st.cm)throw new Error("This document is already in use.");it.doc=st,st.cm=it,ur(it),xo(it),fc(it),it.options.lineWrapping||ze(it),it.options.mode=st.modeOption,ns(it)}function fc(it){(it.doc.direction=="rtl"?tn:Ut)(it.display.lineDiv,"CodeMirror-rtl")}function $0(it){Cr(it,function(){fc(it),ns(it)})}function Bd(it){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=it||1}function sf(it,st){var dt={from:ji(st.from),to:gh(st),text:xi(it,st.from,st.to)};return ph(it,dt,st.from.line,st.to.line+1),cu(it,function(ht){return ph(ht,dt,st.from.line,st.to.line+1)},!0),dt}function Dd(it){for(;it.length;){var st=Pe(it);if(st.ranges)it.pop();else break}}function gc(it,st){if(st)return Dd(it.done),Pe(it.done);if(it.done.length&&!Pe(it.done).ranges)return Pe(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),Pe(it.done)}function pc(it,st,dt,ht){var gt=it.history;gt.undone.length=0;var At=+new Date,Nt,Gt;if((gt.lastOp==ht||gt.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&>.lastModTime>At-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Nt=gc(gt,gt.lastOp==ht)))Gt=Pe(Nt.changes),Ln(st.from,st.to)==0&&Ln(st.from,Gt.to)==0?Gt.to=gh(st):Nt.changes.push(sf(it,st));else{var jt=Pe(gt.done);for((!jt||!jt.ranges)&&Nd(it.sel,gt.done),Nt={changes:[sf(it,st)],generation:gt.generation},gt.done.push(Nt);gt.done.length>gt.undoDepth;)gt.done.shift(),gt.done[0].ranges||gt.done.shift()}gt.done.push(dt),gt.generation=++gt.maxGeneration,gt.lastModTime=gt.lastSelTime=At,gt.lastOp=gt.lastSelOp=ht,gt.lastOrigin=gt.lastSelOrigin=st.origin,Gt||Pi(it,"historyAdded")}function fg(it,st,dt,ht){var gt=st.charAt(0);return gt=="*"||gt=="+"&&dt.ranges.length==ht.ranges.length&&dt.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function mc(it,st,dt,ht){var gt=it.history,At=ht&&ht.origin;dt==gt.lastSelOp||At&>.lastSelOrigin==At&&(gt.lastModTime==gt.lastSelTime&>.lastOrigin==At||fg(it,At,Pe(gt.done),st))?gt.done[gt.done.length-1]=st:Nd(st,gt.done),gt.lastSelTime=+new Date,gt.lastSelOrigin=At,gt.lastSelOp=dt,ht&&ht.clearRedo!==!1&&Dd(gt.undone)}function Nd(it,st){var dt=Pe(st);dt&&dt.ranges&&dt.equals(it)||st.push(it)}function ph(it,st,dt,ht){var gt=st["spans_"+it.id],At=0;it.iter(Math.max(it.first,dt),Math.min(it.first+it.size,ht),function(Nt){Nt.markedSpans&&((gt||(gt=st["spans_"+it.id]={}))[At]=Nt.markedSpans),++At})}function Va(it){if(!it)return null;for(var st,dt=0;dt<it.length;++dt)it[dt].marker.explicitlyCleared?st||(st=it.slice(0,dt)):st&&st.push(it[dt]);return st?st.length?st:null:it}function Pu(it,st){var dt=st["spans_"+it.id];if(!dt)return null;for(var ht=[],gt=0;gt<st.text.length;++gt)ht.push(Va(dt[gt]));return ht}function af(it,st){var dt=Pu(it,st),ht=po(it,st);if(!dt)return ht;if(!ht)return dt;for(var gt=0;gt<dt.length;++gt){var At=dt[gt],Nt=ht[gt];if(At&&Nt)t:for(var Gt=0;Gt<Nt.length;++Gt){for(var jt=Nt[Gt],_t=0;_t<At.length;++_t)if(At[_t].marker==jt.marker)continue t;At.push(jt)}else Nt&&(dt[gt]=Nt)}return dt}function Vu(it,st,dt){for(var ht=[],gt=0;gt<it.length;++gt){var At=it[gt];if(At.ranges){ht.push(dt?Il.prototype.deepCopy.call(At):At);continue}var Nt=At.changes,Gt=[];ht.push({changes:Gt});for(var jt=0;jt<Nt.length;++jt){var _t=Nt[jt],Fe=void 0;if(Gt.push({from:_t.from,to:_t.to,text:_t.text}),st)for(var ie in _t)(Fe=ie.match(/^spans_(\d+)$/))&&Le(st,Number(Fe[1]))>-1&&(Pe(Gt)[ie]=_t[ie],delete _t[ie])}}return ht}function lf(it,st,dt,ht){if(ht){var gt=it.anchor;if(dt){var At=Ln(st,gt)<0;At!=Ln(dt,gt)<0?(gt=st,st=dt):At!=Ln(st,dt)<0&&(st=dt)}return new as(gt,st)}else return new as(dt||st,st)}function uf(it,st,dt,ht,gt){gt==null&&(gt=it.cm&&(it.cm.display.shift||it.extend)),Ia(it,new Il([lf(it.sel.primary(),st,dt,gt)],0),ht)}function Vp(it,st,dt){for(var ht=[],gt=it.cm&&(it.cm.display.shift||it.extend),At=0;At<it.sel.ranges.length;At++)ht[At]=lf(it.sel.ranges[At],st[At],null,gt);var Nt=ql(it.cm,ht,it.sel.primIndex);Ia(it,Nt,dt)}function mh(it,st,dt,ht){var gt=it.sel.ranges.slice(0);gt[st]=dt,Ia(it,ql(it.cm,gt,it.sel.primIndex),ht)}function Qh(it,st,dt,ht){Ia(it,Wu(st,dt),ht)}function Yp(it,st,dt){var ht={ranges:st.ranges,update:function(gt){this.ranges=[];for(var At=0;At<gt.length;At++)this.ranges[At]=new as(Kn(it,gt[At].anchor),Kn(it,gt[At].head))},origin:dt&&dt.origin};return Pi(it,"beforeSelectionChange",it,ht),it.cm&&Pi(it.cm,"beforeSelectionChange",it.cm,ht),ht.ranges!=st.ranges?ql(it.cm,ht.ranges,ht.ranges.length-1):st}function hf(it,st,dt){var ht=it.history.done,gt=Pe(ht);gt&>.ranges?(ht[ht.length-1]=st,Jh(it,st,dt)):Ia(it,st,dt)}function Ia(it,st,dt){Jh(it,st,dt),mc(it,it.sel,it.cm?it.cm.curOp.id:NaN,dt)}function Jh(it,st,dt){(gr(it,"beforeSelectionChange")||it.cm&&gr(it.cm,"beforeSelectionChange"))&&(st=Yp(it,st,dt));var ht=dt&&dt.bias||(Ln(st.primary().head,it.sel.primary().head)<0?-1:1);gg(it,yc(it,st,ht,!0)),!(dt&&dt.scroll===!1)&&it.cm&&ol(it.cm)}function gg(it,st){st.equals(it.sel)||(it.sel=st,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,ei(it.cm)),Yn(it,"cursorActivity",it))}function vc(it){gg(it,yc(it,it.sel,null,!1))}function yc(it,st,dt,ht){for(var gt,At=0;At<st.ranges.length;At++){var Nt=st.ranges[At],Gt=st.ranges.length==it.sel.ranges.length&&it.sel.ranges[At],jt=Sc(it,Nt.anchor,Gt&&Gt.anchor,dt,ht),_t=Sc(it,Nt.head,Gt&&Gt.head,dt,ht);(gt||jt!=Nt.anchor||_t!=Nt.head)&&(gt||(gt=st.ranges.slice(0,At)),gt[At]=new as(jt,_t))}return gt?ql(it.cm,gt,st.primIndex):st}function Yu(it,st,dt,ht,gt){var At=hn(it,st.line);if(At.markedSpans)for(var Nt=0;Nt<At.markedSpans.length;++Nt){var Gt=At.markedSpans[Nt],jt=Gt.marker,_t="selectLeft"in jt?!jt.selectLeft:jt.inclusiveLeft,Fe="selectRight"in jt?!jt.selectRight:jt.inclusiveRight;if((Gt.from==null||(_t?Gt.from<=st.ch:Gt.from<st.ch))&&(Gt.to==null||(Fe?Gt.to>=st.ch:Gt.to>st.ch))){if(gt&&(Pi(jt,"beforeCursorEnter"),jt.explicitlyCleared))if(At.markedSpans){--Nt;continue}else break;if(!jt.atomic)continue;if(dt){var ie=jt.find(ht<0?1:-1),qe=void 0;if((ht<0?Fe:_t)&&(ie=pg(it,ie,-ht,ie&&ie.line==st.line?At:null)),ie&&ie.line==st.line&&(qe=Ln(ie,dt))&&(ht<0?qe<0:qe>0))return Yu(it,ie,st,ht,gt)}var Ze=jt.find(ht<0?-1:1);return(ht<0?_t:Fe)&&(Ze=pg(it,Ze,ht,Ze.line==st.line?At:null)),Ze?Yu(it,Ze,st,ht,gt):null}}return st}function Sc(it,st,dt,ht,gt){var At=ht||1,Nt=Yu(it,st,dt,At,gt)||!gt&&Yu(it,st,dt,At,!0)||Yu(it,st,dt,-At,gt)||!gt&&Yu(it,st,dt,-At,!0);return Nt||(it.cantEdit=!0,be(it.first,0))}function pg(it,st,dt,ht){return dt<0&&st.ch==0?st.line>it.first?Kn(it,be(st.line-1)):null:dt>0&&st.ch==(ht||hn(it,st.line)).text.length?st.line<it.first+it.size-1?be(st.line+1,0):null:new be(st.line,st.ch+dt)}function Xs(it){it.setSelection(be(it.firstLine(),0),be(it.lastLine()),ve)}function xc(it,st,dt){var ht={canceled:!1,from:st.from,to:st.to,text:st.text,origin:st.origin,cancel:function(){return ht.canceled=!0}};return dt&&(ht.update=function(gt,At,Nt,Gt){gt&&(ht.from=Kn(it,gt)),At&&(ht.to=Kn(it,At)),Nt&&(ht.text=Nt),Gt!==void 0&&(ht.origin=Gt)}),Pi(it,"beforeChange",it,ht),it.cm&&Pi(it.cm,"beforeChange",it.cm,ht),ht.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:ht.from,to:ht.to,text:ht.text,origin:ht.origin}}function vh(it,st,dt){if(it.cm){if(!it.cm.curOp)return Dr(it.cm,vh)(it,st,dt);if(it.cm.state.suppressEdits)return}if(!((gr(it,"beforeChange")||it.cm&&gr(it.cm,"beforeChange"))&&(st=xc(it,st,!0),!st))){var ht=Jr&&!dt&&Po(it,st.from,st.to);if(ht)for(var gt=ht.length-1;gt>=0;--gt)qh(it,{from:ht[gt].from,to:ht[gt].to,text:gt?[""]:st.text,origin:st.origin});else qh(it,st)}}function qh(it,st){if(!(st.text.length==1&&st.text[0]==""&&Ln(st.from,st.to)==0)){var dt=hc(it,st);pc(it,st,dt,it.cm?it.cm.curOp.id:NaN),Td(it,st,dt,po(it,st));var ht=[];cu(it,function(gt,At){!At&&Le(ht,gt.history)==-1&&(vg(gt.history,st),ht.push(gt.history)),Td(gt,st,null,po(gt,st))})}}function wc(it,st,dt){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!dt)){for(var gt=it.history,At,Nt=it.sel,Gt=st=="undo"?gt.done:gt.undone,jt=st=="undo"?gt.undone:gt.done,_t=0;_t<Gt.length&&(At=Gt[_t],!(dt?At.ranges&&!At.equals(it.sel):!At.ranges));_t++);if(_t!=Gt.length){for(gt.lastOrigin=gt.lastSelOrigin=null;;)if(At=Gt.pop(),At.ranges){if(Nd(At,jt),dt&&!At.equals(it.sel)){Ia(it,At,{clearRedo:!1});return}Nt=At}else if(ht){Gt.push(At);return}else break;var Fe=[];Nd(Nt,jt),jt.push({changes:Fe,generation:gt.generation}),gt.generation=At.generation||++gt.maxGeneration;for(var ie=gr(it,"beforeChange")||it.cm&&gr(it.cm,"beforeChange"),qe=function(_n){var Si=At.changes[_n];if(Si.origin=st,ie&&!xc(it,Si,!1))return Gt.length=0,{};Fe.push(sf(it,Si));var zi=_n?hc(it,Si):Pe(Gt);Td(it,Si,zi,af(it,Si)),!_n&&it.cm&&it.cm.scrollIntoView({from:Si.from,to:gh(Si)});var hr=[];cu(it,function(Ki,yr){!yr&&Le(hr,Ki.history)==-1&&(vg(Ki.history,Si),hr.push(Ki.history)),Td(Ki,Si,null,af(Ki,Si))})},Ze=At.changes.length-1;Ze>=0;--Ze){var Un=qe(Ze);if(Un)return Un.v}}}}function mg(it,st){if(st!=0&&(it.first+=st,it.sel=new Il(sn(it.sel.ranges,function(gt){return new as(be(gt.anchor.line+st,gt.anchor.ch),be(gt.head.line+st,gt.head.ch))}),it.sel.primIndex),it.cm)){ns(it.cm,it.first,it.first-st,st);for(var dt=it.cm.display,ht=dt.viewFrom;ht<dt.viewTo;ht++)Qr(it.cm,ht,"gutter")}}function Td(it,st,dt,ht){if(it.cm&&!it.cm.curOp)return Dr(it.cm,Td)(it,st,dt,ht);if(st.to.line<it.first){mg(it,st.text.length-1-(st.to.line-st.from.line));return}if(!(st.from.line>it.lastLine())){if(st.from.line<it.first){var gt=st.text.length-1-(it.first-st.from.line);mg(it,gt),st={from:be(it.first,0),to:be(st.to.line+gt,st.to.ch),text:[Pe(st.text)],origin:st.origin}}var At=it.lastLine();st.to.line>At&&(st={from:st.from,to:be(At,hn(it,At).text.length),text:[st.text[0]],origin:st.origin}),st.removed=xi(it,st.from,st.to),dt||(dt=hc(it,st)),it.cm?Zp(it.cm,st,ht):rf(it,st,ht),Jh(it,dt,ve),it.cantEdit&&Sc(it,be(it.firstLine(),0))&&(it.cantEdit=!1)}}function Zp(it,st,dt){var ht=it.doc,gt=it.display,At=st.from,Nt=st.to,Gt=!1,jt=At.line;it.options.lineWrapping||(jt=Xt(Bi(hn(ht,At.line))),ht.iter(jt,Nt.line+1,function(Ze){if(Ze==gt.maxLine)return Gt=!0,!0})),ht.sel.contains(st.from,st.to)>-1&&ei(it),rf(ht,st,dt,es(it)),it.options.lineWrapping||(ht.iter(jt,At.line+st.text.length,function(Ze){var Un=Oe(Ze);Un>gt.maxLineLength&&(gt.maxLine=Ze,gt.maxLineLength=Un,gt.maxLineChanged=!0,Gt=!1)}),Gt&&(it.curOp.updateMaxLine=!0)),br(ht,At.line),Zs(it,400);var _t=st.text.length-(Nt.line-At.line)-1;st.full?ns(it):At.line==Nt.line&&st.text.length==1&&!cg(it.doc,st)?Qr(it,At.line,"text"):ns(it,At.line,Nt.line+1,_t);var Fe=gr(it,"changes"),ie=gr(it,"change");if(ie||Fe){var qe={from:At,to:Nt,text:st.text,removed:st.removed,origin:st.origin};ie&&Yn(it,"change",it,qe),Fe&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(qe)}it.display.selForContextMenu=null}function _h(it,st,dt,ht,gt){var At;ht||(ht=dt),Ln(ht,dt)<0&&(At=[ht,dt],dt=At[0],ht=At[1]),typeof st=="string"&&(st=it.splitLines(st)),vh(it,{from:dt,to:ht,text:st,origin:gt})}function Ol(it,st,dt,ht){dt<it.line?it.line+=ht:st<it.line&&(it.line=st,it.ch=0)}function Up(it,st,dt,ht){for(var gt=0;gt<it.length;++gt){var At=it[gt],Nt=!0;if(At.ranges){At.copied||(At=it[gt]=At.deepCopy(),At.copied=!0);for(var Gt=0;Gt<At.ranges.length;Gt++)Ol(At.ranges[Gt].anchor,st,dt,ht),Ol(At.ranges[Gt].head,st,dt,ht);continue}for(var jt=0;jt<At.changes.length;++jt){var _t=At.changes[jt];if(dt<_t.from.line)_t.from=be(_t.from.line+ht,_t.from.ch),_t.to=be(_t.to.line+ht,_t.to.ch);else if(st<=_t.to.line){Nt=!1;break}}Nt||(it.splice(0,gt+1),gt=0)}}function vg(it,st){var dt=st.from.line,ht=st.to.line,gt=st.text.length-(ht-dt)-1;Up(it.done,dt,ht,gt),Up(it.undone,dt,ht,gt)}function $h(it,st,dt,ht){var gt=st,At=st;return typeof st=="number"?At=hn(it,Bn(it,st)):gt=Xt(st),gt==null?null:(ht(At,gt)&&it.cm&&Qr(it.cm,gt,dt),At)}function Id(it){this.lines=it,this.parent=null;for(var st=0,dt=0;dt<it.length;++dt)it[dt].parent=this,st+=it[dt].height;this.height=st}Id.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,st){for(var dt=it,ht=it+st;dt<ht;++dt){var gt=this.lines[dt];this.height-=gt.height,Dn(gt),Yn(gt,"delete")}this.lines.splice(it,st)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,st,dt){this.height+=dt,this.lines=this.lines.slice(0,it).concat(st).concat(this.lines.slice(it));for(var ht=0;ht<st.length;++ht)st[ht].parent=this},iterN:function(it,st,dt){for(var ht=it+st;it<ht;++it)if(dt(this.lines[it]))return!0}};function Bs(it){this.children=it;for(var st=0,dt=0,ht=0;ht<it.length;++ht){var gt=it[ht];st+=gt.chunkSize(),dt+=gt.height,gt.parent=this}this.size=st,this.height=dt,this.parent=null}Bs.prototype={chunkSize:function(){return this.size},removeInner:function(it,st){this.size-=st;for(var dt=0;dt<this.children.length;++dt){var ht=this.children[dt],gt=ht.chunkSize();if(it<gt){var At=Math.min(st,gt-it),Nt=ht.height;if(ht.removeInner(it,At),this.height-=Nt-ht.height,gt==At&&(this.children.splice(dt--,1),ht.parent=null),(st-=At)==0)break;it=0}else it-=gt}if(this.size-st<25&&(this.children.length>1||!(this.children[0]instanceof Id))){var Gt=[];this.collapse(Gt),this.children=[new Id(Gt)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st<this.children.length;++st)this.children[st].collapse(it)},insertInner:function(it,st,dt){this.size+=st.length,this.height+=dt;for(var ht=0;ht<this.children.length;++ht){var gt=this.children[ht],At=gt.chunkSize();if(it<=At){if(gt.insertInner(it,st,dt),gt.lines&>.lines.length>50){for(var Nt=gt.lines.length%25+25,Gt=Nt;Gt<gt.lines.length;){var jt=new Id(gt.lines.slice(Gt,Gt+=25));gt.height-=jt.height,this.children.splice(++ht,0,jt),jt.parent=this}gt.lines=gt.lines.slice(0,Nt),this.maybeSpill()}break}it-=At}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var st=it.children.splice(it.children.length-5,5),dt=new Bs(st);if(it.parent){it.size-=dt.size,it.height-=dt.height;var gt=Le(it.parent.children,it);it.parent.children.splice(gt+1,0,dt)}else{var ht=new Bs(it.children);ht.parent=it,it.children=[ht,dt],it=ht}dt.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,st,dt){for(var ht=0;ht<this.children.length;++ht){var gt=this.children[ht],At=gt.chunkSize();if(it<At){var Nt=Math.min(st,At-it);if(gt.iterN(it,Nt,dt))return!0;if((st-=Nt)==0)break;it=0}else it-=At}}};var Zu=function(it,st,dt){if(dt)for(var ht in dt)dt.hasOwnProperty(ht)&&(this[ht]=dt[ht]);this.doc=it,this.node=st};Zu.prototype.clear=function(){var it=this.doc.cm,st=this.line.widgets,dt=this.line,ht=Xt(dt);if(!(ht==null||!st)){for(var gt=0;gt<st.length;++gt)st[gt]==this&&st.splice(gt--,1);st.length||(dt.widgets=null);var At=Er(this);Pn(dt,Math.max(0,dt.height-At)),it&&(Cr(it,function(){Xp(it,dt,-At),Qr(it,ht,"widget")}),Yn(it,"lineWidgetCleared",it,this,ht))}},Zu.prototype.changed=function(){var it=this,st=this.height,dt=this.doc.cm,ht=this.line;this.height=null;var gt=Er(this)-st;gt&&(Yt(this.doc,ht)||Pn(ht,ht.height+gt),dt&&Cr(dt,function(){dt.curOp.forceUpdate=!0,Xp(dt,ht,gt),Yn(dt,"lineWidgetChanged",dt,it,Xt(ht))}))},dr(Zu);function Xp(it,st,dt){ge(st)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&ah(it,dt)}function df(it,st,dt,ht){var gt=new Zu(it,dt,ht),At=it.cm;return At&>.noHScroll&&(At.display.alignWidgets=!0),$h(it,st,"widget",function(Nt){var Gt=Nt.widgets||(Nt.widgets=[]);if(gt.insertAt==null?Gt.push(gt):Gt.splice(Math.min(Gt.length-1,Math.max(0,gt.insertAt)),0,gt),gt.line=Nt,At&&!Yt(it,Nt)){var jt=ge(Nt)<it.scrollTop;Pn(Nt,Nt.height+Er(gt)),jt&&ah(At,gt.height),At.curOp.forceUpdate=!0}return!0}),At&&Yn(At,"lineWidgetAdded",At,gt,typeof st=="number"?st:Xt(st)),gt}var Kp=0,xe=function(it,st){this.lines=[],this.type=st,this.doc=it,this.id=++Kp};xe.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,st=it&&!it.curOp;if(st&&qr(it),gr(this,"clear")){var dt=this.find();dt&&Yn(this,"clear",dt.from,dt.to)}for(var ht=null,gt=null,At=0;At<this.lines.length;++At){var Nt=this.lines[At],Gt=Uo(Nt.markedSpans,this);it&&!this.collapsed?Qr(it,Xt(Nt),"text"):it&&(Gt.to!=null&&(gt=Xt(Nt)),Gt.from!=null&&(ht=Xt(Nt))),Nt.markedSpans=no(Nt.markedSpans,Gt),Gt.from==null&&this.collapsed&&!Yt(this.doc,Nt)&&it&&Pn(Nt,ys(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var jt=0;jt<this.lines.length;++jt){var _t=Bi(this.lines[jt]),Fe=Oe(_t);Fe>it.display.maxLineLength&&(it.display.maxLine=_t,it.display.maxLineLength=Fe,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&ns(it,ht,gt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&vc(it.doc)),it&&Yn(it,"markerCleared",it,this,ht,gt),st&&$s(it),this.parent&&this.parent.clear()}},xe.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var dt,ht,gt=0;gt<this.lines.length;++gt){var At=this.lines[gt],Nt=Uo(At.markedSpans,this);if(Nt.from!=null&&(dt=be(st?At:Xt(At),Nt.from),it==-1))return dt;if(Nt.to!=null&&(ht=be(st?At:Xt(At),Nt.to),it==1))return ht}return dt&&{from:dt,to:ht}},xe.prototype.changed=function(){var it=this,st=this.find(-1,!0),dt=this,ht=this.doc.cm;!st||!ht||Cr(ht,function(){var gt=st.line,At=Xt(st.line),Nt=Ko(ht,At);if(Nt&&(ws(Nt),ht.curOp.selectionChanged=ht.curOp.forceUpdate=!0),ht.curOp.updateMaxLine=!0,!Yt(dt.doc,gt)&&dt.height!=null){var Gt=dt.height;dt.height=null;var jt=Er(dt)-Gt;jt&&Pn(gt,gt.height+jt)}Yn(ht,"markerChanged",ht,it)})},xe.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(!st.maybeHiddenMarkers||Le(st.maybeHiddenMarkers,this)==-1)&&(st.maybeUnhiddenMarkers||(st.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},xe.prototype.detachLine=function(it){if(this.lines.splice(Le(this.lines,it),1),!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(st.maybeHiddenMarkers||(st.maybeHiddenMarkers=[])).push(this)}},dr(xe);function td(it,st,dt,ht,gt){if(ht&&ht.shared)return Qp(it,st,dt,ht,gt);if(it.cm&&!it.cm.curOp)return Dr(it.cm,td)(it,st,dt,ht,gt);var At=new xe(it,gt),Nt=Ln(st,dt);if(ht&&fn(ht,At,!1),Nt>0||Nt==0&&At.clearWhenEmpty!==!1)return At;if(At.replacedWith&&(At.collapsed=!0,At.widgetNode=Me("span",[At.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||At.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(At.widgetNode.insertLeft=!0)),At.collapsed){if(xr(it,st.line,st,dt,At)||st.line!=dt.line&&xr(it,dt.line,st,dt,At))throw new Error("Inserting collapsed marker partially overlapping an existing one");en()}At.addToHistory&&pc(it,{from:st,to:dt,origin:"markText"},it.sel,NaN);var Gt=st.line,jt=it.cm,_t;if(it.iter(Gt,dt.line+1,function(ie){jt&&At.collapsed&&!jt.options.lineWrapping&&Bi(ie)==jt.display.maxLine&&(_t=!0),At.collapsed&&Gt!=st.line&&Pn(ie,0),Zo(ie,new zr(At,Gt==st.line?st.ch:null,Gt==dt.line?dt.ch:null)),++Gt}),At.collapsed&&it.iter(st.line,dt.line+1,function(ie){Yt(it,ie)&&Pn(ie,0)}),At.clearOnEnter&&Wn(At,"beforeCursorEnter",function(){return At.clear()}),At.readOnly&&(fo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),At.collapsed&&(At.id=++Kp,At.atomic=!0),jt){if(_t&&(jt.curOp.updateMaxLine=!0),At.collapsed)ns(jt,st.line,dt.line+1);else if(At.className||At.startStyle||At.endStyle||At.css||At.attributes||At.title)for(var Fe=st.line;Fe<=dt.line;Fe++)Qr(jt,Fe,"text");At.atomic&&vc(jt.doc),Yn(jt,"markerAdded",jt,At)}return At}var Cu=function(it,st){this.markers=it,this.primary=st;for(var dt=0;dt<it.length;++dt)it[dt].parent=this};Cu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Yn(this,"clear")}},Cu.prototype.find=function(it,st){return this.primary.find(it,st)},dr(Cu);function Qp(it,st,dt,ht,gt){ht=fn(ht),ht.shared=!1;var At=[td(it,st,dt,ht,gt)],Nt=At[0],Gt=ht.widgetNode;return cu(it,function(jt){Gt&&(ht.widgetNode=Gt.cloneNode(!0)),At.push(td(jt,Kn(jt,st),Kn(jt,dt),ht,gt));for(var _t=0;_t<jt.linked.length;++_t)if(jt.linked[_t].isParent)return;Nt=Pe(At)}),new Cu(At,Nt)}function yg(it){return it.findMarks(be(it.first,0),it.clipPos(be(it.lastLine())),function(st){return st.parent})}function Jp(it,st){for(var dt=0;dt<st.length;dt++){var ht=st[dt],gt=ht.find(),At=it.clipPos(gt.from),Nt=it.clipPos(gt.to);if(Ln(At,Nt)){var Gt=td(it,At,Nt,ht.primary,ht.primary.type);ht.markers.push(Gt),Gt.parent=ht}}}function Sg(it){for(var st=function(ht){var gt=it[ht],At=[gt.primary.doc];cu(gt.primary.doc,function(jt){return At.push(jt)});for(var Nt=0;Nt<gt.markers.length;Nt++){var Gt=gt.markers[Nt];Le(At,Gt.doc)==-1&&(Gt.parent=null,gt.markers.splice(Nt--,1))}},dt=0;dt<it.length;dt++)st(dt)}var tv=0,Fa=function(it,st,dt,ht,gt){if(!(this instanceof Fa))return new Fa(it,st,dt,ht,gt);dt==null&&(dt=0),Bs.call(this,[new Id([new Je("",null)])]),this.first=dt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=dt;var At=be(dt,0);this.sel=Wu(At),this.history=new Bd(null),this.id=++tv,this.modeOption=st,this.lineSep=ht,this.direction=gt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),rf(this,{from:At,to:At,text:it}),Ia(this,Wu(At),ve)};Fa.prototype=Ct(Bs.prototype,{constructor:Fa,iter:function(it,st,dt){dt?this.iterN(it-this.first,st-it,dt):this.iterN(this.first,this.first+this.size,it)},insert:function(it,st){for(var dt=0,ht=0;ht<st.length;++ht)dt+=st[ht].height;this.insertInner(it-this.first,st,dt)},remove:function(it,st){this.removeInner(it-this.first,st)},getValue:function(it){var st=_i(this,this.first,this.first+this.size);return it===!1?st:st.join(it||this.lineSeparator())},setValue:zo(function(it){var st=be(this.first,0),dt=this.first+this.size-1;vh(this,{from:st,to:be(dt,hn(this,dt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&uu(this.cm,0,0),Ia(this,Wu(st),ve)}),replaceRange:function(it,st,dt,ht){st=Kn(this,st),dt=dt?Kn(this,dt):st,_h(this,it,st,dt,ht)},getRange:function(it,st,dt){var ht=xi(this,Kn(this,it),Kn(this,st));return dt===!1?ht:ht.join(dt||this.lineSeparator())},getLine:function(it){var st=this.getLineHandle(it);return st&&st.text},getLineHandle:function(it){if(Mn(this,it))return hn(this,it)},getLineNumber:function(it){return Xt(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=hn(this,it)),Bi(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return Kn(this,it)},getCursor:function(it){var st=this.sel.primary(),dt;return it==null||it=="head"?dt=st.head:it=="anchor"?dt=st.anchor:it=="end"||it=="to"||it===!1?dt=st.to():dt=st.from(),dt},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:zo(function(it,st,dt){Qh(this,Kn(this,typeof it=="number"?be(it,st||0):it),null,dt)}),setSelection:zo(function(it,st,dt){Qh(this,Kn(this,it),Kn(this,st||it),dt)}),extendSelection:zo(function(it,st,dt){uf(this,Kn(this,it),st&&Kn(this,st),dt)}),extendSelections:zo(function(it,st){Vp(this,Hi(this,it),st)}),extendSelectionsBy:zo(function(it,st){var dt=sn(this.sel.ranges,it);Vp(this,Hi(this,dt),st)}),setSelections:zo(function(it,st,dt){if(it.length){for(var ht=[],gt=0;gt<it.length;gt++)ht[gt]=new as(Kn(this,it[gt].anchor),Kn(this,it[gt].head));st==null&&(st=Math.min(it.length-1,this.sel.primIndex)),Ia(this,ql(this.cm,ht,st),dt)}}),addSelection:zo(function(it,st,dt){var ht=this.sel.ranges.slice(0);ht.push(new as(Kn(this,it),Kn(this,st||it))),Ia(this,ql(this.cm,ht,ht.length-1),dt)}),getSelection:function(it){for(var st=this.sel.ranges,dt,ht=0;ht<st.length;ht++){var gt=xi(this,st[ht].from(),st[ht].to());dt=dt?dt.concat(gt):gt}return it===!1?dt:dt.join(it||this.lineSeparator())},getSelections:function(it){for(var st=[],dt=this.sel.ranges,ht=0;ht<dt.length;ht++){var gt=xi(this,dt[ht].from(),dt[ht].to());it!==!1&&(gt=gt.join(it||this.lineSeparator())),st[ht]=gt}return st},replaceSelection:function(it,st,dt){for(var ht=[],gt=0;gt<this.sel.ranges.length;gt++)ht[gt]=it;this.replaceSelections(ht,st,dt||"+input")},replaceSelections:zo(function(it,st,dt){for(var ht=[],gt=this.sel,At=0;At<gt.ranges.length;At++){var Nt=gt.ranges[At];ht[At]={from:Nt.from(),to:Nt.to(),text:this.splitLines(it[At]),origin:dt}}for(var Gt=st&&st!="end"&&dc(this,ht,st),jt=ht.length-1;jt>=0;jt--)vh(this,ht[jt]);Gt?hf(this,Gt):this.cm&&ol(this.cm)}),undo:zo(function(){wc(this,"undo")}),redo:zo(function(){wc(this,"redo")}),undoSelection:zo(function(){wc(this,"undo",!0)}),redoSelection:zo(function(){wc(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,dt=0,ht=0;ht<it.done.length;ht++)it.done[ht].ranges||++st;for(var gt=0;gt<it.undone.length;gt++)it.undone[gt].ranges||++dt;return{undo:st,redo:dt}},clearHistory:function(){var it=this;this.history=new Bd(this.history.maxGeneration),cu(this,function(st){return st.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:Vu(this.history.done),undone:Vu(this.history.undone)}},setHistory:function(it){var st=this.history=new Bd(this.history.maxGeneration);st.done=Vu(it.done.slice(0),null,!0),st.undone=Vu(it.undone.slice(0),null,!0)},setGutterMarker:zo(function(it,st,dt){return $h(this,it,"gutter",function(ht){var gt=ht.gutterMarkers||(ht.gutterMarkers={});return gt[st]=dt,!dt&&Et(gt)&&(ht.gutterMarkers=null),!0})}),clearGutter:zo(function(it){var st=this;this.iter(function(dt){dt.gutterMarkers&&dt.gutterMarkers[it]&&$h(st,dt,"gutter",function(){return dt.gutterMarkers[it]=null,Et(dt.gutterMarkers)&&(dt.gutterMarkers=null),!0})})}),lineInfo:function(it){var st;if(typeof it=="number"){if(!Mn(this,it)||(st=it,it=hn(this,it),!it))return null}else if(st=Xt(it),st==null)return null;return{line:st,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:zo(function(it,st,dt){return $h(this,it,st=="gutter"?"gutter":"class",function(ht){var gt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass";if(!ht[gt])ht[gt]=dt;else{if(Vt(dt).test(ht[gt]))return!1;ht[gt]+=" "+dt}return!0})}),removeLineClass:zo(function(it,st,dt){return $h(this,it,st=="gutter"?"gutter":"class",function(ht){var gt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass",At=ht[gt];if(At)if(dt==null)ht[gt]=null;else{var Nt=At.match(Vt(dt));if(!Nt)return!1;var Gt=Nt.index+Nt[0].length;ht[gt]=At.slice(0,Nt.index)+(!Nt.index||Gt==At.length?"":" ")+At.slice(Gt)||null}else return!1;return!0})}),addLineWidget:zo(function(it,st,dt){return df(this,it,st,dt)}),removeLineWidget:function(it){it.clear()},markText:function(it,st,dt){return td(this,Kn(this,it),Kn(this,st),dt,dt&&dt.type||"range")},setBookmark:function(it,st){var dt={replacedWith:st&&(st.nodeType==null?st.widget:st),insertLeft:st&&st.insertLeft,clearWhenEmpty:!1,shared:st&&st.shared,handleMouseEvents:st&&st.handleMouseEvents};return it=Kn(this,it),td(this,it,it,dt,"bookmark")},findMarksAt:function(it){it=Kn(this,it);var st=[],dt=hn(this,it.line).markedSpans;if(dt)for(var ht=0;ht<dt.length;++ht){var gt=dt[ht];(gt.from==null||gt.from<=it.ch)&&(gt.to==null||gt.to>=it.ch)&&st.push(gt.marker.parent||gt.marker)}return st},findMarks:function(it,st,dt){it=Kn(this,it),st=Kn(this,st);var ht=[],gt=it.line;return this.iter(it.line,st.line+1,function(At){var Nt=At.markedSpans;if(Nt)for(var Gt=0;Gt<Nt.length;Gt++){var jt=Nt[Gt];!(jt.to!=null&>==it.line&&it.ch>=jt.to||jt.from==null&>!=it.line||jt.from!=null&>==st.line&&jt.from>=st.ch)&&(!dt||dt(jt.marker))&&ht.push(jt.marker.parent||jt.marker)}++gt}),ht},getAllMarks:function(){var it=[];return this.iter(function(st){var dt=st.markedSpans;if(dt)for(var ht=0;ht<dt.length;++ht)dt[ht].from!=null&&it.push(dt[ht].marker)}),it},posFromIndex:function(it){var st,dt=this.first,ht=this.lineSeparator().length;return this.iter(function(gt){var At=gt.text.length+ht;if(At>it)return st=it,!0;it-=At,++dt}),Kn(this,be(dt,st))},indexFromPos:function(it){it=Kn(this,it);var st=it.ch;if(it.line<this.first||it.ch<0)return 0;var dt=this.lineSeparator().length;return this.iter(this.first,it.line,function(ht){st+=ht.text.length+dt}),st},copy:function(it){var st=new Fa(_i(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return st.scrollTop=this.scrollTop,st.scrollLeft=this.scrollLeft,st.sel=this.sel,st.extend=!1,it&&(st.history.undoDepth=this.history.undoDepth,st.setHistory(this.getHistory())),st},linkedDoc:function(it){it||(it={});var st=this.first,dt=this.first+this.size;it.from!=null&&it.from>st&&(st=it.from),it.to!=null&&it.to<dt&&(dt=it.to);var ht=new Fa(_i(this,st,dt),it.mode||this.modeOption,st,this.lineSep,this.direction);return it.sharedHist&&(ht.history=this.history),(this.linked||(this.linked=[])).push({doc:ht,sharedHist:it.sharedHist}),ht.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Jp(ht,yg(this)),ht},unlinkDoc:function(it){if(it instanceof Qo&&(it=it.doc),this.linked)for(var st=0;st<this.linked.length;++st){var dt=this.linked[st];if(dt.doc==it){this.linked.splice(st,1),it.unlinkDoc(this),Sg(yg(this));break}}if(it.history==this.history){var ht=[it.id];cu(it,function(gt){return ht.push(gt.id)},!0),it.history=new Bd(null),it.history.done=Vu(this.history.done,ht),it.history.undone=Vu(this.history.undone,ht)}},iterLinkedDocs:function(it){cu(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):lo(it)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:zo(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(st){return st.order=null}),this.cm&&$0(this.cm))})}),Fa.prototype.eachLine=Fa.prototype.iter;var Pc=0;function xg(it){var st=this;if($p(st),!(An(st,it)||Mr(st.display,it))){Sr(it),ce&&(Pc=+new Date);var dt=Ys(st,it,!0),ht=it.dataTransfer.files;if(!(!dt||st.isReadOnly()))if(ht&&ht.length&&window.FileReader&&window.File)for(var gt=ht.length,At=Array(gt),Nt=0,Gt=function(){++Nt==gt&&Dr(st,function(){dt=Kn(st.doc,dt);var Ze={from:dt,to:dt,text:st.doc.splitLines(At.filter(function(Un){return Un!=null}).join(st.doc.lineSeparator())),origin:"paste"};vh(st.doc,Ze),hf(st.doc,Wu(Kn(st.doc,dt),Kn(st.doc,gh(Ze))))})()},jt=function(Ze,Un){if(st.options.allowDropFileTypes&&Le(st.options.allowDropFileTypes,Ze.type)==-1){Gt();return}var _n=new FileReader;_n.onerror=function(){return Gt()},_n.onload=function(){var Si=_n.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Si)){Gt();return}At[Un]=Si,Gt()},_n.readAsText(Ze)},_t=0;_t<ht.length;_t++)jt(ht[_t],_t);else{if(st.state.draggingText&&st.doc.sel.contains(dt)>-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var Fe=it.dataTransfer.getData("Text");if(Fe){var ie;if(st.state.draggingText&&!st.state.draggingText.copy&&(ie=st.listSelections()),Jh(st.doc,Wu(dt,dt)),ie)for(var qe=0;qe<ie.length;++qe)_h(st.doc,"",ie[qe].anchor,ie[qe].head,"drag");st.replaceSelection(Fe,"around","paste"),st.display.input.focus()}}catch(Ze){}}}}function qp(it,st){if(ce&&(!it.state.draggingText||+new Date-Pc<100)){jo(st);return}if(!(An(it,st)||Mr(it.display,st))&&(st.dataTransfer.setData("Text",it.getSelection()),st.dataTransfer.effectAllowed="copyMove",st.dataTransfer.setDragImage&&!je)){var dt=Jt("img",null,null,"position: fixed; left: 0; top: 0;");dt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Bt&&(dt.width=dt.height=1,it.display.wrapper.appendChild(dt),dt._top=dt.offsetTop),st.dataTransfer.setDragImage(dt,0,0),Bt&&dt.parentNode.removeChild(dt)}}function _p(it,st){var dt=Ys(it,st);if(dt){var ht=document.createDocumentFragment();Lo(it,dt,ht),it.display.dragCursor||(it.display.dragCursor=Jt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),qt(it.display.dragCursor,ht)}}function $p(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function tm(it){if(document.getElementsByClassName){for(var st=document.getElementsByClassName("CodeMirror"),dt=[],ht=0;ht<st.length;ht++){var gt=st[ht].CodeMirror;gt&&dt.push(gt)}dt.length&&dt[0].operation(function(){for(var At=0;At<dt.length;At++)it(dt[At])})}}var wg=!1;function Cl(){wg||(Od(),wg=!0)}function Od(){var it;Wn(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,tm(Pg)},100))}),Wn(window,"blur",function(){return tm(Dl)})}function Pg(it){var st=it.display;st.cachedCharWidth=st.cachedTextHeight=st.cachedPaddingH=null,st.scrollbarsClipped=!1,it.setSize()}for(var Au={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Cc=0;Cc<10;Cc++)Au[Cc+48]=Au[Cc+96]=String(Cc);for(var cf=65;cf<=90;cf++)Au[cf]=String.fromCharCode(cf);for(var Ac=1;Ac<=12;Ac++)Au[Ac+111]=Au[Ac+63235]="F"+Ac;var ll={};ll.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ll.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ll.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ll.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ll.default=ct?ll.macDefault:ll.pcDefault;function Cg(it){var st=it.split(/-(?!$)/);it=st[st.length-1];for(var dt,ht,gt,At,Nt=0;Nt<st.length-1;Nt++){var Gt=st[Nt];if(/^(cmd|meta|m)$/i.test(Gt))At=!0;else if(/^a(lt)?$/i.test(Gt))dt=!0;else if(/^(c|ctrl|control)$/i.test(Gt))ht=!0;else if(/^s(hift)?$/i.test(Gt))gt=!0;else throw new Error("Unrecognized modifier name: "+Gt)}return dt&&(it="Alt-"+it),ht&&(it="Ctrl-"+it),At&&(it="Cmd-"+it),gt&&(it="Shift-"+it),it}function Ag(it){var st={};for(var dt in it)if(it.hasOwnProperty(dt)){var ht=it[dt];if(/^(name|fallthrough|(de|at)tach)$/.test(dt))continue;if(ht=="..."){delete it[dt];continue}for(var gt=sn(dt.split(" "),Cg),At=0;At<gt.length;At++){var Nt=void 0,Gt=void 0;At==gt.length-1?(Gt=gt.join(" "),Nt=ht):(Gt=gt.slice(0,At+1).join(" "),Nt="...");var jt=st[Gt];if(!jt)st[Gt]=Nt;else if(jt!=Nt)throw new Error("Inconsistent bindings for "+Gt)}delete it[dt]}for(var _t in st)it[_t]=st[_t];return it}function Rl(it,st,dt,ht){st=ed(st);var gt=st.call?st.call(it,ht):st[it];if(gt===!1)return"nothing";if(gt==="...")return"multi";if(gt!=null&&dt(gt))return"handled";if(st.fallthrough){if(Object.prototype.toString.call(st.fallthrough)!="[object Array]")return Rl(it,st.fallthrough,dt,ht);for(var At=0;At<st.fallthrough.length;At++){var Nt=Rl(it,st.fallthrough[At],dt,ht);if(Nt)return Nt}}}function Rd(it){var st=typeof it=="string"?it:Au[it.keyCode];return st=="Ctrl"||st=="Alt"||st=="Shift"||st=="Mod"}function Lg(it,st,dt){var ht=it;return st.altKey&&ht!="Alt"&&(it="Alt-"+it),(Pt?st.metaKey:st.ctrlKey)&&ht!="Ctrl"&&(it="Ctrl-"+it),(Pt?st.ctrlKey:st.metaKey)&&ht!="Mod"&&(it="Cmd-"+it),!dt&&st.shiftKey&&ht!="Shift"&&(it="Shift-"+it),it}function em(it,st){if(Bt&&it.keyCode==34&&it.char)return!1;var dt=Au[it.keyCode];return dt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(dt=it.code),Lg(dt,it,st))}function ed(it){return typeof it=="string"?ll[it]:it}function ul(it,st){for(var dt=it.doc.sel.ranges,ht=[],gt=0;gt<dt.length;gt++){for(var At=st(dt[gt]);ht.length&&Ln(At.from,Pe(ht).to)<=0;){var Nt=ht.pop();if(Ln(Nt.from,At.from)<0){At.from=Nt.from;break}}ht.push(At)}Cr(it,function(){for(var Gt=ht.length-1;Gt>=0;Gt--)_h(it.doc,"",ht[Gt].from,ht[Gt].to,"+delete");ol(it)})}function Eg(it,st,dt){var ht=Ue(it.text,st+dt,dt);return ht<0||ht>it.text.length?null:ht}function Ks(it,st,dt){var ht=Eg(it,st.ch,dt);return ht==null?null:new be(st.line,ht,dt<0?"after":"before")}function Lc(it,st,dt,ht,gt){if(it){st.doc.direction=="rtl"&&(gt=-gt);var At=hi(dt,st.doc.direction);if(At){var Nt=gt<0?Pe(At):At[0],Gt=gt<0==(Nt.level==1),jt=Gt?"after":"before",_t;if(Nt.level>0||st.doc.direction=="rtl"){var Fe=uo(st,dt);_t=gt<0?dt.text.length-1:0;var ie=To(st,Fe,_t).top;_t=jn(function(qe){return To(st,Fe,qe).top==ie},gt<0==(Nt.level==1)?Nt.from:Nt.to-1,_t),jt=="before"&&(_t=Eg(dt,_t,1))}else _t=gt<0?Nt.to:Nt.from;return new be(ht,_t,jt)}}return new be(ht,gt<0?dt.text.length:0,gt<0?"before":"after")}function ff(it,st,dt,ht){var gt=hi(st,it.doc.direction);if(!gt)return Ks(st,dt,ht);dt.ch>=st.text.length?(dt.ch=st.text.length,dt.sticky="before"):dt.ch<=0&&(dt.ch=0,dt.sticky="after");var At=ri(gt,dt.ch,dt.sticky),Nt=gt[At];if(it.doc.direction=="ltr"&&Nt.level%2==0&&(ht>0?Nt.to>dt.ch:Nt.from<dt.ch))return Ks(st,dt,ht);var Gt=function(zi,hr){return Eg(st,zi instanceof be?zi.ch:zi,hr)},jt,_t=function(zi){return it.options.lineWrapping?(jt=jt||uo(it,st),Ao(it,st,jt,zi)):{begin:0,end:st.text.length}},Fe=_t(dt.sticky=="before"?Gt(dt,-1):dt.ch);if(it.doc.direction=="rtl"||Nt.level==1){var ie=Nt.level==1==ht<0,qe=Gt(dt,ie?1:-1);if(qe!=null&&(ie?qe<=Nt.to&&qe<=Fe.end:qe>=Nt.from&&qe>=Fe.begin)){var Ze=ie?"before":"after";return new be(dt.line,qe,Ze)}}var Un=function(zi,hr,Ki){for(var yr=function(As,la){return la?new be(dt.line,Gt(As,1),"before"):new be(dt.line,As,"after")};zi>=0&&zi<gt.length;zi+=hr){var Zr=gt[zi],Zi=hr>0==(Zr.level!=1),wo=Zi?Ki.begin:Gt(Ki.end,-1);if(Zr.from<=wo&&wo<Zr.to||(wo=Zi?Zr.from:Gt(Zr.to,-1),Ki.begin<=wo&&wo<Ki.end))return yr(wo,Zi)}},_n=Un(At+ht,ht,Fe);if(_n)return _n;var Si=ht>0?Fe.end:Gt(Fe.begin,-1);return Si!=null&&!(ht>0&&Si==st.text.length)&&(_n=Un(ht>0?0:gt.length-1,ht,_t(Si)),_n)?_n:null}var yh={selectAll:Xs,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),ve)},killLine:function(it){return ul(it,function(st){if(st.empty()){var dt=hn(it.doc,st.head.line).text.length;return st.head.ch==dt&&st.head.line<it.lastLine()?{from:st.head,to:be(st.head.line+1,0)}:{from:st.head,to:be(st.head.line,dt)}}else return{from:st.from(),to:st.to()}})},deleteLine:function(it){return ul(it,function(st){return{from:be(st.from().line,0),to:Kn(it.doc,be(st.to().line+1,0))}})},delLineLeft:function(it){return ul(it,function(st){return{from:be(st.from().line,0),to:st.from()}})},delWrappedLineLeft:function(it){return ul(it,function(st){var dt=it.charCoords(st.head,"div").top+5,ht=it.coordsChar({left:0,top:dt},"div");return{from:ht,to:st.from()}})},delWrappedLineRight:function(it){return ul(it,function(st){var dt=it.charCoords(st.head,"div").top+5,ht=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:dt},"div");return{from:st.from(),to:ht}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(be(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(be(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(st){return zd(it,st.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(st){return Mg(it,st.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(st){return jd(it,st.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(st){var dt=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:dt},"div")},ke)},goLineLeft:function(it){return it.extendSelectionsBy(function(st){var dt=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:0,top:dt},"div")},ke)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(st){var dt=it.cursorCoords(st.head,"div").top+5,ht=it.coordsChar({left:0,top:dt},"div");return ht.ch<it.getLine(ht.line).search(/\S/)?Mg(it,st.head):ht},ke)},goLineUp:function(it){return it.moveV(-1,"line")},goLineDown:function(it){return it.moveV(1,"line")},goPageUp:function(it){return it.moveV(-1,"page")},goPageDown:function(it){return it.moveV(1,"page")},goCharLeft:function(it){return it.moveH(-1,"char")},goCharRight:function(it){return it.moveH(1,"char")},goColumnLeft:function(it){return it.moveH(-1,"column")},goColumnRight:function(it){return it.moveH(1,"column")},goWordLeft:function(it){return it.moveH(-1,"word")},goGroupRight:function(it){return it.moveH(1,"group")},goGroupLeft:function(it){return it.moveH(-1,"group")},goWordRight:function(it){return it.moveH(1,"word")},delCharBefore:function(it){return it.deleteH(-1,"codepoint")},delCharAfter:function(it){return it.deleteH(1,"char")},delWordBefore:function(it){return it.deleteH(-1,"word")},delWordAfter:function(it){return it.deleteH(1,"word")},delGroupBefore:function(it){return it.deleteH(-1,"group")},delGroupAfter:function(it){return it.deleteH(1,"group")},indentAuto:function(it){return it.indentSelection("smart")},indentMore:function(it){return it.indentSelection("add")},indentLess:function(it){return it.indentSelection("subtract")},insertTab:function(it){return it.replaceSelection(" ")},insertSoftTab:function(it){for(var st=[],dt=it.listSelections(),ht=it.options.tabSize,gt=0;gt<dt.length;gt++){var At=dt[gt].from(),Nt=te(it.getLine(At.line),At.ch,ht);st.push(ae(ht-Nt%ht))}it.replaceSelections(st)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return Cr(it,function(){for(var st=it.listSelections(),dt=[],ht=0;ht<st.length;ht++)if(st[ht].empty()){var gt=st[ht].head,At=hn(it.doc,gt.line).text;if(At){if(gt.ch==At.length&&(gt=new be(gt.line,gt.ch-1)),gt.ch>0)gt=new be(gt.line,gt.ch+1),it.replaceRange(At.charAt(gt.ch-1)+At.charAt(gt.ch-2),be(gt.line,gt.ch-2),gt,"+transpose");else if(gt.line>it.doc.first){var Nt=hn(it.doc,gt.line-1).text;Nt&&(gt=new be(gt.line,1),it.replaceRange(At.charAt(0)+it.doc.lineSeparator()+Nt.charAt(Nt.length-1),be(gt.line-1,Nt.length-1),gt,"+transpose"))}}dt.push(new as(gt,gt))}it.setSelections(dt)})},newlineAndIndent:function(it){return Cr(it,function(){for(var st=it.listSelections(),dt=st.length-1;dt>=0;dt--)it.replaceRange(it.doc.lineSeparator(),st[dt].anchor,st[dt].head,"+input");st=it.listSelections();for(var ht=0;ht<st.length;ht++)it.indentLine(st[ht].from().line,null,!0);ol(it)})},openLine:function(it){return it.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function zd(it,st){var dt=hn(it.doc,st),ht=Bi(dt);return ht!=dt&&(st=Xt(ht)),Lc(!0,it,ht,st,1)}function jd(it,st){var dt=hn(it.doc,st),ht=ar(dt);return ht!=dt&&(st=Xt(ht)),Lc(!0,it,dt,st,-1)}function Mg(it,st){var dt=zd(it,st.line),ht=hn(it.doc,dt.line),gt=hi(ht,it.doc.direction);if(!gt||gt[0].level==0){var At=Math.max(dt.ch,ht.text.search(/\S/)),Nt=st.line==dt.line&&st.ch<=At&&st.ch;return be(dt.line,Nt?0:At,dt.sticky)}return dt}function Hd(it,st,dt){if(typeof st=="string"&&(st=yh[st],!st))return!1;it.display.input.ensurePolled();var ht=it.display.shift,gt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),dt&&(it.display.shift=!1),gt=st(it)!=_e}finally{it.display.shift=ht,it.state.suppressEdits=!1}return gt}function Fg(it,st,dt){for(var ht=0;ht<it.state.keyMaps.length;ht++){var gt=Rl(st,it.state.keyMaps[ht],dt,it);if(gt)return gt}return it.options.extraKeys&&Rl(st,it.options.extraKeys,dt,it)||Rl(st,it.options.keyMap,dt,it)}var Lu=new Ot;function nd(it,st,dt,ht){var gt=it.state.keySeq;if(gt){if(Rd(st))return"handled";if(/\'$/.test(st)?it.state.keySeq=null:Lu.set(50,function(){it.state.keySeq==gt&&(it.state.keySeq=null,it.display.input.reset())}),gf(it,gt+" "+st,dt,ht))return!0}return gf(it,st,dt,ht)}function gf(it,st,dt,ht){var gt=Fg(it,st,ht);return gt=="multi"&&(it.state.keySeq=st),gt=="handled"&&Yn(it,"keyHandled",it,st,dt),(gt=="handled"||gt=="multi")&&(Sr(dt),Io(it)),!!gt}function pf(it,st){var dt=em(st,!0);return dt?st.shiftKey&&!it.state.keySeq?nd(it,"Shift-"+dt,st,function(ht){return Hd(it,ht,!0)})||nd(it,dt,st,function(ht){if(typeof ht=="string"?/^go[A-Z]/.test(ht):ht.motion)return Hd(it,ht)}):nd(it,dt,st,function(ht){return Hd(it,ht)}):!1}function mf(it,st,dt){return nd(it,"'"+dt+"'",st,function(ht){return Hd(it,ht,!0)})}var id=null;function kg(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&(st.curOp.focus=De(),!An(st,it))){ce&&fe<11&&it.keyCode==27&&(it.returnValue=!1);var dt=it.keyCode;st.display.shift=dt==16||it.shiftKey;var ht=pf(st,it);Bt&&(id=ht?dt:null,!ht&&dt==88&&!Rn&&(ct?it.metaKey:it.ctrlKey)&&st.replaceSelection("",null,"cut")),St&&!ct&&!ht&&dt==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),dt==18&&!/\bCodeMirror-crosshair\b/.test(st.display.lineDiv.className)&&bg(st)}}function bg(it){var st=it.display.lineDiv;tn(st,"CodeMirror-crosshair");function dt(ht){(ht.keyCode==18||!ht.altKey)&&(Ut(st,"CodeMirror-crosshair"),Ei(document,"keyup",dt),Ei(document,"mouseover",dt))}Wn(document,"keyup",dt),Wn(document,"mouseover",dt)}function Bg(it){it.keyCode==16&&(this.doc.sel.shift=!1),An(this,it)}function fu(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&!(Mr(st.display,it)||An(st,it)||it.ctrlKey&&!it.altKey||ct&&it.metaKey)){var dt=it.keyCode,ht=it.charCode;if(Bt&&dt==id){id=null,Sr(it);return}if(!(Bt&&(!it.which||it.which<10)&&pf(st,it))){var gt=String.fromCharCode(ht==null?dt:ht);gt!="\b"&&(mf(st,it,gt)||st.display.input.onKeyPress(it))}}}var nm=400,Dg=function(it,st,dt){this.time=it,this.pos=st,this.button=dt};Dg.prototype.compare=function(it,st,dt){return this.time+nm>it&&Ln(st,this.pos)==0&&dt==this.button};var Gd,rd;function Ng(it,st){var dt=+new Date;return rd&&rd.compare(dt,it,st)?(Gd=rd=null,"triple"):Gd&&Gd.compare(dt,it,st)?(rd=new Dg(dt,it,st),Gd=null,"double"):(Gd=new Dg(dt,it,st),rd=null,"single")}function gu(it){var st=this,dt=st.display;if(!(An(st,it)||dt.activeTouch&&dt.input.supportsTouch())){if(dt.input.ensurePolled(),dt.shift=it.shiftKey,Mr(dt,it)){ue||(dt.scroller.draggable=!1,setTimeout(function(){return dt.scroller.draggable=!0},100));return}if(!Sf(st,it)){var ht=Ys(st,it),gt=ko(it),At=ht?Ng(ht,gt):"single";window.focus(),gt==1&&st.state.selectingText&&st.state.selectingText(it),!(ht&&Tg(st,gt,ht,At,it))&&(gt==1?ht?im(st,ht,At,it):Yo(it)==dt.scroller&&Sr(it):gt==2?(ht&&uf(st.doc,ht),setTimeout(function(){return dt.input.focus()},20)):gt==3&&(Dt?st.display.input.onContextMenu(it):ds(st)))}}}function Tg(it,st,dt,ht,gt){var At="Click";return ht=="double"?At="Double"+At:ht=="triple"&&(At="Triple"+At),At=(st==1?"Left":st==2?"Middle":"Right")+At,nd(it,Lg(At,gt),gt,function(Nt){if(typeof Nt=="string"&&(Nt=yh[Nt]),!Nt)return!1;var Gt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Gt=Nt(it,dt)!=_e}finally{it.state.suppressEdits=!1}return Gt})}function vf(it,st,dt){var ht=it.getOption("configureMouse"),gt=ht?ht(it,st,dt):{};if(gt.unit==null){var At=lt?dt.shiftKey&&dt.metaKey:dt.altKey;gt.unit=At?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(gt.extend==null||it.doc.extend)&&(gt.extend=it.doc.extend||dt.shiftKey),gt.addNew==null&&(gt.addNew=ct?dt.metaKey:dt.ctrlKey),gt.moveOnDrag==null&&(gt.moveOnDrag=!(ct?dt.altKey:dt.ctrlKey)),gt}function im(it,st,dt,ht){ce?setTimeout(pn(is,it),0):it.curOp.focus=De();var gt=vf(it,dt,ht),At=it.doc.sel,Nt;it.options.dragDrop&&$o&&!it.isReadOnly()&&dt=="single"&&(Nt=At.contains(st))>-1&&(Ln((Nt=At.ranges[Nt]).from(),st)<0||st.xRel>0)&&(Ln(Nt.to(),st)>0||st.xRel<0)?Ig(it,ht,st,gt):ev(it,ht,st,gt)}function Ig(it,st,dt,ht){var gt=it.display,At=!1,Nt=Dr(it,function(_t){ue&&(gt.scroller.draggable=!1),it.state.draggingText=!1,Ei(gt.wrapper.ownerDocument,"mouseup",Nt),Ei(gt.wrapper.ownerDocument,"mousemove",Gt),Ei(gt.scroller,"dragstart",jt),Ei(gt.scroller,"drop",Nt),At||(Sr(_t),ht.addNew||uf(it.doc,dt,null,null,ht.extend),ue&&!je||ce&&fe==9?setTimeout(function(){gt.wrapper.ownerDocument.body.focus({preventScroll:!0}),gt.input.focus()},20):gt.input.focus())}),Gt=function(_t){At=At||Math.abs(st.clientX-_t.clientX)+Math.abs(st.clientY-_t.clientY)>=10},jt=function(){return At=!0};ue&&(gt.scroller.draggable=!0),it.state.draggingText=Nt,Nt.copy=!ht.moveOnDrag,gt.scroller.dragDrop&>.scroller.dragDrop(),Wn(gt.wrapper.ownerDocument,"mouseup",Nt),Wn(gt.wrapper.ownerDocument,"mousemove",Gt),Wn(gt.scroller,"dragstart",jt),Wn(gt.scroller,"drop",Nt),ds(it),setTimeout(function(){return gt.input.focus()},20)}function Og(it,st,dt){if(dt=="char")return new as(st,st);if(dt=="word")return it.findWordAt(st);if(dt=="line")return new as(be(st.line,0),Kn(it.doc,be(st.line+1,0)));var ht=dt(it,st);return new as(ht.from,ht.to)}function ev(it,st,dt,ht){var gt=it.display,At=it.doc;Sr(st);var Nt,Gt,jt=At.sel,_t=jt.ranges;if(ht.addNew&&!ht.extend?(Gt=At.sel.contains(dt),Gt>-1?Nt=_t[Gt]:Nt=new as(dt,dt)):(Nt=At.sel.primary(),Gt=At.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Nt=new as(dt,dt)),dt=Ys(it,st,!0,!0),Gt=-1;else{var Fe=Og(it,dt,ht.unit);ht.extend?Nt=lf(Nt,Fe.anchor,Fe.head,ht.extend):Nt=Fe}ht.addNew?Gt==-1?(Gt=_t.length,Ia(At,ql(it,_t.concat([Nt]),Gt),{scroll:!1,origin:"*mouse"})):_t.length>1&&_t[Gt].empty()&&ht.unit=="char"&&!ht.extend?(Ia(At,ql(it,_t.slice(0,Gt).concat(_t.slice(Gt+1)),0),{scroll:!1,origin:"*mouse"}),jt=At.sel):mh(At,Gt,Nt,Xe):(Gt=0,Ia(At,new Il([Nt],0),Xe),jt=At.sel);var ie=dt;function qe(Ki){if(Ln(ie,Ki)!=0)if(ie=Ki,ht.unit=="rectangle"){for(var yr=[],Zr=it.options.tabSize,Zi=te(hn(At,dt.line).text,dt.ch,Zr),wo=te(hn(At,Ki.line).text,Ki.ch,Zr),As=Math.min(Zi,wo),la=Math.max(Zi,wo),Ds=Math.min(dt.line,Ki.line),$a=Math.min(it.lastLine(),Math.max(dt.line,Ki.line));Ds<=$a;Ds++){var Oa=hn(At,Ds).text,ra=cn(Oa,As,Zr);As==la?yr.push(new as(be(Ds,ra),be(Ds,ra))):Oa.length>ra&&yr.push(new as(be(Ds,ra),be(Ds,cn(Oa,la,Zr))))}yr.length||yr.push(new as(dt,dt)),Ia(At,ql(it,jt.ranges.slice(0,Gt).concat(yr),Gt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Ki)}else{var hl=Nt,ka=Og(it,Ki,ht.unit),oa=hl.anchor,Jo;Ln(ka.anchor,oa)>0?(Jo=ka.head,oa=On(hl.from(),ka.anchor)):(Jo=ka.anchor,oa=Qi(hl.to(),ka.head));var zs=jt.ranges.slice(0);zs[Gt]=rm(it,new as(Kn(At,oa),Jo)),Ia(At,ql(it,zs,Gt),Xe)}}var Ze=gt.wrapper.getBoundingClientRect(),Un=0;function _n(Ki){var yr=++Un,Zr=Ys(it,Ki,!0,ht.unit=="rectangle");if(Zr)if(Ln(Zr,ie)!=0){it.curOp.focus=De(),qe(Zr);var Zi=eo(gt,At);(Zr.line>=Zi.to||Zr.line<Zi.from)&&setTimeout(Dr(it,function(){Un==yr&&_n(Ki)}),150)}else{var wo=Ki.clientY<Ze.top?-20:Ki.clientY>Ze.bottom?20:0;wo&&setTimeout(Dr(it,function(){Un==yr&&(gt.scroller.scrollTop+=wo,_n(Ki))}),50)}}function Si(Ki){it.state.selectingText=!1,Un=1/0,Ki&&(Sr(Ki),gt.input.focus()),Ei(gt.wrapper.ownerDocument,"mousemove",zi),Ei(gt.wrapper.ownerDocument,"mouseup",hr),At.history.lastSelOrigin=null}var zi=Dr(it,function(Ki){Ki.buttons===0||!ko(Ki)?Si(Ki):_n(Ki)}),hr=Dr(it,Si);it.state.selectingText=hr,Wn(gt.wrapper.ownerDocument,"mousemove",zi),Wn(gt.wrapper.ownerDocument,"mouseup",hr)}function rm(it,st){var dt=st.anchor,ht=st.head,gt=hn(it.doc,dt.line);if(Ln(dt,ht)==0&&dt.sticky==ht.sticky)return st;var At=hi(gt);if(!At)return st;var Nt=ri(At,dt.ch,dt.sticky),Gt=At[Nt];if(Gt.from!=dt.ch&&Gt.to!=dt.ch)return st;var jt=Nt+(Gt.from==dt.ch==(Gt.level!=1)?0:1);if(jt==0||jt==At.length)return st;var _t;if(ht.line!=dt.line)_t=(ht.line-dt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var Fe=ri(At,ht.ch,ht.sticky),ie=Fe-Nt||(ht.ch-dt.ch)*(Gt.level==1?-1:1);Fe==jt-1||Fe==jt?_t=ie<0:_t=ie>0}var qe=At[jt+(_t?-1:0)],Ze=_t==(qe.level==1),Un=Ze?qe.from:qe.to,_n=Ze?"after":"before";return dt.ch==Un&&dt.sticky==_n?st:new as(new be(dt.line,Un,_n),ht)}function yf(it,st,dt,ht){var gt,At;if(st.touches)gt=st.touches[0].clientX,At=st.touches[0].clientY;else try{gt=st.clientX,At=st.clientY}catch(qe){return!1}if(gt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&Sr(st);var Nt=it.display,Gt=Nt.lineDiv.getBoundingClientRect();if(At>Gt.bottom||!gr(it,dt))return cr(st);At-=Gt.top-Nt.viewOffset;for(var jt=0;jt<it.display.gutterSpecs.length;++jt){var _t=Nt.gutters.childNodes[jt];if(_t&&_t.getBoundingClientRect().right>=gt){var Fe=ye(it.doc,At),ie=it.display.gutterSpecs[jt];return Pi(it,dt,it,Fe,ie.className,st),cr(st)}}}function Sf(it,st){return yf(it,st,"gutterClick",!0)}function xf(it,st){Mr(it.display,st)||om(it,st)||An(it,st,"contextmenu")||Dt||it.display.input.onContextMenu(st)}function om(it,st){return gr(it,"gutterContextMenu")?yf(it,st,"gutterContextMenu",!1):!1}function wf(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ts(it)}var Sh={toString:function(){return"CodeMirror.Init"}},Rg={},Ec={};function sm(it){var st=it.optionHandlers;function dt(ht,gt,At,Nt){it.defaults[ht]=gt,At&&(st[ht]=Nt?function(Gt,jt,_t){_t!=Sh&&At(Gt,jt,_t)}:At)}it.defineOption=dt,it.Init=Sh,dt("value","",function(ht,gt){return ht.setValue(gt)},!0),dt("mode",null,function(ht,gt){ht.doc.modeOption=gt,xo(ht)},!0),dt("indentUnit",2,xo,!0),dt("indentWithTabs",!1),dt("smartIndent",!0),dt("tabSize",4,function(ht){cc(ht),Ts(ht),ns(ht)},!0),dt("lineSeparator",null,function(ht,gt){if(ht.doc.lineSep=gt,!!gt){var At=[],Nt=ht.doc.first;ht.doc.iter(function(jt){for(var _t=0;;){var Fe=jt.text.indexOf(gt,_t);if(Fe==-1)break;_t=Fe+gt.length,At.push(be(Nt,Fe))}Nt++});for(var Gt=At.length-1;Gt>=0;Gt--)_h(ht.doc,gt,At[Gt],be(At[Gt].line,At[Gt].ch+gt.length))}}),dt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,gt,At){ht.state.specialChars=new RegExp(gt.source+(gt.test(" ")?"":"| "),"g"),At!=Sh&&ht.refresh()}),dt("specialCharPlaceholder",Hn,function(ht){return ht.refresh()},!0),dt("electricChars",!0),dt("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),dt("spellcheck",!1,function(ht,gt){return ht.getInputField().spellcheck=gt},!0),dt("autocorrect",!1,function(ht,gt){return ht.getInputField().autocorrect=gt},!0),dt("autocapitalize",!1,function(ht,gt){return ht.getInputField().autocapitalize=gt},!0),dt("rtlMoveVisually",!pt),dt("wholeLineUpdateBefore",!0),dt("theme","default",function(ht){wf(ht),wl(ht)},!0),dt("keyMap","default",function(ht,gt,At){var Nt=ed(gt),Gt=At!=Sh&&ed(At);Gt&&Gt.detach&&Gt.detach(ht,Nt),Nt.attach&&Nt.attach(ht,Gt||null)}),dt("extraKeys",null),dt("configureMouse",null),dt("lineWrapping",!1,am,!0),dt("gutters",[],function(ht,gt){ht.display.gutterSpecs=pa(gt,ht.options.lineNumbers),wl(ht)},!0),dt("fixedGutter",!0,function(ht,gt){ht.display.gutters.style.left=gt?Sl(ht.display)+"px":"0",ht.refresh()},!0),dt("coverGutterNextToScrollbar",!1,function(ht){return Ql(ht)},!0),dt("scrollbarStyle","native",function(ht){Zh(ht),Ql(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),dt("lineNumbers",!1,function(ht,gt){ht.display.gutterSpecs=pa(ht.options.gutters,gt),wl(ht)},!0),dt("firstLineNumber",1,wl,!0),dt("lineNumberFormatter",function(ht){return ht},wl,!0),dt("showCursorWhenSelecting",!1,Rs,!0),dt("resetSelectionOnContextMenu",!0),dt("lineWiseCopyCut",!0),dt("pasteLinesPerSelection",!0),dt("selectionsMayTouch",!1),dt("readOnly",!1,function(ht,gt){gt=="nocursor"&&(Dl(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(gt)}),dt("screenReaderLabel",null,function(ht,gt){gt=gt===""?null:gt,ht.display.input.screenReaderLabelChanged(gt)}),dt("disableInput",!1,function(ht,gt){gt||ht.display.input.reset()},!0),dt("dragDrop",!0,Pf),dt("allowDropFileTypes",null),dt("cursorBlinkRate",530),dt("cursorScrollMargin",0),dt("cursorHeight",1,Rs,!0),dt("singleCursorHeightPerLine",!0,Rs,!0),dt("workTime",100),dt("workDelay",100),dt("flattenSpans",!0,cc,!0),dt("addModeClass",!1,cc,!0),dt("pollInterval",100),dt("undoDepth",200,function(ht,gt){return ht.doc.history.undoDepth=gt}),dt("historyEventDelay",1250),dt("viewportMargin",10,function(ht){return ht.refresh()},!0),dt("maxHighlightLength",1e4,cc,!0),dt("moveInputWithCursor",!0,function(ht,gt){gt||ht.display.input.resetPosition()}),dt("tabindex",null,function(ht,gt){return ht.display.input.getField().tabIndex=gt||""}),dt("autofocus",null),dt("direction","ltr",function(ht,gt){return ht.doc.setDirection(gt)},!0),dt("phrases",null)}function Pf(it,st,dt){var ht=dt&&dt!=Sh;if(!st!=!ht){var gt=it.display.dragFunctions,At=st?Wn:Ei;At(it.display.scroller,"dragstart",gt.start),At(it.display.scroller,"dragenter",gt.enter),At(it.display.scroller,"dragover",gt.over),At(it.display.scroller,"dragleave",gt.leave),At(it.display.scroller,"drop",gt.drop)}}function am(it){it.options.lineWrapping?(tn(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Ut(it.display.wrapper,"CodeMirror-wrap"),ze(it)),ur(it),ns(it),Ts(it),setTimeout(function(){return Ql(it)},100)}function Qo(it,st){var dt=this;if(!(this instanceof Qo))return new Qo(it,st);this.options=st=st?fn(st):{},fn(Rg,st,!1);var ht=st.value;typeof ht=="string"?ht=new Fa(ht,st.mode,null,st.lineSeparator,st.direction):st.mode&&(ht.modeOption=st.mode),this.doc=ht;var gt=new Qo.inputStyles[st.inputStyle](this),At=this.display=new fh(it,ht,gt,st);At.wrapper.CodeMirror=this,wf(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Zh(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ot,keySeq:null,specialChars:null},st.autofocus&&!nt&&At.input.focus(),ce&&fe<11&&setTimeout(function(){return dt.display.input.reset(!0)},20),Wd(this),Cl(),qr(this),this.curOp.forceUpdate=!0,of(this,ht),st.autofocus&&!nt||this.hasFocus()?setTimeout(function(){dt.hasFocus()&&!dt.state.focused&&bo(dt)},20):Dl(this);for(var Nt in Ec)Ec.hasOwnProperty(Nt)&&Ec[Nt](this,st[Nt],Sh);ta(this),st.finishInit&&st.finishInit(this);for(var Gt=0;Gt<od.length;++Gt)od[Gt](this);$s(this),ue&&st.lineWrapping&&getComputedStyle(At.lineDiv).textRendering=="optimizelegibility"&&(At.lineDiv.style.textRendering="auto")}Qo.defaults=Rg,Qo.optionHandlers=Ec;function Wd(it){var st=it.display;Wn(st.scroller,"mousedown",Dr(it,gu)),ce&&fe<11?Wn(st.scroller,"dblclick",Dr(it,function(jt){if(!An(it,jt)){var _t=Ys(it,jt);if(!(!_t||Sf(it,jt)||Mr(it.display,jt))){Sr(jt);var Fe=it.findWordAt(_t);uf(it.doc,Fe.anchor,Fe.head)}}})):Wn(st.scroller,"dblclick",function(jt){return An(it,jt)||Sr(jt)}),Wn(st.scroller,"contextmenu",function(jt){return xf(it,jt)}),Wn(st.input.getField(),"contextmenu",function(jt){st.scroller.contains(jt.target)||xf(it,jt)});var dt,ht={end:0};function gt(){st.activeTouch&&(dt=setTimeout(function(){return st.activeTouch=null},1e3),ht=st.activeTouch,ht.end=+new Date)}function At(jt){if(jt.touches.length!=1)return!1;var _t=jt.touches[0];return _t.radiusX<=1&&_t.radiusY<=1}function Nt(jt,_t){if(_t.left==null)return!0;var Fe=_t.left-jt.left,ie=_t.top-jt.top;return Fe*Fe+ie*ie>20*20}Wn(st.scroller,"touchstart",function(jt){if(!An(it,jt)&&!At(jt)&&!Sf(it,jt)){st.input.ensurePolled(),clearTimeout(dt);var _t=+new Date;st.activeTouch={start:_t,moved:!1,prev:_t-ht.end<=300?ht:null},jt.touches.length==1&&(st.activeTouch.left=jt.touches[0].pageX,st.activeTouch.top=jt.touches[0].pageY)}}),Wn(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),Wn(st.scroller,"touchend",function(jt){var _t=st.activeTouch;if(_t&&!Mr(st,jt)&&_t.left!=null&&!_t.moved&&new Date-_t.start<300){var Fe=it.coordsChar(st.activeTouch,"page"),ie;!_t.prev||Nt(_t,_t.prev)?ie=new as(Fe,Fe):!_t.prev.prev||Nt(_t,_t.prev.prev)?ie=it.findWordAt(Fe):ie=new as(be(Fe.line,0),Kn(it.doc,be(Fe.line+1,0))),it.setSelection(ie.anchor,ie.head),it.focus(),Sr(jt)}gt()}),Wn(st.scroller,"touchcancel",gt),Wn(st.scroller,"scroll",function(){st.scroller.clientHeight&&(hu(it,st.scroller.scrollTop),Tl(it,st.scroller.scrollLeft,!0),Pi(it,"scroll",it))}),Wn(st.scroller,"mousewheel",function(jt){return ma(it,jt)}),Wn(st.scroller,"DOMMouseScroll",function(jt){return ma(it,jt)}),Wn(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(jt){An(it,jt)||jo(jt)},over:function(jt){An(it,jt)||(_p(it,jt),jo(jt))},start:function(jt){return qp(it,jt)},drop:Dr(it,xg),leave:function(jt){An(it,jt)||$p(it)}};var Gt=st.input.getField();Wn(Gt,"keyup",function(jt){return Bg.call(it,jt)}),Wn(Gt,"keydown",Dr(it,kg)),Wn(Gt,"keypress",Dr(it,fu)),Wn(Gt,"focus",function(jt){return bo(it,jt)}),Wn(Gt,"blur",function(jt){return Dl(it,jt)})}var od=[];Qo.defineInitHook=function(it){return od.push(it)};function aa(it,st,dt,ht){var gt=it.doc,At;dt==null&&(dt="add"),dt=="smart"&&(gt.mode.indent?At=No(it,st).state:dt="prev");var Nt=it.options.tabSize,Gt=hn(gt,st),jt=te(Gt.text,null,Nt);Gt.stateAfter&&(Gt.stateAfter=null);var _t=Gt.text.match(/^\s*/)[0],Fe;if(!ht&&!/\S/.test(Gt.text))Fe=0,dt="not";else if(dt=="smart"&&(Fe=gt.mode.indent(At,Gt.text.slice(_t.length),Gt.text),Fe==_e||Fe>150)){if(!ht)return;dt="prev"}dt=="prev"?st>gt.first?Fe=te(hn(gt,st-1).text,null,Nt):Fe=0:dt=="add"?Fe=jt+it.options.indentUnit:dt=="subtract"?Fe=jt-it.options.indentUnit:typeof dt=="number"&&(Fe=jt+dt),Fe=Math.max(0,Fe);var ie="",qe=0;if(it.options.indentWithTabs)for(var Ze=Math.floor(Fe/Nt);Ze;--Ze)qe+=Nt,ie+=" ";if(qe<Fe&&(ie+=ae(Fe-qe)),ie!=_t)return _h(gt,ie,be(st,0),be(st,_t.length),"+input"),Gt.stateAfter=null,!0;for(var Un=0;Un<gt.sel.ranges.length;Un++){var _n=gt.sel.ranges[Un];if(_n.head.line==st&&_n.head.ch<_t.length){var Si=be(st,_t.length);mh(gt,Un,new as(Si,Si));break}}}var _a=null;function sd(it){_a=it}function Mc(it,st,dt,ht,gt){var At=it.doc;it.display.shift=!1,ht||(ht=At.sel);var Nt=+new Date-200,Gt=gt=="paste"||it.state.pasteIncoming>Nt,jt=lo(st),_t=null;if(Gt&&ht.ranges.length>1)if(_a&&_a.text.join(`
|
|
`)==st){if(ht.ranges.length%_a.text.length==0){_t=[];for(var Fe=0;Fe<_a.text.length;Fe++)_t.push(At.splitLines(_a.text[Fe]))}}else jt.length==ht.ranges.length&&it.options.pasteLinesPerSelection&&(_t=sn(jt,function(zi){return[zi]}));for(var ie=it.curOp.updateInput,qe=ht.ranges.length-1;qe>=0;qe--){var Ze=ht.ranges[qe],Un=Ze.from(),_n=Ze.to();Ze.empty()&&(dt&&dt>0?Un=be(Un.line,Un.ch-dt):it.state.overwrite&&!Gt?_n=be(_n.line,Math.min(hn(At,_n.line).text.length,_n.ch+Pe(jt).length)):Gt&&_a&&_a.lineWise&&_a.text.join(`
|
|
`)==jt.join(`
|
|
`)&&(Un=_n=be(Un.line,0)));var Si={from:Un,to:_n,text:_t?_t[qe%_t.length]:jt,origin:gt||(Gt?"paste":it.state.cutIncoming>Nt?"cut":"+input")};vh(it.doc,Si),Yn(it,"inputRead",it,Si)}st&&!Gt&&jg(it,st),ol(it),it.curOp.updateInput<2&&(it.curOp.updateInput=ie),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function zg(it,st){var dt=it.clipboardData&&it.clipboardData.getData("Text");if(dt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&Cr(st,function(){return Mc(st,dt,0,null,"paste")}),!0}function jg(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var dt=it.doc.sel,ht=dt.ranges.length-1;ht>=0;ht--){var gt=dt.ranges[ht];if(!(gt.head.ch>100||ht&&dt.ranges[ht-1].head.line==gt.head.line)){var At=it.getModeAt(gt.head),Nt=!1;if(At.electricChars){for(var Gt=0;Gt<At.electricChars.length;Gt++)if(st.indexOf(At.electricChars.charAt(Gt))>-1){Nt=aa(it,gt.head.line,"smart");break}}else At.electricInput&&At.electricInput.test(hn(it.doc,gt.head.line).text.slice(0,gt.head.ch))&&(Nt=aa(it,gt.head.line,"smart"));Nt&&Yn(it,"electricInput",it,gt.head.line)}}}function Hg(it){for(var st=[],dt=[],ht=0;ht<it.doc.sel.ranges.length;ht++){var gt=it.doc.sel.ranges[ht].head.line,At={anchor:be(gt,0),head:be(gt+1,0)};dt.push(At),st.push(it.getRange(At.anchor,At.head))}return{text:st,ranges:dt}}function Gg(it,st,dt,ht){it.setAttribute("autocorrect",dt?"":"off"),it.setAttribute("autocapitalize",ht?"":"off"),it.setAttribute("spellcheck",!!st)}function Wg(){var it=Jt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),st=Jt("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ue?it.style.width="1000px":it.setAttribute("wrap","off"),bt&&(it.style.border="1px solid black"),Gg(it),st}function xh(it){var st=it.optionHandlers,dt=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ht,gt){var At=this.options,Nt=At[ht];At[ht]==gt&&ht!="mode"||(At[ht]=gt,st.hasOwnProperty(ht)&&Dr(this,st[ht])(this,gt,Nt),Pi(this,"optionChange",this,ht))},getOption:function(ht){return this.options[ht]},getDoc:function(){return this.doc},addKeyMap:function(ht,gt){this.state.keyMaps[gt?"push":"unshift"](ed(ht))},removeKeyMap:function(ht){for(var gt=this.state.keyMaps,At=0;At<gt.length;++At)if(gt[At]==ht||gt[At].name==ht)return gt.splice(At,1),!0},addOverlay:Yr(function(ht,gt){var At=ht.token?ht:it.getMode(this.options,ht);if(At.startState)throw new Error("Overlays may not be stateful.");an(this.state.overlays,{mode:At,modeSpec:ht,opaque:gt&>.opaque,priority:gt&>.priority||0},function(Nt){return Nt.priority}),this.state.modeGen++,ns(this)}),removeOverlay:Yr(function(ht){for(var gt=this.state.overlays,At=0;At<gt.length;++At){var Nt=gt[At].modeSpec;if(Nt==ht||typeof ht=="string"&&Nt.name==ht){gt.splice(At,1),this.state.modeGen++,ns(this);return}}}),indentLine:Yr(function(ht,gt,At){typeof gt!="string"&&typeof gt!="number"&&(gt==null?gt=this.options.smartIndent?"smart":"prev":gt=gt?"add":"subtract"),Mn(this.doc,ht)&&aa(this,ht,gt,At)}),indentSelection:Yr(function(ht){for(var gt=this.doc.sel.ranges,At=-1,Nt=0;Nt<gt.length;Nt++){var Gt=gt[Nt];if(Gt.empty())Gt.head.line>At&&(aa(this,Gt.head.line,ht,!0),At=Gt.head.line,Nt==this.doc.sel.primIndex&&ol(this));else{var jt=Gt.from(),_t=Gt.to(),Fe=Math.max(At,jt.line);At=Math.min(this.lastLine(),_t.line-(_t.ch?0:1))+1;for(var ie=Fe;ie<At;++ie)aa(this,ie,ht);var qe=this.doc.sel.ranges;jt.ch==0&>.length==qe.length&&qe[Nt].from().ch>0&&mh(this.doc,Nt,new as(jt,qe[Nt].to()),ve)}}}),getTokenAt:function(ht,gt){return Ir(this,ht,gt)},getLineTokens:function(ht,gt){return Ir(this,be(ht),gt,!0)},getTokenTypeAt:function(ht){ht=Kn(this.doc,ht);var gt=Rr(this,hn(this.doc,ht.line)),At=0,Nt=(gt.length-1)/2,Gt=ht.ch,jt;if(Gt==0)jt=gt[2];else for(;;){var _t=At+Nt>>1;if((_t?gt[_t*2-1]:0)>=Gt)Nt=_t;else if(gt[_t*2+1]<Gt)At=_t+1;else{jt=gt[_t*2+2];break}}var Fe=jt?jt.indexOf("overlay "):-1;return Fe<0?jt:Fe==0?null:jt.slice(0,Fe-1)},getModeAt:function(ht){var gt=this.doc.mode;return gt.innerMode?it.innerMode(gt,this.getTokenAt(ht).state).mode:gt},getHelper:function(ht,gt){return this.getHelpers(ht,gt)[0]},getHelpers:function(ht,gt){var At=[];if(!dt.hasOwnProperty(gt))return At;var Nt=dt[gt],Gt=this.getModeAt(ht);if(typeof Gt[gt]=="string")Nt[Gt[gt]]&&At.push(Nt[Gt[gt]]);else if(Gt[gt])for(var jt=0;jt<Gt[gt].length;jt++){var _t=Nt[Gt[gt][jt]];_t&&At.push(_t)}else Gt.helperType&&Nt[Gt.helperType]?At.push(Nt[Gt.helperType]):Nt[Gt.name]&&At.push(Nt[Gt.name]);for(var Fe=0;Fe<Nt._global.length;Fe++){var ie=Nt._global[Fe];ie.pred(Gt,this)&&Le(At,ie.val)==-1&&At.push(ie.val)}return At},getStateAfter:function(ht,gt){var At=this.doc;return ht=Bn(At,ht==null?At.first+At.size-1:ht),No(this,ht+1,gt).state},cursorCoords:function(ht,gt){var At,Nt=this.doc.sel.primary();return ht==null?At=Nt.head:typeof ht=="object"?At=Kn(this.doc,ht):At=ht?Nt.from():Nt.to(),Xi(this,At,gt||"page")},charCoords:function(ht,gt){return ca(this,Kn(this.doc,ht),gt||"page")},coordsChar:function(ht,gt){return ht=so(this,ht,gt||"page"),Gi(this,ht.left,ht.top)},lineAtHeight:function(ht,gt){return ht=so(this,{top:ht,left:0},gt||"page").top,ye(this.doc,ht+this.display.viewOffset)},heightAtLine:function(ht,gt,At){var Nt=!1,Gt;if(typeof ht=="number"){var jt=this.doc.first+this.doc.size-1;ht<this.doc.first?ht=this.doc.first:ht>jt&&(ht=jt,Nt=!0),Gt=hn(this.doc,ht)}else Gt=ht;return Wo(this,Gt,{top:0,left:0},gt||"page",At||Nt).top+(Nt?this.doc.height-ge(Gt):0)},defaultTextHeight:function(){return ys(this.display)},defaultCharWidth:function(){return qs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,gt,At,Nt,Gt){var jt=this.display;ht=Xi(this,Kn(this.doc,ht));var _t=ht.bottom,Fe=ht.left;if(gt.style.position="absolute",gt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(gt),jt.sizer.appendChild(gt),Nt=="over")_t=ht.top;else if(Nt=="above"||Nt=="near"){var ie=Math.max(jt.wrapper.clientHeight,this.doc.height),qe=Math.max(jt.sizer.clientWidth,jt.lineSpace.clientWidth);(Nt=="above"||ht.bottom+gt.offsetHeight>ie)&&ht.top>gt.offsetHeight?_t=ht.top-gt.offsetHeight:ht.bottom+gt.offsetHeight<=ie&&(_t=ht.bottom),Fe+gt.offsetWidth>qe&&(Fe=qe-gt.offsetWidth)}gt.style.top=_t+"px",gt.style.left=gt.style.right="",Gt=="right"?(Fe=jt.sizer.clientWidth-gt.offsetWidth,gt.style.right="0px"):(Gt=="left"?Fe=0:Gt=="middle"&&(Fe=(jt.sizer.clientWidth-gt.offsetWidth)/2),gt.style.left=Fe+"px"),At&&lu(this,{left:Fe,top:_t,right:Fe+gt.offsetWidth,bottom:_t+gt.offsetHeight})},triggerOnKeyDown:Yr(kg),triggerOnKeyPress:Yr(fu),triggerOnKeyUp:Bg,triggerOnMouseDown:Yr(gu),execCommand:function(ht){if(yh.hasOwnProperty(ht))return yh[ht].call(null,this)},triggerElectric:Yr(function(ht){jg(this,ht)}),findPosH:function(ht,gt,At,Nt){var Gt=1;gt<0&&(Gt=-1,gt=-gt);for(var jt=Kn(this.doc,ht),_t=0;_t<gt&&(jt=Fc(this.doc,jt,Gt,At,Nt),!jt.hitSide);++_t);return jt},moveH:Yr(function(ht,gt){var At=this;this.extendSelectionsBy(function(Nt){return At.display.shift||At.doc.extend||Nt.empty()?Fc(At.doc,Nt.head,ht,gt,At.options.rtlMoveVisually):ht<0?Nt.from():Nt.to()},ke)}),deleteH:Yr(function(ht,gt){var At=this.doc.sel,Nt=this.doc;At.somethingSelected()?Nt.replaceSelection("",null,"+delete"):ul(this,function(Gt){var jt=Fc(Nt,Gt.head,ht,gt,!1);return ht<0?{from:jt,to:Gt.head}:{from:Gt.head,to:jt}})}),findPosV:function(ht,gt,At,Nt){var Gt=1,jt=Nt;gt<0&&(Gt=-1,gt=-gt);for(var _t=Kn(this.doc,ht),Fe=0;Fe<gt;++Fe){var ie=Xi(this,_t,"div");if(jt==null?jt=ie.left:ie.left=jt,_t=wh(this,ie,Gt,At),_t.hitSide)break}return _t},moveV:Yr(function(ht,gt){var At=this,Nt=this.doc,Gt=[],jt=!this.display.shift&&!Nt.extend&&Nt.sel.somethingSelected();if(Nt.extendSelectionsBy(function(Fe){if(jt)return ht<0?Fe.from():Fe.to();var ie=Xi(At,Fe.head,"div");Fe.goalColumn!=null&&(ie.left=Fe.goalColumn),Gt.push(ie.left);var qe=wh(At,ie,ht,gt);return gt=="page"&&Fe==Nt.sel.primary()&&ah(At,ca(At,qe,"div").top-ie.top),qe},ke),Gt.length)for(var _t=0;_t<Nt.sel.ranges.length;_t++)Nt.sel.ranges[_t].goalColumn=Gt[_t]}),findWordAt:function(ht){var gt=this.doc,At=hn(gt,ht.line).text,Nt=ht.ch,Gt=ht.ch;if(At){var jt=this.getHelper(ht,"wordChars");(ht.sticky=="before"||Gt==At.length)&&Nt?--Nt:++Gt;for(var _t=At.charAt(Nt),Fe=zt(_t,jt)?function(ie){return zt(ie,jt)}:/\s/.test(_t)?function(ie){return/\s/.test(ie)}:function(ie){return!/\s/.test(ie)&&!zt(ie)};Nt>0&&Fe(At.charAt(Nt-1));)--Nt;for(;Gt<At.length&&Fe(At.charAt(Gt));)++Gt}return new as(be(ht.line,Nt),be(ht.line,Gt))},toggleOverwrite:function(ht){ht!=null&&ht==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?tn(this.display.cursorDiv,"CodeMirror-overwrite"):Ut(this.display.cursorDiv,"CodeMirror-overwrite"),Pi(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==De()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Yr(function(ht,gt){uu(this,ht,gt)}),getScrollInfo:function(){var ht=this.display.scroller;return{left:ht.scrollLeft,top:ht.scrollTop,height:ht.scrollHeight-Hr(this)-this.display.barHeight,width:ht.scrollWidth-Hr(this)-this.display.barWidth,clientHeight:oo(this),clientWidth:Ur(this)}},scrollIntoView:Yr(function(ht,gt){ht==null?(ht={from:this.doc.sel.primary().head,to:null},gt==null&&(gt=this.options.cursorScrollMargin)):typeof ht=="number"?ht={from:be(ht,0),to:null}:ht.from==null&&(ht={from:ht,to:null}),ht.to||(ht.to=ht.from),ht.margin=gt||0,ht.from.line!=null?Bo(this,ht):lh(this,ht.from,ht.to,ht.margin)}),setSize:Yr(function(ht,gt){var At=this,Nt=function(jt){return typeof jt=="number"||/^\d+$/.test(String(jt))?jt+"px":jt};ht!=null&&(this.display.wrapper.style.width=Nt(ht)),gt!=null&&(this.display.wrapper.style.height=Nt(gt)),this.options.lineWrapping&&Mo(this);var Gt=this.display.viewFrom;this.doc.iter(Gt,this.display.viewTo,function(jt){if(jt.widgets){for(var _t=0;_t<jt.widgets.length;_t++)if(jt.widgets[_t].noHScroll){Qr(At,Gt,"widget");break}}++Gt}),this.curOp.forceUpdate=!0,Pi(this,"refresh",this)}),operation:function(ht){return Cr(this,ht)},startOperation:function(){return qr(this)},endOperation:function(){return $s(this)},refresh:Yr(function(){var ht=this.display.cachedTextHeight;ns(this),this.curOp.forceUpdate=!0,Ts(this),uu(this,this.doc.scrollLeft,this.doc.scrollTop),dh(this.display),(ht==null||Math.abs(ht-ys(this.display))>.5||this.options.lineWrapping)&&ur(this),Pi(this,"refresh",this)}),swapDoc:Yr(function(ht){var gt=this.doc;return gt.cm=null,this.state.selectingText&&this.state.selectingText(),of(this,ht),Ts(this),this.display.input.reset(),uu(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,Yn(this,"swapDoc",this,gt),gt}),phrase:function(ht){var gt=this.options.phrases;return gt&&Object.prototype.hasOwnProperty.call(gt,ht)?gt[ht]:ht},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},dr(it),it.registerHelper=function(ht,gt,At){dt.hasOwnProperty(ht)||(dt[ht]=it[ht]={_global:[]}),dt[ht][gt]=At},it.registerGlobalHelper=function(ht,gt,At,Nt){it.registerHelper(ht,gt,Nt),dt[ht]._global.push({pred:At,val:Nt})}}function Fc(it,st,dt,ht,gt){var At=st,Nt=dt,Gt=hn(it,st.line),jt=gt&&it.direction=="rtl"?-dt:dt;function _t(){var hr=st.line+jt;return hr<it.first||hr>=it.first+it.size?!1:(st=new be(hr,st.ch,st.sticky),Gt=hn(it,hr))}function Fe(hr){var Ki;if(ht=="codepoint"){var yr=Gt.text.charCodeAt(st.ch+(ht>0?0:-1));isNaN(yr)?Ki=null:Ki=new be(st.line,Math.max(0,Math.min(Gt.text.length,st.ch+dt*(yr>=55296&&yr<56320?2:1))),-dt)}else gt?Ki=ff(it.cm,Gt,st,dt):Ki=Ks(Gt,st,dt);if(Ki==null)if(!hr&&_t())st=Lc(gt,it.cm,Gt,st.line,jt);else return!1;else st=Ki;return!0}if(ht=="char"||ht=="codepoint")Fe();else if(ht=="column")Fe(!0);else if(ht=="word"||ht=="group")for(var ie=null,qe=ht=="group",Ze=it.cm&&it.cm.getHelper(st,"wordChars"),Un=!0;!(dt<0&&!Fe(!Un));Un=!1){var _n=Gt.text.charAt(st.ch)||`
|
|
`,Si=zt(_n,Ze)?"w":qe&&_n==`
|
|
`?"n":!qe||/\s/.test(_n)?null:"p";if(qe&&!Un&&!Si&&(Si="s"),ie&&ie!=Si){dt<0&&(dt=1,Fe(),st.sticky="after");break}if(Si&&(ie=Si),dt>0&&!Fe(!Un))break}var zi=Sc(it,st,At,Nt,!0);return Ni(At,zi)&&(zi.hitSide=!0),zi}function wh(it,st,dt,ht){var gt=it.doc,At=st.left,Nt;if(ht=="page"){var Gt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),jt=Math.max(Gt-.5*ys(it.display),3);Nt=(dt>0?st.bottom:st.top)+dt*jt}else ht=="line"&&(Nt=dt>0?st.bottom+3:st.top-3);for(var _t;_t=Gi(it,At,Nt),!!_t.outside;){if(dt<0?Nt<=0:Nt>=gt.height){_t.hitSide=!0;break}Nt+=dt*5}return _t}var cs=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ot,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};cs.prototype.init=function(it){var st=this,dt=this,ht=dt.cm,gt=dt.div=it.lineDiv;Gg(gt,ht.options.spellcheck,ht.options.autocorrect,ht.options.autocapitalize);function At(Gt){for(var jt=Gt.target;jt;jt=jt.parentNode){if(jt==gt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(jt.className))break}return!1}Wn(gt,"paste",function(Gt){!At(Gt)||An(ht,Gt)||zg(Gt,ht)||fe<=11&&setTimeout(Dr(ht,function(){return st.updateFromDOM()}),20)}),Wn(gt,"compositionstart",function(Gt){st.composing={data:Gt.data,done:!1}}),Wn(gt,"compositionupdate",function(Gt){st.composing||(st.composing={data:Gt.data,done:!1})}),Wn(gt,"compositionend",function(Gt){st.composing&&(Gt.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),Wn(gt,"touchstart",function(){return dt.forceCompositionEnd()}),Wn(gt,"input",function(){st.composing||st.readFromDOMSoon()});function Nt(Gt){if(!(!At(Gt)||An(ht,Gt))){if(ht.somethingSelected())sd({lineWise:!1,text:ht.getSelections()}),Gt.type=="cut"&&ht.replaceSelection("",null,"cut");else if(ht.options.lineWiseCopyCut){var jt=Hg(ht);sd({lineWise:!0,text:jt.text}),Gt.type=="cut"&&ht.operation(function(){ht.setSelections(jt.ranges,0,ve),ht.replaceSelection("",null,"cut")})}else return;if(Gt.clipboardData){Gt.clipboardData.clearData();var _t=_a.text.join(`
|
|
`);if(Gt.clipboardData.setData("Text",_t),Gt.clipboardData.getData("Text")==_t){Gt.preventDefault();return}}var Fe=Wg(),ie=Fe.firstChild;ht.display.lineSpace.insertBefore(Fe,ht.display.lineSpace.firstChild),ie.value=_a.text.join(`
|
|
`);var qe=document.activeElement;on(ie),setTimeout(function(){ht.display.lineSpace.removeChild(Fe),qe.focus(),qe==gt&&dt.showPrimarySelection()},50)}}Wn(gt,"copy",Nt),Wn(gt,"cut",Nt)},cs.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},cs.prototype.prepareSelection=function(){var it=Xl(this.cm,!1);return it.focus=document.activeElement==this.div,it},cs.prototype.showSelection=function(it,st){!it||!this.cm.display.view.length||((it.focus||st)&&this.showPrimarySelection(),this.showMultipleSelections(it))},cs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},cs.prototype.showPrimarySelection=function(){var it=this.getSelection(),st=this.cm,dt=st.doc.sel.primary(),ht=dt.from(),gt=dt.to();if(st.display.viewTo==st.display.viewFrom||ht.line>=st.display.viewTo||gt.line<st.display.viewFrom){it.removeAllRanges();return}var At=kc(st,it.anchorNode,it.anchorOffset),Nt=kc(st,it.focusNode,it.focusOffset);if(!(At&&!At.bad&&Nt&&!Nt.bad&&Ln(On(At,Nt),ht)==0&&Ln(Qi(At,Nt),gt)==0)){var Gt=st.display.view,jt=ht.line>=st.display.viewFrom&&Cf(st,ht)||{node:Gt[0].measure.map[2],offset:0},_t=gt.line<st.display.viewTo&&Cf(st,gt);if(!_t){var Fe=Gt[Gt.length-1].measure,ie=Fe.maps?Fe.maps[Fe.maps.length-1]:Fe.map;_t={node:ie[ie.length-1],offset:ie[ie.length-2]-ie[ie.length-3]}}if(!jt||!_t){it.removeAllRanges();return}var qe=it.rangeCount&&it.getRangeAt(0),Ze;try{Ze=pe(jt.node,jt.offset,_t.offset,_t.node)}catch(Un){}Ze&&(!St&&st.state.focused?(it.collapse(jt.node,jt.offset),Ze.collapsed||(it.removeAllRanges(),it.addRange(Ze))):(it.removeAllRanges(),it.addRange(Ze)),qe&&it.anchorNode==null?it.addRange(qe):St&&this.startGracePeriod()),this.rememberSelection()}},cs.prototype.startGracePeriod=function(){var it=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){it.gracePeriod=!1,it.selectionChanged()&&it.cm.operation(function(){return it.cm.curOp.selectionChanged=!0})},20)},cs.prototype.showMultipleSelections=function(it){qt(this.cm.display.cursorDiv,it.cursors),qt(this.cm.display.selectionDiv,it.selection)},cs.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},cs.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var st=it.getRangeAt(0).commonAncestorContainer;return He(this.div,st)},cs.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},cs.prototype.blur=function(){this.div.blur()},cs.prototype.getField=function(){return this.div},cs.prototype.supportsTouch=function(){return!0},cs.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():Cr(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function st(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,st))}this.polling.set(this.cm.options.pollInterval,st)},cs.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},cs.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),st=this.cm;if(et&&Ce&&this.cm.display.gutterSpecs.length&&Vg(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var dt=kc(st,it.anchorNode,it.anchorOffset),ht=kc(st,it.focusNode,it.focusOffset);dt&&ht&&Cr(st,function(){Ia(st.doc,Wu(dt,ht),ve),(dt.bad||ht.bad)&&(st.curOp.selectionChanged=!0)})}}},cs.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,st=it.display,dt=it.doc.sel.primary(),ht=dt.from(),gt=dt.to();if(ht.ch==0&&ht.line>it.firstLine()&&(ht=be(ht.line-1,hn(it.doc,ht.line-1).length)),gt.ch==hn(it.doc,gt.line).text.length&>.line<it.lastLine()&&(gt=be(gt.line+1,0)),ht.line<st.viewFrom||gt.line>st.viewTo-1)return!1;var At,Nt,Gt;ht.line==st.viewFrom||(At=_s(it,ht.line))==0?(Nt=Xt(st.view[0].line),Gt=st.view[0].node):(Nt=Xt(st.view[At].line),Gt=st.view[At-1].node.nextSibling);var jt=_s(it,gt.line),_t,Fe;if(jt==st.view.length-1?(_t=st.viewTo-1,Fe=st.lineDiv.lastChild):(_t=Xt(st.view[jt+1].line)-1,Fe=st.view[jt+1].node.previousSibling),!Gt)return!1;for(var ie=it.doc.splitLines(Yd(it,Gt,Fe,Nt,_t)),qe=xi(it.doc,be(Nt,0),be(_t,hn(it.doc,_t).text.length));ie.length>1&&qe.length>1;)if(Pe(ie)==Pe(qe))ie.pop(),qe.pop(),_t--;else if(ie[0]==qe[0])ie.shift(),qe.shift(),Nt++;else break;for(var Ze=0,Un=0,_n=ie[0],Si=qe[0],zi=Math.min(_n.length,Si.length);Ze<zi&&_n.charCodeAt(Ze)==Si.charCodeAt(Ze);)++Ze;for(var hr=Pe(ie),Ki=Pe(qe),yr=Math.min(hr.length-(ie.length==1?Ze:0),Ki.length-(qe.length==1?Ze:0));Un<yr&&hr.charCodeAt(hr.length-Un-1)==Ki.charCodeAt(Ki.length-Un-1);)++Un;if(ie.length==1&&qe.length==1&&Nt==ht.line)for(;Ze&&Ze>ht.ch&&hr.charCodeAt(hr.length-Un-1)==Ki.charCodeAt(Ki.length-Un-1);)Ze--,Un++;ie[ie.length-1]=hr.slice(0,hr.length-Un).replace(/^\u200b+/,""),ie[0]=ie[0].slice(Ze).replace(/\u200b+$/,"");var Zr=be(Nt,Ze),Zi=be(_t,qe.length?Pe(qe).length-Un:0);if(ie.length>1||ie[0]||Ln(Zr,Zi))return _h(it.doc,ie,Zr,Zi,"+input"),!0},cs.prototype.ensurePolled=function(){this.forceCompositionEnd()},cs.prototype.reset=function(){this.forceCompositionEnd()},cs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},cs.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},cs.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&Cr(this.cm,function(){return ns(it.cm)})},cs.prototype.setUneditable=function(it){it.contentEditable="false"},cs.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Dr(this.cm,Mc)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},cs.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},cs.prototype.onContextMenu=function(){},cs.prototype.resetPosition=function(){},cs.prototype.needsContentAttribute=!0;function Cf(it,st){var dt=Ko(it,st.line);if(!dt||dt.hidden)return null;var ht=hn(it.doc,st.line),gt=mo(dt,ht,st.line),At=hi(ht,it.doc.direction),Nt="left";if(At){var Gt=ri(At,st.ch);Nt=Gt%2?"right":"left"}var jt=Ro(gt.map,st.ch,Nt);return jt.offset=jt.collapse=="right"?jt.end:jt.start,jt}function Vg(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function Vd(it,st){return st&&(it.bad=!0),it}function Yd(it,st,dt,ht,gt){var At="",Nt=!1,Gt=it.doc.lineSeparator(),jt=!1;function _t(Ze){return function(Un){return Un.id==Ze}}function Fe(){Nt&&(At+=Gt,jt&&(At+=Gt),Nt=jt=!1)}function ie(Ze){Ze&&(Fe(),At+=Ze)}function qe(Ze){if(Ze.nodeType==1){var Un=Ze.getAttribute("cm-text");if(Un){ie(Un);return}var _n=Ze.getAttribute("cm-marker"),Si;if(_n){var zi=it.findMarks(be(ht,0),be(gt+1,0),_t(+_n));zi.length&&(Si=zi[0].find(0))&&ie(xi(it.doc,Si.from,Si.to).join(Gt));return}if(Ze.getAttribute("contenteditable")=="false")return;var hr=/^(pre|div|p|li|table|br)$/i.test(Ze.nodeName);if(!/^br$/i.test(Ze.nodeName)&&Ze.textContent.length==0)return;hr&&Fe();for(var Ki=0;Ki<Ze.childNodes.length;Ki++)qe(Ze.childNodes[Ki]);/^(pre|p)$/i.test(Ze.nodeName)&&(jt=!0),hr&&(Nt=!0)}else Ze.nodeType==3&&ie(Ze.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;qe(st),st!=dt;)st=st.nextSibling,jt=!1;return At}function kc(it,st,dt){var ht;if(st==it.display.lineDiv){if(ht=it.display.lineDiv.childNodes[dt],!ht)return Vd(it.clipPos(be(it.display.viewTo-1)),!0);st=null,dt=0}else for(ht=st;;ht=ht.parentNode){if(!ht||ht==it.display.lineDiv)return null;if(ht.parentNode&&ht.parentNode==it.display.lineDiv)break}for(var gt=0;gt<it.display.view.length;gt++){var At=it.display.view[gt];if(At.node==ht)return lm(At,st,dt)}}function lm(it,st,dt){var ht=it.text.firstChild,gt=!1;if(!st||!He(ht,st))return Vd(be(Xt(it.line),0),!0);if(st==ht&&(gt=!0,st=ht.childNodes[dt],dt=0,!st)){var At=it.rest?Pe(it.rest):it.line;return Vd(be(Xt(At),At.text.length),gt)}var Nt=st.nodeType==3?st:null,Gt=st;for(!Nt&&st.childNodes.length==1&&st.firstChild.nodeType==3&&(Nt=st.firstChild,dt&&(dt=Nt.nodeValue.length));Gt.parentNode!=ht;)Gt=Gt.parentNode;var jt=it.measure,_t=jt.maps;function Fe(Si,zi,hr){for(var Ki=-1;Ki<(_t?_t.length:0);Ki++)for(var yr=Ki<0?jt.map:_t[Ki],Zr=0;Zr<yr.length;Zr+=3){var Zi=yr[Zr+2];if(Zi==Si||Zi==zi){var wo=Xt(Ki<0?it.line:it.rest[Ki]),As=yr[Zr]+hr;return(hr<0||Zi!=Si)&&(As=yr[Zr+(hr?1:0)]),be(wo,As)}}}var ie=Fe(Nt,Gt,dt);if(ie)return Vd(ie,gt);for(var qe=Gt.nextSibling,Ze=Nt?Nt.nodeValue.length-dt:0;qe;qe=qe.nextSibling){if(ie=Fe(qe,qe.firstChild,0),ie)return Vd(be(ie.line,ie.ch-Ze),gt);Ze+=qe.textContent.length}for(var Un=Gt.previousSibling,_n=dt;Un;Un=Un.previousSibling){if(ie=Fe(Un,Un.firstChild,-1),ie)return Vd(be(ie.line,ie.ch+_n),gt);_n+=Un.textContent.length}}var ia=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Ot,this.hasSelection=!1,this.composing=null};ia.prototype.init=function(it){var st=this,dt=this,ht=this.cm;this.createField(it);var gt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),bt&&(gt.style.width="0px"),Wn(gt,"input",function(){ce&&fe>=9&&st.hasSelection&&(st.hasSelection=null),dt.poll()}),Wn(gt,"paste",function(Nt){An(ht,Nt)||zg(Nt,ht)||(ht.state.pasteIncoming=+new Date,dt.fastPoll())});function At(Nt){if(!An(ht,Nt)){if(ht.somethingSelected())sd({lineWise:!1,text:ht.getSelections()});else if(ht.options.lineWiseCopyCut){var Gt=Hg(ht);sd({lineWise:!0,text:Gt.text}),Nt.type=="cut"?ht.setSelections(Gt.ranges,null,ve):(dt.prevInput="",gt.value=Gt.text.join(`
|
|
`),on(gt))}else return;Nt.type=="cut"&&(ht.state.cutIncoming=+new Date)}}Wn(gt,"cut",At),Wn(gt,"copy",At),Wn(it.scroller,"paste",function(Nt){if(!(Mr(it,Nt)||An(ht,Nt))){if(!gt.dispatchEvent){ht.state.pasteIncoming=+new Date,dt.focus();return}var Gt=new Event("paste");Gt.clipboardData=Nt.clipboardData,gt.dispatchEvent(Gt)}}),Wn(it.lineSpace,"selectstart",function(Nt){Mr(it,Nt)||Sr(Nt)}),Wn(gt,"compositionstart",function(){var Nt=ht.getCursor("from");dt.composing&&dt.composing.range.clear(),dt.composing={start:Nt,range:ht.markText(Nt,ht.getCursor("to"),{className:"CodeMirror-composing"})}}),Wn(gt,"compositionend",function(){dt.composing&&(dt.poll(),dt.composing.range.clear(),dt.composing=null)})},ia.prototype.createField=function(it){this.wrapper=Wg(),this.textarea=this.wrapper.firstChild},ia.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},ia.prototype.prepareSelection=function(){var it=this.cm,st=it.display,dt=it.doc,ht=Xl(it);if(it.options.moveInputWithCursor){var gt=Xi(it,dt.sel.primary().head,"div"),At=st.wrapper.getBoundingClientRect(),Nt=st.lineDiv.getBoundingClientRect();ht.teTop=Math.max(0,Math.min(st.wrapper.clientHeight-10,gt.top+Nt.top-At.top)),ht.teLeft=Math.max(0,Math.min(st.wrapper.clientWidth-10,gt.left+Nt.left-At.left))}return ht},ia.prototype.showSelection=function(it){var st=this.cm,dt=st.display;qt(dt.cursorDiv,it.cursors),qt(dt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},ia.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var st=this.cm;if(st.somethingSelected()){this.prevInput="";var dt=st.getSelection();this.textarea.value=dt,st.state.focused&&on(this.textarea),ce&&fe>=9&&(this.hasSelection=dt)}else it||(this.prevInput=this.textarea.value="",ce&&fe>=9&&(this.hasSelection=null))}},ia.prototype.getField=function(){return this.textarea},ia.prototype.supportsTouch=function(){return!1},ia.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!nt||De()!=this.textarea))try{this.textarea.focus()}catch(it){}},ia.prototype.blur=function(){this.textarea.blur()},ia.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ia.prototype.receivedFocus=function(){this.slowPoll()},ia.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},ia.prototype.fastPoll=function(){var it=!1,st=this;st.pollingFast=!0;function dt(){var ht=st.poll();!ht&&!it?(it=!0,st.polling.set(60,dt)):(st.pollingFast=!1,st.slowPoll())}st.polling.set(20,dt)},ia.prototype.poll=function(){var it=this,st=this.cm,dt=this.textarea,ht=this.prevInput;if(this.contextMenuPending||!st.state.focused||Lt(dt)&&!ht&&!this.composing||st.isReadOnly()||st.options.disableInput||st.state.keySeq)return!1;var gt=dt.value;if(gt==ht&&!st.somethingSelected())return!1;if(ce&&fe>=9&&this.hasSelection===gt||ct&&/[\uf700-\uf7ff]/.test(gt))return st.display.input.reset(),!1;if(st.doc.sel==st.display.selForContextMenu){var At=gt.charCodeAt(0);if(At==8203&&!ht&&(ht="\u200B"),At==8666)return this.reset(),this.cm.execCommand("undo")}for(var Nt=0,Gt=Math.min(ht.length,gt.length);Nt<Gt&&ht.charCodeAt(Nt)==gt.charCodeAt(Nt);)++Nt;return Cr(st,function(){Mc(st,gt.slice(Nt),ht.length-Nt,null,it.composing?"*compose":null),gt.length>1e3||gt.indexOf(`
|
|
`)>-1?dt.value=it.prevInput="":it.prevInput=gt,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ia.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ia.prototype.onKeyPress=function(){ce&&fe>=9&&(this.hasSelection=null),this.fastPoll()},ia.prototype.onContextMenu=function(it){var st=this,dt=st.cm,ht=dt.display,gt=st.textarea;st.contextMenuPending&&st.contextMenuPending();var At=Ys(dt,it),Nt=ht.scroller.scrollTop;if(!At||Bt)return;var Gt=dt.options.resetSelectionOnContextMenu;Gt&&dt.doc.sel.contains(At)==-1&&Dr(dt,Ia)(dt.doc,Wu(At),ve);var jt=gt.style.cssText,_t=st.wrapper.style.cssText,Fe=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",gt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(it.clientY-Fe.top-5)+"px; left: "+(it.clientX-Fe.left-5)+`px;
|
|
z-index: 1000; background: `+(ce?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ie;ue&&(ie=window.scrollY),ht.input.focus(),ue&&window.scrollTo(null,ie),ht.input.reset(),dt.somethingSelected()||(gt.value=st.prevInput=" "),st.contextMenuPending=Ze,ht.selForContextMenu=dt.doc.sel,clearTimeout(ht.detectingSelectAll);function qe(){if(gt.selectionStart!=null){var _n=dt.somethingSelected(),Si="\u200B"+(_n?gt.value:"");gt.value="\u21DA",gt.value=Si,st.prevInput=_n?"":"\u200B",gt.selectionStart=1,gt.selectionEnd=Si.length,ht.selForContextMenu=dt.doc.sel}}function Ze(){if(st.contextMenuPending==Ze&&(st.contextMenuPending=!1,st.wrapper.style.cssText=_t,gt.style.cssText=jt,ce&&fe<9&&ht.scrollbars.setScrollTop(ht.scroller.scrollTop=Nt),gt.selectionStart!=null)){(!ce||ce&&fe<9)&&qe();var _n=0,Si=function(){ht.selForContextMenu==dt.doc.sel&>.selectionStart==0&>.selectionEnd>0&&st.prevInput=="\u200B"?Dr(dt,Xs)(dt):_n++<10?ht.detectingSelectAll=setTimeout(Si,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout(Si,200)}}if(ce&&fe>=9&&qe(),Dt){jo(it);var Un=function(){Ei(window,"mouseup",Un),setTimeout(Ze,20)};Wn(window,"mouseup",Un)}else setTimeout(Ze,50)},ia.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},ia.prototype.setUneditable=function(){},ia.prototype.needsContentAttribute=!1;function um(it,st){if(st=st?fn(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var dt=De();st.autofocus=dt==it||it.getAttribute("autofocus")!=null&&dt==document.body}function ht(){it.value=Gt.getValue()}var gt;if(it.form&&(Wn(it.form,"submit",ht),!st.leaveSubmitMethodAlone)){var At=it.form;gt=At.submit;try{var Nt=At.submit=function(){ht(),At.submit=gt,At.submit(),At.submit=Nt}}catch(jt){}}st.finishInit=function(jt){jt.save=ht,jt.getTextArea=function(){return it},jt.toTextArea=function(){jt.toTextArea=isNaN,ht(),it.parentNode.removeChild(jt.getWrapperElement()),it.style.display="",it.form&&(Ei(it.form,"submit",ht),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=gt))}},it.style.display="none";var Gt=Qo(function(jt){return it.parentNode.insertBefore(jt,it.nextSibling)},st);return Gt}function Zd(it){it.off=Ei,it.on=Wn,it.wheelEventPixels=Pl,it.Doc=Fa,it.splitLines=lo,it.countColumn=te,it.findColumn=cn,it.isWordChar=kt,it.Pass=_e,it.signal=Pi,it.Line=Je,it.changeEnd=gh,it.scrollbarModel=Yh,it.Pos=be,it.cmpPos=Ln,it.modes=Nn,it.mimeModes=Cn,it.resolveMode=Te,it.getMode=Ne,it.modeExtensions=we,it.extendMode=Ye,it.copyState=di,it.startState=Yi,it.innerMode=ci,it.commands=yh,it.keyMap=ll,it.keyName=em,it.isModifierKey=Rd,it.lookupKey=Rl,it.normalizeKeyMap=Ag,it.StringStream=Re,it.SharedTextMarker=Cu,it.TextMarker=xe,it.LineWidget=Zu,it.e_preventDefault=Sr,it.e_stopPropagation=_r,it.e_stop=jo,it.addClass=tn,it.contains=He,it.rmClass=Ut,it.keyNames=Au}sm(Qo),xh(Qo);var Uu="iter insert remove copy getEditor constructor".split(" ");for(var bc in Fa.prototype)Fa.prototype.hasOwnProperty(bc)&&Le(Uu,bc)<0&&(Qo.prototype[bc]=function(it){return function(){return it.apply(this.doc,arguments)}}(Fa.prototype[bc]));return dr(Fa),Qo.inputStyles={textarea:ia,contenteditable:cs},Qo.defineMode=function(it){!Qo.defaults.mode&&it!="null"&&(Qo.defaults.mode=it),gi.apply(this,arguments)},Qo.defineMIME=Ui,Qo.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Qo.defineMIME("text/plain","null"),Qo.defineExtension=function(it,st){Qo.prototype[it]=st},Qo.defineDocExtension=function(it,st){Fa.prototype[it]=st},Qo.fromTextArea=um,Zd(Qo),Qo.version="5.58.2",Qo})},25419:function(xn,$n,Rt){(function(St){St(Rt(89780),Rt(15525),Rt(98101))})(function(St){"use strict";St.defineMode("markdown",function(ee,me){var he=St.getMode(ee,"text/html"),ce=he.name=="null";function fe(te){if(St.findModeByName){var Ot=St.findModeByName(te);Ot&&(te=Ot.mime||Ot.mimes[0])}var Le=St.getMode(ee,te);return Le.name=="null"?null:Le}me.highlightFormatting===void 0&&(me.highlightFormatting=!1),me.maxBlockquoteDepth===void 0&&(me.maxBlockquoteDepth=0),me.taskLists===void 0&&(me.taskLists=!1),me.strikethrough===void 0&&(me.strikethrough=!1),me.emoji===void 0&&(me.emoji=!1),me.fencedCodeBlockHighlighting===void 0&&(me.fencedCodeBlockHighlighting=!0),me.fencedCodeBlockDefaultMode===void 0&&(me.fencedCodeBlockDefaultMode="text/plain"),me.xml===void 0&&(me.xml=!0),me.tokenTypeOverrides===void 0&&(me.tokenTypeOverrides={});var ue={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Be in ue)ue.hasOwnProperty(Be)&&me.tokenTypeOverrides[Be]&&(ue[Be]=me.tokenTypeOverrides[Be]);var Ce=/^([*\-_])(?:\s*\1){2,}\s*$/,Bt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,je=/^\[(x| )\](?=\s)/i,le=me.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ge=/^ {0,3}(?:\={1,}|-{2,})\s*$/,bt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,ct=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,lt=" ";function pt(te,Ot,Le){return Ot.f=Ot.inline=Le,Le(te,Ot)}function vt(te,Ot,Le){return Ot.f=Ot.block=Le,Le(te,Ot)}function Pt(te){return!te||!/\S/.test(te.string)}function Dt(te){if(te.linkTitle=!1,te.linkHref=!1,te.linkText=!1,te.em=!1,te.strong=!1,te.strikethrough=!1,te.quote=0,te.indentedCode=!1,te.f==Ut){var Ot=ce;if(!Ot){var Le=St.innerMode(he,te.htmlState);Ot=Le.mode.name=="xml"&&Le.state.tagStart===null&&!Le.state.context&&Le.state.tokenize.isInText}Ot&&(te.f=Me,te.block=Vt,te.htmlState=null)}return te.trailingSpace=0,te.trailingSpaceNewLine=!1,te.prevLine=te.thisLine,te.thisLine={stream:null},null}function Vt(te,Ot){var Le=te.column()===Ot.indentation,dn=Pt(Ot.prevLine.stream),_e=Ot.indentedCode,ve=Ot.prevLine.hr,Xe=Ot.list!==!1,ke=(Ot.listStack[Ot.listStack.length-1]||0)+3;Ot.indentedCode=!1;var cn=Ot.indentation;if(Ot.indentationDiff===null&&(Ot.indentationDiff=Ot.indentation,Xe)){for(Ot.list=null;cn<Ot.listStack[Ot.listStack.length-1];)Ot.listStack.pop(),Ot.listStack.length?Ot.indentation=Ot.listStack[Ot.listStack.length-1]:Ot.list=!1;Ot.list!==!1&&(Ot.indentationDiff=cn-Ot.listStack[Ot.listStack.length-1])}var Ie=!dn&&!ve&&!Ot.prevLine.header&&(!Xe||!_e)&&!Ot.prevLine.fencedCodeEnd,ae=(Ot.list===!1||ve||dn)&&Ot.indentation<=ke&&te.match(Ce),Pe=null;if(Ot.indentationDiff>=4&&(_e||Ot.prevLine.fencedCodeEnd||Ot.prevLine.header||dn))return te.skipToEnd(),Ot.indentedCode=!0,ue.code;if(te.eatSpace())return null;if(Le&&Ot.indentation<=ke&&(Pe=te.match(le))&&Pe[1].length<=6)return Ot.quote=0,Ot.header=Pe[1].length,Ot.thisLine.header=!0,me.highlightFormatting&&(Ot.formatting="header"),Ot.f=Ot.inline,qt(Ot);if(Ot.indentation<=ke&&te.eat(">"))return Ot.quote=Le?1:Ot.quote+1,me.highlightFormatting&&(Ot.formatting="quote"),te.eatSpace(),qt(Ot);if(!ae&&!Ot.setext&&Le&&Ot.indentation<=ke&&(Pe=te.match(Bt))){var sn=Pe[1]?"ol":"ul";return Ot.indentation=cn+te.current().length,Ot.list=!0,Ot.quote=0,Ot.listStack.push(Ot.indentation),Ot.em=!1,Ot.strong=!1,Ot.code=!1,Ot.strikethrough=!1,me.taskLists&&te.match(je,!1)&&(Ot.taskList=!0),Ot.f=Ot.inline,me.highlightFormatting&&(Ot.formatting=["list","list-"+sn]),qt(Ot)}else{if(Le&&Ot.indentation<=ke&&(Pe=te.match(et,!0)))return Ot.quote=0,Ot.fencedEndRE=new RegExp(Pe[1]+"+ *$"),Ot.localMode=me.fencedCodeBlockHighlighting&&fe(Pe[2]||me.fencedCodeBlockDefaultMode),Ot.localMode&&(Ot.localState=St.startState(Ot.localMode)),Ot.f=Ot.block=se,me.highlightFormatting&&(Ot.formatting="code-block"),Ot.code=-1,qt(Ot);if(Ot.setext||(!Ie||!Xe)&&!Ot.quote&&Ot.list===!1&&!Ot.code&&!ae&&!nt.test(te.string)&&(Pe=te.lookAhead(1))&&(Pe=Pe.match(Ge)))return Ot.setext?(Ot.header=Ot.setext,Ot.setext=0,te.skipToEnd(),me.highlightFormatting&&(Ot.formatting="header")):(Ot.header=Pe[0].charAt(0)=="="?1:2,Ot.setext=Ot.header),Ot.thisLine.header=!0,Ot.f=Ot.inline,qt(Ot);if(ae)return te.skipToEnd(),Ot.hr=!0,Ot.thisLine.hr=!0,ue.hr;if(te.peek()==="[")return pt(te,Ot,Fn)}return pt(te,Ot,Ot.inline)}function Ut(te,Ot){var Le=he.token(te,Ot.htmlState);if(!ce){var dn=St.innerMode(he,Ot.htmlState);(dn.mode.name=="xml"&&dn.state.tagStart===null&&!dn.state.context&&dn.state.tokenize.isInText||Ot.md_inside&&te.current().indexOf(">")>-1)&&(Ot.f=Me,Ot.block=Vt,Ot.htmlState=null)}return Le}function se(te,Ot){var Le=Ot.listStack[Ot.listStack.length-1]||0,dn=Ot.indentation<Le,_e=Le+3;if(Ot.fencedEndRE&&Ot.indentation<=_e&&(dn||te.match(Ot.fencedEndRE))){me.highlightFormatting&&(Ot.formatting="code-block");var ve;return dn||(ve=qt(Ot)),Ot.localMode=Ot.localState=null,Ot.block=Vt,Ot.f=Me,Ot.fencedEndRE=null,Ot.code=0,Ot.thisLine.fencedCodeEnd=!0,dn?vt(te,Ot,Ot.block):ve}else return Ot.localMode?Ot.localMode.token(te,Ot.localState):(te.skipToEnd(),ue.code)}function qt(te){var Ot=[];if(te.formatting){Ot.push(ue.formatting),typeof te.formatting=="string"&&(te.formatting=[te.formatting]);for(var Le=0;Le<te.formatting.length;Le++)Ot.push(ue.formatting+"-"+te.formatting[Le]),te.formatting[Le]==="header"&&Ot.push(ue.formatting+"-"+te.formatting[Le]+"-"+te.header),te.formatting[Le]==="quote"&&(!me.maxBlockquoteDepth||me.maxBlockquoteDepth>=te.quote?Ot.push(ue.formatting+"-"+te.formatting[Le]+"-"+te.quote):Ot.push("error"))}if(te.taskOpen)return Ot.push("meta"),Ot.length?Ot.join(" "):null;if(te.taskClosed)return Ot.push("property"),Ot.length?Ot.join(" "):null;if(te.linkHref?Ot.push(ue.linkHref,"url"):(te.strong&&Ot.push(ue.strong),te.em&&Ot.push(ue.em),te.strikethrough&&Ot.push(ue.strikethrough),te.emoji&&Ot.push(ue.emoji),te.linkText&&Ot.push(ue.linkText),te.code&&Ot.push(ue.code),te.image&&Ot.push(ue.image),te.imageAltText&&Ot.push(ue.imageAltText,"link"),te.imageMarker&&Ot.push(ue.imageMarker)),te.header&&Ot.push(ue.header,ue.header+"-"+te.header),te.quote&&(Ot.push(ue.quote),!me.maxBlockquoteDepth||me.maxBlockquoteDepth>=te.quote?Ot.push(ue.quote+"-"+te.quote):Ot.push(ue.quote+"-"+me.maxBlockquoteDepth)),te.list!==!1){var dn=(te.listStack.length-1)%3;dn?dn===1?Ot.push(ue.list2):Ot.push(ue.list3):Ot.push(ue.list1)}return te.trailingSpaceNewLine?Ot.push("trailing-space-new-line"):te.trailingSpace&&Ot.push("trailing-space-"+(te.trailingSpace%2?"a":"b")),Ot.length?Ot.join(" "):null}function Jt(te,Ot){if(te.match(bt,!0))return qt(Ot)}function Me(te,Ot){var Le=Ot.text(te,Ot);if(typeof Le!="undefined")return Le;if(Ot.list)return Ot.list=null,qt(Ot);if(Ot.taskList){var dn=te.match(je,!0)[1]===" ";return dn?Ot.taskOpen=!0:Ot.taskClosed=!0,me.highlightFormatting&&(Ot.formatting="task"),Ot.taskList=!1,qt(Ot)}if(Ot.taskOpen=!1,Ot.taskClosed=!1,Ot.header&&te.match(/^#+$/,!0))return me.highlightFormatting&&(Ot.formatting="header"),qt(Ot);var _e=te.next();if(Ot.linkTitle){Ot.linkTitle=!1;var ve=_e;_e==="("&&(ve=")"),ve=(ve+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Xe="^\\s*(?:[^"+ve+"\\\\]+|\\\\\\\\|\\\\.)"+ve;if(te.match(new RegExp(Xe),!0))return ue.linkHref}if(_e==="`"){var ke=Ot.formatting;me.highlightFormatting&&(Ot.formatting="code"),te.eatWhile("`");var cn=te.current().length;if(Ot.code==0&&(!Ot.quote||cn==1))return Ot.code=cn,qt(Ot);if(cn==Ot.code){var Ie=qt(Ot);return Ot.code=0,Ie}else return Ot.formatting=ke,qt(Ot)}else if(Ot.code)return qt(Ot);if(_e==="\\"&&(te.next(),me.highlightFormatting)){var ae=qt(Ot),Pe=ue.formatting+"-escape";return ae?ae+" "+Pe:Pe}if(_e==="!"&&te.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ot.imageMarker=!0,Ot.image=!0,me.highlightFormatting&&(Ot.formatting="image"),qt(Ot);if(_e==="["&&Ot.imageMarker&&te.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ot.imageMarker=!1,Ot.imageAltText=!0,me.highlightFormatting&&(Ot.formatting="image"),qt(Ot);if(_e==="]"&&Ot.imageAltText){me.highlightFormatting&&(Ot.formatting="image");var ae=qt(Ot);return Ot.imageAltText=!1,Ot.image=!1,Ot.inline=Ot.f=He,ae}if(_e==="["&&!Ot.image)return Ot.linkText&&te.match(/^.*?\]/)||(Ot.linkText=!0,me.highlightFormatting&&(Ot.formatting="link")),qt(Ot);if(_e==="]"&&Ot.linkText){me.highlightFormatting&&(Ot.formatting="link");var ae=qt(Ot);return Ot.linkText=!1,Ot.inline=Ot.f=te.match(/\(.*?\)| ?\[.*?\]/,!1)?He:Me,ae}if(_e==="<"&&te.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ot.f=Ot.inline=pe,me.highlightFormatting&&(Ot.formatting="link");var ae=qt(Ot);return ae?ae+=" ":ae="",ae+ue.linkInline}if(_e==="<"&&te.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ot.f=Ot.inline=pe,me.highlightFormatting&&(Ot.formatting="link");var ae=qt(Ot);return ae?ae+=" ":ae="",ae+ue.linkEmail}if(me.xml&&_e==="<"&&te.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var sn=te.string.indexOf(">",te.pos);if(sn!=-1){var an=te.string.substring(te.start,sn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(an)&&(Ot.md_inside=!0)}return te.backUp(1),Ot.htmlState=St.startState(he),vt(te,Ot,Ut)}if(me.xml&&_e==="<"&&te.match(/^\/\w*?>/))return Ot.md_inside=!1,"tag";if(_e==="*"||_e==="_"){for(var Tt=1,Ct=te.pos==1?" ":te.string.charAt(te.pos-2);Tt<3&&te.eat(_e);)Tt++;var xt=te.peek()||" ",kt=!/\s/.test(xt)&&(!ct.test(xt)||/\s/.test(Ct)||ct.test(Ct)),zt=!/\s/.test(Ct)&&(!ct.test(Ct)||/\s/.test(xt)||ct.test(xt)),Et=null,Ae=null;if(Tt%2&&(!Ot.em&&kt&&(_e==="*"||!zt||ct.test(Ct))?Et=!0:Ot.em==_e&&zt&&(_e==="*"||!kt||ct.test(xt))&&(Et=!1)),Tt>1&&(!Ot.strong&&kt&&(_e==="*"||!zt||ct.test(Ct))?Ae=!0:Ot.strong==_e&&zt&&(_e==="*"||!kt||ct.test(xt))&&(Ae=!1)),Ae!=null||Et!=null){me.highlightFormatting&&(Ot.formatting=Et==null?"strong":Ae==null?"em":"strong em"),Et===!0&&(Ot.em=_e),Ae===!0&&(Ot.strong=_e);var Ie=qt(Ot);return Et===!1&&(Ot.em=!1),Ae===!1&&(Ot.strong=!1),Ie}}else if(_e===" "&&(te.eat("*")||te.eat("_"))){if(te.peek()===" ")return qt(Ot);te.backUp(1)}if(me.strikethrough){if(_e==="~"&&te.eatWhile(_e)){if(Ot.strikethrough){me.highlightFormatting&&(Ot.formatting="strikethrough");var Ie=qt(Ot);return Ot.strikethrough=!1,Ie}else if(te.match(/^[^\s]/,!1))return Ot.strikethrough=!0,me.highlightFormatting&&(Ot.formatting="strikethrough"),qt(Ot)}else if(_e===" "&&te.match(/^~~/,!0)){if(te.peek()===" ")return qt(Ot);te.backUp(2)}}if(me.emoji&&_e===":"&&te.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ot.emoji=!0,me.highlightFormatting&&(Ot.formatting="emoji");var We=qt(Ot);return Ot.emoji=!1,We}return _e===" "&&(te.match(/^ +$/,!1)?Ot.trailingSpace++:Ot.trailingSpace&&(Ot.trailingSpaceNewLine=!0)),qt(Ot)}function pe(te,Ot){var Le=te.next();if(Le===">"){Ot.f=Ot.inline=Me,me.highlightFormatting&&(Ot.formatting="link");var dn=qt(Ot);return dn?dn+=" ":dn="",dn+ue.linkInline}return te.match(/^[^>]+/,!0),ue.linkInline}function He(te,Ot){if(te.eatSpace())return null;var Le=te.next();return Le==="("||Le==="["?(Ot.f=Ot.inline=tn(Le==="("?")":"]"),me.highlightFormatting&&(Ot.formatting="link-string"),Ot.linkHref=!0,qt(Ot)):"error"}var De={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function tn(te){return function(Ot,Le){var dn=Ot.next();if(dn===te){Le.f=Le.inline=Me,me.highlightFormatting&&(Le.formatting="link-string");var _e=qt(Le);return Le.linkHref=!1,_e}return Ot.match(De[te]),Le.linkHref=!0,qt(Le)}}function Fn(te,Ot){return te.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ot.f=on,te.next(),me.highlightFormatting&&(Ot.formatting="link"),Ot.linkText=!0,qt(Ot)):pt(te,Ot,Me)}function on(te,Ot){if(te.match(/^\]:/,!0)){Ot.f=Ot.inline=pn,me.highlightFormatting&&(Ot.formatting="link");var Le=qt(Ot);return Ot.linkText=!1,Le}return te.match(/^([^\]\\]|\\.)+/,!0),ue.linkText}function pn(te,Ot){return te.eatSpace()?null:(te.match(/^[^\s]+/,!0),te.peek()===void 0?Ot.linkTitle=!0:te.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ot.f=Ot.inline=Me,ue.linkHref+" url")}var fn={startState:function(){return{f:Vt,prevLine:{stream:null},thisLine:{stream:null},block:Vt,htmlState:null,indentation:0,inline:Me,text:Jt,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(te){return{f:te.f,prevLine:te.prevLine,thisLine:te.thisLine,block:te.block,htmlState:te.htmlState&&St.copyState(he,te.htmlState),indentation:te.indentation,localMode:te.localMode,localState:te.localMode?St.copyState(te.localMode,te.localState):null,inline:te.inline,text:te.text,formatting:!1,linkText:te.linkText,linkTitle:te.linkTitle,linkHref:te.linkHref,code:te.code,em:te.em,strong:te.strong,strikethrough:te.strikethrough,emoji:te.emoji,header:te.header,setext:te.setext,hr:te.hr,taskList:te.taskList,list:te.list,listStack:te.listStack.slice(0),quote:te.quote,indentedCode:te.indentedCode,trailingSpace:te.trailingSpace,trailingSpaceNewLine:te.trailingSpaceNewLine,md_inside:te.md_inside,fencedEndRE:te.fencedEndRE}},token:function(te,Ot){if(Ot.formatting=!1,te!=Ot.thisLine.stream){if(Ot.header=0,Ot.hr=!1,te.match(/^\s*$/,!0))return Dt(Ot),null;if(Ot.prevLine=Ot.thisLine,Ot.thisLine={stream:te},Ot.taskList=!1,Ot.trailingSpace=0,Ot.trailingSpaceNewLine=!1,!Ot.localState&&(Ot.f=Ot.block,Ot.f!=Ut)){var Le=te.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Ot.indentation=Le,Ot.indentationDiff=null,Le>0)return null}}return Ot.f(te,Ot)},innerMode:function(te){return te.block==Ut?{state:te.htmlState,mode:he}:te.localState?{state:te.localState,mode:te.localMode}:{state:te,mode:fn}},indent:function(te,Ot,Le){return te.block==Ut&&he.indent?he.indent(te.htmlState,Ot,Le):te.localState&&te.localMode.indent?te.localMode.indent(te.localState,Ot,Le):St.Pass},blankLine:Dt,getType:qt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return fn},"xml"),St.defineMIME("text/markdown","markdown"),St.defineMIME("text/x-markdown","markdown")})},98101:function(xn,$n,Rt){(function(St){St(Rt(89780))})(function(St){"use strict";St.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ee=0;ee<St.modeInfo.length;ee++){var me=St.modeInfo[ee];me.mimes&&(me.mime=me.mimes[0])}St.findModeByMIME=function(he){he=he.toLowerCase();for(var ce=0;ce<St.modeInfo.length;ce++){var fe=St.modeInfo[ce];if(fe.mime==he)return fe;if(fe.mimes){for(var ue=0;ue<fe.mimes.length;ue++)if(fe.mimes[ue]==he)return fe}}if(/\+xml$/.test(he))return St.findModeByMIME("application/xml");if(/\+json$/.test(he))return St.findModeByMIME("application/json")},St.findModeByExtension=function(he){he=he.toLowerCase();for(var ce=0;ce<St.modeInfo.length;ce++){var fe=St.modeInfo[ce];if(fe.ext){for(var ue=0;ue<fe.ext.length;ue++)if(fe.ext[ue]==he)return fe}}},St.findModeByFileName=function(he){for(var ce=0;ce<St.modeInfo.length;ce++){var fe=St.modeInfo[ce];if(fe.file&&fe.file.test(he))return fe}var ue=he.lastIndexOf("."),Be=ue>-1&&he.substring(ue+1,he.length);if(Be)return St.findModeByExtension(Be)},St.findModeByName=function(he){he=he.toLowerCase();for(var ce=0;ce<St.modeInfo.length;ce++){var fe=St.modeInfo[ce];if(fe.name.toLowerCase()==he)return fe;if(fe.alias){for(var ue=0;ue<fe.alias.length;ue++)if(fe.alias[ue].toLowerCase()==he)return fe}}}})},67549:function(xn,$n,Rt){(function(St){St(Rt(89780))})(function(St){"use strict";St.defineMode("stex",function(ee,me){"use strict";function he(bt,et){bt.cmdState.push(et)}function ce(bt){return bt.cmdState.length>0?bt.cmdState[bt.cmdState.length-1]:null}function fe(bt){var et=bt.cmdState.pop();et&&et.closeBracket()}function ue(bt){for(var et=bt.cmdState,nt=et.length-1;nt>=0;nt--){var ct=et[nt];if(ct.name!="DEFAULT")return ct}return{styleIdentifier:function(){return null}}}function Be(bt,et,nt){return function(){this.name=bt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ce={};Ce.importmodule=Be("importmodule","tag",["string","builtin"]),Ce.documentclass=Be("documentclass","tag",["","atom"]),Ce.usepackage=Be("usepackage","tag",["atom"]),Ce.begin=Be("begin","tag",["atom"]),Ce.end=Be("end","tag",["atom"]),Ce.label=Be("label","tag",["atom"]),Ce.ref=Be("ref","tag",["atom"]),Ce.eqref=Be("eqref","tag",["atom"]),Ce.cite=Be("cite","tag",["atom"]),Ce.bibitem=Be("bibitem","tag",["atom"]),Ce.Bibitem=Be("Bibitem","tag",["atom"]),Ce.RBibitem=Be("RBibitem","tag",["atom"]),Ce.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Bt(bt,et){bt.f=et}function je(bt,et){var nt;if(bt.match(/^\\[a-zA-Z@]+/)){var ct=bt.current().slice(1);return nt=Ce.hasOwnProperty(ct)?Ce[ct]:Ce.DEFAULT,nt=new nt,he(et,nt),Bt(et,Ge),nt.style}if(bt.match(/^\\[$&%#{}_]/)||bt.match(/^\\[,;!\/\\]/))return"tag";if(bt.match("\\["))return Bt(et,function(pt,vt){return le(pt,vt,"\\]")}),"keyword";if(bt.match("\\("))return Bt(et,function(pt,vt){return le(pt,vt,"\\)")}),"keyword";if(bt.match("$$"))return Bt(et,function(pt,vt){return le(pt,vt,"$$")}),"keyword";if(bt.match("$"))return Bt(et,function(pt,vt){return le(pt,vt,"$")}),"keyword";var lt=bt.next();if(lt=="%")return bt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(nt=ce(et),nt)nt.closeBracket(lt),Bt(et,Ge);else return"error";return"bracket"}else return lt=="{"||lt=="["?(nt=Ce.DEFAULT,nt=new nt,he(et,nt),"bracket"):/\d/.test(lt)?(bt.eatWhile(/[\w.%]/),"atom"):(bt.eatWhile(/[\w\-_]/),nt=ue(et),nt.name=="begin"&&(nt.argument=bt.current()),nt.styleIdentifier())}function le(bt,et,nt){if(bt.eatSpace())return null;if(nt&&bt.match(nt))return Bt(et,je),"keyword";if(bt.match(/^\\[a-zA-Z@]+/))return"tag";if(bt.match(/^[a-zA-Z]+/))return"variable-2";if(bt.match(/^\\[$&%#{}_]/)||bt.match(/^\\[,;!\/]/)||bt.match(/^[\^_&]/))return"tag";if(bt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(bt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ct=bt.next();return ct=="{"||ct=="}"||ct=="["||ct=="]"||ct=="("||ct==")"?"bracket":ct=="%"?(bt.skipToEnd(),"comment"):"error"}function Ge(bt,et){var nt=bt.peek(),ct;return nt=="{"||nt=="["?(ct=ce(et),ct.openBracket(nt),bt.eat(nt),Bt(et,je),"bracket"):/[ \t\r]/.test(nt)?(bt.eat(nt),null):(Bt(et,je),fe(et),je(bt,et))}return{startState:function(){var bt=me.inMathMode?function(et,nt){return le(et,nt)}:je;return{cmdState:[],f:bt}},copyState:function(bt){return{cmdState:bt.cmdState.slice(),f:bt.f}},token:function(bt,et){return et.f(bt,et)},blankLine:function(bt){bt.f=je,bt.cmdState.length=0},lineComment:"%"}}),St.defineMIME("text/x-stex","stex"),St.defineMIME("text/x-latex","stex")})},15525:function(xn,$n,Rt){(function(St){St(Rt(89780))})(function(St){"use strict";var ee={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},me={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};St.defineMode("xml",function(he,ce){var fe=he.indentUnit,ue={},Be=ce.htmlMode?ee:me;for(var Ce in Be)ue[Ce]=Be[Ce];for(var Ce in ce)ue[Ce]=ce[Ce];var Bt,je;function le(pe,He){function De(on){return He.tokenize=on,on(pe,He)}var tn=pe.next();if(tn=="<")return pe.eat("!")?pe.eat("[")?pe.match("CDATA[")?De(et("atom","]]>")):null:pe.match("--")?De(et("comment","-->")):pe.match("DOCTYPE",!0,!0)?(pe.eatWhile(/[\w\._\-]/),De(nt(1))):null:pe.eat("?")?(pe.eatWhile(/[\w\._\-]/),He.tokenize=et("meta","?>"),"meta"):(Bt=pe.eat("/")?"closeTag":"openTag",He.tokenize=Ge,"tag bracket");if(tn=="&"){var Fn;return pe.eat("#")?pe.eat("x")?Fn=pe.eatWhile(/[a-fA-F\d]/)&&pe.eat(";"):Fn=pe.eatWhile(/[\d]/)&&pe.eat(";"):Fn=pe.eatWhile(/[\w\.\-:]/)&&pe.eat(";"),Fn?"atom":"error"}else return pe.eatWhile(/[^&<]/),null}le.isInText=!0;function Ge(pe,He){var De=pe.next();if(De==">"||De=="/"&&pe.eat(">"))return He.tokenize=le,Bt=De==">"?"endTag":"selfcloseTag","tag bracket";if(De=="=")return Bt="equals",null;if(De=="<"){He.tokenize=le,He.state=vt,He.tagName=He.tagStart=null;var tn=He.tokenize(pe,He);return tn?tn+" tag error":"tag error"}else return/[\'\"]/.test(De)?(He.tokenize=bt(De),He.stringStartCol=pe.column(),He.tokenize(pe,He)):(pe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function bt(pe){var He=function(De,tn){for(;!De.eol();)if(De.next()==pe){tn.tokenize=Ge;break}return"string"};return He.isInAttribute=!0,He}function et(pe,He){return function(De,tn){for(;!De.eol();){if(De.match(He)){tn.tokenize=le;break}De.next()}return pe}}function nt(pe){return function(He,De){for(var tn;(tn=He.next())!=null;){if(tn=="<")return De.tokenize=nt(pe+1),De.tokenize(He,De);if(tn==">")if(pe==1){De.tokenize=le;break}else return De.tokenize=nt(pe-1),De.tokenize(He,De)}return"meta"}}function ct(pe,He,De){this.prev=pe.context,this.tagName=He,this.indent=pe.indented,this.startOfLine=De,(ue.doNotIndent.hasOwnProperty(He)||pe.context&&pe.context.noIndent)&&(this.noIndent=!0)}function lt(pe){pe.context&&(pe.context=pe.context.prev)}function pt(pe,He){for(var De;;){if(!pe.context||(De=pe.context.tagName,!ue.contextGrabbers.hasOwnProperty(De)||!ue.contextGrabbers[De].hasOwnProperty(He)))return;lt(pe)}}function vt(pe,He,De){return pe=="openTag"?(De.tagStart=He.column(),Pt):pe=="closeTag"?Dt:vt}function Pt(pe,He,De){return pe=="word"?(De.tagName=He.current(),je="tag",se):ue.allowMissingTagName&&pe=="endTag"?(je="tag bracket",se(pe,He,De)):(je="error",Pt)}function Dt(pe,He,De){if(pe=="word"){var tn=He.current();return De.context&&De.context.tagName!=tn&&ue.implicitlyClosed.hasOwnProperty(De.context.tagName)&<(De),De.context&&De.context.tagName==tn||ue.matchClosing===!1?(je="tag",Vt):(je="tag error",Ut)}else return ue.allowMissingTagName&&pe=="endTag"?(je="tag bracket",Vt(pe,He,De)):(je="error",Ut)}function Vt(pe,He,De){return pe!="endTag"?(je="error",Vt):(lt(De),vt)}function Ut(pe,He,De){return je="error",Vt(pe,He,De)}function se(pe,He,De){if(pe=="word")return je="attribute",qt;if(pe=="endTag"||pe=="selfcloseTag"){var tn=De.tagName,Fn=De.tagStart;return De.tagName=De.tagStart=null,pe=="selfcloseTag"||ue.autoSelfClosers.hasOwnProperty(tn)?pt(De,tn):(pt(De,tn),De.context=new ct(De,tn,Fn==De.indented)),vt}return je="error",se}function qt(pe,He,De){return pe=="equals"?Jt:(ue.allowMissing||(je="error"),se(pe,He,De))}function Jt(pe,He,De){return pe=="string"?Me:pe=="word"&&ue.allowUnquoted?(je="string",se):(je="error",se(pe,He,De))}function Me(pe,He,De){return pe=="string"?Me:se(pe,He,De)}return{startState:function(pe){var He={tokenize:le,state:vt,indented:pe||0,tagName:null,tagStart:null,context:null};return pe!=null&&(He.baseIndent=pe),He},token:function(pe,He){if(!He.tagName&&pe.sol()&&(He.indented=pe.indentation()),pe.eatSpace())return null;Bt=null;var De=He.tokenize(pe,He);return(De||Bt)&&De!="comment"&&(je=null,He.state=He.state(Bt||De,pe,He),je&&(De=je=="error"?De+" error":je)),De},indent:function(pe,He,De){var tn=pe.context;if(pe.tokenize.isInAttribute)return pe.tagStart==pe.indented?pe.stringStartCol+1:pe.indented+fe;if(tn&&tn.noIndent)return St.Pass;if(pe.tokenize!=Ge&&pe.tokenize!=le)return De?De.match(/^(\s*)/)[0].length:0;if(pe.tagName)return ue.multilineTagIndentPastTag!==!1?pe.tagStart+pe.tagName.length+2:pe.tagStart+fe*(ue.multilineTagIndentFactor||1);if(ue.alignCDATA&&/<!\[CDATA\[/.test(He))return 0;var Fn=He&&/^<(\/)?([\w_:\.-]*)/.exec(He);if(Fn&&Fn[1])for(;tn;)if(tn.tagName==Fn[2]){tn=tn.prev;break}else if(ue.implicitlyClosed.hasOwnProperty(tn.tagName))tn=tn.prev;else break;else if(Fn)for(;tn;){var on=ue.contextGrabbers[tn.tagName];if(on&&on.hasOwnProperty(Fn[2]))tn=tn.prev;else break}for(;tn&&tn.prev&&!tn.startOfLine;)tn=tn.prev;return tn?tn.indent+fe:pe.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ue.htmlMode?"html":"xml",helperType:ue.htmlMode?"html":"xml",skipAttribute:function(pe){pe.state==Jt&&(pe.state=se)},xmlCurrentTag:function(pe){return pe.tagName?{name:pe.tagName,close:pe.type=="closeTag"}:null},xmlCurrentContext:function(pe){for(var He=[],De=pe.context;De;De=De.prev)De.tagName&&He.push(De.tagName);return He.reverse()}}}),St.defineMIME("text/xml","xml"),St.defineMIME("application/xml","xml"),St.mimeModes.hasOwnProperty("text/html")||St.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(xn,$n,Rt){"use strict";Rt.d($n,{$u:function(){return Ce},BD:function(){return Tt},E9:function(){return Be},FF:function(){return ms},FJ:function(){return vt},Hn:function(){return pt},KX:function(){return Dt},NB:function(){return Gn},S0:function(){return Pe},UL:function(){return Bt},Vk:function(){return lt},Vm:function(){return ri},YI:function(){return sn},ZA:function(){return me},Zt:function(){return je},al:function(){return Et},bn:function(){return zt},bx:function(){return Ct},g2:function(){return an},h1:function(){return Jt},hD:function(){return dr},l4:function(){return fe},rU:function(){return Ke},s_:function(){return xt},uz:function(){return jn},z6:function(){return le}}),xn=Rt.hmd(xn),function(){var Lt;function Rn(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function ii(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Rn(a)}}function Vn(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Nn=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Cn;if(typeof Object.setPrototypeOf=="function")Cn=Object.setPrototypeOf;else{var gi;t:{var Ui={a:!0},Te={};try{Te.__proto__=Ui,gi=Te.a;break t}catch(a){}gi=!1}Cn=gi?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Ne=Cn;function we(a,y){if(a.prototype=Nn(y.prototype),a.prototype.constructor=a,Ne)Ne(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(y,x);E&&Object.defineProperty(a,x,E)}else a[x]=y[x];a.QA=y.prototype}var Ye=typeof Rt.g!="undefined"&&Rt.g!=null?Rt.g:self,di=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var E=arguments[x];if(E)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(a[b]=E[b])}return a},ci=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Yi(a,y){if(y){var x=Ye;a=a.split(".");for(var E=0;E<a.length-1;E++){var b=a[E];b in x||(x[b]={}),x=x[b]}a=a[a.length-1],E=x[a],y=y(E),y!=E&&y!=null&&ci(x,a,{writable:!0,value:y})}}Yi("Object.assign",function(a){return a||di}),Yi("Array.prototype.fill",function(a){return a||function(y,x,E){var b=this.length||0;for(0>x&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x<E;x++)this[x]=y;return this}});var Re=typeof globalThis=="object"&&globalThis||typeof Rt.g=="object"&&Rt.g.global===Rt.g&&Rt.g||typeof self=="object"&&self.self===self&&self||{};Re.requestAnimationFrame===void 0&&(Re.setImmediate===void 0?Re.requestAnimationFrame=function(a){Re.setTimeout(a,0)}:Re.requestAnimationFrame=Re.setImmediate);function hn(){}function xi(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&Re.clearTimeout(x),x=_i(function(){x=-1,a.apply(E,b)},y)}}function _i(a,y){return Re.setTimeout(a,y)}function Pn(a){return Re.document.createElement(a)}function Xt(a){throw Error(a)}function ye(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Xt(a)}function Mn(a,y,x,E){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",E!==void 0&&(x+="."+E),Xt(x+" is not in the range "+y+": "+a)}function wn(a){Re.console&&Re.console.log(a)}function be(a){return typeof a=="object"&&a!==null}function Ln(a){return Array.isArray(a)||Re.NodeList&&a instanceof Re.NodeList||Re.HTMLCollection&&a instanceof Re.HTMLCollection}function Ni(a){return Array.prototype.slice.call(a)}function ji(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Xt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Qi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Xt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function On(){var a=No.pop();return a===void 0?[]:a}function Bn(a){a.length=0,No.push(a)}function Kn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(be(a)&&a.constructor)return Kn(a.constructor);return typeof a}function or(a){var y=a;return be(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function Hi(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function vn(a,y,x){Object.defineProperty(eo.prototype,a,{get:y,set:x})}function si(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;b<a.length;b+=2)x[E++]=y[a.substr(b,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt<a.length;tt++)x=(x+1)%256,E=(E+y[x])%256,b=y[x],y[x]=y[E],y[E]=b,z+=String.fromCharCode(a.charCodeAt(tt)^y[(y[x]+y[E])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Tr=Re.navigator!==void 0&&0<Re.navigator.userAgent.indexOf("Trident/7"),Rr=Re.navigator!==void 0&&Re.navigator.platform!==void 0&&Re.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,No=[];Object.freeze([]),hn.className="Util",hn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",hn.adym="gojs.net",hn.vfo="28e645fdb266",hn.className="Util";function Ee(a,y,x){zr(this),this.j=a,this.xa=y,this.o=x}Ee.prototype.toString=function(){return"EnumValue."+this.xa};function Mi(a,y){return y==null||y===""?null:a[y]}Ye.Object.defineProperties(Ee.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Ee.className="EnumValue";function fr(){this.ew=[]}fr.prototype.toString=function(){return this.ew.join("")},fr.prototype.add=function(a){a!==""&&this.ew.push(a)},fr.className="StringBuilder";function fi(){}fi.className="PropertyCollection";var Ir={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Re.console&&Re.console.log(a)},HA:function(a,y,x,E){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(E.left,E.top+20),a.lineTo(E.left,E.top),a.lineTo(E.left+20,E.top),a.moveTo(E.right,E.bottom-20),a.lineTo(E.right,E.bottom),a.lineTo(E.right-20,E.bottom),a.stroke(),a.fillText("DB: "+Math.round(E.x)+", "+Math.round(E.y)+", "+Math.round(E.width)+", "+Math.round(E.height),E.left,E.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var E=a[y.x];if(E.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(E.prototype);for(var b={Tj:0};b.Tj<y.Zl.length;b={Tj:b.Tj},b.Tj++){var z=Object.getOwnPropertyDescriptor(E.prototype,y.Zl[b.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(E.prototype,y.Zl[b.Tj],{set:function(tt,rt){return function(){throw Error("Property "+tt.Zl[rt.Tj]+" of "+tt.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function Fr(){}Fr.prototype.reset=function(){},Fr.prototype.next=function(){return!1},Fr.prototype.Ad=function(){return!1},Fr.prototype.first=function(){return null},Fr.prototype.any=function(){return!1},Fr.prototype.all=function(){return!0},Fr.prototype.each=function(){return this},Fr.prototype.map=function(){return this},Fr.prototype.filter=function(){return this},Fr.prototype.de=function(){},Fr.prototype.toString=function(){return"EmptyIterator"},Ye.Object.defineProperties(Fr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Fr.prototype.first=Fr.prototype.first,Fr.prototype.hasNext=Fr.prototype.Ad,Fr.prototype.next=Fr.prototype.next,Fr.prototype.reset=Fr.prototype.reset;var Nr=null;Fr.className="EmptyIterator",Nr=new Fr;function wr(a){this.key=-1,this.value=a}wr.prototype.reset=function(){this.key=-1},wr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},wr.prototype.Ad=function(){return this.next()},wr.prototype.first=function(){return this.key=0,this.value},wr.prototype.any=function(a){return this.key=-1,a(this.value)},wr.prototype.all=function(a){return this.key=-1,a(this.value)},wr.prototype.each=function(a){return this.key=-1,a(this.value),this},wr.prototype.map=function(a){return new wr(a(this.value))},wr.prototype.filter=function(a){return a(this.value)?new wr(this.value):Nr},wr.prototype.de=function(){this.value=null},wr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Ye.Object.defineProperties(wr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),wr.prototype.first=wr.prototype.first,wr.prototype.hasNext=wr.prototype.Ad,wr.prototype.next=wr.prototype.next,wr.prototype.reset=wr.prototype.reset,wr.className="SingletonIterator";function br(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}br.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},br.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;x<y;){var b=a[x];if(E(b))return this.key=this.Za=x,this.value=b,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},br.prototype.Ad=function(){return this.next()},br.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var E=0;E<y;){var b=a[E];if(x(b))return this.key=this.Za=E,this.value=b;E++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},br.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&a(z))return!0}return!1},br.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&!a(z))return!1}return!0},br.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];(E===null||E(z))&&a(z)}return this},br.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var tt=y[z];(b===null||b(tt))&&x.push(a(tt))}return a=new rn,a.s=x,a.xb(),a.iterator},br.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var tt=y[z];(b===null||b(tt))&&a(tt)&&x.push(tt)}return a=new rn,a.s=x,a.xb(),a.iterator},br.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},br.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Ye.Object.defineProperties(br.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,E=x.length,b=0;b<E;b++)a(x[b])&&y++;return y}return this.Bb.s.length}}}),br.prototype.first=br.prototype.first,br.prototype.hasNext=br.prototype.Ad,br.prototype.next=br.prototype.next,br.prototype.reset=br.prototype.reset,br.className="ListIterator";function Jr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Jr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Jr.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},Jr.prototype.Ad=function(){return this.next()},Jr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},Jr.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},Jr.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},Jr.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},Jr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new rn,a.s=x,a.xb(),a.iterator},Jr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new rn,a.s=x,a.xb(),a.iterator},Jr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Jr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Ye.Object.defineProperties(Jr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Jr.prototype.first=Jr.prototype.first,Jr.prototype.hasNext=Jr.prototype.Ad,Jr.prototype.next=Jr.prototype.next,Jr.prototype.reset=Jr.prototype.reset,Jr.className="ListIteratorBackwards";function rn(a){zr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Xt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=rn.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.toString=function(){return"List()#"+no(this)},Lt.add=function(a){return a===null?this:(this._isFrozen&&ye(this,a),this.s.push(a),this.xb(),this)},Lt.push=function(a){this.add(a)},Lt.addAll=function(a){if(a===null)return this;this._isFrozen&&ye(this);var y=this.s;if(Ln(a))for(var x=a.length,E=0;E<x;E++)y.push(a[E]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Lt.clear=function(){this._isFrozen&&ye(this),this.s.length=0,this.xb()},Lt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Lt.has=function(a){return this.contains(a)},Lt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Lt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Mn(a,"0 <= i < length",rn,"elt:i"),y[a]},Lt.get=function(a){return this.M(a)},Lt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Mn(a,"0 <= i < length",rn,"setElt:i"),this._isFrozen&&ye(this,a),x[a]=y},Lt.set=function(a,y){this.cd(a,y)},Lt.first=function(){var a=this.s;return a.length===0?null:a[0]},Lt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Lt.pop=function(){this._isFrozen&&ye(this);var a=this.s;return 0<a.length?a.pop():null},rn.prototype.any=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(a(y[E]))return!0;return!1},rn.prototype.all=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(!a(y[E]))return!1;return!0},rn.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},rn.prototype.map=function(a){for(var y=new rn,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},rn.prototype.filter=function(a){for(var y=new rn,x=[],E=this.s,b=E.length,z=0;z<b;z++){var tt=E[z];a(tt)&&x.push(tt)}return y.s=x,y.xb(),y},Lt=rn.prototype,Lt.Gb=function(a,y){0>a&&Mn(a,">= 0",rn,"insertAt:i"),this._isFrozen&&ye(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Lt.remove=function(a){if(a===null)return!1;this._isFrozen&&ye(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Lt.delete=function(a){return this.remove(a)},Lt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Mn(a,"0 <= i < length",rn,"removeAt:i"),this._isFrozen&&ye(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Lt.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&ye(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},rn.prototype.copy=function(){var a=new rn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Lt=rn.prototype,Lt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},Lt.Iv=function(){for(var a=new en,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Lt.sort=function(a){return this._isFrozen&&ye(this),this.s.sort(a),this.xb(),this},Lt.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&ye(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&Mn(y,"0 <= from < length",rn,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0<a(x,b)&&(E[y]=b,E[y+1]=x,this.xb()),this;if(y===0)if(x>=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a<x;a++)E[a]=y[a];else if(x>=b)for(x=E.slice(y),x.sort(a),a=y;a<b;a++)E[a]=x[a-y];else for(b=E.slice(y,x),b.sort(a),a=y;a<x;a++)E[a]=b[a-y];return this.xb(),this},Lt.reverse=function(){return this._isFrozen&&ye(this),this.s.reverse(),this.xb(),this},Ye.Object.defineProperties(rn.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return Nr;var a=this.Sa;return a!==null?(a.reset(),a):new br(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Nr;var a=this.Hg;return a!==null?(a.reset(),a):new Jr(this)}}}),rn.prototype.reverse=rn.prototype.reverse,rn.prototype.sortRange=rn.prototype.zi,rn.prototype.sort=rn.prototype.sort,rn.prototype.toSet=rn.prototype.Iv,rn.prototype.toArray=rn.prototype.Fa,rn.prototype.removeRange=rn.prototype.removeRange,rn.prototype.removeAt=rn.prototype.mb,rn.prototype.delete=rn.prototype.delete,rn.prototype.remove=rn.prototype.remove,rn.prototype.insertAt=rn.prototype.Gb,rn.prototype.pop=rn.prototype.pop,rn.prototype.last=rn.prototype.jc,rn.prototype.first=rn.prototype.first,rn.prototype.set=rn.prototype.set,rn.prototype.setElt=rn.prototype.cd,rn.prototype.get=rn.prototype.get,rn.prototype.elt=rn.prototype.M,rn.prototype.indexOf=rn.prototype.indexOf,rn.prototype.has=rn.prototype.has,rn.prototype.contains=rn.prototype.contains,rn.prototype.clear=rn.prototype.clear,rn.prototype.addAll=rn.prototype.addAll,rn.prototype.push=rn.prototype.push,rn.prototype.add=rn.prototype.add,rn.prototype.thaw=rn.prototype.ka,rn.prototype.freeze=rn.prototype.freeze,rn.className="List";function fo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}fo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},fo.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},fo.prototype.Ad=function(){return this.next()},fo.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},fo.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},fo.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},fo.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},fo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new rn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},fo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new rn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},fo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},fo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Ye.Object.defineProperties(fo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),fo.prototype.first=fo.prototype.first,fo.prototype.hasNext=fo.prototype.Ad,fo.prototype.next=fo.prototype.next,fo.prototype.reset=fo.prototype.reset,fo.className="SetIterator";function en(a){zr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Xt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=en.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.toString=function(){return"Set()#"+no(this)},Lt.add=function(a){if(a===null)return this;this._isFrozen&&ye(this,a);var y=a;return be(a)&&(y=Uo(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Ps(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},Lt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&ye(this),Ln(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},Lt.contains=function(a){if(a===null)return!1;var y=a;return be(a)&&(y=no(a),y===void 0)?!1:this.Tb[y]!==void 0},Lt.has=function(a){return this.contains(a)},Lt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Lt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Lt.first=function(){var a=this.ea;return a===null?null:a.value},en.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},en.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},en.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},en.prototype.map=function(a){for(var y=new en,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},en.prototype.filter=function(a){for(var y=new en,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},Lt=en.prototype,Lt.remove=function(a){if(a===null)return!1;this._isFrozen&&ye(this,a);var y=a;if(be(a)&&(y=no(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Lt.delete=function(a){return this.remove(a)},Lt.hp=function(a){if(a===null)return this;if(this._isFrozen&&ye(this),Ln(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},Lt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&ye(this);var y=new en;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var E=x.value;y.contains(E)||a.push(E)}return this.hp(a),this},Lt.clear=function(){this._isFrozen&&ye(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},en.prototype.copy=function(){var a=new en,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},en.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,E;for(E in y)a[x]=y[E].value,x++;return a},en.prototype.Hv=function(){var a=new rn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function zr(a){a.__gohashid=Zo++}function Uo(a){var y=a.__gohashid;return y===void 0&&(y=Zo++,a.__gohashid=y),y}function no(a){return a.__gohashid}Ye.Object.defineProperties(en.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Nr;var a=this.Sa;return a!==null?(a.reset(),a):new fo(this)}}}),en.prototype.toList=en.prototype.Hv,en.prototype.toArray=en.prototype.Fa,en.prototype.clear=en.prototype.clear,en.prototype.retainAll=en.prototype.pA,en.prototype.removeAll=en.prototype.hp,en.prototype.delete=en.prototype.delete,en.prototype.remove=en.prototype.remove,en.prototype.first=en.prototype.first,en.prototype.containsAny=en.prototype.Ty,en.prototype.containsAll=en.prototype.Sy,en.prototype.has=en.prototype.has,en.prototype.contains=en.prototype.contains,en.prototype.addAll=en.prototype.addAll,en.prototype.add=en.prototype.add,en.prototype.thaw=en.prototype.ka,en.prototype.freeze=en.prototype.freeze;var Zo=1;en.className="Set",en.uniqueHash=zr,en.hashIdUnique=Uo,en.hashId=no;function Or(a){this.ma=a,this.qa=a.Ja,this.sa=null}Or.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Or.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Or.prototype.Ad=function(){return this.next()},Or.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Or.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Or.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Or.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Or.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new rn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Or.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new rn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Or.prototype.de=function(){this.value=this.key=null,this.qa=-1},Or.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Ye.Object.defineProperties(Or.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Or.prototype.first=Or.prototype.first,Or.prototype.hasNext=Or.prototype.Ad,Or.prototype.next=Or.prototype.next,Or.prototype.reset=Or.prototype.reset,Or.className="MapKeySetIterator";function $i(a){en.call(this),zr(this),this._isFrozen=!0,this.ma=a}we($i,en),Lt=$i.prototype,Lt.freeze=function(){return this},Lt.ka=function(){return this},Lt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Lt.add=function(){Xt("This Set is read-only: "+this.toString())},Lt.contains=function(a){return this.ma.contains(a)},Lt.has=function(a){return this.contains(a)},Lt.remove=function(){Xt("This Set is read-only: "+this.toString())},Lt.delete=function(a){return this.remove(a)},Lt.clear=function(){Xt("This Set is read-only: "+this.toString())},Lt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},$i.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},$i.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},$i.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},$i.prototype.map=function(a){for(var y=new en,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},$i.prototype.filter=function(a){for(var y=new en,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},$i.prototype.copy=function(){return new $i(this.ma)},$i.prototype.Iv=function(){var a=new en,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},$i.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},$i.prototype.Hv=function(){var a=new rn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ye.Object.defineProperties($i.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Nr:new Or(this.ma)}}}),$i.prototype.toList=$i.prototype.Hv,$i.prototype.toArray=$i.prototype.Fa,$i.prototype.toSet=$i.prototype.Iv,$i.prototype.first=$i.prototype.first,$i.prototype.clear=$i.prototype.clear,$i.prototype.delete=$i.prototype.delete,$i.prototype.remove=$i.prototype.remove,$i.prototype.has=$i.prototype.has,$i.prototype.contains=$i.prototype.contains,$i.prototype.add=$i.prototype.add,$i.prototype.thaw=$i.prototype.ka,$i.prototype.freeze=$i.prototype.freeze,$i.className="MapKeySet";function po(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}po.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},po.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},po.prototype.Ad=function(){return this.next()},po.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},po.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},po.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},po.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},po.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new rn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},po.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new rn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},po.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},po.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Ye.Object.defineProperties(po.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),po.prototype.first=po.prototype.first,po.prototype.hasNext=po.prototype.Ad,po.prototype.next=po.prototype.next,po.prototype.reset=po.prototype.reset,po.className="MapValueSetIterator";function Ps(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ps.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ps.className="KeyValuePair";function Po(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Po.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Po.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},Po.prototype.Ad=function(){return this.next()},Po.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},Po.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Po.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Po.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},Po.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new rn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Po.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new rn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Po.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Po.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Ye.Object.defineProperties(Po.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Po.prototype.first=Po.prototype.first,Po.prototype.hasNext=Po.prototype.Ad,Po.prototype.next=Po.prototype.next,Po.prototype.reset=Po.prototype.reset,Po.className="MapIterator";function Jn(a){zr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Xt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=Jn.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.toString=function(){return"Map()#"+no(this)},Lt.add=function(a,y){this._isFrozen&&ye(this,a);var x=a;be(a)&&(x=Uo(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new Ps(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):E.value=y,this},Lt.set=function(a,y){return this.add(a,y)},Lt.addAll=function(a){if(a===null)return this;if(Ln(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];this.add(E.key,E.value)}else if(a instanceof Jn)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},Lt.first=function(){return this.ea},Jn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Jn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Jn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Jn.prototype.map=function(a){for(var y=new Jn,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Jn.prototype.filter=function(a){for(var y=new Jn,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Lt=Jn.prototype,Lt.contains=function(a){var y=a;return be(a)&&(y=no(a),y===void 0)?!1:this.Tb[y]!==void 0},Lt.has=function(a){return this.contains(a)},Lt.I=function(a){var y=a;return be(a)&&(y=no(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Lt.get=function(a){return this.I(a)},Lt.remove=function(a){if(a===null)return!1;this._isFrozen&&ye(this,a);var y=a;if(be(a)&&(y=no(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Lt.delete=function(a){return this.remove(a)},Lt.clear=function(){this._isFrozen&&ye(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},Jn.prototype.copy=function(){var a=new Jn,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},Jn.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,E;for(E in a){var b=a[E];y[x]=new Ps(b.key,b.value),x++}return y},Jn.prototype.Lf=function(){return new $i(this)},Ye.Object.defineProperties(Jn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Nr;var a=this.Sa;return a!==null?(a.reset(),a):new Po(this)}},iteratorKeys:{get:function(){return 0>=this.count?Nr:new Or(this)}},iteratorValues:{get:function(){if(0>=this.count)return Nr;var a=this.jf;return a!==null?(a.reset(),a):new po(this)}}}),Jn.prototype.toKeySet=Jn.prototype.Lf,Jn.prototype.toArray=Jn.prototype.Fa,Jn.prototype.clear=Jn.prototype.clear,Jn.prototype.delete=Jn.prototype.delete,Jn.prototype.remove=Jn.prototype.remove,Jn.prototype.get=Jn.prototype.get,Jn.prototype.getValue=Jn.prototype.I,Jn.prototype.has=Jn.prototype.has,Jn.prototype.contains=Jn.prototype.contains,Jn.prototype.first=Jn.prototype.first,Jn.prototype.addAll=Jn.prototype.addAll,Jn.prototype.set=Jn.prototype.set,Jn.prototype.add=Jn.prototype.add,Jn.prototype.thaw=Jn.prototype.ka,Jn.prototype.freeze=Jn.prototype.freeze,Jn.className="Map";function Wt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Xt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Co,ea,Js,vs,ro;Wt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Wt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Wt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Wt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Wt.prototype.copy=function(){var a=new Wt;return a.x=this.x,a.y=this.y,a},Lt=Wt.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ai(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Wt(x,b)}return new Wt}function Ii(a){return a.x.toString()+" "+a.y.toString()}Lt.toString=function(){return"Point("+this.x+","+this.y+")"},Lt.D=function(a){return a instanceof Wt?this.x===a.x&&this.y===a.y:!1},Lt.hi=function(a,y){return this.x===a&&this.y===y},Lt.Xa=function(a){return $t.B(this.x,a.x)&&$t.B(this.y,a.y)},Lt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Lt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Lt.offset=function(a,y){return this.x+=a,this.y+=y,this},Wt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Lt=Wt.prototype,Lt.scale=function(a,y){return this.x*=a,this.y*=y,this},Lt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Lt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Lt.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},Lt.ab=function(a){return xr(a.x-this.x,a.y-this.y)},Lt.direction=function(a,y){return xr(a-this.x,y-this.y)};function xr(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Lt.Ry=function(a,y){return $t.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Lt.fA=function(a,y,x,E){return $t.qh(a,y,x,E,this.x,this.y,this),this},Lt.gA=function(a,y){return $t.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Lt.uA=function(a,y,x,E){return $t.No(this.x,this.y,a,y,x,E,this),this},Lt.vA=function(a,y){return $t.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Lt.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Lt.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Lt.transform=function(a){return a.Ga(this),this};function Bi(a,y){return y.Cd(a),a}function ar(a,y,x,E,b,z){var tt=b-x,rt=z-E,ot=tt*tt+rt*rt;x-=a,E-=y;var at=-x*tt-E*rt;return 0>=at||at>=ot?(tt=b-a,rt=z-y,Math.min(x*x+E*E,tt*tt+rt*rt)):(a=tt*E-rt*x,a*a/ot)}function Di(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Ft(a,y,x,E){return a=x-a,y=E-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(E=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Lt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Wt.alloc=function(){var a=re.pop();return a===void 0?new Wt:a},Wt.allocAt=function(a,y){var x=re.pop();return x===void 0?new Wt(a,y):(x.x=a,x.y=y,x)},Wt.free=function(a){re.push(a)},Wt.prototype.isReal=Wt.prototype.w,Wt.prototype.setSpot=Wt.prototype.yi,Wt.prototype.setRectSpot=Wt.prototype.xi,Wt.prototype.snapToGridPoint=Wt.prototype.vA,Wt.prototype.snapToGrid=Wt.prototype.uA,Wt.prototype.projectOntoLineSegmentPoint=Wt.prototype.gA,Wt.prototype.projectOntoLineSegment=Wt.prototype.fA,Wt.intersectingLineSegments=function(a,y,x,E,b,z,tt,rt){return $t.Rl(a,y,x,E,b,z,tt,rt)},Wt.prototype.compareWithLineSegmentPoint=Wt.prototype.Ry,Wt.compareWithLineSegment=function(a,y,x,E,b,z){return $t.Fl(a,y,x,E,b,z)},Wt.prototype.direction=Wt.prototype.direction,Wt.prototype.directionPoint=Wt.prototype.ab,Wt.prototype.normalize=Wt.prototype.normalize,Wt.prototype.distanceSquared=Wt.prototype.zd,Wt.prototype.distanceSquaredPoint=Wt.prototype.Bf,Wt.prototype.scale=Wt.prototype.scale,Wt.prototype.rotate=Wt.prototype.rotate,Wt.prototype.offset=Wt.prototype.offset,Wt.prototype.subtract=Wt.prototype.re,Wt.prototype.add=Wt.prototype.add,Wt.prototype.equalsApprox=Wt.prototype.Xa,Wt.prototype.equalTo=Wt.prototype.hi,Wt.prototype.equals=Wt.prototype.D,Wt.prototype.set=Wt.prototype.set,Wt.prototype.setTo=Wt.prototype.sg;var re=[];Wt.className="Point",Wt.parse=Ai,Wt.stringify=Ii,Wt.distanceLineSegmentSquared=ar,Wt.distanceSquared=Di,Wt.direction=Ft,Wt.Origin=Co=new Wt(0,0).ja(),Wt.InfiniteTopLeft=ea=new Wt(-1/0,-1/0).ja(),Wt.InfiniteBottomRight=Js=new Wt(1/0,1/0).ja(),Wt.SixPoint=vs=new Wt(6,6).ja(),Wt.NoPoint=ro=new Wt(NaN,NaN).ja(),Wt.parse=Ai,Wt.stringify=Ii,Wt.distanceLineSegmentSquared=ar,Wt.distanceSquared=Di,Wt.direction=Ft;function Yt(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):Xt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var de,ge,Oe,ze,Je,kn,Dn;Yt.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Yt.prototype.h=function(a,y){return this.width=a,this.height=y,this},Yt.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Yt.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Yt.prototype.copy=function(){var a=new Yt;return a.width=this.width,a.height=this.height,a},Lt=Yt.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function $e(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Yt(x,b)}return new Yt}function Zn(a){return a.width.toString()+" "+a.height.toString()}Lt.toString=function(){return"Size("+this.width+","+this.height+")"},Lt.D=function(a){return a instanceof Yt?this.width===a.width&&this.height===a.height:!1},Lt.hi=function(a,y){return this.width===a&&this.height===y},Lt.Xa=function(a){return $t.B(this.width,a.width)&&$t.B(this.height,a.height)},Lt.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Lt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Yt.alloc=function(){var a=qn.pop();return a===void 0?new Yt:a},Yt.free=function(a){qn.push(a)},Yt.prototype.isReal=Yt.prototype.w,Yt.prototype.inflate=Yt.prototype.Bc,Yt.prototype.equalsApprox=Yt.prototype.Xa,Yt.prototype.equalTo=Yt.prototype.hi,Yt.prototype.equals=Yt.prototype.D,Yt.prototype.set=Yt.prototype.set,Yt.prototype.setTo=Yt.prototype.sg;var qn=[];Yt.className="Size",Yt.parse=$e,Yt.stringify=Zn,Yt.ZeroSize=de=new Yt(0,0).ja(),Yt.OneSize=ge=new Yt(1,1).ja(),Yt.SixSize=Oe=new Yt(6,6).ja(),Yt.EightSize=ze=new Yt(8,8).ja(),Yt.TenSize=Je=new Yt(10,10).ja(),Yt.InfiniteSize=kn=new Yt(1/0,1/0).ja(),Yt.NoSize=Dn=new Yt(NaN,NaN).ja(),Yt.parse=$e,Yt.stringify=Zn;function oe(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof Wt?(x=a.x,a=a.y,y instanceof Wt?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof Yt?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Xt("Incorrect second argument supplied to Rect constructor "+y)):Xt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Lt=oe.prototype,Lt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Lt.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Hn(a,y,x){a.width=y,a.height=x}Lt.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Lt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Lt.dd=function(a){return this.x=a.x,this.y=a.y,this},Lt.tA=function(a){return this.width=a.width,this.height=a.height,this},oe.prototype.copy=function(){var a=new oe;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Lt=oe.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Qn(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new oe(x,b,z,tt)}return new oe}function ni(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Lt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Lt.D=function(a){return a instanceof oe?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Lt.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Lt.Xa=function(a){return $t.B(this.x,a.x)&&$t.B(this.y,a.y)&&$t.B(this.width,a.width)&&$t.B(this.height,a.height)};function In(a,y){return $t.$(a.x,y.x)&&$t.$(a.y,y.y)&&$t.$(a.width,y.width)&&$t.$(a.height,y.height)}Lt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Lt.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Lt.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Lt.offset=function(a,y){return this.x+=a,this.y+=y,this},Lt.Bc=function(a,y){return Ti(this,y,a,y,a)},Lt.Co=function(a){return Ti(this,a.top,a.right,a.bottom,a.left)},Lt.Fv=function(a){return Ti(this,-a.top,-a.right,-a.bottom,-a.left)},Lt.Hz=function(a,y,x,E){return Ti(this,a,y,x,E)};function Ti(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Lt.Ex=function(a){return wi(this,a.x,a.y,a.width,a.height)},Lt.Uu=function(a,y,x,E){return wi(this,a,y,x,E)};function wi(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Lt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Lt.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function pi(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Lt.Ye=function(a){return ai(this,a.x,a.y,0,0)},Lt.ed=function(a){return ai(this,a.x,a.y,a.width,a.height)},Lt.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),ai(this,a,y,x,E)};function ai(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Lt.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function ui(a,y,x,E,b,z,tt,rt){return tt===void 0&&(tt=0),rt===void 0&&(rt=0),a<=b&&b+tt<=a+x&&y<=z&&z+rt<=y+E}function Li(a,y,x,E,b,z,tt,rt){return a>tt+b||b>x+a?!1:!(y>rt+z||z>E+y)}Lt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Lt.Mz=function(){return this.width===0&&this.height===0},oe.alloc=function(){var a=lr.pop();return a===void 0?new oe:a},oe.allocAt=function(a,y,x,E){var b=lr.pop();return b===void 0?new oe(a,y,x,E):b.h(a,y,x,E)},oe.free=function(a){lr.push(a)},Ye.Object.defineProperties(oe.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Wt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Yt(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Wt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),oe.prototype.isEmpty=oe.prototype.Mz,oe.prototype.isReal=oe.prototype.w,oe.intersectsLineSegment=function(a,y,x,E,b,z,tt,rt){return $t.Fx(a,y,x,E,b,z,tt,rt)},oe.prototype.setSpot=oe.prototype.yi,oe.prototype.union=oe.prototype.Kv,oe.prototype.unionRect=oe.prototype.ed,oe.prototype.unionPoint=oe.prototype.Ye,oe.prototype.intersects=oe.prototype.Vu,oe.prototype.intersectsRect=oe.prototype.Yc,oe.prototype.intersect=oe.prototype.Uu,oe.prototype.intersectRect=oe.prototype.Ex,oe.prototype.grow=oe.prototype.Hz,oe.prototype.subtractMargin=oe.prototype.Fv,oe.prototype.addMargin=oe.prototype.Co,oe.prototype.inflate=oe.prototype.Bc,oe.prototype.offset=oe.prototype.offset,oe.prototype.contains=oe.prototype.contains,oe.prototype.containsRect=oe.prototype.Re,oe.prototype.containsPoint=oe.prototype.ca,oe.prototype.equalsApprox=oe.prototype.Xa,oe.prototype.equalTo=oe.prototype.hi,oe.prototype.equals=oe.prototype.D,oe.prototype.setSize=oe.prototype.tA,oe.prototype.setPoint=oe.prototype.dd,oe.prototype.set=oe.prototype.set,oe.prototype.setTo=oe.prototype.sg;var vr=null,ir=null,lr=[];oe.className="Rect",oe.parse=Qn,oe.stringify=ni,oe.contains=ui,oe.intersects=Li,oe.ZeroRect=vr=new oe(0,0,0,0).ja(),oe.NoRect=ir=new oe(NaN,NaN,NaN,NaN).ja(),oe.parse=Qn,oe.stringify=ni,oe.contains=ui,oe.intersects=Li;function Yn(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):Xt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Yn.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Yn.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Yn.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Yn.prototype.copy=function(){var a=new Yn;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Lt=Yn.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Lr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new Yn;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Yn(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Yn(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new Yn(x,b):new Yn(x,b,z,tt)}return new Yn}function sr(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Lt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Lt.D=function(a){return a instanceof Yn?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Lt.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Lt.Xa=function(a){return $t.B(this.top,a.top)&&$t.B(this.right,a.right)&&$t.B(this.bottom,a.bottom)&&$t.B(this.left,a.left)},Lt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Yn.alloc=function(){var a=Pr.pop();return a===void 0?new Yn:a},Yn.free=function(a){Pr.push(a)},Yn.prototype.isReal=Yn.prototype.w,Yn.prototype.equalsApprox=Yn.prototype.Xa,Yn.prototype.equalTo=Yn.prototype.hi,Yn.prototype.equals=Yn.prototype.D,Yn.prototype.set=Yn.prototype.set,Yn.prototype.setTo=Yn.prototype.sg;var tr=null,Vi=null,Pr=[];Yn.className="Margin",Yn.parse=Lr,Yn.stringify=sr,Yn.ZeroMargin=tr=new Yn(0,0,0,0).ja(),Yn.TwoMargin=Vi=new Yn(2,2,2,2).ja(),Yn.parse=Lr,Yn.stringify=sr;function gn(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var li,yi,Ci,mi,vi,Tn,Ji,Er,Mr,rr,jr,kr,Hr,Ur,oo,So,mo,Xo,io,Ko,uo,To,ts,Ro,Eo,$r,os,ws,Mo,Ts,to,Xr,Kr,Wo,so,ca;gn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},gn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},gn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},gn.prototype.copy=function(){var a=new gn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Lt=gn.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Xi(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Fi(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return li;if(a==="TopLeft")return yi;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Ci;if(a==="TopRight")return mi;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return vi;if(a==="Center")return Tn;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ji;if(a==="BottomLeft")return Er;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Mr;if(a==="BottomRight")return rr;if(a==="TopSide")return jr;if(a==="LeftSide")return kr;if(a==="RightSide")return Hr;if(a==="BottomSide")return Ur;if(a==="TopBottomSides")return oo;if(a==="LeftRightSides")return So;if(a==="TopLeftSides")return mo;if(a==="TopRightSides")return Xo;if(a==="BottomLeftSides")return io;if(a==="BottomRightSides")return Ko;if(a==="NotTopSide")return uo;if(a==="NotLeftSide")return To;if(a==="NotRightSide")return ts;if(a==="NotBottomSide")return Ro;if(a==="AllSides")return Eo;if(a==="Default")return $r;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(tt=parseFloat(E)),new gn(x,b,z,tt)}return new gn}function qi(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Lt.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(li)?"None":this.D(yi)?"TopLeft":this.D(Ci)?"Top":this.D(mi)?"TopRight":this.D(vi)?"Left":this.D(Tn)?"Center":this.D(Ji)?"Right":this.D(Er)?"BottomLeft":this.D(Mr)?"Bottom":this.D(rr)?"BottomRight":this.D(jr)?"TopSide":this.D(kr)?"LeftSide":this.D(Hr)?"RightSide":this.D(Ur)?"BottomSide":this.D(oo)?"TopBottomSides":this.D(So)?"LeftRightSides":this.D(mo)?"TopLeftSides":this.D(Xo)?"TopRightSides":this.D(io)?"BottomLeftSides":this.D(Ko)?"BottomRightSides":this.D(uo)?"NotTopSide":this.D(To)?"NotLeftSide":this.D(ts)?"NotRightSide":this.D(Ro)?"NotBottomSide":this.D(Eo)?"AllSides":this.D($r)?"Default":"None"},Lt.D=function(a){return a instanceof gn?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Lt.gv=function(){return new gn(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Lt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(os))a=kr;else if(a.D(ws))a=Hr;else if(a.D(Mo))a=jr;else if(a.D(Ts))a=Ur;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Lt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Lt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Lt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Lt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Lt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},gn.alloc=function(){var a=Gi.pop();return a===void 0?new gn:a},gn.free=function(a){Gi.push(a)},gn.prototype.isDefault=gn.prototype.Xb,gn.prototype.isNone=gn.prototype.ys,gn.prototype.isSide=gn.prototype.$c,gn.prototype.isNoSpot=gn.prototype.Mc,gn.prototype.isSpot=gn.prototype.sb,gn.prototype.includesSide=gn.prototype.Hf,gn.prototype.opposite=gn.prototype.gv,gn.prototype.equals=gn.prototype.D,gn.prototype.set=gn.prototype.set,gn.prototype.setTo=gn.prototype.sg;var Gi=[];gn.className="Spot",gn.parse=Fi,gn.stringify=qi,gn.None=li=Xi(new gn(0,0,0,0),0).ja(),gn.Default=$r=Xi(new gn(0,0,-1,0),-1).ja(),gn.TopLeft=yi=new gn(0,0,0,0).ja(),gn.TopCenter=Ci=new gn(.5,0,0,0).ja(),gn.TopRight=mi=new gn(1,0,0,0).ja(),gn.LeftCenter=vi=new gn(0,.5,0,0).ja(),gn.Center=Tn=new gn(.5,.5,0,0).ja(),gn.RightCenter=Ji=new gn(1,.5,0,0).ja(),gn.BottomLeft=Er=new gn(0,1,0,0).ja(),gn.BottomCenter=Mr=new gn(.5,1,0,0).ja(),gn.BottomRight=rr=new gn(1,1,0,0).ja(),gn.MiddleTop=to=Ci,gn.MiddleLeft=Xr=vi,gn.MiddleRight=Kr=Ji,gn.MiddleBottom=Wo=Mr,gn.Top=Mo=Ci,gn.Left=os=vi,gn.Right=ws=Ji,gn.Bottom=Ts=Mr,gn.TopSide=jr=Xi(new gn(0,0,1,1),1).ja(),gn.LeftSide=kr=Xi(new gn(0,0,1,2),1).ja(),gn.RightSide=Hr=Xi(new gn(0,0,1,4),1).ja(),gn.BottomSide=Ur=Xi(new gn(0,0,1,8),1).ja(),gn.TopBottomSides=oo=Xi(new gn(0,0,1,9),1).ja(),gn.LeftRightSides=So=Xi(new gn(0,0,1,6),1).ja(),gn.TopLeftSides=mo=Xi(new gn(0,0,1,3),1).ja(),gn.TopRightSides=Xo=Xi(new gn(0,0,1,5),1).ja(),gn.BottomLeftSides=io=Xi(new gn(0,0,1,10),1).ja(),gn.BottomRightSides=Ko=Xi(new gn(0,0,1,12),1).ja(),gn.NotTopSide=uo=Xi(new gn(0,0,1,14),1).ja(),gn.NotLeftSide=To=Xi(new gn(0,0,1,13),1).ja(),gn.NotRightSide=ts=Xi(new gn(0,0,1,11),1).ja(),gn.NotBottomSide=Ro=Xi(new gn(0,0,1,7),1).ja(),gn.AllSides=Eo=Xi(new gn(0,0,1,15),1).ja(),so=new gn(.156,.156).ja(),ca=new gn(.844,.844).ja(),gn.parse=Fi,gn.stringify=qi;function En(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}En.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},En.prototype.setTransform=function(a,y,x,E,b,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},En.prototype.copy=function(){var a=new En;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},En.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},En.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},En.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},En.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},En.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,E=this.m11*a.m21+this.m21*a.m22,b=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},En.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,E=-a.m12*y,b=-a.m21*y,z=a.m11*y,tt=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*E,x=this.m12*x+this.m22*E,E=this.m11*b+this.m21*z,b=this.m12*b+this.m22*z,this.dx=this.m11*tt+this.m21*a+this.dx,this.dy=this.m12*tt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},En.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,E=this.m11*a,b=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},En.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Lt=En.prototype,Lt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Lt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Lt.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Lt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Lt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Lt.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,rt=this.m21,ot=this.m22,at=this.dx,ut=this.dy,ft=y*z+x*rt+at,mt=y*tt+x*ot+ut,yt=E*z+x*rt+at,wt=E*tt+x*ot+ut;return x=y*z+b*rt+at,y=y*tt+b*ot+ut,z=E*z+b*rt+at,E=E*tt+b*ot+ut,b=Math.min(ft,yt),ft=Math.max(ft,yt),yt=Math.min(mt,wt),mt=Math.max(mt,wt),b=Math.min(b,x),ft=Math.max(ft,x),yt=Math.min(yt,y),mt=Math.max(mt,y),b=Math.min(b,z),ft=Math.max(ft,z),yt=Math.min(yt,E),mt=Math.max(mt,E),a.h(b,yt,ft-b,mt-yt),a},En.alloc=function(){var a=Ao.pop();return a===void 0?new En:a},En.free=function(a){Ao.push(a)},En.prototype.transformRect=En.prototype.pp,En.prototype.transformPoint=En.prototype.Ga,En.prototype.scale=En.prototype.scale,En.prototype.translate=En.prototype.translate,En.prototype.rotate=En.prototype.rotate,En.prototype.invert=En.prototype.Vj,En.prototype.multiplyInverted=En.prototype.bv,En.prototype.multiply=En.prototype.multiply,En.prototype.reset=En.prototype.reset,En.prototype.isIdentity=En.prototype.ws,En.prototype.equals=En.prototype.D,En.prototype.setTransform=En.prototype.setTransform,En.prototype.set=En.prototype.set;var Ao=[];En.className="Transform",En.xF="54a702f3e53909c447824c6706603faf4c";var $t={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=$t.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);$t.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,E,b,z,tt){if(0>=b&&(b=1e-6),a<x)var rt=a,ot=x;else rt=x,ot=a;if(y<E)var at=y,ut=E;else at=E,ut=y;if(a===x)return at<=tt&&tt<=ut&&a-b<=z&&z<=a+b;if(y===E)return rt<=z&&z<=ot&&y-b<=tt&&tt<=y+b;if(ot+=b,rt-=b,rt<=z&&z<=ot&&(ut+=b,at-=b,at<=tt&&tt<=ut))if(ot-rt>ut-at)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,rt,ot,at,ut,ft){if($t.Yb(a,y,tt,rt,ft,x,E)&&$t.Yb(a,y,tt,rt,ft,b,z))return $t.Yb(a,y,tt,rt,ft,at,ut);var mt=(a+x)/2,yt=(y+E)/2,wt=(x+b)/2,Mt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(mt+wt)/2,x=(yt+Mt)/2,wt=(wt+b)/2,Mt=(Mt+z)/2;var Ht=(E+wt)/2,It=(x+Mt)/2;return $t.cs(a,y,mt,yt,E,x,Ht,It,ot,at,ut,ft)||$t.cs(Ht,It,wt,Mt,b,z,tt,rt,ot,at,ut,ft)},ax:function(a,y,x,E,b,z,tt,rt,ot){var at=(x+b)/2,ut=(E+z)/2;return ot.h((((a+x)/2+at)/2+(at+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+rt)/2)/2)/2),ot},My:function(a,y,x,E,b,z,tt,rt){var ot=(x+b)/2,at=(E+z)/2;return Ft(((a+x)/2+ot)/2,((y+E)/2+at)/2,(ot+(b+tt)/2)/2,(at+(z+rt)/2)/2)},Dl:function(a,y,x,E,b,z,tt,rt,ot,at){if($t.Yb(a,y,tt,rt,ot,x,E)&&$t.Yb(a,y,tt,rt,ot,b,z))ai(at,a,y,0,0),ai(at,tt,rt,0,0);else{var ut=(a+x)/2,ft=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(ut+mt)/2,x=(ft+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var wt=(E+mt)/2,Mt=(x+yt)/2;$t.Dl(a,y,ut,ft,E,x,wt,Mt,ot,at),$t.Dl(wt,Mt,mt,yt,b,z,tt,rt,ot,at)}return at},Qe:function(a,y,x,E,b,z,tt,rt,ot,at){if($t.Yb(a,y,tt,rt,ot,x,E)&&$t.Yb(a,y,tt,rt,ot,b,z))at.length===0&&(at.push(a),at.push(y)),at.push(tt),at.push(rt);else{var ut=(a+x)/2,ft=(y+E)/2,mt=(x+b)/2,yt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(ut+mt)/2,x=(ft+yt)/2,mt=(mt+b)/2,yt=(yt+z)/2;var wt=(E+mt)/2,Mt=(x+yt)/2;$t.Qe(a,y,ut,ft,E,x,wt,Mt,ot,at),$t.Qe(wt,Mt,mt,yt,b,z,tt,rt,ot,at)}return at},jv:function(a,y,x,E,b,z,tt,rt,ot,at){if($t.Yb(a,y,b,z,at,x,E))return $t.Yb(a,y,b,z,at,rt,ot);var ut=(a+x)/2,ft=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var mt=(ut+x)/2,yt=(ft+E)/2;return $t.jv(a,y,ut,ft,mt,yt,tt,rt,ot,at)||$t.jv(mt,yt,x,E,b,z,tt,rt,ot,at)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,rt){if($t.Yb(a,y,b,z,tt,x,E))ai(rt,a,y,0,0),ai(rt,b,z,0,0);else{var ot=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(ot+x)/2,ft=(at+E)/2;$t.iv(a,y,ot,at,ut,ft,tt,rt),$t.iv(ut,ft,x,E,b,z,tt,rt)}return rt},ep:function(a,y,x,E,b,z,tt,rt){if($t.Yb(a,y,b,z,tt,x,E))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(b),rt.push(z);else{var ot=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(ot+x)/2,ft=(at+E)/2;$t.ep(a,y,ot,at,ut,ft,tt,rt),$t.ep(ut,ft,x,E,b,z,tt,rt)}return rt},Eo:function(a,y,x,E,b,z,tt,rt,ot,at,ut,ft,mt,yt){if($t.Yb(a,y,tt,rt,mt,x,E)&&$t.Yb(a,y,tt,rt,mt,b,z))return!$t.Rl(a,y,tt,rt,ot,at,ut,ft)||(mt=(a-tt)*(at-ft)-(y-rt)*(ot-ut),mt===0)?!1:(yt.h(((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-at*ut))/mt,((a*rt-y*tt)*(at-ft)-(y-rt)*(ot*ft-at*ut))/mt),!0);var wt=(a+x)/2,Mt=(y+E)/2,Ht=(x+b)/2,It=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(wt+Ht)/2,x=(Mt+It)/2,Ht=(Ht+b)/2,It=(It+z)/2;var Zt=(E+Ht)/2,Kt=(x+It)/2,Qt=1/0,ne=!1,Se=0,mn=0;return $t.Eo(a,y,wt,Mt,E,x,Zt,Kt,ot,at,ut,ft,mt,yt)&&(a=(yt.x-ot)*(yt.x-ot)+(yt.y-at)*(yt.y-at),a<Qt&&(Qt=a,ne=!0,Se=yt.x,mn=yt.y)),$t.Eo(Zt,Kt,Ht,It,b,z,tt,rt,ot,at,ut,ft,mt,yt)&&(yt.x-ot)*(yt.x-ot)+(yt.y-at)*(yt.y-at)<Qt&&(ne=!0,Se=yt.x,mn=yt.y),ne&&(yt.x=Se,yt.y=mn),ne},Fo:function(a,y,x,E,b,z,tt,rt,ot,at,ut,ft,mt){var yt=0;if($t.Yb(a,y,tt,rt,mt,x,E)&&$t.Yb(a,y,tt,rt,mt,b,z)){if(mt=(a-tt)*(at-ft)-(y-rt)*(ot-ut),mt===0)return yt;var wt=((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-at*ut))/mt,Mt=((a*rt-y*tt)*(at-ft)-(y-rt)*(ot*ft-at*ut))/mt;if(wt>=ut)return yt;if((ot>ut?ot-ut:ut-ot)<(at>ft?at-ft:ft-at)){if(y<rt?(ot=y,a=rt):(ot=rt,a=y),Mt<ot||Mt>a)return yt}else if(a<tt?(ot=a,a=tt):ot=tt,wt<ot||wt>a)return yt;0<mt?yt++:0>mt&&yt--}else{wt=(a+x)/2,Mt=(y+E)/2;var Ht=(x+b)/2,It=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(wt+Ht)/2,x=(Mt+It)/2,Ht=(Ht+b)/2,It=(It+z)/2;var Zt=(E+Ht)/2,Kt=(x+It)/2;yt+=$t.Fo(a,y,wt,Mt,E,x,Zt,Kt,ot,at,ut,ft,mt),yt+=$t.Fo(Zt,Kt,Ht,It,b,z,tt,rt,ot,at,ut,ft,mt)}return yt},qh:function(a,y,x,E,b,z,tt){return $t.$(a,x)?(y<E?(x=y,y=E):x=E,z<x?(tt.h(a,x),!1):z>y?(tt.h(a,y),!1):(tt.h(a,z),!0)):$t.$(y,E)?(a<x?(E=a,a=x):E=x,b<E?(tt.h(E,y),!1):b>a?(tt.h(a,y),!1):(tt.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(tt.h(a,y),!1):1.000005<b?(tt.h(x,E),!1):(tt.h(a+b*(x-a),y+b*(E-y)),!0))},Ve:function(a,y,x,E,b,z,tt,rt,ot){return $t.B(a,x)&&$t.B(y,E)?(ot.h(a,y),!1):$t.$(b,tt)?$t.$(a,x)?($t.qh(a,y,x,E,b,z,ot),!1):$t.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,ot):(rt=(rt-z)/(tt-b),$t.$(a,x)?(x=rt*(a-b)+z,y<E?(b=y,y=E):b=E,x<b?(ot.h(a,b),!1):x>y?(ot.h(a,y),!1):(ot.h(a,x),!0)):(tt=(E-y)/(x-a),$t.$(rt,tt)?($t.qh(a,y,x,E,b,z,ot),!1):(b=(tt*a-rt*b+z-y)/(tt-rt),$t.$(tt,0)?(a<x?(E=a,a=x):E=x,b<E?(ot.h(E,y),!1):b>a?(ot.h(a,y),!1):(ot.h(b,y),!0)):$t.qh(a,y,x,E,b,tt*(b-a)+y,ot))))},MA:function(a,y,x,E,b){return $t.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,rt,ot,at){function ut(Ht,It){var Zt=(Ht-a)*(Ht-a)+(It-y)*(It-y);Zt<ft&&(ft=Zt,ot.h(Ht,It))}var ft=1/0;ut(ot.x,ot.y);var mt=0,yt=0,wt=0,Mt=0;if(b<tt?(mt=b,yt=tt):(mt=tt,yt=b),z<rt?(wt=b,Mt=tt):(wt=tt,Mt=b),mt=(yt-mt)/2+at,at=(Mt-wt)/2+at,b=(b+tt)/2,z=(z+rt)/2,mt===0||at===0)return ot;if(.5>(x>a?x-a:a-x)){if(mt=1-(x-b)*(x-b)/(mt*mt),0>mt)return ot;mt=Math.sqrt(mt),E=-at*mt+z,ut(x,at*mt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(mt*mt)+x*x/(at*at),rt=2*x*(y-x*a)/(at*at)-2*x*z/(at*at)-2*b/(mt*mt),mt=rt*rt-4*E*(2*x*a*z/(at*at)-2*y*z/(at*at)+z*z/(at*at)+b*b/(mt*mt)-1+(y-x*a)*(y-x*a)/(at*at)),0>mt)return ot;mt=Math.sqrt(mt),at=(-rt+mt)/(2*E),ut(at,x*at-x*a+y),mt=(-rt-mt)/(2*E),ut(mt,x*mt-x*a+y)}return ot},Ff:function(a,y,x,E,b,z,tt,rt,ot){var at=1e21,ut=a,ft=y;if($t.Ve(a,y,a,E,b,z,tt,rt,ot)){var mt=(ot.x-b)*(ot.x-b)+(ot.y-z)*(ot.y-z);mt<at&&(at=mt,ut=ot.x,ft=ot.y)}return $t.Ve(x,y,x,E,b,z,tt,rt,ot)&&(mt=(ot.x-b)*(ot.x-b)+(ot.y-z)*(ot.y-z),mt<at&&(at=mt,ut=ot.x,ft=ot.y)),$t.Ve(a,y,x,y,b,z,tt,rt,ot)&&(y=(ot.x-b)*(ot.x-b)+(ot.y-z)*(ot.y-z),y<at&&(at=y,ut=ot.x,ft=ot.y)),$t.Ve(a,E,x,E,b,z,tt,rt,ot)&&(a=(ot.x-b)*(ot.x-b)+(ot.y-z)*(ot.y-z),a<at&&(at=a,ut=ot.x,ft=ot.y)),ot.h(ut,ft),1e21>at},us:function(a,y,x){return $t.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,rt){var ot=a+x,at=y+E;return b===tt?(z<rt?(tt=z,z=rt):tt=rt,a<=b&&b<=ot&&tt<=at&&z>=y):z===rt?(b<tt?(rt=b,b=tt):rt=tt,y<=z&&z<=at&&rt<=ot&&b>=a):!!(ui(a,y,x,E,b,z)||ui(a,y,x,E,tt,rt)||$t.Rl(a,y,ot,y,b,z,tt,rt)||$t.Rl(ot,y,ot,at,b,z,tt,rt)||$t.Rl(ot,at,a,at,b,z,tt,rt)||$t.Rl(a,at,a,y,b,z,tt,rt))},Rl:function(a,y,x,E,b,z,tt,rt){return a===x&&y===E&&b===tt&&z===rt?a===b&&y===z:0>=$t.Fl(a,y,x,E,b,z)*$t.Fl(a,y,x,E,tt,rt)&&0>=$t.Fl(b,z,tt,rt,a,y)*$t.Fl(b,z,tt,rt,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0<z&&(z=(a-x)*x+(y-E)*E,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var rt=E>b?-1:1;z=[];var ot=tt/2,at=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return ot=at+rt*Math.min(E,ot),rt=a+x*Math.cos(at),at=y+x*Math.sin(at),a+=x*Math.cos(ot),y+=x*Math.sin(ot),x=(rt+a)/2,ot=(at+y)/2,z.push([rt,at,x,ot,x,ot,a,y]),z;for(;1e-5<E;)b=at+rt*Math.min(E,ot),z.push($t.Vy(x,at,b,a,y)),E-=Math.abs(b-at),at=b;return z},Vy:function(a,y,x,E,b){var z=(x-y)/2,tt=a*Math.cos(z),rt=a*Math.sin(z),ot=-rt,at=tt*tt+ot*ot,ut=at+tt*tt+ot*rt;return at=4/3*(Math.sqrt(2*at*ut)-ut)/(tt*rt-ot*tt),rt=tt-at*ot,tt=ot+at*tt,ot=-tt,at=z+y,z=Math.cos(at),at=Math.sin(at),[E+a*Math.cos(y),b+a*Math.sin(y),E+rt*z-tt*at,b+rt*at+tt*z,E+rt*z-ot*at,b+rt*at+ot*z,E+a*Math.cos(x),b+a*Math.sin(x)]},No:function(a,y,x,E,b,z,tt){x=Math.floor((a-x)/b)*b+x,E=Math.floor((y-E)/z)*z+E;var rt=x;return x+b-a<b/2&&(rt=x+b),a=E,E+z-y<z/2&&(a=E+z),tt.h(rt,a),tt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var E;do y=x%a,x=E=a,a=y;while(0<y);return E},$y:function(a,y,x,E){var b=0>x,z=0>E;if(a<y)var tt=1,rt=0;else tt=0,rt=1;var ot=tt===0?a:y,at=tt===0?x:E;return(tt===0?b:z)&&(at=-at),tt=rt,x=tt===0?x:E,(tt===0?b:z)&&(x=-x),$t.az(ot,tt===0?a:y,at,x,0,0)},az:function(a,y,x,E,b,z){if(0<E)if(0<x){b=a*a,z=y*y,a*=x;var tt=y*E,rt=-z+tt,ot=-z+Math.sqrt(a*a+tt*tt);y=rt;for(var at=0;9999999999>at&&(y=.5*(rt+ot),!(y===rt||y===ot));++at){var ut=a/(y+b),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0<ut)rt=y;else if(0>ut)ot=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,z<E?(E=z/E,z=y*Math.sqrt(Math.abs(1-E*E)),x=a*E-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new fi,um:new fi,Mf:new fi,Nf:0,vm:100};$t.za=$t.AA;function Qe(a){zr(this),this.l=2,a===void 0&&(a=Qe.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Qe.o?this.ee=new rn:(Qe.V===null&&(Qe.V=new rn().freeze()),this.ee=Qe.V),this.aq=this.ee.Ja,this.Ip=new oe().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=yi,this.gg=rr,this.Rk=this.Sk=NaN,this.Uf=qe}Qe.prototype.copy=function(){var a=new Qe;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===Qe.o){for(var y=this.ee.s,x=a.ee,E=0;E<y.length;E++)x.add(y[E].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},Qe.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Qe.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Qe.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},Qe.prototype.ka=function(){if(Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Qe.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Qe.prototype.Xa=function(a){if(!(a instanceof Qe))return!1;if(this.type!==a.type)return this.type===Qe.j&&a.type===Qe.o?Is(this,a):a.type===Qe.j&&this.type===Qe.o?Is(a,this):!1;if(this.type===Qe.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0}return $t.B(this.startX,a.startX)&&$t.B(this.startY,a.startY)&&$t.B(this.endX,a.endX)&&$t.B(this.endY,a.endY)};function Is(a,y){return a.type!==Qe.j||y.type!==Qe.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&$t.B(a.startX,y.startX)&&$t.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Qr&&$t.B(a.endX,y.endX)&&$t.B(a.endY,y.endY))))}Qe.ia=function(a){return a.toString()},Qe.prototype.qb=function(a){a.classType===Qe&&(this.type=a)},Qe.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Qe.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case Qe.u:var y=new oe(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case Qe.F:if(y=new oe(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case Qe.o:y="",x=this.figures.s;for(var E=x.length,b=0;b<E;b++){var z=x[b];0<b&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Qe.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",E=0;E<y;E++){var b=a[E];x=b.match(/[Ff]/)!==null?E===0?x+b:x+("X"+(b[0]===" "?"":" ")+b):x+((E===0?"":"X ")+"F"+(b[0]===" "?"":" ")+b)}return x},Qe.parse=function(a,y){function x(){return Mt>=Qt-1?!0:at[Mt+1].match(ne)!==null}function E(){return Mt++,at[Mt]}function b(Oi){var ki=parseFloat(E()),Br=parseFloat(E());Ht===Ht.toLowerCase()&&(ki=Kt.x+ki,Br=Kt.y+Br),Oi.h(ki,Br)}function z(){return b(Kt),Kt}function tt(){return b(Zt),Zt}function rt(){var Oi=It.toLowerCase();return Oi!=="c"&&Oi!=="s"&&Oi!=="q"&&Oi!=="t"?Kt:new Wt(2*Kt.x-Zt.x,2*Kt.y-Zt.y)}y===void 0&&(y=!1);var ot=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(ot,"$1 $2"),a=a.replace(ot,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var at=a.split(" ");for(a=0;a<at.length;a++){var ut=at[a];if(ut.match(/(\.[0-9]*)(\.)/gm)!==null){ot=On();for(var ft="",mt=!1,yt=0;yt<ut.length;yt++){var wt=ut[yt];wt!=="."||mt?wt==="."?(ot.push(ft),ft="."):ft+=wt:(mt=!0,ft+=wt)}for(ot.push(ft),at.splice(a,1),ut=0;ut<ot.length;ut++)at.splice(a+ut,0,ot[ut]);a+=ot.length-1,Bn(ot)}}var Mt=-1,Ht="",It="";ot=new Wt(0,0);var Zt=new Wt(0,0),Kt=new Wt(0,0),Qt=at.length;a=b1(null),mt=ft=ut=!1,yt=!0,wt=null;for(var ne=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Mt>=Qt-1);)if(It=Ht,Ht=E(),Ht!=="")switch(Ht.toUpperCase()){case"X":yt=!0,ft=ut=!1;break;case"M":for(wt=z(),a.mc===null||yt===!0?(Rf(a,wt.x,wt.y,ut,!ft,mt),yt=!1):a.moveTo(wt.x,wt.y),ot.assign(Kt);!x();)wt=z(),a.lineTo(wt.x,wt.y);break;case"L":for(;!x();)wt=z(),a.lineTo(wt.x,wt.y);break;case"H":for(;!x();)Kt=new Wt((Ht===Ht.toLowerCase()?Kt.x:0)+parseFloat(E()),Kt.y),a.lineTo(Kt.x,Kt.y);break;case"V":for(;!x();)Kt=new Wt(Kt.x,(Ht===Ht.toLowerCase()?Kt.y:0)+parseFloat(E())),a.lineTo(Kt.x,Kt.y);break;case"C":for(;!x();){wt=new Wt,b(wt);var Se=tt(),mn=z();Lh(a,wt.x,wt.y,Se.x,Se.y,mn.x,mn.y)}break;case"S":for(;!x();)wt=rt(),Se=tt(),mn=z(),Lh(a,wt.x,wt.y,Se.x,Se.y,mn.x,mn.y);break;case"Q":for(;!x();)wt=tt(),Se=z(),jm(a,wt.x,wt.y,Se.x,Se.y);break;case"T":for(;!x();)Zt=wt=rt(),Se=z(),jm(a,wt.x,wt.y,Se.x,Se.y);break;case"B":for(;!x();){wt=parseFloat(E()),Se=parseFloat(E()),mn=parseFloat(E());var zn=parseFloat(E()),bn=parseFloat(E()),ln=bn,Ve=!1;x()||(ln=parseFloat(E()),x()||(Ve=parseFloat(E())!==0)),Ht===Ht.toLowerCase()&&(mn+=Kt.x,zn+=Kt.y),a.arcTo(wt,Se,mn,zn,bn,ln,Ve)}break;case"A":for(;!x();)wt=Math.abs(parseFloat(E())),Se=Math.abs(parseFloat(E())),mn=parseFloat(E()),bn=zn=!1,Ve=ln=0,ln=E(),ln.length===1?(zn=!!parseFloat(ln),bn=!!parseFloat(E()),ln=parseFloat(E())):ln.length===2?(zn=!!parseFloat(ln[0]),bn=!!parseFloat(ln[1]),ln=parseFloat(E())):(zn=!!parseFloat(ln[0]),bn=!!parseFloat(ln[1]),ln=parseFloat(ln.slice(2))),Ve=parseFloat(E()),Ht===Ht.toLowerCase()&&(ln=Kt.x+ln,Ve=Kt.y+Ve),Kt.h(ln,Ve),Px(a,wt,Se,mn,zn,bn,ln,Ve);break;case"Z":wx(a),Kt.assign(ot);break;case"F":for(wt="",Se=1;at[Mt+Se];)if(at[Mt+Se]==="0")mt=!0,Se++;else if(at[Mt+Se].match(/[Uu]/)!==null)Se++;else if(at[Mt+Se].match(ne)===null)Se++;else{wt=at[Mt+Se];break}wt.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(wt="",Se=1;at[Mt+Se];)if(at[Mt+Se].match(/[Ff]/)!==null)Se++;else if(at[Mt+Se].match(ne)===null)Se++;else{wt=at[Mt+Se];break}wt.match(/[Mm]/)?ft=!0:a.mc.isShadowed=!1}if(ot=a.os,Hm=a,y)for(y=ot.figures.iterator;y.next();)y.value.isFilled=!0;return ot},Qe.Ha=function(a,y){for(var x=a.length,E=Wt.alloc(),b=0;b<x;b++){var z=a[b];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}Wt.free(E)},Qe.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Qe.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},Qe.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Qe.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var E=a[x];E._isInvalidBounds=!1;var b=E.segments;E.sr=b.Ja,E=b.s,b=E.length;for(var z=0;z<b;z++){var tt=E[z];tt._isInvalidBounds=!1,tt.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),Os(this,a,!1),ai(a,0,0,0,0),a.freeze()},Qe.prototype.ix=function(){var a=new oe;return Os(this,a,!0),a};function Os(a,y,x){switch(a.type){case Qe.j:case Qe.u:case Qe.F:x?y.h(a.od,a.pd,0,0):ai(y,a.od,a.pd,0,0),ai(y,a.Dc,a.Ec,0,0);break;case Qe.o:var E=a.figures;a=E.s,E=E.length;for(var b=0;b<E;b++){var z=a[b];x&&b===0?y.h(z.startX,z.startY,0,0):ai(y,z.startX,z.startY,0,0);for(var tt=z.segments.s,rt=tt.length,ot=z.startX,at=z.startY,ut=0;ut<rt;ut++){var ft=tt[ut];switch(ft.type){case Qr:case ns:ot=ft.endX,at=ft.endY,ai(y,ot,at,0,0);break;case Cs:$t.Dl(ot,at,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.5,y),ot=ft.endX,at=ft.endY;break;case fa:$t.iv(ot,at,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,y),ot=ft.endX,at=ft.endY;break;case qo:case ga:var mt=ft.type===qo?Ys(ft,z):_s(ft,z,ot,at),yt=mt.length;if(yt===0){ot=ft.type===qo?ft.centerX:ft.endX,at=ft.type===qo?ft.centerY:ft.endY,ai(y,ot,at,0,0);break}ft=null;for(var wt=0;wt<yt;wt++)ft=mt[wt],$t.Dl(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,y);ft!==null&&(ot=ft[6],at=ft[7]);break;default:Xt("Unknown Segment type: "+ft.type)}}}break;default:Xt("Unknown Geometry type: "+a.type)}}Qe.prototype.normalize=function(){this._isFrozen&&ye(this);var a=this.ix();return this.offset(-a.x,-a.y),new Wt(-a.x,-a.y)},Qe.prototype.offset=function(a,y){return this._isFrozen&&ye(this),this.transform(1,0,0,1,a,y),this},Qe.prototype.scale=function(a,y){return this._isFrozen&&ye(this),this.transform(a,0,0,y,0,0),this},Qe.prototype.rotate=function(a,y,x){this._isFrozen&&ye(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=En.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),En.free(E),this},Lt=Qe.prototype,Lt.transform=function(a,y,x,E,b,z){switch(this.type){case Qe.j:case Qe.u:case Qe.F:var tt=this.od,rt=this.pd;this.od=tt*a+rt*x+b,this.pd=tt*y+rt*E+z,tt=this.Dc,rt=this.Ec,this.Dc=tt*a+rt*x+b,this.Ec=tt*y+rt*E+z;break;case Qe.o:for(var ot=this.figures.s,at=ot.length,ut=0;ut<at;ut++){var ft=ot[ut];tt=ft.startX,rt=ft.startY,ft.startX=tt*a+rt*x+b,ft.startY=tt*y+rt*E+z,ft=ft.segments.s;for(var mt=ft.length,yt=0;yt<mt;yt++){var wt=ft[yt];switch(wt.type){case Qr:case ns:tt=wt.endX,rt=wt.endY,wt.endX=tt*a+rt*x+b,wt.endY=tt*y+rt*E+z;break;case Cs:tt=wt.point1X,rt=wt.point1Y,wt.point1X=tt*a+rt*x+b,wt.point1Y=tt*y+rt*E+z,tt=wt.point2X,rt=wt.point2Y,wt.point2X=tt*a+rt*x+b,wt.point2Y=tt*y+rt*E+z,tt=wt.endX,rt=wt.endY,wt.endX=tt*a+rt*x+b,wt.endY=tt*y+rt*E+z;break;case fa:tt=wt.point1X,rt=wt.point1Y,wt.point1X=tt*a+rt*x+b,wt.point1Y=tt*y+rt*E+z,tt=wt.endX,rt=wt.endY,wt.endX=tt*a+rt*x+b,wt.endY=tt*y+rt*E+z;break;case qo:tt=wt.centerX,rt=wt.centerY,wt.centerX=tt*a+rt*x+b,wt.centerY=tt*y+rt*E+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),wt.startAngle+=tt),0>a&&(wt.startAngle=180-wt.startAngle,wt.sweepAngle=-wt.sweepAngle),0>E&&(wt.startAngle=-wt.startAngle,wt.sweepAngle=-wt.sweepAngle),wt.radiusX*=Math.sqrt(a*a+x*x),wt.radiusY!==void 0&&(wt.radiusY*=Math.sqrt(y*y+E*E));break;case ga:if(tt=wt.endX,rt=wt.endY,wt.endX=tt*a+rt*x+b,wt.endY=tt*y+rt*E+z,wt.radiusX===0||wt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),wt.xAxisRotation+=tt),0>a&&(wt.xAxisRotation=180-wt.xAxisRotation,wt.isClockwiseArc=!wt.isClockwiseArc),0>E&&(wt.xAxisRotation=-wt.xAxisRotation,wt.isClockwiseArc=!wt.isClockwiseArc),wt.radiusX*=Math.sqrt(a*a+x*x),wt.radiusY*=Math.sqrt(y*y+E*E);break;default:Xt("Unknown Segment type: "+wt.type)}}}}return this._isInvalidBounds=!0,this},Lt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case Qe.j:return $t.Yb(x,E,b,z,y,a.x,a.y);case Qe.u:var tt=oe.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),oe.free(tt),a;case Qe.F:tt=Math.min(x,b)-y;var rt=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),rt=a.y-(rt+y),1>=tt*tt/(x*x)+rt*rt/(y*y));case Qe.o:return Gs(this,a,y,!0,!1);default:return!1}};function Gs(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,ot,at,ut,ft,mt=a.figures.s,yt=mt.length,wt=0;wt<yt;wt++){var Mt=mt[wt],Ht=!Mt.isEvenOdd;if(Mt.isFilled){if(E&&Mt.ca(z,y,x))return!0;var It=Mt.segments;ot=Mt.startX,at=Mt.startY;for(var Zt=ot,Kt=at,Qt=It.s,ne=0;ne<=It.length;ne++){var Se=void 0;if(ne!==It.length){Se=Qt[ne];var mn=Se.type;a=Se.endX,ft=Se.endY}else mn=Qr,a=Zt,ft=Kt;switch(mn){case ns:if(Zt=ys(z,y,tt,y,ot,at,Zt,Kt),isNaN(Zt))return!0;rt+=Zt,Zt=a,Kt=ft;break;case Qr:if(ot=ys(z,y,tt,y,ot,at,a,ft),isNaN(ot))return!0;rt+=ot;break;case Cs:ut=$t.Fo(ot,at,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,a,ft,tt,y,z,y,.5),rt+=ut;break;case fa:ut=$t.Fo(ot,at,(ot+2*Se.point1X)/3,(at+2*Se.point1Y)/3,(2*Se.point1X+a)/3,(2*Se.point1Y+ft)/3,a,ft,tt,y,z,y,.5),rt+=ut;break;case qo:case ga:mn=Se.type===qo?Ys(Se,Mt):_s(Se,Mt,ot,at);var zn=mn.length;if(zn===0){if(ot=ys(z,y,tt,y,ot,at,Se.type===qo?Se.centerX:Se.endX,Se.type===qo?Se.centerY:Se.endY),isNaN(ot))return!0;rt+=ot;break}Se=null;for(var bn=0;bn<zn;bn++){if(Se=mn[bn],bn===0){if(ut=ys(z,y,tt,y,ot,at,Se[0],Se[1]),isNaN(ut))return!0;rt+=ut}ut=$t.Fo(Se[0],Se[1],Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],tt,y,z,y,.5),rt+=ut}Se!==null&&(a=Se[6],ft=Se[7]);break;default:Xt("Unknown Segment type: "+Se.type)}ot=a,at=ft}if(Ht){if(rt!==0)return!0}else if(rt%2!==0)return!0;rt=0}else if(Mt.ca(z,y,b?x:x+2))return!0}return!1}function ys(a,y,x,E,b,z,tt,rt){if($t.Yb(b,z,tt,rt,.05,a,y))return NaN;var ot=(a-x)*(z-rt);if(ot===0)return 0;var at=((a*E-y*x)*(b-tt)-(a-x)*(b*rt-z*tt))/ot;if(y=(a*E-y*x)*(z-rt)/ot,at>=a)return 0;if((b>tt?b-tt:tt-b)<(z>rt?z-rt:rt-z)){if(z<rt){if(y<z||y>rt)return 0}else if(y<rt||y>z)return 0}else if(b<tt){if(at<b||at>tt)return 0}else if(at<tt||at>b)return 0;return 0<ot?1:-1}function qs(a,y,x,E){a=a.figures.s;for(var b=a.length,z=0;z<b;z++)if(a[z].ca(y,x,E))return!0;return!1}Lt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Wt),this.type===Qe.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<b;rt++){var ot=E[rt],at=ot.length;for(a=0;a<at;a++){var ut=ot[a];if(tt+ut>=z)return E=z-tt,E=ut===0?0:E/ut,x=x[rt],rt=x[2*a],b=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},Lt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Qe.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,E=y.length,b=this.flattenedTotalLength*a,z=0,tt=0;tt<E;tt++){var rt=x[tt],ot=rt.length;for(a=0;a<ot;a++){var at=rt[a];if(z+at>=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=at}}return NaN},Lt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Qe.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<b;rt++){var ot=E[rt],at=ot.length;for(a=0;a<at;a++){var ut=ot[a];if(tt+ut>=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[rt],x=ut[2*a],rt=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=rt+(a-rt)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-rt)?0:1>Math.abs(b-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=b-x?0:180:180*Math.atan2(a-rt,b-x)/Math.PI,y;tt+=ut}}return y},Lt.xx=function(a){if(this.type===Qe.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x<b){var tt=x;E=b}else tt=b,E=x;return a<=tt?tt===x?0:1:a>=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y<E?tt=y:(tt=E,E=y),z<=tt?tt===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var rt=Wt.alloc();return $t.qh(y,x,E,b,z,a,rt),a=rt.x,z=rt.y,Wt.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===Qe.u){tt=this.startX,rt=this.startY;var ot=this.endX;if(b=this.endY,tt!==ot||rt!==b){y=ot-tt,x=b-rt,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),ot),a=Math.min(Math.max(a,rt),b),tt=Math.abs(E-tt),ot=Math.abs(E-ot),rt=Math.abs(a-rt),b=Math.abs(a-b);var at=Math.min(tt,ot,rt,b);if(at===rt)return E/z;if(at===ot)return(y+a)/z;if(at===b)return(2*y+x-E)/z;if(at===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Wt.alloc(),b=1/0,rt=tt=0,ot=y.length;for(var ut=at=0,ft=0;ft<ot;ft++)for(var mt=y[ft],yt=x[ft],wt=mt.length,Mt=0;Mt<wt;Mt+=2){var Ht=mt[Mt],It=mt[Mt+1];if(Mt!==0){$t.qh(at,ut,Ht,It,a.x,a.y,E);var Zt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);Zt<b&&(b=Zt,tt=rt,tt+=Math.sqrt((E.x-at)*(E.x-at)+(E.y-ut)*(E.y-ut))),rt+=yt[(Mt-2)/2]}at=Ht,ut=It}return Wt.free(E),a=tt/z,0>a?0:1<a?1:a}return 0};function Vs(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===Qe.j)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.endY),y.push(E),b.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(b);else if(a.type===Qe.u)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.startY),E.push(a.endX),E.push(a.endY),E.push(a.startX),E.push(a.endY),E.push(a.startX),E.push(a.startY),y.push(E),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),x.push(b);else if(a.type===Qe.F){var z=new es;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new ur(qo);if(tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(a.startX+a.endX)/2,tt.centerY=(a.startY+a.endY)/2,tt.radiusX=Math.abs(a.startX-a.endX)/2,tt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(tt),a=Ys(tt,z),b=a.length,b===0)E.push(tt.centerX),E.push(tt.centerY);else{tt=z.startX,z=z.startY;for(var rt=0;rt<b;rt++){var ot=a[rt];$t.Qe(tt,z,ot[2],ot[3],ot[4],ot[5],ot[6],ot[7],.5,E),tt=ot[6],z=ot[7]}}y.push(E),x.push(Sl(E))}else for(a=a.figures.iterator;a.next();){b=a.value,E=[],E.push(b.startX),E.push(b.startY),tt=b.startX,z=b.startY,rt=tt,ot=z;for(var at=b.segments.s,ut=at.length,ft=0;ft<ut;ft++){var mt=at[ft];switch(mt.type){case ns:4<=E.length&&(y.push(E),x.push(Sl(E))),E=[],E.push(mt.endX),E.push(mt.endY),tt=mt.endX,z=mt.endY,rt=tt,ot=z;break;case Qr:E.push(mt.endX),E.push(mt.endY),tt=mt.endX,z=mt.endY;break;case Cs:$t.Qe(tt,z,mt.point1X,mt.point1Y,mt.point2X,mt.point2Y,mt.endX,mt.endY,.5,E),tt=mt.endX,z=mt.endY;break;case fa:$t.ep(tt,z,mt.point1X,mt.point1Y,mt.endX,mt.endY,.5,E),tt=mt.endX,z=mt.endY;break;case qo:var yt=Ys(mt,b),wt=yt.length;if(wt===0){E.push(mt.centerX),E.push(mt.centerY),tt=mt.centerX,z=mt.centerY;break}for(var Mt=0;Mt<wt;Mt++){var Ht=yt[Mt];$t.Qe(tt,z,Ht[2],Ht[3],Ht[4],Ht[5],Ht[6],Ht[7],.5,E),tt=Ht[6],z=Ht[7]}break;case ga:if(yt=_s(mt,b,tt,z),wt=yt.length,Mt=mt.endX,Ht=mt.endY,wt===0){E.push(Mt),E.push(Ht),tt=Mt,z=Ht;break}for(Mt=0;Mt<wt;Mt++)Ht=yt[Mt],$t.Qe(tt,z,Ht[2],Ht[3],Ht[4],Ht[5],Ht[6],Ht[7],.5,E),tt=Ht[6],z=Ht[7];break;default:Xt("Segment not of valid type: "+mt.type)}mt.isClosed&&(E.push(rt),E.push(ot))}4<=E.length&&(y.push(E),x.push(Sl(E)))}}}function Sl(a){for(var y=[],x=0,E=0,b=a.length,z=0;z<b;z+=2){var tt=a[z],rt=a[z+1];z!==0&&y.push(Math.sqrt(Di(x,E,tt,rt))),x=tt,E=rt}return y}Lt.add=function(a){return this.ee.add(a),this},Lt.pm=function(a,y,x,E,b,z,tt,rt){return this._isFrozen&&ye(this),this.fg=new gn(a,y,b,z).freeze(),this.gg=new gn(x,E,tt,rt).freeze(),this},Ye.Object.defineProperties(Qe.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return Vs(this),this.tk}},flattenedLengths:{get:function(){return Vs(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Qe.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===Qe.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,E=a=0;E<x;E++)for(var b=y[E],z=b.length,tt=0;tt<z;tt++)a+=b[tt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&ye(this,a),this.na=a,a===Qe.o?this.ee=new rn:(Qe.V===null&&(Qe.V=new rn().freeze()),this.ee=Qe.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&ye(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&ye(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&ye(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&ye(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&ye(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&ye(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&ye(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&ye(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Qe.prototype.setSpots=Qe.prototype.pm,Qe.prototype.add=Qe.prototype.add,Qe.prototype.getFractionForPoint=Qe.prototype.xx,Qe.prototype.getPointAndAngleAlongPath=Qe.prototype.Qu,Qe.prototype.getAngleAlongPath=Qe.prototype.wx,Qe.prototype.getPointAlongPath=Qe.prototype.Pu,Qe.prototype.containsPoint=Qe.prototype.ca,Qe.prototype.transform=Qe.prototype.transform,Qe.prototype.rotate=Qe.prototype.rotate,Qe.prototype.scale=Qe.prototype.scale,Qe.prototype.offset=Qe.prototype.offset,Qe.prototype.normalize=Qe.prototype.normalize,Qe.prototype.computeBoundsWithoutOrigin=Qe.prototype.ix,Qe.prototype.equalsApprox=Qe.prototype.Xa,Qe.className="Geometry",Qe.j=new Ee(Qe,"Line",0),Qe.u=new Ee(Qe,"Rectangle",1),Qe.F=new Ee(Qe,"Ellipse",2),Qe.o=new Ee(Qe,"Path",3),Qe.V=null,Qe.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Qe.className="Geometry",Qe.stringify=Qe.ia,Qe.fillPath=Qe.nb,Qe.parse=Qe.parse,Qe.Line=Qe.j,Qe.Rectangle=Qe.u,Qe.Ellipse=Qe.F,Qe.Path=Qe.o;function es(a,y,x,E,b){zr(this),x===void 0&&(x=!0),E===void 0&&(E=!0),b===void 0&&(b=!1),this.l=2|(x?4:0)|(E?8:0)|(b?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new rn,this.sr=this.pl.Ja,this.fw=null}es.prototype.copy=function(){var a=new es;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,E=a.pl,b=0;b<x;b++){var z=y[b].copy();E.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Lt=es.prototype,Lt.Xa=function(a){if(!(a instanceof es&&$t.B(this.startX,a.startX)&&$t.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0},Lt.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;b<E;b++)y+=" "+x[b].toString(a);return y},Lt.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},Lt.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Lt.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},Lt.add=function(a){return this.pl.add(a),this},Lt.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,tt=b,rt=this.segments.s,ot=rt.length,at=0;at<ot;at++){var ut=rt[at];switch(ut.type){case ns:z=ut.endX,tt=ut.endY,E=ut.endX,b=ut.endY;break;case Qr:if($t.Yb(E,b,ut.endX,ut.endY,x,a,y))return!0;E=ut.endX,b=ut.endY;break;case Cs:if($t.cs(E,b,ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY,.5,a,y,x))return!0;E=ut.endX,b=ut.endY;break;case fa:if($t.jv(E,b,ut.point1X,ut.point1Y,ut.endX,ut.endY,.5,a,y,x))return!0;E=ut.endX,b=ut.endY;break;case qo:case ga:var ft=ut.type===qo?Ys(ut,this):_s(ut,this,E,b),mt=ft.length,yt=ut.type===qo?ut.centerX:ut.endX,wt=ut.type===qo?ut.centerY:ut.endY;if(mt===0){if($t.Yb(E,b,yt,wt,x,a,y))return!0;E=yt,b=wt;break}for(yt=null,wt=0;wt<mt;wt++)if(yt=ft[wt],wt===0&&$t.Yb(E,b,yt[0],yt[1],x,a,y)||$t.cs(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.5,a,y,x))return!0;yt!==null&&(E=yt[6],b=yt[7]);break;default:Xt("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(E!==z||b!==tt)&&$t.Yb(E,b,z,tt,x,a,y))return!0}return!1},Ye.Object.defineProperties(es.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&ye(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&ye(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&ye(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&ye(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&ye(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&ye(this,a),this.pl=a,this._isInvalidBounds=!0}}}),es.prototype.add=es.prototype.add,es.prototype.equalsApprox=es.prototype.Xa,es.className="PathFigure";function ur(a,y,x,E,b,z,tt,rt){zr(this),a===void 0&&(a=Qr),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,E===void 0&&(E=0),b===void 0&&(b=0),z===void 0&&(z=0),tt===void 0&&(tt=0),a===ga?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===qo&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===qo&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}ur.prototype.copy=function(){var a=new ur;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Lt=ur.prototype,Lt.Xa=function(a){if(!(a instanceof ur)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ns:case Qr:return $t.B(this.endX,a.endX)&&$t.B(this.endY,a.endY);case Cs:return $t.B(this.endX,a.endX)&&$t.B(this.endY,a.endY)&&$t.B(this.point1X,a.point1X)&&$t.B(this.point1Y,a.point1Y)&&$t.B(this.point2X,a.point2X)&&$t.B(this.point2Y,a.point2Y);case fa:return $t.B(this.endX,a.endX)&&$t.B(this.endY,a.endY)&&$t.B(this.point1X,a.point1X)&&$t.B(this.point1Y,a.point1Y);case qo:return $t.B(this.startAngle,a.startAngle)&&$t.B(this.sweepAngle,a.sweepAngle)&&$t.B(this.centerX,a.centerX)&&$t.B(this.centerY,a.centerY)&&$t.B(this.radiusX,a.radiusX)&&$t.B(this.radiusY,a.radiusY);case ga:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&$t.B(this.xAxisRotation,a.xAxisRotation)&&$t.B(this.endX,a.endX)&&$t.B(this.endY,a.endY)&&$t.B(this.radiusX,a.radiusX)&&$t.B(this.radiusY,a.radiusY);default:return!1}},Lt.qb=function(a){a.classType===ur&&(this.type=a)},Lt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ns:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Qr:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Cs:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case fa:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case qo:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case ga:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.close=function(){return this.isClosed=!0,this};function Ys(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=$t.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var tt=En.alloc();tt.reset(),x<E?tt.scale(1,E/x):tt.scale(x/E,1),Qe.Ha(z,tt),En.free(tt)}for(x=z.length,E=0;E<x;E++)tt=z[E],tt[0]+=y,tt[1]+=b,tt[2]+=y,tt[3]+=b,tt[4]+=y,tt[5]+=b,tt[6]+=y,tt[7]+=b;return a.ae=z,a.ae}function _s(a,y,x,E){function b(Mt,Ht,It,Zt){return(Mt*Zt<Ht*It?-1:1)*Math.acos((Mt*It+Ht*Zt)/(Math.sqrt(Mt*Mt+Ht*Ht)*Math.sqrt(It*It+Zt*Zt)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var tt=Math.PI/180*a.Ne,rt=a.isLargeArc,ot=a.isClockwiseArc,at=a.Dc,ut=a.Ec,ft=Math.cos(tt),mt=Math.sin(tt),yt=ft*(x-at)/2+mt*(E-ut)/2;tt=-mt*(x-at)/2+ft*(E-ut)/2;var wt=yt*yt/(y*y)+tt*tt/(z*z);return 1<wt&&(y*=Math.sqrt(wt),z*=Math.sqrt(wt)),wt=(rt===ot?-1:1)*Math.sqrt((y*y*z*z-y*y*tt*tt-z*z*yt*yt)/(y*y*tt*tt+z*z*yt*yt)),isNaN(wt)&&(wt=0),rt=wt*y*tt/z,wt=wt*-z*yt/y,isNaN(rt)&&(rt=0),isNaN(wt)&&(wt=0),x=(x+at)/2+ft*rt-mt*wt,E=(E+ut)/2+mt*rt+ft*wt,ut=b(1,0,(yt-rt)/y,(tt-wt)/z),ft=(yt-rt)/y,at=(tt-wt)/z,yt=(-yt-rt)/y,rt=(-tt-wt)/z,tt=b(ft,at,yt,rt),yt=(ft*yt+at*rt)/(Math.sqrt(ft*ft+at*at)*Math.sqrt(yt*yt+rt*rt)),-1>=yt?tt=Math.PI:1<=yt&&(tt=0),!ot&&0<tt&&(tt-=2*Math.PI),ot&&0>tt&&(tt+=2*Math.PI),ot=y>z?1:y/z,yt=y>z?z/y:1,y=$t.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=En.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(ot,yt),Qe.Ha(y,z),En.free(z),a.ae=y,a.ae}Ye.Object.defineProperties(ur.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&ye(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&ye(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&ye(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ye(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&ye(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&ye(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&ye(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ye(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&ye(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Mn(a,">= zero",ur,"radiusX"),this._isFrozen&&ye(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Mn(a,">= zero",ur,"radiusY"),this._isFrozen&&ye(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&ye(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&ye(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&ye(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&ye(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ye(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),ur.prototype.equalsApprox=ur.prototype.Xa;var ns=new Ee(ur,"Move",0),Qr=new Ee(ur,"Line",1),Cs=new Ee(ur,"Bezier",2),fa=new Ee(ur,"QuadraticBezier",3),qo=new Ee(ur,"Arc",4),ga=new Ee(ur,"SvgArc",4);ur.className="PathSegment",ur.Move=ns,ur.Line=Qr,ur.Bezier=Cs,ur.QuadraticBezier=fa,ur.Arc=qo,ur.SvgArc=ga;function Rs(){this.H=null,this.xu=new Wt(0,0).freeze(),this.mt=new Wt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Rs.prototype.copy=function(){var a=new Rs;return this.clone(a)},Rs.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Rs.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Rs.prototype.So=function(a,y){var x=this.diagram;return x===null||Lg(x,a,y),y},Rs.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Lg(x,a,y),y.assign(x.Ps(y))),y},Ye.Object.defineProperties(Rs.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Rs.prototype.getMultiTouchDocumentPoint=Rs.prototype.Bz,Rs.prototype.getMultiTouchViewPoint=Rs.prototype.So,Rs.className="InputEvent";function Xl(){this.H=null,this.xa="",this.ar=this.Lr=null}Xl.prototype.copy=function(){var a=new Xl;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Xl.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Ye.Object.defineProperties(Xl.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),Xl.className="DiagramEvent";function Lo(){this.Fm=yo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Lo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Lo.prototype.copy=function(){var a=new Lo;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=be(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=be(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=be(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=be(y)&&typeof y.J=="function"?y.J():y,a},Lo.prototype.qb=function(a){a.classType===Lo&&(this.change=a)},Lo.prototype.toString=function(){var a="";return a=this.change===bs?a+"* ":this.change===yo?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===bs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=or(this.object)),this.oldValue!==null&&(a+=" old: "+or(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+or(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Lo.prototype.I=function(a){return a?this.oldValue:this.newValue},Lo.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Lo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Lo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Lo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Lo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Ye.Object.defineProperties(Lo.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===bs&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Lo.prototype.redo=Lo.prototype.redo,Lo.prototype.canRedo=Lo.prototype.canRedo,Lo.prototype.undo=Lo.prototype.undo,Lo.prototype.canUndo=Lo.prototype.canUndo,Lo.prototype.getParam=Lo.prototype.Dz,Lo.prototype.getValue=Lo.prototype.I,Lo.prototype.clear=Lo.prototype.clear;var bs=new Ee(Lo,"Transaction",-1),yo=new Ee(Lo,"Property",0),Io=new Ee(Lo,"Insert",1),is=new Ee(Lo,"Remove",2);Lo.className="ChangedEvent",Lo.Transaction=bs,Lo.Property=yo,Lo.Insert=Io,Lo.Remove=is;function ds(){this.o=new rn().freeze(),this.xa="",this.j=!1}ds.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var E=this.changes.M(x);E!==null&&(y+=`
|
|
`+E.toString())}}return y},ds.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},ds.prototype.canUndo=function(){return this.isComplete},ds.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},ds.prototype.canRedo=function(){return this.isComplete},ds.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},ds.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Jn,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===yo&&E.object){var b=y.get(E.object);b||(b=new Jn,y.set(E.object,b));var z=b.get(E.propertyName);z===null?b.set(E.propertyName,-1):(0<z&&a.cd(z,null),b.set(E.propertyName,x))}}for(x=y=0;x<a.count;x++)E=a.M(x),E!==null&&(x>y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},Ye.Object.defineProperties(ds.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),ds.prototype.optimize=ds.prototype.ak,ds.prototype.redo=ds.prototype.redo,ds.prototype.canRedo=ds.prototype.canRedo,ds.prototype.undo=ds.prototype.undo,ds.prototype.canUndo=ds.prototype.canUndo,ds.prototype.clear=ds.prototype.clear,ds.className="Transaction";function bo(){this.Pt=new en,this.Jd=!1,this.u=new rn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new rn().freeze(),this.hl=new rn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}bo.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;E<x;E++)0<E&&(y+=" "),y+=this.nestedTransactionNames.M(E);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,E=0;E<x;E++)y+=`
|
|
`+this.history.M(E).toString(a-1);return y},bo.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},bo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Lt=bo.prototype,Lt.Xw=function(a){this.Pt.add(a)},Lt.Rx=function(a){this.Pt.remove(a)},Lt.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},Lt.eb=function(a){return a===void 0&&(a=""),Dl(this,!0,a)},Lt.Kf=function(){return Dl(this,!1,"")};function Dl(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&wn("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var tt=a.Ie.count;0<tt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(tt-1),a.Ie.freeze()),tt=a.hl.count,0<tt&&(z=a.hl.M(tt-1),a.hl.mb(tt-1))}if(E){if(y)a.rq=!1,b===null&&x!==""&&(b=a.currentTransaction),a.isEnabled&&b!==null&&(b.isComplete||(b.isComplete=!0,b.name=x),a.lx(),y=a.history,y.ka(),E=a.maxHistoryLength,0<=E&&(E===0?y.clear():y.count>=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Lt.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},bo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},bo.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){wn("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},bo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},bo.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){wn("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},bo.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new Lo;for(E.change=bs,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},bo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new ds);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||wn("Change not within a transaction: "+x.toString()))}},bo.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Ye.Object.defineProperties(bo.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),bo.prototype.handleChanged=bo.prototype.Tu,bo.prototype.redo=bo.prototype.redo,bo.prototype.undo=bo.prototype.undo,bo.prototype.canUndo=bo.prototype.canUndo,bo.prototype.discardHistoryAfterIndex=bo.prototype.lx,bo.prototype.rollbackTransaction=bo.prototype.Kf,bo.prototype.commitTransaction=bo.prototype.eb,bo.prototype.startTransaction=bo.prototype.Ea,bo.prototype.removeModel=bo.prototype.Rx,bo.prototype.addModel=bo.prototype.Xw,bo.prototype.clear=bo.prototype.clear,bo.className="UndoManager";function mr(){zr(this),this.H=Cu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Rs,this.Zr=-1}mr.prototype.toString=function(){return this.name!==""?this.name+" Tool":Kn(this.constructor)},mr.prototype.updateAdornments=function(){},mr.prototype.canStart=function(){return this.isEnabled},mr.prototype.doStart=function(){},mr.prototype.doActivate=function(){this.isActive=!0},mr.prototype.doDeactivate=function(){this.isActive=!1},mr.prototype.doStop=function(){},mr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},mr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},mr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},mr.prototype.doMouseMove=function(){},mr.prototype.doMouseUp=function(){this.stopTool()},mr.prototype.doMouseWheel=function(){},mr.prototype.canStartMultiTouch=function(){return!0},mr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Wt.allocAt(NaN,NaN)),E=y.So(1,Wt.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var b=E.x-x.x,z=E.y-x.y;a.Jw=Math.sqrt(b*b+z*z),y.bubbles=!1}Wt.free(x),Wt.free(E)},mr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Wt.allocAt(NaN,NaN)),E=y.So(1,Wt.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var b=E.x-x.x,z=E.y-x.y;z=Math.sqrt(b*b+z*z)/a.Jw,b=new Wt((Math.min(E.x,x.x)+Math.max(E.x,x.x))/2,(Math.min(E.y,x.y)+Math.max(E.y,x.y))/2),z*=a.Bw;var tt=a.commandHandler;if(z!==a.scale&&tt.canResetZoom(z)){var rt=a.zoomPoint;a.zoomPoint=b,tt.resetZoom(z),a.zoomPoint=rt}y.bubbles=!1}Wt.free(x),Wt.free(E)},mr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},mr.prototype.doKeyUp=function(){},mr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},mr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},mr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Rr?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(Rr?y.meta:y.control)||y.shift||a.clearSelection()}},mr.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(b){return!b.layer.isTemporary});var x=this.diagram,E=x.lastInput;return a=x.ic(E.documentPoint,a,y),E.targetObject=a,oh(a,E,x),E.handled};function oh(a,y,x){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var b="ObjectSingleClicked";if(a!==null){switch(E){case 1:b="ObjectSingleClicked";break;case 2:b="ObjectDoubleClicked";break;case 3:b="ObjectContextClicked"}E!==0&&x.R(b,a)}else{switch(E){case 1:b="BackgroundSingleClicked";break;case 2:b="BackgroundDoubleClicked";break;case 3:b="BackgroundContextClicked"}E!==0&&x.R(b)}if(a!==null)for(;a!==null;){switch(x=null,E){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,E){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}mr.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var E=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(E=null),y.targetObject=E;var b=!1;if(E!==a.Ck){var z=a.Ck,tt=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var rt=z.mouseLeave;if(rt!==null&&(E===z||E!==null&&E.rg(z)||(rt(y,z,E),b=!0,y.handled)))break;z=z.panel}for(z=tt,y.handled=!1;E!==null&&(tt=E.mouseEnter,!(tt!==null&&(z===E||z!==null&&z.rg(E)||(tt(y,E,z),b=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,tt="";z!==null&&(tt=z.cursor,tt==="");)z=z.panel;for(a.currentCursor=tt,y.handled=!1,z=E;z!==null&&(E=z.mouseOver,!(E!==null&&(E(y,z),b=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),E=a.mouseOver,E!==null&&(E(y),b=!0);b&&a.$b(),a.skipsUndoManager=x}},mr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},mr.prototype.doCurrentObjectChanged=function(){},mr.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var E=a.commandHandler,b=a.toolManager.mouseWheelBehavior;if(E!==null&&(b===lu&&!y.shift||b===Nl&&y.control))(0<x?E.canIncreaseZoom():E.canDecreaseZoom())&&(b=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?E.increaseZoom():E.decreaseZoom(),a.zoomPoint=b),y.bubbles=!1;else if(b===lu&&y.shift||b===Nl&&!y.control){E=a.position.copy();var z=y.event;b=z.deltaMode;var tt=z.deltaX;z=z.deltaY;var rt="pixel";if(tt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(rt,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(rt,0<x?"left":"right",Math.abs(x)));else{switch(b){case 0:rt="pixel";break;case 1:rt="line";break;case 2:rt="page"}tt!==0&&a.allowHorizontalScroll&&(tt*=a.scrollHorizontalLineChange/16,a.scroll(rt,0<tt?"right":"left",Math.abs(tt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(rt,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},mr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},mr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=_i(function(){x.doWaitAfter(E)},a)},mr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Re.clearTimeout(this.Zr),this.Zr=-1},mr.prototype.doWaitAfter=function(){},mr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ar);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},mr.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var E=x.toolManager.dragSize,b=E.width;return E=E.height,x.firstInput.isTouchEvent&&(b+=6,E+=6),Math.abs(y.x-a.x)>b||Math.abs(y.y-a.y)>E},Ye.Object.defineProperties(mr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof xe&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),mr.prototype.startTransaction=mr.prototype.Ea,mr.className="Tool";function eo(){mr.call(this),this.name="ToolManager",this.hb=new rn,this.ob=new rn,this.Hb=new rn,this.F=this.V=850,this.o=new Yt(2,2).ja(),this.Ha=5e3,this.ia=Nl,this.u=ah,this.Mp=this.j=null,this.zj=-1}we(eo,mr),eo.prototype.initializeStandardTools=function(){},eo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ar&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},eo.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===ol&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===uu){y.bubbles=!0;return}if(this.gestureBehavior===ol)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Nl?this.mouseWheelBehavior=lu:this.mouseWheelBehavior===lu&&(this.mouseWheelBehavior=Nl)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},eo.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===uu){y.bubbles=!0;return}if(this.gestureBehavior===ol)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,E=0;E<x;E++){var b=this.mouseMoveTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseMove());return}}Hu(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Hu(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}eo.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Ar&&(y===a||y.rg(a))||this.hideToolTip()},eo.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},eo.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},eo.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof Ar)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},eo.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ar){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof du&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Re.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=_i(function(){b.hideToolTip()},a)}},eo.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y=x.y+20/y.scale+E.height>b.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.y<b.y&&(x.y=b.y),a.position=x}},eo.prototype.hideToolTip=function(){this.zj!==-1&&(Re.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ar?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof du&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},eo.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var E=this.mouseUpTools.M(x);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseUp());return}}a.doFocus(),this.doDeactivate()},eo.prototype.doMouseWheel=function(){this.standardMouseWheel()},eo.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},eo.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},eo.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var E=this.mouseDownTools.M(x);if(E.name===a)return E}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(E=this.mouseMoveTools.M(x),E.name===a)return E;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(E=this.mouseUpTools.M(x),E.name===a)return E;return null},eo.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.name===a)return y!==null?this.mouseDownTools.cd(E,y):this.mouseDownTools.mb(E),b}for(x=this.mouseMoveTools.length,E=0;E<x;E++)if(b=this.mouseMoveTools.M(E),b.name===a)return y!==null?this.mouseMoveTools.cd(E,y):this.mouseMoveTools.mb(E),b;for(x=this.mouseUpTools.length,E=0;E<x;E++)if(b=this.mouseUpTools.M(E),b.name===a)return y!==null?this.mouseUpTools.cd(E,y):this.mouseUpTools.mb(E),b;return null},eo.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},Ye.Object.defineProperties(eo.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof Ar?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),eo.prototype.replaceStandardTool=eo.prototype.gb;var Nl=new Ee(eo,"WheelScroll",0),lu=new Ee(eo,"WheelZoom",1),sh=new Ee(eo,"WheelNone",2),ah=new Ee(eo,"GestureZoom",3),ol=new Ee(eo,"GestureCancel",4),uu=new Ee(eo,"GestureNone",5);eo.className="ToolManager",eo.WheelScroll=Nl,eo.WheelZoom=lu,eo.WheelNone=sh,eo.GestureZoom=ah,eo.GestureCancel=ol,eo.GestureNone=uu;function Bo(){mr.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new Wt(NaN,NaN),this.Fr=new Wt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new en().freeze(),this.ia=new st,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var xl;we(Bo,mr),Bo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Bo.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},Bo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(Rr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Bo.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),Ms=null,this.isActive=!0,this.tl.set(a.position),lh(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&Fa(a),mf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ms=this,Gu=this.diagram,this.doSimulatedDragOut()))};function lh(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof un?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new qa,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Bo.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Bo.prototype.Pd=function(a){return a===void 0?new Uu(Co):this.isGridSnapEnabled?new Uu(new Wt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Uu(a.copy())},Bo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),hu(this),id(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<xl.count){for(var y=xl,x=y.length,E=0;E<x;E++){var b=y.M(E);Kl(b),Wa(b),hu(b),b.diagram.ug()}y.clear()}Kl(this),this.tl.h(NaN,NaN),Gu!==null&&(Gu.currentCursor=""),Ms=Gu=null,Wa(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Pc(a,!0)},Bo.prototype.stopTransaction=function(){var a=this.diagram,y=mr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function hu(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Yh(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Vh(){var a=Ms;Wa(a),Ql(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Bo.prototype.doCancel=function(){Wa(this),Ql(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Bo.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Bo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Tl(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var E=x.undoManager;for(E.isEnabled&&E.isInTransaction?E.currentTransaction!==null&&0<E.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):Ql(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new Jn,E=a.draggedParts.iterator;E.next();){var b=E.key;if(b.Zc()&&b.canCopy()){var z=y.I(b);z!==null&&(z.location=b.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)E=y.value,E instanceof un&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,lh(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Fh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Wa(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof un&&(x.value.point=new Wt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Kl(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function sl(a,y,x){var E=a.diagram,b=a.startPoint,z=Wt.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),Wt.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(Fa(E),E.hk())}Bo.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&nd(E,a,y,this.dragOptions,x)};function Ql(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var E=x.key;E.Zc()&&(E.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(E=x.key,E instanceof un&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),Fh(E,-b.x,-b.y)}y.bd()}}function uh(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),qr(a,!1));var E=a.findDragOverObject(y),b=x.lastInput;b.targetObject=E,a.doUpdateCursor(E);var z=x.skipsUndoManager,tt=!1;try{if(x.skipsUndoManager=!0,tt=Yh(a,b,E),!a.isActive&&Ms===null)return;var rt=E!==null?E.part:null;if(rt===null||x.handlesDragDropForTopLevelParts&&rt.isTopLevel&&!(rt instanceof Ri)){var ot=x.mouseDragOver;ot!==null&&(ot(b),tt=!0)}if(!a.isActive&&Ms===null||(a.doDragOver(y,E),!a.isActive&&Ms===null))return}finally{x.skipsUndoManager=z,tt&&x.bd()}a.Bn=E,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(b.viewPoint)}Bo.prototype.findDragOverObject=function(a){var y=this;return Au(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Ar||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Bo.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function Yh(a,y,x){var E=!1,b=a.Cg.length,z=0<b?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var tt=0;tt<b;tt++){var rt=a.Cg[tt],ot=rt.mouseDragLeave;if(ot!==null&&(ot(y,rt,x),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Ms===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=Zh(b);for(b=a.Cg.length,x=0;x<b&&(tt=a.Cg[x],rt=tt.mouseDragEnter,rt===null||(rt(y,tt,z),E=!0,!y.handled));x++);return E}function Zh(a){var y=a.panel;return y!==null?y:a instanceof oi&&!(a instanceof Ri)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Oo(a,y,x){var E=a.Oe;if(E===null)return null;var b=a.diagram.og(y,E.portGravity,function(at){return E.findValidLinkablePort(at,x)});a=Wt.alloc();var z=1/0,tt=null;for(b=b.iterator;b.next();){var rt=b.value;if(rt.part!==null){var ot=rt.ga(Tn,a);ot=y.Bf(ot),ot<z&&(tt=rt,z=ot)}}return Wt.free(a),tt}function qr(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Oo(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,ot=null;x.toNode===null&&(rt=Oo(a,x.i(x.pointsCount-1),!0),rt!==null&&(ot=rt.part)),b.isValidLink(tt,z,ot,rt)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=ot,rt!==null&&(x.toPortId=rt.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):ef(b,tt,z,ot,rt):ef(b,null,null,null,null)}}}}Bo.prototype.doDragOver=function(){};function $s(a,y){var x=a.diagram;a.dragsLink&&qr(a,!0),hu(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;Jl(a,b,z),z=Zh(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Ms!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof yn&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Ms!==null){for(a=oe.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof yn&&kd(x,E,a);oe.free(a)}}}function Jl(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Ri||(x=a.mouseDrop,x!==null&&x(y))}function kd(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof un},!0,function(b){return b instanceof un},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Bo.prototype.doDropOnto=function(){},Bo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(Tl(this,!1),mf(a,this.copiedParts),sl(this,this.copiedParts,!1),id(a,this.copiedParts)):this.mayMove()?(Wa(this),sl(this,this.draggedParts,!0)):this.mayDragOut()?(Tl(this,!1),sl(this,this.copiedParts,!1)):Wa(this),uh(this,a.lastInput.documentPoint))}},Bo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(Wa(this),Tl(this,!0),mf(a,this.copiedParts),sl(this,this.copiedParts,!1),id(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,Wa(this),this.mayMove()&&(sl(this,this.draggedParts,!0),uh(this,a.lastInput.documentPoint))),this.Ym=!0,$s(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&hg(this),a.Ya(),id(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Bo.prototype.simulatedMouseMove=function(a,y,x){if(Ms===null)return!1;var E=Ms.diagram;x instanceof xe||(x=null);var b=Gu;return x!==b&&(b!==null&&b!==E&&(b.ug(),Ms.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Gu=x,x!==null&&x!==E&&(Vh(),b=x.toolManager.findTool("Dragging"),b!==null&&(xl.contains(b)||xl.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,E.doSimulatedDragOver()),!0)},Bo.prototype.simulatedMouseUp=function(a,y,x){if(Ms===null)return!1;var E=Gu,b=Ms.diagram;if(x===null)return Ms.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),Ms.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Gu=x,E=x.toolManager.findTool("Dragging"),E!==null&&(Vh(),xl.contains(E)||xl.add(E),E.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new Wt),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Ms,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function hg(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof yn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Bo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Rr?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Bo.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Bo.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Bo.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Bo.prototype.Az=function(){return Ms},Bo.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ms;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Bo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),ul(a),a.animationManager.Cc(),a=Ms,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Bo.prototype.doSimulatedDragLeave=function(){var a=Ms;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Bo.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ms;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;tf(this,y.draggedParts.Lf(),!1,a.firstInput),sl(this,this.copiedParts,!1),uh(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Bo.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ms;if(y!==null){var x=y.diagram;if(y.Ym=!0,Wa(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),tf(this,y.draggedParts.Lf(),!0,a.lastInput),sl(this,this.copiedParts,!1);var E=new en;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),$s(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function tf(a,y,x,E){if(a.copiedParts===null){var b=a.diagram;if(!b.isReadOnly&&!b.isModelReadOnly){b.skipsUndoManager=!x,b.partManager.addsToTemporaryLayer=!x,a.startPoint=E.documentPoint,x=b.Kj(y,b,!0);var z=oe.alloc();b=E=1/0;for(var tt=-1/0,rt=-1/0,ot=y.iterator;ot.next();){var at=ot.value;if(at.isVisible()){var ut=at.location;at=ut.x,ut=ut.y,isNaN(at)||isNaN(ut)||(at<E&&(E=at),ut<b&&(b=ut),at>tt&&(tt=at),ut>rt&&(rt=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,rt-b),E=z.x+z.width/2,b=z.y+z.height/2,oe.free(z),z=a.Fr,tt=new Jn,rt=Wt.alloc(),ot=y.iterator;ot.next();)at=ot.value,at instanceof un&&at.canCopy()&&(ut=x.I(at),ut!==null&&(ut.points=at.points,Fh(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)at=y.value,at.Zc()&&at.canCopy()&&(ot=x.I(at),ot!==null&&(at=at.location,rt.h(z.x-(E-at.x),z.y-(b-at.y)),ot.location=rt,ot.Va(),tt.add(ot,a.Pd(rt))));Wt.free(rt),a.copiedParts=tt,lh(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Fh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Bo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Bo.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Wt},Ye.Object.defineProperties(Bo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Bo.prototype.getDraggingSource=Bo.prototype.Az;var Ms=null,Gu=null;Bo.className="DraggingTool",xl=new rn,vn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),eo.prototype.doCancel=function(){Ms!==null&&Ms.doCancel(),mr.prototype.doCancel.call(this)};function Cr(){mr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new un,y=new Wi;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Wi,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new yn,y=new Wi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ge,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new yn,y=new Wi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ge,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Jn,this.Of=this.gj=this.Pf=null}we(Cr,mr),Cr.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Cr.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=Yt.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,Yt.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Tn,z=Wt.alloc(),x.location=y.ga(Tn,z),Wt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},Cr.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ge,y.fromSpot=li,y.toSpot=li),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Cr.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Cr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof yn){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Cr.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof yn))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof yn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},Cr.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(ft){return b.findValidLinkablePort(ft,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,rt=tt.part;if(rt instanceof yn){var ot=tt.ga(Tn,Wt.alloc()),at=x.x-ot.x,ut=x.y-ot.y;Wt.free(ot),ot=at*at+ut*ut,ot<E&&(at=this.validPortsCache.I(tt),at!==null?at&&(y=tt,E=ot):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,rt,tt)||!a&&this.isValidLink(rt,tt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(tt,!0),y=tt,E=ot):this.validPortsCache.add(tt,!1))}}return y!==null&&(x=y.part,x instanceof yn&&(x.layer===null||x.layer.allowLink))?y:null},Cr.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},Cr.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},Cr.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Cr.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof yn))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof yn))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},Cr.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},Cr.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new en;return E.add(a),Dr(this,x,y,E)};function Dr(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Dr(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Dr(a,y.labeledLink,x,E))))}Cr.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==Mc){if(E===Gg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Yr(this,a,y,x,!0)}if(E===Wg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Yr(this,a,y,x,!0)}if(E===zg)return a===y?a=!0:(E=new en,E.add(y),a=zo(this,E,a,y,x)),!a;if(E===jg)return!Yr(this,a,y,x,!1);if(E===Hg)return a===y?a=!0:(E=new en,E.add(y),a=Zs(this,E,a,y,x)),!a}return!0};function Yr(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&Yr(a,tt,x,E,b)))return!0}return!1}function zo(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&zo(a,y,tt,E,b)))return!0}return!1}function Zs(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&Zs(a,y,rt,E,b))return!0}}return!1}Ye.Object.defineProperties(Cr.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),Cr.className="LinkingBaseTool";function na(){Cr.call(this),this.name="Linking",this.V={},this.F=null,this.K=Uh,this.Xd=null}we(na,Cr),na.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},na.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof yn)))return null;var x=this.direction;if(x===Uh||x===Gp){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===Uh||x===Wp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},na.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof yn&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof yn&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},na.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},na.prototype.doStop=function(){Cr.prototype.doStop.call(this),this.startObject=null},na.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var rt=tt.part;rt instanceof yn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=rt,b=tt):(y=rt,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},na.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof un)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},na.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},na.prototype.doNoLink=function(){},Ye.Object.defineProperties(na.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Uh=new Ee(na,"Either",0),Gp=new Ee(na,"ForwardsOnly",0),Wp=new Ee(na,"BackwardsOnly",0);na.className="LinkingTool",na.Either=Uh,na.ForwardsOnly=Gp,na.BackwardsOnly=Wp;function qa(){Cr.call(this),this.name="Relinking";var a=new Wi;a.figure="Diamond",a.desiredSize=ze,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Wi,a.figure="Diamond",a.desiredSize=ze,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new oe}we(qa,Cr),qa.prototype.updateAdornments=function(a){if(a!==null&&a instanceof un){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},qa.prototype.makeAdornment=function(a,y){var x=new Ar;return x.type=nn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},qa.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},qa.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Ar&&x.adornedPart instanceof un))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=de),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=de),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},qa.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Hf||x===kh)&&(x=wa),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},qa.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},qa.prototype.doStop=function(){Cr.prototype.doStop.call(this),this.handle=null},qa.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,E=this.originalToNode,b=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var tt=this.targetPort.part;tt instanceof yn&&(this.isForwards?(E=tt,b=this.targetPort):(y=tt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?b=E=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?E:y,this.isForwards?b:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},qa.prototype.reconnectLink=function(a,y,x,E){return x=x!==null&&x.portId!==null?x.portId:"",E?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},qa.prototype.doNoRelink=function(){};function ef(a,y,x,E,b){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,b,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}Ye.Object.defineProperties(qa.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof Ar))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),qa.className="RelinkingTool",vn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),vn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function ss(){mr.call(this),this.name="LinkReshaping";var a=new Wi;a.figure="Rectangle",a.desiredSize=Oe,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Wi,a.figure="Diamond",a.desiredSize=ze,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Wt,this.Yq=new rn}we(ss,mr),ss.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:dg},ss.prototype.om=function(a,y){a.reshapingBehavior=y},ss.prototype.updateAdornments=function(a){if(a!==null&&a instanceof un){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},ss.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new Ar,b.type=nn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,tt=E?1:0;if(y.resegmentable&&y.computeCurve()!==nl)for(var rt=x+tt;rt<z-tt;rt++){var ot=this.makeResegmentHandle(a,rt);ot!==null&&(ot.segmentIndex=rt,ot.segmentFraction=.5,ot.fromMaxLinks=999,b.add(ot))}for(tt=x+1;tt<z;tt++)if(rt=this.makeHandle(a,tt),rt!==null){if(rt.segmentIndex=tt,tt!==x)if(tt===x+1&&E){ot=y.i(x);var at=y.i(x+1);$t.B(ot.x,at.x)&&$t.B(ot.y,at.y)&&(at=y.i(x-1)),$t.B(ot.x,at.x)?(this.om(rt,ch),rt.cursor="n-resize"):$t.B(ot.y,at.y)&&(this.om(rt,dh),rt.cursor="w-resize")}else tt===z-1&&E?(ot=y.i(z-1),at=y.i(z),$t.B(ot.x,at.x)&&$t.B(ot.y,at.y)&&(ot=y.i(z+1)),$t.B(ot.x,at.x)?(this.om(rt,ch),rt.cursor="n-resize"):$t.B(ot.y,at.y)&&(this.om(rt,dh),rt.cursor="w-resize")):tt!==z&&(this.om(rt,nf),rt.cursor="move");b.add(rt)}b.adornedObject=a}return b},ss.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},ss.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},ss.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ss.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof un){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),E=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,E),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,E),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},ss.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ss.prototype.stopTransaction=function(){var a=this.diagram,y=mr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ss.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},ss.prototype.getResegmentingPoint=function(){return this.handle.ga(Tn)},ss.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},ss.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,E=y.i(x-1),b=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var tt=y.i(x-2);if(Math.abs(E.x-b.x)<this.resegmentingDistance&&Math.abs(E.y-b.y)<this.resegmentingDistance&&(hh(this,tt,E,b,z,!0)||hh(this,tt,E,b,z,!1))){var rt=y.points.copy();hh(this,tt,E,b,z,!0)?(rt.cd(x-2,new Wt(tt.x,(z.y+tt.y)/2)),rt.cd(x+1,new Wt(z.x,(z.y+tt.y)/2))):(rt.cd(x-2,new Wt((z.x+tt.x)/2,tt.y)),rt.cd(x+1,new Wt((z.x+tt.x)/2,z.y))),rt.mb(x),rt.mb(x-1),y.points=rt,y.Wb()}else tt=y.i(x+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(hh(this,E,b,z,tt,!0)||hh(this,E,b,z,tt,!1))&&(rt=y.points.copy(),hh(this,E,b,z,tt,!0)?(rt.cd(x-1,new Wt(E.x,(E.y+tt.y)/2)),rt.cd(x+2,new Wt(tt.x,(E.y+tt.y)/2))):(rt.cd(x-1,new Wt((E.x+tt.x)/2,E.y)),rt.cd(x+2,new Wt((E.x+tt.x)/2,tt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else tt=Wt.alloc(),$t.qh(E.x,E.y,z.x,z.y,b.x,b.y,tt)&&tt.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(x),y.points=E,y.Wb()),Wt.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function hh(a,y,x,E,b,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-b.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-b.x)<a.resegmentingDistance}ss.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,E=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,E===ch?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===dh&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,E===ch?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===dh&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{E=x;var b=y.i(E),z=y.i(E-1),tt=y.i(E+1);$t.B(z.x,b.x)&&$t.B(b.y,tt.y)?($t.B(z.x,y.i(E-2).x)&&!$t.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),$t.B(tt.y,y.i(E+2).y)&&!$t.B(tt.x,y.i(E+2).x)?y.m(E+1,tt.x,a.y):y.L(E+1,tt.x,a.y)):$t.B(z.y,b.y)&&$t.B(b.x,tt.x)?($t.B(z.y,y.i(E-2).y)&&!$t.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),$t.B(tt.x,y.i(E+2).x)&&!$t.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):$t.B(z.x,b.x)&&$t.B(b.x,tt.x)?($t.B(z.x,y.i(E-2).x)&&!$t.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),$t.B(tt.x,y.i(E+2).x)&&!$t.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):$t.B(z.y,b.y)&&$t.B(b.y,tt.y)&&($t.B(z.y,y.i(E-2).y)&&!$t.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),$t.B(tt.y,y.i(E+2).y)&&!$t.B(tt.x,y.i(E+2).x)?y.m(E+1,tt.x,a.y):y.L(E+1,tt.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),E=y.fromNode,b=y.fromPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(Tn,Wt.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,Wt.alloc()),y.L(0,E.x,E.y),Wt.free(z),Wt.free(E)),E=y.toNode,b=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===y.pointsCount-2&&y.computeSpot(!1,b).Mc()&&(x=b.ga(Tn,Wt.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,Wt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Wt.free(x),Wt.free(a));y.zf()},ss.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case nf:return a;case ch:return new Wt(y.i(x).x,a.y);case dh:return new Wt(a.x,y.i(x).y);default:case dg:return y.i(x)}},Ye.Object.defineProperties(ss.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ar))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),ss.prototype.setReshapingBehavior=ss.prototype.om,ss.prototype.getReshapingBehavior=ss.prototype.Ru;var dg=new Ee(ss,"None",0),dh=new Ee(ss,"Horizontal",1),ch=new Ee(ss,"Vertical",2),nf=new Ee(ss,"All",3);ss.className="LinkReshapingTool",ss.None=dg,ss.Horizontal=dh,ss.Vertical=ch,ss.All=nf,vn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ta(){mr.call(this),this.name="Resizing",this.o=new Yt(1,1).freeze(),this.j=new Yt(9999,9999).freeze(),this.yg=new Yt(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Wi;a.alignmentFocus=Tn,a.figure="Rectangle",a.desiredSize=Oe,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Wt,this.Dw=new Yt,this.Tn=new Wt,this.rt=new Yt(0,0),this.qt=new Yt(1/0,1/0),this.pt=new Yt(1,1)}we(ta,mr),ta.prototype.updateAdornments=function(a){if(!(a===null||a instanceof un)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),ud(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},ta.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ar,y.type=nn.Spot,y.locationSpot=Tn;var x=new xa;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,yi)),y.add(this.makeHandle(a,mi)),y.add(this.makeHandle(a,rr)),y.add(this.makeHandle(a,Er)),y.add(this.makeHandle(a,to)),y.add(this.makeHandle(a,Kr)),y.add(this.makeHandle(a,Wo)),y.add(this.makeHandle(a,Xr))}else if(El(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ta.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ta.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=Tn),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof nn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ta.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ta.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},ta.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ta.prototype.stopTransaction=function(){var a=this.diagram,y=mr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ta.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ta.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Wt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Wt.free(b)}},ta.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Wt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Wt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ta.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Ri){var E=new rn;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new st;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},ta.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=Tn);var tt=this.adornedObject.naturalBounds,rt=tt.x,ot=tt.y,at=tt.x+tt.width,ut=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var mt=tt.height;0>=ft&&(ft=1),0>=mt&&(mt=1),ft=mt/ft}return mt=Wt.alloc(),$t.No(a.x,a.y,rt,ot,b.width,b.height,mt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=at-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.height=Math.max(Math.min(mt.y-ot,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=at-a.width)):(a.x=Math.max(mt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=at-a.x,z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(mt.x-rt,E.width),x.width),a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(mt.x-rt,E.width),x.width),a.height=Math.max(Math.min(mt.y-ot,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(mt.x-rt,E.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):0>=y.y?(a.y=Math.max(mt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=rt+.5*(at-rt-a.width))):1<=y.y&&(a.height=Math.max(Math.min(mt.y-ot,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=rt+.5*(at-rt-a.width))),Wt.free(mt),a},ta.prototype.computeReshape=function(){var a=Ze;return this.adornedObject instanceof Wi&&(a=Av(this.adornedObject)),!(a===Un||this.diagram.lastInput.shift)},ta.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},ta.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},ta.prototype.computeCellSize=function(){var a=new Yt(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},Ye.Object.defineProperties(ta.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Ar))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ar)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),ta.className="ResizingTool",vn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function pa(){mr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Wt,this.ue=null;var a=new Wi;a.figure="Ellipse",a.desiredSize=ze,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Wt(NaN,NaN),this.u=0,this.F=50}we(pa,mr),pa.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},pa.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ar,y.type=nn.Position,y.locationSpot=Tn;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(El(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},pa.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},pa.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},pa.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(Tn)},pa.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},pa.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Wt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},pa.prototype.stopTransaction=function(){var a=this.diagram,y=mr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},pa.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},pa.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},pa.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},pa.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},pa.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},Ye.Object.defineProperties(pa.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ar))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ar)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),pa.className="RotatingTool",vn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Xh(){mr.call(this),this.name="ClickSelecting"}we(Xh,mr),Xh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Xh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Xh.className="ClickSelectingTool";function wl(){mr.call(this),this.name="Action",this.pk=null}we(wl,mr),wl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},wl.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},wl.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},wl.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},wl.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},wl.prototype.doStop=function(){this.pk=null},wl.className="ActionTool";function fh(){mr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Wt(0,0)}we(fh,mr),fh.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},fh.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},fh.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof oi)x.Zc()&&(El(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);be(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Wt.allocAt(a.x,a.y);this.isGridSnapEnabled&&pf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Wt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},Ye.Object.defineProperties(fh.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),fh.className="ClickCreatingTool";function al(){mr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new oi;a.layerName="Tool",a.selectable=!1;var y=new Wi;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}we(al,mr),al.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},al.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},al.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},al.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var E=Yt.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),Yt.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},al.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},al.prototype.computeBoxBounds=function(){var a=this.diagram;return new oe(a.firstInput.documentPoint,a.lastInput.documentPoint)},al.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Rr?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new rn,y=y.selection.iterator;y.next();){var E=y.value;a.contains(E)||x.add(E)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},Ye.Object.defineProperties(al.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),al.className="DragSelectingTool";function Us(){mr.call(this),this.name="Panning",this.Xt=new Wt,this.xy=new Wt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Re.document,"scroll",a.Kw,!1),a.stopTool()}}we(Us,mr),Us.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},Us.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Re.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Us.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Us.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Us.prototype.doMouseMove=function(){this.move()},Us.prototype.doMouseUp=function(){this.move(),this.stopTool()},Us.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,E=a.lastInput.documentPoint,b=y.x+x.x-E.x;x=y.y+x.y-E.y,a.allowHorizontalScroll||(b=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(b,x)}},Ye.Object.defineProperties(Us.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Us.className="PanningTool",vn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),vn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),vn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),vn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),vn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function du(){this.F=this.u=this.j=this.o=null}Ye.Object.defineProperties(du.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),du.className="HTMLInfo";function Pl(a,y,x){this.text=a,this.hx=y,this.visible=x}Pl.className="ContextMenuButtonInfo";function ma(){mr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Wt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}we(ma,mr);function Il(a){var y=new du;y.show=function(b,z,tt){tt.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},Kh=y,a.tu=function(){a.stopTool()},y=Pn("div");var x=Pn("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var E=Pn("style");Re.document.getElementsByTagName("head")[0].appendChild(E),E.sheet.insertRule(".goCXul { list-style: none; }",0),E.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),E.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),E=a.diagram,E!==null&&(E.addEventListener(y,"contextmenu",as,!1),E.addEventListener(y,"selectstart",as,!1),E.addEventListener(x,"contextmenu",as,!1)),y.className="goCXforeground",x.className="goCXbackground",Re.document.body&&(Re.document.body.appendChild(y),Re.document.body.appendChild(x)),dc=y,bd=x,hc=!0}function as(a){return a.preventDefault(),!1}ma.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},ma.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},ma.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},ma.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof xe||(a instanceof ie?E=a:E=y.ic(x.documentPoint,null,function(b){return!b.layer.isTemporary})),E!==null){for(a=E;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return E.part}else if(y.contextMenu!==null)return y;return null},ma.prototype.doActivate=function(){},ma.prototype.doMouseDown=function(){if(mr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ar){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&ql(this)},ma.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ar){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}ql(this)};function ql(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof du||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Wu(a,!0),a.isActive||a.stopTool())}ma.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Wu(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Kh,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof ie?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ar&&!a.currentContextMenu.visible&&a.stopTool()}}ma.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},ma.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Ar){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof du&&a.show(y,x,this);this.currentContextMenu=a},ma.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y+E.height>b.bottom&&(x.y-=E.height+5/y.scale),x.y<b.y&&(x.y=b.y),a.position=x}},ma.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Ar?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof du&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function gh(a){var y=new rn;return y.add(new Pl("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Pl("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Pl("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Pl("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Pl("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Pl("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Pl("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Pl("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Pl("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Pl("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Pl("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Pl("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Pl("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}ma.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=gh(this)),dc.innerHTML="",bd.addEventListener("pointerdown",this.tu,!1);var y=this,x=Pn("ul");x.className="goCXul",dc.appendChild(x),x.innerHTML="";for(var E=this.jt.iterator;E.next();){var b=E.value,z=b.visible;if(typeof b.hx=="function"&&(typeof z!="function"||z(a))){z=Pn("li"),z.className="goCXli";var tt=Pn("a");tt.className="goCXa",tt.href="#",tt.ky=b.hx,tt.addEventListener("pointerdown",function(rt){return this.ky(a),y.stopTool(),rt.preventDefault(),!1},!1),tt.textContent=b.text,z.appendChild(tt),x.appendChild(z)}}dc.style.display="block",bd.style.display="block"},ma.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Kh){dc.style.display="none",bd.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(bd,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Ye.Object.defineProperties(ma.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ar?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return hc===!1&&Kh===null&&Qo&&Il(this),Kh},set:function(a){a===null&&(hc=!0),Kh=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Kh=null,hc=!1,bd=null,dc=null;ma.className="ContextMenuTool",vn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function xo(){mr.call(this),this.name="TextEditing",this.Zh=new ho,this.ia=null,this.V=Bd,this.vj=null,this.qa=Dd,this.u=1,this.F=!0,this.o=null,this.j=new du,this.kt=null,cc(this,this.j)}we(xo,mr);function cc(a,y){if(Qo){var x=Pn("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var E=a.Lx(this.value);this.style.width=20+E.measuredBounds.width*this.wA+"px",this.rows=E.lineCount}},!1),x.addEventListener("keydown",function(E){if(!E.isComposing&&a.textBlock!==null){var b=E.key;b==="Enter"?(a.textBlock.isMultiline===!1&&E.preventDefault(),a.acceptText(fc)):b==="Tab"?(a.acceptText(of),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Dd){var E=a.kt;a.qa===gc&&(a.qa=pc),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Dd){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(E,b,z){if(E instanceof ho&&z instanceof xo)if(z.state===mc)x.style.border="3px solid red",x.focus();else{var tt=E.ga(Tn),rt=b.position,ot=b.scale,at=E.Df()*ot;at<z.minimumEditorScale&&(at=z.minimumEditorScale);var ut=E.naturalBounds.width*at+6,ft=E.naturalBounds.height*at+2,mt=(tt.x-rt.x)*ot;tt=(tt.y-rt.y)*ot,rt=E.verticalAlignment,ot=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*at,ft=rt.y*ft-rt.y*ot+rt.offsetY-(.5*ft-.5*ot)-ot/2,x.value=E.text,b.div.style.font=E.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*at+"%",x.style.lineHeight="normal",x.style.width=ut+"px",x.style.left=(mt-ut/2|0)-1+"px",x.style.top=(tt+ft|0)-1+"px",x.style.textAlign=E.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=E.lineCount,x.wA=at,x.className="goTXarea",b.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(x)}}}xo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||ph&&ph!==this&&(ph.acceptText(cu),ph&&ph!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof ho&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Bd&&!y.isSelected||this.starting===sf&&2>a.lastInput.clickCount)):!1},xo.prototype.doStart=function(){ph=this,this.textBlock!==null&&this.doActivate()},xo.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof ho&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=gc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new oe(this.textBlock.ga(yi),this.textBlock.ga(rr));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},xo.prototype.doCancel=function(){this.stopTool()},xo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},xo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(cu)},xo.prototype.acceptText=function(a){switch(a){case cu:this.qa===Nd?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===gc||this.qa===mc||this.qa===pc)&&(this.qa=fg,cg(this));break;case rf:case fc:case of:(fc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===gc||this.qa===mc||this.qa===pc)&&(this.qa=fg,cg(this))}};function cg(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Nd,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=mc,a.doError(b,z))}}xo.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},xo.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},xo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Dd,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},xo.prototype.doStop=function(){ph=null},xo.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},xo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Ye.Object.defineProperties(xo.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),xo.prototype.measureTemporaryTextBlock=xo.prototype.Lx;var rf=new Ee(xo,"LostFocus",0),cu=new Ee(xo,"MouseDown",1),of=new Ee(xo,"Tab",2),fc=new Ee(xo,"Enter",3),$0=new Ee(xo,"SingleClick",0),Bd=new Ee(xo,"SingleClickSelected",1),sf=new Ee(xo,"DoubleClick",2),Dd=new Ee(xo,"StateNone",0),gc=new Ee(xo,"StateActive",1),pc=new Ee(xo,"StateEditing",2),fg=new Ee(xo,"StateValidating",3),mc=new Ee(xo,"StateInvalid",4),Nd=new Ee(xo,"StateValidated",5),ph=null;xo.className="TextEditingTool",xo.LostFocus=rf,xo.MouseDown=cu,xo.Tab=of,xo.Enter=fc,xo.SingleClick=$0,xo.SingleClickSelected=Bd,xo.DoubleClick=sf,xo.StateNone=Dd,xo.StateActive=gc,xo.StateEditing=pc,xo.StateValidating=fg,xo.StateInvalid=mc,xo.StateValidated=Nd,vn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Va(a){yc||(gg(),yc=!0),this.H=Cu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Yu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new en,this.ce=new Xs,this.ce.Yd=this,this.Ei=new en,this.pu=new en,this.Sr=new en,this.pr=new en,a&&Object.assign(this,a)}Va.prototype.Xe=function(a){this.H=a},Va.prototype.canStart=function(){return!0};function Pu(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Ks(a.H),a.zb=!0)}function af(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===Yu?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===pg&&y.vc.clear(),a.Qw=!!(a.Pk===Sc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),xc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==aa&&E!==null&&(delete E.start.scale,delete E.end.scale),Re.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Fa(x),xg(x),a.zb=!1,y.start(),y.bc&&(mh(a),x.Ya(),mg(y,0),ul(x,!0),Qh(a),x.R("AnimationStarting",a)))}))}}function Vu(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function lf(a,y,x,E){a.isTicking||Vu(a)||y instanceof un&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Lt=Va.prototype,Lt.fv=function(a){return this.ce.fv(a)},Lt.Xu=function(a){return this.ce.Xu(a)};function uf(a,y){function x(){if(0<b.Sr.count&&(E.addAll(b.Sr),b.Sr.clear(),b.bc=!0),b.bc!==!1&&E.count!==0){b.pu.addAll(E);for(var z=b.pu.iterator;z.next();){var tt=z.value;if(tt.bc!==!1){t:if(0<tt.yl.count)var rt=!0;else{for(rt=tt.vc.iterator;rt.next();){var ot=rt.key;if(ot instanceof ie&&ot.diagram!==null||ot instanceof xe){rt=!0;break t}}rt=!1}rt?wc(tt,!1):tt.Xk=!0}}b.pu.clear(),b.bc!==!1&&(mh(b),ul(b.H),Qh(b)),Re.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),Re.requestAnimationFrame(function(){x()}))}function Vp(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function mh(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function Qh(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Lt.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),xc(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),xc(y,this.H)},Lt.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},Lt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ia(this,a))},Lt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),vh(this.ce,y,"position",y.position,y.position),Ia(this,a))};function Yp(a,y,x){!a.zb||y.D(x)||Vu(a)||(a.H.pi||(y=x.copy()),vh(a.ce,a.H,"position",y,x))}function hf(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ia(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Jh(a,y,x,E,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],tt=a[1],rt=a[2];a=a[3];var ot=y[0],at=y[1],ut=y[2];return y=y[3],rt===0||rt===100?(z=ot,tt=at):(ut===0||ut===100)&&(ot=z,at=tt),180<Math.abs(ot-z)&&(ot>z?z+=360:ot+=360),z=b(x,z,ot-z,E)%360,tt=b(x,tt,at-tt,E),rt=b(x,rt,ut-rt,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function gg(){function a(x,E,b,z,tt,rt){x.position=new Wt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}var y=new Jn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,rt){tt<rt?x.mm(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt),!1):x.position=new Wt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}),y.add("location",function(x,E,b,z,tt,rt){tt<rt?x.mm(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt),!0):x.location=new Wt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}),y.add("position:placeholder",function(x,E,b,z,tt,rt){tt<rt?x.mm(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt),!1):x.position=new Wt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}),y.add("position:nodeCollapse",function(x,E,b,z,tt,rt){var ot=x.actualBounds,at=b.actualBounds;b=at.x+at.width/2-ot.width/2,ot=at.y+at.height/2-ot.height/2,tt<rt?x.mm(z(tt,E.x,b-E.x,rt),z(tt,E.y,ot-E.y,rt),!1):x.position=new Wt(z(tt,E.x,b-E.x,rt),z(tt,E.y,ot-E.y,rt))}),y.add("desiredSize",function(x,E,b,z,tt,rt){x.desiredSize=new oe(z(tt,E.width,b.width-E.width,rt),z(tt,E.height,b.height-E.height,rt))}),y.add("width",function(x,E,b,z,tt,rt){x.width=z(tt,E,b-E,rt)}),y.add("height",function(x,E,b,z,tt,rt){x.height=z(tt,E,b-E,rt)}),y.add("fill",function(x,E,b,z,tt,rt){x.fill=Jh(E,b,tt,rt,z)}),y.add("stroke",function(x,E,b,z,tt,rt){x.stroke=Jh(E,b,tt,rt,z)}),y.add("strokeWidth",function(x,E,b,z,tt,rt){x.strokeWidth=z(tt,E,b-E,rt)}),y.add("strokeDashOffset",function(x,E,b,z,tt,rt){x.strokeDashOffset=z(tt,E,b-E,rt)}),y.add("background",function(x,E,b,z,tt,rt){x.background=Jh(E,b,tt,rt,z)}),y.add("areaBackground",function(x,E,b,z,tt,rt){x.areaBackground=Jh(E,b,tt,rt,z)}),y.add("opacity",function(x,E,b,z,tt,rt){x.opacity=z(tt,E,b-E,rt)}),y.add("scale",function(x,E,b,z,tt,rt){x.scale=z(tt,E,b-E,rt)}),y.add("angle",function(x,E,b,z,tt,rt){x.angle=z(tt,E,b-E,rt)}),vc=y}Ye.Object.defineProperties(Va.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&Mn(a,">= 1",Va,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),Va.prototype.stopAnimation=Va.prototype.Cc;var vc=null,yc=!1,Yu=new Ee(Va,"Default",1),Sc=new Ee(Va,"AnimateLocations",2),pg=new Ee(Va,"None",3);Va.className="AnimationManager",Va.defineAnimationEffect=function(a,y){yc||(gg(),yc=!0),vc.add(a,y)},Va.Default=Yu,Va.AnimateLocations=Sc,Va.None=pg;function Xs(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Td,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Co,this.vc=new Jn,this.Tt=new Jn,this.yl=new en,this.Ut=new en,this.dw=xh,a&&Object.assign(this,a)}Xs.prototype.suspend=function(){this.Xk=!0},Xs.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,wc(this,!0),mh(this.Yd),ul(this.H),Qh(this.Yd),this.H.redraw()};function xc(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}Lt=Xs.prototype,Lt.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof xe?a=x:x instanceof ie&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===Yu&&this===y.defaultAnimation&&(this.Lp=Zp,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Fc),mh(y),this.yl.each(function(E){E.data=null,a.add(E)}),Qh(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,uf(y,this),this)},Lt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Lt.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof xe?this.H=a:a instanceof ie&&a.diagram!==null&&(this.H=a.diagram)),a instanceof oi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return vh(this,a,y,x,E,b),this};function vh(a,y,x,E,b,z){var tt=a.vc;if(y instanceof xe&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Ku(E),sv(),E=[el.j,el.u,el.o,el.F],Ku(b),sv(),b=[el.j,el.u,el.o,el.F]),tt.contains(y)){var rt=tt.I(y),ot=rt.start,at=rt.end;ot[x]===void 0&&(ot[x]=qh(E)),at[x]=qh(b)}else ot={},at={},ot[x]=qh(E),at[x]=qh(b),rt=ot.position,y instanceof ie&&rt instanceof Wt&&!rt.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&rt.assign(at.position),rt=new _h(ot,at,z),tt.add(y,rt);tt=ot[x],tt instanceof Wt&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof oi?rt.Ku.location=qh(y.location):z&&(rt.Ku[x]=qh(E))}function qh(a){return a instanceof Wt||a instanceof Yt?a.copy():a}Lt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Lt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function wc(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var E=+new Date,b=E>a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,b<a.Gd?(a.Qd=+new Date-b,a.cn=a.Qd+a.Gd):b=a.Gd),mh(x),mg(a,b),ul(a.H,!0),Qh(x),E>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function mg(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof ie&&z.diagram===null)){var tt=E.value,rt=b?tt.end:tt.start;tt=b?tt.start:tt.end;var ot=vc,at;for(at in tt)at==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||ot.get(at)===null||ot.get(at)(z,rt[at],tt[at],a.Lp,y,x,a)}}}Lt.stop=function(){return this.bc?(this.Ml(!0),this):this},Lt.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,mh(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=vc;E.next();){var tt=E.key,rt=E.value,ot=b?rt.end:rt.start,at=b?rt.start:rt.end,ut=rt.Ku,ft;for(ft in at)if(z.get(ft)!==null){var mt=ft;!rt.Hu||mt!=="position:nodeCollapse"&&mt!=="position:placeholder"||(mt="position"),z.get(mt)(tt,ot[ft],ut[ft]!==void 0?ut[ft]:rt.Hu?ot[ft]:at[ft],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&ut.location!==void 0&&tt instanceof oi&&(tt.location=ut.location),rt.nv&&tt instanceof oi&&tt.Zb(!1)}if(y.As.clear(),Pc(y,!1),y.Ya(),y.N(),ul(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)b=ft.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}ul(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Qh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),xc(this,null),x.Ml(this),y.$b())}},Lt.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Ri&&(E=y.placeholder),E!==null?(x=E.ga(yi),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Wt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Ri)for(a=a.memberParts;a.next();)E=a.value,E instanceof yn&&this.Cj(E,y)},Lt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Ri&&(x=y.placeholder),x!==null){var E=x.ga(yi);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Ri)for(a=a.memberParts;a.next();)E=a.value,E instanceof yn&&this.Aj(E,y)}},Lt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Ye.Object.defineProperties(Xs.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Mn(a,">= 1",Xs,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:Xt("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),Xs.prototype.getTemporaryState=Xs.prototype.Ez,Xs.prototype.stop=Xs.prototype.stop,Xs.prototype.add=Xs.prototype.add,Xs.prototype.addTemporaryPart=Xs.prototype.Iy;function Td(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Zp(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Xs.className="Animation",Xs.EaseLinear=function(a,y,x,E){return x*a/E+y},Xs.EaseInOutQuad=Td,Xs.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Xs.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Xs.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Xs.EaseOutExpo=Zp;function _h(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}_h.className="AnimationState";function Ol(a,y,x){this.xd=null,this.rf=a,this.so=x||vg,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=$h))}Ol.prototype.copy=function(){var a=new Ol(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Up(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}Ye.Object.defineProperties(Ol.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var vg=new Ee(Ol,"Default",1),$h=new Ee(Ol,"Immediate",2),Id=new Ee(Ol,"Bundled",3);Ol.className="AnimationTrigger",Ol.Default=vg,Ol.Immediate=$h,Ol.Bundled=Id;function Bs(a){zr(this),this.H=null,this.Pa=new rn,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Lt=Bs.prototype,Lt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,oa(x)}a.clear(),this.Zq.length=0},Lt.Xe=function(a){this.H=a},Lt.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,rt=this.Pa.iterator;rt.next();){var ot=rt.value;ot instanceof Ri?b++:ot instanceof yn?E++:ot instanceof un?z++:ot instanceof Ar?tt++:x++}if(rt="",0<x&&(rt+=x+" Parts "),0<E&&(rt+=E+" Nodes "),0<b&&(rt+=b+" Groups "),0<z&&(rt+=z+" Links "),0<tt&&(rt+=tt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,rt+=`
|
|
`+x.toString(),E=x.data,E!==null&&no(E)&&(rt+=" #"+no(E)),x instanceof yn?rt+=" "+or(E):x instanceof un&&(rt+=" "+or(x.fromNode)+" "+or(x.toNode));return y+" "+this.Pa.count+": "+rt},Lt.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var b=Wt.alloc(),z=this.Pa.s,tt=z.length;tt--;){var rt=z[tt];if((E!==!0||ud(rt)!==!1)&&rt.isVisible()&&(b.assign(a),Bi(b,rt.oe),rt=rt.ic(b,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return Wt.free(b),rt}return Wt.free(b),null},Lt.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof rn||E instanceof en||(E=new en),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=Wt.alloc(),tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((b!==!0||ud(ot)!==!1)&&ot.isVisible()){z.assign(a),Bi(z,ot.oe);var at=ot;ot.ji(z,y,x,E)&&(y!==null&&(at=y(at)),at===null||x!==null&&!x(at)||E.add(at))}}return Wt.free(z),E},Lt.Cf=function(a,y,x,E,b){if(y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof rn||b instanceof en||(b=new en),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((z!==!0||ud(ot)!==!1)&&ot.isVisible()){var at=ot;ot.Cf(a,y,x,E,b)&&(y!==null&&(at=y(at)),at===null||x!==null&&!x(at)||b.add(at))}}return b},Lt.Nu=function(a,y,x,E,b,z,tt){if(this.Uh===!1)return b;for(var rt=this.Pa.s,ot=rt.length;ot--;){var at=rt[ot];if((tt!==!0||ud(at)!==!1)&&z(at)&&at.isVisible()){var ut=at;at.Cf(a,y,x,E,b)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||b.add(ut))}}return b},Lt.og=function(a,y,x,E,b,z){if(x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof rn||b instanceof en)&&(z=b),b=!0),z instanceof rn||z instanceof en||(z=new en),this.Uh===!1)return z;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var rt=Wt.alloc(),ot=Wt.alloc(),at=this.Pa.s,ut=at.length;ut--;){var ft=at[ut];if((tt!==!0||ud(ft)!==!1)&&ft.isVisible()){rt.assign(a),Bi(rt,ft.oe),ot.h(a.x+y,a.y),Bi(ot,ft.oe);var mt=ft;ft.og(rt,ot,x,E,b,z)&&(x!==null&&(mt=x(mt)),mt===null||E!==null&&!E(mt)||z.add(mt))}}return Wt.free(rt),Wt.free(ot),z},Lt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=On();for(var b=On(),z=0;z<E;z++){var tt=x[z];if(tt.vw=z,tt instanceof un){if(tt.fd===!1)continue}else if(tt instanceof Ar&&tt.adornedPart!==null)continue;var rt=tt.actualBounds;tt.isVisible()&&pi(rt,y)?(tt.Fd(!0),a.push(tt)):(tt.Fd(!1),tt.adornments!==null&&0<tt.adornments.count&&b.push(tt))}for(y=0;y<a.length;y++)for(x=a[y],Iv(x),x=x.adornments;x.next();)E=x.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<b.length;y++)Iv(b[y]);Bn(a),Bn(b)}}};function Zu(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Lt.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var E=x.length;if(E!==0){if(a.isTemporary)for(var b=0;b<E;b++)x[b].Gj();b=Zu(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,rt=oe.alloc(),ot=0;ot<E;ot++)this.Oj(a,x[ot],y,z,tt,rt,!0);if(oe.free(rt),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function Xp(a,y,x,E,b){if(a.visible&&a.pb!==0&&(b||!a.isTemporary)){b=a.Pa.s;var z=b.length;if(z!==0){var tt=Zu(a,y),rt=a.Zq;rt.length=0;for(var ot=x.scale,at=oe.alloc(),ut=0;ut<z;ut++){var ft=b[ut];E.contains(ft)&&a.Oj(y,ft,x,rt,ot,at,!1)}oe.free(at),y.globalAlpha=tt}}}Lt.Oj=function(a,y,x,E,b,z,tt){if(tt&&!ud(y))a.Hs(y);else{if(E!==null&&y instanceof un&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(tt=!1,E=y.containingGroup;E!==null;)tt?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(tt=!0,z.assign(E.tb)),E=E.containingGroup;var rt=y.actualBounds;if(E=!1,tt&&y.isVisible()){if(!z.Yc(rt)){a.Hs(y);return}E=!z.Re(rt)}E&&(a.save(),a instanceof Ya?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),rt.width*b>x.Oq||rt.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Jo(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Jo(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Jo(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Lt.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(yo,a,this,y,x,E,b)},Lt.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&oa(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),df(this,a,y),a},Lt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,oa(y),a};function df(a,y,x){if(y=Kp(a,y,x),x instanceof Ri&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;tt<z;tt++){var rt=b[tt];if(rt===x&&(y=tt,0<=E)||0>E&&rt.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E<y&&(b=a.Pa,b.mb(y),b.Gb(E,x))}y=x.containingGroup,y!==null&&df(a,-1,y)}x.svg!==null&&x.svg.remove()}function Kp(a,y,x){var E=x.zOrder;if(isNaN(E))return y;a=a.Pa;var b=a.count;if(1>=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var rt=y+1,ot=NaN;rt<b&&(ot=a.M(rt).zOrder,!!isNaN(ot));)rt++;if(!isNaN(tt)&&tt>E)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(ot)&&ot<E)for(;;){if(rt===b||ot>=E){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(ot=NaN;++rt<b&&(ot=a.M(rt).zOrder,isNaN(ot)););}return y}Ye.Object.defineProperties(Bs.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&&Xt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Xt("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Mn(a,"0 <= value <= 1",Bs,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),Bs.prototype.findObjectsNear=Bs.prototype.og,Bs.prototype.findObjectsIn=Bs.prototype.Cf,Bs.prototype.findObjectsAt=Bs.prototype.ji,Bs.prototype.findObjectAt=Bs.prototype.ic,Bs.className="Layer";function xe(a,y){if(lm||(ia(),lm=!0),zr(this),Cu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Qo){var x=this,E=function(){x.removeEventListener(Re.document,"DOMContentLoaded",E,!1),x.setRTL()};Re.document.body!==null?this.setRTL():x.addEventListener(Re.document,"DOMContentLoaded",E,!1)}this.ol=null,Pf.add("Model",Wr);var b=this;return this.Hb=function(z){var tt=b.partManager;if(z.model===tt.diagram.model&&tt.diagram.aa){tt.diagram.aa=!1;try{var rt=z.change;z.modelChange===""&&rt===yo&&tt.updateDataBindings(z.object,z.propertyName)}finally{tt.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,Qp(this),this.model=hy(),this.Wg=!0,qp(this),this.layout=new Do,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new um,a!==void 0&&(typeof a=="string"||Re.Element&&a instanceof Element?Sg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var td,Cu;function Qp(a){a.Yd=new Va,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new rn,a.pj=new Jn,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Wt(NaN,NaN).freeze(),a.du=new Wt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Wt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new En,a.zu=new Wt(NaN,NaN).freeze(),a.ut=new oe(NaN,NaN,NaN,NaN).freeze(),a.rj=new Yn(0,0,0,0).freeze(),a.sj=xh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=aa,a.zk=$r,a.Fg=aa,a.pq=$r,a.yt=yi,a.Bt=yi,a.Fc=!0,a.pn=!1,a.De=new en,a.Eh=new Jn,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Yn(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Rs,a.bq.diagram=a,a.Qg=new Rs,a.Qg.diagram=a,a.cj=new Rs,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,ev(a),a.ai=new en,a.Ht=!0,a.uu=wh,a.pw=!1,a.wu=Mc,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new Jn,a.Xn=new rn,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new Yn(5).freeze(),a.Hw=new en().freeze(),a.Nt=999999999,a.nw=new en().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new en,a.ow=new en,a.Xh=null,a.aw=new Yt(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Wt,bounds:new oe,Py:new Yt,bA:new Yt,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new oe(NaN,NaN,NaN,NaN).freeze(),a.wo=new Yt(NaN,NaN).freeze(),a.Sp=new oe(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Jn;var y=new yn,x=new ho;x.bind(new ls("text","",or)),y.add(x),a.ny=y,a.Lg.add("",y),y=new yn,x=new ho,x.stroke="brown",x.bind(new ls("text","",or)),y.add(x),a.Lg.add("Comment",y),y=new yn,y.selectable=!1,y.avoidable=!1,x=new Wi,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Yt(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Jn,y=new Ri,y.selectionObjectName="GROUPPANEL",y.type=nn.Vertical,x=new ho,x.font="bold 12pt sans-serif",x.bind(new ls("text","",or)),y.add(x),x=new nn(nn.Auto),x.name="GROUPPANEL";var E=new Wi;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new xa,E.padding=new Yn(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Jn,y=new un,x=new Wi,x.isPanelMain=!0,y.add(x),x=new Wi,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new un,x=new Wi,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ar,y.type=nn.Auto,x=new Wi,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new xa,x.margin=new Yn(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Ar,y.type=nn.Link,x=new Wi,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new Wr,a.toolManager=new eo,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new st,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Jp(),a.eq=null,a.fq=ro,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new Wt,a.zy=500,a.wp=new Wt,a.wq=!1}xe.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Wd=null,od="",yg(this,!1),this.Xn.clear(),If(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function yg(a,y){a.animationManager.Cc(!0),a.Hw=new en().freeze(),a.nw=new en().freeze();var x=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],tt=a.Wa.length;if(y){for(y=0;y<tt;y++)for(var rt=a.Wa.s[y].parts;rt.next();){var ot=rt.value;ot!==b&&ot.data===null&&z.push(ot)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<tt;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),If(),a.Og.clear(),No=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function Jp(){return null}xe.prototype.reset=function(){this.clear(),this.vb=!0,Qp(this),gu(this),this.Wg=!0,qp(this),this.layout=new Do,this.Wg=!1,this.model=hy(),this.model.undoManager=new bo,this.vb=this.rn=!1,this.N()},xe.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Re.document.body);var y=Pn("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},xe.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Re.document.body);var y=0;if(Qo){var x=am;y=td,x===null&&(x=am=Pn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=td=Pn("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var E=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,E===x&&(x=y.clientWidth),a.removeChild(y),y=E-x,y!==0||Rr||(y=11)}this.Db=y,this.Gw=!0},xe.prototype.qb=function(a){a.classType===xe&&(this.autoScale=a)},xe.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
|
|
`+x.value.toString(a-1);return y};function Sg(a,y){if(Qo){if(y!=null||Xt("Diagram setup requires an argument DIV."),a.Ka!==null&&Xt("Diagram has already completed setup."),typeof y=="string"?a.Ka=Re.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Xt("No DIV or DIV id supplied: "+y),a.Ka===null&&Xt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Xt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Re.ResizeObserver){var x=xi(function(){a.$b()},250);a.ol=new Re.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Re.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Re.go;var b=new Ll(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Re.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Mg(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Ll(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Qo){b=Pn("div");var z=Pn("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=$p,b.addEventListener("pointerdown",tm),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=xi(function(){a.Yh=null,a.N()},300),a.Ov=xi(function(){xg(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=ll(a,tt,!0);rt.bubbles=!0;var ot=0,at=0;rt.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(ot=0<tt.deltaX?1:-1),tt.deltaY!==0&&(at=0<tt.deltaY?1:-1),rt.delta=Math.abs(tt.deltaX)>Math.abs(tt.deltaY)?-ot:-at):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(ot=0<tt.wheelDeltaX?-1:1),tt.wheelDeltaY!==0&&(at=0<tt.wheelDeltaY?-1:1),rt.delta=Math.abs(tt.wheelDeltaX)>Math.abs(tt.wheelDeltaY)?-ot:-at):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(rt.delta=0<tt.wheelDelta?1:-1),a.doMouseWheel(),Rl(rt,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,ll(a,tt,!0),tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())},a.ui=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.Yt;rt[tt.pointerId]===void 0&&(rt[tt.pointerId]=tt),rt=a.oj;var ot=!1;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)if(rt[1]!==null&&rt[1].pointerId===tt.pointerId)rt[1]=tt,ot=!0;else if(rt[0]===null)rt[0]=tt;else if(rt[1]===null)rt[1]=tt,ot=!0;else{tt.preventDefault();return}else rt[0]=tt;(rt=tt.pointerType==="touch"||tt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var at=ot;ot=Ag(a,tt,!0,!1,!0,at),Rd(a,tt,ot),ot.targetDiagram=Cg(tt,tt.target),ot.targetObject=null,at||ot.clone(a.bq),at=a.uw,rt=rt?25:10,tt.timeStamp-a.tw<a.zy&&!(Math.abs(at.x-tt.screenX)>rt||Math.abs(at.y-tt.screenY)>rt)?a.yq++:a.yq=1,ot.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():Rl(ot,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.oj;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType){if(rt[1]!==null&&rt[1].pointerId===tt.pointerId){rt[1]=tt;return}if(rt[0]===null)rt[0]=tt;else return}else rt[0]=tt;if(rt[0].pointerId===tt.pointerId){rt=Ag(a,tt,!1,!1,!1,rt[1]!==null);var ot=Re.document.elementFromPoint(tt.clientX,tt.clientY)||null;ot!==null&&ot.shadowRoot!==void 0&&ot.shadowRoot!==null&&(ot=ot.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var at=a,ut=tt;ot&&ot.H&&(ut=tt,at=ot.H),rt.targetDiagram=at,Rd(a,ut,rt),rt.targetObject=null,a.doMouseMove(),Rl(rt,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=tt.pointerType==="touch"||tt.pointerType==="pen",ot=a.Yt;if(rt&&a.qu)delete ot[tt.pointerId],tt.preventDefault();else if(ot=a.oj,ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType)ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null);else{ot[0]=null,ot=Ag(a,tt,!1,!0,!0,!1);var at=Re.document.elementFromPoint(tt.clientX,tt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),at!==null&&at.H instanceof xe&&at.H!==a&&Rd(at.H,tt,ot),at===null&&(at=tt.target),Rd(a,tt,ot),ot.clickCount=a.yq,ot.targetDiagram=Cg(tt,at),ot.targetObject=null,a.doMouseUp(),Rl(ot,tt),rt&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var rt=a.Yt;rt[tt.pointerId]&&delete rt[tt.pointerId],rt=a.oj,rt[0]!==null&&rt[0].pointerId===tt.pointerId&&(rt[0]=null),rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var rt=a.oj;rt[0]!==null&&rt[0].pointerId===tt.pointerId?(rt[0]=null,a.wq=!1):rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null)},a.Vp=E.Z["d"+bc[1]+bc[2]+"wI"+Yd.slice(1,5)]["b"+Dx.slice(1,y)](E.Z,kc,y,y),E.Vc(!0),tv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}xe.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},xe.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function tv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Re,"resize",a.Ov,!1)}function Fa(a){30<a.Sq&&(a.Yh=1)}function Pc(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Ir&&Ir.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}xe.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Re.devicePixelRatio||1},xe.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},xe.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},xe.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},xe.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},xe.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},xe.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},xe.prototype.doFocus=function(){this.focus()},xe.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Re.scrollX||Re.pageXOffset,y=Re.scrollY||Re.pageYOffset;this.ta.focus(),Re.scrollTo(a,y)}},xe.prototype.Oy=function(){this.H.R("GainedFocus")},xe.prototype.Ny=function(){this.H.R("LostFocus")};function xg(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,E=a.Be?a.Db:0,b=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==b&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===aa&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function qp(a){var y=new Bs;y.name="Background",a.Al(y),y=new Bs,y.name="",a.Al(y),y=new Bs,y.name="Foreground",a.Al(y),y=new Bs,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Bs,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Bs,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function _p(a){var y=new nn(nn.Grid);y.name="GRID";var x=new Wi;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Wi,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Wi,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Wi,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Wi,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Wi,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new oi,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function $p(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Hd(this.H)}function tm(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Hd(this.H)}xe.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var E=this.documentBounds,b=this.viewportBounds,z=this.rj,tt=E.x-z.left,rt=E.y-z.top,ot=E.width+z.left+z.right,at=E.height+z.top+z.bottom,ut=E.right+z.right;z=E.bottom+z.bottom;var ft=b.x;E=b.y;var mt=b.width,yt=b.height,wt=b.right,Mt=b.bottom;b=this.scale;var Ht=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Ht=Ht+a.scrollWidth-a.clientWidth;break;case"reverse":Ht=a.scrollWidth-Ht-a.clientWidth}var It=Ht;mt<ot||yt<at?(Ht=Wt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==It&&(Ht.x=It/b+tt,this.ju=It),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Ht.y=a.scrollTop/b+rt,this.lu=a.scrollTop),this.position=Ht,Wt.free(Ht),this.Ee=this.qr=!1):(Ht=Wt.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<ft&&(this.position=Ht.h(It+tt,this.position.y)),ut>wt&&(this.position=Ht.h(-(y.scrollWidth-this.Aa)+It-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rt<E&&(this.position=Ht.h(this.position.x,a.scrollTop+rt)),z>Mt&&(this.position=Ht.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Wt.free(Ht),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,wt=b.right,z=E.bottom,Mt=b.bottom,tt=E.x,ft=b.x,rt=E.y,E=b.y,mt>=ot&&tt>=ft&&ut<=wt&&(x.style.width="1px"),yt>=at&&rt>=E&&z<=Mt&&(x.style.height="1px"))}},xe.prototype.computeBounds=function(a){return a===void 0&&(a=new oe),Ks(this),wg(this,a)};function wg(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;z<b;z++){var tt=E[z];if(tt.visible&&tt.isInDocumentBounds){tt=tt.Pa.s;for(var rt=tt.length,ot=0;ot<rt;ot++){var at=tt[ot];at.isInDocumentBounds&&at.isVisible()&&(at=at.actualBounds,at.w()&&(x?(x=!1,y.assign(at)):y.ed(at)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}xe.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Ln(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof un||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds))}else for(a=a.iterator;a.next();)E=a.value,!y&&E instanceof un||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new oe(NaN,NaN,0,0):x};function Cl(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=Wt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=oe.allocAt(0,0,E.width,E.height);var b=Wt.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,oe.free(E),Wt.free(b),Wt.free(x)}x=a.yh,y&&a.Fg!==aa&&(x=a.Fg);var z=x!==aa?Od(a,x):a.scale;x=a.pa.x,E=a.pa.y,b=a.Aa/z;var tt=a.ya/z,rt=a.zk,ot=a.pq;y&&!rt.sb()&&(ot.sb()||ot.Xb())&&(rt=ot.Xb()?Tn:ot),Pg(a,a.documentBounds,b,tt,rt,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,$t.B(z.x,x)&&$t.B(z.y,E)&&$t.B(z.width,b)&&$t.B(z.height,tt)||a.onViewportBoundsChanged(new oe(x,E,b,tt),z,y,!1)}}function Od(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var E=a.documentBounds;if(!E.w())return x;var b=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),tt=a.ya+(a.Be?a.Db:0),rt=z/b,ot=tt/E;return y===_a?(y=Math.min(ot,rt),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===sd?(y=ot>rt?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}xe.prototype.zoomToFit=function(){var a=this.sj;this.sj=xh,this.scale=Od(this,_a),a!==xh&&(Cl(this,!1),Pg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Lt=xe.prototype,Lt.BA=function(a,y){y===void 0&&(y=_a);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===_a||y===sd)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===sd?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new Wt(a.x,a.y)}},Lt.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Wt(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Lt.zz=function(a){if(a instanceof ie){this.eq=a;var y=Wt.alloc();this.fq=this.op(a.ga(yi,y)),Wt.free(y)}else this.eq=null,this.fq=ro};function Pg(a,y,x,E,b,z){var tt=Wt.allocAt(a.pa.x,a.pa.y),rt=tt.x,ot=tt.y;if(a.eq!==null){var at=Wt.alloc();at=a.eq.ga(yi,at),rt=at.x-a.fq.x/a.scale,ot=at.y-a.fq.y/a.scale,b=li,Wt.free(at)}(z||a.scrollMode===xh)&&(b.sb()&&(x>y.width&&(rt=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(ot=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,x<y.width+b.left+b.right?(rt=Math.min(rt+x/2,y.right+Math.max(z,b.right)-x/2),rt=Math.max(rt,y.left-Math.max(z,b.left)+x/2),rt-=x/2):rt>y.left?rt=y.left:rt<y.right-x&&(rt=y.right-x),x=E-y.height,E<y.height+b.top+b.bottom?(ot=Math.min(ot+E/2,y.bottom+Math.max(x,b.bottom)-E/2),ot=Math.max(ot,y.top-Math.max(x,b.top)+E/2),ot-=E/2):ot>y.top?ot=y.top:ot<y.bottom-E&&(ot=y.bottom-E)),tt.x=isFinite(rt)?rt:-a.yb.left,tt.y=isFinite(ot)?ot:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,tt),tt.x=y.x,tt.y=y.y),Yp(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),gu(a),Wt.free(tt)}Lt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Au(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof oi)return a}else if(a=Au(this,a,function(x){return x.part}),a instanceof oi)return a;return null},Lt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Ks(this);for(var E=this.Wa.iteratorBackwards;E.next();){var b=E.value;if(b.visible&&(b=b.ic(a,y,x),b!==null))return b}return null};function Au(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),Ks(a),a=a.Wa.iteratorBackwards;a.next();){var b=a.value;if(b.visible&&!b.isTemporary&&(b=b.ic(y,x,E),b!==null))return b}return null}Lt.lz=function(a,y,x){return y===void 0&&(y=!0),Cc(this,a,function(E){return E.part},y?function(E){return E instanceof oi&&E.canSelect()}:null,x)};function Cc(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof rn||b instanceof en||(b=new en),Ks(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}Lt.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof rn||E instanceof en||(E=new en),Ks(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},Lt.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),cf(this,a,function(b){return b instanceof oi&&(!x||b.canSelect())},y,E)},Lt.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof rn||b instanceof en||(b=new en),Ks(this);for(var z=this.Wa.iteratorBackwards;z.next();){var tt=z.value;tt.visible&&tt.Cf(a,y,x,E,b)}return b},Lt.Nu=function(a,y,x,E,b,z){var tt=new en;Ks(this);for(var rt=this.Wa.iteratorBackwards;rt.next();){var ot=rt.value;ot.visible&&ot.Nu(a,y,x,E,tt,b,z)}return tt};function cf(a,y,x,E,b){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof rn||b instanceof en||(b=new en),Ks(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;tt.visible&&!tt.isTemporary&&tt.Cf(y,z,x,E,b)}return b}Lt.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),Ac(this,a,y,function(z){return z instanceof oi&&(!E||z.canSelect())},x,b)},Lt.og=function(a,y,x,E,b,z){x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof rn||b instanceof en)&&(z=b),b=!0),z instanceof rn||z instanceof en||(z=new en),Ks(this);for(var tt=this.Wa.iteratorBackwards;tt.next();){var rt=tt.value;rt.visible&&rt.og(a,y,x,E,b,z)}return z};function Ac(a,y,x,E,b,z){var tt=null;for(tt===void 0&&(tt=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof rn||b instanceof en)&&(z=b),b=!0),z instanceof rn||z instanceof en||(z=new en),Ks(a),a=a.Wa.iteratorBackwards;a.next();){var rt=a.value;rt.visible&&!rt.isTemporary&&rt.og(y,x,tt,E,b,z)}return z}xe.prototype.acceptEvent=function(a){return ll(this,a,a instanceof MouseEvent)};function ll(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?Rd(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),Rr&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=Cg(y,y.target),E.targetObject=null,E}function Cg(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function Ag(a,y,x,E,b,z){var tt=a.Qg;return a.Qg=a.cj,a.cj=tt,tt.diagram=a,tt.clickCount=1,a=tt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),tt.modifiers=a,tt.event=y,tt.timestamp=y.timeStamp,tt.button=y.button,tt.buttons=y.buttons,Rr&&y.button===0&&y.ctrlKey&&(tt.button=2),tt.down=x,tt.up=E,tt.handled=!1,tt.bubbles=b,tt.isMultiTouch=z,tt}function Rl(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}xe.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=ll(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),Rl(x,a)},xe.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ll(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),Rl(x,a)},xe.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ll(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Rl(x,a)},xe.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ll(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Rl(x,a)},xe.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Wt(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?Bi(new Wt(y,a),this.Ab):new Wt(y,a)};function Rd(a,y,x){var E=a.ta,b=a.Aa,z=a.ya,tt=0,rt=0;E!==null&&(E=E.getBoundingClientRect(),tt=y.clientX-b/E.width*E.left,rt=y.clientY-z/E.height*E.top),x.viewPoint.h(tt,rt),a.Ab!==null?(y=Wt.allocAt(tt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),Wt.free(y)):x.documentPoint.h(tt,rt)}function Lg(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),x.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}xe.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function em(a){a.ld||Ks(a),a.Va()}xe.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Lt=xe.prototype,Lt.Pz=function(){return this.kg},Lt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,ul(this),this.hf=!1,this.du=new Wt(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&_i(function(){E.ld=!1,Pu(y,"Model"),a(E)},1)},Lt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Re.requestAnimationFrame(function(){y.kg&&y.bd()})}},Lt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),ul(this))};function ed(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Hd(a)||(y&&Ks(a),x&&Cl(a,!1))}function ul(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,E=a.Xn;if(!x.isAnimating&&E.length!==0){for(var b=E.s,z=b.length,tt=0;tt<z;tt++){var rt=b[tt];fs(rt,!1),rt.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(ot){ot.Nv()}),E.clear()),b=E=!1,x.defaultAnimation.isAnimating&&(b=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||xg(a),ed(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(fu(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Ks(a),z=!1,(!a.hf||a.xh)&&(a.hf?Ig(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Ig(a,!1)),z=!0),a.Jk=!1,Ks(a),a.ou||em(a),ed(a,!0,!1),tt=!1,z?(x=oe.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Eg(a)),a.R("LayoutCompleted"),ed(a,!0,!1),oe.free(x)):x.Ok&&x.Qw&&(a.Fg!==aa?a.scale=Od(a,a.Fg):a.yh!==aa?a.scale=Od(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Cl(a,!0)),z&&tt&&a.eb("Initial Layout"),Ks(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function Eg(a){if(a.Fg!==aa)a.scale=Od(a,a.Fg);else if(a.yh!==aa)a.scale=Od(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Cl(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),fu(a)}function Ks(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new en,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Ri&&E.U&65536&&(E.U=E.U^65536)})}}Lt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Ri||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Ri&&x.isVisible()&&Lc(this,x);for(a.reset();a.next();)x=a.value,x instanceof un&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Ar&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Lc(a,y){for(var x=On(),E=On(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Ri?(tl(z)||ya(z)||ld(z))&&Lc(a,z):z instanceof un?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;b<a;b++)z=x[b],z.measure(1/0,1/0),z.arrange();for(Bn(x),y.measure(1/0,1/0),y.arrange(),a=E.length,y=0;y<a;y++)x=E[y],x.measure(1/0,1/0),x.arrange();Bn(E)}Lt.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},Lt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Xt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){jd(this);var x=this.Aa,E=this.ya;if(a.Gv.resize(x,E,x,E),x=this.Wa.s,E=x.length,this.Fd(x,E,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var b=this.Ca,z=Math.round(y.x*b)/b,tt=Math.round(y.y*b)/b,rt=this.Ab;for(rt.reset(),b!==1&&rt.scale(b),y.x===0&&y.y===0||rt.translate(-z,-tt),a.ti=null,Ky(a,rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),this.pb!==1&&(a.globalAlpha=this.pb),yh(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<E;y++)x[y].gc(a,this);a=!1,this.Yf?Zd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(En.prototype.Cd=En.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,jd(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,b=y.length,this.Fd(y,b,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),tt=this.Mb,rt=this.pa;var ot=this.Ca,at=Math.round(rt.x*ot)/ot,ut=Math.round(rt.y*ot)/ot;for(ot!==1&&z.scale(ot),rt.x===0&&rt.y===0||z.translate(-at,-ut),a.setTransform(tt,0,0,tt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),yh(this,a),rt=0;rt<b;rt++)a.setTransform(tt,0,0,tt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[rt].gc(a,this);if(y=!1,this.Yf?Zd(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(En.prototype.Cd=En.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=Ir&&Ir.nx,x=this.zw,E||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,b=y=0;b<x.length;b++)y+=x[b];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<x.length;E++)a.fillText(x[E].toString(),20,150+ +(20*E))}}};function ff(a,y,x,E,b,z,tt,rt,ot,at){if(a.Ka!==null){a.ta===null&&Xt("No canvas specified"),tt===void 0&&(tt=null),rt===void 0&&(rt=null),ot===void 0&&(ot=!1),at===void 0&&(at=!1),jd(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ut=a.Ca;a.Ca=b;var ft=a.Wa.s,mt=ft.length;try{var yt=new oe(z.x,z.y,E.width/b,E.height/b),wt=yt.copy();wt.Co(x),fu(a,wt),Ks(a),a.Fd(ft,mt,a,yt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),rt!==null&&rt!==""&&(y.fillStyle=rt,y.ox(0,0,E.width,E.height));var Mt=a.Mb;y.scale(Mt,Mt);var Ht=En.alloc();Ht.reset(),Ht.translate(x.left,x.top),Ht.scale(b),z.x===0&&z.y===0||Ht.translate(-z.x,-z.y),y.setTransform(Ht.m11,Ht.m12,Ht.m21,Ht.m22,Ht.dx,Ht.dy),y.yc(),y instanceof Ya&&Ky(y,Ht.m11,Ht.m12,Ht.m21,Ht.m22,Ht.dx,Ht.dy),En.free(Ht),yh(a,y),y.globalAlpha=a.pb;var It=a.Qj("Grid");if(tt){var Zt=new en,Kt=tt.iterator;for(Kt.reset();Kt.next();){var Qt=Kt.value;Qt instanceof oi&&(at||Qt.layer!==It)&&(Qt.Gj(),Zt.add(Qt))}for(at=0;at<mt;at++)Xp(ft[at],y,a,Zt,ot);Zt.each(function(Se){return Se.Gj()})}else for(Zt=0;Zt<mt;Zt++){var ne=ft[Zt];ne===It?at&&ne.gc(y,a,!0):ne.gc(y,a,ot)}a.$i=!1,a.Yf&&Zd(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(ft,mt,a,a.viewportBounds),fu(a),a.ib instanceof Ya&&(a.ib.Nj.PA(),a.redraw())}}}Lt.Gf=function(a){return this.Rg[a]},Lt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Lt.Tx=function(){this.Rg=new fi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Rr||Tr),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function yh(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Lt.Ql=function(a){return this.on[a]},Lt.sA=function(a,y){this.on[a]=y},Lt.Sx=function(){this.on=new fi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Lt.set=function(a){return Object.assign(this,a),this},Lt.Du=function(a){return this.nm(a)},Lt.nm=function(a){return zd(this,a),this};function zd(a,y){var x=a instanceof nn,E=a instanceof xe,b;for(b in y){b===""&&Xt("Setting properties requires non-empty property names");var z=a,tt=b;if(x||E){var rt=b.indexOf(".");if(0<rt){var ot=b.substring(0,rt);x?z=a.fb(ot):(z=a[ot],z==null&&(z=a.toolManager[ot])),be(z)?tt=b.substr(rt+1):Xt("Unable to find object named: "+ot+" in "+a.toString()+" when trying to set property: "+b)}}if(tt[0]!=="_"&&!Hi(z,tt))if(E&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(E&&tt==="Changed"){a.Pe(y[tt]);continue}else if(E&&Hi(a.toolManager,tt))z=a.toolManager;else if(E&&rm(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof Xn&&tt==="Changed"){a.Pe(y[tt]);continue}else Xt('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[b],tt[0]==="_"&&z instanceof ie&&z.Vw(tt)}}Lt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Jn,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Lt.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},xe.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Fc&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=this.scale,b=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*E&&0<Math.max(0,z-b)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=oe.alloc(),Tg(this,this.computeBounds(E)),oe.free(E)),E=this.ta,E===null||E instanceof pu)))){var tt=this.Mb;b=this.Aa*tt;var rt=this.ya*tt,ot=this.scale*tt;z=Math.round(Math.round(y.x*ot)-Math.round(a.x*ot)),y=Math.round(Math.round(y.y*ot)-Math.round(a.y*ot)),ot=this.jw,a=this.oy,ot.width!==b&&(ot.width=b),ot.height!==rt&&(ot.height=rt),a.clearRect(0,0,b,rt),ot=190*tt;var at=70*tt,ut=Math.max(z,0),ft=Math.max(y,0),mt=Math.floor(b-ut),yt=Math.floor(rt-ft);a.drawImage(E.Oa,ut,ft,mt,yt,0,0,mt,yt),Zd(this.Yf,this)&&a.clearRect(0,0,ot,at),E=On(),a=On(),yt=Math.abs(z),mt=Math.abs(y);var wt=ut===0?0:b-yt;ut=Wt.allocAt(wt,0),yt=Wt.allocAt(yt+wt,rt),a.push(new oe(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y)));var Mt=this.Ab;if(Mt.reset(),Mt.scale(tt,tt),this.Ca!==1&&Mt.scale(this.Ca),tt=this.pa,(tt.x!==0||tt.y!==0)&&isFinite(tt.x)&&isFinite(tt.y)&&Mt.translate(-tt.x,-tt.y),Bi(ut,Mt),Bi(yt,Mt),E.push(new oe(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y))),wt=ft===0?0:rt-mt,ut.h(0,wt),yt.h(b,mt+wt),a.push(new oe(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y))),Bi(ut,Mt),Bi(yt,Mt),E.push(new oe(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y))),Zd(this.Yf,this)&&(b=0<z?0:-z,rt=0<y?0:-y,ut.h(b,rt),yt.h(ot+b,at+rt),a.push(new oe(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y))),Bi(ut,Mt),Bi(yt,Mt),E.push(new oe(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y)))),Wt.free(ut),Wt.free(yt),ed(this,!1,!0),this.Ka===null&&Xt("No div specified"),this.ta===null&&Xt("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(jd(this),rt=this.Mb,b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,this.Aa*rt,this.ya*rt),b.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,tt=this.Ca,ot=Math.round(z.x*tt)/tt,at=Math.round(z.y*tt)/tt,y=this.Ab,y.reset(),tt!==1&&y.scale(tt),z.x===0&&z.y===0||y.translate(-ot,-at),b.save(),b.beginPath(),z=a.length,tt=0;tt<z;tt++)ot=a[tt],ot.width!==0&&ot.height!==0&&b.rect(Math.floor(ot.x),Math.floor(ot.y),Math.ceil(ot.width),Math.ceil(ot.height));for(b.clip(),b.setTransform(rt,0,0,rt,0,0),b.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),b.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),yh(this,b),b.globalAlpha=this.pb,rt=0;rt<z;rt++)if(tt=y[rt],ot=E,tt.visible&&tt.pb!==0){at=Zu(tt,b),ft=tt.Zq,ft.length=0,ut=this.scale,mt=oe.alloc(),yt=tt.Pa.s,Mt=yt.length,wt=ot.length;for(var Ht=0;Ht<Mt;Ht++){var It=yt[Ht],Zt=_d(It,It.actualBounds);t:{for(var Kt=2/ut,Qt=4/ut,ne=0;ne<wt;ne++){var Se=ot[ne];if(Se.width!==0&&Se.height!==0&&Zt.Vu(Se.x-Kt,Se.y-Kt,Se.width+Qt,Se.height+Qt)){Zt=!0;break t}}Zt=!1}Zt&&tt.Oj(b,It,this,ft,ut,mt,!0)}oe.free(mt),b.globalAlpha=at}b.restore(),b.Vc(!0),this.Yf&&Zd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Bn(E),Bn(a),this.ld=!1}}else this.bd();x&&(Fa(this),this.bd(),Pc(this,!0))}else x?(Fa(this),this.bd(),Pc(this,!0)):this.bd()}};function jd(a){a.pn!==!1&&(a.pn=!1,Mg(a,a.Aa,a.ya))}function Mg(a,y,x){gu(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Hd(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,E=a.ya,b=a.Ka,z=!1,tt=a.gf?a.Db:0,rt=a.Be?a.Db:0,ot=b.clientWidth||x+tt,at=b.clientHeight||E+rt,ut=a.viewportBounds;b=ut.x;var ft=ut.y,mt=ut.width,yt=ut.height;if((ot!==x+tt||at!==E+rt)&&(a.gf=!1,a.Be=!1,rt=tt=0,a.Aa=ot,a.ya=at,z=a.pn=!0,gu(a)),!a.hf||!a.viewportBounds.w())return!0;var wt=a.ku,Mt=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Ht=a.documentBounds,It=0,Zt=0,Kt=0,Qt=0,ne=ut.width,Se=ut.height,mn=a.rj;a.contentAlignment.sb()?(Ht.width>ne&&(It=mn.left,Zt=mn.right),Ht.height>Se&&(Kt=mn.top,Qt=mn.bottom)):(It=mn.left,Zt=mn.right,Kt=mn.top,Qt=mn.bottom);var zn=Ht.width+It+Zt,bn=Ht.height+Kt+Qt;mn=a.scale;var ln=zn>ot/mn,Ve=bn>at/mn;if(!(z||a.gf||a.Be||ln||Ve))return!0;It=Ht.x-It,ot=ut.x,Zt=Ht.right+Zt,at=ut.right+tt,Kt=Ht.y-Kt;var Oi=ut.y;Ht=Ht.bottom+Qt,ut=ut.bottom+rt;var ki="1px";if(Qt="1px",a.scrollMode===xh&&(ln||Ve)&&(ln&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(ln=1,It+1<ot&&(ln=Math.max((ot-It)*mn+a.Aa,ln)),Zt>at+1&&(ln=Math.max((Zt-at)*mn+a.Aa,ln)),ne+tt+1<zn&&(ln=Math.max((zn-ne)*mn+a.Aa,ln)),ki=ln.toString()+"px"),Ve&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ln=1,Kt+1<Oi&&(ln=Math.max((Oi-Kt)*mn+a.ya,ln)),Ht>ut+1&&(ln=Math.max((Ht-ut)*mn+a.ya,ln)),Se+rt+1<bn&&(ln=Math.max((bn-Se)*mn+a.ya,ln)),Qt=ln.toString()+"px")),ln=ki!=="1px",Ve=Qt!=="1px",ln&&Ve||!ln&&!Ve||(Ve&&(at-=a.Db),ln&&(ut-=a.Db),zn<ne+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,It+1<ot&&(tt=Math.max((ot-It)*mn+a.Aa,tt)),Zt>at+1&&(tt=Math.max((Zt-at)*mn+a.Aa,tt)),ne+1<zn&&(tt=Math.max((zn-ne)*mn+a.Aa,tt)),ki=tt.toString()+"px"),ln=ki!=="1px",tt=a.ya,ln!==a.Be&&(tt=ln?a.ya-a.Db:a.ya+a.Db),bn<Se+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,Kt+1<Oi&&(rt=Math.max((Oi-Kt)*mn+tt,rt)),Ht>ut+1&&(rt=Math.max((Ht-ut)*mn+tt,rt)),Se+1<bn&&(rt=Math.max((bn-Se)*mn+tt,rt)),Qt=rt.toString()+"px"),Ve=Qt!=="1px"),a.qr&&ln===a.Be&&Ve===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(ln!==a.Be&&(ki==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=ln,Mt.style.width=ki,Ve!==a.gf&&(Qt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=Wt.alloc(),Ve?(y.style.left=a.Db+"px",a.position=rt.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=rt.h(a.pa.x-a.Db/a.scale,a.pa.y)),Wt.free(rt))),z&&gu(a),a.gf=Ve,Mt.style.height=Qt,a.gu=!0,z&&(a.pn=!0),y=wt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(ne+1<zn?y=(a.position.x-It)*mn:It+1<ot?y=wt.scrollWidth-wt.clientWidth:Zt>at+1&&(y=a.position.x*mn)),a.tn)switch(a.bu){case"negative":y=-(wt.scrollWidth-y-wt.clientWidth);break;case"reverse":y=wt.scrollWidth-y-wt.clientWidth}return wt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Se+1<bn?wt.scrollTop=(a.position.y-Kt)*mn:Kt+1<Oi?wt.scrollTop=wt.scrollHeight-wt.clientHeight:Ht>ut+1&&(wt.scrollTop=a.position.y*mn)),ot=a.Aa,at=a.ya,wt.style.width=ot+(a.gf?a.Db:0)+"px",wt.style.height=at+(a.Be?a.Db:0)+"px",x!==ot||E!==at||a.animationManager.zb?(x=oe.allocAt(b,ft,mt,yt),a.onViewportBoundsChanged(x,a.viewportBounds,mn,z),oe.free(x),!1):!0}Lt=xe.prototype,Lt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Xt("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&Xt('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Io,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Lt.oi=function(a){this.partManager.oi(a);var y=this;Qd(a,function(x){Gd(y,x)}),(a instanceof Ar||a instanceof Ri&&a.placeholder!==null)&&a.v(),a.data!==null&&Qd(a,function(x){ay(y.partManager,x)}),ya(a)!==!0&&ld(a)!==!0||this.De.add(a),R1(a,!0,this),j1(a)?(a.actualBounds.w()&&this.N(_d(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(_d(a,a.actualBounds)),this.$b()},Lt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Qd(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),j1(a)?(a.actualBounds.w()&&this.N(_d(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(_d(a,a.actualBounds)),this.$b()},Lt.remove=function(a){Fg(this,a,!0)};function Fg(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(is,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Lt.Is=function(a,y){if(y===void 0&&(y=!1),Ln(a))for(var x=a.length,E=0;E<x;E++){var b=a[E];y&&!b.canDelete()||this.remove(b)}else for(x=new en,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Lt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},xe.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=gf(this)),this.toolManager!==null){var b=new Jn;if(a!==null)if(Ln(a))for(var z=0;z<a.length;z++)Lu(this,b,a[z],x,E);else for(a=a.iterator;a.next();)Lu(this,b,a.value,x,E);else{for(a=this.parts;a.next();)Lu(this,b,a.value,x,E);for(a=this.nodes;a.next();)Lu(this,b,a.value,x,E);for(a=this.links;a.next();)Lu(this,b,a.value,x,E)}nd(this,b,y,E,x)}};function Lu(a,y,x,E,b,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!E||z||x.canMove()||x.canCopy()))if(b===void 0&&(b=gf(a)),x instanceof yn){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Ri&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)Lu(a,y,z.value,E,b,b.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var tt=z.value;if(!y.contains(tt)){var rt=tt.fromNode,ot=tt.toNode;rt!==null&&y.contains(rt)&&ot!==null&&y.contains(ot)&&Lu(a,y,tt,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)Lu(a,y,x.value,E,b)}else if(x instanceof un)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Lu(a,y,x.value,E,b);else x instanceof Ar||y.add(x,a.Pd(b,x,x.location))}function nd(a,y,x,E,b){if(y!==null&&y.count!==0){var z=Wt.alloc(),tt=Wt.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||mf(a,y);for(var rt=On(),ot=On(),at=y.iterator,ut=Wt.alloc();at.next();){var ft=at.key,mt=at.value;if(ft.Zc()){var yt=kg(a,ft,y);yt!==null?rt.push(new it(ft,mt,yt)):(!b||ft.canMove())&&(yt=mt.point,z.assign(yt),a.computeMove(ft,z.add(tt),E,ut),ft.location=ut,mt.shifted===void 0&&(mt.shifted=new Wt),mt.shifted.assign(ut.re(yt)))}else at.key instanceof un&&ot.push(at.sa)}for(Wt.free(ut),b=rt.length,at=0;at<b;at++)ft=rt[at],z.assign(ft.info.point),ft.Su.shifted===void 0&&(ft.Su.shifted=new Wt),ft.node.location=z.add(ft.Su.shifted);for(b=Wt.alloc(),at=Wt.alloc(),ft=ot.length,mt=0;mt<ft;mt++){var wt=ot[mt];if(yt=wt.key,yt instanceof un)if(yt.suspendsRouting){yt.Tg=null,ut=yt.fromNode;var Mt=yt.toNode;if(a.draggedLink!==null&&E.dragsLink)if(Mt=wt.value.point,yt.dragComputation===null)y.add(yt,a.Pd(E,yt,tt)),Fh(yt,tt.x-Mt.x,tt.y-Mt.y);else{wt=Wt.allocAt(0,0),(ut=yt.i(0))&&ut.w()&&wt.assign(ut);var Ht=ut=Wt.alloc().assign(wt).add(tt);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Ht=Wt.alloc(),pf(a,yt,ut,Ht,E)),ut.assign(yt.dragComputation(yt,ut,Ht)).re(wt),y.add(yt,a.Pd(E,yt,ut)),Fh(yt,ut.x-Mt.x,ut.y-Mt.y),Wt.free(wt),Wt.free(ut),Ht!==ut&&Wt.free(Ht)}else ut!==null&&(b.assign(ut.location),Ht=y.I(ut),Ht!==null&&b.re(Ht.point)),Mt!==null&&(at.assign(Mt.location),Ht=y.I(Mt),Ht!==null&&at.re(Ht.point)),ut!==null&&Mt!==null?b.Xa(at)?(ut=wt.value.point,Mt=z,Mt.assign(b),Mt.re(ut),y.add(yt,a.Pd(E,yt,b)),Fh(yt,Mt.x,Mt.y)):(yt.suspendsRouting=!1,yt.bb()):(wt=wt.value.point,ut=ut!==null?b:Mt!==null?at:tt,y.add(yt,a.Pd(E,yt,ut)),Fh(yt,ut.x-wt.x,ut.y-wt.y))}else(yt.fromNode===null||yt.toNode===null)&&(ut=wt.value.point,y.add(yt,a.Pd(E,yt,tt)),Fh(yt,tt.x-ut.x,tt.y-ut.y))}Wt.free(z),Wt.free(tt),Wt.free(b),Wt.free(at),Bn(rt),Bn(ot),x||(Ks(a),id(a,y))}}xe.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new Wt),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=Wt.alloc(),pf(this,a,y,b,x)),x=a.dragComputation!==null?a.dragComputation(a,y,b):b;var tt=a.minLocation,rt=tt.x;isNaN(rt)&&(rt=z?Math.round(1e3*a.location.x)/1e3:a.location.x),tt=tt.y,isNaN(tt)&&(tt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var ot=a.maxLocation,at=ot.x;return isNaN(at)&&(at=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ot=ot.y,isNaN(ot)&&(ot=z?Math.round(1e3*a.location.y)/1e3:a.location.y),E.h(Math.max(rt,Math.min(x.x,at)),Math.max(tt,Math.min(x.y,ot))),b!==y&&Wt.free(b),E};function gf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function pf(a,y,x,E,b){if(b===void 0&&(b=gf(a)),E.assign(x),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var tt=b.gridSnapOrigin,rt=tt.x;if(tt=tt.y,b=b.gridSnapCellSpot,z!==null){var ot=z.gridCellSize;isNaN(a)&&(a=ot.width),isNaN(y)&&(y=ot.height),z=z.gridOrigin,isNaN(rt)&&(rt=z.x),isNaN(tt)&&(tt=z.y)}z=Wt.allocAt(0,0),z.yi(0,0,a,y,b),$t.No(x.x,x.y,rt+z.x,tt+z.y,a,y,E),Wt.free(z)}}function mf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof un&&(y.suspendsRouting=!0)}function id(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof un&&(x.suspendsRouting=!1,Xv(x)&&x.bb())}a.Mr=!1}}function kg(a,y,x){return y=y.containingGroup,y!==null&&(a=kg(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Lt=xe.prototype,Lt.Pd=function(a,y,x){if(x===void 0)return new Uu(Co);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new Uu(new Wt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Uu(x.copy())};function bg(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Xt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Xt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Xt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Xt("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var E=0;E<x;E++)a.M(E).name===y&&Xt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Lt.Al=function(a){bg(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(Io,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Lt.Ww=function(a,y){bg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(is,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(Io,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Lt.Cy=function(a,y){bg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(is,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(Io,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Lt.kA=function(a){if(a.diagram!==this&&Xt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(is,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Lt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Lt.Yw=function(a){return this.pf===null&&(this.pf=new rn),this.pf.add(a),this.model.Pe(a),this},Lt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Lt.Pe=function(a){return this.zg===null&&(this.zg=new rn),this.zg.add(a),this},Lt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Lt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==bs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},Lt.cb=function(a,y,x,E,b,z,tt){z===void 0&&(z=null),tt===void 0&&(tt=null);var rt=new Lo;rt.diagram=this,rt.change=a,rt.propertyName=y,rt.object=x,rt.oldValue=E,rt.oldParam=z,rt.newValue=b,rt.newParam=tt,this.ds(rt)},Lt.g=function(a,y,x,E,b){this.cb(yo,a,this,y,x,E,b)},xe.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var E=a.change;if(E===yo){var b=a.object;if(Fo(b,a.propertyName,a.I(y)),b instanceof ie){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===Io){var tt=a.object,rt=a.newParam,ot=a.newValue;if(tt instanceof nn)if(typeof rt=="number"&&ot instanceof ie){y?tt.pc(rt):tt.Gb(rt,ot);var at=tt.part;at!==null&&at.Wb()}else typeof rt=="number"&&ot instanceof gs&&(ot.isRow?h1(tt,rt,y?void 0:ot):d1(tt,rt,y?void 0:ot));else if(tt instanceof Bs){var ut=a.oldParam===!0;typeof rt=="number"&&ot instanceof oi&&(y?(ot.isSelected=!1,ot.isHighlighted=!1,ot.Wb(),tt.pc(ut?rt:-1,ot,ut)):tt.oi(rt,ot,ut))}else tt instanceof xe?typeof rt=="number"&&ot instanceof Bs&&(y?this.Wa.mb(rt):(ot.Xe(this),this.Wa.Gb(rt,ot))):Xt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===is){var ft=a.object,mt=a.oldParam,yt=a.oldValue;if(ft instanceof nn)typeof mt=="number"&&yt instanceof ie?y?ft.Gb(mt,yt):ft.pc(mt):typeof mt=="number"&&yt instanceof gs&&(yt.isRow?h1(ft,mt,y?yt:void 0):d1(ft,mt,y?yt:void 0));else if(ft instanceof Bs){var wt=a.newParam===!0;typeof mt=="number"&&yt instanceof oi&&(y?0>ft.Pa.indexOf(yt)&&ft.oi(mt,yt,wt):(yt.isSelected=!1,yt.isHighlighted=!1,yt.Wb(),ft.pc(wt?mt:-1,yt,wt)))}else ft instanceof xe?typeof mt=="number"&&yt instanceof Bs&&(y?(yt.Xe(this),this.Wa.Gb(mt,yt)):this.Wa.mb(mt)):Xt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==bs&&Xt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},xe.prototype.Ea=function(a){return this.undoManager.Ea(a)},xe.prototype.eb=function(a){return this.undoManager.eb(a)},xe.prototype.Kf=function(){return this.undoManager.Kf()},xe.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},xe.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},xe.prototype.rp=function(){this.partManager.rp()};function Bg(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,gu(a),a.N(),a.Ee=!0,E.zb&&(Vu(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,gu(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,rt=a.zoomPoint.x,ot=a.zoomPoint.y,at=a.contentAlignment;isNaN(rt)&&(at.$c()?at.Hf(kr)?rt=0:at.Hf(Hr)&&(rt=z-1):rt=at.sb()?at.x*(z-1):z/2),isNaN(ot)&&(at.$c()?at.Hf(jr)?ot=0:at.Hf(Ur)&&(ot=tt-1):ot=at.sb()?at.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=Wt.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+ot/y-ot/x),a.position=z,Wt.free(z),a.Ca=x,gu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Cl(a,!1),E.zb&&(Vu(E)||E.ce.add(E.H,"scale",y,a.Ca))}}xe.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==aa||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof eo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Hu(b,this)),this.vb||this.invalidateViewport(a,y),fu(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function fu(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=Yt.alloc(),b=1,z=1,tt=x.O.s,rt=tt.length,ot=0;ot<rt;ot++){var at=tt[ot],ut=Math.abs(at.interval);2>ut||(pv(at.figure)?z=z*ut/$t.vx(z,ut):b=b*ut/$t.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=oe.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){oe.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,oe.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Wt.alloc(),$t.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Yt.free(E),x.part.location=y,Wt.free(y)}}xe.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b<E;b++)x[b].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},xe.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},xe.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Ln(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof oi||Xt("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof oi||Xt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},xe.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,E=0;E<x;E++)y[E].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Lt=xe.prototype,Lt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Lt.Jz=function(a){a=new en().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof oi||Xt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Lt.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=Wt.alloc();if(a==="pixel")b=x;else if(a==="line")b=x*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(b=x*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){b=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,b.y):y==="left"?this.position=z.h(b.x,x.y):y==="down"?this.position=z.h(x.x,b.bottom-x.height):y==="right"&&(this.position=z.h(b.right-x.width,x.y)),Wt.free(z);return}Xt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}b/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-b):y==="down"?this.position=z.h(x.x,x.y+b):y==="left"?this.position=z.h(x.x-b,x.y):y==="right"?this.position=z.h(x.x+b,x.y):Xt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Wt.free(z)},Lt.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},Lt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Lt.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},Lt.zA=function(a){var y=this.Ab,x=a.x,E=a.y,b=x+a.width,z=E+a.height,tt=y.m11,rt=y.m12,ot=y.m21,at=y.m22,ut=y.dx,ft=y.dy,mt=x*tt+E*ot+ut;y=x*rt+E*at+ft;var yt=b*tt+E*ot+ut;return a=b*rt+E*at+ft,E=x*tt+z*ot+ut,x=x*rt+z*at+ft,tt=b*tt+z*ot+ut,b=b*rt+z*at+ft,z=Math.min(mt,yt),mt=Math.max(mt,yt),yt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),mt=Math.max(mt,E),yt=Math.min(yt,x),y=Math.max(y,x),z=Math.min(z,tt),mt=Math.max(mt,tt),yt=Math.min(yt,b),y=Math.max(y,b),new oe(z,yt,mt-z,y-yt)},Lt.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),Bi(a.copy(),this.Ab)};function nm(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Dg(a){return a=Pf.get(a),a!==null?new a:new Wr}xe.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===bs&&E[0]==="S")if(E==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(ot){return ot.diagram=b}),a.mouseMoveTools.each(function(ot){return ot.diagram=b}),a.mouseUpTools.each(function(ot){return ot.diagram=b}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===bs){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ks(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||af(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var tt=a.isTransactionFinished;if(tt&&(nm(this),this.As.clear(),Vp(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var rt=this;_i(function(){rt.currentTool.standardMouseOver(),rt.Rt=!1},10)}}}finally{this.aa=!0}}}};function Gd(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)rd(a,y[E])}function rd(a,y){if(y instanceof Da){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof en&&x.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",E=a.Og.I(x),E===null)E=[],E.push(y),a.Og.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function Ng(a,y){if(y instanceof Da){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var E=x.getAttribute("src")||"",b=a.Og.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&(a.Og.remove(E),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof en&&x.Bg.remove(a),If(E));break}}}}}xe.prototype.Wd=function(){this.partManager.Wd()},xe.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},xe.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},xe.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},xe.prototype.Vb=function(a){return this.partManager.Vb(a)},xe.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Lt=xe.prototype,Lt.Lc=function(a){return this.partManager.Lc(a)},Lt.ii=function(a){return this.partManager.ii(a)},Lt.Kc=function(a){return this.partManager.Kc(a)},Lt.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:Vn(ii(y)))},Lt.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:Vn(ii(y)))};function gu(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Tg(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Cl(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Lt.Va=function(){if(this.Zi){var a=oe.alloc();Tg(this,this.computeBounds(a)),oe.free(a)}},Lt.rz=function(){for(var a=new en,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},Lt.qz=function(){return this.ai.iterator},Lt.Uz=function(a){Ks(this),a&&vf(this,!0),this.ld?Ig(this,!1):(this.Jk=!0,ul(this))};function vf(a,y){for(var x=a.ai.iterator;x.next();)im(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function im(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)im(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Ig(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,b=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Pu(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Og(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Ks(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||af(z),a.aa=x}}}function Og(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Og(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Lc(a,y),b.isValidLayout=!0):a.xh=!0)}}Lt.yz=function(){for(var a=new rn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ev(a){function y(b){var z=b.toLowerCase(),tt=new rn;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new Jn,E=new Jn;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function rm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function yf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Xt("Unknown DiagramEvent name: "+y)}Lt.Bj=function(a,y){return a=yf(this,a),a!==null&&a.add(y),this},Lt.am=function(a,y){a=yf(this,a),a!==null&&a.remove(y)},Lt.R=function(a,y,x){var E=yf(this,a),b=new Xl;if(b.diagram=this,a=rm(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x<y;x++)(0,E[x])(b)};function Sf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Lt.Yj=function(a,y){return xf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},xe.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?wg(this,a):a.assign(this.documentBounds)};function xf(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new dp(a.avoidanceCellSize)),b.vs||b.group!==x||b.Yx!==E){if(b.Hx=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),b.Ix=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=om(a,x)),x===null){y=oe.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var tt=z.value,rt=tt.layer;rt!==null&&rt.visible&&!rt.isTemporary&&wf(a,tt,E,y)}oe.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=oe.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof yn&&wf(a,tt,E,y);oe.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&rS(b);return b}function om(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?om(a,y.containingGroup):null}function wf(a,y,x,E){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var b=y.x,z=y.y;if(Gf(a,b,z))for(x=(z-a.Od)/a.sc|0,E=Math.min((b+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),b=(b-a.Nd)/a.rc|0;b<=E;b++)if(z=a.ac[b],z.fill)z.fill(bh,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=bh}else if(y instanceof Ri)for(y=y.memberParts;y.next();)b=y.value,b instanceof yn&&wf(a,b,x,E)}}function Sh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}xe.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Rg(this)};function Rg(a){a.vk===-1&&(a.vk=_i(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=oe.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Tg(a,y),oe.free(y),a.Fc=!0,a.bd(),Rg(a))}},a.vp))}xe.prototype.ug=function(){this.vk!==-1&&(Re.clearTimeout(this.vk),this.vk=-1)},xe.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=oe.allocAt(0,0,E.width*b,E.height*b);var z=Wt.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+x.left&&this.allowHorizontalScroll){var tt=Math.max(this.scrollHorizontalLineChange,1);tt|=0,z.x-=tt,a.x<E.x+x.left/2&&(z.x-=tt),a.x<E.x+x.left/4&&(z.x-=4*tt)}else a.x<=E.x+E.width&&a.x>E.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.y<E.y+x.top&&this.allowVerticalScroll?(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y-=tt,a.y<E.y+x.top/2&&(z.y-=tt),a.y<E.y+x.top/4&&(z.y-=4*tt)):a.y<=E.y+E.height&&a.y>E.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(Co)||(y=new Wt(y.x+z.x/b,y.y+z.y/b)),oe.free(E),Wt.free(z),y},Lt=xe.prototype,Lt.Cs=function(){return null},Lt.av=function(){return null},Lt.bs=function(a,y){this.pj.add(a,y)},Lt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Ri&&(y.$p=null)})};function Ec(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-at>ot?y(x,b,rt):Re.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var rt=a,ot=x.callbackTimeout||300,at=+new Date;return Re.requestAnimationFrame(function(){E()}),null}Lt.Wz=function(a){return Qo?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Lt.Jx=function(a){return a===void 0&&(a={}),Ec(this,this.Xz,a)},Lt.Xz=function(a,y,x){var E=sm(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case Yd+"data":b=E.getImageData(0,0,x.width,x.height);break;case Yd:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&Xt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function sm(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Xt("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new Yt(1/0,1/0):new Yt(2e3,2e3));var rt=y.position||null,ot=y.parts||null,at=y.padding===void 0?1:y.padding,ut=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var mt=y.document||document,yt=y.elementFinished||null,wt=y.showTemporary;wt===void 0&&(wt=!ft),y=y.showGrid,y===void 0&&(y=wt),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof at=="number"?at=new Yn(at):at instanceof Yn||Xt("MakeImage padding must be a Margin or a number."),at.left=Math.max(at.left,0),at.right=Math.max(at.right,0),at.top=Math.max(at.top,0),at.bottom=Math.max(at.bottom,0),a.ib.Vc(!0),ft=new Ll(null,mt,void 0,!0);var Mt=ft.context;if(!(b||z||ot||rt))return ft.width=a.Aa+Math.ceil(at.left+at.right),ft.height=a.ya+Math.ceil(at.top+at.bottom),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=mt,E.hs=yt,ff(a,E.context,at,new Yt(ft.width,ft.height),a.Ca,a.pa,ot,ut,wt,y),E.context):(a.Xm=!1,ff(a,Mt,at,new Yt(ft.width,ft.height),a.Ca,a.pa,ot,ut,wt,y),a.Xm=!0,ft.context);var Ht=a.Pp,It=a.documentBounds.copy();if(It.Fv(a.yb),wt)for(var Zt=a.Wa.s,Kt=Zt.length,Qt=0;Qt<Kt;Qt++){var ne=Zt[Qt];if(ne.visible&&ne.isTemporary){ne=ne.Pa.s;for(var Se=ne.length,mn=0;mn<Se;mn++){var zn=ne[mn];zn.isInDocumentBounds&&zn.isVisible()&&(zn=zn.actualBounds,zn.w()&&It.ed(zn))}}}if(Zt=new Wt(It.x,It.y),ot!==null){for(Kt=new oe(0,0,0,0),Qt=!0,ne=ot.iterator,ne.reset();ne.next();)Se=ne.value,Se instanceof oi&&(mn=Se.layer,mn!==null&&!mn.visible||mn!==null&&!wt&&mn.isTemporary||!Se.isVisible()||(Se=Se.actualBounds,Se.w()&&(Qt?(Qt=!1,Kt.assign(Se)):Kt.ed(Se))));It.width=Kt.width,It.height=Kt.height,Zt.x=Kt.x,Zt.y=Kt.y}return rt!==null&&rt.w()&&(Zt=rt,z||(z=Ht)),Kt=rt=0,at!==null&&(rt=at.left+at.right,Kt=at.top+at.bottom),Qt=ne=0,b!==null&&(ne=b.width,Qt=b.height,isFinite(ne)&&(ne=Math.max(0,ne-rt)),isFinite(Qt)&&(Qt=Math.max(0,Qt-Kt))),b!==null&&z!==null?(z==="NaN"&&(z=Ht),b.w()?(b=ne,It=Qt):isNaN(Qt)?(b=ne,It=It.height*z):(b=It.width*z,It=Qt)):b!==null?b.w()?(z=Math.min(ne/It.width,Qt/It.height),b=ne,It=Qt):isNaN(Qt)?(z=ne/It.width,b=ne,It=It.height*z):(z=Qt/It.height,b=It.width*z,It=Qt):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-rt)/It.width,(tt.height-Kt)/It.height),z>Ht?(z=Ht,b=It.width,It=It.height):(b=tt.width,It=tt.height)):(b=It.width*z,It=It.height*z):(z=Ht,b=It.width,It=It.height),at!==null?(b+=rt,It+=Kt):at=new Yn(0),tt!==null&&(Ht=tt.width,tt=tt.height,isNaN(Ht)&&(Ht=2e3),isNaN(tt)&&(tt=2e3),isFinite(Ht)&&(b=Math.min(b,Ht)),isFinite(tt)&&(It=Math.min(It,tt))),ft.width=Math.ceil(b),ft.height=Math.ceil(It),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=mt,E.hs=yt,ff(a,E.context,at,new Yt(Math.ceil(b),Math.ceil(It)),z,Zt,ot,ut,wt,y),E.context):(a.Xm=!1,ff(a,Mt,at,new Yt(Math.ceil(b),Math.ceil(It)),z,Zt,ot,ut,wt,y),a.Xm=!0,ft.context)}Ye.Object.defineProperties(xe.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof gt||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new pu(this,Re.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new pu(this,Re.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Re,"resize",this.Ov,!1),this.removeEventListener(Re,"wheel",this.$j,!0),Cu===this&&(Cu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Sg(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Mn(a,"0 <= value <= 1",xe,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),Cl(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),Cl(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),Cl(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),Cl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Mn(a,">= 0",xe,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Mn(a,">= 0",xe,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Mn(a,">= 0",xe,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||nm(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&Xt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=yg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Pu(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Dg(this.cc.type);for(var b=0;b<x.length;b++)this.add(x[b]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=E,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(Re,"pointermove",this.dk,!0),this.addEventListener(Re,"pointerdown",this.ui,!0),this.addEventListener(Re,"pointerup",this.fk,!0),this.addEventListener(Re,"pointerout",this.ek,!0),this.addEventListener(Re,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Re,"wheel",this.$j,!0),this.addEventListener(Re,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Re,"pointermove",this.dk,!0),this.removeEventListener(Re,"pointerdown",this.ui,!0),this.removeEventListener(Re,"pointerup",this.fk,!0),this.removeEventListener(Re,"pointerout",this.ek,!0),this.removeEventListener(Re,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(Re,"wheel",this.$j,!0),this.removeEventListener(Re,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=Wt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Yp(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?gu(this):(this.vb=!0,a=this.scale,Pg(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Wt.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=_p(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=_p(this)),a.type!==nn.Grid&&Xt("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),fu(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),gu(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||Xt("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===xh&&Cl(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,Cl(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,Bg(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&Bg(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==aa&&Cl(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||Xt("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||Xt("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):Mn(a,"> 0",xe,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):Mn(a,"> 0",xe,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Cl(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&Xt("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)ep(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==wh&&a!==cs&&a!==Cf&&Xt("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Yt(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Ye.Object.defineProperties(xe,{licenseKey:{get:function(){return Vg.jc()},set:function(a){Vg.add(a.replace(/\s/g,""))}},version:{get:function(){return Vd}}}),xe.prototype.makeImageData=xe.prototype.Jx,xe.prototype.makeImage=xe.prototype.Wz,xe.prototype.cacheGroupExternalLinks=xe.prototype.Fu,xe.prototype.addRenderer=xe.prototype.bs,xe.prototype.makeSVG=xe.prototype.av,xe.prototype.makeSvg=xe.prototype.Cs,xe.prototype.stopAutoScroll=xe.prototype.ug,xe.prototype.doAutoScroll=xe.prototype.gs,xe.prototype.isUnoccupied=xe.prototype.Yj,xe.prototype.raiseDiagramEvent=xe.prototype.R,xe.prototype.removeDiagramListener=xe.prototype.am,xe.prototype.addDiagramListener=xe.prototype.Bj,xe.prototype.findTreeRoots=xe.prototype.yz,xe.prototype.layoutDiagram=xe.prototype.Uz,xe.prototype.findTopLevelGroups=xe.prototype.qz,xe.prototype.findTopLevelNodesAndLinks=xe.prototype.rz,xe.prototype.ensureBounds=xe.prototype.Va,xe.prototype.findLinksByExample=xe.prototype.ls,xe.prototype.findNodesByExample=xe.prototype.ms,xe.prototype.findLinkForData=xe.prototype.Kc,xe.prototype.findNodeForData=xe.prototype.ii,xe.prototype.findPartForData=xe.prototype.Lc,xe.prototype.findLinkForKey=xe.prototype.findLinkForKey,xe.prototype.findNodeForKey=xe.prototype.Vb,xe.prototype.findPartForKey=xe.prototype.findPartForKey,xe.prototype.rebuildParts=xe.prototype.Wd,xe.prototype.transformViewToDoc=xe.prototype.Ps,xe.prototype.transformRectDocToView=xe.prototype.zA,xe.prototype.transformDocToView=xe.prototype.op,xe.prototype.centerRect=xe.prototype.es,xe.prototype.scrollToRect=xe.prototype.tv,xe.prototype.scroll=xe.prototype.scroll,xe.prototype.highlightCollection=xe.prototype.Jz,xe.prototype.highlight=xe.prototype.Iz,xe.prototype.selectCollection=xe.prototype.rA,xe.prototype.select=xe.prototype.select,xe.prototype.updateAllRelationshipsFromData=xe.prototype.rp,xe.prototype.updateAllTargetBindings=xe.prototype.updateAllTargetBindings,xe.prototype.commit=xe.prototype.commit,xe.prototype.rollbackTransaction=xe.prototype.Kf,xe.prototype.commitTransaction=xe.prototype.eb,xe.prototype.startTransaction=xe.prototype.Ea,xe.prototype.raiseChanged=xe.prototype.g,xe.prototype.raiseChangedEvent=xe.prototype.cb,xe.prototype.removeChangedListener=xe.prototype.ik,xe.prototype.addChangedListener=xe.prototype.Pe,xe.prototype.removeModelChangedListener=xe.prototype.mA,xe.prototype.addModelChangedListener=xe.prototype.Yw,xe.prototype.findLayer=xe.prototype.Qj,xe.prototype.removeLayer=xe.prototype.kA,xe.prototype.addLayerAfter=xe.prototype.Cy,xe.prototype.addLayerBefore=xe.prototype.Ww,xe.prototype.addLayer=xe.prototype.Al,xe.prototype.moveParts=xe.prototype.moveParts,xe.prototype.copyParts=xe.prototype.Kj,xe.prototype.removeParts=xe.prototype.Is,xe.prototype.remove=xe.prototype.remove,xe.prototype.add=xe.prototype.add,xe.prototype.clearDelayedGeometries=xe.prototype.bx,xe.prototype.setProperties=xe.prototype.nm,xe.prototype.attach=xe.prototype.Du,xe.prototype.set=xe.prototype.set,xe.prototype.resetInputOptions=xe.prototype.Sx,xe.prototype.setInputOption=xe.prototype.sA,xe.prototype.getInputOption=xe.prototype.Ql,xe.prototype.resetRenderingHints=xe.prototype.Tx,xe.prototype.setRenderingHint=xe.prototype.Xx,xe.prototype.getRenderingHint=xe.prototype.Gf,xe.prototype.maybeUpdate=xe.prototype.bd,xe.prototype.requestUpdate=xe.prototype.$b,xe.prototype.delayInitialization=xe.prototype.Xy,xe.prototype.isUpdateRequested=xe.prototype.Pz,xe.prototype.invalidateDocumentBounds=xe.prototype.Ya,xe.prototype.findObjectsNear=xe.prototype.og,xe.prototype.findPartsNear=xe.prototype.mz,xe.prototype.findObjectsIn=xe.prototype.Cf,xe.prototype.findPartsIn=xe.prototype.ux,xe.prototype.findObjectsAt=xe.prototype.ji,xe.prototype.findPartsAt=xe.prototype.lz,xe.prototype.findObjectAt=xe.prototype.ic,xe.prototype.findPartAt=xe.prototype.Ol,xe.prototype.focusObject=xe.prototype.zz,xe.prototype.alignDocument=xe.prototype.Jy,xe.prototype.zoomToRect=xe.prototype.BA,xe.prototype.zoomToFit=xe.prototype.zoomToFit,xe.prototype.diagramScroll=xe.prototype.kx,xe.prototype.focus=xe.prototype.focus;var Pf=new Jn,am=null,Qo=Re.document!==void 0,Wd=null,od="",aa=new Ee(xe,"None",0),_a=new Ee(xe,"Uniform",1),sd=new Ee(xe,"UniformToFill",2),Mc=new Ee(xe,"CycleAll",10),zg=new Ee(xe,"CycleNotDirected",11),jg=new Ee(xe,"CycleNotDirectedFast",12),Hg=new Ee(xe,"CycleNotUndirected",13),Gg=new Ee(xe,"CycleDestinationTree",14),Wg=new Ee(xe,"CycleSourceTree",15),xh=new Ee(xe,"DocumentScroll",1),Fc=new Ee(xe,"InfiniteScroll",2),wh=new Ee(xe,"TreeParentCollapsed",21),cs=new Ee(xe,"AllParentsCollapsed",22),Cf=new Ee(xe,"AnyParentsCollapsed",23),Vg=new rn,Vd="2.3.10",Yd="image",kc=null,lm=!1;function ia(){if(Qo){var a=Re.document.createElement("canvas"),y=a.getContext("2d"),x=si("7ca11abfd022028846");y[x]=si("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",hn.Dx+"4ae6247590da4bb21c324ba3a84e385776",En.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",$t.za],b=1;5>b;b++)y[si("7ca11abfd7330390")](si(E[b-1]),10,15*b);for(y[x]=si("39f046ebb36e4b"),x=1;5>x;x++)y[si("7ca11abfd7330390")](si(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(En.prototype.Cd=En.prototype.Eu),kc=a}}xe.className="Diagram",xe.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Re.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof xe?y.H:null},xe.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},xe.useDOM=function(a){Qo=a?Re.document!==void 0:!1},xe.isUsingDOM=function(){return Qo},xe.None=aa,xe.Uniform=_a,xe.UniformToFill=sd,xe.CycleAll=Mc,xe.CycleNotDirected=zg,xe.CycleNotDirectedFast=jg,xe.CycleNotUndirected=Hg,xe.CycleDestinationTree=Gg,xe.CycleSourceTree=Wg,xe.DocumentScroll=xh,xe.InfiniteScroll=Fc,xe.TreeParentCollapsed=wh,xe.AllParentsCollapsed=cs,xe.AnyParentsCollapsed=Cf;function um(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Zd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Re[si("76a715b2f73f148a")][si("72ba13b5")]||"";if(a.Rc=!0,Qo){var E=xe[si("76a115b6ed251eaf4692")];if(E)for(var b=Vg.iterator;b.next()&&(E=b.value,E=si(E).split(si("39e9")),!(6>E.length));){var z=si(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=si(hn[si("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=Re[si("74a900bae4370f8b51")][si("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[si("73a612b6fb191d")](si("3aad1ab6e022098b4dc4")),z=si(E[2]),-1<tt&&(rt=rt[si("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<tt),!a.Rc))break;for(tt=x[si("76ad18b4f73e")],rt=x[si("73a612b6fb191d")](si("35e7"))+2;rt<tt;rt++)y+=x[rt];if(tt=y[si("73a612b6fb191d")](z),0>tt&&z!==si("7da71ca0ad381e90")&&(tt=y[si("73a612b6fb191d")](si("76a715b2ef3e149757"))),0>tt&&(tt=y[si("73a612b6fb191d")](si("76a715b2ef3e149757"))),0>tt&&(tt=y[si("73a612b6fb191d")](si("2bfa41fdb3784bca12"))),0>tt&&(tt=x[si("73a612b6fb191d")](si("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[si("73a612b6fb191d")](si("35"))||y[si("73a612b6fb191d")](si("35"))===-1),!a.Rc||x[si("73a612b6fb191d")](si("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[si("73a612b6fb191d")](z)),!a.Rc)||(tt=Re[si("76a715b2f73f148a")][si("69ad17a1e03e")],rt=tt[si("73a612b6fb191d")](si("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(tt[si("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){tt=Re.document.createElement("div");for(var ot=E[0].replace(/[A-Za-z]/g,"");4>ot.length;)ot+="9";if(rt=ot,ot=ot.substr(ot.length-4),E="",E+=["gsh","gsf"][parseInt(ot.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(ot.substr(0,1),10)%4],tt[si("79a417a0f0181a8946")]=E,Re.document[si("78a712aa")]){Re.document[si("78a712aa")][si("7bb806b6ed32388c4a875b")](tt),ot=Re.getComputedStyle(tt).getPropertyValue(si("78a704b7e62456904c9b12701b6532a8"));var at=Re.getComputedStyle(tt).getPropertyValue(si("75b817b0ea2202"));if(Re.document[si("78a712aa")][si("68ad1bbcf533388c4a875b")](tt),ot){if(tt=Re[si("77a902b0eb1b1e804a8a")],at==="0."+parseInt(rt,10)%100||ot.indexOf(parseInt(z[1]+z[2],16))!==-1&&ot.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(si("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){tt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ut in tt)if(E===tt[ut].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ut=x[si("76ad18b4f73e")],b=x[si("73a612b6fb191d")](si("35e7"))+2;b<ut;b++)y+=x[b];x=y[si("73a612b6fb191d")](si("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[si("73a612b6fb191d")](si("35")))}}}return 0<a.Rc&&a!==a.wy}um.className="DiagramHelper";function Uu(a){this.j=a===void 0?new Wt:a,this.o=new Wt}Ye.Object.defineProperties(Uu.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var bc="DraggingInfo";Uu.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function st(){this.reset()}st.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Yt(NaN,NaN).freeze(),this.gridSnapCellSpot=yi,this.gridSnapOrigin=new Wt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},st.className="DraggingOptions";function dt(a,y){if(typeof a=="string"||Re.Element&&a instanceof Element)var x=xe.call(this,a)||this;else x=xe.call(this)||this,y=a;return ht(x),y&&x.nm(y),x}we(dt,xe);function ht(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Ci,a.layout=new js}dt.prototype.reset=function(){xe.prototype.reset.call(this),ht(this)},dt.className="Palette";function gt(a,y){if(typeof a=="string"||Re.Element&&a instanceof Element)var x=xe.call(this,a)||this;else x=xe.call(this)||this,y=a;var E=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new oi;var b=new Wi;return b.stroke="magenta",b.strokeWidth=2,b.fill="transparent",b.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(b),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Yn(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Gt,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var tt=z.viewportBounds,rt=E.lastInput.documentPoint;z.position=new Wt(rt.x-tt.width/2,rt.y-tt.height/2)}},x.Pf=function(){E.Ya(),Nt(E)},x.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},x.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Nt(E)},x.autoScale=_a,x.vb=!1,y&&Object.assign(x,y),x}we(gt,xe),gt.prototype.computePixelRatio=function(){return 1},gt.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(jd(this),this.ql===null){var x=new Ll(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),At(this)}finally{this.ta=a,this.ib=y}}}xe.prototype.redraw.call(this)},gt.prototype.gc=function(){if(this.Ka===null&&Xt("No div specified"),this.ta===null&&Xt("No canvas specified"),!(this.ta instanceof pu)&&(Iv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){jd(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?At(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;E<x;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function At(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,E=a.drawsGrid&&x,b=y.grid;E&&b!==null&&b.visible&&!isNaN(b.width)&&!isNaN(b.height)&&(b=oe.alloc().assign(a.viewportBounds).ed(y.viewportBounds),fu(y,b),oe.free(b),Ks(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),b=a.ib,b.scale(a.Mb,a.Mb),b.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),b.yc(),y=y.Wa.s,z=y.length;for(var tt=0;tt<z;tt++){var rt=y[tt],ot=a;if(rt.visible&&rt.opacity!==0){var at=rt.diagram.grid.part;if(!x&&rt.isTemporary)E&&at.layer===rt&&(rt=Zu(rt,b),at.gc(b,ot),b.globalAlpha=rt);else{for(var ut=Zu(rt,b),ft=ot.scale,mt=oe.alloc(),yt=rt.Pa.s,wt=yt.length,Mt=0;Mt<wt;Mt++){var Ht=yt[Mt];(E||Ht!==at)&&rt.Oj(b,Ht,ot,null,ft,mt,!1)}oe.free(mt),b.globalAlpha=ut}}}}}function Nt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var E=y.selectionObject,b=Yt.alloc();b.h(x.width,x.height),E.desiredSize=b,Yt.free(b),a=2/a.scale,E instanceof Wi&&(E.strokeWidth=a),y.location=new Wt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}gt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return vr;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},gt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},gt.prototype.onViewportBoundsChanged=function(a,y,x,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Nt(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=E,this.R("ViewportBoundsChanged",this.fc,a))},Ye.Object.defineProperties(gt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof gt&&Xt("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,E=this.ib;x&&E&&(E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,x.width,x.height))}else this.Ha(null),Nt(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),Nt(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),gt.className="Overview";function Gt(){Bo.call(this),this.j=null}we(Gt,Bo),Gt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new Wt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Wt(a.x-this.j.x,a.y-this.j.y)),!0)},Gt.prototype.doActivate=function(){this.j=null,Bo.prototype.doActivate.call(this)},Gt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Gt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var E=a.firstInput.documentPoint;x=x.location,this.j=new Wt(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new Wt(a.x-this.j.x,a.y-this.j.y)}}},Gt.className="OverviewDraggingTool";function jt(){zr(this),this.H=Cu,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=vr,this.hb=!0,this.cg=null,this.ob=200}jt.prototype.toString=function(){return"CommandHandler"},jt.prototype.Xe=function(a){this.H=a},jt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Rr?y.meta:y.control,E=y.shift,b=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||E&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||E&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||b&&E&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||b&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?E&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?E&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():E&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!E&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&E&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},jt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},jt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof eo&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},jt.prototype.canStopCommand=function(){return!0},jt.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var E=a.links;E.next();)E.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},jt.prototype.canSelectAll=function(){return this.diagram.allowSelect},jt.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new en,x=a.selection.iterator;x.next();)hd(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(E){return E.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},jt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},jt.prototype.copySelection=function(){var a=this.diagram,y=new en;for(a=a.selection.iterator;a.next();)hd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},jt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},jt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},jt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},jt.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Wd=null,od="";else{x=y.model;var E=!1,b=!1,z=null;try{x.Tl()&&(E=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(b=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=E),x.Wj()&&(x.Ij=b),x=new rn,x.addAll(z),Wd=x,od=y.model.dataFormat}}y.R("ClipboardChanged",x)},jt.prototype.pasteFromClipboard=function(){var a=new en,y=Wd;if(y===null)return a;var x=this.diagram;if(od!==x.model.dataFormat)return a;var E=x.model,b=!1,z=!1,tt=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),tt=x.Kj(y,x,!1)}finally{for(E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=z),y=tt.iterator;y.next();)x=y.value,E=y.key,x.location.w()||(E.location.w()?x.location=E.location:!x.position.w()&&E.position.w()&&(x.position=E.position)),a.add(x)}return a},jt.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var E=x.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var b=y.computePartsBounds(y.selection);if(b.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);nd(y,z,new Wt(a.x-b.centerX,a.y-b.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},jt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Wd===null||Wd.count===0||od!==a.model.dataFormat)},jt.prototype.undo=function(){this.diagram.undoManager.undo()},jt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},jt.prototype.redo=function(){this.diagram.undoManager.redo()},jt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},jt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===aa&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},jt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==aa?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},jt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===aa&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},jt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==aa?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},jt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},jt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},jt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Pu(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=vr):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),af(y)},jt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},jt.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(ot){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;Pu(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=_t(this,a,[a]);if(b.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var ot=b.pop();0<b.length&&ot instanceof yn&&ot.isTreeExpanded&&(!(ot instanceof Ri)||ot.isSubGraphExpanded);)ot=b.pop();0<b.length?(ot instanceof oi&&y.tv(ot.actualBounds),ot instanceof yn&&!ot.isTreeExpanded&&(ot.isTreeExpanded=!0),ot instanceof Ri&&!ot.isSubGraphExpanded&&(ot.isSubGraphExpanded=!0)):(ot instanceof oi&&y.es(ot.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){_i(z,(x.isEnabled?x.duration:0)+E)};y.Bj("LayoutCompleted",tt),z()}}else{var rt=y.position.copy();y.es(a.actualBounds),rt.Xa(y.position)&&x.Cc()}}};function _t(a,y,x){if(y.isVisible())return x;if(y instanceof Ar)_t(a,y.adornedPart,x);else if(y instanceof un){var E=y.fromNode;E!==null&&_t(a,E,x),y=y.toNode,y!==null&&_t(a,y,x)}else y instanceof yn&&(E=y.labeledLink,E!==null&&_t(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),_t(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),_t(a,y,x));return x}jt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof oi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},jt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Pu(y.animationManager,"Collapse Tree");var x=new rn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof yn&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},jt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof yn&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof yn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},jt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Pu(y.animationManager,"Expand Tree");var x=new rn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof yn&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},jt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof yn)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof yn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},jt.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var E=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var b=new rn,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&b.add(tt)}for(var rt=new rn,ot=b.iterator;ot.next();){var at=ot.value;z=!1;for(var ut=b.iterator;ut.next();)if(at.Td(ut.value)){z=!0;break}z||rt.add(at)}if(0<rt.count){var ft=rt.first().containingGroup;if(ft!==null)for(;ft!==null;){b=!1;for(var mt=rt.iterator;mt.next();)if(!mt.value.Td(ft)){b=!0;break}if(b)ft=ft.containingGroup;else break}if(x instanceof Ri)El(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var yt=y.copyNodeData(x);be(yt)&&(y.xf(yt),E=a.ii(yt))}if(E!==null){ft!==null&&this.isValidMember(ft,E)&&(E.containingGroup=ft);for(var wt=rt.iterator;wt.next();){var Mt=wt.value;this.isValidMember(E,Mt)&&(Mt.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},jt.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function Fe(a){var y=On();for(a=a.iterator;a.next();){var x=a.value;x instanceof un||y.push(x)}a=new en,x=y.length;for(var E=0;E<x;E++){for(var b=y[E],z=!0,tt=0;tt<x;tt++)if(b.Td(y[tt])){z=!1;break}z&&a.add(b)}return Bn(y),a}jt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof un)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},jt.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var E=new rn;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Ri&&z.canUngroup()&&E.add(z)}var tt=new rn;if(0<E.count){y.clearSelection(!0);for(var rt=E.iterator;rt.next();){var ot=rt.value;ot.expandSubGraph();var at=ot.containingGroup,ut=at!==null&&at.data!==null?x.wa(at.data):void 0;tt.addAll(ot.memberParts);for(var ft=tt.iterator;ft.next();){var mt=ft.value;if(mt.isSelected=!0,!(mt instanceof un)){var yt=mt.data;yt!==null?x.mp(yt,ut):mt.containingGroup=at}}y.remove(ot)}}y.R("SelectionUngrouped",E,tt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},jt.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof Ri))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ri&&y.canUngroup())return!0;return!1},jt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Fe(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},jt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Pu(y.animationManager,"Collapse SubGraph");var x=new rn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Ri&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},jt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Ri&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ri&&y.isSubGraphExpanded)return!0;return!1},jt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Pu(y.animationManager,"Expand SubGraph");var x=new rn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Ri&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},jt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Ri&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ri&&!y.isSubGraphExpanded)return!0;return!1},jt.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var E=y.selection.iterator;E.next();){var b=E.value;if(b.canEdit()){a=b;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof ho&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},jt.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof ho))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof ho&&x.editable}),a!==null))return!0;return!1},jt.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var E=y.lastInput,b=null;a instanceof ie?b=a.ga(Tn):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new Wt(b.x+b.width/2,b.y+b.height/2)),b!==null&&(E.viewPoint=y.op(b),E.documentPoint=b,E.left=!1,E.right=!0,E.up=!0),y.currentTool=x,Wu(x,!1,a)}},jt.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},jt.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,E=x.toolManager.findTool("Dragging"),b=x.currentTool===E;if(y===void 0&&(y=b?E.dragOptions:x.Wm),E=new Jn,a===null)return E;for(var z=a.iterator;z.next();)Lu(x,E,z.value,b,y);if(x.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof un&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},Ye.Object.defineProperties(jt.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||Xt("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),jt.className="CommandHandler",Jp=function(){return new jt};function ie(){zr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Wt(NaN,NaN).freeze(),this.jd=Dn,this.Ab=new En,this.wh=new En,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=tr,this.uc=new oe(NaN,NaN,NaN,NaN).freeze(),this.Ib=new oe(NaN,NaN,NaN,NaN).freeze(),this.dc=new oe(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=$r,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var qe,Ze,Un,_n,Si,zi,hr,Ki,yr,Zr;ie.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=Ni(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},ie.prototype.Vw=function(a){var y=this.Dh;if(Ln(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},ie.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},ie.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},ie.prototype.copy=function(){return this.clone()},Lt=ie.prototype,Lt.qb=function(a){a.classType===un?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Xt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===ie&&(this.stretch=a)},Lt.toString=function(){return Kn(this.constructor)+"#"+no(this)},Lt.th=function(){this.A!==null&&(this.A.nc=!0)};function Zi(a){a.A===null?a.A=new Dc:a.A.nc&&(a.A=a.A.copy())}Lt.Xc=function(){if(this.ba===null){var a=new Yg;a.Xi=li,a.yj=li,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Lt.cb=function(a,y,x,E,b,z,tt){var rt=this.part;if(rt!==null&&(rt.gk(a,y,x,E,b,z,tt),x===this&&a===yo&&Ws(this)&&wo(this,rt,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new Jn),tt=z.undoManager.transactionLevel===0,a.startCondition===$h?tt=!0:a.startCondition===Id&&(tt=!1),tt?(z=new Xs,Up(a,z),tt=this.jo.get(a),tt!==null&&tt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,E,b),z.start()):(Pu(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof nn&&x===rt&&(rt.l&16777216)!==0&&rt.data!==null))for(x=this.O.s,E=x.length,b=0;b<E;b++)rt=x[b],rt instanceof nn&&Qd(rt,function(ot){ot.data!==null&&ot.l&16777216&&ot.La(y)})};function wo(a,y,x){var E=a.ih();if(E!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,tt=null;if(z.sourceName!==null){if(tt=ES(z,E,a),tt===null)continue;z.sp(a,tt,x,null)}else if(z.isToModel){var rt=y.diagram;rt===null||rt.skipsModelSourceBindings||z.sp(a,rt.model.modelData,x,E)}else{if(rt=E.data,rt===null)continue;var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,rt,x,E)}tt===a&&(rt=E.ks(z.Ai),rt!==null&&z.Mv(rt,tt,x))}}Lt.ks=function(a){return this.bindingId===a?this:null},Lt.g=function(a,y,x){this.cb(yo,a,this,y,x)},Lt.Ge=function(a,y,x,E){var b=this.uc;if(b.h(a,y,x,E),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new En);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function As(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}Lt.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?ar(a.x,a.y,0,0,0,E.height)<=y||ar(a.x,a.y,0,E.height,E.width,E.height)<=y||ar(a.x,a.y,E.width,E.height,E.width,0)<=y||ar(a.x,a.y,E.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,E.height)<=y&&a.zd(E.width,0)<=y&&a.zd(E.width,E.height)<=y},Lt.se=function(){return!0},Lt.ca=function(a){var y=Wt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Wt.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var b=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),tt=z/2,rt=this.naturalBounds;E=this.Df()*E.scale;var ot=1/E;if(rt.width*E<b&&rt.height*E<b)return a=ui(x.x-tt*ot,x.y-tt*ot,x.width+z*ot,x.height+z*ot,y.x,y.y),Wt.free(y),a}return b=!1,(this instanceof Ar||this instanceof Wi?ui(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?b=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?b=!0:b=this.gh(a)),Wt.free(y),b},Lt.gh=function(a){var y=this.naturalBounds;return ui(0,0,y.width,y.height,a.x,a.y)},Lt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=oe.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=Wt.allocAt(a.x,a.y);return y.ca(x.Cd(b))&&(b.h(a.x,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.y),y.ca(x.Cd(b))&&(E=!0)))),Wt.free(b),oe.free(y),E},Lt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=Wt.allocAt(0,0);return a.ca(y.Ga(b))&&(b.h(0,x.height),a.ca(y.Ga(b))&&(b.h(x.width,x.height),a.ca(y.Ga(b))&&(b.h(x.width,0),a.ca(y.Ga(b))&&(E=!0)))),Wt.free(b),E},Lt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=Wt.allocAt(0,0),b=Wt.allocAt(0,x.height),z=Wt.allocAt(x.width,x.height),tt=Wt.allocAt(x.width,0),rt=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(tt)))rt=!0;else{x=oe.allocAt(0,0,x.width,x.height);var ot=Wt.allocAt(a.x,a.y);x.ca(y.Cd(ot))?rt=!0:(ot.h(a.x,a.bottom),x.ca(y.Cd(ot))?rt=!0:(ot.h(a.right,a.bottom),x.ca(y.Cd(ot))?rt=!0:(ot.h(a.right,a.y),x.ca(y.Cd(ot))&&(rt=!0)))),Wt.free(ot),oe.free(x),!rt&&($t.us(a,E,b)||$t.us(a,b,z)||$t.us(a,z,tt)||$t.us(a,tt,E))&&(rt=!0)}return Wt.free(E),Wt.free(b),Wt.free(z),Wt.free(tt),rt},Lt.ga=function(a,y){if(y===void 0&&(y=new Wt),a instanceof gn){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Lt.mi=function(a){a===void 0&&(a=new oe);var y=this.naturalBounds,x=this.oe,E=Wt.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),ai(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),ai(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),ai(a,E.x,E.y,0,0),Wt.free(E),a},Lt.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},Lt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Lt.qs=function(a,y){return y===void 0&&(y=new Wt),y.assign(a),this.oe.Cd(y),y},Lt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Lt.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,ot=-z.m12*tt,at=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),mt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,$t.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*rt+y*at+ft,a=a*ot+y*ut+mt,y=x*rt+E*at+ft,x=x*ot+E*ut+mt,b.h(0,0),E=this.naturalBounds,x=$t.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},ie.prototype.measure=function(a,y,x,E){if(tl(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var rt=this instanceof nn;switch(ba(this,!0)){case Ze:tt=b=0,rt&&(y=a=1/0);break;case qe:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case _n:isFinite(a)&&a>x&&(b=a),tt=0,rt&&(y=1/0);break;case Si:isFinite(y)&&y>E&&(tt=y),b=0,rt&&(a=1/0)}rt=this.maxSize;var ot=this.minSize;b>rt.width&&ot.width<rt.width&&(b=rt.width),tt>rt.height&&ot.height<rt.height&&(tt=rt.height),x=Math.max(b,ot.width),E=Math.max(tt,ot.height),rt.width<x&&(x=Math.min(ot.width,x)),rt.height<E&&(E=Math.min(ot.height,E)),a=Math.min(rt.width,a),y=Math.min(rt.height,y),a=Math.max(x,a),y=Math.max(E,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=E,E=z),this.uc.ka(),this.Wl(a,y,x,E),this.uc.freeze(),this.uc.w()||Xt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),fs(this,!1)}},ie.prototype.Wl=function(){},ie.prototype.Dd=function(){return!1},ie.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=oe.alloc();z.assign(this.Ib),this.Ib.ka(),ya(this)===!1?this.Ib.h(a,y,x,E):this.eh(a,y,x,E),this.Ib.freeze(),b===void 0?this.tb=null:this.tb=b,x=!1,b!==void 0?x=!0:(b=this.panel,b!==null&&Ah(b)&&(b=b.panel),b!==null&&(b=b.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),x=y+E.height,E=a+E.width,x=!(0<=a+.05&&E<=b.width+.05&&0<=y+.05&&x<=b.height+.05),this instanceof ho&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||Xt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Eu(this,!1),oe.free(z)},Lt=ie.prototype,Lt.eh=function(){};function la(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=ba(a,!0),x===E&&z===b&&(y=Ze),y){case Ze:(x>E||z>b)&&(fs(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case qe:fs(a,!0),a.measure(E,b,0,0);break;case _n:fs(a,!0),a.measure(E,z,0,0);break;case Si:fs(a,!0),a.measure(x,b,0,0)}}}Lt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),In(a,y)||(x.oh(),this.Pn(x)))},Lt.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof yn&&V1(a,this))},Lt.gc=function(a,y){if(!hl(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof nn&&Ah(this),tt=this.Ib;if(z){var rt=this.Ib,ot=this.dc,at=this.areaBackground,ut=this.Ma;at===null&&ut===null||a.yc(),at!==null&&(Jo(this,a,at,!0,!0,ot,rt),at instanceof Gr&&at.type===fl?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(at)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),ut!==null&&(Jo(this,a,ut,!0,!1,ot,rt),ut instanceof Gr&&ut.type===fl?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(ut)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,rt=this.panel,this.l&4096&&zs(this),at=this.part,ot=!1;var ft=0;at&&y.Gf("drawShadows")&&(ot=at.isShadowed)&&(ut=at.shadowOffset,ft=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var mt;if(!(mt=y.$i||!ut)){var yt=this.naturalBounds;mt=this.wh;var wt=mt.m11,Mt=mt.m21,Ht=mt.dx,It=mt.m12,Zt=mt.m22,Kt=mt.dy,Qt,ne=Qt=0;mt=Qt*wt+ne*Mt+Ht;var Se=Qt*It+ne*Zt+Kt;Qt=yt.width+ft,ne=0;var mn=Qt*wt+ne*Mt+Ht;Qt=Qt*It+ne*Zt+Kt,ne=Math.min(mt,mn);var zn=Math.min(Se,Qt),bn=Math.max(mt+0,mn)-ne,ln=Math.max(Se+0,Qt)-zn;mt=ne,Se=zn,Qt=yt.width+ft,ne=yt.height+ft,mn=Qt*wt+ne*Mt+Ht,Qt=Qt*It+ne*Zt+Kt,ne=Math.min(mt,mn),zn=Math.min(Se,Qt),bn=Math.max(mt+bn,mn)-ne,ln=Math.max(Se+ln,Qt)-zn,mt=ne,Se=zn,Qt=0,ne=yt.height+ft,mn=Qt*wt+ne*Mt+Ht,Qt=Qt*It+ne*Zt+Kt,ne=Math.min(mt,mn),zn=Math.min(Se,Qt),bn=Math.max(mt+bn,mn)-ne,ln=Math.max(Se+ln,Qt)-zn,mt=ne,Se=zn,ft=y.viewportBounds,yt=ft.x,wt=ft.y,mt=!(mt>ft.width+yt||yt>bn+mt||Se>ft.height+wt||wt>ln+Se)}if(mt){if(mt=(this.l&256)!==0,a.clipInsteadOfFill&&(mt=!1),this instanceof ho&&(a.font=this.font),mt){if(Se=rt.se()?rt.naturalBounds:rt.actualBounds,bn=Math.max(tt.x,Se.x),ln=Math.max(tt.y,Se.y),ft=Math.min(tt.right,Se.right)-bn,yt=Math.min(tt.bottom,Se.bottom)-ln,wt=this.tb,wt!==null&&(bn=wt.x,ln=wt.y,ft=wt.width,yt=wt.height),bn>tt.width+tt.x||tt.x>Se.width+Se.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(bn,ln,ft,yt),a.clip()}if(ut){if(!at.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}ot&&(Se=at.shadowOffset,a.Ev(Se.x*y.scale*this.scale*y.Mb,Se.y*y.scale*this.scale*y.Mb,at.shadowBlur),Xu(a),a.shadowColor=at.shadowColor)}ot&&this.shadowVisible===!0?Xu(a):ot&&this.shadowVisible===!1&&Mu(a),at=this.naturalBounds,this.areaBackground!==null&&(a.yc(),$a(this,a,at,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),ot&&Ds(this,rt)&&this.shadowVisible===null&&Mu(a),this.Ma!==null&&(a.yc(),Oa(this,a,at,tt)),ot&&(this.Ma!==null||this.areaBackground!==null||Ds(this,rt))?(zl(this,!0),this.shadowVisible===null&&Mu(a)):zl(this,!1),this.hh(a,y),ot&&this.l&512&&Xu(a),ut&&ot&&Mu(a),mt&&(a.restore(),a.Vc(this instanceof nn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function Ds(a,y){return y===null?!1:(Ah(y)&&(y=y.panel),(y.l&512)!==0||(y.type===nn.Auto||y.type===nn.Spot)&&y.Pb()!==a)}Lt.Dv=function(){};function $a(a,y,x,E){Jo(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof Gr&&a.areaBackground.type===fl?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Oa(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,rt=x.width+b,ot=x.height+b;Jo(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof Gr&&a.Ma.type===fl?(y.beginPath(),y.rect(z-b/2,tt-b/2,rt,ot),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,rt,ot)}function ra(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;tt<b;tt++)if(E[tt]===a){z=tt;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===nn.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function hl(a,y,x){if(!(y instanceof Ya))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var E=a.panel,b=a.nk(y);if(a.kk(y,x,b))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):E&&ra(a,E,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),Xu(y),y.shadowColor=a.shadowColor}a instanceof ho&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof nn;var rt=a instanceof nn?Ah(a):!1;a.l&4096&&zs(a);var ot=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&rt?(Zg(y,1,0,0,1,0,0),a.svg=y.ad):z?(Zg(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),a.svg=y.ad):Zg(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var at=tt.copy().Vj();y.rb.ha=[at.m11,at.m12,at.m21,at.m22,at.dx,at.dy],$a(a,y,b,ot),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),a.background!==null&&(z?(rt&&(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),Oa(a,y,b,ot),rt&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],Oa(a,y,b,ot)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),tt=y.yd,b=a.part,rt=!1,b&&x.Gf("drawShadows")&&(rt=b.isShadowed),y.clipInsteadOfFill&&(rt=!1),a.Dd()&&rt&&Xu(y),rt&&a.shadowVisible===!0?Xu(y):rt&&a.shadowVisible===!1&&Mu(y),b=a.panel,rt&&Ds(a,b)&&a.shadowVisible===null&&Mu(y),y.Il&&(at=x.computePixelRatio(),at="drop-shadow("+y.shadowOffsetX/at+"px "+y.shadowOffsetY/at+"px "+y.shadowBlur/at/2+"px "+y.shadowColor+")",a.background!==null&&tt.Ma.setAttributeNS(null,"filter",at),a.areaBackground!==null&&tt.gd.setAttributeNS(null,"filter",at)),rt&&(a.Ma!==null||a.areaBackground!==null||Ds(a,b))?(zl(a,!0),a.shadowVisible===null&&Mu(y)):zl(a,!1),b=rt,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),tt=y.Gv.hs,rt=z?a.svg:y.yd,at=a.svg,!z&&at!==null&&rt!==at&&at.parentNode===a.panel.svg?(a.svg.replaceWith(rt),a.svg=rt,rt!==null&&a.$o(y,E,ot,rt),ka(y,at),!0):(a.svg=rt,tt!==null&&rt===null&&(dm(y),y.nh.pop()),rt===null||(a.$o(y,E,ot,rt),y.Il&&(x=x.computePixelRatio(),a.Dv(rt,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),b&&a.l&512&&Xu(y),a.Dd()&&Mu(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&rt.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&rt.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(rt):y.Nj.prepend(rt),y.ti=rt):E!==null&&ra(a,E,rt),tt!==null&&tt(a,rt)),!0)}Lt.$o=function(a,y,x,E){var b=(this.l&256)!==0;if(a.clipInsteadOfFill&&(b=!1),b){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),b=Math.max(x.y,z.y);var tt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-b,z=this.tb,z!==null&&(y=z.x,b=z.y,tt=z.width,x=z.height),z=E.getAttribute("clip-path");var rt=null;z!==null&&(rt=a.svg.getElementById(z.split("#")[1].slice(0,-1))),rt===null?(z="CLIP"+Zo++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:tt,height:x}),this instanceof nn&&(b=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")),rt.appendChild(y),a.svg.appendChild(rt),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=rt.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",tt.toString()),a.setAttribute("height",x.toString()))}else E.removeAttributeNS(null,"clip-path"),ka(a,E)};function ka(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function oa(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=ii(y);for(var E=y.next();!E.done;E=y.next())E=x.getElementById(E.value.split("#")[1].slice(0,-1)),E!==null&&E.remove()}a.svg.remove()}}Lt.hh=function(){},Lt.lv=function(){this.Uc=!0},Lt.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var E=this.transform,b=this instanceof nn?Ah(this):!1;if(!(this instanceof nn&&b))if(this instanceof Da){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&Qy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Jy(a)):y.setAttributeNS(null,"transform",Jy(a))}else if(!x||this instanceof nn)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof Wi){z=y.getElementsByTagName("path");for(var tt=0;tt<z.length;tt++)z[tt].setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(tt=E.copy().Vj(),a.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],$a(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(tt=y.gd.getAttribute("filter"),tt!==null&&a.ad.setAttribute("filter",tt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&cm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(cm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof nn))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),Oa(this,a,this.naturalBounds,this.actualBounds),y.Ma?(cm(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&cm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Lt.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function Jo(a,y,x,E,b,z,tt){if(x!==null){var rt=1,ot=1;if(typeof x=="string")E?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Ch)E?y.fillStyle=x.color:y.strokeStyle=x.color;else{var at=a.kq();if(rt=z.width,ot=z.height,b?(rt=tt.width,ot=tt.height):E||(rt+=at,ot+=at),(z=y instanceof Kd)&&x.xe&&(x.type===bf||x.yk===rt&&x.ft===ot))var ut=x.xe;else{var ft=0,mt=0,yt=0,wt=0,Mt=0,Ht=0;if(Ht=Mt=0,b?(Mt=tt.x,Ht=tt.y):E||(Mt-=at/2,Ht-=at/2),ft=x.start.x*rt+x.start.offsetX,mt=x.start.y*ot+x.start.offsetY,yt=x.end.x*rt+x.end.offsetX,wt=x.end.y*ot+x.end.offsetY,ft+=Mt,yt+=Mt,mt+=Ht,wt+=Ht,x.type===Qu)ut=y.createLinearGradient(ft,mt,yt,wt);else if(x.type===fl)Ht=isNaN(x.endRadius)?Math.max(rt,ot)/2:x.endRadius,isNaN(x.startRadius)?(Mt=0,Ht=Math.max(rt,ot)/2):Mt=x.startRadius,ut=y.createRadialGradient(ft,mt,Mt,yt,wt,Ht);else if(x.type===bf)try{ut=y.createPattern(x.pattern,"repeat")}catch(Zt){ut=null}if(x.type!==bf&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)ut.addColorStop(b.key,b.value);if(z&&(x.xe=ut,ut!==null&&(x.yk=rt,x.ft=ot),ut===null&&x.type===bf&&x.yk!==-1)){x.yk=-1;var It=a.diagram;It!==null&&x.yk===-1&&_i(function(){It.redraw()},600)}}E?y.fillStyle=ut:y.strokeStyle=ut}}}Lt.rg=function(a){if(a instanceof nn)t:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break t}y=y.panel}a=!1}else a=!1;return a},Lt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Lt.If=function(){for(var a=this instanceof nn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function zs(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Al(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}Al(a,!1),dl(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,dl(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,dl(a,!1)))}Lt.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Wt.alloc();z.yi(y,x,E,b,Tn),a.rotate(this.Kb,z.x,z.y),Wt.free(z)}},Lt.v=function(a){if(!tl(this)){a===void 0&&(a=!1),fs(this,!0),Eu(this,!0);var y=this.panel;y===null||a||y.v()}},Lt.Uj=function(){tl(this)||(fs(this,!0),Eu(this,!0))};function va(a){if(!ya(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof yn&&a.Bd(),y.$b())),Eu(a,!0)}}Lt.Uk=function(){!(this.l&2048)&&(Al(this,!0),dl(this,!0))},Lt.Wu=function(){dl(this,!0)},Lt.N=function(){var a=this.part;a!==null&&a.N()};function ba(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===nn.Table?_l(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===nn.Auto&&E.Pb()===a?Ns(a,qe,y):x===zi?E!==null?E.type===nn.Spot&&E.Pb()===a?Ns(a,qe,y):(x=E.defaultStretch,x===zi?Ns(a,Ze,y):Ns(a,x,y)):Ns(a,Ze,y):Ns(a,x,y)}function _l(a,y,x,E){var b=a.stretch;if(b!==zi)return Ns(a,b,E);var z=b=null;switch(y.stretch){case Si:z=!0;break;case qe:z=!0}switch(x.stretch){case _n:b=!0;break;case qe:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===_n||y===qe),z===null&&(z=y===Si||y===qe),b===!0&&z===!0?Ns(a,qe,E):b===!0?Ns(a,_n,E):z===!0?Ns(a,Si,E):Ns(a,Ze,E)}function Ns(a,y,x){if(x)return y;if(y===Ze||(x=a.desiredSize,x.w()))return Ze;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===_n)return Ze;if(y===qe)return Si}else{if(y===Si)return Ze;if(y===qe)return _n}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Si)return Ze;if(y===qe)return _n}else{if(y===_n)return Ze;if(y===qe)return Si}return y}function zl(a,y){a.l=y?a.l|512:a.l&-513}function Ws(a){return(a.l&1024)!==0}function Bc(a,y){a.l=y?a.l|1024:a.l&-1025}function Al(a,y){a.l=y?a.l|2048:a.l&-2049}function dl(a,y){a.l=y?a.l|4096:a.l&-4097}function tl(a){return(a.l&8192)!==0}function fs(a,y){a.l=y?a.l|8192:a.l&-8193}function ya(a){return(a.l&16384)!==0}function Eu(a,y){a.l=y?a.l|16384:a.l&-16385}Lt.Gj=function(){this.svg=null},Lt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Lt.Av=function(){},Lt.zv=function(a){return this.pa=a,va(this),!0},Lt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Lt.kq=function(){return 0};function Ud(a){var y=a.part;if(y instanceof yn&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||V1(y,a)}}function Xy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof nn?a instanceof yn?a.Bd():a.qm(a,function(x){Ud(x)}):Ud(a))}Lt.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new ls(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&c1(a)&&Xt("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new rn),this.localBindings.add(b),this},Lt.set=function(a){return Object.assign(this,a),this},Lt.Du=function(a){return nv(this,a),this},Lt.apply=function(a){return a(this),this},Lt.nm=function(a){return zd(this,a),this},Lt.pz=function(){return this.ih()},Lt.ih=function(){for(var a=this instanceof nn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Lt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Jn),this.animationTriggers.add(a.propertyName,a),this};function cl(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var E=null,b=null;if(typeof a=="function")b=a;else if(typeof a=="string"){var z=Af.I(a);typeof z=="function"?(x=Ni(arguments),E=z(x),be(E)||Xt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Re.go[a]}if(E===null&&(b!=null&&b.constructor||Xt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),E=new b),b=1,E instanceof xe&&1<x.length){z=E;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(Sg(z,tt),b++)}for(;b<x.length;b++)z=x[b],z===void 0?Xt("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+E):nv(E,z);return E}function nv(a,y){if(typeof y=="string")if(a instanceof ho)a.text=y;else if(a instanceof Wi)a.figure=y;else if(a instanceof Da)a.source=y;else if(a instanceof nn)y=jl.I(y),y!==null&&(a.type=y);else if(a instanceof Gr){var x=Mi(Gr,y);x!==null?a.type=x:Xt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Qe?(y=Mi(Qe,y),y!==null&&(a.type=y)):a instanceof ur&&(y=Mi(ur,y),y!==null&&(a.type=y));else if(y instanceof ie)a instanceof nn||Xt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof gs){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof gs?Fm(E,y):Xt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Ee)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ss)a.type=y;else if(y instanceof ls)a instanceof ie||a instanceof gs?a.bind(y):Xt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Ol)a instanceof ie?a.Jv(y):Xt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof es)a instanceof Qe&&a.type===Qe.o?a.figures.add(y):Xt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof ur)a instanceof es?a.segments.add(y):Xt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Do)a instanceof xe||a instanceof Ri?a.layout=y:Xt("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)nv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Gr){x=new fi;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);zd(a,x)}else if(a instanceof gs){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&Xt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&Xt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new fi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);zd(a,b)}else zd(a,y);else Xt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Ph(a,y){Af.add(a,y)}function hm(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Ye.Object.defineProperties(ie.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Dc),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Dc),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Dc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Zi(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Zi(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:wa},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new ad),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===wa&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new ad),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new ad),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Co},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new ad),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:zi},set:function(a){var y=this.stretch;y!==a&&(Zi(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(Zi(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Mn(a,"0 <= value <= 1",ie,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(_d(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(_d(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),Xy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&Tc(a,"GraphObject.areaBackground"),a instanceof Gr&&a.freeze(),Zi(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Tc(a,"GraphObject.background"),a instanceof Gr&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof oi)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,E=this.pa,b=E.x;E=E.y,(b===y||isNaN(b)&&isNaN(y))&&(E===x||isNaN(E)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,b,E)&&this.g("position",new Wt(b,E),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Xt("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Xy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Wi&&this.qc(),this.g("desiredSize",E,a),Ws(this)&&(a=this.part,a!==null&&(wo(this,a,"width"),wo(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Yt(a,this.jd.height).freeze(),this.v(),this instanceof Wi&&this.qc(),this.g("desiredSize",y,a),Ws(this)&&(a=this.part,a!==null&&wo(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Yt(this.jd.width,a).freeze(),this.v(),this instanceof Wi&&this.qc(),this.g("desiredSize",y,a),Ws(this)&&(a=this.part,a!==null&&wo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:de},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Zi(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:kn},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Zi(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&zs(this),this.Ab}},oe:{get:function(){return this.l&4096&&zs(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Zi(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Ze},set:function(a){this.reshapingBehavior!==a&&(Zi(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&Xt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),va(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Mn(a,">= 0",ie,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Mn(a,">= 1",ie,"columnSpan"),Zi(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Mn(a,">= 0",ie,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Mn(a,">= 1",ie,"rowSpan"),Zi(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Zi(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof yn||Xt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Wv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,U1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:li},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Ud(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Mn(a,">= 0",ie,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Ud(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Ud(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Mn(a,">= 0",ie,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:li},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Ud(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Mn(a,">= 0",ie,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Ud(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Ud(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Mn(a,">= 0",ie,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Zi(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Zi(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Zi(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Zi(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Zi(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Zi(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Zi(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Zi(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Zi(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Zi(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Zi(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Zi(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Zi(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Zi(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Zi(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Zi(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Zi(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Zi(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),ie.prototype.trigger=ie.prototype.Jv,ie.prototype.findBindingPanel=ie.prototype.ih,ie.prototype.findTemplateBinder=ie.prototype.pz,ie.prototype.setProperties=ie.prototype.nm,ie.prototype.apply=ie.prototype.apply,ie.prototype.attach=ie.prototype.Du,ie.prototype.set=ie.prototype.set,ie.prototype.isEnabledObject=ie.prototype.If,ie.prototype.isVisibleObject=ie.prototype.Ed,ie.prototype.isContainedBy=ie.prototype.rg,ie.prototype.getNearestIntersectionPoint=ie.prototype.rs,ie.prototype.getLocalPoint=ie.prototype.qs,ie.prototype.getDocumentScale=ie.prototype.Df,ie.prototype.getDocumentAngle=ie.prototype.li,ie.prototype.getDocumentBounds=ie.prototype.mi,ie.prototype.getDocumentPoint=ie.prototype.ga,ie.prototype.intersectsRect=ie.prototype.Yc,ie.prototype.containedInRect=ie.prototype.fh,ie.prototype.containsRect=ie.prototype.Re,ie.prototype.containsPoint=ie.prototype.ca,ie.prototype.raiseChanged=ie.prototype.g,ie.prototype.raiseChangedEvent=ie.prototype.cb,ie.prototype.addCopyProperty=ie.prototype.Vw;var Af=null;ie.className="GraphObject",Af=new Jn,Ph("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=cl(nn,nn.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof nn){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},cl(Wi,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new gn(0,0,2.76142374915397,2.761423749153969),spot2:new gn(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof nn&&(x=E.fb("ButtonBorder"),x instanceof Wi)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof nn&&(x=E.fb("ButtonBorder"),x instanceof Wi&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof nn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Wi){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof nn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Wi){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof nn&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Wi){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof nn&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Wi))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),Ph("TreeExpanderButton",function(){var a=cl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},cl(Wi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ze},new ls("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ls("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ar&&(x=x.adornedPart),x instanceof yn){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Ph("SubGraphExpanderButton",function(){var a=cl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},cl(Wi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ze},new ls("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Ar&&(x=x.adornedPart),x instanceof Ri){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Ph("ToolTip",function(){return cl(Ar,nn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Wt(0,3),shadowBlur:5},cl(Wi,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new gn(0,0,4,6),spot2:new gn(1,1,-4,-4)}))}),Ph("ContextMenu",function(){return cl(Ar,nn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Wt(0,3),shadowBlur:5},new ls("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Ph("ContextMenuButton",function(){var a=cl("Button");a.stretch=_n;var y=a.fb("ButtonBorder");return y instanceof Wi&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new gn(0,0,2,3),y.spot2=new gn(1,1,-2,-2)),a}),Ph("PanelExpanderButton",function(a){var y=hm(a,"COLLAPSIBLE"),x=cl("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},cl(Wi,{name:"ButtonIcon",strokeWidth:2},new ls("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Wi&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Ph("CheckBoxButton",function(a){var y=hm(a);return a=cl("Button",{desiredSize:new Yt(14,14)},cl(Wi,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:qe,geometryStretch:Un,visible:!1},y!==""?new ls("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof nn){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Ph("CheckBox",function(a){a=hm(a),a=cl("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Yn(0,1,0,0)});var y=cl(nn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Yn(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),ie.None=Ze=new Ee(ie,"None",0),ie.Default=zi=new Ee(ie,"Default",0),ie.Vertical=Si=new Ee(ie,"Vertical",4),ie.Horizontal=_n=new Ee(ie,"Horizontal",5),ie.Fill=qe=new Ee(ie,"Fill",3),ie.Uniform=Un=new Ee(ie,"Uniform",1),ie.UniformToFill=hr=new Ee(ie,"UniformToFill",2),ie.FlipVertical=Ki=new Ee(ie,"FlipVertical",1),ie.FlipHorizontal=yr=new Ee(ie,"FlipHorizontal",2),ie.FlipBoth=Zr=new Ee(ie,"FlipBoth",3),ie.make=cl,ie.getBuilders=function(){var a=new Jn,y;for(y in Af)if(y!==y.toLowerCase()){var x=Af.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},ie.defineBuilder=Ph,ie.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=Af.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof ie))return y&&E.set(y),E;Xt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},ie.takeBuilderArgument=hm;function Dc(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=de,this.o=kn,this.hg=zi,this.ob=this.Bi=1,this.Pf=Ze,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Dc.prototype.copy=function(){var a=new Dc;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function ad(){this.u=-1/0,this.o=0,this.F=Co,this.rr=wa,this.j=this.V="None"}ad.prototype.copy=function(){var a=new ad;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},ad.className="LinkElementSettings";function Yg(){this.yj=this.Xi=$r,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Yg.prototype.copy=function(){var a=new Yg;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},Yg.className="LinkSettings";function Xd(){this.ha=[1,0,0,1,0,0]}Xd.prototype.copy=function(){var a=new Xd;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},Xd.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},Xd.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Xd.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},Xd.className="STransform";function Nc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Nc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Nc.className="SGradient";function pu(a,y,x){this.ownerDocument=a=y===void 0?Re.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Ya(this,x)}pu.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},pu.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),be(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},pu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},pu.prototype.focus=function(){this.Oa.focus()},pu.prototype.mx=function(){this.ownerDocument=null},Ye.Object.defineProperties(pu.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),pu.className="SVGSurface";function Ya(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new Xd,this.j=dm(this),this.Nj=dm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Zo++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Ky(a,y,x,E,b,z,tt){a.Nj===void 0?Zg(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}Lt=Ya.prototype,Lt.arc=function(a,y,x,E,b,z,tt,rt){var ot=2*Math.PI,at=ot-1e-6,ut=x*Math.cos(E),ft=x*Math.sin(E),mt=a+ut,yt=y+ft,wt=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(tt-mt)||1e-6<Math.abs(rt-yt))&&this.path.push(["L",mt,+yt]),0>E&&(E=E%ot+ot),E>at?(this.path.push(["A",x,x,0,1,wt,a-ut,y-ft]),this.path.push(["A",x,x,0,1,wt,mt,yt])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),wt,a+x*Math.cos(b),y+x*Math.sin(b)])},Lt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Lt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Lt.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Lt.clearRect=function(){},Lt.clip=function(){this.Yl.clipPath=!0},Lt.closePath=function(){this.path.push(["z"])},Lt.createLinearGradient=function(a,y,x,E){var b=new Nc("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Lt.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+Zo++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Yd,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Lt.createRadialGradient=function(a,y,x,E,b,z){var tt=new Nc("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Qy(a,y,x,E,b,z,tt,rt,ot){E=rt/E,b=ot/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Lt.drawImage=function(a,y,x,E,b,z,tt,rt,ot){var at="";a instanceof HTMLCanvasElement&&(at=a.toDataURL()),a instanceof HTMLImageElement&&(at=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,rt=E=ut,ot=b=a),E=E||0,b=b||0,rt=rt||0,ot=ot||0,Qy(this,y,x,E,b,z||0,tt||0,rt,ot),z={x:0,y:0,width:ut||E,height:a||b,href:at},$t.$(E,rt)&&$t.$(b,ot)?at.toLowerCase().indexOf(".svg")===-1&&at.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Lf(this,Yd,z,this.rb),this.addElement(Yd,z)},Lt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Lt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Lt.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Lf(this,"fill",a,this.rb),this.addElement("rect",a)},Lt.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Lf(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Lt.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Lf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Lt.lineTo=function(a,y){this.path.push(["L",a,y])},Lt.moveTo=function(a,y){this.path.push(["M",a,y])},Lt.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Lt.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Lt.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Lt.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},Lt.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||Zg(this,a,y,x,E,b,z)};function Jy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Lt.scale=function(a,y){this.rb.scale(a,y)},Lt.translate=function(a,y){this.rb.translate(a,y)},Lt.transform=function(){},Lt.yc=function(){},Lt.stroke=function(){_y(this,this.Yl)},Lt.jk=function(){this.clipInsteadOfFill||this.stroke()},Lt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Lt.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function Lf(a,y,x,E){y==="fill"?iv(a,x):y==="stroke"&&_y(a,x),E!==null&&(a=E.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function iv(a,y){a.fillStyle instanceof Nc?y.fill=rv(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function qy(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Nc?y.setAttributeNS(null,"fill",rv(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function _y(a,y){if(a.strokeStyle instanceof Nc)y.stroke=rv(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function rv(a,y,x){var E="";if(E=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),x=a.svg.getElementById(E),x!==null&&x.remove()):E="GRAD"+Zo++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:E});else throw Error("invalid gradient");var b=y.gx;y=b.length;for(var z=[],tt=0;tt<y;tt++){var rt=b[tt],ot=rt.color;rt={offset:rt.offset,"stop-color":ot},/^rgba\(/.test(ot)&&(ot=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(ot),rt["stop-color"]="rgb("+ot[1]+","+ot[2]+","+ot[3]+")",rt["stop-opacity"]=ot[4]),z.push(rt)}for(z.sort(function(at,ut){return at.offset>ut.offset?1:-1}),b=0;b<y;b++)x.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(x),"url(#"+E+")"}Lt.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=Ni(a[b]),tt=[z.shift()];if(tt[0]==="A")tt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)tt.push(z.shift()+","+z.shift());E.push(tt.join(" "))}if(E=E.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+E+'")');else if(a.d=E,Lf(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var rt in a)rt!=="transform"&&y.setAttributeNS(null,rt,a[rt]);else{rt=y.getElementsByTagName("path");for(var ot in a)ot!=="transform"&&rt[x].setAttributeNS(null,ot,a[ot])}else this.addElement("path",a)};function Zg(a,y,x,E,b,z,tt){var rt=new Xd;rt.ha=[y,x,E,b,z,tt],y={},Lf(a,"g",y,rt),rt=a.addElement("g",y),a.nh.push(rt)}function dm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Lt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Mu(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Xu(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Lt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Lt.fs=function(){this.Ct=!1},Lt.Vc=function(){},Lt.Wx=function(){},Ya.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Ya.prototype.getImageData=function(){return null},Ya.prototype.measureText=function(){return null};function cm(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}Ya.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Ya.className="SVGContext",xe.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new pu(this,Re.document));var y=new pu(this,Re.document,!0);a===void 0&&(a=new fi);var x=this;return Ec(this,function(E,b){return E=sm(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},xe.prototype.makeSvg=xe.prototype.Cs,xe.prototype.av=function(a){return this.Cs(a)},xe.prototype.makeSVG=xe.prototype.av;function Ll(a,y,x,E){this.ownerDocument=y=y===void 0?Re.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Kd(y,x,E),y.H=a}Ll.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",!0):!1},Ll.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Ll.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ll.prototype.focus=function(){this.Oa.focus()},Ll.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Ye.Object.defineProperties(Ll.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),Ll.className="CanvasSurface";function Kd(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Xt("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new En,this.isTemporary=!!x}Lt=Kd.prototype,Lt.Wx=function(a){this.Z.imageSmoothingEnabled=a},Lt.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},Lt.beginPath=function(){this.Z.beginPath()},Lt.Se=function(){},Lt.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},Lt.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},Lt.clip=function(){this.Z.clip()},Lt.closePath=function(){this.Z.closePath()},Lt.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},Lt.createPattern=function(a,y){return this.Z.createPattern(a,y)},Lt.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},Lt.drawImage=function(a,y,x,E,b,z,tt,rt,ot){E===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,E,b,z,tt,rt,ot)},Lt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Lt.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Lt.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Lt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Lt.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},Lt.lineTo=function(a,y){this.Z.lineTo(a,y)},Lt.measureText=function(a){return this.Z.measureText(a)},Lt.moveTo=function(a,y){this.Z.moveTo(a,y)},Lt.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},Lt.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},Lt.restore=function(){this.Z.restore()},Lt.save=function(){this.yc(),this.Z.save()},Kd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Lt=Kd.prototype,Lt.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},Lt.scale=function(a,y){this.El.scale(a,y)},Lt.translate=function(a,y){this.El.translate(a,y)},Lt.stroke=function(){this.Z.stroke()},Lt.transform=function(a,y,x,E,b,z){if(a!==1||y!==0||x!==0||E!==1||b!==0||z!==0){var tt=this.El,rt=tt.m11*a+tt.m21*y;a=tt.m12*a+tt.m22*y,y=tt.m11*x+tt.m21*E,x=tt.m12*x+tt.m22*E,tt.dx=tt.m11*b+tt.m21*z+tt.dx,tt.dy=tt.m12*b+tt.m22*z+tt.dy,tt.m11=rt,tt.m12=a,tt.m21=y,tt.m22=x}},Lt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Lt.ng=function(a,y){if(a instanceof Gr&&a.type===fl){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Lt.jk=function(){this.Hm||this.stroke()},Lt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Lt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Lt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Lt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Lt.Hs=function(){},Ye.Object.defineProperties(Kd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);Kd.className="CanvasSurfaceContext";function Ug(){this.F=this.o=this.u=this.j=0}Ug.className="ColorNumbers";function Gr(a,y){kf||(hv(),kf=!0),zr(this),this._isFrozen=!1,a===void 0?(this.na=Ch,this.xk="black"):typeof a=="string"?(this.na=Ch,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Qu?(this.Qd=Ci,this.Lk=Mr):this.Lk=a===fl?this.Qd=Tn:this.Qd=li,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Gr.prototype.copy=function(){var a=new Gr;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Lt=Gr.prototype,Lt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Lt.ka=function(){return Object.isFrozen(this)&&Xt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Lt.qb=function(a){a.classType===Gr&&(this.type=a)},Lt.toString=function(){var a="Brush(";if(this.type===Ch)a+=this.color;else if(a=this.type===Qu?a+"Linear ":this.type===fl?a+"Radial ":this.type===bf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Lt.addColorStop=function(a,y){return this._isFrozen&&ye(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Mn(a,"0 <= loc <= 1",Gr,"addColorStop:loc"),this.we===null&&(this.we=new Jn),this.we.add(a,y),this.na===Ch&&(this.type=Qu),this.xe=null,this},Lt.Vz=function(a,y){if(this._isFrozen&&ye(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Bf:y,this.type===Ch)Ku(this.color),this.color=Mf(a,y);else if((this.type===Qu||this.type===fl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Ku(x.value),this.addColorStop(x.key,Mf(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Bf:x,Ku(a),Mf(y,x)}Lt.Wy=function(a,y){if(this._isFrozen&&ye(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Bf:y,this.type===Ch)Ku(this.color),this.color=Mf(-a,y);else if((this.type===Qu||this.type===fl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Ku(x.value),this.addColorStop(x.key,Mf(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Bf:x,Ku(a),Mf(-y,x)}function ov(a,y,x){Ku(a),a=vo.j;var E=vo.u,b=vo.o,z=vo.F;return Ku(y),x===void 0&&(x=.5),"rgba("+Math.round((vo.j-a)*x+a)+", "+Math.round((vo.u-E)*x+E)+", "+Math.round((vo.o-b)*x+b)+", "+Math.round((vo.F-z)*x+z)+")"}Lt.Gx=function(){if(this.type===Ch)return Ef(this.color);if((this.type===Qu||this.type===fl)&&this.colorStops!==null){var a=this.colorStops;if(this.type===fl)return Ef(a.first().value);if(a.get(.5)!==null)return Ef(a.get(.5));if(a.count===2)return a=a.Fa(),Ef(ov(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,rt=Math.abs(.5-y.key);b>z&&rt<b?(x=tt,b=rt):z>=b&&rt<z&&(E=tt,z=rt)}return x>E&&(z=x,x=E,E=z,z=b),b=E-x,Ef(ov(a.get(x),a.get(E),1-z/b))}return!1};function Ef(a){return a?a instanceof Gr?a.Gx():(Ku(a),128>(299*vo.j+587*vo.u+114*vo.o)/1e3):!1}function Mf(a,y){switch(y){case Bf:y=100*av(vo.j);var x=100*av(vo.u),E=100*av(vo.o);return Sa.j=.4124564*y+.3575761*x+.1804375*E,Sa.u=.2126729*y+.7151522*x+.072175*E,Sa.o=.0193339*y+.119192*x+.9503041*E,Sa.F=vo.F,y=uv(Sa.j/Ff[0]),x=uv(Sa.u/Ff[1]),E=uv(Sa.o/Ff[2]),Fu.j=116*x-16,Fu.u=500*(y-x),Fu.o=200*(x-E),Fu.F=Sa.F,Fu.j=Math.min(100,Math.max(0,Fu.j+100*a)),a=(Fu.j+16)/116,y=a-Fu.o/200,Sa.j=Ff[0]*e1(Fu.u/500+a),Sa.u=Ff[1]*(Fu.j>fm*dv?Math.pow(a,3):Fu.j/fm),Sa.o=Ff[2]*e1(y),Sa.F=Fu.F,a=-.969266*Sa.j+1.8760108*Sa.u+.041556*Sa.o,y=.0556434*Sa.j+-.2040259*Sa.u+1.0572252*Sa.o,vo.j=255*lv((3.2404542*Sa.j+-1.5371385*Sa.u+-.4985314*Sa.o)/100),vo.u=255*lv(a/100),vo.o=255*lv(y/100),vo.F=Sa.F,vo.j=Math.round(vo.j),255<vo.j?vo.j=255:0>vo.j&&(vo.j=0),vo.u=Math.round(vo.u),255<vo.u?vo.u=255:0>vo.u&&(vo.u=0),vo.o=Math.round(vo.o),255<vo.o?vo.o=255:0>vo.o&&(vo.o=0),"rgba("+vo.j+", "+vo.u+", "+vo.o+", "+vo.F+")";case n1:return sv(),el.o=Math.min(100,Math.max(0,el.o+100*a)),"hsla("+el.j+", "+el.u+"%, "+el.o+"%, "+el.F+")";default:Xt("Unknown color space: "+y)}}function Ku(a){kf||(hv(),kf=!0);var y=cv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,vo.j=a[0],vo.u=a[1],vo.o=a[2],vo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,vo.j=0,vo.u=0,vo.o=0,vo.F=1)}}function sv(){var a=vo.j/255,y=vo.u/255,x=vo.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}el.j=Math.round(tt),el.u=Math.round(100*a),el.o=Math.round(100*b),el.F=vo.F}function av(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(fm*a+16)/116}function e1(a){var y=a*a*a;return y>dv?y:(116*a-16)/fm}function Tc(a,y){typeof a!="string"&&(a instanceof Gr||Xt("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=Qo?new Ll(null,void 0,{willReadFrequently:!0}).context:null}Ye.Object.defineProperties(Gr.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&ye(this,a),this.na=a,this.start.Mc()&&(a===Qu?this.start=Ci:a===fl&&(this.start=Tn)),this.end.Mc()&&(a===Qu?this.end=Mr:a===fl&&(this.end=Tn)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&ye(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&ye(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&ye(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&ye(this,a),0>a&&Mn(a,">= zero",Gr,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&ye(this,a),0>a&&Mn(a,">= zero",Gr,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&ye(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&ye(this,a),this.cr=a,this.xe=null}}}),Gr.prototype.isDark=Gr.prototype.Gx,Gr.prototype.darkenBy=Gr.prototype.Wy,Gr.prototype.lightenBy=Gr.prototype.Vz,Gr.prototype.addColorStop=Gr.prototype.addColorStop;var dv=216/24389,fm=24389/27,Ff=[95.047,100,108.883],cv=null,vo=new Ug,el=new Ug,Sa=new Ug,Fu=new Ug,kf=!1;Gr.className="Brush";var Ch;Gr.Solid=Ch=new Ee(Gr,"Solid",0);var Qu;Gr.Linear=Qu=new Ee(Gr,"Linear",1);var fl;Gr.Radial=fl=new Ee(Gr,"Radial",2);var bf;Gr.Pattern=bf=new Ee(Gr,"Pattern",4);var Bf;Gr.Lab=Bf=new Ee(Gr,"Lab",5);var n1;Gr.HSL=n1=new Ee(Gr,"HSL",6),Gr.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},Gr.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;kf||(hv(),kf=!0);var y=cv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},Gr.lighten=function(a){return $y(a)},Gr.lightenBy=$y,Gr.darken=function(a){return t1(a)},Gr.darkenBy=t1,Gr.mix=ov,Gr.isDark=Ef;function Ss(){this.xa="Base"}Ss.prototype.measure=function(){},Ss.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Ss.prototype.arrange=function(){},Ss.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Ss.prototype.iA=function(a){a.Uj()},Ss.prototype.gc=function(){},Ye.Object.defineProperties(Ss.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return nn}}}),Ss.prototype.remeasureObject=Ss.prototype.iA,Ss.prototype.arrangeElement=Ss.prototype.Ly,Ss.prototype.measureElement=Ss.prototype.Yz,Ss.className="PanelLayout";function gm(){this.xa="Base"}we(gm,Ss),gm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;a=Ju(a);for(var ot=0;ot<rt;ot++){var at=E[ot];if(at.visible||at===a){var ut=at.margin,ft=ut.right+ut.left;ut=ut.top+ut.bottom,at.measure(y,x,z,tt);var mt=at.measuredBounds;ft=Math.max(mt.width+ft,0),ut=Math.max(mt.height+ut,0),mt=at.position.x;var yt=at.position.y;isFinite(mt)||(mt=0),isFinite(yt)||(yt=0),at instanceof Wi&&at.isGeometryPositioned&&(at=at.strokeWidth/2,mt-=at,yt-=at),ai(b,mt,yt,ft,ut)}}},gm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding;for(a=x.x-b.left,x=x.y-b.top,b=0;b<E;b++){var z=y[b],tt=z.measuredBounds,rt=z.margin,ot=z.position.x,at=z.position.y;if(ot=isNaN(ot)?-a:ot-a,at=isNaN(at)?-x:at-x,z instanceof Wi&&z.isGeometryPositioned){var ut=z.strokeWidth/2;ot-=ut,at-=ut}z.visible&&z.arrange(ot+rt.left,at+rt.top,tt.width,tt.height)}};function pm(){this.xa="Base"}we(pm,Ss),pm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;y=On(),z=Ju(a);for(var ot=0;ot<rt;ot++){var at=E[ot];if(at.visible||at===z){var ut=ba(at,!1);if(ut!==Ze&&ut!==_n)y.push(at);else{at.measure(1/0,x,0,tt),ut=at.margin,at=at.measuredBounds;var ft=Math.max(at.height+ut.top+ut.bottom,0);b.width+=Math.max(at.width+ut.right+ut.left,0),b.height=Math.max(b.height,ft)}}}for(E=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):b.height!==0&&(x=Math.min(b.height,a.maxSize.height)),a=0;a<E;a++)ot=y[a],(ot.visible||ot===z)&&(ut=ot.margin,rt=ut.right+ut.left,ut=ut.top+ut.bottom,ot.measure(1/0,x,0,tt),ot=ot.measuredBounds,ut=Math.max(ot.height+ut,0),b.width+=Math.max(ot.width+rt,0),b.height=Math.max(b.height,ut));Bn(y)},pm.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.top,tt=a.isOpposite,rt=tt?x.width:b.left,ot=0;ot<E;ot++){var at=z,ut=y[ot];if(ut.visible){var ft=ut.measuredBounds,mt=ut.margin,yt=mt.top+mt.bottom,wt=z+b.bottom,Mt=ft.height,Ht=ba(ut,!1);(isNaN(ut.desiredSize.height)&&Ht===qe||Ht===Si)&&(Mt=Math.max(x.height-yt-wt,0)),yt=Mt+yt+wt,wt=ut.alignment,wt.Xb()&&(wt=a.defaultAlignment),wt.sb()||(wt=Tn),tt&&(rt-=ft.width+mt.left+mt.right),ut.arrange(rt+wt.offsetX+mt.left,at+wt.offsetY+mt.top+(x.height*wt.y-yt*wt.y),ft.width,Mt),tt||(rt+=ft.width+mt.left+mt.right)}}};function mm(){this.xa="Base"}we(mm,Ss),mm.prototype.measure=function(a,y,x,E,b,z){var tt=E.length;x=On();for(var rt=Ju(a),ot=0;ot<tt;ot++){var at=E[ot];if(at.visible||at===rt){var ut=ba(at,!1);if(ut!==Ze&&ut!==Si)x.push(at);else{var ft=at.margin;ut=ft.right+ft.left,ft=ft.top+ft.bottom,at.measure(y,1/0,z,0),at=at.measuredBounds,Hn(b,Math.max(b.width,Math.max(at.width+ut,0)),b.height+Math.max(at.height+ft,0))}}}if(E=x.length,E!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):b.width!==0&&(y=Math.min(b.width,a.maxSize.width)),a=0;a<E;a++)ot=x[a],(ot.visible||ot===rt)&&(at=ot.margin,tt=at.right+at.left,at=at.top+at.bottom,ot.measure(y,1/0,z,0),ot=ot.measuredBounds,at=Math.max(ot.height+at,0),b.width=Math.max(b.width,Math.max(ot.width+tt,0)),b.height+=at);Bn(x)}},mm.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.left,tt=a.isOpposite,rt=tt?x.height:b.top,ot=0;ot<E;ot++){var at=z,ut=y[ot];if(ut.visible){var ft=ut.measuredBounds,mt=ut.margin,yt=mt.left+mt.right,wt=z+b.right,Mt=ft.width,Ht=ba(ut,!1);(isNaN(ut.desiredSize.width)&&Ht===qe||Ht===_n)&&(Mt=Math.max(x.width-yt-wt,0)),yt=Mt+yt+wt,wt=ut.alignment,wt.Xb()&&(wt=a.defaultAlignment),wt.sb()||(wt=Tn),tt&&(rt-=ft.height+mt.bottom+mt.top),ut.arrange(at+wt.offsetX+mt.left+(x.width*wt.x-yt*wt.x),rt+wt.offsetY+mt.top,Mt,ft.height),tt||(rt+=ft.height+mt.bottom+mt.top)}}};function vm(){this.xa="Base"}we(vm,Ss),vm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length,ot=a.Pb(),at=ot.margin,ut=at.right+at.left,ft=at.top+at.bottom;ot.measure(y,x,z,tt);var mt=ot.measuredBounds;z=mt.width,tt=mt.height;var yt=Math.max(z+ut,0),wt=Math.max(tt+ft,0),Mt=a.isClipping,Ht=oe.allocAt(-at.left,-at.top,yt,wt),It=oe.allocAt(0,0,z,tt);fv(ot,It,!0),z=It.width,tt=It.height;for(var Zt=!0,Kt=Ju(a),Qt=0;Qt<rt;Qt++){var ne=E[Qt];mt=y;var Se=x;if(ne!==ot&&(ne.visible||ne===Kt)){at=ne.margin;var mn=at.left,zn=at.top;switch(yt=at.right+at.left,wt=at.top+at.bottom,at=ba(ne,!1),at){case qe:mt=z,Se=tt,zn=mn=wt=yt=0;break;case _n:mt=z,mn=yt=0;break;case Si:Se=tt,zn=wt=0}ne.measure(mt,Se,0,0),mt=ne.measuredBounds,yt=Math.max(mt.width+yt,0),wt=Math.max(mt.height+wt,0),at=ne.alignment,at.Xb()&&(at=a.defaultAlignment),at.sb()||(at=Tn);var bn=ne.alignmentFocus;if(bn.Xb()&&(bn=Tn),Se=null,ne instanceof nn&&ne.$e!==""&&(Se=ne.fb(ne.$e),Se===ne&&(Se=null)),mn=It.x-mn,zn=It.y-zn,Se!==null){for(ne.arrange(0,0,mt.width,mt.height),mt=Se.actualBounds,mt=Wt.allocAt(mt.x+(bn.x*mt.width-bn.offsetX),mt.y+(bn.y*mt.height-bn.offsetY)),Se=Se.panel;Se!==ne;)Se.transform.Ga(mt),Se=Se.panel;mn+=at.x*z+at.offsetX-mt.x,zn+=at.y*tt+at.offsetY-mt.y,Wt.free(mt)}else mn+=at.x*z+at.offsetX-(bn.x*mt.width+bn.offsetX),zn+=at.y*tt+at.offsetY-(bn.y*mt.height+bn.offsetY);Zt?(Zt=!1,b.h(mn,zn,yt,wt)):ai(b,mn,zn,yt,wt)}}switch(Zt?b.assign(Ht):Mt?b.Uu(It.x,It.y,It.width,It.height):ai(b,Ht.x,Ht.y,Ht.width,Ht.height),oe.free(Ht),oe.free(It),at=ot.stretch,at===zi&&(at=ba(ot,!1)),at){case Ze:return;case qe:if(!isFinite(y)&&!isFinite(x))return;break;case _n:if(!isFinite(y))return;break;case Si:if(!isFinite(x))return}for(mt=ot.measuredBounds,z=mt.width,tt=mt.height,yt=Math.max(z+ut,0),wt=Math.max(tt+ft,0),at=ot.margin,It=oe.allocAt(-at.left,-at.top,yt,wt),fv(ot,It,!0),z=It.width,tt=It.height,y=0;y<rt;y++)x=E[y],x===ot||!x.visible&&x!==Kt||(at=x.margin,yt=at.right+at.left,wt=at.top+at.bottom,mt=x.measuredBounds,yt=Math.max(mt.width+yt,0),wt=Math.max(mt.height+wt,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=Tn),x=x.alignmentFocus,x.Xb()&&(x=Tn),Zt?(Zt=!1,b.h(ut.x*z+ut.offsetX-(x.x*mt.width+x.offsetX)-at.left,ut.y*tt+ut.offsetY-(x.y*mt.height+x.offsetY)-at.top,yt,wt)):ai(b,ut.x*z+ut.offsetX-(x.x*mt.width+x.offsetX)-at.left,ut.y*tt+ut.offsetY-(x.y*mt.height+x.offsetY)-at.top,yt,wt));Zt?b.assign(Ht):Mt?b.Uu(It.x,It.y,It.width,It.height):ai(b,Ht.x,Ht.y,Ht.width,Ht.height),oe.free(It)},vm.prototype.arrange=function(a,y,x){var E=y.length,b=a.Pb(),z=b.measuredBounds,tt=z.width,rt=z.height,ot=a.padding;z=ot.left,ot=ot.top;var at=z-x.x,ut=ot-x.y;for(b.arrange(at,ut,tt,rt),tt=oe.allocAt(0,0,tt,rt),fv(b,tt,!1),rt=0;rt<E;rt++){var ft=y[rt];if(ft!==b){at=ft.measuredBounds;var mt=at.width,yt=at.height;ut=ft.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=Tn);var wt=ft.alignmentFocus;if(wt.Xb()&&(wt=Tn),at=null,ft instanceof nn&&ft.$e!==""&&(at=ft.fb(ft.$e),at===ft&&(at=null)),at!==null){var Mt=at.actualBounds;for(wt=Wt.allocAt(Mt.x+(wt.x*Mt.width-wt.offsetX),Mt.y+(wt.y*Mt.height-wt.offsetY)),at=at.panel;at!==ft;)at.transform.Ga(wt),at=at.panel;at=ut.x*tt.width+ut.offsetX-wt.x,ut=ut.y*tt.height+ut.offsetY-wt.y,Wt.free(wt)}else at=ut.x*tt.width+ut.offsetX-(wt.x*mt+wt.offsetX),ut=ut.y*tt.height+ut.offsetY-(wt.y*yt+wt.offsetY);at+=tt.x-x.x,ut+=tt.y-x.y,ft.visible&&ft.arrange(z+at,ot+ut,mt,yt)}}oe.free(tt)};function fv(a,y,x){var E=null;if(a instanceof nn&&a.$e!==""&&(E=a.fb(a.$e),E===a&&(E=null)),E!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(E.actualBounds),E=E.panel;E!==a;)E.transform.pp(y),E=E.panel}function ym(){this.xa="Base"}we(ym,Ss),ym.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length,ot=a.Pb(),at=ot.margin,ut=y,ft=x,mt=at.right+at.left,yt=at.top+at.bottom;ot.measure(y,x,z,tt),at=ot.measuredBounds;var wt=0,Mt=null;ot instanceof Wi&&(Mt=ot,wt=Mt.strokeWidth*Mt.scale);var Ht=Math.max(at.width+mt,0);at=Math.max(at.height+yt,0);var It=vv(ot),Zt=It.x*Ht+It.offsetX;It=It.y*at+It.offsetY;var Kt=yv(ot),Qt=Kt.x*Ht+Kt.offsetX;for(Kt=Kt.y*at+Kt.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(Zt-Qt)-wt,0)),isFinite(x)&&(ft=Math.max(Math.abs(It-Kt)-wt,0)),wt=Yt.alloc(),wt.h(0,0),a=Ju(a),Kt=0;Kt<rt;Kt++)It=E[Kt],It===ot||!It.visible&&It!==a||(at=It.margin,Ht=at.right+at.left,Zt=at.top+at.bottom,It.measure(ut,ft,0,0),at=It.measuredBounds,Ht=Math.max(at.width+Ht,0),at=Math.max(at.height+Zt,0),wt.h(Math.max(Ht,wt.width),Math.max(at,wt.height)));if(rt===1)b.width=Ht,b.height=at,Yt.free(wt);else{switch(It=vv(ot),Kt=yv(ot),rt=E=0,Kt.x!==It.x&&Kt.y!==It.y&&(E=wt.width/Math.abs(Kt.x-It.x),rt=wt.height/Math.abs(Kt.y-It.y)),Yt.free(wt),wt=0,Mt!==null&&(wt=Mt.strokeWidth*Mt.scale,Av(Mt)===Un&&(E=rt=Math.max(E,rt))),E+=Math.abs(It.offsetX)+Math.abs(Kt.offsetX)+wt,rt+=Math.abs(It.offsetY)+Math.abs(Kt.offsetY)+wt,Mt=ot.stretch,Mt===zi&&(Mt=ba(ot,!1)),Mt){case Ze:tt=z=0;break;case qe:isFinite(y)&&(E=y),isFinite(x)&&(rt=x);break;case _n:isFinite(y)&&(E=y),tt=0;break;case Si:z=0,isFinite(x)&&(rt=x)}ot.Uj(),ot.measure(E,rt,z,tt),b.width=ot.measuredBounds.width+mt,b.height=ot.measuredBounds.height+yt}},ym.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=oe.alloc();z.h(0,0,1,1);var tt=E.margin,rt=tt.left;tt=tt.top;var ot=a.padding,at=ot.left;ot=ot.top,E.arrange(at+rt,ot+tt,b.width,b.height);var ut=vv(E),ft=yv(E),mt=ut.y*b.height+ut.offsetY,yt=ft.x*b.width+ft.offsetX;for(ft=ft.y*b.height+ft.offsetY,z.x=ut.x*b.width+ut.offsetX,z.y=mt,ai(z,yt,ft,0,0),z.x+=rt+at,z.y+=tt+ot,b=0;b<x;b++)rt=y[b],rt!==E&&(at=rt.measuredBounds,tt=rt.margin,ot=Math.max(at.width+tt.right+tt.left,0),ut=Math.max(at.height+tt.top+tt.bottom,0),mt=rt.alignment,mt.Xb()&&(mt=a.defaultAlignment),mt.sb()||(mt=Tn),ot=z.width*mt.x+mt.offsetX-ot*mt.x+tt.left+z.x,tt=z.height*mt.y+mt.offsetY-ut*mt.y+tt.top+z.y,rt.visible&&(ui(z.x,z.y,z.width,z.height,ot,tt,at.width,at.height)?rt.arrange(ot,tt,at.width,at.height):rt.arrange(ot,tt,at.width,at.height,new oe(z.x,z.y,z.width,z.height))));oe.free(z)};function Sm(){this.xa="Base",this.name="Table"}we(Sm,Ss),Sm.prototype.measure=function(a,y,x,E,b){for(var z=E.length,tt=On(),rt=On(),ot=0;ot<z;ot++){var at=E[ot],ut=at instanceof nn?at:null;if(ut!==null&&Ah(ut)&&at.visible){rt.push(ut);for(var ft=ut.O.s,mt=ft.length,yt=0;yt<mt;yt++){var wt=ft[yt];ut.type===nn.TableRow?wt.row=at.row:ut.type===nn.TableColumn&&(wt.column=at.column),tt.push(wt)}}else tt.push(at)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var Mt=[],Ht=0;Ht<z;Ht++){var It=tt[Ht];It.visible&&(fs(It,!0),Eu(It,!0),Mt[It.row]||(Mt[It.row]=[]),Mt[It.row][It.column]||(Mt[It.row][It.column]=[]),Mt[It.row][It.column].push(It))}Bn(tt);var Zt=On(),Kt=On(),Qt=On(),ne={count:0},Se={count:0},mn=y,zn=x,bn=a.rowDefs,ln=a.colDefs,Ve=null;z=bn.length;for(var Oi=0;Oi<z;Oi++)Ve=bn[Oi],Ve!==void 0&&(Ve.actual=0);z=ln.length;for(var ki=0;ki<z;ki++)Ve=ln[ki],Ve!==void 0&&(Ve.actual=0);for(var Br=Mt.length,ao=0,Ls=0;Ls<Br;Ls++)Mt[Ls]&&(ao=Math.max(ao,Mt[Ls].length));var ks=Math.min(a.topIndex,Br-1),ua=Math.min(a.leftIndex,ao-1),Es=0;Br=Mt.length;for(var Th=Ju(a),us=0;us<Br;us++)if(Mt[us]){ao=Mt[us].length;var iu=a.Fb(us);iu.actual=0;for(var ha=iu.oc=0;ha<ao;ha++)if(Mt[us][ha]){var Ih=a.Eb(ha);Zt[ha]===void 0&&(Ih.actual=0,Ih.oc=0,Zt[ha]=!0);for(var rl=Mt[us][ha],kl=rl.length,Xa=0;Xa<kl;Xa++){var za=rl[Xa];if(za.visible||za===Th){var wd=1<za.rowSpan||1<za.columnSpan;wd&&(us<ks||ha<ua||Kt.push(za));var ru=za.margin,tg=ru.right+ru.left,Ka=ru.top+ru.bottom,da=_l(za,iu,Ih,!1),Np=za.desiredSize,Uc=!isNaN(Np.height),yu=!isNaN(Np.width)&&Uc;if(wd||da===Ze||yu||us<ks||ha<ua||(ne[ha]!==void 0||da!==qe&&da!==_n||(ne[ha]=-1,ne.count++),Se[us]!==void 0||da!==qe&&da!==Si||(Se[us]=-1,Se.count++),Qt.push(za)),za.measure(1/0,1/0,0,0),!(us<ks||ha<ua)){var ja=za.measuredBounds,ic=Math.max(ja.width+tg,0),Qa=Math.max(ja.height+Ka,0);if(za.rowSpan===1&&(da===Ze||da===_n)){Ve=a.Fb(us);var Pd=Ve.Wc();Es=Math.max(Qa-Ve.actual,0),Es+Pd>zn&&(Es=Math.max(zn-Pd,0));var W0=Ve.oa===0;Ve.oc=Ve.oc+Es,Ve.actual=Ve.oa+Es,zn=Math.max(zn-(Es+(W0?Pd:0)),0)}if(za.columnSpan===1&&(da===Ze||da===Si)){Ve=a.Eb(ha);var Tp=Ve.Wc();Es=Math.max(ic-Ve.actual,0),Es+Tp>mn&&(Es=Math.max(mn-Tp,0));var Hy=Ve.oa===0;Ve.oc=Ve.oc+Es,Ve.actual=Ve.oa+Es,mn=Math.max(mn-(Es+(Hy?Tp:0)),0)}wd&&za.Uj()}}}}}Bn(Zt);var Ru=0,$u=0;z=a.columnCount;for(var Xc=0;Xc<z;Xc++){var Cd=ln[Xc];Cd!==void 0&&(Ru+=isNaN(Cd.Hc)?Cd.oc:Cd.Hc,Cd.oc!==0&&(Ru+=Cd.Wc()))}z=a.rowCount;for(var eg=0;eg<z;eg++){var Ad=bn[eg];Ad!==void 0&&($u+=isNaN(Ad.Hc)?Ad.oc:Ad.Hc,Ad.oc!==0&&($u+=Ad.Wc()))}mn=Math.max(y-Ru,0);var zu=zn=Math.max(x-$u,0),Oh=mn;z=Qt.length;for(var Ha=0;Ha<z;Ha++){var Su=Qt[Ha],V0=a.Fb(Su.row),th=a.Eb(Su.column),ng=Su.measuredBounds,ou=Su.margin,rc=ou.right+ou.left,xu=ou.top+ou.bottom;ne[Su.column]=th.oc===0&&ne[Su.column]!==void 0?Math.max(ng.width+rc,ne[Su.column]):null,Se[Su.row]=V0.oc===0&&Se[Su.row]!==void 0?Math.max(ng.height+xu,Se[Su.row]):null}var Kc=0,ig=0,Zl;for(Zl in Se)Zl!=="count"&&(Kc+=Se[Zl]);for(Zl in ne)Zl!=="count"&&(ig+=ne[Zl]);for(var Hs=Yt.alloc(),Ip=0;Ip<z;Ip++){var Ea=Qt[Ip];if(Ea.visible||Ea===Th){var hs=a.Fb(Ea.row),Ma=a.Eb(Ea.column),eh=0;isFinite(Ma.width)?eh=Ma.width:(isFinite(mn)&&ne[Ea.column]!==null?ig===0?eh=Ma.actual+mn:eh=ne[Ea.column]/ig*Oh:ne[Ea.column]!==null?eh=mn:eh=Ma.actual||mn,eh=Math.max(0,eh-Ma.Wc()));var Rh=0;switch(isFinite(hs.height)?Rh=hs.height:(isFinite(zn)&&Se[Ea.row]!==null?Kc===0?Rh=hs.actual+zn:Rh=Se[Ea.row]/Kc*zu:Se[Ea.row]!==null?Rh=zn:Rh=hs.actual||zn,Rh=Math.max(0,Rh-hs.Wc())),Hs.h(Math.max(Ma.minimum,Math.min(eh,Ma.maximum)),Math.max(hs.minimum,Math.min(Rh,hs.maximum))),da=_l(Ea,hs,Ma,!1),da){case _n:Hs.height=Math.max(Hs.height,hs.actual+zn);break;case Si:Hs.width=Math.max(Hs.width,Ma.actual+mn)}var oc=Ea.margin,Gy=oc.right+oc.left,Y0=oc.top+oc.bottom;Ea.Uj(),Ea.measure(Hs.width,Hs.height,Ma.minimum,hs.minimum);var rg=Ea.measuredBounds,sc=Math.max(rg.width+Gy,0),Qc=Math.max(rg.height+Y0,0);isFinite(mn)&&(sc=Math.min(sc,Hs.width)),isFinite(zn)&&(Qc=Math.min(Qc,Hs.height));var Ga=0;Ga=hs.actual,hs.actual=Math.max(hs.actual,Qc),hs.oc=Math.max(hs.oc,Qc),Es=hs.actual-Ga,zn=Math.max(zn-Es,0),Se[Ea.row]===null&&(zu=Math.max(zu-Es,0)),Ga=Ma.actual,Ma.actual=Math.max(Ma.actual,sc),Ma.oc=Math.max(Ma.oc,sc),Es=Ma.actual-Ga,mn=Math.max(mn-Es,0),ne[Ea.column]===null&&(Oh=Math.max(Oh-Es,0))}}Bn(Qt);var nh=Yt.alloc(),su=On(),yl=On();if(z=Kt.length,z!==0){for(var Ld=0;Ld<Br;Ld++)if(Mt[Ld]){ao=Mt[Ld].length;var og=a.Fb(Ld);su[Ld]=og.actual;for(var Ed=0;Ed<ao;Ed++)if(Mt[Ld][Ed]){var Z0=a.Eb(Ed);yl[Ed]=Z0.actual}}}for(var sg=0;sg<z;sg++){var _o=Kt[sg];if(_o.visible||_o===Th){var Ul=a.Fb(_o.row),bl=a.Eb(_o.column);switch(Hs.h(Math.max(bl.minimum,Math.min(y,bl.maximum)),Math.max(Ul.minimum,Math.min(x,Ul.maximum))),da=_l(_o,Ul,bl,!1),da){case qe:yl[bl.index]!==0&&(Hs.width=Math.min(Hs.width,yl[bl.index])),su[Ul.index]!==0&&(Hs.height=Math.min(Hs.height,su[Ul.index]));break;case _n:yl[bl.index]!==0&&(Hs.width=Math.min(Hs.width,yl[bl.index]));break;case Si:su[Ul.index]!==0&&(Hs.height=Math.min(Hs.height,su[Ul.index]))}isFinite(bl.width)&&(Hs.width=bl.width),isFinite(Ul.height)&&(Hs.height=Ul.height),nh.h(0,0);for(var U0=bl.minimum,Ja=Ul.minimum,zh=1;zh<_o.rowSpan&&!(_o.row+zh>=a.rowCount);zh++)Ve=a.Fb(_o.row+zh),Es=0,Es=da===qe||da===Si?Math.max(Ve.minimum,su[_o.row+zh]===0?Ve.maximum:Math.min(su[_o.row+zh],Ve.maximum)):Math.max(Ve.minimum,isNaN(Ve.Hc)?Ve.maximum:Math.min(Ve.Hc,Ve.maximum)),nh.height+=Es,Ja+=Ve.minimum;for(var Bl=1;Bl<_o.columnSpan&&!(_o.column+Bl>=a.columnCount);Bl++)Ve=a.Eb(_o.column+Bl),Es=0,Es=da===qe||da===_n?Math.max(Ve.minimum,yl[_o.column+Bl]===0?Ve.maximum:Math.min(yl[_o.column+Bl],Ve.maximum)):Math.max(Ve.minimum,isNaN(Ve.Hc)?Ve.maximum:Math.min(Ve.Hc,Ve.maximum)),nh.width+=Es,U0+=Ve.minimum;Hs.width+=nh.width,Hs.height+=nh.height;var ag=_o.margin,Md=ag.right+ag.left,Op=ag.top+ag.bottom;_o.measure(Hs.width,Hs.height,U0,Ja);for(var lg=_o.measuredBounds,wu=Math.max(lg.width+Md,0),ac=Math.max(lg.height+Op,0),Fd=0,ug=0;ug<_o.rowSpan&&!(_o.row+ug>=a.rowCount);ug++)Ve=a.Fb(_o.row+ug),Fd+=Ve.total||0;if(Fd<ac){var jh=ac-Fd,ju=ac-Fd;if(_o.spanAllocation!==null)for(var Hh=_o.spanAllocation,ih=0;ih<_o.rowSpan&&!(0>=jh)&&!(_o.row+ih>=a.rowCount);ih++){Ve=a.Fb(_o.row+ih);var Gh=Ve.oa||0,lc=Hh(_o,Ve,ju);Ve.actual=Math.min(Ve.maximum,Gh+lc),Ve.oa!==Gh&&(jh-=Ve.oa-Gh)}for(;0<jh;){var au=Ve.oa||0;if(isNaN(Ve.height)&&Ve.maximum>au&&(Ve.actual=Math.min(Ve.maximum,au+jh),Ve.oa!==au&&(jh-=Ve.oa-au)),Ve.index===0)break;Ve=a.Fb(Ve.index-1)}}for(var Jc=0,Wh=0;Wh<_o.columnSpan&&!(_o.column+Wh>=a.columnCount);Wh++)Ve=a.Eb(_o.column+Wh),Jc+=Ve.total||0;if(Jc<wu){var qc=wu-Jc,Wy=wu-Jc;if(_o.spanAllocation!==null)for(var rh=_o.spanAllocation,uc=0;uc<_o.columnSpan&&!(0>=qc)&&!(_o.column+uc>=a.columnCount);uc++){Ve=a.Eb(_o.column+uc);var Rp=Ve.oa||0,Vy=rh(_o,Ve,Wy);Ve.actual=Math.min(Ve.maximum,Rp+Vy),Ve.oa!==Rp&&(qc-=Ve.oa-Rp)}for(;0<qc;){var X0=Ve.oa||0;if(isNaN(Ve.width)&&Ve.maximum>X0&&(Ve.actual=Math.min(Ve.maximum,X0+qc),Ve.oa!==X0&&(qc-=Ve.oa-X0)),Ve.index===0)break;Ve=a.Eb(Ve.index-1)}}}}Bn(Kt),Yt.free(nh),Yt.free(Hs),su!==void 0&&Bn(su),yl!==void 0&&Bn(yl);var _c=0,$c=0,K0=a.desiredSize,gx=a.maxSize;da=ba(a,!0);var zp=$u=Ru=0,jp=0;z=a.columnCount;for(var Q0=0;Q0<z;Q0++)ln[Q0]!==void 0&&(Ve=a.Eb(Q0),isFinite(Ve.width)?(zp+=Ve.width,zp+=Ve.Wc()):km(Ve)===Jg?(zp+=Ve.oa,zp+=Ve.Wc()):Ve.oa!==0&&(Ru+=Ve.oa,Ru+=Ve.Wc()));isFinite(K0.width)?_c=Math.min(K0.width,gx.width):_c=da!==Ze&&isFinite(y)?y:Ru,_c=Math.max(_c,a.minSize.width),_c=Math.max(_c-zp,0);for(var qx=Ru===0?1:Math.max(_c/Ru,1),J0=0;J0<z;J0++)ln[J0]!==void 0&&(Ve=a.Eb(J0),isFinite(Ve.width)||km(Ve)===Jg||(Ve.actual=Ve.oa*qx),Ve.position=b.width,Ve.oa!==0&&(b.width+=Ve.oa,b.width+=Ve.Wc()));z=a.rowCount;for(var q0=0;q0<z;q0++)bn[q0]!==void 0&&(Ve=a.Fb(q0),isFinite(Ve.height)?(jp+=Ve.height,jp+=Ve.Wc()):km(Ve)===Jg?(jp+=Ve.oa,jp+=Ve.Wc()):Ve.oa!==0&&($u+=Ve.oa,$u+=Ve.Wc()));isFinite(K0.height)?$c=Math.min(K0.height,gx.height):$c=da!==Ze&&isFinite(x)?x:$u,$c=Math.max($c,a.minSize.height),$c=Math.max($c-jp,0);for(var _x=$u===0?1:Math.max($c/$u,1),_0=0;_0<z;_0++)bn[_0]!==void 0&&(Ve=a.Fb(_0),isFinite(Ve.height)||km(Ve)===Jg||(Ve.actual=Ve.oa*_x),Ve.position=b.height,Ve.oa!==0&&(b.height+=Ve.oa,b.height+=Ve.Wc()));z=rt.length;for(var Yy=0;Yy<z;Yy++){var Hp=rt[Yy],Zy=0,Uy=0;Hp.type===nn.TableRow?(Zy=b.width,Ve=a.Fb(Hp.row),Uy=Ve.actual):(Ve=a.Eb(Hp.column),Zy=Ve.actual,Uy=b.height),Hp.measuredBounds.h(0,0,Zy,Uy),fs(Hp,!1)}Bn(rt),a.inRowsCols=Mt},Sm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding,z=b.left;b=b.top;var tt=a.inRowsCols;if(tt!==null){for(var rt,ot,at=tt.length,ut=0,ft=0;ft<at;ft++)tt[ft]&&(ut=Math.max(ut,tt[ft].length));ot=a.rowDefs,rt=a.colDefs;var mt=ft=0,yt=Math.min(a.topIndex,at-1);if(0<ot.length){for(;yt!==at&&(ot[yt]===void 0||ot[yt].oa===0);)yt++;yt=Math.max(Math.min(yt,at-1),0),ft=-ot[yt].position}var wt=Math.min(a.leftIndex,ut-1);if(0<rt.length){for(;wt!==ut&&(rt[wt]===void 0||rt[wt].oa===0);)wt++;wt=Math.max(Math.min(wt,ut-1),0),mt=-rt[wt].position}for(var Mt=0,Ht=0;Mt!==at&&ot[Mt]===void 0;)Mt++;for(;Ht!==at&&rt[Ht]===void 0;)Ht++;ut=a.part,a.Fb(Mt),a.Eb(Ht);for(var It=0;It<y.length;It++){var Zt=y[It];if(Zt instanceof nn&&Zt.visible&&Ah(Zt)){if(Zt.type===nn.TableRow){rt=a.Fb(Zt.row);var Kt=a.Eb(Ht)}else rt=a.Fb(Mt),Kt=a.Eb(Zt.column);ot=rt.position+ft+b,rt.oa!==0&&(ot+=rt.Io(Math.max(Mt,yt))),rt=Kt.position+mt+z,Kt.oa!==0&&(rt+=Kt.Io(Math.max(Ht,wt))),Kt=Zt.measuredBounds,Zt.Uk(),Zt.actualBounds.ka();var Qt=Zt.actualBounds,ne=oe.allocAt(Qt.x,Qt.y,Qt.width,Qt.height);Qt.x=Zt.type===nn.TableRow?z:rt,Qt.y=Zt.type===nn.TableColumn?b:ot,Qt.width=Kt.width,Qt.height=Kt.height,Zt.actualBounds.freeze(),Eu(Zt,!1),In(ne,Qt)||ut===null||(ut.oh(),Zt.Pn(ut)),oe.free(ne)}}for(It=Yt.alloc(),Zt=0;Zt<at;Zt++)if(tt[Zt]){for(ut=tt[Zt].length,Kt=a.Fb(Zt),ot=Kt.position+ft+b,Kt.oa!==0&&(ot+=Kt.Io(Math.max(Mt,yt))),Qt=0;Qt<ut;Qt++)if(tt[Zt][Qt]){ne=a.Eb(Qt),rt=ne.position+mt+z,ne.oa!==0&&(rt+=ne.Io(Math.max(Ht,wt)));for(var Se=tt[Zt][Qt],mn=Se.length,zn=0;zn<mn;zn++){var bn=Se[zn],ln=bn.measuredBounds;It.h(0,0);for(var Ve=1;Ve<bn.rowSpan&&!(Zt+Ve>=a.rowCount);Ve++){var Oi=a.Fb(Zt+Ve);Oi.oa!==0&&(It.height+=Oi.total)}for(Ve=1;Ve<bn.columnSpan&&!(Qt+Ve>=a.columnCount);Ve++)Oi=a.Eb(Qt+Ve),Oi.oa!==0&&(It.width+=Oi.total);var ki=ne.oa+It.width,Br=Kt.oa+It.height;Ve=rt,Oi=ot;var ao=ki,Ls=Br,ks=rt,ua=ot,Es=ki,Th=Br;rt+ki>x.width&&(Es=Math.max(x.width-rt,0)),ot+Br>x.height&&(Th=Math.max(x.height-ot,0));var us=bn.alignment;if(us.Xb()){us=a.defaultAlignment,us.sb()||(us=Tn);var iu=us.x,ha=us.y,Ih=us.offsetX;us=us.offsetY;var rl=ne.alignment,kl=Kt.alignment;rl.sb()&&(iu=rl.x,Ih=rl.offsetX),kl.sb()&&(ha=kl.y,us=kl.offsetY)}else iu=us.x,ha=us.y,Ih=us.offsetX,us=us.offsetY;(isNaN(iu)||isNaN(ha))&&(ha=iu=.5,us=Ih=0),rl=ln.width,kl=ln.height;var Xa=bn.margin,za=Xa.left+Xa.right,wd=Xa.top+Xa.bottom,ru=_l(bn,Kt,ne,!1);!isNaN(bn.desiredSize.width)||ru!==qe&&ru!==_n||(rl=Math.max(ki-za,0)),!isNaN(bn.desiredSize.height)||ru!==qe&&ru!==Si||(kl=Math.max(Br-wd,0)),ki=bn.maxSize,Br=bn.minSize,rl=Math.min(ki.width,rl),kl=Math.min(ki.height,kl),rl=Math.max(Br.width,rl),kl=Math.max(Br.height,kl),ki=kl+wd,Ve+=ao*iu-(rl+za)*iu+Ih+Xa.left,Oi+=Ls*ha-ki*ha+us+Xa.top,bn.visible&&(ui(ks,ua,Es,Th,Ve,Oi,ln.width,ln.height)?bn.arrange(Ve,Oi,rl,kl):bn.arrange(Ve,Oi,rl,kl,new oe(ks,ua,Es,Th)))}}}for(Yt.free(It),a=0;a<E;a++)x=y[a],z=x instanceof nn?x:null,z!==null&&Ah(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function xm(){this.xa="Base"}we(xm,Ss),xm.prototype.measure=function(){},xm.prototype.arrange=function(){};function wm(){this.xa="Base"}we(wm,Ss),wm.prototype.measure=function(){},wm.prototype.arrange=function(){};function Pm(){this.xa="Base"}we(Pm,Ss),Pm.prototype.measure=function(a,y,x,E,b,z,tt){1<E.length&&Xt("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,tt);var rt=E.measuredBounds,ot=E.margin,at=ot.right+ot.left;if(ot=ot.top+ot.bottom,isFinite(y)||isFinite(x)){var ut=E.scale,ft=rt.width;rt=rt.height;var mt=Math.max(y-at,0),yt=Math.max(x-ot,0),wt=1;a.viewboxStretch===Un?ft!==0&&rt!==0&&(wt=Math.min(mt/ft,yt/rt)):ft!==0&&rt!==0&&(wt=Math.max(mt/ft,yt/rt)),wt===0&&(wt=1e-4),E.Ca*=wt,ut!==E.scale&&(fs(E,!0),E.measure(1/0,1/0,z,tt))}rt=E.measuredBounds,b.width=isFinite(y)?y:Math.max(rt.width+at,0),b.height=isFinite(x)?x:Math.max(rt.height+ot,0)},Pm.prototype.arrange=function(a,y,x){y=y[0];var E=y.measuredBounds,b=y.margin,z=Math.max(E.width+(b.right+b.left),0);b=Math.max(E.height+(b.top+b.bottom),0);var tt=y.alignment;tt.Xb()&&(tt=a.defaultAlignment),tt.sb()||(tt=Tn),y.arrange(x.width*tt.x-z*tt.x+tt.offsetX,x.height*tt.y-b*tt.y+tt.offsetY,E.width,E.height)};function Xg(){this.xa="Base"}we(Xg,Ss),Xg.prototype.measure=function(){},Xg.prototype.arrange=function(){},Xg.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,rt=z.width,ot=z.height,at=Math.ceil(rt/b),ut=Math.ceil(ot/E),ft=a.gridOrigin,mt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,rt,ot),y.clip(),y.Se();for(var yt=[],wt=a.O.s,Mt=wt.length,Ht=0;Ht<Mt;Ht++){var It=wt[Ht],Zt=[];if(yt.push(Zt),It.visible){var Kt=It.interval;if(!(0>Kt)){It=pv(It.figure);for(var Qt=0;Qt<Mt;Qt++)if(Qt!==Ht){var ne=wt[Qt];ne.visible&&pv(ne.figure)===It&&(ne=ne.interval,ne>Kt&&Zt.push(ne))}}}}for(wt=a.O.s,Mt=wt.length,Ht=0;Ht<Mt;Ht++){var Se=wt[Ht];if(Se.visible&&(Zt=Se.interval||1,It=Math.abs(Zt),!(2>b*It*x))){if(Kt=Se.segmentIndex,(!isFinite(Kt)||isNaN(Kt))&&(Kt=0),0>Kt&&(Kt=It-Math.min(-Kt,It)),Kt=Math.round(Kt%It),It=Se.opacity,Qt=1,It!==1){if(It===0)continue;Qt=y.globalAlpha,y.globalAlpha=Qt*It}ne=yt[Ht];var mn=!1,zn=Se.strokeDashArray;if(zn!==null&&(mn=!0,y.js(zn,Se.strokeDashOffset)),Se.figure==="LineV"&&Se.stroke!==null&&0<Se.strokeWidth){for(y.lineWidth=Se.strokeWidth,Jo(a,y,Se.stroke,!1,!1,z,tt),y.beginPath(),zn=Se=Math.floor((mt-b)/b);zn<=Se+at;zn++){var bn=zn*b+mt;0<=bn&&bn<=rt&&Cm(zn,Zt,Kt,ne)&&(y.moveTo(bn,0),y.lineTo(bn,ot))}y.stroke(),y.Se()}else if(Se.figure==="LineH"&&Se.stroke!==null&&0<Se.strokeWidth){for(y.lineWidth=Se.strokeWidth,Jo(a,y,Se.stroke,!1,!1,z,tt),y.beginPath(),zn=Se=Math.floor((ft-E)/E);zn<=Se+ut;zn++)bn=zn*E+ft,0<=bn&&bn<=ot&&Cm(zn,Zt,Kt,ne)&&(y.moveTo(0,bn),y.lineTo(rt,bn));y.stroke(),y.Se()}else if(Se.figure==="BarV"&&Se.fill!==null)for(Jo(a,y,Se.fill,!0,!1,z,tt),Se=Se.width,isNaN(Se)&&(Se=b),bn=zn=Math.floor((mt-b)/b);bn<=zn+at;bn++){var ln=bn*b+mt;0<=ln+Se&&ln<=rt&&Cm(bn,Zt,Kt,ne)&&y.fillRect(ln,0,Se,ot)}else if(Se.figure==="BarH"&&Se.fill!==null)for(Jo(a,y,Se.fill,!0,!1,z,tt),Se=Se.height,isNaN(Se)&&(Se=E),bn=zn=Math.floor((ft-E)/E);bn<=zn+ut;bn++)ln=bn*E+ft,0<=ln+Se&&ln<=ot&&Cm(bn,Zt,Kt,ne)&&y.fillRect(0,ln,rt,Se);mn&&y.fs(),It!==1&&(y.globalAlpha=Qt)}}y.restore(),y.Vc(!1)};function Cm(a,y,x,E){if(0>y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;b<y;b++)if(a%E[b]===x)return!1;return!0}function Am(){this.xa="Base"}we(Am,Ss),Am.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof Ar||a instanceof un){var tt=null,rt=null;if(a instanceof un&&(tt=a),a instanceof Ar&&(rt=a,tt=rt.adornedPart,a.j===null&&(a.j=[])),tt instanceof un){var ot=tt;if(z===0)Hn(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var at=a instanceof Ar?null:tt.path;y=tt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ut=ot.points,ft=tt.pointsCount;rt!==null?rt.Ul(!1):tt!==null&&tt.Ul(!1),rt=y.width;var mt=y.height,yt=a.j;if(yt.length=0,at!==null){i1(a,rt,mt,at);var wt=at.measuredBounds;x.ed(wt),yt.push(wt)}wt=En.alloc();for(var Mt=Wt.alloc(),Ht=Wt.alloc(),It=0;It<z;It++){var Zt=E[It];if(Zt!==at)if(Zt.isPanelMain&&Zt instanceof Wi){i1(a,rt,mt,Zt);var Kt=Zt.measuredBounds;x.ed(Kt),yt.push(Kt)}else if(2>ft)Zt.measure(1/0,1/0,0,0),Kt=Zt.measuredBounds,x.ed(Kt),yt.push(Kt);else{var Qt=Zt.segmentIndex,ne=Zt.segmentFraction,Se=Zt.alignmentFocus;Se.Mc()&&(Se=Tn);var mn=Zt.segmentOrientation,zn=Zt.segmentOffset;if(isNaN(Qt)){var bn=ot.ua;Kt=On(),bn.Qu(ne,Kt);var ln=Wt.allocAt(Kt[0],Kt[1]);if(ln.add(ot.i(0)),bn.type===Qe.j?ln.offset(-bn.startX,-bn.startY):(bn=bn.figures.first(),bn!==null&&ln.offset(-bn.startX,-bn.startY)),bn=Kt[2],mn!==wa){var Ve=ot.computeAngle(Zt,mn,bn);Zt.Kb=Ve}Ve=ln.x-y.x;var Oi=ln.y-y.y;Wt.free(ln),Bn(Kt)}else if(Qt<-ft||Qt>=ft)Kt=Wt.alloc(),ot.vg(),ot.computeMidPoint(Kt),bn=ot.midAngle,mn!==wa&&(Ve=ot.computeAngle(Zt,mn,bn),Zt.Kb=Ve),Ve=Kt.x-y.x,Oi=Kt.y-y.y,Wt.free(Kt);else{if(Ve=0,0<=Qt?(Oi=ut.M(Qt),Kt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||isNaN(Qt)&&.5>ne||!Br||(Ht.y=-ao):ua&&((0<=Qt||isNaN(Qt)&&.5>ne)&&Br&&(Ht.y=-ao),Ls&&(Ht.x=-ki))):(Br&&(Ht.x=0<=Qt||isNaN(Qt)&&.5>ne?ki:-ki),Ls&&(Ht.y=-ao),Ht.rotate(bn))}else Ht.rotate(bn);Ve+=Ht.x,Oi+=Ht.y,ln.set(Kt),ln.h(Ve+Se,Oi+Zt,Kt.width,Kt.height),yt.push(ln),x.ed(ln)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Hn(b,x.width||0,x.height||0),En.free(wt),Wt.free(Mt),Wt.free(Ht)}}}},Am.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ar||a instanceof un){var E=a,b=null;a instanceof Ar&&(b=a,E=b.adornedPart);var z=a instanceof Ar?null:E.path,tt=a.j;if(tt.length!==0){var rt=0;if(z!==null&&rt<tt.length){var ot=tt[rt];rt++,z.arrange(ot.x-a.jg.x,ot.y-a.jg.y,ot.width,ot.height)}for(ot=0;ot<x;ot++){var at=y[ot];if(at!==z&&rt<tt.length){var ut=tt[rt];rt++,at.arrange(ut.x-a.jg.x,ut.y-a.jg.y,ut.width,ut.height)}}}if(y=E.points,x=y.count,2<=x&&a instanceof un)for(z=a.labelNodes;z.next();){var ft=a;tt=z.value,rt=tt.segmentIndex,ot=tt.segmentFraction;var mt=tt.alignmentFocus;if(at=tt.segmentOrientation,ut=tt.segmentOffset,isNaN(rt)){var yt=ft.ua,wt=On();yt.Qu(ot,wt);var Mt=Wt.allocAt(wt[0],wt[1]);Mt.add(ft.i(0)),yt.type===Qe.j||(yt=yt.figures.first()),Mt.offset(-yt.startX,-yt.startY),yt=wt[2],at!==wa&&(ft=ft.computeAngle(tt,at,yt),tt.angle=ft),ft=Mt.x;var Ht=Mt.y;Wt.free(Mt),Bn(wt)}else if(rt<-x||rt>=x)wt=Wt.alloc(),yt=ft,Ht=wt,yt.vg(),yt.computeMidPoint(Ht),yt=ft.midAngle,at!==wa&&(ft=ft.computeAngle(tt,at,yt),tt.angle=ft),ft=wt.x,Ht=wt.y,Wt.free(wt);else{if(Mt=0,0<=rt?(wt=y.s[rt],Ht=rt<x-1?y.s[rt+1]:wt):(Mt=x+rt,wt=y.s[Mt],Ht=0<Mt?y.s[Mt-1]:wt),wt.Xa(Ht)){0<=rt?(yt=0<rt?y.s[rt-1]:wt,Mt=rt<x-2?y.s[rt+2]:Ht):(yt=Mt<x-1?y.s[Mt+1]:wt,Mt=1<Mt?y.s[Mt-2]:Ht);var It=yt.Bf(wt),Zt=Ht.Bf(Mt);yt=It>Zt+10?0<=rt?yt.ab(wt):wt.ab(yt):Zt>It+10?0<=rt?Ht.ab(Mt):Mt.ab(Ht):0<=rt?yt.ab(Mt):Mt.ab(yt)}else yt=0<=rt?wt.ab(Ht):Ht.ab(wt);at!==wa&&(ft=ft.computeAngle(tt,at,yt),tt.angle=ft),ft=wt.x+(Ht.x-wt.x)*ot,Ht=wt.y+(Ht.y-wt.y)*ot}if(mt.ys())tt.location=new Wt(ft,Ht);else{mt.Mc()&&(mt=Tn),wt=En.alloc(),wt.reset(),wt.scale(tt.scale,tt.scale),wt.rotate(tt.angle,0,0);var Kt=tt.naturalBounds;Mt=oe.allocAt(0,0,Kt.width,Kt.height),It=Wt.alloc(),It.xi(Mt,mt),wt.Ga(It),mt=-It.x,Zt=-It.y;var Qt=Kt.width,ne=Kt.height;Kt=Wt.alloc(),Kt.assign(ut);var Se=isNaN(ut.x),mn=isNaN(ut.y);if(Se||mn){Qt=Qt/2+3,ne=ne/2+3;var zn=45<=yt&&135>=yt,bn=225<=yt&&315>=yt;at===wa&&(zn||bn)?(Kt.x=mn?Qt:ut.y,Kt.y=Se?ne:ut.x,zn?0<=rt||isNaN(rt)&&.5>ot||!Se||(Kt.y=-ne):bn&&((0<=rt||isNaN(rt)&&.5>ot)&&Se&&(Kt.y=-ne),mn&&(Kt.x=-Qt))):(Se&&(Kt.x=0<=rt||isNaN(rt)&&.5>ot?Qt:-Qt),mn&&(Kt.y=-ne),Kt.rotate(yt))}else Kt.rotate(yt);ft+=Kt.x,Ht+=Kt.y,wt.pp(Mt),mt+=Mt.x,Zt+=Mt.y,rt=Wt.allocAt(ft+mt,Ht+Zt),tt.move(rt),Wt.free(rt),Wt.free(Kt),Wt.free(It),oe.free(Mt),En.free(wt)}}b!==null?b.Ul(!1):E.Ul(!1),E=D1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Wt.free(E)}};function i1(a,y,x,E){if(tl(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Ar&&a.type===nn.Link&&a.adornedObject instanceof Wi&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof un&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof Ar&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),fs(E,!1)}}function Kg(){this.xa="Base"}we(Kg,Ss),Kg.prototype.measure=function(a,y,x,E,b,z,tt){var rt=a.Pb();a.graduatedBounds=[];var ot=rt.margin,at=ot.right+ot.left,ut=ot.top+ot.bottom;rt.measure(y,x,z,tt);var ft=rt.measuredBounds,mt=new oe(-ot.left,-ot.top,Math.max(ft.width+at,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(mt),b.assign(mt);for(var yt=rt.geometry,wt=rt.strokeWidth,Mt=yt.flattenedSegments,Ht=yt.flattenedLengths,It=yt.flattenedTotalLength,Zt=Mt.length,Kt=0,Qt=0,ne=On(),Se=0;Se<Zt;Se++){var mn=Mt[Se],zn=[];Qt=Kt=0;for(var bn=mn.length,ln=0;ln<bn;ln+=2){var Ve=mn[ln],Oi=mn[ln+1];if(ln!==0){var ki=180*Math.atan2(Oi-Qt,Ve-Kt)/Math.PI;0>ki&&(ki+=360),zn.push(ki)}Kt=Ve,Qt=Oi}ne.push(zn)}if(a.graduatedIntervals===null){for(var Br=[],ao=a.O.s,Ls=ao.length,ks=0;ks<Ls;ks++){var ua=ao[ks],Es=[];if(Br.push(Es),ua.visible){var Th=ua.interval;if(!(0>Th)){for(var us=0;us<Ls;us++)if(us!==ks){var iu=ao[us];if(iu.visible&&ua.constructor===iu.constructor){var ha=iu.interval;ha>Th&&Es.push(ha)}}}}}a.graduatedIntervals=Br}var Ih=a.graduatedIntervals,rl=a.O.s,kl=rl.length,Xa=0,za=0,wd=It;a.graduatedMarks=[];for(var ru,tg=0;tg<kl;tg++){var Ka=rl[tg];if(ru=[],Ka.visible&&Ka!==rt){var da=Math.abs(Ka.interval),Np=a.graduatedTickUnit;if(!(2>Np*da*It/a.graduatedRange&&Ka.graduatedSkip===null)){var Uc=Ht[0][0],yu=0,ja=0;za=It*Ka.graduatedStart-1e-4,wd=It*Ka.graduatedEnd+1e-4;var ic=Np*da,Qa=a.graduatedTickBase;if(Qa<a.graduatedMin){var Pd=(a.graduatedMin-Qa)/ic;Pd=Pd%1===0?Pd:Math.floor(Pd+1),Qa+=Pd*ic}else Qa>a.graduatedMin+ic&&(Qa-=Math.floor((Qa-a.graduatedMin)/ic)*ic);for(var W0=Ih[tg],Tp=Qa,Hy=1e-6*a.graduatedMax,Ru=1;Qa<=a.graduatedMax+Hy;Ru++){t:{for(var $u=W0.length,Xc=0;Xc<$u;Xc++){var Cd=(Qa-a.graduatedTickBase)%(W0[Xc]*a.graduatedTickUnit),eg=1e-6*a.graduatedTickUnit;if(Cd<eg&&Cd>-eg){var Ad=!1;break t}}Ad=!0}if(Ad&&(Qa>a.graduatedMax&&(Qa=a.graduatedMax),Ka.graduatedSkip===null||Ka instanceof ho&&!Ka.graduatedSkip(Qa,Ka)||Ka instanceof Wi&&!Ka.graduatedSkip(Qa,Ka))&&(Xa=(Qa-a.graduatedMin)*It/a.graduatedRange,Xa>It&&(Xa=It),za<=Xa&&Xa<=wd)){for(var zu=ne[yu][ja],Oh=Ht[yu][ja];yu<Ht.length;){for(;Xa>Uc&&ja<Ht[yu].length-1;)ja++,zu=ne[yu][ja],Oh=Ht[yu][ja],Uc+=Oh;if(Xa<=Uc)break;yu++,ja=0,zu=ne[yu][ja],Oh=Ht[yu][ja],Uc+=Oh}var Ha=Mt[yu],Su=Ha[2*ja],V0=Ha[2*ja+1],th=(Xa-(Uc-Oh))/Oh,ng=new Wt(Su+(Ha[2*ja+2]-Su)*th+wt/2-yt.bounds.x,V0+(Ha[2*ja+3]-V0)*th+wt/2-yt.bounds.y);ng.scale(rt.scale,rt.scale);t:{var ou=zu,rc=ne[yu];if(!(.5005>th&&.4995<th)){var xu=ou;if(.5>th?0<ja?xu=rc[ja-1]:$t.$(Ha[0],Ha[Ha.length-2])&&$t.$(Ha[1],Ha[Ha.length-1])&&(xu=rc[rc.length-1]):.5<th&&(ja+1<rc.length?xu=rc[ja+1]:$t.$(Ha[0],Ha[Ha.length-2])&&$t.$(Ha[1],Ha[Ha.length-1])&&(xu=rc[0])),ou!==xu){var Kc=Math.abs(ou-xu);if(180<Kc&&(ou<xu?ou+=360:xu+=360,Kc=Math.abs(ou-xu)),5e-4>th||.9995<th){zu=(ou+xu)/2%360;break t}if(10>Kc){var ig=1-Math.abs(.5-th);zu=(ou*ig+xu*(1-ig))%360;break t}}}zu=ou}if(Ka instanceof ho){var Zl="";Ka.graduatedFunction!==null?(Zl=Ka.graduatedFunction(Qa,Ka),Zl=Zl!=null?Zl.toString():""):Zl=(+Qa.toFixed(2)).toString(),Zl!==""&&ru.push({$l:ng,angle:zu,text:Zl})}else ru.push({$l:ng,angle:zu})}Qa=Tp+Ru*ic}}}a.graduatedMarks.push(ru)}Bn(ne);var Hs=a.graduatedMarks;if(Hs!==null)for(var Ip=E.length,Ea=0;Ea<Ip;Ea++){var hs=E[Ea],Ma=Hs[Ea];if(hs.visible&&hs!==rt&&Ma.length!==0){if(hs instanceof Wi){var eh=a,Rh=b,oc=hs.alignmentFocus;oc.Mc()&&(oc=Ci);var Gy=hs.angle;hs.Kb=0,hs.measure(1/0,1/0,0,0),hs.Kb=Gy;var Y0=hs.measuredBounds,rg=Y0.width,sc=Y0.height,Qc=oe.allocAt(0,0,rg,sc),Ga=Wt.alloc();Ga.xi(Qc,oc),oe.free(Qc);for(var nh=-Ga.x,su=-Ga.y,yl=new oe,Ld=Ma.length,og=0;og<Ld;og++)for(var Ed=Ma[og],Z0=Ed.$l.x,sg=Ed.$l.y,_o=Ed.angle,Ul=0;4>Ul;Ul++){switch(Ul){case 0:Ga.h(nh,su);break;case 1:Ga.h(nh+rg,su);break;case 2:Ga.h(nh,su+sc);break;case 3:Ga.h(nh+rg,su+sc)}Ga.rotate(_o+hs.angle),Ga.offset(Z0,sg),og===0&&Ul===0?yl.h(Ga.x,Ga.y,0,0):yl.Ye(Ga),Ga.offset(-Z0,-sg),Ga.rotate(-_o-hs.angle)}Wt.free(Ga),eh.graduatedBounds!==null&&eh.graduatedBounds.push(yl),ai(Rh,yl.x,yl.y,yl.width,yl.height)}else if(hs instanceof ho){var bl=a,U0=b;bl.temporaryTextBlock===null&&(bl.temporaryTextBlock=new ho);var Ja=bl.temporaryTextBlock;y1(Ja,hs);var zh=hs.alignmentFocus;zh.Mc()&&(zh=Ci);for(var Bl=hs.segmentOrientation,ag=hs.segmentOffset,Md=new oe,Op=0,lg=0,wu=0,ac=0,Fd=0,ug=Ma.length,jh=0;jh<ug;jh++){var ju=Ma[jh];Op=ju.$l.x,lg=ju.$l.y,wu=ju.angle,Fd=ac=hs.angle,Bl!==wa&&(Fd=Bl===op||Bl===$m?wu+hs.angle:wu,ac=un.computeAngle(Bl,Fd)),Ja.Kb=ac,Ja.text=ju.text||"",Ja.measure(1/0,1/0,0,0);var Hh=Ja.measuredBounds,ih=Ja.naturalBounds,Gh=ih.width,lc=ih.height,au=En.alloc();au.reset(),au.translate(-Hh.x,-Hh.y),au.scale(Ja.scale,Ja.scale),au.rotate(Fd,Gh/2,lc/2),Bl!==sp&&Bl!==lp||au.rotate(90,Gh/2,lc/2),Bl!==ap&&Bl!==up||au.rotate(-90,Gh/2,lc/2),Bl===t0&&(45<wu&&135>wu||225<wu&&315>wu)&&au.rotate(-wu,Gh/2,lc/2);var Jc=oe.allocAt(0,0,Gh,lc),Wh=Wt.alloc();Wh.xi(Jc,zh),au.Ga(Wh);var qc=-Wh.x,Wy=-Wh.y,rh=Wt.alloc();rh.assign(ag),isNaN(rh.x)&&(rh.x=Gh/2+3),isNaN(rh.y)&&(rh.y=-(lc/2+3)),rh.rotate(wu),Op+=rh.x+qc,lg+=rh.y+Wy;var uc=new oe(Op,lg,Hh.width,Hh.height),Rp=new oe(Hh.x,Hh.y,Hh.width,Hh.height),Vy=new oe(ih.x,ih.y,ih.width,ih.height);ju.Sz=ac,ju.lineCount=Ja.lineCount,ju.lines=[Ja.Cb,Ja.Ih,Ja.df,Ja.Le,Ja.Qc,Ja.Qb,Ja.ze],ju.actualBounds=uc,ju.measuredBounds=Rp,ju.naturalBounds=Vy,jh===0?Md.assign(uc):Md.ed(uc),Wt.free(rh),Wt.free(Wh),oe.free(Jc),En.free(au)}bl.graduatedBounds!==null&&bl.graduatedBounds.push(Md),ai(U0,Md.x,Md.y,Md.width,Md.height)}fs(hs,!1)}}},Kg.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,E!==null&&E.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var ot=y.length,at=0;at<ot;at++){var ut=y[at];rt=b[at],ut.visible&&ut!==E&&rt.length!==0&&(rt=z[tt],tt++,ut.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height))}a.graduatedBounds=null}}},Kg.prototype.gc=function(a,y,x){var E=x.$i;x.$i=!0;var b=a.naturalBounds,z=b.width,tt=b.height;b=y instanceof Ya,y.save(),y.beginPath(),y.rect(-1,-1,z+1,tt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),tt=a.Df()*x.scale,0>=tt&&(tt=1);for(var rt=z.actualBounds,ot=a.O.s,at=a.graduatedMarks,ut=ot.length,ft=0;ft<ut;ft++){var mt=ot[ft],yt=at[ft],wt=yt.length;if(mt.visible&&mt!==z&&yt.length!==0){if(mt instanceof Wi){if(!(2>a.graduatedTickUnit*mt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&mt.graduatedSkip===null)){var Mt=mt.measuredBounds,Ht=mt.strokeWidth*mt.scale,It=mt.alignmentFocus;It.Mc()&&(It=Ci);for(var Zt=0;Zt<wt;Zt++){var Kt=yt[Zt].$l,Qt=yt[Zt].angle,ne=It,Se=mt.Ab;Se.reset(),Se.translate(Kt.x+rt.x,Kt.y+rt.y),Se.rotate(Qt+mt.angle,0,0),Se.translate(-Mt.width*ne.x+ne.offsetX+Ht/2,-Mt.height*ne.y+ne.offsetY+Ht/2),Se.scale(mt.scale,mt.scale),Al(mt,!1),mt.wh.set(mt.Ab),mt.Kk=mt.scale,dl(mt,!1),mt.gc(y,x),b&&(a.svg.appendChild(mt.svg),mt.svg=null),mt.Ab.reset()}}}else if(mt instanceof ho)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new ho),Mt=a.temporaryTextBlock,y1(Mt,mt),Ht=0;Ht<wt;Ht++)It=yt[Ht],It.actualBounds&&It.measuredBounds&&It.naturalBounds&&(Mt.ec=It.text||"",Mt.Kb=It.Sz||0,Mt.Gc=It.lineCount||0,Zt=It.lines,Zt!==void 0&&(Mt.Cb=Zt[0],Mt.Ih=Zt[1],Mt.df=Zt[2],Mt.Le=Zt[3],Mt.Qc=Zt[4],Mt.Qb=Zt[5],Mt.ze=Zt[6]),It.naturalBounds&&(Mt.dc=It.naturalBounds),It.actualBounds&&(Zt=It.actualBounds,Mt.arrange(Zt.x,Zt.y,Zt.width,Zt.height)),Zt=It.actualBounds,Mt.arrange(Zt.x,Zt.y,Zt.width,Zt.height),Kt=It.measuredBounds,It=It.naturalBounds,Qt=Mt.Ab,Qt.reset(),Qt.translate(Zt.x+rt.x,Zt.y+rt.y),Qt.translate(-Kt.x,-Kt.y),Mt.no(Qt,It.x,It.y,It.width,It.height),Al(Mt,!1),Mt.wh.set(Mt.Ab),Mt.Kk=Mt.scale,dl(Mt,!1),Mt.Ng=mt.part,Mt.Me=mt.panel,Mt.gc(y,x),Mt.Me=null,Mt.Ng=null,b&&(a.svg.appendChild(Mt.svg),Mt.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function nn(a,y){if(ie.call(this),this.na=null,a===void 0)this.na=nn.Position;else if(typeof a=="string"){var x=jl.I(a);x!==null&&(this.na=x)}else a instanceof Ss?this.na=a:a&&(this.na=nn.Position,y=a);this.na===null&&Xt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===nn.Grid?1048576:0),this.O=new rn,this.yb=tr,this.Tm=$r,this.Uf=zi,this.$g=null,this.$e="",this.jg=new oe(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Un,this.jn=Je,this.kn=Co,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}we(nn,ie),nn.prototype.cloneProtected=function(a){ie.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},nn.prototype.Af=function(a){ie.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,E=0;E<x;E++)y[E].Me=a;a.$g=null},nn.prototype.copy=function(){var a=ie.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].copy();b.wi(a),b.Ng=null;var z=a.O,tt=z.count;if(z.Gb(tt,b),z=a.part,z!==null){z.Rh=null,b.portId!==null&&z instanceof yn&&(z.Te=!0);var rt=a.diagram;rt!==null&&rt.undoManager.isUndoingRedoing||z.cb(Io,"elements",a,null,b,null,tt)}}return a}return null},Lt=nn.prototype,Lt.toString=function(){return"Panel("+this.type.name+")#"+no(this)},Lt.Pn=function(a){ie.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},Lt.hh=function(a,y){if(this.na===nn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===nn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===nn.Table)if(a.yc(),a instanceof Ya){var x=a.yd;a.yd=dm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===nn.Spot)&&a.save();for(var E=this.Pb(),b=this.O.s,z=b.length,tt=0;tt<z;tt++){var rt=b[tt];x&&rt===E&&(a.clipInsteadOfFill=!0),rt.gc(a,y),x&&rt===E&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function gv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;x!==null&&Lm(a,y,!0,x,!0),E!==null&&Lm(a,y,!1,E,!0),x!==null&&r1(a,y,!0,x),E!==null&&r1(a,y,!1,E),x!==null&&Lm(a,y,!0,x,!1),E!==null&&Lm(a,y,!1,E,!1)}function r1(a,y,x,E){for(var b=E.length,z=a.actualBounds,tt=a.naturalBounds,rt=!0,ot=0;ot<b;ot++){var at=E[ot];if(at!==void 0&&at.actual!==0)if(rt)rt=!1;else{if(x){if(at.position>tt.height)continue}else if(at.position>tt.width)continue;var ut=at.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=at.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ft!==null){Jo(a,y,ft,!1,!1,tt,z),ft=!1;var mt=at.separatorDashArray;mt===null&&(mt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),mt!==null&&(ft=!0,y.js(mt,0)),y.beginPath(),mt=at.position+ut,x?mt>tt.height&&(ut-=mt-tt.height):mt>tt.width&&(ut-=mt-tt.width),at=at.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(at+=ut.top,mt=tt.width-ut.right,y.moveTo(ut.left,at),y.lineTo(mt,at)):(at+=ut.left,mt=tt.height-ut.bottom,y.moveTo(at,ut.top),y.lineTo(at,mt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function Lm(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,rt=a.naturalBounds,ot=o1(a,!0),at=o1(a,!1),ut=0;ut<z;ut++){var ft=E[ut];if(ft!==void 0&&ft.background!==null&&ft.coversSeparators!==b&&ft.actual!==0){var mt=x?tt.height:tt.width;if(!(ft.position>mt)){var yt=ft.Wc(),wt=ft.separatorStrokeWidth;isNaN(wt)&&(wt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Mt=ft.separatorStroke;Mt===null&&(Mt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Mt===null||ft.index===(x?ot:at))&&(wt=0),yt-=wt,wt=ft.position+wt,yt+=ft.actual,wt+yt>mt&&(yt=mt-wt),0>=yt||(mt=a.yb,Jo(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(mt.left,wt+mt.top,tt.width-(mt.left+mt.right),yt):y.fillRect(wt+mt.left,mt.top,yt,tt.height-(mt.top+mt.bottom)))}}}}function o1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;E<x;E++){var b=y?a.rowDefs[E]:a.colDefs[E];if(b!==void 0)return b.index}return 0}function pv(a){return a==="LineV"||a==="BarV"}Lt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Lt.kk=function(a,y,x){if(!ie.prototype.kk.call(this,a,y,x))return!1;if(this.type===nn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gv(this,a),a.yd=null;else if(this.na===nn.Grid||this.na===nn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var E=x.length,b=0;b<E;b++)x[b].gc(a,y);return!0},Lt.nk=function(){return!0},Lt.$o=function(a,y,x,E){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var b=0,z=0,tt=0;tt<y.length;tt++)if(y[tt].Ed()){var rt=y[tt].actualBounds;b=tt===0?rt.x:Math.min(rt.x,b),z=tt===0?rt.y:Math.min(rt.y,z)}E.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-b)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else ie.prototype.$o.call(this,a,y,x,E)},Lt.Sj=function(a,y,x,E,b){var z=this.se(),tt=this.transform,rt=1/(tt.m11*tt.m22-tt.m12*tt.m21),ot=tt.m22*rt,at=-tt.m12*rt,ut=-tt.m21*rt,ft=tt.m11*rt,mt=rt*(tt.m21*tt.dy-tt.m22*tt.dx),yt=rt*(tt.m12*tt.dx-tt.m11*tt.dy);if(this.areaBackground!==null)return tt=this.actualBounds,$t.Ff(tt.left,tt.top,tt.right,tt.bottom,a,y,x,E,b);if(this.background!==null)return z=a*ot+y*ut+mt,rt=a*at+y*ft+yt,a=x*ot+E*ut+mt,ot=x*at+E*ft+yt,b.h(0,0),x=this.naturalBounds,z=$t.Ff(0,0,x.width,x.height,z,rt,a,ot,b),b.transform(tt),z;z||(ot=1,ut=at=0,ft=1,yt=mt=0),rt=a*ot+y*ut+mt,a=a*at+y*ft+yt,ot=x*ot+E*ut+mt,x=x*at+E*ft+yt,b.h(ot,x),E=(ot-rt)*(ot-rt)+(x-a)*(x-a),at=!1,ft=this.O.s,yt=ft.length,ut=Wt.alloc(),mt=null,y=1/0;var wt=null,Mt=this.isClipping&&this.na===nn.Spot;Mt&&(wt=Wt.alloc(),mt=this.Pb(),(at=mt.Sj(rt,a,ot,x,wt))&&(y=(rt-wt.x)*(rt-wt.x)+(a-wt.y)*(a-wt.y)));for(var Ht=0;Ht<yt;Ht++){var It=ft[Ht];It.visible&&It!==mt&&It.Sj(rt,a,ot,x,ut)&&(at=!0,It=(rt-ut.x)*(rt-ut.x)+(a-ut.y)*(a-ut.y),It<E&&(E=It,b.set(ut)))}return Mt&&(y>E&&b.set(wt),Wt.free(wt)),Wt.free(ut),z&&b.transform(tt),at},Lt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();ie.prototype.Gj.call(this)},Lt.v=function(a){if(!tl(this)){ie.prototype.v.call(this,a),a=null,(this.na===nn.Auto||this.na===nn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if((b===a||b.isPanelMain)&&b.v(!0),!b.desiredSize.w()){var z=ba(b,!1);(b instanceof xa||b instanceof nn||b instanceof ho||z!==Ze)&&b.v(!0)}}}},Lt.Uj=function(){if(!tl(this)){fs(this,!0),Eu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Lt.Uk=function(){if(!(this.l&2048)){Al(this,!0),dl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Lt.Wu=function(){dl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Lt.Wl=function(a,y,x,E){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,tt=this.minSize;x===void 0&&(x=tt.width,E=tt.height),x=Math.max(x,tt.width),E=Math.max(E,tt.height);var rt=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,rt.width)),isNaN(z.height)||(y=Math.min(z.height,rt.height)),a=Math.max(x,a),y=Math.max(E,y);var ot=this.yb;a=Math.max(a-ot.left-ot.right,0),y=Math.max(y-ot.top-ot.bottom,0);var at=this.O.s;at.length!==0&&this.na.measure(this,a,y,at,b,x,E),a=b.width+ot.left+ot.right,ot=b.height+ot.top+ot.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(ot=z.height),a=Math.min(rt.width,a),ot=Math.min(rt.height,ot),a=Math.max(tt.width,a),ot=Math.max(tt.height,ot),a=Math.max(x,a),ot=Math.max(E,ot),Hn(b,a,ot),Hn(this.naturalBounds,a,ot),this.Ge(0,0,a,ot)},Lt.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var E=a[x];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function Ju(a){return a.part!==null?a.part.locationObject:null}Lt.eh=function(a,y,x,E){var b=this.O.s;if(this.actualBounds.h(a,y,x,E),b.length!==0){if(!this.desiredSize.w()){a=ba(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var tt=this.Kg,rt=tt.left+tt.right;switch(tt=tt.top+tt.bottom,y===x&&z===E&&(a=Ze),a){case Ze:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case qe:this.v(!0),this.measure(x+rt,E+tt,0,0);break;case _n:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case Si:this.v(!0),this.measure(y+rt,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Lt.gh=function(a){var y=this.naturalBounds,x=Ju(this);if(ui(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Wt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Bi(b.set(a),z.transform),z.ca(b)))return Wt.free(b),!0}return Wt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Lt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].ks(a);if(b!==null)return b}return null},Lt.qm=function(a,y){if(y(this,a),a instanceof nn){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Qd(a,y){s1(a,a,y)}function s1(a,y,x){x(y),y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=y[b];z instanceof nn&&s1(a,z,x)}}function vx(a,y){a1(a,a,y)}function a1(a,y,x){if(x(y),y instanceof nn){y=y.O.s;for(var E=y.length,b=0;b<E;b++)a1(a,y[b],x)}}Lt.Nl=function(a){return l1(this,this,a)};function l1(a,y,x){if(x(y))return y;if(y instanceof nn){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=l1(a,y[b],x);if(z!==null)return z}}return null}Lt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Qg(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof nn){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function u1(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof nn?x=Math.max(x,u1(b)):b instanceof Wi&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}Lt.se=function(){return!(this.type===nn.TableRow||this.type===nn.TableColumn)};function Ah(a){return a.type===nn.TableRow||a.type===nn.TableColumn}Lt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),ya(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),tt=z?a:Bi(Wt.allocAt(a.x,a.y),this.transform),rt=this.diagram,ot=10,at=5;if(rt!==null&&(ot=rt.Ql("extraTouchArea"),at=ot/2),ui(-(at*b),-(at*b),E.width+ot*b,E.height+ot*b,tt.x,tt.y)){if(!this.isAtomic){b=this.O.s;var ut=b.length;if(rt=Wt.alloc(),at=(ot=this.isClipping&&this.na===nn.Spot)?this.Pb():null,ot&&(at.se()?Bi(rt.set(a),at.transform):rt.set(a),!at.ca(rt)))return Wt.free(rt),z||Wt.free(tt),null;for(var ft=Ju(this);ut--;){var mt=b[ut];if((mt.visible||mt===ft)&&(mt.se()?Bi(rt.set(a),mt.transform):rt.set(a),!ot||mt!==at)){var yt=null;if(mt instanceof nn?yt=mt.ic(rt,y,x):mt.pickable===!0&&mt.ca(rt)&&(yt=mt),yt!==null&&(y!==null&&(yt=y(yt)),yt!==null&&(x===null||x(yt))))return Wt.free(rt),z||Wt.free(tt),yt}}Wt.free(rt)}return this.background===null&&this.areaBackground===null?(z||Wt.free(tt),null):(a=ui(0,0,E.width,E.height,tt.x,tt.y)?this:null,z||Wt.free(tt),a)}return z||Wt.free(tt),null},Lt.ji=function(a,y,x,E){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var b=this.naturalBounds,z=this.se(),tt=z?a:Bi(Wt.allocAt(a.x,a.y),this.transform);if(b=ui(0,0,b.width,b.height,tt.x,tt.y),Ah(this)||b){if(!this.isAtomic){for(var rt=this.O.s,ot=rt.length,at=Wt.alloc(),ut=Ju(this);ot--;){var ft=rt[ot];if(ft.visible||ft===ut){ft.se()?Bi(at.set(a),ft.transform):at.set(a);var mt=ft;ft=ft instanceof nn?ft:null,(ft!==null?ft.ji(at,y,x,E):mt.ca(at))&&mt.pickable!==!1&&(y!==null&&(mt=y(mt)),mt===null||x!==null&&!x(mt)||E.add(mt))}}Wt.free(at)}return z||Wt.free(tt),b&&(this.background!==null||this.areaBackground!==null)}return z||Wt.free(tt),!1},Lt.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=En.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,b),z===void 0&&En.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var rt=Ju(this),ot=this.O.s,at=ot.length;at--;){var ut=ot[at];if(ut.visible||ut===rt){var ft=ut.actualBounds,mt=this.naturalBounds;ft.x>mt.width||ft.y>mt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ut,ut=ut instanceof nn?ut:null,mt=En.alloc(),mt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,mt):As(ft,a,E,mt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||b.add(ft)),En.free(mt))}}return z===void 0&&En.free(tt),E}return z===void 0&&En.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var rt=tt.actualBounds,ot=a.naturalBounds;rt.x>ot.width||rt.y>ot.height||0>rt.x+rt.width||0>rt.y+rt.height||(tt instanceof nn&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Lt.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,rt=this.se(),ot=rt?a:Bi(Wt.allocAt(a.x,a.y),this.transform),at=rt?y:Bi(Wt.allocAt(y.x,y.y),this.transform),ut=ot.Bf(at),ft=0<ot.x&&ot.x<tt.width&&0<ot.y&&ot.y<tt.height||ar(ot.x,ot.y,0,0,0,tt.height)<=ut||ar(ot.x,ot.y,0,tt.height,tt.width,tt.height)<=ut||ar(ot.x,ot.y,tt.width,tt.height,tt.width,0)<=ut||ar(ot.x,ot.y,tt.width,0,0,0)<=ut;if(tt=ot.zd(0,0)<=ut&&ot.zd(0,tt.height)<=ut&&ot.zd(tt.width,0)<=ut&&ot.zd(tt.width,tt.height)<=ut,rt||(Wt.free(ot),Wt.free(at)),ft){if(!this.isAtomic){ot=Wt.alloc(),at=Wt.alloc(),ut=Ju(this);for(var mt=this.O.s,yt=mt.length;yt--;){var wt=mt[yt];if(wt.visible||wt===ut){var Mt=wt.actualBounds,Ht=this.naturalBounds;(!rt||!(Mt.x>Ht.width||Mt.y>Ht.height||0>Mt.x+Mt.width||0>Mt.y+Mt.height))&&(wt.se()?(Mt=wt.transform,Bi(ot.set(a),Mt),Bi(at.set(y),Mt)):(ot.set(a),at.set(y)),Mt=wt,wt=wt instanceof nn?wt:null,(wt!==null?wt.og(ot,at,x,E,b,z):Mt.tx(ot,at,b))&&(x!==null&&(Mt=x(Mt)),Mt===null||E!==null&&!E(Mt)||z.add(Mt)))}}Wt.free(ot),Wt.free(at)}return b?ft:tt}return!1};function vv(a){var y=null;return a instanceof Wi&&(y=a.spot1,y===$r&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=yi),y}function yv(a){var y=null;return a instanceof Wi&&(y=a.spot2,y===$r&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=rr),y}Lt.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},Lt.M=function(a){return this.O.M(a)},Lt.Gb=function(a,y){y instanceof oi&&Xt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Xt("Cannot make a Panel contain itself: "+this.toString()),Xt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Xt("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==nn.Grid||y instanceof Wi||Xt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==nn.Graduated||y instanceof Wi||y instanceof ho||Xt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new Jn),this.ge.add(E,y))}var b=this.O;if(E=-1,x===this){for(var z=-1,tt=this.O.s,rt=tt.length,ot=0;ot<rt;ot++)if(tt[ot]===y){z=ot;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),E=z}else Xt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),tl(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof nn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Mm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof yn&&(x.Te=!0),x.Te&&x instanceof yn&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(is,"elements",this,y,null,E,null),x.cb(Io,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Lt.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;b<x;b++)if(y[b]===a){E=b;break}E!==-1&&this.pc(E,!0)},Lt.mb=function(a){0<=a&&this.pc(a,!0)},Lt.pc=function(a,y){var x=this.O,E=x.M(a);if(E.Ng=null,E.wi(null),this.ge!==null){var b=E.data;typeof b=="object"&&this.ge.remove(b)}x.mb(a),fs(this,!1),this.v(),this.$g===E&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof yn&&(E instanceof nn?E.qm(E,function(tt,rt){Wv(z,rt,y)}):Wv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(is,"elements",this,E,null,a,null))},Lt.Fb=function(a){0>a&&Mn(a,">= 0",nn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new gs;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Io,"rowdefs",this,null,x,null,a)}return y[a]},Lt.oA=function(a){if(0>a&&Mn(a,">= 0",nn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(is,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof gs?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Lt.Eb=function(a){0>a&&Mn(a,">= 0",nn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new gs;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Io,"coldefs",this,null,x,null,a)}return y[a]},Lt.jA=function(a){if(0>a&&Mn(a,">= 0",nn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(is,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof gs?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Lt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Fm(y,a),this},Lt.Hy=function(a,y){return(a=this.Fb(a))&&Fm(a,new gs(y)),this},Lt.By=function(a,y){return(a=this.Eb(a))&&Fm(a,new gs(y)),this},Lt.nz=function(a){if(0>a||this.type!==nn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Lt.fz=function(a){if(0>a||this.type!==nn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Lt.Fz=function(a,y){if(y===void 0&&(y=new Wt(NaN,NaN)),this.type!==nn.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},Lt.Gz=function(a){if(this.type!==nn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function c1(a){return a=a.allBindings,a!==null&&a._isFrozen}function El(a){var y=a.allBindings;if(y===null)a.data!==null&&Xt("Template cannot have .data be non-null: "+a),a.allBindings=y=new rn;else if(y._isFrozen)return;var x=new rn;Sv(a,!1),a.qm(a,function(at,ut){ut.th();var ft=ut.localBindings;if(ft!==null)for(Bc(ut,!1),ft=ft.iterator;ft.next();){var mt=ft.value;mt.mode===vp&&Bc(ut,!0);var yt=mt.sourceName;yt!==null&&(yt==="/"&&Sv(at,!0),yt=ES(mt,at,ut),yt!==null&&(x.add(yt),yt.srcBindings===null&&(yt.srcBindings=new rn),yt.srcBindings.add(mt))),y.add(mt)}if(ut instanceof nn&&ut.type===nn.Table){if(0<ut.rowCount){for(at=ut.rowDefs,ft=at.length,mt=0;mt<ft;mt++)if(yt=at[mt],yt!==void 0&&yt.be!==null)for(var wt=yt.be.iterator;wt.next();){var Mt=wt.value;Mt.xd=yt,Mt.to=2,Mt.wl=yt.index,y.add(Mt)}}if(0<ut.columnCount){for(ut=ut.colDefs,at=ut.length,ft=0;ft<at;ft++)if(mt=ut[ft],mt!==void 0&&mt.be!==null)for(yt=mt.be.iterator;yt.next();)wt=yt.value,wt.xd=mt,wt.to=1,wt.wl=mt.index,y.add(wt)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){Bc(b,!0);for(var z=b.srcBindings.iterator;z.next();){var tt=z.value;b.localBindings===null&&(b.localBindings=new rn),b.localBindings.add(tt)}}b.srcBindings=null}for(E=y.iterator;E.next();)if(b=E.value,z=b.xd,z!==null){b.xd=null;var rt=b.targetProperty,ot=rt.indexOf(".");0<ot&&z instanceof nn&&(tt=rt.substring(0,ot),rt=rt.substr(ot+1),ot=z.fb(tt),ot!==null?(z=ot,b.targetProperty=rt):wn('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+b.toString())),z instanceof gs?(tt=no(z.panel),b.Ai=tt===void 0?-1:tt,z.panel.bindingId=b.Ai):z instanceof ie?(tt=no(z),b.Ai=tt===void 0?-1:tt,z.bindingId=b.Ai):Xt("Unknown type of binding target: "+z)}y.freeze(),a instanceof oi&&a.Zc()&&a.Va()}Lt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof nn&&(x.allBindings=null,x.ub=null);var E=x.localBindings;E!==null&&(x.localBindings=null,E.each(function(b){x.bind(b.copy())})),E=x.animationTriggers,E!==null&&(x.animationTriggers=null,E.each(function(b){x.Jv(b.value.copy())}))}),a&&El(y),y},Lt.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,E=x.sourceProperty;if((a===""||E===""||E===a)&&(E=x.targetProperty,x.converter!==null||E!=="")){E=this.data;var b=x.sourceName;if(b!==null){if(b==="")E=this;else if(b==="/")E=this;else if(b===".")E=this;else if(b==="..")E=this;else if(E=this.fb(b),E===null)continue}else if(x.isToModel)if(E=this.diagram,E!==null)E=E.model.modelData;else continue;var z=this,tt=x.Ai;if(tt!==-1){if(z=this.ks(tt),z===null)continue}else x.xd!==null&&(z=x.xd);if(b==="/"?E=z.part:b==="."?E=z:b===".."&&(E=z.panel),b=x.to,b!==0){if(!(z instanceof nn))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},Lt.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function yx(a,y){a=a.O.s;for(var x=a.length,E=y.length,b=0,z=null;b<x&&(z=a[b],!(z instanceof nn&&z.data!==null));)b++,z=a[b];if(x-b!==E)return!0;if(z===null)return 0<E;for(var tt=0;b<x&&tt<E;){if(z=a[b],!(z instanceof nn)||z.data!==y[tt])return!0;b++,tt++}return!1}function Qg(a){if(a.type===nn.Spot||a.type===nn.Auto)return Math.min(a.O.length,1);if(a.type===nn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof Wi&&E.isPanelMain))break}return x}return a.type===nn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof nn&&Ah(a))?1:0}Lt.mv=function(){for(var a=Qg(this);this.O.length>a;)this.pc(this.O.length-1,!1);f1(this,this.itemArray)};function f1(a,y){var x=Qg(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;E<x;E++)Em(a,y[E],E,!0)}else{E=x;for(var b=0;b<y.length;b++,E++){var z=y[b],tt=E<a.O.length?a.O.M(E):null;if(tt instanceof nn){if(tt.data!==z){var rt=wv(a,tt.data),ot=wv(a,z),at=ot!==rt;at||(rt=Pv(a,rt),at=Pv(a,ot)!==rt),at?(a.pc(E,!1),Em(a,z,b,!1)):tt.data=z}}else Em(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,xv(a,x,0),tl(a)||a.v(),a.graduatedIntervals=null,a.If()||Mm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof yn&&(y.Te=!0),y.Te&&y instanceof yn&&(y.wc=null))}}function Em(a,y,x,E){if(!(y==null||0>x)){var b=wv(a,y);if(b=Pv(a,b),b!==null){if(El(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Jn),a.ge.add(y,b)),z=x+Qg(a),a.Gb(z,b),E&&(b.ub=y,xv(a,z,x),b.ub=null),b.data=y}}}function xv(a,y,x){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof nn){var b=y,z=x;E.type===nn.TableRow?E.row=b:E.type===nn.TableColumn&&(E.column=b),E.itemIndex=z}y++,x++}}function wv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=rs(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Xt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Pv(a,y){var x=a.itemTemplateMap,E=null;return x!==null&&(E=x.I(y)),E===null&&(x!==null&&(E=x.I("")),E===null&&(g1||(g1=!0,wn('No item template Panel found for category "'+y+'" on '+a),wn(" Using default item template."),a=new nn,y=new ho,y.bind(new ls("text","",or)),a.add(y),p1=a),E=p1)),E}function Mm(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof nn){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof nn&&!z.isEnabled||Mm(a,z,x)}}}function mu(a,y){y.name=a,jl.add(a,y)}Ye.Object.defineProperties(nn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===nn.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&Mn(a,">= 0",nn,"padding"),a=new Yn(a)):(0>a.left&&Mn(a.left,">= 0",nn,"padding:value.left"),0>a.right&&Mn(a.right,">= 0",nn,"padding:value.right"),0>a.top&&Mn(a.top,">= 0",nn,"padding:value.top"),0>a.bottom&&Mn(a.bottom,">= 0",nn,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:tr},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new gl),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Gr)&&(a instanceof Gr&&a.freeze(),this.T===null&&(this.T=new gl),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new gl),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||Xt("defaultRowSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new gl),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Gr)&&(a instanceof Gr&&a.freeze(),this.T===null&&(this.T=new gl),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new gl),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||Xt("defaultColumnSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new gl),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new gl),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||Xt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&fu(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||Xt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&fu(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new qu),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Ws(this)&&(a=this.part,a!==null&&wo(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new qu),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Ws(this)&&(a=this.part,a!==null&&wo(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new qu),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new qu),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new qu,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new qu,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new qu,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new qu,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new gl),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new gl),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:bm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new gl),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:bm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new gl),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&Xt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new gl),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&Xt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new gl),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof oi&&!(this instanceof Ar);El(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof un?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof oi&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Dc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ay(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||f1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Jn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof oi||a.isPanelMain)&&Xt("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Zi(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Zi(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Ri&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Mm(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),Ye.Object.defineProperties(nn,{Position:{get:function(){return jl.I("Position")}},Horizontal:{get:function(){return jl.I("Horizontal")}},Vertical:{get:function(){return jl.I("Vertical")}},Spot:{get:function(){return jl.I("Spot")}},Auto:{get:function(){return jl.I("Auto")}},Table:{get:function(){return jl.I("Table")}},Viewbox:{get:function(){return jl.I("Viewbox")}},TableRow:{get:function(){return jl.I("TableRow")}},TableColumn:{get:function(){return jl.I("TableColumn")}},Link:{get:function(){return jl.I("Link")}},Grid:{get:function(){return jl.I("Grid")}},Graduated:{get:function(){return jl.I("Graduated")}}}),nn.prototype.rebuildItemElements=nn.prototype.mv,nn.prototype.findItemPanelForData=nn.prototype.sx,nn.prototype.updateTargetBindings=nn.prototype.La,nn.prototype.copyTemplate=nn.prototype.Uy,nn.prototype.graduatedValueForPoint=nn.prototype.Gz,nn.prototype.graduatedPointForValue=nn.prototype.Fz,nn.prototype.findColumnForLocalX=nn.prototype.fz,nn.prototype.findRowForLocalY=nn.prototype.nz,nn.prototype.addColumnDefinition=nn.prototype.By,nn.prototype.addRowDefinition=nn.prototype.Hy,nn.prototype.addRowColumnDefinition=nn.prototype.Gy,nn.prototype.removeColumnDefinition=nn.prototype.jA,nn.prototype.getColumnDefinition=nn.prototype.Eb,nn.prototype.removeRowDefinition=nn.prototype.oA,nn.prototype.getRowDefinition=nn.prototype.Fb,nn.prototype.removeAt=nn.prototype.mb,nn.prototype.remove=nn.prototype.remove,nn.prototype.insertAt=nn.prototype.Gb,nn.prototype.elt=nn.prototype.M,nn.prototype.add=nn.prototype.add,nn.prototype.findObject=nn.prototype.fb,nn.prototype.findInVisualTree=nn.prototype.Nl,nn.prototype.walkVisualTreeFrom=nn.prototype.qm,nn.prototype.findMainElement=nn.prototype.Pb;var g1=!1,p1=null,jl=new Jn;nn.className="Panel",nn.definePanelLayout=mu,mu("Position",new gm),mu("Vertical",new mm),mu("Auto",new ym),mu("Link",new Am);function qu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}qu.prototype.copy=function(){var a=new qu;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},qu.className="GradPanelSettings";function gl(){this.Pc=[],this.Oc=[],this.j=this.ob=bm,this.hb=this.Hb=0,this.Qp=tr,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}gl.prototype.copy=function(a){for(var y=new gl,x=this.Pc,E=x.length,b=y.Pc,z=0;z<E;z++)if(x[z]!==void 0){var tt=x[z].copy();tt.wi(a),b[z]=tt}for(x=this.Oc,E=x.length,b=y.Oc,z=0;z<E;z++)x[z]!==void 0&&(tt=x[z].copy(),tt.wi(a),b[z]=tt);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},gl.className="TablePanelSettings";function gs(a){zr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=$r,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=zi,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}gs.prototype.copy=function(){var a=new gs;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=Ni(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Fm(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=Ni(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Lt=gs.prototype,Lt.qb=function(a){a.classType===gs&&(this.sizing=a)},Lt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+no(this)},Lt.wi=function(a){this.Me=a},Lt.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},Lt.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===nn.Table)for(var b=E?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var tt=E?y.rowDefs[z]:y.colDefs[z];if(tt!==void 0&&tt.oa!==0){x=tt.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=E?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=E?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),E=this.dg,E===null)if(y!==null)E=y.defaultSeparatorPadding;else return a;return a+(this.isRow?E.top+E.bottom:E.left+E.right)},Lt.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(yo,a,this,y,x,void 0,void 0),this.be!==null&&(y=E.diagram,y!==null&&!y.skipsModelSourceBindings&&(E=E.ih(),E!==null&&(y=E.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,E)};function km(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Lt.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new ls(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&c1(y)&&Xt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new rn),this.be.add(b),this},Ye.Object.defineProperties(gs.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Mn(a,">= 0",gs,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Mn(a,">= 0",gs,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Mn(a,">= 0",gs,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Mn(a,">= 0",gs,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Tc(a,"RowColumnDefinition.separatorStroke"),a instanceof Gr&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||Xt("separatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Tc(a,"RowColumnDefinition.background"),a instanceof Gr&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),gs.prototype.computeEffectiveSpacing=gs.prototype.Wc,gs.prototype.computeEffectiveSpacingTop=gs.prototype.Io;var Cv=new Ee(gs,"Default",0),Jg=new Ee(gs,"None",1),bm=new Ee(gs,"ProportionalExtra",2);gs.className="RowColumnDefinition",gs.Default=Cv,gs.None=Jg,gs.ProportionalExtra=bm;function Wi(a,y){ie.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}we(Wi,ie),Wi.prototype.cloneProtected=function(a){ie.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=Ni(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Jd(a){a.Na===null?a.Na=new Ev:a.Na.nc&&(a.Na=a.Na.copy())}Lt=Wi.prototype,Lt.th=function(){ie.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Lt.qb=function(a){a===Ze||a===Un||a===hr||a===zi?this.geometryStretch=a:ie.prototype.qb.call(this,a)},Lt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+no(this)};function Df(a,y,x,E){var b=x.length;if(!(4>b)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var rt=x[0],ot=x[1],at,ut,ft,mt,yt,wt,Mt=0,Ht=On(),It=2;It<b;It+=2)at=x[It],ut=x[It+1],ft=at-rt,rt=ut-ot,ft===0&&(ft=.001),mt=rt/ft,yt=Math.atan2(rt,ft),wt=Math.sqrt(ft*ft+rt*rt),Ht.push([ft,yt,mt,wt]),Mt+=wt,rt=at,ot=ut;rt=x[0],ot=x[1],ft=E.measuredBounds.width,E instanceof Wi&&(ft-=E.strokeWidth),1>ft&&(ft=1),b=x=ft,at=tt/2,ut=at!==0,It=0,wt=Ht[It],ft=wt[0],yt=wt[1],mt=wt[2],wt=wt[3];for(var Zt=0;.1<=Mt;){if(Zt===0&&(ut?(b=x,b-=at,Mt-=at,ut=!1):b=x,b===0&&(b=1)),b>Mt){Bn(Ht);return}b>wt?(Zt=b-wt,b=wt):Zt=0;var Kt=Math.sqrt(b*b/(1+mt*mt));if(0>ft&&(Kt=-Kt),rt+=Kt,ot+=mt*Kt,a.translate(rt,ot),a.rotate(yt),a.translate(-(tt/2),-(z/2)),Zt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-yt),a.translate(-rt,-ot),Mt-=b,wt-=b,Zt!==0){if(It++,It===Ht.length){Bn(Ht);return}wt=Ht[It],ft=wt[0],yt=wt[1],mt=wt[2],wt=wt[3],b=Zt}}Bn(Ht)}}Lt.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&Jo(this,a,E,!0,!1,tt,z);var rt=this.part,ot=this.ig;if(x===null||ot!==0||rt===null||!this.isPanelMain&&rt.Pb()!==this||(ot=rt.type===nn.Link&&rt instanceof Ar&&rt.category==="Selection"&&rt.adornedObject instanceof Wi&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),ot===0&&(x=null),x!==null&&ot!==0&&(Jo(this,a,x,!1,!1,tt,z),a.lineWidth=ot,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,rt&&y.Gf("drawShadows")&&(z=rt.isShadowed),a.Il===!1&&(z=!1),rt=!0,x===null||E!==null&&E!=="transparent"||(rt=!1),tt=!1,ot=this.strokeDashArray,ot!==null&&(tt=!0,a.js(ot,this.strokeDashOffset)),b.type===Qe.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===Qe.u){var at=b.startX;ot=b.startY;var ut=b.endX,ft=b.endY;b=Math.min(at,ut);var mt=Math.min(ot,ft);at=Math.abs(ut-at),ot=Math.abs(ft-ot),a.beginPath(),a.rect(b,mt,at,ot),E!==null&&a.ng(E),x!==null&&(rt&&z&&Mu(a),a.jk(),rt&&z&&Xu(a)),a.Se()}else if(b.type===Qe.F)at=b.startX,ot=b.startY,ut=b.endX,ft=b.endY,b=Math.abs(ut-at)/2,mt=Math.abs(ft-ot)/2,at=Math.min(at,ut)+b,ot=Math.min(ot,ft)+mt,a.beginPath(),a.moveTo(at,ot-mt),a.bezierCurveTo(at+$t.wg*b,ot-mt,at+b,ot-$t.wg*mt,at+b,ot),a.bezierCurveTo(at+b,ot+$t.wg*mt,at+$t.wg*b,ot+mt,at,ot+mt),a.bezierCurveTo(at-$t.wg*b,ot+mt,at-b,ot+$t.wg*mt,at-b,ot),a.bezierCurveTo(at-b,ot-$t.wg*mt,at-$t.wg*b,ot-mt,at,ot-mt),a.closePath(),E!==null&&a.ng(E),x!==null&&(rt&&z&&Mu(a),a.jk(),rt&&z&&Xu(a)),a.Se();else if(b.type===Qe.o)for(b=b.figures,ot=b.length,mt=0;mt<ot;mt++){at=b.s[mt],a.beginPath(),a.moveTo(at.startX,at.startY),ut=at.segments.s,ft=ut.length;for(var yt=null,wt=0;wt<ft;wt++){var Mt=ut[wt];switch(Mt.type){case ns:a.moveTo(Mt.endX,Mt.endY);break;case Qr:a.lineTo(Mt.endX,Mt.endY);break;case Cs:a.bezierCurveTo(Mt.point1X,Mt.point1Y,Mt.point2X,Mt.point2Y,Mt.endX,Mt.endY);break;case fa:a.quadraticCurveTo(Mt.point1X,Mt.point1Y,Mt.endX,Mt.endY);break;case qo:if(Mt.radiusX===Mt.radiusY){var Ht=Math.PI/180;a.arc(Mt.point1X,Mt.point1Y,Mt.radiusX,Mt.startAngle*Ht,(Mt.startAngle+Mt.sweepAngle)*Ht,0>Mt.sweepAngle,yt!==null?yt.endX:at.startX,yt!==null?yt.endY:at.startY)}else if(yt=Ys(Mt,at),Ht=yt.length,Ht===0)a.lineTo(Mt.centerX,Mt.centerY);else for(var It=0;It<Ht;It++){var Zt=yt[It];It===0&&a.lineTo(Zt[0],Zt[1]),a.bezierCurveTo(Zt[2],Zt[3],Zt[4],Zt[5],Zt[6],Zt[7])}break;case ga:if(It=Ht=0,yt!==null&&yt.type===qo){if(yt=Ys(yt,at),Zt=yt.length,Zt===0){a.lineTo(Mt.endX,Mt.endY);break}yt=yt[Zt-1]||null,yt!==null&&(Ht=yt[6],It=yt[7])}else Ht=yt!==null?yt.endX:at.startX,It=yt!==null?yt.endY:at.startY;if(yt=_s(Mt,at,Ht,It),Ht=yt.length,Ht===0){a.lineTo(Mt.endX,Mt.endY);break}for(It=0;It<Ht;It++)Zt=yt[It],a.bezierCurveTo(Zt[2],Zt[3],Zt[4],Zt[5],Zt[6],Zt[7]);break;default:Xt("Segment not of valid type: "+Mt.type)}Mt.isClosed&&a.closePath(),yt=Mt}ut=at.isFilled,z?at.isShadowed?(ut===!0&&E!=="transparent"&&E!==null&&a.ng(E,at.isEvenOdd),x!==null&&(ut&&rt&&Mu(a),a.jk(),ut&&rt&&Xu(a))):(Mu(a),ut&&E!=="transparent"&&E!==null&&a.ng(E,at.isEvenOdd),x!==null&&a.jk(),Xu(a)):(ut&&E!==null&&a.ng(E,at.isEvenOdd),x!==null&&a.jk()),a.Se(mt)}if(tt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),E=x.measuredBounds,x.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=On(),z.type===Qe.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),Df(a,y,E,x);else if(z.type===Qe.o)for(z=z.figures.iterator;z.next();){for(rt=z.value,E.length=0,E.push(rt.startX),E.push(rt.startY),tt=rt.startX,b=rt.startY,ot=tt,mt=b,at=rt.segments.s,ut=at.length,ft=0;ft<ut;ft++){switch(wt=at[ft],wt.type){case ns:Df(a,y,E,x),E.length=0,E.push(wt.endX),E.push(wt.endY),tt=wt.endX,b=wt.endY,ot=tt,mt=b;break;case Qr:E.push(wt.endX),E.push(wt.endY),tt=wt.endX,b=wt.endY;break;case Cs:$t.Qe(tt,b,wt.point1X,wt.point1Y,wt.point2X,wt.point2Y,wt.endX,wt.endY,.5,E),tt=wt.endX,b=wt.endY;break;case fa:$t.ep(tt,b,wt.point1X,wt.point1Y,wt.endX,wt.endY,.5,E),tt=wt.endX,b=wt.endY;break;case qo:if(Mt=Ys(wt,rt),yt=Mt.length,yt===0){E.push(wt.centerX),E.push(wt.centerY),tt=wt.centerX,b=wt.centerY;break}for(Ht=0;Ht<yt;Ht++)It=Mt[Ht],$t.Qe(tt,b,It[2],It[3],It[4],It[5],It[6],It[7],.5,E),tt=It[6],b=It[7];break;case ga:if(Mt=_s(wt,rt,tt,b),yt=Mt.length,yt===0){E.push(wt.endX),E.push(wt.endY),tt=wt.endX,b=wt.endY;break}for(Ht=0;Ht<yt;Ht++)It=Mt[Ht],$t.Qe(tt,b,It[2],It[3],It[4],It[5],It[6],It[7],.5,E),tt=It[6],b=It[7];break;default:Xt("Segment not of valid type: "+wt.type)}wt.isClosed&&(E.push(ot),E.push(mt),Df(a,y,E,x))}Df(a,y,E,x)}else if(z.type===Qe.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),Df(a,y,E,x);else if(z.type===Qe.F){if(b=new es,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,tt=new ur(qo),tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(z.startX+z.endX)/2,tt.centerY=(z.startY+z.endY)/2,tt.radiusX=Math.abs(z.startX-z.endX)/2,tt.radiusY=Math.abs(z.startY-z.endY)/2,b.add(tt),z=Ys(tt,b),rt=z.length,rt===0)E.push(tt.centerX),E.push(tt.centerY);else for(tt=b.startX,b=b.startY,ot=0;ot<rt;ot++)mt=z[ot],$t.Qe(tt,b,mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],.5,E),tt=mt[6],b=mt[7];Df(a,y,E,x)}Bn(E),a.restore(),a.Vc(!1)}}}},Lt.kk=function(a,y,x){return!ie.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},Lt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:ie.prototype.nk.call(this,a)},Lt.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Lt.ga=function(a,y){if(y===void 0&&(y=new Wt),a instanceof gn){a.Mc()&&Xt("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,E=this.strokeWidth;y.h(a.x*(x.width+E)-E/2+x.x+a.offsetX,a.y*(x.height+E)-E/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Lt.mi=function(a){a===void 0&&(a=new oe);var y=this.naturalBounds,x=this.oe;y=oe.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=Wt.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),ai(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),ai(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),ai(a,E.x,E.y,0,0),oe.free(y),Wt.free(E),a},Lt.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var E=x.bounds,b=this.strokeWidth/2;x.type!==Qe.j||y||(b+=2);var z=oe.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return oe.free(z),!1;if(E=b+1e-4,x.type===Qe.j)return this.stroke===null||(E=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(oe.free(z),$t.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===Qe.u){y=x.startX;var tt=x.startY,rt=x.endX;if(x=x.endY,z.x=Math.min(y,rt),z.y=Math.min(tt,x),z.width=Math.abs(rt-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return oe.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),oe.free(z),a}if(x.type===Qe.F){tt=x.startX,b=x.startY,rt=x.endX;var ot=x.endY;if(x=Math.min(tt,rt),y=Math.min(b,ot),tt=Math.abs(rt-tt)/2,b=Math.abs(ot-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return oe.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),oe.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===Qe.o)return oe.free(z),this.fill===null?qs(x,a.x,a.y,b):Gs(x,a,b,1<this.strokeWidth,y);Xt("Unknown Geometry type: "+x.type)},Lt.Wl=function(a,y,x,E){var b=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var tt=this.geometry.bounds;else{var rt=this.figure,ot=Lv[rt];if(ot===void 0){var at=$t.Ze[rt];typeof at=="string"&&(at=$t.Ze[at]),typeof at=="function"?(ot=at(null,100,100),Lv[rt]=ot):Xt("Unsupported Figure: "+rt)}tt=ot.bounds}rt=tt.width,ot=tt.height,at=tt.width;var ut=tt.height;switch(ba(this,!0)){case Ze:E=x=0;break;case qe:at=Math.max(a-z,0),ut=Math.max(y-z,0);break;case _n:at=Math.max(a-z,0),E=0;break;case Si:x=0,ut=Math.max(y-z,0)}isFinite(b.width)&&(at=b.width),isFinite(b.height)&&(ut=b.height);var ft=this.maxSize,mt=this.minSize;switch(x=Math.max(x-z,mt.width),E=Math.max(E-z,mt.height),at=Math.min(ft.width,at),ut=Math.min(ft.height,ut),at=isFinite(at)?Math.max(x,at):Math.max(rt,x),ut=isFinite(ut)?Math.max(E,ut):Math.max(ot,E),x=Av(this),x){case Ze:break;case qe:rt=at,ot=ut;break;case Un:x=Math.min(at/rt,ut/ot),isFinite(x)||(x=1),rt*=x,ot*=x;break;default:Xt(x+" is not a valid geometryStretch.")}this.Rd!==null?(rt===0&&(rt=.001),ot===0&&(ot=.001),x=this.Rd!==null?this.Rd:this.ua,tt=x.bounds,E=rt/tt.width,tt=ot/tt.height,isFinite(E)||(E=1),isFinite(tt)||(tt=1),this.ua=E===1&&tt===1?x:x.copy().scale(E,tt)):this.ua!==null&&$t.$(this.ua.Sk,a-z)&&$t.$(this.ua.Rk,y-z)||(this.ua=Wi.makeGeometry(this,rt,ot)),tt=this.ua.bounds,a===1/0||y===1/0?this.Ge(tt.x-z/2,tt.y-z/2,a===0&&rt===0?0:tt.width+z,y===0&&ot===0?0:tt.height+z):this.Ge(-(z/2),-(z/2),at+z,ut+z),b.w()?(at=b.width,ut=b.height,at=Math.min(ft.width,at),ut=Math.min(ft.height,ut),at=Math.max(mt.width,at),ut=Math.max(mt.height,ut),this.dc.h(0,0,at,ut)):this.dc.assign(tt)};function Av(a){var y=a.geometryStretch;return a.Rd!==null?y===zi?qe:y:y===zi?Lv[a.figure].defaultStretch:y}Lt.eh=function(a,y,x,E){la(this,a,y,x,E)},Lt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Lt.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,ot=-z.m12*tt,at=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),mt=tt*(z.m12*z.dx-z.m11*z.dy);z=a*rt+y*at+ft,tt=a*ot+y*ut+mt,rt=x*rt+E*at+ft,ot=x*ot+E*ut+mt,ft=this.ig/2,at=this.ua,at===null&&(this.measure(1/0,1/0),at=this.ua);var yt=at.bounds;if(ut=!1,at.type===Qe.j)if(1.5>=this.strokeWidth)ut=$t.Ve(at.startX,at.startY,at.endX,at.endY,z,tt,rt,ot,b);else{if(at.startX===at.endX?(E=ft,ut=0):(y=(at.endY-at.startY)/(at.endX-at.startX),ut=ft/Math.sqrt(1+y*y),E=ut*y),y=On(),a=new Wt,$t.Ve(at.startX+E,at.startY+ut,at.endX+E,at.endY+ut,z,tt,rt,ot,a)&&y.push(a),a=new Wt,$t.Ve(at.startX-E,at.startY-ut,at.endX-E,at.endY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Wt,$t.Ve(at.startX+E,at.startY+ut,at.startX-E,at.startY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Wt,$t.Ve(at.endX+E,at.endY+ut,at.endX-E,at.endY-ut,z,tt,rt,ot,a)&&y.push(a),rt=y.length,rt===0)return Bn(y),!1;for(ut=!0,ot=1/0,E=0;E<rt;E++)a=y[E],x=(a.x-z)*(a.x-z)+(a.y-tt)*(a.y-tt),x<ot&&(ot=x,b.x=a.x,b.y=a.y);Bn(y)}else if(at.type===Qe.u)ut=$t.Ff(yt.x-ft,yt.y-ft,yt.x+yt.width+ft,yt.y+yt.height+ft,z,tt,rt,ot,b);else if(at.type===Qe.F){y=oe.allocAt(yt.x,yt.y,yt.width,yt.height).Bc(ft,ft);t:if(y.width===0)ut=$t.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,rt,ot,b);else if(y.height===0)ut=$t.Ve(y.x,y.y,y.x+y.width,y.y,z,tt,rt,ot,b);else{if(a=y.width/2,at=y.height/2,E=y.x+a,ut=y.y+at,x=9999,z!==rt&&(x=(tt-ot)/(z-rt)),9999>Math.abs(x)){if(ot=tt-ut-x*(z-E),0>a*a*x*x+at*at-ot*ot){b.x=NaN,b.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+at*at-ot*ot),rt=(-(a*a*x*ot)+a*at*ft)/(at*at+a*a*x*x)+E,a=(-(a*a*x*ot)-a*at*ft)/(at*at+a*a*x*x)+E,at=x*(rt-E)+ot+ut,ot=x*(a-E)+ot+ut,Math.abs((z-rt)*(z-rt))+Math.abs((tt-at)*(tt-at))<Math.abs((z-a)*(z-a))+Math.abs((tt-ot)*(tt-ot))?(b.x=rt,b.y=at):(b.x=a,b.y=ot)}else{if(rt=at*at,ot=z-E,rt-=rt/(a*a)*ot*ot,0>rt){b.x=NaN,b.y=NaN,ut=!1;break t}ot=Math.sqrt(rt),rt=ut+ot,ot=ut-ot,Math.abs(rt-tt)<Math.abs(ot-tt)?(b.x=z,b.y=rt):(b.x=z,b.y=ot)}ut=!0}oe.free(y)}else if(at.type===Qe.o){mt=Wt.alloc();var wt=rt-z,Mt=ot-tt,Ht=wt*wt+Mt*Mt,It=z,Zt=tt;if(0<Ht&&yt.contains(It,Zt)&&(mt.x=It,mt.y=Zt,this.ca(mt)))for(wt!==0&&.5>Math.abs(wt)?(Mt*=.5/wt,wt=.5):Mt!==0&&.5>Math.abs(Mt)&&(wt*=.5/Mt,Mt=.5),It-=wt,Zt-=Mt;yt.contains(It,Zt);)It-=wt,Zt-=Mt;for(b.x=rt,b.y=ot,Mt=0;Mt<at.figures.count;Mt++){var Kt=at.figures.s[Mt],Qt=Kt.isFilled?It:z,ne=Kt.isFilled?Zt:tt,Se=Kt.segments;yt=Kt.startX,wt=Kt.startY;for(var mn=yt,zn=wt,bn=0;bn<Se.count;bn++){var ln=Se.s[bn],Ve=ln.type,Oi=ln.endX,ki=ln.endY,Br=!1;switch(Ve){case ns:mn=Oi,zn=ki;break;case Qr:Br=Dm(yt,wt,Oi,ki,Qt,ne,rt,ot,mt);break;case Cs:Br=$t.Eo(yt,wt,ln.point1X,ln.point1Y,ln.point2X,ln.point2Y,Oi,ki,Qt,ne,rt,ot,.6,mt);break;case fa:Br=$t.Eo(yt,wt,yt+2/3*(ln.point1X-yt),wt+2/3*(ln.point1Y-wt),Oi+2/3*(ln.point1X-Oi),ki+2/3*(ln.point1Y-ki),Oi,ki,Qt,ne,rt,ot,.6,mt);break;case qo:case ga:Ve=ln.type===qo?Ys(ln,Kt):_s(ln,Kt,yt,wt);var ao=Ve.length;if(ao===0){Br=Dm(yt,wt,ln.type===qo?ln.centerX:ln.endX,ln.type===qo?ln.centerY:ln.endY,Qt,ne,rt,ot,mt);break}for(ki=null,Oi=0;Oi<ao;Oi++){if(ki=Ve[Oi],Oi===0&&Dm(yt,wt,ki[0],ki[1],Qt,ne,rt,ot,mt)){var Ls=Bm(Qt,ne,mt,Ht,b);Ls<Ht&&(Ht=Ls,ut=!0)}$t.Eo(ki[0],ki[1],ki[2],ki[3],ki[4],ki[5],ki[6],ki[7],Qt,ne,rt,ot,.6,mt)&&(Ls=Bm(Qt,ne,mt,Ht,b),Ls<Ht&&(Ht=Ls,ut=!0))}Oi=ki[6],ki=ki[7];break;default:Xt("Unknown Segment type: "+Ve)}yt=Oi,wt=ki,Br&&(Br=Bm(Qt,ne,mt,Ht,b),Br<Ht&&(Ht=Br,ut=!0)),ln.isClosed&&(Oi=mn,ki=zn,Dm(yt,wt,Oi,ki,Qt,ne,rt,ot,mt)&&(ln=Bm(Qt,ne,mt,Ht,b),ln<Ht&&(Ht=ln,ut=!0)))}}z=x-a,tt=E-y,rt=Math.sqrt(z*z+tt*tt),rt!==0&&(z/=rt,tt/=rt),b.x-=z*ft,b.y-=tt*ft,Wt.free(mt)}else Xt("Unknown Geometry type: "+at.type);return ut?(this.transform.Ga(b),!0):!1};function Bm(a,y,x,E,b){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<E?(b.x=x.x,b.y=x.y,y):E}function Dm(a,y,x,E,b,z,tt,rt,ot){if($t.$(a,x)&&$t.$(y,E)||$t.$(b,tt)&&$t.$(z,rt))return!1;var at=!1,ut=(b-tt)*(y-E)-(z-rt)*(a-x);return ut===0?!1:(ot.x=((b*rt-z*tt)*(a-x)-(b-tt)*(a*E-y*x))/ut,ot.y=((b*rt-z*tt)*(y-E)-(z-rt)*(a*E-y*x))/ut,(a>x?a-x:x-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(ot.y>a||$t.$(ot.y,a))&&(ot.y<y||$t.$(ot.y,y))&&(at=!0)):(y=a<x?a:x,a=a<x?x:a,(ot.x>y||$t.$(ot.x,y))&&(ot.x<a||$t.$(ot.x,a))&&(at=!0)),at)}Lt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var E=this.strokeWidth/2,b=!1,z=Wt.alloc();return z.h(x.x-E,x.y-E),a.ca(y.Ga(z))&&(z.h(x.x-E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.y-E),a.ca(y.Ga(z))&&(b=!0)))),Wt.free(z),b},Lt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=En.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var tt=Wt.alloc();if(tt.h(E,z),x.Ga(tt),this.gh(tt,!0)||(tt.h(b,z),x.Ga(tt),this.gh(tt,!0))||(tt.h(E,a),x.Ga(tt),this.gh(tt,!0))||(tt.h(b,a),x.Ga(tt),this.gh(tt,!0)))return Wt.free(tt),!0;var rt=Wt.alloc(),ot=Wt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),rt.x=b,rt.y=z,rt.transform(x),tt.x=E,tt.y=z,tt.transform(x),y=!1,qd(this,tt,rt,ot)?y=!0:(tt.x=b,tt.y=a,tt.transform(x),qd(this,tt,rt,ot)?y=!0:(rt.x=E,rt.y=a,rt.transform(x),qd(this,tt,rt,ot)?y=!0:(tt.x=E,tt.y=z,tt.transform(x),qd(this,tt,rt,ot)&&(y=!0)))),Wt.free(tt),En.free(x),Wt.free(rt),Wt.free(ot),y};function qd(a,y,x,E){if(!a.rs(y,x,E))return!1;a=y.x,y=y.y;var b=x.x,z=x.y;return x=E.x,E=E.y,a===b?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<b?(E=a,a=b):E=b,x>=E&&x<=a)}Lt.tx=function(a,y,x){function E(Ht,It){for(var Zt=Ht.length,Kt=0;Kt<Zt;Kt+=2)if(It.zd(Ht[Kt],Ht[Kt+1])>b)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5<this.strokeWidth&&(b=this.strokeWidth/2+Math.sqrt(b),b*=b),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var tt=y.bounds,rt=tt.x,ot=tt.y,at=tt.x+tt.width;if(tt=tt.y+tt.height,Di(a.x,a.y,rt,ot)<=b&&Di(a.x,a.y,at,ot)<=b&&Di(a.x,a.y,rt,tt)<=b&&Di(a.x,a.y,at,tt)<=b)return!0}if(rt=y.startX,ot=y.startY,at=y.endX,tt=y.endY,y.type===Qe.j){if(x=(rt-at)*(a.x-at)+(ot-tt)*(a.y-tt),ar(a.x,a.y,rt,ot,at,tt)<=(0<=(at-rt)*(a.x-rt)+(tt-ot)*(a.y-ot)&&0<=x?b:z))return!0}else{if(y.type===Qe.u)return y=!1,x&&(y=ar(a.x,a.y,rt,ot,rt,tt)<=b||ar(a.x,a.y,rt,ot,at,ot)<=b||ar(a.x,a.y,at,ot,at,tt)<=b||ar(a.x,a.y,rt,tt,at,tt)<=b),y;if(y.type===Qe.F){y=a.x-(rt+at)/2,z=a.y-(ot+tt)/2;var ut=Math.abs(at-rt)/2,ft=Math.abs(tt-ot)/2;if(ut===0||ft===0)return ar(a.x,a.y,rt,ot,at,tt)<=b;if(x){if(a=$t.$y(ut,ft,y,z),a*a<=b)return!0}else return!(Di(y,z,-ut,0)>=b||Di(y,z,0,-ft)>=b||Di(y,z,0,ft)>=b||Di(y,z,ut,0)>=b)}else if(y.type===Qe.o){if(at=y.bounds,z=at.x,rt=at.y,ot=at.x+at.width,at=at.y+at.height,a.x>ot&&a.x<z&&a.y>at&&a.y<rt&&ar(a.x,a.y,z,rt,z,at)>b&&ar(a.x,a.y,z,rt,ot,rt)>b&&ar(a.x,a.y,ot,at,z,at)>b&&ar(a.x,a.y,ot,at,ot,rt)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?qs(y,a.x,a.y,z):Gs(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],tt=z.startX,ut=z.startY,a.zd(tt,ut)>b)return!1;for(rt=z.segments.s,ot=rt.length,at=0;at<ot;at++)switch(ft=rt[at],ft.type){case ns:case Qr:if(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b)return!1;break;case Cs:var mt=On();if($t.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,mt),tt=E(mt,a),Bn(mt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case fa:if(mt=On(),$t.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,mt),tt=E(mt,a),Bn(mt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case qo:case ga:mt=ft.type===qo?Ys(ft,z):_s(ft,z,tt,ut);var yt=mt.length;if(yt===0){if(tt=ft.type===qo?ft.centerX:ft.endX,ut=ft.type===qo?ft.centerY:ft.endY,a.zd(tt,ut)>b)return!1;break}ft=null;for(var wt=On(),Mt=0;Mt<yt;Mt++)if(ft=mt[Mt],wt.length=0,$t.Qe(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.8,wt),E(wt,a))return Bn(wt),!1;Bn(wt),ft!==null&&(tt=ft[6],ut=ft[7]);break;default:Xt("Unknown Segment type: "+ft.type)}}return!0}}}return!1},Lt.qc=function(){this.ua=null},Lt.kq=function(){return this.ig};function m1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=op,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Kr):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new gn(1-Kr.x,Kr.y)))}Wi.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=ku[a.toArrow];else a.fromArrow!=="None"?E=ku[a.fromArrow]:(E=$t.Ze[a.figure],typeof E=="string"&&(E=$t.Ze[E]),E===void 0&&Xt("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=$t.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function v1(a){var y=ku[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=ku[x],y===void 0){var E=null,b;for(b in $t.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=Qe.parse($t.um[E],!1),ku[E]=a,x!==E&&(ku[x]=E),E}}return typeof y=="string"?y:y instanceof Qe?a:null}Ye.Object.defineProperties(Wi.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var E=this.part;E!==null&&(E.ag=NaN),this.v(),this.g("geometry",y||x,a),Ws(this)&&(a=this.part,a!==null&&wo(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Qe.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Wt.allocAt(-y.x,-y.y),Wt.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&Tc(a,"Shape.fill"),a instanceof Gr&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Tc(a,"Shape.stroke"),a instanceof Gr&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else Mn(a,"value >= 0",Wi,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Mn(a,'"butt", "round", or "square"',Wi,"strokeCap"):(Jd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Mn(a,'"miter", "bevel", or "round"',Wi,"strokeJoin"):(Jd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Jd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];0<=z&&isFinite(z)||Xt("strokeDashArray:value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Jd(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=$t.Ze[a];typeof x=="function"?x=a:(x=$t.Ze[a.toLowerCase()])||Xt("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=v1(a);x===null?Xt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new ad),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),m1(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=v1(a);x===null?Xt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new ad),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),m1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:$r},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Jd(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:$r},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Jd(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Jd(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:zi},set:function(a){var y=this.geometryStretch;y!==a&&(Jd(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new bu),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&fu(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bu),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bu),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new bu),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Wi.prototype.intersectsRect=Wi.prototype.Yc,Wi.prototype.containedInRect=Wi.prototype.fh,Wi.prototype.getNearestIntersectionPoint=Wi.prototype.rs,Wi.prototype.getDocumentBounds=Wi.prototype.mi,Wi.prototype.getDocumentPoint=Wi.prototype.ga;var ku=new fi,Lv=new fi;Wi.className="Shape",Wi.getFigureGenerators=function(){var a=new Jn,y;for(y in $t.Ze)y!==y.toLowerCase()&&a.add(y,$t.Ze[y]);return a.freeze(),a},Wi.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=$t.Ze;E[a]=y,E[x]=a},Wi.getArrowheadGeometries=function(){var a=new Jn;for(E in $t.um)if(ku[E]===void 0){var y=Qe.parse($t.um[E],!1);ku[E]=y,y=E.toLowerCase(),y!==E&&(ku[y]=E)}for(var x in ku)if(x!==x.toLowerCase()){var E=ku[x];E instanceof Qe&&a.add(x,E)}return a.freeze(),a},Wi.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Qe.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Xt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=ku;E[a]=x,E[y]=a};function Ev(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=zi,this.gg=this.fg=$r}Ev.prototype.copy=function(){var a=new Ev;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function ho(a,y){return ie.call(this),Rm||(Ba=Qo?new Ll(null).context:null,Rm=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}we(ho,ie),ho.prototype.cloneProtected=function(a){ie.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function vu(a){a.da===null?a.da=new Nv:a.da.nc&&(a.da=a.da.copy())}Lt=ho.prototype,Lt.th=function(){ie.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function y1(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Lt.qb=function(a){a.classType===ho?this.wrap=a:ie.prototype.qb.call(this,a)},Lt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Lt.v=function(){ie.prototype.v.call(this)},Lt.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,E=this.actualBounds,b=x.width,z=x.height,tt=_g(this),rt=a.textAlign=this.textAlign,ot=y.tn;rt==="start"?rt=ot?"right":"left":rt==="end"&&(rt=ot?"left":"right"),ot=this.isUnderline;var at=this.isStrikethrough;Jo(this,a,this.xc,!0,!1,x,E),(ot||at)&&Jo(this,a,this.xc,!1,!1,x,E),E=0,x=!1;var ut=this.oe,ft=ut.dx-(tt*ut.m21+ut.dx);ut=ut.dy-(tt*ut.m22+ut.dy);var mt=y.scale;switch(8>(ft*ft+ut*ut)*mt*mt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Ya&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case yr:a.translate(b,0),a.scale(-1,1);break;case Ki:a.translate(0,z),a.scale(1,-1);break;case Zr:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,mt=(y+tt+ft)*ut,z>mt&&(E=this.verticalAlignment,E=E.y*z-E.y*mt+E.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>b&&(ft=b),this.Oj(this.ze,a,0,E+y,b,tt,ft,x,rt,ot,at);else if(this.Qc!==null&&this.Qb!==null)for(mt=0;mt<ut;mt++){var yt=this.Qc[mt];yt>b&&(yt=b),E+=y,this.Oj(this.Qb[mt],a,0,E,b,tt,yt,x,rt,ot,at),E+=tt+ft}switch(this.flip){case yr:a.scale(-1,1),a.translate(-b,0);break;case Ki:a.scale(1,-1),a.translate(0,-z);break;case Zr:a.scale(-1,-1),a.translate(-b,-z)}}},Lt.Oj=function(a,y,x,E,b,z,tt,rt,ot,at,ut){var ft=0;if(rt)ot==="left"?ft=0:ot==="right"?ft=b-tt:ot==="center"&&(ft=(b-tt)/2),y.fillRect(x+ft,E+.25*z,tt,1);else{if(ot==="left"?ft=0:ot==="right"?ft=b:ot==="center"&&(ft=b/2),b=Nm!==null?Nm(this,z):.75*z,y.fillText(a,x+ft,E+b),a=z/20|0,a===0&&(a=1),ot==="right"?ft-=tt:ot==="center"&&(ft-=tt/2),at){rt=Tm!==null?Tm(this,z):.8*z,ot=x+ft,at=E+rt,b=x+ft+tt,rt=E+rt;var mt=a;y.beginPath(),y.lineWidth=mt,y.moveTo(ot,at),y.lineTo(b,rt),y.stroke(),y.Se(),y instanceof Ya&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Ya&&y.ad.classList.add("gojs-td"))}},Lt.kk=function(a,y,x){if(!ie.prototype.kk.call(this,a,y,x))return!1;if(Jo(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)qy(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,qy(a,y,!0);return!0},Lt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:ie.prototype.nk.call(this,a)},Lt.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Lt.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Ba!==null&&L1!==z&&(L1=Ba.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var tt;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var rt=tt=0,ot=!1;!ot;){var at=z.indexOf(`
|
|
`,rt);at===-1&&(at=z.length,ot=!0),rt=z.substr(rt,at-rt),this.formatting===$g&&(rt=rt.trim()),tt=Math.max(tt,Hl(rt)),rt=at+1}z=tt}else tt=z.indexOf(`
|
|
`,0),0<=tt&&(z=z.substr(0,tt)),z=Hl(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),tt=x1(this,z),isNaN(this.desiredSize.height)?tt=Math.min(tt,y/this.scale):tt=this.desiredSize.height,ot=tt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Im&&(y=this.Ae,y=this.overflow===Im?S1(y):0,at=this.spacingAbove+this.spacingBelow,at=Math.max(0,_g(this)+at),ot=Math.min(this.maxLines-1,Math.max(Math.floor(ot/at+.01)-1,0)),!(ot+1>=this.Qb.length))){for(this.l|=16777216,at=this.Qb[ot],y=Math.max(1,a-y);Hl(at)>y&&1<at.length;)at=at.substr(0,at.length-1);at+=tp,y=Hl(at),this.Qb[ot]=at,this.Qb=this.Qb.slice(0,ot+1),this.Qc[ot]=y,this.Qc=this.Qc.slice(0,ot+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===w1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),tt=Math.max(E,tt),Hn(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},Lt.eh=function(a,y,x,E){la(this,a,y,x,E)};function qg(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Mv(a,y,x,E){var b=a.formatting===$g;b&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,_g(a)+rt);var ot=a.overflow===Im?S1(tt):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,rt);else if(tt=y,a.wrap===Fv){a.Le=1;var at=Hl(y);if(ot===0||at<=x)a.Cb=Math.max(a.Cb,at),qg(a,y,a.Cb),E!==null&&E.h(at,rt);else{for(z=Nf(a,tt),tt=tt.substr(z.length),y=Nf(a,tt),at=Hl(z+y);0<y.length&&at<=x;)z+=y,tt=tt.substr(y.length),y=Nf(a,tt),at=z+y,b&&(at=at.trim()),at=Hl(at);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-ot);Hl(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=tp;var ut=Hl(z);a.Cb=ut,qg(a,z,ut),E!==null&&E.h(ut,rt)}}else{for(ot=0,tt.length===0&&(ot=1,qg(a,tt,0));0<tt.length;){for(y=Nf(a,tt),tt=tt.substr(y.length);Hl(y)>x;){var ft=1;for(at=Hl(y.substr(0,ft)),ut=0;at<=x;)ft++,ut=at,at=Hl(y.substr(0,ft));if(ft===1){var mt=at;z=Math.max(z,at)}else mt=ut,z=Math.max(z,ut);if(ft--,1>ft&&(ft=1),qg(a,y.substr(0,ft),mt),ot++,y=y.substr(ft),a.Gc+ot>a.maxLines)break}for(ut=Nf(a,tt),at=Hl(y+ut);0<ut.length&&at<=x;)y+=ut,tt=tt.substr(ut.length),ut=Nf(a,tt),at=y+ut,b&&(at=at.trim()),at=Hl(at);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ut.length===0?(ft=at,z=Math.max(z,at)):(ft=ut=Hl(y),z=Math.max(z,ut)),qg(a,y,ft),ot++,a.Gc+ot>a.maxLines))break}a.Le=Math.min(a.maxLines,ot),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,rt*a.Le)}}function Nf(a,y){if(a.wrap===P1)return y.substr(0,1);for(var x=y.length,E=0,b=Sx;E<x&&!b.test(y.charAt(E));)E++;for(a.formatting===C1&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function Hl(a){return Ba===null?8*a.length:Ba.measureText(a).width}function _g(a){if(a.df!==null)return a.df;var y=a.Ae;if(Ba===null){var x=16;return a.df=x}return Bv[y]!==void 0&&5e3>A1?x=Bv[y]:(x=1.3*Ba.measureText("M").width,Bv[y]=x,A1++),a.df=x}function S1(a){if(Ba===null)return 6;if(Om[a]!==void 0&&5e3>Dv)var y=Om[a];else y=Ba.measureText(tp).width,Om[a]=y,Dv++;return y}function x1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,_g(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(`
|
|
`,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,tt,rt=!1;!rt;){if(tt=x.indexOf(`
|
|
`,z),tt===-1&&(tt=x.length,rt=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==Fv){a.Le=0;var ot=Yt.alloc();Mv(a,z,y,ot),b+=ot.height,Yt.free(ot),a.Gc+=a.Le}else Mv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=tt+1}return a.Lq=b}Ye.Object.defineProperties(ho.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(vu(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Ze},set:function(a){var y=this.flip;y!==a&&(vu(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Mo},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),vu(this),this.da.Yr=a,va(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Yt.alloc();Mv(this,this.ec,999999,a);var y=a.width;Yt.free(a),a=x1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Hn(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:kv},set:function(a){var y=this.wrap;y!==a&&(vu(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:bv},set:function(a){var y=this.overflow;y!==a&&(vu(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Tc(a,"TextBlock.stroke"),a instanceof Gr&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return _g(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(vu(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(vu(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new bu),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bu),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bu),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new bu),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new bu),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(vu(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(vu(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(vu(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(vu(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:$g},set:function(a){var y=this.formatting;y!==a&&(vu(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&Mn(a,"> 0",ho,"maxLines"),vu(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Nm=null,Tm=null,Fv=new Ee(ho,"None",0),w1=new Ee(ho,"WrapFit",1),kv=new Ee(ho,"WrapDesiredSize",2),P1=new Ee(ho,"WrapBreakAll",3),bv=new Ee(ho,"OverflowClip",0),Im=new Ee(ho,"OverflowEllipsis",1),$g=new Ee(ho,"FormatTrim",0),C1=new Ee(ho,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Bv=new fi,A1=0,Om=new fi,Dv=0,tp="...",L1="",Ba=null,Rm=!1;ho.className="TextBlock";function Nv(){this.nc=!1,this.Hd=null,this.Xf=Ze,this.gq=$g,this.Jq=1/0,this.$q=bv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Mo,this.$r=kv}Nv.prototype.copy=function(){var a=new Nv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},ho.getEllipsis=function(){return tp},ho.setEllipsis=function(a){tp=a,Om=new fi,Dv=0},ho.getBaseline=function(){return Nm},ho.setBaseline=function(a){Nm=a},ho.getUnderline=function(){return Tm},ho.setUnderline=function(a){Tm=a},ho.isValidFont=function(a){if(Rm||(Ba=Qo?new Ll(null).context:null,Rm=!0),Ba===null)return!0;var y=Ba.font;if(a===y||a==="10px sans-serif")return!0;Ba.font="10px sans-serif",Ba.font=a;var x=Ba.font;if(x!=="10px sans-serif")return Ba.font=y,!0;Ba.font="19px serif";var E=Ba.font;return Ba.font=a,x=Ba.font,Ba.font=y,x!==E},ho.FormatNone=C1,ho.FormatTrim=$g,ho.None=Fv,ho.OverflowClip=bv,ho.OverflowEllipsis=Im,ho.WrapBreakAll=P1,ho.WrapDesiredSize=kv,ho.WrapFit=w1;function bu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}bu.prototype.copy=function(){var a=new bu;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},bu.className="GradElementSettings";function Da(a,y){ie.call(this),this.Eg=null,this.qo="",this.Xg=ir,this.Nk=qe,this.Zg=this.Hd=null,this.Mk=Tn,this.Xf=Ze,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Tf;we(Da,ie),Da.prototype.cloneProtected=function(a){ie.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},Da.prototype.qb=function(a){a===Ze||a===Un||a===hr?this.imageStretch=a:ie.prototype.qb.call(this,a)},Da.prototype.toString=function(){return"Picture("+this.source+")#"+no(this)};function If(a){a===void 0&&(a=""),a!==""?Tf[a]&&(delete Tf[a],zm--):(Tf=new fi,zm=0)}function E1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var rt=tt.length,ot=0;ot<rt;ot++)z=tt[ot],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(fs(a,!1),a.v())},y.Yp=function(x){y.ln=x;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value,z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null){b=tt.length,z=On();for(var rt=0;rt<b;rt++)z.push(tt[rt]);if(y.hn)for(rt=0;rt<b;rt++)tt=z[rt],tt.Hd!==null&&tt.Hd(tt,x);Bn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Da.prototype.hA=function(){if(this.source!==""){If(this.source);var a=this.source;this.source="",this.source=a}},Da.prototype.redraw=function(){this.N(),this.Uc=!0},Da.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var E=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(E===null||E==="")||x.ln instanceof Event&&a instanceof Kd)){var b=a instanceof Ya;E=this.naturalBounds;var z=0,tt=0,rt=this.qn,ot=rt?+x.width:x.naturalWidth;if(rt=rt?+x.height:x.naturalHeight,ot===void 0&&x.videoWidth&&(ot=x.videoWidth),rt===void 0&&x.videoHeight&&(rt=x.videoHeight),ot=ot||E.width,rt=rt||E.height,ot!==0&&rt!==0){var at=ot,ut=rt;this.sourceRect.w()&&(z=this.Xg.x,tt=this.Xg.y,ot=this.Xg.width,rt=this.Xg.height);var ft=ot,mt=rt,yt=this.Nk,wt=this.Mk;switch(yt){case Ze:if(this.sourceRect.w())break;ft>=E.width&&(z=z+wt.offsetX+(ft*wt.x-E.width*wt.x)),mt>=E.height&&(tt=tt+wt.offsetY+(mt*wt.y-E.height*wt.y)),ot=Math.min(E.width,ft),rt=Math.min(E.height,mt);break;case qe:ft=E.width,mt=E.height;break;case Un:case hr:yt===Un?(yt=Math.min(E.height/mt,E.width/ft),ft*=yt,mt*=yt):yt===hr&&(yt=Math.max(E.height/mt,E.width/ft),ft*=yt,mt*=yt,ft>=E.width&&(z=(z+wt.offsetX+(ft*wt.x-E.width*wt.x)/ft)*ot),mt>=E.height&&(tt=(tt+wt.offsetY+(mt*wt.y-E.height*wt.y)/mt)*rt),ot*=1/(ft/E.width),rt*=1/(mt/E.height),ft=E.width,mt=E.height)}yt=this.Df()*y.scale;var Mt=ft*yt*mt*yt,Ht=ot*rt/Mt,It=x.__goCache;yt=null;var Zt=xx;if(!b){if(x.sq&&It!==void 0&&4<Mt&&Ht>Zt*Zt)for(It.gi===null&&(F1(It,4,at,ut,x),F1(It,16,at,ut,x)),b=It.gi,at=b.length,ut=0;ut<at&&b[ut].ratio*b[ut].ratio<Ht;ut++)yt=b[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new Ll(null).context;try{b.drawImage(this.Eg,0,0)}catch(Kt){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Kt){this.vl=!0}}if(this.vl)return}}switch(b=ft<E.width?wt.offsetX+(E.width*wt.x-ft*wt.x):0,wt=mt<E.height?wt.offsetY+(E.height*wt.y-mt*wt.y):0,this.flip){case yr:a.translate(Math.min(E.width,ft),0),a.scale(-1,1);break;case Ki:a.translate(0,Math.min(E.height,mt)),a.scale(1,-1);break;case Zr:a.translate(Math.min(E.width,ft),Math.min(E.height,mt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&It!==void 0&&yt!==null&&yt.ratio!==1){a.save(),y=yt.ratio;try{a.drawImage(yt.source,z/y,tt/y,Math.min(yt.source.width,ot/y),Math.min(yt.source.height,rt/y),b,wt,Math.min(E.width,ft),Math.min(E.height,mt)),a instanceof Ya&&(this.bt=[z/y,tt/y,Math.min(yt.source.width,ot/y),Math.min(yt.source.height,rt/y),b,wt,Math.min(E.width,ft),Math.min(E.height,mt)])}catch(Kt){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,ot,rt,b,wt,Math.min(E.width,ft),Math.min(E.height,mt)),a instanceof Ya&&(this.bt=[z,tt,ot,rt,b,wt,Math.min(E.width,ft),Math.min(E.height,mt)])}catch(Kt){this.en=!1}switch(this.flip){case yr:a.scale(-1,1),a.translate(-Math.min(E.width,ft),0);break;case Ki:a.scale(1,-1),a.translate(0,-Math.min(E.height,mt));break;case Zr:a.scale(-1,-1),a.translate(-Math.min(E.width,ft),-Math.min(E.height,mt))}}}}},Da.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=ba(this,!0),tt=this.Eg,rt=this.qn,ot=0,at=0;(rt||!this.al&&tt&&tt.complete)&&(this.al=!0),tt===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(ot=rt?+tt.width:tt.naturalWidth,at=rt?+tt.height:tt.naturalHeight),isFinite(b.width)||z===qe||z===_n?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:tt!==null&&(a=ot)),x=0):tt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:ot),isFinite(b.height)||z===qe||z===Si?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:tt!==null&&(y=at)),E=0):tt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:at),isFinite(b.width)&&(a=b.width),isFinite(b.height)&&(y=b.height),b=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),E=Math.max(E||0,z.height),a=Math.min(b.width,a),y=Math.min(b.height,y),a=Math.max(x,a),y=Math.max(E,y),tt===null||tt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Hn(this.dc,a,y),this.Ge(0,0,a,y)},Da.prototype.eh=function(a,y,x,E){la(this,a,y,x,E)},Ye.Object.defineProperties(Da.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||Xt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&Ng(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new en),E!==null&&x&&rd(E,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(fs(this,!1),this.v())):x&&E1(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=Tf;if(Qo){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<zm&&(If(),x=Tf),E=Pn("img"),E.hn=!0,E1(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,zm++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new M1),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),Da.prototype.redraw=Da.prototype.redraw,Da.prototype.reloadSource=Da.prototype.hA;var zm=0,xx=4;Da.className="Picture",Tf=new fi,Da.clearCache=If;function M1(){this.gi=null}function F1(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new Ll(null),tt=z.context,rt=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new k1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],b=x.source,x=x.ratio),tt.setTransform(rt*x,0,0,rt*x,0,0),tt.yc(),tt.drawImage(b,0,0),a.gi.push(y))}M1.className="PictureCacheArray";function k1(a,y){this.source=a,this.ratio=y}k1.className="PictureCacheInstance";function Of(){this.os=new Qe,this.mc=null}Of.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Qe,this.mc=null};function Rf(a,y,x,E,b,z){a.mc=new es,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),b!==void 0&&(a.mc.isShadowed=b)}function wx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Of.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new ur(ns);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},Of.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new ur(Qr);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function Lh(a,y,x,E,b,z,tt){var rt;rt===void 0&&(rt=!1);var ot=new ur(Cs);ot.point1X=y,ot.point1Y=x,ot.point2X=E,ot.point2Y=b,ot.endX=z,ot.endY=tt,rt&&ot.close(),a.mc.segments.add(ot)}function jm(a,y,x,E,b){var z;z===void 0&&(z=!1);var tt=new ur(fa);tt.point1X=y,tt.point1Y=x,tt.endX=E,tt.endY=b,z&&tt.close(),a.mc.segments.add(tt)}Of.prototype.arcTo=function(a,y,x,E,b,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var rt=new ur(qo);rt.startAngle=a,rt.sweepAngle=y,rt.centerX=x,rt.centerY=E,rt.radiusX=b,rt.radiusY=z!==0?z:b,tt&&rt.close(),this.mc.segments.add(rt)};function Px(a,y,x,E,b,z,tt,rt){var ot;ot===void 0&&(ot=!1),y=new ur(ga,tt,rt,y,x,E,b,z),ot&&y.close(),a.mc.segments.add(y)}function b1(a){var y=Hm;return y!==null?(Hm=null,y.reset(a),y):(y=new Of,y.reset(a),y)}var Hm=null;Of.className="StreamGeometryContext";function sa(a,y){var x=a.toLowerCase(),E=$t.Ze;E[a]=y,E[x]=a}sa("Rectangle",function(a,y,x){a="r"+y+","+x;var E=$t.Mf[a];return E!==void 0||(E=new Qe(Qe.u),E.endX=y,E.endY=x,$t.Nf<$t.vm&&($t.Mf[a]=E,$t.Nf++)),E}),sa("Square",function(a,y,x){a="s"+y+","+x;var E=$t.Mf[a];return E!==void 0||(E=new Qe(Qe.u),E.endX=y,E.endY=x,E.defaultStretch=Un,$t.Nf<$t.vm&&($t.Mf[a]=E,$t.Nf++)),E}),sa("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=$t.Mf[E];if(b!==void 0)return b;var z=a*$t.wg;return b=new Qe().add(new es(a,0,!0).add(new ur(Qr,y-a,0)).add(new ur(Cs,y,a,y-z,0,y,z)).add(new ur(Qr,y,x-a)).add(new ur(Cs,y-a,x,y,x-z,y-z,x)).add(new ur(Qr,a,x)).add(new ur(Cs,0,x-a,z,x,0,x-z)).add(new ur(Qr,0,a)).add(new ur(Cs,a,0,0,z,z,0).close())),1<z&&(b.spot1=new gn(0,0,z,z),b.spot2=new gn(1,1,-z,-z)),$t.Nf<$t.vm&&($t.Mf[E]=b,$t.Nf++),b}),sa("Border","RoundedRectangle"),sa("Ellipse",function(a,y,x){a="e"+y+","+x;var E=$t.Mf[a];return E!==void 0||(E=new Qe(Qe.F),E.endX=y,E.endY=x,E.spot1=so,E.spot2=ca,$t.Nf<$t.vm&&($t.Mf[a]=E,$t.Nf++)),E}),sa("Circle",function(a,y,x){a="c"+y+","+x;var E=$t.Mf[a];return E!==void 0||(E=new Qe(Qe.F),E.endX=y,E.endY=x,E.spot1=so,E.spot2=ca,E.defaultStretch=Un,$t.Nf<$t.vm&&($t.Mf[a]=E,$t.Nf++)),E}),sa("TriangleRight",function(a,y,x){return new Qe().add(new es(0,0).add(new ur(Qr,y,.5*x)).add(new ur(Qr,0,x).close())).pm(0,.25,.5,.75)}),sa("TriangleDown",function(a,y,x){return new Qe().add(new es(0,0).add(new ur(Qr,y,0)).add(new ur(Qr,.5*y,x).close())).pm(.25,0,.75,.5)}),sa("TriangleLeft",function(a,y,x){return new Qe().add(new es(y,x).add(new ur(Qr,0,.5*x)).add(new ur(Qr,y,0).close())).pm(.5,.25,1,.75)}),sa("TriangleUp",function(a,y,x){return new Qe().add(new es(y,x).add(new ur(Qr,0,x)).add(new ur(Qr,.5*y,0).close())).pm(.25,.5,.75,1)}),sa("Triangle","TriangleUp"),sa("Diamond",function(a,y,x){return new Qe().add(new es(.5*y,0).add(new ur(Qr,0,.5*x)).add(new ur(Qr,.5*y,x)).add(new ur(Qr,y,.5*x).close())).pm(.25,.25,.75,.75)}),sa("LineH",function(a,y,x){return a=new Qe(Qe.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),sa("LineV",function(a,y,x){return a=new Qe(Qe.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),sa("None","Rectangle"),sa("BarH","Rectangle"),sa("BarV","Rectangle"),sa("MinusLine","LineH"),sa("PlusLine",function(a,y,x){return new Qe().add(new es(0,x/2,!1).add(new ur(Qr,y,x/2)).add(new ur(ns,y/2,0)).add(new ur(Qr,y/2,x)))}),sa("XLine",function(a,y,x){return new Qe().add(new es(0,x,!1).add(new ur(Qr,y,0)).add(new ur(ns,0,0)).add(new ur(Qr,y,x)))}),sa("LineRight",function(a,y,x){return new Qe().add(new es(.25*y,0,!1).add(new ur(Qr,.75*y,.5*x)).add(new ur(Qr,.25*y,x)))}),sa("LineDown",function(a,y,x){return new Qe().add(new es(0,.25*x,!1).add(new ur(Qr,.5*y,.75*x)).add(new ur(Qr,y,.25*x)))}),sa("LineLeft",function(a,y,x){return new Qe().add(new es(.75*y,0,!1).add(new ur(Qr,.25*y,.5*x)).add(new ur(Qr,.75*y,x)))}),sa("LineUp",function(a,y,x){return new Qe().add(new es(0,.75*x,!1).add(new ur(Qr,.5*y,.25*x)).add(new ur(Qr,y,.75*x)))}),$t.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Tv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Dn,this.ir=null,this.jr="",this.lr=$r,this.Gq="",this.Hq=yi,this.Pq=ea,this.Kq=Js,this.Up=null,this.Cq=127,this.zr=vs,this.yr="gray",this.Vg=4}Tv.prototype.copy=function(){var a=new Tv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function oi(a,y){a===void 0||a instanceof Ss||typeof a=="string"?nn.call(this,a):(nn.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new Wt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new oe,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}we(oi,nn),oi.prototype.cloneProtected=function(a){nn.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},Lt=oi.prototype,Lt.Af=function(a){nn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Lt.toString=function(){var a=Kn(this.constructor)+"#"+no(this);return this.data!==null&&(a+="("+or(this.data)+")"),a};function Na(a){a.P===null?a.P=new Tv:a.P.nc&&(a.P=a.P.copy())}Lt.th=function(){nn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Lt.gk=function(a,y,x,E,b,z,tt){var rt=this.diagram;rt!==null&&(a===Io&&y==="elements"?b instanceof nn?Qd(b,function(ot){ay(rt.partManager,ot),Gd(rt,ot)}):rd(rt,b):a===is&&y==="elements"&&(b instanceof nn?Qd(b,function(ot){ly(rt.partManager,ot,rt)}):Ng(rt,b)),rt.cb(a,y,x,E,b,z,tt))},Lt.La=function(a){if(nn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b instanceof nn&&Qd(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},oi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},oi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},oi.prototype.bh=function(a,y){if(y!==null){var x=null,E=this.Qf;if(E!==null&&(x=E.I(a)),x!==y){if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}E===null&&(this.Qf=E=new Jn),y.Tf!==a&&(y.category=a),E.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},oi.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},oi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=On();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Bn(y)}},oi.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}t:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Ri?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ar))break t;El(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=nn.Link),x.adornedObject=y)}if(x!==null){x.type===nn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},oi.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Iv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Cx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Gm(a){if(ld(a)===!1){Rv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function B1(a){if(a.G|=2097152,ld(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||T1(a,y,x),x=a.Ib;var E=oe.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),oe.free(E),Rv(a,!1)}}oi.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new En);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},oi.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Tn;this.locationSpot.sb()&&(z=this.locationSpot);var tt=Wt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,tt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(tt),tt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(tt),tt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else tt.yi(y,x,E,b,z);a.rotate(this.Kb,tt.x,tt.y),Wt.free(tt)}},oi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},oi.prototype.moveTo=function(a,y,x){a=Wt.allocAt(a,y),this.move(a,x),Wt.free(a)},oi.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},oi.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},oi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Jn),y.I(a)!==null)return y.I(a);var x=nn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Eh(a,y,x,E){E===void 0&&(E=new Wt),x=x.Mc()?Tn:x;var b=y.naturalBounds;if(E.h(b.width*x.x+x.offsetX,b.height*x.y+x.offsetY),y===null||y===a)return E;for(y.transform.Ga(E),y=y.panel;y!==null&&y!==a;)y.transform.Ga(E),y=y.panel;return a.Lb!==null&&a.Lb.Ga(E),E.offset(-a.uc.x,-a.uc.y),E}oi.prototype.mi=function(a){return a===void 0&&(a=new oe),a.assign(this.actualBounds)},oi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function D1(a){var y=Wt.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof Wi?x.strokeWidth:0;if(y.yi(0,0,E.width+b,E.height+b,a.locationSpot),x!==a)for(y.offset(-b/2,-b/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function _d(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=u1(a));var E=a.ag,b=2*E;if(!a.isShadowed)return x.h(y.x-1-E,y.y-1-E,y.width+2+b,y.height+2+b),x;E=y.x,b=y.y;var z=y.width;y=y.height;var tt=a.shadowBlur;return a=a.shadowOffset,z+=tt,y+=tt,E-=tt/2,b-=tt/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),x.h(E-1,b-1,z+2,y+2),x}oi.prototype.arrange=function(){if(ya(this)===!1)B1(this);else{Eu(this,!1);var a=this.Ib,y=oe.alloc();y.assign(a);var x=ud(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;T1(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||$t.B(y.width,a.width)&&$t.B(y.height,a.height)||0<=this.vw&&this.C(16),oe.free(y),Rv(this,!1)}},Lt=oi.prototype,Lt.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=oe.alloc();b.assign(x.documentBounds),b.Fv(x.padding),a.x>b.x&&a.y>b.y&&a.right<b.right&&a.bottom<b.bottom&&y.x>b.x&&y.y>b.y&&y.right<b.right&&y.bottom<b.bottom&&(E=!0),oe.free(b)}!(this.G&65536)&&a.D(y)||R1(this,E,x),x.N(),!a.w()&&!y.w()||In(a,y)||(this instanceof yn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Lt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&N1(this,E,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new Wt(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),ld(this)===!1&&ya(this)===!1&&(Gm(this),B1(this)),!0};function N1(a,y,x,E,b){y===null||a instanceof Ar||(y=y.animationManager,y.zb&&lf(y,a,new Wt(E,b),x))}Lt.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;ld(this)||ya(this)?b.h(NaN,NaN):b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}else{if(b.x===a&&b.y===y)return;E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}Gm(this)},Lt.Av=function(){this.G&=-2097153,Gm(this)};function T1(a,y,x){var E=D1(a),b=a.diagram,z=x.w(),tt=y.w();z&&tt?a.G&2097152?I1(a,y,x,b,E):O1(a,y,x,b,E):z?I1(a,y,x,b,E):tt&&O1(a,y,x,b,E),a.G|=2097152,Wt.free(E),a.Uk()}function I1(a,y,x,E,b){var z=y.x,tt=y.y;y.h(x.x-b.x,x.y-b.y),E!==null&&(x=E.animationManager,(E=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Ar||lf(x,a,new Wt(z,tt),y),E||y.x===z&&y.y===tt||a.g("position",new Wt(z,tt),y.copy()))}function O1(a,y,x,E,b){var z=x.copy();x.h(y.x+b.x,y.y+b.y),x.D(z)||E===null||a.g("location",z,x.copy())}function R1(a,y,x){zv(a,!1),a instanceof yn&&Sh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?ud(a)?(pi(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Lt.si=function(){return!0},Lt.Zc=function(){return!0},Lt.ph=function(){return!1},Lt.Dd=function(){return!0};function Ov(a,y,x,E){y.constructor===a.constructor||H1||(H1=!0,wn('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),wn(" Old class: "+Kn(a.constructor)+", new class: "+Kn(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;x=a.layerName;var z=a.isSelected,tt=a.isHighlighted,rt=!0,ot=!0,at=!1;a instanceof yn&&(rt=a.isTreeLeaf,ot=a.isTreeExpanded,at=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=E,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,E=!0,y!==null&&(E=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=b,a.G=z?a.G|4096:a.G&-4097,a.G=tt?a.G|524288:a.G&-524289,a instanceof yn&&(a.U=rt?a.U|4:a.U&-5,a.U=ot?a.U|1:a.U&-2,a.U=at?a.U|2:a.U&-3),b!==null&&a.La(),b=a.layerName,b!==x&&(a.Jg=x,a.layerName=b),y!==null&&(y.skipsUndoManager=E),a.Zc()&&a.C(64)}oi.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},oi.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},oi.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},oi.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},oi.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},oi.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},oi.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},oi.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},oi.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function ld(a){return(a.G&32768)!==0}function Rv(a,y){a.G=y?a.G|32768:a.G&-32769}function zv(a,y){a.G=y?a.G|65536:a.G&-65537}function ud(a){return(a.G&131072)!==0}Lt=oi.prototype,Lt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Wm(a,y){a.G=y?a.G|1048576:a.G&-1048577}Lt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Lt.N=function(){var a=this.diagram;a!==null&&!ya(this)&&!ld(this)&&this.isVisible()&&this.Ib.w()&&a.N(_d(this,this.Ib))},Lt.v=function(){nn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof yn&&this.labeledLink!==null&&va(this.labeledLink),a.$b(!0))},Lt.Vo=function(a){a||(a=this.Ah,a!==null&&Yv(a,this))},Lt.Wo=function(a){a||(a=this.Ah,a!==null&&Zv(a,this))},Lt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Lt.oz=function(){return jv(this,this)};function jv(a,y){var x=y.containingGroup;return x!==null?1+jv(a,x):y instanceof yn&&(y=y.labeledLink,y!==null)?jv(a,y):0}Lt.sz=function(){return z1(this,this)};function z1(a,y){var x=y.containingGroup;return x!==null||y instanceof yn&&(x=y.labeledLink,x!==null)?z1(a,x):y}Lt.Td=function(a){return a instanceof Ri?Hv(this,this,a):!1};function Hv(a,y,x){if(y===x||x===null)return!1;var E=y.containingGroup;return E===null||E!==x&&!Hv(a,E,x)?y instanceof yn&&(y=y.labeledLink,y!==null)?Hv(a,y,x):!1:!0}Lt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Ri&&Wm(y,!0),y instanceof yn){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof yn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Ri&&Wm(y,!1),y instanceof yn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},oi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof yn&&this.isLinkLabel)},oi.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof yn&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function j1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function hd(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Ar)){if(a.add(y),y instanceof yn){if(x&&y instanceof Ri)for(var tt=y.memberParts;tt.next();)hd(a,tt.value,x,E,b,z);if(b!==!1)for(tt=y.linksConnected;tt.next();){var rt=tt.value;if(!a.contains(rt)){var ot=rt.fromNode,at=rt.toNode;ot=ot===null||a.contains(ot),at=at===null||a.contains(at),(b?ot&&at:ot||at)&&hd(a,rt,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)hd(a,y.value,x,E-1,b,z)}else if(y instanceof un)for(y=y.labelNodes;y.next();)hd(a,y.value,x,E,b,z)}}Ye.Object.defineProperties(oi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Nr:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var E=y.pc(-1,this,!0);if(0<=E&&x.cb(is,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(Io,"parts",a,null,this,!0,E),E=this.layerChanged,E!==null){var b=x.aa;x.aa=!0,E(this,y,a),x.aa=b}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Na(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&df(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof Ar?this.type!==nn.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:ea},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Na(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Js},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Na(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(Na(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:yi},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Na(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,E=this.ke;if(!(E.x===y||isNaN(E.x)&&isNaN(y))||!(E.y===x||isNaN(E.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,ya(this)===!1&&(Gm(this),x=this.pa,x.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-E.x),x.y+(y.y-E.y)),N1(this,b,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",E,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,E=this.data,b=null;if(x!==null&&E!==null&&!(this instanceof Ar)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(b=this.clone(),b.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||E===null||this instanceof Ar?this instanceof Ar&&(b=this.adornedPart,b!==null&&(a=b.Qf,a!==null&&a.remove(y),b.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(E,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(El(x),x=x.copy(),x!==null&&Ov(this,x,y,a))):(z!==null&&z.jm(E,a),x=dS(x.partManager,E,a),x!==null&&(El(x),x=x.copy(),x===null||x instanceof un||(E=this.location.copy(),Ov(this,x,y,a),this.location.w()||(this.location=E)))),b!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",b,y))))}}},self:{get:function(){return this},set:function(a){Ov(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Na(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Na(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Na(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof un?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Na(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Na(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Na(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Dn},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Na(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Na(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Na(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:$r},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Na(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&Xt("Cannot make a Group a member of itself: "+this.toString()),Xt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Zv(y,this):this instanceof Ri&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Yv(a,this):this instanceof Ri&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Ri){for(x=new en,hd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof yn)for(E=E.linksConnected;E.next();)zf(E.value)}if(this instanceof yn){for(x=this.linksConnected;x.next();)zf(x.value);x=this.labeledLink,x!==null&&zf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&df(y,-1,a))}}else Xt("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Na(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof yn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Na(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Na(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:vs},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Na(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Na(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Na(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),oi.prototype.invalidateLayout=oi.prototype.C,oi.prototype.findCommonContainingGroup=oi.prototype.px,oi.prototype.isMemberOf=oi.prototype.Td,oi.prototype.findTopLevelPart=oi.prototype.sz,oi.prototype.findSubGraphLevel=oi.prototype.oz,oi.prototype.ensureBounds=oi.prototype.Va,oi.prototype.getDocumentBounds=oi.prototype.mi,oi.prototype.findObject=oi.prototype.fb,oi.prototype.moveTo=oi.prototype.moveTo,oi.prototype.invalidateAdornments=oi.prototype.Wb,oi.prototype.clearAdornments=oi.prototype.Ej,oi.prototype.removeAdornment=oi.prototype.Jf,oi.prototype.addAdornment=oi.prototype.bh,oi.prototype.findAdornment=oi.prototype.Pj,oi.prototype.updateTargetBindings=oi.prototype.La;var H1=!1;oi.className="Part",oi.LayoutNone=0,oi.LayoutAdded=1,oi.LayoutRemoved=2,oi.LayoutShown=4,oi.LayoutHidden=8,oi.LayoutNodeSized=16,oi.LayoutGroupLayout=32,oi.LayoutNodeReplaced=64,oi.LayoutStandard=127,oi.LayoutAll=16777215;function Ar(a,y){a===void 0||a instanceof Ss||typeof a=="string"?oi.call(this,a):(oi.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}we(Ar,oi),Ar.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ar.prototype.updateRelationshipsFromData=function(){},Ar.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof un&&y instanceof Wi){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;E<y;E++){var b=x[E];b.isPanelMain&&b instanceof Wi&&(b.ua=a)}}},Ar.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!ya(a))},Ar.prototype.Zc=function(){return!1},Ar.prototype.gk=function(a,y,x,E,b,z,tt){if(a===Io&&y==="elements"){if(b instanceof xa)this.$a===null&&(this.$a=b);else if(b instanceof nn){var rt=b.Nl(function(ot){return ot instanceof xa});rt instanceof xa&&this.$a===null&&(this.$a=rt)}}else a===is&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof nn&&this.$a.rg(E)&&(this.$a=null));oi.prototype.gk.call(this,a,y,x,E,b,z,tt)},Ar.prototype.updateAdornments=function(){},Ar.prototype.Lj=function(){},Ye.Object.defineProperties(Ar.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Ar.className="Adornment";function Gv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Vi,this.er=Zm,this.Kr=this.ij=this.Nq=this.Mq=null}Gv.prototype.copy=function(){var a=new Gv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function yn(a,y){a===void 0||a instanceof Ss||typeof a=="string"?oi.call(this,a):(oi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new rn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}we(yn,oi),yn.prototype.cloneProtected=function(a){oi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Lt=yn.prototype,Lt.Af=function(a){oi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Mh(a){a.Ba===null?a.Ba=new Gv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Lt.th=function(){oi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function G1(a,y){y!==null&&(a.af===null&&(a.af=new en),a.af.add(y))}function W1(a,y,x,E){if(y===null||a.af===null)return null;for(var b=a.af.iterator;b.next();){var z=b.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===E||z.Ds===y&&z.cv===a&&z.Ox===E&&z.Px===x)return z}return null}Lt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=W1(this,a,y,x),a!==null&&a.Sl()},Lt.gk=function(a,y,x,E,b,z,tt){a===Io&&y==="elements"?this.wc=null:a===is&&y==="elements"&&(this.wc=null),oi.prototype.gk.call(this,a,y,x,E,b,z,tt)},Lt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Za(x.fromPort),Za(x.toPort),x.bb())}};function V1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Za(x.fromPort),Za(x.toPort),x.bb())}}function Za(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Za(y.port)}}Lt.si=function(){return!0},yn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},yn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},yn.prototype.isVisible=function(){if(!oi.prototype.isVisible.call(this))return!1;var a=!0,y=wh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===wh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===cs){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===Cf&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},yn.prototype.Zb=function(a){oi.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var E=x.To(this);E===null||E.Td(this.containingGroup)||x.bb()}x.Zb(a)}},yn.prototype.qx=function(){var a=new en,y=new en;return Y1(this,this,a,y),y.iterator};function Y1(a,y,x,E){if(y!==null&&!x.has(y)){x.add(y);var b=!0,z=a.diagram;z!==null&&(b=z.isTreePathToChildren),y.linksConnected.each(function(tt){tt.isTreeLink?(b?tt.fromNode===y:tt.toNode===y)&&Y1(a,b?tt.toNode:tt.fromNode,x,E):E.add(tt)})}}yn.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new br(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},Lt=yn.prototype,Lt.Mo=function(a){a===void 0&&(a=null);var y=new br(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},Lt.Sd=function(a){a===void 0&&(a=null);var y=new br(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},Lt.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new en,y.add(x),y.add(b)):x=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new en,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new wr(x):Nr},Lt.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new en,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new wr(x):Nr},Lt.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new en,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new wr(x):Nr},Lt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new br(this.jb),b=this;return E.predicate=function(z){return!((z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==b||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},E},Lt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new br(this.jb),b=this;return E.predicate=function(z){return!(z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},E};function Vm(a,y,x){Za(x);var E=a.jb.contains(y);if(E||a.jb.add(y),!E||y.fromNode===y.toNode){var b=a.linkConnected;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,y,x),tt!==null&&(tt.aa=z)}}!E&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(E=!0,a=a.diagram,a!==null&&(E=a.isTreePathToChildren),b=E?y:x,z=E?x:y,b.ci||(b.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(E?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Ym(a,y,x){Za(x);var E=a.jb.remove(y),b=null;if(E||y.toNode===y.fromNode){var z=a.linkDisconnected;if(b=a.diagram,z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(a,y,x),b!==null&&(b.aa=tt)}}E&&y.isTreeLink&&(x=!0,b!==null&&(x=b.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,b!==null&&b.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):ep(y)))}function ep(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink){if(y){if(E.fromNode===a){a.isTreeLeaf=!1;return}}else if(E.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}yn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Lt=yn.prototype,Lt.Vo=function(a){oi.prototype.Vo.call(this,a),a||(ep(this),a=this.Yk,a!==null&&$1(a,this))},Lt.Wo=function(a){oi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Lt.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var E=x.value;y?a.remove(E):(E.fromNode===this&&(E.fromNode=null),E.toNode===this&&(E.toNode=null))}}this.labeledLink=null,oi.prototype.Lj.call(this)},Lt.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;Z1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function Z1(a){a.wc===null?a.wc=new Jn:a.wc.clear(),a.qm(a,function(y,x){U1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function U1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Wv(a,y,x){var E=y.portId;if(E!==null&&(a.wc!==null&&a.wc.remove(E),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(E);a.next();)E=a.value,x===null&&(x=On()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Bn(x)}}}Lt.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var E=x.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink&&(y=b.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,E=x.jb.iterator;E.next()&&(b=E.value,!b.isTreeLink||(y=b.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Lt.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink&&(a=E.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(E=x.value,!E.isTreeLink||(a=E.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Lt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Wm(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)Wm(y,!1),y=y.pg();return x},Lt.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},Lt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof yn)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},Lt.vz=function(){function a(x,E){E.add(x);var b=x.kh();b!==null&&(E.add(b),x=x.pg(),x!==null&&a(x,E))}var y=new en;return a(this,y),y},Lt.uz=function(){return X1(this,this)};function X1(a,y){return y=y.pg(),y===null?0:1+X1(a,y)}Lt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new br(this.jb);var x=this;return y.predicate=a?function(E){return!!(E.isTreeLink&&E.fromNode===x)}:function(E){return!!(E.isTreeLink&&E.toNode===x)},y},Lt.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,E=this.jb.iterator;if(a)for(;E.next();)a=E.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new rn,y.add(x),y.add(a)):x=a);else for(;E.next();)a=E.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new rn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new wr(x):Nr},Lt.wz=function(a){a===void 0&&(a=1/0);var y=new en;return hd(y,this,!1,a,!0),y},yn.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new en;x.add(this),K1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===wh),y.Ue=!1}};function K1(a,y,x,E,b,z,tt){if(1<E)for(var rt=x?a.Mo():a.Sd();rt.next();){var ot=rt.value;ot.isTreeLink&&(ot=ot.To(a),ot===null||ot===a||y.contains(ot)||(y.add(ot),K1(ot,y,x,E-1,b,z,tt)))}else Q1(a,y,x,b,z,tt)}function Q1(a,y,x,E,b,z){for(var tt=b===a?!0:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),ot={};rt.next();){var at=rt.value;if(at.isTreeLink&&(at=at.To(a),at!==null&&at!==a)){var ut=y.contains(at);if(ut||y.add(at),tt){var ft=x?at.Oo():at.Po();ot.uv=a,ft.all(function(mt){return function(yt){return yt===mt.uv||!yt.isTreeExpanded}}(ot))&&E.Aj(at,b),at.oh(),at.Zb(!1)}at.isTreeExpanded&&(at.wasTreeExpanded=at.isTreeExpanded,ut||Q1(at,y,x,E,b,z))}ot={uv:ot.uv}}a.isTreeExpanded=!1}yn.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new en;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===wh),y.Ue=!1}};function J1(a,y,x,E,b,z,tt){for(var rt=z===a?!1:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),at={};ot.next();){var ut=ot.value;if(ut.isTreeLink&&(rt||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!rt){ut.Zb(!0),ut.oh();var ft=x?ut.Oo():ut.Po();at.vv=a,ft.all(function(mt){return function(yt){return yt===mt.vv||!yt.isTreeExpanded}}(at))&&b.Cj(ut,z)}(2<E||ut.wasTreeExpanded)&&(ut.wasTreeExpanded=!1,J1(ut,y,x,E-1,b,z,tt))}at={vv:at.vv}}a.isTreeExpanded=!0}Ye.Object.defineProperties(yn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Zm},set:function(a){var y=this.portSpreading;y!==a&&(Mh(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&Sh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Vi},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Mh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Sh(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Mh(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Mh(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Mh(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&E!==null&&!x.undoManager.isUndoingRedoing){var b=y.data,z=x.model;if(b!==null&&z.ri()){var tt=z.wa(E);tt!==void 0&&z.Qx(b,tt)}}this.containingGroup=null}this.Yk=a,a!==null&&($1(a,this),x===null||E===null||x.undoManager.isUndoingRedoing||(b=a.data,x=x.model,b!==null&&x.ri()&&(E=x.wa(E),E!==void 0&&x.Bu(b,E))),this.containingGroup=a.containingGroup),va(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&Z1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Mh(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),yn.prototype.expandTree=yn.prototype.expandTree,yn.prototype.collapseTree=yn.prototype.collapseTree,yn.prototype.findTreeParts=yn.prototype.wz,yn.prototype.findTreeChildrenNodes=yn.prototype.Ou,yn.prototype.findTreeChildrenLinks=yn.prototype.Qo,yn.prototype.findTreeLevel=yn.prototype.uz,yn.prototype.findTreeParentChain=yn.prototype.vz,yn.prototype.findTreeParentNode=yn.prototype.pg,yn.prototype.findTreeParentLink=yn.prototype.kh,yn.prototype.findCommonTreeParent=yn.prototype.gz,yn.prototype.findTreeRoot=yn.prototype.xz,yn.prototype.isInTreeOf=yn.prototype.Nz,yn.prototype.findPort=yn.prototype.ns,yn.prototype.findLinksTo=yn.prototype.kz,yn.prototype.findLinksBetween=yn.prototype.jz,yn.prototype.findNodesInto=yn.prototype.Oo,yn.prototype.findNodesOutOf=yn.prototype.Po,yn.prototype.findNodesConnected=yn.prototype.Mu,yn.prototype.findLinksInto=yn.prototype.Sd,yn.prototype.findLinksOutOf=yn.prototype.Mo,yn.prototype.findExternalTreeLinksConnected=yn.prototype.qx,yn.prototype.invalidateConnectedLinks=yn.prototype.Bd,yn.prototype.invalidateLinkBundle=yn.prototype.Lz;var Ax=new Ee(yn,"SpreadingNone",10),Zm=new Ee(yn,"SpreadingEvenly",11),Vv=new Ee(yn,"SpreadingPacked",12);yn.className="Node",yn.SpreadingNone=Ax,yn.SpreadingEvenly=Zm,yn.SpreadingPacked=Vv;function Ri(a,y){a===void 0||a instanceof Ss||typeof a=="string"?yn.call(this,a):(yn.call(this),a&&(y=a)),this.U|=4608,this.Gn=new en,this.$a=null,this.Sc=new Do,this.Sc.group=this,this.gl=new en,this.tb=this.$p=null,y&&Object.assign(this,y)}we(Ri,yn),Ri.prototype.cloneProtected=function(a){yn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof xa});y instanceof xa?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},Lt=Ri.prototype,Lt.Af=function(a){yn.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof yn)x.Bd(y);else if(x instanceof un)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Lt.gk=function(a,y,x,E,b,z,tt){if(a===Io&&y==="elements"){if(b instanceof xa)this.$a===null?this.$a=b:this.$a!==b&&Xt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof nn){var rt=b.Nl(function(ot){return ot instanceof xa});rt instanceof xa&&(this.$a===null?this.$a=rt:this.$a!==rt&&Xt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===is&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof nn&&this.$a.rg(E)&&(this.$a=null));yn.prototype.gk.call(this,a,y,x,E,b,z,tt)},Lt.Xl=function(a,y){yn.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==nn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof nn&&(a=a.Pb()),this.tb===null&&(this.tb=new oe),a.mi(this.tb),a instanceof Wi&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Lt.eh=function(a,y,x,E){this.nf=this.$a,yn.prototype.eh.call(this,a,y,x,E)},Lt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof un||y.Va()}),yn.prototype.Va.call(this)},Lt.si=function(){if(!yn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof yn){if(y.isVisible()&&ya(y))return!1}else if(y instanceof un&&y.isVisible()&&ya(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Yv(a,y){if(a.Gn.add(y)){y instanceof Ri&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof un&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Zv(a,y){if(a.Gn.remove(y)){y instanceof Ri&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof un&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Lt.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}yn.prototype.Lj.call(this)},Ri.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Fe(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Ri.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=Fe(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Ri.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},Lt=Ri.prototype,Lt.Bd=function(a){var y=(this.U&65536)!==0;if(yn.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var E=x.fromNode;E!==null&&E!==this&&E.Td(this)&&!E.isVisible()?(Za(x.fromPort),Za(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(Za(x.fromPort),Za(x.toPort),x.bb()))}}},Lt.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new en,E=y.iterator;E.next();){var b=E.value;if(b instanceof yn)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Lt.iz=function(){var a=this.Rj();a.add(this);for(var y=new en,x=a.iterator;x.next();){var E=x.value;if(E instanceof yn)for(E=E.linksConnected;E.next();){var b=E.value,z=b.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),b=b.toNode,b===null||a.contains(b)&&b!==this||y.add(b)}}return y.iterator},Lt.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new en;return a(this,y),y},Lt.Rj=function(){var a=new en;return hd(a,this,!0,0,!0),a.remove(this),a},Lt.Zb=function(a){yn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Ri.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();q1(this,y,a,this),a.Ue=!1}};function q1(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof Ri&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,q1(z,y,x,E)),z instanceof yn)z.Bd(y),x.Aj(z,E);else if(z instanceof un)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Ri.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();_1(this,y,a,this),a.Ue=!1}};function _1(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof Ri&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,_1(z,y,x,E)),z instanceof yn)z.Bd(y),x.Cj(z,E);else if(z instanceof un)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Ri.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,E=x.x;x=x.y;var b=a.x,z=a.y;if(!(E===b||isNaN(E)&&isNaN(b))||!(x===z||isNaN(x)&&isNaN(z))){for(E=b-(isNaN(E)?0:E),x=z-(isNaN(x)?0:x),z=Wt.alloc(),yn.prototype.move.call(this,a,y),a=new en,y=this.Rj().iterator;y.next();)b=y.value,b instanceof un&&(b.suspendsRouting&&a.add(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(b.suspendsRouting=!0);for(y.reset();y.next();)if(b=y.value,!(b.ph()||b instanceof yn&&b.isLinkLabel)){var tt=b.position,rt=b.location;tt.w()?(z.x=tt.x+E,z.y=tt.y+x,b.position=z):rt.w()&&(z.x=rt.x+E,z.y=rt.y+x,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof un&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(tt=b.position,z.x=tt.x+E,z.y=tt.y+x,z.w()?b.move(z):b.bb(),Xv(b)&&b.bb());Wt.free(z)}},Ye.Object.defineProperties(Ri.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&Xt("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Mh(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(Mh(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(Mh(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(b){b.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Mh(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),Ri.prototype.expandSubGraph=Ri.prototype.expandSubGraph,Ri.prototype.collapseSubGraph=Ri.prototype.collapseSubGraph,Ri.prototype.findSubGraphParts=Ri.prototype.Rj,Ri.prototype.findContainingGroupChain=Ri.prototype.hz,Ri.prototype.findExternalNodesConnected=Ri.prototype.iz,Ri.prototype.findExternalLinksConnected=Ri.prototype.Lu,Ri.prototype.ensureBounds=Ri.prototype.Va,Ri.className="Group";function xa(a){ie.call(this),this.yb=tr,this.ko=new oe(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}we(xa,ie),xa.prototype.cloneProtected=function(a){ie.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},xa.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return ui(0,0,y.width,y.height,a.x,a.y)},xa.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Ri||a instanceof Ar)||Xt("Placeholder is not inside a Group or Adornment."),a instanceof Ri){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(Hn(E,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,E.width,E.height),E=a.memberParts,x=!1;E.next();)if(E.value.isVisible()){x=!0;break}E=a.diagram,!x||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Wt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Wt.free(x))}else{y=this.dc,x=this.yb,E=x.left+x.right;var b=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var tt=0;z instanceof Wi&&(tt=z.strokeWidth);var rt=z.Df(),ot=z.naturalBounds,at=(ot.width+tt)*rt;tt=(ot.height+tt)*rt,a.type!==nn.Link&&(rt=z.ga(a.category==="Selection"?yi:a.locationSpot,Wt.alloc()),a.location=rt,Wt.free(rt)),isNaN(at)||isNaN(tt)?(a=z.ga(yi,Wt.alloc()),at=oe.allocAt(a.x,a.y,0,0),at.Ye(z.ga(rr,a)),at.Ye(z.ga(mi,a)),at.Ye(z.ga(Er,a)),Hn(y,at.width+E||0,at.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),Wt.free(a),oe.free(at)):(Hn(y,at+E||0,tt+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},xa.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},xa.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Ri&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var b=x.toolManager.findTool("Dragging");if(b===x.currentTool&&(x=b.computeBorder(y,this.ko,a),x!==null))return x}x=oe.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Ri&&!y.isSubGraphExpanded?a.h(b.x-z.left,b.y-z.top,0,0):a.h(b.x-z.left,b.y-z.top,Math.max(b.width+z.left+z.right,0),Math.max(b.height+z.top+z.bottom,0)),oe.free(x),E&&y instanceof Ri&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},xa.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Ri))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,E=1/0,b=-1/0,z=-1/0,tt=y.memberParts;tt.next();){var rt=tt.value;if(rt.isVisible()){if(rt instanceof un&&(!y.computesBoundsIncludingLinks||tl(rt)||rt.fromNode===y||rt.toNode===y))continue;rt=rt.actualBounds,rt.left<x&&(x=rt.left),rt.top<E&&(E=rt.top),rt.right>b&&(b=rt.right),rt.bottom>z&&(z=rt.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},Ye.Object.defineProperties(xa.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),xa.className="Placeholder";function un(a){oi.call(this,nn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=wa,this.Om=0,this.Qm=wa,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new rn().freeze(),this.Tg=this.Mg=null,this.ml=new oe,this.ua=new Qe,this.u=this.o=this.Sf=this.Wf=null,this.su=new Wt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}we(un,oi),un.prototype.cloneProtected=function(a){oi.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Lt=un.prototype,Lt.Af=function(a){oi.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Za(y),a=a.toPort,a!==null&&Za(a)},Lt.qb=function(a){a.classType===un?(a.value&2)===2?this.routing=a:a===nl||a===kh||a===Hf?this.curve=a:a===rp||a===qm||a===_m?this.adjusting=a:a!==Jv&&a!==wa&&Xt("Unknown Link enum value for a Link property: "+a):oi.prototype.qb.call(this,a)},Lt.Xc=function(){this.ba===null&&(this.ba=new Yg)},Lt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),ya(a)||ld(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ya(a)||ld(a)))},Lt.zv=function(){return!1},Lt.Av=function(){},Lt.Zc=function(){return!1},un.prototype.computeAngle=function(a,y,x){return un.computeAngle(y,x)},un.computeAngle=function(a,y){switch(a){default:case wa:a=0;break;case op:a=y;break;case sp:a=y+90;break;case ap:a=y-90;break;case qv:a=y+180;break;case $m:a=$t.bp(y),90<a&&270>a&&(a-=180);break;case lp:a=$t.bp(y+90),90<a&&270>a&&(a-=180);break;case up:a=$t.bp(y-90),90<a&&270>a&&(a-=180);break;case t0:if(a=$t.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return $t.bp(a)};function zf(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Zv(x,a),a.Ah=y,y!==null&&Yv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Lt=un.prototype,Lt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&oi.prototype.oh.call(this)},Lt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Lt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $1(a,y){a.wd===null&&(a.wd=new en),a.wd.add(y),a.v()}Lt.Vo=function(a){if(oi.prototype.Vo.call(this,a),$d(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Vm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Vm(x,this,E)}np(this)}},Lt.Wo=function(a){if(oi.prototype.Wo.call(this,a),$d(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Ym(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Ym(x,this,E)}ip(this)}},Lt.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},un.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},un.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?oi.prototype.move.call(this,a,!1):(a=Wt.allocAt(x.x+E,x.y+b),oi.prototype.move.call(this,a,!1),Wt.free(a)),Fh(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},un.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},un.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},un.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ro),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===nl))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===nl){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return $t.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),$t.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;E<x/2&&z<y&&(b=tt[z],!(E+b>x/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},un.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===nl))return this.ua.wx(.5);if(this.computeCurve()===nl&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),$t.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,E=this.flattenedTotalLength;var b=0;x=0;for(var z;b<E/2&&x<a&&(z=y[x],!(b+z>E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Lt=un.prototype,Lt.i=function(a){return this.Nb.s[a]},Lt.dd=function(a,y){this.Nb.cd(a,y)},Lt.L=function(a,y,x){this.Nb.cd(a,new Wt(y,x))},Lt.Kz=function(a,y){this.Nb.Gb(a,y)},Lt.m=function(a,y,x){this.Nb.Gb(a,new Wt(y,x))},Lt.ne=function(a){this.Nb.add(a)},Lt.yf=function(a,y){this.Nb.add(new Wt(a,y))},Lt.pv=function(a){this.Nb.mb(a)},Lt.Fj=function(){this.Nb.clear()};function Fh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new rn,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Wt(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),va(a)),E?Um(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&hf(tt.animationManager,a,b),a.g("points",z,b)}}Lt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Lt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;tt<z;tt++){var rt=b[tt];x=Math.min(rt.x,x),E=Math.min(rt.y,E)}rt=tt=1/0;for(var ot=y.s,at=ot.length,ut=0;ut<at;ut++){var ft=ot[ut];tt=Math.min(ft.x,tt),rt=Math.min(ft.y,rt),ft.freeze()}if(y.freeze(),at===z){for(z=0;z<at;z++)if(ut=b[z],ft=ot[z],ut.x-x!==ft.x-tt||ut.y-E!==ft.y-rt){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&hf(x.animationManager,this,y),Um(this),this.g("points",a,y)}},Lt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Um(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),Jm(a,!1))}Lt.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},Lt.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},un.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Rc||(Rc=new yn,Rc.desiredSize=de,Rc.Va()),this.defaultFromPoint&&(Rc.location=this.defaultFromPoint,Rc.Va(),y=a=Rc)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var E=this.toNode,b=null;if(E===null?(zc||(zc=new yn,zc.desiredSize=de,zc.Va()),this.defaultToPoint&&(zc.location=this.defaultToPoint,zc.Va(),b=E=zc)):b=this.toPort,b===null||E.isVisible()||(x=E.findVisibleNode(),x!==null&&x!==E?(E=x,b=x.port):E=x),this.Mw=E,E===null||!E.location.w())return!1;for(;!(b===null||b.actualBounds.w()&&b.Ed());)b=b.panel;if(b===null)return!1;var z=this.pointsCount,tt=this.computeSpot(!0,y);x=this.computeSpot(!1,b);var rt=jf(tt),ot=jf(x),at=y===b&&y!==null,ut=this.isOrthogonal,ft=this.curve===nl;this.Wf=at&&!ut?ft=!0:!1;var mt=this.computeAdjusting()===wa||at;if(!ut&&!at&&rt&&ot){if(rt=!1,!mt&&3<=z&&(mt=this.getLinkPoint(a,y,tt,!0,!1,E,b),ot=this.getLinkPoint(E,b,x,!1,!1,a,y),rt=this.adjustPoints(0,mt,z-1,ot))&&(mt=this.getLinkPoint(a,y,tt,!0,!1,E,b),ot=this.getLinkPoint(E,b,x,!1,!1,a,y),this.adjustPoints(0,mt,z-1,ot)),!rt)if(this.Fj(),ft){z=this.getLinkPoint(a,y,tt,!0,!1,E,b),mt=this.getLinkPoint(E,b,x,!1,!1,a,y),rt=mt.x-z.x,ot=mt.y-z.y,at=this.computeCurviness(),ft=ut=0;var yt=z.x+rt/3,wt=z.y+ot/3,Mt=yt,Ht=wt;$t.B(ot,0)?Ht=0<rt?Ht-at:Ht+at:(ut=-rt/ot,ft=Math.sqrt(at*at/(ut*ut+1)),0>at&&(ft=-ft),Mt=(0>ot?-1:1)*ft+yt,Ht=ut*(Mt-yt)+wt),yt=z.x+2*rt/3,wt=z.y+2*ot/3;var It=yt,Zt=wt;$t.B(ot,0)?Zt=0<rt?Zt-at:Zt+at:(It=(0>ot?-1:1)*ft+yt,Zt=ut*(It-yt)+wt),this.Fj(),this.ne(z),this.yf(Mt,Ht),this.yf(It,Zt),this.ne(mt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,mt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,mt),b=this.getLinkPoint(z,mt,x,!1,!1,a,y),this.hasCurviness()?(mt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+mt/2,y=E.y+x/2,z=a,rt=y,$t.B(x,0)?rt=0<mt?rt-tt:rt+tt:(mt=-mt/x,z=Math.sqrt(tt*tt/(mt*mt+1)),0>tt&&(z=-z),z=(0>x?-1:1)*z+a,rt=mt*(z-a)+y),this.ne(E),this.yf(z,rt),this.ne(b)):(this.ne(E),this.ne(b),rt=oe.alloc(),y.mi(rt),ot=rt.ca(b),mt.mi(rt),at=rt.ca(E),(ot||at)&&(tt=y.ga(Km(tt),new Wt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=mt.ga(Km(x),new Wt),this.dd(1,this.getLinkPointFromPoint(z,mt,x,E,!1,x))),oe.free(rt))}else{ft=this.isAvoiding,mt&&(ut&&ft||at)&&this.Fj();var Kt=at?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,E,b),yt=Mt=wt=0,(ut||!rt||at)&&(Ht=this.computeEndSegmentLength(a,y,tt,!0),yt=this.getLinkDirection(a,y,ft,tt,!0,ut,E,b),at&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(yt-=ut?90:30,0>Kt&&(yt-=180)),0>yt?yt+=360:360<=yt&&(yt-=360),at&&(Ht+=Math.abs(Kt)*(ut?1:2)),yt===0?wt=Ht:yt===90?Mt=Ht:yt===180?wt=-Ht:yt===270?Mt=-Ht:(wt=Ht*Math.cos(yt*Math.PI/180),Mt=Ht*Math.sin(yt*Math.PI/180)),tt.Mc()&&at&&(Ht=y.ga(Tn,Wt.alloc()),It=Wt.allocAt(Ht.x+1e3*wt,Ht.y+1e3*Mt),this.getLinkPointFromPoint(a,y,Ht,It,!0,ft),Wt.free(Ht),Wt.free(It))),Ht=this.getLinkPoint(E,b,x,!1,ut,a,y);var Qt=Zt=It=0;if(ut||!ot||at){var ne=this.computeEndSegmentLength(E,b,x,!1);Qt=this.getLinkDirection(E,b,Ht,x,!1,ut,a,y),at&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Qt+=ut?0:30,0>Kt&&(Qt+=180)),0>Qt?Qt+=360:360<=Qt&&(Qt-=360),at&&(ne+=Math.abs(Kt)*(ut?1:2)),Qt===0?It=ne:Qt===90?Zt=ne:Qt===180?It=-ne:Qt===270?Zt=-ne:(It=ne*Math.cos(Qt*Math.PI/180),Zt=ne*Math.sin(Qt*Math.PI/180)),x.Mc()&&at&&(x=b.ga(Tn,Wt.alloc()),tt=Wt.allocAt(x.x+1e3*It,x.y+1e3*Zt),this.getLinkPointFromPoint(E,b,x,tt,!1,Ht),Wt.free(x),Wt.free(tt))}x=ft,(ut||!rt||at)&&(x=new Wt(ft.x+wt,ft.y+Mt)),tt=Ht,(ut||!ot||at)&&(tt=new Wt(Ht.x+It,Ht.y+Zt)),!mt&&!ut&&rt&&3<z&&this.adjustPoints(0,ft,z-2,tt)?this.dd(z-1,Ht):!mt&&!ut&&ot&&3<z&&this.adjustPoints(1,x,z-1,Ht)?this.dd(0,ft):!mt&&(ut?6<=z:4<z)&&this.adjustPoints(1,x,z-2,tt)?(this.dd(0,ft),this.dd(z-1,Ht)):(this.Fj(),this.ne(ft),(ut||!rt||at)&&this.ne(x),ut&&this.addOrthoPoints(x,yt,tt,Qt,a,E),(ut||!ot||at)&&this.ne(tt),this.ne(Ht))}return!0};function Uv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}un.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Wt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var rt=-a.m12*b,ot=-a.m21*b,at=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),ft=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*ot+ut,E=E.x*rt+E.y*at+ft,tt=x.x*tt+x.y*ot+ut,x=x.x*rt+x.y*at+ft}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function Xm(a,y){var x=y.Zn;return x===null&&(x=new jc,x.port=y,x.node=y.part,y.Zn=x),aS(x,a)}un.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,rt){if(rt===void 0&&(rt=new Wt),x.sb()&&!jf(x))return y.ga(x,rt),rt;if(x.$c()){var ot=Xm(this,y);if(ot!==null){if(rt.assign(ot.Zo),b&&this.routing===eS){var at=Xm(this,tt);if(at!==null&&ot.Gl<at.Gl){ot=Wt.alloc(),at=Wt.alloc();var ut=new oe(y.ga(yi,ot),y.ga(rr,at)),ft=this.computeSpot(!E,tt);a=this.getLinkPoint(z,tt,ft,!E,b,a,y,at),(x.Hf(kr)||x.Hf(Hr))&&a.y>=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(jr)||x.Hf(Ur))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),Wt.free(ot),Wt.free(at)}}return rt}}return x=y.ga(Km(x),Wt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Uv(x,tt.copy()))):(ot=this.computeSpot(!E,tt),z=Wt.alloc(),tt=tt.ga(Km(ot),z),b&&(tt=Uv(x,tt)),Wt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,rt),Wt.free(x),rt},un.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,rt){t:if(E.sb())var ot=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x<E.y?E.x>1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5<E.x?45:0;else{if(E.$c()&&(ot=Xm(this,y),ot!==null))switch(ot.Nc){case 1:ot=270;break t;case 2:ot=180;break t;default:case 4:ot=0;break t;case 8:ot=90;break t}ot=y.ga(Tn,Wt.alloc()),this.pointsCount>(z?6:2)?(rt=b?this.i(1):this.i(this.pointsCount-2),rt=z?Uv(ot,rt.copy()):x):(x=Wt.alloc(),rt=rt.ga(Tn,x),Wt.free(x)),x=Math.abs(rt.x-ot.x)>Math.abs(rt.y-ot.y)?rt.x>=ot.x?0:180:rt.y>=ot.y?90:270,Wt.free(ot),ot=x}return E.Mc()&&tt.Td(a)&&(ot+=180,360<=ot&&(ot-=360)),jf(E)||(a=y.li(),a===0)||(45<=a&&135>a?ot+=90:135<=a&&225>a?ot+=180:225<=a&&315>a&&(ot+=270),360<=ot&&(ot-=360)),ot},un.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Xm(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},un.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Tn:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===$r?li:y)):(a=y||this.toPort,a===null?a=Tn:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===$r?li:y)),a};function jf(a){return a===li||a.x===.5&&a.y===.5}function Km(a){return a.x===.5&&a.y===.5?a:Tn}un.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==wa&&4<this.pointsCount?this.computeMidPoint(new Wt):(a=y.Zn,a=a!==null?aS(a,this):null,a!==null?a.Zo:y.ga(Tn))},un.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},un.prototype.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=En.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,b),z===void 0&&En.free(tt),!0;if(this.Yc(a,tt)){var rt=!1;if(!this.isAtomic)for(var ot=this.O.s,at=ot.length;at--;){var ut=ot[at];if(ut.visible||ut===this.locationObject){var ft=ut.actualBounds,mt=this.naturalBounds;if(!(ft.x>mt.width||ft.y>mt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=En.alloc(),ft.set(tt),ut instanceof nn)rt=ut.Cf(a,y,x,E,b,ft);else if(this.path===ut){if(ut instanceof Wi)if(rt=a,mt=E,ut.pickable===!1)rt=!1;else if(ft.multiply(ut.transform),mt)t:{var yt=rt,wt=ft;if(ut.fh(yt,wt))rt=!0;else{if(wt===void 0&&(wt=ut.transform,yt.Re(ut.actualBounds))){rt=!0;break t}rt=yt.left,mt=yt.right;var Mt=yt.top;yt=yt.bottom;var Ht=Wt.alloc(),It=Wt.alloc(),Zt=Wt.alloc(),Kt=En.alloc();Kt.set(wt),Kt.bv(ut.transform),Kt.Vj(),It.x=mt,It.y=Mt,It.transform(Kt),Ht.x=rt,Ht.y=Mt,Ht.transform(Kt),wt=!1,qd(ut,Ht,It,Zt)?wt=!0:(Ht.x=mt,Ht.y=yt,Ht.transform(Kt),qd(ut,Ht,It,Zt)?wt=!0:(It.x=rt,It.y=yt,It.transform(Kt),qd(ut,Ht,It,Zt)?wt=!0:(Ht.x=rt,Ht.y=Mt,Ht.transform(Kt),qd(ut,Ht,It,Zt)&&(wt=!0)))),En.free(Kt),Wt.free(Ht),Wt.free(It),Wt.free(Zt),rt=wt}}else rt=ut.fh(rt,ft)}else rt=As(ut,a,E,ft);rt&&(mt=ut,y!==null&&(mt=y(ut)),mt&&(x===null||x(mt))&&b.add(mt)),En.free(ft)}}}return z===void 0&&En.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&En.free(tt),!1},un.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?nl:this.curve},un.prototype.computeCorner=function(){if(this.curve===nl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},un.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if(b!==a&&!b.isPanelMain&&(b.segmentIndex===-1/0||isNaN(b.segmentIndex)))return b}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},un.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=iS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var E=this.findMidLabel();if(E!==null){var b=E.naturalBounds,z=E.margin,tt=isNaN(b.width)?30:b.width*E.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===op||E===$m||E===qv?a=Math.max(a,b):E===ap||E===up||E===sp||E===lp?a=Math.max(a,tt):(y=y.ga(Tn).ab(x.ga(Tn))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*tt)+Math.abs(Math.cos(y)*b)+1)),this.curve===nl&&(a*=1.333)}}return a},un.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===wa&&x.bb()}},un.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=nS;var y=this.Sf;if(y!==null){for(var x=On(),E=0,b=y.links,z=0;z<b.length;z++){var tt=b[z].computeSpacing();x.push(tt),E+=tt}for(E=-E/2,z=0;z<b.length;z++){if(b[z]===this){a=E+x[z]/2;break}E+=x[z]}y.Ds===this.fromNode&&(a=-a),Bn(x)}}return a},un.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},un.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},un.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===qm)return!1;b===_m&&(b=rp)}switch(b){case qm:var z=this.i(a),tt=this.i(x);if(!z.Xa(y)||!tt.Xa(E)){b=z.x,z=z.y;var rt=tt.x-b,ot=tt.y-z,at=Math.sqrt(rt*rt+ot*ot);if(!$t.$(at,0)){if($t.$(rt,0))var ut=0>ot?-Math.PI/2:Math.PI/2;else ut=Math.atan(ot/Math.abs(rt)),0>rt&&(ut=Math.PI-ut);tt=y.x;var ft=y.y;rt=E.x-tt;var mt=E.y-ft;for(ot=Math.sqrt(rt*rt+mt*mt),$t.$(rt,0)?mt=0>mt?-Math.PI/2:Math.PI/2:(mt=Math.atan(mt/Math.abs(rt)),0>rt&&(mt=Math.PI-mt)),at=ot/at,ut=mt-ut,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),rt=y.x-b,ot=y.y-z,y=Math.sqrt(rt*rt+ot*ot),$t.$(y,0)||($t.$(rt,0)?ot=0>ot?-Math.PI/2:Math.PI/2:(ot=Math.atan(ot/Math.abs(rt)),0>rt&&(ot=Math.PI-ot)),rt=ot+ut,y*=at,this.L(a,tt+y*Math.cos(rt),ft+y*Math.sin(rt)));this.dd(x,E)}}return!0;case _m:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(E)){b=z.x,z=z.y,tt=ft.x,ft=ft.y,at=(tt-b)*(tt-b)+(ft-z)*(ft-z),rt=y.x,ut=y.y,ot=E.x,mt=E.y;var yt=1;if(ot-rt!==0){var wt=(mt-ut)/(ot-rt);yt=Math.sqrt(1+1/(wt*wt))}else wt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Mt=y.x,Ht=y.y,It=.5;at!==0&&(It=((b-Mt)*(b-tt)+(z-Ht)*(z-ft))/at);var Zt=b+It*(tt-b),Kt=z+It*(ft-z);y=Math.sqrt((Mt-Zt)*(Mt-Zt)+(Ht-Kt)*(Ht-Kt)),Ht<wt*(Mt-Zt)+Kt&&(y=-y),0<wt&&(y=-y),Mt=rt+It*(ot-rt),It=ut+It*(mt-ut),wt!==0?(y=Mt+y/yt,this.L(a,y,It-(y-Mt)/wt)):this.L(a,Mt,It+y)}this.dd(x,E)}return!0;case rp:t:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),tt=this.i(a+2),rt=z.x,ut=z.y,ft=rt,at=ut,$t.B(b.y,z.y)?$t.B(z.x,tt.x)?ut=y.y:$t.B(z.y,tt.y)&&(rt=y.x):$t.B(b.x,z.x)&&($t.B(z.y,tt.y)?rt=y.x:$t.B(z.x,tt.x)&&(ut=y.y)),this.L(a+1,rt,ut),b=this.i(x),z=this.i(x-1),tt=this.i(x-2),rt=z.x,ut=z.y,ot=rt,mt=ut,$t.B(b.y,z.y)?$t.B(z.x,tt.x)?ut=E.y:$t.B(z.y,tt.y)&&(rt=E.x):$t.B(b.x,z.x)&&($t.B(z.y,tt.y)?rt=E.x:$t.B(z.x,tt.x)&&(ut=E.y)),this.L(x-1,rt,ut),Xv(this))){this.L(a+1,ft,at),this.L(x-1,ot,mt),x=!1;break t}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},un.prototype.addOrthoPoints=function(a,y,x,E,b,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var rt=b.actualBounds.copy(),ot=z.actualBounds.copy();if(rt.w()&&ot.w()){rt.Bc(hp,hp),ot.Bc(hp,hp),rt.Ye(a),ot.Ye(x);var at=Wt.alloc(),ut=Wt.alloc();y===0?x.x>a.x||E===270&&x.y<a.y&&ot.right>a.x||E===90&&x.y>a.y&&ot.right>a.x?(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=at.x,ut.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(at.x=a.x<ot.left?this.computeMidOrthoPosition(a.x,a.y,ot.left,x.y,!1):a.x<ot.right&&(E===270&&a.y<ot.top||E===90&&a.y>ot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.right,ut.x=at.x,ut.y=x.y):E===0&&a.x<ot.left&&a.y>ot.top&&a.y<ot.bottom&&(at.x=a.x,at.y=a.y<x.y?Math.min(x.y,ot.top):Math.max(x.y,ot.bottom),ut.y=at.y)):(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(E===180||E===90&&x.y<rt.top||E===270&&x.y>rt.bottom)&&(E===180&&(ot.ca(a)||rt.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===180||E===90)?at.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,ot.bottom),!0):x.y>a.y&&(E===180||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=at.y),at.y>rt.top&&at.y<rt.bottom&&(x.x>=rt.left&&x.x<=a.x||a.x<=ot.right&&a.x>=x.x?(E===90||E===270)&&(at.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===0?rt.top:Math.min(rt.top,ot.top)):Math.max(x.y,E===0?rt.bottom:Math.max(rt.bottom,ot.bottom)),ut.x=x.x,ut.y=at.y))):y===180?x.x<a.x||E===270&&x.y<a.y&&ot.left<a.x||E===90&&x.y>a.y&&ot.left<a.x?(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===0?(at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=at.x,ut.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(at.x=a.x>ot.right?this.computeMidOrthoPosition(a.x,a.y,ot.right,x.y,!1):a.x>ot.left&&(E===270&&a.y<ot.top||E===90&&a.y>ot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.left,ut.x=at.x,ut.y=x.y):E===180&&a.x>ot.right&&a.y>ot.top&&a.y<ot.bottom&&(at.x=a.x,at.y=a.y<x.y?Math.min(x.y,ot.top):Math.max(x.y,ot.bottom),ut.y=at.y)):(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(E===0||E===90&&x.y<rt.top||E===270&&x.y>rt.bottom)&&(E===0&&(ot.ca(a)||rt.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===0||E===90)?at.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,ot.bottom),!0):x.y>a.y&&(E===0||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=at.y),at.y>rt.top&&at.y<rt.bottom&&(x.x<=rt.right&&x.x>=a.x||a.x>=ot.left&&a.x<=x.x?(E===90||E===270)&&(at.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===180?rt.top:Math.min(rt.top,ot.top)):Math.max(x.y,E===180?rt.bottom:Math.max(rt.bottom,ot.bottom)),ut.x=x.x,ut.y=at.y))):y===90?x.y>a.y||E===180&&x.x<a.x&&ot.bottom>a.y||E===0&&x.x>a.x&&ot.bottom>a.y?(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=at.y):E===180&&x.x<a.x||E===0&&x.x>a.x?(at.y=a.y<ot.top?this.computeMidOrthoPosition(a.x,a.y,x.x,ot.top,!0):a.y<ot.bottom&&(E===180&&a.x<ot.left||E===0&&a.x>ot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.bottom,ut.x=x.x,ut.y=at.y):E===90&&a.y<ot.top&&a.x>ot.left&&a.x<ot.right&&(at.x=a.x<x.x?Math.min(x.x,ot.left):Math.max(x.x,ot.right),at.y=a.y,ut.x=at.x)):(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(E===270||E===0&&x.x<rt.left||E===180&&x.x>rt.right)&&(E===270&&(ot.ca(a)||rt.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===270||E===0)?at.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,ot.right),x.y,!1):x.x>a.x&&(E===270||E===180)&&(at.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>rt.left&&at.x<rt.right&&(x.y>=rt.top&&x.y<=a.y||a.y<=ot.bottom&&a.y>=x.y?(E===0||E===180)&&(at.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===90?rt.left:Math.min(rt.left,ot.left)):Math.max(x.x,E===90?rt.right:Math.max(rt.right,ot.right)),ut.x=at.x,ut.y=x.y))):x.y<a.y||E===180&&x.x<a.x&&ot.top<a.y||E===0&&x.x>a.x&&ot.top<a.y?(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===90?(at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=at.y):E===180&&x.x<a.x||E===0&&x.x>=a.x?(at.y=a.y>ot.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,ot.bottom,!0):a.y>ot.top&&(E===180&&a.x<ot.left||E===0&&a.x>ot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.top,ut.x=x.x,ut.y=at.y):E===270&&a.y>ot.bottom&&a.x>ot.left&&a.x<ot.right&&(at.x=a.x<x.x?Math.min(x.x,ot.left):Math.max(x.x,ot.right),at.y=a.y,ut.x=at.x)):(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(E===90||E===0&&x.x<rt.left||E===180&&x.x>rt.right)&&(E===90&&(ot.ca(a)||rt.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===90||E===0)?at.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,ot.right),x.y,!1):x.x>a.x&&(E===90||E===180)&&(at.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>rt.left&&at.x<rt.right&&(x.y<=rt.bottom&&x.y>=a.y||a.y>=ot.top&&a.y<=x.y?(E===0||E===180)&&(at.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===270?rt.left:Math.min(rt.left,ot.left)):Math.max(x.x,E===270?rt.right:Math.max(rt.right,ot.right)),ut.x=at.x,ut.y=x.y)));var ft=x;if(this.isAvoiding){var mt=this.diagram;if(mt===null||b===z||this.layer.isTemporary||!Sf(mt)||rt.ca(ft)&&!z.Td(b)||ot.ca(a)&&!b.Td(z))y=!1;else{var yt=xf(mt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&yt.Yj(Math.min(a.x,at.x),Math.min(a.y,at.y),Math.abs(a.x-at.x),Math.abs(a.y-at.y))&&yt.Yj(Math.min(at.x,ut.x),Math.min(at.y,ut.y),Math.abs(at.x-ut.x),Math.abs(at.y-ut.y))&&yt.Yj(Math.min(ut.x,ft.x),Math.min(ut.y,ft.y),Math.abs(ut.x-ft.x),Math.abs(ut.y-ft.y)))y=!1;else{b=a,z=ft;var wt=x=null;if(mt.isVirtualized){mt=yt.bounds.copy(),mt.Bc(-yt.Ho,-yt.Go);var Mt=Wt.alloc();Gf(yt,a.x,a.y)||($t.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,a.x,a.y,at.x,at.y,Mt)?(x=a=Mt.copy(),y=Mt.ab(at)):$t.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,at.x,at.y,ut.x,ut.y,Mt)?(x=a=Mt.copy(),y=Mt.ab(ut)):$t.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,ut.x,ut.y,ft.x,ft.y,Mt)&&(x=a=Mt.copy(),y=Mt.ab(ft))),Gf(yt,ft.x,ft.y)||($t.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,ft.x,ft.y,ut.x,ut.y,Mt)?(wt=ft=Mt.copy(),E=ut.ab(Mt)):$t.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,ut.x,ut.y,at.x,at.y,Mt)?(wt=ft=Mt.copy(),E=at.ab(Mt)):$t.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,at.x,at.y,a.x,a.y,Mt)&&(wt=ft=Mt.copy(),E=a.ab(Mt))),Wt.free(Mt)}rt=rt.copy().ed(ot),rt.Bc(yt.Ho*yt.Os,yt.Go*yt.Os),oS(yt,a,y,ft,E,rt,!0),ot=Bu(yt,ft.x,ft.y),!yt.abort&&ot>=Wf&&(rS(yt),rt.Bc(yt.Ho*yt.Hx,yt.Go*yt.Ix),oS(yt,a,y,ft,E,rt,!1),ot=Bu(yt,ft.x,ft.y)),!yt.abort&&ot<Wf&&Bu(yt,ft.x,ft.y)!==bh?(Kv(this,yt,ft.x,ft.y,E,!0,tt),rt=this.i(2),4>this.pointsCount?(y===0||y===180?(rt.x=a.x,rt.y=ft.y):(rt.x=ft.x,rt.y=a.y),this.L(2,rt.x,rt.y),this.m(3,rt.x,rt.y)):(tt=this.i(3),y===0||y===180?$t.B(rt.x,tt.x)?(rt=y===0?Math.max(rt.x,a.x):Math.min(rt.x,a.x),this.L(2,rt,a.y),this.L(3,rt,tt.y)):$t.B(rt.y,tt.y)?(Math.abs(a.y-rt.y)<=yt.Go/2&&(this.L(2,rt.x,a.y),this.L(3,tt.x,a.y)),this.m(2,rt.x,a.y)):this.L(2,a.x,rt.y):(y===90||y===270)&&($t.B(rt.y,tt.y)?(rt=y===90?Math.max(rt.y,a.y):Math.min(rt.y,a.y),this.L(2,a.x,rt),this.L(3,tt.x,rt)):$t.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=yt.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,tt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),wt!==null&&(E===0||E===180?this.yf(z.x,wt.y):this.yf(wt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(at.copy()),this.ne(ut.copy())),Wt.free(at),Wt.free(ut)}},un.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Xv(a){if(a.diagram===null||!a.isAvoiding||!Sf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=xf(a.diagram,!0,a.containingGroup,null);for(var E=1;E<x-2;E++){var b=y[E],z=y[E+1];if(!a.Yj(Math.min(b.x,z.x),Math.min(b.y,z.y),Math.abs(b.x-z.x),Math.abs(b.y-z.y)))return!0}return!1}function Kv(a,y,x,E,b,z,tt){var rt=y.Ho,ot=y.Go,at=Bu(y,x,E),ut=x,ft=E;for(b===0?ut+=rt:b===90?ft+=ot:b===180?ut-=rt:ft-=ot,b!==tt&&at>tc&&Bu(y,ut,ft)!==at-1&&(Bu(y,x-rt,E)===at-1?(b=180,ut=x-rt,ft=E):Bu(y,x+rt,E)===at-1?(b=0,ut=x+rt,ft=E):Bu(y,x,E-ot)===at-1?(b=270,ut=x,ft=E-ot):Bu(y,x,E+ot)===at-1&&(b=90,ut=x,ft=E+ot));at>tc&&Bu(y,ut,ft)===at-1;)x=ut,E=ft,b===0?ut+=rt:b===90?ft+=ot:b===180?ut-=rt:ft-=ot,--at;z?at>tc&&(b===180||b===0?x=Math.floor(x/rt)*rt+rt/2:(b===90||b===270)&&(E=Math.floor(E/ot)*ot+ot/2)):(x=Math.floor(x/rt)*rt+rt/2,E=Math.floor(E/ot)*ot+ot/2),at>tc&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=ot):b===90?(z=180,tt-=rt):b===180?(z=270,ut-=ot):b===270&&(z=0,tt+=rt),Bu(y,tt,ut)===at-1?Kv(a,y,tt,ut,z,!1,z):(tt=x,ut=E,b===0?(z=270,ut-=ot):b===90?(z=0,tt+=rt):b===180?(z=90,ut+=ot):b===270&&(z=180,tt-=rt),Bu(y,tt,ut)===at-1&&Kv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}un.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=ar(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;tt<this.pointsCount-1;tt++){x=this.i(tt+1);var rt=ar(y,a,E.x,E.y,x.x,x.y);E=x,rt<b&&(z=tt,b=rt)}return z},un.prototype.qc=function(){this.lk=!1,this.v()},un.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b!==a&&b.isPanelMain&&b instanceof Wi&&(b.ua=this.ua)}}},un.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&$d(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(x=!0);var b=this.i(0).copy(),z=b.copy();E=this.Nb.s;var tt=this.computeCurve();if(tt===nl&&3<=y&&!$t.$(this.smoothness,0))if(y===3){var rt=this.i(1);E=Math.min(b.x,rt.x);var ot=Math.min(b.y,rt.y);rt=this.i(2),E=Math.min(E,rt.x),ot=Math.min(ot,rt.y)}else{if(this.isOrthogonal)for(ot=0;ot<y;ot++)rt=E[ot],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),ot=this.i(E),z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);E=z.x,ot=z.y}else{for(ot=0;ot<y;ot++)rt=E[ot],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);E=z.x,ot=z.y}if(E-=this.su.x,ot-=this.su.y,b.x-=E,b.y-=ot,y!==2||$d(this)){if(a.type=Qe.o,rt=b1(a),this.computeShortLength(!0)!==0&&(b=Ic(this,b,!0,z)),Rf(rt,b.x,b.y,!1),tt===nl&&3<=y&&!$t.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-E,x=x.y-ot,b=this.i(2).copy(),b.x-=E,b.y-=ot,this.computeShortLength(!1)!==0&&(b=Ic(this,b,!1,z)),Lh(rt,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=Wt.allocAt(E,ot),x=Wt.alloc(),x.assign(this.i(1)),z=Wt.allocAt(E,ot),b=Wt.allocAt(E,ot),tt=this.i(0);for(var at,ut=this.smoothness/3,ft=1;ft<this.pointsCount-1;ft++){at=this.i(ft);var mt=tt,yt=at,wt=this.i(Qv(this,at,ft,!1));if((!$t.$(mt.x,yt.x)||!$t.$(yt.x,wt.x))&&(!$t.$(mt.y,yt.y)||!$t.$(yt.y,wt.y))){var Mt=ut;isNaN(Mt)&&(Mt=this.smoothness/3);var Ht=mt.x;mt=mt.y;var It=yt.x;yt=yt.y;var Zt=wt.x;wt=wt.y;var Kt=Mt*Qm(Ht,mt,It,yt);Mt*=Qm(It,yt,Zt,wt),$t.$(mt,yt)&&$t.$(It,Zt)&&(It>Ht?wt>yt?(z.x=It-Kt,z.y=yt-Kt,b.x=It+Mt,b.y=yt+Mt):(z.x=It-Kt,z.y=yt+Kt,b.x=It+Mt,b.y=yt-Mt):wt>yt?(z.x=It+Kt,z.y=yt-Kt,b.x=It-Mt,b.y=yt+Mt):(z.x=It+Kt,z.y=yt+Kt,b.x=It-Mt,b.y=yt-Mt)),$t.$(Ht,It)&&$t.$(yt,wt)&&(yt>mt?(Zt>It?(z.x=It-Kt,z.y=yt-Kt,b.x=It+Mt):(z.x=It+Kt,z.y=yt-Kt,b.x=It-Mt),b.y=yt+Mt):(Zt>It?(z.x=It-Kt,z.y=yt+Kt,b.x=It+Mt):(z.x=It+Kt,z.y=yt+Kt,b.x=It-Mt),b.y=yt-Mt)),($t.$(Ht,It)&&$t.$(It,Zt)||$t.$(mt,yt)&&$t.$(yt,wt))&&(Ht=.5*(Ht+Zt),mt=.5*(mt+wt),z.x=Ht,z.y=mt,b.x=Ht,b.y=mt),(ft===1||ft===2&&$t.$(tt.x,this.i(0).x)&&$t.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+at.x),x.y=.5*(tt.y+at.y)),Lh(rt,x.x-E,x.y-ot,z.x-E,z.y-ot,at.x-E,at.y-ot),y.set(z),x.set(b),tt=at}}at=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=Ic(this,ut.copy(),!1,Co)),at=.5*(at+ut.x),tt=.5*(tt+ut.y),Lh(rt,b.x-E,b.y-ot,at-E,tt-ot,ut.x-E,ut.y-ot),Wt.free(y),Wt.free(x),Wt.free(z),Wt.free(b)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=Ic(this,tt.copy(),!1,Co)),Lh(rt,z.x-E,z.y-ot,b.x-E,b.y-ot,tt.x-E,tt.y-ot);else{for(z=Wt.alloc(),z.assign(this.i(0)),b=Wt.alloc(),b.assign(z),tt=this.computeCorner(),ft=1,at=0;ft<y;){if(ft=Qv(this,z,ft,1<ft),ut=this.i(ft),ft>=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=Ic(this,ut.copy(),!1,Co)),Oc(this,rt,-E,-ot,z,ut,x);else if(at===0)for(ft=1;ft<y;)b.assign(z),ut=this.i(ft++),Oc(this,rt,-E,-ot,z,ut,x),z.assign(ut);break}if(at=Qv(this,ut,ft+1,ft<y-3),ft=-E,Ht=-ot,mt=ut,It=this.i(at),Mt=x,$t.B(z.y,mt.y)&&$t.B(mt.x,It.x))if(wt=Math.min(tt,Math.abs(mt.x-b.x)/2),wt=Kt=Math.min(wt,Math.abs(It.y-mt.y)/2),$t.B(wt,0))Oc(this,rt,ft,Ht,z,mt,Mt),z.assign(mt);else{var Qt=mt.x,ne=mt.y;yt=Qt,Zt=ne,mt.x>z.x?Qt=mt.x-wt:Qt=mt.x+wt,It.y>mt.y?Zt=mt.y+Kt:Zt=mt.y-Kt,It=Wt.allocAt(Qt,ne),Oc(this,rt,ft,Ht,z,It,Mt),Wt.free(It),jm(rt,mt.x+ft,mt.y+Ht,yt+ft,Zt+Ht),z.h(yt,Zt)}else $t.B(z.x,mt.x)&&$t.B(mt.y,It.y)?(wt=Math.min(tt,Math.abs(mt.y-b.y)/2),wt=Kt=Math.min(wt,Math.abs(It.x-mt.x)/2),$t.B(Kt,0)?(Oc(this,rt,ft,Ht,z,mt,Mt),z.assign(mt)):(Qt=mt.x,ne=mt.y,yt=Qt,Zt=ne,mt.y>z.y?ne=mt.y-wt:ne=mt.y+wt,It.x>mt.x?yt=mt.x+Kt:yt=mt.x-Kt,It=Wt.allocAt(Qt,ne),Oc(this,rt,ft,Ht,z,It,Mt),Wt.free(It),jm(rt,mt.x+ft,mt.y+Ht,yt+ft,Zt+Ht),z.h(yt,Zt))):(Oc(this,rt,ft,Ht,z,mt,Mt),z.assign(mt));b.assign(ut),ft=at}Wt.free(z)}Hm=rt}else rt=this.i(1).copy(),rt.x-=E,rt.y-=ot,this.computeShortLength(!0)!==0&&(b=Ic(this,b,!0,z)),this.computeShortLength(!1)!==0&&(rt=Ic(this,rt,!1,z)),a.type=Qe.j,a.startX=b.x,a.startY=b.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function Qm(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),$t.$(a,0)?y:$t.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Ic(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=Qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=Qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Qv(a,y,x,E){for(var b=a.pointsCount,z=y;$t.$(y.x,z.x)&&$t.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!$t.$(y.x,z.x)&&!$t.$(y.y,z.y))return x-1;for(var tt=z;$t.$(y.x,z.x)&&$t.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||$t.$(y.y,z.y)&&$t.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}un.prototype.computeJumpLength=function(){return 10};function Oc(a,y,x,E,b,z,tt){if(!tt&&$d(a)){tt=a.computeJumpLength();var rt=tt/2,ot=[],at=0;if(a.isVisible()&&(at=Lx(a,b,z,ot)),0<at){if($t.B(b.y,z.y))if(b.x<z.x)for(var ut=0;ut<at;){var ft=Math.max(b.x,Math.min(ot[ut++]-rt,z.x-tt));y.lineTo(ft+x,z.y+E);for(var mt=ft+x,yt=Math.min(ft+tt,z.x);ut<at&&(ft=ot[ut],ft<yt+tt);)ut++,yt=Math.min(ft+rt,z.x);ft=z.y-tt+E,yt+=x;var wt=z.y+E;a.curve===kh?Rf(y,yt,wt,!1):Lh(y,mt,ft,yt,ft,yt,wt)}else for(--at;0<=at;){for(ut=Math.min(b.x,Math.max(ot[at--]+rt,z.x+tt)),y.lineTo(ut+x,z.y+E),mt=ut+x,ft=Math.max(ut-tt,z.x);0<=at&&(ut=ot[at],ut>ft-tt);)at--,ft=Math.max(ut-rt,z.x);ut=z.y-tt+E,ft+=x,yt=z.y+E,a.curve===kh?Rf(y,ft,yt,!1):Lh(y,mt,ut,ft,ut,ft,yt)}else if($t.B(b.x,z.x))if(b.y<z.y)for(ut=0;ut<at;){for(ft=Math.max(b.y,Math.min(ot[ut++]-rt,z.y-tt)),y.lineTo(z.x+x,ft+E),mt=ft+E,ft=Math.min(ft+tt,z.y);ut<at&&(yt=ot[ut],yt<ft+tt);)ut++,ft=Math.min(yt+rt,z.y);yt=z.x-tt+x,wt=z.x+x,ft+=E,a.curve===kh?Rf(y,wt,ft,!1):Lh(y,yt,mt,yt,ft,wt,ft)}else for(--at;0<=at;){for(ut=Math.min(b.y,Math.max(ot[at--]+rt,z.y+tt)),y.lineTo(z.x+x,ut+E),mt=ut+E,ut=Math.max(ut-tt,z.y);0<=at&&(ft=ot[at],ft>ut-tt);)at--,ut=Math.max(ft-rt,z.y);ft=z.x-tt+x,yt=z.x+x,ut+=E,a.curve===kh?Rf(y,yt,ut,!1):Lh(y,ft,mt,ft,ut,yt,ut)}}}y.lineTo(z.x+x,z.y+E)}function Lx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,rt=0;rt<tt;rt++){var ot=z[rt];if(ot instanceof un){if(ot===a)return 0<E.length&&E.sort(function(ut,ft){return ut-ft}),E.length;if(ot.isVisible()&&$d(ot)){var at=ot.routeBounds;at.w()&&a.routeBounds.Yc(at)&&!a.usesSamePort(ot)&&(at=ot.path,at!==null&&at.Ed()&&Ex(y,x,E,ot))}}}}}return 0<E.length&&E.sort(function(ut,ft){return ut-ft}),E.length}function Ex(a,y,x,E){for(var b=$t.B(a.y,y.y),z=E.pointsCount,tt=E.i(0),rt=Wt.alloc(),ot=1;ot<z;ot++){var at=E.i(ot);if(ot<z-1){var ut=E.i(ot+1);if(tt.y===at.y&&at.y===ut.y){if(at.x>tt.x&&ut.x>=at.x||at.x<tt.x&&ut.x<=at.x)continue}else if(tt.x===at.x&&at.x===ut.x&&(at.y>tt.y&&ut.y>=at.y||at.y<tt.y&&ut.y<=at.y))continue}t:{ut=a.x;var ft=a.y,mt=y.x,yt=y.y,wt=tt.x;tt=tt.y;var Mt=at.x,Ht=at.y;if($t.B(ut,mt)){if(!$t.B(ft,yt)&&$t.B(tt,Ht)&&Math.min(ft,yt)<tt&&Math.max(ft,yt)>tt&&Math.min(wt,Mt)<ut&&Math.max(wt,Mt)>ut&&!$t.B(wt,Mt)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if($t.B(ft,yt)&&$t.B(wt,Mt)&&Math.min(ut,mt)<wt&&Math.max(ut,mt)>wt&&Math.min(tt,Ht)<ft&&Math.max(tt,Ht)>ft&&!$t.B(tt,Ht)){rt.x=wt,rt.y=ft,ut=!0;break t}rt.x=0,rt.y=0,ut=!1}ut&&(b?x.push(rt.x):x.push(rt.y)),tt=at}Wt.free(rt)}function $d(a){return a=a.curve,a===Hf||a===kh}function Jm(a,y){(y||$d(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}un.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,rt=0;rt<tt;rt++){var ot=b[rt];ot instanceof un&&(ot===this?z=!0:z&&tS(this,ot,a))}}else if(E)for(z=b.Pa.s,b=z.length,tt=0;tt<b;tt++)rt=z[tt],rt instanceof un&&tS(this,rt,a)}}}}};function tS(a,y,x){if(y!==null&&y.lk&&y.fd&&$d(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}un.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var E=this.i(0),b=a.i(0);if(E.Xa(b)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||E.Xa(a)||y.Xa(b)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},un.prototype.isVisible=function(){if(!oi.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var E=x;E!==null;){if(E.labeledLink===this)return!0;E=E.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},un.prototype.Zb=function(a){if(oi.prototype.Zb.call(this,a),a&&Jm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},un.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?rp:this.qk};function np(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var E=a.ff,b=a.vf,z=a=null,tt=y.jb.s,rt=tt.length,ot=0;ot<rt;ot++){var at=tt[ot];(at.ef===y&&at.ff===E&&at.uf===x&&at.vf===b||at.ef===x&&at.ff===b&&at.uf===y&&at.vf===E)&&(z===null?z=at:(a===null&&(a=[],a.push(z)),a.push(at)))}if(a!==null){for(z=W1(y,x,E,b),z===null&&(z=new e0(y,E,x,b),G1(y,z),G1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function ip(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Qi(y.links,a),y.Sl()))}un.prototype.ph=function(){return!0},Ye.Object.defineProperties(un.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&Ym(y,this,x),ip(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var b=this.fromPort,z=this.fromPortChanged;if(z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt)}a!==null&&(this.uf!==a&&Vm(a,this,b),np(this),this.C(1)),this.g("fromNode",y,a),zf(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Za(x),ip(this),this.ff=a;var E=this.fromPort;E!==null&&Za(E);var b=this.diagram;if(b!==null){var z=this.data,tt=b.model;z!==null&&tt.ri()&&tt.xv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(tt=!0,b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt))),np(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&Ym(y,this,x),ip(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var b=this.toPort,z=this.toPortChanged;if(z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt)}a!==null&&(this.ef!==a&&Vm(a,this,b),np(this),this.C(1)),this.g("toNode",y,a),zf(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Za(x),ip(this),this.vf=a;var E=this.toPort;E!==null&&Za(E);var b=this.diagram;if(b!==null){var z=this.data,tt=b.model;z!==null&&tt.ri()&&tt.Cv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(tt=!0,b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt))),np(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:$r},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Za(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Mn(a,">= 0",un,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:$r},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Za(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Mn(a,">= 0",un,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?Nr:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&ep(this.fromNode),this.toNode!==null&&ep(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Wi?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,E=this.pointsCount;if(E===0)a.h(NaN,NaN,0,0);else{if(E===1)E=this.i(0),y=Math.min(E.x,y),x=Math.min(E.y,x),a.h(E.x,E.y,0,0);else if(E===2){E=this.i(0);var b=this.i(1);y=Math.min(E.x,b.x),x=Math.min(E.y,b.y),a.h(E.x,E.y,0,0),a.Ye(b)}else if(this.computeCurve()===nl&&3<=E&&!this.isOrthogonal)if(b=this.i(0),y=b.x,x=b.y,a.h(y,x,0,0),E===3){E=this.i(1),y=Math.min(E.x,y),x=Math.min(E.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),$t.Dl(b.x,b.y,E.x,E.y,E.x,E.y,z.x,z.y,.5,a)}else for(z=3;z<E;z+=3){var tt=this.i(z-2);z+3>=E&&(z=E-1);var rt=this.i(z-1),ot=this.i(z);$t.Dl(b.x,b.y,tt.x,tt.y,rt.x,rt.y,ot.x,ot.y,.5,a),y=Math.min(ot.x,y),x=Math.min(ot.y,x),b=ot}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;b<E;b++)z=this.i(b),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Wt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Um(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var E=this.i(x),b=this.i(x+1);$t.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):$t.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;E<x;E++)a+=y[E];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var E=a.length%2===0;if(E){for(var b=0;b<a.length;b++)if(typeof a[b]!="number"||isNaN(a[b])){E=!1;break}}if(E)for(x=new rn,E=0;E<a.length/2;E++)b=new Wt(a[2*E],a[2*E+1]).freeze(),x.add(b);else{for(E=!0,b=0;b<a.length;b++){var z=a[b];if(!be(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new rn,E=0;E<a.length;E++)b=a[E],x.add(new Wt(b.x,b.y).freeze())}}else if(a instanceof rn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Xt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Um(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&hf(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!jf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!jf(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),Jm(this,y===kh||y===Hf||a===kh||a===Hf),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),Jm(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),un.prototype.invalidateOtherJumpOvers=un.prototype.Xo,un.prototype.findClosestSegment=un.prototype.ez,un.prototype.updateRoute=un.prototype.vg,un.prototype.invalidateRoute=un.prototype.bb,un.prototype.rollbackRoute=un.prototype.rv,un.prototype.commitRoute=un.prototype.zf,un.prototype.startRoute=un.prototype.uh,un.prototype.clearPoints=un.prototype.Fj,un.prototype.removePoint=un.prototype.pv,un.prototype.addPointAt=un.prototype.yf,un.prototype.addPoint=un.prototype.ne,un.prototype.insertPointAt=un.prototype.m,un.prototype.insertPoint=un.prototype.Kz,un.prototype.setPointAt=un.prototype.L,un.prototype.setPoint=un.prototype.dd,un.prototype.getPoint=un.prototype.i,un.prototype.getOtherPort=un.prototype.Cz,un.prototype.getOtherNode=un.prototype.To;var Rc=null,zc=null,Jv=new Ee(un,"Normal",1),Mx=new Ee(un,"Orthogonal",2),Fx=new Ee(un,"AvoidsNodes",6),eS=new Ee(un,"AvoidsNodesStraight",7),wa=new Ee(un,"None",0),nl=new Ee(un,"Bezier",9),kh=new Ee(un,"JumpGap",10),Hf=new Ee(un,"JumpOver",11),rp=new Ee(un,"End",17),qm=new Ee(un,"Scale",18),_m=new Ee(un,"Stretch",19),op=new Ee(un,"OrientAlong",21),sp=new Ee(un,"OrientPlus90",22),ap=new Ee(un,"OrientMinus90",23),qv=new Ee(un,"OrientOpposite",24),$m=new Ee(un,"OrientUpright",25),lp=new Ee(un,"OrientPlus90Upright",26),up=new Ee(un,"OrientMinus90Upright",27),t0=new Ee(un,"OrientUpright45",28),nS=16,iS=14,hp=8;un.className="Link",un.Normal=Jv,un.Orthogonal=Mx,un.AvoidsNodes=Fx,un.AvoidsNodesStraight=eS,un.None=wa,un.Bezier=nl,un.JumpGap=kh,un.JumpOver=Hf,un.End=rp,un.Scale=qm,un.Stretch=_m,un.OrientAlong=op,un.OrientPlus90=sp,un.OrientMinus90=ap,un.OrientOpposite=qv,un.OrientUpright=$m,un.OrientPlus90Upright=lp,un.OrientMinus90Upright=up,un.OrientUpright45=t0,un.EndSegmentStep=8,un.CurvinessStart=nS,un.SpacingMin=iS,un.OrthoShortCut=hp;function e0(a,y,x,E){zr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}e0.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},e0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},e0.className="LinkBundle";function dp(a){zr(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}dp.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],E=0;E<=a;E++)x[E]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=_v,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(E=0;E<=this.ei;E++)x[E]=a}};function Gf(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Bu(a,y,x){return Gf(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):_v}function rS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],E=0;E<=a.ei;E++)x[E]>=tc&&(x[E]=_v)}dp.prototype.Yj=function(a,y,x,E){if(a>this.En||a+x<this.Nd||y>this.Fn||y+E<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var b=Math.max(0,E)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===bh)return!1}return!0};function Du(a,y,x,E,b,z,tt,rt,ot){if(!(y<z||y>tt||x<rt||x>ot)){var at=y|0,ut=x|0,ft=a.ac[at][ut];if(ft>=tc&&ft<Wf)for(b?ut+=E:at+=E,ft+=1;z<=at&&at<=tt&&rt<=ut&&ut<=ot&&!(ft>=a.ac[at][ut]);)a.ac[at][ut]=ft,ft+=1,b?ut+=E:at+=E;if(at=b?ut:at,b)if(0<E)for(x+=E;x<at;x+=E)Du(a,y,x,1,!b,z,tt,rt,ot),Du(a,y,x,-1,!b,z,tt,rt,ot);else for(x+=E;x>at;x+=E)Du(a,y,x,1,!b,z,tt,rt,ot),Du(a,y,x,-1,!b,z,tt,rt,ot);else if(0<E)for(y+=E;y<at;y+=E)Du(a,y,x,1,!b,z,tt,rt,ot),Du(a,y,x,-1,!b,z,tt,rt,ot);else for(y+=E;y>at;y+=E)Du(a,y,x,1,!b,z,tt,rt,ot),Du(a,y,x,-1,!b,z,tt,rt,ot)}}function n0(a,y,x,E,b,z,tt,rt,ot){y|=0,x|=0;var at=bh,ut=tc;for(a.ac[y][x]=ut;at===bh&&y>z&&y<tt&&x>rt&&x<ot;)ut+=1,a.ac[y][x]=ut,b?x+=E:y+=E,at=a.ac[y][x]}function i0(a,y,x,E,b,z,tt,rt,ot){y|=0,x|=0;var at=bh,ut=Wf;for(a.ac[y][x]=ut;at===bh&&y>z&&y<tt&&x>rt&&x<ot;)a.ac[y][x]=ut,b?x+=E:y+=E,at=a.ac[y][x]}function oS(a,y,x,E,b,z,tt){if(a.ac!==null){a.abort=!1;var rt=y.x,ot=y.y;if(Gf(a,rt,ot)){rt-=a.Nd,rt/=a.rc,ot-=a.Od,ot/=a.sc;var at=E.x,ut=E.y;if(Gf(a,at,ut))if(at-=a.Nd,at/=a.rc,ut-=a.Od,ut/=a.sc,1>=Math.abs(rt-at)&&1>=Math.abs(ot-ut))a.abort=!0;else{var ft=z.x;E=z.y,y=z.x+z.width;var mt=z.y+z.height;ft-=a.Nd,ft/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,mt-=a.Od,mt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,E|0)),mt=Math.min(a.ei,Math.max(0,mt|0)),E=a.ac,rt|=0,ot|=0,at|=0,ut|=0;var yt=x===0||x===90?1:-1;if(x=x===90||x===270,E[rt][ot]===bh?(n0(a,rt,ot,yt,x,z,y,ft,mt),n0(a,rt,ot,1,!x,z,y,ft,mt),n0(a,rt,ot,-1,!x,z,y,ft,mt)):n0(a,rt,ot,yt,x,rt,ot,rt,ot),E[at][ut]===bh?(i0(a,at,ut,b===0||b===90?1:-1,b===90||b===270,z,y,ft,mt),i0(a,at,ut,1,!(b===90||b===270),z,y,ft,mt),i0(a,at,ut,-1,!(b===90||b===270),z,y,ft,mt)):i0(a,at,ut,yt,x,at,ut,at,ut),x=On(),tt&&sS(a,at,ut,b,rt,ot,x))for((x[0]!==at||x[1]!==ut)&&(x.unshift(ut),x.unshift(at)),(x[x.length-2]!==rt||x[x.length-1]!==ot)&&(x.push(rt),x.push(ot)),a=tc,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],at=x[z+1];y>b?b++:y<b?b--:at>tt?tt++:at<tt&&tt--,E[b][tt]=a++,b!==y||tt!==at;);else Du(a,rt,ot,1,!1,z,y,ft,mt),Du(a,rt,ot,-1,!1,z,y,ft,mt),Du(a,rt,ot,1,!0,z,y,ft,mt),Du(a,rt,ot,-1,!0,z,y,ft,mt);Bn(x)}}}}function sS(a,y,x,E,b,z,tt){for(var rt=a.ac,ot=y,at=x;;){if(ot===b&&at===z)return!0;var ut=ot,ft=at;if(E===0)if(ut<b)ut++;else break;else if(E===90)if(ft<z)ft++;else break;else if(E===180)if(ut>b)ut--;else break;else if(ft>z)ft--;else break;var mt=rt[ut][ft];if(mt===0||mt===$v)break;ot=ut,at=ft}for(;;){if(ut=E,ft=ot,mt=at,E===0?mt<z?(ut=90,mt++):mt>z&&(ut=270,mt--):E===90?ft<b?(ut=0,ft++):ft>b&&(ut=180,ft--):E===180?mt<z?(ut=90,mt++):mt>z&&(ut=270,mt--):ft<b?(ut=0,ft++):ft>b&&(ut=180,ft--),ft=rt[ft][mt],ut!==E&&ft!==0&&ft!==$v){if(tt.push(ot),tt.push(at),sS(a,ot,at,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(rt[ot][at]=$v,E===0){if(ot===y)return!1;ot--}else if(E===90){if(at===x)return!1;at--}else if(E===180){if(ot===y)return!1;ot++}else{if(at===x)return!1;at++}}}Ye.Object.defineProperties(dp.prototype,{bounds:{get:function(){return new oe(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var bh=0,tc=1,Wf=999999,_v=Wf+1,$v=Wf+2;dp.className="PositionArray";function jc(){zr(this),this.port=this.node=null,this.pe=[],this.ap=!1}jc.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var E=a[x];E!==null&&(y+=`
|
|
`+E.toString())}return y};function kx(a,y,x,E){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}jc.prototype.Sl=function(){this.pe.length=0};function aS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Ri?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var rt=a.port.ga(yi,Wt.alloc()),ot=a.port.ga(rr,Wt.alloc());for(b=oe.allocAt(rt.x,rt.y,0,0),b.Ye(ot),Wt.free(rt),Wt.free(ot),rt=Wt.allocAt(b.x+b.width/2,b.y+b.height/2),ot=a.port.li(),tt=tt.iterator;tt.next();){var at=tt.value;if(at.isVisible()&&at.fromPort!==at.toPort){var ut=at.fromPort===a.port||at.fromNode!==null&&at.fromNode.Td(E),ft=at.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?at.toPort:at.fromPort,ut!==null)){var mt=ut.part;if(mt!==null){var yt=mt.findVisibleNode();yt!==null&&yt!==mt&&(mt=yt,ut=mt.port),ut=at.computeOtherPoint(mt,ut),mt=rt.ab(ut),mt-=ot,0>mt?mt+=360:360<=mt&&(mt-=360),ft=kx(b,ft,mt,at.isOrthogonal),ft===0?(ft=4,180<mt&&(mt-=360)):ft===90?(ft=8,270<mt&&(mt-=360)):ft===180?ft=2:(ft=1,90>mt&&(mt+=360)),yt=a.pe[z],yt===void 0?(yt=new ty(at,mt,ft),a.pe[z]=yt):(yt.link=at,yt.angle=mt,yt.Nc=ft),yt.hv.set(ut),z++}}}}for(Wt.free(rt),a.pe.sort(jc.prototype.j),ot=a.pe.length,E=-1,z=rt=0;z<ot;z++)tt=a.pe[z],tt!==void 0&&(tt.Nc!==E&&(E=tt.Nc,rt=0),tt.Uo=rt,rt++);for(E=-1,rt=0,z=ot-1;0<=z;z--)ot=a.pe[z],ot!==void 0&&(ot.Nc!==E&&(E=ot.Nc,rt=ot.Uo+1),ot.Gl=rt);if(z=a.pe,ft=a.port,E=a.node.portSpreading,rt=Wt.alloc(),ot=Wt.alloc(),tt=Wt.alloc(),at=Wt.alloc(),ft.ga(yi,rt),ft.ga(mi,ot),ft.ga(rr,tt),ft.ga(Er,at),yt=mt=ut=ft=0,E===Vv)for(var wt=0;wt<z.length;wt++){var Mt=z[wt];if(Mt!==null){var Ht=Mt.link.computeThickness();switch(Mt.Nc){case 8:mt+=Ht;break;case 2:yt+=Ht;break;case 1:ft+=Ht;break;default:case 4:ut+=Ht}}}var It=wt=0,Zt=1,Kt=Mt=0;for(Ht=0;Ht<z.length;Ht++){var Qt=z[Ht];if(Qt!==null){if(wt!==Qt.Nc){switch(wt=Qt.Nc,wt){case 8:var ne=tt;It=at;break;case 2:ne=at,It=rt;break;case 1:ne=rt,It=ot;break;default:case 4:ne=ot,It=tt}switch(Mt=It.x-ne.x,Kt=It.y-ne.y,wt){case 8:mt>Math.abs(Mt)?(Zt=Math.abs(Mt)/mt,mt=Math.abs(Mt)):Zt=1;break;case 2:yt>Math.abs(Kt)?(Zt=Math.abs(Kt)/yt,yt=Math.abs(Kt)):Zt=1;break;case 1:ft>Math.abs(Mt)?(Zt=Math.abs(Mt)/ft,ft=Math.abs(Mt)):Zt=1;break;default:case 4:ut>Math.abs(Kt)?(Zt=Math.abs(Kt)/ut,ut=Math.abs(Kt)):Zt=1}It=0}var Se=Qt.Zo;if(E===Vv){switch(Qt=Qt.link.computeThickness(),Qt*=Zt,Se.set(ne),wt){case 8:Se.x=ne.x+Mt/2+mt/2-It-Qt/2;break;case 2:Se.y=ne.y+Kt/2+yt/2-It-Qt/2;break;case 1:Se.x=ne.x+Mt/2-ft/2+It+Qt/2;break;default:case 4:Se.y=ne.y+Kt/2-ut/2+It+Qt/2}It+=Qt}else{var mn=.5;E===Zm&&(mn=(Qt.Uo+1)/(Qt.Gl+1)),Se.x=ne.x+Mt*mn,Se.y=ne.y+Kt*mn}}}for(Wt.free(rt),Wt.free(ot),Wt.free(tt),Wt.free(at),ne=a.pe,z=0;z<ne.length;z++)E=ne[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,oe.free(b)}x=a.pe}for(a=0;a<x.length;a++)if(b=x[a],b!==null&&b.link===y)return b;return null}jc.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},jc.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,li,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*E:(a?y.y===z.y:y.x===z.x)?x:x+8*(b-1-E)},jc.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Wt,this.Gl=this.Uo=0,this.Zo=new Wt,this.Ju=0}ty.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},ty.className="LinkInfo";function Do(a){zr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Wt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Do.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},Do.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Do.prototype.qb=function(){},Do.prototype.toString=function(){var a=Kn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Do.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},Do.prototype.createNetwork=function(){return new co(this)},Do.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof xe?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Ri?y.lg(a.memberParts):y.lg(a.iterator),y},Do.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},Do.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},Do.prototype.doLayout=function(a){var y=new en;a instanceof xe?(dd(this,y,a.nodes,!0,this.rh,!0,!1,!0),dd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Ri?dd(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},Do.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,E=x,b=this.arrangementOrigin.y,z=0,tt=0;for(a=a.iterator;a.next();){var rt=a.value;cp(rt);var ot=rt.measuredBounds,at=ot.width;ot=ot.height,rt.moveTo(E,b),rt instanceof Ri&&(rt.rh=!1),E+=Math.max(at,50)+20,tt=Math.max(tt,Math.max(ot,50)),z>=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},Do.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value.node;if(!(rt===null||rt instanceof un)&&(cp(rt),this.rh(rt))){var ot=rt.measuredBounds,at=ot.width;ot=ot.height,rt.moveTo(x,E),rt instanceof Ri&&(rt.rh=!1),x+=Math.max(at,50)+20,z=Math.max(z,Math.max(ot,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},Do.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Ri&&a.rh)};function dd(a,y,x,E,b,z,tt,rt){for(x=x.iterator;x.next();){var ot=x.value;E&&!ot.isTopLevel||b!==null&&!b(ot)||!ot.canLayout()||(z&&ot instanceof yn?ot.isLinkLabel||(ot instanceof Ri&&ot.layout===null?dd(a,y,ot.memberParts,!1,b,z,tt,rt):(cp(ot),y.add(ot))):tt&&ot instanceof un?y.add(ot):!rt||!ot.Zc()||ot instanceof yn||(cp(ot),y.add(ot)))}}function cp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Do.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new oe),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Do.prototype.ex=function(a){var y=new en;return a instanceof xe?(dd(this,y,a.nodes,!0,null,!0,!0,!0),dd(this,y,a.links,!0,null,!0,!0,!0),dd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Ri?dd(this,y,a.memberParts,!1,null,!0,!0,!0):dd(this,y,a.iterator,!1,null,!0,!0,!0),y},Do.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(yi),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Ye.Object.defineProperties(Do.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Do.prototype.collectParts=Do.prototype.ex,Do.prototype.getLayoutBounds=Do.prototype.ni,Do.prototype.invalidateLayout=Do.prototype.C,Do.className="Layout";function co(a){zr(this),this.Sc=a,this.wf=new en,this.ye=new en,this.Es=new Jn,this.zs=new Jn}co.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new en,this.ye=new en,this.Es=new Jn,this.zs=new Jn},co.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var x=this.wf.iterator;x.next();)y+=`
|
|
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
|
|
`+x.value.toString(a-1)}return y},co.prototype.createVertex=function(){return new xs(this)},co.prototype.createEdge=function(){return new Ua(this)},co.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(tt){if(tt instanceof yn)return!tt.isLinkLabel;if(tt instanceof un){var rt=tt.fromNode;return rt===null||rt.isLinkLabel?!1:(tt=tt.toNode,!(tt===null||tt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof yn&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Ri&&E.layout===null)this.lg(E.memberParts,!1);else if(this.ki(E)===null){var b=this.createVertex();b.node=E,this.dh(b)}}}for(a.reset();a.next();)if(E=a.value,E instanceof un&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)&&this.Lo(E)===null){var z=E.fromNode;b=E.toNode,z!==null&&b!==null&&z!==b&&(z=this.findGroupVertex(z),b=this.findGroupVertex(b),z!==null&&b!==null&&this.Zj(z,b,E))}}},co.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},Lt=co.prototype,Lt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Lt.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},Lt.Iu=function(a){if(a!==null&&lS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var E=y.M(x);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function lS(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}Lt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Lt.ki=function(a){return a===null?null:this.Es.I(a)},Lt.Bo=function(a){if(a!==null){ey(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ey(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}Lt.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,E=this.Lo(a);return E===null?(E=this.createEdge(),E.link=a,y!==null&&(E.fromVertex=this.Bl(y)),x!==null&&(E.toVertex=this.Bl(x)),this.Bo(E)):(y!==null?E.fromVertex=this.Bl(y):E.fromVertex=null,x!==null?E.toVertex=this.Bl(x):E.toVertex=null),E},Lt.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ny(this,a)}};function ny(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Lt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Lt.Lo=function(a){return a===null?null:this.zs.I(a)},Lt.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var E=this.createEdge();return E.link=x,E.fromVertex=a,E.toVertex=y,this.Bo(E),E}return null},Lt.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},Lt.Ko=function(){for(var a=On(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);Bn(a)},co.prototype.deleteArtificialVertexes=function(){for(var a=On(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=On(),x=this.ye.iterator;x.next();){var E=x.value;E.link===null&&E.data===null&&y.push(E)}for(x=y.length,E=0;E<x;E++)this.Mj(y[E]);Bn(a),Bn(y)};function bx(a){for(var y=On(),x=a.ye.iterator;x.next();){var E=x.value;E.fromVertex!==null&&E.toVertex!==null||y.push(E)}for(x=y.length,E=0;E<x;E++)a.Mj(y[E]);Bn(y)}co.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),bx(this),this.Ko()),a=new rn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var E=x.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),iy(this,y,E),y=!0;break}}}return a.sort(function(b,z){return b===null||z===null||b===z?0:z.vertexes.count-b.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){lS(a,x),y.dh(x);for(var E=x.sourceEdges;E.next();){var b=E.value;b.network!==y&&(ny(a,b),ey(y,b),iy(a,y,b.fromVertex))}for(E=x.destinationEdges;E.next();)x=E.value,x.network!==y&&(ny(a,x),ey(y,x),iy(a,y,x.toVertex))}}co.prototype.dz=function(){for(var a=new en,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},Ye.Object.defineProperties(co.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),co.prototype.findAllParts=co.prototype.dz,co.prototype.splitIntoSubNetworks=co.prototype.Zx,co.prototype.deleteSelfEdges=co.prototype.Ko,co.prototype.reverseEdge=co.prototype.gm,co.prototype.linkVertexes=co.prototype.Zj,co.prototype.findEdge=co.prototype.Lo,co.prototype.deleteLink=co.prototype.Yy,co.prototype.deleteEdge=co.prototype.Mj,co.prototype.addLink=co.prototype.Dy,co.prototype.addEdge=co.prototype.Bo,co.prototype.findVertex=co.prototype.ki,co.prototype.deleteNode=co.prototype.Zy,co.prototype.deleteVertex=co.prototype.Iu,co.prototype.addNode=co.prototype.Bl,co.prototype.addVertex=co.prototype.dh,co.prototype.addParts=co.prototype.lg,co.className="LayoutNetwork";function xs(a){zr(this),this.ob=a,this.j=new oe(0,0,10,10).freeze(),this.o=new Wt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new rn,this.mg=new rn}xs.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new rn,this.mg=new rn},xs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+no(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,E=this.tg.iterator;E.next();){var b=E.value;x?x=!1:a+=",",a+=b.toString(0)}for(b="",x=!0,E=this.mg.iterator;E.next();){var z=E.value;x?x=!1:b+=",",b+=z.toString(0)}y+=" sources: "+a+" destinations: "+b}return y},xs.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;be(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof Ri)){x=oe.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(Tn);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),oe.free(x);return}oe.free(x)}a.moveTo(y.x,y.y)}},xs.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},xs.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},xs.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},xs.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ry(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}Ye.Object.defineProperties(xs.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=oe.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),oe.free(x),!(a instanceof Ri)&&(a=a.locationObject.ga(Tn),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new en,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new en,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new en,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new rn,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),xs.prototype.deleteDestinationEdge=xs.prototype.Jl,xs.prototype.addDestinationEdge=xs.prototype.zl,xs.prototype.deleteSourceEdge=xs.prototype.Kl,xs.prototype.addSourceEdge=xs.prototype.Cl,xs.className="LayoutVertex",xs.standardComparer=ry,xs.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var E=parseFloat(y[x]),b=parseFloat(a[x]);if(isNaN(E))if(isNaN(b)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function Ua(a){zr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Ua.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Ua.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+no(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},Ua.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Ua.prototype.commit=function(){},Ua.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Ye.Object.defineProperties(Ua.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Ua.prototype.getOtherVertex=Ua.prototype.Ax,Ua.className="LayoutEdge";function js(a){Do.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Yt(NaN,NaN).freeze(),this.tf=new Yt(10,10).freeze(),this.Jb=fp,this.Rb=o0,this.nd=gp,this.hd=uS,a&&Object.assign(this,a)}we(js,Do),js.prototype.cloneProtected=function(a){Do.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},js.prototype.qb=function(a){a.classType===js?a===gp||a===a0||a===oy||a===s0?this.sorting=a:a===o0||a===$l?this.arrangement=a:a===fp||a===r0?this.alignment=a:Xt("Unknown enum value: "+a):Do.prototype.qb.call(this,a)},js.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Ri)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case s0:b.reverse();break;case gp:b.sort(this.comparer);break;case a0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case r0:var rt=y,ot=x,at=oe.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ft<b.length;ft++){var mt=this.ni(b[ft],at);ut=Math.max(ut,mt.width)}if(ut=Math.max(ut+rt,1),ft=Math.max(this.cellSize.height,1),!isFinite(ft))for(mt=ft=0;mt<b.length;mt++){var yt=this.ni(b[mt],at);ft=Math.max(ft,yt.height)}ft=Math.max(ft+ot,1),mt=this.arrangement;for(var wt=yt=this.arrangementOrigin.x,Mt=this.arrangementOrigin.y,Ht=0,It=0,Zt=0;Zt<b.length;Zt++){var Kt=b[Zt],Qt=this.ni(Kt,at),ne=Math.ceil((Qt.width+rt)/ut)*ut,Se=Math.ceil((Qt.height+ot)/ft)*ft;switch(mt){case $l:var mn=Math.abs(wt-Qt.width);break;default:mn=wt+Qt.width}switch((0<z&&Ht>z-1||0<tt&&0<Ht&&mn-yt>tt)&&(E.push(new oe(0,Mt,tt+rt,It)),Ht=0,wt=yt,Mt+=It,It=0),It=Math.max(It,Se),mt){case $l:Qt=-Qt.width;break;default:Qt=0}switch(Kt.moveTo(wt+Qt,Mt),mt){case $l:wt-=ne;break;default:wt+=ne}Ht++}E.push(new oe(0,Mt,tt+rt,It)),oe.free(at);break;case fp:for(ot=tt,ut=z,ft=y,mt=x,tt=oe.alloc(),yt=Math.max(this.cellSize.width,1),z=Mt=at=0,rt=Wt.alloc(),wt=0;wt<b.length;wt++)It=b[wt],Ht=this.ni(It,tt),It=Eh(It,It.locationObject,It.locationSpot,rt),at=Math.max(at,It.x),Mt=Math.max(Mt,Ht.width-It.x),z=Math.max(z,It.y);switch(wt=this.arrangement,wt){case $l:at+=ft;break;default:Mt+=ft}yt=isFinite(yt)?Math.max(yt+ft,1):Math.max(at+Mt,1);var zn=It=this.arrangementOrigin.x;for(Zt=this.arrangementOrigin.y,Mt=0,ot>=at&&(ot-=at),at=Kt=0,ne=Math.max(this.cellSize.height,1),Qt=z=0,Se=!0,Ht=Wt.alloc(),mn=0;mn<b.length;mn++){var bn=b[mn],ln=this.ni(bn,tt),Ve=Eh(bn,bn.locationObject,bn.locationSpot,rt);if(0<Mt)switch(wt){case $l:zn=(zn-It-(ln.width-Ve.x))/yt,zn=$t.$(Math.round(zn),zn)?Math.round(zn):Math.floor(zn),zn=zn*yt+It;break;default:zn=(zn-It+Ve.x)/yt,zn=$t.$(Math.round(zn),zn)?Math.round(zn):Math.ceil(zn),zn=zn*yt+It}else switch(wt){case $l:Kt=zn+Ve.x+ln.width;break;default:Kt=zn-Ve.x}switch(wt){case $l:var Oi=-(zn+Ve.x)+Kt;break;default:Oi=zn+ln.width-Ve.x-Kt}if(0<ut&&Mt>ut-1||0<ot&&0<Mt&&Oi>ot){for(E.push(new oe(0,Se?Zt-z:Zt,ot+ft,Qt+z+mt)),zn=0;zn<Mt&&mn!==Mt;zn++){Oi=b[mn-Mt+zn];var ki=Eh(Oi,Oi.locationObject,Oi.locationSpot,Ht);Oi.moveTo(Oi.position.x,Oi.position.y+z-ki.y)}Qt+=mt,Zt=Se?Zt+Qt:Zt+(Qt+z),Mt=Qt=z=0,zn=It,Se=!1}switch(zn===It&&(at=wt===$l?Math.max(at,ln.width-Ve.x):Math.min(at,-Ve.x)),z=Math.max(z,Ve.y),Qt=Math.max(Qt,ln.height-Ve.y),isFinite(ne)&&(Qt=Math.max(Qt,Math.max(ln.height,ne)-Ve.y)),Se?bn.moveTo(zn-Ve.x,Zt-Ve.y):bn.moveTo(zn-Ve.x,Zt),wt){case $l:zn-=Ve.x+ft;break;default:zn+=ln.width-Ve.x+ft}Mt++}if(E.push(new oe(0,Zt,ot+ft,(Se?Qt:Qt+z)+mt)),b.length!==Mt)for(ot=0;ot<Mt;ot++)ut=b[b.length-Mt+ot],ft=Eh(ut,ut.locationObject,ut.locationSpot,rt),ut.moveTo(ut.position.x,ut.position.y+z-ft.y);if(Wt.free(rt),Wt.free(Ht),wt===$l)for(b=0;b<E.length;b++)z=E[b],z.width+=at,z.x-=at;else for(b=0;b<E.length;b++)z=E[b],z.x>at&&(z.width+=z.x-at,z.x=at);oe.free(tt)}for(rt=z=tt=b=0;rt<E.length;rt++)ot=E[rt],b=Math.min(b,ot.x),tt=Math.min(tt,ot.y),z=Math.max(z,ot.x+ot.width);this.arrangement===$l?this.commitLayers(E,new Wt(b+y/2-(z+b),tt-x/2)):this.commitLayers(E,new Wt(b-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},js.prototype.commitLayers=function(){};function uS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Ye.Object.defineProperties(js.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==fp&&a!==r0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==o0&&a!==$l||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==oy&&a!==s0&&a!==gp&&a!==a0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var r0=new Ee(js,"Position",0),fp=new Ee(js,"Location",1),o0=new Ee(js,"LeftToRight",2),$l=new Ee(js,"RightToLeft",3),oy=new Ee(js,"Forward",4),s0=new Ee(js,"Reverse",5),gp=new Ee(js,"Ascending",6),a0=new Ee(js,"Descending",7);js.className="GridLayout",js.standardComparer=uS,js.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var E=parseFloat(a[x]),b=parseFloat(y[x]);if(isNaN(E))if(isNaN(b)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},js.Position=r0,js.Location=fp,js.LeftToRight=o0,js.RightToLeft=$l,js.Forward=oy,js.Reverse=s0,js.Ascending=gp,js.Descending=a0;function Wr(){this.On=new en,this.Dn=new en,this.Pa=new en,this.cf=new Jn,this.bf=new Jn,this.aj=new Jn,this.H=null,this.tp=!1}Lt=Wr.prototype,Lt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Lt.Xe=function(a){this.H=a},Lt.oi=function(a){if(a instanceof yn){if(this.On.add(a),a instanceof Ri){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof un?this.Dn.add(a):a instanceof Ar||this.Pa.add(a);y=a.data,y===null||a instanceof Ar||(a instanceof un?this.bf.add(y,a):this.cf.add(y,a))},Lt.pc=function(a){if(a.Ej(),a instanceof yn){if(this.On.remove(a),a instanceof Ri){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof un?this.Dn.remove(a):a instanceof Ar||this.Pa.remove(a);y=a.data,y===null||a instanceof Ar||(a instanceof un?this.bf.remove(y):this.cf.remove(y))},Lt.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,E=y.key;(!x.Zc()||x instanceof Ri)&&Xt('Invalid node template in Diagram.nodeTemplateMap: template for "'+E+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof Ri||Xt('Invalid group template in Diagram.groupTemplateMap: template for "'+E+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof un||Xt('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=On(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=On(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=On(),E=this.nodes.iterator;E.next();){var b=E.value;b.data!==null&&(a.push(b.data),a.push(b.location))}for(E=this.links.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(E=this.parts.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),E=0;E<y.length;E++)b=this.Lc(y[E]),b!==null&&(b.isSelected=!0);for(E=0;E<x.length;E++)b=this.Lc(x[E]),b!==null&&(b.isHighlighted=!0);for(E=0;E<a.length;E+=2)b=this.Lc(a[E]),b!==null&&(b.location=a[E+1]);Bn(y),Bn(x),Bn(a)}},Wr.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Wr.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&hS(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&vf(this.diagram,!1)};function hS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),b=dS(a,y,E);if(b!==null&&(El(b),b=b.copy(),b!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=E,b.ub=y,a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=z,E=b;break t}}E=null}E!==null&&x&&a.resolveReferencesForData(y)}}Wr.prototype.insertLink=function(){return null},Wr.prototype.resolveReferencesForData=function(){},Wr.prototype.Ro=function(a){return this.H.model.Ro(a)};function dS(a,y,x){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(gS||(gS=!0,wn('No Group template found for category "'+x+'"'),wn(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(fS||(fS=!0,wn('No Node template found for category "'+x+'"'),wn(" Using default node template")),y=a.ny))),y}Wr.prototype.getLinkCategoryForData=function(){return""},Wr.prototype.setLinkCategoryForData=function(){},Wr.prototype.setFromNodeForLink=function(){},Wr.prototype.setToNodeForLink=function(){},Wr.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(pS||(pS=!0,wn('No Link template found for category "'+a+'"'),wn(" Using default link template")),x=y.my)),x},Wr.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Wr.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Wr.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Fg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Wr.prototype.unresolveReferencesForPart=function(){},Wr.prototype.removeDataForLink=function(){},Wr.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Wr.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof yn?a:null)},Wr.prototype.findLinkForKey=function(){return null},Lt=Wr.prototype,Lt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Lt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof yn?a:null)},Lt.Kc=function(a){return a===null?null:this.bf.I(a)},Lt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new en;for(var x=this.On.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(be(tt)&&sy(this,b,tt)){y.add(E);break}}}return y.iterator},Lt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new en;for(var x=this.Dn.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(be(tt)&&sy(this,b,tt)){y.add(E);break}}}return y.iterator};function sy(a,y,x){for(var E in x){var b=y[E],z=x[E];if(Ln(z)){if(!Ln(b)||b.length<z.length)return!1;for(var tt=0;tt<b.length;tt++){var rt=z[tt];if(rt!==void 0&&!cS(a,b[tt],rt))return!1}}else if(!cS(a,b,z))return!1}return!0}function cS(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(be(y)&&be(x)){if(!sy(a,y,x))return!1}else if(y!==x)return!1;return!0}Wr.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var E=a.modelChange;if(E!=="")if(x===yo){if(E==="nodeCategory"){var b=this.Lc(a.object),z=a.newValue;b!==null&&typeof z=="string"&&(b.category=z)}else E==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===Io){var tt=a.newValue;E==="nodeDataArray"&&be(tt)&&hS(this,tt),y.isModified=!0}else if(x===is){var rt=a.oldValue;E==="nodeDataArray"&&be(rt)&&this.ip(rt),y.isModified=!0}else x===bs&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===yo){var ot=a.propertyName,at=a.object;at===y.model?(ot==="nodeKeyProperty"||ot==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(at,ot),y.isModified=!0}else if(x===Io||x===is){var ut=a.change===Io,ft=ut?a.newParam:a.oldParam,mt=ut?a.newValue:a.oldValue,yt=this.aj.I(a.object);if(Array.isArray(yt))for(a=0;a<yt.length;a++){var wt=yt[a];if(ut)Em(wt,mt,ft,!0);else if(!(0>ft)){var Mt=ft+Qg(wt);wt.pc(Mt,!0),xv(wt,Mt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},Wr.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},Wr.prototype.rp=function(){for(var a=this.H.model,y=new en,x=a.nodeDataArray,E=0;E<x.length;E++)y.add(x[E]);var b=[];for(this.nodes.each(function(tt){tt.data===null||y.contains(tt.data)||b.push(tt.data)}),this.parts.each(function(tt){tt.data===null||y.contains(tt.data)||b.push(tt.data)}),b.forEach(function(tt){AS(a,tt,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&CS(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Wr.prototype.refreshDataBoundLinks=function(){},Wr.prototype.updateRelationshipsFromData=function(){},Wr.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var E=this.aj.iterator;E.next();){for(var b=E.value,z=0;z<b.length;z++){var tt=b[z].sx(a);tt!==null&&(x===null&&(x=On()),x.push(tt))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);Bn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ay(a,y){var x=y.Hh;if(Ln(x)){var E=a.aj.I(x);if(E===null)E=[],E.push(y),a.aj.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function ly(a,y,x){Qd(y,function(tt){tt=tt.O.s;for(var rt=tt.length,ot=0;ot<rt;ot++)Ng(x,tt[ot])});var E=y.Hh;if(Ln(E)){var b=a.aj.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&a.aj.remove(E);break}}}}Wr.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new Jn;if(Ln(a))for(var b=0;b<a.length;b++)l0(this,a[b],y,E,x);else for(a=a.iterator;a.next();)l0(this,a.value,y,E,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new en;for(var z=new Jn,tt=E.iterator;tt.next();){var rt=tt.value;if(rt instanceof un)a||rt.fromNode!==null&&rt.toNode!==null||b.add(rt);else if(rt instanceof yn&&rt.data!==null&&x.Tl()){var ot=rt;rt=tt.key;var at=rt.pg();at!==null&&(at=E.I(at),at!==null?(x.qe(ot.data,x.wa(at.data)),ot=y.Kc(ot.data),rt=rt.kh(),rt!==null&&ot!==null&&z.add(rt,ot)):x.qe(ot.data,void 0))}}if(0<b.count&&y.Is(b,!1),0<z.count)for(x=z.iterator;x.next();)E.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ut=new Jn;E.each(function(ft){ft.key.data!==null&&ut.add(ft.key.data,ft.value.data)}),x(ut,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function l0(a,y,x,E,b){if(y===null||b&&!y.canCopy())return null;if(E.contains(y))return E.I(y);var z=a.copyPartData(y,x);if(!(z instanceof oi))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof yn){for(var tt=y.linksConnected;tt.next();){var rt=tt.value;if(rt.fromNode===y){var ot=E.I(rt);ot!==null&&(ot.fromNode=z)}rt.toNode===y&&(rt=E.I(rt),rt!==null&&(rt.toNode=z))}if(y instanceof Ri&&z instanceof Ri)for(y=y.memberParts;y.next();)tt=l0(a,y.value,x,E,b),tt instanceof un||tt===null||(tt.containingGroup=z)}else if(y instanceof un&&z instanceof un)for(tt=y.fromNode,tt!==null&&(tt=E.I(tt),tt!==null&&(z.fromNode=tt)),tt=y.toNode,tt!==null&&(tt=E.I(tt),tt!==null&&(z.toNode=tt)),y=y.labelNodes;y.next();)tt=l0(a,y.value,x,E,b),tt!==null&&tt instanceof yn&&(tt.labeledLink=z);return z}Wr.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof un||(E=b.copyNodeData(E),be(E)&&(b.xf(E),x=y.Lc(E)))}else El(a),x=a.copy(),x!==null&&(b=this.H,y!==null?y.add(x):E!==null&&b!==null&&b.commandHandler!==null&&b.commandHandler.copiesClipboardData&&(y=b.model,b=null,x instanceof un||(b=y.copyNodeData(E)),be(b)&&(x.data=b)));return x},Ye.Object.defineProperties(Wr.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),Wr.prototype.updateAllRelationshipsFromData=Wr.prototype.rp,Wr.prototype.findLinksByExample=Wr.prototype.ls,Wr.prototype.findNodesByExample=Wr.prototype.ms,Wr.prototype.findLinkForData=Wr.prototype.Kc,Wr.prototype.findNodeForData=Wr.prototype.ii,Wr.prototype.findPartForData=Wr.prototype.Lc,Wr.prototype.findNodeForKey=Wr.prototype.Vb,Wr.prototype.removeModeledPart=Wr.prototype.ip,Wr.prototype.removeModeledParts=Wr.prototype.Gs,Wr.prototype.rebuildParts=Wr.prototype.Wd;var fS=!1,gS=!1,pS=!1;Wr.className="PartManager";function Fs(a){Wr.apply(this,arguments)}we(Fs,Wr),Fs.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),mS(this,a.linkDataArray)},Fs.prototype.addModeledParts=function(a){for(Wr.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)zf(a.value);vf(this.diagram,!1)};function mS(a,y){y.forEach(function(x){vS(a,x)}),vf(a.diagram,!1)}function vS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(x);if(E!==null){El(E);var b=E.copy();if(b!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,b.Tf=x,b.ub=y,x=a.diagram.model;var z=c0(x,y,!0);z!==""&&(b.fromPortId=z),z=il(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof yn&&(b.fromNode=z)),z=c0(x,y,!1),z!==""&&(b.toPortId=z),z=il(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof yn&&(b.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(tt){tt=a.Vb(tt),tt!==null&&(tt.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=E}}}}Fs.prototype.removeAllModeledParts=function(){var a=this.diagram.model;yS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function yS(a,y){y.forEach(function(x){a.ip(x)})}Fs.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Fs.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Fs.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Fs.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Fs.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Fs.prototype.findPartForKey=function(a){var y=Wr.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Fs.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Fs.prototype.doModelChanged=function(a){var y=this;if(Wr.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var E=a.change;if(x.aa){x.aa=!1;try{var b=a.modelChange;if(b!==""){if(E===yo){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var tt=this.Vb(a.newValue);z.fromNode=tt}}else if(b==="linkToKey"){var rt=this.Kc(a.object);if(rt!==null){var ot=this.Vb(a.newValue);rt.toNode=ot}}else if(b==="linkFromPortId"){var at=this.Kc(a.object);if(at!==null){var ut=a.newValue;typeof ut=="string"&&(at.fromPortId=ut)}}else if(b==="linkToPortId"){var ft=this.Kc(a.object);if(ft!==null){var mt=a.newValue;typeof mt=="string"&&(ft.toPortId=mt)}}else if(b==="nodeGroupKey"){var yt=this.Lc(a.object);if(yt!==null){var wt=a.newValue;if(wt!==void 0){var Mt=this.Vb(wt);Mt instanceof Ri?yt.containingGroup=Mt:yt.containingGroup=null}else yt.containingGroup=null}}else if(b==="linkLabelKeys"){var Ht=this.Kc(a.object);if(Ht!==null){var It=a.oldValue,Zt=a.newValue;Array.isArray(It)&&It.forEach(function(Ve){0<=Zt.indexOf(Ve)||(Ve=y.Vb(Ve),Ve!==null&&(Ve.labeledLink=null))}),Array.isArray(Zt)&&Zt.forEach(function(Ve){Ve=y.Vb(Ve),Ve!==null&&(Ve.labeledLink=Ht)})}}else if(b==="linkCategory"){var Kt=this.Kc(a.object),Qt=a.newValue;Kt!==null&&typeof Qt=="string"&&(Kt.category=Qt)}else b==="linkDataArray"&&(yS(this,a.oldValue),mS(this,a.newValue));x.isModified=!0}else if(E===Io){var ne=a.newValue;if(b==="linkDataArray"&&typeof ne=="object"&&ne!==null)vS(this,ne);else if(b==="linkLabelKeys"&&fd(ne)){var Se=this.Kc(a.object),mn=this.Vb(ne);Se!==null&&mn!==null&&(mn.labeledLink=Se)}x.isModified=!0}else if(E===is){var zn=a.oldValue;if(b==="linkDataArray"&&typeof zn=="object"&&zn!==null)this.ip(zn);else if(b==="linkLabelKeys"&&fd(zn)){var bn=this.Vb(zn);bn!==null&&(bn.labeledLink=null)}x.isModified=!0}}else if(E===yo){var ln=a.propertyName;a.object!==x.model||ln!=="linkFromKeyProperty"&&ln!=="linkToKeyProperty"&&ln!=="linkFromPortIdProperty"&&ln!=="linkToPortIdProperty"&&ln!=="linkLabelKeysProperty"&&ln!=="nodeIsGroupProperty"&&ln!=="nodeGroupKeyProperty"&&ln!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Fs.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new en,E=y.linkDataArray;E.forEach(function(z){x.add(z)});var b=[];this.links.each(function(z){z.data===null||x.contains(z.data)||b.push(z.data)}),b.forEach(function(z){bS(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&kS(y,z,!1)})},Fs.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;if(a instanceof un){var b=il(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=il(E,y,!1),b=x.Vb(b),a.toNode=b,y=E.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){b=y[0];var z=a.labelNodes.first();if(E.wa(z.data)===b)return}b=new en().addAll(y);var tt=new en;a.labelNodes.each(function(rt){rt.data!==null&&(rt=E.wa(rt.data),rt!==void 0&&tt.add(rt))}),y=tt.copy(),y.hp(b),b=b.copy(),b.hp(tt),(0<y.count||0<b.count)&&(y.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink===a&&(rt.labeledLink=null)}),b.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink!==a&&(rt.labeledLink=a)}))}}else!(a instanceof Ar)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Ri)&&(a.containingGroup=y)}}},Fs.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=pp(y,x),b=this.Lc(a);if(E!==null&&b!==null){E=E.iterator;for(var z={};E.next();){var tt=E.value;y.lb(tt)?b instanceof Ri&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=b)):(z.link=this.Kc(tt),z.link!==null&&b instanceof yn&&(il(y,tt,!0)===x&&(z.link.fromNode=b),il(y,tt,!1)===x&&(z.link.toNode=b),tt=y.Ef(tt),Array.isArray(tt)&&tt.some(function(rt){return function(ot){return ot===x?(b.labeledLink=rt.link,!0):!1}}(z)))),z={link:z.link}}eu(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Ri&&(b.containingGroup=a))}},Fs.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof yn){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)tu(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&tu(y,x,E.data)),a instanceof Ri)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&tu(y,x,E)}}},Fs.prototype.copyPartData=function(a,y){var x=Wr.prototype.copyPartData.call(this,a,y);if(a instanceof un)if(a=a.data,a!==null&&y!==null){var E=y.model;a=E.Jo(a),typeof a=="object"&&a!==null&&(E.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},Fs.prototype.insertLink=function(a,y,x,E){var b=this.diagram,z=b.model,tt=b.toolManager.findTool("Linking"),rt="";if(a!==null&&(y===null&&(y=a),rt=y.portId,rt===null&&(rt="")),y="",x!==null&&(E===null&&(E=x),y=E.portId,y===null&&(y="")),E=tt.archetypeLinkData,E instanceof un){if(El(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=rt,z.toNode=x,z.toPortId=y,b.add(z),a=tt.archetypeLabelNodeData,a instanceof yn&&(El(a),a=a.copy(),a!==null&&(a.labeledLink=z,b.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&Yf(z,E,z.wa(a.data),!0),Zf(z,E,rt,!0),x!==null&&Yf(z,E,z.wa(x.data),!1),Zf(z,E,y,!1),z.fi(E),a=tt.archetypeLabelNodeData,a===null||a instanceof yn||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(E,a))),b.Kc(E);return null},Fs.prototype.findLinkForKey=Fs.prototype.findLinkForKey,Fs.prototype.findPartForKey=Fs.prototype.findPartForKey,Fs.prototype.removeAllModeledParts=Fs.prototype.removeAllModeledParts,Fs.prototype.addModeledParts=Fs.prototype.addModeledParts,Fs.prototype.addAllModeledParts=Fs.prototype.addAllModeledParts,Fs.className="GraphLinksPartManager";function pl(){Wr.apply(this,arguments),this.Sg=null}we(pl,Wr);function u0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var E=a.diagram.toolManager.findTool("Linking"),b=y,z=x;if(a.diagram.isTreePathToChildren||(b=x,z=y),(E===null||!Yr(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(El(E),E=E.copy(),E!==null))){var tt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=x.data,E.fromNode=b,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=x.data,a.diagram.skipsModelSourceBindings=tt}}}pl.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},pl.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},pl.prototype.setFromNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=b}},pl.prototype.setToNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=b}else E.qe(a.data,E.wa(y))},pl.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},pl.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},pl.prototype.doModelChanged=function(a){if(Wr.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var E=a.modelChange;if(E!==""){if(x===yo){if(E==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),tt=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(tt!==null){var rt=tt.kh();rt!==null?z===null?y.remove(rt):y.isTreePathToChildren?rt.fromNode=z:rt.toNode=z:u0(this,z,tt)}}else if(E==="parentLinkCategory"){var ot=this.ii(a.object),at=a.newValue;if(ot!==null&&typeof at=="string"){var ut=ot.kh();ut!==null&&(ut.category=at)}}y.isModified=!0}}else if(x===yo){var ft=a.propertyName;a.object===y.model&&ft==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},pl.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof yn&&(y=E.mh(y),y=x.Vb(y),E=a.pg(),y!==E&&(E=a.kh(),y!==null?E!==null?x.isTreePathToChildren?E.fromNode=y:E.toNode=y:u0(this,y,a):E!==null&&Fg(x,E,!1)))}}},pl.prototype.updateDataBindings=function(a,y){Wr.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},pl.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=pp(y,x),b=this.Lc(a);if(E!==null&&b!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&b instanceof yn&&y.mh(z)===x&&u0(this,b,this.ii(z))}eu(y,x)}a=y.mh(a),a!==void 0&&b instanceof yn&&(a=this.Vb(a),u0(this,a,b))}},pl.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof yn){var x=y.wa(a.data),E=this.Kc(a.data);if(E!==null){E.isSelected=!1,E.isHighlighted=!1;var b=E.layer;if(b!==null){var z=b.pc(-1,E,!1);0<=z&&this.diagram.cb(is,"parts",b,E,null,z,null),z=E.layerChanged,z!==null&&z(E,b,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)b=a.value,b=(E?b.toNode:b.fromNode).data,y.lb(b)&&tu(y,x,b)}},pl.prototype.insertLink=function(a,y,x){y=this.diagram.model;var E=a,b=x;return this.diagram.isTreePathToChildren||(E=x,b=a),E!==null&&b!==null?(y.qe(b.data,y.wa(E.data)),b.kh()):null},pl.prototype.findLinkForKey=pl.prototype.findLinkForKey,pl.className="TreePartManager";function Xn(a,y){this.kl=new en,this.il=new en,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,zr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Jn,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new Jn,this.Lt=new rn,this.Wg=!1,this.o=null,this.undoManager=new bo,a!==void 0&&(Ln(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Xn.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},Xn.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Xn.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Xn.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+or(b)}}return y},Xn.prototype.xA=function(a){a.change!==bs&&Xt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof ds?(xS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Xn.prototype.Qv=function(a,y){var x=this,E=!1,b=new en,z=new en,tt=new en,rt=this.vh;a.changes.each(function(ft){ft.model===x&&(ft.modelChange==="nodeDataArray"?ft.change===Io?b.add(ft.newValue):ft.change===is&&tt.add(ft.oldValue):x.lb(ft.object)?z.add(ft.object):ft.change!==yo||x.modelData!==ft.object&&ft.propertyName!=="modelData"?ft.object!==null&&(rt&&rt.contains(ft.object)?rt.get(ft.object).each(function(mt){x.lb(mt)&&z.add(mt)}):ft.object instanceof Xn||x.ri()&&x.Jc(ft.object)||wS(x,ft.object).each(function(mt){z.add(mt)})):E=!0)});var ot=this.il;ot.clear(),b.each(function(ft){ot.add(x.wa(ft)),y||z.add(ft)});var at=this.kl;at.clear(),tt.each(function(ft){at.add(x.wa(ft)),y&&z.add(ft)}),a=x.cloneDeep(z.Fa());var ut=null;return E&&(ut===null&&(ut={}),ut.modelData=this.cloneDeep(this.modelData)),0<ot.count&&(ut===null&&(ut={}),y?ut.removedNodeKeys=ot.Fa():ut.insertedNodeKeys=ot.Fa()),0<a.length&&(ut===null&&(ut={}),ut.modifiedNodeData=a),0<at.count&&(ut===null&&(ut={}),y?ut.insertedNodeKeys=at.Fa():ut.removedNodeKeys=at.Fa()),at.clear(),ot.clear(),ut},Xn.prototype.cloneDeep=function(a){return Vf(this,a,!0)};function Vf(a,y,x,E,b,z){function tt(ft,mt){rt?(ft.__gohashid===void 0&&z.push(ft),E.set(ft,mt)):(ft=Zo++,E.set(ft,mt),b.set(ft,y))}if(!be(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(E||(E=new Jn),rt){var ot=E.get(y);if(ot)return ot}else for(b||(b=new Jn),ot=b.iterator;ot.next();){var at=ot.key;if(ot.value===y&&(at=E.get(at)))return at}if(Array.isArray(y)){ot=[],tt(y,ot);for(var ut=0;ut<y.length;ut++)ot.push(Vf(a,y[ut],!1,E,b,z))}else if(y instanceof Wt||y instanceof Yt||y instanceof oe||y instanceof Yn||y instanceof gn)ot=y.copy(),tt(y,ot);else{if(y instanceof Gr||y instanceof Qe||y instanceof Ee)return y;if(y instanceof rn)ot=new rn().addAll(Vf(a,y.Fa(),!1,E,b,z)),tt(y,ot);else if(y instanceof en)ot=new en().addAll(Vf(a,y.Fa(),!1,E,b,z)),tt(y,ot);else if(y instanceof Jn)ot=new Jn().addAll(Vf(a,y.Fa(),!1,E,b,z)),tt(y,ot);else if(y instanceof Date)ot=new Date(y.getTime()),tt(y,ot);else if(y instanceof RegExp)ot=new RegExp(y),tt(y,ot),ot.lastIndex=y.lastIndex;else if(typeof y.copy=="function")ot=y.copy(),tt(y,ot);else for(ut in ot={},tt(y,ot),y)ut!=="__gohashid"&&(ot[ut]=Vf(a,y[ut],!1,E,b,z))}return x&&z.forEach(function(ft){delete ft.__gohashid}),ot}Lt=Xn.prototype,Lt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Lt.rm=function(){var a="";return this.name!==""&&(a+=`,
|
|
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
|
|
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
|
|
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
|
|
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
|
|
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
|
|
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
|
|
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
|
|
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},Lt.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function SS(a,y){y=y.modelData,be(y)&&(a.dm(y),a.modelData=y)}Lt.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!PS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
"modelData": `+uy(this,this.modelData)),a+`,
|
|
"nodeDataArray": `+cd(this,this.nodeDataArray,!0)},Lt.kv=function(a){SS(this,a),a=a.nodeDataArray,Ln(a)&&(this.dm(a),this.nodeDataArray=a)};function xS(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var tt=E.get(b);tt===null?(tt=new en,tt.add(z),E.add(b,tt)):tt.add(z)}}var E=a.vh;E===null&&(E=new Jn,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===yo?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===Io||z===is)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function wS(a,y){for(var x=new en,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];h0(a,y,b,b,x)}return x}function h0(a,y,x,E,b){if(Array.isArray(x))for(var z=0;z<x.length;z++){var tt=x[z];if(tt===y)return b.add(E),!0;if(h0(a,y,tt,E,b))return!0}else if(be(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(tt=x[z],tt===y)return b.add(E),!0;if(h0(a,y,tt,E,b))return!0}return!1}Lt.Pv=function(a,y){var x=this,E=!1,b=new en,z=new en,tt=new en,rt=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===Io?b.add(ut.newValue):ut.change===is&&tt.add(ut.oldValue):x.lb(ut.object)?z.add(ut.object):ut.change!==yo||x.modelData!==ut.object&&ut.propertyName!=="modelData"?ut.object!==null&&(rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){x.lb(ft)&&z.add(ft)}):ut.object instanceof Xn||x.ri()&&x.Jc(ut.object)||wS(x,ut.object).each(function(ft){z.add(ft)})):E=!0)});var ot=this.il;ot.clear(),b.each(function(ut){ot.add(x.wa(ut)),y||z.add(ut)});var at=this.kl;return at.clear(),tt.each(function(ut){at.add(x.wa(ut)),y&&z.add(ut)}),a="",E&&(a+=`,
|
|
"modelData": `+uy(this,this.modelData)),0<ot.count&&(a+=(y?this.Yv:this.Wv)+cd(this,ot.Fa(),!0)),0<z.count&&(a+=this.jy+cd(this,z.Fa(),!0)),0<at.count&&(a+=(y?this.Wv:this.Yv)+cd(this,at.Fa(),!0)),at.clear(),ot.clear(),a},Lt.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&Xt("applyIncrementalJson cannot change Model properties"),SS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new Jn;if(Array.isArray(x))for(var b=0;b<x.length;b++){var z=x[b],tt=this.wa(z);tt!=null&&E.set(tt,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){tt=y[z];var rt=this.hc(tt);rt===null&&(rt=(rt=E.get(tt))?rt:this.copyNodeData({}),this.km(rt,tt),this.xf(rt))}if(Array.isArray(x)){for(y=x.length,E=0;E<y;E++)if(b=x[E],z=this.wa(b),z=this.hc(z),z!==null){for(var ot in b)ot==="__gohashid"||ot===this.nodeKeyProperty||this.Wj()&&ot===this.nodeIsGroupProperty||this.setDataProperty(z,ot,b[ot]);this.lm(b,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,ot=0;ot<x;ot++)y=this.hc(a[ot]),y!==null&&this.cm(y)},Lt.$x=function(a,y){a.change!==bs&&Xt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof ds?(y===void 0&&(y=mp(this,this)),xS(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Lt.yA=function(a,y){return this.$x(a,y)},Lt.np=function(a){return a===void 0&&(a=mp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Lt.toJSON=function(a){return this.np(a)},Lt.Zw=function(a){var y=null;if(typeof a=="string")try{y=Re.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:Xt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Xt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Lt.Ky=function(a){return this.Zw(a)},Xn.constructGraphLinksModel=function(){return new Xn},Lt=Xn.prototype,Lt.dm=function(a){if(Ln(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(be(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:Xt("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(be(a)){for(y in a)if(x=a[y],be(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(b=x.length%2===0,E=0;E<x.length;E++)if(typeof x[E]!="number"){b=!1;break}if(b){for(b=new rn,E=0;E<x.length/2;E++)b.add(new Wt(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return Bx(a)}return a},Lt.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):Ln(a)?cd(this,a):be(a)?uy(this,a):typeof a=="function"?"null":a.toString()};function cd(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new fr;b.add("["),x&&1<E&&b.add(`
|
|
`);for(var z=0;z<E;z++){var tt=y[z];tt!==void 0&&(0<z&&(b.add(","),x&&b.add(`
|
|
`)),b.add(a.sm(tt)))}return x&&1<E&&b.add(`
|
|
`),b.add("]"),b.toString()}function PS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Pa(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof Wt)y={class:"go.Point",x:Pa(x.x),y:Pa(x.y)};else if(x instanceof Yt)y={class:"go.Size",width:Pa(x.width),height:Pa(x.height)};else if(x instanceof oe)y={class:"go.Rect",x:Pa(x.x),y:Pa(x.y),width:Pa(x.width),height:Pa(x.height)};else if(x instanceof Yn)y={class:"go.Margin",top:Pa(x.top),right:Pa(x.right),bottom:Pa(x.bottom),left:Pa(x.left)};else if(x instanceof gn)x.sb()?y={class:"go.Spot",x:Pa(x.x),y:Pa(x.y),offsetX:Pa(x.offsetX),offsetY:Pa(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Gr){if(y={class:"go.Brush",type:x.type.name},x.type===Ch?y.color=x.color:(x.type===Qu||x.type===fl)&&(y.start=x.start,y.end=x.end,x.type===fl&&(x.startRadius!==0&&(y.startRadius=Pa(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Pa(x.endRadius)))),x.colorStops!==null){var E={};for(x=x.colorStops.iterator;x.next();)E[x.key]=x.value;y.colorStops=E}}else x instanceof Qe?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Pa(x.startX)),x.startY!==0&&(y.startY=Pa(x.startY)),x.endX!==0&&(y.endX=Pa(x.endX)),x.endY!==0&&(y.endY=Pa(x.endY)),x.spot1.D(yi)||(y.spot1=x.spot1),x.spot2.D(rr)||(y.spot2=x.spot2),x.type===Qe.o&&(y.path=Qe.ia(x))):x instanceof Ee&&(y={class:"go.EnumValue",classType:mp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=rs(y,b);if(!PS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof rn){var tt="[";for(z=z.iterator;z.next();){var rt=z.value;1<tt.length&&(tt+=","),tt+=a.sm(rt.x),tt+=",",tt+=a.sm(rt.y)}tt+="]",E+=tt}else E+=a.sm(z)}return E+"}"}function Ca(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Bx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Wt(Ca(a.x),Ca(a.y));else if(y==="Size")x=new Yt(Ca(a.width),Ca(a.height));else if(y==="Rect")x=new oe(Ca(a.x),Ca(a.y),Ca(a.width),Ca(a.height));else if(y==="Margin")x=new Yn(Ca(a.top),Ca(a.right),Ca(a.bottom),Ca(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Fi(a.enum):x=new gn(Ca(a.x),Ca(a.y),Ca(a.offsetX),Ca(a.offsetY));else if(y==="Brush"){if(x=new Gr,x.type=Mi(Gr,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof gn&&(x.start=a.start),a.end instanceof gn&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Ca(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Ca(a.endRadius)),a=a.colorStops,be(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Qe.parse(a.path):x=new Qe,x.type=Mi(Qe,a.type),typeof a.startX=="number"&&(x.startX=Ca(a.startX)),typeof a.startY=="number"&&(x.startY=Ca(a.startY)),typeof a.endX=="number"&&(x.endX=Ca(a.endX)),typeof a.endY=="number"&&(x.endY=Ca(a.endY)),a.spot1 instanceof gn&&(x.spot1=a.spot1),a.spot2 instanceof gn&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=dy(E),typeof E=="function"&&(x=Mi(E,a.name)));return x}Lt.Pe=function(a){return this.Lt.add(a),this},Lt.ik=function(a){this.Lt.remove(a)},Lt.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,E=0;E<x;E++)y.M(E)(a)},Lt.cb=function(a,y,x,E,b,z,tt){ps(this,"",a,y,x,E,b,z,tt)},Lt.g=function(a,y,x,E,b){ps(this,"",yo,a,this,y,x,E,b)},Lt.Fs=function(a,y,x,E,b,z){ps(this,"",yo,y,a,x,E,b,z)};function ps(a,y,x,E,b,z,tt,rt,ot){rt===void 0&&(rt=null),ot===void 0&&(ot=null);var at=new Lo;at.model=a,at.change=x,at.modelChange=y,at.propertyName=E,at.object=b,at.oldValue=z,at.oldParam=rt,at.newValue=tt,at.newParam=ot,a.ds(at)}Xn.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===yo){var x=a.object,E=a.propertyName,b=a.I(y);E===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),b!==void 0&&this.kb.add(b,x)),Fo(x,E,b)}else a.change===Io?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,be(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&Qi(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&ji(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!Ln(E)&&a.propertyName&&(E=rs(a.object,a.propertyName)),Ln(E)&&typeof x=="number"&&(a=a.newValue,y?Qi(E,x):ji(E,x,a))):Xt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===is?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,be(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&ji(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&Qi(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Ln(E)&&a.propertyName&&(E=rs(a.object,a.propertyName)),Ln(E)&&typeof x=="number"&&(a=a.oldValue,y?ji(E,x,a):Qi(E,x))):Xt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==bs&&Xt("unknown ChangedEvent: "+a.toString())},Xn.prototype.Ea=function(a){return this.undoManager.Ea(a)},Xn.prototype.eb=function(a){return this.undoManager.eb(a)},Xn.prototype.Kf=function(){return this.undoManager.Kf()},Xn.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Lt=Xn.prototype,Lt.La=function(a,y){y===void 0&&(y=""),ps(this,"SourceChanged",bs,y,a,null,null)},Lt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=rs(a,y),y!==void 0)){if(fd(y))return y;Xt("Key value for node data "+a+" is not a number or a string: "+y)}}},Lt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=rs(a,x);E!==y&&this.hc(y)===null&&(Fo(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),ps(this,"nodeKey",yo,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else Fo(a,x,y)}};function fd(a){return typeof a=="number"||typeof a=="string"}Lt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Lt.hc=function(a){return a===null&&Xt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&fd(a)?this.kb.I(a):null},Lt.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var E=this.bl;if(E!==null&&(x=E(this,a),x!=null&&!this.kb.contains(x))){Fo(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;Fo(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Fo(a,y,x)}}}}},Lt.xf=function(a){a!==null&&(Uo(a),this.lb(a)||CS(this,a,!0))};function CS(a,y,x){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&&Xt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,ji(a.Tc,E,y)),ps(a,"nodeDataArray",Io,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Lt.Fy=function(a){if(Ln(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},Lt.cm=function(a){a!==null&&AS(this,a,!0)};function AS(a,y,x){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,x){t:if(x=a.Tc,Array.isArray(x))E=x.indexOf(y);else{E=x.length;for(var b=0;b<E;b++)if(x[b]===y){E=b;break t}E=-1}if(0>E)return;Qi(a.Tc,E)}ps(a,"nodeDataArray",is,"nodeDataArray",a,y,null,E,null),a.qp(y)}Lt.nA=function(a){if(Ln(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},Lt.$z=function(a){if(a!==this.nodeDataArray&&Ln(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],tt=this.wa(z);if(tt!==void 0){x.add(tt);var rt=this.hc(tt);rt!==z&&(rt!==null?(this.Do(rt,z),this.lm(z,rt)):(z=this.cloneDeep(z),this.km(z,tt),this.xf(z)))}else tt=this.cloneDeep(z),this.xf(tt),x.add(this.wa(tt))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),x.clear()}},Lt.jp=function(a,y){y!==void 0&&(a=pp(this,a),a instanceof en&&this.Vf.add(y,a))},Lt.Lv=function(){},Lt.fm=function(){},Lt.em=function(){},Lt.qp=function(){};function tu(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new en,a.Vf.add(y,E)),E.add(x)}}function eu(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof en&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function pp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof en?a:null)}Lt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Xn.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):d0(this,a,!0),be(a)&&zr(a),a};function d0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=d0(a,y[x],a.copiesArrayObjects);E.push(b)}return zr(E),E}if(x&&be(y)){x=(x=y.constructor)?new x:{},b=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(E in y)if(E==="__gohashid")x.__gohashid=void 0;else if(E===b)x[b]=void 0;else{var z=rs(y,E),tt=mp(a,z);tt==="GraphObject"||tt==="Diagram"||tt==="Layer"||tt==="RowColumnDefinition"||tt==="AnimationManager"||tt==="Tool"||tt==="CommandHandler"||tt==="Layout"||tt==="InputEvent"||tt==="DiagramEvent"||z instanceof Xn||z instanceof bo||z instanceof ds||z instanceof Lo||(z=d0(a,z,!1)),Fo(x,E,z)}return zr(x),x}return y instanceof Wt||y instanceof Yt||y instanceof oe||y instanceof gn||y instanceof Yn?y.copy():y}Xn.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!LS&&a instanceof ie&&(LS=!0,wn('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),wn(" Is that really your intent?"));var E=rs(a,y);E!==x&&(Fo(a,y,x),this.Fs(a,y,E,x))},Lt=Xn.prototype,Lt.set=function(a,y,x){this.setDataProperty(a,y,x)},Lt.Do=function(a,y){if(y){var x=this.lb(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||this.setDataProperty(a,E,y[E])}},Lt.Ay=function(a,y){this.ts(a,-1,y)},Lt.ts=function(a,y,x){0>y&&(y=a.length),ji(a,y,x),ps(this,"",Io,"",a,null,x,null,y)},Lt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Xt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Qi(a,y),ps(this,"",is,"",a,x,null,y,null)},Lt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=rs(a,y),y===void 0))return"";if(typeof y=="string")return y;Xt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Lt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=rs(a,x);E===void 0&&(E=""),E!==y&&(Fo(a,x,y),ps(this,"nodeCategory",yo,x,a,E,y))}else Fo(a,x,y)}},Lt.lm=function(a,y){this.jm(y,this.Ro(a))},Lt.Tl=function(){return!1},Lt.Wj=function(){return!1},Lt.ri=function(){return!1},Lt.xs=function(){return!1},Lt.Xj=function(){return!1};function hy(){return new Xn}function mp(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return mp(a,y.constructor);return typeof y}function dy(a){return Gl[a]?Gl[a]:Re.go!==void 0&&Re.go[a]?Re.go[a]:null}function rs(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function Fo(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}Ye.Object.defineProperties(Xn.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&Xt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Xt("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,E=0;E<x;E++){var b=a[E];be(b)||Xt("Model.nodeDataArray must only contain Objects, not: "+b),Uo(b)}for(this.Tc=a,E=new rn,b=0;b<x;b++){var z=a[b],tt=this.wa(z);tt===void 0||this.kb.I(tt)!==null?E.add(z):this.kb.add(tt,z)}for(E=E.iterator;E.next();)b=E.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(ps(this,"nodeDataArray",yo,"nodeDataArray",this,y,a),y=0;y<x;y++)E=a[y],this.fm(E),this.em(E);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Xn.prototype.setCategoryForNodeData=Xn.prototype.jm,Xn.prototype.getCategoryForNodeData=Xn.prototype.Ro,Xn.prototype.removeArrayItem=Xn.prototype.ov,Xn.prototype.insertArrayItem=Xn.prototype.ts,Xn.prototype.addArrayItem=Xn.prototype.Ay,Xn.prototype.assignAllDataProperties=Xn.prototype.Do,Xn.prototype.set=Xn.prototype.set,Xn.prototype.clearUnresolvedReferences=Xn.prototype.Qy,Xn.prototype.mergeNodeDataArray=Xn.prototype.$z,Xn.prototype.removeNodeDataCollection=Xn.prototype.nA,Xn.prototype.removeNodeData=Xn.prototype.cm,Xn.prototype.addNodeDataCollection=Xn.prototype.Fy,Xn.prototype.addNodeData=Xn.prototype.xf,Xn.prototype.makeNodeDataKeyUnique=Xn.prototype.$u,Xn.prototype.findNodeDataForKey=Xn.prototype.hc,Xn.prototype.containsNodeData=Xn.prototype.lb,Xn.prototype.setKeyForNodeData=Xn.prototype.km,Xn.prototype.getKeyForNodeData=Xn.prototype.wa,Xn.prototype.updateTargetBindings=Xn.prototype.La,Xn.prototype.commit=Xn.prototype.commit,Xn.prototype.rollbackTransaction=Xn.prototype.Kf,Xn.prototype.commitTransaction=Xn.prototype.eb,Xn.prototype.startTransaction=Xn.prototype.Ea,Xn.prototype.raiseDataChanged=Xn.prototype.Fs,Xn.prototype.raiseChanged=Xn.prototype.g,Xn.prototype.raiseChangedEvent=Xn.prototype.cb,Xn.prototype.removeChangedListener=Xn.prototype.ik,Xn.prototype.addChangedListener=Xn.prototype.Pe,Xn.prototype.writeJsonValue=Xn.prototype.sm,Xn.prototype.replaceJsonObjects=Xn.prototype.dm,Xn.prototype.applyIncrementalJSON=Xn.prototype.Ky,Xn.prototype.applyIncrementalJson=Xn.prototype.Zw,Xn.prototype.toJSON=Xn.prototype.toJSON,Xn.prototype.toJson=Xn.prototype.np,Xn.prototype.toIncrementalJSON=Xn.prototype.yA,Xn.prototype.toIncrementalJson=Xn.prototype.$x,Xn.prototype.toIncrementalData=Xn.prototype.xA,Xn.prototype.clear=Xn.prototype.clear;var LS=!1,Gl={};Xn.className="Model",Xn.fromJSON=Xn.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Re.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Xt("Unable to construct a Model from: "+a);if(y===null){a=null;var E=x.class;if(typeof E=="string")try{var b=null;E.indexOf("go.")===0?(E=E.substr(3),b=dy(E)):(b=dy(E),b===null&&(b=Re[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Xn?y=a:Xt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Xn.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Xn.safePropertyValue=rs,Xn.safePropertySet=Fo,Gl.Brush=Gr,Gl.ChangedEvent=Lo,Gl.Geometry=Qe,Gl.Margin=Yn,Gl.Panel=nn,Gl.Point=Wt,Gl.Rect=oe,Gl.Size=Yt,Gl.Spot=gn,Gl.Transaction=ds,Gl.UndoManager=bo;function ls(a,y,x,E){zr(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,E===void 0?(this.el=MS,this.wk=null):(this.el=vp,this.wk=E),this.st=new en}ls.prototype.copy=function(){var a=new ls;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},Lt=ls.prototype,Lt.qb=function(a){a.classType===ls&&(this.mode=a)},Lt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.Kx=function(a){return a===void 0&&(a=null),this.mode=vp,this.backConverter=a,this},Lt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Lt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function ES(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Lt.Mv=function(a,y,x){var E=this.sl;if(x===void 0||E===""||E===x){x=this.xl;var b=this.Im;if(b===null&&x==="")wn("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=rs(y,E)),z!==void 0)if(b===null)x!==""&&Fo(a,x,z);else try{if(x!==""){var tt=b(z,a);Fo(a,x,tt)}else b(z,a)}catch(rt){}}}},Lt.sp=function(a,y,x,E){if(this.el===vp){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,tt=a;if(b!==""&&(tt=rs(a,b)),tt!==void 0&&!this.st.contains(a))try{this.st.add(a);var rt=E!==null?E.diagram:null,ot=rt!==null?rt.model:null;if(z===null){if(x!=="")ot!==null?ot.setDataProperty(y,x,tt):Fo(y,x,tt);else if(ot!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var at=E.itemIndex,ut=E.panel.itemArray;ot.ov(ut,at),ot.ts(ut,at,tt)}}else try{if(x!==""){var ft=z(tt,y,ot);ot!==null?ot.setDataProperty(y,x,ft):Fo(y,x,ft)}else{var mt=z(tt,y,ot);if(mt!==void 0&&ot!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var yt=E.itemIndex,wt=E.panel.itemArray;ot.ov(wt,yt),ot.ts(wt,yt,mt)}}}catch(Mt){}}finally{this.st.remove(a)}}}},Ye.Object.defineProperties(ls.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&ye(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&ye(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&ye(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&ye(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&ye(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&ye(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&ye(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&ye(this),this.el=a}}}),ls.prototype.updateSource=ls.prototype.sp,ls.prototype.updateTarget=ls.prototype.Mv,ls.prototype.ofModel=ls.prototype.dA,ls.prototype.ofObject=ls.prototype.cp,ls.prototype.makeTwoWay=ls.prototype.Kx;var Dx="Binding",MS=new Ee(ls,"OneWay",1),vp=new Ee(ls,"TwoWay",2);ls.className="Binding",ls.parseEnum=function(a,y){return function(x){return x=Mi(a,x),x===null?y:x}},ls.toString=or,ls.OneWay=MS,ls.TwoWay=vp;function pr(a,y,x){Xn.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new en,this.wb=new Jn,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(Ln(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}we(pr,Xn),pr.constructGraphLinksModel=Xn.constructGraphLinksModel,pr.prototype.cloneProtected=function(a){Xn.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},Lt=pr.prototype,Lt.clear=function(){Xn.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Lt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;var x=a.length,E;for(E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+or(b)}for(y+=`
|
|
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+il(this,b,!0)+"-->"+il(this,b,!1)}return y},Lt.Qv=function(a,y){this.linkKeyProperty===""&&Xt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Xn.prototype.Qv.call(this,a,y),E=this,b=new en,z=new en,tt=new en,rt=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===Io?b.add(ut.newValue):ut.change===is&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){E.Jc(ft)&&z.add(ft)}):ut.object instanceof Xn||E.lb(ut.object)||FS(E,ut.object).each(function(ft){z.add(ft)})))});var ot=this.il;ot.clear(),b.each(function(ut){ot.add(E.Ac(ut)),y||z.add(ut)});var at=this.kl;return at.clear(),tt.each(function(ut){at.add(E.Ac(ut)),y&&z.add(ut)}),a=E.cloneDeep(z.Fa()),0<ot.count&&(x===null&&(x={}),y?x.removedLinkKeys=ot.Fa():x.insertedLinkKeys=ot.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<at.count&&(x===null&&(x={}),y?x.insertedLinkKeys=at.Fa():x.removedLinkKeys=at.Fa()),at.clear(),ot.clear(),x},Lt.rm=function(){var a=Xn.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
|
|
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
|
|
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
|
|
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
|
|
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
|
|
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
|
|
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
|
|
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
|
|
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
|
|
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},Lt.gp=function(a){Xn.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},Lt.Rv=function(){var a=Xn.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+cd(this,this.linkDataArray,!0);return a+y},Lt.kv=function(a){Xn.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function FS(a,y){for(var x=new en,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];h0(a,y,b,b,x)}return x}Lt.Pv=function(a,y){this.linkKeyProperty===""&&Xt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Xn.prototype.Pv.call(this,a,y),E=this,b=new en,z=new en,tt=new en,rt=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===Io?b.add(ut.newValue):ut.change===is&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){E.Jc(ft)&&z.add(ft)}):ut.object instanceof Xn||E.lb(ut.object)||FS(E,ut.object).each(function(ft){z.add(ft)})))});var ot=this.il;ot.clear(),b.each(function(ut){ot.add(E.Ac(ut)),y||z.add(ut)});var at=this.kl;return at.clear(),tt.each(function(ut){at.add(E.Ac(ut)),y&&z.add(ut)}),a=x,0<ot.count&&(a+=(y?this.Xv:this.Vv)+cd(this,ot.Fa(),!0)),0<z.count&&(a+=this.iy+cd(this,z.Fa(),!0)),0<at.count&&(a+=(y?this.Vv:this.Xv)+cd(this,at.Fa(),!0)),at.clear(),ot.clear(),a},Lt.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&Xt("applyIncrementalJson cannot change Model properties"),Xn.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,E=0;E<x;E++){var b=y[E],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,E=0;E<x;E++)if(b=y[E],z=this.Ac(b),z=this.jh(z),z!==null){for(var tt in b)tt!=="__gohashid"&&tt!==this.linkKeyProperty&&this.setDataProperty(z,tt,b[tt]);BS(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(tt=a.length,y=0;y<tt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},pr.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===yo){var x=a.object,E=a.propertyName;if(E===this.linkKeyProperty&&this.Jc(x)){var b=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),b!==void 0&&this.wb.add(b,x),Fo(x,E,b);return}}else if(a.change===Io){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,be(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)):0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===is){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,be(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}Xn.prototype.changeState.call(this,a,y)}},Lt=pr.prototype,Lt.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Fo(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Lt.yx=function(a){return il(this,a,!0)},Lt.wv=function(a,y){Yf(this,a,y,!0)},Lt.Bx=function(a){return il(this,a,!1)},Lt.Bv=function(a,y){Yf(this,a,y,!1)};function il(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=rs(y,a),a!==void 0))){if(fd(a))return a;Xt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Yf(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=rs(y,b);z!==x&&(eu(a,z,y),Fo(y,b,x),a.hc(x)===null&&tu(a,x,y),ps(a,E?"linkFromKey":"linkToKey",yo,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Fo(y,b,x)}}Lt.zx=function(a){return c0(this,a,!0)},Lt.xv=function(a,y){Zf(this,a,y,!0)},Lt.Cx=function(a){return c0(this,a,!1)},Lt.Cv=function(a,y){Zf(this,a,y,!1)};function c0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=rs(y,a),y===void 0?"":y)}function Zf(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=rs(y,b);z===void 0&&(z=""),z!==x&&(Fo(y,b,x),ps(a,E?"linkFromPortId":"linkToPortId",yo,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Fo(y,b,x)}}Lt.Ef=function(a){if(a===null)return f0;var y=this.je;return y===""?f0:(a=rs(a,y),a===void 0?f0:a)},Lt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=rs(a,x);if(E===void 0&&(E=f0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)eu(this,E[z],a);for(Fo(a,x,y),b=y.length,z=0;z<b;z++){var tt=y[z];this.hc(tt)===null&&tu(this,tt,a)}ps(this,"linkLabelKeys",yo,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else Fo(a,x,y)}},Lt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=rs(a,x);if(E===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(E)){var b=E.indexOf(y);0<=b||(b=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&tu(this,y,a),ps(this,"linkLabelKeys",Io,x,a,null,y,null,b)))}else Xt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Lt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=rs(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(eu(this,y,a),ps(this,"linkLabelKeys",is,x,a,y,null,b,null)))}else E!==void 0&&Xt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Lt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=rs(a,y),y!==void 0)){if(fd(y))return y;Xt("Key value for link data "+a+" is not a number or a string: "+y)}}},Lt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=rs(a,x);E!==y&&this.jh(y)===null&&(Fo(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),ps(this,"linkKey",yo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Fo(a,x,y)}},Lt.jh=function(a){return a===null&&Xt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&fd(a)?this.wb.I(a):null},Lt.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){Fo(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;Fo(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Fo(a,y,x)}}}}},Lt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Lt.fi=function(a){a!==null&&(Uo(a),this.Jc(a)||kS(this,a,!0))};function kS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&Xt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),ps(a,"linkDataArray",Io,"linkDataArray",a,null,y,null,E),cy(a,y)}Lt.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},Lt.bm=function(a){a!==null&&bS(this,a,!0)};function bS(a,y,x){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,x){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(ps(a,"linkDataArray",is,"linkDataArray",a,y,null,E,null),x=il(a,y,!0),eu(a,x,y),x=il(a,y,!1),eu(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],eu(a,x,y)}Lt.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},Lt.Zz=function(a){if(this.linkKeyProperty===""&&Xt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Ln(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],tt=this.Ac(z);if(tt!==void 0){x.add(tt);var rt=this.jh(tt);rt!==z&&(rt!==null?(this.Do(rt,z),BS(this,z,rt)):(z=this.cloneDeep(z),this.Ks(z,tt),this.fi(z)))}else tt=this.cloneDeep(z),this.fi(tt),x.add(this.Ac(tt))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),x.clear()}};function cy(a,y){var x=il(a,y,!0);x=a.Vl(x),a.hc(x)===null&&tu(a,x,y),x=il(a,y,!1),x=a.Vl(x),a.hc(x)===null&&tu(a,x,y);var E=a.Ef(y);if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],a.hc(x)===null&&tu(a,x,y)}Lt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):d0(this,a,!0),be(a)&&(zr(a),this.lf!==""&&Fo(a,this.lf,void 0),this.mf!==""&&Fo(a,this.mf,void 0),this.je!==""&&Fo(a,this.je,[])),a},Lt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!rs(a,y)},Lt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=rs(a,y),y!==void 0)){if(fd(y))return y;Xt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Lt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=rs(a,x);E!==y&&(eu(this,E,a),Fo(a,x,y),this.hc(y)===null&&tu(this,y,a),ps(this,"nodeGroupKey",yo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Fo(a,x,y)}},pr.prototype.copyNodeData=function(a){return a===null?null:(a=Xn.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||rs(a,this.Je)===void 0||Fo(a,this.Je,void 0),a)},pr.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Yf(this,a,x,!0);return}if(y===this.linkToKeyProperty){Yf(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Zf(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Zf(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var E=rs(a,y);E!==x&&(Fo(a,y,x),this.Fs(a,y,E,x))},Lt=pr.prototype,Lt.Do=function(a,y){if(y){var x=this.lb(a),E=this.Jc(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||x&&b===this.nodeIsGroupProperty&&rs(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Lt.jp=function(a,y){Xn.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var E=x.value,b=a,z=y;if(il(this,E,!0)===b){var tt=this.lf;Fo(E,tt,z),ps(this,"linkFromKey",yo,tt,E,b,z),typeof tt=="string"&&this.La(E,tt)}if(il(this,E,!1)===b&&(tt=this.mf,Fo(E,tt,z),ps(this,"linkToKey",yo,tt,E,b,z),typeof tt=="string"&&this.La(E,tt)),tt=this.Ef(E),Array.isArray(tt))for(var rt=tt.length,ot=this.je,at=0;at<rt;at++)tt[at]===b&&(tt[at]=z,ps(this,"linkLabelKeys",Io,ot,E,b,z,at,at))}},Lt.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;Fo(a,E,x),ps(this,"nodeGroupKey",yo,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Lt.Lv=function(){Xn.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)cy(this,a[x])},Lt.fm=function(a){Xn.prototype.fm.call(this,a),a=this.wa(a);var y=pp(this,a);if(y!==null){var x=On();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;ps(this,"nodeGroupKey",yo,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(il(this,E,!0)===a&&(b=this.lf,ps(this,"linkFromKey",yo,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),il(this,E,!1)===a&&(b=this.mf,ps(this,"linkToKey",yo,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),b=this.Ef(E),Array.isArray(b))for(var z=b.length,tt=this.je,rt=0;rt<z;rt++)b[rt]===a&&(ps(this,"linkLabelKeys",Io,tt,E,a,a,rt,rt),x.push(E))}for(y=0;y<x.length;y++)eu(this,a,x[y]);Bn(x)}},Lt.em=function(a){Xn.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&tu(this,y,a)},Lt.qp=function(a){Xn.prototype.qp.call(this,a);var y=this.lh(a);eu(this,y,a)},Lt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=rs(a,y),y===void 0))return"";if(typeof y=="string")return y;Xt("getCategoryForLinkData found a non-string category for "+a+": "+y)},pr.prototype.getLinkCategoryForData=function(a){return this.ps(a)},pr.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=rs(a,x);E===void 0&&(E=""),E!==y&&(Fo(a,x,y),ps(this,"linkCategory",yo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Fo(a,x,y)}},pr.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Lt=pr.prototype,Lt.lm=function(a,y){Xn.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function BS(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}Lt.Wj=function(){return!0},Lt.ri=function(){return!0},Lt.xs=function(){return!0},Lt.Xj=function(){return!0},Ye.Object.defineProperties(pr.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,E=0;E<x;E++){var b=a[E];be(b)||Xt("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Uo(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new rn,b=0;b<x;b++){var z=a[b],tt=this.Ac(z);tt===void 0||this.wb.I(tt)!==null?E.add(z):this.wb.add(tt,z)}for(E=E.iterator;E.next();)b=E.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(E=new en,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,ps(this,"linkDataArray",yo,"linkDataArray",this,y,a),y=0;y<x;y++)cy(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,E=0;E<x;E++){var b=this.linkDataArray[E],z=this.Ac(b);z===void 0&&(this.Bs(b),z=this.Ac(b)),z!==void 0&&this.wb.add(z,b)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),pr.prototype.setCategoryForLinkData=pr.prototype.lp,pr.prototype.getCategoryForLinkData=pr.prototype.ps,pr.prototype.assignAllDataProperties=pr.prototype.Do,pr.prototype.setGroupKeyForNodeData=pr.prototype.mp,pr.prototype.getGroupKeyForNodeData=pr.prototype.lh,pr.prototype.isGroupForNodeData=pr.prototype.Yu,pr.prototype.copyLinkData=pr.prototype.Jo,pr.prototype.mergeLinkDataArray=pr.prototype.Zz,pr.prototype.removeLinkDataCollection=pr.prototype.lA,pr.prototype.removeLinkData=pr.prototype.bm,pr.prototype.addLinkDataCollection=pr.prototype.Ey,pr.prototype.addLinkData=pr.prototype.fi,pr.prototype.containsLinkData=pr.prototype.Jc,pr.prototype.makeLinkDataKeyUnique=pr.prototype.Bs,pr.prototype.findLinkDataForKey=pr.prototype.jh,pr.prototype.setKeyForLinkData=pr.prototype.Ks,pr.prototype.getKeyForLinkData=pr.prototype.Ac,pr.prototype.removeLabelKeyForLinkData=pr.prototype.Qx,pr.prototype.addLabelKeyForLinkData=pr.prototype.Bu,pr.prototype.setLabelKeysForLinkData=pr.prototype.Ls,pr.prototype.getLabelKeysForLinkData=pr.prototype.Ef,pr.prototype.setToPortIdForLinkData=pr.prototype.Cv,pr.prototype.getToPortIdForLinkData=pr.prototype.Cx,pr.prototype.setFromPortIdForLinkData=pr.prototype.xv,pr.prototype.getFromPortIdForLinkData=pr.prototype.zx,pr.prototype.setToKeyForLinkData=pr.prototype.Bv,pr.prototype.getToKeyForLinkData=pr.prototype.Bx,pr.prototype.setFromKeyForLinkData=pr.prototype.wv,pr.prototype.getFromKeyForLinkData=pr.prototype.yx,pr.prototype.clear=pr.prototype.clear;var f0=Object.freeze([]);pr.className="GraphLinksModel",Gl.GraphLinksModel=pr,Xn.constructGraphLinksModel=Xn.constructGraphLinksModel=function(){return new pr},Xn.initDiagramModel=hy=function(){return new pr};function Aa(a,y){Xn.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Ln(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}we(Aa,Xn),Aa.constructGraphLinksModel=Xn.constructGraphLinksModel,Aa.prototype.cloneProtected=function(a){Xn.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Lt=Aa.prototype,Lt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+or(b)}}return y},Lt.rm=function(){var a=Xn.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Lt.gp=function(a){Xn.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Lt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Xt("applyIncrementalJson cannot change Model properties"),Xn.prototype.fp.call(this,a)},Lt.Vl=function(a){return a},Lt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=rs(a,y),y!==void 0)){if(fd(y))return y;Xt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Lt.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var E=rs(a,x);E!==y&&(eu(this,E,a),Fo(a,x,y),this.hc(y)===null&&tu(this,y,a),ps(this,"nodeParentKey",yo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Fo(a,x,y)}},Lt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=rs(a,y),y===void 0)?"":typeof y=="string"?y:(Xt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Aa.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Aa.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=rs(a,x);E===void 0&&(E=""),E!==y&&(Fo(a,x,y),ps(this,"parentLinkCategory",yo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Fo(a,x,y)}},Aa.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Aa.prototype.copyNodeData=function(a){return a===null?null:(a=Xn.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||rs(a,this.Ke)===void 0||Fo(a,this.Ke,void 0),a)},Aa.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var E=rs(a,y);E!==x&&(Fo(a,y,x),this.Fs(a,y,E,x))},Lt=Aa.prototype,Lt.jp=function(a,y){Xn.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Lt.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;Fo(a,E,x),ps(this,"nodeParentKey",yo,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Lt.fm=function(a){Xn.prototype.fm.call(this,a),a=this.wa(a);var y=pp(this,a);if(y!==null){var x=On();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;ps(this,"nodeParentKey",yo,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)eu(this,a,x[y]);Bn(x)}},Lt.em=function(a){Xn.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&tu(this,y,a)},Lt.qp=function(a){Xn.prototype.qp.call(this,a);var y=this.mh(a);eu(this,y,a)},Lt.lm=function(a,y){Xn.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Lt.Tl=function(){return!0},Lt.xs=function(){return!0},Ye.Object.defineProperties(Aa.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),Aa.prototype.setParentLinkCategoryForNodeData=Aa.prototype.Ms,Aa.prototype.getParentLinkCategoryForNodeData=Aa.prototype.ss,Aa.prototype.setParentKeyForNodeData=Aa.prototype.qe,Aa.prototype.getParentKeyForNodeData=Aa.prototype.mh,Aa.className="TreeModel",Gl.TreeModel=Aa;function Vo(a){Do.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Wl,this.Ti=0,this.Zv=new Wt,this.Jp=this.me=0,this.Xr=new wp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Wl,this.K=La,this.nd=Xf,this.hd=ry,this.tf=6,this.Nn=x0,a&&Object.assign(this,a)}we(Vo,Do),Vo.prototype.cloneProtected=function(a){Do.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},Vo.prototype.qb=function(a){a.classType===Vo?a===y0||a===S0||a===m0||a===v0||a===Xf?this.sorting=a:a===ec||a===Uf||a===La||a===pd?this.direction=a:a===Bh||a===gd||a===Wl||a===Vl?this.arrangement=a:(a===Hc||a===x0)&&(this.nodeDiameterFormula=a):Do.prototype.qb.call(this,a)},Vo.prototype.createNetwork=function(){return new Kf(this)},Vo.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new rn;y.addAll(a.iterator),a=new rn;var x=new rn,E=this.sort(y),b,z,tt=this.Jp,rt=this.arrangement,ot=this.nodeDiameterFormula,at=this.radius;(!isFinite(at)||0>=at)&&(at=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var mt=this.sweepAngle;if((!isFinite(mt)||360<mt||1>mt)&&(mt=360),y=this.spacing,isFinite(y)||(y=NaN),rt===Vl&&ot===Hc?rt=Wl:rt===Vl&&ot!==Hc&&(rt=this.arrangement),(this.direction===ec||this.direction===Uf)&&this.sorting!==Xf){for(ot=0;!(ot>=E.length)&&(a.add(E.M(ot)),!(ot+1>=E.length));ot+=2)x.add(E.M(ot+1));this.direction===ec?(this.arrangement===Vl&&a.reverse(),E=new rn,E.addAll(a),E.addAll(x)):(this.arrangement===Vl&&x.reverse(),E=new rn,E.addAll(x),E.addAll(a))}ot=E.length;for(var yt=z=b=0;yt<E.length;yt++){var wt=ft+mt*z*(this.direction===La?1:-1)/ot,Mt=E.M(yt).diameter;isNaN(Mt)&&(Mt=md(E.M(yt),wt)),360>mt&&(yt===0||yt===E.length-1)&&(Mt/=2),b+=Mt,z++}if(isNaN(at)||rt===Vl){if(isNaN(y)&&(y=6),rt!==Wl&&rt!==Vl){for(z=-1/0,tt=0;tt<ot;tt++)yt=E.M(tt),b=E.M(tt===ot-1?0:tt+1),isNaN(yt.diameter)&&md(yt,0),isNaN(b.diameter)&&md(b,0),z=Math.max(z,(yt.diameter+b.diameter)/2);tt=z+y,rt===Bh?at=(z+y)/(2*Math.PI/ot):at=g0(this,tt*(360<=mt?ot:ot-1),ut,ft*Math.PI/180,mt*Math.PI/180)}else at=g0(this,b+(360<=mt?ot:ot-1)*(rt!==Vl?y:1.6*y),ut,ft*Math.PI/180,mt*Math.PI/180);z=at*ut}else if(z=at*ut,yt=fy(this,at,z,ft*Math.PI/180,mt*Math.PI/180),isNaN(y))(rt===Wl||rt===Vl)&&(y=(yt-b)/(360<=mt?ot:ot-1));else if(rt===Wl||rt===Vl)yt=(yt-b)/(360<=mt?ot:ot-1),yt<y?(at=g0(this,b+y*(360<=mt?ot:ot-1),ut,ft*Math.PI/180,mt*Math.PI/180),z=at*ut):y=yt;else{for(tt=-1/0,b=0;b<ot;b++)wt=E.M(b),Mt=E.M(b===ot-1?0:b+1),isNaN(wt.diameter)&&md(wt,0),isNaN(Mt.diameter)&&md(Mt,0),tt=Math.max(tt,(wt.diameter+Mt.diameter)/2);tt+=y,b=g0(this,tt*(360<=mt?ot:ot-1),ut,ft*Math.PI/180,mt*Math.PI/180),b>at?(at=b,z=at*ut):tt=yt/(360<=mt?ot:ot-1)}if(this.kw=rt,this.lc=at,this.Zm=ut,this.lw=ft,this.Wp=mt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,rt=this.lc,at=this.lw,ut=this.Wp,ft=this.Ti,mt=this.me,ot=this.Jp,this.direction!==ec&&this.direction!==Uf||E!==Vl)if(this.direction===ec||this.direction===Uf){switch(tt=0,E){case gd:tt=180*p0(this,rt,mt,at,ot)/Math.PI;break;case Wl:ot=y=0,tt=a.first(),tt!==null&&(y=md(tt,Math.PI/2)),tt=x.first(),tt!==null&&(ot=md(tt,Math.PI/2)),tt=180*p0(this,rt,mt,at,ft+(y+ot)/2)/Math.PI;break;case Bh:tt=ut/y.length}if(this.direction===ec){switch(E){case gd:xp(this,a,at,pd);break;case Wl:Sp(this,a,at,pd);break;case Bh:yp(this,a,ut/2,at,pd)}switch(E){case gd:xp(this,x,at+tt,La);break;case Wl:Sp(this,x,at+tt,La);break;case Bh:yp(this,x,ut/2,at+tt,La)}}else{switch(E){case gd:xp(this,x,at,pd);break;case Wl:Sp(this,x,at,pd);break;case Bh:yp(this,x,ut/2,at,pd)}switch(E){case gd:xp(this,a,at+tt,La);break;case Wl:Sp(this,a,at+tt,La);break;case Bh:yp(this,a,ut/2,at+tt,La)}}}else switch(E){case gd:xp(this,y,at,this.direction);break;case Wl:Sp(this,y,at,this.direction);break;case Bh:yp(this,y,ut,at,this.direction);break;case Vl:DS(this,y,ut,at,this.direction)}else DS(this,y,ut,at-ut/2,La)}this.updateParts(),this.network=null,this.isValidLayout=!0};function yp(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var at=E+(b===La?ot*x/(360<=z?rt:rt-1):-(ot*x)/rt),ut=y.M(ot),ft=tt*Math.tan(at)/a;ft=Math.sqrt((tt*tt+a*a*ft*ft)/(1+ft*ft)),ut.centerX=ft*Math.cos(at),ut.centerY=ft*Math.sin(at),ut.actualAngle=180*at/Math.PI}}function Sp(a,y,x,E){var b=a.lc,z=a.me,tt=a.Ti;x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var at=y.M(ot),ut=y.M(ot===rt-1?0:ot+1),ft=z*Math.sin(x);at.centerX=b*Math.cos(x),at.centerY=ft,at.actualAngle=180*x/Math.PI,isNaN(at.diameter)&&md(at,0),isNaN(ut.diameter)&&md(ut,0),at=p0(a,b,z,E===La?x:-x,(at.diameter+ut.diameter)/2+tt),x+=E===La?at:-at}}function xp(a,y,x,E){var b=a.lc,z=a.me,tt=a.Jp;x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var at=y.M(ot);at.centerX=b*Math.cos(x),at.centerY=z*Math.sin(x),at.actualAngle=180*x/Math.PI,at=p0(a,b,z,E===La?x:-x,tt),x+=E===La?at:-at}}function DS(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new wp,360>x){for(z=E+(b===La?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,TS(a,y,x,E,b)}else NS(a,y,x,E,b);a.Xr.commit(y)}function NS(a,y,x,E,b){var z=a.lc,tt=a.Ti,rt=a.Zm,ot=z*Math.cos(E*Math.PI/180),at=a.me*Math.sin(E*Math.PI/180),ut=y.Fa();if(ut.length===3)ut[0].centerX=z,ut[0].centerY=0,ut[1].centerX=ut[0].centerX-ut[0].width/2-ut[1].width/2-tt,ut[1].y=ut[0].y,ut[2].centerX=(ut[0].centerX+ut[1].centerX)/2,ut[2].y=ut[0].y-ut[2].height-tt;else if(ut.length===4)ut[0].centerX=z,ut[0].centerY=0,ut[2].centerX=-ut[0].centerX,ut[2].centerY=ut[0].centerY,ut[1].centerX=0,ut[1].y=Math.min(ut[0].y,ut[2].y)-ut[1].height-tt,ut[3].centerX=0,ut[3].y=Math.max(ut[0].y+ut[0].height+tt,ut[2].y+ut[2].height+tt);else{z=Wt.alloc();for(var ft=0;ft<ut.length&&(ut[ft].centerX=ot,ut[ft].centerY=at,!(ft>=ut.length-1));ft++)IS(a,ot,at,ut,ft,b,z)||OS(a,ot,at,ut,ft,b,z),ot=z.x,at=z.y;if(Wt.free(z),a.mj++,!(23<a.mj)){ot=ut[0].centerX,at=ut[0].centerY,z=ut[ut.length-1].centerX,ft=ut[ut.length-1].centerY;var mt=Math.abs(ot-z)-((ut[0].width+ut[ut.length-1].width)/2+tt),yt=Math.abs(at-ft)-((ut[0].height+ut[ut.length-1].height)/2+tt);tt=0,1>Math.abs(yt)?Math.abs(ot-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0<yt?yt:1>Math.abs(mt)?0:mt,ot=Math.abs(z)>Math.abs(ft)?0<z!=at>ft:0<ft!=ot<z,(ot=b===La?ot:!ot)&&(tt=-Math.abs(tt),tt=Math.min(tt,-ut[ut.length-1].width),tt=Math.min(tt,-ut[ut.length-1].height)),a.Xr.compare(tt,ut),1<Math.abs(tt)&&(a.lc=8>a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10<tt?a.lc/2:a.lc-(0<tt?1.7:-2.3),a.me=a.lc*rt,NS(a,y,x,E,b))}}}function TS(a,y,x,E,b){for(var z=a.lc,tt=a.me,rt=a.Zm,ot=z*Math.cos(E*Math.PI/180),at=tt*Math.sin(E*Math.PI/180),ut=Wt.alloc(),ft=y.Fa(),mt=0;mt<ft.length&&(ft[mt].centerX=ot,ft[mt].centerY=at,!(mt>=ft.length-1));mt++)IS(a,ot,at,ft,mt,b,ut)||OS(a,ot,at,ft,mt,b,ut),ot=ut.x,at=ut.y;if(Wt.free(ut),a.mj++,!(23<a.mj)){if(ot=Math.atan2(at,ot),ot=b===La?a.gt-ot:ot-a.gt,ot=Math.abs(ot)<Math.abs(ot-2*Math.PI)?ot:ot-2*Math.PI,z=ot*(z+tt)/2,tt=a.Xr,Math.abs(z)<Math.abs(tt.Pl))for(tt.Pl=z,tt.mk=[],tt.tm=[],ot=0;ot<ft.length;ot++)tt.mk[ot]=ft[ot].bounds.x,tt.tm[ot]=ft[ot].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*rt,TS(a,y,x,E,b))}}function IS(a,y,x,E,b,z,tt){var rt=a.lc,ot=a.me,at=0;a=(E[b].width+E[b+1].width)/2+a.Ti;var ut=!1;if(0<=x!=(z===La)){if(z=y+a,z>rt){if(z=y-a,z<-rt)return tt.x=z,tt.y=at,!1;ut=!0}}else if(z=y-a,z<-rt){if(z=y+a,z>rt)return tt.x=z,tt.y=at,!1;ut=!0}return at=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>x!==ut&&(at=-at),Math.abs(x-at)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=at,!1):(tt.x=z,tt.y=at,!0)}function OS(a,y,x,E,b,z,tt){var rt=a.lc,ot=a.me,at=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===La)){if(z=x-a,z<-ot){if(z=x+a,z>ot){tt.x=at,tt.y=z;return}E=!0}}else if(z=x+a,z>ot){if(z=x-a,z<-ot){tt.x=at,tt.y=z;return}E=!0}at=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>y!==E&&(at=-at),tt.x=at,tt.y=z}Vo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Vo.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Wt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Vo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,rt=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),ot=0,at=0;at<=z;at++){E!==void 0&&b!==void 0?ot=E+at*b/z:ot=at*Math.PI/(2*z);var ut=Math.sin(ot);tt+=Math.sqrt(1-a*a*ut*ut)*rt}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function g0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?fy(a,1,x,E,b):fy(a,1,x))}function p0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var rt=0;;rt++){var ot=Math.sin(E+rt*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*ot*ot)*a,tt>=b)return rt*a}}Vo.prototype.sort=function(a){switch(this.sorting){case m0:break;case v0:a.reverse();break;case y0:a.sort(this.comparer);break;case S0:a.sort(this.comparer),a.reverse();break;case Xf:return this.ak(Nx(a));default:Xt("Invalid sorting type.")}return a};function Nx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new rn;for(var E=0;E<a.length;E++){var b=-1,z=-1;if(E===0)for(var tt=0;tt<a.length;tt++){var rt=a.M(tt).edgesCount;rt>b&&(b=rt,z=tt)}else for(tt=0;tt<a.length;tt++)rt=y[tt],rt>b&&(b=rt,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}Vo.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var E=a.M(x);y[x]=[];for(var b,z=E.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var tt=[],rt=[];E=[],b=new rn;for(var ot=0,at=0;at<y.length;at++){var ut=y[at].length;if(ut===1)E.push(at);else if(ut===0)b.add(a.M(at));else{if(ot===0)x.push(at);else{for(var ft=ut=1/0,mt=-1,yt=[],wt=0;wt<x.length;wt++)0>y[x[wt]].indexOf(x[wt===x.length-1?0:wt+1])&&yt.push(wt===x.length-1?0:wt+1);if(yt.length===0)for(wt=0;wt<x.length;wt++)yt.push(wt);for(wt=0;wt<yt.length;wt++){for(var Mt=yt[wt],Ht=y[at],It=0,Zt=0;Zt<tt.length;Zt++){var Kt=z[tt[Zt]],Qt=z[rt[Zt]];if(Kt<Qt){var ne=Kt;Kt=Qt}else ne=Qt;if(ne<Mt&&Mt<=Kt)for(Qt=0;Qt<Ht.length;Qt++){var Se=Ht[Qt];0>x.indexOf(Se)||ne<z[Se]&&z[Se]<Kt||ne===z[Se]||Kt===z[Se]||It++}else for(Qt=0;Qt<Ht.length;Qt++)Se=Ht[Qt],0>x.indexOf(Se)||ne<z[Se]&&z[Se]<Kt&&ne!==z[Se]&&Kt!==z[Se]&&It++}for(Ht=It,Zt=It=0;Zt<y[at].length;Zt++)ne=x.indexOf(y[at][Zt]),0<=ne&&(ne=Math.abs(Mt-(ne>=Mt?ne+1:ne)),It+=ne<x.length+1-ne?ne:x.length+1-ne);for(Zt=0;Zt<tt.length;Zt++)ne=z[tt[Zt]],Kt=z[rt[Zt]],ne>=Mt&&ne++,Kt>=Mt&&Kt++,ne>Kt&&(Qt=Kt,Kt=ne,ne=Qt),Kt-ne<(x.length+2)/2==(ne<Mt&&Mt<=Kt)&&It++;(Ht<ut||Ht===ut&&It<ft)&&(ut=Ht,ft=It,mt=Mt)}for(x.splice(mt,0,at),ut=0;ut<x.length;ut++)z[x[ut]]=ut;for(ut=0;ut<y[at].length;ut++)ft=y[at][ut],0<=x.indexOf(ft)&&(tt.push(at),rt.push(ft))}ot++}}for(tt=x.length;;){for(z=!0,rt=0;rt<E.length;rt++)if(ot=E[rt],at=y[ot][0],ut=x.indexOf(at),0<=ut){for(mt=ft=0;mt<y[at].length;mt++)yt=x.indexOf(y[at][mt]),0>yt||yt===ut||(wt=yt>ut?yt-ut:ut-yt,ft+=yt<ut!=wt>tt-wt?1:-1);x.splice(0>ft?ut:ut+1,0,ot),E.splice(rt,1),rt--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y<x.length;y++)b.add(a.M(x[y]));return b},Ye.Object.defineProperties(Vo.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Vl&&a!==Wl&&a!==gd&&a!==Bh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==La&&a!==pd&&a!==ec&&a!==Uf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==m0&&a!==v0&&a!==y0&&!S0&&a!==Xf||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==x0&&a!==Hc||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Wl=new Ee(Vo,"ConstantSpacing",0),gd=new Ee(Vo,"ConstantDistance",1),Bh=new Ee(Vo,"ConstantAngle",2),Vl=new Ee(Vo,"Packed",3),La=new Ee(Vo,"Clockwise",4),pd=new Ee(Vo,"Counterclockwise",5),ec=new Ee(Vo,"BidirectionalLeft",6),Uf=new Ee(Vo,"BidirectionalRight",7),m0=new Ee(Vo,"Forwards",8),v0=new Ee(Vo,"Reverse",9),y0=new Ee(Vo,"Ascending",10),S0=new Ee(Vo,"Descending",11),Xf=new Ee(Vo,"Optimized",12),x0=new Ee(Vo,"Pythagorean",13),Hc=new Ee(Vo,"Circular",14);Vo.className="CircularLayout",Vo.ConstantSpacing=Wl,Vo.ConstantDistance=gd,Vo.ConstantAngle=Bh,Vo.Packed=Vl,Vo.Clockwise=La,Vo.Counterclockwise=pd,Vo.BidirectionalLeft=ec,Vo.BidirectionalRight=Uf,Vo.Forwards=m0,Vo.Reverse=v0,Vo.Ascending=y0,Vo.Descending=S0,Vo.Optimized=Xf,Vo.Pythagorean=x0,Vo.Circular=Hc;function wp(){this.Pl=-1/0,this.tm=this.mk=null}wp.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},wp.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},wp.className="VertexArrangement";function Kf(a){co.call(this,a)}we(Kf,co),Kf.prototype.createVertex=function(){return new Pp(this)},Kf.prototype.createEdge=function(){return new w0(this)},Kf.className="CircularNetwork";function Pp(a){xs.call(this,a),this.u=this.Si=NaN}we(Pp,xs);function md(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Vl)if(x.nodeDiameterFormula===Hc)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===Hc?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Ye.Object.defineProperties(Pp.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),Pp.className="CircularVertex";function w0(a){Ua.call(this,a)}we(w0,Ua),w0.className="CircularEdge";function Qs(a){Do.call(this),this.ah=null,this.An=0,this.$d=new Yt(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}we(Qs,Do),Qs.prototype.cloneProtected=function(a){Do.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},Qs.prototype.createNetwork=function(){return new Gc(this)},Qs.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var E=x.iterator;E.next();){this.network=E.value;for(var b=this.network.vertexes.iterator;b.next();){var z=b.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}RS(this,0,a)}this.network=y;var tt=E=x.iterator;E=this.arrangementSpacing;var rt=tt.count,ot=!0;z=b=0;for(var at=On(),ut=0;ut<rt+y.vertexes.count+2;ut++)at[ut]=null;rt=0,tt.reset();for(var ft=oe.alloc();tt.next();)if(ut=tt.value,this.computeBounds(ut,ft),ot)ot=!1,b=ft.x+ft.width/2,z=ft.y+ft.height/2,at[0]=new Wt(ft.x+ft.width+E.width,ft.y),at[1]=new Wt(ft.x,ft.y+ft.height+E.height),rt=2;else{var mt=zS(at,rt,b,z,ft.width,ft.height,E),yt=at[mt],wt=new Wt(yt.x+ft.width+E.width,yt.y),Mt=new Wt(yt.x,yt.y+ft.height+E.height);for(mt+1<rt&&at.splice(mt+1,0,null),at[mt]=wt,at[mt+1]=Mt,rt++,mt=yt.x-ft.x,yt=yt.y-ft.y,ut=ut.vertexes.iterator;ut.next();)wt=ut.value,wt.centerX+=mt,wt.centerY+=yt}for(oe.free(ft),ut=y.vertexes.iterator;ut.next();)tt=ut.value,mt=tt.bounds,2>rt?(b=mt.x+mt.width/2,z=mt.y+mt.height/2,at[0]=new Wt(mt.x+mt.width+E.width,mt.y),at[1]=new Wt(mt.x,mt.y+mt.height+E.height),rt=2):(ot=zS(at,rt,b,z,mt.width,mt.height,E),ft=at[ot],yt=new Wt(ft.x+mt.width+E.width,ft.y),mt=new Wt(ft.x,ft.y+mt.height+E.height),ot+1<rt&&at.splice(ot+1,0,null),at[ot]=yt,at[ot+1]=mt,rt++,tt.centerX=ft.x+tt.width/2,tt.centerY=ft.y+tt.height/2);for(Bn(at),E=x.iterator;E.next();){for(x=E.value,b=x.vertexes.iterator;b.next();)y.dh(b.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}HS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Qs.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},Qs.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;x?(x=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function RS(a,y,x){if(Tx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Ix(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,RS(a,y+1,x),HS(a,z),Ox(a,b),y=b.vertexes.Fa(),y.sort(function(tt,rt){return tt===null||rt===null||tt===rt?0:rt.Vd-tt.Vd}),x=0;x<y.length;x++)Rx(a,y[x]);a.Zf=E}}function Tx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Ix(a,y){for(var x=a.network,E=new Gc(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var tt=new GS;tt.Rs=z.Vd,tt.Ss=z.width,tt.Qs=z.height,tt.Sv=z.focus.x,tt.Tv=z.focus.y,z.We===null&&(z.We=new rn),z.We.add(tt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var rt=z.value;b=rt.fromVertex,tt=rt.toVertex,b.network===E&&tt.network===E?E.Bo(rt):b.network===E?(rt=b.Hj,rt===null&&(rt=new rn,b.Hj=rt),rt.add(tt),b.Vd--,b.sh+=tt.sh):tt.network===E&&(rt=tt.Hj,rt===null&&(rt=new rn,tt.Hj=rt),rt.add(b),tt.Vd--,tt.sh+=b.sh)}for(b=E.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,$t.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){b=y.value;var ot=b.Hj;if(ot!==null&&0<ot.count&&(tt=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=tt))){for(var at=rt=0,ut=ot.count-tt;ut<ot.count;ut++){var ft=ot.M(ut),mt=null;for(z=ft.edges.iterator;z.next();){var yt=z.value;if(yt.Ax(ft)===b){mt=yt;break}}mt!==null&&(at+=mt.length,rt+=ft.width*ft.height)}z=b.centerX,ot=b.centerY,ut=b.width,ft=b.height,mt=b.focus,yt=ut*ft,1>yt&&(yt=1),rt=$t.sqrt((rt+yt+at*at*4/(tt*tt))/yt),tt=(rt-1)*ut/2,rt=(rt-1)*ft/2,b.bounds=new oe(z-mt.x-tt,ot-mt.y-rt,ut+2*tt,ft+2*rt),b.focus=new Wt(mt.x+tt,mt.y+rt)}}return a.network=E,x}function Ox(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new oe(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Wt(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Rx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0<y.We.count&&(tt=y.We.M(0),z=tt.Ss,tt=tt.Qs),z=$t.sqrt(z*z+tt*tt)/2;for(var rt=!1,ot=tt=0,at=0,ut=y.vertexes.iterator;ut.next();){var ft=ut.value;1>=ft.Vd?ot++:(rt=!0,at++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(ot!==0){for(0<at&&(tt/=at),at=y=0,y=rt?2*Math.PI/(ot+1):2*Math.PI/ot,ot%2===0&&(at=y/2),1<x.count&&x.sort(function(yt,wt){return yt===null||wt===null||yt===wt?0:wt.width*wt.height-yt.width*yt.height}),rt=ot%2===0?0:1,x=x.iterator;x.next();)if(ot=x.value,!(1<ot.Vd||a.isFixed(ot))){for(ut=null,ft=ot.edges.iterator;ft.next();){ut=ft.value;break}ft=ot.width;var mt=ot.height;ft=$t.sqrt(ft*ft+mt*mt)/2,ut=z+ut.length+ft,ft=tt+(y*(rt/2>>1)+at)*(rt%2===0?1:-1),ot.centerX=E+ut*Math.cos(ft),ot.centerY=b+ut*Math.sin(ft),rt++}}}}function zS(a,y,x,E,b,z,tt){var rt=9e19,ot=-1,at=0;t:for(;at<y;at++){var ut=a[at],ft=ut.x-x,mt=ut.y-E;if(ft=ft*ft+mt*mt,ft<rt){for(mt=at-1;0<=mt;mt--)if(a[mt].y>ut.y&&a[mt].x-ut.x<b+tt.width)continue t;for(mt=at+1;mt<y;mt++)if(a[mt].x>ut.x&&a[mt].y-ut.y<z+tt.height)continue t;ot=at,rt=ft}}return ot}Qs.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Qs.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var E=this.network.ki(x);E===null&&(E=this.network.Bl(x)),E.charge=this.defaultCommentElectricalCharge,x=null;for(var b=E.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){x=z;break}}if(x===null){for(b=E.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,E,null)),x.length=this.defaultCommentSpringLength}}};function jS(a,y){var x=a.bounds,E=x.x;a=x.y;var b=x.width;x=x.height;var z=y.bounds,tt=z.x;y=z.y;var rt=z.width;return z=z.height,E+b<tt?a>y+z?(x=E+b-tt,a=a-y-z,$t.sqrt(x*x+a*a)):a+x<y?(E=E+b-tt,a=a+x-y,$t.sqrt(E*E+a*a)):tt-(E+b):E>tt+rt?a>y+z?(x=E-tt-rt,a=a-y-z,$t.sqrt(x*x+a*a)):a+x<y?(E=E-tt-rt,a=a+x-y,$t.sqrt(E*E+a*a)):E-(tt+rt):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function HS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,zx(a)););a.ah=null}function zx(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;tt<y.length;tt++){var rt=y[tt];rt.forceX=0,rt.forceY=0;var ot=rt.centerX;rt=rt.centerY,E=Math.min(E,ot),b=Math.max(b,ot),x=Math.min(x,rt),z=Math.max(z,rt)}(b=b-E>z-x)?y.sort(function(Mt,Ht){return Mt===null||Ht===null||Mt===Ht?0:Mt.centerX-Ht.centerX}):y.sort(function(Mt,Ht){return Mt===null||Ht===null||Mt===Ht?0:Mt.centerY-Ht.centerY}),x=a.Zf;var at=E=rt=0;for(z=0;z<y.length;z++){tt=y[z],E=tt.bounds,rt=tt.focus,ot=E.x+rt.x;var ut=E.y+rt.y;E=tt.charge*a.electricalFieldX(ot,ut),at=tt.charge*a.electricalFieldY(ot,ut),E+=tt.mass*a.gravitationalFieldX(ot,ut),at+=tt.mass*a.gravitationalFieldY(ot,ut),tt.forceX+=E,tt.forceY+=at;for(var ft=z+1;ft<y.length;ft++){var mt=y[ft];if(mt!==tt){E=mt.bounds,rt=mt.focus,at=E.x+rt.x;var yt=E.y+rt.y;if(ot-at>x||at-ot>x){if(b)break}else if(ut-yt>x||yt-ut>x){if(!b)break}else{var wt=jS(tt,mt);1>wt?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new P0),wt=E.random(),rt=E.random(),ot>at?(E=Math.abs(mt.bounds.right-tt.bounds.x),E=(1+E)*wt):ot<at?(E=Math.abs(mt.bounds.x-tt.bounds.right),E=-(1+E)*wt):(E=Math.max(mt.width,tt.width),E=(1+E)*wt-E/2),ut>yt?(at=Math.abs(mt.bounds.bottom-tt.bounds.y),at=(1+at)*rt):ot<at?(at=Math.abs(mt.bounds.y-tt.bounds.bottom),at=-(1+at)*rt):(at=Math.max(mt.height,tt.height),at=(1+at)*rt-at/2)):(rt=-(tt.charge*mt.charge)/(wt*wt),E=(at-ot)/wt*rt,at=(yt-ut)/wt*rt),tt.forceX+=E,tt.forceY+=at,mt.forceX-=E,mt.forceY-=at}}}}for(b=a.network.edges.iterator;b.next();)rt=b.value,x=rt.fromVertex,z=rt.toVertex,tt=x.bounds,ot=x.focus,E=tt.x+ot.x,tt=tt.y+ot.y,ut=z.bounds,ft=z.focus,ot=ut.x+ft.x,ut=ut.y+ft.y,ft=jS(x,z),1>ft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new P0),rt=ft.random(),ft=ft.random(),E=(E>ot?1:-1)*(1+(z.width>x.width?z.width:x.width))*rt,at=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(rt=rt.stiffness*(ft-rt.length),E=(ot-E)/ft*rt,at=(ut-tt)/ft*rt),x.forceX+=E,x.forceY+=at,z.forceX-=E,z.forceY-=at;for(b=E=0;b<y.length;b++)x=y[b],a.isFixed(x)?a.moveFixedVertex(x):E=Math.max(E,a.moveVertex(x)||0);return E>a.epsilonDistance*a.epsilonDistance}Qs.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},Qs.prototype.moveFixedVertex=function(){},Qs.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Qs.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=$r,y.toSpot=$r)}},Qs.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=oe.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,oe.free(x)}x=oe.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}oe.free(x)},Qs.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Qs.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Qs.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Qs.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Qs.prototype.electricalFieldX=function(){return 0},Qs.prototype.electricalFieldY=function(){return 0},Qs.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Qs.prototype.gravitationalFieldX=function(){return 0},Qs.prototype.gravitationalFieldY=function(){return 0},Qs.prototype.isFixed=function(a){return a.isFixed},Ye.Object.defineProperties(Qs.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&Xt('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),Qs.className="ForceDirectedLayout";function GS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}GS.className="ForceDirectedSubnet";function Gc(a){co.call(this,a)}we(Gc,co),Gc.prototype.createVertex=function(){return new Cp(this)},Gc.prototype.createEdge=function(){return new Ap(this)},Gc.className="ForceDirectedNetwork";function Cp(a){xs.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}we(Cp,xs),Ye.Object.defineProperties(Cp.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),Cp.className="ForceDirectedVertex";function Ap(a){Ua.call(this,a),this.j=this.o=NaN}we(Ap,Ua),Ye.Object.defineProperties(Ap.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Ap.className="ForceDirectedEdge";function P0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}P0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},P0.className="RandomNumberGenerator";function Vr(a){Do.call(this),this.kc=this.ie=25,this.K=0,this.Dk=M0,this.Zk=F0,this.Qk=k0,this.bj=4,this.rk=b0,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Wt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}we(Vr,Do),Vr.prototype.cloneProtected=function(a){Do.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},Vr.prototype.qb=function(a){a.classType===Vr?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:Xt("Unknown enum value: "+a):Do.prototype.qb.call(this,a)},Vr.prototype.createNetwork=function(){return new Jf(this)},Vr.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Ep&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Ep&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var E=x.value;E.valid=!1,y.push(E)}for(x=0;x<y.length;x++){E=y[x];var b=E.fromVertex,z=E.toVertex;if(!(E.valid||(b.node===null&&b.data===null||z.node===null&&z.data===null)&&b.layer===z.layer)){var tt=0,rt=0,ot=0,at=0;if(E.link!==null){if(rt=E.link,rt===null)continue;var ut=b.node;if(tt=z.node,ut===null||tt===null)continue;var ft=rt.fromNode;ot=rt.toNode;for(var mt=rt.fromPort;mt!==null&&!mt.Ed();)mt=mt.panel;for(rt=rt.toPort;rt!==null&&!rt.Ed();)rt=rt.panel;if(E.rev){at=ft;var yt=mt;ft=ot,mt=rt,ot=at,rt=yt}var wt=b.focus;at=z.focus;var Mt=E.rev?z.bounds:b.bounds;yt=Wt.alloc(),ut!==ft?Mt.w()&&ft.isVisible()?ft.actualBounds.w()?(Eh(ft,mt,Tn,yt),yt.x+=ft.actualBounds.x-Mt.x,yt.y+=ft.actualBounds.y-Mt.y):(Eh(ft,mt,Tn,yt),yt.w()||yt.assign(wt)):yt.assign(wt):Mt.w()?(Eh(ft,mt,Tn,yt),yt.w()||yt.assign(wt)):yt.assign(wt),ft=E.rev?b.bounds:z.bounds,ut=Wt.alloc(),tt!==ot?ft.w()&&ot.isVisible()?ot.actualBounds.w()?(Eh(ot,rt,Tn,ut),ut.x+=ot.actualBounds.x-ft.x,ut.y+=ot.actualBounds.y-ft.y):(Eh(ot,rt,Tn,ut),ut.w()||ut.assign(at)):ut.assign(at):ft.w()?(Eh(ot,rt,Tn,ut),ut.w()||ut.assign(at)):ut.assign(at),this.K===90||this.K===270?(tt=Math.round((yt.x-wt.x)/this.kc),ot=yt.x,rt=Math.round((ut.x-at.x)/this.kc),at=ut.x):(tt=Math.round((yt.y-wt.y)/this.kc),ot=yt.y,rt=Math.round((ut.y-at.y)/this.kc),at=ut.y),Wt.free(yt),Wt.free(ut),E.portFromColOffset=tt,E.portFromPos=ot,E.portToColOffset=rt,E.portToPos=at}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(yt=b.layer,ut=z.layer,ft=0,Mt=E.link,Mt!==null){var Ht=Mt.fromPort,It=Mt.toPort;if(Ht!==null&&It!==null){var Zt=Mt.fromNode;if(mt=Mt.toNode,Zt!==null&&mt!==null){var Kt=E0(this,!0),Qt=E0(this,!1),ne=this.setsPortSpots?Kt:Mt.computeSpot(!0,Ht);wt=this.setsPortSpots?Qt:Mt.computeSpot(!1,It);var Se=Mt.isOrthogonal;ne.$c()&&ne.Hf(Qt)&&wt.$c()&&wt.Hf(Kt)?ft=0:(Kt=Mt.getLinkPoint(Zt,Ht,ne,!0,Se,mt,It,Wt.alloc()),Qt=Mt.getLinkDirection(Zt,Ht,Kt,ne,!0,Se,mt,It),Wt.free(Kt),ne.ys()||Qt!==JS(this,E,!0)?this.setsPortSpots&&Zt!==null&&Zt.ports.count===1&&E.rev&&(ft+=1):ft+=1,ne=Mt.getLinkPoint(mt,It,wt,!1,Se,Zt,Ht,Wt.alloc()),Mt=Mt.getLinkDirection(mt,It,ne,wt,!1,Se,Zt,Ht),Wt.free(ne),wt.ys()||Mt!==JS(this,E,!1)?this.setsPortSpots&&mt!==null&&mt.ports.count===1&&E.rev&&(ft+=2):ft+=2)}}}if(mt=ft,ft=mt===1||mt===3,(mt=mt===2||mt===3)&&(wt=a.createVertex(),wt.node=null,wt.Dj=1,wt.layer=yt,wt.near=b,a.dh(wt),b=a.Zj(b,wt,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=tt,b.portToColOffset=0,b.portFromPos=ot,b.portToPos=0,b=wt),Mt=1,ft&&Mt--,yt-ut>Mt&&0<yt){for(E.valid=!1,wt=a.createVertex(),wt.node=null,wt.Dj=2,wt.layer=yt-1,a.dh(wt),b=a.Zj(b,wt,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=mt?0:tt,b.portToColOffset=0,b.portFromPos=mt?0:ot,b.portToPos=0,b=wt,yt--;yt-ut>Mt&&0<yt;)wt=a.createVertex(),wt.node=null,wt.Dj=3,wt.layer=yt-1,a.dh(wt),b=a.Zj(b,wt,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=wt,yt--;b=a.Zj(wt,z,E.link),b.valid=!ft,ft&&(wt.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=rt,b.portFromPos=0,b.portToPos=at}else E.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=vd(this,a),x=0,E=this.tc[a],z=0;z<E;z++)b=y[z],x+=this.nodeMinColumnSpace(b,!0),b.column=x,x+=1,x+=this.nodeMinColumnSpace(b,!1);this.Ra=Math.max(this.Ra,x-1),yd(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Vr.prototype.linkMinLength=function(){return 1};function gy(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}Vr.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},Vr.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function Ta(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var E=x.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function ml(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[x],x++,E.column=y[x],x++,E.index=y[x],x++}}function WS(a,y,x){var E=vd(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,tt=0;tt<b;tt++){var rt=0,ot=E[tt],at=ot.near;if(at!==null&&at.layer===ot.layer)if(ot=at.index,ot>tt)for(var ut=tt+1;ut<ot;ut++){var ft=E[ut];ft.near===at&&ft.Dj===at.Dj||rt++}else for(ut=tt-1;ut>ot;ut--)ft=E[ut],ft.near===at&&ft.Dj===at.Dj||rt++;var mt;if(0<=x)for(ot=E[tt].sourceEdgesArrayAccess,at=0;at<ot.length;at++){var yt=ot[at];if(yt.valid&&yt.fromVertex.layer!==y)for(ft=yt.fromVertex.index,ut=yt.portToPos,yt=yt.portFromPos,mt=at+1;mt<ot.length;mt++){var wt=ot[mt];if(wt.valid&&wt.fromVertex.layer!==y){var Mt=wt.fromVertex.index,Ht=wt.portToPos;wt=wt.portFromPos,ut<Ht&&(ft>Mt||ft===Mt&&yt>wt)&&rt++,Ht<ut&&(Mt>ft||Mt===ft&&wt>yt)&&rt++}}}if(0>=x){for(ot=E[tt].destinationEdgesArrayAccess,at=0;at<ot.length;at++)if(yt=ot[at],yt.valid&&yt.toVertex.layer!==y)for(ft=yt.toVertex.index,ut=yt.portToPos,yt=yt.portFromPos,mt=at+1;mt<ot.length;mt++)wt=ot[mt],wt.valid&&wt.toVertex.layer!==y&&(Mt=wt.toVertex.index,Ht=wt.portToPos,wt=wt.portFromPos,yt<wt&&(ft>Mt||ft===Mt&&ut>Ht)&&rt++,wt<yt&&(Mt>ft||Mt===ft&&Ht>ut)&&rt++)}for(z[tt*b+tt]=rt,ot=tt+1;ot<b;ot++){var It=0,Zt=0;if(0<=x){rt=E[tt].sourceEdgesArrayAccess;var Kt=E[ot].sourceEdgesArrayAccess;for(at=0;at<rt.length;at++)if(yt=rt[at],yt.valid&&yt.fromVertex.layer!==y)for(ft=yt.fromVertex.index,yt=yt.portFromPos,mt=0;mt<Kt.length;mt++)wt=Kt[mt],wt.valid&&wt.fromVertex.layer!==y&&(Mt=wt.fromVertex.index,wt=wt.portFromPos,(ft<Mt||ft===Mt&&yt<wt)&&Zt++,(Mt<ft||Mt===ft&&wt<yt)&&It++)}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,Kt=E[ot].destinationEdgesArrayAccess,at=0;at<rt.length;at++)if(yt=rt[at],yt.valid&&yt.toVertex.layer!==y)for(ft=yt.toVertex.index,ut=yt.portToPos,mt=0;mt<Kt.length;mt++)wt=Kt[mt],wt.valid&&wt.toVertex.layer!==y&&(Mt=wt.toVertex.index,Ht=wt.portToPos,(ft<Mt||ft===Mt&&ut<Ht)&&Zt++,(Mt<ft||Mt===ft&&Ht<ut)&&It++)}z[tt*b+ot]=It,z[ot*b+tt]=Zt}}return yd(a,y,E),z}Vr.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=WS(this,y,1),E=this.tc[y],b=0;b<E;b++)for(var z=b;z<E;z++)a+=x[b*E+z];return a};function C0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=vd(E,b),tt=E.tc[b],rt=0,ot=0;ot<tt;ot++){var at=z[ot].destinationEdgesArrayAccess;if(at!==null)for(var ut=0;ut<at.length;ut++){var ft=at[ut];if(ft.valid&&ft.toVertex.layer!==b){var mt=ft.fromVertex.column+ft.portFromColOffset,yt=ft.toVertex.column+ft.portToColOffset;rt+=(Math.abs(mt-yt)+1)*gy(ft)}}}yd(E,b,z),y+=rt}return y}Vr.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function py(a,y,x){for(var E=vd(a,y),b=a.tc[y],z=[],tt=0;tt<b;tt++){var rt=E[tt],ot=null;0>=x&&(ot=rt.sourceEdgesArrayAccess);var at=null;0<=x&&(at=rt.destinationEdgesArrayAccess);var ut=0,ft=0,mt=rt.near;if(mt!==null&&mt.layer===rt.layer&&(ut+=mt.column-1,ft++),ot!==null)for(mt=0;mt<ot.length;mt++){rt=ot[mt];var yt=rt.fromVertex;rt.valid&&!rt.rev&&yt.layer!==y&&(ut+=yt.column,ft++)}if(at!==null)for(ot=0;ot<at.length;ot++)rt=at[ot],mt=rt.toVertex,rt.valid&&!rt.rev&&mt.layer!==y&&(ut+=mt.column,ft++);z[tt]=ft===0?-1:ut/ft}return yd(a,y,E),z}function VS(a,y,x){for(var E=vd(a,y),b=a.tc[y],z=[],tt=0;tt<b;tt++){var rt=E[tt],ot=null;0>=x&&(ot=rt.sourceEdgesArrayAccess);var at=null;0<=x&&(at=rt.destinationEdgesArrayAccess);var ut=0,ft=[],mt=rt.near;if(mt!==null&&mt.layer===rt.layer&&(ft[ut]=mt.column-1,ut++),rt=void 0,ot!==null)for(mt=0;mt<ot.length;mt++){rt=ot[mt];var yt=rt.fromVertex;rt.valid&&!rt.rev&&yt.layer!==y&&(ft[ut]=yt.column+rt.portFromColOffset,ut++)}if(at!==null)for(ot=0;ot<at.length;ot++)rt=at[ot],mt=rt.toVertex,rt.valid&&!rt.rev&&mt.layer!==y&&(ft[ut]=mt.column+rt.portToColOffset,ut++);ut===0?z[tt]=-1:(ft.sort(function(wt,Mt){return wt-Mt}),at=ut>>1,z[tt]=ut&1?ft[at]:ft[at-1]+ft[at]>>1)}return yd(a,y,E),z}function Lp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var rt=tt.value,ot=rt.toVertex,at=y.layer-ot.layer;rt=a.linkMinLength(rt),at===rt&&Lp(a,ot,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)rt=tt.value,ot=rt.fromVertex,at=ot.layer-y.layer,rt=a.linkMinLength(rt),at===rt&&Lp(a,ot,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}Vr.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;jx(a)!==null;){for(b=YS(a);b!==null;)E[x]=b,x--,b.valid=!1,b=YS(a);for(b=ZS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=ZS(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value;if(rt.valid){for(var ot=0,at=rt.destinationEdges;at.next();)at.value.toVertex.valid&&ot++;at=0;for(var ut=rt.sourceEdges;ut.next();)ut.value.fromVertex.valid&&at++;(b===null||z<ot-at)&&(b=rt,z=ot-at)}}b!==null&&(E[y]=b,y++,b.valid=!1)}for(y=0;y<a.vertexes.count;y++)E[y].index=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case M0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.Ll<y.Ll&&x<z&&(this.network.gm(E),E.rev=!0));break;case Ep:for(a=this.network,y=a.vertexes.iterator,E=1/0;y.next();)E=Math.min(E,y.value.layer);if(1/0>E){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;x<E.length;x++)if(b=E[x],!b||b.length===0)y++;else if(0<x)for(z=0;z<b.length;z++)b[z].layer-=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function jx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function YS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function ZS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.sourceEdges;E.next();)if(E.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function vy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var E=x.value,b=E.toVertex;b.Ll===-1&&(E.forest=!0,vy(a,b))}y.finish=a.Kn,a.Kn++}Vr.prototype.assignLayers=function(){switch(this.Zk){case xy:US(this);break;case wy:for(var a,y=this.network.vertexes.iterator;y.next();)a=KS(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case F0:for(US(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&QS(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function US(a){for(var y=a.network.vertexes.iterator;y.next();){var x=XS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function XS(a,y){var x=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var b=E.value,z=b.toVertex;b=a.linkMinLength(b),x=Math.max(x,XS(a,z)+b)}y.layer=x}else x=y.layer;return x}function KS(a,y){var x=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var b=E.value,z=b.fromVertex;b=a.linkMinLength(b),x=Math.max(x,KS(a,z)+b)}y.layer=x}else x=y.layer;return x}function QS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)QS(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var E=y.sourceEdgesArrayAccess,b=E.length,z=0;z<b;z++){var tt=E[z],rt=tt.fromVertex,ot=tt.toVertex;tt=a.linkMinLength(tt),rt.layer-ot.layer>tt&&Lp(a,rt,0,-1,!0,!1)}for(Lp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,rt=0,ot=null,tt=a.network.vertexes.iterator;tt.next();){var at=tt.value;if(at.component===1){var ut=0,ft=!1,mt=at.sourceEdgesArrayAccess;b=mt.length;for(var yt=0;yt<b;yt++){var wt=mt[yt],Mt=wt.fromVertex;ut+=1,Mt.component!==1&&(z+=1,Mt=Mt.layer-at.layer,wt=a.linkMinLength(wt),E=Math.min(E,Mt-wt))}for(mt=at.destinationEdgesArrayAccess,b=mt.length,yt=0;yt<b;yt++)wt=mt[yt].toVertex,--ut,wt.component!==1?--z:ft=!0;(ot===null||ut<rt)&&!ft&&(ot=at,rt=ut)}}if(0<z){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer+=E);y.component=0}else ot.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Lp(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,b=1/0,z=0,rt=null,ot=a.network.vertexes.iterator;ot.next();)if(tt=ot.value,tt.component===1){for(at=0,ut=!1,mt=tt.sourceEdgesArrayAccess,ft=mt.length,yt=0;yt<ft;yt++)wt=mt[yt].fromVertex,at+=1,wt.component!==1?E+=1:ut=!0;for(mt=tt.destinationEdgesArrayAccess,ft=mt.length,yt=0;yt<ft;yt++)wt=mt[yt],Mt=wt.toVertex,--at,Mt.component!==1&&(--E,Mt=tt.layer-Mt.layer,wt=a.linkMinLength(wt),b=Math.min(b,Mt-wt));(rt===null||at>z)&&!ut&&(rt=tt,z=at)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else rt.component=0}}}function JS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Vr.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case k0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&_S(this,x)}};function qS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portFromColOffset>z.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.toVertex,E.index===-1&&qS(a,E))}function _S(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portToColOffset>z.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.fromVertex,E.index===-1&&_S(a,E))}Vr.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Ta(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)A0(this,E,1),Ml(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=Ta(this)),E=this.Ia;0<=E;E--)A0(this,E,-1),Ml(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=Ta(this))}for(ml(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)A0(this,E,0),Ml(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=Ta(this)),E=this.Ia;0<=E;E--)A0(this,E,0),Ml(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=Ta(this))}ml(this,y);var z,tt,rt;switch(this.rk){case Ay:break;case Ly:for(rt=a+1;(E=this.countCrossings())<rt;)for(rt=E,x=this.Ia;0<=x;x--)for(tt=0;tt<=x;tt++){for(z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ml(this,E,-1)||z;for(b=this.countCrossings(),b>=a?ml(this,y):(a=b,y=Ta(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ml(this,E,1)||z;for(b=this.countCrossings(),b>=a?ml(this,y):(a=b,y=Ta(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ml(this,E,1)||z;for(b>=a?ml(this,y):(a=b,y=Ta(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ml(this,E,-1)||z;for(b>=a?ml(this,y):(a=b,y=Ta(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ml(this,E,0)||z;for(b>=a?ml(this,y):(a=b,y=Ta(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ml(this,E,0)||z;b>=a?ml(this,y):(a=b,y=Ta(this))}break;default:case b0:for(x=this.Ia,tt=0,rt=a+1;(E=this.countCrossings())<rt;){for(rt=E,z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ml(this,E,-1)||z;for(b=this.countCrossings(),b>=a?ml(this,y):(a=b,y=Ta(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ml(this,E,1)||z;for(b=this.countCrossings(),b>=a?ml(this,y):(a=b,y=Ta(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ml(this,E,1)||z;for(b>=a?ml(this,y):(a=b,y=Ta(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ml(this,E,-1)||z;for(b>=a?ml(this,y):(a=b,y=Ta(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ml(this,E,0)||z;for(b>=a?ml(this,y):(a=b,y=Ta(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ml(this,E,0)||z;b>=a?ml(this,y):(a=b,y=Ta(this))}}ml(this,y)};function A0(a,y,x){var E=vd(a,y),b=a.tc[y],z=VS(a,y,x),tt=py(a,y,x);for(x=0;x<b;x++)tt[x]===-1&&(tt[x]=E[x].column),z[x]===-1&&(z[x]=E[x].column);for(var rt=!0,ot;rt;)for(rt=!1,x=0;x<b-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&tt[x+1]<tt[x])&&(rt=!0,ot=z[x],z[x]=z[x+1],z[x+1]=ot,ot=tt[x],tt[x]=tt[x+1],tt[x+1]=ot,ot=E[x],E[x]=E[x+1],E[x+1]=ot);for(x=z=0;x<b;x++)ot=E[x],ot.index=x,z+=a.nodeMinColumnSpace(ot,!0),ot.column=z,z+=1,z+=a.nodeMinColumnSpace(ot,!1);yd(a,y,E)}function Ml(a,y,x){var E=vd(a,y),b=a.tc[y];x=WS(a,y,x);var z,tt=[];for(z=0;z<b;z++)tt[z]=-1;var rt=[];for(z=0;z<b;z++)rt[z]=-1;for(var ot=!1,at=!0;at;)for(at=!1,z=0;z<b-1;z++){var ut=x[E[z].index*b+E[z+1].index],ft=x[E[z+1].index*b+E[z].index],mt=0,yt=0,wt=E[z].column,Mt=E[z+1].column,Ht=a.nodeMinColumnSpace(E[z],!0),It=a.nodeMinColumnSpace(E[z],!1),Zt=a.nodeMinColumnSpace(E[z+1],!0),Kt=a.nodeMinColumnSpace(E[z+1],!1);Ht=wt-Ht+Zt,It=Mt-It+Kt;var Qt=E[z].sourceEdges.iterator;for(Qt.reset();Qt.next();)if(Zt=Qt.value,Kt=Zt.fromVertex,Zt.valid&&Kt.layer===y){for(Zt=0;E[Zt]!==Kt;)Zt++;Zt<z&&(mt+=2*(z-Zt),yt+=2*(z+1-Zt)),Zt===z+1&&(mt+=1),Zt>z+1&&(mt+=4*(Zt-z),yt+=4*(Zt-(z+1)))}for(Qt=E[z].destinationEdges.iterator,Qt.reset();Qt.next();)if(Zt=Qt.value,Kt=Zt.toVertex,Zt.valid&&Kt.layer===y){for(Zt=0;E[Zt]!==Kt;)Zt++;Zt===z+1&&(yt+=1)}for(Qt=E[z+1].sourceEdges.iterator,Qt.reset();Qt.next();)if(Zt=Qt.value,Kt=Zt.fromVertex,Zt.valid&&Kt.layer===y){for(Zt=0;E[Zt]!==Kt;)Zt++;Zt<z&&(mt+=2*(z+1-Zt),yt+=2*(z-Zt)),Zt===z&&(yt+=1),Zt>z+1&&(mt+=4*(Zt-(z+1)),yt+=4*(Zt-z))}for(Qt=E[z+1].destinationEdges.iterator,Qt.reset();Qt.next();)if(Zt=Qt.value,Kt=Zt.toVertex,Zt.valid&&Kt.layer===y){for(Zt=0;E[Zt]!==Kt;)Zt++;Zt===z&&(mt+=1)}Zt=Kt=0,Qt=tt[E[z].index];var ne=rt[E[z].index],Se=tt[E[z+1].index],mn=rt[E[z+1].index];Qt!==-1&&(Kt+=Math.abs(Qt-wt),Zt+=Math.abs(Qt-It)),ne!==-1&&(Kt+=Math.abs(ne-wt),Zt+=Math.abs(ne-It)),Se!==-1&&(Kt+=Math.abs(Se-Mt),Zt+=Math.abs(Se-Ht)),mn!==-1&&(Kt+=Math.abs(mn-Mt),Zt+=Math.abs(mn-Ht)),(yt<mt-.5||yt===mt&&ft<ut-.5||yt===mt&&ft===ut&&Zt<Kt-.5)&&(at=ot=!0,E[z].column=It,E[z+1].column=Ht,ut=E[z],E[z]=E[z+1],E[z+1]=ut)}for(z=0;z<b;z++)E[z].index=z;return yd(a,y,E),ot}Vr.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Xx)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var E,b=this.network.vertexes.iterator;b.next();){var z=b.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],E+z)}for(b.reset();b.next();)z=b.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Qf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Qf(this,y,-1)||x;x=Qf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($S(this,-1),$S(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Qf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Qf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Qf(this,y,0)||x}}else Vx(this)};function Qf(a,y,x){for(var E=!1;Hx(a,y,x);)E=!0;return E}function Hx(a,y,x){var E,b=vd(a,y),z=a.tc[y],tt=py(a,y,-1);if(0<x)for(E=0;E<z;E++)tt[E]=-1;var rt=py(a,y,1);if(0>x)for(E=0;E<z;E++)rt[E]=-1;for(var ot=!1,at=!0;at;)for(at=!1,E=0;E<z;E++){var ut=b[E].column,ft=a.nodeMinColumnSpace(b[E],!0),mt=a.nodeMinColumnSpace(b[E],!1),yt=0;0>E-1||ut-b[E-1].column-1>ft+a.nodeMinColumnSpace(b[E-1],!1)?yt=ut-1:yt=ut,ft=E+1>=z||b[E+1].column-ut-1>mt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var wt=mt=0,Mt=0;if(0>=x)for(var Ht=b[E].sourceEdges.iterator;Ht.next();){var It=Ht.value,Zt=It.fromVertex;if(It.valid&&Zt.layer!==y){var Kt=gy(It),Qt=It.portFromColOffset;It=It.portToColOffset,Zt=Zt.column,mt+=(Math.abs(ut+It-(Zt+Qt))+1)*Kt,wt+=(Math.abs(yt+It-(Zt+Qt))+1)*Kt,Mt+=(Math.abs(ft+It-(Zt+Qt))+1)*Kt}}if(0<=x)for(Ht=b[E].destinationEdges.iterator;Ht.next();)It=Ht.value,Zt=It.toVertex,It.valid&&Zt.layer!==y&&(Kt=gy(It),Qt=It.portFromColOffset,It=It.portToColOffset,Zt=Zt.column,mt+=(Math.abs(ut+Qt-(Zt+It))+1)*Kt,wt+=(Math.abs(yt+Qt-(Zt+It))+1)*Kt,Mt+=(Math.abs(ft+Qt-(Zt+It))+1)*Kt);It=Qt=Kt=0,Ht=tt[b[E].index],Zt=rt[b[E].index],Ht!==-1&&(Kt+=Math.abs(Ht-ut),Qt+=Math.abs(Ht-yt),It+=Math.abs(Ht-ft)),Zt!==-1&&(Kt+=Math.abs(Zt-ut),Qt+=Math.abs(Zt-yt),It+=Math.abs(Zt-ft)),wt<mt||wt===mt&&Qt<Kt?(at=ot=!0,b[E].column=yt):(Mt<mt||Mt===mt&&It<Kt)&&(at=ot=!0,b[E].column=ft)}return yd(a,y,b),a.normalize(),ot}function yy(a,y,x){var E=vd(a,y),b=a.tc[y],z=VS(a,y,x),tt=[];for(x=0;x<b;x++)tt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<b;x++){var rt=E[x].column,ot=a.nodeMinColumnSpace(E[x],!0),at=a.nodeMinColumnSpace(E[x],!1),ut=0;if(tt[x]===-1)if(x===0&&x===b-1)ut=rt;else if(x===0){var ft=E[x+1].column;ft-rt===at+a.nodeMinColumnSpace(E[x+1],!0)?ut=rt-1:ut=rt}else x===b-1?(ft=E[x-1].column,ut=rt-ft===ot+a.nodeMinColumnSpace(E[x-1],!1)?rt+1:rt):(ft=E[x-1].column,ot=ft+a.nodeMinColumnSpace(E[x-1],!1)+ot+1,ft=E[x+1].column,at=ft-a.nodeMinColumnSpace(E[x+1],!0)-at-1,ut=(ot+at)/2|0);else x===0&&x===b-1?ut=tt[x]:x===0?(ft=E[x+1].column,at=ft-a.nodeMinColumnSpace(E[x+1],!0)-at-1,ut=Math.min(tt[x],at)):x===b-1?(ft=E[x-1].column,ot=ft+a.nodeMinColumnSpace(E[x-1],!1)+ot+1,ut=Math.max(tt[x],ot)):(ft=E[x-1].column,ot=ft+a.nodeMinColumnSpace(E[x-1],!1)+ot+1,ft=E[x+1].column,at=ft-a.nodeMinColumnSpace(E[x+1],!0)-at-1,ot<tt[x]&&tt[x]<at?ut=tt[x]:ot>=tt[x]?ut=ot:at<=tt[x]&&(ut=at));ut!==rt&&(z=!0,E[x].column=ut)}yd(a,y,E),a.normalize()}function Gx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Wx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var rt=E.column-a.nodeMinColumnSpace(E,!0),ot=E.column+a.nodeMinColumnSpace(E,!1);rt<=y&&ot>=y&&(b[E.layer]=!0),rt<=x&&ot>=x&&(z[E.layer]=!0)}for(rt=!0,x=!1,E=0;E<=a.Ia;E++)rt=rt&&!(b[E]&&z[E]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $S(a,y){for(var x=0;x<=a.Ra;x++)for(;Gx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Wx(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=Ta(a),z=C0(a);for(E=z+1;z<E;){E=z,tx(a,x,1);var tt=C0(a);tt>z?ml(a,b):tt<z&&(z=tt,b=Ta(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=Ta(a),z=C0(a),E=z+1;z<E;)E=z,tx(a,x,-1),tt=C0(a),tt>z?ml(a,b):tt<z&&(z=tt,b=Ta(a));a.normalize()}function tx(a,y,x){a.le=0;for(var E=a.network.vertexes.iterator;E.next();)E.value.component=-1;if(0<x)for(E.reset();E.next();){var b=E.value;b.column-a.nodeMinColumnSpace(b,!0)<=y&&(b.component=a.le)}if(0>x)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(b=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)b[z]=-1;for(E.reset();E.next();){z=E.value;for(var tt=z.layer,rt=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),ot=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));rt<=ot;rt++)b[tt*(a.Ra+1)+rt]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(tt=0;tt<a.Ra;tt++)b[z*(a.Ra+1)+tt]!==-1&&b[z*(a.Ra+1)+tt+1]!==-1&&b[z*(a.Ra+1)+tt]!==b[z*(a.Ra+1)+tt+1]&&(y[b[z*(a.Ra+1)+tt]*a.le+b[z*(a.Ra+1)+tt+1]]=!0);if(0>x)for(tt=a.Ra;0<tt;tt--)b[z*(a.Ra+1)+tt]!==-1&&b[z*(a.Ra+1)+tt-1]!==-1&&b[z*(a.Ra+1)+tt]!==b[z*(a.Ra+1)+tt-1]&&(y[b[z*(a.Ra+1)+tt]*a.le+b[z*(a.Ra+1)+tt-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(tt=[],tt.push(0);tt.length!==0;)if(ot=tt[tt.length-1],tt.pop(),b[ot])for(b[ot]=!1,z=0;z<a.le;z++)y[ot*a.le+z]&&tt.splice(0,0,z);if(0<x)for(E.reset();E.next();)a=E.value,b[a.component]&&--a.column;if(0>x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Vx(a){for(var y=On(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new en,Yx(y,x);var z=null,tt=null,rt=null,ot=null,at=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,mt=(a.ve&8)!==0;for(at&&(a.verticalAlignment(y,x,!0),z=L0(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=L0(a,y,!1,!1)),E=ii(y),b=E.next();!b.done;b=E.next())b.value.reverse();mt&&(a.verticalAlignment(y,x,!1),ot=L0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=L0(a,y,!0,!0)),Bn(y),a.u(z,tt,rt,ot),a.network.vertexes.each(function(yt){var wt=On();at&&wt.push(z.get(yt)),ut&&wt.push(tt.get(yt)),ft&&wt.push(rt.get(yt)),mt&&wt.push(ot.get(yt)),wt.sort(function(Ht,It){return Ht-It});var Mt=wt.length;Mt=(wt[Math.floor((Mt-1)/2)]+wt[Math.ceil((Mt-1)/2)])/2,Bn(wt),yt.zc=Mt})}function Yx(a,y){for(var x=a.length,E=1;E<x-1;E++)for(var b=0,z=0,tt=a[E],rt=a[E+1],ot=0;z<rt.length;ot++){var at=rt[ot];t:{if(at.node===null){var ut=Ey(at);if(0<ut.length){ut=ut[0].node===null;break t}}ut=!1}var ft=ut;if(ot===rt.length-1||ft){for(ut=tt.length-1,ft&&(ut=Ey(at)[0].index);z<=ot;){if(at=rt[z],!at.bo){ft=[];for(var mt=ii(at.sourceEdgesArrayAccess),yt=mt.next();!yt.done;yt=mt.next())yt=yt.value,yt.valid&&ft.push(yt);at.bo=ft}for(at=ii(at.bo),ft=at.next();!ft.done;ft=at.next())ft=ft.value,mt=ft.fromVertex.index,(mt<b||mt>ut)&&y.add(ft);z++}b=ut}}}Vr.prototype.verticalAlignment=function(a,y,x){Zx(a),a=ii(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=ii(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?Ey(z):Kx(z),rt=tt.length;if(0<rt){tt.sort(function(ft,mt){return ft.vi-mt.vi});var ot=(rt-1)/2;for(rt=Math.floor(ot),ot=Math.ceil(ot);rt<=ot;rt++)if(z.align===z){var at=tt[rt],ut=void 0;ut=x?B0(at,z):B0(z,at),!y.contains(ut)&&b<at.vi&&(at.align=z,z.root=at.root,z.align=at.root,b=at.vi)}}}}};function Zx(a){for(var y=0;y<a.length;y++)for(var x=a[y],E=0;E<x.length;E++){var b=x[E];b.root=b,b.align=b,b.Tz=y,b.vi=E}}function L0(a,y,x,E){for(var b=a.K===90||a.K===270,z=ii(y),tt=z.next();!tt.done;tt=z.next()){var rt=ii(tt.value);for(tt=rt.next();!tt.done;tt=rt.next())tt=tt.value,tt.sd=tt,tt.shift=1/0,tt.zc=NaN,tt.qg=0}for(tt=a.K===90||a.K===270,z=ii(y),rt=z.next();!rt.done;rt=z.next()){rt=ii(rt.value);for(var ot=rt.next();!ot.done;ot=rt.next())if(ot=ot.value,ot.root===ot){for(var at=0,ut=ot;ut.align!==ot;){var ft=ut.align,mt=tt?ut.width:ut.height,yt=tt?ft.width:ft.height;if(x){var wt=B0(ut,ft),Mt=wt.portFromPos,Ht=wt.portToPos;wt.link!==null&&(ut.node&&ut.node!==wt.link.fromNode&&(Mt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==wt.link.toNode&&(Ht=tt?ft.focusX:ft.focusY))}else wt=B0(ft,ut),Mt=wt.portToPos,Ht=wt.portFromPos,wt.link!==null&&(ut.node&&ut.node!==wt.link.toNode&&(Mt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==wt.link.fromNode&&(Ht=tt?ft.focusX:ft.focusY));mt=E?ut.qg+(mt-Mt)-(yt-Ht):ut.qg+Mt-Ht,ft.qg=mt,at=Math.min(at,mt),ut=ut.align}ut=ot;do ut.qg=ut.qg-at,ut=ut.align;while(ut!==ot)}}for(x=ii(y),tt=x.next();!tt.done;tt=x.next())for(z=ii(tt.value),tt=z.next();!tt.done;tt=z.next())tt=tt.value,tt.root===tt&&ex(a,tt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,rt=0;do{for(z=y[tt][rt];z.align!==z.root;)z=z.align,tt++,0<z.vi&&(rt=nx(z,y),rt.sd.shift=Math.min(rt.sd.shift,z.sd.shift+z.zc+z.qg-(rt.zc+rt.qg+(b?rt.width:rt.height)+a.columnSpacing)));rt=z.vi+1}while(tt<y.length&&rt<y[tt].length&&z.sd===y[tt][rt].sd)}for(a=new Jn,y=ii(y),tt=y.next();!tt.done;tt=y.next())for(x=ii(tt.value),tt=x.next();!tt.done;tt=x.next())tt=tt.value,tt.zc=tt.zc+tt.sd.shift+tt.qg,z=b?tt.width:tt.height,a.add(tt,E?-tt.zc-z:tt.zc);return a}function ex(a,y,x){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var b=nx(E,x),z=b.root;ex(a,z,x),y.sd===y&&(y.sd=z.sd);var tt=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+tt-E.qg+a.columnSpacing))}E=E.align}while(E!==y);for(;E.align!==y;)E=E.align,E.zc=y.zc,E.sd=y.sd}}function nx(a,y){var x=a.Tz;return a=a.vi,1>a&&Xt("Could not determine previous vertex in layer"),y[x][a-1]}Vr.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=On(),b=On(),z=1/0,tt=0;4>tt;tt++)if(y[tt]){var rt=Ux(this,y[tt],E,b,tt);rt<z&&(x=tt,z=rt)}for(z={},tt=0;4>tt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(ot){return function(at){at.value+=ot.delta}}(z)));Bn(E),Bn(b)};function Ux(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var ot=rt.key;rt=rt.value,ot=a.K===90||a.K===270?ot.width:ot.height,rt<z&&(z=rt),rt+ot>tt&&(tt=rt+ot)}),x[b]=z,E[b]=tt,tt-z}Vr.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=E0(this,!0),y=E0(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function E0(a,y){return a.K===270?y?to:Wo:a.K===90?y?Wo:to:a.K===180?y?Xr:Kr:y?Kr:Xr}Vr.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0<E&&(y+=b/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=b/2),this.Ta[E]=y}for(x=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]);x=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,tt=b=1/0,rt=-1/0;a.next();){var ot=a.value,at=ot.layer,ut=ot.column|0;E?(tt=y.x+this.kc*ut,at=this.Kd[at]):(tt=this.Kd[at],at=y.y+this.kc*ut),ot.centerX=tt,ot.centerY=at,x&&isFinite(ot.zc)&&(E?ot.node?ot.x=y.x+ot.zc:ot.centerX=y.x+ot.zc:ot.node?ot.y=y.y+ot.zc:ot.centerY=y.y+ot.zc),z=Math.min(ot.x,z),b=Math.min(ot.y,b),E?(tt=z,rt=Math.max(rt,ot.bounds.right)):(tt=b,rt=Math.max(rt,ot.bounds.bottom))}for(this.xw=rt-tt,z=y.x-z,y=y.y-b,this.Rf=new Wt(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Vr.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var E=this.maxLayer;0<=E;E--)this.K===270?E===0?y.push(new oe(0,0,x,Math.abs(this.Ta[0]))):y.push(new oe(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new oe(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new oe(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new oe(0,0,Math.abs(this.Ta[0]),x)):y.push(new oe(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new oe(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new oe(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},Vr.prototype.commitLayers=function(){},Vr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var E=y,b=E.fromNode,z=E.toNode,tt=E.fromPort,rt=E.toPort;if(b!==null){var ot=b.findVisibleNode();ot!==null&&ot!==b&&(b=ot,tt=ot.port)}z!==null&&(ot=z.findVisibleNode(),ot!==null&&ot!==z&&(z=ot,rt=ot.port));var at=y.computeSpot(!0,tt);ot=y.computeSpot(!1,rt);var ut=x.fromVertex,ft=x.toVertex;if(x.valid)y.curve===nl&&y.pointsCount===4&&(ut.column===ft.column&&this.alignOption===0?(x=y.getLinkPoint(b,tt,at,!0,!1,z,rt),rt=y.getLinkPoint(z,rt,ot,!1,!1,b,tt),x.w()||x.set(b.actualBounds.center),rt.w()||rt.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+rt.x)/3,(2*x.y+rt.y)/3),y.yf((x.x+2*rt.x)/3,(x.y+2*rt.y)/3),y.yf(rt.x,rt.y)):(x=E=!1,tt!==null&&at===li&&(E=!0),rt!==null&&ot===li&&(x=!0),(E||x)&&(ot=null,E&&(ot=y.getLinkPointFromPoint(b,tt,tt.ga(Tn),y.i(3),!0),ot.w()||ot.set(b.actualBounds.center),y.L(0,ot.x,ot.y)),b=null,x&&(b=y.getLinkPointFromPoint(z,rt,rt.ga(Tn),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),ot&&(z=y.i(2),y.L(1,(2*ot.x+z.x)/3,(2*ot.y+z.y)/3)),b&&(z=y.i(1),y.L(2,(2*b.x+z.x)/3,(2*b.y+z.y)/3))))),y.zf();else if(ut.layer===ft.layer)y.zf();else{var mt=!1,yt=!1,wt=this.ie,Mt=y.firstPickIndex+1;if(y.isOrthogonal){yt=!0;var Ht=y.pointsCount;4<Ht&&y.points.removeRange(2,Ht-3)}else if(y.curve===nl)mt=!0,Ht=y.pointsCount,4<Ht&&y.points.removeRange(2,Ht-3),Ht===4&&(Mt=2);else{Ht=y.pointsCount;var It=at===li,Zt=ot===li;2<Ht&&It&&Zt?y.points.removeRange(1,Ht-2):3<Ht&&It&&!Zt?y.points.removeRange(1,Ht-3):3<Ht&&!It&&Zt?y.points.removeRange(2,Ht-2):4<Ht&&!It&&!Zt&&y.points.removeRange(2,Ht-3)}if(x.rev){for(;ft!==null&&ut!==ft;){var Kt=Ht=null;for(It=ft.sourceEdges.iterator;It.next()&&(Zt=It.value,Zt.link!==x.link||(Ht=Zt.fromVertex,Kt=Zt.toVertex,Ht.node!==null)););if(Ht===null)break;if(Ht!==ut){It=y.i(Mt-1).x,Zt=y.i(Mt-1).y;var Qt=Ht.centerX,ne=Ht.centerY;if(yt)this.K===180||this.K===0?Mt===y.firstPickIndex+1?(y.m(Mt++,It,Zt),y.m(Mt++,It,ne)):(Kt!==null?Kt.centerY:Zt)!==ne&&(Kt=this.Ta[Ht.layer-1]+this.Rf.x,y.m(Mt++,Kt,Zt),y.m(Mt++,Kt,ne)):Mt===y.firstPickIndex+1?(y.m(Mt++,It,Zt),y.m(Mt++,Qt,Zt)):(Kt!==null?Kt.centerX:It)!==Qt&&(Kt=this.Ta[Ht.layer-1]+this.Rf.y,y.m(Mt++,It,Kt),y.m(Mt++,Qt,Kt));else if(Mt===y.firstPickIndex+1){Kt=Math.max(10,this.he[ft.layer]);var Se=Math.max(10,this.Ld[ft.layer]);if(mt)this.K===180?Qt<=ft.bounds.x?(ft=ft.bounds.x,y.m(Mt++,ft-Kt,ne),y.m(Mt++,ft,ne),y.m(Mt++,ft+Se,ne)):(y.m(Mt++,Qt-Kt,ne),y.m(Mt++,Qt,ne),y.m(Mt++,Qt+Se,ne)):this.K===90?ne>=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Mt++,Qt,ft+Se),y.m(Mt++,Qt,ft),y.m(Mt++,Qt,ft-Kt)):(y.m(Mt++,Qt,ne+Se),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,ne-Kt)):this.K===270?ne<=ft.bounds.y?(ft=ft.bounds.y,y.m(Mt++,Qt,ft-Kt),y.m(Mt++,Qt,ft),y.m(Mt++,Qt,ft+Se)):(y.m(Mt++,Qt,ne-Kt),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,ne+Se)):this.K===0&&(Qt>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Mt++,ft+Se,ne),y.m(Mt++,ft,ne),y.m(Mt++,ft-Kt,ne)):(y.m(Mt++,Qt+Se,ne),y.m(Mt++,Qt,ne),y.m(Mt++,Qt-Kt,ne)));else{y.m(Mt++,It,Zt);var mn=0;this.K===180||this.K===0?((this.K===180?Qt>=ft.bounds.right:Qt<=ft.bounds.x)&&(mn=(this.K===0?-Kt:Se)/2),y.m(Mt++,It+mn,ne)):((this.K===270?ne>=ft.bounds.bottom:ne<=ft.bounds.y)&&(mn=(this.K===90?-Kt:Se)/2),y.m(Mt++,Qt,Zt+mn)),y.m(Mt++,Qt,ne)}}else Kt=Math.max(10,this.he[Ht.layer]),Se=Math.max(10,this.Ld[Ht.layer]),mt?this.K===180?(y.m(Mt++,Qt-Kt-wt,ne),y.m(Mt++,Math.min(Qt-Kt+wt/2,Qt),ne),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,ne),y.m(Mt++,Math.max(Qt+Se-wt/2,Qt),ne),y.m(Mt++,Qt+Se+wt,ne)):this.K===90?(y.m(Mt++,Qt,ne+Se+wt),y.m(Mt++,Qt,Math.max(ne+Se-wt/2,ne)),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,Math.min(ne-Kt+wt/2,ne)),y.m(Mt++,Qt,ne-Kt-wt)):this.K===270?(y.m(Mt++,Qt,ne-Kt-wt),y.m(Mt++,Qt,Math.min(ne-Kt+wt/2,ne)),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,Math.max(ne+Se-wt/2,ne)),y.m(Mt++,Qt,ne+Se+wt)):(y.m(Mt++,Qt+Se+wt,ne),y.m(Mt++,Math.max(Qt+Se-wt/2,Qt),ne),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,ne),y.m(Mt++,Math.min(Qt-Kt+wt/2,Qt),ne),y.m(Mt++,Qt-Kt-wt,ne)):y.m(Mt++,Qt,ne)}ft=Ht}(rt===null||at!==li||yt)&&(It=y.i(Mt-1).x,Zt=y.i(Mt-1).y,Qt=y.i(Mt).x,ne=y.i(Mt).y,yt?(wt=this.Ld[ut.layer],this.K===180||this.K===0?(yt=Zt,yt>=ut.bounds.y&&yt<=ut.bounds.bottom&&(this.K===180?Qt>=ut.bounds.x:Qt<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-wt:wt),yt<ut.bounds.y+ut.bounds.height/2?yt=ut.bounds.y-this.kc/2:yt=ut.bounds.bottom+this.kc/2,y.m(Mt++,ft,Zt),y.m(Mt++,ft,yt)),y.m(Mt++,Qt,yt)):(yt=It,yt>=ut.bounds.x&&yt<=ut.bounds.right&&(this.K===270?ne>=ut.bounds.y:ne<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-wt:wt),yt<ut.bounds.x+ut.bounds.width/2?yt=ut.bounds.x-this.kc/2:yt=ut.bounds.right+this.kc/2,y.m(Mt++,It,ft),y.m(Mt++,yt,ft)),y.m(Mt++,yt,ne)),y.m(Mt++,Qt,ne)):mt?(Kt=Math.max(10,this.he[ut.layer]),Se=Math.max(10,this.Ld[ut.layer]),this.K===180&&Qt>=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Mt-2,ft,Zt),y.L(Mt-1,ft+Se,Zt)):this.K===90&&ne<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Mt-2,It,ft),y.L(Mt-1,It,ft-Kt)):this.K===270&&ne>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Mt-2,It,ft),y.L(Mt-1,It,ft+Se)):this.K===0&&Qt<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Mt-2,ft,Zt),y.L(Mt-1,ft-Kt,Zt))):(Kt=Math.max(10,this.he[ut.layer]),Se=Math.max(10,this.Ld[ut.layer]),yt=0,this.K===180||this.K===0?((this.K===180?Qt<=ut.bounds.x:Qt>=ut.bounds.right)&&(yt=(this.K===0?Se:-Kt)/2),y.m(Mt++,Qt+yt,Zt)):((this.K===270?ne<=ut.bounds.y:ne>=ut.bounds.bottom)&&(yt=(this.K===90?Se:-Kt)/2),y.m(Mt++,It,ne+yt)),y.m(Mt++,Qt,ne)))}else{for(;ut!==null&&ut!==ft;){for(Kt=Ht=null,ut=ut.destinationEdges.iterator;ut.next()&&(It=ut.value,It.link!==x.link||(Ht=It.toVertex,Kt=It.fromVertex,Kt.node!==null&&(Kt=null),Ht.node!==null)););if(Ht===null)break;Ht!==ft&&(It=y.i(Mt-1).x,Zt=y.i(Mt-1).y,Qt=Ht.centerX,ne=Ht.centerY,yt?this.K===180||this.K===0?(Kt!==null?Kt.centerY:Zt)!==ne&&(Kt=this.Ta[Ht.layer]+this.Rf.x,Mt===y.firstPickIndex+1&&(Kt=this.K===0?Math.max(Kt,It):Math.min(Kt,It)),y.m(Mt++,Kt,Zt),y.m(Mt++,Kt,ne)):(Kt!==null?Kt.centerX:It)!==Qt&&(Kt=this.Ta[Ht.layer]+this.Rf.y,Mt===y.firstPickIndex+1&&(Kt=this.K===90?Math.max(Kt,Zt):Math.min(Kt,Zt)),y.m(Mt++,It,Kt),y.m(Mt++,Qt,Kt)):(Kt=Math.max(10,this.he[Ht.layer]),Se=Math.max(10,this.Ld[Ht.layer]),mt?this.K===180?(y.m(Mt++,Qt+Se+wt,ne),y.m(Mt++,Math.max(Qt+Se-wt/2,Qt),ne),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,ne),y.m(Mt++,Math.min(Qt-Kt+wt/2,Qt),ne),y.m(Mt++,Qt-Kt-wt,ne)):this.K===90?(y.m(Mt++,Qt,ne-Kt-wt),y.m(Mt++,Qt,Math.min(ne-Kt+wt/2,ne)),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,Math.max(ne+Se-wt/2,ne)),y.m(Mt++,Qt,ne+Se+wt)):this.K===270?(y.m(Mt++,Qt,ne+Se+wt),y.m(Mt++,Qt,Math.max(ne+Se-wt/2,ne)),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,Math.min(ne-Kt+wt/2,ne)),y.m(Mt++,Qt,ne-Kt-wt)):(y.m(Mt++,Qt-Kt-wt,ne),y.m(Mt++,Math.min(Qt-Kt+wt/2,Qt),ne),y.m(Mt++,Qt,ne),y.m(Mt++,Qt,ne),y.m(Mt++,Math.max(Qt+Se-wt/2,Qt),ne),y.m(Mt++,Qt+Se+wt,ne)):this.K===180?(y.m(Mt++,Qt+Se,ne),y.m(Mt++,Qt-Kt,ne)):this.K===90?(y.m(Mt++,Qt,ne-Kt),y.m(Mt++,Qt,ne+Se)):this.K===270?(y.m(Mt++,Qt,ne+Se),y.m(Mt++,Qt,ne-Kt)):(y.m(Mt++,Qt-Kt,ne),y.m(Mt++,Qt+Se,ne)))),ut=Ht}yt&&(It=y.i(Mt-1).x,Zt=y.i(Mt-1).y,Qt=y.i(Mt).x,ne=y.i(Mt).y,this.K===180||this.K===0?Zt!==ne&&(Kt=this.K===0?Math.min(Math.max((Qt+It)/2,this.Ta[ft.layer]+this.Rf.x),Qt):Math.max(Math.min((Qt+It)/2,this.Ta[ft.layer]+this.Rf.x),Qt),y.m(Mt++,Kt,Zt),y.m(Mt++,Kt,ne)):It!==Qt&&(Kt=this.K===90?Math.min(Math.max((ne+Zt)/2,this.Ta[ft.layer]+this.Rf.y),ne):Math.max(Math.min((ne+Zt)/2,this.Ta[ft.layer]+this.Rf.y),ne),y.m(Mt++,It,Kt),y.m(Mt++,Qt,Kt)))}E!==null&&mt&&4<=y.pointsCount&&(tt!==null&&(tt=at===li?y.getLinkPointFromPoint(b,tt,tt.ga(Tn),y.i(3),!0):y.i(0),at===li&&(at=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+at.x)/2,at.y),y.L(2,E.x,(at.y+E.y)/2)):(y.L(1,at.x,(tt.y+at.y)/2),y.L(2,(at.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(b=ot===li?y.getLinkPointFromPoint(z,rt,rt.ga(Tn),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ot===li&&(rt=y.i(y.pointsCount-3),ot=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,ot.x,(rt.y+ot.y)/2)):(y.L(y.pointsCount-2,rt.x,(b.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+ot.x)/2,ot.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Vr.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new rn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var E=a.value;if(E!==null&&E.isOrthogonal)for(var b=2;b<E.pointsCount-3;b++){var z=E.i(b),tt=E.i(b+1);if(this.B(z.y,tt.y)&&!this.B(z.x,tt.x)){var rt=new Sd;rt.layer=Math.floor(z.y/2);var ot=E.i(0),at=E.i(E.pointsCount-1);if(rt.first=ot.x*ot.x+ot.y,rt.jc=at.x*at.x+at.y,rt.rd=Math.min(z.x,tt.x),rt.Ic=Math.max(z.x,tt.x),rt.index=b,rt.link=E,b+2<E.pointsCount){ot=E.i(b-1),at=E.i(b+2);var ut=0;ot.y<z.y?ut=at.y<z.y?3:z.x<tt.x?2:1:ot.y>z.y&&(ut=at.y>z.y?0:tt.x<z.x?2:1),rt.j=ut}x.push(rt)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(tt=x[z].Ic,b=a+1;b<E&&x[b].rd<tt;)tt=Math.max(tt,x[b].Ic),b++;if(tt=b-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,ot=z;ot<b;ot++)at=x[ot],at.jc!==rt&&(ut++,rt=at.jc);this.zi(x,this.Ux,z,z+tt);var ft=1;for(rt=x[z].first,ot=z;ot<b;ot++)at=x[ot],at.first!==rt&&(ft++,rt=at.first);for(ot=!0,at=ft,ut<ft?(ot=!1,at=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,ft=z;ft<b;ft++){var mt=x[ft];(ot?mt.first:mt.jc)!==rt&&(ut++,rt=ot?mt.first:mt.jc);var yt=mt.link;z=yt.i(mt.index),tt=yt.i(mt.index+1);var wt=this.linkSpacing*(ut-(at-1)/2);y++,yt.uh(),yt.L(mt.index,z.x,z.y+wt),yt.L(mt.index+1,tt.x,tt.y+wt),yt.zf()}}z=b}a=E}}else{for(y=0,x=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(b=2;b<E.pointsCount-3;b++)z=E.i(b),tt=E.i(b+1),this.B(z.x,tt.x)&&!this.B(z.y,tt.y)&&(rt=new Sd,rt.layer=Math.floor(z.x/2),ot=E.i(0),at=E.i(E.pointsCount-1),rt.first=ot.x+ot.y*ot.y,rt.jc=at.x+at.y*at.y,rt.rd=Math.min(z.y,tt.y),rt.Ic=Math.max(z.y,tt.y),rt.index=b,rt.link=E,b+2<E.pointsCount&&(ot=E.i(b-1),at=E.i(b+2),ut=0,ot.x<z.x?ut=at.x<z.x?3:z.y<tt.y?2:1:ot.x>z.x&&(ut=at.x>z.x?0:tt.y<z.y?2:1),rt.j=ut),x.push(rt));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(tt=x[z].Ic,b=a+1;b<E&&x[b].rd<tt;)tt=Math.max(tt,x[b].Ic),b++;if(tt=b-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,ot=z;ot<b;ot++)at=x[ot],at.jc!==rt&&(ut++,rt=at.jc);for(this.zi(x,this.Ux,z,z+tt),ft=1,rt=x[z].first,ot=z;ot<b;ot++)at=x[ot],at.first!==rt&&(ft++,rt=at.first);for(ot=!0,at=ft,ut<ft?(ot=!1,at=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,ft=z;ft<b;ft++)mt=x[ft],(ot?mt.first:mt.jc)!==rt&&(ut++,rt=ot?mt.first:mt.jc),yt=mt.link,z=yt.i(mt.index),tt=yt.i(mt.index+1),wt=this.linkSpacing*(ut-(at-1)/2),y++,yt.uh(),yt.L(mt.index,z.x+wt,z.y),yt.L(mt.index+1,tt.x+wt,tt.y),yt.zf()}z=b}a=E}}}},Lt=Vr.prototype,Lt.Vx=function(a,y){return a instanceof Sd&&y instanceof Sd&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Lt.Ux=function(a,y){return a instanceof Sd&&y instanceof Sd&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Lt.Js=function(a,y){return a instanceof Sd&&y instanceof Sd&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Lt.B=function(a,y){return a-=y,-1<a&&1>a},Lt.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&Xt("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0<y(E,b)&&(a[x]=b,a[x+1]=E);else if(x===0)if(E>=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y<E;y++)a[y]=x[y];else if(E>=b)for(E=a.slice(x),E.sort(y),y=x;y<b;y++)a[y]=E[y-x];else for(b=a.slice(x,E),b.sort(y),y=x;y<E;y++)a[y]=b[y-x]};function vd(a,y){var x=a.tc[y];if(x>=a.He.length){for(var E=[],b=0;b<a.He.length;b++)E[b]=a.He[b];a.He=E}for(a.He[x]===void 0||a.He[x]===null?E=[]:(E=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],E[x.index]=x;return E}function yd(a,y,x){a.He[a.tc[y]]=x}Ye.Object.defineProperties(Vr.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):Xt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Sy&&a!==M0&&a!==Ep||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==F0&&a!==xy&&a!==wy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==k0&&a!==Py&&a!==Cy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Ay&&a!==b0&&a!==Ly||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var M0=new Ee(Vr,"CycleDepthFirst",0),Sy=new Ee(Vr,"CycleGreedy",1),Ep=new Ee(Vr,"CycleFromLayers",2),F0=new Ee(Vr,"LayerOptimalLinkLength",0),xy=new Ee(Vr,"LayerLongestPathSink",1),wy=new Ee(Vr,"LayerLongestPathSource",2),k0=new Ee(Vr,"InitDepthFirstOut",0),Py=new Ee(Vr,"InitDepthFirstIn",1),Cy=new Ee(Vr,"InitNaive",2),Ay=new Ee(Vr,"AggressiveNone",0),b0=new Ee(Vr,"AggressiveLess",1),Ly=new Ee(Vr,"AggressiveMore",2),Xx=8;Vr.className="LayeredDigraphLayout",Vr.CycleDepthFirst=M0,Vr.CycleGreedy=Sy,Vr.CycleFromLayers=Ep,Vr.LayerOptimalLinkLength=F0,Vr.LayerLongestPathSink=xy,Vr.LayerLongestPathSource=wy,Vr.InitDepthFirstOut=k0,Vr.InitDepthFirstIn=Py,Vr.InitNaive=Cy,Vr.AggressiveNone=Ay,Vr.AggressiveLess=b0,Vr.AggressiveMore=Ly,Vr.PackNone=0,Vr.PackExpand=1,Vr.PackStraighten=2,Vr.PackMedian=4,Vr.PackAll=15,Vr.AlignNone=0,Vr.AlignUpperLeft=1,Vr.AlignUpperRight=2,Vr.AlignLowerLeft=4,Vr.AlignLowerRight=8,Vr.AlignAll=15;function Sd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Sd.className="SegInfo";function Jf(a){co.call(this,a)}we(Jf,co),Jf.prototype.createVertex=function(){return new vl(this)},Jf.prototype.createEdge=function(){return new Mp(this)},Jf.className="LayeredDigraphNetwork";function vl(a){xs.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}we(vl,xs);function ix(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],E=ii(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=ii(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Xt("Unable to find destination edge to given vertex")}function Ey(a){if(!a.co){for(var y=[],x=ii(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ix),a.co=y}return a.co}function Kx(a){if(!a.ao){for(var y=[],x=ii(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ix),a.ao=y}return a.ao}vl.prototype.Cl=function(a){xs.prototype.Cl.call(this,a),this.bo=this.co=null},vl.prototype.Kl=function(a){xs.prototype.Kl.call(this,a),this.bo=this.co=null},vl.prototype.zl=function(a){xs.prototype.zl.call(this,a),this.$n=this.ao=null},vl.prototype.Jl=function(a){xs.prototype.Jl.call(this,a),this.$n=this.ao=null},Ye.Object.defineProperties(vl.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),vl.prototype.deleteDestinationEdge=vl.prototype.Jl,vl.prototype.addDestinationEdge=vl.prototype.zl,vl.prototype.deleteSourceEdge=vl.prototype.Kl,vl.prototype.addSourceEdge=vl.prototype.Cl,vl.className="LayeredDigraphVertex";function Mp(a){Ua.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}we(Mp,Ua),Ye.Object.defineProperties(Mp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Mp.className="LayeredDigraphEdge";function er(a){Do.call(this),this.Ub=new en,this.Wn=I0,this.ud=Nu,this.vo=R0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=z0,this.$d=new Yt(10,10).freeze();var y=new Zc(this);this.W=new Fl(y),this.Y=new Fl(y),this.ru=[],a&&Object.assign(this,a)}we(er,Do),er.prototype.cloneProtected=function(a){Do.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},er.prototype.qb=function(a){a.classType===er?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:Xt("Unknown enum value: "+a):Do.prototype.qb.call(this,a)},er.prototype.createNetwork=function(){return new Zc(this)},er.prototype.makeNetwork=function(a){function y(E){if(E instanceof yn)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof un){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof xe?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Ri?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},er.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==j0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof xe&&(y=a),this.path===I0&&y!==null?this.ud=y.isTreePathToChildren?Nu:Vc:this.ud=this.path===I0?Nu:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new en,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof yn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Fl&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,My(this,y));for(y=this.network.vertexes,a=null;a=Qx(y),0<a.count;)y=rx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,My(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Fl&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Fl&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Fl&&lx(this,y);if(this.Cu(),this.layerStyle===H0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var E=x.parent;E===null&&(E=x),E=E.angle===0||E.angle===180;var b=a[x.level];b===void 0&&(b=0),a[x.level]=Math.max(b,E?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,E=x.parent,E===null&&(E=x),E.angle===0||E.angle===180?(E.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(E.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,E=-1,b=0;b<y.children.length;b++){var z=y.children[b];E=Math.max(E,x?z.width:z.height)}if(0<=E)for(b=0;b<y.children.length;b++)z=y.children[b],x?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Fl&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new en,this.isValidLayout=!0};function Qx(a){var y=new en;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}er.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Nu:x.sourceEdges.count===0&&this.Ub.add(x);break;case Vc:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Xt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=rx(this,a),a!==null&&this.Ub.add(a))};function rx(a,y){var x=999999,E=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case Nu:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case Vc:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:Xt("Unhandled path value "+a.ud.toString())}}return E}function My(a,y){if(y!==null){switch(a.ud){case Nu:if(0<y.destinationEdges.count){for(var x=new rn,E=y.destinationVertexes;E.next();){var b=E.value;ox(a,y,b)&&x.add(b)}0<x.count&&(y.children=x.Fa())}break;case Vc:if(0<y.sourceEdges.count){for(x=new rn,E=y.sourceVertexes;E.next();)b=E.value,ox(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:Xt("Unhandled path value"+a.ud.toString())}for(x=y.children,E=x.length,b=0;b<E;b++){var z=x[b];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<E;y++)My(a,x[y])}}function ox(a,y,x){if(x.initialized){if(y===null)var E=!1;else{for(E=y.parent;E!==null&&E!==x;)E=E.parent;E=E===x}if(E||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}er.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;b<x.length;b++)x[b]===y&&E++;if(0<E){E=Array(x.length-E);for(var z=b=0;z<x.length;z++)x[z]!==y&&(E[b++]=x[z]);a.children=E}}};function sx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Ou&&a.sortTreeVertexChildren(y);for(var x=0,E=y.childrenCount,b=0,z=y.children,tt=z.length,rt=0;rt<tt;rt++){var ot=z[rt];sx(a,ot),x+=ot.descendantCount+1,E=Math.max(E,ot.maxChildrenCount),b=Math.max(b,ot.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=E,y.maxGenerationCount=0<E?b+1:0}}function Jx(a,y){switch(a.vo){default:case R0:return y.parent!==null?y.parent:a.W;case Iy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Ty:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Ny:var x=!0;if(y.childrenCount===0)x=!1;else for(var E=y.children,b=E.length,z=0;z<b;z++)if(0<E[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}er.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Jx(this,a)),a.parent!==null&&a.parent.alignment===Ou){for(var y=a.angle,x=a.parent.children,E=0;E<x.length&&a!==x[E];)E++;E%2===0?E!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function ax(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,E=0;E<x;E++)ax(a,y[E])}}er.prototype.assignTreeVertexValues=function(){};function lx(a,y){if(y!==null){y.alignment!==Ou&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)lx(a,y[E])}}er.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case qf:break;case kp:a.children.reverse();break;case bp:a.children.sort(a.comparer);break;case Bp:a.children.sort(a.comparer),a.children.reverse();break;default:Xt("Unhandled sorting value "+a.sorting.toString())}},er.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},er.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=xd(b)),y=y===90||y===270,E=E===90||E===270,x=a.childrenCount===0;var z=0,tt=0,rt=0,ot=a.commentSpacing;if(a.node!==null)for(var at=a.node.Mu();at.next();){var ut=at.value;ut.category==="Comment"&&ut.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ut),ut.Va(),ut=ut.measuredBounds,y&&!x||!b&&!E&&x||b&&E&&x?(z=Math.max(z,ut.width),tt+=ut.height+Math.abs(rt)):(z+=ut.width+Math.abs(rt),tt=Math.max(tt,ut.height)),rt=ot)}a.comments!==null&&(y&&!x||!b&&!E&&x||b&&E&&x?(z+=Math.abs(a.commentMargin),tt=Math.max(0,tt-a.height)):(tt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=oe.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=b,oe.free(b))};function xd(a){return a===Dh||a===Ou||a===Nh||a===_u}function Fp(a){return a===Dh||a===Ou}function Fy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(xd(x)){if(Fp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Nh)return!0}}return!1}er.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,E=a.angle,b=0,z=!1;x!==null&&(b=x.angle,z=x.alignment,z=xd(z)),E=E===90||E===270,x=b===90||b===270;for(var tt=a.childrenCount===0,rt=Fy(a),ot=0,at=a.comments,ut=at.length,ft=Wt.alloc(),mt=0;mt<ut;mt++){var yt=at[mt],wt=yt.measuredBounds;if(E&&!tt||!z&&!x&&tt||z&&x&&tt){if(135<b&&!z||x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x-a.commentMargin-wt.width,a.bounds.y+ot),yt.move(ft),yt=yt.Sd();yt.next();){var Mt=yt.value;Mt.fromSpot=Xr,Mt.toSpot=Kr}else for(ft.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+ot),yt.move(ft),yt=yt.Sd();yt.next();)Mt=yt.value,Mt.fromSpot=Kr,Mt.toSpot=Xr;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+ot),yt.move(ft),yt=yt.Sd();yt.next();)Mt=yt.value,Mt.fromSpot=Kr,Mt.toSpot=Xr;else for(ft.h(a.bounds.x+a.commentMargin-wt.width,a.bounds.y+ot),yt.move(ft),yt=yt.Sd();yt.next();)Mt=yt.value,Mt.fromSpot=Xr,Mt.toSpot=Kr;ot=0<=a.commentSpacing?ot+(wt.height+a.commentSpacing):ot+(a.commentSpacing-wt.height)}else{if(135<b&&!z||!x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x+ot,a.bounds.y-a.commentMargin-wt.height),yt.move(ft),yt=yt.Sd();yt.next();)Mt=yt.value,Mt.fromSpot=to,Mt.toSpot=Wo;else for(ft.h(a.bounds.x+ot,a.bounds.y+2*a.focus.y-a.commentMargin),yt.move(ft),yt=yt.Sd();yt.next();)Mt=yt.value,Mt.fromSpot=Wo,Mt.toSpot=to;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+ot,a.bounds.y+2*a.focus.y+a.commentMargin),yt.move(ft),yt=yt.Sd();yt.next();)Mt=yt.value,Mt.fromSpot=Wo,Mt.toSpot=to;else for(ft.h(a.bounds.x+ot,a.bounds.y+a.commentMargin-wt.height),yt.move(ft),yt=yt.Sd();yt.next();)Mt=yt.value,Mt.fromSpot=to,Mt.toSpot=Wo;ot=0<=a.commentSpacing?ot+(wt.width+a.commentSpacing):ot+(a.commentSpacing-wt.width)}}if(Wt.free(ft),y=ot-a.commentSpacing-(E?y.height:y.width),this.ud===Nu)for(a=a.destinationEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.toEndSegmentLength=0<y?y:NaN)}},er.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,E=0;E<x;E++)this.layoutTree(y[E]);switch(a.compaction){case O0:ux(this,a);break;case Dp:if(a.alignment===Ou)ux(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=xd(x)),E=Fy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!E?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&E?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var b=Yl(a);y=b===90||b===270;var z=0,tt=a.children,rt=tt.length;for(x=0;x<rt;x++)E=tt[x],z=Math.max(z,y?E.Da.width:E.Da.height);var ot=a.alignment;E=ot===Tu;var at=ot===Iu,ut=xd(ot),ft=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var mt=a.nodeSpacing,yt=this.computeNodeIndent(a),wt=a.rowSpacing,Mt=0;(E||at||a.hm||a.im&&a.maxGenerationCount===1)&&(Mt=Math.max(0,a.rowIndent)),E=a.width;var Ht=a.height,It=0,Zt=0,Kt=0,Qt=null,ne=null,Se=0,mn=0,zn=0,bn=0,ln=0,Ve=0,Oi=0,ki=0;if(ut&&!Fp(ot)&&135<b&&tt.reverse(),Fp(ot))if(1<rt)for(var Br=0;Br<rt;Br++)Br%2===0&&Br!==rt-1&&(ki=Math.max(ki,y?tt[Br].Da.width:tt[Br].Da.height));else rt===1&&(ki=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(ot){case Dh:Zt=135>b?hx(this,a,tt,ki,It,Zt):dx(this,a,tt,ki,It,Zt),ki=Zt.x,It=Zt.width,Zt=Zt.height;break;case Nh:for(Qt=0;Qt<rt;Qt++)ne=tt[Qt],ft=ne.Da,Kt=Ve===0?0:wt,y?(ne.S.h(z-ft.width,bn+Kt),It=Math.max(It,ft.width),Zt=Math.max(Zt,bn+Kt+ft.height),bn+=Kt+ft.height):(ne.S.h(zn+Kt,z-ft.height),It=Math.max(It,zn+Kt+ft.width),Zt=Math.max(Zt,ft.height),zn+=Kt+ft.width),Ve++;break;case _u:for(Qt=0;Qt<rt;Qt++)ne=tt[Qt],z=ne.Da,ft=Ve===0?0:wt,y?(ne.S.h(mt/2+a.focus.x,bn+ft),It=Math.max(It,z.width),Zt=Math.max(Zt,bn+ft+z.height),bn+=ft+z.height):(ne.S.h(zn+ft,mt/2+a.focus.y),It=Math.max(It,zn+ft+z.width),Zt=Math.max(Zt,z.height),zn+=ft+z.width),Ve++}Qt=Ra(this,2),ne=Ra(this,2),y?(Qt[0].h(0,0),Qt[1].h(0,Zt),ne[0].h(It,0)):(Qt[0].h(0,0),Qt[1].h(It,0),ne[0].h(0,Zt)),ne[1].h(It,Zt)}else for(Br=0;Br<rt;Br++){var ao=tt[Br],Ls=ao.Da;if(y){0<ft&&0<Ve&&zn+mt+Ls.width>ft&&(zn<z&&nc(a,ot,z-zn,0,Oi,Br-1),ln++,Ve=0,Oi=Br,Kt=Zt,zn=0,bn=135<b?-Zt-wt:Zt+wt),N0(this,ao,0,bn);var ks=0;if(Ve===0)Qt=ao.Yo,ne=ao.kp,Se=Ls.width,mn=Ls.height,(Qt===null||ne===null||b!==Yl(ao))&&(Qt=Ra(this,2),ne=Ra(this,2),Qt[0].h(0,0),Qt[1].h(0,mn),ne[0].h(Se,0),ne[1].h(Se,mn));else{var ua=On();mn=cx(this,a,ao,Qt,ne,Se,mn,ua),ks=mn.x,Qt=ua[0],ne=ua[1],Se=mn.width,mn=mn.height,Bn(ua),zn<Ls.width&&0>ks&&(Wc(a,-ks,0,Oi,Br-1),T0(Qt,-ks,0),T0(ne,-ks,0),ks=0)}ao.S.h(ks,bn),It=Math.max(It,Se),Zt=Math.max(Zt,Kt+(ln===0?0:wt)+Ls.height),zn=Se}else 0<ft&&0<Ve&&bn+mt+Ls.height>ft&&(bn<z&&nc(a,ot,0,z-bn,Oi,Br-1),ln++,Ve=0,Oi=Br,Kt=It,bn=0,zn=135<b?-It-wt:It+wt),N0(this,ao,zn,0),ks=0,Ve===0?(Qt=ao.Yo,ne=ao.kp,Se=Ls.width,mn=Ls.height,(Qt===null||ne===null||b!==Yl(ao))&&(Qt=Ra(this,2),ne=Ra(this,2),Qt[0].h(0,0),Qt[1].h(Se,0),ne[0].h(0,mn),ne[1].h(Se,mn))):(ua=On(),mn=cx(this,a,ao,Qt,ne,Se,mn,ua),ks=mn.x,Qt=ua[0],ne=ua[1],Se=mn.width,mn=mn.height,Bn(ua),bn<Ls.height&&0>ks&&(Wc(a,0,-ks,Oi,Br-1),T0(Qt,0,-ks),T0(ne,0,-ks),ks=0)),ao.S.h(zn,ks),Zt=Math.max(Zt,mn),It=Math.max(It,Kt+(ln===0?0:wt)+Ls.width),bn=mn;Ve++}switch(0<ln&&(y?(Zt+=Math.max(0,x),zn<It&&nc(a,ot,It-zn,0,Oi,rt-1),0<Mt&&(at||Wc(a,Mt,0,0,rt-1),It+=Mt)):(It+=Math.max(0,x),bn<Zt&&nc(a,ot,0,Zt-bn,Oi,rt-1),0<Mt&&(at||Wc(a,0,Mt,0,rt-1),Zt+=Mt))),Mt=at=0,ot){case _f:y?at+=It/2-a.focus.x-yt/2:Mt+=Zt/2-a.focus.y-yt/2;break;case Yc:0<ln?y?at+=It/2-a.focus.x-yt/2:Mt+=Zt/2-a.focus.y-yt/2:y?(ki=tt[0].S.x+tt[0].la.x,at+=ki+(tt[rt-1].S.x+tt[rt-1].la.x+2*tt[rt-1].focus.x-ki)/2-a.focus.x-yt/2):(ki=tt[0].S.y+tt[0].la.y,Mt+=ki+(tt[rt-1].S.y+tt[rt-1].la.y+2*tt[rt-1].focus.y-ki)/2-a.focus.y-yt/2);break;case Tu:y?(at-=yt,It+=yt):(Mt-=yt,Zt+=yt);break;case Iu:y?(at+=It-a.width+yt,It+=yt):(Mt+=Zt-a.height+yt,Zt+=yt);break;case Dh:y?1<rt?at+=ki+mt/2-a.focus.x:at+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<rt?Mt+=ki+mt/2-a.focus.y:Mt+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case Nh:y?at+=It+mt/2-a.focus.x:Mt+=Zt+mt/2-a.focus.y;break;case _u:break;default:Zt=this.customAlignment(a,at,Mt,It,Zt),at=Zt[0],Mt=Zt[1],It=Zt[2],Zt=Zt[3]}for(yt=0;yt<rt;yt++)ki=tt[yt],y?ki.S.h(ki.S.x+ki.la.x-at,ki.S.y+(135<b?(ut?-Zt:-ki.Da.height)+ki.la.y-x:Ht+x+ki.la.y)):ki.S.h(ki.S.x+(135<b?(ut?-It:-ki.Da.width)+ki.la.x-x:E+x+ki.la.x),ki.S.y+ki.la.y-Mt);if(rt=tt=0,ut?y?(It=ky(a,It,at),0>at&&(at=0),135<b&&(Mt+=Zt+x),Zt+=Ht+x,ot===_u&&(tt+=mt/2+a.focus.x),rt+=Ht+x):(135<b&&(at+=It+x),It+=E+x,Zt=by(a,Zt,Mt),0>Mt&&(Mt=0),ot===_u&&(rt+=mt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>It&&(It=By(ot,E-It,0),tt=It.x,rt=It.y,It=E,at=0):It=ky(a,It,at),0>at&&(tt-=at,at=0),135<b&&(Mt+=Zt+x),Zt=Math.max(Math.max(Zt,Ht),Zt+Ht+x),rt+=Ht+x):(135<b&&(at+=It+x),It=Math.max(Math.max(It,E),It+E+x),a.comments===null?Ht>Zt&&(Zt=By(ot,0,Ht-Zt),tt=Zt.x,rt=Zt.y,Zt=Ht,Mt=0):Zt=by(a,Zt,Mt),0>Mt&&(rt-=Mt,Mt=0),tt+=E+x),0<ln)b=Ra(this,4),ln=Ra(this,4),y?(b[2].h(0,Ht+x),b[3].h(b[2].x,Zt),ln[2].h(It,b[2].y),ln[3].h(ln[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(It,b[2].y),ln[2].h(b[2].x,Zt),ln[3].h(b[3].x,ln[2].y));else{for(b=Ra(this,Qt.length+2),ln=Ra(this,ne.length+2),ot=0;ot<Qt.length;ot++)ut=Qt[ot],b[ot+2].h(ut.x+tt,ut.y+rt);for(ot=0;ot<ne.length;ot++)ut=ne[ot],ln[ot+2].h(ut.x+tt,ut.y+rt)}y?(b[0].h(at,0),b[1].h(b[0].x,Ht),b[2].y<b[1].y&&(b[2].x>b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].y<b[2].y&&(b[3].x>b[0].x?b[3].assign(b[2]):b[2].assign(b[3])),ln[0].h(at+E,0),ln[1].h(ln[0].x,Ht),ln[2].y<ln[1].y&&(ln[2].x<ln[0].x?ln[2].assign(ln[1]):ln[1].assign(ln[2])),ln[3].y<ln[2].y&&(ln[3].x<ln[0].x?ln[3].assign(ln[2]):ln[2].assign(ln[3])),b[2].y-=x/2,ln[2].y-=x/2):(b[0].h(0,Mt),b[1].h(E,b[0].y),b[2].x<b[1].x&&(b[2].y>b[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].x<b[2].x&&(b[3].y>b[0].y?b[3].assign(b[2]):b[2].assign(b[3])),ln[0].h(0,Mt+Ht),ln[1].h(E,ln[0].y),ln[2].x<ln[1].x&&(ln[2].y<ln[0].y?ln[2].assign(ln[1]):ln[1].assign(ln[2])),ln[3].x<ln[2].x&&(ln[3].y<ln[0].y?ln[3].assign(ln[2]):ln[2].assign(ln[3])),b[2].x-=x/2,ln[2].x-=x/2),nu(this,Qt),nu(this,ne),a.Yo=b,a.kp=ln,a.la.h(at,Mt),a.Da.h(It,Zt)}break;default:Xt("Unhandled compaction value "+a.compaction.toString())}}};function ux(a,y){if(y.childrenCount===0){var x=!1,E=0;y.parent!==null&&(E=y.parent.angle,x=y.parent.alignment,x=xd(x));var b=Fy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||x)&&!b?y.la.h(0,0):E===180&&!x||(E===90||E===270)&&b?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=Yl(y),x=E===90||E===270;var z=0;b=y.children;for(var tt=b.length,rt=0;rt<tt;rt++){var ot=b[rt];z=Math.max(z,x?ot.Da.width:ot.Da.height)}var at=y.alignment,ut=at===Tu,ft=at===Iu;rt=xd(at);var mt=Math.max(0,y.breadthLimit);ot=a.computeLayerSpacing(y);var yt=y.nodeSpacing,wt=a.computeNodeIndent(y),Mt=ut||ft?0:wt/2,Ht=y.rowSpacing,It=0;(ut||ft||y.hm||y.im&&y.maxGenerationCount===1)&&(It=Math.max(0,y.rowIndent)),ut=y.width;var Zt=y.height,Kt=0,Qt=0,ne=0,Se=0,mn=0,zn=0,bn=0,ln=0,Ve=0,Oi=0;if(rt&&!Fp(at)&&135<E&&b.reverse(),Fp(at))if(1<tt)for(var ki=0;ki<tt;ki++){var Br=b[ki],ao=Br.Da;ki%2===0&&ki!==tt-1?Ve=Math.max(Ve,(x?ao.width:ao.height)+a.computeBusNodeSpacing(Br)-yt):ki%2!==0&&(Oi=Math.max(Oi,(x?ao.width:ao.height)+a.computeBusNodeSpacing(Br)-yt))}else tt===1&&(Ve=x?b[0].Da.width:b[0].Da.height);if(rt)switch(at){case Dh:case Ou:Qt=135>E?hx(a,y,b,Ve,Kt,Qt):dx(a,y,b,Ve,Kt,Qt),Ve=Qt.x,Kt=Qt.width,Qt=Qt.height;break;case Nh:for(mt=0;mt<tt;mt++)Mt=b[mt],ne=Mt.Da,Oi=bn===0?0:Ht,x?(Mt.S.h(z-ne.width,mn+Oi),Kt=Math.max(Kt,ne.width),Qt=Math.max(Qt,mn+Oi+ne.height),mn+=Oi+ne.height):(Mt.S.h(Se+Oi,z-ne.height),Kt=Math.max(Kt,Se+Oi+ne.width),Qt=Math.max(Qt,ne.height),Se+=Oi+ne.width),bn++;break;case _u:for(z=0;z<tt;z++)mt=b[z],Mt=mt.Da,ne=bn===0?0:Ht,x?(mt.S.h(yt/2+y.focus.x,mn+ne),Kt=Math.max(Kt,Mt.width),Qt=Math.max(Qt,mn+ne+Mt.height),mn+=ne+Mt.height):(mt.S.h(Se+ne,yt/2+y.focus.y),Kt=Math.max(Kt,Se+ne+Mt.width),Qt=Math.max(Qt,Mt.height),Se+=ne+Mt.width),bn++}else for(Oi=0;Oi<tt;Oi++)ki=b[Oi],Br=ki.Da,x?(0<mt&&0<bn&&Se+yt+Br.width>mt&&(Se<z&&nc(y,at,z-Se,0,ln,Oi-1),zn++,bn=0,ln=Oi,ne=Qt,Se=0,mn=135<E?-Qt-Ht:Qt+Ht),ao=bn===0?Mt:yt,N0(a,ki,0,mn),ki.S.h(Se+ao,mn),Kt=Math.max(Kt,Se+ao+Br.width),Qt=Math.max(Qt,ne+(zn===0?0:Ht)+Br.height),Se+=ao+Br.width):(0<mt&&0<bn&&mn+yt+Br.height>mt&&(mn<z&&nc(y,at,0,z-mn,ln,Oi-1),zn++,bn=0,ln=Oi,ne=Kt,mn=0,Se=135<E?-Kt-Ht:Kt+Ht),ao=bn===0?Mt:yt,N0(a,ki,Se,0),ki.S.h(Se,mn+ao),Qt=Math.max(Qt,mn+ao+Br.height),Kt=Math.max(Kt,ne+(zn===0?0:Ht)+Br.width),mn+=ao+Br.height),bn++;switch(0<zn&&(x?(Qt+=Math.max(0,ot),Se<Kt&&nc(y,at,Kt-Se,0,ln,tt-1),0<It&&(ft||Wc(y,It,0,0,tt-1),Kt+=It)):(Kt+=Math.max(0,ot),mn<Qt&&nc(y,at,0,Qt-mn,ln,tt-1),0<It&&(ft||Wc(y,0,It,0,tt-1),Qt+=It))),It=ft=0,at){case _f:x?ft+=Kt/2-y.focus.x-wt/2:It+=Qt/2-y.focus.y-wt/2;break;case Yc:0<zn?x?ft+=Kt/2-y.focus.x-wt/2:It+=Qt/2-y.focus.y-wt/2:x?(a=b[0].S.x+b[0].la.x,ft+=a+(b[tt-1].S.x+b[tt-1].la.x+2*b[tt-1].focus.x-a)/2-y.focus.x-wt/2):(a=b[0].S.y+b[0].la.y,It+=a+(b[tt-1].S.y+b[tt-1].la.y+2*b[tt-1].focus.y-a)/2-y.focus.y-wt/2);break;case Tu:x?(ft-=wt,Kt+=wt):(It-=wt,Qt+=wt);break;case Iu:x?(ft+=Kt-y.width+wt,Kt+=wt):(It+=Qt-y.height+wt,Qt+=wt);break;case Dh:case Ou:x?1<tt?ft+=Ve+yt/2-y.focus.x:ft+=b[0].focus.x-y.focus.x+b[0].la.x:1<tt?It+=Ve+yt/2-y.focus.y:It+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Nh:x?ft+=Kt+yt/2-y.focus.x:It+=Qt+yt/2-y.focus.y;break;case _u:break;default:a=a.customAlignment(y,ft,It,Kt,Qt),ft=a[0],It=a[1],Kt=a[2],Qt=a[3]}for(a=0;a<tt;a++)wt=b[a],x?wt.S.h(wt.S.x+wt.la.x-ft,wt.S.y+(135<E?(rt?-Qt:-wt.Da.height)+wt.la.y-ot:Zt+ot+wt.la.y)):wt.S.h(wt.S.x+(135<E?(rt?-Kt:-wt.Da.width)+wt.la.x-ot:ut+ot+wt.la.x),wt.S.y+wt.la.y-It);x?(Kt=ky(y,Kt,ft),0>ft&&(ft=0),135<E&&(It+=Qt+ot),Qt=Math.max(Math.max(Qt,Zt),Qt+Zt+ot)):(135<E&&(ft+=Kt+ot),Kt=Math.max(Math.max(Kt,ut),Kt+ut+ot),Qt=by(y,Qt,It),0>It&&(It=0)),y.la.h(ft,It),y.Da.h(Kt,Qt)}}er.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new oe(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new oe(E,0,b,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,at=Yl(y)===90,ut=0,ft=0,mt=0,yt=0;yt<tt;yt++)if(!(yt%2!==0||1<tt&&yt===tt-1)){var wt=x[yt],Mt=wt.Da,Ht=ut===0?0:ot;if(at){var It=a.computeBusNodeSpacing(wt)-rt;wt.S.h(E-(Mt.width+It),mt+Ht),b=Math.max(b,Mt.width+It),z=Math.max(z,mt+Ht+Mt.height),mt+=Ht+Mt.height}else It=a.computeBusNodeSpacing(wt)-rt,wt.S.h(ft+Ht,E-(Mt.height+It)),z=Math.max(z,Mt.height+It),b=Math.max(b,ft+Ht+Mt.width),ft+=Ht+Mt.width;ut++}for(ut=0,wt=ft,yt=mt,at?(ft=E+rt,mt=0):(ft=0,mt=E+rt),Mt=0;Mt<tt;Mt++)if(Mt%2!==0){Ht=x[Mt],It=Ht.Da;var Zt=ut===0?0:ot;if(at){var Kt=a.computeBusNodeSpacing(Ht)-rt;Ht.S.h(ft+Kt,mt+Zt),b=Math.max(b,ft+It.width+Kt),z=Math.max(z,mt+Zt+It.height),mt+=Zt+It.height}else Kt=a.computeBusNodeSpacing(Ht)-rt,Ht.S.h(ft+Zt,mt+Kt),b=Math.max(b,ft+Zt+It.width),z=Math.max(z,mt+It.height+Kt),ft+=Zt+It.width;ut++}return 1<tt&&tt%2===1&&(x=x[tt-1],tt=x.Da,a=a.computeBusLastRowSpacing(x,at?Math.max(Math.abs(yt),Math.abs(mt)):Math.max(Math.abs(wt),Math.abs(ft))),at?(x.S.h(E+rt/2-x.focus.x-x.la.x,z+a),at=E+rt/2-x.focus.x-x.la.x,b=Math.max(b,at+tt.width),0>at&&(b-=at),z=Math.max(z,Math.max(yt,mt)+a+tt.height),0>x.S.x&&(E=D0(y,x.S.x,!1,E,rt))):(x.S.h(b+a,E+rt/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(wt,ft)+a+tt.width),mt=E+rt/2-x.focus.y-x.la.y,z=Math.max(z,mt+tt.height),0>mt&&(z-=mt),0>x.S.y&&(E=D0(y,x.S.y,!0,E,rt)))),new oe(E,0,b,z)}function dx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new oe(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new oe(E,0,b,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,at=Yl(y)===270,ut=0,ft=0,mt=0,yt=0;yt<tt;yt++)if(!(yt%2!==0||1<tt&&yt===tt-1)){var wt=x[yt],Mt=wt.Da,Ht=ut===0?0:ot;if(at){var It=a.computeBusNodeSpacing(wt)-rt;mt-=Ht+Mt.height,wt.S.h(E-(Mt.width+It),mt),b=Math.max(b,Mt.width+It),z=Math.max(z,Math.abs(mt))}else It=a.computeBusNodeSpacing(wt)-rt,ft-=Ht+Mt.width,wt.S.h(ft,E-(Mt.height+It)),z=Math.max(z,Mt.height+It),b=Math.max(b,Math.abs(ft));ut++}for(ut=0,wt=ft,yt=mt,at?(ft=E+rt,mt=0):(ft=0,mt=E+rt),Mt=0;Mt<tt;Mt++)if(Mt%2!==0){Ht=x[Mt],It=Ht.Da;var Zt=ut===0?0:ot;if(at){var Kt=a.computeBusNodeSpacing(Ht)-rt;mt-=Zt+It.height,Ht.S.h(ft+Kt,mt),b=Math.max(b,ft+It.width+Kt),z=Math.max(z,Math.abs(mt))}else Kt=a.computeBusNodeSpacing(Ht)-rt,ft-=Zt+It.width,Ht.S.h(ft,mt+Kt),z=Math.max(z,mt+It.height+Kt),b=Math.max(b,Math.abs(ft));ut++}for(1<tt&&tt%2===1&&(ot=x[tt-1],ut=ot.Da,a=a.computeBusLastRowSpacing(ot,at?Math.max(Math.abs(yt),Math.abs(mt)):Math.max(Math.abs(wt),Math.abs(ft))),at?(ot.S.h(E+rt/2-ot.focus.x-ot.la.x,-z-ut.height-a),ft=E+rt/2-ot.focus.x-ot.la.x,b=Math.max(b,ft+ut.width),0>ft&&(b-=ft),z=Math.max(z,Math.abs(Math.min(yt,mt))+a+ut.height),0>ot.S.x&&(E=D0(y,ot.S.x,!1,E,rt))):(ot.S.h(-b-ut.width-a,E+rt/2-ot.focus.y-ot.la.y),b=Math.max(b,Math.abs(Math.min(wt,ft))+a+ut.width),mt=E+rt/2-ot.focus.y-ot.la.y,z=Math.max(z,mt+ut.height),0>mt&&(z-=mt),0>ot.S.y&&(E=D0(y,ot.S.y,!0,E,rt)))),y=0;y<tt;y++)rt=x[y],at?rt.S.h(rt.S.x,rt.S.y+z):rt.S.h(rt.S.x+b,rt.S.y);return new oe(E,0,b,z)}er.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},er.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function D0(a,y,x,E,b){a=a.children;for(var z=a.length,tt=0;tt<z;tt++)x?a[tt].S.h(a[tt].S.x,a[tt].S.y-y):a[tt].S.h(a[tt].S.x-y,a[tt].S.y);return y=a[z-1],Math.max(E,x?y.la.y+y.focus.y-b/2:y.la.x+y.focus.x-b/2)}function ky(a,y,x){switch(a.alignment){case Yc:case _f:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Tu:return a.width>y?a.width:y;case Iu:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Dh:case Ou:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Nh:return a.width-a.focus.x+a.nodeSpacing/2+y;case _u:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function by(a,y,x){switch(a.alignment){case Yc:case _f:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Tu:return a.height>y?a.height:y;case Iu:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Dh:case Ou:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Nh:return a.height-a.focus.y+a.nodeSpacing/2+y;case _u:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function By(a,y,x){switch(a){case _f:y/=2,x/=2;break;case Yc:y/=2,x/=2;break;case Tu:x=y=0;break;case Iu:break;default:Xt("Unhandled alignment value "+a.toString())}return new Wt(y,x)}function nc(a,y,x,E,b,z){y=By(y,x,E),Wc(a,y.x,y.y,b,z)}function Wc(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function N0(a,y,x,E){var b=y.parent;switch(a.ud){case Nu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Vc:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:Xt("Unhandled path value "+a.ud.toString())}}function T0(a,y,x){for(var E=0;E<a.length;E++){var b=a[E];b.x+=y,b.y+=x}}function cx(a,y,x,E,b,z,tt,rt){var ot=Yl(y),at=ot===90||ot===270,ut=y.nodeSpacing;y=E;var ft=b;E=z;var mt=tt,yt=x.Yo,wt=x.kp;tt=x.Da;var Mt=at?Math.max(mt,tt.height):Math.max(E,tt.width);if((yt===null||ot!==Yl(x))&&(yt=Ra(a,2),wt=Ra(a,2),at?(yt[0].h(0,0),yt[1].h(0,tt.height),wt[0].h(tt.width,0),wt[1].h(wt[0].x,yt[1].y)):(yt[0].h(0,0),yt[1].h(tt.width,0),wt[0].h(0,tt.height),wt[1].h(yt[1].x,wt[0].y))),at){if(mt=9999999,!(ft===null||2>ft.length||yt===null||2>yt.length))for(b=x=0;x<ft.length&&b<yt.length;){z=ft[x];var Ht=yt[b];ot=Ht.x,at=Ht.y,ot+=E;var It=z;x+1<ft.length&&(It=ft[x+1]);var Zt=Ht;Ht=Zt.x,Zt=Zt.y,b+1<yt.length&&(Zt=yt[b+1],Ht=Zt.x,Zt=Zt.y,Ht+=E);var Kt=mt;z.y===at?Kt=ot-z.x:z.y>at&&z.y<Zt?Kt=ot+(z.y-at)/(Zt-at)*(Ht-ot)-z.x:at>z.y&&at<It.y&&(Kt=ot-(z.x+(at-z.y)/(It.y-z.y)*(It.x-z.x))),Kt<mt&&(mt=Kt),It.y<=z.y?x++:Zt<=at?b++:(It.y<=Zt&&x++,Zt<=It.y&&b++)}if(mt=E-mt,mt+=ut,x=yt,b=mt,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ut=Ra(a,y.length+x.length),E=z=ot=0;z<x.length&&x[z].y<y[0].y;)at=x[z++],ut[E++].h(at.x+b,at.y);for(;ot<y.length;)at=y[ot++],ut[E++].h(at.x,at.y);for(ot=y[y.length-1].y;z<x.length&&x[z].y<=ot;)z++;for(;z<x.length&&x[z].y>ot;)at=x[z++],ut[E++].h(at.x+b,at.y);for(x=Ra(a,E),ot=0;ot<E;ot++)x[ot].assign(ut[ot]);nu(a,ut),E=x}if(z=wt,ot=mt,ft===null||2>ft.length||z===null||2>z.length)b=null;else{for(ut=Ra(a,ft.length+z.length),b=at=x=0;x<ft.length&&ft[x].y<z[0].y;)It=ft[x++],ut[b++].h(It.x,It.y);for(;at<z.length;)It=z[at++],ut[b++].h(It.x+ot,It.y);for(z=z[z.length-1].y;x<ft.length&&ft[x].y<=z;)x++;for(;x<ft.length&&ft[x].y>z;)ot=ft[x++],ut[b++].h(ot.x,ot.y);for(z=Ra(a,b),x=0;x<b;x++)z[x].assign(ut[x]);nu(a,ut),b=z}return z=Math.max(0,mt)+tt.width,tt=Mt,nu(a,y),nu(a,yt),nu(a,ft),nu(a,wt),rt[0]=E,rt[1]=b,new oe(mt,0,z,tt)}if(E=9999999,!(ft===null||2>ft.length||yt===null||2>yt.length))for(b=x=0;x<ft.length&&b<yt.length;)z=ft[x],Ht=yt[b],ot=Ht.x,at=Ht.y,at+=mt,It=z,x+1<ft.length&&(It=ft[x+1]),Zt=Ht,Ht=Zt.x,Zt=Zt.y,b+1<yt.length&&(Zt=yt[b+1],Ht=Zt.x,Zt=Zt.y,Zt+=mt),Kt=E,z.x===ot?Kt=at-z.y:z.x>ot&&z.x<Ht?Kt=at+(z.x-ot)/(Ht-ot)*(Zt-at)-z.y:ot>z.x&&ot<It.x&&(Kt=at-(z.y+(ot-z.x)/(It.x-z.x)*(It.y-z.y))),Kt<E&&(E=Kt),It.x<=z.x?x++:Ht<=ot?b++:(It.x<=Ht&&x++,Ht<=It.x&&b++);if(mt-=E,mt+=ut,x=yt,b=mt,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ut=Ra(a,y.length+x.length),E=z=ot=0;z<x.length&&x[z].x<y[0].x;)at=x[z++],ut[E++].h(at.x,at.y+b);for(;ot<y.length;)at=y[ot++],ut[E++].h(at.x,at.y);for(ot=y[y.length-1].x;z<x.length&&x[z].x<=ot;)z++;for(;z<x.length&&x[z].x>ot;)at=x[z++],ut[E++].h(at.x,at.y+b);for(x=Ra(a,E),ot=0;ot<E;ot++)x[ot].assign(ut[ot]);nu(a,ut),E=x}if(z=wt,ot=mt,ft===null||2>ft.length||z===null||2>z.length)b=null;else{for(ut=Ra(a,ft.length+z.length),b=at=x=0;x<ft.length&&ft[x].x<z[0].x;)It=ft[x++],ut[b++].h(It.x,It.y);for(;at<z.length;)It=z[at++],ut[b++].h(It.x,It.y+ot);for(z=z[z.length-1].x;x<ft.length&&ft[x].x<=z;)x++;for(;x<ft.length&&ft[x].x>z;)ot=ft[x++],ut[b++].h(ot.x,ot.y);for(z=Ra(a,b),x=0;x<b;x++)z[x].assign(ut[x]);nu(a,ut),b=z}return z=Mt,tt=Math.max(0,mt)+tt.height,nu(a,y),nu(a,yt),nu(a,ft),nu(a,wt),rt[0]=E,rt[1]=b,new oe(mt,0,z,tt)}function Ra(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Wt;return a}function nu(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}er.prototype.arrangeTrees=function(){if(this.Rb===j0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Fl){var x=y.node;if(x!==null){var E=x.position;x=E.x,E=E.y,isFinite(x)||(x=0),isFinite(E)||(E=0),Dy(this,y,x,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Fl&&a.push(x);switch(this.sorting){case qf:break;case kp:a.reverse();break;case bp:a.sort(this.comparer);break;case Bp:a.sort(this.comparer),a.reverse();break;default:Xt("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,E=0;E<a.length;E++){var b=a[E];switch(Dy(this,b,y+b.la.x,x+b.la.y),this.Rb){case z0:x+=b.Da.height+this.$d.height;break;case Oy:y+=b.Da.width+this.$d.width;break;default:Xt("Unhandled arrangement value "+this.Rb.toString())}}}};function Dy(a,y,x,E){if(y!==null){y.x=x,y.y=E,y=y.children;for(var b=y.length,z=0;z<b;z++){var tt=y[z];Dy(a,tt,x+tt.S.x,E+tt.S.y)}}}er.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},er.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},er.prototype.Gu=function(){if(this.layerStyle===H0){for(var a=this.$v,y=[],x=null,E=this.network.vertexes.iterator;E.next();){var b=E.value;x===null?x=b.bounds.copy():x.ed(b.bounds);var z=y[b.level];z===void 0?z=this.computeLayerSpacing(b):z=Math.max(z,this.computeLayerSpacing(b)),y[b.level]=z}for(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),E=new Wt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new Wt(-this.layerSpacing/2,-this.nodeSpacing/2)),b=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var tt=0;tt<a.length;tt++)z+=a[tt]+y[tt];for(tt=0;tt<a.length;tt++){var rt=a[tt]+y[tt];this.angle===270?(z-=rt,b.push(new oe(0,z,x,rt))):this.angle===90?(b.push(new oe(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,b.push(new oe(z,0,rt,x))):(b.push(new oe(z,0,rt,x)),z+=rt)}this.commitLayers(b,E)}},er.prototype.commitLayers=function(){},er.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},er.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Fl&&fx(this,y)}};function fx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,E=0;E<x;E++)fx(a,y[E])}}er.prototype.setPortSpots=function(a){var y=a.alignment;if(xd(y)){var x=this.ud===Nu,E=Yl(a);switch(E){case 0:var b=Kr;break;case 90:b=Wo;break;case 180:b=Xr;break;default:b=to}var z=a.children,tt=z.length;switch(y){case Dh:case Ou:for(y=0;y<tt;y++){var rt=z[y];if(rt=(x?rt.sourceEdges:rt.destinationEdges).first(),rt!==null&&(rt=rt.link,rt!==null)){var ot=E===90||E===270?Xr:to;if(tt===1||y===tt-1&&tt%2===1)switch(E){case 0:ot=Xr;break;case 90:ot=to;break;case 180:ot=Kr;break;default:ot=Wo}else y%2===0&&(ot=E===90||E===270?Kr:Wo);x?(a.setsPortSpot&&(rt.fromSpot=b),a.setsChildPortSpot&&(rt.toSpot=ot)):(a.setsPortSpot&&(rt.fromSpot=ot),a.setsChildPortSpot&&(rt.toSpot=b))}}break;case Nh:for(E=E===90||E===270?Kr:Wo,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)):(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)));break;case _u:for(E=E===90||E===270?Xr:to,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)):(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)))}}else if(x=Yl(a),this.ud===Nu){for(b=a.destinationEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.fromSpot=Kr;break;case 90:E.fromSpot=Wo;break;case 180:E.fromSpot=Xr;break;default:E.fromSpot=to}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=Xr;break;case 90:E.toSpot=to;break;case 180:E.toSpot=Kr;break;default:E.toSpot=Wo}else E.toSpot=a.childPortSpot}}else for(b=a.sourceEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.toSpot=Kr;break;case 90:E.toSpot=Wo;break;case 180:E.toSpot=Xr;break;default:E.toSpot=to}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=Xr;break;case 90:E.fromSpot=to;break;case 180:E.fromSpot=Kr;break;default:E.fromSpot=Wo}else E.fromSpot=a.childPortSpot}};function Yl(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}er.prototype.computeLayerSpacing=function(a){var y=Yl(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var E=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*E:a.width*E}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},er.prototype.computeNodeIndent=function(a){var y=Yl(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var E=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*E:a.height*E}return x=Math.max(0,x)},Ye.Object.defineProperties(er.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==R0&&a!==Ty&&a!==Ny&&a!==Iy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==zy&&a!==H0||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==z0&&a!==Oy&&a!==j0||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==qf&&a!==kp&&a!==bp&&!Bp||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):Xt("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==O0&&a!==Dp||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==qf&&a!==kp&&a!==bp&&!Bp||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==O0&&a!==Dp||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var I0=new Ee(er,"PathDefault",-1),Nu=new Ee(er,"PathDestination",0),Vc=new Ee(er,"PathSource",1),qf=new Ee(er,"SortingForwards",10),kp=new Ee(er,"SortingReverse",11),bp=new Ee(er,"SortingAscending",12),Bp=new Ee(er,"SortingDescending",13),_f=new Ee(er,"AlignmentCenterSubtrees",20),Yc=new Ee(er,"AlignmentCenterChildren",21),Tu=new Ee(er,"AlignmentStart",22),Iu=new Ee(er,"AlignmentEnd",23),Dh=new Ee(er,"AlignmentBus",24),Ou=new Ee(er,"AlignmentBusBranching",25),Nh=new Ee(er,"AlignmentTopLeftBus",26),_u=new Ee(er,"AlignmentBottomRightBus",27),O0=new Ee(er,"CompactionNone",30),Dp=new Ee(er,"CompactionBlock",31),R0=new Ee(er,"StyleLayered",40),Ny=new Ee(er,"StyleLastParents",41),Ty=new Ee(er,"StyleAlternating",42),Iy=new Ee(er,"StyleRootOnly",43),z0=new Ee(er,"ArrangementVertical",50),Oy=new Ee(er,"ArrangementHorizontal",51),j0=new Ee(er,"ArrangementFixedRoots",52),Ry=new Ee(er,"LayerIndividual",60),zy=new Ee(er,"LayerSiblings",61),H0=new Ee(er,"LayerUniform",62);er.className="TreeLayout",er.PathDefault=I0,er.PathDestination=Nu,er.PathSource=Vc,er.SortingForwards=qf,er.SortingReverse=kp,er.SortingAscending=bp,er.SortingDescending=Bp,er.AlignmentCenterSubtrees=_f,er.AlignmentCenterChildren=Yc,er.AlignmentStart=Tu,er.AlignmentEnd=Iu,er.AlignmentBus=Dh,er.AlignmentBusBranching=Ou,er.AlignmentTopLeftBus=Nh,er.AlignmentBottomRightBus=_u,er.CompactionNone=O0,er.CompactionBlock=Dp,er.StyleLayered=R0,er.StyleLastParents=Ny,er.StyleAlternating=Ty,er.StyleRootOnly=Iy,er.ArrangementVertical=z0,er.ArrangementHorizontal=Oy,er.ArrangementFixedRoots=j0,er.LayerIndividual=Ry,er.LayerSiblings=zy,er.LayerUniform=H0;function Zc(a){co.call(this,a)}we(Zc,co),Zc.prototype.createVertex=function(){return new Fl(this)},Zc.prototype.createEdge=function(){return new $f(this)},Zc.className="TreeNetwork";function Fl(a){xs.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Wt(0,0),this.Da=new Yt(0,0),this.la=new Wt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=qf,this.hd=ry,this.Kb=0,this.Jb=Yc,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Dp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=$r,this.wr=!0,this.Dp=$r}we(Fl,xs),Fl.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},Ye.Object.defineProperties(Fl.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),Fl.className="TreeVertex";function $f(a){Ua.call(this,a),this.$t=new Wt(0,0)}we($f,Ua),$f.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,E=null;switch(y.ud){case Nu:x=this.fromVertex,E=this.toVertex;break;case Vc:x=this.toVertex,E=this.fromVertex;break;default:Xt("Unhandled path value "+y.ud.toString())}if(x!==null&&E!==null){var b=this.$t;if(b.x!==0||b.y!==0||x.qA){E=x.bounds;var z=Yl(x),tt=y.computeLayerSpacing(x),rt=x.rowSpacing;a.vg();var ot=a.curve===nl,at=a.isOrthogonal,ut;if(a.uh(),at||ot){for(ut=2;4<a.pointsCount;)a.pv(2);var ft=a.i(1),mt=a.i(2)}else{for(ut=1;3<a.pointsCount;)a.pv(1);ft=a.i(0),mt=a.i(a.pointsCount-1)}var yt=a.i(a.pointsCount-1);z===0?(x.alignment===Iu?(z=E.bottom+b.y,b.y===0&&ft.y>yt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Tu?(z=E.top+b.y,b.y===0&&ft.y<yt.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,ot?(a.m(ut,ft.x,z),ut++,a.m(ut,E.right+tt,z),ut++,a.m(ut,E.right+tt+(b.x-rt)/3,z),ut++,a.m(ut,E.right+tt+2*(b.x-rt)/3,z),ut++,a.m(ut,E.right+tt+(b.x-rt),z),ut++,a.m(ut,mt.x,z)):(at&&(a.m(ut,E.right+tt/2,ft.y),ut++),a.m(ut,E.right+tt/2,z),ut++,a.m(ut,E.right+tt+b.x-(at?rt/2:rt),z),ut++,at&&a.m(ut,a.i(ut-1).x,mt.y))):z===90?(x.alignment===Iu?(z=E.right+b.x,b.x===0&&ft.x>yt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Tu?(z=E.left+b.x,b.x===0&&ft.x<yt.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,ot?(a.m(ut,z,ft.y),ut++,a.m(ut,z,E.bottom+tt),ut++,a.m(ut,z,E.bottom+tt+(b.y-rt)/3),ut++,a.m(ut,z,E.bottom+tt+2*(b.y-rt)/3),ut++,a.m(ut,z,E.bottom+tt+(b.y-rt)),ut++,a.m(ut,z,mt.y)):(at&&(a.m(ut,ft.x,E.bottom+tt/2),ut++),a.m(ut,z,E.bottom+tt/2),ut++,a.m(ut,z,E.bottom+tt+b.y-(at?rt/2:rt)),ut++,at&&a.m(ut,mt.x,a.i(ut-1).y))):z===180?(x.alignment===Iu?(z=E.bottom+b.y,b.y===0&&ft.y>yt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Tu?(z=E.top+b.y,b.y===0&&ft.y<yt.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,ot?(a.m(ut,ft.x,z),ut++,a.m(ut,E.left-tt,z),ut++,a.m(ut,E.left-tt+(b.x+rt)/3,z),ut++,a.m(ut,E.left-tt+2*(b.x+rt)/3,z),ut++,a.m(ut,E.left-tt+(b.x+rt),z),ut++,a.m(ut,mt.x,z)):(at&&(a.m(ut,E.left-tt/2,ft.y),ut++),a.m(ut,E.left-tt/2,z),ut++,a.m(ut,E.left-tt+b.x+(at?rt/2:rt),z),ut++,at&&a.m(ut,a.i(ut-1).x,mt.y))):z===270?(x.alignment===Iu?(z=E.right+b.x,b.x===0&&ft.x>yt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Tu?(z=E.left+b.x,b.x===0&&ft.x<yt.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,ot?(a.m(ut,z,ft.y),ut++,a.m(ut,z,E.top-tt),ut++,a.m(ut,z,E.top-tt+(b.y+rt)/3),ut++,a.m(ut,z,E.top-tt+2*(b.y+rt)/3),ut++,a.m(ut,z,E.top-tt+(b.y+rt)),ut++,a.m(ut,z,mt.y)):(at&&(a.m(ut,ft.x,E.top-tt/2),ut++),a.m(ut,z,E.top-tt/2),ut++,a.m(ut,z,E.top-tt+b.y+(at?rt/2:rt)),ut++,at&&a.m(ut,mt.x,a.i(ut-1).y))):Xt("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=Yl(x),y!==Yl(b)&&(tt=E.computeLayerSpacing(x),rt=x.bounds,x=b.bounds,y===0&&x.left-rt.right<tt+1||y===90&&x.top-rt.bottom<tt+1||y===180&&rt.left-x.right<tt+1||y===270&&rt.top-x.bottom<tt+1||(a.vg(),x=a.curve===nl,b=a.isOrthogonal,E=xd(this.fromVertex.alignment),a.uh(),y===0?(y=rt.right+tt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=rt.bottom+tt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=rt.left-tt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=rt.top-tt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},Ye.Object.defineProperties($f.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),$f.className="TreeEdge",eo.prototype.initializeStandardTools=function(){this.gb("Action",new wl,this.mouseDownTools),this.gb("Relinking",new qa,this.mouseDownTools),this.gb("LinkReshaping",new ss,this.mouseDownTools),this.gb("Rotating",new pa,this.mouseDownTools),this.gb("Resizing",new ta,this.mouseDownTools),this.gb("Linking",new na,this.mouseMoveTools),this.gb("Dragging",new Bo,this.mouseMoveTools),this.gb("DragSelecting",new al,this.mouseMoveTools),this.gb("Panning",new Us,this.mouseMoveTools),this.gb("ContextMenu",new ma,this.mouseUpTools),this.gb("TextEditing",new xo,this.mouseUpTools),this.gb("ClickCreating",new fh,this.mouseUpTools),this.gb("ClickSelecting",new Xh,this.mouseUpTools)},mu("Horizontal",new pm),mu("Spot",new vm),mu("Table",new Sm),mu("Viewbox",new Pm),mu("TableRow",new xm),mu("TableColumn",new wm),mu("Graduated",new Kg),mu("Grid",new Xg),Pf.add("GraphLinksModel",Fs),Pf.add("TreeModel",pl);var G0=Re.go,jy={get licenseKey(){return xe.licenseKey},set licenseKey(a){xe.licenseKey=a},get version(){return xe.version},Group:Ri,EnumValue:Ee,List:rn,Set:en,Map:Jn,Point:Wt,Size:Yt,Rect:oe,Margin:Yn,Spot:gn,Geometry:Qe,PathFigure:es,PathSegment:ur,InputEvent:Rs,DiagramEvent:Xl,ChangedEvent:Lo,Model:Xn,GraphLinksModel:pr,TreeModel:Aa,Binding:ls,Transaction:ds,UndoManager:bo,CommandHandler:jt,Tool:mr,DraggingTool:Bo,DraggingInfo:Uu,DraggingOptions:st,LinkingBaseTool:Cr,LinkingTool:na,RelinkingTool:qa,LinkReshapingTool:ss,ResizingTool:ta,RotatingTool:pa,ClickSelectingTool:Xh,ActionTool:wl,ClickCreatingTool:fh,HTMLInfo:du,ContextMenuTool:ma,DragSelectingTool:al,PanningTool:Us,TextEditingTool:xo,ToolManager:eo,Animation:Xs,AnimationManager:Va,AnimationTrigger:Ol,Layer:Bs,Diagram:xe,Palette:dt,Overview:gt,Brush:Gr,GraphObject:ie,Panel:nn,RowColumnDefinition:gs,Shape:Wi,TextBlock:ho,Picture:Da,Part:oi,Adornment:Ar,Node:yn,Link:un,Placeholder:xa,Layout:Do,LayoutNetwork:co,LayoutVertex:xs,LayoutEdge:Ua,GridLayout:js,PanelLayout:Ss,CircularLayout:Vo,CircularNetwork:Kf,CircularVertex:Pp,CircularEdge:w0,ForceDirectedLayout:Qs,ForceDirectedNetwork:Gc,ForceDirectedVertex:Cp,ForceDirectedEdge:Ap,LayeredDigraphLayout:Vr,LayeredDigraphNetwork:Jf,LayeredDigraphVertex:vl,LayeredDigraphEdge:Mp,TreeLayout:er,TreeNetwork:Zc,TreeVertex:Fl,TreeEdge:$f};typeof G0=="object"&&G0.version&&wn("WARNING: a `go` object on the root object is already defined. "+("Debug"in G0?"debug ":"")+"version: "+G0.version+", replaced with version: "+jy.version),xe.prototype.go=jy,Re.go=jy,typeof xn.exports=="object"&&(xn.exports=typeof Rt.g!="undefined"?Rt.g.go:self.go)}();var St=typeof Rt.g!="undefined"?Rt.g.go:self.go;const ee=typeof Rt.g!="undefined"?Rt.g.go:self.go,me=ee.Group,he=ee.EnumValue,ce=ee.List,fe=ee.Set,ue=ee.Map,Be=ee.Point,Ce=ee.Size,Bt=ee.Rect,je=ee.Margin,le=ee.Spot,Ge=ee.Geometry,bt=ee.PathFigure,et=ee.PathSegment,nt=ee.InputEvent,ct=ee.DiagramEvent,lt=ee.ChangedEvent,pt=ee.Model,vt=ee.GraphLinksModel,Pt=ee.TreeModel,Dt=ee.Binding,Vt=ee.Transaction,Ut=ee.UndoManager,se=ee.CommandHandler,qt=ee.Tool,Jt=ee.DraggingTool,Me=ee.DraggingInfo,pe=ee.LinkingBaseTool,He=ee.LinkingTool,De=ee.RelinkingTool,tn=ee.LinkReshapingTool,Fn=ee.ResizingTool,on=ee.RotatingTool,pn=ee.ClickSelectingTool,fn=ee.ActionTool,te=ee.ClickCreatingTool,Ot=ee.HTMLInfo,Le=ee.ContextMenuTool,dn=ee.DragSelectingTool,_e=ee.PanningTool,ve=ee.TextEditingTool,Xe=ee.ToolManager,ke=ee.Animation,cn=ee.AnimationManager,Ie=ee.AnimationTrigger,ae=ee.Layer,Pe=ee.Diagram,sn=ee.Palette,an=ee.Overview,Tt=ee.Brush,Ct=ee.GraphObject,xt=ee.Panel,kt=ee.RowColumnDefinition,zt=ee.Shape,Et=ee.TextBlock,Ae=ee.TextBlockMetrics,We=ee.Picture,Ue=ee.Part,jn=ee.Adornment,Gn=ee.Node,Ke=ee.Link,ri=ee.Placeholder,Sn=ee.Layout,hi=ee.LayoutNetwork,ti=ee.LayoutVertex,Wn=ee.LayoutEdge,bi=ee.GridLayout,Ei=ee.PanelLayout,Pi=ee.CircularLayout,An=ee.CircularNetwork,ei=ee.CircularVertex,gr=ee.CircularEdge,dr=ee.ForceDirectedLayout,Sr=ee.ForceDirectedNetwork,_r=ee.ForceDirectedVertex,cr=ee.ForceDirectedEdge,jo=ee.LayeredDigraphLayout,Yo=ee.LayeredDigraphNetwork,ko=ee.LayeredDigraphVertex,$o=ee.LayeredDigraphEdge,ms=ee.TreeLayout,Ho=ee.TreeNetwork,Go=ee.TreeVertex,nr=ee.TreeEdge,lo=ee.version},2859:function(xn,$n,Rt){"use strict";Rt.d($n,{hP:function(){return an}});var St=function(Tt,Ct){return(St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,kt){xt.__proto__=kt}||function(xt,kt){for(var zt in kt)Object.prototype.hasOwnProperty.call(kt,zt)&&(xt[zt]=kt[zt])})(Tt,Ct)};function ee(Tt,Ct){function xt(){this.constructor=Tt}St(Tt,Ct),Tt.prototype=Ct===null?Object.create(Ct):(xt.prototype=Ct.prototype,new xt)}function me(Tt,Ct,xt,kt){return new(xt||(xt=Promise))(function(zt,Et){function Ae(jn){try{Ue(kt.next(jn))}catch(Gn){Et(Gn)}}function We(jn){try{Ue(kt.throw(jn))}catch(Gn){Et(Gn)}}function Ue(jn){var Gn;jn.done?zt(jn.value):(Gn=jn.value,Gn instanceof xt?Gn:new xt(function(Ke){Ke(Gn)})).then(Ae,We)}Ue((kt=kt.apply(Tt,Ct||[])).next())})}function he(Tt,Ct){var xt,kt,zt,Et,Ae={label:0,sent:function(){if(1&zt[0])throw zt[1];return zt[1]},trys:[],ops:[]};return Et={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(Et[Symbol.iterator]=function(){return this}),Et;function We(Ue){return function(jn){return function(Gn){if(xt)throw new TypeError("Generator is already executing.");for(;Ae;)try{if(xt=1,kt&&(zt=2&Gn[0]?kt.return:Gn[0]?kt.throw||((zt=kt.return)&&zt.call(kt),0):kt.next)&&!(zt=zt.call(kt,Gn[1])).done)return zt;switch(kt=0,zt&&(Gn=[2&Gn[0],zt.value]),Gn[0]){case 0:case 1:zt=Gn;break;case 4:return Ae.label++,{value:Gn[1],done:!1};case 5:Ae.label++,kt=Gn[1],Gn=[0];continue;case 7:Gn=Ae.ops.pop(),Ae.trys.pop();continue;default:if(zt=Ae.trys,!((zt=zt.length>0&&zt[zt.length-1])||Gn[0]!==6&&Gn[0]!==2)){Ae=0;continue}if(Gn[0]===3&&(!zt||Gn[1]>zt[0]&&Gn[1]<zt[3])){Ae.label=Gn[1];break}if(Gn[0]===6&&Ae.label<zt[1]){Ae.label=zt[1],zt=Gn;break}if(zt&&Ae.label<zt[2]){Ae.label=zt[2],Ae.ops.push(Gn);break}zt[2]&&Ae.ops.pop(),Ae.trys.pop();continue}Gn=Ct.call(Tt,Ae)}catch(Ke){Gn=[6,Ke],kt=0}finally{xt=zt=0}if(5&Gn[0])throw Gn[1];return{value:Gn[0]?Gn[1]:void 0,done:!0}}([Ue,jn])}}}function ce(){for(var Tt=0,Ct=0,xt=arguments.length;Ct<xt;Ct++)Tt+=arguments[Ct].length;var kt=Array(Tt),zt=0;for(Ct=0;Ct<xt;Ct++)for(var Et=arguments[Ct],Ae=0,We=Et.length;Ae<We;Ae++,zt++)kt[zt]=Et[Ae];return kt}var fe=function(){function Tt(){}return Tt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Tt.setAttributes=function(Ct,xt){for(var kt=0,zt=xt;kt<zt.length;kt++){var Et=zt[kt],Ae=Et[0],We=Et[1];Ct.setAttribute(Ae,We)}},Tt.createRect=function(Ct,xt,kt){var zt=document.createElementNS("http://www.w3.org/2000/svg","rect");return zt.setAttribute("width",Ct.toString()),zt.setAttribute("height",xt.toString()),kt&&Tt.setAttributes(zt,kt),zt},Tt.createLine=function(Ct,xt,kt,zt,Et){var Ae=document.createElementNS("http://www.w3.org/2000/svg","line");return Ae.setAttribute("x1",Ct.toString()),Ae.setAttribute("y1",xt.toString()),Ae.setAttribute("x2",kt.toString()),Ae.setAttribute("y2",zt.toString()),Et&&Tt.setAttributes(Ae,Et),Ae},Tt.createPolygon=function(Ct,xt){var kt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return kt.setAttribute("points",Ct),xt&&Tt.setAttributes(kt,xt),kt},Tt.createCircle=function(Ct,xt){var kt=document.createElementNS("http://www.w3.org/2000/svg","circle");return kt.setAttribute("cx",(Ct/2).toString()),kt.setAttribute("cy",(Ct/2).toString()),kt.setAttribute("r",Ct.toString()),xt&&Tt.setAttributes(kt,xt),kt},Tt.createEllipse=function(Ct,xt,kt){var zt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return zt.setAttribute("cx",(Ct/2).toString()),zt.setAttribute("cy",(xt/2).toString()),zt.setAttribute("rx",(Ct/2).toString()),zt.setAttribute("ry",(xt/2).toString()),kt&&Tt.setAttributes(zt,kt),zt},Tt.createGroup=function(Ct){var xt=document.createElementNS("http://www.w3.org/2000/svg","g");return Ct&&Tt.setAttributes(xt,Ct),xt},Tt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Tt.createMarker=function(Ct,xt,kt,zt,Et,Ae,We){var Ue=document.createElementNS("http://www.w3.org/2000/svg","marker");return Tt.setAttributes(Ue,[["id",Ct],["orient",xt],["markerWidth",kt.toString()],["markerHeight",zt.toString()],["refX",Et.toString()],["refY",Ae.toString()]]),Ue.appendChild(We),Ue},Tt.createText=function(Ct){var xt=document.createElementNS("http://www.w3.org/2000/svg","text");return xt.setAttribute("x","0"),xt.setAttribute("y","0"),Ct&&Tt.setAttributes(xt,Ct),xt},Tt.createTSpan=function(Ct,xt){var kt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return kt.textContent=Ct,xt&&Tt.setAttributes(kt,xt),kt},Tt.createImage=function(Ct){var xt=document.createElementNS("http://www.w3.org/2000/svg","image");return Ct&&Tt.setAttributes(xt,Ct),xt},Tt.createPoint=function(Ct,xt){var kt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return kt.x=Ct,kt.y=xt,kt},Tt.createPath=function(Ct,xt){var kt=document.createElementNS("http://www.w3.org/2000/svg","path");return kt.setAttribute("d",Ct),xt&&Tt.setAttributes(kt,xt),kt},Tt}(),ue=function(){function Tt(){}return Tt.addKey=function(Ct){Tt.key=Ct},Object.defineProperty(Tt,"isLicensed",{get:function(){return!!Tt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Tt.key)},enumerable:!1,configurable:!0}),Tt}(),Be=function(){function Tt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Tt.prototype.rasterize=function(Ct,xt,kt){var zt=this;return new Promise(function(Et){var Ae=kt!==void 0?kt:document.createElement("canvas");Ct===null&&(zt.markersOnly=!0,zt.naturalSize=!1);var We=document.createElementNS("http://www.w3.org/2000/svg","svg");We.setAttribute("xmlns","http://www.w3.org/2000/svg"),We.setAttribute("width",xt.width.baseVal.valueAsString),We.setAttribute("height",xt.height.baseVal.valueAsString),We.setAttribute("viewBox","0 0 "+xt.viewBox.baseVal.width.toString()+" "+xt.viewBox.baseVal.height.toString()),We.innerHTML=xt.innerHTML,zt.naturalSize===!0?(We.width.baseVal.value=Ct.naturalWidth,We.height.baseVal.value=Ct.naturalHeight):zt.width!==void 0&&zt.height!==void 0&&(We.width.baseVal.value=zt.width,We.height.baseVal.value=zt.height),Ae.width=We.width.baseVal.value,Ae.height=We.height.baseVal.value;var Ue=We.outerHTML,jn=Ae.getContext("2d");zt.markersOnly!==!0&&jn.drawImage(Ct,0,0,Ae.width,Ae.height);var Gn=window.URL,Ke=new Image(Ae.width,Ae.height);Ke.setAttribute("crossOrigin","anonymous");var ri=new Blob([Ue],{type:"image/svg+xml"}),Sn=Gn.createObjectURL(ri);Ke.onload=function(){jn.drawImage(Ke,0,0),Gn.revokeObjectURL(Sn);var hi=Ae.toDataURL(zt.imageType,zt.imageQuality);Et(hi)},Ke.src=Sn})},Tt}(),Ce=function(){},Bt=function(){function Tt(Ct){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Ct+"_"}return Object.defineProperty(Tt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Tt.prototype.addClass=function(Ct){return this.styleSheet===void 0&&this.addStyleSheet(),Ct.name=""+this.classNamePrefix+Ct.localName,this.classes.push(Ct),this.styleSheet.sheet.insertRule("."+Ct.name+" {"+Ct.style+"}",this.styleSheet.sheet.cssRules.length),Ct},Tt.prototype.addRule=function(Ct){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Ct),this.styleSheet.sheet.insertRule(Ct.selector+" {"+Ct.style+"}",this.styleSheet.sheet.cssRules.length)},Tt.prototype.addStyleSheet=function(){var Ct;this.styleSheet=document.createElement("style"),((Ct=this.styleSheetRoot)!==null&&Ct!==void 0?Ct:document.head).appendChild(this.styleSheet),this.addRule(new je("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new je("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new je("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new le("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new le("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},Tt.prototype.removeStyleSheet=function(){var Ct;this.styleSheet&&(((Ct=this.styleSheetRoot)!==null&&Ct!==void 0?Ct:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Tt}(),je=function(Tt,Ct){this.selector=Tt,this.style=Ct},le=function(Tt,Ct){this.localName=Tt,this.style=Ct},Ge=function(){function Tt(Ct,xt,kt,zt,Et){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Ct,this.displayMode=xt,this.markerItems=kt,this.uiStyleSettings=zt,this.styles=Et,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Tt.prototype.show=function(Ct){var xt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ct,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var kt=document.createElement("div");kt.className=this.toolbarBlockStyleClass.name,kt.style.whiteSpace="nowrap",this.uiContainer.appendChild(kt),this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Et){var Ae=document.createElement("div");Ae.className=""+xt.toolbarButtonStyleClass.name,Ae.setAttribute("data-type-name",Et.typeName),Ae.innerHTML=Et.icon,Ae.addEventListener("click",function(){xt.markerToolbarButtonClicked(Ae,Et)}),xt.buttons.push(Ae),xt.markerButtons.push(Ae)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var zt=document.createElement("div");zt.className=this.toolbarBlockStyleClass.name,zt.style.whiteSpace="nowrap",zt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(zt),this.addActionButton(zt,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(zt,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Tt.prototype.addButtonClickListener=function(Ct){this.buttonClickListeners.push(Ct)},Tt.prototype.removeButtonClickListener=function(Ct){this.buttonClickListeners.indexOf(Ct)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ct),1)},Tt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Tt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ct=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xt=0;xt<this.markerButtons.length;xt++)xt<Ct||xt===Ct&&this.markerButtons.length-1===Ct?this.markerButtonBlock.appendChild(this.markerButtons[xt]):(xt===Ct&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[xt]))}},Tt.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},Tt.prototype.resetButtonStyles=function(){var Ct=this;this.buttons.forEach(function(xt){xt.className=xt.className.replace(Ct.uiStyleSettings.toolbarButtonStyleColorsClassName?Ct.uiStyleSettings.toolbarButtonStyleColorsClassName:Ct.toolbarButtonStyleColorsClass.name,"").trim(),xt.className=xt.className.replace(Ct.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Ct.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Ct.toolbarActiveButtonStyleColorsClass.name,"").trim(),xt.className+=" "+(Ct.uiStyleSettings.toolbarButtonStyleColorsClassName?Ct.uiStyleSettings.toolbarButtonStyleColorsClassName:Ct.toolbarButtonStyleColorsClass.name)})},Tt.prototype.addActionButton=function(Ct,xt,kt){var zt=this,Et=document.createElement("div");switch(Et.className=""+this.toolbarButtonStyleClass.name,Et.innerHTML=xt,Et.setAttribute("data-action",kt),Et.addEventListener("click",function(){zt.actionToolbarButtonClicked(Et,kt)}),kt){case"select":Et.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Et.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Et.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Et.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Et.style.fill=this.uiStyleSettings.closeButtonColor}Ct.appendChild(Et),this.buttons.push(Et)},Tt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new le("toolbar",`
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
box-sizing: content-box;
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
overflow: hidden;
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new le("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new le("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new le("toolbar-overflow-block",`
|
|
position: absolute;
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
z-index: 10;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new le("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var Ct=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new le("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
padding: `+Ct+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new le("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new le("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new je("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new je("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},Tt.prototype.markerToolbarButtonClicked=function(Ct,xt){this.setActiveButton(Ct),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(kt){return kt("marker",xt)}),this.markerButtonOverflowBlock.style.display="none"},Tt.prototype.actionToolbarButtonClicked=function(Ct,xt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(kt){return kt("action",xt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Tt.prototype.setActiveButton=function(Ct){this.resetButtonStyles(),Ct.className=Ct.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ct.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Tt.prototype.setActiveMarkerButton=function(Ct){var xt=this.markerButtons.find(function(kt){return kt.getAttribute("data-type-name")===Ct});xt&&this.setActiveButton(xt)},Tt.prototype.setCurrentMarker=function(Ct){var xt=this;this.currentMarker=Ct,this.buttons.filter(function(kt){return/delete|notes/.test(kt.getAttribute("data-action"))}).forEach(function(kt){xt.currentMarker===void 0?(kt.style.fillOpacity="0.4",kt.style.pointerEvents="none"):(kt.style.fillOpacity="1",kt.style.pointerEvents="all")})},Tt}(),bt=function(){function Tt(Ct,xt,kt,zt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ct,this.displayMode=xt,this.uiStyleSettings=kt,this.styles=zt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Tt.prototype.addStyles=function(){var Ct;this.toolboxStyleClass=this.styles.addClass(new le("toolbox",`
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: sans-serif;
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
box-sizing: content-box;
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
overflow: hidden;
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new le("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var xt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new le("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new le("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new le("toolbox-panel-row",`
|
|
display: flex;
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
cursor: default;
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
box-sizing: content-box;
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new le("toolbox-panel-row_colors",`
|
|
background-color: `+((Ct=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ct!==void 0?Ct:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new le("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*xt)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*xt)+`px;
|
|
padding: `+xt+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new le("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new le("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new je("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new je("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},Tt.prototype.show=function(Ct){var xt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ct,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xt!==void 0?xt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Tt.prototype.setPanelButtons=function(Ct){var xt,kt,zt=this;this.panels=Ct,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((xt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&xt!==void 0?xt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((kt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&kt!==void 0?kt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Et){var Ae;Et.uiStyleSettings=zt.uiStyleSettings;var We=document.createElement("div");We.className=zt.toolboxButtonStyleClass.name+" "+((Ae=zt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ae!==void 0?Ae:zt.toolboxButtonStyleColorsClass.name),We.innerHTML=Et.icon,We.title=Et.title,We.addEventListener("click",function(){zt.panelButtonClick(Et)}),zt.panelButtons.push(We),zt.buttonRow.appendChild(We)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Tt.prototype.panelButtonClick=function(Ct){var xt=this,kt=-1;if(Ct!==this.activePanel){kt=this.panels.indexOf(Ct),this.panelRow.innerHTML="";var zt=Ct.getUi();zt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(zt),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Ct}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){xt.displayMode==="inline"?xt.panelRow.style.display="none":xt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Et,Ae){var We,Ue;Et.className=xt.toolboxButtonStyleClass.name+" "+(Ae===kt?""+((We=xt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&We!==void 0?We:xt.toolboxActiveButtonStyleColorsClass.name):""+((Ue=xt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ue!==void 0?Ue:xt.toolboxButtonStyleColorsClass.name))})},Tt}(),et=function(Tt,Ct){this.title=Tt,this.icon=Ct},nt=function(Tt){function Ct(xt,kt,zt,Et){var Ae=Tt.call(this,xt,Et||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Ae.colors=[],Ae.addTransparent=!1,Ae.colorBoxes=[],Ae.colors=kt,Ae.currentColor=zt,Ae.setCurrentColor=Ae.setCurrentColor.bind(Ae),Ae.getColorBox=Ae.getColorBox.bind(Ae),Ae}return ee(Ct,Tt),Ct.prototype.getUi=function(){var xt=this,kt=document.createElement("div");return kt.style.overflow="hidden",kt.style.whiteSpace="nowrap",this.colors.forEach(function(zt){var Et=xt.getColorBox(zt);kt.appendChild(Et),xt.colorBoxes.push(Et)}),kt},Ct.prototype.getColorBox=function(xt){var kt=this,zt=this.uiStyleSettings.toolbarHeight/4,Et=this.uiStyleSettings.toolbarHeight-zt,Ae=document.createElement("div");Ae.style.display="inline-block",Ae.style.boxSizing="content-box",Ae.style.width=Et-2+"px",Ae.style.height=Et-2+"px",Ae.style.padding="1px",Ae.style.marginRight="2px",Ae.style.marginBottom="2px",Ae.style.borderWidth="2px",Ae.style.borderStyle="solid",Ae.style.borderRadius=(Et+2)/2+"px",Ae.style.borderColor=xt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ae.addEventListener("click",function(){kt.setCurrentColor(xt,Ae)});var We=document.createElement("div");return We.style.display="inline-block",We.style.width=Et-2+"px",We.style.height=Et-2+"px",We.style.backgroundColor=xt,We.style.borderRadius=Et/2+"px",xt==="transparent"&&(We.style.fill=this.uiStyleSettings.toolboxAccentColor,We.innerHTML=`<svg viewBox="0 0 24 24">
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
</svg>`),Ae.appendChild(We),Ae},Ct.prototype.setCurrentColor=function(xt,kt){var zt=this;this.currentColor=xt,this.colorBoxes.forEach(function(Et){Et.style.borderColor=Et===kt?zt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xt)},Ct}(et),ct=function(){function Tt(Ct,xt,kt){this._state="new",this._isSelected=!1,this._container=Ct,this._overlayContainer=xt,this.globalSettings=kt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Tt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Tt.prototype.ownsTarget=function(Ct){return!1},Object.defineProperty(Tt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Tt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Tt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Tt.prototype.pointerDown=function(Ct,xt){},Tt.prototype.dblClick=function(Ct,xt){},Tt.prototype.manipulate=function(Ct){},Tt.prototype.pointerUp=function(Ct){this.stateChanged()},Tt.prototype.dispose=function(){},Tt.prototype.addMarkerVisualToContainer=function(Ct){this.container.childNodes.length>0?this.container.insertBefore(Ct,this.container.childNodes[0]):this.container.appendChild(Ct)},Tt.prototype.getState=function(){return{typeName:Tt.typeName,state:this.state,notes:this.notes}},Tt.prototype.restoreState=function(Ct){this._state=Ct.state,this.notes=Ct.notes},Tt.prototype.scale=function(Ct,xt){},Tt.prototype.colorChanged=function(Ct){this.onColorChanged&&this.onColorChanged(Ct),this.stateChanged()},Tt.prototype.fillColorChanged=function(Ct){this.onFillColorChanged&&this.onFillColorChanged(Ct),this.stateChanged()},Tt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ct=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ct.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ct)&&this.onStateChanged(this)}},Tt.typeName="MarkerBase",Tt}(),lt=function(){function Tt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Tt.prototype.findGripByVisual=function(Ct){return this.topLeft.ownsTarget(Ct)?this.topLeft:this.topCenter.ownsTarget(Ct)?this.topCenter:this.topRight.ownsTarget(Ct)?this.topRight:this.centerLeft.ownsTarget(Ct)?this.centerLeft:this.centerRight.ownsTarget(Ct)?this.centerRight:this.bottomLeft.ownsTarget(Ct)?this.bottomLeft:this.bottomCenter.ownsTarget(Ct)?this.bottomCenter:this.bottomRight.ownsTarget(Ct)?this.bottomRight:void 0},Tt}(),pt=function(){function Tt(){this.GRIP_SIZE=10,this.visual=fe.createGroup(),this.visual.appendChild(fe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(fe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Tt.prototype.ownsTarget=function(Ct){return Ct===this.visual||Ct===this.visual.childNodes[0]||Ct===this.visual.childNodes[1]},Tt}(),vt=function(){function Tt(){}return Tt.toITransformMatrix=function(Ct){return{a:Ct.a,b:Ct.b,c:Ct.c,d:Ct.d,e:Ct.e,f:Ct.f}},Tt.toSVGMatrix=function(Ct,xt){return Ct.a=xt.a,Ct.b=xt.b,Ct.c=xt.c,Ct.d=xt.d,Ct.e=xt.e,Ct.f=xt.f,Ct},Tt}(),Pt=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.left=0,Et.top=0,Et.width=0,Et.height=0,Et.defaultSize={x:50,y:20},Et.offsetX=0,Et.offsetY=0,Et.rotationAngle=0,Et.CB_DISTANCE=10,Et._suppressMarkerCreateEvent=!1,Et.container.transform.baseVal.appendItem(fe.createTransform()),Et.setupControlBox(),Et}return ee(Ct,Tt),Object.defineProperty(Ct.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"visual",{get:function(){return this._visual},set:function(xt){this._visual=xt;var kt=fe.createTransform();this._visual.transform.baseVal.appendItem(kt)},enumerable:!1,configurable:!0}),Ct.prototype.ownsTarget=function(xt){return!!Tt.prototype.ownsTarget.call(this,xt)||!!(this.controlGrips.findGripByVisual(xt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xt))},Ct.prototype.pointerDown=function(xt,kt){Tt.prototype.pointerDown.call(this,xt,kt),this.state==="new"&&(this.left=xt.x,this.top=xt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var zt=this.unrotatePoint(xt);if(this.manipulationStartX=zt.x,this.manipulationStartY=zt.y,this.offsetX=zt.x-this.left,this.offsetY=zt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(kt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(kt)){this.activeGrip=this.rotatorGrip;var Et=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Et.x-this.width/2,this.top=Et.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ae=this.container.transform.baseVal.getItem(0);Ae.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ae,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ct.prototype.pointerUp=function(xt){var kt=this.state;Tt.prototype.pointerUp.call(this,xt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xt),this._state="select",kt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ct.prototype.moveVisual=function(xt){this.visual.style.transform="translate("+xt.x+"px, "+xt.y+"px)"},Ct.prototype.manipulate=function(xt){var kt=this.unrotatePoint(xt);this.state==="creating"?this.resize(xt):this.state==="move"?(this.left=this.manipulationStartLeft+(kt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(kt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(kt):this.state==="rotate"&&this.rotate(xt)},Ct.prototype.resize=function(xt){var kt=this.manipulationStartLeft,zt=this.manipulationStartWidth,Et=this.manipulationStartTop,Ae=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:kt=this.manipulationStartLeft+xt.x-this.manipulationStartX,zt=this.manipulationStartWidth+this.manipulationStartLeft-kt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:zt=this.manipulationStartWidth+xt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Et=this.manipulationStartTop+xt.y-this.manipulationStartY,Ae=this.manipulationStartHeight+this.manipulationStartTop-Et;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ae=this.manipulationStartHeight+xt.y-this.manipulationStartY}zt>=0?(this.left=kt,this.width=zt):(this.left=kt+zt,this.width=-zt),Ae>=0?(this.top=Et,this.height=Ae):(this.top=Et+Ae,this.height=-Ae),this.setSize()},Ct.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ct.prototype.rotate=function(xt){if(Math.abs(xt.x-this.centerX)>.1){var kt=Math.sign(xt.x-this.centerX);this.rotationAngle=180*Math.atan((xt.y-this.centerY)/(xt.x-this.centerX))/Math.PI+90*kt,this.applyRotation()}},Ct.prototype.applyRotation=function(){var xt=this.container.transform.baseVal.getItem(0);xt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xt,0)},Ct.prototype.rotatePoint=function(xt){if(this.rotationAngle===0)return xt;var kt=this.container.getCTM(),zt=fe.createPoint(xt.x,xt.y);return{x:(zt=zt.matrixTransform(kt)).x,y:zt.y}},Ct.prototype.unrotatePoint=function(xt){if(this.rotationAngle===0)return xt;var kt=this.container.getCTM();kt=kt.inverse();var zt=fe.createPoint(xt.x,xt.y);return{x:(zt=zt.matrixTransform(kt)).x,y:zt.y}},Ct.prototype.select=function(){Tt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){Tt.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=fe.createGroup();var xt=fe.createTransform();xt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xt),this.container.appendChild(this.controlBox),this.controlRect=fe.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=fe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new lt,this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){var xt=this.controlBox.transform.baseVal.getItem(0);xt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xt,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Ct.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Ct.prototype.createGrip=function(){var xt=new pt;return xt.visual.transform.baseVal.appendItem(fe.createTransform()),this.controlBox.appendChild(xt.visual),xt},Ct.prototype.positionGrips=function(){var xt=this.controlGrips.topLeft.GRIP_SIZE,kt=-xt/2,zt=kt,Et=(this.width+this.CB_DISTANCE)/2-xt/2,Ae=(this.height+this.CB_DISTANCE)/2-xt/2,We=this.height+this.CB_DISTANCE-xt/2,Ue=this.width+this.CB_DISTANCE-xt/2;this.positionGrip(this.controlGrips.topLeft.visual,kt,zt),this.positionGrip(this.controlGrips.topCenter.visual,Et,zt),this.positionGrip(this.controlGrips.topRight.visual,Ue,zt),this.positionGrip(this.controlGrips.centerLeft.visual,kt,Ae),this.positionGrip(this.controlGrips.centerRight.visual,Ue,Ae),this.positionGrip(this.controlGrips.bottomLeft.visual,kt,We),this.positionGrip(this.controlGrips.bottomCenter.visual,Et,We),this.positionGrip(this.controlGrips.bottomRight.visual,Ue,We),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Et,zt-3*this.CB_DISTANCE)},Ct.prototype.positionGrip=function(xt,kt,zt){var Et=xt.transform.baseVal.getItem(0);Et.setTranslate(kt,zt),xt.transform.baseVal.replaceItem(Et,0)},Ct.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ct.prototype.showControlBox=function(){this.controlBox.style.display=""},Ct.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:vt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:vt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Tt.prototype.getState.call(this))},Ct.prototype.restoreState=function(xt){Tt.prototype.restoreState.call(this,xt);var kt=xt;this.left=kt.left,this.top=kt.top,this.width=kt.width,this.height=kt.height,this.rotationAngle=kt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(vt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,kt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(vt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,kt.containerTransformMatrix))},Ct.prototype.scale=function(xt,kt){Tt.prototype.scale.call(this,xt,kt);var zt=this.rotatePoint({x:this.left,y:this.top}),Et=this.unrotatePoint({x:zt.x*xt,y:zt.y*kt});this.left=Et.x,this.top=Et.y,this.width=this.width*xt,this.height=this.height*kt,this.adjustControlBox()},Ct}(ct),Dt=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.fillColor="transparent",Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.opacity=1,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setFillColor=Et.setFillColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.createVisual=Et.createVisual.bind(Et),Et}return ee(Ct,Tt),Ct.prototype.ownsTarget=function(xt){return!(!Tt.prototype.ownsTarget.call(this,xt)&&xt!==this.visual)},Ct.prototype.createVisual=function(){this.visual=fe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,kt){Tt.prototype.pointerDown.call(this,xt,kt),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.manipulate=function(xt){Tt.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){Tt.prototype.resize.call(this,xt),this.setSize()},Ct.prototype.setSize=function(){Tt.prototype.setSize.call(this),fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(xt){Tt.prototype.pointerUp.call(this,xt),this.setSize()},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.visual&&fe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},Ct.prototype.setFillColor=function(xt){this.fillColor=xt,this.visual&&fe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.visual&&fe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.visual&&fe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ct.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Tt.prototype.getState.call(this))},Ct.prototype.restoreState=function(xt){var kt=xt;this.fillColor=kt.fillColor,this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.opacity=kt.opacity,this.createVisual(),Tt.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,kt){Tt.prototype.scale.call(this,xt,kt),this.setSize()},Ct.title="Rectangle marker",Ct}(Pt),Vt=function(Tt){function Ct(xt,kt,zt,Et){var Ae=Tt.call(this,xt,Et||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ae.widths=[],Ae.widthBoxes=[],Ae.widths=kt,Ae.currentWidth=zt,Ae.setCurrentWidth=Ae.setCurrentWidth.bind(Ae),Ae}return ee(Ct,Tt),Ct.prototype.getUi=function(){var xt=this,kt=document.createElement("div");return kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2",this.widths.forEach(function(zt){var Et=document.createElement("div");Et.style.display="flex",Et.style.flexGrow="2",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.borderColor=zt===xt.currentWidth?xt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){xt.setCurrentWidth(zt,Et)}),kt.appendChild(Et);var Ae=document.createElement("div");Ae.innerText=zt.toString(),Ae.style.marginRight="5px",Et.appendChild(Ae);var We=document.createElement("div");We.style.minHeight="20px",We.style.flexGrow="2",We.style.display="flex",We.style.alignItems="center";var Ue=document.createElement("hr");Ue.style.minWidth="20px",Ue.style.border="0px",Ue.style.borderTop=zt+"px solid "+xt.uiStyleSettings.toolboxColor,Ue.style.flexGrow="2",We.appendChild(Ue),Et.appendChild(We),xt.widthBoxes.push(Et)}),kt},Ct.prototype.setCurrentWidth=function(xt,kt){var zt=this;this.currentWidth=xt,this.widthBoxes.forEach(function(Et){Et.style.borderColor=Et===kt?zt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ct}(et),Ut=function(Tt){function Ct(xt,kt,zt,Et){var Ae=Tt.call(this,xt,Et||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Ae.styles=[],Ae.styleBoxes=[],Ae.styles=kt,Ae.currentStyle=zt,Ae.setCurrentStyle=Ae.setCurrentStyle.bind(Ae),Ae}return ee(Ct,Tt),Ct.prototype.getUi=function(){var xt=this,kt=document.createElement("div");return kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2",this.styles.forEach(function(zt){var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.overflow="hidden",Et.style.maxWidth=100/xt.styles.length-5+"%",Et.style.borderColor=zt===xt.currentStyle?xt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){xt.setCurrentStyle(zt,Et)}),kt.appendChild(Et);var Ae=document.createElement("div");Ae.style.minHeight="20px",Ae.style.flexGrow="2",Ae.style.overflow="hidden";var We=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+xt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(zt!==""?'stroke-dasharray="'+zt+'"':"")+` />
|
|
</svg>`;Ae.innerHTML=We,Et.appendChild(Ae),xt.styleBoxes.push(Et)}),kt},Ct.prototype.setCurrentStyle=function(xt,kt){var zt=this;this.currentStyle=xt,this.styleBoxes.forEach(function(Et){Et.style.borderColor=Et===kt?zt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ct}(et),se=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.strokeColor=zt.defaultColor,Et.strokeWidth=zt.defaultStrokeWidth,Et.strokeDasharray=zt.defaultStrokeDasharray,Et.strokePanel=new nt("Line color",zt.defaultColorSet,zt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.strokeWidthPanel=new Vt("Line width",zt.defaultStrokeWidths,zt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Ut("Line style",zt.defaultStrokeDasharrays,zt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et}return ee(Ct,Tt),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Tt.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="FrameMarker",Ct.title="Frame marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Ct}(Dt),qt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Jt=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.x1=0,Et.y1=0,Et.x2=0,Et.y2=0,Et.defaultLength=50,Et.manipulationStartX=0,Et.manipulationStartY=0,Et.manipulationStartX1=0,Et.manipulationStartY1=0,Et.manipulationStartX2=0,Et.manipulationStartY2=0,Et.setupControlBox(),Et}return ee(Ct,Tt),Ct.prototype.ownsTarget=function(xt){return!!Tt.prototype.ownsTarget.call(this,xt)||!(!this.grip1.ownsTarget(xt)&&!this.grip2.ownsTarget(xt))},Ct.prototype.pointerDown=function(xt,kt){Tt.prototype.pointerDown.call(this,xt,kt),this.manipulationStartX=xt.x,this.manipulationStartY=xt.y,this.state==="new"&&(this.x1=xt.x,this.y1=xt.y,this.x2=xt.x,this.y2=xt.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(kt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(kt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ct.prototype.pointerUp=function(xt){var kt=this.state;Tt.prototype.pointerUp.call(this,xt),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(xt),this._state="select",kt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ct.prototype.adjustVisual=function(){},Ct.prototype.manipulate=function(xt){this.state==="creating"?this.resize(xt):this.state==="move"?(this.x1=this.manipulationStartX1+xt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xt)},Ct.prototype.resize=function(xt){switch(this.activeGrip){case this.grip1:this.x1=xt.x,this.y1=xt.y;break;case this.grip2:case void 0:this.x2=xt.x,this.y2=xt.y}this.adjustVisual(),this.adjustControlBox()},Ct.prototype.select=function(){Tt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){Tt.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=fe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){this.positionGrips()},Ct.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ct.prototype.createGrip=function(){var xt=new pt;return xt.visual.transform.baseVal.appendItem(fe.createTransform()),this.controlBox.appendChild(xt.visual),xt},Ct.prototype.positionGrips=function(){var xt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xt/2,this.y1-xt/2),this.positionGrip(this.grip2.visual,this.x2-xt/2,this.y2-xt/2)},Ct.prototype.positionGrip=function(xt,kt,zt){var Et=xt.transform.baseVal.getItem(0);Et.setTranslate(kt,zt),xt.transform.baseVal.replaceItem(Et,0)},Ct.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Tt.prototype.getState.call(this))},Ct.prototype.restoreState=function(xt){Tt.prototype.restoreState.call(this,xt);var kt=xt;this.x1=kt.x1,this.y1=kt.y1,this.x2=kt.x2,this.y2=kt.y2},Ct.prototype.scale=function(xt,kt){Tt.prototype.scale.call(this,xt,kt),this.x1=this.x1*xt,this.y1=this.y1*kt,this.x2=this.x2*xt,this.y2=this.y2*kt,this.adjustVisual(),this.adjustControlBox()},Ct}(ct),Me=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.strokeColor=zt.defaultColor,Et.strokeWidth=zt.defaultStrokeWidth,Et.strokeDasharray=zt.defaultStrokeDasharray,Et.strokePanel=new nt("Line color",zt.defaultColorSet,zt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.strokeWidthPanel=new Vt("Line width",zt.defaultStrokeWidths,zt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Ut("Line style",zt.defaultStrokeDasharrays,zt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et}return ee(Ct,Tt),Ct.prototype.ownsTarget=function(xt){return!(!Tt.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.selectorLine&&xt!==this.visibleLine)},Ct.prototype.createVisual=function(){this.visual=fe.createGroup(),this.selectorLine=fe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=fe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,kt){Tt.prototype.pointerDown.call(this,xt,kt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ct.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),fe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),fe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),fe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.adjustVisual(),this.colorChanged(xt)},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Tt.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){Tt.prototype.restoreState.call(this,xt);var kt=xt;this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.createVisual(),this.adjustVisual()},Ct.typeName="LineMarker",Ct.title="Line marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Ct}(Jt),pe=function(Tt){function Ct(xt,kt,zt,Et){var Ae=Tt.call(this,xt,Et||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Ae.fonts=[],Ae.fontBoxes=[],Ae.fonts=kt,Ae.currentFont=zt,Ae.setCurrentFont=Ae.setCurrentFont.bind(Ae),Ae}return ee(Ct,Tt),Ct.prototype.getUi=function(){var xt=this,kt=document.createElement("div");return kt.style.overflow="hidden",kt.style.flexGrow="2",this.fonts.forEach(function(zt){var Et=document.createElement("div");Et.style.display="inline-block",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.overflow="hidden",Et.style.maxWidth=100/xt.fonts.length-5+"%",Et.style.borderColor=zt===xt.currentFont?xt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){xt.setCurrentFont(zt,Et)}),kt.appendChild(Et);var Ae=document.createElement("div");Ae.style.display="flex",Ae.style.minHeight="20px",Ae.style.flexGrow="2",Ae.style.fontFamily=zt,Ae.style.overflow="hidden";var We=document.createElement("div");We.style.whiteSpace="nowrap",We.style.overflow="hidden",We.style.textOverflow="ellipsis",We.innerHTML="The quick brown fox jumps over the lazy dog",Ae.appendChild(We),Et.appendChild(Ae),xt.fontBoxes.push(Et)}),kt},Ct.prototype.setCurrentFont=function(xt,kt){var zt=this;this.currentFont=xt,this.fontBoxes.forEach(function(Et){Et.style.borderColor=Et===kt?zt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ct}(et),He=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.color="transparent",Et.padding=5,Et.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Et.text=Et.DEFAULT_TEXT,Et.isMoved=!1,Et.color=zt.defaultColor,Et.fontFamily=zt.defaultFontFamily,Et.defaultSize={x:100,y:30},Et.setColor=Et.setColor.bind(Et),Et.setFont=Et.setFont.bind(Et),Et.renderText=Et.renderText.bind(Et),Et.sizeText=Et.sizeText.bind(Et),Et.textEditDivClicked=Et.textEditDivClicked.bind(Et),Et.showTextEditor=Et.showTextEditor.bind(Et),Et.setSize=Et.setSize.bind(Et),Et.positionTextEditor=Et.positionTextEditor.bind(Et),Et.colorPanel=new nt("Color",zt.defaultColorSet,zt.defaultColor),Et.colorPanel.onColorChanged=Et.setColor,Et.fontFamilyPanel=new pe("Font",zt.defaultFontFamilies,zt.defaultFontFamily),Et.fontFamilyPanel.onFontChanged=Et.setFont,Et}return ee(Ct,Tt),Ct.prototype.ownsTarget=function(xt){if(Tt.prototype.ownsTarget.call(this,xt)||xt===this.visual||xt===this.textElement||xt===this.bgRectangle)return!0;var kt=!1;return this.textElement.childNodes.forEach(function(zt){zt===xt&&(kt=!0)}),kt},Ct.prototype.createVisual=function(){this.visual=fe.createGroup(),this.bgRectangle=fe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=fe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(fe.createTransform()),this.textElement.transform.baseVal.appendItem(fe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ct.prototype.pointerDown=function(xt,kt){Tt.prototype.pointerDown.call(this,xt,kt),this.isMoved=!1,this.pointerDownPoint=xt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.renderText=function(){var xt=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(kt){xt.textElement.appendChild(fe.createTSpan(kt.trim()===""?" ":kt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ct.prototype.getTextScale=function(){var xt=this.textElement.getBBox(),kt=1;if(xt.width>0&&xt.height>0){var zt=(1*this.width-this.width*this.padding*2/100)/xt.width,Et=(1*this.height-this.height*this.padding*2/100)/xt.height;kt=Math.min(zt,Et)}return kt},Ct.prototype.getTextPosition=function(xt){var kt=this.textElement.getBBox(),zt=0,Et=0;return kt.width>0&&kt.height>0&&(zt=(this.width-kt.width*xt)/2,Et=this.height/2-kt.height*xt/2),{x:zt,y:Et}},Ct.prototype.sizeText=function(){var xt=this.textElement.getBBox(),kt=this.getTextScale(),zt=this.getTextPosition(kt);zt.y-=xt.y*kt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+zt.x+"px, "+zt.y+"px) scale("+kt+", "+kt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(zt.x,zt.y),this.textElement.transform.baseVal.getItem(1).setScale(kt,kt))},Ct.prototype.manipulate=function(xt){Tt.prototype.manipulate.call(this,xt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xt.x-this.pointerDownPoint.x)>5||Math.abs(xt.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(xt){Tt.prototype.resize.call(this,xt),this.isMoved=!0,this.setSize(),this.sizeText()},Ct.prototype.setSize=function(){Tt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),fe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ct.prototype.pointerUp=function(xt){var kt=this.state;kt==="creating"&&(this._suppressMarkerCreateEvent=!0),Tt.prototype.pointerUp.call(this,xt),this.setSize(),(kt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.showTextEditor=function(){var xt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(kt){kt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var kt=Number.parseFloat(xt.textEditor.style.fontSize);xt.textEditor.clientWidth>=Number.parseInt(xt.textEditor.style.maxWidth)&&kt>.9;)kt-=.1,xt.textEditor.style.fontSize=Math.max(kt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(kt){kt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(kt){if(kt.clipboardData){var zt=kt.clipboardData.getData("text"),Et=window.getSelection();if(!Et.rangeCount)return!1;Et.deleteFromDocument(),Et.getRangeAt(0).insertNode(document.createTextNode(zt)),kt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xt.textEditDivClicked(xt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ct.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xt=this.getTextScale(),kt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),zt=this.textElement.getBBox(),Et={x:zt.width*xt,y:zt.height*xt};kt.x-=Et.x/2,kt.y-=Et.y/2,this.textEditor.style.top=kt.y+"px",this.textEditor.style.left=kt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-kt.x+"px",this.textEditor.style.fontSize=Math.max(16*xt,12)+"px",this.textElement.style.display="none"}},Ct.prototype.textEditDivClicked=function(xt){this.text=xt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ct.prototype.select=function(){Tt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ct.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Tt.prototype.deselect.call(this)},Ct.prototype.dblClick=function(xt,kt){Tt.prototype.dblClick.call(this,xt,kt),this.showTextEditor()},Ct.prototype.setColor=function(xt){this.textElement&&fe.setAttributes(this.textElement,[["fill",xt]]),this.color=xt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xt)},Ct.prototype.setFont=function(xt){this.textElement&&fe.setAttributes(this.textElement,[["font-family",xt]]),this.fontFamily=xt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ct.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ct.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Tt.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){var kt=xt;this.color=kt.color,this.fontFamily=kt.fontFamily,this.padding=kt.padding,this.text=kt.text,this.createVisual(),Tt.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,kt){Tt.prototype.scale.call(this,xt,kt),this.setSize(),this.sizeText(),this.positionTextEditor()},Ct.typeName="TextMarker",Ct.title="Text marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',Ct}(Pt),De=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.color="transparent",Et.lineWidth=3,Et.drawing=!1,Et.pixelRatio=1,Et.color=zt.defaultColor,Et.lineWidth=zt.defaultStrokeWidth,Et.pixelRatio=zt.freehandPixelRatio,Et.setColor=Et.setColor.bind(Et),Et.addCanvas=Et.addCanvas.bind(Et),Et.finishCreation=Et.finishCreation.bind(Et),Et.setLineWidth=Et.setLineWidth.bind(Et),Et.colorPanel=new nt("Color",zt.defaultColorSet,zt.defaultColor),Et.colorPanel.onColorChanged=Et.setColor,Et.lineWidthPanel=new Vt("Line width",zt.defaultStrokeWidths,zt.defaultStrokeWidth),Et.lineWidthPanel.onWidthChanged=Et.setLineWidth,Et}return ee(Ct,Tt),Ct.prototype.ownsTarget=function(xt){return!(!Tt.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.drawingImage)},Ct.prototype.createVisual=function(){this.visual=fe.createGroup(),this.drawingImage=fe.createImage(),this.visual.appendChild(this.drawingImage);var xt=fe.createTransform();this.visual.transform.baseVal.appendItem(xt),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,kt){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(xt.x,xt.y),this.drawing=!0):Tt.prototype.pointerDown.call(this,xt,kt)},Ct.prototype.manipulate=function(xt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xt.x,xt.y),this.canvasContext.stroke()):Tt.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){Tt.prototype.resize.call(this,xt),fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),fe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(xt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Tt.prototype.pointerUp.call(this,xt)},Ct.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Ct.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Tt.prototype.select.call(this)},Ct.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Tt.prototype.deselect.call(this)},Ct.prototype.finishCreation=function(){for(var xt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),kt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],zt=kt[0],Et=kt[1],Ae=kt[2],We=kt[3],Ue=!1,jn=0;jn<this.canvasElement.height;jn++)for(var Gn=0;Gn<this.canvasElement.width;Gn++)xt.data[jn*this.canvasElement.width*4+4*Gn+3]>0&&(Ue=!0,jn<Et&&(Et=jn),Gn<zt&&(zt=Gn),jn>We&&(We=jn),Gn>Ae&&(Ae=Gn));if(Ue){this.left=zt/this.pixelRatio,this.top=Et/this.pixelRatio,this.width=(Ae-zt)/this.pixelRatio,this.height=(We-Et)/this.pixelRatio;var Ke=document.createElement("canvas");Ke.width=Ae-zt,Ke.height=We-Et,Ke.getContext("2d").putImageData(this.canvasContext.getImageData(zt,Et,Ae-zt,We-Et),0,0),this.drawingImgUrl=Ke.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ct.prototype.setDrawingImage=function(){fe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),fe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ct.prototype.setColor=function(xt){this.color=xt,this.colorChanged(xt)},Ct.prototype.setLineWidth=function(xt){this.lineWidth=xt},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({drawingImgUrl:this.drawingImgUrl},Tt.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){this.createVisual(),Tt.prototype.restoreState.call(this,xt),this.drawingImgUrl=xt.drawingImgUrl,this.setDrawingImage()},Ct.prototype.scale=function(xt,kt){Tt.prototype.scale.call(this,xt,kt),this.setDrawingImage()},Ct.typeName="FreehandMarker",Ct.title="Freehand marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',Ct}(Pt),tn=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,zt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Et.typeBoxes=[],Et.currentType=kt,Et.setCurrentType=Et.setCurrentType.bind(Et),Et}return ee(Ct,Tt),Ct.prototype.getUi=function(){var xt=this,kt=document.createElement("div");kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2";for(var zt=function(We){var Ue="both";switch(We){case 0:Ue="both";break;case 1:Ue="start";break;case 2:Ue="end";break;case 3:Ue="none"}var jn=document.createElement("div");if(jn.style.display="flex",jn.style.flexGrow="2",jn.style.alignItems="center",jn.style.justifyContent="space-between",jn.style.padding="5px",jn.style.borderWidth="2px",jn.style.borderStyle="solid",jn.style.borderColor=Ue===Et.currentType?Et.uiStyleSettings.toolboxAccentColor:"transparent",jn.addEventListener("click",function(){xt.setCurrentType(Ue,jn)}),kt.appendChild(jn),Ue==="both"||Ue==="start"){var Gn=document.createElement("div");Gn.style.display="flex",Gn.style.alignItems="center",Gn.style.minHeight="20px",Gn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,5 10,0 10,10" fill="`+(Et.uiStyleSettings!==void 0?Et.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Gn.style.marginLeft="5px",jn.appendChild(Gn)}var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.alignItems="center",Ke.style.minHeight="20px",Ke.style.flexGrow="2";var ri=document.createElement("hr");if(ri.style.minWidth="20px",ri.style.border="0px",ri.style.borderTop="3px solid "+(Et.uiStyleSettings!==void 0?Et.uiStyleSettings.toolboxColor:"#eeeeee"),ri.style.flexGrow="2",Ke.appendChild(ri),jn.appendChild(Ke),Ue==="both"||Ue==="end"){var Sn=document.createElement("div");Sn.style.display="flex",Sn.style.alignItems="center",Sn.style.minHeight="20px",Sn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,0 10,5 0,10" fill="`+(Et.uiStyleSettings!==void 0?Et.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Sn.style.marginRight="5px",jn.appendChild(Sn)}Et.typeBoxes.push(jn)},Et=this,Ae=0;Ae<4;Ae++)zt(Ae);return kt},Ct.prototype.setCurrentType=function(xt,kt){var zt=this;this.currentType=xt,this.typeBoxes.forEach(function(Et){Et.style.borderColor=Et===kt?zt.uiStyleSettings!==void 0?zt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ct}(et),Fn=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.arrowType="end",Et.arrowBaseHeight=10,Et.arrowBaseWidth=10,Et.getArrowPoints=Et.getArrowPoints.bind(Et),Et.setArrowType=Et.setArrowType.bind(Et),Et.arrowTypePanel=new tn("Arrow type","end"),Et.arrowTypePanel.onArrowTypeChanged=Et.setArrowType,Et}return ee(Ct,Tt),Ct.prototype.ownsTarget=function(xt){return!(!Tt.prototype.ownsTarget.call(this,xt)&&xt!==this.arrow1&&xt!==this.arrow2)},Ct.prototype.getArrowPoints=function(xt,kt){var zt=this.arrowBaseWidth+2*this.strokeWidth,Et=this.arrowBaseHeight+2*this.strokeWidth;return xt-zt/2+","+(kt+Et/2)+" "+xt+","+(kt-Et/2)+" "+(xt+zt/2)+","+(kt+Et/2)},Ct.prototype.createTips=function(){this.arrow1=fe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(fe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=fe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(fe.createTransform()),this.visual.appendChild(this.arrow2)},Ct.prototype.pointerDown=function(xt,kt){Tt.prototype.pointerDown.call(this,xt,kt),this.state==="creating"&&this.createTips()},Ct.prototype.adjustVisual=function(){if(Tt.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",fe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),fe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xt=0;Math.abs(this.x1-this.x2)>.1&&(xt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var kt=this.arrow1.transform.baseVal.getItem(0);kt.setRotate(xt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(kt,0);var zt=this.arrow2.transform.baseVal.getItem(0);zt.setRotate(xt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(zt,0)}},Ct.prototype.setArrowType=function(xt){this.arrowType=xt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({arrowType:this.arrowType},Tt.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){Tt.prototype.restoreState.call(this,xt);var kt=xt;this.arrowType=kt.arrowType,this.createTips(),this.adjustVisual()},Ct.typeName="ArrowMarker",Ct.title="Arrow marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Ct}(Me),on=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.fillColor=zt.defaultFillColor,Et.strokeWidth=0,Et.fillPanel=new nt("Color",zt.defaultColorSet,zt.defaultFillColor),Et.fillPanel.onColorChanged=Et.setFillColor,Et}return ee(Ct,Tt),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Tt.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="CoverMarker",Ct.title="Cover marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Ct}(Dt),pn=function(Tt){function Ct(xt,kt,zt,Et){var Ae=Tt.call(this,xt,Et||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Ae.opacities=[],Ae.opacityBoxes=[],Ae.opacities=kt,Ae.currentOpacity=zt,Ae.setCurrentOpacity=Ae.setCurrentOpacity.bind(Ae),Ae}return ee(Ct,Tt),Ct.prototype.getUi=function(){var xt=this,kt=document.createElement("div");return kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2",kt.style.justifyContent="space-between",this.opacities.forEach(function(zt){var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.justifyContent="center",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.borderColor=zt===xt.currentOpacity?xt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){xt.setCurrentOpacity(zt,Et)}),kt.appendChild(Et);var Ae=document.createElement("div");Ae.innerText=100*zt+"%",Et.appendChild(Ae),xt.opacityBoxes.push(Et)}),kt},Ct.prototype.setCurrentOpacity=function(xt,kt){var zt=this;this.currentOpacity=xt,this.opacityBoxes.forEach(function(Et){Et.style.borderColor=Et===kt?zt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ct}(et),fn=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.setOpacity=Et.setOpacity.bind(Et),Et.fillColor=zt.defaultHighlightColor,Et.strokeWidth=0,Et.opacity=zt.defaultHighlightOpacity,Et.fillPanel=new nt("Color",zt.defaultColorSet,Et.fillColor),Et.fillPanel.onColorChanged=Et.setFillColor,Et.opacityPanel=new pn("Opacity",zt.defaultOpacitySteps,Et.opacity),Et.opacityPanel.onOpacityChanged=Et.setOpacity,Et}return ee(Ct,Tt),Ct.prototype.setOpacity=function(xt){this.opacity=xt,this.visual&&fe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Tt.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="HighlightMarker",Ct.title="Highlight marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',Ct}(on),te='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Ot='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Le=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.bgColor="transparent",Et.tipPosition={x:0,y:0},Et.tipBase1Position={x:0,y:0},Et.tipBase2Position={x:0,y:0},Et.tipMoving=!1,Et.color=zt.defaultStrokeColor,Et.bgColor=zt.defaultFillColor,Et.fontFamily=zt.defaultFontFamily,Et.defaultSize={x:100,y:30},Et.setBgColor=Et.setBgColor.bind(Et),Et.getTipPoints=Et.getTipPoints.bind(Et),Et.positionTip=Et.positionTip.bind(Et),Et.setTipPoints=Et.setTipPoints.bind(Et),Et.colorPanel=new nt("Text color",zt.defaultColorSet,Et.color,te),Et.colorPanel.onColorChanged=Et.setColor,Et.bgColorPanel=new nt("Fill color",zt.defaultColorSet,Et.bgColor,Ot),Et.bgColorPanel.onColorChanged=Et.setBgColor,Et.fontFamilyPanel=new pe("Font",zt.defaultFontFamilies,zt.defaultFontFamily),Et.fontFamilyPanel.onFontChanged=Et.setFont,Et.tipGrip=new pt,Et.tipGrip.visual.transform.baseVal.appendItem(fe.createTransform()),Et.controlBox.appendChild(Et.tipGrip.visual),Et}return ee(Ct,Tt),Ct.prototype.ownsTarget=function(xt){return Tt.prototype.ownsTarget.call(this,xt)||this.tipGrip.ownsTarget(xt)||this.tip===xt},Ct.prototype.createTip=function(){fe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=fe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ct.prototype.pointerDown=function(xt,kt){this.state==="new"&&Tt.prototype.pointerDown.call(this,xt,kt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(kt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Tt.prototype.pointerDown.call(this,xt,kt)},Ct.prototype.pointerUp=function(xt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Tt.prototype.pointerUp.call(this,xt);else{var kt=this.state==="creating";Tt.prototype.pointerUp.call(this,xt),this.setTipPoints(kt),this.positionTip()}},Ct.prototype.manipulate=function(xt){if(this.tipMoving){var kt=this.unrotatePoint(xt);this.tipPosition={x:kt.x-this.manipulationStartLeft,y:kt.y-this.manipulationStartTop},this.positionTip()}else Tt.prototype.manipulate.call(this,xt)},Ct.prototype.setBgColor=function(xt){this.bgRectangle&&this.tip&&(fe.setAttributes(this.bgRectangle,[["fill",xt]]),fe.setAttributes(this.tip,[["fill",xt]])),this.bgColor=xt,this.fillColorChanged(xt)},Ct.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Ct.prototype.setTipPoints=function(xt){xt===void 0&&(xt=!1);var kt=Math.min(this.height/2,15),zt=this.height/5;xt&&(this.tipPosition={x:kt+zt/2,y:this.height+20});var Et=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Et<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(zt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:kt,y:0},this.tipBase2Position={x:kt+zt,y:0}):(this.tipBase1Position={x:0,y:kt},this.tipBase2Position={x:0,y:kt+zt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Et<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(zt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-kt-zt,y:0},this.tipBase2Position={x:this.width-kt,y:0}):(this.tipBase1Position={x:this.width,y:kt},this.tipBase2Position={x:this.width,y:kt+zt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Et<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(zt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-kt-zt,y:this.height},this.tipBase2Position={x:this.width-kt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-kt-zt},this.tipBase2Position={x:this.width,y:this.height-kt}):Et<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(zt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:kt,y:this.height},this.tipBase2Position={x:kt+zt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-kt},this.tipBase2Position={x:0,y:this.height-kt-zt})},Ct.prototype.resize=function(xt){Tt.prototype.resize.call(this,xt),this.positionTip()},Ct.prototype.positionTip=function(){fe.setAttributes(this.tip,[["points",this.getTipPoints()]]);var xt=this.tipGrip.visual.transform.baseVal.getItem(0);xt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(xt,0)},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ct.prototype.select=function(){this.positionTip(),Tt.prototype.select.call(this)},Ct.prototype.getState=function(){var xt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Tt.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){var kt=xt;this.bgColor=kt.bgColor,this.tipPosition=kt.tipPosition,Tt.prototype.restoreState.call(this,xt),this.createTip(),this.setTipPoints()},Ct.prototype.scale=function(xt,kt){Tt.prototype.scale.call(this,xt,kt),this.tipPosition={x:this.tipPosition.x*xt,y:this.tipPosition.y*kt},this.positionTip()},Ct.typeName="CalloutMarker",Ct.title="Callout marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',Ct}(He),dn=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.fillColor="transparent",Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.opacity=1,Et.strokeColor=zt.defaultColor,Et.strokeWidth=zt.defaultStrokeWidth,Et.strokeDasharray=zt.defaultStrokeDasharray,Et.fillColor=zt.defaultFillColor,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setFillColor=Et.setFillColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.setOpacity=Et.setOpacity.bind(Et),Et.createVisual=Et.createVisual.bind(Et),Et.strokePanel=new nt("Line color",ce(zt.defaultColorSet,["transparent"]),zt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.fillPanel=new nt("Fill color",ce(zt.defaultColorSet,["transparent"]),Et.fillColor,Ot),Et.fillPanel.onColorChanged=Et.setFillColor,Et.strokeWidthPanel=new Vt("Line width",zt.defaultStrokeWidths,zt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Ut("Line style",zt.defaultStrokeDasharrays,zt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et.opacityPanel=new pn("Opacity",zt.defaultOpacitySteps,Et.opacity),Et.opacityPanel.onOpacityChanged=Et.setOpacity,Et}return ee(Ct,Tt),Ct.prototype.ownsTarget=function(xt){return!(!Tt.prototype.ownsTarget.call(this,xt)&&xt!==this.visual)},Ct.prototype.createVisual=function(){this.visual=fe.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,kt){Tt.prototype.pointerDown.call(this,xt,kt),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.manipulate=function(xt){Tt.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){Tt.prototype.resize.call(this,xt),this.setSize()},Ct.prototype.setSize=function(){Tt.prototype.setSize.call(this),fe.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Ct.prototype.pointerUp=function(xt){Tt.prototype.pointerUp.call(this,xt),this.setSize()},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.visual&&fe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},Ct.prototype.setFillColor=function(xt){this.fillColor=xt,this.visual&&fe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(xt),this.stateChanged()},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.visual&&fe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.visual&&fe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ct.prototype.setOpacity=function(xt){this.opacity=xt,this.visual&&fe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Tt.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){var kt=xt;this.fillColor=kt.fillColor,this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.opacity=kt.opacity,this.createVisual(),Tt.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,kt){Tt.prototype.scale.call(this,xt,kt),this.setSize()},Ct.typeName="EllipseMarker",Ct.title="Ellipse marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Ct}(Pt),_e=function(Tt){function Ct(xt,kt,zt){return Tt.call(this,xt,kt,zt)||this}return ee(Ct,Tt),Object.defineProperty(Ct.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Ct.prototype.ownsTarget=function(xt){return!(!Tt.prototype.ownsTarget.call(this,xt)&&xt!==this.tip1&&xt!==this.tip2)},Ct.prototype.createTips=function(){this.tip1=fe.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(fe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=fe.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(fe.createTransform()),this.visual.appendChild(this.tip2)},Ct.prototype.pointerDown=function(xt,kt){Tt.prototype.pointerDown.call(this,xt,kt),this.state==="creating"&&this.createTips()},Ct.prototype.adjustVisual=function(){if(Tt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(fe.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),fe.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var xt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),kt=this.tip1.transform.baseVal.getItem(0);kt.setRotate(xt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(kt,0);var zt=this.tip2.transform.baseVal.getItem(0);zt.setRotate(xt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(zt,0)}},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Tt.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){Tt.prototype.restoreState.call(this,xt),this.createTips(),this.adjustVisual()},Ct.typeName="MeasurementMarker",Ct.title="Measurement marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',Ct}(Me),ve=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.strokePanel.colors=zt.defaultColorSet,Et.fillColor="transparent",Et}return ee(Ct,Tt),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Tt.prototype.getState.call(this);return xt.typeName=Ct.typeName,xt},Ct.typeName="EllipseFrameMarker",Ct.title="Ellipse frame marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Ct}(dn),Xe=function(){function Tt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Tt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Tt.prototype.addUndoStep=function(Ct){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ct)||(this.undoStack.push(Ct),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ct)&&this.redoStack.splice(0,this.redoStack.length))},Tt.prototype.replaceLastUndoStep=function(Ct){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ct)},Tt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Tt.prototype.undo=function(){if(this.undoStack.length>1){var Ct=this.undoStack.pop();return Ct!==void 0&&this.redoStack.push(Ct),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Tt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Tt}(),ke=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.curveX=0,Et.curveY=0,Et.manipulationStartCurveX=0,Et.manipulationStartCurveY=0,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.positionGrips=Et.positionGrips.bind(Et),Et.addControlGrips=Et.addControlGrips.bind(Et),Et.adjustVisual=Et.adjustVisual.bind(Et),Et.setupControlBox=Et.setupControlBox.bind(Et),Et.resize=Et.resize.bind(Et),Et.strokeColor=zt.defaultColor,Et.strokeWidth=zt.defaultStrokeWidth,Et.strokeDasharray=zt.defaultStrokeDasharray,Et.strokePanel=new nt("Line color",zt.defaultColorSet,zt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.strokeWidthPanel=new Vt("Line width",zt.defaultStrokeWidths,zt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Ut("Line style",zt.defaultStrokeDasharrays,zt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et}return ee(Ct,Tt),Ct.prototype.ownsTarget=function(xt){return!(!Tt.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.selectorCurve&&xt!==this.visibleCurve&&!this.curveGrip.ownsTarget(xt))},Ct.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ct.prototype.createVisual=function(){this.visual=fe.createGroup(),this.selectorCurve=fe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=fe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(xt,kt){Tt.prototype.pointerDown.call(this,xt,kt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xt.x,this.curveY=xt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(kt)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ct.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),fe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),fe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),fe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setupControlBox=function(){Tt.prototype.setupControlBox.call(this),this.curveControlLine1=fe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=fe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Ct.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Tt.prototype.addControlGrips.call(this)},Ct.prototype.positionGrips=function(){Tt.prototype.positionGrips.call(this);var xt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xt/2,this.curveY-xt/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Ct.prototype.manipulate=function(xt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xt.y-this.manipulationStartY),Tt.prototype.manipulate.call(this,xt)},Ct.prototype.resize=function(xt){this.activeGrip===this.curveGrip&&(this.curveX=xt.x,this.curveY=xt.y),Tt.prototype.resize.call(this,xt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.adjustVisual(),this.colorChanged(xt)},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.adjustVisual()},Ct.prototype.scale=function(xt,kt){this.curveX=this.curveX*xt,this.curveY=this.curveY*kt,Tt.prototype.scale.call(this,xt,kt)},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Tt.prototype.getState.call(this));return xt.typeName=Ct.typeName,xt},Ct.prototype.restoreState=function(xt){Tt.prototype.restoreState.call(this,xt);var kt=xt;this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.curveX=kt.curveX,this.curveY=kt.curveY,this.createVisual(),this.adjustVisual()},Ct.typeName="CurveMarker",Ct.title="Curve marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',Ct}(Jt),cn=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,kt,zt)||this;return Et.fillColor="transparent",Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.textColor="transparent",Et.fontSize="1rem",Et.isMoved=!1,Et.captionText="Caption",Et.PADDING=5,Et.captionBoxWidth=0,Et.captionBoxHeight=0,Et.strokeColor=zt.defaultColor,Et.strokeWidth=zt.defaultStrokeWidth,Et.strokeDasharray=zt.defaultStrokeDasharray,Et.fillColor=zt.defaultFillColor,Et.textColor=zt.defaultStrokeColor,Et.fontFamily=zt.defaultFontFamily,Et.fontSize=zt.defaultCaptionFontSize,Et.captionText=zt.defaultCaptionText,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setFillColor=Et.setFillColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.createVisual=Et.createVisual.bind(Et),Et.sizeCaption=Et.sizeCaption.bind(Et),Et.setCaptionText=Et.setCaptionText.bind(Et),Et.showTextEditor=Et.showTextEditor.bind(Et),Et.positionTextEditor=Et.positionTextEditor.bind(Et),Et.finishTextEditing=Et.finishTextEditing.bind(Et),Et.setFont=Et.setFont.bind(Et),Et.setTextColor=Et.setTextColor.bind(Et),Et.strokePanel=new nt("Line color",ce(zt.defaultColorSet,["transparent"]),Et.strokeColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.fillPanel=new nt("Fill color",ce(zt.defaultColorSet,["transparent"]),Et.fillColor,Ot),Et.fillPanel.onColorChanged=Et.setFillColor,Et.strokeWidthPanel=new Vt("Line width",zt.defaultStrokeWidths,zt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Ut("Line style",zt.defaultStrokeDasharrays,zt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et.fontFamilyPanel=new pe("Font",zt.defaultFontFamilies,zt.defaultFontFamily),Et.fontFamilyPanel.onFontChanged=Et.setFont,Et.textColorPanel=new nt("Text color",zt.defaultColorSet,Et.textColor,te),Et.textColorPanel.onColorChanged=Et.setTextColor,Et}return ee(Ct,Tt),Ct.prototype.ownsTarget=function(xt){return!(!Tt.prototype.ownsTarget.call(this,xt)&&xt!==this.visual&&xt!==this.frame&&xt!==this.captionBg&&xt!==this.captionElement)},Ct.prototype.createVisual=function(){this.visual=fe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=fe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=fe.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=fe.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Ct.prototype.setCaptionText=function(xt){this.captionText=xt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ct.prototype.pointerDown=function(xt,kt){Tt.prototype.pointerDown.call(this,xt,kt),this.isMoved=!1,this.pointerDownPoint=xt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xt),this._state="creating")},Ct.prototype.manipulate=function(xt){Tt.prototype.manipulate.call(this,xt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xt.x-this.pointerDownPoint.x)>5||Math.abs(xt.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(xt){Tt.prototype.resize.call(this,xt),this.setSize()},Ct.prototype.sizeCaption=function(){var xt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xt.width+2*this.PADDING,this.captionBoxHeight=xt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),fe.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),fe.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Ct.prototype.showTextEditor=function(){var xt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(kt){kt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(kt){kt.key==="Enter"&&xt.finishTextEditing(xt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(kt){kt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xt.finishTextEditing(xt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xt.finishTextEditing(xt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ct.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Ct.prototype.finishTextEditing=function(xt){this.setCaptionText(xt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ct.prototype.setFont=function(xt){this.captionElement&&fe.setAttributes(this.captionElement,[["font-family",xt]]),this.fontFamily=xt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ct.prototype.setTextColor=function(xt){this.captionElement&&fe.setAttributes(this.captionElement,[["fill",xt]]),this.textColor=xt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ct.prototype.setSize=function(){Tt.prototype.setSize.call(this),fe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ct.prototype.pointerUp=function(xt){Tt.prototype.pointerUp.call(this,xt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.dblClick=function(xt,kt){Tt.prototype.dblClick.call(this,xt,kt),this.showTextEditor()},Ct.prototype.setStrokeColor=function(xt){this.strokeColor=xt,this.frame&&fe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xt),this.stateChanged()},Ct.prototype.setFillColor=function(xt){this.fillColor=xt,this.captionBg&&fe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xt),this.stateChanged()},Ct.prototype.setStrokeWidth=function(xt){this.strokeWidth=xt,this.frame&&fe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(xt){this.strokeDasharray=xt,this.frame&&fe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var xt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Tt.prototype.getState.call(this));return xt.typeName=this.typeName,xt},Ct.prototype.restoreState=function(xt){var kt=xt;this.fillColor=kt.fillColor,this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.textColor=kt.textColor,this.fontFamily=kt.fontFamily,this.captionText=kt.captionText,this.fontSize=kt.fontSize,this.createVisual(),Tt.prototype.restoreState.call(this,xt),this.setSize()},Ct.prototype.scale=function(xt,kt){Tt.prototype.scale.call(this,xt,kt),this.setSize()},Ct.typeName="CaptionFrameMarker",Ct.title="Caption frame marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',Ct}(Pt),Ie=function(){function Tt(Ct,xt){xt===void 0&&(xt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ct,this.cancelable=xt}return Object.defineProperty(Tt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Tt.prototype.preventDefault=function(){this._defaultPrevented=!0},Tt}(),ae=function(Tt){function Ct(xt,kt,zt){var Et=Tt.call(this,xt,!1)||this;return Et.dataUrl=kt,Et.state=zt,Et}return ee(Ct,Tt),Ct}(Ie),Pe=function(Tt){function Ct(xt,kt,zt){zt===void 0&&(zt=!1);var Et=Tt.call(this,xt,zt)||this;return Et.marker=kt,Et}return ee(Ct,Tt),Ct}(Ie),sn=function(){function Tt(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Tt.prototype.addEventListener=function(Ct,xt){this[Ct].push(xt)},Tt.prototype.removeEventListener=function(Ct,xt){var kt=this[Ct].indexOf(xt);kt>-1&&this[Ct].splice(kt,1)},Tt}(),an=function(){function Tt(Ct){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new qt,this._isOpen=!1,this.undoRedoManager=new Xe,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new sn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Tt.instanceCounter++,this.styles=new Bt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ct,this.targetRoot=document.body,this.width=Ct.clientWidth,this.height=Ct.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Tt.prototype,"ALL_MARKER_TYPES",{get:function(){return[se,De,Fn,He,ve,dn,fn,Le,_e,on,Me,ke,cn]},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[se,De,Fn,He,dn,fn,Le]},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[se,De,Fn,He,fn]},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ct){var xt=this;this._availableMarkerTypes.splice(0),Ct.forEach(function(kt){if(typeof kt=="string"){var zt=xt.ALL_MARKER_TYPES.find(function(Et){return Et.typeName===kt});zt!==void 0&&xt._availableMarkerTypes.push(zt)}else xt._availableMarkerTypes.push(kt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ct){this._zoomLevel=Ct,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Tt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Tt.prototype.show=function(){var Ct=this;this.styles.styleSheetRoot===void 0&&Ce.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ce.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xt){return xt(new Ie(Ct))})},Tt.prototype.render=function(){return me(this,void 0,void 0,function(){var Ct;return he(this,function(xt){switch(xt.label){case 0:return this.setCurrentMarker(),(Ct=new Be).naturalSize=this.renderAtNaturalSize,Ct.imageType=this.renderImageType,Ct.imageQuality=this.renderImageQuality,Ct.markersOnly=this.renderMarkersOnly,Ct.width=this.renderWidth,Ct.height=this.renderHeight,[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xt.sent(),[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xt.sent()]}})})},Tt.prototype.close=function(Ct){var xt=this;if(Ct===void 0&&(Ct=!1),this.isOpen){var kt=!1;Ct||this.eventListeners.beforeclose.forEach(function(zt){var Et=new Ie(xt,!0);zt(Et),Et.defaultPrevented&&(kt=!0)}),kt||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(zt){return zt(new Ie(xt))}),this.detachEvents(),this._isOpen=!1)}},Tt.prototype.addMarkersToToolbar=function(){for(var Ct,xt=[],kt=0;kt<arguments.length;kt++)xt[kt]=arguments[kt];(Ct=this._availableMarkerTypes).push.apply(Ct,xt)},Tt.prototype.addRenderEventListener=function(Ct){this.addEventListener("render",function(xt){Ct(xt.dataUrl,xt.state)})},Tt.prototype.removeRenderEventListener=function(Ct){},Tt.prototype.addCloseEventListener=function(Ct){this.addEventListener("close",function(){Ct()})},Tt.prototype.removeCloseEventListener=function(Ct){},Tt.prototype.setupResizeObserver=function(){var Ct=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Ct.resize(Ct.target.clientWidth,Ct.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Ct.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Tt.prototype.onPopupTargetResize=function(){var Ct=1*this.target.clientWidth/this.target.clientHeight,xt=this.editorCanvas.clientWidth/Ct>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ct:this.editorCanvas.clientWidth,kt=xt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Ct;this.resize(xt,kt)},Tt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Tt.prototype.resize=function(Ct,xt){this._isResizing=!0;var kt=Ct/this.imageWidth,zt=xt/this.imageHeight;this.imageWidth=Math.round(Ct),this.imageHeight=Math.round(xt),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(kt,zt),this._isResizing=!1},Tt.prototype.scaleMarkers=function(Ct,xt){var kt,zt=this;this._currentMarker&&this._currentMarker instanceof He?this._currentMarker.scale(Ct,xt):(kt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Et){Et!==zt._currentMarker&&Et.scale(Ct,xt)}),kt!==void 0&&this.setCurrentMarker(kt)},Tt.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},Tt.prototype.setTopLeft=function(){var Ct=this.editingTarget.getBoundingClientRect(),xt=this.editorCanvas.getBoundingClientRect();this.left=Ct.left-xt.left,this.top=Ct.top-xt.top},Tt.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},Tt.prototype.addDefs=function(){for(var Ct,xt=[],kt=0;kt<arguments.length;kt++)xt[kt]=arguments[kt];this.defs=fe.createDefs(),this.addDefsToImage(),(Ct=this.defs).append.apply(Ct,xt)},Tt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Tt.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},Tt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Tt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Tt.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},Tt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Tt.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},Tt.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var Ct=document.createElement("a");Ct.href="https://markerjs.com/",Ct.target="_blank",Ct.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',Ct.title="Powered by marker.js",Ct.style.display="grid",Ct.style.alignItems="center",Ct.style.justifyItems="center",Ct.style.padding="3px",Ct.style.width="20px",Ct.style.height="20px",this.logoUI.appendChild(Ct),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Tt.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Tt.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Tt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Tt.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Ct=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ct+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Ge(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new bt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Tt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Tt.prototype.removeMarker=function(Ct){this.markerImage.removeChild(Ct.container),this.markers.indexOf(Ct)>-1&&this.markers.splice(this.markers.indexOf(Ct),1),Ct.dispose()},Tt.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Tt.prototype.toolbarButtonClicked=function(Ct,xt){if(Ct==="marker"&&xt!==void 0)this.createNewMarker(xt);else if(Ct==="action")switch(xt){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Tt.prototype.deleteSelectedMarker=function(){var Ct=this;if(this._currentMarker!==void 0){var xt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(zt){var Et=new Pe(Ct,Ct._currentMarker,!0);zt(Et),Et.defaultPrevented&&(xt=!0)}),!xt){var kt=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(zt){return zt(new Pe(Ct,kt))})}}},Tt.prototype.clear=function(){var Ct=this,xt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ae){var We=new Pe(Ct,void 0,!0);Ae(We),We.defaultPrevented&&(xt=!0)}),!xt)){this.setCurrentMarker();for(var kt=function(Ae){var We=zt.markers[Ae];zt.setCurrentMarker(zt.markers[Ae]),zt._currentMarker.dispose(),zt.markerImage.removeChild(zt._currentMarker.container),zt.markers.splice(zt.markers.indexOf(zt._currentMarker),1),zt.eventListeners.markerdelete.forEach(function(Ue){return Ue(new Pe(Ct,We))})},zt=this,Et=this.markers.length-1;Et>=0;Et--)kt(Et);this.addUndoStep()}},Object.defineProperty(Tt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Tt.prototype.showNotesEditor=function(){var Ct;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Ct=this._currentMarker.notes)!==null&&Ct!==void 0?Ct:"",this.overlayContainer.appendChild(this.notesArea))},Tt.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Tt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Tt.prototype.addUndoStep=function(){var Ct=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xt=this.getState(),kt=this.undoRedoManager.getLastUndoStep();if(!kt||kt.width===xt.width&&kt.height===xt.height){var zt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xt),zt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Et){return Et(new Ie(Ct))})}else this.undoRedoManager.replaceLastUndoStep(xt),this.eventListeners.statechange.forEach(function(Et){return Et(new Ie(Ct))})}},Tt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Tt.prototype.undoStep=function(){var Ct=this,xt=this.undoRedoManager.undo();xt!==void 0&&(this.restoreState(xt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(kt){return kt(new Ie(Ct))}))},Tt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Tt.prototype.redoStep=function(){var Ct=this,xt=this.undoRedoManager.redo();xt!==void 0&&(this.restoreState(xt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(kt){return kt(new Ie(Ct))}))},Tt.prototype.stepZoom=function(){var Ct=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Ct<this.zoomSteps.length-1?this.zoomSteps[Ct+1]:this.zoomSteps[0]},Tt.prototype.panTo=function(Ct){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Ct.x,top:this.prevPanPoint.y-Ct.y}),this.prevPanPoint=Ct},Tt.prototype.startRenderAndClose=function(){return me(this,void 0,void 0,function(){var Ct,xt,kt=this;return he(this,function(zt){switch(zt.label){case 0:return[4,this.render()];case 1:return Ct=zt.sent(),xt=this.getState(),this.eventListeners.render.forEach(function(Et){return Et(new ae(kt,Ct,xt))}),this.close(!0),[2]}})})},Tt.prototype.getState=function(Ct){Ct===!0&&this.setCurrentMarker();var xt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(kt){return xt.markers.push(kt.getState())}),xt},Tt.prototype.restoreState=function(Ct){var xt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Ct.markers.forEach(function(kt){var zt=xt._availableMarkerTypes.find(function(Ae){return Ae.typeName===kt.typeName});if(zt!==void 0){var Et=xt.addNewMarker(zt);Et.restoreState(kt),xt.markers.push(Et)}}),Ct.width&&Ct.height&&(Ct.width!==this.imageWidth||Ct.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Ct.width,this.imageHeight/Ct.height),this.eventListeners.restorestate.forEach(function(kt){return kt(new Ie(xt))})},Tt.prototype.addNewMarker=function(Ct){var xt=fe.createGroup();return this.markerImage.appendChild(xt),new Ct(xt,this.overlayContainer,this.settings)},Tt.prototype.createNewMarker=function(Ct){var xt,kt=this;(xt=typeof Ct=="string"?this._availableMarkerTypes.find(function(zt){return zt.typeName===Ct}):Ct)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(xt),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(xt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(zt){return zt(new Pe(kt,kt._currentMarker))}))},Tt.prototype.markerCreated=function(Ct){var xt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Ct),this.setCurrentMarker(Ct),Ct instanceof De&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(De):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(kt){return kt(new Pe(xt,xt._currentMarker))})},Tt.prototype.colorChanged=function(Ct){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Ct,this.settings.defaultStrokeColor=Ct)},Tt.prototype.fillColorChanged=function(Ct){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Ct)},Tt.prototype.markerStateChanged=function(Ct){var xt=this;this.eventListeners.markerchange.forEach(function(kt){return kt(new Pe(xt,Ct))})},Tt.prototype.setCurrentMarker=function(Ct){var xt=this;this._currentMarker!==Ct&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(kt){return kt(new Pe(xt,xt._currentMarker))})),this._currentMarker=Ct,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(kt){return kt(new Pe(xt,xt._currentMarker))}))},Tt.prototype.onPointerDown=function(Ct){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Ct.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var xt=this.markers.find(function(kt){return kt.ownsTarget(Ct.target)});xt!==void 0?(this.setCurrentMarker(xt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY),Ct.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Ct.clientX,y:Ct.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY))},Tt.prototype.onDblClick=function(Ct){if(this._isFocused||this.focus(),this.mode==="select"){var xt=this.markers.find(function(kt){return kt.ownsTarget(Ct.target)});xt!==void 0&&xt!==this._currentMarker&&this.setCurrentMarker(xt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY),Ct.target):this.setCurrentMarker()}},Tt.prototype.onPointerMove=function(Ct){this.touchPoints!==1&&Ct.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Ct.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY)):this.zoomLevel>1&&this.panTo({x:Ct.clientX,y:Ct.clientY}))},Tt.prototype.onPointerUp=function(Ct){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY)),this.isDragging=!1,this.addUndoStep()},Tt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Tt.prototype.onKeyUp=function(Ct){this._currentMarker===void 0||this.notesArea!==void 0||Ct.key!=="Delete"&&Ct.key!=="Backspace"||this.deleteSelectedMarker()},Tt.prototype.clientToLocalCoordinates=function(Ct,xt){var kt=this.markerImage.getBoundingClientRect();return{x:(Ct-kt.left)/this.zoomLevel,y:(xt-kt.top)/this.zoomLevel}},Tt.prototype.onWindowResize=function(){this.positionUI()},Tt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ct=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ct+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Tt.prototype.addLicenseKey=function(Ct){ue.addKey(Ct)},Tt.prototype.addEventListener=function(Ct,xt){this.eventListeners.addEventListener(Ct,xt)},Tt.prototype.removeEventListener=function(Ct,xt){this.eventListeners.removeEventListener(Ct,xt)},Tt.prototype.renderState=function(Ct){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ct),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Tt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Tt.prototype.focus=function(){var Ct=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xt){return xt(new Ie(Ct))}))},Tt.prototype.blur=function(){var Ct=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xt){return xt(new Ie(Ct))}))},Tt.instanceCounter=0,Tt}()},48365:function(xn,$n,Rt){"use strict";var St=Rt(61186),ee=Rt.n(St),me=Rt(90111),he=Rt.n(me),ce=Rt(58319),fe=Rt.n(ce),ue=Rt(23250),Be=Rt.n(ue),Ce=Rt(74959),Bt=Rt.n(Ce),je=Rt(10238),le=Rt.n(je),Ge=Rt(33656),bt=Rt.n(Ge);ee().extend(bt()),ee().extend(le()),ee().extend(he()),ee().extend(fe()),ee().extend(Be()),ee().extend(Bt()),ee().extend(function(pt,vt){var Pt=vt.prototype,Dt=Pt.format;Pt.format=function(Ut){var se=(Ut||"").replace("Wo","wo");return Dt.bind(this)(se)}});var et={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},nt=function(vt){var Pt=et[vt];return Pt||vt.split("_")[0]},ct=function(){},lt={getNow:function(){var vt=ee()();return typeof vt.tz=="function"?vt.tz():vt},getFixedDate:function(vt){return ee()(vt,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(vt){return vt.endOf("month")},getWeekDay:function(vt){var Pt=vt.locale("en");return Pt.weekday()+Pt.localeData().firstDayOfWeek()},getYear:function(vt){return vt.year()},getMonth:function(vt){return vt.month()},getDate:function(vt){return vt.date()},getHour:function(vt){return vt.hour()},getMinute:function(vt){return vt.minute()},getSecond:function(vt){return vt.second()},getMillisecond:function(vt){return vt.millisecond()},addYear:function(vt,Pt){return vt.add(Pt,"year")},addMonth:function(vt,Pt){return vt.add(Pt,"month")},addDate:function(vt,Pt){return vt.add(Pt,"day")},setYear:function(vt,Pt){return vt.year(Pt)},setMonth:function(vt,Pt){return vt.month(Pt)},setDate:function(vt,Pt){return vt.date(Pt)},setHour:function(vt,Pt){return vt.hour(Pt)},setMinute:function(vt,Pt){return vt.minute(Pt)},setSecond:function(vt,Pt){return vt.second(Pt)},setMillisecond:function(vt,Pt){return vt.millisecond(Pt)},isAfter:function(vt,Pt){return vt.isAfter(Pt)},isValidate:function(vt){return vt.isValid()},locale:{getWeekFirstDay:function(vt){return ee()().locale(nt(vt)).localeData().firstDayOfWeek()},getWeekFirstDate:function(vt,Pt){return Pt.locale(nt(vt)).weekday(0)},getWeek:function(vt,Pt){return Pt.locale(nt(vt)).week()},getShortWeekDays:function(vt){return ee()().locale(nt(vt)).localeData().weekdaysMin()},getShortMonths:function(vt){return ee()().locale(nt(vt)).localeData().monthsShort()},format:function(vt,Pt,Dt){return Pt.locale(nt(vt)).format(Dt)},parse:function(vt,Pt,Dt){for(var Vt=nt(vt),Ut=0;Ut<Dt.length;Ut+=1){var se=Dt[Ut],qt=Pt;if(se.includes("wo")||se.includes("Wo")){for(var Jt=qt.split("-")[0],Me=qt.split("-")[1],pe=ee()(Jt,"YYYY").startOf("year").locale(Vt),He=0;He<=52;He+=1){var De=pe.add(He,"week");if(De.format("Wo")===Me)return De}return ct(),null}var tn=ee()(qt,se,!0).locale(Vt);if(tn.isValid())return tn}return Pt&&ct(),null}}};$n.Z=lt},8571:function(xn,$n,Rt){"use strict";Rt.d($n,{Sq:function(){return Co},ZP:function(){return Di}});var St=Rt(67711),ee=Rt(15142),me=Rt(98506),he=Rt(16886),ce=Rt(70425),fe=Rt(34280),ue=Rt(2738),Be=Rt(26112),Ce=Rt(48736),Bt=Rt(59301),je=Rt(52873),le=Rt(65030),Ge=Rt(92310),bt=Rt.n(Ge);function et(Ft,re){return Ft!==void 0?Ft:re?"bottomRight":"bottomLeft"}var nt=Bt.createContext(null),ct=nt,lt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function pt(Ft){var re=Ft.popupElement,Yt=Ft.popupStyle,de=Ft.popupClassName,ge=Ft.popupAlign,Oe=Ft.transitionName,ze=Ft.getPopupContainer,Je=Ft.children,kn=Ft.range,Dn=Ft.placement,$e=Ft.builtinPlacements,Zn=$e===void 0?lt:$e,qn=Ft.direction,oe=Ft.visible,Hn=Ft.onClose,Qn=Bt.useContext(ct),ni=Qn.prefixCls,In="".concat(ni,"-dropdown"),Ti=et(Dn,qn==="rtl");return Bt.createElement(le.Z,{showAction:[],hideAction:["click"],popupPlacement:Ti,builtinPlacements:Zn,prefixCls:In,popupTransitionName:Oe,popup:re,popupAlign:ge,popupVisible:oe,popupClassName:bt()(de,(0,je.Z)((0,je.Z)({},"".concat(In,"-range"),kn),"".concat(In,"-rtl"),qn==="rtl")),popupStyle:Yt,stretch:"minWidth",getPopupContainer:ze,onPopupVisibleChange:function(pi){pi||Hn()}},Je)}var vt=pt;function Pt(Ft,re){for(var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",de=String(Ft);de.length<re;)de="".concat(Yt).concat(de);return de}function Dt(Ft){return Ft==null?[]:Array.isArray(Ft)?Ft:[Ft]}function Vt(Ft,re,Yt){var de=(0,ee.Z)(Ft);return de[re]=Yt,de}function Ut(Ft,re){var Yt={},de=re||Object.keys(Ft);return de.forEach(function(ge){Ft[ge]!==void 0&&(Yt[ge]=Ft[ge])}),Yt}function se(Ft,re,Yt){if(Yt)return Yt;switch(Ft){case"time":return re.fieldTimeFormat;case"datetime":return re.fieldDateTimeFormat;case"month":return re.fieldMonthFormat;case"year":return re.fieldYearFormat;case"quarter":return re.fieldQuarterFormat;case"week":return re.fieldWeekFormat;default:return re.fieldDateFormat}}function qt(Ft,re,Yt){var de=Yt!==void 0?Yt:re[re.length-1],ge=re.find(function(Oe){return Ft[Oe]});return de!==ge?Ft[ge]:void 0}function Jt(Ft){return Ut(Ft,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Me(Ft,re,Yt,de){var ge=Bt.useMemo(function(){return Ft||function(ze,Je){var kn=ze;return re&&Je.type==="date"?re(kn,Je.today):Yt&&Je.type==="month"?Yt(kn,Je.locale):Je.originNode}},[Ft,Yt,re]),Oe=Bt.useCallback(function(ze,Je){return ge(ze,(0,me.Z)((0,me.Z)({},Je),{},{range:de}))},[ge,de]);return Oe}function pe(Ft,re){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],de=Bt.useState([!1,!1]),ge=(0,he.Z)(de,2),Oe=ge[0],ze=ge[1],Je=function($e,Zn){ze(function(qn){return Vt(qn,Zn,$e)})},kn=Bt.useMemo(function(){return Oe.map(function(Dn,$e){if(Dn)return!0;var Zn=Ft[$e];return Zn?!!(!Yt[$e]&&!Zn||Zn&&re(Zn,{activeIndex:$e})):!1})},[Ft,Oe,re,Yt]);return[kn,Je]}function He(Ft,re,Yt,de,ge){var Oe="",ze=[];return Ft&&ze.push(ge?"hh":"HH"),re&&ze.push("mm"),Yt&&ze.push("ss"),Oe=ze.join(":"),de&&(Oe+=".SSS"),ge&&(Oe+=" A"),Oe}function De(Ft,re,Yt,de,ge,Oe){var ze=Ft.fieldDateTimeFormat,Je=Ft.fieldDateFormat,kn=Ft.fieldTimeFormat,Dn=Ft.fieldMonthFormat,$e=Ft.fieldYearFormat,Zn=Ft.fieldWeekFormat,qn=Ft.fieldQuarterFormat,oe=Ft.yearFormat,Hn=Ft.cellYearFormat,Qn=Ft.cellQuarterFormat,ni=Ft.dayFormat,In=Ft.cellDateFormat,Ti=He(re,Yt,de,ge,Oe);return(0,me.Z)((0,me.Z)({},Ft),{},{fieldDateTimeFormat:ze||"YYYY-MM-DD ".concat(Ti),fieldDateFormat:Je||"YYYY-MM-DD",fieldTimeFormat:kn||Ti,fieldMonthFormat:Dn||"YYYY-MM",fieldYearFormat:$e||"YYYY",fieldWeekFormat:Zn||"gggg-wo",fieldQuarterFormat:qn||"YYYY-[Q]Q",yearFormat:oe||"YYYY",cellYearFormat:Hn||"YYYY",cellQuarterFormat:Qn||"[Q]Q",cellDateFormat:In||ni||"D"})}function tn(Ft,re){var Yt=re.showHour,de=re.showMinute,ge=re.showSecond,Oe=re.showMillisecond,ze=re.use12Hours;return Bt.useMemo(function(){return De(Ft,Yt,de,ge,Oe,ze)},[Ft,Yt,de,ge,Oe,ze])}var Fn=Rt(26420);function on(Ft,re,Yt){return Yt!=null?Yt:re.some(function(de){return Ft.includes(de)})}var pn=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function fn(Ft){var re=Ut(Ft,pn),Yt=Ft.format,de=Ft.picker,ge=null;return Yt&&(ge=Yt,Array.isArray(ge)&&(ge=ge[0]),ge=(0,Fn.Z)(ge)==="object"?ge.format:ge),de==="time"&&(re.format=ge),[re,ge]}function te(Ft){return Ft&&typeof Ft=="string"}function Ot(Ft,re,Yt,de){return[Ft,re,Yt,de].some(function(ge){return ge!==void 0})}function Le(Ft,re,Yt,de,ge){var Oe=re,ze=Yt,Je=de;if(!Ft&&!Oe&&!ze&&!Je&&!ge)Oe=!0,ze=!0,Je=!0;else if(Ft){var kn,Dn,$e,Zn=[Oe,ze,Je].some(function(Hn){return Hn===!1}),qn=[Oe,ze,Je].some(function(Hn){return Hn===!0}),oe=Zn?!0:!qn;Oe=(kn=Oe)!==null&&kn!==void 0?kn:oe,ze=(Dn=ze)!==null&&Dn!==void 0?Dn:oe,Je=($e=Je)!==null&&$e!==void 0?$e:oe}return[Oe,ze,Je,ge]}function dn(Ft){var re=Ft.showTime,Yt=fn(Ft),de=(0,he.Z)(Yt,2),ge=de[0],Oe=de[1],ze=re&&(0,Fn.Z)(re)==="object"?re:{},Je=(0,me.Z)((0,me.Z)({defaultOpenValue:ze.defaultOpenValue||ze.defaultValue},ge),ze),kn=Je.showMillisecond,Dn=Je.showHour,$e=Je.showMinute,Zn=Je.showSecond,qn=Ot(Dn,$e,Zn,kn),oe=Le(qn,Dn,$e,Zn,kn),Hn=(0,he.Z)(oe,3);return Dn=Hn[0],$e=Hn[1],Zn=Hn[2],[Je,(0,me.Z)((0,me.Z)({},Je),{},{showHour:Dn,showMinute:$e,showSecond:Zn,showMillisecond:kn}),Je.format,Oe]}function _e(Ft,re,Yt,de,ge){var Oe=Ft==="time";if(Ft==="datetime"||Oe){for(var ze=de,Je=se(Ft,ge,null),kn=Je,Dn=[re,Yt],$e=0;$e<Dn.length;$e+=1){var Zn=Dt(Dn[$e])[0];if(te(Zn)){kn=Zn;break}}var qn=ze.showHour,oe=ze.showMinute,Hn=ze.showSecond,Qn=ze.showMillisecond,ni=ze.use12Hours,In=on(kn,["a","A","LT","LLL","LTS"],ni),Ti=Ot(qn,oe,Hn,Qn);Ti||(qn=on(kn,["H","h","k","LT","LLL"]),oe=on(kn,["m","LT","LLL"]),Hn=on(kn,["s","LTS"]),Qn=on(kn,["SSS"]));var wi=Le(Ti,qn,oe,Hn,Qn),pi=(0,he.Z)(wi,3);qn=pi[0],oe=pi[1],Hn=pi[2];var ai=re||He(qn,oe,Hn,Qn,In);return(0,me.Z)((0,me.Z)({},ze),{},{format:ai,showHour:qn,showMinute:oe,showSecond:Hn,showMillisecond:Qn,use12Hours:In})}return null}function ve(Ft,re,Yt){if(re===!1)return null;var de=re&&(0,Fn.Z)(re)==="object"?re:{};return de.clearIcon||Yt||Bt.createElement("span",{className:"".concat(Ft,"-clear-btn")})}var Xe=7;function ke(Ft,re,Yt){return!Ft&&!re||Ft===re?!0:!Ft||!re?!1:Yt()}function cn(Ft,re,Yt){return ke(re,Yt,function(){var de=Math.floor(Ft.getYear(re)/10),ge=Math.floor(Ft.getYear(Yt)/10);return de===ge})}function Ie(Ft,re,Yt){return ke(re,Yt,function(){return Ft.getYear(re)===Ft.getYear(Yt)})}function ae(Ft,re){var Yt=Math.floor(Ft.getMonth(re)/3);return Yt+1}function Pe(Ft,re,Yt){return ke(re,Yt,function(){return Ie(Ft,re,Yt)&&ae(Ft,re)===ae(Ft,Yt)})}function sn(Ft,re,Yt){return ke(re,Yt,function(){return Ie(Ft,re,Yt)&&Ft.getMonth(re)===Ft.getMonth(Yt)})}function an(Ft,re,Yt){return ke(re,Yt,function(){return Ie(Ft,re,Yt)&&sn(Ft,re,Yt)&&Ft.getDate(re)===Ft.getDate(Yt)})}function Tt(Ft,re,Yt){return ke(re,Yt,function(){return Ft.getHour(re)===Ft.getHour(Yt)&&Ft.getMinute(re)===Ft.getMinute(Yt)&&Ft.getSecond(re)===Ft.getSecond(Yt)})}function Ct(Ft,re,Yt){return ke(re,Yt,function(){return an(Ft,re,Yt)&&Tt(Ft,re,Yt)&&Ft.getMillisecond(re)===Ft.getMillisecond(Yt)})}function xt(Ft,re,Yt,de){return ke(Yt,de,function(){var ge=Ft.locale.getWeekFirstDate(re,Yt),Oe=Ft.locale.getWeekFirstDate(re,de);return Ie(Ft,ge,Oe)&&Ft.locale.getWeek(re,Yt)===Ft.locale.getWeek(re,de)})}function kt(Ft,re,Yt,de,ge){switch(ge){case"date":return an(Ft,Yt,de);case"week":return xt(Ft,re.locale,Yt,de);case"month":return sn(Ft,Yt,de);case"quarter":return Pe(Ft,Yt,de);case"year":return Ie(Ft,Yt,de);case"decade":return cn(Ft,Yt,de);case"time":return Tt(Ft,Yt,de);default:return Ct(Ft,Yt,de)}}function zt(Ft,re,Yt,de){return!re||!Yt||!de?!1:Ft.isAfter(de,re)&&Ft.isAfter(Yt,de)}function Et(Ft,re,Yt,de,ge){return kt(Ft,re,Yt,de,ge)?!0:Ft.isAfter(Yt,de)}function Ae(Ft,re,Yt){var de=re.locale.getWeekFirstDay(Ft),ge=re.setDate(Yt,1),Oe=re.getWeekDay(ge),ze=re.addDate(ge,de-Oe);return re.getMonth(ze)===re.getMonth(Yt)&&re.getDate(ze)>1&&(ze=re.addDate(ze,-7)),ze}function We(Ft,re){var Yt=re.generateConfig,de=re.locale,ge=re.format;return Ft?typeof ge=="function"?ge(Ft):Yt.locale.format(de.locale,Ft,ge):""}function Ue(Ft,re,Yt){var de=re,ge=["getHour","getMinute","getSecond","getMillisecond"],Oe=["setHour","setMinute","setSecond","setMillisecond"];return Oe.forEach(function(ze,Je){Yt?de=Ft[ze](de,Ft[ge[Je]](Yt)):de=Ft[ze](de,0)}),de}function jn(Ft,re,Yt,de,ge){var Oe=(0,ce.zX)(function(ze,Je){return!!(Yt&&Yt(ze,Je)||de&&Ft.isAfter(de,ze)&&!kt(Ft,re,de,ze,Je.type)||ge&&Ft.isAfter(ze,ge)&&!kt(Ft,re,ge,ze,Je.type))});return Oe}function Gn(Ft,re,Yt){return Bt.useMemo(function(){var de=se(Ft,re,Yt),ge=Dt(de),Oe=ge[0],ze=(0,Fn.Z)(Oe)==="object"&&Oe.type==="mask"?Oe.format:null;return[ge.map(function(Je){return typeof Je=="string"||typeof Je=="function"?Je:Je.format}),ze]},[Ft,re,Yt])}function Ke(Ft,re,Yt){return typeof Ft[0]=="function"||Yt?!0:re}function ri(Ft,re,Yt,de){var ge=(0,ce.zX)(function(Oe,ze){var Je=(0,me.Z)({type:re},ze);if(delete Je.activeIndex,!Ft.isValidate(Oe)||Yt&&Yt(Oe,Je))return!0;if((re==="date"||re==="time")&&de){var kn,Dn=ze&&ze.activeIndex===1?"end":"start",$e=((kn=de.disabledTime)===null||kn===void 0?void 0:kn.call(de,Oe,Dn,{from:Je.from}))||{},Zn=$e.disabledHours,qn=$e.disabledMinutes,oe=$e.disabledSeconds,Hn=$e.disabledMilliseconds,Qn=de.disabledHours,ni=de.disabledMinutes,In=de.disabledSeconds,Ti=Zn||Qn,wi=qn||ni,pi=oe||In,ai=Ft.getHour(Oe),ui=Ft.getMinute(Oe),Li=Ft.getSecond(Oe),vr=Ft.getMillisecond(Oe);if(Ti&&Ti().includes(ai)||wi&&wi(ai).includes(ui)||pi&&pi(ai,ui).includes(Li)||Hn&&Hn(ai,ui,Li).includes(vr))return!0}return!1});return ge}function Sn(Ft){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=Bt.useMemo(function(){var de=Ft&&Dt(Ft);return re&&de&&(de[1]=de[1]||de[0]),de},[Ft,re]);return Yt}function hi(Ft,re){var Yt=Ft.generateConfig,de=Ft.locale,ge=Ft.picker,Oe=ge===void 0?"date":ge,ze=Ft.prefixCls,Je=ze===void 0?"rc-picker":ze,kn=Ft.styles,Dn=kn===void 0?{}:kn,$e=Ft.classNames,Zn=$e===void 0?{}:$e,qn=Ft.order,oe=qn===void 0?!0:qn,Hn=Ft.components,Qn=Hn===void 0?{}:Hn,ni=Ft.inputRender,In=Ft.allowClear,Ti=Ft.clearIcon,wi=Ft.needConfirm,pi=Ft.multiple,ai=Ft.format,ui=Ft.inputReadOnly,Li=Ft.disabledDate,vr=Ft.minDate,ir=Ft.maxDate,lr=Ft.showTime,Yn=Ft.value,Lr=Ft.defaultValue,sr=Ft.pickerValue,tr=Ft.defaultPickerValue,Vi=Sn(Yn),Pr=Sn(Lr),gn=Sn(sr),li=Sn(tr),yi=Oe==="date"&&lr?"datetime":Oe,Ci=yi==="time"||yi==="datetime",mi=Ci||pi,vi=wi!=null?wi:Ci,Tn=dn(Ft),Ji=(0,he.Z)(Tn,4),Er=Ji[0],Mr=Ji[1],rr=Ji[2],jr=Ji[3],kr=tn(de,Mr),Hr=Bt.useMemo(function(){return _e(yi,rr,jr,Er,kr)},[yi,rr,jr,Er,kr]),Ur=Bt.useMemo(function(){return(0,me.Z)((0,me.Z)({},Ft),{},{prefixCls:Je,locale:kr,picker:Oe,styles:Dn,classNames:Zn,order:oe,components:(0,me.Z)({input:ni},Qn),clearIcon:ve(Je,In,Ti),showTime:Hr,value:Vi,defaultValue:Pr,pickerValue:gn,defaultPickerValue:li},re==null?void 0:re())},[Ft]),oo=Gn(yi,kr,ai),So=(0,he.Z)(oo,2),mo=So[0],Xo=So[1],io=Ke(mo,ui,pi),Ko=jn(Yt,de,Li,vr,ir),uo=ri(Yt,Oe,Ko,Hr),To=Bt.useMemo(function(){return(0,me.Z)((0,me.Z)({},Ur),{},{needConfirm:vi,inputReadOnly:io,disabledDate:Ko})},[Ur,vi,io,Ko]);return[To,yi,mi,mo,Xo,uo]}var ti=Rt(16089);function Wn(Ft,re,Yt){var de=(0,ce.C8)(re,{value:Ft}),ge=(0,he.Z)(de,2),Oe=ge[0],ze=ge[1],Je=Bt.useRef(Ft),kn=Bt.useRef(),Dn=function(){ti.Z.cancel(kn.current)},$e=(0,ce.zX)(function(){ze(Je.current),Yt&&Oe!==Je.current&&Yt(Je.current)}),Zn=(0,ce.zX)(function(qn,oe){Dn(),Je.current=qn,qn||oe?$e():kn.current=(0,ti.Z)($e)});return Bt.useEffect(function(){return Dn},[]),[Oe,Zn]}function bi(Ft,re){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],de=arguments.length>3?arguments[3]:void 0,ge=Yt.every(function($e){return $e})?!1:Ft,Oe=Wn(ge,re||!1,de),ze=(0,he.Z)(Oe,2),Je=ze[0],kn=ze[1];function Dn($e){var Zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!Zn.inherit||Je)&&kn($e,Zn.force)}return[Je,Dn]}function Ei(Ft){var re=Bt.useRef();return Bt.useImperativeHandle(Ft,function(){var Yt;return{nativeElement:(Yt=re.current)===null||Yt===void 0?void 0:Yt.nativeElement,focus:function(ge){var Oe;(Oe=re.current)===null||Oe===void 0||Oe.focus(ge)},blur:function(){var ge;(ge=re.current)===null||ge===void 0||ge.blur()}}}),re}function Pi(Ft,re){return Bt.useMemo(function(){return Ft||(re?((0,Ce.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(re).map(function(Yt){var de=(0,he.Z)(Yt,2),ge=de[0],Oe=de[1];return{label:ge,value:Oe}})):[])},[Ft,re])}function An(Ft,re){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,de=Bt.useRef(re);de.current=re,(0,fe.o)(function(){if(Ft)de.current(Ft);else{var ge=(0,ti.Z)(function(){de.current(Ft)},Yt);return function(){ti.Z.cancel(ge)}}},[Ft])}function ei(Ft){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,de=Bt.useState(0),ge=(0,he.Z)(de,2),Oe=ge[0],ze=ge[1],Je=Bt.useState(!1),kn=(0,he.Z)(Je,2),Dn=kn[0],$e=kn[1],Zn=Bt.useRef([]),qn=Bt.useRef(null),oe=Bt.useRef(null),Hn=function(pi){qn.current=pi},Qn=function(pi){return qn.current===pi},ni=function(pi){$e(pi)},In=function(pi){return pi&&(oe.current=pi),oe.current},Ti=function(pi){var ai=Zn.current,ui=new Set(ai.filter(function(vr){return pi[vr]||re[vr]})),Li=ai[ai.length-1]===0?1:0;return ui.size>=2||Ft[Li]?null:Li};return An(Dn||Yt,function(){Dn||(Zn.current=[],Hn(null))}),Bt.useEffect(function(){Dn&&Zn.current.push(Oe)},[Dn,Oe]),[Dn,ni,In,Oe,ze,Ti,Zn.current,Hn,Qn]}function gr(Ft,re,Yt,de,ge,Oe){var ze=Yt[Yt.length-1],Je=function(Dn,$e){var Zn=(0,he.Z)(Ft,2),qn=Zn[0],oe=Zn[1],Hn=(0,me.Z)((0,me.Z)({},$e),{},{from:qt(Ft,Yt)});return ze===1&&re[0]&&qn&&!kt(de,ge,qn,Dn,Hn.type)&&de.isAfter(qn,Dn)||ze===0&&re[1]&&oe&&!kt(de,ge,oe,Dn,Hn.type)&&de.isAfter(Dn,oe)?!0:Oe==null?void 0:Oe(Dn,Hn)};return Je}function dr(Ft,re,Yt,de){switch(re){case"date":case"week":return Ft.addMonth(Yt,de);case"month":case"quarter":return Ft.addYear(Yt,de);case"year":return Ft.addYear(Yt,de*10);case"decade":return Ft.addYear(Yt,de*100);default:return Yt}}var Sr=[];function _r(Ft,re,Yt,de,ge,Oe,ze,Je){var kn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Sr,Dn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Sr,$e=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Sr,Zn=arguments.length>11?arguments[11]:void 0,qn=arguments.length>12?arguments[12]:void 0,oe=arguments.length>13?arguments[13]:void 0,Hn=ze==="time",Qn=Oe||0,ni=function(gn){var li=Ft.getNow();return Hn&&(li=Ue(Ft,li)),kn[gn]||Yt[gn]||li},In=(0,he.Z)(Dn,2),Ti=In[0],wi=In[1],pi=(0,ce.C8)(function(){return ni(0)},{value:Ti}),ai=(0,he.Z)(pi,2),ui=ai[0],Li=ai[1],vr=(0,ce.C8)(function(){return ni(1)},{value:wi}),ir=(0,he.Z)(vr,2),lr=ir[0],Yn=ir[1],Lr=Bt.useMemo(function(){var Pr=[ui,lr][Qn];return Hn?Pr:Ue(Ft,Pr,$e[Qn])},[Hn,ui,lr,Qn,Ft,$e]),sr=function(gn){var li=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",yi=[Li,Yn][Qn];yi(gn);var Ci=[ui,lr];Ci[Qn]=gn,Zn&&(!kt(Ft,re,ui,Ci[0],ze)||!kt(Ft,re,lr,Ci[1],ze))&&Zn(Ci,{source:li,range:Qn===1?"end":"start",mode:de})},tr=function(gn,li){if(Je){var yi={date:"month",week:"month",month:"year",quarter:"year"},Ci=yi[ze];if(Ci&&!kt(Ft,re,gn,li,Ci))return dr(Ft,ze,li,-1);if(ze==="year"&&gn){var mi=Math.floor(Ft.getYear(gn)/10),vi=Math.floor(Ft.getYear(li)/10);if(mi!==vi)return dr(Ft,ze,li,-1)}}return li},Vi=Bt.useRef(null);return(0,fe.Z)(function(){if(ge&&!kn[Qn]){var Pr=Hn?null:Ft.getNow();if(Vi.current!==null&&Vi.current!==Qn?Pr=[ui,lr][Qn^1]:Yt[Qn]?Pr=Qn===0?Yt[0]:tr(Yt[0],Yt[1]):Yt[Qn^1]&&(Pr=Yt[Qn^1]),Pr){qn&&Ft.isAfter(qn,Pr)&&(Pr=qn);var gn=Je?dr(Ft,ze,Pr,1):Pr;oe&&Ft.isAfter(gn,oe)&&(Pr=Je?dr(Ft,ze,oe,-1):oe),sr(Pr,"reset")}}},[ge,Qn,Yt[Qn]]),Bt.useEffect(function(){ge?Vi.current=Qn:Vi.current=null},[ge,Qn]),(0,fe.Z)(function(){ge&&kn&&kn[Qn]&&sr(kn[Qn],"reset")},[ge,Qn]),[Lr,sr]}function cr(Ft,re){var Yt=Bt.useRef(Ft),de=Bt.useState({}),ge=(0,he.Z)(de,2),Oe=ge[1],ze=function(Dn){return Dn&&re!==void 0?re:Yt.current},Je=function(Dn){Yt.current=Dn,Oe({})};return[ze,Je,ze(!0)]}var jo=[];function Yo(Ft,re,Yt){var de=function(ze){return ze.map(function(Je){return We(Je,{generateConfig:Ft,locale:re,format:Yt[0]})})},ge=function(ze,Je){for(var kn=Math.max(ze.length,Je.length),Dn=-1,$e=0;$e<kn;$e+=1){var Zn=ze[$e]||null,qn=Je[$e]||null;if(Zn!==qn&&!Ct(Ft,Zn,qn)){Dn=$e;break}}return[Dn<0,Dn!==0]};return[de,ge]}function ko(Ft,re){return(0,ee.Z)(Ft).sort(function(Yt,de){return re.isAfter(Yt,de)?1:-1})}function $o(Ft){var re=cr(Ft),Yt=(0,he.Z)(re,2),de=Yt[0],ge=Yt[1],Oe=(0,ce.zX)(function(){ge(Ft)});return Bt.useEffect(function(){Oe()},[Ft]),[de,ge]}function ms(Ft,re,Yt,de,ge,Oe,ze,Je,kn){var Dn=(0,ce.C8)(Oe,{value:ze}),$e=(0,he.Z)(Dn,2),Zn=$e[0],qn=$e[1],oe=Zn||jo,Hn=$o(oe),Qn=(0,he.Z)(Hn,2),ni=Qn[0],In=Qn[1],Ti=Yo(Ft,re,Yt),wi=(0,he.Z)(Ti,2),pi=wi[0],ai=wi[1],ui=(0,ce.zX)(function(vr){var ir=(0,ee.Z)(vr);if(de)for(var lr=0;lr<2;lr+=1)ir[lr]=ir[lr]||null;else ge&&(ir=ko(ir.filter(function(Pr){return Pr}),Ft));var Yn=ai(ni(),ir),Lr=(0,he.Z)(Yn,2),sr=Lr[0],tr=Lr[1];if(!sr&&(In(ir),Je)){var Vi=pi(ir);Je(ir,Vi,{range:tr?"end":"start"})}}),Li=function(){kn&&kn(ni())};return[oe,qn,ni,ui,Li]}function Ho(Ft,re,Yt,de,ge,Oe,ze,Je,kn,Dn){var $e=Ft.generateConfig,Zn=Ft.locale,qn=Ft.picker,oe=Ft.onChange,Hn=Ft.allowEmpty,Qn=Ft.order,ni=Oe.some(function(sr){return sr})?!1:Qn,In=Yo($e,Zn,ze),Ti=(0,he.Z)(In,2),wi=Ti[0],pi=Ti[1],ai=cr(re),ui=(0,he.Z)(ai,2),Li=ui[0],vr=ui[1],ir=(0,ce.zX)(function(){vr(re)});Bt.useEffect(function(){ir()},[re]);var lr=(0,ce.zX)(function(sr){var tr=sr===null,Vi=(0,ee.Z)(sr||Li());if(tr)for(var Pr=Math.max(Oe.length,Vi.length),gn=0;gn<Pr;gn+=1)Oe[gn]||(Vi[gn]=null);ni&&Vi[0]&&Vi[1]&&(Vi=ko(Vi,$e)),ge(Vi);var li=Vi,yi=(0,he.Z)(li,2),Ci=yi[0],mi=yi[1],vi=!Ci,Tn=!mi,Ji=Hn?(!vi||Hn[0])&&(!Tn||Hn[1]):!0,Er=!Qn||vi||Tn||kt($e,Zn,Ci,mi,qn)||$e.isAfter(mi,Ci),Mr=(Oe[0]||!Ci||!Dn(Ci,{activeIndex:0}))&&(Oe[1]||!mi||!Dn(mi,{from:Ci,activeIndex:1})),rr=tr||Ji&&Er&&Mr;if(rr){Yt(Vi);var jr=pi(Vi,re),kr=(0,he.Z)(jr,1),Hr=kr[0];oe&&!Hr&&oe(tr&&Vi.every(function(Ur){return!Ur})?null:Vi,wi(Vi))}return rr}),Yn=(0,ce.zX)(function(sr,tr){var Vi=Vt(Li(),sr,de()[sr]);vr(Vi),tr&&lr()}),Lr=!Je&&!kn;return An(!Lr,function(){Lr&&(lr(),ge(re),ir())},2),[Yn,lr]}function Go(Ft,re,Yt,de,ge){return re!=="date"&&re!=="time"?!1:Yt!==void 0?Yt:de!==void 0?de:!ge&&(Ft==="date"||Ft==="time")}var nr=Rt(29301);function lo(Ft,re,Yt,de,ge,Oe){var ze=Ft;function Je(Zn,qn,oe){var Hn=Oe[Zn](ze),Qn=oe.find(function(wi){return wi.value===Hn});if(!Qn||Qn.disabled){var ni=oe.filter(function(wi){return!wi.disabled}),In=(0,ee.Z)(ni).reverse(),Ti=In.find(function(wi){return wi.value<=Hn})||ni[0];Ti&&(Hn=Ti.value,ze=Oe[qn](ze,Hn))}return Hn}var kn=Je("getHour","setHour",re()),Dn=Je("getMinute","setMinute",Yt(kn)),$e=Je("getSecond","setSecond",de(kn,Dn));return Je("getMillisecond","setMillisecond",ge(kn,Dn,$e)),ze}function Lt(){return[]}function Rn(Ft,re){for(var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,de=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ge=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Oe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,ze=[],Je=Yt>=1?Yt|0:1,kn=Ft;kn<=re;kn+=Je){var Dn=ge.includes(kn);(!Dn||!de)&&ze.push({label:Pt(kn,Oe),value:kn,disabled:Dn})}return ze}function ii(Ft){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Yt=arguments.length>2?arguments[2]:void 0,de=re||{},ge=de.use12Hours,Oe=de.hourStep,ze=Oe===void 0?1:Oe,Je=de.minuteStep,kn=Je===void 0?1:Je,Dn=de.secondStep,$e=Dn===void 0?1:Dn,Zn=de.millisecondStep,qn=Zn===void 0?100:Zn,oe=de.hideDisabledOptions,Hn=de.disabledTime,Qn=de.disabledHours,ni=de.disabledMinutes,In=de.disabledSeconds,Ti=Bt.useMemo(function(){return Yt||Ft.getNow()},[Yt,Ft]);if(0)var wi,pi,ai;var ui=Bt.useCallback(function(mi){var vi=(Hn==null?void 0:Hn(mi))||{};return[vi.disabledHours||Qn||Lt,vi.disabledMinutes||ni||Lt,vi.disabledSeconds||In||Lt,vi.disabledMilliseconds||Lt]},[Hn,Qn,ni,In]),Li=Bt.useMemo(function(){return ui(Ti)},[Ti,ui]),vr=(0,he.Z)(Li,4),ir=vr[0],lr=vr[1],Yn=vr[2],Lr=vr[3],sr=Bt.useCallback(function(mi,vi,Tn,Ji){var Er=Rn(0,23,ze,oe,mi()),Mr=ge?Er.map(function(Hr){return(0,me.Z)((0,me.Z)({},Hr),{},{label:Pt(Hr.value%12||12,2)})}):Er,rr=function(Ur){return Rn(0,59,kn,oe,vi(Ur))},jr=function(Ur,oo){return Rn(0,59,$e,oe,Tn(Ur,oo))},kr=function(Ur,oo,So){return Rn(0,999,qn,oe,Ji(Ur,oo,So),3)};return[Mr,rr,jr,kr]},[oe,ze,ge,qn,kn,$e]),tr=Bt.useMemo(function(){return sr(ir,lr,Yn,Lr)},[sr,ir,lr,Yn,Lr]),Vi=(0,he.Z)(tr,4),Pr=Vi[0],gn=Vi[1],li=Vi[2],yi=Vi[3],Ci=function(vi,Tn){var Ji=function(){return Pr},Er=gn,Mr=li,rr=yi;if(Tn){var jr=ui(Tn),kr=(0,he.Z)(jr,4),Hr=kr[0],Ur=kr[1],oo=kr[2],So=kr[3],mo=sr(Hr,Ur,oo,So),Xo=(0,he.Z)(mo,4),io=Xo[0],Ko=Xo[1],uo=Xo[2],To=Xo[3];Ji=function(){return io},Er=Ko,Mr=uo,rr=To}var ts=lo(vi,Ji,Er,Mr,rr,Ft);return ts};return[Ci,Pr,gn,li,yi]}function Vn(Ft){var re=Ft.mode,Yt=Ft.internalMode,de=Ft.renderExtraFooter,ge=Ft.showNow,Oe=Ft.showTime,ze=Ft.onSubmit,Je=Ft.onNow,kn=Ft.invalid,Dn=Ft.needConfirm,$e=Ft.generateConfig,Zn=Ft.disabledDate,qn=Bt.useContext(ct),oe=qn.prefixCls,Hn=qn.locale,Qn=qn.button,ni=Qn===void 0?"button":Qn,In=$e.getNow(),Ti=ii($e,Oe,In),wi=(0,he.Z)(Ti,1),pi=wi[0],ai=de==null?void 0:de(re),ui=Zn(In,{type:re}),Li=function(){if(!ui){var tr=pi(In);Je(tr)}},vr="".concat(oe,"-now"),ir="".concat(vr,"-btn"),lr=ge&&Bt.createElement("li",{className:vr},Bt.createElement("a",{className:bt()(ir,ui&&"".concat(ir,"-disabled")),"aria-disabled":ui,onClick:Li},Yt==="date"?Hn.today:Hn.now)),Yn=Dn&&Bt.createElement("li",{className:"".concat(oe,"-ok")},Bt.createElement(ni,{disabled:kn,onClick:ze},Hn.ok)),Lr=(lr||Yn)&&Bt.createElement("ul",{className:"".concat(oe,"-ranges")},lr,Yn);return!ai&&!Lr?null:Bt.createElement("div",{className:"".concat(oe,"-footer")},ai&&Bt.createElement("div",{className:"".concat(oe,"-footer-extra")},ai),Lr)}function Nn(Ft,re,Yt){function de(ge,Oe){var ze=ge.findIndex(function(kn){return kt(Ft,re,kn,Oe,Yt)});if(ze===-1)return[].concat((0,ee.Z)(ge),[Oe]);var Je=(0,ee.Z)(ge);return Je.splice(ze,1),Je}return de}var Cn=Bt.createContext(null);function gi(){return Bt.useContext(Cn)}function Ui(Ft,re){var Yt=Ft.prefixCls,de=Ft.generateConfig,ge=Ft.locale,Oe=Ft.disabledDate,ze=Ft.minDate,Je=Ft.maxDate,kn=Ft.cellRender,Dn=Ft.hoverValue,$e=Ft.hoverRangeValue,Zn=Ft.onHover,qn=Ft.values,oe=Ft.pickerValue,Hn=Ft.onSelect,Qn=Ft.prevIcon,ni=Ft.nextIcon,In=Ft.superPrevIcon,Ti=Ft.superNextIcon,wi=de.getNow(),pi={now:wi,values:qn,pickerValue:oe,prefixCls:Yt,disabledDate:Oe,minDate:ze,maxDate:Je,cellRender:kn,hoverValue:Dn,hoverRangeValue:$e,onHover:Zn,locale:ge,generateConfig:de,onSelect:Hn,panelType:re,prevIcon:Qn,nextIcon:ni,superPrevIcon:In,superNextIcon:Ti};return[pi,wi]}var Te=Bt.createContext({});function Ne(Ft){for(var re=Ft.rowNum,Yt=Ft.colNum,de=Ft.baseDate,ge=Ft.getCellDate,Oe=Ft.prefixColumn,ze=Ft.rowClassName,Je=Ft.titleFormat,kn=Ft.getCellText,Dn=Ft.getCellClassName,$e=Ft.headerCells,Zn=Ft.cellSelection,qn=Zn===void 0?!0:Zn,oe=Ft.disabledDate,Hn=gi(),Qn=Hn.prefixCls,ni=Hn.panelType,In=Hn.now,Ti=Hn.disabledDate,wi=Hn.cellRender,pi=Hn.onHover,ai=Hn.hoverValue,ui=Hn.hoverRangeValue,Li=Hn.generateConfig,vr=Hn.values,ir=Hn.locale,lr=Hn.onSelect,Yn=oe||Ti,Lr="".concat(Qn,"-cell"),sr=Bt.useContext(Te),tr=sr.onCellDblClick,Vi=function(Tn){return vr.some(function(Ji){return Ji&&kt(Li,ir,Tn,Ji,ni)})},Pr=[],gn=0;gn<re;gn+=1){for(var li=[],yi=void 0,Ci=function(){var Tn=gn*Yt+mi,Ji=ge(de,Tn),Er=Yn==null?void 0:Yn(Ji,{type:ni});mi===0&&(yi=Ji,Oe&&li.push(Oe(yi)));var Mr=!1,rr=!1,jr=!1;if(qn&&ui){var kr=(0,he.Z)(ui,2),Hr=kr[0],Ur=kr[1];Mr=zt(Li,Hr,Ur,Ji),rr=kt(Li,ir,Ji,Hr,ni),jr=kt(Li,ir,Ji,Ur,ni)}var oo=Je?We(Ji,{locale:ir,format:Je,generateConfig:Li}):void 0,So=Bt.createElement("div",{className:"".concat(Lr,"-inner")},kn(Ji));li.push(Bt.createElement("td",{key:mi,title:oo,className:bt()(Lr,(0,me.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},"".concat(Lr,"-disabled"),Er),"".concat(Lr,"-hover"),(ai||[]).some(function(mo){return kt(Li,ir,Ji,mo,ni)})),"".concat(Lr,"-in-range"),Mr&&!rr&&!jr),"".concat(Lr,"-range-start"),rr),"".concat(Lr,"-range-end"),jr),"".concat(Qn,"-cell-selected"),!ui&&ni!=="week"&&Vi(Ji)),Dn(Ji))),onClick:function(){Er||lr(Ji)},onDoubleClick:function(){!Er&&tr&&tr()},onMouseEnter:function(){Er||pi==null||pi(Ji)},onMouseLeave:function(){Er||pi==null||pi(null)}},wi?wi(Ji,{prefixCls:Qn,originNode:So,today:In,type:ni,locale:ir}):So))},mi=0;mi<Yt;mi+=1)Ci();Pr.push(Bt.createElement("tr",{key:gn,className:ze==null?void 0:ze(yi)},li))}return Bt.createElement("div",{className:"".concat(Qn,"-body")},Bt.createElement("table",{className:"".concat(Qn,"-content")},$e&&Bt.createElement("thead",null,Bt.createElement("tr",null,$e)),Bt.createElement("tbody",null,Pr)))}var we={visibility:"hidden"};function Ye(Ft){var re=Ft.offset,Yt=Ft.superOffset,de=Ft.onChange,ge=Ft.getStart,Oe=Ft.getEnd,ze=Ft.children,Je=gi(),kn=Je.prefixCls,Dn=Je.prevIcon,$e=Dn===void 0?"\u2039":Dn,Zn=Je.nextIcon,qn=Zn===void 0?"\u203A":Zn,oe=Je.superPrevIcon,Hn=oe===void 0?"\xAB":oe,Qn=Je.superNextIcon,ni=Qn===void 0?"\xBB":Qn,In=Je.minDate,Ti=Je.maxDate,wi=Je.generateConfig,pi=Je.locale,ai=Je.pickerValue,ui=Je.panelType,Li="".concat(kn,"-header"),vr=Bt.useContext(Te),ir=vr.hidePrev,lr=vr.hideNext,Yn=vr.hideHeader,Lr=Bt.useMemo(function(){if(!In||!re||!Oe)return!1;var vi=Oe(re(-1,ai));return!Et(wi,pi,vi,In,ui)},[In,re,ai,Oe,wi,pi,ui]),sr=Bt.useMemo(function(){if(!In||!Yt||!Oe)return!1;var vi=Oe(Yt(-1,ai));return!Et(wi,pi,vi,In,ui)},[In,Yt,ai,Oe,wi,pi,ui]),tr=Bt.useMemo(function(){if(!Ti||!re||!ge)return!1;var vi=ge(re(1,ai));return!Et(wi,pi,Ti,vi,ui)},[Ti,re,ai,ge,wi,pi,ui]),Vi=Bt.useMemo(function(){if(!Ti||!Yt||!ge)return!1;var vi=ge(Yt(1,ai));return!Et(wi,pi,Ti,vi,ui)},[Ti,Yt,ai,ge,wi,pi,ui]),Pr=function(Tn){re&&de(re(Tn,ai))},gn=function(Tn){Yt&&de(Yt(Tn,ai))};if(Yn)return null;var li="".concat(Li,"-prev-btn"),yi="".concat(Li,"-next-btn"),Ci="".concat(Li,"-super-prev-btn"),mi="".concat(Li,"-super-next-btn");return Bt.createElement("div",{className:Li},Yt&&Bt.createElement("button",{type:"button","aria-label":pi.previousYear,onClick:function(){return gn(-1)},tabIndex:-1,className:bt()(Ci,sr&&"".concat(Ci,"-disabled")),disabled:sr,style:ir?we:{}},Hn),re&&Bt.createElement("button",{type:"button","aria-label":pi.previousMonth,onClick:function(){return Pr(-1)},tabIndex:-1,className:bt()(li,Lr&&"".concat(li,"-disabled")),disabled:Lr,style:ir?we:{}},$e),Bt.createElement("div",{className:"".concat(Li,"-view")},ze),re&&Bt.createElement("button",{type:"button","aria-label":pi.nextMonth,onClick:function(){return Pr(1)},tabIndex:-1,className:bt()(yi,tr&&"".concat(yi,"-disabled")),disabled:tr,style:lr?we:{}},qn),Yt&&Bt.createElement("button",{type:"button","aria-label":pi.nextYear,onClick:function(){return gn(1)},tabIndex:-1,className:bt()(mi,Vi&&"".concat(mi,"-disabled")),disabled:Vi,style:lr?we:{}},ni))}var di=Ye;function ci(Ft){var re=Ft.prefixCls,Yt=Ft.panelName,de=Yt===void 0?"date":Yt,ge=Ft.locale,Oe=Ft.generateConfig,ze=Ft.pickerValue,Je=Ft.onPickerValueChange,kn=Ft.onModeChange,Dn=Ft.mode,$e=Dn===void 0?"date":Dn,Zn=Ft.disabledDate,qn=Ft.onSelect,oe=Ft.onHover,Hn=Ft.showWeek,Qn="".concat(re,"-").concat(de,"-panel"),ni="".concat(re,"-cell"),In=$e==="week",Ti=Ui(Ft,$e),wi=(0,he.Z)(Ti,2),pi=wi[0],ai=wi[1],ui=Oe.locale.getWeekFirstDay(ge.locale),Li=Oe.setDate(ze,1),vr=Ae(ge.locale,Oe,Li),ir=Oe.getMonth(ze),lr=Hn===void 0?In:Hn,Yn=lr?function(vi){var Tn=Zn==null?void 0:Zn(vi,{type:"week"});return Bt.createElement("td",{key:"week",className:bt()(ni,"".concat(ni,"-week"),(0,je.Z)({},"".concat(ni,"-disabled"),Tn)),onClick:function(){Tn||qn(vi)},onMouseEnter:function(){Tn||oe==null||oe(vi)},onMouseLeave:function(){Tn||oe==null||oe(null)}},Bt.createElement("div",{className:"".concat(ni,"-inner")},Oe.locale.getWeek(ge.locale,vi)))}:null,Lr=[],sr=ge.shortWeekDays||(Oe.locale.getShortWeekDays?Oe.locale.getShortWeekDays(ge.locale):[]);Yn&&Lr.push(Bt.createElement("th",{key:"empty"},Bt.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},ge.week)));for(var tr=0;tr<Xe;tr+=1)Lr.push(Bt.createElement("th",{key:tr},sr[(tr+ui)%Xe]));var Vi=function(Tn,Ji){return Oe.addDate(Tn,Ji)},Pr=function(Tn){return We(Tn,{locale:ge,format:ge.cellDateFormat,generateConfig:Oe})},gn=function(Tn){var Ji=(0,je.Z)((0,je.Z)({},"".concat(re,"-cell-in-view"),sn(Oe,Tn,ze)),"".concat(re,"-cell-today"),an(Oe,Tn,ai));return Ji},li=ge.shortMonths||(Oe.locale.getShortMonths?Oe.locale.getShortMonths(ge.locale):[]),yi=Bt.createElement("button",{type:"button","aria-label":ge.yearSelect,key:"year",onClick:function(){kn("year",ze)},tabIndex:-1,className:"".concat(re,"-year-btn")},We(ze,{locale:ge,format:ge.yearFormat,generateConfig:Oe})),Ci=Bt.createElement("button",{type:"button","aria-label":ge.monthSelect,key:"month",onClick:function(){kn("month",ze)},tabIndex:-1,className:"".concat(re,"-month-btn")},ge.monthFormat?We(ze,{locale:ge,format:ge.monthFormat,generateConfig:Oe}):li[ir]),mi=ge.monthBeforeYear?[Ci,yi]:[yi,Ci];return Bt.createElement(Cn.Provider,{value:pi},Bt.createElement("div",{className:bt()(Qn,Hn&&"".concat(Qn,"-show-week"))},Bt.createElement(di,{offset:function(Tn){return Oe.addMonth(ze,Tn)},superOffset:function(Tn){return Oe.addYear(ze,Tn)},onChange:Je,getStart:function(Tn){return Oe.setDate(Tn,1)},getEnd:function(Tn){var Ji=Oe.setDate(Tn,1);return Ji=Oe.addMonth(Ji,1),Oe.addDate(Ji,-1)}},mi),Bt.createElement(Ne,(0,St.Z)({titleFormat:ge.fieldDateFormat},Ft,{colNum:Xe,rowNum:6,baseDate:vr,headerCells:Lr,getCellDate:Vi,getCellText:Pr,getCellClassName:gn,prefixColumn:Yn,cellSelection:!In}))))}var Yi=Rt(29194),Re=1/3;function hn(Ft,re){var Yt=Bt.useRef(!1),de=Bt.useRef(null),ge=Bt.useRef(null),Oe=function(){return Yt.current},ze=function(){ti.Z.cancel(de.current),Yt.current=!1},Je=Bt.useRef(),kn=function(){var Zn=Ft.current;if(ge.current=null,Je.current=0,Zn){var qn=Zn.querySelector('[data-value="'.concat(re,'"]')),oe=Zn.querySelector("li"),Hn=function Qn(){ze(),Yt.current=!0,Je.current+=1;var ni=Zn.scrollTop,In=oe.offsetTop,Ti=qn.offsetTop,wi=Ti-In;if(Ti===0&&qn!==oe||!(0,Yi.Z)(Zn)){Je.current<=5&&(de.current=(0,ti.Z)(Qn));return}var pi=ni+(wi-ni)*Re,ai=Math.abs(wi-pi);if(ge.current!==null&&ge.current<ai){ze();return}if(ge.current=ai,ai<=1){Zn.scrollTop=wi,ze();return}Zn.scrollTop=pi,de.current=(0,ti.Z)(Qn)};qn&&oe&&Hn()}},Dn=(0,ce.zX)(kn);return[Dn,ze,Oe]}var xi=300;function _i(Ft){return Ft.map(function(re){var Yt=re.value,de=re.label,ge=re.disabled;return[Yt,de,ge].join(",")}).join(";")}function Pn(Ft){var re=Ft.units,Yt=Ft.value,de=Ft.optionalValue,ge=Ft.type,Oe=Ft.onChange,ze=Ft.onHover,Je=Ft.onDblClick,kn=Ft.changeOnScroll,Dn=gi(),$e=Dn.prefixCls,Zn=Dn.cellRender,qn=Dn.now,oe=Dn.locale,Hn="".concat($e,"-time-panel"),Qn="".concat($e,"-time-panel-cell"),ni=Bt.useRef(null),In=Bt.useRef(),Ti=function(){clearTimeout(In.current)},wi=hn(ni,Yt!=null?Yt:de),pi=(0,he.Z)(wi,3),ai=pi[0],ui=pi[1],Li=pi[2];(0,fe.Z)(function(){return ai(),Ti(),function(){ui(),Ti()}},[Yt,de,_i(re)]);var vr=function(Yn){Ti();var Lr=Yn.target;!Li()&&kn&&(In.current=setTimeout(function(){var sr=ni.current,tr=sr.querySelector("li").offsetTop,Vi=Array.from(sr.querySelectorAll("li")),Pr=Vi.map(function(mi){return mi.offsetTop-tr}),gn=Pr.map(function(mi,vi){return re[vi].disabled?Number.MAX_SAFE_INTEGER:Math.abs(mi-Lr.scrollTop)}),li=Math.min.apply(Math,(0,ee.Z)(gn)),yi=gn.findIndex(function(mi){return mi===li}),Ci=re[yi];Ci&&!Ci.disabled&&Oe(Ci.value)},xi))},ir="".concat(Hn,"-column");return Bt.createElement("ul",{className:ir,ref:ni,"data-type":ge,onScroll:vr},re.map(function(lr){var Yn=lr.label,Lr=lr.value,sr=lr.disabled,tr=Bt.createElement("div",{className:"".concat(Qn,"-inner")},Yn);return Bt.createElement("li",{key:Lr,className:bt()(Qn,(0,je.Z)((0,je.Z)({},"".concat(Qn,"-selected"),Yt===Lr),"".concat(Qn,"-disabled"),sr)),onClick:function(){sr||Oe(Lr)},onDoubleClick:function(){!sr&&Je&&Je()},onMouseEnter:function(){ze(Lr)},onMouseLeave:function(){ze(null)},"data-value":Lr},Zn?Zn(Lr,{prefixCls:$e,originNode:tr,today:qn,type:"time",subType:ge,locale:oe}):tr)}))}function Xt(Ft){return Ft<12}function ye(Ft){var re=Ft.showHour,Yt=Ft.showMinute,de=Ft.showSecond,ge=Ft.showMillisecond,Oe=Ft.use12Hours,ze=Ft.changeOnScroll,Je=gi(),kn=Je.prefixCls,Dn=Je.values,$e=Je.generateConfig,Zn=Je.locale,qn=Je.onSelect,oe=Je.onHover,Hn=oe===void 0?function(){}:oe,Qn=Je.pickerValue,ni=(Dn==null?void 0:Dn[0])||null,In=Bt.useContext(Te),Ti=In.onCellDblClick,wi=ii($e,Ft,ni),pi=(0,he.Z)(wi,5),ai=pi[0],ui=pi[1],Li=pi[2],vr=pi[3],ir=pi[4],lr=function(En){var Ao=ni&&$e[En](ni),$t=Qn&&$e[En](Qn);return[Ao,$t]},Yn=lr("getHour"),Lr=(0,he.Z)(Yn,2),sr=Lr[0],tr=Lr[1],Vi=lr("getMinute"),Pr=(0,he.Z)(Vi,2),gn=Pr[0],li=Pr[1],yi=lr("getSecond"),Ci=(0,he.Z)(yi,2),mi=Ci[0],vi=Ci[1],Tn=lr("getMillisecond"),Ji=(0,he.Z)(Tn,2),Er=Ji[0],Mr=Ji[1],rr=sr===null?null:Xt(sr)?"am":"pm",jr=Bt.useMemo(function(){return Oe?Xt(sr)?ui.filter(function(Gi){return Xt(Gi.value)}):ui.filter(function(Gi){return!Xt(Gi.value)}):ui},[sr,ui,Oe]),kr=function(En,Ao){var $t,Qe=En.filter(function(Is){return!Is.disabled});return Ao!=null?Ao:Qe==null||($t=Qe[0])===null||$t===void 0?void 0:$t.value},Hr=kr(ui,sr),Ur=Bt.useMemo(function(){return Li(Hr)},[Li,Hr]),oo=kr(Ur,gn),So=Bt.useMemo(function(){return vr(Hr,oo)},[vr,Hr,oo]),mo=kr(So,mi),Xo=Bt.useMemo(function(){return ir(Hr,oo,mo)},[ir,Hr,oo,mo]),io=kr(Xo,Er),Ko=Bt.useMemo(function(){if(!Oe)return[];var Gi=$e.getNow(),En=$e.setHour(Gi,6),Ao=$e.setHour(Gi,18),$t=function(Is,Os){var Gs=Zn.cellMeridiemFormat;return Gs?We(Is,{generateConfig:$e,locale:Zn,format:Gs}):Os};return[{label:$t(En,"AM"),value:"am",disabled:ui.every(function(Qe){return Qe.disabled||!Xt(Qe.value)})},{label:$t(Ao,"PM"),value:"pm",disabled:ui.every(function(Qe){return Qe.disabled||Xt(Qe.value)})}]},[ui,Oe,$e,Zn]),uo=function(En){var Ao=ai(En);qn(Ao)},To=Bt.useMemo(function(){var Gi=ni||Qn||$e.getNow(),En=function($t){return $t!=null};return En(sr)?(Gi=$e.setHour(Gi,sr),Gi=$e.setMinute(Gi,gn),Gi=$e.setSecond(Gi,mi),Gi=$e.setMillisecond(Gi,Er)):En(tr)?(Gi=$e.setHour(Gi,tr),Gi=$e.setMinute(Gi,li),Gi=$e.setSecond(Gi,vi),Gi=$e.setMillisecond(Gi,Mr)):En(Hr)&&(Gi=$e.setHour(Gi,Hr),Gi=$e.setMinute(Gi,oo),Gi=$e.setSecond(Gi,mo),Gi=$e.setMillisecond(Gi,io)),Gi},[ni,Qn,sr,gn,mi,Er,Hr,oo,mo,io,tr,li,vi,Mr,$e]),ts=function(En,Ao){return En===null?null:$e[Ao](To,En)},Ro=function(En){return ts(En,"setHour")},Eo=function(En){return ts(En,"setMinute")},$r=function(En){return ts(En,"setSecond")},os=function(En){return ts(En,"setMillisecond")},ws=function(En){return En===null?null:En==="am"&&!Xt(sr)?$e.setHour(To,sr-12):En==="pm"&&Xt(sr)?$e.setHour(To,sr+12):To},Mo=function(En){uo(Ro(En))},Ts=function(En){uo(Eo(En))},to=function(En){uo($r(En))},Xr=function(En){uo(os(En))},Kr=function(En){uo(ws(En))},Wo=function(En){Hn(Ro(En))},so=function(En){Hn(Eo(En))},ca=function(En){Hn($r(En))},Xi=function(En){Hn(os(En))},Fi=function(En){Hn(ws(En))},qi={onDblClick:Ti,changeOnScroll:ze};return Bt.createElement("div",{className:"".concat(kn,"-content")},re&&Bt.createElement(Pn,(0,St.Z)({units:jr,value:sr,optionalValue:tr,type:"hour",onChange:Mo,onHover:Wo},qi)),Yt&&Bt.createElement(Pn,(0,St.Z)({units:Ur,value:gn,optionalValue:li,type:"minute",onChange:Ts,onHover:so},qi)),de&&Bt.createElement(Pn,(0,St.Z)({units:So,value:mi,optionalValue:vi,type:"second",onChange:to,onHover:ca},qi)),ge&&Bt.createElement(Pn,(0,St.Z)({units:Xo,value:Er,optionalValue:Mr,type:"millisecond",onChange:Xr,onHover:Xi},qi)),Oe&&Bt.createElement(Pn,(0,St.Z)({units:Ko,value:rr,type:"meridiem",onChange:Kr,onHover:Fi},qi)))}function Mn(Ft){var re=Ft.prefixCls,Yt=Ft.value,de=Ft.locale,ge=Ft.generateConfig,Oe=Ft.showTime,ze=Oe||{},Je=ze.format,kn="".concat(re,"-time-panel"),Dn=Ui(Ft,"time"),$e=(0,he.Z)(Dn,1),Zn=$e[0];return Bt.createElement(Cn.Provider,{value:Zn},Bt.createElement("div",{className:bt()(kn)},Bt.createElement(di,null,Yt?We(Yt,{locale:de,format:Je,generateConfig:ge}):"\xA0"),Bt.createElement(ye,Oe)))}function wn(Ft){var re=Ft.prefixCls,Yt=Ft.generateConfig,de=Ft.showTime,ge=Ft.onSelect,Oe=Ft.value,ze=Ft.pickerValue,Je=Ft.onHover,kn="".concat(re,"-datetime-panel"),Dn=ii(Yt,de),$e=(0,he.Z)(Dn,1),Zn=$e[0],qn=function(ni){return Oe?Ue(Yt,ni,Oe):Ue(Yt,ni,ze)},oe=function(ni){Je==null||Je(ni&&qn(ni))},Hn=function(ni){var In=qn(ni);ge(Zn(In,In))};return Bt.createElement("div",{className:kn},Bt.createElement(ci,(0,St.Z)({},Ft,{onSelect:Hn,onHover:oe})),Bt.createElement(Mn,Ft))}function be(Ft){var re=Ft.prefixCls,Yt=Ft.locale,de=Ft.generateConfig,ge=Ft.pickerValue,Oe=Ft.disabledDate,ze=Ft.onPickerValueChange,Je="".concat(re,"-decade-panel"),kn=Ui(Ft,"decade"),Dn=(0,he.Z)(kn,1),$e=Dn[0],Zn=function(ui){var Li=Math.floor(de.getYear(ui)/100)*100;return de.setYear(ui,Li)},qn=function(ui){var Li=Zn(ui);return de.addYear(Li,99)},oe=Zn(ge),Hn=qn(ge),Qn=de.addYear(oe,-10),ni=function(ui,Li){return de.addYear(ui,Li*10)},In=function(ui){var Li=Yt.cellYearFormat,vr=We(ui,{locale:Yt,format:Li,generateConfig:de}),ir=We(de.addYear(ui,9),{locale:Yt,format:Li,generateConfig:de});return"".concat(vr,"-").concat(ir)},Ti=function(ui){return(0,je.Z)({},"".concat(re,"-cell-in-view"),cn(de,ui,oe)||cn(de,ui,Hn)||zt(de,oe,Hn,ui))},wi=Oe?function(ai,ui){var Li=de.setDate(ai,1),vr=de.setMonth(Li,0),ir=de.setYear(vr,Math.floor(de.getYear(vr)/10)*10),lr=de.addYear(ir,10),Yn=de.addDate(lr,-1);return Oe(ir,ui)&&Oe(Yn,ui)}:null,pi="".concat(We(oe,{locale:Yt,format:Yt.yearFormat,generateConfig:de}),"-").concat(We(Hn,{locale:Yt,format:Yt.yearFormat,generateConfig:de}));return Bt.createElement(Cn.Provider,{value:$e},Bt.createElement("div",{className:Je},Bt.createElement(di,{superOffset:function(ui){return de.addYear(ge,ui*100)},onChange:ze,getStart:Zn,getEnd:qn},pi),Bt.createElement(Ne,(0,St.Z)({},Ft,{disabledDate:wi,colNum:3,rowNum:4,baseDate:Qn,getCellDate:ni,getCellText:In,getCellClassName:Ti}))))}function Ln(Ft){var re=Ft.prefixCls,Yt=Ft.locale,de=Ft.generateConfig,ge=Ft.pickerValue,Oe=Ft.disabledDate,ze=Ft.onPickerValueChange,Je=Ft.onModeChange,kn="".concat(re,"-month-panel"),Dn=Ui(Ft,"month"),$e=(0,he.Z)(Dn,1),Zn=$e[0],qn=de.setMonth(ge,0),oe=Yt.shortMonths||(de.locale.getShortMonths?de.locale.getShortMonths(Yt.locale):[]),Hn=function(pi,ai){return de.addMonth(pi,ai)},Qn=function(pi){var ai=de.getMonth(pi);return Yt.monthFormat?We(pi,{locale:Yt,format:Yt.monthFormat,generateConfig:de}):oe[ai]},ni=function(){return(0,je.Z)({},"".concat(re,"-cell-in-view"),!0)},In=Oe?function(wi,pi){var ai=de.setDate(wi,1),ui=de.setMonth(ai,de.getMonth(ai)+1),Li=de.addDate(ui,-1);return Oe(ai,pi)&&Oe(Li,pi)}:null,Ti=Bt.createElement("button",{type:"button",key:"year","aria-label":Yt.yearSelect,onClick:function(){Je("year")},tabIndex:-1,className:"".concat(re,"-year-btn")},We(ge,{locale:Yt,format:Yt.yearFormat,generateConfig:de}));return Bt.createElement(Cn.Provider,{value:Zn},Bt.createElement("div",{className:kn},Bt.createElement(di,{superOffset:function(pi){return de.addYear(ge,pi)},onChange:ze,getStart:function(pi){return de.setMonth(pi,0)},getEnd:function(pi){return de.setMonth(pi,11)}},Ti),Bt.createElement(Ne,(0,St.Z)({},Ft,{disabledDate:In,titleFormat:Yt.fieldMonthFormat,colNum:3,rowNum:4,baseDate:qn,getCellDate:Hn,getCellText:Qn,getCellClassName:ni}))))}function Ni(Ft){var re=Ft.prefixCls,Yt=Ft.locale,de=Ft.generateConfig,ge=Ft.pickerValue,Oe=Ft.onPickerValueChange,ze=Ft.onModeChange,Je="".concat(re,"-quarter-panel"),kn=Ui(Ft,"quarter"),Dn=(0,he.Z)(kn,1),$e=Dn[0],Zn=de.setMonth(ge,0),qn=function(In,Ti){return de.addMonth(In,Ti*3)},oe=function(In){return We(In,{locale:Yt,format:Yt.cellQuarterFormat,generateConfig:de})},Hn=function(){return(0,je.Z)({},"".concat(re,"-cell-in-view"),!0)},Qn=Bt.createElement("button",{type:"button",key:"year","aria-label":Yt.yearSelect,onClick:function(){ze("year")},tabIndex:-1,className:"".concat(re,"-year-btn")},We(ge,{locale:Yt,format:Yt.yearFormat,generateConfig:de}));return Bt.createElement(Cn.Provider,{value:$e},Bt.createElement("div",{className:Je},Bt.createElement(di,{superOffset:function(In){return de.addYear(ge,In)},onChange:Oe,getStart:function(In){return de.setMonth(In,0)},getEnd:function(In){return de.setMonth(In,11)}},Qn),Bt.createElement(Ne,(0,St.Z)({},Ft,{titleFormat:Yt.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:Zn,getCellDate:qn,getCellText:oe,getCellClassName:Hn}))))}function ji(Ft){var re=Ft.prefixCls,Yt=Ft.generateConfig,de=Ft.locale,ge=Ft.value,Oe=Ft.hoverValue,ze=Ft.hoverRangeValue,Je=de.locale,kn="".concat(re,"-week-panel-row"),Dn=function(Zn){var qn={};if(ze){var oe=(0,he.Z)(ze,2),Hn=oe[0],Qn=oe[1],ni=xt(Yt,Je,Hn,Zn),In=xt(Yt,Je,Qn,Zn);qn["".concat(kn,"-range-start")]=ni,qn["".concat(kn,"-range-end")]=In,qn["".concat(kn,"-range-hover")]=!ni&&!In&&zt(Yt,Hn,Qn,Zn)}return Oe&&(qn["".concat(kn,"-hover")]=Oe.some(function(Ti){return xt(Yt,Je,Zn,Ti)})),bt()(kn,(0,je.Z)({},"".concat(kn,"-selected"),!ze&&xt(Yt,Je,ge,Zn)),qn)};return Bt.createElement(ci,(0,St.Z)({},Ft,{mode:"week",panelName:"week",rowClassName:Dn}))}function Qi(Ft){var re=Ft.prefixCls,Yt=Ft.locale,de=Ft.generateConfig,ge=Ft.pickerValue,Oe=Ft.disabledDate,ze=Ft.onPickerValueChange,Je=Ft.onModeChange,kn="".concat(re,"-year-panel"),Dn=Ui(Ft,"year"),$e=(0,he.Z)(Dn,1),Zn=$e[0],qn=function(Li){var vr=Math.floor(de.getYear(Li)/10)*10;return de.setYear(Li,vr)},oe=function(Li){var vr=qn(Li);return de.addYear(vr,9)},Hn=qn(ge),Qn=oe(ge),ni=de.addYear(Hn,-1),In=function(Li,vr){return de.addYear(Li,vr)},Ti=function(Li){return We(Li,{locale:Yt,format:Yt.cellYearFormat,generateConfig:de})},wi=function(Li){return(0,je.Z)({},"".concat(re,"-cell-in-view"),Ie(de,Li,Hn)||Ie(de,Li,Qn)||zt(de,Hn,Qn,Li))},pi=Oe?function(ui,Li){var vr=de.setMonth(ui,0),ir=de.setDate(vr,1),lr=de.addYear(ir,1),Yn=de.addDate(lr,-1);return Oe(ir,Li)&&Oe(Yn,Li)}:null,ai=Bt.createElement("button",{type:"button",key:"decade","aria-label":Yt.decadeSelect,onClick:function(){Je("decade")},tabIndex:-1,className:"".concat(re,"-decade-btn")},We(Hn,{locale:Yt,format:Yt.yearFormat,generateConfig:de}),"-",We(Qn,{locale:Yt,format:Yt.yearFormat,generateConfig:de}));return Bt.createElement(Cn.Provider,{value:Zn},Bt.createElement("div",{className:kn},Bt.createElement(di,{superOffset:function(Li){return de.addYear(ge,Li*10)},onChange:ze,getStart:qn,getEnd:oe},ai),Bt.createElement(Ne,(0,St.Z)({},Ft,{disabledDate:pi,titleFormat:Yt.fieldYearFormat,colNum:3,rowNum:4,baseDate:ni,getCellDate:In,getCellText:Ti,getCellClassName:wi}))))}var On={date:ci,datetime:wn,week:ji,month:Ln,quarter:Ni,year:Qi,decade:be,time:Mn};function Bn(Ft,re){var Yt,de=Ft.locale,ge=Ft.generateConfig,Oe=Ft.direction,ze=Ft.prefixCls,Je=Ft.tabIndex,kn=Je===void 0?0:Je,Dn=Ft.multiple,$e=Ft.defaultValue,Zn=Ft.value,qn=Ft.onChange,oe=Ft.onSelect,Hn=Ft.defaultPickerValue,Qn=Ft.pickerValue,ni=Ft.onPickerValueChange,In=Ft.mode,Ti=Ft.onPanelChange,wi=Ft.picker,pi=wi===void 0?"date":wi,ai=Ft.showTime,ui=Ft.hoverValue,Li=Ft.hoverRangeValue,vr=Ft.cellRender,ir=Ft.dateRender,lr=Ft.monthCellRender,Yn=Ft.components,Lr=Yn===void 0?{}:Yn,sr=Ft.hideHeader,tr=((Yt=Bt.useContext(ct))===null||Yt===void 0?void 0:Yt.prefixCls)||ze||"rc-picker",Vi=Bt.useRef();Bt.useImperativeHandle(re,function(){return{nativeElement:Vi.current}});var Pr=dn(Ft),gn=(0,he.Z)(Pr,4),li=gn[0],yi=gn[1],Ci=gn[2],mi=gn[3],vi=tn(de,yi),Tn=pi==="date"&&ai?"datetime":pi,Ji=Bt.useMemo(function(){return _e(Tn,Ci,mi,li,vi)},[Tn,Ci,mi,li,vi]),Er=ge.getNow(),Mr=(0,ce.C8)(pi,{value:In,postState:function(Fi){return Fi||"date"}}),rr=(0,he.Z)(Mr,2),jr=rr[0],kr=rr[1],Hr=jr==="date"&&Ji?"datetime":jr,Ur=Nn(ge,de,Tn),oo=(0,ce.C8)($e,{value:Zn}),So=(0,he.Z)(oo,2),mo=So[0],Xo=So[1],io=Bt.useMemo(function(){var Xi=Dt(mo).filter(function(Fi){return Fi});return Dn?Xi:Xi.slice(0,1)},[mo,Dn]),Ko=(0,ce.zX)(function(Xi){Xo(Xi),qn&&(Xi===null||io.length!==Xi.length||io.some(function(Fi,qi){return!kt(ge,de,Fi,Xi[qi],Tn)}))&&(qn==null||qn(Dn?Xi:Xi[0]))}),uo=(0,ce.zX)(function(Xi){if(oe==null||oe(Xi),jr===pi){var Fi=Dn?Ur(io,Xi):[Xi];Ko(Fi)}}),To=(0,ce.C8)(Hn||io[0]||Er,{value:Qn}),ts=(0,he.Z)(To,2),Ro=ts[0],Eo=ts[1];Bt.useEffect(function(){io[0]&&!Qn&&Eo(io[0])},[io[0]]);var $r=function(Fi,qi){Ti==null||Ti(Fi||Qn,qi||jr)},os=function(Fi){var qi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Eo(Fi),ni==null||ni(Fi),qi&&$r(Fi)},ws=function(Fi,qi){kr(Fi),qi&&os(qi),$r(qi,Fi)},Mo=function(Fi){if(uo(Fi),os(Fi),jr!==pi){var qi=["decade","year"],Gi=[].concat(qi,["month"]),En={quarter:[].concat(qi,["quarter"]),week:[].concat((0,ee.Z)(Gi),["week"]),date:[].concat((0,ee.Z)(Gi),["date"])},Ao=En[pi]||Gi,$t=Ao.indexOf(jr),Qe=Ao[$t+1];Qe&&ws(Qe,Fi)}},Ts=Bt.useMemo(function(){var Xi,Fi;if(Array.isArray(Li)){var qi=(0,he.Z)(Li,2);Xi=qi[0],Fi=qi[1]}else Xi=Li;return!Xi&&!Fi?null:(Xi=Xi||Fi,Fi=Fi||Xi,ge.isAfter(Xi,Fi)?[Fi,Xi]:[Xi,Fi])},[Li,ge]),to=Me(vr,ir,lr),Xr=Lr[Hr]||On[Hr]||ci,Kr=Bt.useContext(Te),Wo=Bt.useMemo(function(){return(0,me.Z)((0,me.Z)({},Kr),{},{hideHeader:sr})},[Kr,sr]),so="".concat(tr,"-panel"),ca=Ut(Ft,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return Bt.createElement(Te.Provider,{value:Wo},Bt.createElement("div",{ref:Vi,tabIndex:kn,className:bt()(so,(0,je.Z)({},"".concat(so,"-rtl"),Oe==="rtl"))},Bt.createElement(Xr,(0,St.Z)({},ca,{showTime:Ji,prefixCls:tr,locale:vi,generateConfig:ge,onModeChange:ws,pickerValue:Ro,onPickerValueChange:function(Fi){os(Fi,!0)},value:io[0],onSelect:Mo,values:io,cellRender:to,hoverRangeValue:Ts,hoverValue:ui}))))}var Kn=Bt.memo(Bt.forwardRef(Bn)),or=Kn;function Hi(Ft){var re=Ft.picker,Yt=Ft.multiplePanel,de=Ft.pickerValue,ge=Ft.onPickerValueChange,Oe=Ft.needConfirm,ze=Ft.onSubmit,Je=Ft.range,kn=Ft.hoverValue,Dn=Bt.useContext(ct),$e=Dn.prefixCls,Zn=Dn.generateConfig,qn=Bt.useCallback(function(Ti,wi){return dr(Zn,re,Ti,wi)},[Zn,re]),oe=Bt.useMemo(function(){return qn(de,1)},[de,qn]),Hn=function(wi){ge(qn(wi,-1))},Qn={onCellDblClick:function(){Oe&&ze()}},ni=re==="time",In=(0,me.Z)((0,me.Z)({},Ft),{},{hoverValue:null,hoverRangeValue:null,hideHeader:ni});return Je?In.hoverRangeValue=kn:In.hoverValue=kn,Yt?Bt.createElement("div",{className:"".concat($e,"-panels")},Bt.createElement(Te.Provider,{value:(0,me.Z)((0,me.Z)({},Qn),{},{hideNext:!0})},Bt.createElement(or,In)),Bt.createElement(Te.Provider,{value:(0,me.Z)((0,me.Z)({},Qn),{},{hidePrev:!0})},Bt.createElement(or,(0,St.Z)({},In,{pickerValue:oe,onPickerValueChange:Hn})))):Bt.createElement(Te.Provider,{value:(0,me.Z)({},Qn)},Bt.createElement(or,In))}function vn(Ft){return typeof Ft=="function"?Ft():Ft}function si(Ft){var re=Ft.prefixCls,Yt=Ft.presets,de=Ft.onClick,ge=Ft.onHover;return Yt.length?Bt.createElement("div",{className:"".concat(re,"-presets")},Bt.createElement("ul",null,Yt.map(function(Oe,ze){var Je=Oe.label,kn=Oe.value;return Bt.createElement("li",{key:ze,onClick:function(){de(vn(kn))},onMouseEnter:function(){ge(vn(kn))},onMouseLeave:function(){ge(null)}},Je)}))):null}function Tr(Ft){var re=Ft.panelRender,Yt=Ft.internalMode,de=Ft.picker,ge=Ft.showNow,Oe=Ft.range,ze=Ft.multiple,Je=Ft.activeInfo,kn=Je===void 0?[0,0,0]:Je,Dn=Ft.presets,$e=Ft.onPresetHover,Zn=Ft.onPresetSubmit,qn=Ft.onFocus,oe=Ft.onBlur,Hn=Ft.onPanelMouseDown,Qn=Ft.direction,ni=Ft.value,In=Ft.onSelect,Ti=Ft.isInvalid,wi=Ft.defaultOpenValue,pi=Ft.onOk,ai=Ft.onSubmit,ui=Bt.useContext(ct),Li=ui.prefixCls,vr="".concat(Li,"-panel"),ir=Qn==="rtl",lr=Bt.useRef(null),Yn=Bt.useRef(null),Lr=Bt.useState(0),sr=(0,he.Z)(Lr,2),tr=sr[0],Vi=sr[1],Pr=Bt.useState(0),gn=(0,he.Z)(Pr,2),li=gn[0],yi=gn[1],Ci=Bt.useState(0),mi=(0,he.Z)(Ci,2),vi=mi[0],Tn=mi[1],Ji=function(Mo){Mo.width&&Vi(Mo.width)},Er=(0,he.Z)(kn,3),Mr=Er[0],rr=Er[1],jr=Er[2],kr=Bt.useState(0),Hr=(0,he.Z)(kr,2),Ur=Hr[0],oo=Hr[1];Bt.useEffect(function(){oo(10)},[Mr]),Bt.useEffect(function(){if(Oe&&Yn.current){var ws,Mo=((ws=lr.current)===null||ws===void 0?void 0:ws.offsetWidth)||0,Ts=Yn.current.getBoundingClientRect();if(!Ts.height||Ts.right<0){oo(function(Wo){return Math.max(0,Wo-1)});return}var to=(ir?rr-Mo:Mr)-Ts.left;if(Tn(to),tr&&tr<jr){var Xr=ir?Ts.right-(rr-Mo+tr):Mr+Mo-Ts.left-tr,Kr=Math.max(0,Xr);yi(Kr)}else yi(0)}},[Ur,ir,tr,Mr,rr,jr,Oe]);function So(ws){return ws.filter(function(Mo){return Mo})}var mo=Bt.useMemo(function(){return So(Dt(ni))},[ni]),Xo=de==="time"&&!mo.length,io=Bt.useMemo(function(){return Xo?So([wi]):mo},[Xo,mo,wi]),Ko=Xo?wi:mo,uo=Bt.useMemo(function(){return io.length?io.some(function(ws){return Ti(ws)}):!0},[io,Ti]),To=function(){Xo&&In(wi),pi(),ai()},ts=Bt.createElement("div",{className:"".concat(Li,"-panel-layout")},Bt.createElement(si,{prefixCls:Li,presets:Dn,onClick:Zn,onHover:$e}),Bt.createElement("div",null,Bt.createElement(Hi,(0,St.Z)({},Ft,{value:Ko})),Bt.createElement(Vn,(0,St.Z)({},Ft,{showNow:ze?!1:ge,invalid:uo,onSubmit:To}))));re&&(ts=re(ts));var Ro="".concat(vr,"-container"),Eo="marginLeft",$r="marginRight",os=Bt.createElement("div",{onMouseDown:Hn,tabIndex:-1,className:bt()(Ro,"".concat(Li,"-").concat(Yt,"-panel-container")),style:(0,je.Z)((0,je.Z)({},ir?$r:Eo,li),ir?Eo:$r,"auto"),onFocus:qn,onBlur:oe},ts);return Oe&&(os=Bt.createElement("div",{onMouseDown:Hn,ref:Yn,className:bt()("".concat(Li,"-range-wrapper"),"".concat(Li,"-").concat(de,"-range-wrapper"))},Bt.createElement("div",{ref:lr,className:"".concat(Li,"-range-arrow"),style:{left:vi}}),Bt.createElement(nr.Z,{onResize:Ji},os))),os}var Rr=Rt(33346);function No(Ft,re){var Yt=Ft.format,de=Ft.maskFormat,ge=Ft.generateConfig,Oe=Ft.locale,ze=Ft.preserveInvalidOnBlur,Je=Ft.inputReadOnly,kn=Ft.required,Dn=Ft["aria-required"],$e=Ft.onSubmit,Zn=Ft.onFocus,qn=Ft.onBlur,oe=Ft.onInputChange,Hn=Ft.onInvalid,Qn=Ft.open,ni=Ft.onOpenChange,In=Ft.onKeyDown,Ti=Ft.onChange,wi=Ft.activeHelp,pi=Ft.name,ai=Ft.autoComplete,ui=Ft.id,Li=Ft.value,vr=Ft.invalid,ir=Ft.placeholder,lr=Ft.disabled,Yn=Ft.activeIndex,Lr=Ft.allHelp,sr=Ft.picker,tr=function(vi,Tn){var Ji=ge.locale.parse(Oe.locale,vi,[Tn]);return Ji&&ge.isValidate(Ji)?Ji:null},Vi=Yt[0],Pr=Bt.useCallback(function(mi){return We(mi,{locale:Oe,format:Vi,generateConfig:ge})},[Oe,ge,Vi]),gn=Bt.useMemo(function(){return Li.map(Pr)},[Li,Pr]),li=Bt.useMemo(function(){var mi=sr==="time"?8:10,vi=typeof Vi=="function"?Vi(ge.getNow()).length:Vi.length;return Math.max(mi,vi)+2},[Vi,sr,ge]),yi=function(vi){for(var Tn=0;Tn<Yt.length;Tn+=1){var Ji=Yt[Tn];if(typeof Ji=="string"){var Er=tr(vi,Ji);if(Er)return Er}}return!1},Ci=function(vi){function Tn(Mr){return vi!==void 0?Mr[vi]:Mr}var Ji=(0,Be.Z)(Ft,{aria:!0,data:!0}),Er=(0,me.Z)((0,me.Z)({},Ji),{},{format:de,validateFormat:function(rr){return!!yi(rr)},preserveInvalidOnBlur:ze,readOnly:Je,required:kn,"aria-required":Dn,name:pi,autoComplete:ai,size:li,id:Tn(ui),value:Tn(gn)||"",invalid:Tn(vr),placeholder:Tn(ir),active:Yn===vi,helped:Lr||wi&&Yn===vi,disabled:Tn(lr),onFocus:function(rr){Zn(rr,vi)},onBlur:function(rr){qn(rr,vi)},onSubmit:$e,onChange:function(rr){oe();var jr=yi(rr);if(jr){Hn(!1,vi),Ti(jr,vi);return}Hn(!!rr,vi)},onHelp:function(){ni(!0,{index:vi})},onKeyDown:function(rr){var jr=!1;if(In==null||In(rr,function(){jr=!0}),!rr.defaultPrevented&&!jr)switch(rr.key){case"Escape":ni(!1,{index:vi});break;case"Enter":Qn||ni(!0);break}}},re==null?void 0:re({valueTexts:gn}));return Object.keys(Er).forEach(function(Mr){Er[Mr]===void 0&&delete Er[Mr]}),Er};return[Ci,Pr]}var Ee=["onMouseEnter","onMouseLeave"];function Mi(Ft){return Bt.useMemo(function(){return Ut(Ft,Ee)},[Ft])}var fr=["icon","type"],fi=["onClear"];function Ir(Ft){var re=Ft.icon,Yt=Ft.type,de=(0,Rr.Z)(Ft,fr),ge=Bt.useContext(ct),Oe=ge.prefixCls;return re?Bt.createElement("span",(0,St.Z)({className:"".concat(Oe,"-").concat(Yt)},de),re):null}function Fr(Ft){var re=Ft.onClear,Yt=(0,Rr.Z)(Ft,fi);return Bt.createElement(Ir,(0,St.Z)({},Yt,{type:"clear",role:"button",onMouseDown:function(ge){ge.preventDefault()},onClick:function(ge){ge.stopPropagation(),re()}}))}var Nr=Rt(42573),wr=Rt(58698),br=["YYYY","MM","DD","HH","mm","ss","SSS"],Jr="\u9867",rn=function(){function Ft(re){(0,Nr.Z)(this,Ft),(0,je.Z)(this,"format",void 0),(0,je.Z)(this,"maskFormat",void 0),(0,je.Z)(this,"cells",void 0),(0,je.Z)(this,"maskCells",void 0),this.format=re;var Yt=br.map(function(Je){return"(".concat(Je,")")}).join("|"),de=new RegExp(Yt,"g");this.maskFormat=re.replace(de,function(Je){return Jr.repeat(Je.length)});var ge=new RegExp("(".concat(br.join("|"),")")),Oe=(re.split(ge)||[]).filter(function(Je){return Je}),ze=0;this.cells=Oe.map(function(Je){var kn=br.includes(Je),Dn=ze,$e=ze+Je.length;return ze=$e,{text:Je,mask:kn,start:Dn,end:$e}}),this.maskCells=this.cells.filter(function(Je){return Je.mask})}return(0,wr.Z)(Ft,[{key:"getSelection",value:function(Yt){var de=this.maskCells[Yt]||{},ge=de.start,Oe=de.end;return[ge||0,Oe||0]}},{key:"match",value:function(Yt){for(var de=0;de<this.maskFormat.length;de+=1){var ge=this.maskFormat[de],Oe=Yt[de];if(!Oe||ge!==Jr&&ge!==Oe)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(Yt){for(var de=Number.MAX_SAFE_INTEGER,ge=0,Oe=0;Oe<this.maskCells.length;Oe+=1){var ze=this.maskCells[Oe],Je=ze.start,kn=ze.end;if(Yt>=Je&&Yt<=kn)return Oe;var Dn=Math.min(Math.abs(Yt-Je),Math.abs(Yt-kn));Dn<de&&(de=Dn,ge=Oe)}return ge}}]),Ft}();function fo(Ft){var re={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return re[Ft]}var en=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],zr=Bt.forwardRef(function(Ft,re){var Yt=Ft.active,de=Ft.showActiveCls,ge=de===void 0?!0:de,Oe=Ft.suffixIcon,ze=Ft.format,Je=Ft.validateFormat,kn=Ft.onChange,Dn=Ft.onInput,$e=Ft.helped,Zn=Ft.onHelp,qn=Ft.onSubmit,oe=Ft.onKeyDown,Hn=Ft.preserveInvalidOnBlur,Qn=Hn===void 0?!1:Hn,ni=Ft.invalid,In=Ft.clearIcon,Ti=(0,Rr.Z)(Ft,en),wi=Ft.value,pi=Ft.onFocus,ai=Ft.onBlur,ui=Ft.onMouseUp,Li=Bt.useContext(ct),vr=Li.prefixCls,ir=Li.input,lr=ir===void 0?"input":ir,Yn="".concat(vr,"-input"),Lr=Bt.useState(!1),sr=(0,he.Z)(Lr,2),tr=sr[0],Vi=sr[1],Pr=Bt.useState(wi),gn=(0,he.Z)(Pr,2),li=gn[0],yi=gn[1],Ci=Bt.useState(""),mi=(0,he.Z)(Ci,2),vi=mi[0],Tn=mi[1],Ji=Bt.useState(null),Er=(0,he.Z)(Ji,2),Mr=Er[0],rr=Er[1],jr=Bt.useState(null),kr=(0,he.Z)(jr,2),Hr=kr[0],Ur=kr[1],oo=li||"";Bt.useEffect(function(){yi(wi)},[wi]);var So=Bt.useRef(),mo=Bt.useRef();Bt.useImperativeHandle(re,function(){return{nativeElement:So.current,inputElement:mo.current,focus:function(Fi){mo.current.focus(Fi)},blur:function(){mo.current.blur()}}});var Xo=Bt.useMemo(function(){return new rn(ze||"")},[ze]),io=Bt.useMemo(function(){return $e?[0,0]:Xo.getSelection(Mr)},[Xo,Mr,$e]),Ko=(0,he.Z)(io,2),uo=Ko[0],To=Ko[1],ts=function(Fi){Fi&&Fi!==ze&&Fi!==wi&&Zn()},Ro=(0,ce.zX)(function(Xi){Je(Xi)&&kn(Xi),yi(Xi),ts(Xi)}),Eo=function(Fi){if(!ze){var qi=Fi.target.value;ts(qi),yi(qi),kn(qi)}},$r=function(Fi){var qi=Fi.clipboardData.getData("text");Je(qi)&&Ro(qi)},os=Bt.useRef(!1),ws=function(){os.current=!0},Mo=function(Fi){var qi=Fi.target,Gi=qi.selectionStart,En=Xo.getMaskCellIndex(Gi);rr(En),Ur({}),ui==null||ui(Fi),os.current=!1},Ts=function(Fi){Vi(!0),rr(0),Tn(""),pi(Fi)},to=function(Fi){ai(Fi)},Xr=function(Fi){Vi(!1),to(Fi)};An(Yt,function(){!Yt&&!Qn&&yi(wi)});var Kr=function(Fi){Fi.key==="Enter"&&Je(oo)&&qn(),oe==null||oe(Fi)},Wo=function(Fi){Kr(Fi);var qi=Fi.key,Gi=null,En=null,Ao=To-uo,$t=ze.slice(uo,To),Qe=function(ys){rr(function(qs){var Vs=qs+ys;return Vs=Math.max(Vs,0),Vs=Math.min(Vs,Xo.size()-1),Vs})},Is=function(ys){var qs=fo($t),Vs=(0,he.Z)(qs,3),Sl=Vs[0],es=Vs[1],ur=Vs[2],Ys=oo.slice(uo,To),_s=Number(Ys);if(isNaN(_s))return String(ur||(ys>0?Sl:es));var ns=_s+ys,Qr=es-Sl+1;return String(Sl+(Qr+ns-Sl)%Qr)};switch(qi){case"Backspace":case"Delete":Gi="",En=$t;break;case"ArrowLeft":Gi="",Qe(-1);break;case"ArrowRight":Gi="",Qe(1);break;case"ArrowUp":Gi="",En=Is(1);break;case"ArrowDown":Gi="",En=Is(-1);break;default:isNaN(Number(qi))||(Gi=vi+qi,En=Gi);break}if(Gi!==null&&(Tn(Gi),Gi.length>=Ao&&(Qe(1),Tn(""))),En!==null){var Os=oo.slice(0,uo)+Pt(En,Ao)+oo.slice(To);Ro(Os.slice(0,ze.length))}Ur({})},so=Bt.useRef();(0,fe.Z)(function(){if(!(!tr||!ze||os.current)){if(!Xo.match(oo)){Ro(ze);return}return mo.current.setSelectionRange(uo,To),so.current=(0,ti.Z)(function(){mo.current.setSelectionRange(uo,To)}),function(){ti.Z.cancel(so.current)}}},[Xo,ze,tr,oo,Mr,uo,To,Hr,Ro]);var ca=ze?{onFocus:Ts,onBlur:Xr,onKeyDown:Wo,onMouseDown:ws,onMouseUp:Mo,onPaste:$r}:{};return Bt.createElement("div",{ref:So,className:bt()(Yn,(0,je.Z)((0,je.Z)({},"".concat(Yn,"-active"),Yt&&ge),"".concat(Yn,"-placeholder"),$e))},Bt.createElement(lr,(0,St.Z)({ref:mo,"aria-invalid":ni,autoComplete:"off"},Ti,{onKeyDown:Kr,onBlur:to},ca,{value:oo,onChange:Eo})),Bt.createElement(Ir,{type:"suffix",icon:Oe}),In)}),Uo=zr,no=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],Zo=["index"];function Or(Ft,re){var Yt=Ft.id,de=Ft.prefix,ge=Ft.clearIcon,Oe=Ft.suffixIcon,ze=Ft.separator,Je=ze===void 0?"~":ze,kn=Ft.activeIndex,Dn=Ft.activeHelp,$e=Ft.allHelp,Zn=Ft.focused,qn=Ft.onFocus,oe=Ft.onBlur,Hn=Ft.onKeyDown,Qn=Ft.locale,ni=Ft.generateConfig,In=Ft.placeholder,Ti=Ft.className,wi=Ft.style,pi=Ft.onClick,ai=Ft.onClear,ui=Ft.value,Li=Ft.onChange,vr=Ft.onSubmit,ir=Ft.onInputChange,lr=Ft.format,Yn=Ft.maskFormat,Lr=Ft.preserveInvalidOnBlur,sr=Ft.onInvalid,tr=Ft.disabled,Vi=Ft.invalid,Pr=Ft.inputReadOnly,gn=Ft.direction,li=Ft.onOpenChange,yi=Ft.onActiveInfo,Ci=Ft.placement,mi=Ft.onMouseDown,vi=Ft.required,Tn=Ft["aria-required"],Ji=Ft.autoFocus,Er=Ft.tabIndex,Mr=(0,Rr.Z)(Ft,no),rr=gn==="rtl",jr=Bt.useContext(ct),kr=jr.prefixCls,Hr=Bt.useMemo(function(){if(typeof Yt=="string")return[Yt];var to=Yt||{};return[to.start,to.end]},[Yt]),Ur=Bt.useRef(),oo=Bt.useRef(),So=Bt.useRef(),mo=function(Xr){var Kr;return(Kr=[oo,So][Xr])===null||Kr===void 0?void 0:Kr.current};Bt.useImperativeHandle(re,function(){return{nativeElement:Ur.current,focus:function(Xr){if((0,Fn.Z)(Xr)==="object"){var Kr,Wo=Xr||{},so=Wo.index,ca=so===void 0?0:so,Xi=(0,Rr.Z)(Wo,Zo);(Kr=mo(ca))===null||Kr===void 0||Kr.focus(Xi)}else{var Fi;(Fi=mo(Xr!=null?Xr:0))===null||Fi===void 0||Fi.focus()}},blur:function(){var Xr,Kr;(Xr=mo(0))===null||Xr===void 0||Xr.blur(),(Kr=mo(1))===null||Kr===void 0||Kr.blur()}}});var Xo=Mi(Mr),io=Bt.useMemo(function(){return Array.isArray(In)?In:[In,In]},[In]),Ko=No((0,me.Z)((0,me.Z)({},Ft),{},{id:Hr,placeholder:io})),uo=(0,he.Z)(Ko,1),To=uo[0],ts=Bt.useState({position:"absolute",width:0}),Ro=(0,he.Z)(ts,2),Eo=Ro[0],$r=Ro[1],os=(0,ce.zX)(function(){var to=mo(kn);if(to){var Xr=to.nativeElement.getBoundingClientRect(),Kr=Ur.current.getBoundingClientRect(),Wo=Xr.left-Kr.left;$r(function(so){return(0,me.Z)((0,me.Z)({},so),{},{width:Xr.width,left:Wo})}),yi([Xr.left,Xr.right,Kr.width])}});Bt.useEffect(function(){os()},[kn]);var ws=ge&&(ui[0]&&!tr[0]||ui[1]&&!tr[1]),Mo=Ji&&!tr[0],Ts=Ji&&!Mo&&!tr[1];return Bt.createElement(nr.Z,{onResize:os},Bt.createElement("div",(0,St.Z)({},Xo,{className:bt()(kr,"".concat(kr,"-range"),(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},"".concat(kr,"-focused"),Zn),"".concat(kr,"-disabled"),tr.every(function(to){return to})),"".concat(kr,"-invalid"),Vi.some(function(to){return to})),"".concat(kr,"-rtl"),rr),Ti),style:wi,ref:Ur,onClick:pi,onMouseDown:function(Xr){var Kr=Xr.target;Kr!==oo.current.inputElement&&Kr!==So.current.inputElement&&Xr.preventDefault(),mi==null||mi(Xr)}}),de&&Bt.createElement("div",{className:"".concat(kr,"-prefix")},de),Bt.createElement(Uo,(0,St.Z)({ref:oo},To(0),{autoFocus:Mo,tabIndex:Er,"date-range":"start"})),Bt.createElement("div",{className:"".concat(kr,"-range-separator")},Je),Bt.createElement(Uo,(0,St.Z)({ref:So},To(1),{autoFocus:Ts,tabIndex:Er,"date-range":"end"})),Bt.createElement("div",{className:"".concat(kr,"-active-bar"),style:Eo}),Bt.createElement(Ir,{type:"suffix",icon:Oe}),ws&&Bt.createElement(Fr,{icon:ge,onClear:ai})))}var $i=Bt.forwardRef(Or),po=$i;function Ps(Ft,re){var Yt=Ft!=null?Ft:re;return Array.isArray(Yt)?Yt:[Yt,Yt]}function Po(Ft){return Ft===1?"end":"start"}function Jn(Ft,re){var Yt=hi(Ft,function(){var Cr=Ft.disabled,Dr=Ft.allowEmpty,Yr=Ps(Cr,!1),zo=Ps(Dr,!1);return{disabled:Yr,allowEmpty:zo}}),de=(0,he.Z)(Yt,6),ge=de[0],Oe=de[1],ze=de[2],Je=de[3],kn=de[4],Dn=de[5],$e=ge.prefixCls,Zn=ge.styles,qn=ge.classNames,oe=ge.defaultValue,Hn=ge.value,Qn=ge.needConfirm,ni=ge.onKeyDown,In=ge.disabled,Ti=ge.allowEmpty,wi=ge.disabledDate,pi=ge.minDate,ai=ge.maxDate,ui=ge.defaultOpen,Li=ge.open,vr=ge.onOpenChange,ir=ge.locale,lr=ge.generateConfig,Yn=ge.picker,Lr=ge.showNow,sr=ge.showToday,tr=ge.showTime,Vi=ge.mode,Pr=ge.onPanelChange,gn=ge.onCalendarChange,li=ge.onOk,yi=ge.defaultPickerValue,Ci=ge.pickerValue,mi=ge.onPickerValueChange,vi=ge.inputReadOnly,Tn=ge.suffixIcon,Ji=ge.onFocus,Er=ge.onBlur,Mr=ge.presets,rr=ge.ranges,jr=ge.components,kr=ge.cellRender,Hr=ge.dateRender,Ur=ge.monthCellRender,oo=ge.onClick,So=Ei(re),mo=bi(Li,ui,In,vr),Xo=(0,he.Z)(mo,2),io=Xo[0],Ko=Xo[1],uo=function(Dr,Yr){(In.some(function(zo){return!zo})||!Dr)&&Ko(Dr,Yr)},To=ms(lr,ir,Je,!0,!1,oe,Hn,gn,li),ts=(0,he.Z)(To,5),Ro=ts[0],Eo=ts[1],$r=ts[2],os=ts[3],ws=ts[4],Mo=$r(),Ts=ei(In,Ti,io),to=(0,he.Z)(Ts,9),Xr=to[0],Kr=to[1],Wo=to[2],so=to[3],ca=to[4],Xi=to[5],Fi=to[6],qi=to[7],Gi=to[8],En=function(Dr,Yr){Kr(!0),Ji==null||Ji(Dr,{range:Po(Yr!=null?Yr:so)})},Ao=function(Dr,Yr){Kr(!1),Er==null||Er(Dr,{range:Po(Yr!=null?Yr:so)})},$t=Bt.useMemo(function(){if(!tr)return null;var Cr=tr.disabledTime,Dr=Cr?function(Yr){var zo=Po(so),Zs=qt(Mo,Fi,so);return Cr(Yr,zo,{from:Zs})}:void 0;return(0,me.Z)((0,me.Z)({},tr),{},{disabledTime:Dr})},[tr,so,Mo,Fi]),Qe=(0,ce.C8)([Yn,Yn],{value:Vi}),Is=(0,he.Z)(Qe,2),Os=Is[0],Gs=Is[1],ys=Os[so]||Yn,qs=ys==="date"&&$t?"datetime":ys,Vs=qs===Yn&&qs!=="time",Sl=Go(Yn,ys,Lr,sr,!0),es=Ho(ge,Ro,Eo,$r,os,In,Je,Xr,io,Dn),ur=(0,he.Z)(es,2),Ys=ur[0],_s=ur[1],ns=gr(Mo,In,Fi,lr,ir,wi),Qr=pe(Mo,Dn,Ti),Cs=(0,he.Z)(Qr,2),fa=Cs[0],qo=Cs[1],ga=_r(lr,ir,Mo,Os,io,so,Oe,Vs,yi,Ci,$t==null?void 0:$t.defaultOpenValue,mi,pi,ai),Rs=(0,he.Z)(ga,2),Xl=Rs[0],Lo=Rs[1],bs=(0,ce.zX)(function(Cr,Dr,Yr){var zo=Vt(Os,so,Dr);if((zo[0]!==Os[0]||zo[1]!==Os[1])&&Gs(zo),Pr&&Yr!==!1){var Zs=(0,ee.Z)(Mo);Cr&&(Zs[so]=Cr),Pr(Zs,zo)}}),yo=function(Dr,Yr){return Vt(Mo,Yr,Dr)},Io=function(Dr,Yr){var zo=Mo;Dr&&(zo=yo(Dr,so)),qi(so);var Zs=Xi(zo);os(zo),Ys(so,Zs===null),Zs===null?uo(!1,{force:!0}):Yr||So.current.focus({index:Zs})},is=function(Dr){var Yr,zo=Dr.target.getRootNode();if(!So.current.nativeElement.contains((Yr=zo.activeElement)!==null&&Yr!==void 0?Yr:document.activeElement)){var Zs=In.findIndex(function(na){return!na});Zs>=0&&So.current.focus({index:Zs})}uo(!0),oo==null||oo(Dr)},ds=function(){_s(null),uo(!1,{force:!0})},bo=Bt.useState(null),Dl=(0,he.Z)(bo,2),mr=Dl[0],oh=Dl[1],eo=Bt.useState(null),Hu=(0,he.Z)(eo,2),Nl=Hu[0],lu=Hu[1],sh=Bt.useMemo(function(){return Nl||Mo},[Mo,Nl]);Bt.useEffect(function(){io||lu(null)},[io]);var ah=Bt.useState([0,0,0]),ol=(0,he.Z)(ah,2),uu=ol[0],Bo=ol[1],xl=Pi(Mr,rr),lh=function(Dr){lu(Dr),oh("preset")},hu=function(Dr){var Yr=_s(Dr);Yr&&uo(!1,{force:!0})},Vh=function(Dr){Io(Dr)},Tl=function(Dr){lu(Dr?yo(Dr,so):null),oh("cell")},Wa=function(Dr){uo(!0),En(Dr)},Kl=function(){Wo("panel")},sl=function(Dr){var Yr=Vt(Mo,so,Dr);os(Yr),!Qn&&!ze&&Oe===qs&&Io(Dr)},Ql=function(){uo(!1)},uh=Me(kr,Hr,Ur,Po(so)),Yh=Mo[so]||null,Zh=(0,ce.zX)(function(Cr){return Dn(Cr,{activeIndex:so})}),Oo=Bt.useMemo(function(){var Cr=(0,Be.Z)(ge,!1),Dr=(0,ue.Z)(ge,[].concat((0,ee.Z)(Object.keys(Cr)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Dr},[ge]),qr=Bt.createElement(Tr,(0,St.Z)({},Oo,{showNow:Sl,showTime:$t,range:!0,multiplePanel:Vs,activeInfo:uu,disabledDate:ns,onFocus:Wa,onBlur:Ao,onPanelMouseDown:Kl,picker:Yn,mode:ys,internalMode:qs,onPanelChange:bs,format:kn,value:Yh,isInvalid:Zh,onChange:null,onSelect:sl,pickerValue:Xl,defaultOpenValue:Dt(tr==null?void 0:tr.defaultOpenValue)[so],onPickerValueChange:Lo,hoverValue:sh,onHover:Tl,needConfirm:Qn,onSubmit:Io,onOk:ws,presets:xl,onPresetHover:lh,onPresetSubmit:hu,onNow:Vh,cellRender:uh})),$s=function(Dr,Yr){var zo=yo(Dr,Yr);os(zo)},Jl=function(){Wo("input")},kd=function(Dr,Yr){var zo=Fi.length,Zs=Fi[zo-1];if(zo&&Zs!==Yr&&Qn&&!Ti[Zs]&&!Gi(Zs)&&Mo[Zs]){So.current.focus({index:Zs});return}Wo("input"),uo(!0,{inherit:!0}),so!==Yr&&io&&!Qn&&ze&&Io(null,!0),ca(Yr),En(Dr,Yr)},hg=function(Dr,Yr){if(uo(!1),!Qn&&Wo()==="input"){var zo=Xi(Mo);Ys(so,zo===null)}Ao(Dr,Yr)},tf=function(Dr,Yr){Dr.key==="Tab"&&Io(null,!0),ni==null||ni(Dr,Yr)},Ms=Bt.useMemo(function(){return{prefixCls:$e,locale:ir,generateConfig:lr,button:jr.button,input:jr.input}},[$e,ir,lr,jr.button,jr.input]);if((0,fe.Z)(function(){io&&so!==void 0&&bs(null,Yn,!1)},[io,so,Yn]),(0,fe.Z)(function(){var Cr=Wo();!io&&Cr==="input"&&(uo(!1),Io(null,!0)),!io&&ze&&!Qn&&Cr==="panel"&&(uo(!0),Io())},[io]),0)var Gu;return Bt.createElement(ct.Provider,{value:Ms},Bt.createElement(vt,(0,St.Z)({},Jt(ge),{popupElement:qr,popupStyle:Zn.popup,popupClassName:qn.popup,visible:io,onClose:Ql,range:!0}),Bt.createElement(po,(0,St.Z)({},ge,{ref:So,suffixIcon:Tn,activeIndex:Xr||io?so:null,activeHelp:!!Nl,allHelp:!!Nl&&mr==="preset",focused:Xr,onFocus:kd,onBlur:hg,onKeyDown:tf,onSubmit:Io,value:sh,maskFormat:kn,onChange:$s,onInputChange:Jl,format:Je,inputReadOnly:vi,disabled:In,open:io,onOpenChange:uo,onClick:is,onClear:ds,invalid:fa,onInvalid:qo,onActiveInfo:Bo}))))}var Wt=Bt.forwardRef(Jn),Co=Wt,ea=Rt(11780);function Js(Ft){var re=Ft.prefixCls,Yt=Ft.value,de=Ft.onRemove,ge=Ft.removeIcon,Oe=ge===void 0?"\xD7":ge,ze=Ft.formatDate,Je=Ft.disabled,kn=Ft.maxTagCount,Dn=Ft.placeholder,$e="".concat(re,"-selector"),Zn="".concat(re,"-selection"),qn="".concat(Zn,"-overflow");function oe(ni,In){return Bt.createElement("span",{className:bt()("".concat(Zn,"-item")),title:typeof ni=="string"?ni:null},Bt.createElement("span",{className:"".concat(Zn,"-item-content")},ni),!Je&&In&&Bt.createElement("span",{onMouseDown:function(wi){wi.preventDefault()},onClick:In,className:"".concat(Zn,"-item-remove")},Oe))}function Hn(ni){var In=ze(ni),Ti=function(pi){pi&&pi.stopPropagation(),de(ni)};return oe(In,Ti)}function Qn(ni){var In="+ ".concat(ni.length," ...");return oe(In)}return Bt.createElement("div",{className:$e},Bt.createElement(ea.Z,{prefixCls:qn,data:Yt,renderItem:Hn,renderRest:Qn,itemKey:function(In){return ze(In)},maxCount:kn}),!Yt.length&&Bt.createElement("span",{className:"".concat(re,"-selection-placeholder")},Dn))}var vs=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function ro(Ft,re){var Yt=Ft.id,de=Ft.open,ge=Ft.prefix,Oe=Ft.clearIcon,ze=Ft.suffixIcon,Je=Ft.activeHelp,kn=Ft.allHelp,Dn=Ft.focused,$e=Ft.onFocus,Zn=Ft.onBlur,qn=Ft.onKeyDown,oe=Ft.locale,Hn=Ft.generateConfig,Qn=Ft.placeholder,ni=Ft.className,In=Ft.style,Ti=Ft.onClick,wi=Ft.onClear,pi=Ft.internalPicker,ai=Ft.value,ui=Ft.onChange,Li=Ft.onSubmit,vr=Ft.onInputChange,ir=Ft.multiple,lr=Ft.maxTagCount,Yn=Ft.format,Lr=Ft.maskFormat,sr=Ft.preserveInvalidOnBlur,tr=Ft.onInvalid,Vi=Ft.disabled,Pr=Ft.invalid,gn=Ft.inputReadOnly,li=Ft.direction,yi=Ft.onOpenChange,Ci=Ft.onMouseDown,mi=Ft.required,vi=Ft["aria-required"],Tn=Ft.autoFocus,Ji=Ft.tabIndex,Er=Ft.removeIcon,Mr=(0,Rr.Z)(Ft,vs),rr=li==="rtl",jr=Bt.useContext(ct),kr=jr.prefixCls,Hr=Bt.useRef(),Ur=Bt.useRef();Bt.useImperativeHandle(re,function(){return{nativeElement:Hr.current,focus:function(Eo){var $r;($r=Ur.current)===null||$r===void 0||$r.focus(Eo)},blur:function(){var Eo;(Eo=Ur.current)===null||Eo===void 0||Eo.blur()}}});var oo=Mi(Mr),So=function(Eo){ui([Eo])},mo=function(Eo){var $r=ai.filter(function(os){return os&&!kt(Hn,oe,os,Eo,pi)});ui($r),de||Li()},Xo=No((0,me.Z)((0,me.Z)({},Ft),{},{onChange:So}),function(Ro){var Eo=Ro.valueTexts;return{value:Eo[0]||"",active:Dn}}),io=(0,he.Z)(Xo,2),Ko=io[0],uo=io[1],To=!!(Oe&&ai.length&&!Vi),ts=ir?Bt.createElement(Bt.Fragment,null,Bt.createElement(Js,{prefixCls:kr,value:ai,onRemove:mo,formatDate:uo,maxTagCount:lr,disabled:Vi,removeIcon:Er,placeholder:Qn}),Bt.createElement("input",{className:"".concat(kr,"-multiple-input"),value:ai.map(uo).join(","),ref:Ur,readOnly:!0,autoFocus:Tn,tabIndex:Ji}),Bt.createElement(Ir,{type:"suffix",icon:ze}),To&&Bt.createElement(Fr,{icon:Oe,onClear:wi})):Bt.createElement(Uo,(0,St.Z)({ref:Ur},Ko(),{autoFocus:Tn,tabIndex:Ji,suffixIcon:ze,clearIcon:To&&Bt.createElement(Fr,{icon:Oe,onClear:wi}),showActiveCls:!1}));return Bt.createElement("div",(0,St.Z)({},oo,{className:bt()(kr,(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},"".concat(kr,"-multiple"),ir),"".concat(kr,"-focused"),Dn),"".concat(kr,"-disabled"),Vi),"".concat(kr,"-invalid"),Pr),"".concat(kr,"-rtl"),rr),ni),style:In,ref:Hr,onClick:Ti,onMouseDown:function(Eo){var $r,os=Eo.target;os!==(($r=Ur.current)===null||$r===void 0?void 0:$r.inputElement)&&Eo.preventDefault(),Ci==null||Ci(Eo)}}),ge&&Bt.createElement("div",{className:"".concat(kr,"-prefix")},ge),ts)}var Ai=Bt.forwardRef(ro),Ii=Ai;function xr(Ft,re){var Yt=hi(Ft),de=(0,he.Z)(Yt,6),ge=de[0],Oe=de[1],ze=de[2],Je=de[3],kn=de[4],Dn=de[5],$e=ge,Zn=$e.prefixCls,qn=$e.styles,oe=$e.classNames,Hn=$e.order,Qn=$e.defaultValue,ni=$e.value,In=$e.needConfirm,Ti=$e.onChange,wi=$e.onKeyDown,pi=$e.disabled,ai=$e.disabledDate,ui=$e.minDate,Li=$e.maxDate,vr=$e.defaultOpen,ir=$e.open,lr=$e.onOpenChange,Yn=$e.locale,Lr=$e.generateConfig,sr=$e.picker,tr=$e.showNow,Vi=$e.showToday,Pr=$e.showTime,gn=$e.mode,li=$e.onPanelChange,yi=$e.onCalendarChange,Ci=$e.onOk,mi=$e.multiple,vi=$e.defaultPickerValue,Tn=$e.pickerValue,Ji=$e.onPickerValueChange,Er=$e.inputReadOnly,Mr=$e.suffixIcon,rr=$e.removeIcon,jr=$e.onFocus,kr=$e.onBlur,Hr=$e.presets,Ur=$e.components,oo=$e.cellRender,So=$e.dateRender,mo=$e.monthCellRender,Xo=$e.onClick,io=Ei(re);function Ko(Oo){return Oo===null?null:mi?Oo:Oo[0]}var uo=Nn(Lr,Yn,Oe),To=bi(ir,vr,[pi],lr),ts=(0,he.Z)(To,2),Ro=ts[0],Eo=ts[1],$r=function(qr,$s,Jl){if(yi){var kd=(0,me.Z)({},Jl);delete kd.range,yi(Ko(qr),Ko($s),kd)}},os=function(qr){Ci==null||Ci(Ko(qr))},ws=ms(Lr,Yn,Je,!1,Hn,Qn,ni,$r,os),Mo=(0,he.Z)(ws,5),Ts=Mo[0],to=Mo[1],Xr=Mo[2],Kr=Mo[3],Wo=Mo[4],so=Xr(),ca=ei([pi]),Xi=(0,he.Z)(ca,4),Fi=Xi[0],qi=Xi[1],Gi=Xi[2],En=Xi[3],Ao=function(qr){qi(!0),jr==null||jr(qr,{})},$t=function(qr){qi(!1),kr==null||kr(qr,{})},Qe=(0,ce.C8)(sr,{value:gn}),Is=(0,he.Z)(Qe,2),Os=Is[0],Gs=Is[1],ys=Os==="date"&&Pr?"datetime":Os,qs=Go(sr,Os,tr,Vi),Vs=Ti&&function(Oo,qr){Ti(Ko(Oo),Ko(qr))},Sl=Ho((0,me.Z)((0,me.Z)({},ge),{},{onChange:Vs}),Ts,to,Xr,Kr,[],Je,Fi,Ro,Dn),es=(0,he.Z)(Sl,2),ur=es[1],Ys=pe(so,Dn),_s=(0,he.Z)(Ys,2),ns=_s[0],Qr=_s[1],Cs=Bt.useMemo(function(){return ns.some(function(Oo){return Oo})},[ns]),fa=function(qr,$s){if(Ji){var Jl=(0,me.Z)((0,me.Z)({},$s),{},{mode:$s.mode[0]});delete Jl.range,Ji(qr[0],Jl)}},qo=_r(Lr,Yn,so,[Os],Ro,En,Oe,!1,vi,Tn,Dt(Pr==null?void 0:Pr.defaultOpenValue),fa,ui,Li),ga=(0,he.Z)(qo,2),Rs=ga[0],Xl=ga[1],Lo=(0,ce.zX)(function(Oo,qr,$s){if(Gs(qr),li&&$s!==!1){var Jl=Oo||so[so.length-1];li(Jl,qr)}}),bs=function(){ur(Xr()),Eo(!1,{force:!0})},yo=function(qr){!pi&&!io.current.nativeElement.contains(document.activeElement)&&io.current.focus(),Eo(!0),Xo==null||Xo(qr)},Io=function(){ur(null),Eo(!1,{force:!0})},is=Bt.useState(null),ds=(0,he.Z)(is,2),bo=ds[0],Dl=ds[1],mr=Bt.useState(null),oh=(0,he.Z)(mr,2),eo=oh[0],Hu=oh[1],Nl=Bt.useMemo(function(){var Oo=[eo].concat((0,ee.Z)(so)).filter(function(qr){return qr});return mi?Oo:Oo.slice(0,1)},[so,eo,mi]),lu=Bt.useMemo(function(){return!mi&&eo?[eo]:so.filter(function(Oo){return Oo})},[so,eo,mi]);Bt.useEffect(function(){Ro||Hu(null)},[Ro]);var sh=Pi(Hr),ah=function(qr){Hu(qr),Dl("preset")},ol=function(qr){var $s=mi?uo(Xr(),qr):[qr],Jl=ur($s);Jl&&!mi&&Eo(!1,{force:!0})},uu=function(qr){ol(qr)},Bo=function(qr){Hu(qr),Dl("cell")},xl=function(qr){Eo(!0),Ao(qr)},lh=function(qr){if(Gi("panel"),!(mi&&ys!==sr)){var $s=mi?uo(Xr(),qr):[qr];Kr($s),!In&&!ze&&Oe===ys&&bs()}},hu=function(){Eo(!1)},Vh=Me(oo,So,mo),Tl=Bt.useMemo(function(){var Oo=(0,Be.Z)(ge,!1),qr=(0,ue.Z)(ge,[].concat((0,ee.Z)(Object.keys(Oo)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,me.Z)((0,me.Z)({},qr),{},{multiple:ge.multiple})},[ge]),Wa=Bt.createElement(Tr,(0,St.Z)({},Tl,{showNow:qs,showTime:Pr,disabledDate:ai,onFocus:xl,onBlur:$t,picker:sr,mode:Os,internalMode:ys,onPanelChange:Lo,format:kn,value:so,isInvalid:Dn,onChange:null,onSelect:lh,pickerValue:Rs,defaultOpenValue:Pr==null?void 0:Pr.defaultOpenValue,onPickerValueChange:Xl,hoverValue:Nl,onHover:Bo,needConfirm:In,onSubmit:bs,onOk:Wo,presets:sh,onPresetHover:ah,onPresetSubmit:ol,onNow:uu,cellRender:Vh})),Kl=function(qr){Kr(qr)},sl=function(){Gi("input")},Ql=function(qr){Gi("input"),Eo(!0,{inherit:!0}),Ao(qr)},uh=function(qr){Eo(!1),$t(qr)},Yh=function(qr,$s){qr.key==="Tab"&&bs(),wi==null||wi(qr,$s)},Zh=Bt.useMemo(function(){return{prefixCls:Zn,locale:Yn,generateConfig:Lr,button:Ur.button,input:Ur.input}},[Zn,Yn,Lr,Ur.button,Ur.input]);return(0,fe.Z)(function(){Ro&&En!==void 0&&Lo(null,sr,!1)},[Ro,En,sr]),(0,fe.Z)(function(){var Oo=Gi();!Ro&&Oo==="input"&&(Eo(!1),bs()),!Ro&&ze&&!In&&Oo==="panel"&&bs()},[Ro]),Bt.createElement(ct.Provider,{value:Zh},Bt.createElement(vt,(0,St.Z)({},Jt(ge),{popupElement:Wa,popupStyle:qn.popup,popupClassName:oe.popup,visible:Ro,onClose:hu}),Bt.createElement(Ii,(0,St.Z)({},ge,{ref:io,suffixIcon:Mr,removeIcon:rr,activeHelp:!!eo,allHelp:!!eo&&bo==="preset",focused:Fi,onFocus:Ql,onBlur:uh,onKeyDown:Yh,onSubmit:bs,value:lu,maskFormat:kn,onChange:Kl,onInputChange:sl,internalPicker:Oe,format:Je,inputReadOnly:Er,disabled:pi,open:Ro,onOpenChange:Eo,onClick:yo,onClear:Io,invalid:Cs,onInvalid:function(qr){Qr(qr,0)}}))))}var Bi=Bt.forwardRef(xr),ar=Bi,Di=ar},25930:function(xn,$n,Rt){"use strict";Rt.d($n,{Cd:function(){return Me}});var St=Rt(67711),ee=Rt(98506),me=Rt(33346),he=Rt(59301),ce=Rt(92310),fe=Rt.n(ce),ue={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Be=function(){var De=(0,he.useRef)([]),tn=(0,he.useRef)(null);return(0,he.useEffect)(function(){var Fn=Date.now(),on=!1;De.current.forEach(function(pn){if(pn){on=!0;var fn=pn.style;fn.transitionDuration=".3s, .3s, .3s, .06s",tn.current&&Fn-tn.current<100&&(fn.transitionDuration="0s, 0s")}}),on&&(tn.current=Date.now())}),De.current},Ce=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Bt=function(De){var tn=(0,ee.Z)((0,ee.Z)({},ue),De),Fn=tn.className,on=tn.percent,pn=tn.prefixCls,fn=tn.strokeColor,te=tn.strokeLinecap,Ot=tn.strokeWidth,Le=tn.style,dn=tn.trailColor,_e=tn.trailWidth,ve=tn.transition,Xe=(0,me.Z)(tn,Ce);delete Xe.gapPosition;var ke=Array.isArray(on)?on:[on],cn=Array.isArray(fn)?fn:[fn],Ie=Be(),ae=Ot/2,Pe=100-Ot/2,sn="M ".concat(te==="round"?ae:0,",").concat(ae,`
|
|
L `).concat(te==="round"?Pe:100,",").concat(ae),an="0 0 100 ".concat(Ot),Tt=0;return he.createElement("svg",(0,St.Z)({className:fe()("".concat(pn,"-line"),Fn),viewBox:an,preserveAspectRatio:"none",style:Le},Xe),he.createElement("path",{className:"".concat(pn,"-line-trail"),d:sn,strokeLinecap:te,stroke:dn,strokeWidth:_e||Ot,fillOpacity:"0"}),ke.map(function(Ct,xt){var kt=1;switch(te){case"round":kt=1-Ot/100;break;case"square":kt=1-Ot/2/100;break;default:kt=1;break}var zt={strokeDasharray:"".concat(Ct*kt,"px, 100px"),strokeDashoffset:"-".concat(Tt,"px"),transition:ve||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Et=cn[xt]||cn[cn.length-1];return Tt+=Ct,he.createElement("path",{key:xt,className:"".concat(pn,"-line-path"),d:sn,strokeLinecap:te,stroke:Et,strokeWidth:Ot,fillOpacity:"0",ref:function(We){Ie[xt]=We},style:zt})}))},je=Bt,le=Rt(26420),Ge=Rt(16886),bt=Rt(47273),et=0,nt=(0,bt.Z)();function ct(){var He;return nt?(He=et,et+=1):He="TEST_OR_SSR",He}var lt=function(He){var De=he.useState(),tn=(0,Ge.Z)(De,2),Fn=tn[0],on=tn[1];return he.useEffect(function(){on("rc_progress_".concat(ct()))},[]),He||Fn},pt=function(De){var tn=De.bg,Fn=De.children;return he.createElement("div",{style:{width:"100%",height:"100%",background:tn}},Fn)};function vt(He,De){return Object.keys(He).map(function(tn){var Fn=parseFloat(tn),on="".concat(Math.floor(Fn*De),"%");return"".concat(He[tn]," ").concat(on)})}var Pt=he.forwardRef(function(He,De){var tn=He.prefixCls,Fn=He.color,on=He.gradientId,pn=He.radius,fn=He.style,te=He.ptg,Ot=He.strokeLinecap,Le=He.strokeWidth,dn=He.size,_e=He.gapDegree,ve=Fn&&(0,le.Z)(Fn)==="object",Xe=ve?"#FFF":void 0,ke=dn/2,cn=he.createElement("circle",{className:"".concat(tn,"-circle-path"),r:pn,cx:ke,cy:ke,stroke:Xe,strokeLinecap:Ot,strokeWidth:Le,opacity:te===0?0:1,style:fn,ref:De});if(!ve)return cn;var Ie="".concat(on,"-conic"),ae=_e?"".concat(180+_e/2,"deg"):"0deg",Pe=vt(Fn,(360-_e)/360),sn=vt(Fn,1),an="conic-gradient(from ".concat(ae,", ").concat(Pe.join(", "),")"),Tt="linear-gradient(to ".concat(_e?"bottom":"top",", ").concat(sn.join(", "),")");return he.createElement(he.Fragment,null,he.createElement("mask",{id:Ie},cn),he.createElement("foreignObject",{x:0,y:0,width:dn,height:dn,mask:"url(#".concat(Ie,")")},he.createElement(pt,{bg:Tt},he.createElement(pt,{bg:an}))))}),Dt=Pt,Vt=100,Ut=function(De,tn,Fn,on,pn,fn,te,Ot,Le,dn){var _e=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ve=Fn/100*360*((360-fn)/360),Xe=fn===0?0:{bottom:0,top:180,left:90,right:-90}[te],ke=(100-on)/100*tn;Le==="round"&&on!==100&&(ke+=dn/2,ke>=tn&&(ke=tn-.01));var cn=Vt/2;return{stroke:typeof Ot=="string"?Ot:void 0,strokeDasharray:"".concat(tn,"px ").concat(De),strokeDashoffset:ke+_e,transform:"rotate(".concat(pn+ve+Xe,"deg)"),transformOrigin:"".concat(cn,"px ").concat(cn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},se=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function qt(He){var De=He!=null?He:[];return Array.isArray(De)?De:[De]}var Jt=function(De){var tn=(0,ee.Z)((0,ee.Z)({},ue),De),Fn=tn.id,on=tn.prefixCls,pn=tn.steps,fn=tn.strokeWidth,te=tn.trailWidth,Ot=tn.gapDegree,Le=Ot===void 0?0:Ot,dn=tn.gapPosition,_e=tn.trailColor,ve=tn.strokeLinecap,Xe=tn.style,ke=tn.className,cn=tn.strokeColor,Ie=tn.percent,ae=(0,me.Z)(tn,se),Pe=Vt/2,sn=lt(Fn),an="".concat(sn,"-gradient"),Tt=Pe-fn/2,Ct=Math.PI*2*Tt,xt=Le>0?90+Le/2:-90,kt=Ct*((360-Le)/360),zt=(0,le.Z)(pn)==="object"?pn:{count:pn,gap:2},Et=zt.count,Ae=zt.gap,We=qt(Ie),Ue=qt(cn),jn=Ue.find(function(Wn){return Wn&&(0,le.Z)(Wn)==="object"}),Gn=jn&&(0,le.Z)(jn)==="object",Ke=Gn?"butt":ve,ri=Ut(Ct,kt,0,100,xt,Le,dn,_e,Ke,fn),Sn=Be(),hi=function(){var bi=0;return We.map(function(Ei,Pi){var An=Ue[Pi]||Ue[Ue.length-1],ei=Ut(Ct,kt,bi,Ei,xt,Le,dn,An,Ke,fn);return bi+=Ei,he.createElement(Dt,{key:Pi,color:An,ptg:Ei,radius:Tt,prefixCls:on,gradientId:an,style:ei,strokeLinecap:Ke,strokeWidth:fn,gapDegree:Le,ref:function(dr){Sn[Pi]=dr},size:Vt})}).reverse()},ti=function(){var bi=Math.round(Et*(We[0]/100)),Ei=100/Et,Pi=0;return new Array(Et).fill(null).map(function(An,ei){var gr=ei<=bi-1?Ue[0]:_e,dr=gr&&(0,le.Z)(gr)==="object"?"url(#".concat(an,")"):void 0,Sr=Ut(Ct,kt,Pi,Ei,xt,Le,dn,gr,"butt",fn,Ae);return Pi+=(kt-Sr.strokeDashoffset+Ae)*100/kt,he.createElement("circle",{key:ei,className:"".concat(on,"-circle-path"),r:Tt,cx:Pe,cy:Pe,stroke:dr,strokeWidth:fn,opacity:1,style:Sr,ref:function(cr){Sn[ei]=cr}})})};return he.createElement("svg",(0,St.Z)({className:fe()("".concat(on,"-circle"),ke),viewBox:"0 0 ".concat(Vt," ").concat(Vt),style:Xe,id:Fn,role:"presentation"},ae),!Et&&he.createElement("circle",{className:"".concat(on,"-circle-trail"),r:Tt,cx:Pe,cy:Pe,stroke:_e,strokeLinecap:Ke,strokeWidth:te||fn,style:ri}),Et?ti():hi())},Me=Jt,pe={Line:je,Circle:Me}},738:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return vt}});var St=Rt(67711),ee=Rt(52873),me=Rt(16886),he=Rt(33346),ce=Rt(92310),fe=Rt.n(ce),ue=Rt(18929),Be=Rt(10228),Ce=Rt(26112),Bt=Rt(59301);function je(Pt,Dt){var Vt=Pt.disabled,Ut=Pt.prefixCls,se=Pt.character,qt=Pt.characterRender,Jt=Pt.index,Me=Pt.count,pe=Pt.value,He=Pt.allowHalf,De=Pt.focused,tn=Pt.onHover,Fn=Pt.onClick,on=function(ve){tn(ve,Jt)},pn=function(ve){Fn(ve,Jt)},fn=function(ve){ve.keyCode===Be.Z.ENTER&&Fn(ve,Jt)},te=Jt+1,Ot=new Set([Ut]);pe===0&&Jt===0&&De?Ot.add("".concat(Ut,"-focused")):He&&pe+.5>=te&&pe<te?(Ot.add("".concat(Ut,"-half")),Ot.add("".concat(Ut,"-active")),De&&Ot.add("".concat(Ut,"-focused"))):(te<=pe?Ot.add("".concat(Ut,"-full")):Ot.add("".concat(Ut,"-zero")),te===pe&&De&&Ot.add("".concat(Ut,"-focused")));var Le=typeof se=="function"?se(Pt):se,dn=Bt.createElement("li",{className:fe()(Array.from(Ot)),ref:Dt},Bt.createElement("div",{onClick:Vt?null:pn,onKeyDown:Vt?null:fn,onMouseMove:Vt?null:on,role:"radio","aria-checked":pe>Jt?"true":"false","aria-posinset":Jt+1,"aria-setsize":Me,tabIndex:Vt?-1:0},Bt.createElement("div",{className:"".concat(Ut,"-first")},Le),Bt.createElement("div",{className:"".concat(Ut,"-second")},Le)));return qt&&(dn=qt(dn,Pt)),dn}var le=Bt.forwardRef(je);function Ge(){var Pt=Bt.useRef({});function Dt(Ut){return Pt.current[Ut]}function Vt(Ut){return function(se){Pt.current[Ut]=se}}return[Dt,Vt]}function bt(Pt){var Dt=Pt.pageXOffset,Vt="scrollLeft";if(typeof Dt!="number"){var Ut=Pt.document;Dt=Ut.documentElement[Vt],typeof Dt!="number"&&(Dt=Ut.body[Vt])}return Dt}function et(Pt){var Dt,Vt,Ut=Pt.ownerDocument,se=Ut.body,qt=Ut&&Ut.documentElement,Jt=Pt.getBoundingClientRect();return Dt=Jt.left,Vt=Jt.top,Dt-=qt.clientLeft||se.clientLeft||0,Vt-=qt.clientTop||se.clientTop||0,{left:Dt,top:Vt}}function nt(Pt){var Dt=et(Pt),Vt=Pt.ownerDocument,Ut=Vt.defaultView||Vt.parentWindow;return Dt.left+=bt(Ut),Dt.left}var ct=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function lt(Pt,Dt){var Vt=Pt.prefixCls,Ut=Vt===void 0?"rc-rate":Vt,se=Pt.className,qt=Pt.defaultValue,Jt=Pt.value,Me=Pt.count,pe=Me===void 0?5:Me,He=Pt.allowHalf,De=He===void 0?!1:He,tn=Pt.allowClear,Fn=tn===void 0?!0:tn,on=Pt.keyboard,pn=on===void 0?!0:on,fn=Pt.character,te=fn===void 0?"\u2605":fn,Ot=Pt.characterRender,Le=Pt.disabled,dn=Pt.direction,_e=dn===void 0?"ltr":dn,ve=Pt.tabIndex,Xe=ve===void 0?0:ve,ke=Pt.autoFocus,cn=Pt.onHoverChange,Ie=Pt.onChange,ae=Pt.onFocus,Pe=Pt.onBlur,sn=Pt.onKeyDown,an=Pt.onMouseLeave,Tt=(0,he.Z)(Pt,ct),Ct=Ge(),xt=(0,me.Z)(Ct,2),kt=xt[0],zt=xt[1],Et=Bt.useRef(null),Ae=function(){if(!Le){var nr;(nr=Et.current)===null||nr===void 0||nr.focus()}};Bt.useImperativeHandle(Dt,function(){return{focus:Ae,blur:function(){if(!Le){var nr;(nr=Et.current)===null||nr===void 0||nr.blur()}}}});var We=(0,ue.Z)(qt||0,{value:Jt}),Ue=(0,me.Z)(We,2),jn=Ue[0],Gn=Ue[1],Ke=(0,ue.Z)(null),ri=(0,me.Z)(Ke,2),Sn=ri[0],hi=ri[1],ti=function(nr,lo){var Lt=_e==="rtl",Rn=nr+1;if(De){var ii=kt(nr),Vn=nt(ii),Nn=ii.clientWidth;(Lt&&lo-Vn>Nn/2||!Lt&&lo-Vn<Nn/2)&&(Rn-=.5)}return Rn},Wn=function(nr){Gn(nr),Ie==null||Ie(nr)},bi=Bt.useState(!1),Ei=(0,me.Z)(bi,2),Pi=Ei[0],An=Ei[1],ei=function(){An(!0),ae==null||ae()},gr=function(){An(!1),Pe==null||Pe()},dr=Bt.useState(null),Sr=(0,me.Z)(dr,2),_r=Sr[0],cr=Sr[1],jo=function(nr,lo){var Lt=ti(lo,nr.pageX);Lt!==Sn&&(cr(Lt),hi(null)),cn==null||cn(Lt)},Yo=function(nr){Le||(cr(null),hi(null),cn==null||cn(void 0)),nr&&(an==null||an(nr))},ko=function(nr,lo){var Lt=ti(lo,nr.pageX),Rn=!1;Fn&&(Rn=Lt===jn),Yo(),Wn(Rn?0:Lt),hi(Rn?Lt:null)},$o=function(nr){var lo=nr.keyCode,Lt=_e==="rtl",Rn=De?.5:1;pn&&(lo===Be.Z.RIGHT&&jn<pe&&!Lt?(Wn(jn+Rn),nr.preventDefault()):lo===Be.Z.LEFT&&jn>0&&!Lt||lo===Be.Z.RIGHT&&jn>0&&Lt?(Wn(jn-Rn),nr.preventDefault()):lo===Be.Z.LEFT&&jn<pe&&Lt&&(Wn(jn+Rn),nr.preventDefault())),sn==null||sn(nr)};Bt.useEffect(function(){ke&&!Le&&Ae()},[]);var ms=new Array(pe).fill(0).map(function(Go,nr){return Bt.createElement(le,{ref:zt(nr),index:nr,count:pe,disabled:Le,prefixCls:"".concat(Ut,"-star"),allowHalf:De,value:_r===null?jn:_r,onClick:ko,onHover:jo,key:Go||nr,character:te,characterRender:Ot,focused:Pi})}),Ho=fe()(Ut,se,(0,ee.Z)((0,ee.Z)({},"".concat(Ut,"-disabled"),Le),"".concat(Ut,"-rtl"),_e==="rtl"));return Bt.createElement("ul",(0,St.Z)({className:Ho,onMouseLeave:Yo,tabIndex:Le?-1:Xe,onFocus:Le?null:ei,onBlur:Le?null:gr,onKeyDown:Le?null:$o,ref:Et},(0,Ce.Z)(Tt,{aria:!0,data:!0,attr:!0})),ms)}var pt=Bt.forwardRef(lt),vt=pt},6551:function(xn,$n,Rt){"use strict";Rt.d($n,{ZP:function(){return ue}});var St=Rt(16886),ee=Rt(59301),me=Rt(47273),he=0,ce=(0,me.Z)();function fe(){var Be;return ce?(Be=he,he+=1):Be="TEST_OR_SSR",Be}function ue(Be){var Ce=ee.useState(),Bt=(0,St.Z)(Ce,2),je=Bt[0],le=Bt[1];return ee.useEffect(function(){le("rc_select_".concat(fe()))},[]),Be||je}},37463:function(xn,$n,Rt){"use strict";Rt.d($n,{Ac:function(){return An},Xo:function(){return gr},Wx:function(){return Sr},ZP:function(){return Pn},lk:function(){return vt}});var St=Rt(67711),ee=Rt(15142),me=Rt(52873),he=Rt(98506),ce=Rt(16886),fe=Rt(33346),ue=Rt(26420),Be=Rt(18929),Ce=Rt(48736),Bt=Rt(59301),je=Rt(92310),le=Rt.n(je),Ge=Rt(34280),bt=Rt(49658),et=Rt(8654),nt=function(ye){var Mn=ye.className,wn=ye.customizeIcon,be=ye.customizeIconProps,Ln=ye.children,Ni=ye.onMouseDown,ji=ye.onClick,Qi=typeof wn=="function"?wn(be):wn;return Bt.createElement("span",{className:Mn,onMouseDown:function(Bn){Bn.preventDefault(),Ni==null||Ni(Bn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ji,"aria-hidden":!0},Qi!==void 0?Qi:Bt.createElement("span",{className:le()(Mn.split(/\s+/).map(function(On){return"".concat(On,"-icon")}))},Ln))},ct=nt,lt=function(ye,Mn,wn,be,Ln){var Ni=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ji=arguments.length>6?arguments[6]:void 0,Qi=arguments.length>7?arguments[7]:void 0,On=Bt.useMemo(function(){if((0,ue.Z)(be)==="object")return be.clearIcon;if(Ln)return Ln},[be,Ln]),Bn=Bt.useMemo(function(){return!!(!Ni&&be&&(wn.length||ji)&&!(Qi==="combobox"&&ji===""))},[be,Ni,wn.length,ji,Qi]);return{allowClear:Bn,clearIcon:Bt.createElement(ct,{className:"".concat(ye,"-clear"),onMouseDown:Mn,customizeIcon:On},"\xD7")}},pt=Bt.createContext(null);function vt(){return Bt.useContext(pt)}function Pt(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ye=Bt.useState(!1),Mn=(0,ce.Z)(ye,2),wn=Mn[0],be=Mn[1],Ln=Bt.useRef(null),Ni=function(){window.clearTimeout(Ln.current)};Bt.useEffect(function(){return Ni},[]);var ji=function(On,Bn){Ni(),Ln.current=window.setTimeout(function(){be(On),Bn&&Bn()},Xt)};return[wn,ji,Ni]}function Dt(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ye=Bt.useRef(null),Mn=Bt.useRef(null);Bt.useEffect(function(){return function(){window.clearTimeout(Mn.current)}},[]);function wn(be){(be||ye.current===null)&&(ye.current=be),window.clearTimeout(Mn.current),Mn.current=window.setTimeout(function(){ye.current=null},Xt)}return[function(){return ye.current},wn]}function Vt(Xt,ye,Mn,wn){var be=Bt.useRef(null);be.current={open:ye,triggerOpen:Mn,customizedTrigger:wn},Bt.useEffect(function(){function Ln(Ni){var ji;if(!((ji=be.current)!==null&&ji!==void 0&&ji.customizedTrigger)){var Qi=Ni.target;Qi.shadowRoot&&Ni.composed&&(Qi=Ni.composedPath()[0]||Qi),be.current.open&&Xt().filter(function(On){return On}).every(function(On){return!On.contains(Qi)&&On!==Qi})&&be.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ln),function(){return window.removeEventListener("mousedown",Ln)}},[])}var Ut=Rt(10228);function se(Xt){return Xt&&![Ut.Z.ESC,Ut.Z.SHIFT,Ut.Z.BACKSPACE,Ut.Z.TAB,Ut.Z.WIN_KEY,Ut.Z.ALT,Ut.Z.META,Ut.Z.WIN_KEY_RIGHT,Ut.Z.CTRL,Ut.Z.SEMICOLON,Ut.Z.EQUALS,Ut.Z.CAPS_LOCK,Ut.Z.CONTEXT_MENU,Ut.Z.F1,Ut.Z.F2,Ut.Z.F3,Ut.Z.F4,Ut.Z.F5,Ut.Z.F6,Ut.Z.F7,Ut.Z.F8,Ut.Z.F9,Ut.Z.F10,Ut.Z.F11,Ut.Z.F12].includes(Xt)}var qt=Rt(26112),Jt=Rt(11780);function Me(Xt,ye,Mn){var wn=(0,he.Z)((0,he.Z)({},Xt),Mn?ye:{});return Object.keys(ye).forEach(function(be){var Ln=ye[be];typeof Ln=="function"&&(wn[be]=function(){for(var Ni,ji=arguments.length,Qi=new Array(ji),On=0;On<ji;On++)Qi[On]=arguments[On];return Ln.apply(void 0,Qi),(Ni=Xt[be])===null||Ni===void 0?void 0:Ni.call.apply(Ni,[Xt].concat(Qi))})}),wn}var pe=Me,He=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],De=function(ye,Mn){var wn=ye.prefixCls,be=ye.id,Ln=ye.inputElement,Ni=ye.autoFocus,ji=ye.autoComplete,Qi=ye.editable,On=ye.activeDescendantId,Bn=ye.value,Kn=ye.open,or=ye.attrs,Hi=(0,fe.Z)(ye,He),vn=Ln||Bt.createElement("input",null),si=vn,Tr=si.ref,Rr=si.props;return(0,Ce.Kp)(!("maxLength"in vn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),vn=Bt.cloneElement(vn,(0,he.Z)((0,he.Z)((0,he.Z)({type:"search"},pe(Hi,Rr,!0)),{},{id:be,ref:(0,et.sQ)(Mn,Tr),autoComplete:ji||"off",autoFocus:Ni,className:le()("".concat(wn,"-selection-search-input"),Rr==null?void 0:Rr.className),role:"combobox","aria-expanded":Kn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(be,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(be,"_list"),"aria-activedescendant":Kn?On:void 0},or),{},{value:Qi?Bn:"",readOnly:!Qi,unselectable:Qi?null:"on",style:(0,he.Z)((0,he.Z)({},Rr.style),{},{opacity:Qi?null:0})})),vn},tn=Bt.forwardRef(De),Fn=tn;function on(Xt){return Array.isArray(Xt)?Xt:Xt!==void 0?[Xt]:[]}var pn=typeof window!="undefined"&&window.document&&window.document.documentElement,fn=pn;function te(Xt){return Xt!=null}function Ot(Xt){return!Xt&&Xt!==0}function Le(Xt){return["string","number"].includes((0,ue.Z)(Xt))}function dn(Xt){var ye=void 0;return Xt&&(Le(Xt.title)?ye=Xt.title.toString():Le(Xt.label)&&(ye=Xt.label.toString())),ye}function _e(Xt,ye){fn?Bt.useLayoutEffect(Xt,ye):Bt.useEffect(Xt,ye)}function ve(Xt){var ye;return(ye=Xt.key)!==null&&ye!==void 0?ye:Xt.value}var Xe=function(ye){ye.preventDefault(),ye.stopPropagation()},ke=function(ye){var Mn=ye.id,wn=ye.prefixCls,be=ye.values,Ln=ye.open,Ni=ye.searchValue,ji=ye.autoClearSearchValue,Qi=ye.inputRef,On=ye.placeholder,Bn=ye.disabled,Kn=ye.mode,or=ye.showSearch,Hi=ye.autoFocus,vn=ye.autoComplete,si=ye.activeDescendantId,Tr=ye.tabIndex,Rr=ye.removeIcon,No=ye.maxTagCount,Ee=ye.maxTagTextLength,Mi=ye.maxTagPlaceholder,fr=Mi===void 0?function(xr){return"+ ".concat(xr.length," ...")}:Mi,fi=ye.tagRender,Ir=ye.onToggleOpen,Fr=ye.onRemove,Nr=ye.onInputChange,wr=ye.onInputPaste,br=ye.onInputKeyDown,Jr=ye.onInputMouseDown,rn=ye.onInputCompositionStart,fo=ye.onInputCompositionEnd,en=ye.onInputBlur,zr=Bt.useRef(null),Uo=(0,Bt.useState)(0),no=(0,ce.Z)(Uo,2),Zo=no[0],Or=no[1],$i=(0,Bt.useState)(!1),po=(0,ce.Z)($i,2),Ps=po[0],Po=po[1],Jn="".concat(wn,"-selection"),Wt=Ln||Kn==="multiple"&&ji===!1||Kn==="tags"?Ni:"",Co=Kn==="tags"||Kn==="multiple"&&ji===!1||or&&(Ln||Ps);_e(function(){Or(zr.current.scrollWidth)},[Wt]);var ea=function(Bi,ar,Di,Ft,re){return Bt.createElement("span",{title:dn(Bi),className:le()("".concat(Jn,"-item"),(0,me.Z)({},"".concat(Jn,"-item-disabled"),Di))},Bt.createElement("span",{className:"".concat(Jn,"-item-content")},ar),Ft&&Bt.createElement(ct,{className:"".concat(Jn,"-item-remove"),onMouseDown:Xe,onClick:re,customizeIcon:Rr},"\xD7"))},Js=function(Bi,ar,Di,Ft,re,Yt){var de=function(Oe){Xe(Oe),Ir(!Ln)};return Bt.createElement("span",{onMouseDown:de},fi({label:ar,value:Bi,disabled:Di,closable:Ft,onClose:re,isMaxTag:!!Yt}))},vs=function(Bi){var ar=Bi.disabled,Di=Bi.label,Ft=Bi.value,re=!Bn&&!ar,Yt=Di;if(typeof Ee=="number"&&(typeof Di=="string"||typeof Di=="number")){var de=String(Yt);de.length>Ee&&(Yt="".concat(de.slice(0,Ee),"..."))}var ge=function(ze){ze&&ze.stopPropagation(),Fr(Bi)};return typeof fi=="function"?Js(Ft,Yt,ar,re,ge):ea(Bi,Yt,ar,re,ge)},ro=function(Bi){if(!be.length)return null;var ar=typeof fr=="function"?fr(Bi):fr;return typeof fi=="function"?Js(void 0,ar,!1,!1,void 0,!0):ea({title:ar},ar,!1)},Ai=Bt.createElement("div",{className:"".concat(Jn,"-search"),style:{width:Zo},onFocus:function(){Po(!0)},onBlur:function(){Po(!1)}},Bt.createElement(Fn,{ref:Qi,open:Ln,prefixCls:wn,id:Mn,inputElement:null,disabled:Bn,autoFocus:Hi,autoComplete:vn,editable:Co,activeDescendantId:si,value:Wt,onKeyDown:br,onMouseDown:Jr,onChange:Nr,onPaste:wr,onCompositionStart:rn,onCompositionEnd:fo,onBlur:en,tabIndex:Tr,attrs:(0,qt.Z)(ye,!0)}),Bt.createElement("span",{ref:zr,className:"".concat(Jn,"-search-mirror"),"aria-hidden":!0},Wt,"\xA0")),Ii=Bt.createElement(Jt.Z,{prefixCls:"".concat(Jn,"-overflow"),data:be,renderItem:vs,renderRest:ro,suffix:Ai,itemKey:ve,maxCount:No});return Bt.createElement("span",{className:"".concat(Jn,"-wrap")},Ii,!be.length&&!Wt&&Bt.createElement("span",{className:"".concat(Jn,"-placeholder")},On))},cn=ke,Ie=function(ye){var Mn=ye.inputElement,wn=ye.prefixCls,be=ye.id,Ln=ye.inputRef,Ni=ye.disabled,ji=ye.autoFocus,Qi=ye.autoComplete,On=ye.activeDescendantId,Bn=ye.mode,Kn=ye.open,or=ye.values,Hi=ye.placeholder,vn=ye.tabIndex,si=ye.showSearch,Tr=ye.searchValue,Rr=ye.activeValue,No=ye.maxLength,Ee=ye.onInputKeyDown,Mi=ye.onInputMouseDown,fr=ye.onInputChange,fi=ye.onInputPaste,Ir=ye.onInputCompositionStart,Fr=ye.onInputCompositionEnd,Nr=ye.onInputBlur,wr=ye.title,br=Bt.useState(!1),Jr=(0,ce.Z)(br,2),rn=Jr[0],fo=Jr[1],en=Bn==="combobox",zr=en||si,Uo=or[0],no=Tr||"";en&&Rr&&!rn&&(no=Rr),Bt.useEffect(function(){en&&fo(!1)},[en,Rr]);var Zo=Bn!=="combobox"&&!Kn&&!si?!1:!!no,Or=wr===void 0?dn(Uo):wr,$i=Bt.useMemo(function(){return Uo?null:Bt.createElement("span",{className:"".concat(wn,"-selection-placeholder"),style:Zo?{visibility:"hidden"}:void 0},Hi)},[Uo,Zo,Hi,wn]);return Bt.createElement("span",{className:"".concat(wn,"-selection-wrap")},Bt.createElement("span",{className:"".concat(wn,"-selection-search")},Bt.createElement(Fn,{ref:Ln,prefixCls:wn,id:be,open:Kn,inputElement:Mn,disabled:Ni,autoFocus:ji,autoComplete:Qi,editable:zr,activeDescendantId:On,value:no,onKeyDown:Ee,onMouseDown:Mi,onChange:function(Ps){fo(!0),fr(Ps)},onPaste:fi,onCompositionStart:Ir,onCompositionEnd:Fr,onBlur:Nr,tabIndex:vn,attrs:(0,qt.Z)(ye,!0),maxLength:en?No:void 0})),!en&&Uo?Bt.createElement("span",{className:"".concat(wn,"-selection-item"),title:Or,style:Zo?{visibility:"hidden"}:void 0},Uo.label):null,$i)},ae=Ie,Pe=function(ye,Mn){var wn=(0,Bt.useRef)(null),be=(0,Bt.useRef)(!1),Ln=ye.prefixCls,Ni=ye.open,ji=ye.mode,Qi=ye.showSearch,On=ye.tokenWithEnter,Bn=ye.disabled,Kn=ye.prefix,or=ye.autoClearSearchValue,Hi=ye.onSearch,vn=ye.onSearchSubmit,si=ye.onToggleOpen,Tr=ye.onInputKeyDown,Rr=ye.onInputBlur,No=ye.domRef;Bt.useImperativeHandle(Mn,function(){return{focus:function(Or){wn.current.focus(Or)},blur:function(){wn.current.blur()}}});var Ee=Dt(0),Mi=(0,ce.Z)(Ee,2),fr=Mi[0],fi=Mi[1],Ir=function(Or){var $i=Or.which,po=wn.current instanceof HTMLTextAreaElement;!po&&Ni&&($i===Ut.Z.UP||$i===Ut.Z.DOWN)&&Or.preventDefault(),Tr&&Tr(Or),$i===Ut.Z.ENTER&&ji==="tags"&&!be.current&&!Ni&&(vn==null||vn(Or.target.value)),!(po&&!Ni&&~[Ut.Z.UP,Ut.Z.DOWN,Ut.Z.LEFT,Ut.Z.RIGHT].indexOf($i))&&se($i)&&si(!0)},Fr=function(){fi(!0)},Nr=(0,Bt.useRef)(null),wr=function(Or){Hi(Or,!0,be.current)!==!1&&si(!0)},br=function(){be.current=!0},Jr=function(Or){be.current=!1,ji!=="combobox"&&wr(Or.target.value)},rn=function(Or){var $i=Or.target.value;if(On&&Nr.current&&/[\r\n]/.test(Nr.current)){var po=Nr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");$i=$i.replace(po,Nr.current)}Nr.current=null,wr($i)},fo=function(Or){var $i=Or.clipboardData,po=$i==null?void 0:$i.getData("text");Nr.current=po||""},en=function(Or){var $i=Or.target;if($i!==wn.current){var po=document.body.style.msTouchAction!==void 0;po?setTimeout(function(){wn.current.focus()}):wn.current.focus()}},zr=function(Or){var $i=fr();Or.target!==wn.current&&!$i&&!(ji==="combobox"&&Bn)&&Or.preventDefault(),(ji!=="combobox"&&(!Qi||!$i)||!Ni)&&(Ni&&or!==!1&&Hi("",!0,!1),si())},Uo={inputRef:wn,onInputKeyDown:Ir,onInputMouseDown:Fr,onInputChange:rn,onInputPaste:fo,onInputCompositionStart:br,onInputCompositionEnd:Jr,onInputBlur:Rr},no=ji==="multiple"||ji==="tags"?Bt.createElement(cn,(0,St.Z)({},ye,Uo)):Bt.createElement(ae,(0,St.Z)({},ye,Uo));return Bt.createElement("div",{ref:No,className:"".concat(Ln,"-selector"),onClick:en,onMouseDown:zr},Kn&&Bt.createElement("div",{className:"".concat(Ln,"-prefix")},Kn),no)},sn=Bt.forwardRef(Pe),an=sn,Tt=Rt(65030),Ct=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xt=function(ye){var Mn=ye===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Mn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Mn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Mn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Mn,adjustY:1},htmlRegion:"scroll"}}},kt=function(ye,Mn){var wn=ye.prefixCls,be=ye.disabled,Ln=ye.visible,Ni=ye.children,ji=ye.popupElement,Qi=ye.animation,On=ye.transitionName,Bn=ye.dropdownStyle,Kn=ye.dropdownClassName,or=ye.direction,Hi=or===void 0?"ltr":or,vn=ye.placement,si=ye.builtinPlacements,Tr=ye.dropdownMatchSelectWidth,Rr=ye.dropdownRender,No=ye.dropdownAlign,Ee=ye.getPopupContainer,Mi=ye.empty,fr=ye.getTriggerDOMNode,fi=ye.onPopupVisibleChange,Ir=ye.onPopupMouseEnter,Fr=(0,fe.Z)(ye,Ct),Nr="".concat(wn,"-dropdown"),wr=ji;Rr&&(wr=Rr(ji));var br=Bt.useMemo(function(){return si||xt(Tr)},[si,Tr]),Jr=Qi?"".concat(Nr,"-").concat(Qi):On,rn=typeof Tr=="number",fo=Bt.useMemo(function(){return rn?null:Tr===!1?"minWidth":"width"},[Tr,rn]),en=Bn;rn&&(en=(0,he.Z)((0,he.Z)({},en),{},{width:Tr}));var zr=Bt.useRef(null);return Bt.useImperativeHandle(Mn,function(){return{getPopupElement:function(){var no;return(no=zr.current)===null||no===void 0?void 0:no.popupElement}}}),Bt.createElement(Tt.Z,(0,St.Z)({},Fr,{showAction:fi?["click"]:[],hideAction:fi?["click"]:[],popupPlacement:vn||(Hi==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:br,prefixCls:Nr,popupTransitionName:Jr,popup:Bt.createElement("div",{onMouseEnter:Ir},wr),ref:zr,stretch:fo,popupAlign:No,popupVisible:Ln,getPopupContainer:Ee,popupClassName:le()(Kn,(0,me.Z)({},"".concat(Nr,"-empty"),Mi)),popupStyle:en,getTriggerDOMNode:fr,onPopupVisibleChange:fi}),Ni)},zt=Bt.forwardRef(kt),Et=zt,Ae=Rt(57879);function We(Xt,ye){var Mn=Xt.key,wn;return"value"in Xt&&(wn=Xt.value),Mn!=null?Mn:wn!==void 0?wn:"rc-index-key-".concat(ye)}function Ue(Xt){return typeof Xt!="undefined"&&!Number.isNaN(Xt)}function jn(Xt,ye){var Mn=Xt||{},wn=Mn.label,be=Mn.value,Ln=Mn.options,Ni=Mn.groupLabel,ji=wn||(ye?"children":"label");return{label:ji,value:be||"value",options:Ln||"options",groupLabel:Ni||ji}}function Gn(Xt){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Mn=ye.fieldNames,wn=ye.childrenAsData,be=[],Ln=jn(Mn,!1),Ni=Ln.label,ji=Ln.value,Qi=Ln.options,On=Ln.groupLabel;function Bn(Kn,or){Array.isArray(Kn)&&Kn.forEach(function(Hi){if(or||!(Qi in Hi)){var vn=Hi[ji];be.push({key:We(Hi,be.length),groupOption:or,data:Hi,label:Hi[Ni],value:vn})}else{var si=Hi[On];si===void 0&&wn&&(si=Hi.label),be.push({key:We(Hi,be.length),group:!0,data:Hi,label:si}),Bn(Hi[Qi],!0)}})}return Bn(Xt,!1),be}function Ke(Xt){var ye=(0,he.Z)({},Xt);return"props"in ye||Object.defineProperty(ye,"props",{get:function(){return(0,Ce.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ye}}),ye}var ri=function(ye,Mn,wn){if(!Mn||!Mn.length)return null;var be=!1,Ln=function ji(Qi,On){var Bn=(0,Ae.Z)(On),Kn=Bn[0],or=Bn.slice(1);if(!Kn)return[Qi];var Hi=Qi.split(Kn);return be=be||Hi.length>1,Hi.reduce(function(vn,si){return[].concat((0,ee.Z)(vn),(0,ee.Z)(ji(si,or)))},[]).filter(Boolean)},Ni=Ln(ye,Mn);return be?typeof wn!="undefined"?Ni.slice(0,wn):Ni:null},Sn=Bt.createContext(null),hi=Sn;function ti(Xt){var ye=Xt.visible,Mn=Xt.values;if(!ye)return null;var wn=50;return Bt.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Mn.slice(0,wn).map(function(be){var Ln=be.label,Ni=be.value;return["number","string"].includes((0,ue.Z)(Ln))?Ln:Ni}).join(", ")),Mn.length>wn?", ...":null)}var Wn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],bi=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ei=function(ye){return ye==="tags"||ye==="multiple"},Pi=Bt.forwardRef(function(Xt,ye){var Mn,wn=Xt.id,be=Xt.prefixCls,Ln=Xt.className,Ni=Xt.showSearch,ji=Xt.tagRender,Qi=Xt.direction,On=Xt.omitDomProps,Bn=Xt.displayValues,Kn=Xt.onDisplayValuesChange,or=Xt.emptyOptions,Hi=Xt.notFoundContent,vn=Hi===void 0?"Not Found":Hi,si=Xt.onClear,Tr=Xt.mode,Rr=Xt.disabled,No=Xt.loading,Ee=Xt.getInputElement,Mi=Xt.getRawInputElement,fr=Xt.open,fi=Xt.defaultOpen,Ir=Xt.onDropdownVisibleChange,Fr=Xt.activeValue,Nr=Xt.onActiveValueChange,wr=Xt.activeDescendantId,br=Xt.searchValue,Jr=Xt.autoClearSearchValue,rn=Xt.onSearch,fo=Xt.onSearchSplit,en=Xt.tokenSeparators,zr=Xt.allowClear,Uo=Xt.prefix,no=Xt.suffixIcon,Zo=Xt.clearIcon,Or=Xt.OptionList,$i=Xt.animation,po=Xt.transitionName,Ps=Xt.dropdownStyle,Po=Xt.dropdownClassName,Jn=Xt.dropdownMatchSelectWidth,Wt=Xt.dropdownRender,Co=Xt.dropdownAlign,ea=Xt.placement,Js=Xt.builtinPlacements,vs=Xt.getPopupContainer,ro=Xt.showAction,Ai=ro===void 0?[]:ro,Ii=Xt.onFocus,xr=Xt.onBlur,Bi=Xt.onKeyUp,ar=Xt.onKeyDown,Di=Xt.onMouseDown,Ft=(0,fe.Z)(Xt,Wn),re=Ei(Tr),Yt=(Ni!==void 0?Ni:re)||Tr==="combobox",de=(0,he.Z)({},Ft);bi.forEach(function(Fi){delete de[Fi]}),On==null||On.forEach(function(Fi){delete de[Fi]});var ge=Bt.useState(!1),Oe=(0,ce.Z)(ge,2),ze=Oe[0],Je=Oe[1];Bt.useEffect(function(){Je((0,bt.Z)())},[]);var kn=Bt.useRef(null),Dn=Bt.useRef(null),$e=Bt.useRef(null),Zn=Bt.useRef(null),qn=Bt.useRef(null),oe=Bt.useRef(!1),Hn=Pt(),Qn=(0,ce.Z)(Hn,3),ni=Qn[0],In=Qn[1],Ti=Qn[2];Bt.useImperativeHandle(ye,function(){var Fi,qi;return{focus:(Fi=Zn.current)===null||Fi===void 0?void 0:Fi.focus,blur:(qi=Zn.current)===null||qi===void 0?void 0:qi.blur,scrollTo:function(En){var Ao;return(Ao=qn.current)===null||Ao===void 0?void 0:Ao.scrollTo(En)},nativeElement:kn.current||Dn.current}});var wi=Bt.useMemo(function(){var Fi;if(Tr!=="combobox")return br;var qi=(Fi=Bn[0])===null||Fi===void 0?void 0:Fi.value;return typeof qi=="string"||typeof qi=="number"?String(qi):""},[br,Tr,Bn]),pi=Tr==="combobox"&&typeof Ee=="function"&&Ee()||null,ai=typeof Mi=="function"&&Mi(),ui=(0,et.x1)(Dn,ai==null||(Mn=ai.props)===null||Mn===void 0?void 0:Mn.ref),Li=Bt.useState(!1),vr=(0,ce.Z)(Li,2),ir=vr[0],lr=vr[1];(0,Ge.Z)(function(){lr(!0)},[]);var Yn=(0,Be.Z)(!1,{defaultValue:fi,value:fr}),Lr=(0,ce.Z)(Yn,2),sr=Lr[0],tr=Lr[1],Vi=ir?sr:!1,Pr=!vn&∨(Rr||Pr&&Vi&&Tr==="combobox")&&(Vi=!1);var gn=Pr?!1:Vi,li=Bt.useCallback(function(Fi){var qi=Fi!==void 0?Fi:!Vi;Rr||(tr(qi),Vi!==qi&&(Ir==null||Ir(qi)))},[Rr,Vi,tr,Ir]),yi=Bt.useMemo(function(){return(en||[]).some(function(Fi){return[`
|
|
`,`\r
|
|
`].includes(Fi)})},[en]),Ci=Bt.useContext(hi)||{},mi=Ci.maxCount,vi=Ci.rawValues,Tn=function(qi,Gi,En){if(!(re&&Ue(mi)&&(vi==null?void 0:vi.size)>=mi)){var Ao=!0,$t=qi;Nr==null||Nr(null);var Qe=ri(qi,en,Ue(mi)?mi-vi.size:void 0),Is=En?null:Qe;return Tr!=="combobox"&&Is&&($t="",fo==null||fo(Is),li(!1),Ao=!1),rn&&wi!==$t&&rn($t,{source:Gi?"typing":"effect"}),Ao}},Ji=function(qi){!qi||!qi.trim()||rn(qi,{source:"submit"})};Bt.useEffect(function(){!Vi&&!re&&Tr!=="combobox"&&Tn("",!1,!1)},[Vi]),Bt.useEffect(function(){sr&&Rr&&tr(!1),Rr&&!oe.current&&In(!1)},[Rr]);var Er=Dt(),Mr=(0,ce.Z)(Er,2),rr=Mr[0],jr=Mr[1],kr=Bt.useRef(!1),Hr=function(qi){var Gi=rr(),En=qi.key,Ao=En==="Enter";if(Ao&&(Tr!=="combobox"&&qi.preventDefault(),Vi||li(!0)),jr(!!wi),En==="Backspace"&&!Gi&&re&&!wi&&Bn.length){for(var $t=(0,ee.Z)(Bn),Qe=null,Is=$t.length-1;Is>=0;Is-=1){var Os=$t[Is];if(!Os.disabled){$t.splice(Is,1),Qe=Os;break}}Qe&&Kn($t,{type:"remove",values:[Qe]})}for(var Gs=arguments.length,ys=new Array(Gs>1?Gs-1:0),qs=1;qs<Gs;qs++)ys[qs-1]=arguments[qs];if(Vi&&(!Ao||!kr.current)){var Vs;Ao&&(kr.current=!0),(Vs=qn.current)===null||Vs===void 0||Vs.onKeyDown.apply(Vs,[qi].concat(ys))}ar==null||ar.apply(void 0,[qi].concat(ys))},Ur=function(qi){for(var Gi=arguments.length,En=new Array(Gi>1?Gi-1:0),Ao=1;Ao<Gi;Ao++)En[Ao-1]=arguments[Ao];if(Vi){var $t;($t=qn.current)===null||$t===void 0||$t.onKeyUp.apply($t,[qi].concat(En))}qi.key==="Enter"&&(kr.current=!1),Bi==null||Bi.apply(void 0,[qi].concat(En))},oo=function(qi){var Gi=Bn.filter(function(En){return En!==qi});Kn(Gi,{type:"remove",values:[qi]})},So=function(){kr.current=!1},mo=Bt.useRef(!1),Xo=function(){In(!0),Rr||(Ii&&!mo.current&&Ii.apply(void 0,arguments),Ai.includes("focus")&&li(!0)),mo.current=!0},io=function(){oe.current=!0,In(!1,function(){mo.current=!1,oe.current=!1,li(!1)}),!Rr&&(wi&&(Tr==="tags"?rn(wi,{source:"submit"}):Tr==="multiple"&&rn("",{source:"blur"})),xr&&xr.apply(void 0,arguments))},Ko=[];Bt.useEffect(function(){return function(){Ko.forEach(function(Fi){return clearTimeout(Fi)}),Ko.splice(0,Ko.length)}},[]);var uo=function(qi){var Gi,En=qi.target,Ao=(Gi=$e.current)===null||Gi===void 0?void 0:Gi.getPopupElement();if(Ao&&Ao.contains(En)){var $t=setTimeout(function(){var Gs=Ko.indexOf($t);if(Gs!==-1&&Ko.splice(Gs,1),Ti(),!ze&&!Ao.contains(document.activeElement)){var ys;(ys=Zn.current)===null||ys===void 0||ys.focus()}});Ko.push($t)}for(var Qe=arguments.length,Is=new Array(Qe>1?Qe-1:0),Os=1;Os<Qe;Os++)Is[Os-1]=arguments[Os];Di==null||Di.apply(void 0,[qi].concat(Is))},To=Bt.useState({}),ts=(0,ce.Z)(To,2),Ro=ts[1];function Eo(){Ro({})}var $r;ai&&($r=function(qi){li(qi)}),Vt(function(){var Fi;return[kn.current,(Fi=$e.current)===null||Fi===void 0?void 0:Fi.getPopupElement()]},gn,li,!!ai);var os=Bt.useMemo(function(){return(0,he.Z)((0,he.Z)({},Xt),{},{notFoundContent:vn,open:Vi,triggerOpen:gn,id:wn,showSearch:Yt,multiple:re,toggleOpen:li})},[Xt,vn,gn,Vi,wn,Yt,re,li]),ws=!!no||No,Mo;ws&&(Mo=Bt.createElement(ct,{className:le()("".concat(be,"-arrow"),(0,me.Z)({},"".concat(be,"-arrow-loading"),No)),customizeIcon:no,customizeIconProps:{loading:No,searchValue:wi,open:Vi,focused:ni,showSearch:Yt}}));var Ts=function(){var qi;si==null||si(),(qi=Zn.current)===null||qi===void 0||qi.focus(),Kn([],{type:"clear",values:Bn}),Tn("",!1,!1)},to=lt(be,Ts,Bn,zr,Zo,Rr,wi,Tr),Xr=to.allowClear,Kr=to.clearIcon,Wo=Bt.createElement(Or,{ref:qn}),so=le()(be,Ln,(0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)({},"".concat(be,"-focused"),ni),"".concat(be,"-multiple"),re),"".concat(be,"-single"),!re),"".concat(be,"-allow-clear"),zr),"".concat(be,"-show-arrow"),ws),"".concat(be,"-disabled"),Rr),"".concat(be,"-loading"),No),"".concat(be,"-open"),Vi),"".concat(be,"-customize-input"),pi),"".concat(be,"-show-search"),Yt)),ca=Bt.createElement(Et,{ref:$e,disabled:Rr,prefixCls:be,visible:gn,popupElement:Wo,animation:$i,transitionName:po,dropdownStyle:Ps,dropdownClassName:Po,direction:Qi,dropdownMatchSelectWidth:Jn,dropdownRender:Wt,dropdownAlign:Co,placement:ea,builtinPlacements:Js,getPopupContainer:vs,empty:or,getTriggerDOMNode:function(qi){return Dn.current||qi},onPopupVisibleChange:$r,onPopupMouseEnter:Eo},ai?Bt.cloneElement(ai,{ref:ui}):Bt.createElement(an,(0,St.Z)({},Xt,{domRef:Dn,prefixCls:be,inputElement:pi,ref:Zn,id:wn,prefix:Uo,showSearch:Yt,autoClearSearchValue:Jr,mode:Tr,activeDescendantId:wr,tagRender:ji,values:Bn,open:Vi,onToggleOpen:li,activeValue:Fr,searchValue:wi,onSearch:Tn,onSearchSubmit:Ji,onRemove:oo,tokenWithEnter:yi,onInputBlur:So}))),Xi;return ai?Xi=ca:Xi=Bt.createElement("div",(0,St.Z)({className:so},de,{ref:kn,onMouseDown:uo,onKeyDown:Hr,onKeyUp:Ur,onFocus:Xo,onBlur:io}),Bt.createElement(ti,{visible:ni&&!Vi,values:Bn}),ca,Mo,Xr&&Kr),Bt.createElement(pt.Provider,{value:os},Xi)}),An=Pi,ei=function(){return null};ei.isSelectOptGroup=!0;var gr=ei,dr=function(){return null};dr.isSelectOption=!0;var Sr=dr,_r=Rt(80547),cr=Rt(2738),jo=Rt(6790);function Yo(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ko=["disabled","title","children","style","className"];function $o(Xt){return typeof Xt=="string"||typeof Xt=="number"}var ms=function(ye,Mn){var wn=vt(),be=wn.prefixCls,Ln=wn.id,Ni=wn.open,ji=wn.multiple,Qi=wn.mode,On=wn.searchValue,Bn=wn.toggleOpen,Kn=wn.notFoundContent,or=wn.onPopupScroll,Hi=Bt.useContext(hi),vn=Hi.maxCount,si=Hi.flattenOptions,Tr=Hi.onActiveValue,Rr=Hi.defaultActiveFirstOption,No=Hi.onSelect,Ee=Hi.menuItemSelectedIcon,Mi=Hi.rawValues,fr=Hi.fieldNames,fi=Hi.virtual,Ir=Hi.direction,Fr=Hi.listHeight,Nr=Hi.listItemHeight,wr=Hi.optionRender,br="".concat(be,"-item"),Jr=(0,_r.Z)(function(){return si},[Ni,si],function(ro,Ai){return Ai[0]&&ro[1]!==Ai[1]}),rn=Bt.useRef(null),fo=Bt.useMemo(function(){return ji&&Ue(vn)&&(Mi==null?void 0:Mi.size)>=vn},[ji,vn,Mi==null?void 0:Mi.size]),en=function(Ai){Ai.preventDefault()},zr=function(Ai){var Ii;(Ii=rn.current)===null||Ii===void 0||Ii.scrollTo(typeof Ai=="number"?{index:Ai}:Ai)},Uo=Bt.useCallback(function(ro){return Qi==="combobox"?!1:Mi.has(ro)},[Qi,(0,ee.Z)(Mi).toString(),Mi.size]),no=function(Ai){for(var Ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,xr=Jr.length,Bi=0;Bi<xr;Bi+=1){var ar=(Ai+Bi*Ii+xr)%xr,Di=Jr[ar]||{},Ft=Di.group,re=Di.data;if(!Ft&&!(re!=null&&re.disabled)&&(Uo(re.value)||!fo))return ar}return-1},Zo=Bt.useState(function(){return no(0)}),Or=(0,ce.Z)(Zo,2),$i=Or[0],po=Or[1],Ps=function(Ai){var Ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;po(Ai);var xr={source:Ii?"keyboard":"mouse"},Bi=Jr[Ai];if(!Bi){Tr(null,-1,xr);return}Tr(Bi.value,Ai,xr)};(0,Bt.useEffect)(function(){Ps(Rr!==!1?no(0):-1)},[Jr.length,On]);var Po=Bt.useCallback(function(ro){return Qi==="combobox"?String(ro).toLowerCase()===On.toLowerCase():Mi.has(ro)},[Qi,On,(0,ee.Z)(Mi).toString(),Mi.size]);(0,Bt.useEffect)(function(){var ro=setTimeout(function(){if(!ji&&Ni&&Mi.size===1){var Ii=Array.from(Mi)[0],xr=Jr.findIndex(function(Bi){var ar=Bi.data;return On?String(ar.value).startsWith(On):ar.value===Ii});xr!==-1&&(Ps(xr),zr(xr))}});if(Ni){var Ai;(Ai=rn.current)===null||Ai===void 0||Ai.scrollTo(void 0)}return function(){return clearTimeout(ro)}},[Ni,On]);var Jn=function(Ai){Ai!==void 0&&No(Ai,{selected:!Mi.has(Ai)}),ji||Bn(!1)};if(Bt.useImperativeHandle(Mn,function(){return{onKeyDown:function(Ai){var Ii=Ai.which,xr=Ai.ctrlKey;switch(Ii){case Ut.Z.N:case Ut.Z.P:case Ut.Z.UP:case Ut.Z.DOWN:{var Bi=0;if(Ii===Ut.Z.UP?Bi=-1:Ii===Ut.Z.DOWN?Bi=1:Yo()&&xr&&(Ii===Ut.Z.N?Bi=1:Ii===Ut.Z.P&&(Bi=-1)),Bi!==0){var ar=no($i+Bi,Bi);zr(ar),Ps(ar,!0)}break}case Ut.Z.TAB:case Ut.Z.ENTER:{var Di,Ft=Jr[$i];Ft&&!(Ft!=null&&(Di=Ft.data)!==null&&Di!==void 0&&Di.disabled)&&!fo?Jn(Ft.value):Jn(void 0),Ni&&Ai.preventDefault();break}case Ut.Z.ESC:Bn(!1),Ni&&Ai.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ai){zr(Ai)}}}),Jr.length===0)return Bt.createElement("div",{role:"listbox",id:"".concat(Ln,"_list"),className:"".concat(br,"-empty"),onMouseDown:en},Kn);var Wt=Object.keys(fr).map(function(ro){return fr[ro]}),Co=function(Ai){return Ai.label};function ea(ro,Ai){var Ii=ro.group;return{role:Ii?"presentation":"option",id:"".concat(Ln,"_list_").concat(Ai)}}var Js=function(Ai){var Ii=Jr[Ai];if(!Ii)return null;var xr=Ii.data||{},Bi=xr.value,ar=Ii.group,Di=(0,qt.Z)(xr,!0),Ft=Co(Ii);return Ii?Bt.createElement("div",(0,St.Z)({"aria-label":typeof Ft=="string"&&!ar?Ft:null},Di,{key:Ai},ea(Ii,Ai),{"aria-selected":Po(Bi)}),Bi):null},vs={role:"listbox",id:"".concat(Ln,"_list")};return Bt.createElement(Bt.Fragment,null,fi&&Bt.createElement("div",(0,St.Z)({},vs,{style:{height:0,width:0,overflow:"hidden"}}),Js($i-1),Js($i),Js($i+1)),Bt.createElement(jo.Z,{itemKey:"key",ref:rn,data:Jr,height:Fr,itemHeight:Nr,fullHeight:!1,onMouseDown:en,onScroll:or,virtual:fi,direction:Ir,innerProps:fi?null:vs},function(ro,Ai){var Ii=ro.group,xr=ro.groupOption,Bi=ro.data,ar=ro.label,Di=ro.value,Ft=Bi.key;if(Ii){var re,Yt=(re=Bi.title)!==null&&re!==void 0?re:$o(ar)?ar.toString():void 0;return Bt.createElement("div",{className:le()(br,"".concat(br,"-group"),Bi.className),title:Yt},ar!==void 0?ar:Ft)}var de=Bi.disabled,ge=Bi.title,Oe=Bi.children,ze=Bi.style,Je=Bi.className,kn=(0,fe.Z)(Bi,ko),Dn=(0,cr.Z)(kn,Wt),$e=Uo(Di),Zn=de||!$e&&fo,qn="".concat(br,"-option"),oe=le()(br,qn,Je,(0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)({},"".concat(qn,"-grouped"),xr),"".concat(qn,"-active"),$i===Ai&&!Zn),"".concat(qn,"-disabled"),Zn),"".concat(qn,"-selected"),$e)),Hn=Co(ro),Qn=!Ee||typeof Ee=="function"||$e,ni=typeof Hn=="number"?Hn:Hn||Di,In=$o(ni)?ni.toString():void 0;return ge!==void 0&&(In=ge),Bt.createElement("div",(0,St.Z)({},(0,qt.Z)(Dn),fi?{}:ea(ro,Ai),{"aria-selected":Po(Di),className:oe,title:In,onMouseMove:function(){$i===Ai||Zn||Ps(Ai)},onClick:function(){Zn||Jn(Di)},style:ze}),Bt.createElement("div",{className:"".concat(qn,"-content")},typeof wr=="function"?wr(ro,{index:Ai}):ni),Bt.isValidElement(Ee)||$e,Qn&&Bt.createElement(ct,{className:"".concat(br,"-option-state"),customizeIcon:Ee,customizeIconProps:{value:Di,disabled:Zn,isSelected:$e}},$e?"\u2713":null))}))},Ho=Bt.forwardRef(ms),Go=Ho,nr=function(Xt,ye){var Mn=Bt.useRef({values:new Map,options:new Map}),wn=Bt.useMemo(function(){var Ln=Mn.current,Ni=Ln.values,ji=Ln.options,Qi=Xt.map(function(Kn){if(Kn.label===void 0){var or;return(0,he.Z)((0,he.Z)({},Kn),{},{label:(or=Ni.get(Kn.value))===null||or===void 0?void 0:or.label})}return Kn}),On=new Map,Bn=new Map;return Qi.forEach(function(Kn){On.set(Kn.value,Kn),Bn.set(Kn.value,ye.get(Kn.value)||ji.get(Kn.value))}),Mn.current.values=On,Mn.current.options=Bn,Qi},[Xt,ye]),be=Bt.useCallback(function(Ln){return ye.get(Ln)||Mn.current.options.get(Ln)},[ye]);return[wn,be]};function lo(Xt,ye){return on(Xt).join("").toUpperCase().includes(ye)}var Lt=function(Xt,ye,Mn,wn,be){return Bt.useMemo(function(){if(!Mn||wn===!1)return Xt;var Ln=ye.options,Ni=ye.label,ji=ye.value,Qi=[],On=typeof wn=="function",Bn=Mn.toUpperCase(),Kn=On?wn:function(Hi,vn){return be?lo(vn[be],Bn):vn[Ln]?lo(vn[Ni!=="children"?Ni:"label"],Bn):lo(vn[ji],Bn)},or=On?function(Hi){return Ke(Hi)}:function(Hi){return Hi};return Xt.forEach(function(Hi){if(Hi[Ln]){var vn=Kn(Mn,or(Hi));if(vn)Qi.push(Hi);else{var si=Hi[Ln].filter(function(Tr){return Kn(Mn,or(Tr))});si.length&&Qi.push((0,he.Z)((0,he.Z)({},Hi),{},(0,me.Z)({},Ln,si)))}return}Kn(Mn,or(Hi))&&Qi.push(Hi)}),Qi},[Xt,wn,be,Mn,ye])},Rn=Rt(6551),ii=Rt(11592),Vn=["children","value"],Nn=["children"];function Cn(Xt){var ye=Xt,Mn=ye.key,wn=ye.props,be=wn.children,Ln=wn.value,Ni=(0,fe.Z)(wn,Vn);return(0,he.Z)({key:Mn,value:Ln!==void 0?Ln:Mn,children:be},Ni)}function gi(Xt){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ii.Z)(Xt).map(function(Mn,wn){if(!Bt.isValidElement(Mn)||!Mn.type)return null;var be=Mn,Ln=be.type.isSelectOptGroup,Ni=be.key,ji=be.props,Qi=ji.children,On=(0,fe.Z)(ji,Nn);return ye||!Ln?Cn(Mn):(0,he.Z)((0,he.Z)({key:"__RC_SELECT_GRP__".concat(Ni===null?wn:Ni,"__"),label:Ni},On),{},{options:gi(Qi)})}).filter(function(Mn){return Mn})}var Ui=function(ye,Mn,wn,be,Ln){return Bt.useMemo(function(){var Ni=ye,ji=!ye;ji&&(Ni=gi(Mn));var Qi=new Map,On=new Map,Bn=function(Hi,vn,si){si&&typeof si=="string"&&Hi.set(vn[si],vn)},Kn=function or(Hi){for(var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,si=0;si<Hi.length;si+=1){var Tr=Hi[si];!Tr[wn.options]||vn?(Qi.set(Tr[wn.value],Tr),Bn(On,Tr,wn.label),Bn(On,Tr,be),Bn(On,Tr,Ln)):or(Tr[wn.options],!0)}};return Kn(Ni),{options:Ni,valueOptions:Qi,labelOptions:On}},[ye,Mn,wn,be,Ln])},Te=Ui;function Ne(Xt){var ye=Bt.useRef();ye.current=Xt;var Mn=Bt.useCallback(function(){return ye.current.apply(ye,arguments)},[]);return Mn}function we(Xt){var ye=Xt.mode,Mn=Xt.options,wn=Xt.children,be=Xt.backfill,Ln=Xt.allowClear,Ni=Xt.placeholder,ji=Xt.getInputElement,Qi=Xt.showSearch,On=Xt.onSearch,Bn=Xt.defaultOpen,Kn=Xt.autoFocus,or=Xt.labelInValue,Hi=Xt.value,vn=Xt.inputValue,si=Xt.optionLabelProp,Tr=isMultiple(ye),Rr=Qi!==void 0?Qi:Tr||ye==="combobox",No=Mn||convertChildrenToData(wn);if(warning(ye!=="tags"||No.every(function(fi){return!fi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ye==="tags"||ye==="combobox"){var Ee=No.some(function(fi){return fi.options?fi.options.some(function(Ir){return typeof("value"in Ir?Ir.value:Ir.key)=="number"}):typeof("value"in fi?fi.value:fi.key)=="number"});warning(!Ee,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ye!=="combobox"||!si,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ye==="combobox"||!be,"`backfill` only works with `combobox` mode."),warning(ye==="combobox"||!ji,"`getInputElement` only work with `combobox` mode."),noteOnce(ye!=="combobox"||!ji||!Ln||!Ni,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),On&&!Rr&&ye!=="combobox"&&ye!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Bn||Kn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Hi!=null){var Mi=toArray(Hi);warning(!or||Mi.every(function(fi){return _typeof(fi)==="object"&&("key"in fi||"value"in fi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Tr||Array.isArray(Hi),"`value` should be array when `mode` is `multiple` or `tags`")}if(wn){var fr=null;toNodeArray(wn).some(function(fi){if(!React.isValidElement(fi)||!fi.type)return!1;var Ir=fi,Fr=Ir.type;if(Fr.isSelectOption)return!1;if(Fr.isSelectOptGroup){var Nr=toNodeArray(fi.props.children).every(function(wr){return!React.isValidElement(wr)||!fi.type||wr.type.isSelectOption?!0:(fr=wr.type,!1)});return!Nr}return fr=Fr,!0}),fr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(fr.displayName||fr.name||fr,"`.")),warning(vn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ye(Xt,ye){if(Xt){var Mn=function wn(be){for(var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ni=0;Ni<be.length;Ni++){var ji=be[Ni];if(ji[ye==null?void 0:ye.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ln&&Array.isArray(ji[ye==null?void 0:ye.options])&&wn(ji[ye==null?void 0:ye.options],!0))break}};Mn(Xt)}}var di=null,ci=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Yi=["inputValue"];function Re(Xt){return!Xt||(0,ue.Z)(Xt)!=="object"}var hn=Bt.forwardRef(function(Xt,ye){var Mn=Xt.id,wn=Xt.mode,be=Xt.prefixCls,Ln=be===void 0?"rc-select":be,Ni=Xt.backfill,ji=Xt.fieldNames,Qi=Xt.inputValue,On=Xt.searchValue,Bn=Xt.onSearch,Kn=Xt.autoClearSearchValue,or=Kn===void 0?!0:Kn,Hi=Xt.onSelect,vn=Xt.onDeselect,si=Xt.dropdownMatchSelectWidth,Tr=si===void 0?!0:si,Rr=Xt.filterOption,No=Xt.filterSort,Ee=Xt.optionFilterProp,Mi=Xt.optionLabelProp,fr=Xt.options,fi=Xt.optionRender,Ir=Xt.children,Fr=Xt.defaultActiveFirstOption,Nr=Xt.menuItemSelectedIcon,wr=Xt.virtual,br=Xt.direction,Jr=Xt.listHeight,rn=Jr===void 0?200:Jr,fo=Xt.listItemHeight,en=fo===void 0?20:fo,zr=Xt.labelRender,Uo=Xt.value,no=Xt.defaultValue,Zo=Xt.labelInValue,Or=Xt.onChange,$i=Xt.maxCount,po=(0,fe.Z)(Xt,ci),Ps=(0,Rn.ZP)(Mn),Po=Ei(wn),Jn=!!(!fr&&Ir),Wt=Bt.useMemo(function(){return Rr===void 0&&wn==="combobox"?!1:Rr},[Rr,wn]),Co=Bt.useMemo(function(){return jn(ji,Jn)},[JSON.stringify(ji),Jn]),ea=(0,Be.Z)("",{value:On!==void 0?On:Qi,postState:function(yi){return yi||""}}),Js=(0,ce.Z)(ea,2),vs=Js[0],ro=Js[1],Ai=Te(fr,Ir,Co,Ee,Mi),Ii=Ai.valueOptions,xr=Ai.labelOptions,Bi=Ai.options,ar=Bt.useCallback(function(li){var yi=on(li);return yi.map(function(Ci){var mi,vi,Tn,Ji,Er;if(Re(Ci))mi=Ci;else{var Mr;Tn=Ci.key,vi=Ci.label,mi=(Mr=Ci.value)!==null&&Mr!==void 0?Mr:Tn}var rr=Ii.get(mi);if(rr){var jr;if(vi===void 0&&(vi=rr==null?void 0:rr[Mi||Co.label]),Tn===void 0&&(Tn=(jr=rr==null?void 0:rr.key)!==null&&jr!==void 0?jr:mi),Ji=rr==null?void 0:rr.disabled,Er=rr==null?void 0:rr.title,0)var kr}return{label:vi,value:mi,key:Tn,disabled:Ji,title:Er}})},[Co,Mi,Ii]),Di=(0,Be.Z)(no,{value:Uo}),Ft=(0,ce.Z)(Di,2),re=Ft[0],Yt=Ft[1],de=Bt.useMemo(function(){var li,yi=Po&&re===null?[]:re,Ci=ar(yi);return wn==="combobox"&&Ot((li=Ci[0])===null||li===void 0?void 0:li.value)?[]:Ci},[re,ar,wn,Po]),ge=nr(de,Ii),Oe=(0,ce.Z)(ge,2),ze=Oe[0],Je=Oe[1],kn=Bt.useMemo(function(){if(!wn&&ze.length===1){var li=ze[0];if(li.value===null&&(li.label===null||li.label===void 0))return[]}return ze.map(function(yi){var Ci;return(0,he.Z)((0,he.Z)({},yi),{},{label:(Ci=typeof zr=="function"?zr(yi):yi.label)!==null&&Ci!==void 0?Ci:yi.value})})},[wn,ze,zr]),Dn=Bt.useMemo(function(){return new Set(ze.map(function(li){return li.value}))},[ze]);Bt.useEffect(function(){if(wn==="combobox"){var li,yi=(li=ze[0])===null||li===void 0?void 0:li.value;ro(te(yi)?String(yi):"")}},[ze]);var $e=Ne(function(li,yi){var Ci=yi!=null?yi:li;return(0,me.Z)((0,me.Z)({},Co.value,li),Co.label,Ci)}),Zn=Bt.useMemo(function(){if(wn!=="tags")return Bi;var li=(0,ee.Z)(Bi),yi=function(mi){return Ii.has(mi)};return(0,ee.Z)(ze).sort(function(Ci,mi){return Ci.value<mi.value?-1:1}).forEach(function(Ci){var mi=Ci.value;yi(mi)||li.push($e(mi,Ci.label))}),li},[$e,Bi,Ii,ze,wn]),qn=Lt(Zn,Co,vs,Wt,Ee),oe=Bt.useMemo(function(){return wn!=="tags"||!vs||qn.some(function(li){return li[Ee||"value"]===vs})||qn.some(function(li){return li[Co.value]===vs})?qn:[$e(vs)].concat((0,ee.Z)(qn))},[$e,Ee,wn,qn,vs,Co]),Hn=function li(yi){var Ci=(0,ee.Z)(yi).sort(function(mi,vi){return No(mi,vi,{searchValue:vs})});return Ci.map(function(mi){return Array.isArray(mi.options)?(0,he.Z)((0,he.Z)({},mi),{},{options:mi.options.length>0?li(mi.options):mi.options}):mi})},Qn=Bt.useMemo(function(){return No?Hn(oe):oe},[oe,No,vs]),ni=Bt.useMemo(function(){return Gn(Qn,{fieldNames:Co,childrenAsData:Jn})},[Qn,Co,Jn]),In=function(yi){var Ci=ar(yi);if(Yt(Ci),Or&&(Ci.length!==ze.length||Ci.some(function(Tn,Ji){var Er;return((Er=ze[Ji])===null||Er===void 0?void 0:Er.value)!==(Tn==null?void 0:Tn.value)}))){var mi=Zo?Ci:Ci.map(function(Tn){return Tn.value}),vi=Ci.map(function(Tn){return Ke(Je(Tn.value))});Or(Po?mi:mi[0],Po?vi:vi[0])}},Ti=Bt.useState(null),wi=(0,ce.Z)(Ti,2),pi=wi[0],ai=wi[1],ui=Bt.useState(0),Li=(0,ce.Z)(ui,2),vr=Li[0],ir=Li[1],lr=Fr!==void 0?Fr:wn!=="combobox",Yn=Bt.useCallback(function(li,yi){var Ci=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mi=Ci.source,vi=mi===void 0?"keyboard":mi;ir(yi),Ni&&wn==="combobox"&&li!==null&&vi==="keyboard"&&ai(String(li))},[Ni,wn]),Lr=function(yi,Ci,mi){var vi=function(){var oo,So=Je(yi);return[Zo?{label:So==null?void 0:So[Co.label],value:yi,key:(oo=So==null?void 0:So.key)!==null&&oo!==void 0?oo:yi}:yi,Ke(So)]};if(Ci&&Hi){var Tn=vi(),Ji=(0,ce.Z)(Tn,2),Er=Ji[0],Mr=Ji[1];Hi(Er,Mr)}else if(!Ci&&vn&&mi!=="clear"){var rr=vi(),jr=(0,ce.Z)(rr,2),kr=jr[0],Hr=jr[1];vn(kr,Hr)}},sr=Ne(function(li,yi){var Ci,mi=Po?yi.selected:!0;mi?Ci=Po?[].concat((0,ee.Z)(ze),[li]):[li]:Ci=ze.filter(function(vi){return vi.value!==li}),In(Ci),Lr(li,mi),wn==="combobox"?ai(""):(!Ei||or)&&(ro(""),ai(""))}),tr=function(yi,Ci){In(yi);var mi=Ci.type,vi=Ci.values;(mi==="remove"||mi==="clear")&&vi.forEach(function(Tn){Lr(Tn.value,!1,mi)})},Vi=function(yi,Ci){if(ro(yi),ai(null),Ci.source==="submit"){var mi=(yi||"").trim();if(mi){var vi=Array.from(new Set([].concat((0,ee.Z)(Dn),[mi])));In(vi),Lr(mi,!0),ro("")}return}Ci.source!=="blur"&&(wn==="combobox"&&In(yi),Bn==null||Bn(yi))},Pr=function(yi){var Ci=yi;wn!=="tags"&&(Ci=yi.map(function(vi){var Tn=xr.get(vi);return Tn==null?void 0:Tn.value}).filter(function(vi){return vi!==void 0}));var mi=Array.from(new Set([].concat((0,ee.Z)(Dn),(0,ee.Z)(Ci))));In(mi),mi.forEach(function(vi){Lr(vi,!0)})},gn=Bt.useMemo(function(){var li=wr!==!1&&Tr!==!1;return(0,he.Z)((0,he.Z)({},Ai),{},{flattenOptions:ni,onActiveValue:Yn,defaultActiveFirstOption:lr,onSelect:sr,menuItemSelectedIcon:Nr,rawValues:Dn,fieldNames:Co,virtual:li,direction:br,listHeight:rn,listItemHeight:en,childrenAsData:Jn,maxCount:$i,optionRender:fi})},[$i,Ai,ni,Yn,lr,sr,Nr,Dn,Co,wr,Tr,br,rn,en,Jn,fi]);return Bt.createElement(hi.Provider,{value:gn},Bt.createElement(An,(0,St.Z)({},po,{id:Ps,prefixCls:Ln,ref:ye,omitDomProps:Yi,mode:wn,displayValues:kn,onDisplayValuesChange:tr,direction:br,searchValue:vs,onSearch:Vi,autoClearSearchValue:or,onSearchSplit:Pr,dropdownMatchSelectWidth:Tr,OptionList:Go,emptyOptions:!ni.length,activeValue:pi,activeDescendantId:"".concat(Ps,"_list_").concat(vr)})))}),xi=hn;xi.Option=Sr,xi.OptGroup=gr;var _i=xi,Pn=_i},63158:function(xn,$n,Rt){"use strict";var St=Rt(67711),ee=Rt(52873),me=Rt(16886),he=Rt(33346),ce=Rt(59301),fe=Rt(92310),ue=Rt.n(fe),Be=Rt(18929),Ce=Rt(10228),Bt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],je=ce.forwardRef(function(le,Ge){var bt,et=le.prefixCls,nt=et===void 0?"rc-switch":et,ct=le.className,lt=le.checked,pt=le.defaultChecked,vt=le.disabled,Pt=le.loadingIcon,Dt=le.checkedChildren,Vt=le.unCheckedChildren,Ut=le.onClick,se=le.onChange,qt=le.onKeyDown,Jt=(0,he.Z)(le,Bt),Me=(0,Be.Z)(!1,{value:lt,defaultValue:pt}),pe=(0,me.Z)(Me,2),He=pe[0],De=pe[1];function tn(fn,te){var Ot=He;return vt||(Ot=fn,De(Ot),se==null||se(Ot,te)),Ot}function Fn(fn){fn.which===Ce.Z.LEFT?tn(!1,fn):fn.which===Ce.Z.RIGHT&&tn(!0,fn),qt==null||qt(fn)}function on(fn){var te=tn(!He,fn);Ut==null||Ut(te,fn)}var pn=ue()(nt,ct,(bt={},(0,ee.Z)(bt,"".concat(nt,"-checked"),He),(0,ee.Z)(bt,"".concat(nt,"-disabled"),vt),bt));return ce.createElement("button",(0,St.Z)({},Jt,{type:"button",role:"switch","aria-checked":He,disabled:vt,className:pn,ref:Ge,onKeyDown:Fn,onClick:on}),Pt,ce.createElement("span",{className:"".concat(nt,"-inner")},ce.createElement("span",{className:"".concat(nt,"-inner-checked")},Dt),ce.createElement("span",{className:"".concat(nt,"-inner-unchecked")},Vt)))});je.displayName="Switch",$n.Z=je},22711:function(xn,$n,Rt){"use strict";Rt.r($n),Rt.d($n,{ResizableTextArea:function(){return pe},default:function(){return Fn}});var St=Rt(67711),ee=Rt(52873),me=Rt(98506),he=Rt(15142),ce=Rt(16886),fe=Rt(33346),ue=Rt(92310),Be=Rt.n(ue),Ce=Rt(36901),Bt=Rt(66003),je=Rt(30292),le=Rt(18929),Ge=Rt(59301),bt=Rt(26420),et=Rt(29301),nt=Rt(34280),ct=Rt(16089),lt=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
pointer-events: none !important;
|
|
`,pt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],vt={},Pt;function Dt(on){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fn=on.getAttribute("id")||on.getAttribute("data-reactid")||on.getAttribute("name");if(pn&&vt[fn])return vt[fn];var te=window.getComputedStyle(on),Ot=te.getPropertyValue("box-sizing")||te.getPropertyValue("-moz-box-sizing")||te.getPropertyValue("-webkit-box-sizing"),Le=parseFloat(te.getPropertyValue("padding-bottom"))+parseFloat(te.getPropertyValue("padding-top")),dn=parseFloat(te.getPropertyValue("border-bottom-width"))+parseFloat(te.getPropertyValue("border-top-width")),_e=pt.map(function(Xe){return"".concat(Xe,":").concat(te.getPropertyValue(Xe))}).join(";"),ve={sizingStyle:_e,paddingSize:Le,borderSize:dn,boxSizing:Ot};return pn&&fn&&(vt[fn]=ve),ve}function Vt(on){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Pt||(Pt=document.createElement("textarea"),Pt.setAttribute("tab-index","-1"),Pt.setAttribute("aria-hidden","true"),Pt.setAttribute("name","hiddenTextarea"),document.body.appendChild(Pt)),on.getAttribute("wrap")?Pt.setAttribute("wrap",on.getAttribute("wrap")):Pt.removeAttribute("wrap");var Ot=Dt(on,pn),Le=Ot.paddingSize,dn=Ot.borderSize,_e=Ot.boxSizing,ve=Ot.sizingStyle;Pt.setAttribute("style","".concat(ve,";").concat(lt)),Pt.value=on.value||on.placeholder||"";var Xe=void 0,ke=void 0,cn,Ie=Pt.scrollHeight;if(_e==="border-box"?Ie+=dn:_e==="content-box"&&(Ie-=Le),fn!==null||te!==null){Pt.value=" ";var ae=Pt.scrollHeight-Le;fn!==null&&(Xe=ae*fn,_e==="border-box"&&(Xe=Xe+Le+dn),Ie=Math.max(Xe,Ie)),te!==null&&(ke=ae*te,_e==="border-box"&&(ke=ke+Le+dn),cn=Ie>ke?"":"hidden",Ie=Math.min(ke,Ie))}var Pe={height:Ie,overflowY:cn,resize:"none"};return Xe&&(Pe.minHeight=Xe),ke&&(Pe.maxHeight=ke),Pe}var Ut=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],se=0,qt=1,Jt=2,Me=Ge.forwardRef(function(on,pn){var fn=on,te=fn.prefixCls,Ot=fn.defaultValue,Le=fn.value,dn=fn.autoSize,_e=fn.onResize,ve=fn.className,Xe=fn.style,ke=fn.disabled,cn=fn.onChange,Ie=fn.onInternalAutoSize,ae=(0,fe.Z)(fn,Ut),Pe=(0,le.Z)(Ot,{value:Le,postState:function(Sr){return Sr!=null?Sr:""}}),sn=(0,ce.Z)(Pe,2),an=sn[0],Tt=sn[1],Ct=function(Sr){Tt(Sr.target.value),cn==null||cn(Sr)},xt=Ge.useRef();Ge.useImperativeHandle(pn,function(){return{textArea:xt.current}});var kt=Ge.useMemo(function(){return dn&&(0,bt.Z)(dn)==="object"?[dn.minRows,dn.maxRows]:[]},[dn]),zt=(0,ce.Z)(kt,2),Et=zt[0],Ae=zt[1],We=!!dn,Ue=function(){try{if(document.activeElement===xt.current){var Sr=xt.current,_r=Sr.selectionStart,cr=Sr.selectionEnd,jo=Sr.scrollTop;xt.current.setSelectionRange(_r,cr),xt.current.scrollTop=jo}}catch(Yo){}},jn=Ge.useState(Jt),Gn=(0,ce.Z)(jn,2),Ke=Gn[0],ri=Gn[1],Sn=Ge.useState(),hi=(0,ce.Z)(Sn,2),ti=hi[0],Wn=hi[1],bi=function(){ri(se)};(0,nt.Z)(function(){We&&bi()},[Le,Et,Ae,We]),(0,nt.Z)(function(){if(Ke===se)ri(qt);else if(Ke===qt){var dr=Vt(xt.current,!1,Et,Ae);ri(Jt),Wn(dr)}else Ue()},[Ke]);var Ei=Ge.useRef(),Pi=function(){ct.Z.cancel(Ei.current)},An=function(Sr){Ke===Jt&&(_e==null||_e(Sr),dn&&(Pi(),Ei.current=(0,ct.Z)(function(){bi()})))};Ge.useEffect(function(){return Pi},[]);var ei=We?ti:null,gr=(0,me.Z)((0,me.Z)({},Xe),ei);return(Ke===se||Ke===qt)&&(gr.overflowY="hidden",gr.overflowX="hidden"),Ge.createElement(et.Z,{onResize:An,disabled:!(dn||_e)},Ge.createElement("textarea",(0,St.Z)({},ae,{ref:xt,style:gr,className:Be()(te,ve,(0,ee.Z)({},"".concat(te,"-disabled"),ke)),disabled:ke,value:an,onChange:Ct})))}),pe=Me,He=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],De=Ge.forwardRef(function(on,pn){var fn,te=on.defaultValue,Ot=on.value,Le=on.onFocus,dn=on.onBlur,_e=on.onChange,ve=on.allowClear,Xe=on.maxLength,ke=on.onCompositionStart,cn=on.onCompositionEnd,Ie=on.suffix,ae=on.prefixCls,Pe=ae===void 0?"rc-textarea":ae,sn=on.showCount,an=on.count,Tt=on.className,Ct=on.style,xt=on.disabled,kt=on.hidden,zt=on.classNames,Et=on.styles,Ae=on.onResize,We=on.onClear,Ue=on.onPressEnter,jn=on.readOnly,Gn=on.autoSize,Ke=on.onKeyDown,ri=(0,fe.Z)(on,He),Sn=(0,le.Z)(te,{value:Ot,defaultValue:te}),hi=(0,ce.Z)(Sn,2),ti=hi[0],Wn=hi[1],bi=ti==null?"":String(ti),Ei=Ge.useState(!1),Pi=(0,ce.Z)(Ei,2),An=Pi[0],ei=Pi[1],gr=Ge.useRef(!1),dr=Ge.useState(null),Sr=(0,ce.Z)(dr,2),_r=Sr[0],cr=Sr[1],jo=(0,Ge.useRef)(null),Yo=(0,Ge.useRef)(null),ko=function(){var xi;return(xi=Yo.current)===null||xi===void 0?void 0:xi.textArea},$o=function(){ko().focus()};(0,Ge.useImperativeHandle)(pn,function(){var hn;return{resizableTextArea:Yo.current,focus:$o,blur:function(){ko().blur()},nativeElement:((hn=jo.current)===null||hn===void 0?void 0:hn.nativeElement)||ko()}}),(0,Ge.useEffect)(function(){ei(function(hn){return!xt&&hn})},[xt]);var ms=Ge.useState(null),Ho=(0,ce.Z)(ms,2),Go=Ho[0],nr=Ho[1];Ge.useEffect(function(){if(Go){var hn;(hn=ko()).setSelectionRange.apply(hn,(0,he.Z)(Go))}},[Go]);var lo=(0,Bt.Z)(an,sn),Lt=(fn=lo.max)!==null&&fn!==void 0?fn:Xe,Rn=Number(Lt)>0,ii=lo.strategy(bi),Vn=!!Lt&&ii>Lt,Nn=function(xi,_i){var Pn=_i;!gr.current&&lo.exceedFormatter&&lo.max&&lo.strategy(_i)>lo.max&&(Pn=lo.exceedFormatter(_i,{max:lo.max}),_i!==Pn&&nr([ko().selectionStart||0,ko().selectionEnd||0])),Wn(Pn),(0,je.rJ)(xi.currentTarget,xi,_e,Pn)},Cn=function(xi){gr.current=!0,ke==null||ke(xi)},gi=function(xi){gr.current=!1,Nn(xi,xi.currentTarget.value),cn==null||cn(xi)},Ui=function(xi){Nn(xi,xi.target.value)},Te=function(xi){xi.key==="Enter"&&Ue&&Ue(xi),Ke==null||Ke(xi)},Ne=function(xi){ei(!0),Le==null||Le(xi)},we=function(xi){ei(!1),dn==null||dn(xi)},Ye=function(xi){Wn(""),$o(),(0,je.rJ)(ko(),xi,_e)},di=Ie,ci;lo.show&&(lo.showFormatter?ci=lo.showFormatter({value:bi,count:ii,maxLength:Lt}):ci="".concat(ii).concat(Rn?" / ".concat(Lt):""),di=Ge.createElement(Ge.Fragment,null,di,Ge.createElement("span",{className:Be()("".concat(Pe,"-data-count"),zt==null?void 0:zt.count),style:Et==null?void 0:Et.count},ci)));var Yi=function(xi){var _i;Ae==null||Ae(xi),(_i=ko())!==null&&_i!==void 0&&_i.style.height&&cr(!0)},Re=!Gn&&!sn&&!ve;return Ge.createElement(Ce.BaseInput,{ref:jo,value:bi,allowClear:ve,handleReset:Ye,suffix:di,prefixCls:Pe,classNames:(0,me.Z)((0,me.Z)({},zt),{},{affixWrapper:Be()(zt==null?void 0:zt.affixWrapper,(0,ee.Z)((0,ee.Z)({},"".concat(Pe,"-show-count"),sn),"".concat(Pe,"-textarea-allow-clear"),ve))}),disabled:xt,focused:An,className:Be()(Tt,Vn&&"".concat(Pe,"-out-of-range")),style:(0,me.Z)((0,me.Z)({},Ct),_r&&!Re?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ci=="string"?ci:void 0}},hidden:kt,readOnly:jn,onClear:We},Ge.createElement(pe,(0,St.Z)({},ri,{autoSize:Gn,maxLength:Xe,onKeyDown:Te,onChange:Ui,onFocus:Ne,onBlur:we,onCompositionStart:Cn,onCompositionEnd:gi,className:Be()(zt==null?void 0:zt.textarea),style:(0,me.Z)((0,me.Z)({},Et==null?void 0:Et.textarea),{},{resize:Ct==null?void 0:Ct.resize}),disabled:xt,prefixCls:Pe,onResize:Yi,ref:Yo,readOnly:jn})))}),tn=De,Fn=tn},90472:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return on}});var St=Rt(67711),ee=Rt(42573),me=Rt(58698),he=Rt(62437),ce=Rt(74700),fe=Rt(45080),ue=Rt(52873),Be=Rt(59301),Ce=Rt(98506),Bt=Rt(33346),je=Rt(26420),le=Rt(77910),Ge=Rt(51343),bt=Rt(15142),et=Rt(92310),nt=Rt.n(et),ct=Rt(26112),lt=Rt(48736),pt=function(pn,fn){if(pn&&fn){var te=Array.isArray(fn)?fn:fn.split(","),Ot=pn.name||"",Le=pn.type||"",dn=Le.replace(/\/.*$/,"");return te.some(function(_e){var ve=_e.trim();if(/^\*(\/\*)?$/.test(_e))return!0;if(ve.charAt(0)==="."){var Xe=Ot.toLowerCase(),ke=ve.toLowerCase(),cn=[ke];return(ke===".jpg"||ke===".jpeg")&&(cn=[".jpg",".jpeg"]),cn.some(function(Ie){return Xe.endsWith(Ie)})}return/\/\*$/.test(ve)?dn===ve.replace(/\/.*$/,""):Le===ve?!0:/^\w+$/.test(ve)?((0,lt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ve,"'.Skip for check.")),!0):!1})}return!0};function vt(pn,fn){var te="cannot ".concat(pn.method," ").concat(pn.action," ").concat(fn.status,"'"),Ot=new Error(te);return Ot.status=fn.status,Ot.method=pn.method,Ot.url=pn.action,Ot}function Pt(pn){var fn=pn.responseText||pn.response;if(!fn)return fn;try{return JSON.parse(fn)}catch(te){return fn}}function Dt(pn){var fn=new XMLHttpRequest;pn.onProgress&&fn.upload&&(fn.upload.onprogress=function(dn){dn.total>0&&(dn.percent=dn.loaded/dn.total*100),pn.onProgress(dn)});var te=new FormData;pn.data&&Object.keys(pn.data).forEach(function(Le){var dn=pn.data[Le];if(Array.isArray(dn)){dn.forEach(function(_e){te.append("".concat(Le,"[]"),_e)});return}te.append(Le,dn)}),pn.file instanceof Blob?te.append(pn.filename,pn.file,pn.file.name):te.append(pn.filename,pn.file),fn.onerror=function(dn){pn.onError(dn)},fn.onload=function(){return fn.status<200||fn.status>=300?pn.onError(vt(pn,fn),Pt(fn)):pn.onSuccess(Pt(fn),fn)},fn.open(pn.method,pn.action,!0),pn.withCredentials&&"withCredentials"in fn&&(fn.withCredentials=!0);var Ot=pn.headers||{};return Ot["X-Requested-With"]!==null&&fn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ot).forEach(function(Le){Ot[Le]!==null&&fn.setRequestHeader(Le,Ot[Le])}),fn.send(te),{abort:function(){fn.abort()}}}var Vt=function(){var pn=(0,Ge.Z)((0,le.Z)().mark(function fn(te,Ot){var Le,dn,_e,ve,Xe,ke,cn,Ie;return(0,le.Z)().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:ke=function(){return ke=(0,Ge.Z)((0,le.Z)().mark(function an(Tt){return(0,le.Z)().wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.abrupt("return",new Promise(function(kt){Tt.file(function(zt){Ot(zt)?(Tt.fullPath&&!zt.webkitRelativePath&&(Object.defineProperties(zt,{webkitRelativePath:{writable:!0}}),zt.webkitRelativePath=Tt.fullPath.replace(/^\//,""),Object.defineProperties(zt,{webkitRelativePath:{writable:!1}})),kt(zt)):kt(null)})}));case 1:case"end":return xt.stop()}},an)})),ke.apply(this,arguments)},Xe=function(an){return ke.apply(this,arguments)},ve=function(){return ve=(0,Ge.Z)((0,le.Z)().mark(function an(Tt){var Ct,xt,kt,zt,Et;return(0,le.Z)().wrap(function(We){for(;;)switch(We.prev=We.next){case 0:Ct=Tt.createReader(),xt=[];case 2:return We.next=5,new Promise(function(Ue){Ct.readEntries(Ue,function(){return Ue([])})});case 5:if(kt=We.sent,zt=kt.length,zt){We.next=9;break}return We.abrupt("break",12);case 9:for(Et=0;Et<zt;Et++)xt.push(kt[Et]);We.next=2;break;case 12:return We.abrupt("return",xt);case 13:case"end":return We.stop()}},an)})),ve.apply(this,arguments)},_e=function(an){return ve.apply(this,arguments)},Le=[],dn=[],te.forEach(function(sn){return dn.push(sn.webkitGetAsEntry())}),cn=function(){var sn=(0,Ge.Z)((0,le.Z)().mark(function an(Tt,Ct){var xt,kt;return(0,le.Z)().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if(Tt){Et.next=2;break}return Et.abrupt("return");case 2:if(Tt.path=Ct||"",!Tt.isFile){Et.next=10;break}return Et.next=6,Xe(Tt);case 6:xt=Et.sent,xt&&Le.push(xt),Et.next=15;break;case 10:if(!Tt.isDirectory){Et.next=15;break}return Et.next=13,_e(Tt);case 13:kt=Et.sent,dn.push.apply(dn,(0,bt.Z)(kt));case 15:case"end":return Et.stop()}},an)}));return function(Tt,Ct){return sn.apply(this,arguments)}}(),Ie=0;case 9:if(!(Ie<dn.length)){Pe.next=15;break}return Pe.next=12,cn(dn[Ie]);case 12:Ie++,Pe.next=9;break;case 15:return Pe.abrupt("return",Le);case 16:case"end":return Pe.stop()}},fn)}));return function(te,Ot){return pn.apply(this,arguments)}}(),Ut=Vt,se=+new Date,qt=0;function Jt(){return"rc-upload-".concat(se,"-").concat(++qt)}var Me=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],pe=function(pn){(0,ce.Z)(te,pn);var fn=(0,fe.Z)(te);function te(){var Ot;(0,ee.Z)(this,te);for(var Le=arguments.length,dn=new Array(Le),_e=0;_e<Le;_e++)dn[_e]=arguments[_e];return Ot=fn.call.apply(fn,[this].concat(dn)),(0,ue.Z)((0,he.Z)(Ot),"state",{uid:Jt()}),(0,ue.Z)((0,he.Z)(Ot),"reqs",{}),(0,ue.Z)((0,he.Z)(Ot),"fileInput",void 0),(0,ue.Z)((0,he.Z)(Ot),"_isMounted",void 0),(0,ue.Z)((0,he.Z)(Ot),"onChange",function(ve){var Xe=Ot.props,ke=Xe.accept,cn=Xe.directory,Ie=ve.target.files,ae=(0,bt.Z)(Ie).filter(function(Pe){return!cn||pt(Pe,ke)});Ot.uploadFiles(ae),Ot.reset()}),(0,ue.Z)((0,he.Z)(Ot),"onClick",function(ve){var Xe=Ot.fileInput;if(Xe){var ke=ve.target,cn=Ot.props.onClick;if(ke&&ke.tagName==="BUTTON"){var Ie=Xe.parentNode;Ie.focus(),ke.blur()}Xe.click(),cn&&cn(ve)}}),(0,ue.Z)((0,he.Z)(Ot),"onKeyDown",function(ve){ve.key==="Enter"&&Ot.onClick(ve)}),(0,ue.Z)((0,he.Z)(Ot),"onFileDrop",function(){var ve=(0,Ge.Z)((0,le.Z)().mark(function Xe(ke){var cn,Ie,ae;return(0,le.Z)().wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:if(cn=Ot.props.multiple,ke.preventDefault(),ke.type!=="dragover"){sn.next=4;break}return sn.abrupt("return");case 4:if(!Ot.props.directory){sn.next=11;break}return sn.next=7,Ut(Array.prototype.slice.call(ke.dataTransfer.items),function(an){return pt(an,Ot.props.accept)});case 7:Ie=sn.sent,Ot.uploadFiles(Ie),sn.next=14;break;case 11:ae=(0,bt.Z)(ke.dataTransfer.files).filter(function(an){return pt(an,Ot.props.accept)}),cn===!1&&(ae=ae.slice(0,1)),Ot.uploadFiles(ae);case 14:case"end":return sn.stop()}},Xe)}));return function(Xe){return ve.apply(this,arguments)}}()),(0,ue.Z)((0,he.Z)(Ot),"uploadFiles",function(ve){var Xe=(0,bt.Z)(ve),ke=Xe.map(function(cn){return cn.uid=Jt(),Ot.processFile(cn,Xe)});Promise.all(ke).then(function(cn){var Ie=Ot.props.onBatchStart;Ie==null||Ie(cn.map(function(ae){var Pe=ae.origin,sn=ae.parsedFile;return{file:Pe,parsedFile:sn}})),cn.filter(function(ae){return ae.parsedFile!==null}).forEach(function(ae){Ot.post(ae)})})}),(0,ue.Z)((0,he.Z)(Ot),"processFile",function(){var ve=(0,Ge.Z)((0,le.Z)().mark(function Xe(ke,cn){var Ie,ae,Pe,sn,an,Tt,Ct,xt,kt;return(0,le.Z)().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if(Ie=Ot.props.beforeUpload,ae=ke,!Ie){Et.next=14;break}return Et.prev=3,Et.next=6,Ie(ke,cn);case 6:ae=Et.sent,Et.next=12;break;case 9:Et.prev=9,Et.t0=Et.catch(3),ae=!1;case 12:if(ae!==!1){Et.next=14;break}return Et.abrupt("return",{origin:ke,parsedFile:null,action:null,data:null});case 14:if(Pe=Ot.props.action,typeof Pe!="function"){Et.next=21;break}return Et.next=18,Pe(ke);case 18:sn=Et.sent,Et.next=22;break;case 21:sn=Pe;case 22:if(an=Ot.props.data,typeof an!="function"){Et.next=29;break}return Et.next=26,an(ke);case 26:Tt=Et.sent,Et.next=30;break;case 29:Tt=an;case 30:return Ct=((0,je.Z)(ae)==="object"||typeof ae=="string")&&ae?ae:ke,Ct instanceof File?xt=Ct:xt=new File([Ct],ke.name,{type:ke.type}),kt=xt,kt.uid=ke.uid,Et.abrupt("return",{origin:ke,data:Tt,parsedFile:kt,action:sn});case 35:case"end":return Et.stop()}},Xe,null,[[3,9]])}));return function(Xe,ke){return ve.apply(this,arguments)}}()),(0,ue.Z)((0,he.Z)(Ot),"saveFileInput",function(ve){Ot.fileInput=ve}),Ot}return(0,me.Z)(te,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Le){var dn=this,_e=Le.data,ve=Le.origin,Xe=Le.action,ke=Le.parsedFile;if(this._isMounted){var cn=this.props,Ie=cn.onStart,ae=cn.customRequest,Pe=cn.name,sn=cn.headers,an=cn.withCredentials,Tt=cn.method,Ct=ve.uid,xt=ae||Dt,kt={action:Xe,filename:Pe,data:_e,file:ke,headers:sn,withCredentials:an,method:Tt||"post",onProgress:function(Et){var Ae=dn.props.onProgress;Ae==null||Ae(Et,ke)},onSuccess:function(Et,Ae){var We=dn.props.onSuccess;We==null||We(Et,ke,Ae),delete dn.reqs[Ct]},onError:function(Et,Ae){var We=dn.props.onError;We==null||We(Et,Ae,ke),delete dn.reqs[Ct]}};Ie(ve),this.reqs[Ct]=xt(kt)}}},{key:"reset",value:function(){this.setState({uid:Jt()})}},{key:"abort",value:function(Le){var dn=this.reqs;if(Le){var _e=Le.uid?Le.uid:Le;dn[_e]&&dn[_e].abort&&dn[_e].abort(),delete dn[_e]}else Object.keys(dn).forEach(function(ve){dn[ve]&&dn[ve].abort&&dn[ve].abort(),delete dn[ve]})}},{key:"render",value:function(){var Le=this.props,dn=Le.component,_e=Le.prefixCls,ve=Le.className,Xe=Le.classNames,ke=Xe===void 0?{}:Xe,cn=Le.disabled,Ie=Le.id,ae=Le.name,Pe=Le.style,sn=Le.styles,an=sn===void 0?{}:sn,Tt=Le.multiple,Ct=Le.accept,xt=Le.capture,kt=Le.children,zt=Le.directory,Et=Le.openFileDialogOnClick,Ae=Le.onMouseEnter,We=Le.onMouseLeave,Ue=Le.hasControlInside,jn=(0,Bt.Z)(Le,Me),Gn=nt()((0,ue.Z)((0,ue.Z)((0,ue.Z)({},_e,!0),"".concat(_e,"-disabled"),cn),ve,ve)),Ke=zt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ri=cn?{}:{onClick:Et?this.onClick:function(){},onKeyDown:Et?this.onKeyDown:function(){},onMouseEnter:Ae,onMouseLeave:We,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Ue?void 0:"0"};return Be.createElement(dn,(0,St.Z)({},ri,{className:Gn,role:Ue?void 0:"button",style:Pe}),Be.createElement("input",(0,St.Z)({},(0,ct.Z)(jn,{aria:!0,data:!0}),{id:Ie,name:ae,disabled:cn,type:"file",ref:this.saveFileInput,onClick:function(hi){return hi.stopPropagation()},key:this.state.uid,style:(0,Ce.Z)({display:"none"},an.input),className:ke.input,accept:Ct},Ke,{multiple:Tt,onChange:this.onChange},xt!=null?{capture:xt}:{})),kt)}}]),te}(Be.Component),He=pe;function De(){}var tn=function(pn){(0,ce.Z)(te,pn);var fn=(0,fe.Z)(te);function te(){var Ot;(0,ee.Z)(this,te);for(var Le=arguments.length,dn=new Array(Le),_e=0;_e<Le;_e++)dn[_e]=arguments[_e];return Ot=fn.call.apply(fn,[this].concat(dn)),(0,ue.Z)((0,he.Z)(Ot),"uploader",void 0),(0,ue.Z)((0,he.Z)(Ot),"saveUploader",function(ve){Ot.uploader=ve}),Ot}return(0,me.Z)(te,[{key:"abort",value:function(Le){this.uploader.abort(Le)}},{key:"render",value:function(){return Be.createElement(He,(0,St.Z)({},this.props,{ref:this.saveUploader}))}}]),te}(Be.Component);(0,ue.Z)(tn,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:De,onError:De,onSuccess:De,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Fn=tn,on=Fn},6790:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return an}});var St=Rt(67711),ee=Rt(26420),me=Rt(98506),he=Rt(52873),ce=Rt(16886),fe=Rt(33346),ue=Rt(92310),Be=Rt.n(ue),Ce=Rt(29301),Bt=Rt(70425),je=Rt(34280),le=Rt(59301),Ge=Rt(4676),bt=le.forwardRef(function(Tt,Ct){var xt=Tt.height,kt=Tt.offsetY,zt=Tt.offsetX,Et=Tt.children,Ae=Tt.prefixCls,We=Tt.onInnerResize,Ue=Tt.innerProps,jn=Tt.rtl,Gn=Tt.extra,Ke={},ri={display:"flex",flexDirection:"column"};return kt!==void 0&&(Ke={height:xt,position:"relative",overflow:"hidden"},ri=(0,me.Z)((0,me.Z)({},ri),{},(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)({transform:"translateY(".concat(kt,"px)")},jn?"marginRight":"marginLeft",-zt),"position","absolute"),"left",0),"right",0),"top",0))),le.createElement("div",{style:Ke},le.createElement(Ce.Z,{onResize:function(hi){var ti=hi.offsetHeight;ti&&We&&We()}},le.createElement("div",(0,St.Z)({style:ri,className:Be()((0,he.Z)({},"".concat(Ae,"-holder-inner"),Ae)),ref:Ct},Ue),Et,Gn)))});bt.displayName="Filler";var et=bt;function nt(Tt){var Ct=Tt.children,xt=Tt.setRef,kt=le.useCallback(function(zt){xt(zt)},[]);return le.cloneElement(Ct,{ref:kt})}function ct(Tt,Ct,xt,kt,zt,Et,Ae,We){var Ue=We.getKey;return Tt.slice(Ct,xt+1).map(function(jn,Gn){var Ke=Ct+Gn,ri=Ae(jn,Ke,{style:{width:kt},offsetX:zt}),Sn=Ue(jn);return le.createElement(nt,{key:Sn,setRef:function(ti){return Et(jn,ti)}},ri)})}function lt(Tt,Ct,xt,kt){var zt=xt-Tt,Et=Ct-xt,Ae=Math.min(zt,Et)*2;if(kt<=Ae){var We=Math.floor(kt/2);return kt%2?xt+We+1:xt-We}return zt>Et?xt-(kt-Et):xt+(kt-zt)}function pt(Tt,Ct,xt){var kt=Tt.length,zt=Ct.length,Et,Ae;if(kt===0&&zt===0)return null;kt<zt?(Et=Tt,Ae=Ct):(Et=Ct,Ae=Tt);var We={__EMPTY_ITEM__:!0};function Ue(hi){return hi!==void 0?xt(hi):We}for(var jn=null,Gn=Math.abs(kt-zt)!==1,Ke=0;Ke<Ae.length;Ke+=1){var ri=Ue(Et[Ke]),Sn=Ue(Ae[Ke]);if(ri!==Sn){jn=Ke,Gn=Gn||ri!==Ue(Ae[Ke+1]);break}}return jn===null?null:{index:jn,multiple:Gn}}function vt(Tt,Ct,xt){var kt=le.useState(Tt),zt=(0,ce.Z)(kt,2),Et=zt[0],Ae=zt[1],We=le.useState(null),Ue=(0,ce.Z)(We,2),jn=Ue[0],Gn=Ue[1];return le.useEffect(function(){var Ke=pt(Et||[],Tt||[],Ct);(Ke==null?void 0:Ke.index)!==void 0&&(xt==null||xt(Ke.index),Gn(Tt[Ke.index])),Ae(Tt)},[Tt]),[jn]}var Pt=Rt(16089),Dt=(typeof navigator=="undefined"?"undefined":(0,ee.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Vt=Dt,Ut=function(Tt,Ct,xt,kt){var zt=(0,le.useRef)(!1),Et=(0,le.useRef)(null);function Ae(){clearTimeout(Et.current),zt.current=!0,Et.current=setTimeout(function(){zt.current=!1},50)}var We=(0,le.useRef)({top:Tt,bottom:Ct,left:xt,right:kt});return We.current.top=Tt,We.current.bottom=Ct,We.current.left=xt,We.current.right=kt,function(Ue,jn){var Gn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ke=Ue?jn<0&&We.current.left||jn>0&&We.current.right:jn<0&&We.current.top||jn>0&&We.current.bottom;return Gn&&Ke?(clearTimeout(Et.current),zt.current=!1):(!Ke||zt.current)&&Ae(),!zt.current&&Ke}};function se(Tt,Ct,xt,kt,zt,Et,Ae){var We=(0,le.useRef)(0),Ue=(0,le.useRef)(null),jn=(0,le.useRef)(null),Gn=(0,le.useRef)(!1),Ke=Ut(Ct,xt,kt,zt);function ri(Ei,Pi){if(Pt.Z.cancel(Ue.current),!Ke(!1,Pi)){var An=Ei;if(!An._virtualHandled)An._virtualHandled=!0;else return;We.current+=Pi,jn.current=Pi,Vt||An.preventDefault(),Ue.current=(0,Pt.Z)(function(){var ei=Gn.current?10:1;Ae(We.current*ei,!1),We.current=0})}}function Sn(Ei,Pi){Ae(Pi,!0),Vt||Ei.preventDefault()}var hi=(0,le.useRef)(null),ti=(0,le.useRef)(null);function Wn(Ei){if(Tt){Pt.Z.cancel(ti.current),ti.current=(0,Pt.Z)(function(){hi.current=null},2);var Pi=Ei.deltaX,An=Ei.deltaY,ei=Ei.shiftKey,gr=Pi,dr=An;(hi.current==="sx"||!hi.current&&ei&&An&&!Pi)&&(gr=An,dr=0,hi.current="sx");var Sr=Math.abs(gr),_r=Math.abs(dr);hi.current===null&&(hi.current=Et&&Sr>_r?"x":"y"),hi.current==="y"?ri(Ei,dr):Sn(Ei,gr)}}function bi(Ei){Tt&&(Gn.current=Ei.detail===jn.current)}return[Wn,bi]}function qt(Tt,Ct,xt,kt){var zt=le.useMemo(function(){return[new Map,[]]},[Tt,xt.id,kt]),Et=(0,ce.Z)(zt,2),Ae=Et[0],We=Et[1],Ue=function(Gn){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn,ri=Ae.get(Gn),Sn=Ae.get(Ke);if(ri===void 0||Sn===void 0)for(var hi=Tt.length,ti=We.length;ti<hi;ti+=1){var Wn,bi=Tt[ti],Ei=Ct(bi);Ae.set(Ei,ti);var Pi=(Wn=xt.get(Ei))!==null&&Wn!==void 0?Wn:kt;if(We[ti]=(We[ti-1]||0)+Pi,Ei===Gn&&(ri=ti),Ei===Ke&&(Sn=ti),ri!==void 0&&Sn!==void 0)break}return{top:We[ri-1]||0,bottom:We[Sn]}};return Ue}var Jt=Rt(42573),Me=Rt(58698),pe=function(){function Tt(){(0,Jt.Z)(this,Tt),(0,he.Z)(this,"maps",void 0),(0,he.Z)(this,"id",0),(0,he.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Me.Z)(Tt,[{key:"set",value:function(xt,kt){this.diffRecords.set(xt,this.maps[xt]),this.maps[xt]=kt,this.id+=1}},{key:"get",value:function(xt){return this.maps[xt]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Tt}(),He=pe;function De(Tt){var Ct=parseFloat(Tt);return isNaN(Ct)?0:Ct}function tn(Tt,Ct,xt){var kt=le.useState(0),zt=(0,ce.Z)(kt,2),Et=zt[0],Ae=zt[1],We=(0,le.useRef)(new Map),Ue=(0,le.useRef)(new He),jn=(0,le.useRef)(0);function Gn(){jn.current+=1}function Ke(){var Sn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Gn();var hi=function(){var bi=!1;We.current.forEach(function(Ei,Pi){if(Ei&&Ei.offsetParent){var An=Ei.offsetHeight,ei=getComputedStyle(Ei),gr=ei.marginTop,dr=ei.marginBottom,Sr=De(gr),_r=De(dr),cr=An+Sr+_r;Ue.current.get(Pi)!==cr&&(Ue.current.set(Pi,cr),bi=!0)}}),bi&&Ae(function(Ei){return Ei+1})};if(Sn)hi();else{jn.current+=1;var ti=jn.current;Promise.resolve().then(function(){ti===jn.current&&hi()})}}function ri(Sn,hi){var ti=Tt(Sn),Wn=We.current.get(ti);hi?(We.current.set(ti,hi),Ke()):We.current.delete(ti),!Wn!=!hi&&(hi?Ct==null||Ct(Sn):xt==null||xt(Sn))}return(0,le.useEffect)(function(){return Gn},[]),[ri,Ke,Ue.current,Et]}var Fn=14/15;function on(Tt,Ct,xt){var kt=(0,le.useRef)(!1),zt=(0,le.useRef)(0),Et=(0,le.useRef)(0),Ae=(0,le.useRef)(null),We=(0,le.useRef)(null),Ue,jn=function(Sn){if(kt.current){var hi=Math.ceil(Sn.touches[0].pageX),ti=Math.ceil(Sn.touches[0].pageY),Wn=zt.current-hi,bi=Et.current-ti,Ei=Math.abs(Wn)>Math.abs(bi);Ei?zt.current=hi:Et.current=ti;var Pi=xt(Ei,Ei?Wn:bi,!1,Sn);Pi&&Sn.preventDefault(),clearInterval(We.current),Pi&&(We.current=setInterval(function(){Ei?Wn*=Fn:bi*=Fn;var An=Math.floor(Ei?Wn:bi);(!xt(Ei,An,!0)||Math.abs(An)<=.1)&&clearInterval(We.current)},16))}},Gn=function(){kt.current=!1,Ue()},Ke=function(Sn){Ue(),Sn.touches.length===1&&!kt.current&&(kt.current=!0,zt.current=Math.ceil(Sn.touches[0].pageX),Et.current=Math.ceil(Sn.touches[0].pageY),Ae.current=Sn.target,Ae.current.addEventListener("touchmove",jn,{passive:!1}),Ae.current.addEventListener("touchend",Gn,{passive:!0}))};Ue=function(){Ae.current&&(Ae.current.removeEventListener("touchmove",jn),Ae.current.removeEventListener("touchend",Gn))},(0,je.Z)(function(){return Tt&&Ct.current.addEventListener("touchstart",Ke,{passive:!0}),function(){var ri;(ri=Ct.current)===null||ri===void 0||ri.removeEventListener("touchstart",Ke),Ue(),clearInterval(We.current)}},[Tt])}function pn(Tt){return Math.floor(Math.pow(Tt,.5))}function fn(Tt,Ct){var xt="touches"in Tt?Tt.touches[0]:Tt;return xt[Ct?"pageX":"pageY"]-window[Ct?"scrollX":"scrollY"]}function te(Tt,Ct,xt){le.useEffect(function(){var kt=Ct.current;if(Tt&&kt){var zt=!1,Et,Ae,We=function(){Pt.Z.cancel(Et)},Ue=function ri(){We(),Et=(0,Pt.Z)(function(){xt(Ae),ri()})},jn=function(Sn){if(!(Sn.target.draggable||Sn.button!==0)){var hi=Sn;hi._virtualHandled||(hi._virtualHandled=!0,zt=!0)}},Gn=function(){zt=!1,We()},Ke=function(Sn){if(zt){var hi=fn(Sn,!1),ti=kt.getBoundingClientRect(),Wn=ti.top,bi=ti.bottom;if(hi<=Wn){var Ei=Wn-hi;Ae=-pn(Ei),Ue()}else if(hi>=bi){var Pi=hi-bi;Ae=pn(Pi),Ue()}else We()}};return kt.addEventListener("mousedown",jn),kt.ownerDocument.addEventListener("mouseup",Gn),kt.ownerDocument.addEventListener("mousemove",Ke),function(){kt.removeEventListener("mousedown",jn),kt.ownerDocument.removeEventListener("mouseup",Gn),kt.ownerDocument.removeEventListener("mousemove",Ke),We()}}},[Tt])}var Ot=10;function Le(Tt,Ct,xt,kt,zt,Et,Ae,We){var Ue=le.useRef(),jn=le.useState(null),Gn=(0,ce.Z)(jn,2),Ke=Gn[0],ri=Gn[1];return(0,je.Z)(function(){if(Ke&&Ke.times<Ot){if(!Tt.current){ri(function(lo){return(0,me.Z)({},lo)});return}Et();var Sn=Ke.targetAlign,hi=Ke.originAlign,ti=Ke.index,Wn=Ke.offset,bi=Tt.current.clientHeight,Ei=!1,Pi=Sn,An=null;if(bi){for(var ei=Sn||hi,gr=0,dr=0,Sr=0,_r=Math.min(Ct.length-1,ti),cr=0;cr<=_r;cr+=1){var jo=zt(Ct[cr]);dr=gr;var Yo=xt.get(jo);Sr=dr+(Yo===void 0?kt:Yo),gr=Sr}for(var ko=ei==="top"?Wn:bi-Wn,$o=_r;$o>=0;$o-=1){var ms=zt(Ct[$o]),Ho=xt.get(ms);if(Ho===void 0){Ei=!0;break}if(ko-=Ho,ko<=0)break}switch(ei){case"top":An=dr-Wn;break;case"bottom":An=Sr-bi+Wn;break;default:{var Go=Tt.current.scrollTop,nr=Go+bi;dr<Go?Pi="top":Sr>nr&&(Pi="bottom")}}An!==null&&Ae(An),An!==Ke.lastTop&&(Ei=!0)}Ei&&ri((0,me.Z)((0,me.Z)({},Ke),{},{times:Ke.times+1,targetAlign:Pi,lastTop:An}))}},[Ke,Tt.current]),function(Sn){if(Sn==null){We();return}if(Pt.Z.cancel(Ue.current),typeof Sn=="number")Ae(Sn);else if(Sn&&(0,ee.Z)(Sn)==="object"){var hi,ti=Sn.align;"index"in Sn?hi=Sn.index:hi=Ct.findIndex(function(Ei){return zt(Ei)===Sn.key});var Wn=Sn.offset,bi=Wn===void 0?0:Wn;ri({times:0,index:hi,offset:bi,originAlign:ti})}}}var dn=le.forwardRef(function(Tt,Ct){var xt=Tt.prefixCls,kt=Tt.rtl,zt=Tt.scrollOffset,Et=Tt.scrollRange,Ae=Tt.onStartMove,We=Tt.onStopMove,Ue=Tt.onScroll,jn=Tt.horizontal,Gn=Tt.spinSize,Ke=Tt.containerSize,ri=Tt.style,Sn=Tt.thumbStyle,hi=Tt.showScrollBar,ti=le.useState(!1),Wn=(0,ce.Z)(ti,2),bi=Wn[0],Ei=Wn[1],Pi=le.useState(null),An=(0,ce.Z)(Pi,2),ei=An[0],gr=An[1],dr=le.useState(null),Sr=(0,ce.Z)(dr,2),_r=Sr[0],cr=Sr[1],jo=!kt,Yo=le.useRef(),ko=le.useRef(),$o=le.useState(hi),ms=(0,ce.Z)($o,2),Ho=ms[0],Go=ms[1],nr=le.useRef(),lo=function(){hi===!0||hi===!1||(clearTimeout(nr.current),Go(!0),nr.current=setTimeout(function(){Go(!1)},3e3))},Lt=Et-Ke||0,Rn=Ke-Gn||0,ii=le.useMemo(function(){if(zt===0||Lt===0)return 0;var Ye=zt/Lt;return Ye*Rn},[zt,Lt,Rn]),Vn=function(di){di.stopPropagation(),di.preventDefault()},Nn=le.useRef({top:ii,dragging:bi,pageY:ei,startTop:_r});Nn.current={top:ii,dragging:bi,pageY:ei,startTop:_r};var Cn=function(di){Ei(!0),gr(fn(di,jn)),cr(Nn.current.top),Ae(),di.stopPropagation(),di.preventDefault()};le.useEffect(function(){var Ye=function(Re){Re.preventDefault()},di=Yo.current,ci=ko.current;return di.addEventListener("touchstart",Ye,{passive:!1}),ci.addEventListener("touchstart",Cn,{passive:!1}),function(){di.removeEventListener("touchstart",Ye),ci.removeEventListener("touchstart",Cn)}},[]);var gi=le.useRef();gi.current=Lt;var Ui=le.useRef();Ui.current=Rn,le.useEffect(function(){if(bi){var Ye,di=function(Re){var hn=Nn.current,xi=hn.dragging,_i=hn.pageY,Pn=hn.startTop;Pt.Z.cancel(Ye);var Xt=Yo.current.getBoundingClientRect(),ye=Ke/(jn?Xt.width:Xt.height);if(xi){var Mn=(fn(Re,jn)-_i)*ye,wn=Pn;!jo&&jn?wn-=Mn:wn+=Mn;var be=gi.current,Ln=Ui.current,Ni=Ln?wn/Ln:0,ji=Math.ceil(Ni*be);ji=Math.max(ji,0),ji=Math.min(ji,be),Ye=(0,Pt.Z)(function(){Ue(ji,jn)})}},ci=function(){Ei(!1),We()};return window.addEventListener("mousemove",di,{passive:!0}),window.addEventListener("touchmove",di,{passive:!0}),window.addEventListener("mouseup",ci,{passive:!0}),window.addEventListener("touchend",ci,{passive:!0}),function(){window.removeEventListener("mousemove",di),window.removeEventListener("touchmove",di),window.removeEventListener("mouseup",ci),window.removeEventListener("touchend",ci),Pt.Z.cancel(Ye)}}},[bi]),le.useEffect(function(){return lo(),function(){clearTimeout(nr.current)}},[zt]),le.useImperativeHandle(Ct,function(){return{delayHidden:lo}});var Te="".concat(xt,"-scrollbar"),Ne={position:"absolute",visibility:Ho?null:"hidden"},we={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return jn?(Object.assign(Ne,{height:8,left:0,right:0,bottom:0}),Object.assign(we,(0,he.Z)({height:"100%",width:Gn},jo?"left":"right",ii))):(Object.assign(Ne,(0,he.Z)({width:8,top:0,bottom:0},jo?"right":"left",0)),Object.assign(we,{width:"100%",height:Gn,top:ii})),le.createElement("div",{ref:Yo,className:Be()(Te,(0,he.Z)((0,he.Z)((0,he.Z)({},"".concat(Te,"-horizontal"),jn),"".concat(Te,"-vertical"),!jn),"".concat(Te,"-visible"),Ho)),style:(0,me.Z)((0,me.Z)({},Ne),ri),onMouseDown:Vn,onMouseMove:lo},le.createElement("div",{ref:ko,className:Be()("".concat(Te,"-thumb"),(0,he.Z)({},"".concat(Te,"-thumb-moving"),bi)),style:(0,me.Z)((0,me.Z)({},we),Sn),onMouseDown:Cn}))}),_e=dn,ve=20;function Xe(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,xt=Tt/Ct*Tt;return isNaN(xt)&&(xt=0),xt=Math.max(xt,ve),Math.floor(xt)}var ke=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],cn=[],Ie={overflowY:"auto",overflowAnchor:"none"};function ae(Tt,Ct){var xt=Tt.prefixCls,kt=xt===void 0?"rc-virtual-list":xt,zt=Tt.className,Et=Tt.height,Ae=Tt.itemHeight,We=Tt.fullHeight,Ue=We===void 0?!0:We,jn=Tt.style,Gn=Tt.data,Ke=Tt.children,ri=Tt.itemKey,Sn=Tt.virtual,hi=Tt.direction,ti=Tt.scrollWidth,Wn=Tt.component,bi=Wn===void 0?"div":Wn,Ei=Tt.onScroll,Pi=Tt.onVirtualScroll,An=Tt.onVisibleChange,ei=Tt.innerProps,gr=Tt.extraRender,dr=Tt.styles,Sr=Tt.showScrollBar,_r=Sr===void 0?"optional":Sr,cr=(0,fe.Z)(Tt,ke),jo=le.useCallback(function(Ai){return typeof ri=="function"?ri(Ai):Ai==null?void 0:Ai[ri]},[ri]),Yo=tn(jo,null,null),ko=(0,ce.Z)(Yo,4),$o=ko[0],ms=ko[1],Ho=ko[2],Go=ko[3],nr=!!(Sn!==!1&&Et&&Ae),lo=le.useMemo(function(){return Object.values(Ho.maps).reduce(function(Ai,Ii){return Ai+Ii},0)},[Ho.id,Ho.maps]),Lt=nr&&Gn&&(Math.max(Ae*Gn.length,lo)>Et||!!ti),Rn=hi==="rtl",ii=Be()(kt,(0,he.Z)({},"".concat(kt,"-rtl"),Rn),zt),Vn=Gn||cn,Nn=(0,le.useRef)(),Cn=(0,le.useRef)(),gi=(0,le.useRef)(),Ui=(0,le.useState)(0),Te=(0,ce.Z)(Ui,2),Ne=Te[0],we=Te[1],Ye=(0,le.useState)(0),di=(0,ce.Z)(Ye,2),ci=di[0],Yi=di[1],Re=(0,le.useState)(!1),hn=(0,ce.Z)(Re,2),xi=hn[0],_i=hn[1],Pn=function(){_i(!0)},Xt=function(){_i(!1)},ye={getKey:jo};function Mn(Ai){we(function(Ii){var xr;typeof Ai=="function"?xr=Ai(Ii):xr=Ai;var Bi=Fr(xr);return Nn.current.scrollTop=Bi,Bi})}var wn=(0,le.useRef)({start:0,end:Vn.length}),be=(0,le.useRef)(),Ln=vt(Vn,jo),Ni=(0,ce.Z)(Ln,1),ji=Ni[0];be.current=ji;var Qi=le.useMemo(function(){if(!nr)return{scrollHeight:void 0,start:0,end:Vn.length-1,offset:void 0};if(!Lt){var Ai;return{scrollHeight:((Ai=Cn.current)===null||Ai===void 0?void 0:Ai.offsetHeight)||0,start:0,end:Vn.length-1,offset:void 0}}for(var Ii=0,xr,Bi,ar,Di=Vn.length,Ft=0;Ft<Di;Ft+=1){var re=Vn[Ft],Yt=jo(re),de=Ho.get(Yt),ge=Ii+(de===void 0?Ae:de);ge>=Ne&&xr===void 0&&(xr=Ft,Bi=Ii),ge>Ne+Et&&ar===void 0&&(ar=Ft),Ii=ge}return xr===void 0&&(xr=0,Bi=0,ar=Math.ceil(Et/Ae)),ar===void 0&&(ar=Vn.length-1),ar=Math.min(ar+1,Vn.length-1),{scrollHeight:Ii,start:xr,end:ar,offset:Bi}},[Lt,nr,Ne,Vn,Go,Et]),On=Qi.scrollHeight,Bn=Qi.start,Kn=Qi.end,or=Qi.offset;wn.current.start=Bn,wn.current.end=Kn,le.useLayoutEffect(function(){var Ai=Ho.getRecord();if(Ai.size===1){var Ii=Array.from(Ai.keys())[0],xr=Ai.get(Ii),Bi=Vn[Bn];if(Bi&&xr===void 0){var ar=jo(Bi);if(ar===Ii){var Di=Ho.get(Ii),Ft=Di-Ae;Mn(function(re){return re+Ft})}}}Ho.resetRecord()},[On]);var Hi=le.useState({width:0,height:Et}),vn=(0,ce.Z)(Hi,2),si=vn[0],Tr=vn[1],Rr=function(Ii){Tr({width:Ii.offsetWidth,height:Ii.offsetHeight})},No=(0,le.useRef)(),Ee=(0,le.useRef)(),Mi=le.useMemo(function(){return Xe(si.width,ti)},[si.width,ti]),fr=le.useMemo(function(){return Xe(si.height,On)},[si.height,On]),fi=On-Et,Ir=(0,le.useRef)(fi);Ir.current=fi;function Fr(Ai){var Ii=Ai;return Number.isNaN(Ir.current)||(Ii=Math.min(Ii,Ir.current)),Ii=Math.max(Ii,0),Ii}var Nr=Ne<=0,wr=Ne>=fi,br=ci<=0,Jr=ci>=ti,rn=Ut(Nr,wr,br,Jr),fo=function(){return{x:Rn?-ci:ci,y:Ne}},en=(0,le.useRef)(fo()),zr=(0,Bt.zX)(function(Ai){if(Pi){var Ii=(0,me.Z)((0,me.Z)({},fo()),Ai);(en.current.x!==Ii.x||en.current.y!==Ii.y)&&(Pi(Ii),en.current=Ii)}});function Uo(Ai,Ii){var xr=Ai;Ii?((0,Ge.flushSync)(function(){Yi(xr)}),zr()):Mn(xr)}function no(Ai){var Ii=Ai.currentTarget.scrollTop;Ii!==Ne&&Mn(Ii),Ei==null||Ei(Ai),zr()}var Zo=function(Ii){var xr=Ii,Bi=ti?ti-si.width:0;return xr=Math.max(xr,0),xr=Math.min(xr,Bi),xr},Or=(0,Bt.zX)(function(Ai,Ii){Ii?((0,Ge.flushSync)(function(){Yi(function(xr){var Bi=xr+(Rn?-Ai:Ai);return Zo(Bi)})}),zr()):Mn(function(xr){var Bi=xr+Ai;return Bi})}),$i=se(nr,Nr,wr,br,Jr,!!ti,Or),po=(0,ce.Z)($i,2),Ps=po[0],Po=po[1];on(nr,Nn,function(Ai,Ii,xr,Bi){var ar=Bi;return rn(Ai,Ii,xr)?!1:!ar||!ar._virtualHandled?(ar&&(ar._virtualHandled=!0),Ps({preventDefault:function(){},deltaX:Ai?Ii:0,deltaY:Ai?0:Ii}),!0):!1}),te(Lt,Nn,function(Ai){Mn(function(Ii){return Ii+Ai})}),(0,je.Z)(function(){function Ai(xr){var Bi=Nr&&xr.detail<0,ar=wr&&xr.detail>0;nr&&!Bi&&!ar&&xr.preventDefault()}var Ii=Nn.current;return Ii.addEventListener("wheel",Ps,{passive:!1}),Ii.addEventListener("DOMMouseScroll",Po,{passive:!0}),Ii.addEventListener("MozMousePixelScroll",Ai,{passive:!1}),function(){Ii.removeEventListener("wheel",Ps),Ii.removeEventListener("DOMMouseScroll",Po),Ii.removeEventListener("MozMousePixelScroll",Ai)}},[nr,Nr,wr]),(0,je.Z)(function(){if(ti){var Ai=Zo(ci);Yi(Ai),zr({x:Ai})}},[si.width,ti]);var Jn=function(){var Ii,xr;(Ii=No.current)===null||Ii===void 0||Ii.delayHidden(),(xr=Ee.current)===null||xr===void 0||xr.delayHidden()},Wt=Le(Nn,Vn,Ho,Ae,jo,function(){return ms(!0)},Mn,Jn);le.useImperativeHandle(Ct,function(){return{nativeElement:gi.current,getScrollInfo:fo,scrollTo:function(Ii){function xr(Bi){return Bi&&(0,ee.Z)(Bi)==="object"&&("left"in Bi||"top"in Bi)}xr(Ii)?(Ii.left!==void 0&&Yi(Zo(Ii.left)),Wt(Ii.top)):Wt(Ii)}}}),(0,je.Z)(function(){if(An){var Ai=Vn.slice(Bn,Kn+1);An(Ai,Vn)}},[Bn,Kn,Vn]);var Co=qt(Vn,jo,Ho,Ae),ea=gr==null?void 0:gr({start:Bn,end:Kn,virtual:Lt,offsetX:ci,offsetY:or,rtl:Rn,getSize:Co}),Js=ct(Vn,Bn,Kn,ti,ci,$o,Ke,ye),vs=null;Et&&(vs=(0,me.Z)((0,he.Z)({},Ue?"height":"maxHeight",Et),Ie),nr&&(vs.overflowY="hidden",ti&&(vs.overflowX="hidden"),xi&&(vs.pointerEvents="none")));var ro={};return Rn&&(ro.dir="rtl"),le.createElement("div",(0,St.Z)({ref:gi,style:(0,me.Z)((0,me.Z)({},jn),{},{position:"relative"}),className:ii},ro,cr),le.createElement(Ce.Z,{onResize:Rr},le.createElement(bi,{className:"".concat(kt,"-holder"),style:vs,ref:Nn,onScroll:no,onMouseEnter:Jn},le.createElement(et,{prefixCls:kt,height:On,offsetX:ci,offsetY:or,scrollWidth:ti,onInnerResize:ms,ref:Cn,innerProps:ei,rtl:Rn,extra:ea},Js))),Lt&&On>Et&&le.createElement(_e,{ref:No,prefixCls:kt,scrollOffset:Ne,scrollRange:On,rtl:Rn,onScroll:Uo,onStartMove:Pn,onStopMove:Xt,spinSize:fr,containerSize:si.height,style:dr==null?void 0:dr.verticalScrollBar,thumbStyle:dr==null?void 0:dr.verticalScrollBarThumb,showScrollBar:_r}),Lt&&ti>si.width&&le.createElement(_e,{ref:Ee,prefixCls:kt,scrollOffset:ci,scrollRange:ti,rtl:Rn,onScroll:Uo,onStartMove:Pn,onStopMove:Xt,spinSize:Mi,containerSize:si.width,horizontal:!0,style:dr==null?void 0:dr.horizontalScrollBar,thumbStyle:dr==null?void 0:dr.horizontalScrollBarThumb,showScrollBar:_r}))}var Pe=le.forwardRef(ae);Pe.displayName="List";var sn=Pe,an=sn},25510:function(xn){"use strict";xn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKB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EBsLBbJ8Szjhphs+bOC5YO3FOvvPyy/ebMM+zggw6y5595zsaMHm2LTppgL7/wYtiQvOOu/2jv/cAH7P27vc/m2Ov2u4vOtyuuuNyO+eY3bez4Cbbi8svbqy/PtJf+9oLNnTXbRsydZ8d+81u21VZb2wpvfasdcMD+dtIpPwoxLJMmTwrbp595/Anb7O1vt2223Mq+9pWv2siJE+33l15iJ//0p/brs39jy660oj14/73hbKQVV1jBPrznXnbAgQeGocAVRF+gr790rnUBLAWwtCsOC2DJp1wBLAWw5HNNB54ogKUZsMjCcuXlV9hvzzrHvnPccTZ50mRbcurUEAD68ssvhziM0WPG2vhJE23Ft65kxxx/rM18eaZ9fr/97E+3/skmjB9v3zjqKFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH2zVXX2OXX3G5HXHkkbbV1lvZD086yW67/TY75eST7de//rW9Y4ft7agjjrT11l03HHgYzhsaafbySy8FlxWuq3Hjxtn4CRPt5ptvtQsvvMj++7+/attsu7Udc8yxtu5664YTnIl1OeH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D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(xn,$n,Rt){"use strict";xn.exports=Rt.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(xn){"use strict";xn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsP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/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(xn,$n,Rt){"use strict";Rt.d($n,{Z:function(){return Be}});const St=Ce=>typeof Ce=="object"&&Ce!=null&&Ce.nodeType===1,ee=(Ce,Bt)=>(!Bt||Ce!=="hidden")&&Ce!=="visible"&&Ce!=="clip",me=(Ce,Bt)=>{if(Ce.clientHeight<Ce.scrollHeight||Ce.clientWidth<Ce.scrollWidth){const je=getComputedStyle(Ce,null);return ee(je.overflowY,Bt)||ee(je.overflowX,Bt)||(le=>{const Ge=(bt=>{if(!bt.ownerDocument||!bt.ownerDocument.defaultView)return null;try{return bt.ownerDocument.defaultView.frameElement}catch(et){return null}})(le);return!!Ge&&(Ge.clientHeight<le.scrollHeight||Ge.clientWidth<le.scrollWidth)})(Ce)}return!1},he=(Ce,Bt,je,le,Ge,bt,et,nt)=>bt<Ce&&et>Bt||bt>Ce&&et<Bt?0:bt<=Ce&&nt<=je||et>=Bt&&nt>=je?bt-Ce-le:et>Bt&&nt<je||bt<Ce&&nt>je?et-Bt+Ge:0,ce=Ce=>{const Bt=Ce.parentElement;return Bt==null?Ce.getRootNode().host||null:Bt},fe=(Ce,Bt)=>{var je,le,Ge,bt;if(typeof document=="undefined")return[];const{scrollMode:et,block:nt,inline:ct,boundary:lt,skipOverflowHiddenElements:pt}=Bt,vt=typeof lt=="function"?lt:_e=>_e!==lt;if(!St(Ce))throw new TypeError("Invalid target");const Pt=document.scrollingElement||document.documentElement,Dt=[];let Vt=Ce;for(;St(Vt)&&vt(Vt);){if(Vt=ce(Vt),Vt===Pt){Dt.push(Vt);break}Vt!=null&&Vt===document.body&&me(Vt)&&!me(document.documentElement)||Vt!=null&&me(Vt,pt)&&Dt.push(Vt)}const Ut=(le=(je=window.visualViewport)==null?void 0:je.width)!=null?le:innerWidth,se=(bt=(Ge=window.visualViewport)==null?void 0:Ge.height)!=null?bt:innerHeight,{scrollX:qt,scrollY:Jt}=window,{height:Me,width:pe,top:He,right:De,bottom:tn,left:Fn}=Ce.getBoundingClientRect(),{top:on,right:pn,bottom:fn,left:te}=(_e=>{const ve=window.getComputedStyle(_e);return{top:parseFloat(ve.scrollMarginTop)||0,right:parseFloat(ve.scrollMarginRight)||0,bottom:parseFloat(ve.scrollMarginBottom)||0,left:parseFloat(ve.scrollMarginLeft)||0}})(Ce);let Ot=nt==="start"||nt==="nearest"?He-on:nt==="end"?tn+fn:He+Me/2-on+fn,Le=ct==="center"?Fn+pe/2-te+pn:ct==="end"?De+pn:Fn-te;const dn=[];for(let _e=0;_e<Dt.length;_e++){const ve=Dt[_e],{height:Xe,width:ke,top:cn,right:Ie,bottom:ae,left:Pe}=ve.getBoundingClientRect();if(et==="if-needed"&&He>=0&&Fn>=0&&tn<=se&&De<=Ut&&(ve===Pt&&!me(ve)||He>=cn&&tn<=ae&&Fn>=Pe&&De<=Ie))return dn;const sn=getComputedStyle(ve),an=parseInt(sn.borderLeftWidth,10),Tt=parseInt(sn.borderTopWidth,10),Ct=parseInt(sn.borderRightWidth,10),xt=parseInt(sn.borderBottomWidth,10);let kt=0,zt=0;const Et="offsetWidth"in ve?ve.offsetWidth-ve.clientWidth-an-Ct:0,Ae="offsetHeight"in ve?ve.offsetHeight-ve.clientHeight-Tt-xt:0,We="offsetWidth"in ve?ve.offsetWidth===0?0:ke/ve.offsetWidth:0,Ue="offsetHeight"in ve?ve.offsetHeight===0?0:Xe/ve.offsetHeight:0;if(Pt===ve)kt=nt==="start"?Ot:nt==="end"?Ot-se:nt==="nearest"?he(Jt,Jt+se,se,Tt,xt,Jt+Ot,Jt+Ot+Me,Me):Ot-se/2,zt=ct==="start"?Le:ct==="center"?Le-Ut/2:ct==="end"?Le-Ut:he(qt,qt+Ut,Ut,an,Ct,qt+Le,qt+Le+pe,pe),kt=Math.max(0,kt+Jt),zt=Math.max(0,zt+qt);else{kt=nt==="start"?Ot-cn-Tt:nt==="end"?Ot-ae+xt+Ae:nt==="nearest"?he(cn,ae,Xe,Tt,xt+Ae,Ot,Ot+Me,Me):Ot-(cn+Xe/2)+Ae/2,zt=ct==="start"?Le-Pe-an:ct==="center"?Le-(Pe+ke/2)+Et/2:ct==="end"?Le-Ie+Ct+Et:he(Pe,Ie,ke,an,Ct+Et,Le,Le+pe,pe);const{scrollLeft:jn,scrollTop:Gn}=ve;kt=Ue===0?0:Math.max(0,Math.min(Gn+kt/Ue,ve.scrollHeight-Xe/Ue+Ae)),zt=We===0?0:Math.max(0,Math.min(jn+zt/We,ve.scrollWidth-ke/We+Et)),Ot+=Gn-kt,Le+=jn-zt}dn.push({el:ve,top:kt,left:zt})}return dn},ue=Ce=>Ce===!1?{block:"end",inline:"nearest"}:(Bt=>Bt===Object(Bt)&&Object.keys(Bt).length!==0)(Ce)?Ce:{block:"start",inline:"nearest"};function Be(Ce,Bt){if(!Ce.isConnected||!(Ge=>{let bt=Ge;for(;bt&&bt.parentNode;){if(bt.parentNode===document)return!0;bt=bt.parentNode instanceof ShadowRoot?bt.parentNode.host:bt.parentNode}return!1})(Ce))return;const je=(Ge=>{const bt=window.getComputedStyle(Ge);return{top:parseFloat(bt.scrollMarginTop)||0,right:parseFloat(bt.scrollMarginRight)||0,bottom:parseFloat(bt.scrollMarginBottom)||0,left:parseFloat(bt.scrollMarginLeft)||0}})(Ce);if((Ge=>typeof Ge=="object"&&typeof Ge.behavior=="function")(Bt))return Bt.behavior(fe(Ce,Bt));const le=typeof Bt=="boolean"||Bt==null?void 0:Bt.behavior;for(const{el:Ge,top:bt,left:et}of fe(Ce,ue(Bt))){const nt=bt-je.top+je.bottom,ct=et-je.left+je.right;Ge.scroll({top:nt,left:ct,behavior:le})}}}}]);
|