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.
NewEduCoderBuild/7961.87506e76.async.js

1229 lines
2.2 MiB

(self.webpackChunk=self.webpackChunk||[]).push([[7961],{71749:function(){"use strict"},30483:function(){"use strict"},71736: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"}},35524:function(xn,$n){"use strict";$n.Z={modal:"modal___A9Ovz",colorBlue:"colorBlue___XSmR5",formWrap:"formWrap___wRvaA",flexRow:"flexRow___C40dc",flexColumn:"flexColumn___LkZfj",example:"example___bz7Hw",exampleImg:"exampleImg___gNkC_",colorOrange:"colorOrange___Ka6zf",uploader:"uploader___plQRr",uploadImg:"uploadImg___cjOpL",imageTip:"imageTip___p1_lZ",uploadTipIcon:"uploadTipIcon___SpsS2",uploadTip:"uploadTip___e9JlL",color05101a:"color05101a___CDEUv",viewLargerImg:"viewLargerImg___IclRX",footerWrap:"footerWrap___beWC6",note:"note___CXi9y",schoolHintWrap:"schoolHintWrap___Ma6ly",colorCDCDCD:"colorCDCDCD___D0UWo",color0152d9:"color0152d9___hF3Bb"}},18023:function(){"use strict";function xn(Tt,nt,et,ht){et===void 0&&(et=0),ht===void 0&&(ht=1/0),this._name=Tt,this._defaultValue=nt,this._minimum=et,this._maximum=ht}Object.defineProperty(xn.prototype,"name",{get:function(){return this._name},set:function(Tt){if(typeof Tt!="string"||Tt==="")throw new Error("Shape name must be a valid string.");this._name=Tt}}),Object.defineProperty(xn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Tt){if(typeof Tt!="number"||isNaN(Tt))throw new Error("The default value must be a real number, not: "+Tt);this._defaultValue=Tt}}),Object.defineProperty(xn.prototype,"minimum",{get:function(){return this._minimum},set:function(Tt){if(typeof Tt!="number"||isNaN(Tt))throw new Error("Minimum must be a real number, not: "+Tt);this._minimum=Tt}}),Object.defineProperty(xn.prototype,"maximum",{get:function(){return this._maximum},set:function(Tt){if(typeof Tt!="number"||isNaN(Tt))throw new Error("Maximum must be a real number, not: "+Tt);this._maximum=Tt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Tt,nt){var et=go.Shape._FigureParameters[Tt];return et?et[nt]:null},go.Shape.setFigureParameter=function(Tt,nt,et){if(!(et instanceof xn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+et);if(et.defaultValue<et.minimum||et.defaultValue>et.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+et.defaultValue);var ht=go.Shape._FigureParameters[Tt];ht||(ht=[],go.Shape._FigureParameters[Tt]=ht),ht[nt]=et};var $n=[];function Dt(Tt,nt){var et=$n.pop();return et===void 0?new go.Point(Tt,nt):(et.x=Tt,et.y=nt,et)}function kt(){var Tt=$n.pop();return Tt===void 0?new go.Point:Tt}function le(Tt){$n.push(Tt)}function ze(Tt,nt,et,ht,lt,pt,vt,St,Lt){Lt||(Lt=new go.Point);var It=Tt-et,Yt=lt-vt,ie=NaN,re=NaN;if(It===0)if(Yt===0)Tt===et&&(ie=Tt,re=nt);else{var Qt=(pt-St)/Yt,xe=pt-Qt*lt;ie=Tt,re=Qt*ie+xe}else if(Yt===0){var he=(nt-ht)/It,Le=nt-he*Tt;ie=lt,re=he*ie+Le}else{var he=(nt-ht)/It,Qt=(pt-St)/Yt,Le=nt-he*Tt,xe=pt-Qt*lt;ie=(xe-Le)/(he-Qt),re=he*ie+Le}return Lt.x=ie,Lt.y=re,Lt}function Ye(Tt,nt,et,ht,lt,pt,vt,St,Lt,It,Yt,ie,re,Qt){var xe=1-Lt,he=Lt,Le=Tt*xe+et*he,Qe=nt*xe+ht*he,Fe=et*xe+lt*he,Gn=ht*xe+pt*he,Jn=lt*xe+vt*he,Ke=pt*xe+St*he,Dn=Le*xe+Fe*he,$t=Qe*xe+Gn*he,zt=Fe*xe+Jn*he,Gt=Gn*xe+Ke*he,_e=Dn*xe+zt*he,Sn=$t*xe+Gt*he;It.x=Le,It.y=Qe,Yt.x=Dn,Yt.y=$t,ie.x=_e,ie.y=Sn,re.x=zt,re.y=Gt,Qt.x=Jn,Qt.y=Ke}var Se=new go.Spot(.156,.156),Ot=new go.Spot(.844,.844),qt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new xn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=5),ht=Math.min(ht,nt/3),ht=Math.min(ht,et/3);var lt=ht*qt,pt=new go.Geometry().add(new go.PathFigure(ht,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt-ht,0)).add(new go.PathSegment(go.PathSegment.Bezier,nt,ht,nt-lt,0,nt,lt)).add(new go.PathSegment(go.PathSegment.Line,nt,et-ht)).add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,et,nt,et-lt,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,ht,et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et-ht,lt,et,0,et-lt)).add(new go.PathSegment(go.PathSegment.Line,0,ht)).add(new go.PathSegment(go.PathSegment.Bezier,ht,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(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,et).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,et).add(new go.PathSegment(go.PathSegment.Line,0,et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Tt,nt,et){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=et/2,ht.endX=nt,ht.endY=et/2,ht}),go.Shape.defineFigureGenerator("LineV",function(Tt,nt,et){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=nt/2,ht.startY=0,ht.endX=nt/2,ht.endY=et,ht}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,et/2,!1).add(new go.PathSegment(go.PathSegment.Line,nt,et/2)).add(new go.PathSegment(go.PathSegment.Move,nt/2,0)).add(new go.PathSegment(go.PathSegment.Line,nt/2,et)))}),go.Shape.defineFigureGenerator("XLine",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)))}),go.Shape.defineFigureGenerator("LineRight",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(.25*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)))}),go.Shape.defineFigureGenerator("LineDown",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,.25*et,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.75*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)))}),go.Shape.defineFigureGenerator("LineLeft",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(.75*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.75*nt,et)))}),go.Shape.defineFigureGenerator("LineUp",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,.75*et,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.25*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Tt,nt,et){var ht=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ht*nt,(1-ht)*et,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,ht*et)).add(new go.PathSegment(go.PathSegment.Move,ht*nt,ht*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,(1-ht)*et)).add(new go.PathSegment(go.PathSegment.Move,0,et/2)).add(new go.PathSegment(go.PathSegment.Line,nt,et/2)).add(new go.PathSegment(go.PathSegment.Move,nt/2,0)).add(new go.PathSegment(go.PathSegment.Line,nt/2,et)))}),go.Shape.defineFigureGenerator("CircleLine",function(Tt,nt,et){var ht=nt/2,lt=new go.Geometry().add(new go.PathFigure(nt,nt/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ht,ht,ht,ht).close()));return lt.spot1=Se,lt.spot2=Ot,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Line1",function(Tt,nt,et){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=0,ht.endX=nt,ht.endY=et,ht}),go.Shape.defineFigureGenerator("Line2",function(Tt,nt,et){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=nt,ht.startY=0,ht.endX=0,ht.endY=et,ht}),go.Shape.defineFigureGenerator("Curve1",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,qt*nt,0,nt,(1-qt)*et)))}),go.Shape.defineFigureGenerator("Curve2",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,0,qt*et,(1-qt)*nt,et)))}),go.Shape.defineFigureGenerator("Curve3",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,qt*et,qt*nt,et)))}),go.Shape.defineFigureGenerator("Curve4",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,(1-qt)*nt,0,0,(1-qt)*et)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et).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(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=.1:ht<-1?ht=-1:ht>1&&(ht=1);var lt=Math.abs(ht)*nt;if(ht===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ht>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())),lt<nt/2&&pt.setSpots(lt/nt,0,(nt-lt)/nt,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(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=10:ht<-nt?ht=-nt:ht>nt&&(ht=nt);var lt=Math.abs(ht);if(ht===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ht>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())),lt<nt/2&&pt.setSpots(lt/nt,0,(nt-lt)/nt,1),pt}}),go.Shape.setFigureParameter("Trapezoid1",0,new xn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=.2:ht<.5?ht=-.5:ht>.5&&(ht=.5);var lt=Math.abs(ht)*nt;if(ht===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ht>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())),lt<nt/2&&pt.setSpots(lt/nt,0,(nt-lt)/nt,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(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=20:ht<-nt?ht=-nt/2:ht>nt&&(ht=nt/2);var lt=Math.abs(ht);if(ht===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ht>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())),lt<nt/2&&pt.setSpots(lt/nt,0,(nt-lt)/nt,1),pt}}),go.Shape.setFigureParameter("ManualOperation",0,new xn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=10:ht<-nt?ht=-nt/2:ht>nt&&(ht=nt/2);var lt=Math.abs(ht);if(ht===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ht>0?pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,lt,et).close())):pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,nt-lt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())),lt<nt/2&&pt.setSpots(lt/nt,0,(nt-lt)/nt,1),pt}});var Ee=[];function me(){var Tt=Ee.pop();return Tt===void 0?[]:Tt}function ve(Tt){Tt.length=0,Ee.push(Tt)}function Ze(Tt){for(var nt=me(),et=.5,ht=.5,lt=Math.PI*1.5,pt=0,vt=0;vt<Tt;vt++)pt=2*Math.PI/Tt*vt+lt,nt[vt]=new go.Point(ht+et*Math.cos(pt),ht+et*Math.sin(pt));return nt.push(nt[0]),nt}function Ce(Tt){var nt=nn(Tt),et=me();et[0]=nt[0];for(var ht=1,lt=1;ht<nt.length;ht+=2,lt+=3)et[lt]=nt[ht],et[lt+1]=nt[ht],et[lt+2]=nt[ht+1];return ve(nt),et}function nn(Tt){for(var nt=Ze(Tt),et=me(),ht=Math.floor(nt.length/2),lt=nt.length-1,pt=Tt%2===0?2:1,vt=0;vt<lt;vt++){var St=nt[vt],Lt=nt[vt+1],It=nt[(ht+vt-1)%lt],Yt=nt[(ht+vt+pt)%lt];et[vt*2]=St,et[vt*2+1]=ze(St.x,St.y,It.x,It.y,Lt.x,Lt.y,Yt.x,Yt.y,new go.Point)}return et[et.length]=et[0],ve(nt),et}go.Shape.defineFigureGenerator("Pentagon",function(Tt,nt,et){var ht=Ze(5),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<5;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.2,.22),lt.spot2=new go.Spot(.8,.9),lt}),go.Shape.defineFigureGenerator("Hexagon",function(Tt,nt,et){var ht=Ze(6),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<6;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.07,.25),lt.spot2=new go.Spot(.93,.75),lt}),go.Shape.defineFigureGenerator("Heptagon",function(Tt,nt,et){var ht=Ze(7),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<7;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.2,.15),lt.spot2=new go.Spot(.8,.85),lt}),go.Shape.defineFigureGenerator("Octagon",function(Tt,nt,et){var ht=Ze(8),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<8;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.85),lt}),go.Shape.defineFigureGenerator("Nonagon",function(Tt,nt,et){var ht=Ze(9),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<9;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.17,.13),lt.spot2=new go.Spot(.82,.82),lt}),go.Shape.defineFigureGenerator("Decagon",function(Tt,nt,et){var ht=Ze(10),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<10;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("Dodecagon",function(Tt,nt,et){var ht=Ze(12),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<12;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("FivePointedStar",function(Tt,nt,et){var ht=nn(5),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<10;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.266,.333),lt.spot2=new go.Spot(.733,.733),lt}),go.Shape.defineFigureGenerator("SixPointedStar",function(Tt,nt,et){var ht=nn(6),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<12;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.17,.25),lt.spot2=new go.Spot(.83,.75),lt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Tt,nt,et){var ht=nn(7),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<14;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("EightPointedStar",function(Tt,nt,et){var ht=nn(8),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<16;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("NinePointedStar",function(Tt,nt,et){var ht=nn(9),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<18;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("TenPointedStar",function(Tt,nt,et){var ht=nn(10),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<20;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*nt,ht[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),ve(ht),lt.spot1=new go.Spot(.281,.261),lt.spot2=new go.Spot(.723,.748),lt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Tt,nt,et){var ht=Ce(5),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<ht.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*nt,ht[vt+2].y*et,ht[vt].x*nt,ht[vt].y*et,ht[vt+1].x*nt,ht[vt+1].y*et));return pt.segments.last().close(),ve(ht),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Tt,nt,et){var ht=Ce(6),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<ht.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*nt,ht[vt+2].y*et,ht[vt].x*nt,ht[vt].y*et,ht[vt+1].x*nt,ht[vt+1].y*et));return pt.segments.last().close(),ve(ht),lt.spot1=new go.Spot(.17,.222),lt.spot2=new go.Spot(.833,.777),lt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Tt,nt,et){var ht=Ce(7),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<ht.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*nt,ht[vt+2].y*et,ht[vt].x*nt,ht[vt].y*et,ht[vt+1].x*nt,ht[vt+1].y*et));return pt.segments.last().close(),ve(ht),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Tt,nt,et){var ht=Ce(8),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<ht.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*nt,ht[vt+2].y*et,ht[vt].x*nt,ht[vt].y*et,ht[vt+1].x*nt,ht[vt+1].y*et));return pt.segments.last().close(),ve(ht),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Tt,nt,et){var ht=Ce(9),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<ht.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*nt,ht[vt+2].y*et,ht[vt].x*nt,ht[vt].y*et,ht[vt+1].x*nt,ht[vt+1].y*et));return pt.segments.last().close(),ve(ht),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Tt,nt,et){var ht=Ce(10),lt=new go.Geometry,pt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(pt);for(var vt=1;vt<ht.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*nt,ht[vt+2].y*et,ht[vt].x*nt,ht[vt].y*et,ht[vt+1].x*nt,ht[vt+1].y*et));return pt.segments.last().close(),ve(ht),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(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN,lt=Tt?Tt.parameter2:NaN;isNaN(ht)&&(ht=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,nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht<nt/2&&lt<et/2&&(vt.add(new go.PathSegment(go.PathSegment.Move,ht,lt)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,et-lt)),vt.add(new go.PathSegment(go.PathSegment.Line,nt-ht,et-lt)),vt.add(new go.PathSegment(go.PathSegment.Line,nt-ht,lt).close())),pt.setSpots(0,0,1,1,ht,lt,-ht,-lt),pt}),go.Shape.setFigureParameter("Ring",0,new xn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=8);var lt=nt/2,pt=new go.Geometry,vt=new go.PathFigure(nt,nt/2,!0);pt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Arc,0,360,lt,lt,lt,lt).close());var St=Math.max(lt-ht,0);return St>0&&(vt.add(new go.PathSegment(go.PathSegment.Move,nt/2+St,nt/2)),vt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,lt,lt,St,St).close())),pt.spot1=Se,pt.spot2=Ot,pt.defaultStretch=go.GraphObject.Uniform,pt}),go.Shape.defineFigureGenerator("Cloud",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(.08034461*nt,.1944299*et,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*nt,.05349299*et,-.09239631*nt,.07836421*et,.1406031*nt,-.0542823*et)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*nt,.074219*et,.2450511*nt,-.00697547*et,.3776197*nt,-.01112067*et)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*nt,.07004196*et,.4539471*nt,0,.6066018*nt,-.02526587*et)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*nt,.08370865*et,.6914277*nt,-.01904177*et,.8921095*nt,-.01220843*et)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*nt,.3194596*et,1.036446*nt,.04105738*et,1.020377*nt,.3022052*et)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*nt,.562044*et,1.04448*nt,.360238*et,.992256*nt,.5219009*et)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*nt,.8217117*et,1.032337*nt,.5771781*et,1.018411*nt,.8120651*et)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*nt,.9156953*et,1.028411*nt,.9571472*et,.8556702*nt,1.052487*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*nt,.9310455*et,.7431877*nt,1.009325*et,.5624123*nt,1.021761*et)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*nt,.9344623*et,.4820677*nt,1.031761*et,.3030112*nt,1.002796*et)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*nt,.870098*et,.2329994*nt,1.01518*et,.03213784*nt,1.01518*et)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*nt,.6545475*et,-.02812061*nt,.9032597*et,-.01205169*nt,.6835638*et)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*nt,.4265613*et,-.01812061*nt,.6089503*et,-.00606892*nt,.4555777*et)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*nt,.1944299*et,-.01606892*nt,.3892545*et,-.01205169*nt,.1944299*et))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Tt,nt,et){var ht=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ht*nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,ht*et)).add(new go.PathSegment(go.PathSegment.Line,nt,(1-ht)*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,et)).add(new go.PathSegment(go.PathSegment.Line,ht*nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*et)).add(new go.PathSegment(go.PathSegment.Line,0,ht*et).close())).setSpots(ht/2,ht/2,1-ht/2,1-ht/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(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN,lt=Tt?Tt.parameter2:NaN;isNaN(ht)&&(ht=0),isNaN(lt)&&(lt=315);var pt=ht%360;pt<0&&(pt+=360);var vt=lt%360,St=Math.min(nt,et)/2;return new go.Geometry().add(new go.PathFigure(St,St).add(new go.PathSegment(go.PathSegment.Arc,pt,vt,St,St,St,St).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Tt,nt,et){var ht=qt/Math.SQRT2*.5,lt=Math.SQRT2/2,pt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(nt,et,!0).add(new go.PathSegment(go.PathSegment.Bezier,lt*nt,pt*et,nt,(1-ht)*et,(lt+ht)*nt,(pt+ht)*et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close()))}),go.Shape.setFigureParameter("ThickCross",0,new xn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30);var lt=Math.min(ht,nt)/2,pt=nt/2,vt=et/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,nt,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,et)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,et)).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(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var lt=Math.min(ht,nt)/2,pt=nt/2,vt=et/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,nt,vt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,vt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,et)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,et)).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(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;if((isNaN(ht)||ht<0)&&(ht=30),nt===0||et===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=nt,lt.endY=et,lt}else{var pt=nt/2,vt=et/2,St=Math.atan2(et,nt),Lt=ht-Math.min(Math.cos(St)*ht/2,pt),It=ht-Math.min(Math.sin(St)*ht/2,vt),lt=new go.Geometry,Yt=new go.PathFigure(Lt,0,!0);return lt.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Line,pt,.2*et)),Yt.add(new go.PathSegment(go.PathSegment.Line,nt-Lt,0)),Yt.add(new go.PathSegment(go.PathSegment.Line,nt,It)),Yt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,vt)),Yt.add(new go.PathSegment(go.PathSegment.Line,nt,et-It)),Yt.add(new go.PathSegment(go.PathSegment.Line,nt-Lt,et)),Yt.add(new go.PathSegment(go.PathSegment.Line,pt,.8*et)),Yt.add(new go.PathSegment(go.PathSegment.Line,Lt,et)),Yt.add(new go.PathSegment(go.PathSegment.Line,0,et-It)),Yt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,vt)),Yt.add(new go.PathSegment(go.PathSegment.Line,0,It).close()),lt}}),go.Shape.setFigureParameter("ThinX",0,new xn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var lt=new go.Geometry,pt=new go.PathFigure(.1*nt,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.1*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.9*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et).close()),lt}),go.Shape.setFigureParameter("SquareIBeam",0,new xn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.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,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,ht*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*nt,ht*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*nt,(1-ht)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-ht)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*nt,(1-ht)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*nt,ht*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ht*et).close()),lt}),go.Shape.setFigureParameter("RoundedIBeam",0,new xn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.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,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et,Math.abs(1-ht)*nt,.25*et,Math.abs(1-ht)*nt,.75*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*nt,.75*et,ht*nt,.25*et).close()),lt}),go.Shape.defineFigureGenerator("HalfEllipse",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,qt*nt,0,nt,(.5-qt/2)*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,(.5+qt/2)*et,qt*nt,et).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,0,nt,et)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*nt,.75*et,.5*nt,.25*et).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,et,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*et,.1*nt,.8*et,0,.5*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,0,0,.45*nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,nt,.3*et,.55*nt,0,nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,.5*et,.9*nt,.8*et).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*nt,.01*et)).add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.6*nt,.2*et,nt,.25*et)).add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.7*et,nt,.8*et,.6*nt,.8*et)).add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,.5*nt,.75*et,.55*nt,.95*et)).add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)).add(new go.PathSegment(go.PathSegment.Bezier,.45*nt,.7*et,.45*nt,.95*et,.5*nt,.75*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.4*nt,.8*et,0,.8*et)).add(new go.PathSegment(go.PathSegment.Bezier,.49*nt,.01*et,0,.25*et,.4*nt,.2*et).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.4*nt,.6*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.15*nt,et,.5*nt,.75*et,.45*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*nt,.6*et,.55*nt,.95*et,.5*nt,.75*et));var pt=.2,vt=.3,St=0,Lt=pt*qt;return lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*nt,(.5+pt+St)*et,(.5-pt+vt)*nt,(.5+Lt+St)*et,(.5-Lt+vt)*nt,(.5+pt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+vt)*nt,(.5+St)*et,(.5+Lt+vt)*nt,(.5+pt+St)*et,(.5+pt+vt)*nt,(.5+Lt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*nt,(.5-pt+St)*et,(1-.5+pt+vt)*nt,(.5-Lt+St)*et,(.5+Lt+vt)*nt,(.5-pt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.65*nt,.36771243*et,(.5-Lt+vt)*nt,(.5-pt+St)*et,(.5-pt+vt+.05)*nt,(.5-Lt+St-.02)*et)),pt=.2,vt=0,St=-.3,Lt=pt*qt,lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+vt)*nt,(.5+St)*et,(.5+Lt+vt)*nt,(.5+pt+St)*et,(.5+pt+vt)*nt,(.5+Lt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*nt,(.5-pt+St)*et,(1-.5+pt+vt)*nt,(.5-Lt+St)*et,(.5+Lt+vt)*nt,(.5-pt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+vt)*nt,(.5+St)*et,(.5-Lt+vt)*nt,(.5-pt+St)*et,(.5-pt+vt)*nt,(.5-Lt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Lt+vt)*nt,(.5+pt+St)*et,(.5-pt+vt)*nt,(.5+Lt+St)*et,(.5-Lt+vt)*nt,(.5+pt+St)*et)),pt=.2,vt=-.3,St=0,Lt=pt*qt,lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*nt,(.5-pt+St)*et,(1-.5+pt+vt-.05)*nt,(.5-Lt+St-.02)*et,(.5+Lt+vt)*nt,(.5-pt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+vt)*nt,(.5+St)*et,(.5-Lt+vt)*nt,(.5-pt+St)*et,(.5-pt+vt)*nt,(.5-Lt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*nt,(.5+pt+St)*et,(.5-pt+vt)*nt,(.5+Lt+St)*et,(.5-Lt+vt)*nt,(.5+pt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.6*et,(.5+Lt+vt)*nt,(.5+pt+St)*et,(.5+pt+vt)*nt,(.5+Lt+St)*et).close()),ht.setSpots(.06,.33,.93,.68),ht}),go.Shape.defineFigureGenerator("YinYang",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*.5,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,nt*.5,nt*.5,nt*.5,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,nt*.5,nt*.75,nt*.25,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,nt*.5,nt*.25,nt*.25,nt*.25));var pt=.1,vt=.5,St=.25;return lt.add(new go.PathSegment(go.PathSegment.Move,(vt+pt)*nt,St*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,nt*vt,et*St,pt*nt,pt*nt).close()),lt=new go.PathFigure(nt*.5,0,!1),ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,nt*.5,nt*.5,nt*.5,nt*.5)),St=.75,lt=new go.PathFigure((vt+pt)*nt,St*et,!0),ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,0,360,nt*vt,et*St,pt*nt,pt*nt).close()),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Peace",function(Tt,nt,et){var ht=.8535533905932737,lt=.5*nt,pt=.5*et;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,et)).add(new go.PathSegment(go.PathSegment.Move,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,ht*et)).add(new go.PathSegment(go.PathSegment.Move,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,ht*nt,ht*et)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.5,pt=.5,vt=.5,St=.5,Lt=new go.PathFigure(vt*nt,(St-pt)*et);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,St*et,(vt-lt)*nt,(St-pt)*et,(vt-pt)*nt,(St-lt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+pt)*et,(vt-pt)*nt,(St+lt)*et,(vt-lt)*nt,(St+pt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,St*et,(vt+lt)*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St-pt)*et,(vt+pt)*nt,(St-lt)*et,(vt+lt)*nt,(St-pt)*et)),pt=.4,lt=qt*.4;var It=kt(),Yt=kt(),ie=kt(),re=kt();Ye(vt,St-pt,vt+lt,St-pt,vt+pt,St-lt,vt+pt,St,.42,It,Yt,ie,re,re);var Qt=kt(),xe=kt(),he=kt();Ye(vt,St-pt,vt+lt,St-pt,vt+pt,St-lt,vt+pt,St,.58,re,re,he,Qt,xe);var Le=kt(),Qe=kt(),Fe=kt();Ye(vt,St+pt,vt-lt,St+pt,vt-pt,St+lt,vt-pt,St,.42,Le,Qe,Fe,re,re);var Gn=kt(),Jn=kt(),Ke=kt();return Ye(vt,St+pt,vt-lt,St+pt,vt-pt,St+lt,vt-pt,St,.58,re,re,Ke,Gn,Jn),Lt.add(new go.PathSegment(go.PathSegment.Move,Ke.x*nt,Ke.y*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,St*et,Gn.x*nt,Gn.y*et,Jn.x*nt,Jn.y*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St-pt)*et,(vt-pt)*nt,(St-lt)*et,(vt-lt)*nt,(St-pt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*nt,ie.y*et,It.x*nt,It.y*et,Yt.x*nt,Yt.y*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,Ke.x*nt,Ke.y*et).close()),Lt.add(new go.PathSegment(go.PathSegment.Move,Fe.x*nt,Fe.y*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,he.x*nt,he.y*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,St*et,Qt.x*nt,Qt.y*et,xe.x*nt,xe.y*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et,(vt+lt)*nt,(St+pt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,Fe.x*nt,Fe.y*et,Le.x*nt,Le.y*et,Qe.x*nt,Qe.y*et).close()),le(It),le(Yt),le(ie),le(re),le(Qt),le(xe),le(he),le(Le),le(Qe),le(Fe),le(Gn),le(Jn),le(Ke),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Fragile",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)).add(new go.PathSegment(go.PathSegment.Line,.2*nt,.15*et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.25*et)).add(new go.PathSegment(go.PathSegment.Line,.29*nt,.33*et)).add(new go.PathSegment(go.PathSegment.Line,.35*nt,.25*et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.15*et)).add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.5*et,nt,.25*et,.75*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.55*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.45*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.45*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.5*et,0,.25*et).close()))}),go.Shape.setFigureParameter("HourGlass",0,new xn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30),ht>nt&&(ht=nt);var lt=(nt-ht)/2,pt=lt+ht;return new go.Geometry().add(new go.PathFigure(pt,.5*et).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et)).add(new go.PathSegment(go.PathSegment.Line,lt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,nt,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,.55*et).add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.45*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.45*et)).add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.55*et).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.4,pt=.4,vt=.5,St=.5,Lt=kt(),It=kt(),Yt=kt(),ie=kt(),re=new go.PathFigure((vt-pt)*nt,St*et,!1);ht.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St-pt)*et,(vt-pt)*nt,(St-lt)*et,(vt-lt)*nt,(St-pt)*et)),Ye(vt,St-pt,vt+lt,St-pt,vt+pt,St-lt,vt+pt,St,.44,Yt,ie,It,Lt,Lt),re.add(new go.PathSegment(go.PathSegment.Bezier,It.x*nt,It.y*et,Yt.x*nt,Yt.y*et,ie.x*nt,ie.y*et));var Qt=Dt(It.x,It.y);Ye(vt,St-pt,vt+lt,St-pt,vt+pt,St-lt,vt+pt,St,.56,Lt,Lt,It,Yt,ie);var xe=Dt(It.x,It.y);re.add(new go.PathSegment(go.PathSegment.Line,(Qt.x*.1+.95*.9)*nt,Qt.y*.1*et)),re.add(new go.PathSegment(go.PathSegment.Line,.85*nt,Qt.y*.1*et)),re.add(new go.PathSegment(go.PathSegment.Line,.85*nt,0)),re.add(new go.PathSegment(go.PathSegment.Line,nt,0)),re.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),re.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*nt,.15*et)),re.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*nt,(xe.y*.1+.05*.9)*et)),re.add(new go.PathSegment(go.PathSegment.Line,xe.x*nt,xe.y*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,St*et,Yt.x*nt,Yt.y*et,ie.x*nt,ie.y*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et,(vt+lt)*nt,(St+pt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,St*et,(vt-lt)*nt,(St+pt)*et,(vt-pt)*nt,(St+lt)*et)),pt=.35,lt=qt*.35;var he=new go.PathFigure(vt*nt,(St-pt)*et,!1);ht.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,St*et,(vt-lt)*nt,(St-pt)*et,(vt-pt)*nt,(St-lt)*et)),he.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+pt)*et,(vt-pt)*nt,(St+lt)*et,(vt-lt)*nt,(St+pt)*et)),he.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,St*et,(vt+lt)*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et)),he.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St-pt)*et,(vt+pt)*nt,(St-lt)*et,(vt+lt)*nt,(St-pt)*et));var Le=new go.PathFigure((vt-pt)*nt,St*et,!1);return ht.add(Le),le(Lt),le(It),le(Yt),le(ie),le(Qt),le(xe),ht.spot1=new go.Spot(.202,.257),ht.spot2=new go.Spot(.792,.739),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("GenderFemale",function(Tt,nt,et){var ht=new go.Geometry,lt=.375,pt=0,vt=-.125,St=lt*qt,Lt=new go.PathFigure((.525+pt)*nt,(.5+lt+vt)*et,!1);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+pt)*nt,(.5+vt)*et,(.5+St+pt)*nt,(.5+lt+vt)*et,(.5+lt+pt)*nt,(.5+St+vt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*nt,(.5-lt+vt)*et,(1-.5+lt+pt)*nt,(.5-St+vt)*et,(.5+St+pt)*nt,(.5-lt+vt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*nt,(.5+vt)*et,(.5-St+pt)*nt,(.5-lt+vt)*et,(.5-lt+pt)*nt,(.5-St+vt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+pt)*nt,(.5+lt+vt)*et,(.5-lt+pt)*nt,(.5+St+vt)*et,(.5-St+pt)*nt,(.5+lt+vt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.85*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.85*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.9*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.9*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.9*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.9*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.85*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et).close()),lt=.325,pt=0,vt=-.125,St=lt*qt;var Lt=new go.PathFigure((1-.5+lt+pt)*nt,(.5+vt)*et,!1);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*nt,(.5+lt+vt)*et,(.5+lt+pt)*nt,(.5+St+vt)*et,(.5+St+pt)*nt,(.5+lt+vt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*nt,(.5+vt)*et,(.5-St+pt)*nt,(.5+lt+vt)*et,(.5-lt+pt)*nt,(.5+St+vt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*nt,(.5-lt+vt)*et,(.5-lt+pt)*nt,(.5-St+vt)*et,(.5-St+pt)*nt,(.5-lt+vt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+pt)*nt,(.5+vt)*et,(.5+St+pt)*nt,(.5-lt+vt)*et,(1-.5+lt+pt)*nt,(.5-St+vt)*et));var Lt=new go.PathFigure((.525+pt)*nt,(.5+lt+vt)*et,!1);return ht.add(Lt),ht.spot1=new go.Spot(.232,.136),ht.spot2=new go.Spot(.682,.611),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicImplies",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Move,ht*nt,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,ht*nt,et))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,nt,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Tt,nt,et){var ht=new go.Geometry().add(new go.PathFigure(.5*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*nt,.5*et,.5*nt,.5*et)));return ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicTruth",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Move,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,.25*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.75*nt,.5*et))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Move,0,et)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Tt,nt,et){var ht=.5;return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,0,ht*et)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ht*nt,ht*et,ht*nt,ht*et)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Tt,nt,et){var ht=.5;return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,ht*et)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ht*nt,ht*et,ht*nt,ht*et)).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(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.3);var lt=Tt?Tt.parameter2:NaN;isNaN(lt)&&(lt=.3);var pt=(1-ht)*nt,vt=(.5-lt/2)*et,St=(.5+lt/2)*et,Lt=new go.Geometry,It=new go.PathFigure(0,vt,!0);Lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,pt,vt)),It.add(new go.PathSegment(go.PathSegment.Line,pt,0)),It.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),It.add(new go.PathSegment(go.PathSegment.Line,pt,et)),It.add(new go.PathSegment(go.PathSegment.Line,pt,St)),It.add(new go.PathSegment(go.PathSegment.Line,0,St).close()),Lt.spot1=new go.Spot(0,vt/et);var Yt=ze(0,St/et,1,St/et,pt/nt,1,1,.5,kt());return Lt.spot2=new go.Spot(Yt.x,Yt.y),le(Yt),Lt}),go.Shape.setFigureParameter("Arrow2",0,new xn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new xn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=30),ht>nt&&(ht=nt);var lt=Tt?Tt.parameter2:NaN;isNaN(lt)&&(lt=30),lt=Math.min(lt,et/2);var pt=nt-ht,vt=(et-lt)/2,St=vt+lt,Lt=new go.Geometry,It=new go.PathFigure(0,vt,!0);Lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,pt,vt)),It.add(new go.PathSegment(go.PathSegment.Line,pt,0)),It.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),It.add(new go.PathSegment(go.PathSegment.Line,pt,et)),It.add(new go.PathSegment(go.PathSegment.Line,pt,St)),It.add(new go.PathSegment(go.PathSegment.Line,0,St).close()),Lt.spot1=new go.Spot(0,vt/et);var Yt=ze(0,St/et,1,St/et,pt/nt,1,1,.5,kt());return Lt.spot2=new go.Spot(Yt.x,Yt.y),le(Yt),Lt}),go.Shape.defineFigureGenerator("Chevron",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et).close()),ht}),go.Shape.defineFigureGenerator("DoubleArrow",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.214*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,1*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.786*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,1*et).close()),ht}),go.Shape.setFigureParameter("DoubleEndArrow",0,new xn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.3);var lt=(.5-ht/2)*et,pt=(.5+ht/2)*et,vt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);vt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,pt)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close());var Lt=ze(0,.5,.3,0,0,lt/et,.1,lt/et,kt());return vt.spot1=new go.Spot(Lt.x,Lt.y),Lt=ze(.7,1,1,.5,0,pt/et,1,pt/et,Lt),vt.spot2=new go.Spot(Lt.x,Lt.y),le(Lt),vt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new xn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new xn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=40);var lt=Tt?Tt.parameter2:NaN;isNaN(lt)&&(lt=100);var pt=(et-ht)/2,vt=pt+ht,St=(et-lt)/2,Lt=St+lt;(ht>et||lt>et)&&(lt>ht?(ht=ht*et/lt,pt=(et-ht)/2,vt=pt+ht,St=0,Lt=et):(pt=0,vt=et,St=0,Lt=et));var It=new go.Geometry,Yt=new go.PathFigure(nt,.5*et,!0);It.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,Lt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,vt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,vt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,Lt)),Yt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),Yt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,St)),Yt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,pt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,St).close());var ie=ze(0,.5,.3,St/et,0,pt/et,1,pt/et,kt());return It.spot1=new go.Spot(ie.x,ie.y),ie=ze(.7,Lt/et,1,.5,0,vt/et,1,vt/et,ie),It.spot2=new go.Spot(ie.x,ie.y),le(ie),It}),go.Shape.setFigureParameter("IBeamArrow",0,new xn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.3);var lt=(.5-ht/2)*et,pt=(.5+ht/2)*et,vt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);vt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,pt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,0)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),vt.spot1=new go.Spot(0,lt/et);var Lt=ze(.7,1,1,.5,0,pt/et,1,pt/et,kt());return vt.spot2=new go.Spot(Lt.x,Lt.y),le(Lt),vt}),go.Shape.setFigureParameter("IBeamArrow2",0,new xn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new xn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=40);var lt=Tt?Tt.parameter2:NaN;isNaN(lt)&&(lt=100);var pt=(et-ht)/2,vt=pt+ht,St=(et-lt)/2,Lt=St+lt;(ht>et||lt>et)&&(lt>ht?(ht=ht*et/lt,pt=(et-ht)/2,vt=pt+ht,St=0,Lt=et):(pt=0,vt=et,St=0,Lt=et));var It=new go.Geometry,Yt=new go.PathFigure(nt,.5*et,!0);It.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,Lt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,vt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,vt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,Lt)),Yt.add(new go.PathSegment(go.PathSegment.Line,0,Lt)),Yt.add(new go.PathSegment(go.PathSegment.Line,0,St)),Yt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,St)),Yt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,pt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,St).close()),It.spot1=new go.Spot(0,pt/et);var ie=ze(.7,Lt/et,1,.5,0,vt/et,1,vt/et,kt());return It.spot2=new go.Spot(ie.x,ie.y),le(ie),It}),go.Shape.setFigureParameter("Pointer",0,new xn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.1);var lt=new go.Geometry,pt=new go.PathFigure(nt,.5*et,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,ht*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),lt.spot1=new go.Spot(ht,.35);var vt=ze(.2,.65,1,.65,0,1,1,.5,kt());return lt.spot2=new go.Spot(vt.x,vt.y),le(vt),lt}),go.Shape.setFigureParameter("RoundedPointer",0,new xn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.3);var lt=new go.Geometry,pt=new go.PathFigure(nt,.5*et,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*nt,.75*et,ht*nt,.25*et).close()),lt.spot1=new go.Spot(ht,.35);var vt=ze(0,.65,1,.65,0,1,1,.5,kt());return lt.spot2=new go.Spot(vt.x,vt.y),le(vt),lt}),go.Shape.setFigureParameter("SplitEndArrow",0,new xn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.4);var lt=(.5-ht/2)*et,pt=(.5+ht/2)*et,vt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);vt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),St.add(new go.PathSegment(go.PathSegment.Line,0,pt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,0,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),vt.spot1=new go.Spot(.2,.3);var Lt=ze(.7,1,1,.5,0,pt/et,1,pt/et,kt());return vt.spot2=new go.Spot(Lt.x,Lt.y),le(Lt),vt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new xn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=50);var lt=(et-ht)/2,pt=lt+ht;ht>et&&(lt=0,pt=et);var vt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);vt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),St.add(new go.PathSegment(go.PathSegment.Line,0,pt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,0,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),vt.spot1=new go.Spot(.2,lt/et);var Lt=ze(.7,1,1,.5,0,pt/et,1,pt/et,kt());return vt.spot2=new go.Spot(Lt.x,Lt.y),le(Lt),vt}),go.Shape.setFigureParameter("SquareArrow",0,new xn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.7);var lt=new go.Geometry,pt=new go.PathFigure(nt,.5*et,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,ht*nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,ht*nt,0).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(ht,1),lt}),go.Shape.defineFigureGenerator("Cone1",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.5,pt=qt*.1,vt=new go.PathFigure(0,.9*et,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+pt)*et,(.5+lt)*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-lt)*nt,et,0,(.9+pt)*et).close()),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.97),ht}),go.Shape.defineFigureGenerator("Cone2",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.9*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.9*et,(1-.85/.9)*nt,et,.85/.9*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.9*et).close());var pt=new go.PathFigure(0,.9*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.9*et,(1-.85/.9)*nt,.8*et,.85/.9*nt,.8*et)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.82),ht}),go.Shape.defineFigureGenerator("Cube1",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et).close());var pt=new go.PathFigure(.5*nt,et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.15*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.5,.85),ht}),go.Shape.defineFigureGenerator("Cube2",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.3*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0).close());var pt=new go.PathFigure(0,.3*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Move,.7*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.7,1),ht}),go.Shape.defineFigureGenerator("Cylinder1",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var lt=new go.Geometry,pt=qt*.5,vt=new go.PathFigure(0,ht,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,qt*ht,(.5-pt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,1*nt,ht,(.5+pt)*nt,0,1*nt,qt*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,et-ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,1*et,1*nt,et-qt*ht,(.5+pt)*nt,1*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ht,(.5-pt)*nt,1*et,0,et-qt*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,0,ht));var St=new go.PathFigure(nt,ht,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,2*ht,1*nt,2*ht-qt*ht,(.5+pt)*nt,2*ht)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,ht,(.5-pt)*nt,2*ht,0,2*ht-qt*ht)),lt.spot1=new go.Spot(0,0,0,2*ht),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder2",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var lt=new go.Geometry,pt=qt*.5,vt=new go.PathFigure(0,et-ht,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,qt*ht,(.5-pt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,ht,(.5+pt)*nt,0,nt,qt*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,et-ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,et-qt*ht,(.5+pt)*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ht,(.5-pt)*nt,et,0,et-qt*ht));var St=new go.PathFigure(0,et-ht,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et-2*ht,0,et-ht-qt*ht,(.5-pt)*nt,et-2*ht)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt,et-ht,(.5+pt)*nt,et-2*ht,nt,et-ht-qt*ht)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,0,-2*ht),lt}),go.Shape.defineFigureGenerator("Cylinder3",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var lt=new go.Geometry,pt=qt*.5,vt=new go.PathFigure(ht,0,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt-ht,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-qt*ht,0,nt,(.5-pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,et,nt,(.5+pt)*et,nt-qt*ht,et)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,qt*ht,et,0,(.5+pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-pt)*et,qt*ht,0));var St=new go.PathFigure(ht,0,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,2*ht,.5*et,ht+qt*ht,0,2*ht,(.5-pt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,ht,et,2*ht,(.5+pt)*et,ht+qt*ht,et)),lt.spot1=new go.Spot(0,0,2*ht,0),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder4",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var lt=new go.Geometry,pt=qt*.5,vt=new go.PathFigure(nt-ht,0,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-qt*ht,0,nt,(.5-pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,et,nt,(.5+pt)*et,nt-qt*ht,et)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,qt*ht,et,0,(.5+pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-pt)*et,qt*ht,0)),vt.add(new go.PathSegment(go.PathSegment.Line,nt-ht,0));var St=new go.PathFigure(nt-ht,0,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,nt-2*ht,.5*et,nt-ht-qt*ht,0,nt-2*ht,(.5-pt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,et,nt-2*ht,(.5+pt)*et,nt-ht-qt*ht,et)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,-2*ht,0),lt}),go.Shape.defineFigureGenerator("Prism1",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.25*nt,.25*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var pt=new go.PathFigure(.25*nt,.25*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ht.spot1=new go.Spot(.408,.172),ht.spot2=new go.Spot(.833,.662),ht}),go.Shape.defineFigureGenerator("Prism2",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.25*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var pt=new go.PathFigure(0,et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),pt.add(new go.PathSegment(go.PathSegment.Move,0,.25*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("Pyramid1",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*et).close());var pt=new go.PathFigure(.5*nt,0,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Pyramid2",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et).close());var pt=new go.PathFigure(.5*nt,0,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.7*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.7*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Actor",function(Tt,nt,et){var ht=new go.Geometry,lt=.2,pt=.1,vt=qt*lt,St=qt*pt,Lt=.5,It=.1,Yt=new go.PathFigure(Lt*nt,(It+pt)*et,!0);ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-lt)*nt,It*et,(Lt-vt)*nt,(It+pt)*et,(Lt-lt)*nt,(It+St)*et)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt,(It-pt)*et,(Lt-lt)*nt,(It-St)*et,(Lt-vt)*nt,(It-pt)*et)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+lt)*nt,It*et,(Lt+vt)*nt,(It-pt)*et,(Lt+lt)*nt,(It-St)*et)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt,(It+pt)*et,(Lt+lt)*nt,(It+St)*et,(Lt+vt)*nt,(It+pt)*et));var ie=.05,re=qt*ie;Lt=.05,It=.25;var Qt=new go.PathFigure(.5*nt,.2*et,!0);return ht.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.2*et)),Lt=.95,It=.25,Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+ie)*nt,It*et,(Lt+re)*nt,(It-ie)*et,(Lt+ie)*nt,(It-re)*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.35*et)),ie=.025,re=qt*ie,Lt=.825,It=.35,Qt.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt,(It-ie)*et,(Lt+ie)*nt,(It-re)*et,(Lt+re)*nt,(It-ie)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-ie)*nt,It*et,(Lt-re)*nt,(It-ie)*et,(Lt-ie)*nt,(It-re)*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et)),ie=.05,re=qt*ie,Lt=.5,It=.7,Qt.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt,(It-ie)*et,(Lt+ie)*nt,(It-re)*et,(Lt+re)*nt,(It-ie)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-ie)*nt,It*et,(Lt-re)*nt,(It-ie)*et,(Lt-ie)*nt,(It-re)*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.35*et)),ie=.025,re=qt*ie,Lt=.175,It=.35,Qt.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt,(It-ie)*et,(Lt+ie)*nt,(It-re)*et,(Lt+re)*nt,(It-ie)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-ie)*nt,It*et,(Lt-re)*nt,(It-ie)*et,(Lt-ie)*nt,(It-re)*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),ie=.05,re=qt*ie,Lt=.05,It=.25,Qt.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt,(It-ie)*et,(Lt-ie)*nt,(It-re)*et,(Lt-re)*nt,(It-ie)*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.2*et)),ht.spot1=new go.Spot(.2,.2),ht.spot2=new go.Spot(.8,.65),ht}),go.Shape.setFigureParameter("Card",0,new xn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.2);var lt=new go.Geometry,pt=new go.PathFigure(nt,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ht*et)),pt.add(new go.PathSegment(go.PathSegment.Line,ht*nt,0).close()),lt.spot1=new go.Spot(0,ht),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Collate",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,.5*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et));var pt=new go.PathFigure(.5*nt,.5*et,!0);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,.25),ht}),go.Shape.defineFigureGenerator("CreateRequest",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var vt=new go.PathFigure(0,lt*et,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*et)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-lt)*et)),ht}),go.Shape.defineFigureGenerator("Database",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.5,pt=qt*.1,vt=new go.PathFigure(nt,.1*et,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+pt)*et,(.5+lt)*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-lt)*nt,et,0,(.9+pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,(.1-pt)*et,(.5-lt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,(.5+lt)*nt,0,nt,(.1-pt)*et));var St=new go.PathFigure(nt,.1*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+pt)*et,(.5+lt)*nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-lt)*nt,.2*et,0,(.1+pt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,nt,(.2+pt)*et,(.5+lt)*nt,.3*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-lt)*nt,.3*et,0,(.2+pt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,.3*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.4*et,nt,(.3+pt)*et,(.5+lt)*nt,.4*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*et,(.5-lt)*nt,.4*et,0,(.3+pt)*et)),ht.spot1=new go.Spot(0,.4),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("DataStorage",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,nt,0,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.9*et,.25*nt,.1*et).close()),ht.spot1=new go.Spot(.226,0),ht.spot2=new go.Spot(.81,1),ht}),go.Shape.defineFigureGenerator("DiskStorage",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.5,pt=qt*.1,vt=new go.PathFigure(nt,.1*et,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+pt)*et,(.5+lt)*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-lt)*nt,et,0,(.9+pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,(.1-pt)*et,(.5-lt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,(.5+lt)*nt,0,nt,(.1-pt)*et));var St=new go.PathFigure(nt,.1*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+pt)*et,(.5+lt)*nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-lt)*nt,.2*et,0,(.1+pt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,nt,(.2+pt)*et,(.5+lt)*nt,.3*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-lt)*nt,.3*et,0,(.2+pt)*et)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("Display",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.25*nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,nt,0,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close()),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("DividedEvent",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.15&&(lt=.15);var pt=qt*.2,vt=new go.PathFigure(0,.2*et,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,0,(.2-pt)*et,(.2-pt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.2*et,(.8+pt)*nt,0,nt,(.2-pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,et,nt,(.8+pt)*et,(.8+pt)*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*et,(.2-pt)*nt,et,0,(.8+pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et));var St=new go.PathFigure(0,lt*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),ht}),go.Shape.defineFigureGenerator("DividedProcess",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN;(isNaN(lt)||lt<.1)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var vt=new go.PathFigure(0,lt*et,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),ht}),go.Shape.defineFigureGenerator("Document",function(Tt,nt,et){var ht=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN;(isNaN(lt)||lt<.2)&&(lt=.2);var pt=new go.PathFigure(0,0,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var vt=new go.PathFigure(lt*nt,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,lt*et)),vt.add(new go.PathSegment(go.PathSegment.Move,nt,lt*et)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*et)),vt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-lt)*et)),ht}),go.Shape.defineFigureGenerator("ExternalProcess",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close());var pt=new go.PathFigure(.1*nt,.4*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.9*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.6*nt,.1*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.1*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,.9*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.9*et)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("File",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var pt=new go.PathFigure(.75*nt,0,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.25*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Interrupt",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt,.5*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et));var pt=new go.PathFigure(nt,.5*et,!1);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et));var vt=new go.PathFigure(nt,.5*et,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("InternalStorage",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN,pt=Tt?Tt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.1);var vt=new go.PathFigure(0,0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var St=new go.PathFigure(lt*nt,0,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),St.add(new go.PathSegment(go.PathSegment.Move,0,pt*et)),St.add(new go.PathSegment(go.PathSegment.Line,nt,pt*et)),ht}),go.Shape.defineFigureGenerator("Junction",function(Tt,nt,et){var ht=new go.Geometry,lt=1/Math.SQRT2,pt=(1-1/Math.SQRT2)/2,vt=qt*.5,St=.5,Lt=new go.PathFigure(nt,St*et,!0);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,et,nt,(St+vt)*et,(St+vt)*nt,et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,St*et,(St-vt)*nt,et,0,(St+vt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,0,0,(St-vt)*et,(St-vt)*nt,0)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,St*et,(St+vt)*nt,0,nt,(St-vt)*et));var It=new go.PathFigure((pt+lt)*nt,(pt+lt)*et,!1);return ht.add(It),It.add(new go.PathSegment(go.PathSegment.Line,pt*nt,pt*et)),It.add(new go.PathSegment(go.PathSegment.Move,pt*nt,(pt+lt)*et)),It.add(new go.PathSegment(go.PathSegment.Line,(pt+lt)*nt,pt*et)),ht}),go.Shape.defineFigureGenerator("LinedDocument",function(Tt,nt,et){var ht=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close());var pt=new go.PathFigure(.1*nt,0,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.75*et)),ht.spot1=new go.Spot(.1,0),ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("LoopLimit",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MagneticTape",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.5,pt=.5,vt=new go.PathFigure(.5*nt,et,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*et,(pt-lt)*nt,et,0,(pt+lt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*nt,0,0,(pt-lt)*et,(pt-lt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,pt*et,(pt+lt)*nt,0,nt,(pt-lt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+.1)*nt,.9*et,nt,(pt+lt)*et,(pt+lt)*nt,.9*et)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ht.spot1=new go.Spot(.15,.15),ht.spot2=new go.Spot(.85,.8),ht}),go.Shape.defineFigureGenerator("ManualInput",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MessageFromUser",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN;isNaN(lt)&&(lt=.7);var pt=new go.PathFigure(0,0,!0);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN;isNaN(lt)&&(lt=.25);var pt=new go.PathFigure(0,0,!0);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,lt*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,(1-lt)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht}),go.Shape.defineFigureGenerator("MicroformRecording",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("MultiDocument",function(Tt,nt,et){var ht=new go.Geometry;et=et/.8;var lt=new go.PathFigure(nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.44*et,.96*nt,.47*et,.93*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.54*et,.86*nt,.57*et,.83*nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.4*nt,.4*et,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0).close());var pt=new go.PathFigure(.1*nt,.2*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.54*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.1*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.1*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.44*et)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.8,.77),ht}),go.Shape.defineFigureGenerator("MultiProcess",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.1*nt,.1*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et).close());var pt=new go.PathFigure(.2*nt,.1*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.1*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.1*nt,.2*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.9*et)),ht.spot1=new go.Spot(0,.2),ht.spot2=new go.Spot(.8,1),ht}),go.Shape.defineFigureGenerator("OfflineStorage",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=1-lt,vt=new go.PathFigure(0,0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close());var St=new go.PathFigure(.5*lt*nt,lt*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,(1-.5*lt)*nt,lt*et)),ht}),go.Shape.defineFigureGenerator("OffPageConnector",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("Or",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.5,pt=.5,vt=new go.PathFigure(nt,pt*et,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*nt,et,nt,(pt+lt)*et,(pt+lt)*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*et,(pt-lt)*nt,et,0,(pt+lt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*nt,0,0,(pt-lt)*et,(pt-lt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,pt*et,(pt+lt)*nt,0,nt,(pt-lt)*et));var St=new go.PathFigure(nt,.5*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),St.add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),ht}),go.Shape.defineFigureGenerator("PaperTape",function(Tt,nt,et){var ht=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.3*et,.5*nt,.6*et,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close()),ht.spot1=new go.Spot(0,.49),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN,pt=Tt?Tt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.3);var vt=new go.PathFigure(0,0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*nt,.5*et)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN,pt=Tt?Tt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.3);var vt=new go.PathFigure(0,0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht}),go.Shape.defineFigureGenerator("Procedure",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var vt=new go.PathFigure((1-lt)*nt,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Move,lt*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),ht}),go.Shape.defineFigureGenerator("Process",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var vt=new go.PathFigure(lt*nt,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Sort",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close());var pt=new go.PathFigure(0,.5*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.5),ht}),go.Shape.defineFigureGenerator("Start",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN;isNaN(lt)&&(lt=.25);var pt=new go.PathFigure(lt*nt,0,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*nt,.5*et,.25*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*nt,.5*et,.25*nt,.5*et));var vt=new go.PathFigure(lt*nt,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*nt,et)),ht.spot1=new go.Spot(lt,0),ht.spot2=new go.Spot(1-lt,1),ht}),go.Shape.defineFigureGenerator("Terminator",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.25*nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*nt,.5*et,.25*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*nt,.5*et,.25*nt,.5*et)),ht.spot1=new go.Spot(.23,0),ht.spot2=new go.Spot(.77,1),ht}),go.Shape.defineFigureGenerator("TransmittalTape",function(Tt,nt,et){var ht=new go.Geometry,lt=Tt?Tt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,(1-lt)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*et).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("AndGate",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.5,pt=new go.PathFigure(0,0,!0);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(.5+lt)*nt,0,nt,(.5-lt)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.5+lt)*et,(.5+lt)*nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.55,1),ht}),go.Shape.defineFigureGenerator("Buffer",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Clock",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.5,pt=.5,vt=new go.PathFigure(nt,pt*et,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*nt,et,nt,(pt+lt)*et,(pt+lt)*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*et,(pt-lt)*nt,et,0,(pt+lt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,pt*nt,0,0,(pt-lt)*et,(pt-lt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,pt*et,(pt+lt)*nt,0,nt,(pt-lt)*et));var St=new go.PathFigure(nt,pt*et,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,pt*et));var Lt=new go.PathFigure(.8*nt,.75*et,!1);return ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.25*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.25*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.75*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.75*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.25*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.25*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.75*et)),ht}),go.Shape.defineFigureGenerator("Ground",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.3*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et)),ht}),go.Shape.defineFigureGenerator("Inverter",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.1,pt=.1,vt=.9,St=.5,Lt=new go.PathFigure(.8*nt,.5*et,!0);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et));var It=new go.PathFigure((vt+pt)*nt,St*et,!0);return ht.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et,(vt+lt)*nt,(St+pt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,St*et,(vt-lt)*nt,(St+pt)*et,(vt-pt)*nt,(St+lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St-pt)*et,(vt-pt)*nt,(St-lt)*et,(vt-lt)*nt,(St-pt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,St*et,(vt+lt)*nt,(St-pt)*et,(vt+pt)*nt,(St-lt)*et)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.4,.75),ht}),go.Shape.defineFigureGenerator("NandGate",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.5,pt=qt*.4,vt=qt*.1,St=.1,Lt=.9,It=.5,Yt=new go.PathFigure(.8*nt,.5*et,!0);ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,.8*nt,(.5+pt)*et,(.4+lt)*nt,et)),Yt.add(new go.PathSegment(go.PathSegment.Line,0,et)),Yt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Yt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(.4+lt)*nt,0,.8*nt,(.5-pt)*et));var ie=new go.PathFigure((Lt+St)*nt,It*et,!0);return ht.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt,(It+St)*et,(Lt+St)*nt,(It+vt)*et,(Lt+vt)*nt,(It+St)*et)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-St)*nt,It*et,(Lt-vt)*nt,(It+St)*et,(Lt-St)*nt,(It+vt)*et)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt,(It-St)*et,(Lt-St)*nt,(It-vt)*et,(Lt-vt)*nt,(It-St)*et)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+St)*nt,It*et,(Lt+vt)*nt,(It-St)*et,(Lt+St)*nt,(It-vt)*et)),ht.spot1=new go.Spot(0,.05),ht.spot2=new go.Spot(.55,.95),ht}),go.Shape.defineFigureGenerator("NorGate",function(Tt,nt,et){var ht=new go.Geometry,lt=.5,pt=qt*lt,vt=0,St=.5,Lt=new go.PathFigure(.8*nt,.5*et,!0);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.7*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(vt+pt)*nt,(St-lt)*et,.7*nt,(St-pt)*et)),lt=.1,pt=qt*.1,vt=.9,St=.5;var It=new go.PathFigure((vt-lt)*nt,St*et,!0);return ht.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St-lt)*et,(vt-lt)*nt,(St-pt)*et,(vt-pt)*nt,(St-lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*nt,St*et,(vt+pt)*nt,(St-lt)*et,(vt+lt)*nt,(St-pt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+lt)*et,(vt+lt)*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*nt,St*et,(vt-pt)*nt,(St+lt)*et,(vt-lt)*nt,(St+pt)*et)),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.6,.75),ht}),go.Shape.defineFigureGenerator("OrGate",function(Tt,nt,et){var ht=new go.Geometry,lt=.5,pt=qt*lt,vt=0,St=.5,Lt=new go.PathFigure(0,0,!0);return ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(vt+pt+pt)*nt,(St-lt)*et,.8*nt,(St-pt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.8*nt,(St+pt)*et,(vt+pt+pt)*nt,(St+lt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et).close()),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("XnorGate",function(Tt,nt,et){var ht=new go.Geometry,lt=.5,pt=qt*lt,vt=.2,St=.5,Lt=new go.PathFigure(.1*nt,0,!1);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,et,.35*nt,.25*et,.35*nt,.75*et));var It=new go.PathFigure(.8*nt,.5*et,!0);ht.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.7*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,.45*nt,.75*et,.45*nt,.25*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(vt+pt)*nt,(St-lt)*et,.7*nt,(St-pt)*et)),lt=.1,pt=qt*.1,vt=.9,St=.5;var Yt=new go.PathFigure((vt-lt)*nt,St*et,!0);return ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St-lt)*et,(vt-lt)*nt,(St-pt)*et,(vt-pt)*nt,(St-lt)*et)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*nt,St*et,(vt+pt)*nt,(St-lt)*et,(vt+lt)*nt,(St-pt)*et)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+lt)*et,(vt+lt)*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*nt,St*et,(vt-pt)*nt,(St+lt)*et,(vt-lt)*nt,(St+pt)*et)),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.65,.75),ht}),go.Shape.defineFigureGenerator("XorGate",function(Tt,nt,et){var ht=new go.Geometry,lt=.5,pt=qt*lt,vt=.2,St=.5,Lt=new go.PathFigure(.1*nt,0,!1);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,et,.35*nt,.25*et,.35*nt,.75*et));var It=new go.PathFigure(.2*nt,0,!0);return ht.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(vt+pt)*nt,(St-lt)*et,.9*nt,(St-pt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.9*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,.45*nt,.75*et,.45*nt,.25*et).close()),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.8,.75),ht}),go.Shape.defineFigureGenerator("Capacitor",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ht}),go.Shape.defineFigureGenerator("Resistor",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.5*et,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.5*et)),ht}),go.Shape.defineFigureGenerator("Inductor",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.1,pt=.1,vt=.1,St=.5,Lt=new go.PathFigure((vt-lt*.5)*nt,et,!1);return ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,0,(vt-lt)*nt,et,(vt-pt)*nt,0)),vt=.3,Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,et,(vt+pt)*nt,0,(vt+lt)*nt,et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,0,(vt-lt)*nt,et,(vt-pt)*nt,0)),vt=.5,Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,et,(vt+pt)*nt,0,(vt+lt)*nt,et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,0,(vt-lt)*nt,et,(vt-pt)*nt,0)),vt=.7,Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,et,(vt+pt)*nt,0,(vt+lt)*nt,et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,0,(vt-lt)*nt,et,(vt-pt)*nt,0)),vt=.9,Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt*.5)*nt,et,(vt+pt)*nt,0,(vt+lt)*nt,et)),ht}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.5,pt=.5,vt=.5,St=.5,Lt=new go.PathFigure((vt-pt)*nt,St*et,!1);return ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St-pt)*et,(vt-pt)*nt,(St-lt)*et,(vt-lt)*nt,(St-pt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,St*et,(vt+lt)*nt,(St-pt)*et,(vt+pt)*nt,(St-lt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et,(vt+lt)*nt,(St+pt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,St*et,(vt-lt)*nt,(St+pt)*et,(vt-pt)*nt,(St+lt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Move,(vt-pt+.1)*nt,St*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt-.1)*nt,St*et,vt*nt,(St-pt)*et,vt*nt,(St+pt)*et)),ht}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.75*et,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ht}),go.Shape.defineFigureGenerator("Diode",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Wifi",function(Tt,nt,et){var ht=new go.Geometry,lt=nt,pt=et;nt=nt*.38,et=et*.6;var vt=qt*.8,St=.8,Lt=0,It=.5,Yt=(lt-nt)/2,ie=(pt-et)/2,re=new go.PathFigure(Lt*nt+Yt,(It+St)*et+ie,!0);ht.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-St)*nt+Yt,It*et+ie,(Lt-vt)*nt+Yt,(It+St)*et+ie,(Lt-St)*nt+Yt,(It+vt)*et+ie)),re.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt+Yt,(It-St)*et+ie,(Lt-St)*nt+Yt,(It-vt)*et+ie,(Lt-vt)*nt+Yt,(It-St)*et+ie)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-St+vt*.5)*nt+Yt,It*et+ie,Lt*nt+Yt,(It-St)*et+ie,(Lt-St+vt*.5)*nt+Yt,(It-vt)*et+ie)),re.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt+Yt,(It+St)*et+ie,(Lt-St+vt*.5)*nt+Yt,(It+vt)*et+ie,Lt*nt+Yt,(It+St)*et+ie).close()),vt=qt*.4,St=.4,Lt=.2,It=.5;var Qt=new go.PathFigure(Lt*nt+Yt,(It+St)*et+ie,!0);ht.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-St)*nt+Yt,It*et+ie,(Lt-vt)*nt+Yt,(It+St)*et+ie,(Lt-St)*nt+Yt,(It+vt)*et+ie)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt+Yt,(It-St)*et+ie,(Lt-St)*nt+Yt,(It-vt)*et+ie,(Lt-vt)*nt+Yt,(It-St)*et+ie)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-St+vt*.5)*nt+Yt,It*et+ie,Lt*nt+Yt,(It-St)*et+ie,(Lt-St+vt*.5)*nt+Yt,(It-vt)*et+ie)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt+Yt,(It+St)*et+ie,(Lt-St+vt*.5)*nt+Yt,(It+vt)*et+ie,Lt*nt+Yt,(It+St)*et+ie).close()),vt=qt*.2,St=.2,Lt=.5,It=.5;var xe=new go.PathFigure((Lt-St)*nt+Yt,It*et+ie,!0);ht.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt+Yt,(It-St)*et+ie,(Lt-St)*nt+Yt,(It-vt)*et+ie,(Lt-vt)*nt+Yt,(It-St)*et+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+St)*nt+Yt,It*et+ie,(Lt+vt)*nt+Yt,(It-St)*et+ie,(Lt+St)*nt+Yt,(It-vt)*et+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt+Yt,(It+St)*et+ie,(Lt+St)*nt+Yt,(It+vt)*et+ie,(Lt+vt)*nt+Yt,(It+St)*et+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-St)*nt+Yt,It*et+ie,(Lt-vt)*nt+Yt,(It+St)*et+ie,(Lt-St)*nt+Yt,(It+vt)*et+ie)),vt=qt*.4,St=.4,Lt=.8,It=.5;var he=new go.PathFigure(Lt*nt+Yt,(It-St)*et+ie,!0);ht.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+St)*nt+Yt,It*et+ie,(Lt+vt)*nt+Yt,(It-St)*et+ie,(Lt+St)*nt+Yt,(It-vt)*et+ie)),he.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt+Yt,(It+St)*et+ie,(Lt+St)*nt+Yt,(It+vt)*et+ie,(Lt+vt)*nt+Yt,(It+St)*et+ie)),he.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+St-vt*.5)*nt+Yt,It*et+ie,Lt*nt+Yt,(It+St)*et+ie,(Lt+St-vt*.5)*nt+Yt,(It+vt)*et+ie)),he.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt+Yt,(It-St)*et+ie,(Lt+St-vt*.5)*nt+Yt,(It-vt)*et+ie,Lt*nt+Yt,(It-St)*et+ie).close()),vt=qt*.8,St=.8,Lt=1,It=.5;var Le=new go.PathFigure(Lt*nt+Yt,(It-St)*et+ie,!0);return ht.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+St)*nt+Yt,It*et+ie,(Lt+vt)*nt+Yt,(It-St)*et+ie,(Lt+St)*nt+Yt,(It-vt)*et+ie)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt+Yt,(It+St)*et+ie,(Lt+St)*nt+Yt,(It+vt)*et+ie,(Lt+vt)*nt+Yt,(It+St)*et+ie)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+St-vt*.5)*nt+Yt,It*et+ie,Lt*nt+Yt,(It+St)*et+ie,(Lt+St-vt*.5)*nt+Yt,(It+vt)*et+ie)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt+Yt,(It-St)*et+ie,(Lt+St-vt*.5)*nt+Yt,(It-vt)*et+ie,Lt*nt+Yt,(It-St)*et+ie).close()),ht}),go.Shape.defineFigureGenerator("Email",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,0,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Move,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.54*et)),pt.add(new go.PathSegment(go.PathSegment.Move,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.54*et)),ht}),go.Shape.defineFigureGenerator("Ethernet",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.35*nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,0).close());var pt=new go.PathFigure(.1*nt,et,!0,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et).close());var vt=new go.PathFigure(.6*nt,et,!0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.6*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.6*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et).close());var St=new go.PathFigure(0,.5*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),St.add(new go.PathSegment(go.PathSegment.Move,.75*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.6*et)),St.add(new go.PathSegment(go.PathSegment.Move,.25*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.6*et)),ht}),go.Shape.defineFigureGenerator("Power",function(Tt,nt,et){var ht=new go.Geometry,lt=qt*.4,pt=.4,vt=.5,St=.5,Lt=kt(),It=kt(),Yt=kt(),ie=kt();Ye(vt,St-pt,vt+lt,St-pt,vt+pt,St-lt,vt+pt,St,.5,Lt,Lt,It,Yt,ie);var re=Dt(It.x,It.y),Qt=new go.PathFigure(It.x*nt,It.y*et,!0);ht.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,St*et,Yt.x*nt,Yt.y*et,ie.x*nt,ie.y*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et,(vt+lt)*nt,(St+pt)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,St*et,(vt-lt)*nt,(St+pt)*et,(vt-pt)*nt,(St+lt)*et)),Ye(vt-pt,St,vt-pt,St-lt,vt-lt,St-pt,vt,St-pt,.5,Yt,ie,It,Lt,Lt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,It.x*nt,It.y*et,Yt.x*nt,Yt.y*et,ie.x*nt,ie.y*et)),lt=qt*.3,pt=.3,Ye(vt-pt,St,vt-pt,St-lt,vt-lt,St-pt,vt,St-pt,.5,Yt,ie,It,Lt,Lt),Qt.add(new go.PathSegment(go.PathSegment.Line,It.x*nt,It.y*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,St*et,ie.x*nt,ie.y*et,Yt.x*nt,Yt.y*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+pt)*et,(vt-pt)*nt,(St+lt)*et,(vt-lt)*nt,(St+pt)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,St*et,(vt+lt)*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et)),Ye(vt,St-pt,vt+lt,St-pt,vt+pt,St-lt,vt+pt,St,.5,Lt,Lt,It,Yt,ie),Qt.add(new go.PathSegment(go.PathSegment.Bezier,It.x*nt,It.y*et,ie.x*nt,ie.y*et,Yt.x*nt,Yt.y*et).close());var Qt=new go.PathFigure(.45*nt,0,!0);return ht.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.5*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.5*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,0).close()),le(Lt),le(It),le(Yt),le(ie),le(re),ht.spot1=new go.Spot(.25,.45),ht.spot2=new go.Spot(.75,.8),ht}),go.Shape.defineFigureGenerator("Fallout",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et/2,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,180,360,nt/2,et/2,nt/2,et/2));function pt(vt,St,Lt){vt.add(new go.PathSegment(go.PathSegment.Move,(.3+St)*nt,(.8+Lt)*et)),vt.add(new go.PathSegment(go.PathSegment.Line,(.5+St)*nt,(.5+Lt)*et)),vt.add(new go.PathSegment(go.PathSegment.Line,(.1+St)*nt,(.5+Lt)*et)),vt.add(new go.PathSegment(go.PathSegment.Line,(.3+St)*nt,(.8+Lt)*et).close())}return pt(lt,0,0),pt(lt,.4,0),pt(lt,.2,-.3),ht}),go.Shape.defineFigureGenerator("IrritationHazard",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.2*nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et).close()),ht.spot1=new go.Spot(.3,.3),ht.spot2=new go.Spot(.7,.7),ht}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.37*nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.11*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*nt,.04*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.49*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.37*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.63*nt,.86*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*nt,.91*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*nt,.78*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.44*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.56*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.68*et).close()),ht}),go.Shape.defineFigureGenerator("FireHazard",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.1*nt,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.29*nt,0,-.25*nt,.63*et,.45*nt,.44*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.51*nt,.42*et,.48*nt,.17*et,.54*nt,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.59*nt,.18*et,.59*nt,.29*et,.58*nt,.28*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,.6*et,.8*nt,.34*et,.88*nt,.43*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.88*nt,.31*et,.87*nt,.48*et,.88*nt,.43*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,et,1.17*nt,.76*et,.82*nt,.8*et).close()),ht.spot1=new go.Spot(.07,.445),ht.spot2=new go.Spot(.884,.958),ht}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Tt,nt,et){var ht=new go.Geometry,lt=.5,pt=0,vt=0,St=lt*qt,Lt=.4*Math.SQRT2/2+.5,It=.5-.5*Math.SQRT2/2,Yt=1,ie=.5,re=.5,Qt=0,xe=new go.PathFigure(Lt*nt,(1-It)*et,!1);return ht.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,Yt*nt,ie*et,Yt*nt,.7*et,Yt*nt,ie*et)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(re+pt)*nt,(Qt+pt)*et,(.5+lt+pt)*nt,(.5-St+pt)*et,(.5+St+pt)*nt,(.5-lt+pt)*et)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*nt,(.5+vt)*et,(.5-St+pt)*nt,(.5-lt+vt)*et,(.5-lt+pt)*nt,(.5-St+vt)*et)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+pt)*nt,.9*et,(.5-lt+pt)*nt,(.5+St+vt)*et,(.5-St+pt)*nt,.9*et)),xe.add(new go.PathSegment(go.PathSegment.Move,(.25+pt)*nt,.8*et)),xe.add(new go.PathSegment(go.PathSegment.Line,(.35+pt)*nt,.9*et)),xe.add(new go.PathSegment(go.PathSegment.Line,(.2+pt)*nt,.95*et)),ht}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ht}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ht}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);ht.add(lt);var pt=new go.PathFigure(nt,et,!1);ht.add(pt);var vt=new go.PathFigure(0,.5*et,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.5*et,.2*nt,.35*et,.3*nt,.35*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.7*nt,.65*et,.8*nt,.65*et)),ht}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close()),ht}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.2*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et).close());var lt=new go.PathFigure(0,.2*et,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),ht}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.7*nt,et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,0,.6*nt,.5*et,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,et,.4*nt,.5*et,nt,.5*et).close());var pt=new go.PathFigure(.45*nt,.73*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.73*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.38*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.63*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.31*nt,.27*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.56*nt,.27*et)),ht}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);ht.add(lt);var pt=new go.PathFigure(.335*nt,(1-.555)*et,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.335*nt,(1-.405)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.405)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.555)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.68*et,(1-.12)*nt,.46*et,(1-.02)*nt,.54*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.68*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.335*nt,(1-.555)*et,.02*nt,.54*et,.12*nt,.46*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.365*nt,(1-.595)*et));var vt=.5-.285,St=.5,Lt=vt,It=Math.PI/4,Yt=4*(1-Math.cos(It))/(3*Math.sin(It)),ie=Yt*.5,re=vt,Qt=vt,xe=Yt*re,he=Yt*Qt;pt.add(new go.PathSegment(go.PathSegment.Bezier,(St-re)*nt,Lt*et,(St-(xe+re)/2)*nt,(Lt+(Qt+he)/2)*et,(St-re)*nt,(Lt+he)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(Lt-Qt)*et,(St-re)*nt,(Lt-he)*et,(St-xe)*nt,(Lt-Qt)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(St+re)*nt,Lt*et,(St+xe)*nt,(Lt-Qt)*et,(St+re)*nt,(Lt-he)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*nt,(1-.595)*et,(St+re)*nt,(Lt+he)*et,(St+(xe+re)/2)*nt,(Lt+(Qt+he)/2)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*nt,(1-.595)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.555)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.405)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.335*nt,(1-.405)*et));var Le=new go.PathFigure(.2*nt,et,!1);ht.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.8*et));var Qe=new go.PathFigure(.8*nt,et,!1);return ht.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),ht}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.1*nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et).close());var pt=new go.PathFigure(.2*nt,.2*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.8*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),ht}),go.Shape.defineFigureGenerator("BpmnEventError",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.5*et).close()),ht}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);ht.add(lt);var pt=new go.PathFigure(nt,et,!1);ht.add(pt);var vt=new go.PathFigure(.1*nt,et,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et).close()),ht}),go.Shape.defineFigureGenerator("Caution",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.05*nt,et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,.8*et,0,et,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.1*et,.5*nt,0,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,et,nt,et,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*nt,et));var pt=.05;return lt.add(new go.PathSegment(go.PathSegment.Move,(.5-pt)*nt,.875*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*nt,.875*et,pt*nt,pt*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.325*et,.575*nt,.725*et,.625*nt,.375*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.75*et,.375*nt,.375*et,.425*nt,.725*et)),ht}),go.Shape.defineFigureGenerator("Recycle",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.45*nt,.95*et,!1);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.185*nt,.85*et,.17*nt,.95*et,.15*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.235*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.625*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.275*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*nt,.575*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*nt,.95*et,0,.675*et,0,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.45*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.775*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.22*nt,.775*et));var pt=new go.PathFigure(.475*nt,.2*et,!1);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.225*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.275*nt,.175*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.325*nt,.05*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.05*et,.35*nt,0,.375*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.375*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.475*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.315*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.32*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.05*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.575*nt,0,.65*nt,.05*et,.625*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.38*nt,.0105*et));var vt=new go.PathFigure(.675*nt,.575*et,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.875*nt,.525*et)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,.775*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.85*nt,.95*et,nt,.8*et,nt,.85*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.95*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.85*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.725*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.775*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.775*et)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,.775*et)),vt.add(new go.PathSegment(go.PathSegment.Move,.675*nt,.575*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.775*nt,.775*et)),ht}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Tt,nt,et){var ht=new go.Geometry,lt=.5,pt=qt*.5,vt=new go.PathFigure(nt,lt*et,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,lt*nt,et,nt,(lt+pt)*et,(lt+pt)*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*et,(lt-pt)*nt,et,0,(lt+pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,lt*nt,0,0,(lt-pt)*et,(lt-pt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,lt*et,(lt+pt)*nt,0,nt,(lt-pt)*et));var St=new go.PathFigure(lt*nt,0,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.15*et)),St.add(new go.PathSegment(go.PathSegment.Move,lt*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.85*et)),St.add(new go.PathSegment(go.PathSegment.Move,0,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.15*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.85*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Move,lt*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.58*nt,.1*et)),St.add(new go.PathSegment(go.PathSegment.Move,lt*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.78*nt,.54*et)),ht}),go.Shape.defineFigureGenerator("Package",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.15*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var pt=new go.PathFigure(0,.15*et,!0);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.15*et).close()),ht.spot1=new go.Spot(0,.1),ht.spot2=new go.Spot(1,1),ht}),go.Shape.defineFigureGenerator("Class",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,.2*et,!1);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et).close());var vt=new go.PathFigure(0,.5*et,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et).close()),ht}),go.Shape.defineFigureGenerator("Component",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt,et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et).close());var pt=new go.PathFigure(0,.2*et,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.2*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et).close());var vt=new go.PathFigure(0,.6*et,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.6*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.8*et)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et).close()),ht}),go.Shape.defineFigureGenerator("Boat Shipment",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.15*nt,.6*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et));var pt=new go.PathFigure(.15*nt,.6*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),ht}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ht}),go.Shape.defineFigureGenerator("Workcell",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht}),go.Shape.defineFigureGenerator("Supermarket",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.66*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.66*et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,.66*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),ht}),go.Shape.defineFigureGenerator("TruckShipment",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(nt,.8*et,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.8*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et).close());var vt=.1,St=qt*.1,Lt=.2,It=.9,Yt=new go.PathFigure((Lt-vt)*nt,It*et,!0);ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt,(It-vt)*et,(Lt-vt)*nt,(It-St)*et,(Lt-St)*nt,(It-vt)*et)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+vt)*nt,It*et,(Lt+St)*nt,(It-vt)*et,(Lt+vt)*nt,(It-St)*et)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt,(It+vt)*et,(Lt+vt)*nt,(It+St)*et,(Lt+St)*nt,(It+vt)*et)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-vt)*nt,It*et,(Lt-St)*nt,(It+vt)*et,(Lt-vt)*nt,(It+St)*et).close()),vt=.1,St=qt*.1,Lt=.8,It=.9;var ie=new go.PathFigure((Lt-vt)*nt,It*et,!0);return ht.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt,(It-vt)*et,(Lt-vt)*nt,(It-St)*et,(Lt-St)*nt,(It-vt)*et)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+vt)*nt,It*et,(Lt+St)*nt,(It-vt)*et,(Lt+vt)*nt,(It-St)*et)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Lt*nt,(It+vt)*et,(Lt+vt)*nt,(It+St)*et,(Lt+St)*nt,(It+vt)*et)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-vt)*nt,It*et,(Lt-St)*nt,(It+vt)*et,(Lt-vt)*nt,(It+St)*et).close()),ht}),go.Shape.defineFigureGenerator("KanbanPost",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.2*nt,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),ht}),go.Shape.defineFigureGenerator("Forklift",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0));var pt=new go.PathFigure(0,.5*et,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.8*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var vt=new go.PathFigure(.5*nt,.8*et,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.1*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.1*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.8*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.8*et));var St=new go.PathFigure(.5*nt,.7*et,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et));var Lt=.1,It=qt*.1,Yt=.1,ie=.9,re=new go.PathFigure((Yt-Lt)*nt,ie*et,!0);ht.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Yt*nt,(ie-Lt)*et,(Yt-Lt)*nt,(ie-It)*et,(Yt-It)*nt,(ie-Lt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Yt+Lt)*nt,ie*et,(Yt+It)*nt,(ie-Lt)*et,(Yt+Lt)*nt,(ie-It)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,Yt*nt,(ie+Lt)*et,(Yt+Lt)*nt,(ie+It)*et,(Yt+It)*nt,(ie+Lt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Yt-Lt)*nt,ie*et,(Yt-It)*nt,(ie+Lt)*et,(Yt-Lt)*nt,(ie+It)*et)),Lt=.1,It=qt*.1,Yt=.4,ie=.9;var Qt=new go.PathFigure((Yt-Lt)*nt,ie*et,!0);return ht.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Yt*nt,(ie-Lt)*et,(Yt-Lt)*nt,(ie-It)*et,(Yt-It)*nt,(ie-Lt)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Yt+Lt)*nt,ie*et,(Yt+It)*nt,(ie-Lt)*et,(Yt+Lt)*nt,(ie-It)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Yt*nt,(ie+Lt)*et,(Yt+Lt)*nt,(ie+It)*et,(Yt+It)*nt,(ie+Lt)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Yt-Lt)*nt,ie*et,(Yt-It)*nt,(ie+Lt)*et,(Yt-Lt)*nt,(ie+It)*et)),ht}),go.Shape.defineFigureGenerator("RailShipment",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.1*nt,.4*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.4*et).close());var pt=new go.PathFigure(.45*nt,.7*et,!1);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et));var vt=new go.PathFigure(.55*nt,.4*et,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.9*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.9*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.4*et).close());var Yt=.05,ie=qt*.05,re=.175,Qt=.95,St=new go.PathFigure((re-Yt)*nt,Qt*et,!0);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(Qt-Yt)*et,(re-Yt)*nt,(Qt-ie)*et,(re-ie)*nt,(Qt-Yt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(re+Yt)*nt,Qt*et,(re+ie)*nt,(Qt-Yt)*et,(re+Yt)*nt,(Qt-ie)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(Qt+Yt)*et,(re+Yt)*nt,(Qt+ie)*et,(re+ie)*nt,(Qt+Yt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(re-Yt)*nt,Qt*et,(re-ie)*nt,(Qt+Yt)*et,(re-Yt)*nt,(Qt+ie)*et));var Yt=.05,ie=qt*.05,re=.375,Qt=.95,Lt=new go.PathFigure((re-Yt)*nt,Qt*et,!0);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(Qt-Yt)*et,(re-Yt)*nt,(Qt-ie)*et,(re-ie)*nt,(Qt-Yt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(re+Yt)*nt,Qt*et,(re+ie)*nt,(Qt-Yt)*et,(re+Yt)*nt,(Qt-ie)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(Qt+Yt)*et,(re+Yt)*nt,(Qt+ie)*et,(re+ie)*nt,(Qt+Yt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(re-Yt)*nt,Qt*et,(re-ie)*nt,(Qt+Yt)*et,(re-Yt)*nt,(Qt+ie)*et));var Yt=.05,ie=qt*.05,re=.625,Qt=.95,It=new go.PathFigure((re-Yt)*nt,Qt*et,!0);ht.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(Qt-Yt)*et,(re-Yt)*nt,(Qt-ie)*et,(re-ie)*nt,(Qt-Yt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(re+Yt)*nt,Qt*et,(re+ie)*nt,(Qt-Yt)*et,(re+Yt)*nt,(Qt-ie)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(Qt+Yt)*et,(re+Yt)*nt,(Qt+ie)*et,(re+ie)*nt,(Qt+Yt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(re-Yt)*nt,Qt*et,(re-ie)*nt,(Qt+Yt)*et,(re-Yt)*nt,(Qt+ie)*et));var Yt=.05,ie=qt*.05,re=.825,Qt=.95,xe=new go.PathFigure((re-Yt)*nt,Qt*et,!0);ht.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(Qt-Yt)*et,(re-Yt)*nt,(Qt-ie)*et,(re-ie)*nt,(Qt-Yt)*et)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(re+Yt)*nt,Qt*et,(re+ie)*nt,(Qt-Yt)*et,(re+Yt)*nt,(Qt-ie)*et)),xe.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(Qt+Yt)*et,(re+Yt)*nt,(Qt+ie)*et,(re+ie)*nt,(Qt+Yt)*et)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(re-Yt)*nt,Qt*et,(re-ie)*nt,(Qt+Yt)*et,(re-Yt)*nt,(Qt+ie)*et).close());var he=new go.PathFigure(0,et,!1);return ht.add(he),he.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ht}),go.Shape.defineFigureGenerator("Warehouse",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,.2*et,!1);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et).close());var vt=new go.PathFigure(.15*nt,et,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.5*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.5*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et).close());var St=.05,Lt=qt*.05,It=.35,Yt=.775,ie=new go.PathFigure((It-St)*nt,Yt*et,!0);return ht.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,It*nt,(Yt-St)*et,(It-St)*nt,(Yt-Lt)*et,(It-Lt)*nt,(Yt-St)*et)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(It+St)*nt,Yt*et,(It+Lt)*nt,(Yt-St)*et,(It+St)*nt,(Yt-Lt)*et)),ie.add(new go.PathSegment(go.PathSegment.Bezier,It*nt,(Yt+St)*et,(It+St)*nt,(Yt+Lt)*et,(It+Lt)*nt,(Yt+St)*et)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(It-St)*nt,Yt*et,(It-Lt)*nt,(Yt+St)*et,(It-St)*nt,(Yt+Lt)*et).close()),ht}),go.Shape.defineFigureGenerator("ControlCenter",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.1*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et).close()),ht}),go.Shape.defineFigureGenerator("Bluetooth",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.75*et,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),ht}),go.Shape.defineFigureGenerator("Globe",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.75*nt,0,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,.75*et,.75*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.25*nt,et,0,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,.25*et,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,.15*nt,.25*et,.15*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.85*nt,.75*et,.85*nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*nt,.15*et,.35*nt,.3*et,.65*nt,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*nt,.85*et,.35*nt,.7*et,.65*nt,.7*et)),ht}),go.Shape.defineFigureGenerator("Wave",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.25*et,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.25*et,.1*nt,0,.2*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,.25*et,.425*nt,.5*et,.575*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.25*et,.8*nt,0,.9*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.75*et,.1*nt,.5*et,.2*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,.75*et,.425*nt,et,.575*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.75*et,.8*nt,.5*et,.9*nt,.5*et)),ht}),go.Shape.defineFigureGenerator("Operator",function(Tt,nt,et){var ht=new go.Geometry,lt=.3,pt=qt*.3,vt=.5,St=.7,Lt=new go.PathFigure((vt-lt)*nt,St*et,!0);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St-lt)*et,(vt-lt)*nt,(St-pt)*et,(vt-pt)*nt,(St-lt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*nt,St*et,(vt+pt)*nt,(St-lt)*et,(vt+lt)*nt,(St-pt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+lt)*et,(vt+lt)*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*nt,St*et,(vt-pt)*nt,(St+lt)*et,(vt-lt)*nt,(St+pt)*et));var It=new go.PathFigure(0,.7*et,!1);return ht.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,nt,.7*et,0,0,nt,0)),ht}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.65*nt,.3*et,.65*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.35*nt,.5*et,.35*nt,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.3*nt,.6*et,.1*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.2*nt,et,.35*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et,.7*nt,.6*et,.9*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.8*nt,et,.65*nt,.95*et)),ht}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,0,.075*et,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,0,et,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.4*et,.8*nt,et,.85*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ht}),go.Shape.defineFigureGenerator("Battery",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.1*et));var pt=new go.PathFigure(0,.6*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,0,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),ht}),go.Shape.defineFigureGenerator("Delete",function(Tt,nt,et){var ht=new go.Geometry,lt=.5,pt=qt*.5,vt=.5,St=.5,Lt=new go.PathFigure((vt-lt)*nt,St*et,!0);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St-lt)*et,(vt-lt)*nt,(St-pt)*et,(vt-pt)*nt,(St-lt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*nt,St*et,(vt+pt)*nt,(St-lt)*et,(vt+lt)*nt,(St-pt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+lt)*et,(vt+lt)*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*nt,St*et,(vt-pt)*nt,(St+lt)*et,(vt-lt)*nt,(St+pt)*et));var It=new go.PathFigure(.15*nt,.5*et,!1);return ht.add(It),It.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.5*et)),ht}),go.Shape.defineFigureGenerator("Flag",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.1*et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.1*et,.15*nt,0,.35*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,.65*nt,.2*et,.85*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.5*et,.85*nt,.6*et,.65*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.35*nt,.4*et,.15*nt,.4*et).close()),ht}),go.Shape.defineFigureGenerator("Help",function(Tt,nt,et){var ht=new go.Geometry,lt=.5,pt=qt*.5,vt=.5,St=.5,Lt=new go.PathFigure((vt-lt)*nt,St*et,!1);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St-lt)*et,(vt-lt)*nt,(St-pt)*et,(vt-pt)*nt,(St-lt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*nt,St*et,(vt+pt)*nt,(St-lt)*et,(vt+lt)*nt,(St-pt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+lt)*et,(vt+lt)*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*nt,St*et,(vt-pt)*nt,(St+lt)*et,(vt-lt)*nt,(St+pt)*et).close()),lt=.05,pt=qt*.05,vt=.5,St=.8;var It=new go.PathFigure((vt-lt)*nt,St*et,!1);return ht.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St-lt)*et,(vt-lt)*nt,(St-pt)*et,(vt-pt)*nt,(St-lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*nt,St*et,(vt+pt)*nt,(St-lt)*et,(vt+lt)*nt,(St-pt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(St+lt)*et,(vt+lt)*nt,(St+pt)*et,(vt+pt)*nt,(St+lt)*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*nt,St*et,(vt-pt)*nt,(St+lt)*et,(vt-lt)*nt,(St+pt)*et).close()),It.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.7*et)),It.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,.75*nt,.475*et,.75*nt,.225*et)),It.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.35*et,.4*nt,.2*et,.3*nt,.25*et)),ht}),go.Shape.defineFigureGenerator("Location",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,et,!0).add(new go.PathSegment(go.PathSegment.Line,.75*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.975*nt,.025*et,.5*nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*nt,.5*et,.5*nt,0,.025*nt,.025*et).close()).add(new go.PathSegment(go.PathSegment.Move,.5*nt,.2*et)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*nt,.3*et,.1*nt,.1*et).close()))}),go.Shape.defineFigureGenerator("Lock",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var pt=new go.PathFigure(.2*nt,.5*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.3*et,.25*nt,0,.75*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.3*et)),ht}),go.Shape.defineFigureGenerator("Unlocked",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var pt=new go.PathFigure(.2*nt,.5*et,!1);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.3*et,.25*nt,0,.75*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.35*et)),ht}),go.Shape.defineFigureGenerator("Gear",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(.9375*nt,.56246875*et,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*nt,.4375*et)).add(new go.PathSegment(go.PathSegment.Line,.80621875*nt,.4375*et)).add(new go.PathSegment(go.PathSegment.Bezier,.763*nt,.3316875*et,.79840625*nt,.39915625*et,.7834375*nt,.3635*et)).add(new go.PathSegment(go.PathSegment.Line,.8566875*nt,.23796875*et)).add(new go.PathSegment(go.PathSegment.Line,.76825*nt,.14959375*et)).add(new go.PathSegment(go.PathSegment.Line,.67596875*nt,.24184375*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*nt,.19378125*et,.64228125*nt,.2188125*et,.603875*nt,.2021875*et)).add(new go.PathSegment(go.PathSegment.Line,.5625*nt,.0625*et)).add(new go.PathSegment(go.PathSegment.Line,.4375*nt,.0625*et)).add(new go.PathSegment(go.PathSegment.Line,.4375*nt,.19378125*et)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*nt,.239375*et,.39759375*nt,.20190625*et,.36053125*nt,.2176875*et)).add(new go.PathSegment(go.PathSegment.Line,.2379375*nt,.14959375*et)).add(new go.PathSegment(go.PathSegment.Line,.14953125*nt,.2379375*et)).add(new go.PathSegment(go.PathSegment.Line,.23934375*nt,.3278125*et)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*nt,.4375*et,.21765625*nt,.36059375*et,.201875*nt,.397625*et)).add(new go.PathSegment(go.PathSegment.Line,.0625*nt,.4375*et)).add(new go.PathSegment(go.PathSegment.Line,.0625*nt,.5625*et)).add(new go.PathSegment(go.PathSegment.Line,.1938125*nt,.5625*et)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*nt,.67596875*et,.20221875*nt,.603875*et,.21884375*nt,.64228125*et)).add(new go.PathSegment(go.PathSegment.Line,.1495625*nt,.76825*et)).add(new go.PathSegment(go.PathSegment.Line,.238*nt,.8566875*et)).add(new go.PathSegment(go.PathSegment.Line,.3316875*nt,.76296875*et)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*nt,.80621875*et,.36353125*nt,.78340625*et,.3991875*nt,.79840625*et)).add(new go.PathSegment(go.PathSegment.Line,.43753125*nt,.9375*et)).add(new go.PathSegment(go.PathSegment.Line,.5625*nt,.9375*et)).add(new go.PathSegment(go.PathSegment.Line,.5625*nt,.80621875*et)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*nt,.760625*et,.602375*nt,.79809375*et,.63946875*nt,.78234375*et)).add(new go.PathSegment(go.PathSegment.Line,.76828125*nt,.8566875*et)).add(new go.PathSegment(go.PathSegment.Line,.85671875*nt,.76825*et)).add(new go.PathSegment(go.PathSegment.Line,.76065625*nt,.67221875*et)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*nt,.56246875*et,.78234375*nt,.63940625*et,.798125*nt,.602375*et)).add(new go.PathSegment(go.PathSegment.Line,.9375*nt,.56246875*et).close()).add(new go.PathSegment(go.PathSegment.Move,.5*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*nt,.5*et,.1*nt,.1*et).close()))}),go.Shape.defineFigureGenerator("Hand",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,.3*et,0,.375*et,.05*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.45*nt,.075*et,.3*nt,.225*et,.4*nt,.175*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.525*nt,.075*et,.46*nt,.05*et,.525*nt,.05*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.4*et,.525*nt,.275*et,.475*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.55*et,nt,.4*et,nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*nt,.7*et,.675*nt,.55*et,.675*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.575*nt,.85*et,.65*nt,.7*et,.65*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.535*nt,et,.61*nt,.85*et,.61*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,.435*nt,et,0,et).close()),ht}),go.Shape.defineFigureGenerator("Map",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.2*et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.8*et)),ht}),go.Shape.defineFigureGenerator("Eject",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.7)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.7).close());var pt=new go.PathFigure(0,et*.6,!0);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0).close()),ht}),go.Shape.defineFigureGenerator("Pencil",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et).close()))}),go.Shape.defineFigureGenerator("Building",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*1,et*1,!1);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.85).close());var pt=new go.PathFigure(.126*nt,.85*et,!1);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.126*nt,.45*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.322*nt,.45*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.322*nt,.85*et).close());var vt=new go.PathFigure(.402*nt,.85*et,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.402*nt,.45*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*nt,.45*et)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*nt,.85*et).close());var St=new go.PathFigure(.678*nt,.85*et,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.678*nt,.45*et)),St.add(new go.PathSegment(go.PathSegment.Line,.874*nt,.45*et)),St.add(new go.PathSegment(go.PathSegment.Line,.874*nt,.85*et).close());var Lt=new go.PathFigure(.5*nt,.1*et,!1);return ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*nt,.3*et)),Lt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*nt,.3*et).close()),ht}),go.Shape.defineFigureGenerator("Staircase",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et*1,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.95).close()),ht}),go.Shape.defineFigureGenerator("5Bars",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et*1,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.184,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.184,et*(1-.184)).close());var pt=new go.PathFigure(nt*.204,et,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.204,et*(1-.184))),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.388,et*(1-.184*2))),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.388,et*1).close());var vt=new go.PathFigure(nt*.408,et,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.408,et*(1-.184*2))),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.592,et*(1-.184*3))),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.592,et*1).close());var St=new go.PathFigure(nt*.612,et,!0);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.612,et*(1-.184*3))),St.add(new go.PathSegment(go.PathSegment.Line,nt*.796,et*(1-.184*4))),St.add(new go.PathSegment(go.PathSegment.Line,nt*.796,et*1).close());var Lt=new go.PathFigure(nt*.816,et,!0);return ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,nt*.816,et*(1-.184*4))),Lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-.184*5))),Lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1).close()),ht}),go.Shape.defineFigureGenerator("PC",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,0).close());var pt=new go.PathFigure(nt*.055,.07*et,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.07)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.1).close());var vt=new go.PathFigure(nt*.055,.13*et,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.13)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.16)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.16).close());var St=new go.PathFigure(nt*.055,.18*et,!0);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.18)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.21)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.21).close());var Lt=new go.PathFigure(nt*1,0,!0);return ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,0)),Lt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.65)),Lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.65).close()),ht}),go.Shape.defineFigureGenerator("Plane",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.55*nt,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.475*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.35*nt,.525*et,0,.4*et,.225*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.475*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.2*et,.975*nt,0,nt,.08*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et).close()),ht}),go.Shape.defineFigureGenerator("Key",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*1,et*.5,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.9,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.85,.575*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.9,.6*et).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.17*nt,.425*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*nt,.5*et,.075*nt,.075*et).close()),ht}),go.Shape.defineFigureGenerator("FilmTape",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,nt*0,nt*.3,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.08,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.08,et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*1),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*1),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*2),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*2),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*3),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*3),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*4),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*4),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*5),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*5),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*6),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*6),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*7),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*7),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*8),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*8),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*9),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*9),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*10),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*10),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*11),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*11),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*12),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*12),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*13),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*13),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*14),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*14),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*15),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*15),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1));var pt=new go.PathFigure(0,0,!1);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*0)),pt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,nt*1,nt*.3,nt*.055)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1));var vt=new go.PathFigure(nt*.11,et*.1,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*0),et*.1)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*0),et*.8)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.11,et*.8).close());var St=new go.PathFigure(nt*(.11+.24133333*1+.028*1),et*.1,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*1),et*.1)),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*1),et*.8)),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*1),et*.8).close());var Lt=new go.PathFigure(nt*(.11+.24133333*2+.028*2),et*.1,!1);return ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.1)),Lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.8)),Lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*2),et*.8).close()),ht}),go.Shape.defineFigureGenerator("FloppyDisk",function(Tt,nt,et){var ht=new go.Geometry,lt=8,pt=lt*qt,vt=new go.PathFigure(lt,0,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.86,0)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.14)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,et-lt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt-lt,et,nt,et-pt,nt-pt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,lt,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-lt,pt,et,0,et-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 St=new go.PathFigure(nt*.83,0,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.3)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.3)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*0).close());var Lt=new go.PathFigure(nt*.83,et*1,!1);ht.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.5)),Lt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.5)),Lt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*1).close());var It=new go.PathFigure(nt*.78,et*.05,!1);return ht.add(It),It.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.05)),It.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.25)),It.add(new go.PathSegment(go.PathSegment.Line,nt*.78,et*.25).close()),ht}),go.Shape.defineFigureGenerator("SpeechBubble",function(Tt,nt,et){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=15),ht=Math.min(ht,nt/3),ht=Math.min(ht,et/3);var lt=ht*qt,pt=et*.8,vt=new go.Geometry,St=new go.PathFigure(ht,0,!0);return vt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt-ht,0)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt,ht,nt-lt,0,nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,nt,pt-ht)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,pt,nt,pt-lt,nt-lt,pt)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.7,pt)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.55,pt)),St.add(new go.PathSegment(go.PathSegment.Line,ht,pt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,pt-ht,lt,pt,0,pt-lt)),St.add(new go.PathSegment(go.PathSegment.Line,0,ht)),St.add(new go.PathSegment(go.PathSegment.Bezier,ht,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(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*0,et*.45,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*.45).close());var pt=new go.PathFigure(nt*1,et*.55,!0);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*1)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.55)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*.55)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.55).close()),ht}),go.Shape.defineFigureGenerator("Windows",function(Tt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close()).add(new go.PathSegment(go.PathSegment.Move,.4*nt,.4*et)).add(new go.PathSegment(go.PathSegment.Line,.4*nt,.8*et)).add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)).add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et).close()).add(new go.PathSegment(go.PathSegment.Move,.2*nt,.1*et)).add(new go.PathSegment(go.PathSegment.Line,.2*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.1*et).close()).add(new go.PathSegment(go.PathSegment.Move,.1*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Line,.1*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*0,et*.1,!1);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*.9).close());var pt=new go.PathFigure(nt*.1,et*.2,!0);ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.25)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.22,et*.285)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.32)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.37)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.275,et*.32)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.275,et*.25).close());var vt=new go.PathFigure(nt*.28,et*.37,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.37)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.41)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.28,et*.41).close()),ht}),go.Shape.defineFigureGenerator("Beaker",function(Tt,nt,et){var ht=new go.Geometry,lt=15,pt=lt*qt,vt=new go.PathFigure(nt*.62,et*.475,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,et-lt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt-lt,et,nt,et-pt,nt-pt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,lt,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-lt,pt,et,0,et-pt)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.38,et*.475)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.38,et*.03)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*0)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*0)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.62,et*.03).close()),pt>1?(ht.spot1=new go.Spot(0,0,pt,pt),ht.spot2=new go.Spot(1,1,-pt,-pt)):(ht.spot1=go.Spot.TopLeft,ht.spot2=go.Spot.BottomRight),ht}),go.Shape.defineFigureGenerator("Download",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);ht.add(lt);var pt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.755,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.93,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.61,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.39,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.755),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.8),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*(1-pt)).close());var vt=new go.PathFigure(nt*.4,et*0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.26,et*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.66)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.26),et*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*0).close()),ht}),go.Shape.defineFigureGenerator("Bin",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);ht.add(lt);var pt=.1/.3;return lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.755,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.93,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.61,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.39,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.755),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.8),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*(1-pt)).close()),ht}),go.Shape.defineFigureGenerator("Upload",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);ht.add(lt);var pt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.755,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.93,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.61,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.39,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.755),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.8),et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*(1-pt)).close());var vt=new go.PathFigure(nt*.5,et*0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.26,et*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,nt*.74,et*.25).close()),ht}),go.Shape.defineFigureGenerator("EmptyDrink",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*.15,et*0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.85,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1).close()),ht}),go.Shape.defineFigureGenerator("Drink",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*.15,et*0,!1);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.85,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1).close());var pt=new go.PathFigure(nt*.235,et*.28,!0);return ht.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.765,et*.28)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.655,et*.97)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.345,et*.97).close()),ht}),go.Shape.defineFigureGenerator("4Arrows",function(Tt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*.5,et*0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.25).close()),ht}),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")},61016: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",Dt={},kt=null,le=!1,ze=!1,Ye=null,Se=!1,Ot=null,qt=null,Ee=0;Ee<arguments.length;Ee++){var me=arguments[Ee];if(me!==null)switch(typeof me){case"number":$n=me.toFixed(1);break;case"string":me.match(new RegExp("^[0-9]\\.[0-9]+$"))?$n=me:Ye=me;break;case"object":typeof me.is3D!="undefined"?kt=me:Dt=me;break;case"boolean":le=me,ze=!0;break}}kt===null&&(kt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Dt.material_id!==void 0&&!ze&&(le=!0)),Ye!==null&&Dt.id===void 0&&(Dt.id=Ye);var ve="",Ze="",Ce=!1,nn=null,Tt=null,nt=null,et=!1,ht=null,lt=null,pt=null,vt=null,St=null;Dt.height!==void 0&&(Dt.height=Math.round(Dt.height)),Dt.width!==void 0&&(Dt.width=Math.round(Dt.width));var Lt=function(we){return parseFloat(we)>4?parseFloat(we):5};xn.setHTML5Codebase=function(we,rn){qt=we,Gt(we,rn)},xn.setJavaCodebase=xn.setJavaCodebaseVersion=xn.isCompiledInstalled=xn.setPreCompiledScriptPath=xn.setPreCompiledResourcePath=function(){},xn.setHTML5CodebaseVersion=function(we,rn){var an=parseFloat(we);if(an!==NaN&&an<5){console.log("The GeoGebra HTML5 codebase version "+an+" is deprecated. Using version latest instead.");return}Ot=we,zt(we,rn)},xn.getHTML5CodebaseVersion=function(){return Tt},xn.getParameters=function(){return Dt},xn.setFontsCSSURL=function(we){vt=we},xn.setGiacJSURL=function(we){},xn.setJNLPFile=function(we){ve=we},xn.setJNLPBaseDir=function(we){},xn.inject=function(){function we(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var rn="auto",an=Dt.id,Wn,Ne=!1,de=0;de<arguments.length;de++){var Oe=arguments[de];typeof Oe=="string"?(Oe=Oe.toLowerCase(),Oe.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?rn=Oe:an=arguments[de]):typeof Oe=="boolean"?Ne=Oe:Oe instanceof HTMLElement&&(Wn=Oe)}dn();function dn(){if(!Se){setTimeout(dn,200);return}rn=Dn(rn);var He=Wn||document.getElementById(an);if(!He){console.log("possibly bug on ajax loading? ");return}if(xn.removeExistingApplet(He,!1),Dt.width===void 0&&He.clientWidth&&(Dt.width=He.clientWidth),Dt.height===void 0&&He.clientHeight&&(Dt.height=He.clientHeight),!(Dt.width&&Dt.height)&&rn==="html5"&&(delete Dt.width,delete Dt.height),nn=rn,rn==="screenshot")Qe(He,Dt);else{var jt=!1;Dt.hasOwnProperty("playButton")&&Dt.playButton||Dt.hasOwnProperty("clickToLoad")&&Dt.clickToLoad?jt=!0:Dt.hasOwnProperty("playButtonAutoDecide")&&Dt.playButtonAutoDecide&&(jt=(!It()||we())&&Yt()),jt?(nn="screenshot",Gn(He,Dt,Ne,rn)):Le(He,Dt,Ne)}}};function It(){try{return window.self!==window.top}catch(we){return!0}}function Yt(){return Dt.hasOwnProperty("screenshotGenerator")&&Dt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}xn.getViews=function(){return kt},xn.isJavaInstalled=function(){return!1};var ie=function(we){var rn=function(de){var Oe=JSON.parse(de),dn=function(Pt){return Pt.type=="G"||Pt.type=="E"},He=Oe.elements?Oe.elements.filter(dn)[0]:Oe;if(!He||!He.url){an();return}Dt.fileName=He.url,re(He.settings||{}),kt.is3D=!0;var jt="https://www.geogebra.org/images/";xn.setPreviewImage(ht||He.previewUrl,jt+"GeoGebra_loading.png",jt+"applet_play.png"),we()},an=function(){Dt.onError&&Dt.onError(),_e("Error: Fetching material (id "+Dt.material_id+") failed.",Dt)},Wn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ne="/materials/"+Dt.material_id+"?scope=basic";Qt("https://"+Wn+"/api/proxy.php?path="+encodeURIComponent(Ne),rn,an)};function re(we){var rn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(an){we[an]=!!we[an]}),rn.forEach(function(an){Dt[an]===void 0&&we[an]!==void 0&&(Dt[an]=we[an])}),Dt.showToolBarHelp===void 0&&(Dt.showToolBarHelp=Dt.showToolBar)}function Qt(we,rn,an){var Wn=new XMLHttpRequest;Wn.open("GET",we),Wn.onload=function(){rn(Wn.responseText)},Wn.onerror=an,Wn.send()}xn.isHTML5Installed=function(){return!0},xn.getLoadedAppletType=function(){return nn},xn.setPreviewImage=function(we,rn,an){ht=we,lt=rn,pt=an},xn.removeExistingApplet=function(we,rn){var an;typeof we=="string"&&(we=document.getElementById(we)),nn=null;var Wn=null;for(an=0;an<we.childNodes.length;an++){var Ne=we.childNodes[an],de=Ne.className;de==="applet_screenshot"?rn?(Ne.style.display="block",nn="screenshot"):Ne.style.display="none":de!=="applet_scaler prerender"&&(we.removeChild(Ne),Wn=de&&de.indexOf("appletParameters")!=-1?Ne.id:null,an--)}var Oe=Dt.id!==void 0?Dt.id:Wn,dn=window[Oe];dn&&typeof dn.getBase64=="function"&&(dn.remove(),window[Oe]=null)},xn.refreshHitPoints=function(){if(Lt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var we=xn.getAppletObject();return we&&typeof we.recalculateEnvironments=="function"?(we.recalculateEnvironments(),!0):!1},xn.startAnimation=function(){var we=xn.getAppletObject();return we&&typeof we.startAnimation=="function"?(we.startAnimation(),!0):!1},xn.stopAnimation=function(){var we=xn.getAppletObject();return we&&typeof we.stopAnimation=="function"?(we.stopAnimation(),!0):!1},xn.getAppletObject=function(){var we=Dt.id!==void 0?Dt.id:"ggbApplet";return window[we]},xn.resize=function(){};var xe=function(we,rn,an){var Wn=document.createElement("param");Wn.setAttribute("name",rn),Wn.setAttribute("value",an),we.appendChild(Wn)},he=function(we){return we&&we!=="false"},Le=function(we,rn,an){Lt(Tt)<=4.2&&(an=!0);var Wn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Tt||ggbHTML5LoadedCodebaseIsWebSimple&&!et)&&(Wn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ne=document.createElement("div");Ne.classList.add("appletParameters","notranslate");var de=rn.width,Oe=rn.height;if(rn.disableAutoScale=rn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():rn.disableAutoScale,rn.width!==void 0)if(Lt(Tt)<=4.4)he(rn.showToolBar)&&(rn.height-=7),he(rn.showAlgebraInput)&&(rn.height-=37),rn.width<605&&he(rn.showToolBar)&&(rn.width=605,de=605);else{var dn=100;(he(rn.showToolBar)||he(rn.showMenuBar))&&(rn.hasOwnProperty("customToolBar")&&(rn.customToolbar=rn.customToolBar),dn=he(rn.showMenuBar)?245:155),de<dn&&(rn.width=dn,de=dn)}Ne.style.border="none",Ne.style.display="inline-block";for(var He in rn)rn.hasOwnProperty(He)&&He!=="appletOnLoad"&&Ne.setAttribute("data-param-"+He,rn[He]);vt&&Ne.setAttribute("data-param-fontscssurl",vt),xn.resize=function(){GGBAppletUtils.responsiveResize(we,rn)},window.addEventListener("resize",function(De){xn.resize()});var jt=typeof rn.appletOnLoad=="function"?rn.appletOnLoad:function(){};if(!an&&rn.width!==void 0){rn.hasOwnProperty("showSplash")||Ne.setAttribute("data-param-showSplash","false");var Pt=we.querySelector(".applet_scaler.prerender"),wt=Pt!==null;if(wt)var Ft=Pt.querySelector(".ggb_preview");else{var Ft=Ke(de,Oe,rn.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=de+"px",Pt.style.height=Oe+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),Lt(Tt)>=5?(rn.appletOnLoad=function(De){var An=we.querySelector(".ggb_preview");An&&An.parentNode.removeChild(An),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),jt(De)},wt||Pt.appendChild(Ft)):Ne.appendChild(Ft),Pt.appendChild(Ne),wt||we.appendChild(Pt),setTimeout(function(){xn.resize()},1)}else{var Wt=document.createElement("div");Wt.className="applet_scaler",Wt.style.position="relative",Wt.style.display="block",Wt.appendChild(Ne),we.appendChild(Wt),rn.appletOnLoad=function(De){xn.resize(),jt(De)}}function At(De,An){An&&typeof An.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(De,An.appletOnLoad):renderGGBElement(De),_e("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",An)}function Jt(De,An){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:De,params:An}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Hn){At(Hn.article,Hn.params)}),html5AppletsToProcess=null)},Lt(Tt)<5&&(De.className+=" geogebraweb")):At(De,An)}if(Wn){scriptLoadStarted=!0;for(var Xe=0;Xe<Ne.childNodes.length;Xe++){var zn=Ne.childNodes[Xe].tagName;zn==="TABLE"&&(Ne.removeChild(Ne.childNodes[Xe]),Xe--)}if(ggbHTML5LoadedScript!==null){var En=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');En!=null&&En.parentNode.removeChild(En)}var Ve=document.createElement("script"),wn=function(){Jt(Ne,rn)};Ve.src=Ze+nt,ggbHTML5LoadedCodebaseIsWebSimple=et,ggbHTML5LoadedCodebaseVersion=Tt,ggbHTML5LoadedScript=Ve.src,_e("GeoGebra HTML5 codebase loaded: '"+Ze+"'.",rn),!qt&&(!Ot||Ot=="5.0")?(et?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),wn()):Ze.requirejs?__webpack_require__.e(12).then(function(){var De=[__webpack_require__(12)];wn.apply(null,De)}.bind(this)).catch(__webpack_require__.oe):(Ve.onload=wn,we.appendChild(Ve))}else Jt(Ne,rn);rn.height=Oe,rn.width=de},Qe=function(we,rn,an){var Wn=Ke(rn.width,rn.height,rn.borderColor,an),Ne=document.createElement("div");Ne.style.position="relative",Ne.style.display="block",Ne.style.width=rn.width+"px",Ne.style.height=rn.height+"px",Ne.className="applet_screenshot applet_scaler"+(an?" applet_screenshot_play":""),Ne.appendChild(Wn);var de=GGBAppletUtils.getScale(rn,we,an);an?(we.appendChild(Jn()),window.GGBT_wsf_view||(we.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ne,"66%"),we.appendChild(Ne),de!==1&&!isNaN(de)&&(GGBAppletUtils.scaleElement(Ne,de),Ne.style.width=rn.width+"px",Ne.style.height=rn.height+"px",Ne.parentNode.style.width=rn.width*de+"px",Ne.parentNode.style.height=rn.height*de+"px"),xn.resize=function(){Fe(we,Wn,Ne,an)},window.addEventListener("resize",function(Oe){xn.resize()}),xn.resize()};function Fe(we,rn,an,Wn){if(we.contains(rn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(we)}var Ne=GGBAppletUtils.getScale(Dt,we,Wn);an.parentNode!==null&&(!isNaN(Ne)&&Ne!==1?(GGBAppletUtils.scaleElement(an,Ne),an.parentNode.style.width=Dt.width*Ne+"px",an.parentNode.style.height=Dt.height*Ne+"px"):(GGBAppletUtils.scaleElement(an,1),an.parentNode.style.width=Dt.width+"px",an.parentNode.style.height=Dt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(we),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}xn.onExitFullscreen=function(we,rn){rn.appendChild(we)};var Gn=function(we,rn,an,Wn){Qe(we,rn,!0);for(var Ne=function(){var dn=[];for(Oe=0;Oe<we.childNodes.length;Oe++)dn.push(we.childNodes[Oe]);if(window.GGBT_wsf_view){var He=window.GGBT_wsf_view.renderFullScreen(we,rn.id),jt=document.getElementById("fullscreencontainer"),Pt=jQuery(we).find(".fullscreencontent");Pt.length>0?(He.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(jt).append(Pt),window.dispatchEvent(new Event("resize"))):Le(He,rn,!1),window.GGBT_wsf_view.launchFullScreen(jt)}else nn=Wn,Le(we,rn,!1);if(!window.GGBT_wsf_view)for(Oe=0;Oe<dn.length;Oe++)we.removeChild(dn[Oe])},de=we.getElementsByClassName("ggb_preview_play"),Oe=0;Oe<de.length;Oe++)de[Oe].addEventListener("click",Ne,!1),de[Oe].addEventListener("ontouchstart",Ne,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(we),Yt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Jn=function(){var we=document.createElement("div");if(we.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var rn='.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");}',an=document.createElement("style");an.styleSheet?an.styleSheet.cssText=rn:an.appendChild(document.createTextNode(rn)),document.getElementsByTagName("head")[0].appendChild(an)}return we},Ke=function(we,rn,an,Wn){var Ne=document.createElement("div");Ne.className="ggb_preview",Ne.style.position="absolute",Ne.style.zIndex="90",Ne.style.width=we-2+"px",Ne.style.height=rn-2+"px",Ne.style.top="0px",Ne.style.left="0px",Ne.style.overflow="hidden",Ne.style.backgroundColor="white";var de="lightgrey";an!==void 0&&(an==="none"?de="transparent":de=an),Ne.style.border="1px solid "+de;var Oe=document.createElement("img");if(Oe.style.position="relative",Oe.style.zIndex="1000",Oe.style.top="-1px",Oe.style.left="-1px",ht!==null&&Oe.setAttribute("src",ht),Oe.style.opacity=.7,lt!==null){var dn,He,jt;if(!Wn){dn=document.createElement("img"),dn.style.position="absolute",dn.style.zIndex="1001",dn.style.opacity=1,Oe.style.opacity=.3,He=360,He>we/4*3&&(He=we/4*3),jt=He/5.8,dn.setAttribute("src",lt),dn.setAttribute("width",He),dn.setAttribute("height",jt);var Pt=(we-He)/2,wt=(rn-jt)/2;dn.style.left=Pt+"px",dn.style.top=wt+"px",Ne.appendChild(dn)}}return Ne.appendChild(Oe),Ne},Dn=function(we){return we=we.toLowerCase(),we==="html5"||we==="screenshot"?we:"html5"},$t=["web","webSimple","web3d","tablet","tablet3d","phone"],zt=function(we,rn){if(Tt=we,rn){Gt(Tt,!0);return}var an=!le;if(an){var Wn=Lt(Tt);!isNaN(Wn)&&Wn<4.4&&(an=!1)}var Ne,de;window.location.protocol.substr(0,4)==="http"?Ne=window.location.protocol:Ne="http:";var Oe=Tt.indexOf("//");Oe>0?de=Tt:Oe===0?de=Ne+Tt:de="https://www.geogebra.org/apps/5.2.814.0/";for(var dn in $t)if(Tt.slice($t[dn].length*-1)===$t[dn]||Tt.slice(($t[dn].length+1)*-1)===$t[dn]+"/"){Gt(de,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&an&&!kt.is3D&&!kt.AV&&!kt.SV&&!kt.CV&&!kt.EV2&&!kt.CP&&!kt.PC&&!kt.DA&&!kt.FI&&!kt.PV&&!he(Dt.showToolBar)&&!he(Dt.showMenuBar)&&!he(Dt.showAlgebraInput)&&!he(Dt.enableRightClick)&&(!Dt.appName||Dt.appName=="classic")?de+="webSimple/":de+="web3d/",Gt(de,!1)},Gt=function(we,rn){if(we.requirejs){Ze=we;return}we.slice(-1)!=="/"&&(we+="/"),Ze=we,rn===null&&(rn=we.indexOf("http")===-1),Ce=rn,nt="web.nocache.js",et=!1;var an=Ze.split("/");an.length>1&&(!rn&&an[an.length-2]==="webSimple"?(nt="webSimple.nocache.js",et=!0):$t.indexOf(an[an.length-2])>=0&&(nt=an[an.length-2]+".nocache.js")),an=we.split("/"),Tt=an[an.length-3],Tt.substr(0,4)==="test"?Tt=Tt.substr(4,1)+"."+Tt.substr(5,1):(Tt.substr(0,3)==="war"||Tt.substr(0,4)==="beta")&&(Tt="5.0");var Wn=parseFloat(Tt);Wn!==NaN&&Wn<5&&we.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Wn+" is deprecated. Using version latest instead."),zt("5.0",rn))},_e=function(we,rn){window.console&&window.console.log&&(!rn||typeof rn.showLogging=="undefined"||rn.showLogging&&rn.showLogging!=="false")&&console.log(we)};Dt.material_id!==void 0?ie(Sn):Sn();function Sn(){var we=$n;Ot!==null?we=Ot:parseFloat(we)<5&&(we="5.0"),zt(we,!1),qt!==null&&Gt(qt,Ce),Se=!0}return xn},GGBAppletUtils=function(){"use strict";function xn(){return window.GGBT_wsf_edit!==void 0}function $n(Se,Ot){Ot!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Ot+","+Ot+")",Se.style.webkitTransform="scale("+Ot+","+Ot+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function Dt(Se,Ot,qt,Ee,me,ve){var Ze=null;if(ve!=null&&ve!="")for(var Ce=Se.parentNode;Ce!=null;)if((" "+Ce.className+" ").indexOf(" "+ve+" ")>-1){Ze=Ce;break}else Ce=Ce.parentNode;var nn=0,Tt=0,nt=0,et=0,ht=0,lt=0,pt=0;if(Ze)nn=Ze.offsetWidth,Tt=Math.max(Ee?Ze.offsetWidth:0,Ze.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(nn=Math.min(window.innerWidth,document.documentElement.clientWidth),Tt=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=nn):(nn=window.innerWidth,Tt=window.innerHeight,nt=window.innerWidth),Se){var vt=Se.getBoundingClientRect();vt.left>0&&vt.left<=nn&&(me===void 0||!me)&&(document.dir==="rtl"?(ht=nn-vt.width-vt.left,lt=nt<=480?10:30):(lt=vt.left,ht=nt<=480?10:30),et=lt+ht)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var St=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(et=40,pt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(et=0,pt=40)}}return Se&&((qt===void 0||!qt)&&Ot>0&&Ot+et<nn?nn=Ot:nn-=et,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(qt===void 0||!qt)&&(Tt-=pt)),{width:nn,height:Tt}}function kt(Se,Ot,qt,Ee,me){if(Se.isScreenshoGenerator)return 1;var ve=Ee!==void 0&&Ee,Ze=Se.noScaleMargin!=null&&Se.noScaleMargin,Ce=function(St){return St&&St!=="false"},nn=Ce(Se.autoHeight),Tt=Dt(Ot,Se.width,qt,nn,ve&&window.GGBT_wsf_view||Ze,me),nt=parseInt(Tt.width),et=Se.width,ht=Se.height;if(et===void 0){var lt=Ot.querySelector(".appletParameters");lt&&(et=lt.offsetWidth,ht=lt.offsetHeight)}var pt=nt/et,vt=ve?1:Tt.height/ht;return qt!==void 0&&!qt&&(pt=Math.min(1,pt),vt=Math.min(1,vt)),Math.min(pt,vt)}function le(Se,Ot,qt){var Ee=1,me,ve=!1;if(Se.hasOwnProperty("allowUpscale")&&(ve=Se.allowUpscale),Se.hasOwnProperty("scale")&&(Ee=parseFloat(Se.scale),(isNaN(Ee)||Ee===null||Ee===0)&&(Ee=1),Ee>1&&(ve=!0)),Ot&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ve=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))me=kt(Se,Ot,ve,qt,Se.scaleContainerClass);else return Ee;return ve&&(!Se.hasOwnProperty("scale")||Ee===1)?me:Math.min(Ee,me)}function ze(Se){var Ot=Math.min(window.innerWidth,document.documentElement.clientWidth),qt=Math.min(window.innerHeight,document.documentElement.clientHeight),Ee=Se.getBoundingClientRect(),me=(Ot-Ee.width)/2,ve=(qt-Ee.height)/2;ve<0&&(ve=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(me<40?Se.style.left="40px":Se.style.left=me+"px",Se.style.top=ve+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ve<40?Se.style.top="40px":Se.style.top=ve+"px",Se.style.left=me+"px")}function Ye(Se,Ot){var qt=Se.querySelector(".appletParameters");if(qt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ot.id!==qt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(qt.parentElement&&/fullscreen/.test(qt.parentElement.className))return;var Ee=le(Ot,Se);xn()&&qt.setAttribute("data-param-scale",Ee);for(var me=null,ve=0;ve<Se.childNodes.length;ve++)if(Se.childNodes[ve].className!==void 0&&Se.childNodes[ve].className.match(/^applet_scaler/)){me=Se.childNodes[ve];break}if(me!==null&&me.querySelector(".noscale")!==null)return;var Ze=Ot.id!==void 0?Ot.id:"ggbApplet",Ce=window[Ze];(Ce==null||!Ce.recalculateEnvironments)&&me!==null&&!me.className.match(/fullscreen/)&&(me.parentNode.style.transform="",!isNaN(Ee)&&Ee!==1?(me.parentNode.style.width=Ot.width*Ee+"px",me.parentNode.style.height=Ot.height*Ee+"px",$n(me,Ee)):($n(me,1),me.parentNode.style.width=Ot.width+"px",me.parentNode.style.height=Ot.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ze(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(qt).parents(".content-added-content"))}}return{responsiveResize:Ye,isFlexibleWorksheetEditor:xn,positionCenter:ze,getScale:le,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 Dt=$n?$n():{},kt=xn[webModule.__softPermutationId],le=O;le<kt.length;le++){var ze=kt[le];Dt[ze[O]]=ze[P]}return Dt}};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(kt){function le(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ze=le();if(ze){kt();return}function Ye(){if(!ze){if(!le())return;ze=!0,kt(),o.removeEventListener&&o.removeEventListener(Z,Ye,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Ye,!1);var Se=setInterval(function(){Ye()},$)}function Dt(kt){var le=u(),ze=le.body,Ye=le.createElement(_);Ye.language=ab,Ye.crossOrigin=W,Ye.src=kt,webModule.__errFn&&(Ye.onerror=function(){webModule.__errFn(L,new Error(bb+kt))}),ze.appendChild(Ye)}$n(function(){Dt(xn)})}webModule.__startLoadingFragment=function(xn){return C(xn)},webModule.__installRunAsyncCode=function(xn){var $n=u(),Dt=$n.body,kt=$n.createElement(_);kt.language=ab,kt.text=xn,Dt.appendChild(kt),Dt.removeChild(kt)};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(Se){var Ot=Se.lastIndexOf(rb);Ot==-1&&(Ot=Se.length);var qt=Se.indexOf(sb);qt==-1&&(qt=Se.length);var Ee=Se.lastIndexOf(tb,Math.min(qt,Ot));return Ee>=O?Se.substring(O,Ee+P):W}function $n(Se){if(!Se.match(/^\w+:\/\//)){var Ot=o.createElement(ub);Ot.src=Se+vb,Se=xn(Ot.src)}return Se}function Dt(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function kt(){for(var Se=o.getElementsByTagName(_),Ot=O;Ot<Se.length;++Ot)if(Se[Ot].src.indexOf(xb)!=-1)return xn(Se[Ot].src);return W}function le(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function ze(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Ye=Dt();return Ye==W&&(Ye=kt()),Ye==W&&(Ye=le()),Ye==W&&ze()&&(Ye=xn(o.location.href)),Ye=$n(Ye),Ye}function C(xn){return xn.match(/^\//)||xn.match(/^[a-zA-Z]+:\/\//)?xn:webModule.__moduleBase+xn}function D(){var xn=[],$n=O,Dt=[],kt=[];function le(Se){var Ot=kt[Se](),qt=Dt[Se];if(Ot in qt)return Ot;var Ee=[];for(var me in qt)Ee[qt[me]]=me;throw r&&r(Se,Ee,Ot),null}if(__gwt_isKnownPropertyValue=function(Se,Ot){return Ot in Dt[Se]},webModule.__getPropMap=function(){var Se={};for(var Ot in Dt)Dt.hasOwnProperty(Ot)&&(Se[Ot]=le(Ot));return Se},webModule.__computePropValue=le,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ze;try{ze=Cb;var Ye=ze.indexOf(Db);Ye!=-1&&($n=parseInt(ze.substring(Ye+P),$),ze=ze.substring(O,Ye))}catch(Se){}return webModule.__softPermutationId=$n,C(ze+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})()},15476:function(xn,$n,Dt){"use strict";Dt.d($n,{Ax:function(){return Ye},Ds:function(){return Se},KI:function(){return qt},SI:function(){return ze},f1:function(){return le}});var kt=Dt(11320);function le(Ee){let me=!0;if(Ee.length>0){for(let ve=0;ve<Ee.length;ve++)if(Ee[ve].compile_success==0||!Ee[ve].compile_success){me=!1;break}}else me=!1;return me}function ze(Ee,me=""){let ve=[];for(let Ze=0;Ze<Ee.length;Ze++){let Ce=Ee[Ze],nn=me?`${me}/${Ce.name}`:`${Ce.name}`;ve.push({title:Ce.name,type:Ce.type,isLeaf:Ce.type!=="tree",key:nn})}return ve}function Ye(Ee,me,ve){for(let Ze=0;Ze<Ee.length;Ze++){let Ce=Ee[Ze];if(Ce.key===me){Ce.children=ve;break}Ce.children&&Ye(Ce.children,me,ve)}return Ee}function Se(Ee,me,ve){let Ze;return function(){let Ce=this,nn=arguments,Tt=function(){Ze=null,ve||Ee.apply(Ce,nn)},nt=ve&&!Ze;clearTimeout(Ze),Ze=setTimeout(Tt,me),nt&&Ee.apply(Ce,nn)}}const Ot=!0,qt=kt.Z.API_SERVER},87218:function(xn,$n,Dt){"use strict";var kt=Dt(67294),le=Dt(35973),ze=Dt(28802),Ye=Dt(91773),Se=Dt(2453),Ot=Dt(62844),qt=Dt(57399),Ee=Dt(33170),me=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ce=(et,ht)=>{var lt={};for(var pt in et)ve.call(et,pt)&&ht.indexOf(pt)<0&&(lt[pt]=et[pt]);if(et!=null&&me)for(var pt of me(et))ht.indexOf(pt)<0&&Ze.call(et,pt)&&(lt[pt]=et[pt]);return lt},nn=(et,ht,lt)=>new Promise((pt,vt)=>{var St=Yt=>{try{It(lt.next(Yt))}catch(ie){vt(ie)}},Lt=Yt=>{try{It(lt.throw(Yt))}catch(ie){vt(ie)}},It=Yt=>Yt.done?pt(Yt.value):Promise.resolve(Yt.value).then(St,Lt);It((lt=lt.apply(et,ht)).next())});const Tt=ze.default.TextArea,nt=et=>{var ht=et,{account:lt,globalSetting:pt,loading:vt,dispatch:St,schoolName:Lt,departmentName:It,visible:Yt,onClose:ie=()=>{},onSuccess:re=()=>{}}=ht,Qt=Ce(ht,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]);const[xe]=Ye.default.useForm(),he=(0,kt.useRef)(),[Le,Qe]=(0,kt.useState)(!1);(0,kt.useEffect)(()=>{he.current=Qt.schoolId},[Qt.schoolId]),(0,kt.useEffect)(()=>{xe.setFieldsValue({department:It})},[It]);const Fe=Gn=>nn(void 0,null,function*(){var Jn,Ke,Dn;const{department:$t,remarks:zt}=Gn||{};Qe(!0);const Gt=yield(0,Ee.ZP)("/api/add_department_applies/inspect.json",{method:"get",params:{name:$t,school_id:he.current}});Qe(!1);const _e=()=>nn(void 0,null,function*(){const Sn=yield St({type:"account/appplyDepartment",payload:{school_id:he.current,name:$t,remarks:zt}});(Sn==null?void 0:Sn.status)===0&&(Se.ZP.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),re($t),ie())});if((Gt==null?void 0:Gt.status)===0){if((Jn=Gt==null?void 0:Gt.data)!=null&&Jn.name){Ot.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:kt.createElement("div",null,kt.createElement("div",{className:"mb10"},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u7533\u8BF7\u65B0\u589E\u7684\u90E8\u95E8\u5DF2\u5B58\u5728\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4E3A\u8BE5\u90E8\u95E8\uFF1F"),kt.createElement(qt.default,{rowKey:"name",columns:[{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"name"},{title:"\u7528\u6237\u6570",dataIndex:"size"}],dataSource:[{name:(Ke=Gt==null?void 0:Gt.data)==null?void 0:Ke.name,size:(Dn=Gt==null?void 0:Gt.data)==null?void 0:Dn.size}],pagination:!1})),onOk:()=>{re($t),ie()}});return}_e()}});return kt.createElement(Ot.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Yt,title:"\u7533\u8BF7\u6DFB\u52A0\u90E8\u95E8\u540D\u79F0",width:"600px",onCancel:ie,onOk:()=>xe.submit(),confirmLoading:Le},kt.createElement(Ye.default,{form:xe,labelCol:{span:4},wrapperCol:{span:20},onFinish:Fe},kt.createElement(Ye.default.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},Lt),kt.createElement(Ye.default.Item,{label:"\u90E8\u95E8\u540D\u79F0\uFF1A",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"}]},kt.createElement(ze.default,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),kt.createElement(Ye.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks",style:{marginBottom:0}},kt.createElement(Tt,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"}))))};$n.Z=(0,le.connect)(({account:et,loading:ht,globalSetting:lt})=>({account:et,globalSetting:lt,loading:ht.effects}))(nt)},60580:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return Tt}});var kt=Dt(85804),le=Dt(67294),ze=Object.defineProperty,Ye=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,me=(nt,et,ht)=>et in nt?ze(nt,et,{enumerable:!0,configurable:!0,writable:!0,value:ht}):nt[et]=ht,ve=(nt,et)=>{for(var ht in et||(et={}))qt.call(et,ht)&&me(nt,ht,et[ht]);if(Ot)for(var ht of Ot(et))Ee.call(et,ht)&&me(nt,ht,et[ht]);return nt},Ze=(nt,et)=>Ye(nt,Se(et)),Ce=(nt,et)=>{var ht={};for(var lt in nt)qt.call(nt,lt)&&et.indexOf(lt)<0&&(ht[lt]=nt[lt]);if(nt!=null&&Ot)for(var lt of Ot(nt))et.indexOf(lt)<0&&Ee.call(nt,lt)&&(ht[lt]=nt[lt]);return ht},nn=(nt,et,ht)=>new Promise((lt,pt)=>{var vt=It=>{try{Lt(ht.next(It))}catch(Yt){pt(Yt)}},St=It=>{try{Lt(ht.throw(It))}catch(Yt){pt(Yt)}},Lt=It=>It.done?lt(It.value):Promise.resolve(It.value).then(vt,St);Lt((ht=ht.apply(nt,et)).next())});const Tt=nt=>{var et=nt,{children:ht}=et,lt=Ce(et,["children"]);const[pt,vt]=(0,le.useState)(!1);return le.createElement(kt.ZP,Ze(ve({},lt),{loading:pt,onClick:St=>nn(void 0,null,function*(){try{vt(!0),yield lt.onClick(St),vt(!1)}catch(Lt){console.error(Lt),vt(!1)}})}),ht)}},63205:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return Ze}});var kt=Dt(67294),le={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ze=Dt(94184),Ye=Dt.n(ze),Se=Dt(74330),Ot=Dt(15979),qt=Dt(33170),Ee=Dt(28706),me=(Ce,nn,Tt)=>new Promise((nt,et)=>{var ht=vt=>{try{pt(Tt.next(vt))}catch(St){et(St)}},lt=vt=>{try{pt(Tt.throw(vt))}catch(St){et(St)}},pt=vt=>vt.done?nt(vt.value):Promise.resolve(vt.value).then(ht,lt);pt((Tt=Tt.apply(Ce,nn)).next())}),Ze=({data:Ce,className:nn,fullWidth:Tt,style:nt={},onClose:et,onOk:ht,showFullTools:lt,noAssociationId:pt})=>{const vt=(0,kt.useRef)(null),St=(0,kt.useRef)(null),Lt=(0,kt.useRef)(null),It=(0,kt.useRef)(null),[Yt,ie]=(0,kt.useState)(!1),[re,Qt]=(0,kt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,kt.useEffect)(()=>(Lt.current||(Lt.current=document.createElement("style"),document.head.appendChild(Lt.current)),Ce!=null&&Ce.visible?(document.body.setAttribute("data-custom","y-hidden"),Lt.current.innerHTML=" html { overflow-y: hidden; }",Ce!=null&&Ce.src&&xe()):(document.body.removeAttribute("data-custom"),Lt.current&&(document.head.removeChild(Lt.current),Lt.current=null)),()=>{document.body.removeAttribute("data-custom"),Lt.current&&(document.head.removeChild(Lt.current),Lt.current=null)}),[Ce==null?void 0:Ce.visible]);const xe=()=>me(void 0,null,function*(){ie(!0),Qt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Fe=yield(0,Ee.ZJ)(Ce==null?void 0:Ce.src);vt.current.src="",vt.current.src=Fe,vt.current.onload=function(){Qe()},ie(!1),Qt("")}),he=Fe=>me(void 0,null,function*(){ie(!0),Qt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Gn=yield(0,qt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ce.title,file:Fe.dataUrl}});Gn!=null&&Gn.id&&!pt?(yield(0,qt.ZP)(`/api/attachments/${Ce.id}/add_subitem.json`,{method:"post",body:{subitem_id:Gn==null?void 0:Gn.id,settings:JSON.stringify(Fe.state)}})).status===0&&ht():Gn!=null&&Gn.id&&ht(Gn),ie(!1),Qt("")}),Le=()=>{const Fe=document.querySelector('a[href="https://markerjs.com/"]');Fe&&Fe.parentNode&&(Fe.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(Jn=>{const Ke=document.querySelector(Jn.name);Ke&&Ke.setAttribute("title",Jn.title)})},Qe=()=>{St.current=new Ot.hP(vt.current),St.current.targetRoot=It.current,St.current.addEventListener("render",he),St.current.addEventListener("beforeclose",et),lt&&(St.current.availableMarkerTypes=St.current.ALL_MARKER_TYPES,St.current.uiStyleSettings.redoButtonVisible=!0,St.current.uiStyleSettings.notesButtonVisible=!0,St.current.uiStyleSettings.zoomButtonVisible=!0,St.current.uiStyleSettings.zoomOutButtonVisible=!0,St.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=St.current.uiStyleSettings,St.current.show(),Ce!=null&&Ce.snapshotData&&St.current.restoreState(Ce.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Le()},300)};return kt.createElement(kt.Fragment,null,(Ce==null?void 0:Ce.visible)&&kt.createElement(Se.Z,{spinning:Yt,tip:re,style:{position:"absolute",width:"100vw"}},kt.createElement("div",{ref:It,className:Ye()(le.imageDimensions,nn,Tt?le.fullWidth:""),style:nt},kt.createElement("img",{className:le.img,ref:vt}))))}},36527:function(xn,$n,Dt){"use strict";var kt=Dt(67294),le=Dt(71230),ze=Dt(15746),Ye=Dt(55238),Se=Dt(85804),Ot=Dt(65226),qt=Dt(71736),Ee=Dt(84279),me=Dt(67294);const ve=(0,kt.forwardRef)(({callback:Ze,showSaveButton:Ce,value:nn=""},Tt)=>{const nt=(0,kt.useRef)(),et=[{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 "}]}]}],ht=[{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=St=>{nt.current.setValue(nt.current.getValue()+" "+St.value+" ")},pt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:me.createElement(le.Z,{className:qt.Z.lists,gutter:[10,10]},et.map((St,Lt)=>me.createElement(ze.Z,{flex:"110px",className:qt.Z.item},me.createElement("div",null,me.createElement(Ot.Z,{value:`$$${St.value}$$`}),St.name),me.createElement("div",{className:qt.Z.children},St.children.map((It,Yt)=>me.createElement("div",{key:Yt},me.createElement("h1",null,It.name),me.createElement(le.Z,{gutter:[10,10]},It.data.map((ie,re)=>me.createElement(ze.Z,{key:re,onClick:()=>lt(ie),className:qt.Z.diamond},me.createElement(Ot.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:me.createElement(le.Z,{className:qt.Z.lists,gutter:[10,10]},ht.map((St,Lt)=>me.createElement(ze.Z,{flex:"110px",className:qt.Z.item},me.createElement("div",null,me.createElement(Ot.Z,{value:"`$$"+St.value+"$$`"}),St.name),me.createElement("div",{className:qt.Z.children},St.children.map((It,Yt)=>me.createElement("div",{key:Yt},It.name&&me.createElement("h1",null,It.name),me.createElement(le.Z,{gutter:[10,10]},It.data.map((ie,re)=>me.createElement(ze.Z,{key:re,onClick:()=>lt(ie),className:qt.Z.diamond},me.createElement(Ot.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],vt=()=>{var St=document.createElement("div");St.innerHTML=nt.current.getValue();var Lt=St.innerText;return Ze&&Ze(Lt),Lt};return(0,kt.useImperativeHandle)(Tt,()=>({getData:vt})),me.createElement("div",{className:qt.Z.mathWrap},me.createElement(Ye.default,{defaultActiveKey:"1",items:pt}),me.createElement("math-field",{locale:"zh_cn",className:qt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:nt,style:{width:800,marginTop:30,fontSize:18}},nn||""),Ce&&me.createElement("div",{className:qt.Z.button},me.createElement(Se.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});$n.Z=ve},26194:function(xn,$n,Dt){"use strict";var kt=Dt(67294),le=Dt(4977),ze=Dt(85804),Ye=Object.defineProperty,Se=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,qt=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,ve=(Tt,nt,et)=>nt in Tt?Ye(Tt,nt,{enumerable:!0,configurable:!0,writable:!0,value:et}):Tt[nt]=et,Ze=(Tt,nt)=>{for(var et in nt||(nt={}))Ee.call(nt,et)&&ve(Tt,et,nt[et]);if(qt)for(var et of qt(nt))me.call(nt,et)&&ve(Tt,et,nt[et]);return Tt},Ce=(Tt,nt)=>Se(Tt,Ot(nt));const nn=({img:Tt,buttonProps:nt={},styles:et={},customText:ht,ButtonText:lt,ButtonClick:pt,Buttonclass:vt,ButtonTwo:St,imgStyles:Lt,loading:It=!1,className:Yt=""})=>kt.createElement("section",{className:`tc animated fadeIn ${Yt}`,style:Ze({color:"#999",margin:"100px auto",visibility:It?"hidden":"visible"},et)},kt.createElement("img",{src:Tt||le,style:Ce(Ze({},Lt),{pointerEvents:"none",userSelect:"none"})}),kt.createElement("p",{className:"mt20 font14"},ht||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&kt.createElement(ze.ZP,Ze({className:vt,onClick:pt},nt),lt),St&&St);$n.Z=nn},20819:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return vt}});var kt=Dt(67294),le={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ze=Dt(85804),Ye=Dt(30153),Se=Dt(36295),Ot=Dt(83062),qt=Dt(28706),Ee=Dt(15835),me=Dt(26194),ve=Dt(11320),Ze=Dt(66540),Ce=Dt(67294),nn=Object.defineProperty,Tt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,ht=(St,Lt,It)=>Lt in St?nn(St,Lt,{enumerable:!0,configurable:!0,writable:!0,value:It}):St[Lt]=It,lt=(St,Lt)=>{for(var It in Lt||(Lt={}))nt.call(Lt,It)&&ht(St,It,Lt[It]);if(Tt)for(var It of Tt(Lt))et.call(Lt,It)&&ht(St,It,Lt[It]);return St},pt=(St,Lt,It)=>new Promise((Yt,ie)=>{var re=he=>{try{xe(It.next(he))}catch(Le){ie(Le)}},Qt=he=>{try{xe(It.throw(he))}catch(Le){ie(Le)}},xe=he=>he.done?Yt(he.value):Promise.resolve(he.value).then(re,Qt);xe((It=It.apply(St,Lt)).next())}),vt=({editOffice:St="view",data:Lt,issaver:It,onSaver:Yt,theme:ie,type:re,filename:Qt,monacoEditor:xe,className:he,style:Le,close:Qe,onClose:Fe,hasMask:Gn,disabledDownload:Jn,onImgDimensions:Ke,showNodata:Dn,recordInfo:$t})=>{const[zt,Gt]=(0,kt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[_e,Sn]=(0,kt.useState)(""),[we,rn]=(0,kt.useState)(),an=window.ENV==="build"?"/react/build":"",Wn=location.host.startsWith("localhost")?ve.Z.PROXY_SERVER:ve.Z.API_SERVER,de=10*(1024*1024),Oe=(0,kt.useRef)();Lt!=null&&Lt.startsWith("/api")&&re!=="txt"&&(Lt=ve.Z.API_SERVER+Lt);const dn=Ft=>Ft.substring(Ft.lastIndexOf("/")+1).split(".").pop();Qt&&xe&&(xe.filename=Qt),(0,kt.useEffect)(()=>{var Ft,Wt;const At=(Wt=(Ft=document.cookie)==null?void 0:Ft.replace(/\s/g,""))==null?void 0:Wt.split(";");At==null||At.map(Jt=>{let Xe=Jt.split("=");Xe[0]==="_educoder_session"&&Sn(Xe[1])})},[]),(0,kt.useEffect)(()=>{re==="office"&&(Lt.indexOf("bigfilescdn.")>-1||Lt.indexOf("bigfiles1")>-1?rn({url:Lt,fileType:dn(Lt),model:Lt.indexOf("model=edit")?"edit":"view"}):jt())},[re,Lt]);function He(Ft){return pt(this,null,function*(){Ft.data.type==="pdfdata"&&(Yt(Ft.data.data),window.removeEventListener("message",He,!1)),console.log("mess---:",Ft.data)})}const jt=()=>pt(void 0,null,function*(){console.log("data:",Lt);let Ft=Lt;Lt.startsWith("http")||(Ft=location.origin+Ft);let Wt=new URL(Ft).pathname.split("/").pop();const At=yield(0,Ee.gJ)({attachment_id:Wt});At.url=Wn+At.url,rn(At)}),Pt=()=>{if(Lt.startsWith("http")||Lt.startsWith("blob:")){wt();return}(0,qt.Sv)(Qt||"educoder",Lt,Qt)},wt=()=>{$t&&(0,Ze.fc)({id:$t==null?void 0:$t.id,watch_type:1,course_id:$t==null?void 0:$t.course_id}),(0,qt.Nd)(Qt||"educoder",decodeURIComponent(Lt))};return Ce.createElement("div",{style:lt({},Le||{}),className:`${Gn&&le.bgBlack} ${re?le.wrp:"hide"}`},Qe&&Ce.createElement("div",{className:le.close,ref:Oe},!!Ke&&Ce.createElement(Ot.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Oe.current},Ce.createElement("span",{onClick:()=>{Fe(),Ke()}},Ce.createElement("i",{className:"icon-yulanpizhu"}))),!Jn&&Ce.createElement(Ot.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Oe.current},Ce.createElement("span",{onClick:wt},Ce.createElement("i",{className:"icon-quxiaozhiding"}))),It&&Ce.createElement(Ot.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Oe.current},Ce.createElement("span",{className:"",onClick:()=>{const Ft=document.getElementById("pdfiframe");window.addEventListener("message",He,!1),setTimeout(()=>{Ft.contentWindow.postMessage("getData","*")},300)}},Ce.createElement("i",{className:"icon-baocun"}))),Ce.createElement(Ot.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Oe.current},Ce.createElement("span",{className:"",onClick:()=>{Fe()}},Ce.createElement("i",{className:"icon-guanbi1"})))),Ce.createElement("div",{className:`${le[he]} ${he} ${le.monaco} ${re==="txt"?"show":"hide"}`},re==="txt"&&Ce.createElement(Ce.Fragment,null,Ce.createElement(Se.ZP,lt({},xe)))),re==="audio"&&Ce.createElement("audio",{src:`${(Lt==null?void 0:Lt.indexOf("http://"))>-1||(Lt==null?void 0:Lt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Lt}`,autoPlay:!0}),re==="video"&&Ce.createElement(Ce.Fragment,null,(Lt==null?void 0:Lt.indexOf("http"))>-1?Ce.createElement("video",{controls:!0,src:`${Lt}`,autoPlay:!0}):Ce.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Lt}`,autoPlay:!0})),re==="office"&&we&&Ce.createElement("iframe",{src:`${an}/office.html?key=${we.key}&url=${btoa(we.url)}&callbackUrl=${Wn+(we.callbackUrl||"")}&fileType=${we.fileType}&title=${we.title||""}&model=${St}&officeServer=${ve.Z.ONLYOFFICE}&disabledDownload=${!!Jn}`}),re==="html"&&Ce.createElement("iframe",{src:Lt+"&disposition=inline"}),re==="pdf"&&Ce.createElement("iframe",{id:"pdfiframe",src:`${an}/js/pdfview/index.html?filename=${Qt||"educoder.pdf"}&url=${encodeURIComponent(Lt)}&disabledDownload=${!!Jn}&model=${St}`}),re==="image"&&Ce.createElement("img",{src:`${(Lt==null?void 0:Lt.indexOf("http://"))>-1||(Lt==null?void 0:Lt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Lt}`}),(re==="other"||re==="download")&&Ce.createElement(Ce.Fragment,null,Dn?Ce.createElement(me.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ce.createElement(ze.ZP,{icon:Ce.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Pt,disabled:Jn},"\u4E0B\u8F7D")}):Ce.createElement(ze.ZP,{type:"primary",size:"middle",onClick:Pt,disabled:Jn},Ce.createElement(Ye.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},65226:function(xn,$n,Dt){"use strict";Dt.d($n,{z:function(){return re},Z:function(){return Qt}});var kt=Dt(67294),le=Dt(81897),ze=Dt(51161),Ye=Dt(11771),Se=Dt(67631),Ot=Dt.n(Se),qt=Dt(11320),Ee=Dt(28706),me=Dt(20527),ve=Dt(25934),Ze=Dt(20819),Ce=Dt(67294),Tt=({html:xe})=>{const he=(0,kt.useRef)(null),Le=(0,kt.useRef)(null),Qe=`.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,kt.useEffect)(()=>{const Fe=he.current.attachShadow({mode:"open"});Le.current=document.createElement("div"),Le.current.className="markdown-body",Le.current.innerHTML=xe,Fe.appendChild(Le.current);const Gn=document.createElement("style");return Gn.textContent=Qe,Fe.appendChild(Gn),()=>{Fe.innerHTML=""}},[]),(0,kt.useEffect)(()=>{Le.current&&(Le.current.innerHTML=xe)},[xe]),Ce.createElement("div",{ref:he})};function nt(xe){const he=["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"],Le=new RegExp(`\\b(${he.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return xe.replace(Le,"").trim()}var et=Object.defineProperty,ht=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,vt=(xe,he,Le)=>he in xe?et(xe,he,{enumerable:!0,configurable:!0,writable:!0,value:Le}):xe[he]=Le,St=(xe,he)=>{for(var Le in he||(he={}))lt.call(he,Le)&&vt(xe,Le,he[Le]);if(ht)for(var Le of ht(he))pt.call(he,Le)&&vt(xe,Le,he[Le]);return xe};const Lt="@\u2581\u2581@",It="@\u2581@",Yt=/<pre[^>]*>/g;function ie(xe){let he=document.createElement("div");return he.innerHTML=xe,he.childNodes.length===0?"":he.childNodes[0].nodeValue}const re=(xe,he)=>{xe=xe||"";const Le=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Qe=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Fe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Gn=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return he?xe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Le,(Jn,Ke,Dn,$t,zt,Gt,_e)=>{const Sn=Ke||$t||Gt,we=Dn||zt||_e||"?";return qt.Z.API_SERVER+"/api/attachments/"+Sn+we+"&t="+(0,Ee.Jn)(Sn,Date.now())+(Jn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(xe=xe.replace(Gn,(Jn,Ke,Dn,$t,zt,Gt,_e)=>{const Sn=Ke||$t||Gt,we=Dn||zt||_e||"?";return qt.Z.API_SERVER+"/attachments/download/"+Sn+we+"&t="+(0,Ee.Jn)(Sn,Date.now())+(Jn.indexOf(")")>-1?")":"&")}).replace(Le,(Jn,Ke,Dn,$t,zt,Gt,_e)=>{const Sn=Ke||$t||Gt,we=Dn||zt||_e||"?";return qt.Z.API_SERVER+"/api/attachments/"+Sn+we+"&t="+(0,Ee.Jn)(Sn,Date.now())+(Jn.indexOf(")")>-1?")":"&")}).replace(Qe,(Jn,Ke,Dn,$t,zt)=>{const Gt=Ke||$t,_e=Dn||zt||"";return'"'+qt.Z.API_SERVER+"/api/attachments/"+Gt+_e+Gt+_e+"&t="+(0,Ee.Jn)(Gt,Date.now())}).replace(Fe,(Jn,Ke,Dn,$t,zt)=>{const Gt=Ke||$t,_e=Dn||zt||"";return"("+qt.Z.API_SERVER+"/files/uploads/"+Gt+_e+Gt+_e+"&t="+(0,Ee.Jn)(Gt,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,`
`),xe)};var Qt=({value:xe="",className:he,showTextOnly:Le,showLines:Qe,style:Fe={},stylesPrev:Gn={},highlightKeywords:Jn,showProgramFill:Ke,isProgramFill:Dn,disabledFill:$t=!1,programFillValue:zt,onFillChange:Gt=we=>{},onFillBlur:_e=()=>{},onFillFocus:Sn=()=>{}})=>{let we=nt(String(xe||""));const[rn,an]=(0,kt.useState)(""),[Wn,Ne]=(0,kt.useState)("office"),[de,Oe]=(0,kt.useState)([]),dn=(0,kt.useRef)("a"+(0,ve.Z)()),He={},jt=De=>/<style[\s\S]*?>/i.test(De||""),Pt=(De,An,Hn)=>{const Si=document.createElement(De===It?"input":"textarea");Si.style.width="100%",Si.style.height=De===It?"40px":"151px",Si.rows=5,Si.spellcheck=!1,Si.name="edu-program-fill",Si.placeholder="\u8BF7\u8F93\u5165",Si.dataset.id=An;const Un=Object.keys(He).length;return He[Un]=Si,`<span class="edu-program-fill-wrap ${De===It?"":"show"}" style="width:${De===It?"600px":"100%"}" title=${Hn||""}><span>${Si.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function wt(De){return De=De.replace(/!\[.*?\]\(.*?\)/g,""),De=De.replace(/\[.*?\]\(.*?\)/g,""),De=De.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),De=De.replace(/<embed.*?>/g,""),De=De.replace(/<img.*?>/g,""),De=De.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),De=De.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),De=De.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),De=De.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),De}const Ft=De=>!Le&&jt(we)?De:De.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(An,Hn){let Si=Hn.replace(/(\n|\r)/g,"").split("}"),Un=[];return Si.map(Ui=>{Ui!=""&&Un.push(`.${dn.current} ${Ui}`)}),`<style>${Un.join("}")}</style>`}),Wt=(0,kt.useMemo)(()=>{try{const Si=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Un=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ui=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Yi=/\(\/attachments\/download\//g;we=we.replace(Yi,"("+qt.Z.API_SERVER+"/attachments/download/").replace(Si,"("+qt.Z.API_SERVER+"/api/attachments/").replace(Un,'"'+qt.Z.API_SERVER+"/api/attachments/").replace(Ui,'"'+qt.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(Si){}if(Ke){let Si=-1;return we=we.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Un,Ui,Yi){var di;return++Si,Pt(Un,Si,(di=zt==null?void 0:zt[Si])==null?void 0:di.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ft(we||"")}</pre>`}let De=Ft(we);De=(0,ze.ZP)(De);const An=(0,ze.ez)();we.match(/\[TOC\]/)&&(De=De.replace("<p>[TOC]</p>",(0,ze.Qv)()),(0,ze.Iy)()),De=De.replace(/(__special_katext_id_\d+__)/g,(Si,Un)=>{const{type:Ui,expression:Yi}=An[Un];return(0,me.renderToString)(ie(Yi)||"",{displayMode:Ui==="block",throwOnError:!1,output:"html"})}),De=De.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ze.AL)();const Hn=document.createElement("div");if(Hn.innerHTML=De,Le)return Hn.innerText;if(Jn){const Si=Jn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return zn(Hn,Si),Hn.innerHTML}return setTimeout(()=>wn(),500),Hn.innerHTML},[we,Jn]);(0,kt.useEffect)(()=>{En.current&&En.current.querySelectorAll(["input","textarea"]).forEach(An=>{An.oninput=At,An.onblur=Jt,An.onfocus=Xe})},[de]),(0,kt.useEffect)(()=>{var De,An,Hn,Si,Un;if(zt!=null&&zt.length)try{const Ui=En.current.querySelectorAll(".edu-program-fill-score"),Yi=En.current.querySelectorAll('[name="edu-program-fill"]');for(const[di,vi]of Yi.entries())vi.value=((De=zt==null?void 0:zt[di])==null?void 0:De.value)||"",((An=zt==null?void 0:zt[di])==null?void 0:An.type)==="warning"?vi.className="program-fill-warning":((Hn=zt==null?void 0:zt[di])==null?void 0:Hn.type)==="success"?vi.className="program-fill-success":vi.className="";for(const[di,vi]of Ui.entries())vi.innerHTML=(Si=zt==null?void 0:zt[di])!=null&&Si.score?`${(Un=zt==null?void 0:zt[di])==null?void 0:Un.score}\u5206`:"";Oe(zt)}catch(Ui){console.log(Ui,"error")}},[zt]);const At=De=>{de[De.target.dataset.id]=de[De.target.dataset.id]||{},de[De.target.dataset.id].value=De.target.value,Oe([...de]),Gt(de,De.target.dataset.id)},Jt=De=>{de[De.target.dataset.id]=de[De.target.dataset.id]||{},de[De.target.dataset.id].value=De.target.value,Oe([...de]),_e(de,De.target.dataset.id)},Xe=De=>{de[De.target.dataset.id]=de[De.target.dataset.id]||{},de[De.target.dataset.id].value=De.target.value,Oe([...de]),Sn(de,De.target.dataset.id)};function zn(De,An){return De.childNodes.forEach(Hn=>{var Si;if(Hn.childNodes.length>0)zn(Hn,An);else if(Hn.nodeName!=="IMG")if(Hn.innerHTML)Hn.innerHTML=(Si=Hn.innerHTML)==null?void 0:Si.replace(new RegExp(An,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Un=document.createElement("span");Un.innerHTML=Hn.textContent.replace(new RegExp(An,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Hn.replaceWith(Un)}})}const En=(0,kt.useRef)();ze.jb.WebkitLineClamp=Qe,Qe&&(Fe=St(St({},Fe),ze.jb));function Ve(De){let An=De.target;if(An.tagName.toUpperCase()==="A"){let Hn=An.getAttribute("href");if(Hn.indexOf("office")>-1)De.preventDefault(),an(Hn),Ne("office");else if(Hn.indexOf("application/pdf")>-1)De.preventDefault(),an(Hn),Ne("pdf");else if(Hn.indexOf("text/html")>-1)De.preventDefault(),an(Hn),Ne("html");else if(Hn.startsWith("#")){De.preventDefault();let Si=document.getElementById(Hn.replace("#",""));Si&&Si.scrollIntoView(!0)}}}const wn=()=>{var De;const An=(De=En.current)==null?void 0:De.querySelectorAll("video");An==null||An.forEach(Hn=>{if(Hn.oncontextmenu=()=>!1,Hn.src.indexOf(".m3u8")>-1&&!Hn.canPlayType("application/vnd.apple.mpegurl")){if(Ot().isSupported()){var Si=new(Ot());Si.loadSource(Hn.src),Si.attachMedia(Hn)}}})};return(0,kt.useEffect)(()=>{if(En.current&&Wt&&Wt.match(Yt)&&window.PR.prettyPrint(),En.current)return En.current.addEventListener("click",Ve),()=>{var De;(De=En.current)==null||De.removeEventListener("click",Ve),(0,ze.AL)(),(0,ze.Iy)()}},[Wt,En.current,Ve]),(0,kt.useEffect)(()=>{var De;const An=Hn=>{Hn.preventDefault(),Hn.clipboardData.setData("text",window.getSelection().toString())};return(De=En.current)==null||De.addEventListener("copy",An),()=>{var Hn;(Hn=En.current)==null||Hn.removeEventListener("copy",An)}},[En.current]),kt.createElement(kt.Fragment,null,Le&&kt.createElement("div",{ref:En},Wt),!Le&&!jt(Wt)&&kt.createElement("div",{ref:En,style:St({},Fe),className:`${he||""} ${$t?"disabled-fill":""} markdown-body ${dn.current}`,dangerouslySetInnerHTML:{__html:Wt}}),!Le&&jt(Wt)&&kt.createElement(Tt,{html:Wt}),kt.createElement(Ze.Z,{close:!0,data:rn,type:rn!=null&&rn.length?Wn:"",style:St({},Gn),onClose:()=>an("")}))}},57444:function(xn,$n,Dt){"use strict";Dt.d($n,{h:function(){return St}});var kt=Dt(67294),le=Dt(88044),ze=Dt(91773),Ye=Dt(85804),Se=Dt(4631),Ot=Dt.n(Se),qt=Dt(71749),Ee=Dt(30483),me=Object.defineProperty,ve=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,nt=(Lt,It,Yt)=>It in Lt?me(Lt,It,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):Lt[It]=Yt,et=(Lt,It)=>{for(var Yt in It||(It={}))nn.call(It,Yt)&&nt(Lt,Yt,It[Yt]);if(Ce)for(var Yt of Ce(It))Tt.call(It,Yt)&&nt(Lt,Yt,It[Yt]);return Lt},ht=(Lt,It)=>ve(Lt,Ze(It));const lt=le.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:Lt,onCancel:It})=>{const[Yt,ie]=(0,kt.useState)("python");function re(xe){ie(vt[xe][1])}function Qt(xe){Lt(xe)}return kt.createElement(ze.default,ht(et({},pt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Qt,style:{width:500}}),kt.createElement(ze.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},kt.createElement(le.default,{getPopupContainer:xe=>xe.parentNode,onChange:re},Object.keys(vt).map(xe=>kt.createElement(lt,{key:xe,value:xe},vt[xe][0])))),kt.createElement(ze.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},kt.createElement(St,{mode:Yt})),kt.createElement("div",{className:"flex-container flex-end"},kt.createElement(Ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),kt.createElement(Ye.ZP,{type:"ghost",onClick:It},"\u53D6\u6D88")))};function St({value:Lt,onChange:It,mode:Yt,options:ie={}}){const re=(0,kt.useRef)(),[Qt,xe]=(0,kt.useState)();return(0,kt.useEffect)(()=>{if(Qt){let he=function(Le){const Qe=Le.getValue();It&&It(Qe)};return Qt.on("change",he),()=>{Qt.off("change",he)}}},[Qt,It]),(0,kt.useEffect)(()=>{Qt&&Qt.setOption("mode",Yt)},[Qt,Yt]),(0,kt.useEffect)(()=>{Qt&&(Lt!==Qt.getValue()||Lt==="")&&setTimeout(()=>{Qt.setValue(Lt||"")},300)},[Qt,Lt]),(0,kt.useEffect)(()=>{if(re.current&&!Qt){const he=Ot().fromTextArea(re.current,et({mode:Yt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));xe(he)}},[re.current,Qt]),kt.createElement("div",{className:"my-codemirror-container"},kt.createElement("textarea",{ref:re}))}},35567:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return Ii}});var kt=Dt(67294),le=Dt(4631),ze=Dt.n(le),Ye=Dt(91033),Se=Dt(71749),Ot=Dt(57341),qt=Dt(82801),Ee=Dt(88386),me=Dt(49047),ve=Dt(80785),Ze=Dt(65226),Ce=({value:Ie="",className:Re,showTextOnly:se,showLines:je,style:ti={}})=>{const _n=(0,kt.useMemo)(()=>"",[Ie]);return kt.createElement(kt.Fragment,null,kt.createElement("div",{dangerouslySetInnerHTML:{__html:_n}}))},nn=Object.defineProperty,Tt=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,pt=(Ie,Re,se)=>Re in Ie?nn(Ie,Re,{enumerable:!0,configurable:!0,writable:!0,value:se}):Ie[Re]=se,vt=(Ie,Re)=>{for(var se in Re||(Re={}))ht.call(Re,se)&&pt(Ie,se,Re[se]);if(et)for(var se of et(Re))lt.call(Re,se)&&pt(Ie,se,Re[se]);return Ie},St=(Ie,Re)=>Tt(Ie,nt(Re));let Lt=[{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 It({onActionCallback:Ie,title:Re,icon:se,actionName:je,className:ti="",children:_n}){function Zn(){Ie(je)}return kt.createElement("a",{title:Re,className:ti,onClick:Zn},kt.createElement("i",{className:`${se}`}),_n)}var Yt=({watch:Ie,showNullButton:Re,showNullProgramButton:se,onActionCallback:je,fullScreen:ti,insertTemp:_n,hidetoolBar:Zn,extraUse:Me})=>{const un=[...Lt,{title:`${Ie?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ie?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return kt.createElement("ul",{className:"markdown-toolbar-container"},!Zn&&un.map((xi,Di)=>kt.createElement("li",{key:Di},xi.actionName?kt.createElement(It,St(vt({},xi),{onActionCallback:je})):kt.createElement("span",{className:"v-line"}))),Re?kt.createElement("li",null,kt.createElement(It,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:je},kt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,se?kt.createElement(kt.Fragment,null,kt.createElement("li",null,kt.createElement(It,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:je},kt.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),kt.createElement("li",null,kt.createElement(It,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:je},kt.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,_n&&kt.createElement("li",null,kt.createElement(It,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${_n}`,onActionCallback:je},kt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Me&&kt.createElement("li",null,Me),kt.createElement("li",{className:"btn-full-screen"},kt.createElement(It,{icon:`${ti?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ti?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:je})))},ie=Dt(76621),re=Dt(91773),Qt=Dt(28802),xe=Dt(85804),he=Object.defineProperty,Le=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable,Ke=(Ie,Re,se)=>Re in Ie?he(Ie,Re,{enumerable:!0,configurable:!0,writable:!0,value:se}):Ie[Re]=se,Dn=(Ie,Re)=>{for(var se in Re||(Re={}))Gn.call(Re,se)&&Ke(Ie,se,Re[se]);if(Fe)for(var se of Fe(Re))Jn.call(Re,se)&&Ke(Ie,se,Re[se]);return Ie},$t=(Ie,Re)=>Le(Ie,Qe(Re));const zt={labelCol:{span:4},wrapperCol:{span:20}};var Gt=({callback:Ie,onCancel:Re})=>{function se(je){Ie(je)}return kt.createElement(re.default,$t(Dn({},zt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:se,style:{width:500}}),kt.createElement(re.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},kt.createElement(Qt.default,null)),kt.createElement(re.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},kt.createElement(Qt.default,null)),kt.createElement("div",{className:"flex-container flex-end"},kt.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),kt.createElement(xe.ZP,{type:"ghost",onClick:Re},"\u53D6\u6D88")))},_e=Dt(57444),Sn=Dt(70859),we=Dt(62844),rn=Dt(71230),an=Dt(63205),Wn=Dt(67294),Ne=({callback:Ie,onCancel:Re})=>{const se=document.createElement("canvas"),je=se.getContext("2d");se.width=1e3,se.height=800,je.fillStyle="#ffffff",je.fillRect(0,0,se.width,se.height);const ti=se.toDataURL("image/png");return Wn.createElement(we.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Wn.createElement(rn.Z,{style:{height:"100vh"}},Wn.createElement(an.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ti,visible:!0,title:String(Date.now())},onOk:_n=>{Ie({src:_n.url})},onClose:Re})))},de=Dt(23495);function Oe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Oe,go.CommandHandler),Oe.prototype.canAlignSelection=function(){var Ie=this.diagram;return!(Ie===null||Ie.isReadOnly||Ie.isModelReadOnly||Ie.selection.count<2)},Oe.prototype.alignLeft=function(){var Ie=this.diagram;Ie.startTransaction("aligning left");var Re=1/0;Ie.selection.each(function(se){se instanceof go.Link||(Re=Math.min(se.position.x,Re))}),Ie.selection.each(function(se){se instanceof go.Link||se.move(new go.Point(Re,se.position.y))}),Ie.commitTransaction("aligning left")},Oe.prototype.alignRight=function(){var Ie=this.diagram;Ie.startTransaction("aligning right");var Re=-1/0;Ie.selection.each(function(se){if(!(se instanceof go.Link)){var je=se.actualBounds.x+se.actualBounds.width;Re=Math.max(je,Re)}}),Ie.selection.each(function(se){se instanceof go.Link||se.move(new go.Point(Re-se.actualBounds.width,se.position.y))}),Ie.commitTransaction("aligning right")},Oe.prototype.alignTop=function(){var Ie=this.diagram;Ie.startTransaction("alignTop");var Re=1/0;Ie.selection.each(function(se){se instanceof go.Link||(Re=Math.min(se.position.y,Re))}),Ie.selection.each(function(se){se instanceof go.Link||se.move(new go.Point(se.position.x,Re))}),Ie.commitTransaction("alignTop")},Oe.prototype.alignBottom=function(){var Ie=this.diagram;Ie.startTransaction("aligning bottom");var Re=-1/0;Ie.selection.each(function(se){if(!(se instanceof go.Link)){var je=se.actualBounds.y+se.actualBounds.height;Re=Math.max(je,Re)}}),Ie.selection.each(function(se){se instanceof go.Link||se.move(new go.Point(se.actualBounds.x,Re-se.actualBounds.height))}),Ie.commitTransaction("aligning bottom")},Oe.prototype.alignCenterX=function(){var Ie=this.diagram,Re=Ie.selection.first();if(Re){Ie.startTransaction("aligning Center X");var se=Re.actualBounds.x+Re.actualBounds.width/2;Ie.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(se-je.actualBounds.width/2,je.actualBounds.y))}),Ie.commitTransaction("aligning Center X")}},Oe.prototype.alignCenterY=function(){var Ie=this.diagram,Re=Ie.selection.first();if(Re){Ie.startTransaction("aligning Center Y");var se=Re.actualBounds.y+Re.actualBounds.height/2;Ie.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(je.actualBounds.x,se-je.actualBounds.height/2))}),Ie.commitTransaction("aligning Center Y")}},Oe.prototype.alignColumn=function(Ie){var Re=this.diagram;Re.startTransaction("align Column"),Ie===void 0&&(Ie=0),Ie=parseFloat(Ie);var se=new Array;Re.selection.each(function(Me){Me instanceof go.Link||se.push(Me)});for(var je=0;je<se.length-1;je++){var ti=se[je],_n=ti.actualBounds.y+ti.actualBounds.height+Ie,Zn=se[je+1];Zn.move(new go.Point(ti.actualBounds.x,_n))}Re.commitTransaction("align Column")},Oe.prototype.alignRow=function(Ie){Ie===void 0&&(Ie=0),Ie=parseFloat(Ie);var Re=this.diagram;Re.startTransaction("align Row");var se=new Array;Re.selection.each(function(Me){Me instanceof go.Link||se.push(Me)});for(var je=0;je<se.length-1;je++){var ti=se[je],_n=ti.actualBounds.x+ti.actualBounds.width+Ie,Zn=se[je+1];Zn.move(new go.Point(_n,ti.actualBounds.y))}Re.commitTransaction("align Row")},Oe.prototype.canRotate=function(Ie){var Re=this.diagram;return!(Re===null||Re.isReadOnly||Re.isModelReadOnly||Re.selection.count<1)},Oe.prototype.rotate=function(Ie){Ie===void 0&&(Ie=90);var Re=this.diagram;Re.startTransaction("rotate "+Ie.toString());var Re=this.diagram;Re.selection.each(function(se){se instanceof go.Link||se instanceof go.Group||(se.angle+=Ie)}),Re.commitTransaction("rotate "+Ie.toString())},Oe.prototype.pullToFront=function(){var Ie=this.diagram;Ie.startTransaction("pullToFront");var Re=new go.Map;Ie.selection.each(function(se){Re.set(se.layer,0)}),Re.iteratorKeys.each(function(se){var je=0;se.parts.each(function(ti){if(!ti.isSelected){var _n=ti.zOrder;isNaN(_n)?ti.zOrder=0:je=Math.max(je,_n)}}),Re.set(se,je)}),Ie.selection.each(function(se){Oe._assignZOrder(se,Re.get(se.layer)+1)}),Ie.commitTransaction("pullToFront")},Oe.prototype.pushToBack=function(){var Ie=this.diagram;Ie.startTransaction("pushToBack");var Re=new go.Map;Ie.selection.each(function(se){Re.set(se.layer,0)}),Re.iteratorKeys.each(function(se){var je=0;se.parts.each(function(ti){if(!ti.isSelected){var _n=ti.zOrder;isNaN(_n)?ti.zOrder=0:je=Math.min(je,_n)}}),Re.set(se,je)}),Ie.selection.each(function(se){Oe._assignZOrder(se,Re.get(se.layer)-1-Oe._findGroupDepth(se))}),Ie.commitTransaction("pushToBack")},Oe._assignZOrder=function(Ie,Re,se){se===void 0&&(se=Ie),Ie.layer===se.layer&&(Ie.zOrder=Re),Ie instanceof go.Group&&Ie.memberParts.each(function(je){Oe._assignZOrder(je,Re+1,se)})},Oe._findGroupDepth=function(Ie){if(Ie instanceof go.Group){var Re=0;return Ie.memberParts.each(function(se){Re=Math.max(Re,Oe._findGroupDepth(se))}),Re+1}else return 0},Oe.prototype.doKeyDown=function(){var Ie=this.diagram;if(Ie!==null){var Re=Ie.lastInput;if(Re.key==="Up"||Re.key==="Down"||Re.key==="Left"||Re.key==="Right"){var se=this.arrowKeyBehavior;if(se==="none")return;if(se==="select"){this._arrowKeySelect();return}else if(se==="move"){this._arrowKeyMove();return}else if(se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Oe.prototype._getAllParts=function(){var Ie=new Array;return this.diagram.nodes.each(function(Re){Ie.push(Re)}),this.diagram.parts.each(function(Re){Ie.push(Re)}),Ie},Oe.prototype._arrowKeyMove=function(){var Ie=this.diagram,Re=Ie.lastInput,se=0,je=0;if(Re.control||Re.meta)se=1,je=1;else if(Ie.grid!==null){var ti=Ie.grid.gridCellSize;je=ti.width,se=ti.height}Ie.startTransaction("arrowKeyMove"),Ie.selection.each(function(_n){Re.key==="Up"?_n.move(new go.Point(_n.actualBounds.x,_n.actualBounds.y-se)):Re.key==="Down"?_n.move(new go.Point(_n.actualBounds.x,_n.actualBounds.y+se)):Re.key==="Left"?_n.move(new go.Point(_n.actualBounds.x-je,_n.actualBounds.y)):Re.key==="Right"&&_n.move(new go.Point(_n.actualBounds.x+je,_n.actualBounds.y))}),Ie.commitTransaction("arrowKeyMove")},Oe.prototype._arrowKeySelect=function(){var Ie=this.diagram,Re=Ie.lastInput,se=null;Re.key==="Up"?se=this._findNearestPartTowards(270):Re.key==="Down"?se=this._findNearestPartTowards(90):Re.key==="Left"?se=this._findNearestPartTowards(180):Re.key==="Right"&&(se=this._findNearestPartTowards(0)),se!==null&&(Re.shift?se.isSelected=!0:Re.control||Re.meta?se.isSelected=!se.isSelected:Ie.select(se))},Oe.prototype._findNearestPartTowards=function(Ie){var Re=this.diagram.selection.first();if(Re===null)return null;for(var se=Re.actualBounds.center,je=this._getAllParts(),ti=1/0,_n=Re,Zn=0;Zn<je.length;Zn++){var Me=je[Zn];if(Me!==Re&&Me.canSelect()){var un=Me.actualBounds.center,xi=se.directionPoint(un),Di=this._angleCloseness(xi,Ie);if(Di<=45){var Cn=se.distanceSquaredPoint(un);Cn*=1+Math.sin(Di*Math.PI/180),Cn<ti&&(ti=Cn,_n=Me)}}}return _n},Oe.prototype._angleCloseness=function(Ie,Re){return Math.min(Math.abs(Re-Ie),Math.min(Math.abs(Re+360-Ie),Math.abs(Re-360-Ie)))},Oe.prototype._arrowKeyTree=function(){var Ie=this.diagram,Re=Ie.selection.first();if(Re instanceof go.Node){var se=Ie.lastInput;if(se.key==="Right"){if(!Re.isTreeLeaf)if(!Re.isTreeExpanded)Ie.commandHandler.canExpandTree(Re)&&Ie.commandHandler.expandTree(Re);else{var je=this._sortTreeChildrenByY(Re).first();je!==null&&Ie.select(je)}}else if(se.key==="Left")if(!Re.isTreeLeaf&&Re.isTreeExpanded)Ie.commandHandler.canCollapseTree(Re)&&Ie.commandHandler.collapseTree(Re);else{var ti=Re.findTreeParentNode();ti!==null&&Ie.select(ti)}else if(se.key==="Up"){var ti=Re.findTreeParentNode();if(ti!==null){var _n=this._sortTreeChildrenByY(ti),Zn=_n.indexOf(Re);if(Zn>0){for(var Me=_n.elt(Zn-1);Me!==null&&Me.isTreeExpanded&&!Me.isTreeLeaf;){var un=this._sortTreeChildrenByY(Me);Me=un.last()}Me!==null&&Ie.select(Me)}else Ie.select(ti)}}else if(se.key==="Down")if(Re.isTreeExpanded&&!Re.isTreeLeaf){var je=this._sortTreeChildrenByY(Re).first();je!==null&&Ie.select(je)}else for(;Re!==null;){var ti=Re.findTreeParentNode();if(ti===null)break;var _n=this._sortTreeChildrenByY(ti),Zn=_n.indexOf(Re);if(Zn<_n.length-1){Ie.select(_n.elt(Zn+1));break}else Re=ti}var xi=Ie.selection.first();xi!==null&&Ie.scrollToRect(xi.actualBounds)}},Oe.prototype._sortTreeChildrenByY=function(Ie){var Re=new go.List().addAll(Ie.findTreeChildrenNodes());return Re.sort(function(se,je){var ti=se.location,_n=je.location;return ti.y<_n.y?-1:ti.y>_n.y?1:ti.x<_n.x?-1:ti.x>_n.x?1:0}),Re},Oe.prototype.copyToClipboard=function(Ie){go.CommandHandler.prototype.copyToClipboard.call(this,Ie),this._lastPasteOffset.set(this.pasteOffset)},Oe.prototype.pasteFromClipboard=function(){var Ie=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ie,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ie},Object.defineProperty(Oe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ie){if(Ie!=="move"&&Ie!=="select"&&Ie!=="scroll"&&Ie!=="tree"&&Ie!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ie);this._arrowKeyBehavior=Ie}}),Object.defineProperty(Oe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ie){if(!(Ie instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ie);this._pasteOffset.set(Ie)}});var dn=Oe,He=Dt(18023),jt=Dt(15746),Pt=Dt(33170),wt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ft=Dt(52262),Wt=Dt(67294),At=(Ie,Re,se)=>new Promise((je,ti)=>{var _n=un=>{try{Me(se.next(un))}catch(xi){ti(xi)}},Zn=un=>{try{Me(se.throw(un))}catch(xi){ti(xi)}},Me=un=>un.done?je(un.value):Promise.resolve(un.value).then(_n,Zn);Me((se=se.apply(Ie,Re)).next())});function Jt({onCancel:Ie,callback:Re}){let se=(0,kt.useRef)(),je=(0,kt.useRef)(),ti=(0,kt.useRef)(),_n=(0,kt.useRef)(!1);const Zn=(0,kt.useRef)(!1),[Me,un]=(0,kt.useState)(0);function xi(){const Cn=de.bx.make,be={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"};se.current=new de.S0(je.current,{padding:20,grid:Cn(de.s_,"Grid",Cn(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Cn(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Te=>{var cr=Te.diagram.commandHandler.addTopLevelParts(Te.diagram.selection,!0);cr||Te.diagram.currentTool.doCancel()},commandHandler:Cn(dn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Te=>{var cr=Te.subject;cr.location=cr.location.copy().snapToGridPoint(Te.diagram.grid.gridOrigin,Te.diagram.grid.gridCellSize),setTimeout(()=>{Te.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Te=>{var cr=Te.subject;setTimeout(()=>{Te.diagram.commandHandler.editTextBlock()})},LinkRelinked:Te=>{var cr=Te.parameter.part;cr.invalidateConnectedLinks();var co=Te.subject;Te.diagram.toolManager.linkingTool.isForwards?co.toNode.invalidateConnectedLinks():co.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),se.current.nodeTemplate=Cn(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),Cn(de.bn,{name:"SHAPE",fill:be.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Cn(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Cn(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),se.current.nodeTemplate.toolTip=Cn("ToolTip",Cn(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Cn(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Cn(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function fi(Te,cr){var co=(_i,fa)=>{_i.handled=!0,_i.diagram.model.commit(fo=>{var Co=fa.part.adornedPart,Qr=new de.E9().setRectSpot(Co.actualBounds,Te);Qr.subtract(Co.location),Qr.scale(2,2),Qr.x+=Math.sign(Qr.x)*130,Qr.y+=Math.sign(Qr.y)*130,Qr.add(Co.location),Qr.snapToGridPoint(_i.diagram.grid.gridOrigin,_i.diagram.grid.gridCellSize);var io=fo.copyNodeData(Co.data);fo.setGroupKeyForNodeData(io,fo.getGroupKeyForNodeData(Co.data)),fo.addNodeData(io);var Zo={from:Co.key,to:fo.getKeyForNodeData(io)};fo.addLinkData(Zo);var vn=_i.diagram.findNodeForData(io);vn.location=Qr,_i.diagram.select(vn),setTimeout(()=>{_i.diagram.commandHandler.editTextBlock()},20)})};return Cn(de.bn,{figure:cr,alignment:Te,alignmentFocus:Te.opposite(),width:Te.equals(de.z6.Top)||Te.equals(de.z6.Bottom)?25:18,height:Te.equals(de.z6.Top)||Te.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:be.white,strokeWidth:4,mouseEnter:(_i,fa)=>fa.fill="dodgerblue",mouseLeave:(_i,fa)=>fa.fill="orange",isActionable:!0,click:co,contextClick:co})}function Wi(Te){return Cn(de.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:(cr,co)=>co.fill="dodgerblue",mouseLeave:(cr,co)=>co.fill="orange",click:(cr,co)=>{cr.diagram.commandHandler.showContextMenu(co.part.adornedPart)}},Te||{})}se.current.nodeTemplate.selectionAdornmentTemplate=Cn(de.uz,"Spot",Cn(de.Vm,{padding:10}),fi(de.z6.Top,"TriangleUp"),fi(de.z6.Left,"TriangleLeft"),fi(de.z6.Right,"TriangleRight"),fi(de.z6.Bottom,"TriangleDown"),Wi({alignment:new de.z6(.75,0)}));function Er(Te,cr){return(co,_i)=>{co.handled=!0,co.diagram.model.commit(fa=>{fa.set(_i.part.adornedPart.data,Te,cr)})}}function fn(Te,cr){return cr||(cr="color"),Cn(de.bn,{width:16,height:16,stroke:"lightgray",fill:Te,margin:1,background:"transparent",mouseEnter:(co,_i)=>_i.stroke="dodgerblue",mouseLeave:(co,_i)=>_i.stroke="lightgray",click:Er(cr,Te),contextClick:Er(cr,Te)})}function bi(){return[Cn("ContextMenuButton",Cn(de.s_,"Horizontal",fn(be.white,"fill"),fn(be.beige,"fill"),fn(be.extralightblue,"fill"),fn(be.extralightred,"fill"))),Cn("ContextMenuButton",Cn(de.s_,"Horizontal",fn(be.lightgray,"fill"),fn(be.lightgreen,"fill"),fn(be.lightblue,"fill"),fn(be.lightred,"fill")))]}function Mr(){return[Cn("ContextMenuButton",Cn(de.s_,"Horizontal",fn(be.black),fn(be.green),fn(be.blue),fn(be.red))),Cn("ContextMenuButton",Cn(de.s_,"Horizontal",fn(be.white),fn(be.magenta),fn(be.purple),fn(be.orange)))]}function na(Te,cr){return cr||(cr="thickness"),Cn(de.bn,"LineH",{width:16,height:16,strokeWidth:Te,margin:1,background:"transparent",mouseEnter:(co,_i)=>_i.background="dodgerblue",mouseLeave:(co,_i)=>_i.background="transparent",click:Er(cr,Te),contextClick:Er(cr,Te)})}function Ao(Te,cr){return cr||(cr="dash"),Cn(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Te,margin:1,background:"transparent",mouseEnter:(co,_i)=>_i.background="dodgerblue",mouseLeave:(co,_i)=>_i.background="transparent",click:Er(cr,Te),contextClick:Er(cr,Te)})}function Fi(){return[Cn("ContextMenuButton",Cn(de.s_,"Horizontal",na(1),na(2),na(3),na(4))),Cn("ContextMenuButton",Cn(de.s_,"Horizontal",Ao(null),Ao([2,4]),Ao([4,4])))]}function Ai(Te,cr){return cr||(cr="figure"),Cn(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Te,margin:1,background:"transparent",mouseEnter:(co,_i)=>_i.fill="dodgerblue",mouseLeave:(co,_i)=>_i.fill="lightgray",click:Er(cr,Te),contextClick:Er(cr,Te)})}se.current.nodeTemplate.contextMenu=Cn("ContextMenu",Cn("ContextMenuButton",Cn(de.s_,"Horizontal",Ai("Rectangle"),Ai("RoundedRectangle"),Ai("Ellipse"),Ai("Diamond"))),Cn("ContextMenuButton",Cn(de.s_,"Horizontal",Ai("Parallelogram2"),Ai("ManualOperation"),Ai("Procedure"),Ai("Cylinder1"))),Cn("ContextMenuButton",Cn(de.s_,"Horizontal",Ai("Terminator"),Ai("CreateRequest"),Ai("Document"),Ai("TriangleDown"))),bi(),Mr(),Fi()),se.current.groupTemplate=Cn(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Te,cr)=>{var co=cr.addMembers(cr.diagram.selection,!0);co||cr.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Cn(de.s_,"Auto",{name:"BODY"},Cn(de.bn,{parameter1:10,fill:be.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Cn(de.Vm,{background:"transparent",margin:20})),Cn(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),se.current.groupTemplate.selectionAdornmentTemplate=Cn(de.uz,"Spot",Cn(de.s_,"Auto",Cn(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Cn(de.Vm,{margin:1.5})),Wi({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),se.current.groupTemplate.contextMenu=Cn("ContextMenu",bi(),Mr(),Fi()),se.current.linkTemplate=Cn(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Te=>Te>=1?10:0),new de.KX("toShortLength","dir",Te=>Te>=1?10:0),new de.KX("points").makeTwoWay(),Cn(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Cn(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Te=>Te===1)),Cn(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Te=>Te>=1),new de.KX("width","thickness",Te=>7+3*Te),new de.KX("height","thickness",Te=>7+3*Te),new de.KX("segmentOffset","thickness",Te=>new de.E9(-15,4+1.5*Te))),Cn(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Te=>Te===2),new de.KX("width","thickness",Te=>7+3*Te),new de.KX("height","thickness",Te=>7+3*Te),new de.KX("segmentOffset","thickness",Te=>new de.E9(-15,4+1.5*Te))),Cn(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),se.current.linkTemplate.selectionAdornmentTemplate=Cn(de.uz,Cn(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:zi(2)},new de.KX("pathPattern","thickness",zi)),Wi({alignmentFocus:new de.z6(0,0,-6,-4)}));function zi(Te){return Cn(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Te+4).toString()+" H3"})}function Jr(Te){var cr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Te===0?cr="M0 0 M16 16 M0 8 L16 8":Te===2&&(cr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Cn(de.bn,{geometryString:cr,margin:2,background:"transparent",mouseEnter:(co,_i)=>_i.background="dodgerblue",mouseLeave:(co,_i)=>_i.background="transparent",click:Er("dir",Te),contextClick:Er("dir",Te)})}function bo(Te){var cr=(co,_i)=>{co.handled=!0,co.diagram.model.commit(fa=>{var fo=_i.part.adornedPart;fa.set(fo.data,Te?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Te?fo.toNode:fo.fromNode).invalidateConnectedLinks()})};return Cn(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(co,_i)=>_i.background="dodgerblue",mouseLeave:(co,_i)=>_i.background="transparent",click:cr,contextClick:cr})}function Yn(Te,cr){var co=0,_i=de.z6.RightSide;Te.equals(de.z6.Top)?(co=270,_i=de.z6.TopSide):Te.equals(de.z6.Left)?(co=180,_i=de.z6.LeftSide):Te.equals(de.z6.Bottom)&&(co=90,_i=de.z6.BottomSide),cr||(co-=180);var fa=(fo,Co)=>{fo.handled=!0,fo.diagram.model.commit(Qr=>{var io=Co.part.adornedPart;Qr.set(io.data,cr?"toSpot":"fromSpot",de.z6.stringify(_i)),(cr?io.toNode:io.fromNode).invalidateConnectedLinks()})};return Cn(de.bn,{alignment:Te,alignmentFocus:Te.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:co,background:"transparent",mouseEnter:(fo,Co)=>Co.background="dodgerblue",mouseLeave:(fo,Co)=>Co.background="transparent",click:fa,contextClick:fa})}se.current.linkTemplate.contextMenu=Cn("ContextMenu",Mr(),Fi(),Cn("ContextMenuButton",Cn(de.s_,"Horizontal",Jr(0),Jr(1),Jr(2))),Cn("ContextMenuButton",Cn(de.s_,"Horizontal",Cn(de.s_,"Spot",bo(!1),Yn(de.z6.Top,!1),Yn(de.z6.Left,!1),Yn(de.z6.Right,!1),Yn(de.z6.Bottom,!1)),Cn(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},bo(!0),Yn(de.z6.Top,!0),Yn(de.z6.Left,!0),Yn(de.z6.Right,!0),Yn(de.z6.Bottom,!0)))));const tr=`{ "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 qs=["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 ns(Te){return console.log("shapeName:",Te),qs.indexOf(Te)>=0}var Wa=new de.YI(ti.current,{maxSelectionCount:1,linkTemplate:Cn(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Cn(de.uz,"Link",{locationSpot:de.z6.Center},Cn(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Cn(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Cn(de.bn,{isPanelMain:!0,strokeWidth:2}),Cn(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Te=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Te.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return se.current.addDiagramListener("TextEdited",function(Te){var cr;const co=Te.subject.part;var _i=(cr=document.activeElement)==null?void 0:cr.value;typeof _i=="string"&&_i.trim()===""&&se.current.model.commit(function(fa){fa.set(co.data,"text","\u672A\u547D\u540D"),se.current.commandHandler.stopCommand()},"increment")}),Wa.nodeTemplate=Cn(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Cn(de.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 de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),Cn(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{se.current.grid=Cn(de.s_,"Grid",Cn(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Cn(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),se.current.grid.visible=!0,se.current.grid.gridCellStroke="darkgray",se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=se.current,se.current}const Di=()=>At(this,null,function*(){var Cn,be=se.current.makeImage();const fi=yield(0,Pt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:be.src,file_data:JSON.stringify({login:(Cn=(0,Ft.eY)())==null?void 0:Cn.login,data:JSON.parse(se.current.model.toJson())})}});Re({src:fi.url})});return(0,kt.useEffect)(()=>(setTimeout(()=>{xi()},500),un(Me+1),()=>{se.current=null}),[]),Wt.createElement("div",{ref:Zn,className:"body-overflow-initial"},Wt.createElement(we.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Me,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Wt.createElement(rn.Z,null,Wt.createElement(jt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Wt.createElement(jt.Z,{onClick:()=>{var Cn,be,fi=se.current.selection.first();if(_n.current=!_n.current,document.activeElement&&fi){let Wi=(be=(Cn=document.activeElement)==null?void 0:Cn.value)==null?void 0:be.trim();typeof Wi=="string"&&se.current.model.commit(function(Er){Er.set(fi.data,"text",Wi||"\u672A\u547D\u540D"),se.current.commandHandler.stopCommand()},"increment")}un(Me+1)}},Wt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ie},Wt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:_n.current?"none":"block"},className:wt.flowChartWrp},Wt.createElement("div",{style:{display:"flex",height:"100%"}},Wt.createElement("div",{style:{width:"300px",height:"100%"}},Wt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Wt.createElement("div",{style:{height:"calc(100% - 50px)"},className:wt.myPaletteDiv,ref:ti})),Wt.createElement("div",{style:{flex:1,position:"relative"}},Wt.createElement("div",{ref:je,style:{height:"80vh"}}))),Wt.createElement("div",{className:"tr"},Wt.createElement(xe.ZP,{size:"large",onClick:Di,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Xe=Jt,zn=Dt(98813),En=Dt(37720);const Ve=zn.ZP.Group,wn={margin:"0 8px"};var De=({callback:Ie,onCancel:Re})=>{function se(je){Ie(je)}return kt.createElement(re.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:se},kt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},kt.createElement("span",{style:wn},"\u5355\u5143\u683C\u6570\uFF1A"),kt.createElement("span",{style:wn},"\u884C\u6570"),kt.createElement(re.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},kt.createElement(En.Z,null)),kt.createElement("span",{style:wn},"\u5217\u6570"),kt.createElement(re.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},kt.createElement(En.Z,null))),kt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},kt.createElement("span",{style:wn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),kt.createElement(re.default.Item,{name:"align"},kt.createElement(Ve,null,kt.createElement(zn.ZP,{value:"default"},kt.createElement("i",{className:"fa fa-align-justify"})),kt.createElement(zn.ZP,{value:"left"},kt.createElement("i",{className:"fa fa-align-left"})),kt.createElement(zn.ZP,{value:"center"},kt.createElement("i",{className:"fa fa-align-center"})),kt.createElement(zn.ZP,{value:"right"},kt.createElement("i",{className:"fa fa-align-right"}))))),kt.createElement("div",{className:"flex-container flex-end"},kt.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),kt.createElement(xe.ZP,{type:"ghost",onClick:Re},"\u53D6\u6D88")))},An=Dt(59637),Hn=Dt(61016),Si=Dt.n(Hn),Ui=(0,kt.forwardRef)(({use3d:Ie,width:Re,height:se,callback:je,showSaveButton:ti},_n)=>{const Zn=(0,kt.useRef)(),Me=(0,kt.useRef)(),[un,xi]=(0,kt.useState)(!1),Di=(0,kt.useRef)({id:Zn,appName:"graphing",width:Re||1e3,height:se||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,kt.useEffect)(()=>{Me.current=new(Si())(Di.current,!0),window.onload=function(){Me.current.inject("applet_container")}},[]);const Cn=()=>{var be=window.ggbApplet.getPNGBase64(1,!0,72);return je&&je(be),be};return(0,kt.useEffect)(()=>{Di.current.appName=un?"3D":"graphing",Me.current.inject("applet_container")},[un]),(0,kt.useEffect)(()=>{xi(Ie)},[Ie]),(0,kt.useImperativeHandle)(_n,()=>({getImgData:Cn})),kt.createElement(kt.Fragment,null,kt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Zn}),kt.createElement(rn.Z,{align:"middle"},kt.createElement(jt.Z,{flex:1},kt.createElement(An.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:un,onChange:be=>xi(be)})),kt.createElement(jt.Z,null,kt.createElement(xe.ZP,{size:"large",onClick:Cn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Yi=Dt(36527),di=Dt(2453);const vi="link",br="upload-image",ii="add-flowchart",mi="draw-image",Br="add-flowchart",Gr="code-block",Li="add-table",jr="------------",Lo={default:jr,left:`:${jr}`,center:`:${jr}:`,right:`${jr}:`};var ta=Dt(99914);function _o(){}let Io=0;const ea=1e4,To="\u2581",mr="@\u2581\u2581@",cn="@\u2581@",xt=`
**\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`,In=["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 gn(Ie){return/^\d+$/.test(Ie)?`${Ie}px`:Ie}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Rn={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},ri={[vi]:"\u6DFB\u52A0\u94FE\u63A5",[Gr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[br]:"\u6DFB\u52A0\u56FE\u7247",[mi]:"\u6DFB\u52A0\u753B\u56FE",[ii]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Li]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ii=({defaultValue:Ie="",onChange:Re,width:se="100%",height:je=400,miniToolbar:ti=!1,isFocus:_n=!1,watch:Zn,insertTemp:Me,mode:un="markdown",id:xi="markdown-editor-id",showResizeBar:Di=!1,noStorage:Cn=!1,showNullButton:be=!1,showNullProgramButton:fi=!1,hidetoolBar:Wi=!1,fullScreen:Er=!1,onBlur:fn,onCMBeforeChange:bi,onFullScreen:Mr,className:na="",disablePaste:Ao=!1,disabled:Fi=!1,disabledFill:Ai=!1,placeholder:zi="",values:Jr="",extraUse:bo})=>{const[Yn,tr]=(0,kt.useState)(null),[qs,ns]=(0,kt.useState)(Ie),[Wa,Te]=(0,kt.useState)(Zn),[cr,co]=(0,kt.useState)(Er),[_i,fa]=(0,kt.useState)(""),[fo,Co]=(0,kt.useState)(0),[Qr,io]=(0,kt.useState)(je),[Zo,vn]=(0,kt.useState)(!1),[ma,sn]=(0,kt.useState)(0),[lo,bs]=(0,kt.useState)(0),xa=(0,kt.useRef)(),fl=(0,kt.useRef)(),va=(0,kt.useRef)(),yo=(0,kt.useRef)();(0,kt.useEffect)(()=>{const or=window.scrollY||window.pageYOffset;ns(Jr),Yn==null||Yn.setValue(Jr),window.scrollTo(0,or)},[Jr]),(0,kt.useEffect)(()=>{Mr==null||Mr(cr)},[cr]),(0,kt.useEffect)(()=>{if(xa.current){let or=function(zr,$e){var fr;if(Ao){$e.preventDefault();return}const eo=$e.clipboardData;if(eo){const wa=eo.types.toString(),ua=eo.items;if(wa==="Files"||eo.types.indexOf("Files")>-1){if($e.preventDefault(),un=="stex")return;try{let Ga=ua[1];((fr=ua[0])==null?void 0:fr.kind)==="file"&&(Ga=ua[0]);const Ds=Ga.getAsFile(),_s=Ds.name.split(".").pop();(0,Sn.I)(Ds,$s=>{var uh,Qu,We;$s.id?((uh=Ds==null?void 0:Ds.type)==null?void 0:uh.indexOf("image"))>-1?Xi.replaceSelection(`<img width="100%" src="/api/attachments/${$s.id}?type=${$s.content_type})" alt="" />`):((Qu=Ds==null?void 0:Ds.type)==null?void 0:Qu.indexOf("video"))>-1?Xi.replaceSelection(`<video width="100%" controls src="/api/attachments/${$s.id}"></video>`):((We=Ds==null?void 0:Ds.type)==null?void 0:We.indexOf("pdf"))>-1?Xi.replaceSelection(`<a href="/api/attachments/${$s.id}?type=${Ds.type}&disposition=inline" target="_blank">${Ds.name}</a>`):In.includes(_s)?Xi.replaceSelection(`<a href="/api/attachments/${$s.id}?type=office&disposition=inline" target="_blank">${Ds.name}</a>`):Xi.replaceSelection(`[${Ds.name}](/api/attachments/${$s.id}?type=${$s.content_type})`):($s==null?void 0:$s.status)===401&&(document.location.href="/user/login")})}catch(Ga){di.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Xi=ze().fromTextArea(xa.current,{mode:un,lineNumbers:!ti,lineWrapping:!0,value:Ie,autoCloseTags:!0,autoCloseBrackets:!0});return Xi.on("keyup",function(zr,$e){$e.keyCode===8&&(zr.getValue()==""?Xi.setOption("placeholder",zi):Xi.setOption("placeholder",null))}),Xi.on("keydown",function(zr,$e){if($e.keyCode===8){var fr=Ys(zr);fr&&$e.preventDefault()}}),_n&&Xi.focus(),Xi.on("paste",or),Fi&&Xi.on("beforeChange",function(zr,$e){($e.origin==="paste"||$e.origin==="+input")&&$e.cancel()}),tr(Xi),()=>{Xi.off("paste",or)}}},[]);const ya=(0,kt.useCallback)(()=>{if(fl.current)try{}catch(or){console.log(or,"---- to set md editor body height")}},[Qr,fl,cr]);(0,kt.useEffect)(()=>{function or(){let Xi=new Ye.Z(zr=>{for(let $e of zr)($e.target.offsetHeight>0||$e.target.offsetWidth>0)&&(ya(),Yn.setSize("100%","100%"),Yn.refresh())});return Xi.observe(xa.current.parentElement),Xi}if(Yn){const Xi=or();return()=>{var zr,$e;(zr=xa.current)!=null&&zr.parentElement&&Xi.unobserve(($e=xa.current)==null?void 0:$e.parentElement)}}},[Yn,ya]),(0,kt.useEffect)(()=>{if(Yn){let or=[];for(const[Xi,zr]of Object.entries(Rn)){let $e={[Xi]:()=>{$o(zr)}};or.push($e),Yn.addKeyMap($e)}return()=>{for(let Xi of or)Yn.removeKeyMap(Xi)}}},[Yn]),(0,kt.useEffect)(()=>{Er!==cr&&co(Er)},[Er]),(0,ta.Z)(()=>{if(!Cn&&fo>0){let or=new Date().getTime(),Xi=window.sessionStorage.getItem(xi);or>=fo+ea&&(!Xi||Xi!==qs)&&(window.sessionStorage.setItem(xi,qs),vn(!0))}},ea),(0,kt.useEffect)(()=>{Te(Zn)},[Yn,Zn]),(0,kt.useEffect)(()=>{Yn&&_n&&Yn.focus()},[Yn,_n]),(0,kt.useEffect)(()=>{if(Wa&&Yn){let or=function(zr){let $e=zr.target;if(yo.current){let fr=$e.scrollTop/$e.scrollHeight;yo.current.scrollTop=yo.current.scrollHeight*fr}};const Xi=Yn.getScrollerElement();return Xi.addEventListener("scroll",or),()=>{Xi.removeEventListener("scroll",or)}}},[Yn,Wa]),(0,kt.useEffect)(()=>{if(Yn&&bi){let or=function(Xi,zr){bi(Xi,zr)};return Yn.on("beforeChange",or),()=>{Yn.off("beforeChange",or)}}},[Yn,bi]),(0,kt.useEffect)(()=>{if(Yn&&fn){let or=function(){fn(Yn.getValue())};return Yn.on("blur",or),()=>{Yn.off("blur",or)}}},[Yn,fn]);function Ys(or,Xi){var zr=or.getDoc(),$e=zr.getCursor(),fr=zr.getLine($e.line),eo=fr.charAt($e.ch-1),wa=fr.lastIndexOf("@\u2581@",$e.ch),ua=fr.lastIndexOf("@\u2581\u2581@",$e.ch),Ga=wa>ua?wa:ua,Ds=wa>ua?3:4;if(mr.indexOf(eo)===-1)return null;if(console.log("change1:",Xi,or,fr,$e,Ga,wa,ua,eo),Ga>=0&&$e.ch-Ga<5){var _s=Ga+Ds;return zr.replaceRange("",{line:$e.line,ch:Ga},{line:$e.line,ch:_s}),{line:$e.line,ch:_s}}return null}(0,kt.useEffect)(()=>{if(Yn){let or=function(Xi,zr){const $e=Xi.getValue();ns($e),Co(new Date().getTime()),Xi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Re&&(fi?Re($e,Vl($e)):Re($e))};return Yn.on("change",or),()=>{Yn.off("change",or)}}},[Yn,Re]),(0,kt.useEffect)(()=>{if(Yn)if(Ie==null)Yn.setValue(""),ns("");else{const or=window.scrollY||window.pageYOffset;Ie!==Yn.getValue()&&(Yn.setValue(Ie),ns(Ie),Yn.setCursor(Fi?1:Yn.lineCount(),0),window.scrollTo(0,or))}},[Yn,Ie]);const $o=(0,kt.useCallback)(or=>{const Xi=Yn.getCursor(),zr=Yn.getSelection();let $e=zr.split(`
`);switch(or){case"bold":return Yn.replaceSelection("**"+zr+"**"),zr===""&&Yn.setCursor(Xi.line,Xi.ch+2),Yn.focus();case"italic":return Yn.replaceSelection("*"+zr+"*"),zr===""&&Yn.setCursor(Xi.line,Xi.ch+1),Yn.focus();case"code":return Yn.replaceSelection("`"+zr+"`"),zr===""&&Yn.setCursor(Xi.line,Xi.ch+1),Yn.focus();case"inline-latex":return fa("inline-latex"),Yn.focus();case"latex":return Yn.replaceSelection("```latex\n"+zr+"\n```"),Yn.setCursor(Xi.line+1,zr.length+1),Yn.focus();case"line-break":return Yn.replaceSelection(`<br/>
`),Yn.focus();case"list-ul":return zr===""?Yn.replaceSelection("- "+zr):Yn.replaceSelection($e.map(fr=>fr===""?"":`- ${fr}`).join(`
`)),Yn.focus();case"list-ol":return zr===""?Yn.replaceSelection("1. "+zr):Yn.replaceSelection($e.map((fr,eo)=>fr===""?"":`${eo+1}. ${fr}`).join(`
`)),Yn.focus();case"add-null-ch":return zr===""&&Yn.setCursor(Xi.line,Xi.ch),Yn.replaceSelection(To),Yn.focus();case"add-signal":return zr===""&&Yn.setCursor(Xi.line,Xi.ch),Yn.replaceSelection(cn),Yn.focus();case"add-multiple":return zr===""&&Yn.setCursor(Xi.line,Xi.ch),Yn.replaceSelection(mr),Yn.focus();case"inster-template-1":return zr===""&&Yn.setCursor(Xi.line,Xi.ch),Yn.replaceSelection(xt),Yn.focus();case"eraser":return Yn.setValue(""),Yn.focus();case"trigger-watch":return Te(!Wa),Yn.focus();case"trigger-full-screen":return co(!cr),Yn.focus();case vi:fa(vi);return;case Gr:fa(Gr);return;case br:fa(br);return;case mi:fa(mi);return;case"maths-latex":fa("maths-latex");return;case ii:fa(ii);return;case Li:fa(Li);return;default:throw new Error}},[Yn,Wa,cr]),ci=(0,kt.useCallback)((or,Xi)=>{var zr,$e,fr,eo,wa,ua;switch(fa(""),_i){case vi:const{title:uh,link:Qu}=or;return Yn.replaceSelection(`[${uh}](${Qu})`),Yn.focus();case Gr:const{language:We,content:gl}=or;return Yn.replaceSelection(["```"+We,gl,"```"].join(`
`)),Yn.focus();case"maths-latex":for(var Ga=atob(or),Ds=new Uint8Array(Ga.length),_s=0;_s<Ga.length;_s++)Ds[_s]=Ga.charCodeAt(_s);var $s=new Blob([Ds],{type:"image/png"});(0,Sn.I)($s,qr=>{qr.id?Yn.replaceSelection(`![,](/api/attachments/${qr.id}?type=${qr.content_type})`):(qr==null?void 0:qr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Yn.replaceSelection("`$$"+or+"$$`");break;case br:case mi:case Br:const{src:du,alt:qu}=or,is=Xi,_u=(fr=($e=(zr=is==null?void 0:is.name)==null?void 0:zr.split("."))==null?void 0:$e.pop)==null?void 0:fr.call($e);return((eo=is==null?void 0:is.type)==null?void 0:eo.indexOf("image"))>-1||!(is!=null&&is.type)?is!=null&&is.align||is!=null&&is.width?Yn.replaceSelection(`<p style="text-align:${is.align||"initial"}"><img width="${is.width?is.width+"%":"initial"}" src="${du}" alt="${qu||""}" /></p>`):Yn.replaceSelection(`<img width="100%" src="${du}" alt="${qu||""}" />`):((wa=is==null?void 0:is.type)==null?void 0:wa.indexOf("video"))>-1?Yn.replaceSelection(`<video width="100%" controls src="${du}"></video>`):((ua=is==null?void 0:is.type)==null?void 0:ua.indexOf("pdf"))>-1?Yn.replaceSelection(`<a href="${du}?type=${is.type}&disposition=inline" target="_blank">${is.name}</a>`):In.includes(_u)?Yn.replaceSelection(`<a href="${du}?type=office&disposition=inline" target="_blank">${is.name}</a>`):Yn.replaceSelection(`[${is.name}](${du})`),Yn.focus();case Li:const{row:ed,col:Ch,align:Pa}=or;let cs=`
`;for(let qr=0;qr<ed;qr++){let wo=[],Ca=[];for(let rs=0;rs<Ch;rs++)qr===1&&Ca.push(Lo[Pa]),wo.push(" ");qr===1&&(cs+=`| ${Ca.join(" | ")} |
`),cs+=`| ${wo.join(Ch===1?"":" | ")} |
`}return Yn.replaceSelection(cs+`
`),Yn.focus();default:throw new Error}},[Yn,_i]),Zt=(0,kt.useMemo)(()=>{switch(_i){case vi:return kt.createElement(Gt,{callback:ci,onCancel:ts});case Gr:return kt.createElement(_e.Z,{callback:ci,onCancel:ts});case br:return kt.createElement(Sn.Z,{callback:ci,onCancel:ts});case ii:return kt.createElement(Xe,{callback:ci,onCancel:ts});case Li:return kt.createElement(De,{callback:ci,onCancel:ts});case"maths-latex":return kt.createElement(Ui,{showSaveButton:!0,callback:ci});case"inline-latex":return kt.createElement(Yi.Z,{showSaveButton:!0,callback:ci});default:return null}},[_i]);function ts(){fa("")}(0,kt.useEffect)(()=>{if(va.current){let or=function(wa){fr=!0,eo=wa.pageY},Xi=function(){fr=!1},zr=function(wa){if(fr){let ua=wa.pageY-eo;ua<0&&(ua=0),ua>300&&(ua=300);let Ga=je+ua+"px";io(Ga)}},$e=va.current,fr=!1,eo=0;return $e.addEventListener("mousedown",or),document.addEventListener("mousemove",zr),document.addEventListener("mouseup",Xi),()=>{$e.removeEventListener("mousedown",or),document.removeEventListener("mousemove",zr),document.removeEventListener("mouseup",Xi)}}},[Yn,va]),(0,kt.useEffect)(()=>{io(je)},[je]);const uu=gn(se),hu=gn(Qr),Xs={width:uu,height:hu},xu=(0,kt.useMemo)(()=>{if(fo){let or=new Date(fo),Xi=or.getHours(),zr=or.getMinutes(),$e=or.getSeconds();return Xi=Xi<10?"0"+Xi:Xi,zr=zr<10?"0"+zr:zr,$e=$e<10?"0"+$e:$e,`${Xi}:${zr}:${$e}`}return 0},[fo]),Vl=or=>{const Xi=[];if(fi){let zr=-1;or=or.replace(/(@▁▁@|@▁@)/g,function($e,fr,eo){Xi.push({multiLine:$e!==cn})})}return Xi};function lh(){window.sessionStorage.removeItem(xi),vn(!1),Co(0)}function wu(){vn(!1),Co(0),Yn.setValue(window.sessionStorage.getItem(xi))}(0,kt.useEffect)(()=>{ri[_i]&&_i!==mi&&_i!==ii&&setTimeout(()=>{const or=document.getElementsByClassName("markdown-popup-form")[0],Xi=window.innerWidth/2-or.offsetWidth/2,zr=window.innerHeight/2-or.offsetHeight/2;sn(Xi),bs(zr)},0)},[_i]);const ga=or=>{or.preventDefault();const Xi=or.clientX-ma,zr=or.clientY-lo;document.body.onmousemove=$e=>{let fr=$e.clientX-Xi,eo=$e.clientY-zr;const wa=document.getElementsByClassName("markdown-popup-form")[0],ua=window.innerWidth-wa.offsetWidth,Ga=window.innerHeight-wa.offsetHeight;fr=Math.max(0,Math.min(fr,ua)),eo=Math.max(0,Math.min(eo,Ga)),Ha($e.clientX,$e.clientY,Xi,zr)&&(sn(fr),bs(eo))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ha=(or,Xi,zr,$e)=>{const fr=document.body.clientHeight,eo=document.body.clientWidth;return or<20&&zr>or||or>eo-20&&zr<or||Xi<20&&$e>Xi||Xi>fr-20&&$e<Xi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return kt.createElement(kt.Fragment,null,kt.createElement("div",{className:"markdown-editor-wrapper",ref:fl},kt.createElement("div",{className:`markdown-editor-container ${na} ${Wa?"on-preview":""} ${ti?"mini":""} ${cr?"full-screen":""}`,style:Xs},kt.createElement(Yt,{insertTemp:Me,watch:Wa,fullScreen:cr,showNullButton:be,showNullProgramButton:fi,onActionCallback:$o,hidetoolBar:Wi,extraUse:bo}),kt.createElement("div",{className:"markdown-editor-body"},kt.createElement("div",{className:"codemirror-container"},kt.createElement("textarea",{ref:xa,placeholder:zi})),Wa?kt.createElement("div",{ref:yo,className:"preview-container"},un==="stex"&&kt.createElement(Ce,{value:qs}),un!=="stex"&&kt.createElement(Ze.Z,{disabledFill:Ai,showProgramFill:fi,value:qs})):null))),Di?kt.createElement("a",{ref:va,className:"editor-resize"}):null,_i===mi&&kt.createElement(Ne,{callback:ci,onCancel:ts}),_i===ii&&kt.createElement(Xe,{callback:ci,onCancel:ts}),kt.createElement(ie.Z,null,ri[_i]&&_i!==mi&&_i!==ii?kt.createElement(we.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ma,top:lo},title:kt.createElement("div",{style:{cursor:"move"},onMouseDown:ga},ri[_i]),open:!0,onCancel:ts,footer:null,destroyOnClose:!0,width:_i===ii?"1200px":null,height:_i===ii?"80vh":null,className:"markdown-popup-form"},Zt):null))}},70859:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return It},I:function(){return ie}});var kt=Dt(91773),le=Dt(2453),ze=Dt(28802),Ye=Dt(78957),Se=Dt(37720),Ot=Dt(98813),qt=Dt(85804),Ee=Dt(15476),me=Dt(67294),ve=Dt(67294),Ze=Object.defineProperty,Ce=Object.defineProperties,nn=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,ht=(re,Qt,xe)=>Qt in re?Ze(re,Qt,{enumerable:!0,configurable:!0,writable:!0,value:xe}):re[Qt]=xe,lt=(re,Qt)=>{for(var xe in Qt||(Qt={}))nt.call(Qt,xe)&&ht(re,xe,Qt[xe]);if(Tt)for(var xe of Tt(Qt))et.call(Qt,xe)&&ht(re,xe,Qt[xe]);return re},pt=(re,Qt)=>Ce(re,nn(Qt));const{useForm:vt}=kt.default,St={width:280,marginRight:10},Lt={labelCol:{span:5},wrapperCol:{span:19}};var It=({callback:re,onCancel:Qt})=>{const[xe]=vt();let he=(0,me.useRef)();function Le(Gn){he.current.width=xe.getFieldValue("width"),he.current.align=xe.getFieldValue("align"),re(Gn,he.current)}function Qe(Gn,Jn){if(Gn.status===-1){le.ZP.error(Gn.message);return}xe.setFieldsValue({src:`/api/attachments/${Gn.id}`,type:Jn.type})}function Fe(Gn){let Jn=Gn.target.files[0];he.current=Jn,ie(Jn,Qe)}return ve.createElement(kt.default,pt(lt({form:xe},Lt),{className:"upload-image-panel",onFinish:Le,style:{width:470,overflow:"hidden"}}),ve.createElement(kt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ve.createElement("div",{className:"flex-container"},ve.createElement(kt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ve.createElement(ze.default,{style:St})),ve.createElement(Yt,{onFileChange:Fe}))),ve.createElement(kt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ve.createElement(ze.default,{style:{width:264}})),ve.createElement(kt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ve.createElement(Ye.Z,null,ve.createElement(kt.default.Item,{name:"width",style:{margin:0}},ve.createElement(Se.Z,{style:{width:264}})),ve.createElement("span",{className:"ml8"},"%"))),ve.createElement(kt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ve.createElement(Ot.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"}]})),ve.createElement("aside",null,ve.createElement(kt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ve.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(qt.ZP,{type:"default",onClick:Qt},"\u53D6\u6D88"))))};function Yt({onFileChange:re}){return ve.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ve.createElement("input",{type:"file",onChange:re}))}function ie(re,Qt){if(!re)throw new String("\u6CA1\u6709\u6587\u4EF6");let xe=new FormData;xe.append("editormd-image-file",re),xe.append("file_param_name","editormd-image-file"),xe.append("byxhr","true");var he=new window.XMLHttpRequest;he.withCredentials=!0,he.addEventListener("load",function(Le){Qt(JSON.parse(Le.target.responseText),re)},!1),he.addEventListener("error",function(Le){console.error(Le)},!1),he.open("POST",`${Ee.KI}/api/attachments.json`),he.send(xe)}},76621:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return ze}});var kt=Dt(67294),le=Dt(73935);class ze extends kt.Component{constructor(Se){super(Se);const Ot=window.document;this.node=Ot.createElement("div"),Ot.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,le.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},36295:function(xn,$n,Dt){"use strict";Dt.d($n,{SV:function(){return de},ZP:function(){return Ne}});var kt=Dt(67294),le=Dt(91033);const ze={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"]},Ye={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"]},Se={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(`
`)}]},Ot={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(`
`)}]},qt={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 Ee=Dt(84204),me=Dt.n(Ee),ve=(Oe,dn,He)=>new Promise((jt,Pt)=>{var wt=At=>{try{Wt(He.next(At))}catch(Jt){Pt(Jt)}},Ft=At=>{try{Wt(He.throw(At))}catch(Jt){Pt(Jt)}},Wt=At=>At.done?jt(At.value):Promise.resolve(At.value).then(wt,Ft);Wt((He=He.apply(Oe,dn)).next())});const Ze={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"]}},Ce=(Oe,dn,He,jt)=>{const Pt=dn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:He.lineNumber,endColumn:He.column});return Array.from(new Set(Pt.match(/\b\w{2,}\b/g)||[])).map(Ft=>({label:Ft,kind:Oe.languages.CompletionItemKind.Text,insertText:Ft,range:jt}))},nn=(Oe,dn,He,jt)=>{Oe.languages.registerCompletionItemProvider(dn,{provideCompletionItems(Pt,wt){const Ft=Pt.getWordUntilPosition(wt),Wt={startLineNumber:wt.lineNumber,endLineNumber:wt.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},At=Pt.getLineContent(wt.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...Ce(Oe,Pt,wt,Wt),...He.map(Xe=>({label:Xe,kind:Oe.languages.CompletionItemKind.Keyword,documentation:Xe,insertText:Xe,insertTextRules:Oe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wt})),...jt.map(Xe=>({label:Xe.label,kind:Oe.languages.CompletionItemKind.Snippet,documentation:Xe.content,insertText:At.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:Oe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wt}))]}}})};var Tt=Oe=>{Ze.languages.forEach(dn=>{Oe.languages.registerDocumentFormattingEditProvider(dn,{provideDocumentFormattingEdits(He){return ve(this,null,function*(){const jt=me()(He.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:He.getFullModelRange(),text:jt}]})}})}),nn(Oe,"java",Ye.keywords,Ye.quickKey),nn(Oe,"cpp",Se.keywords,Se.quickKey),nn(Oe,"c",ze.keywords,[]),nn(Oe,"python",Ot.keywords,Ot.quickKey),nn(Oe,"scala",qt.keywords,qt.quickKey)};const nt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var et=Object.defineProperty,ht=(Oe,dn,He)=>dn in Oe?et(Oe,dn,{enumerable:!0,configurable:!0,writable:!0,value:He}):Oe[dn]=He,lt=(Oe,dn,He)=>ht(Oe,typeof dn!="symbol"?dn+"":dn,He);const pt=class px{constructor(dn,He,jt){this.placeholder=dn,this.editor=He,this.monaco=jt,He.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 St=pt,Lt=Dt(84144),It=Dt(2453),Yt=Dt(83062),ie=Dt(96486),re=Dt(33054),Qt=Dt(74855),xe=Object.defineProperty,he=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,Jn=(Oe,dn,He)=>dn in Oe?xe(Oe,dn,{enumerable:!0,configurable:!0,writable:!0,value:He}):Oe[dn]=He,Ke=(Oe,dn)=>{for(var He in dn||(dn={}))Fe.call(dn,He)&&Jn(Oe,He,dn[He]);if(Qe)for(var He of Qe(dn))Gn.call(dn,He)&&Jn(Oe,He,dn[He]);return Oe},Dn=(Oe,dn)=>he(Oe,Le(dn)),$t=(Oe,dn)=>{var He={};for(var jt in Oe)Fe.call(Oe,jt)&&dn.indexOf(jt)<0&&(He[jt]=Oe[jt]);if(Oe!=null&&Qe)for(var jt of Qe(Oe))dn.indexOf(jt)<0&&Gn.call(Oe,jt)&&(He[jt]=Oe[jt]);return He},zt=(Oe,dn,He)=>new Promise((jt,Pt)=>{var wt=At=>{try{Wt(He.next(At))}catch(Jt){Pt(Jt)}},Ft=At=>{try{Wt(He.throw(At))}catch(Jt){Pt(Jt)}},Wt=At=>At.done?jt(At.value):Promise.resolve(At.value).then(wt,Ft);Wt((He=He.apply(Oe,dn)).next())});function Gt(Oe){return/^\d+$/.test(Oe)?`${Oe}px`:Oe}function _e(){}let Sn=!1;const we={"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 rn(Oe=[]){let dn=Oe;if(Array.isArray(Oe)){for(let He=0;He<Oe.length;He++){let jt=we[Oe[He]];if(jt)return jt}return dn[0]}return we[dn]||dn}let an=null;const Wn=()=>zt(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Oe){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Oe)}});var Ne=Oe=>{var dn=Oe,{width:He="100%",height:jt="100%",value:Pt,language:wt="javascript",style:Ft={},options:Wt={},overrideServices:At={},theme:Jt="vs-dark",onEditBlur:Xe,isCopy:zn=!1,onSave:En,autoHeight:Ve=!1,forbidCopy:wn=!1,onChange:De=_e,editorDidMount:An=_e,onFocus:Hn=_e,onBreakPoint:Si=_e,breakPointValue:Un=[],filename:Ui="educoder.txt",errorLine:Yi,errorContent:di="",highlightLine:vi,openBreakPoint:br=!1,placeholder:ii="",showMiniMap:mi=!0}=dn,Br=$t(dn,["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 Gr=(0,kt.useRef)(),Li=(0,kt.useRef)({}),jr=(0,kt.useRef)(),Lo=(0,kt.useRef)(),ta=(0,kt.useRef)([]),_o=(0,kt.useRef)(!1),Io=(0,kt.useRef)(),ea=(0,kt.useRef)(),To=(0,kt.useRef)(!1),[mr,cn]=(0,kt.useState)(!1);function xt(){let Me;return Gr.current&&(Me=new le.Z(un=>{for(let xi of un)(xi.target.offsetHeight>0||xi.target.offsetWidth>0)&&Li.current.instance.layout()}),Me.observe(Gr.current)),Me}function In(){It.ZP.warning({content:decodeURIComponent(nt),key:"monaco-editor-tip"})}const gn=()=>{let Me=Li.current.instance;if(Pt!=null&&Me&&mr){const un=Me.getModel();un&&Pt!==un.getValue()&&(Sn=!0,un.setValue(Pt),Me.layout(),Sn=!1)}};(0,kt.useEffect)(()=>{const Me=re.Z.subscribe("formatDocument",un=>{var xi;let Di=Li.current.instance;(xi=Di==null?void 0:Di.getAction)==null||xi.call(Di,"editor.action.formatDocument").run()});return window.updateMonacoValue=un=>{De(un)},Me},[]),(0,kt.useEffect)(()=>{var Me;let un=Li.current.instance;Lo.current&&clearTimeout(Lo.current),Lo.current=setTimeout(()=>{gn()},500),Pt&&(Pt!=null&&Pt.length)&&((Me=un==null?void 0:un.updateOptions)==null||Me.call(un,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Pt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Pt,mr,Li.current]),(0,kt.useEffect)(()=>{if(Yi&&Li.current&&Li.current.instance){let un=Li.current.instance;un.changeViewZones(function(xi){var Di=document.createElement("div");Di.style.padding="10px 20px",Di.style.width="calc(100% - 20px)",Di.className="my-error-line-wrp",Di.innerHTML=di,xi.addZone({afterLineNumber:Yi||11,heightInLines:3,domNode:Di})});var Me={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}};un.addOverlayWidget(Me),un.revealPositionInCenter({lineNumber:20,column:1})}},[Yi,Li.current,mr]);const Fn=(Me="",un)=>{if(!Me||Me.trim()==="")return!0;const Di=Li.current.instance.getModel().getLineTokens(un);let Cn=!1;for(let be=0;be<2;be++)Di.getStandardTokenType(be)===1&&(Cn=!0);return Cn};(0,kt.useEffect)(()=>{var Me;const un=(Me=Li.current)==null?void 0:Me.instance;if(un&&mr&&wn){const xi=un.onDidBlurEditorWidget(()=>{To.current=!1}),Di=un.onDidFocusEditorText(()=>{To.current=!0});return()=>{xi.dispose(),Di.dispose()}}},[Li.current,mr,wn]),(0,kt.useEffect)(()=>{var Me;if((Me=Li.current)!=null&&Me.instance&&mr&&br){let un=Li.current.instance,xi=un.getModel();if(!xi)return;(()=>{var Fi;let Ai=[],zi=[];const Jr=xi.getAllDecorations();for(let Yn of Jr)Yn.options.className==="highlighted-line"&&(Ai.push((Fi=Yn==null?void 0:Yn.range)==null?void 0:Fi.startLineNumber),zi.push(Yn==null?void 0:Yn.id));if(vi===Ai[0])return;xi.deltaDecorations(zi,[]);const bo=xi.getLineCount();vi&&vi<=bo&&(un.deltaDecorations([],[{range:new an.Range(vi,1,vi,xi.getLineMaxColumn(vi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),un.revealLineInCenter(vi))})();const Cn=(Fi=!1)=>{var Ai;let zi=[],Jr=[];const bo=xi.getAllDecorations();for(let Yn of bo)Yn.options.linesDecorationsClassName==="breakpoints-select"&&(zi.push((Ai=Yn==null?void 0:Yn.range)==null?void 0:Ai.startLineNumber),Jr.push(Yn==null?void 0:Yn.id));if(Fi)return{lines:zi,ids:Jr};Si(zi)},be=Fi=>zt(void 0,null,function*(){let Ai={range:new an.Range(Fi,1,Fi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xi.deltaDecorations([],[Ai]),Cn()}),fi=Fi=>zt(void 0,null,function*(){let Ai=[];const zi=un.getLineDecorations(Fi);for(let Jr of zi)Jr.options.linesDecorationsClassName==="breakpoints-select"&&Ai.push(Jr.id);yield xi.deltaDecorations(Ai,[]),Cn()}),Wi=Fi=>{let Ai=un.getLineDecorations(Fi);for(let zi of Ai)if(zi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ie.isEqual)(Un,Cn(!0).lines)){xi.deltaDecorations(Cn(!0).ids,[]);const Fi=Un.map(Ai=>({range:new an.Range(Ai,1,Ai,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xi.deltaDecorations([],Fi)}const Er=un.onDidChangeModelContent(Fi=>{let Ai=un.getPosition();if(Ai){let zi=Ai.lineNumber;clearTimeout(ea.current),ea.current=setTimeout(()=>{Fn(xi.getLineContent(zi),zi)?fi(zi):Wi(zi)?(fi(zi),be(zi)):Cn()},100)}}),fn=un.onMouseDown(Fi=>{var Ai,zi,Jr;if(Fi.target.detail&&((Jr=(zi=(Ai=Fi.target)==null?void 0:Ai.element)==null?void 0:zi.className)!=null&&Jr.includes("line-numbers"))){let bo=Fi.target.position.lineNumber;if(Fn(xi.getLineContent(bo),bo))return;Wi(bo)?fi(bo):be(bo)}}),bi=Fi=>{let Ai={range:new an.Range(Fi,1,Fi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ta.current=un.deltaDecorations(ta.current,[Ai])},Mr=()=>{ta.current=un.deltaDecorations(ta.current,[])},na=un.onMouseMove(Fi=>{var Ai,zi,Jr;if(Mr(),Fi.target.detail&&((Jr=(zi=(Ai=Fi.target)==null?void 0:Ai.element)==null?void 0:zi.className)!=null&&Jr.includes("line-numbers"))){let bo=Fi.target.position.lineNumber;if(Fn(xi.getLineContent(bo),bo))return;bi(bo)}}),Ao=un.onMouseLeave(()=>{Mr()});return()=>{Er.dispose(),fn.dispose(),na.dispose(),Ao.dispose()}}},[Li.current,mr,Un,vi,br,wt]),(0,kt.useEffect)(()=>{var Me;(Me=Li.current)!=null&&Me.instance&&br&&Li.current.instance.setPosition({lineNumber:0,column:0})},[vi]);function Nn(){let Me=Li.current.instance;if(Me){const un=Me.getSelection(),xi=Li.current.pastePos||{},Di=new an.Range(xi.startLineNumber||un.endLineNumber,xi.startColumn||un.endColumn,xi.endLineNumber||un.endLineNumber,xi.endColumn||un.endColumn);setTimeout(()=>{Me.executeEdits("",[{range:Di,text:""}])},300)}}function Rn(Me){(window.navigator.platform.match("Mac")?Me.metaKey:Me.ctrlKey)&&Me.keyCode==83&&(Me.preventDefault(),En())}const ri=()=>{if(Ve&&Li.current.instance){const Me=Li.current.instance.getContentHeight();_n(Me<jt?jt:Me)}else _n(jt)};function Ii(Me){var un=document.createEvent("MouseEvents");un.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Me.dispatchEvent(un)}const Ie=Me=>{if(!To.current)return;const{keyCode:un,ctrlKey:xi,metaKey:Di,target:Cn,type:be}=Me;return(be==="paste"||(un===67||un===86)&&(Di||xi))&&Cn.nodeName==="TEXTAREA"&&(In(),Me.preventDefault()),!1};function Re(Me,un){var xi=window.URL||window.webkitURL||window,Di=new Blob([un]),Cn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Cn.href=xi.createObjectURL(Di),Cn.download=Me,Ii(Cn)}(0,kt.useEffect)(()=>{ri()},[ri]),(0,kt.useEffect)(()=>{Gr.current&&!mr&&Promise.all([Dt.e(5552),Dt.e(9651)]).then(Dt.bind(Dt,55826)).then(Me=>{try{an=Me,Li.current.instance=an.editor.create(Gr.current,{value:Pt,language:rn(wt),theme:Jt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:mi||!1}},At);const un=Li.current.instance;let Cn=[...Lt.BH._menuItems].find(Er=>Er[0]._debugName=="EditorContext")[1],be=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],fi=(Er,fn)=>{var bi,Mr;let na=Er._first;do fn.includes((Mr=(bi=na.element)==null?void 0:bi.command)==null?void 0:Mr.id)&&Er._remove(na);while(na=na.next)};if(An(un,an),setTimeout(()=>{ri(),Li.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Re(Ui||"educoder.txt",un.getValue())}})},500),Li.current.subscription=un.onDidChangeModelContent(Er=>{_o.current?clearTimeout(Io.current):(ri(),De(un.getValue(),Er)),Io.current=setTimeout(()=>{_o.current=!1},500)}),window.Monaco||Tt(an,rn(wt)),wn&&(fi(Cn,be),Gr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Ie),window.removeEventListener("paste",Ie),window.addEventListener("keydown",Ie),window.addEventListener("paste",Ie)),window.Monaco=an,Xe&&un.onDidBlurEditorWidget(()=>{Xe(un.getValue())}),Hn&&un.onDidFocusEditorText(()=>{wn&&Wn(),Hn(un.getValue())}),wn){Wn();try{un.onDidPaste(Er=>{const fn=un.getSelection(),bi=Li.current.pastePos||{},Mr=new an.Range(bi.startLineNumber||fn.endLineNumber,bi.startColumn||fn.endColumn,bi.endLineNumber||fn.endLineNumber,bi.endColumn||fn.endColumn);un.executeEdits("",[{range:Er.range,text:""}])})}catch(Er){}}let Wi=xt();return ii&&typeof ii=="string"&&new St(ii,un,an),cn(!0),()=>{const Er=Li.current.instance;Er.dispose();const fn=Er.getModel();fn&&fn.dispose(),Li.current.subscription&&Li.current.subscription.dispose(),Wi.unobserve(Gr.current)}}catch(un){}})},[]),(0,kt.useEffect)(()=>{if(Li.current.instance&&mr)return document.addEventListener("keydown",Rn,!1),()=>{document.removeEventListener("keydown",Rn)}},[En,mr]),(0,kt.useEffect)(()=>{let Me=Li.current.instance;if(Me&&mr){let un=rn(wt);an.editor.setModelLanguage(Me.getModel(),un)}},[wt,mr]),(0,kt.useEffect)(()=>{Li.current.instance&&mr&&an.editor.setTheme(Jt)},[Jt,mr]),(0,kt.useEffect)(()=>{let Me=Li.current.instance;jr.current=Wt,Me&&mr&&(Me.updateOptions(Ke({},Wt)),setTimeout(()=>{Me.getModel().updateOptions(Ke({},Wt))},200))},[JSON.stringify(Wt),mr]),(0,kt.useEffect)(()=>{let Me=Li.current.instance;Me&&mr&&Me.layout()},[He,jt,mr]);const[se,je]=(0,kt.useState)(Gt(He)),[ti,_n]=(0,kt.useState)(Gt(jt)),Zn=Dn(Ke({},Ft),{width:se,height:ti,position:"relative"});return kt.createElement("div",{className:"my-monaco-editor",ref:Gr,style:Zn},zn&&kt.createElement(Qt.CopyToClipboard,{text:Pt,onCopy:()=>It.ZP.success("\u590D\u5236\u6210\u529F")},kt.createElement(Yt.Z,{title:"\u590D\u5236\u4EE3\u7801"},kt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},kt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function de({width:Oe="100%",height:dn="100%",original:He,modified:jt,language:Pt,options:wt={}}){const Ft=(0,kt.useRef)(),[Wt,At]=(0,kt.useState)(null);function Jt(Ve){let wn;return Ft.current&&(wn=new le.Z(De=>{for(let An of De)(An.target.offsetHeight>0||An.target.offsetWidth>0)&&Ve.layout()}),wn.observe(Ft.current)),wn}(0,kt.useEffect)(()=>(Ft.current&&Promise.all([Dt.e(5552),Dt.e(9404)]).then(Dt.bind(Dt,50048)).then(Ve=>{an=Ve;const wn=an.editor.createDiffEditor(Ft.current,Dn(Ke({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},wt),{wordWrap:!0}));At(wn);let De=Jt(wn);return()=>{wn.dispose();const An=wn.getModel();An&&An.dispose(),De.unobserve(Ft.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,kt.useEffect)(()=>{Wt&&Wt.setModel({original:an.editor.createModel(He,Pt),modified:an.editor.createModel(jt,Pt)})},[He,jt,Pt,Wt]);const Xe=Gt(Oe),zn=Gt(dn),En={width:Xe,height:zn};return kt.createElement("div",{className:"my-diff-editor",ref:Ft,style:En})}},5476:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return Ze}});var kt={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"},le=Dt(74330),ze=Dt(83062),Ye=Dt(94184),Se=Dt.n(Ye),Ot=Dt(28706),qt=Dt(26194),Ee=Dt(52262),me=Dt(67294),Ze=({className:Ce,dataSource:nn=[],col:Tt=4,right:nt,bottom:et=23,precision:ht=0,wrapWidth:lt=1200,trackEventItems:pt,loading:vt,onRemove:St=()=>{},isCurrent:Lt=!0,showAlias:It=!1})=>{const Yt=Math.floor((lt-(Tt-1)*nt)/Tt),ie=[{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 me.createElement(le.Z,{spinning:vt},me.createElement("div",{className:Se()(kt.list,Ce)},!!(nn!=null&&nn.length)&&(nn==null?void 0:nn.map((re,Qt)=>{var xe;const{name:he,id:Le,identifier:Qe,featured:Fe,school_name:Gn,image_url:Jn,excellent:Ke,is_plan:Dn}=re;return me.createElement("div",{key:Le,className:kt.wrap,style:{width:Yt,marginRight:(1+Qt)%Tt===0?0:nt+ht,marginBottom:et}},me.createElement("a",{className:kt.li,onClick:$t=>{$t.preventDefault(),$t.stopPropagation(),pt&&(0,Ot.L9)([pt]),(0,Ot.xg)(`/paths/${Qe}`)}},me.createElement("div",{className:kt.img},me.createElement("img",{className:kt.cover,src:`${Jn}`}),Lt&&(0,Ee.bg)()&&(re==null?void 0:re.studying)&&me.createElement("div",{className:`${kt.movebq} user-path-items`,onClick:$t=>{$t.stopPropagation(),St(re)}},me.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),me.createElement("span",{className:"c-red"},"\u79FB\u9664")),(xe=re==null?void 0:re.subject_tags)==null?void 0:xe.map(($t,zt)=>{var Gt,_e;if(zt===0){const we=(Gt=ie.find(rn=>rn.name==$t))==null?void 0:Gt.swimg;return me.createElement("img",{className:kt.sign,src:we,style:{left:"-4px"}})}const Sn=(_e=ie.find(we=>we.name==$t))==null?void 0:_e.ptimg;return me.createElement("img",{className:kt.sign,src:Sn,style:{left:`${48+52*(zt-1)+2*zt}px`}})}),me.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(re==null?void 0:re.excellent)&&me.createElement("div",{className:kt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),me.createElement("div",{className:kt.name},me.createElement(ze.Z,{title:It&&(re!=null&&re.excellent_alias_name)?me.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${he}`,me.createElement("br",null),me.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${re==null?void 0:re.excellent_alias_name}`)):he},me.createElement("span",{className:kt.e},It&&(re==null?void 0:re.excellent_alias_name)||he))),me.createElement(ze.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Gn}`},me.createElement("div",{className:kt.unit},me.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Gn)),me.createElement("div",{className:kt.tags},me.createElement("div",null,me.createElement(ze.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},me.createElement("span",null,me.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),me.createElement("span",null,re.stages_count))),me.createElement(ze.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},me.createElement("span",null,me.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),me.createElement("span",null,re.members_count)))))))})),!nn.length&&me.createElement(qt.Z,null)))}},30001:function(xn,$n,Dt){"use strict";Dt.d($n,{jL:function(){return Se},w9:function(){return Gt},QD:function(){return Yi},cQ:function(){return Jn.Z},op:function(){return De},O5:function(){return gn},_b:function(){return Br},t7:function(){return lt},Gi:function(){return Wn},YG:function(){return rn},qp:function(){return Ze},vr:function(){return br},qE:function(){return Si},Je:function(){return St},wb:function(){return Gn},cq:function(){return jt},tp:function(){return Tt}});var kt=Dt(67294),le={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"},ze="data:image/png;base64,iVBORw0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PEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/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==",Se=({dataSource:Fn=[],img:Nn,imgWidth:Rn=346,title:ri,sunTitle:Ii,bannerExtraContent:Ie})=>kt.createElement("div",{className:le.banner},kt.createElement("div",{className:le.content},kt.createElement("aside",null,kt.createElement("p",null,kt.createElement("b",null,ri),kt.createElement("span",null,Ii)),Fn.length>0&&kt.createElement("div",{className:le.btns},Fn.map((Re,se)=>kt.createElement("div",{key:se,onClick:Re.click},Re.name,Re.sign?kt.createElement("img",{src:ze,width:39}):null))),Ie),Nn&&kt.createElement("img",{style:{marginTop:33,marginRight:38},src:Nn,width:Rn}))),Ot={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"},qt=Dt(94184),Ee=Dt.n(qt),me=Dt(96486),Ze=({dataSource:Fn=[],value:Nn,onChange:Rn,onTitleChange:ri,className:Ii,title:Ie,titleWidth:Re=41,style:se={},fontColor:je="#6A7283",showCount:ti})=>{const[_n,Zn]=(0,kt.useState)(0),[Me,un]=(0,kt.useState)(!1),xi=(0,kt.useRef)(null),Di=(0,kt.useRef)(null);return(0,kt.useEffect)(()=>{var Cn;Fn.length!==0&&(((Cn=xi==null?void 0:xi.current)==null?void 0:Cn.clientHeight)>97?Zn(1):Zn(0)),Fn.length===0&&Zn(0),un(!1)},[Fn]),kt.createElement("div",{className:Ee()(Ot.row,Ii),style:se},kt.createElement("div",{onClick:(0,me.throttle)(()=>ri==null?void 0:ri(),2e3),style:{width:Re,marginTop:Me?12:4},className:`${Ot.title} ${ri?"current":""}`},Ie),kt.createElement("div",{className:Me?`${Ot.tagsWrap} ${Ot.tagsBorderWrap}`:Ot.tagsWrap},kt.createElement("div",{className:Ot.bar,ref:Di,style:_n>0?{height:_n===1?97:"auto",overflow:_n===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},kt.createElement("div",{className:Ot.tag,ref:xi},Fn==null?void 0:Fn.map(Cn=>kt.createElement("span",{onClick:()=>Rn(Cn.id),key:Cn.id,style:{color:je},className:Nn===Cn.id?Ot.active:""},kt.createElement("span",{title:Cn.name,className:Ot.name},Cn.name),!!ti&&kt.createElement("span",{className:Ot.num},Cn.count))))),!!_n&&kt.createElement(kt.Fragment,null,_n===1?kt.createElement("div",{onClick:()=>{var Cn;Zn(2),((Cn=xi==null?void 0:xi.current)==null?void 0:Cn.clientHeight)>245?un(!0):un(!1)},className:Ot.action},"\u5C55\u5F00",kt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):kt.createElement("div",{onClick:()=>{Di.current.scrollTop=0,Zn(1),un(!1)},className:Ot.action},"\u6536\u8D77",kt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ce={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"},Tt=({dataSource:Fn=[],value:Nn,onChange:Rn,className:ri,style:Ii={}})=>kt.createElement("div",{style:Ii,className:Ee()(Ce.tabs,ri)},Fn.map(Ie=>kt.createElement("span",{onClick:()=>Rn(Ie.id),className:Nn===Ie.id?Ce.active:"",key:Ie.id},Ie.name))),nt={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"},et=Dt(28802),lt=({dataSource:Fn=[],value:Nn="",onChange:Rn,onInputChange:ri=()=>{},className:Ii,style:Ie={},placeholder:Re,allowClear:se=!1})=>{var je;const[ti,_n]=(0,kt.useState)(""),[Zn,Me]=(0,kt.useState)("");(0,kt.useEffect)(()=>{var Di;let Cn=Nn;(Di=JSON.stringify(Nn))!=null&&Di.includes("{")&&(_n(Nn.id),Cn=Nn.value||"");try{Me(decodeURIComponent(Cn||""))}catch(be){Me(decodeURIComponent(Cn||""))}},[Nn]);const un=()=>{Rn(encodeURIComponent(Zn),ti||null)},xi=Di=>{Di!==ti&&(_n(Di),Rn(encodeURIComponent(Zn),Di))};return kt.createElement("div",{className:Ee()(nt.input,Ii),style:Ie},!!Fn.length&&kt.createElement("div",{className:nt.dropdown},kt.createElement("div",{className:nt.text},(je=Fn.find(Di=>Di.id===ti))==null?void 0:je.name,kt.createElement("i",{className:"iconfont icon-zhankai4"}),kt.createElement("b",{className:nt.b1}),kt.createElement("b",{className:nt.b2})),kt.createElement("div",{className:nt.menu},Fn.map((Di,Cn)=>kt.createElement("div",{key:Cn,onClick:()=>xi(Di.id)},Di.name)))),kt.createElement(et.default,{onPressEnter:un,value:Zn,onChange:Di=>{Me(Di.target.value),ri(encodeURIComponent(Di.target.value),ti||null)},bordered:!1,placeholder:Re}),kt.createElement("i",{onClick:un,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"},St=({value:Fn,onChange:Nn,className:Rn,total:ri,pageSize:Ii,style:Ie={}})=>{const Re=Fn<2,se=Fn>=Math.ceil(ri/Ii);return ri<=Ii?kt.createElement(kt.Fragment,null):kt.createElement("div",{className:Ee()(pt.quickPager,Rn),style:Ie},kt.createElement("div",{onClick:()=>{Re||Nn(Fn-1,"prev")},className:Re?pt.disabled:""},"\u4E0A\u4E00\u9875"),kt.createElement("div",{onClick:()=>{se||Nn(Fn+1,"next")},className:se?pt.disabled:""},"\u4E0B\u4E00\u9875"))},Lt={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"},It=Dt(74330),Yt=Dt(83062),ie=Dt(57097),re=Dt(11320),Qt=Dt(28706),xe=Dt(96908),he=Dt(57177),Le=Dt(81378),Qe=Dt(26194),Gn=({className:Fn,dataSource:Nn=[],col:Rn=4,right:ri,bottom:Ii=23,precision:Ie=0,wrapWidth:Re=1200,trackEventItems:se,loading:je})=>{const ti=Math.floor((Re-(Rn-1)*ri)/Rn);return kt.createElement(It.Z,{spinning:je},kt.createElement("div",{className:Ee()(Lt.list,Fn)},!!Nn.length&&Nn.map((_n,Zn)=>{const{name:Me,id:un,identifier:xi,power:Di,cover_image_id:Cn,pic:be}=_n;return kt.createElement("div",{className:Lt.wrap,key:un,style:{width:ti,marginRight:(1+Zn)%Rn===0?0:ri+Ie,marginBottom:Ii}},kt.createElement("a",{target:"_blank",href:`/shixuns/${xi}/challenges`,className:Lt.li,onClick:fi=>{fi.preventDefault(),se&&(0,Qt.L9)([se]),Di&&(0,Qt.xg)(`/shixuns/${xi}/challenges`)}},kt.createElement("div",{className:Lt.img},kt.createElement("img",{className:Lt.cover,src:`${be}`}),_n.is_jupyter&&kt.createElement("img",{className:Lt.sign,src:xe}),_n.is_jupyter_lab&&kt.createElement("img",{className:Lt.sign,src:he}),_n.is_unity_3d&&kt.createElement("img",{className:Lt.sign,src:Le})),kt.createElement("div",{className:Lt.name},kt.createElement(Yt.Z,{title:Me||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},kt.createElement("span",{className:Lt.e},Me||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),kt.createElement("div",{className:Lt.tags},kt.createElement(Yt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},kt.createElement("span",null,kt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),kt.createElement("span",null,_n.challenges_count))),!!_n.myshixuns_count&&kt.createElement(Yt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},kt.createElement("span",null,kt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),kt.createElement("span",null,_n.myshixuns_count))),kt.createElement(Yt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},kt.createElement("span",null,kt.createElement("span",null,_n.level))),kt.createElement("div",{className:Lt.rate},kt.createElement(ie.Z,{allowHalf:!0,disabled:!0,defaultValue:_n.score_info}),kt.createElement("span",null,"\xA0",_n.score_info?`${_n.score_info}\u5206`:"5\u5206")))),!Di&&kt.createElement("div",{className:Lt.lockWrap},kt.createElement("img",{src:`${re.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),kt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Nn.length&&kt.createElement(Qe.Z,null)))},Jn=Dt(5476),Ke={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"},Dn="data:image/png;base64,iVBORw0KGgo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RiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",$t=Dt(67294),Gt=({className:Fn,dataSource:Nn=[],col:Rn=4,right:ri,bottom:Ii=23,precision:Ie=0,wrapWidth:Re=1200,trackEventItems:se,loading:je,handleVery:ti=()=>!0})=>{const _n=Math.floor((Re-(Rn-1)*ri)/Rn);return $t.createElement(It.Z,{spinning:je},$t.createElement("div",{className:Ee()(Ke.list,Fn)},!!Nn.length&&Nn.map((Zn,Me)=>{const{subject_identifier:un,id:xi,identifier:Di,power:Cn}=Zn,be=Zn.is_public!=0&&Zn.is_public;return $t.createElement("div",{className:Ke.wrap,key:xi,style:{width:_n,marginRight:(1+Me)%Rn===0?0:ri+Ie,marginBottom:Ii}},$t.createElement("a",{className:Ke.li,onClick:fi=>{fi.preventDefault(),ti(Zn==null?void 0:Zn.first_category_url)&&(se&&(0,Qt.L9)([se]),(0,Qt.xg)(Zn.first_category_url))}},$t.createElement("div",{className:Ke.top},$t.createElement(Yt.Z,{title:Zn.name},$t.createElement("div",{className:Ke.name},Zn.name)),$t.createElement("img",{className:Ke.img,src:re.Z.IMG_SERVER+"/images/"+Zn.avatar_url}),$t.createElement("div",{className:Ke.text,title:Zn.creator},Zn.creator),un&&$t.createElement("div",{className:Ke.btns},$t.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),$t.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),be&&$t.createElement("div",{className:Ke.sign},"\u516C\u5F00")),$t.createElement("div",{className:Ke.bottom},Zn.visits>0&&$t.createElement(Yt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},$t.createElement("span",null,$t.createElement("i",{className:"iconfont icon-liulanyan"}),$t.createElement("span",null,Zn.visits))),Zn.course_members_count>0&&$t.createElement(Yt.Z,{title:"\u6210\u5458",placement:"bottom"},$t.createElement("span",null,$t.createElement("i",{className:"iconfont icon-chengyuan"}),Zn.course_members_count)),Zn.tasks_count>0&&$t.createElement(Yt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},$t.createElement("span",null,$t.createElement("i",{className:"iconfont icon-zuoye"}),Zn.tasks_count)),Zn.is_end?$t.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):$t.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Zn.is_accessible&&$t.createElement("div",{className:Ke.lockWrap},$t.createElement("img",{src:`${re.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),$t.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Nn.length&&$t.createElement(Qe.Z,null)))},_e={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"},Sn=Dt(35973),rn=({dataSource:Fn=[],value:Nn,onChange:Rn,className:ri,style:Ii={},tabBarExtraContent:Ie})=>kt.createElement("div",{className:Ee()(_e.tabs,ri),style:Ii},kt.createElement("div",{className:_e.tabsWrap},Fn.map((Re,se)=>!(Re!=null&&Re.hide)&&kt.createElement("aside",{className:_e.tab,onClick:()=>{Rn(Re.id),Re.link&&Sn.history.push(Re.link)},key:se},kt.createElement("div",{className:Nn===Re.id?_e.active:""},Re.name),(Re==null?void 0:Re.resetCount)==null&&(Re==null?void 0:Re.total)!==void 0&&kt.createElement("span",null,"\uFF08",Re==null?void 0:Re.total,"\uFF09"),(Re==null?void 0:Re.resetCount)!==void 0&&(Re==null?void 0:Re.total)!==void 0&&kt.createElement(Yt.Z,{title:(Re==null?void 0:Re.tip)!=null?Re==null?void 0:Re.tip:""},kt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",kt.createElement("span",{style:{color:"#000"}},Re==null?void 0:Re.resetCount),"/",kt.createElement("span",null,Re==null?void 0:Re.total),"\uFF09"))))),kt.createElement("div",{className:_e.tabBar},Ie)),Wn=({className:Fn,style:Nn={},children:Rn})=>kt.createElement("div",{className:Ee()(Fn),style:Nn},Rn),Ne={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"},de=Dt(85418),Oe=Dt(50136);const dn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var jt=({sortValue:Fn,dropValue:Nn,className:Rn,onSort:ri,onDrop:Ii,dataSource:Ie=dn})=>{var Re;return kt.createElement("div",{className:Ee()(Ne.orderWrap,Rn)},kt.createElement(de.Z,{dropdownRender:()=>kt.createElement(Oe.default,null,Ie.map((se,je)=>kt.createElement(Oe.default.Item,{key:je,onClick:()=>Ii(se.id)},se.name)))},kt.createElement("span",{className:Ne.orderTextWrap},(Re=Ie.find(se=>Nn===se.id))==null?void 0:Re.name)),kt.createElement("span",{className:Ne.orderIconWrap},kt.createElement("span",{className:Ne.orderAsc},kt.createElement("i",{className:Fn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ne.cursorPointer} ${Ne.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ne.cursorPointer}`,onClick:()=>ri(Fn==="asc"?"desc":"asc")})),kt.createElement("span",{className:Ne.orderDesc},kt.createElement("i",{className:Fn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ne.cursorPointer} ${Ne.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ne.cursorPointer}`,onClick:()=>ri(Fn==="asc"?"desc":"asc")}))))},Pt={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"},wt=Dt(85804),Ft=Object.defineProperty,Wt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,Xe=(Fn,Nn,Rn)=>Nn in Fn?Ft(Fn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:Rn}):Fn[Nn]=Rn,zn=(Fn,Nn)=>{for(var Rn in Nn||(Nn={}))At.call(Nn,Rn)&&Xe(Fn,Rn,Nn[Rn]);if(Wt)for(var Rn of Wt(Nn))Jt.call(Nn,Rn)&&Xe(Fn,Rn,Nn[Rn]);return Fn},En=(Fn,Nn)=>{var Rn={};for(var ri in Fn)At.call(Fn,ri)&&Nn.indexOf(ri)<0&&(Rn[ri]=Fn[ri]);if(Fn!=null&&Wt)for(var ri of Wt(Fn))Nn.indexOf(ri)<0&&Jt.call(Fn,ri)&&(Rn[ri]=Fn[ri]);return Rn},Ve=(Fn,Nn,Rn)=>new Promise((ri,Ii)=>{var Ie=je=>{try{se(Rn.next(je))}catch(ti){Ii(ti)}},Re=je=>{try{se(Rn.throw(je))}catch(ti){Ii(ti)}},se=je=>je.done?ri(je.value):Promise.resolve(je.value).then(Ie,Re);se((Rn=Rn.apply(Fn,Nn)).next())}),De=Fn=>{var Nn=Fn,{className:Rn,style:ri,children:Ii,loading:Ie=!1,openLoading:Re,onClick:se=()=>{},size:je="middle",shape:ti="round"}=Nn,_n=En(Nn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Zn,Me]=(0,kt.useState)(!1);return kt.createElement(wt.ZP,zn({onClick:(0,me.throttle)(un=>Ve(void 0,null,function*(){Re&&Me(!0);try{yield se(un)}catch(xi){console.log("error",xi)}Re&&Me(!1)}),2e3,{leading:!0,trailing:!1}),className:Ee()(Pt.btn,Pt[`${je}-${ti}`],Rn),style:ri,size:je,shape:ti,loading:Zn||Ie},_n),Ii)},An={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"},Si=({className:Fn,style:Nn,children:Rn=null,onClick:ri,title:Ii})=>kt.createElement("div",{className:Ee()(An.head,Fn),style:Nn},kt.createElement("span",{className:"primary-hover",onClick:ri},kt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),kt.createElement("b",{title:Ii},Ii),kt.createElement("div",{className:An.node},Rn)),Un={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"},Yi=({confirmShow:Fn=!0,confirmTitle:Nn,confirmClick:Rn,cancelShow:ri=!0,cancelTitle:Ii,cancelClick:Ie,className:Re,style:se,confirmLoading:je=!1})=>kt.createElement("div",{className:Ee()(Un.btns,Re),style:se},Fn&&kt.createElement(wt.ZP,{loading:je,onClick:Rn,type:"primary",className:Un.confirm},Nn),ri&&kt.createElement(wt.ZP,{onClick:Ie,className:Un.cancel},Ii)),di={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"},br=({className:Fn,style:Nn={},LeftContent:Rn,children:ri,RightContent:Ii})=>kt.createElement("div",{className:Ee()(di.fixedBottom,Fn),style:Nn},kt.createElement("div",{className:di.wrap},kt.createElement("div",{className:di.left},Rn),kt.createElement("div",{className:di.center},ri),kt.createElement("div",{className:di.right},Ii))),ii={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"},Br=({className:Fn,style:Nn={},dataSource:Rn=[]})=>kt.createElement("div",{className:Ee()(ii.crumbs,Fn),style:Nn},Rn.map((ri,Ii)=>Ii<Rn.length-1?kt.createElement(kt.Fragment,{key:Ii},ri.path||ri.onClick?kt.createElement("span",{className:ii.hover,onClick:ri!=null&&ri.onClick?ri.onClick:()=>Sn.history.push(ri.path)},ri.name):kt.createElement("span",null,ri.name),kt.createElement("span",null,"\xA0",">","\xA0")):kt.createElement("span",{key:Ii,style:{color:"#5F6368"}},ri.name))),Gr=Dt(55054),Li=Object.defineProperty,jr=Object.defineProperties,Lo=Object.getOwnPropertyDescriptors,ta=Object.getOwnPropertySymbols,_o=Object.prototype.hasOwnProperty,Io=Object.prototype.propertyIsEnumerable,ea=(Fn,Nn,Rn)=>Nn in Fn?Li(Fn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:Rn}):Fn[Nn]=Rn,To=(Fn,Nn)=>{for(var Rn in Nn||(Nn={}))_o.call(Nn,Rn)&&ea(Fn,Rn,Nn[Rn]);if(ta)for(var Rn of ta(Nn))Io.call(Nn,Rn)&&ea(Fn,Rn,Nn[Rn]);return Fn},mr=(Fn,Nn)=>jr(Fn,Lo(Nn)),cn=(Fn,Nn)=>{var Rn={};for(var ri in Fn)_o.call(Fn,ri)&&Nn.indexOf(ri)<0&&(Rn[ri]=Fn[ri]);if(Fn!=null&&ta)for(var ri of ta(Fn))Nn.indexOf(ri)<0&&Io.call(Fn,ri)&&(Rn[ri]=Fn[ri]);return Rn};const{Countdown:xt}=Gr.default;var gn=Fn=>{var Nn=Fn,{onChange:Rn}=Nn,ri=cn(Nn,["onChange"]);const[Ii,Ie]=(0,kt.useState)(null);(0,kt.useEffect)(()=>{typeof Ii=="number"&&Ii>=0&&Rn(Ii)},[Ii]);const Re=se=>{const je=Math.floor(se/1e3);Ie(je)};return kt.createElement(xt,mr(To({},ri),{onChange:Re}))}},99914:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return le}});var kt=Dt(67294);function le(ze,Ye){const Se=(0,kt.useRef)();(0,kt.useEffect)(()=>{Se.current=ze}),(0,kt.useEffect)(()=>{function Ot(){Se.current()}if(Ye!==null){let qt=setInterval(Ot,Ye);return()=>clearInterval(qt)}},[Ye])}},78127:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return jt}});var kt=Dt(67294),le=Dt(35973),ze=Dt(88044),Ye=Dt(35059),Se=Dt(91773),Ot=Dt(2453),qt=Dt(62844),Ee=Dt(71230),me=Dt(15746),ve=Dt(74330),Ze=Dt(28802),Ce=Dt(63960),nn=Dt(85804),Tt=Dt(11320),nt=Dt(51941),et=Dt(35524),ht=Dt(28706),lt=Dt(87218),pt=Dt(38089),vt=Dt(87725),St=Dt(16646),Lt=Dt(70757),It={flexRow:"flexRow___jGYtM",flexColumn:"flexColumn___NPMB3",formWrap:"formWrap___vwH9N",example:"example____BmJC",footerWrap:"footerWrap___lp1L0"},Yt=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,Qt=(Pt,wt)=>{var Ft={};for(var Wt in Pt)ie.call(Pt,Wt)&&wt.indexOf(Wt)<0&&(Ft[Wt]=Pt[Wt]);if(Pt!=null&&Yt)for(var Wt of Yt(Pt))wt.indexOf(Wt)<0&&re.call(Pt,Wt)&&(Ft[Wt]=Pt[Wt]);return Ft},xe=(Pt,wt,Ft)=>new Promise((Wt,At)=>{var Jt=En=>{try{zn(Ft.next(En))}catch(Ve){At(Ve)}},Xe=En=>{try{zn(Ft.throw(En))}catch(Ve){At(Ve)}},zn=En=>En.done?Wt(En.value):Promise.resolve(En.value).then(Jt,Xe);zn((Ft=Ft.apply(Pt,wt)).next())});const he=(Pt,wt)=>wt.some(Ft=>Ft.label.toLowerCase().indexOf(Pt.toLowerCase())>-1),Le=Ze.default.TextArea,Qe=Pt=>{var wt=Pt,{account:Ft,globalSetting:Wt,loading:At,dispatch:Jt,schoolName:Xe,visible:zn,onClose:En=()=>{},onSuccess:Ve=()=>{}}=wt,wn=Qt(wt,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]);const[De]=Se.default.useForm();(0,kt.useEffect)(()=>{De.setFieldsValue({name:Xe})},[Xe]);const An=Hn=>xe(void 0,null,function*(){const{name:Si,city:Un=[],address:Ui,remarks:Yi}=Hn||{},di=yield Jt({type:"account/appplySchool",payload:{name:Si,province:Un[0],city:Un[1],address:Ui,remarks:Yi}});En(),di&&(Ot.ZP.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),Ve(Si))});return kt.createElement(qt.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:zn,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},kt.createElement(Se.default,{className:It.formWrap,form:De,labelCol:{span:4},wrapperCol:{span:20},onFinish:An},kt.createElement(Se.default.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},kt.createElement(Ze.default,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),kt.createElement("div",{className:`${It.flexRow} ${It.example}`},kt.createElement("div",null,"\u793A\u4F8B\uFF1A"),kt.createElement("div",{className:It.flexColumn},kt.createElement("div",null,kt.createElement(vt.Z,{style:{color:"rgb(82, 196, 26)"}}),kt.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),kt.createElement("div",null,kt.createElement(St.Z,{style:{color:"red"}}),kt.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),kt.createElement(Se.default.Item,{label:"\u5730\u533A\uFF1A",name:"city"},kt.createElement(pt.Z,{allowClear:!0,size:"middle",options:Lt.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:he}})),kt.createElement(Se.default.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},kt.createElement(Ze.default,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),kt.createElement(Se.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},kt.createElement(Le,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),kt.createElement("div",{className:It.footerWrap},kt.createElement(Se.default.Item,null,kt.createElement(nn.ZP,{className:"mr5",size:"middle",onClick:()=>{En()}},"\u53D6\u6D88"),kt.createElement(nn.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:At["account/appplySchool"]},"\u4FDD\u5B58")))))};var Fe=(0,le.connect)(({account:Pt,loading:wt,globalSetting:Ft})=>({account:Pt,globalSetting:Ft,loading:wt.effects}))(Qe),Gn=Dt(51710),Jn=Dt(96486),Ke=Dt(67294),Dn=Object.defineProperty,$t=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Sn=Object.prototype.propertyIsEnumerable,we=(Pt,wt,Ft)=>wt in Pt?Dn(Pt,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Pt[wt]=Ft,rn=(Pt,wt)=>{for(var Ft in wt||(wt={}))_e.call(wt,Ft)&&we(Pt,Ft,wt[Ft]);if(Gt)for(var Ft of Gt(wt))Sn.call(wt,Ft)&&we(Pt,Ft,wt[Ft]);return Pt},an=(Pt,wt)=>$t(Pt,zt(wt)),Wn=(Pt,wt)=>{var Ft={};for(var Wt in Pt)_e.call(Pt,Wt)&&wt.indexOf(Wt)<0&&(Ft[Wt]=Pt[Wt]);if(Pt!=null&&Gt)for(var Wt of Gt(Pt))wt.indexOf(Wt)<0&&Sn.call(Pt,Wt)&&(Ft[Wt]=Pt[Wt]);return Ft},Ne=(Pt,wt,Ft)=>new Promise((Wt,At)=>{var Jt=En=>{try{zn(Ft.next(En))}catch(Ve){At(Ve)}},Xe=En=>{try{zn(Ft.throw(En))}catch(Ve){At(Ve)}},zn=En=>En.done?Wt(En.value):Promise.resolve(En.value).then(Jt,Xe);zn((Ft=Ft.apply(Pt,wt)).next())});const de=ze.default.Option,Oe=Ye.default.Dragger;var dn=(Pt=>(Pt[Pt.Professor=1]="Professor",Pt[Pt.AssistantProfessor=2]="AssistantProfessor",Pt[Pt.Student=3]="Student",Pt))(dn||{});const He=Pt=>{var wt=Pt,{user:Ft,account:Wt,globalSetting:At,loading:Jt,dispatch:Xe,Scoid:zn}=wt,En=Wn(wt,["user","account","globalSetting","loading","dispatch","Scoid"]),Ve,wn;const[De]=Se.default.useForm(),[An,Hn]=(0,kt.useState)({}),[Si,Un]=(0,kt.useState)([]),[Ui,Yi]=(0,kt.useState)([]),[di,vi]=(0,kt.useState)([]),[br,ii]=(0,kt.useState)([]),[mi,Br]=(0,kt.useState)(),[Gr,Li]=(0,kt.useState)(),[jr,Lo]=(0,kt.useState)(),[ta,_o]=(0,kt.useState)(),[Io,ea]=(0,kt.useState)(),To=(0,kt.useRef)((0,Jn.throttle)(se=>mr(se),1200,{leading:!0,trailing:!0})).current;(0,kt.useEffect)(()=>{},[]),(0,kt.useEffect)(()=>{Ne(void 0,null,function*(){if(!zn)return;const se=yield cn(zn);vi(se==null?void 0:se.departments)})},[zn]);const mr=se=>Ne(void 0,null,function*(){var je,ti;const _n=yield Xe({type:"account/getSchoolOption",payload:{keyword:se,limit:10}});Un(_n==null?void 0:_n.schools),se&&se!=""&&(Yi((je=_n==null?void 0:_n.schools)==null?void 0:je.filter(Me=>Me.name.includes(se))),(((ti=_n==null?void 0:_n.schools)==null?void 0:ti.find(Me=>Me.name===se))||{}).id?Nn(se,null,_n==null?void 0:_n.schools):(De.setFieldsValue({department:""}),Hn(rn(rn({},An),{school:se,department:""}))))}),cn=se=>{if(se)return Xe({type:"account/getDepartmentOption",payload:{id:se}})};(0,kt.useEffect)(()=>{if(!Wt.basicInfo)return;const{basicInfo:se}=Wt,je={identity:se.identity,school:se.school_name,department:se.department_name,studentNo:se.student_id,jobTitle:se.identity=="teacher"?se.technical_title:"\u6559\u6388",manager:se.identity=="professional"?se.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};De.setFieldsValue(je),Hn(je)},[Wt.basicInfo]);const xt=()=>{_o(!0)},In=()=>{if(!Si.find(se=>se.name===An.school)){Ot.ZP.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}ea(!0)},gn=se=>{Hn(rn({},De.getFieldsValue())),"school"in se&&(Yi(Si.filter(ti=>ti.name.includes(se.school))),(Si.find(ti=>ti.name===se.school)||{}).id?Nn(se.school):(De.setFieldsValue({department:""}),Hn(rn(rn({},An),{school:se.school,department:""}))))},Fn=(se,je)=>{if(Wt.actionTabs.checkedList.includes(1)){qt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ke.createElement("div",{className:"tc"},je||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:()=>{window.location.href=`/classrooms/${se}/students`}});return}window.location.href=`/classrooms/${se}/students`},Nn=(se,je,ti)=>Ne(void 0,null,function*(){var _n,Zn,Me;const un=(_n=(ti||Si).find(Cn=>Cn.name===se))==null?void 0:_n.id,xi=(yield cn(un))||{};vi(xi==null?void 0:xi.departments);const Di=je||((Me=(Zn=xi==null?void 0:xi.departments)==null?void 0:Zn[0])==null?void 0:Me.name);De.setFieldsValue({department:Di}),Hn(rn(rn({},An),{school:se,department:Di}))}),Rn=se=>Ne(void 0,null,function*(){yield mr(),De.setFieldsValue({school:se,department:""}),Hn(rn(rn({},An),{school:se,department:""}))}),ri=se=>{var je;if(se.file.status==="uploading"){Lo(!0);return}se.file.status==="done"&&(console.log(se.file,se.file.response),Li((je=se.file.response)==null?void 0:je.id),(0,ht.y3)(se.file.originFileObj,ti=>{Br(ti),Lo(!1)}))},Ii=se=>Ne(void 0,null,function*(){var je,ti,_n,Zn,Me;const{school:un,department:xi,identity:Di,studentNo:Cn,jobTitle:be,manager:fi}=se||{};if(!mi){Ot.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01");return}const Wi=(je=Si.find(Mr=>Mr.name===un))==null?void 0:je.id,Er=(ti=di.find(Mr=>Mr.name===xi))==null?void 0:ti.id;let fn;Di==="student"?fn=Cn:Di==="teacher"?fn=be:fn=fi;const bi=yield Xe({type:"account/applyProfessionalAuth",payload:{id:((_n=Wt.basicInfo)==null?void 0:_n.id)||((Zn=Ft.userInfo)==null?void 0:Zn.login),school_id:Wi,department_id:Er,identity:Di,extra:fn,attachment_ids:[Gr]}});if(Wt.actionTabs.code){let Mr=yield(0,Gn.cR)({invite_code:Wt.actionTabs.code,professor:Wt.actionTabs.checkedList.includes(1)?1:null,assistant_professor:Wt.actionTabs.checkedList.includes(2)?1:null,student:Wt.actionTabs.checkedList.includes(3)?1:null});Mr.message==="\u52A0\u5165\u6210\u529F"&&(Mr!=null&&Mr.course_id?Fn(Mr.course_id,Mr.message):Ot.ZP.success(Mr.message))}Ie(),bi&&(Ot.ZP.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),Xe({type:"account/getBasicInfo",payload:{login:(Me=Ft.userInfo)==null?void 0:Me.login}}))}),Ie=()=>{Xe({type:"account/setActionTabs",payload:{}})},Re={data:{type:"professional"},multiple:!0,showUploadList:!1,action:`${Tt.Z.API_SERVER}/api/attachments.json`,className:et.Z.uploader,onChange:ri,beforeUpload:se=>{const je=se.type==="image/jpeg"||se.type==="image/png"||se.type==="image/jpg"||se.type==="image/bmp";return je||Ot.ZP.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),je}};return Ke.createElement(qt.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:et.Z.modal,open:Wt.actionTabs.key==="Account-ProfessionalAuth",title:Ke.createElement(Ee.Z,{style:{padding:"25px"},align:"middle",justify:"space-between"},Ke.createElement(me.Z,null,"\u804C\u4E1A\u8BA4\u8BC1"),Ke.createElement(me.Z,null,Ke.createElement("i",{className:"iconfont icon-guanbi11",style:{color:"#979797",cursor:"pointer"},onClick:Ie}))),width:"660px",footer:null},Ke.createElement(ve.Z,{spinning:!!jr},Ke.createElement(Se.default,{className:et.Z.formWrap,form:De,colon:!1,onValuesChange:gn,onFinish:Ii},Ke.createElement(Ee.Z,{gutter:[10,0]},Ke.createElement(me.Z,{flex:"300px"},Ke.createElement(Se.default.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},Ke.createElement(ze.default,null,Ke.createElement(de,{value:"teacher"},"\u6559\u5E08"),Ke.createElement(de,{value:"student"},"\u5B66\u751F"),Ke.createElement(de,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),An.identity==="student"&&Ke.createElement(me.Z,{flex:"200px"},Ke.createElement(Se.default.Item,{initialValue:An.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},Ke.createElement(Ze.default,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),An.identity==="teacher"&&Ke.createElement(me.Z,{flex:"200px"},Ke.createElement(Se.default.Item,{initialValue:An.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},Ke.createElement(ze.default,null,Ke.createElement(de,{value:"\u6559\u6388"},"\u6559\u6388"),Ke.createElement(de,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),Ke.createElement(de,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),Ke.createElement(de,{value:"\u52A9\u6559"},"\u52A9\u6559")))),An.identity==="professional"&&Ke.createElement(me.Z,{flex:"200px"},Ke.createElement(Se.default.Item,{initialValue:An.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},Ke.createElement(ze.default,null,Ke.createElement(de,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),Ke.createElement(de,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),Ke.createElement(de,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),Ke.createElement(de,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),Ke.createElement(de,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),Ke.createElement(Se.default.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:An.school&&!(Si!=null&&Si.find(se=>se.name===An.school))&&Ke.createElement("div",{className:et.Z.schoolHintWrap},Ke.createElement("span",{className:et.Z.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",An.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),Ke.createElement("span",{className:`${et.Z.color0152d9} current`,onClick:xt},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},Ke.createElement(Ce.Z,{showSearch:!0,onSearch:To,options:Ui==null?void 0:Ui.map(se=>({value:se.name}))})),Ke.createElement(Se.default.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:An.department&&!(di!=null&&di.find(se=>se.name===An.department))&&Ke.createElement("div",{className:et.Z.schoolHintWrap},Ke.createElement("span",{className:et.Z.colorCDCDCD},An.department?`\u672A\u627E\u5230\u5305\u542B\u201C${An.department}\u201D\u7684\u9AD8\u6821\uFF0C`:"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),Ke.createElement("span",{className:`${et.Z.color0152d9} current`,onClick:In},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},Ke.createElement(Ce.Z,{showSearch:!0,onChange:se=>ii(di.filter(je=>je.name.includes(se))),options:br==null?void 0:br.map(se=>({value:se.name}))})),Ke.createElement(Se.default.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},Ke.createElement("div",{className:et.Z.flexRow},Ke.createElement("div",{className:et.Z.flexColumn},Ke.createElement(Oe,an(rn({},Re),{accept:".png,.jpg,.bmp,.jpeg"}),mi?Ke.createElement("img",{src:mi,className:et.Z.uploadImg}):Ke.createElement("div",{className:et.Z.imageTip},Ke.createElement("p",null,Ke.createElement("i",{className:`iconfont icon-cuban2shangchuanyunduan ${et.Z.uploadTipIcon}`})),Ke.createElement("p",{className:et.Z.uploadTip},Ke.createElement("a",{className:et.Z.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),Ke.createElement("span",{className:"tc"},Ke.createElement("p",{className:et.Z.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))),Ke.createElement("div",{className:`${et.Z.flexColumn} ${et.Z.example}`},Ke.createElement("span",{className:et.Z.exampleImg},Ke.createElement("img",{src:nt})),Ke.createElement("span",{className:"tc"},Ke.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),Ke.createElement("p",{className:`${et.Z.colorOrange} font12`},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))))),Ke.createElement("div",{className:et.Z.footerWrap},Ke.createElement(Se.default.Item,null,Ke.createElement(nn.ZP,{className:"mr5",size:"middle",onClick:Ie},"\u53D6\u6D88"),Ke.createElement(nn.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Jt["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),Ke.createElement("div",{className:et.Z.note},Ke.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),Ke.createElement("p",null,"1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u4E13\u4E1A\u4EBA\u58EB\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),Ke.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),Ke.createElement("p",null,"3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"),Ke.createElement("p",null,"4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),Ke.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),Ke.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!((Ve=At==null?void 0:At.setting)!=null&&Ve.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),Ke.createElement("p",null,"7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))),Ke.createElement(Fe,{visible:ta,onClose:()=>_o(!1),schoolName:An.school,onSuccess:Rn}),Ke.createElement(lt.Z,{visible:Io,onClose:()=>ea(!1),schoolId:(wn=Si.find(se=>se.name===An.school))==null?void 0:wn.id,schoolName:An.school,departmentName:An.department,onSuccess:se=>Nn(An.school,se)}))};var jt=(0,le.connect)(({user:Pt,account:wt,loading:Ft,globalSetting:Wt})=>({user:Pt,account:wt,globalSetting:Wt,loading:Ft.effects}))(He)},70757:function(xn,$n,Dt){"use strict";Dt.d($n,{P:function(){return kt}});const kt=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},51161:function(xn,$n,Dt){"use strict";Dt.d($n,{AL:function(){return St},Iy:function(){return Ze},Qv:function(){return Tt},ez:function(){return vt},jb:function(){return Ce}});var kt=Dt(47084),le=Dt.n(kt),ze=Dt(90621),Ye=Dt.n(ze);let Se=1;function Ot(re,Qt){const xe=re.match(/^(\s+)(?:```)/);if(xe===null)return Qt;const he=xe[1];return Qt.split(`
`).map(Le=>{const Qe=Le.match(/^\s+/);if(Qe===null)return Le;const[Fe]=Qe;return Fe.length>=he.length?Le.slice(he.length):Le}).join(`
`)}let qt=[],Ee=["<ul>"];const me=new(le()).Renderer,ve=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ze(){qt.length=0,Ee=["<ul>"]}const Ce={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function nn(re,Qt,xe,he){if(Qt>=re.length||re[Qt].level<=xe)return Qt;var Le=re[Qt];he.push("<li><a href='#"+Se+Le.anchor+"'>"+Le.text+"</a>"),Qt++;var Qe=[];return Qt=nn(re,Qt,Le.level,Qe),Qe.length>0&&(he.push("<ul>"),Qe.forEach(function(Fe){he.push(Fe)}),he.push("</ul>")),he.push("</li>"),Qt=nn(re,Qt,xe,he),Qt}function Tt(){return nn(qt,0,0,Ee),Ee.push("</ul>"),Ee.join("")}const nt={heading(re){const Qt=ve.exec(re);if(Se+=1,Qt)return{type:"heading",raw:Qt[0],depth:Qt[1].length,text:Qt[2]}},fences(re){const Qt=this.rules.block.fences.exec(re);if(Qt){const xe=Qt[0];let he=Ot(xe,Qt[3]||"");const Le=Qt[2]?Qt[2].trim():Qt[2];if(["latex","katex","math"].indexOf(Le)>=0){const Qe=lt(),Fe=he;he=Qe,pt[Qe]={type:"block",expression:Fe}}return{type:"code",raw:xe,lang:Le,text:he}}}},et=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ht=0;const lt=()=>`__special_katext_id_${ht++}__`;let pt={};function vt(){return pt}function St(){ht=0,pt={}}function Lt(re){return re=re.replace(et,(Qt,xe)=>{const he=lt();return pt[he]={type:"inline",expression:xe},he}),re}const It=me.listitem;me.listitem=function(re){return It(Lt(re))};const Yt=me.paragraph;me.paragraph=function(re){return Yt(Lt(re))};const ie=me.tablecell;me.tablecell=function(re,Qt){return ie(Lt(re),Qt)},me.code=function(re,Qt,xe){const he=(Qt||"").match(/\S*/)[0];return he?["latex","katex","math"].indexOf(he)>=0?`<p class='editormd-tex'>${re}</p>`:`<pre class="prettyprint linenums"><code class="language-${Qt}">${xe?re:(0,ze.escape)(re,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(xe?re:(0,ze.escape)(re,!0))+"</code></pre>"},me.heading=function(re,Qt,xe){let he=this.options.headerPrefix+xe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return qt.push({anchor:he,level:Qt,text:re}),"<h"+Qt+' id="'+Se+he+'">'+re+"</h"+Qt+">"},le().setOptions({silent:!0,gfm:!0,pedantic:!1}),le().use({tokenizer:nt,renderer:me}),$n.ZP=le()},78207:function(xn,$n,Dt){"use strict";Dt.d($n,{rX:function(){return Lt},pW:function(){return It},gy:function(){return Yt},xY:function(){return St},O5:function(){return vt},hs:function(){return et},tJ:function(){return Tt},o1:function(){return nt},Rd:function(){return pt}});var kt=Dt(35973),le=Dt(62844),ze=Dt(96074),Ye=Dt(2453),Se=Dt(52262),Ot=Dt(28706),qt=Dt(55304),Ee=Dt(25510),me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQ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Rd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",ve=Dt.p+"static/newqrcode.a8740efb.png",Ze=Dt(32637),Ce=Dt(67294),nn=(ie,re,Qt)=>new Promise((xe,he)=>{var Le=Gn=>{try{Fe(Qt.next(Gn))}catch(Jn){he(Jn)}},Qe=Gn=>{try{Fe(Qt.throw(Gn))}catch(Jn){he(Jn)}},Fe=Gn=>Gn.done?xe(Gn.value):Promise.resolve(Gn.value).then(Le,Qe);Fe((Qt=Qt.apply(ie,re)).next())});const Tt=(ie,re=!1,Qt=!1,xe="",he=!1)=>!!(nt(ie)&&ht(ie,re,Qt,xe,he)),nt=ie=>(0,Se.bg)()?!0:(ie({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),et=ie=>{var re,Qt,xe;const{user:he}=(0,kt.getDvaApp)()._store.getState();(0,Se.bg)()&&!((Qt=(re=he==null?void 0:he.userInfo)==null?void 0:re.course)!=null&&Qt.course_public)&&!((xe=he==null?void 0:he.userInfo)!=null&&xe.profile_completed)&&ie({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ht=(ie,re=!1,Qt=!0,xe="",he=!1)=>{var Le;const{user:Qe}=(0,kt.getDvaApp)()._store.getState();return(Le=Qe.userInfo)!=null&&Le.profile_completed?!0:(Qt?ie({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:xe,isCurrentPage:he}}):le.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,Ot.xg)("/account/profile/edit"),lt()}}),!1)},lt=()=>{le.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=()=>{le.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Ce.createElement("div",{style:{textAlign:"center"}},Ce.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"),Ce.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Ze}),Ce.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 ie;const{user:re}=(0,kt.getDvaApp)()._store.getState();return(ie=re.userInfo)!=null&&ie.professional_certification?!0:(le.default.confirm({title:"\u63D0\u793A",centered:!0,content:Ce.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,Ot.xg)("/account/certification")}}),!1)},St=()=>(0,Se.V9)()?!0:(le.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Ce.createElement("div",{className:"tc",style:{marginLeft:-38}},Ce.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Ce.createElement("img",{src:ve,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Lt=(ie,re)=>ie?!0:(le.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Ce.createElement("div",null,Ce.createElement("p",null,re||"\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"),Ce.createElement("div",{style:{marginLeft:"110px"}},Ce.createElement("img",{src:me,width:200}),Ce.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Ot.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),It=ie=>{le.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Ce.createElement("div",null,Ce.createElement("div",null,Ce.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"),Ce.createElement(ze.Z,null),Ce.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Ce.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 ",Ce.createElement("a",null,ie),"\u5929\u3002"),Ce.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Ce.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")),Ce.createElement("div",{style:{textAlign:"center",marginTop:30}},Ce.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ee,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Yt=(ie,re="")=>{const{shixunsDetail:{detail:Qt}}=(0,kt.getDvaApp)()._store.getState();if((Qt==null?void 0:Qt.public)===2||(Qt==null?void 0:Qt.public)===1||(Qt==null?void 0:Qt.shixun_status)===3){let xe="";return(Qt==null?void 0:Qt.public)===2&&(xe="\u5DF2\u516C\u5F00"),(Qt==null?void 0:Qt.public)===1&&(xe="\u5F85\u5BA1\u6838"),(Qt==null?void 0:Qt.shixun_status)===3&&(xe="\u5DF2\u5173\u95ED"),le.default.info({centered:!0,icon:Ce.createElement(qt.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Ce.createElement("div",{className:"tc",style:{marginLeft:-38}},Ce.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Ce.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",xe,"\uFF0C",re,"\u3002"),Ce.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Ce.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ee,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Qt==null?void 0:Qt.shixun_status)===2?(le.default.confirm({centered:!0,icon:Ce.createElement(qt.Z,null),title:"\u63D0\u793A",content:Ce.createElement("div",null,Ce.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",re,"\u3002"),Ce.createElement("br",null),Ce.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:()=>{le.default.confirm({width:440,centered:!0,icon:Ce.createElement(qt.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:()=>nn(void 0,null,function*(){(yield ie({type:"shixunsDetail/cancelRelease",payload:{id:Qt==null?void 0:Qt.identifier}})).status!==401&&(Ye.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),ie({type:"shixunsDetail/getShixunsDetail",payload:{id:Qt==null?void 0:Qt.identifier}}),ie({type:"practiceSetting/getCommonData",payload:{id:Qt==null?void 0:Qt.identifier}}))})})}}),!0):!1}},88386:function(xn,$n,Dt){(function(kt){kt(Dt(4631))})(function(kt){kt.defineOption("placeholder","",function(Ee,me,ve){var Ze=ve&&ve!=kt.Init;if(me&&!Ze)Ee.on("blur",Se),Ee.on("change",Ot),Ee.on("swapDoc",Ot),kt.on(Ee.getInputField(),"compositionupdate",Ee.state.placeholderCompose=function(){Ye(Ee)}),Ot(Ee);else if(!me&&Ze){Ee.off("blur",Se),Ee.off("change",Ot),Ee.off("swapDoc",Ot),kt.off(Ee.getInputField(),"compositionupdate",Ee.state.placeholderCompose),le(Ee);var Ce=Ee.getWrapperElement();Ce.className=Ce.className.replace(" CodeMirror-empty","")}me&&!Ee.hasFocus()&&Se(Ee)});function le(Ee){Ee.state.placeholder&&(Ee.state.placeholder.parentNode.removeChild(Ee.state.placeholder),Ee.state.placeholder=null)}function ze(Ee){le(Ee);var me=Ee.state.placeholder=document.createElement("pre");me.style.cssText="height: 0; overflow: visible",me.style.direction=Ee.getOption("direction"),me.className="CodeMirror-placeholder CodeMirror-line-like";var ve=Ee.getOption("placeholder");typeof ve=="string"&&(ve=document.createTextNode(ve)),me.appendChild(ve),Ee.display.lineSpace.insertBefore(me,Ee.display.lineSpace.firstChild)}function Ye(Ee){setTimeout(function(){var me=!1,ve=Ee.getInputField();ve.nodeName=="TEXTAREA"?me=!ve.value:Ee.lineCount()==1&&(me=!/[^\u200b]/.test(ve.querySelector(".CodeMirror-line").textContent)),me?ze(Ee):le(Ee)},20)}function Se(Ee){qt(Ee)&&ze(Ee)}function Ot(Ee){var me=Ee.getWrapperElement(),ve=qt(Ee);me.className=me.className.replace(" CodeMirror-empty","")+(ve?" CodeMirror-empty":""),ve?ze(Ee):le(Ee)}function qt(Ee){return Ee.lineCount()===1&&Ee.getLine(0)===""}})},82801:function(xn,$n,Dt){(function(kt){kt(Dt(4631))})(function(kt){var le={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ze=kt.Pos;kt.defineOption("autoCloseBrackets",!1,function(nt,et,ht){ht&&ht!=kt.Init&&(nt.removeKeyMap(Se),nt.state.closeBrackets=null),et&&(Ot(Ye(et,"pairs")),nt.state.closeBrackets=et,nt.addKeyMap(Se))});function Ye(nt,et){return et=="pairs"&&typeof nt=="string"?nt:typeof nt=="object"&&nt[et]!=null?nt[et]:le[et]}var Se={Backspace:me,Enter:ve};function Ot(nt){for(var et=0;et<nt.length;et++){var ht=nt.charAt(et),lt="'"+ht+"'";Se[lt]||(Se[lt]=qt(ht))}}Ot(le.pairs+"`");function qt(nt){return function(et){return Ce(et,nt)}}function Ee(nt){var et=nt.state.closeBrackets;if(!et||et.override)return et;var ht=nt.getModeAt(nt.getCursor());return ht.closeBrackets||et}function me(nt){var et=Ee(nt);if(!et||nt.getOption("disableInput"))return kt.Pass;for(var ht=Ye(et,"pairs"),lt=nt.listSelections(),pt=0;pt<lt.length;pt++){if(!lt[pt].empty())return kt.Pass;var vt=nn(nt,lt[pt].head);if(!vt||ht.indexOf(vt)%2!=0)return kt.Pass}for(var pt=lt.length-1;pt>=0;pt--){var St=lt[pt].head;nt.replaceRange("",ze(St.line,St.ch-1),ze(St.line,St.ch+1),"+delete")}}function ve(nt){var et=Ee(nt),ht=et&&Ye(et,"explode");if(!ht||nt.getOption("disableInput"))return kt.Pass;for(var lt=nt.listSelections(),pt=0;pt<lt.length;pt++){if(!lt[pt].empty())return kt.Pass;var vt=nn(nt,lt[pt].head);if(!vt||ht.indexOf(vt)%2!=0)return kt.Pass}nt.operation(function(){var St=nt.lineSeparator()||`
`;nt.replaceSelection(St+St,null),nt.execCommand("goCharLeft"),lt=nt.listSelections();for(var Lt=0;Lt<lt.length;Lt++){var It=lt[Lt].head.line;nt.indentLine(It,null,!0),nt.indentLine(It+1,null,!0)}})}function Ze(nt){var et=kt.cmpPos(nt.anchor,nt.head)>0;return{anchor:new ze(nt.anchor.line,nt.anchor.ch+(et?-1:1)),head:new ze(nt.head.line,nt.head.ch+(et?1:-1))}}function Ce(nt,et){var ht=Ee(nt);if(!ht||nt.getOption("disableInput"))return kt.Pass;var lt=Ye(ht,"pairs"),pt=lt.indexOf(et);if(pt==-1)return kt.Pass;for(var vt=Ye(ht,"closeBefore"),St=Ye(ht,"triples"),Lt=lt.charAt(pt+1)==et,It=nt.listSelections(),Yt=pt%2==0,ie,re=0;re<It.length;re++){var Qt=It[re],xe=Qt.head,he,Le=nt.getRange(xe,ze(xe.line,xe.ch+1));if(Yt&&!Qt.empty())he="surround";else if((Lt||!Yt)&&Le==et)Lt&&Tt(nt,xe)?he="both":St.indexOf(et)>=0&&nt.getRange(xe,ze(xe.line,xe.ch+3))==et+et+et?he="skipThree":he="skip";else if(Lt&&xe.ch>1&&St.indexOf(et)>=0&&nt.getRange(ze(xe.line,xe.ch-2),xe)==et+et){if(xe.ch>2&&/\bstring/.test(nt.getTokenTypeAt(ze(xe.line,xe.ch-2))))return kt.Pass;he="addFour"}else if(Lt){var Qe=xe.ch==0?" ":nt.getRange(ze(xe.line,xe.ch-1),xe);if(!kt.isWordChar(Le)&&Qe!=et&&!kt.isWordChar(Qe))he="both";else return kt.Pass}else if(Yt&&(Le.length===0||/\s/.test(Le)||vt.indexOf(Le)>-1))he="both";else return kt.Pass;if(!ie)ie=he;else if(ie!=he)return kt.Pass}var Fe=pt%2?lt.charAt(pt-1):et,Gn=pt%2?et:lt.charAt(pt+1);nt.operation(function(){if(ie=="skip")nt.execCommand("goCharRight");else if(ie=="skipThree")for(var Jn=0;Jn<3;Jn++)nt.execCommand("goCharRight");else if(ie=="surround"){for(var Ke=nt.getSelections(),Jn=0;Jn<Ke.length;Jn++)Ke[Jn]=Fe+Ke[Jn]+Gn;nt.replaceSelections(Ke,"around"),Ke=nt.listSelections().slice();for(var Jn=0;Jn<Ke.length;Jn++)Ke[Jn]=Ze(Ke[Jn]);nt.setSelections(Ke)}else ie=="both"?(nt.replaceSelection(Fe+Gn,null),nt.triggerElectric(Fe+Gn),nt.execCommand("goCharLeft")):ie=="addFour"&&(nt.replaceSelection(Fe+Fe+Fe+Fe,"before"),nt.execCommand("goCharRight"))})}function nn(nt,et){var ht=nt.getRange(ze(et.line,et.ch-1),ze(et.line,et.ch+1));return ht.length==2?ht:null}function Tt(nt,et){var ht=nt.getTokenAt(ze(et.line,et.ch+1));return/\bstring/.test(ht.type)&&ht.start==et.ch&&(et.ch==0||!/\bstring/.test(nt.getTokenTypeAt(et)))}})},57341:function(xn,$n,Dt){(function(kt){kt(Dt(4631),Dt(4786))})(function(kt){kt.defineOption("autoCloseTags",!1,function(me,ve,Ze){if(Ze!=kt.Init&&Ze&&me.removeKeyMap("autoCloseTags"),!!ve){var Ce={name:"autoCloseTags"};(typeof ve!="object"||ve.whenClosing!==!1)&&(Ce["'/'"]=function(nn){return Ot(nn)}),(typeof ve!="object"||ve.whenOpening!==!1)&&(Ce["'>'"]=function(nn){return Ye(nn)}),me.addKeyMap(Ce)}});var le=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ze=["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 Ye(me){if(me.getOption("disableInput"))return kt.Pass;for(var ve=me.listSelections(),Ze=[],Ce=me.getOption("autoCloseTags"),nn=0;nn<ve.length;nn++){if(!ve[nn].empty())return kt.Pass;var Tt=ve[nn].head,nt=me.getTokenAt(Tt),et=kt.innerMode(me.getMode(),nt.state),ht=et.state,lt=et.mode.xmlCurrentTag&&et.mode.xmlCurrentTag(ht),pt=lt&&lt.name;if(!pt)return kt.Pass;var vt=et.mode.configuration=="html",St=typeof Ce=="object"&&Ce.dontCloseTags||vt&&le,Lt=typeof Ce=="object"&&Ce.indentTags||vt&&ze;nt.end>Tt.ch&&(pt=pt.slice(0,pt.length-nt.end+Tt.ch));var It=pt.toLowerCase();if(!pt||nt.type=="string"&&(nt.end!=Tt.ch||!/[\"\']/.test(nt.string.charAt(nt.string.length-1))||nt.string.length==1)||nt.type=="tag"&&lt.close||nt.string.indexOf("/")==Tt.ch-nt.start-1||St&&qt(St,It)>-1||Ee(me,et.mode.xmlCurrentContext&&et.mode.xmlCurrentContext(ht)||[],pt,Tt,!0))return kt.Pass;var Yt=typeof Ce=="object"&&Ce.emptyTags;if(Yt&&qt(Yt,pt)>-1){Ze[nn]={text:"/>",newPos:kt.Pos(Tt.line,Tt.ch+2)};continue}var ie=Lt&&qt(Lt,It)>-1;Ze[nn]={indent:ie,text:">"+(ie?`
`:"")+"</"+pt+">",newPos:ie?kt.Pos(Tt.line+1,0):kt.Pos(Tt.line,Tt.ch+1)}}for(var re=typeof Ce=="object"&&Ce.dontIndentOnAutoClose,nn=ve.length-1;nn>=0;nn--){var Qt=Ze[nn];me.replaceRange(Qt.text,ve[nn].head,ve[nn].anchor,"+insert");var xe=me.listSelections().slice(0);xe[nn]={head:Qt.newPos,anchor:Qt.newPos},me.setSelections(xe),!re&&Qt.indent&&(me.indentLine(Qt.newPos.line,null,!0),me.indentLine(Qt.newPos.line+1,null,!0))}}function Se(me,ve){for(var Ze=me.listSelections(),Ce=[],nn=ve?"/":"</",Tt=me.getOption("autoCloseTags"),nt=typeof Tt=="object"&&Tt.dontIndentOnSlash,et=0;et<Ze.length;et++){if(!Ze[et].empty())return kt.Pass;var ht=Ze[et].head,lt=me.getTokenAt(ht),pt=kt.innerMode(me.getMode(),lt.state),vt=pt.state;if(ve&&(lt.type=="string"||lt.string.charAt(0)!="<"||lt.start!=ht.ch-1))return kt.Pass;var St,Lt=pt.mode.name!="xml"&&me.getMode().name=="htmlmixed";if(Lt&&pt.mode.name=="javascript")St=nn+"script";else if(Lt&&pt.mode.name=="css")St=nn+"style";else{var It=pt.mode.xmlCurrentContext&&pt.mode.xmlCurrentContext(vt);if(!It||It.length&&Ee(me,It,It[It.length-1],ht))return kt.Pass;St=nn+It[It.length-1]}me.getLine(ht.line).charAt(lt.end)!=">"&&(St+=">"),Ce[et]=St}if(me.replaceSelections(Ce),Ze=me.listSelections(),!nt)for(var et=0;et<Ze.length;et++)(et==Ze.length-1||Ze[et].head.line<Ze[et+1].head.line)&&me.indentLine(Ze[et].head.line)}function Ot(me){return me.getOption("disableInput")?kt.Pass:Se(me,!0)}kt.commands.closeTag=function(me){return Se(me)};function qt(me,ve){if(me.indexOf)return me.indexOf(ve);for(var Ze=0,Ce=me.length;Ze<Ce;++Ze)if(me[Ze]==ve)return Ze;return-1}function Ee(me,ve,Ze,Ce,nn){if(!kt.scanForClosingTag)return!1;var Tt=Math.min(me.lastLine()+1,Ce.line+500),nt=kt.scanForClosingTag(me,Ce,null,Tt);if(!nt||nt.tag!=Ze)return!1;for(var et=nn?1:0,ht=ve.length-1;ht>=0&&ve[ht]==Ze;ht--)++et;Ce=nt.to;for(var ht=1;ht<et;ht++){var lt=kt.scanForClosingTag(me,Ce,null,Tt);if(!lt||lt.tag!=Ze)return!1;Ce=lt.to}return!0}})},4786:function(xn,$n,Dt){(function(kt){kt(Dt(4631))})(function(kt){"use strict";var le=kt.Pos;function ze(ht,lt){return ht.line-lt.line||ht.ch-lt.ch}var Ye="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",Se=Ye+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ot=new RegExp("<(/?)(["+Ye+"]["+Se+"]*)","g");function qt(ht,lt,pt,vt){this.line=lt,this.ch=pt,this.cm=ht,this.text=ht.getLine(lt),this.min=vt?Math.max(vt.from,ht.firstLine()):ht.firstLine(),this.max=vt?Math.min(vt.to-1,ht.lastLine()):ht.lastLine()}function Ee(ht,lt){var pt=ht.cm.getTokenTypeAt(le(ht.line,lt));return pt&&/\btag\b/.test(pt)}function me(ht){if(!(ht.line>=ht.max))return ht.ch=0,ht.text=ht.cm.getLine(++ht.line),!0}function ve(ht){if(!(ht.line<=ht.min))return ht.text=ht.cm.getLine(--ht.line),ht.ch=ht.text.length,!0}function Ze(ht){for(;;){var lt=ht.text.indexOf(">",ht.ch);if(lt==-1){if(me(ht))continue;return}if(!Ee(ht,lt+1)){ht.ch=lt+1;continue}var pt=ht.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(ht.text.slice(pt+1,lt));return ht.ch=lt+1,vt?"selfClose":"regular"}}function Ce(ht){for(;;){var lt=ht.ch?ht.text.lastIndexOf("<",ht.ch-1):-1;if(lt==-1){if(ve(ht))continue;return}if(!Ee(ht,lt+1)){ht.ch=lt;continue}Ot.lastIndex=lt,ht.ch=lt;var pt=Ot.exec(ht.text);if(pt&&pt.index==lt)return pt}}function nn(ht){for(;;){Ot.lastIndex=ht.ch;var lt=Ot.exec(ht.text);if(!lt){if(me(ht))continue;return}if(!Ee(ht,lt.index+1)){ht.ch=lt.index+1;continue}return ht.ch=lt.index+lt[0].length,lt}}function Tt(ht){for(;;){var lt=ht.ch?ht.text.lastIndexOf(">",ht.ch-1):-1;if(lt==-1){if(ve(ht))continue;return}if(!Ee(ht,lt+1)){ht.ch=lt;continue}var pt=ht.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(ht.text.slice(pt+1,lt));return ht.ch=lt+1,vt?"selfClose":"regular"}}function nt(ht,lt){for(var pt=[];;){var vt=nn(ht),St,Lt=ht.line,It=ht.ch-(vt?vt[0].length:0);if(!vt||!(St=Ze(ht)))return;if(St!="selfClose")if(vt[1]){for(var Yt=pt.length-1;Yt>=0;--Yt)if(pt[Yt]==vt[2]){pt.length=Yt;break}if(Yt<0&&(!lt||lt==vt[2]))return{tag:vt[2],from:le(Lt,It),to:le(ht.line,ht.ch)}}else pt.push(vt[2])}}function et(ht,lt){for(var pt=[];;){var vt=Tt(ht);if(!vt)return;if(vt=="selfClose"){Ce(ht);continue}var St=ht.line,Lt=ht.ch,It=Ce(ht);if(!It)return;if(It[1])pt.push(It[2]);else{for(var Yt=pt.length-1;Yt>=0;--Yt)if(pt[Yt]==It[2]){pt.length=Yt;break}if(Yt<0&&(!lt||lt==It[2]))return{tag:It[2],from:le(ht.line,ht.ch),to:le(St,Lt)}}}}kt.registerHelper("fold","xml",function(ht,lt){for(var pt=new qt(ht,lt.line,0);;){var vt=nn(pt);if(!vt||pt.line!=lt.line)return;var St=Ze(pt);if(!St)return;if(!vt[1]&&St!="selfClose"){var Lt=le(pt.line,pt.ch),It=nt(pt,vt[2]);return It&&ze(It.from,Lt)>0?{from:Lt,to:It.from}:null}}}),kt.findMatchingTag=function(ht,lt,pt){var vt=new qt(ht,lt.line,lt.ch,pt);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var St=Ze(vt),Lt=St&&le(vt.line,vt.ch),It=St&&Ce(vt);if(!(!St||!It||ze(vt,lt)>0)){var Yt={from:le(vt.line,vt.ch),to:Lt,tag:It[2]};return St=="selfClose"?{open:Yt,close:null,at:"open"}:It[1]?{open:et(vt,It[2]),close:Yt,at:"close"}:(vt=new qt(ht,Lt.line,Lt.ch,pt),{open:Yt,close:nt(vt,It[2]),at:"open"})}}},kt.findEnclosingTag=function(ht,lt,pt,vt){for(var St=new qt(ht,lt.line,lt.ch,pt);;){var Lt=et(St,vt);if(!Lt)break;var It=new qt(ht,lt.line,lt.ch,pt),Yt=nt(It,Lt.tag);if(Yt)return{open:Lt,close:Yt}}},kt.scanForClosingTag=function(ht,lt,pt,vt){var St=new qt(ht,lt.line,lt.ch,vt?{from:0,to:vt}:null);return nt(St,pt)}})},4631:function(xn){(function($n,Dt){xn.exports=Dt()})(this,function(){"use strict";var $n=navigator.userAgent,Dt=navigator.platform,kt=/gecko\/\d/i.test($n),le=/MSIE \d/.test($n),ze=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec($n),Ye=/Edge\/(\d+)/.exec($n),Se=le||ze||Ye,Ot=Se&&(le?document.documentMode||6:+(Ye||ze)[1]),qt=!Ye&&/WebKit\//.test($n),Ee=qt&&/Qt\/\d+\.\d+/.test($n),me=!Ye&&/Chrome\//.test($n),ve=/Opera\//.test($n),Ze=/Apple Computer/.test(navigator.vendor),Ce=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test($n),nn=/PhantomJS/.test($n),Tt=!Ye&&/AppleWebKit/.test($n)&&/Mobile\/\w+/.test($n),nt=/Android/.test($n),et=Tt||nt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test($n),ht=Tt||/Mac/.test(Dt),lt=/\bCrOS\b/.test($n),pt=/win/i.test(Dt),vt=ve&&$n.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(ve=!1,qt=!0);var St=ht&&(Ee||ve&&(vt==null||vt<12.11)),Lt=kt||Se&&Ot>=9;function It(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Yt=function(it,at){var ct=it.className,dt=It(at).exec(ct);if(dt){var gt=ct.slice(dt.index+dt[0].length);it.className=ct.slice(0,dt.index)+(gt?dt[1]+gt:"")}};function ie(it){for(var at=it.childNodes.length;at>0;--at)it.removeChild(it.firstChild);return it}function re(it,at){return ie(it).appendChild(at)}function Qt(it,at,ct,dt){var gt=document.createElement(it);if(ct&&(gt.className=ct),dt&&(gt.style.cssText=dt),typeof at=="string")gt.appendChild(document.createTextNode(at));else if(at)for(var Et=0;Et<at.length;++Et)gt.appendChild(at[Et]);return gt}function xe(it,at,ct,dt){var gt=Qt(it,at,ct,dt);return gt.setAttribute("role","presentation"),gt}var he;document.createRange?he=function(it,at,ct,dt){var gt=document.createRange();return gt.setEnd(dt||it,ct),gt.setStart(it,at),gt}:he=function(it,at,ct){var dt=document.body.createTextRange();try{dt.moveToElementText(it.parentNode)}catch(gt){return dt}return dt.collapse(!0),dt.moveEnd("character",ct),dt.moveStart("character",at),dt};function Le(it,at){if(at.nodeType==3&&(at=at.parentNode),it.contains)return it.contains(at);do if(at.nodeType==11&&(at=at.host),at==it)return!0;while(at=at.parentNode)}function Qe(){var it;try{it=document.activeElement}catch(at){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function Fe(it,at){var ct=it.className;It(at).test(ct)||(it.className+=(ct?" ":"")+at)}function Gn(it,at){for(var ct=it.split(" "),dt=0;dt<ct.length;dt++)ct[dt]&&!It(ct[dt]).test(at)&&(at+=" "+ct[dt]);return at}var Jn=function(it){it.select()};Tt?Jn=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Se&&(Jn=function(it){try{it.select()}catch(at){}});function Ke(it){var at=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,at)}}function Dn(it,at,ct){at||(at={});for(var dt in it)it.hasOwnProperty(dt)&&(ct!==!1||!at.hasOwnProperty(dt))&&(at[dt]=it[dt]);return at}function $t(it,at,ct,dt,gt){at==null&&(at=it.search(/[^\s\u00a0]/),at==-1&&(at=it.length));for(var Et=dt||0,Bt=gt||0;;){var Ut=it.indexOf(" ",Et);if(Ut<0||Ut>=at)return Bt+(at-Et);Bt+=Ut-Et,Bt+=ct-Bt%ct,Et=Ut+1}}var zt=function(){this.id=null,this.f=null,this.time=0,this.handler=Ke(this.onTimeout,this)};zt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},zt.prototype.set=function(it,at){this.f=at;var ct=+new Date+it;(!this.id||ct<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=ct)};function Gt(it,at){for(var ct=0;ct<it.length;++ct)if(it[ct]==at)return ct;return-1}var _e=50,Sn={toString:function(){return"CodeMirror.Pass"}},we={scroll:!1},rn={origin:"*mouse"},an={origin:"+move"};function Wn(it,at,ct){for(var dt=0,gt=0;;){var Et=it.indexOf(" ",dt);Et==-1&&(Et=it.length);var Bt=Et-dt;if(Et==it.length||gt+Bt>=at)return dt+Math.min(Bt,at-gt);if(gt+=Et-dt,gt+=ct-gt%ct,dt=Et+1,gt>=at)return dt}}var Ne=[""];function de(it){for(;Ne.length<=it;)Ne.push(Oe(Ne)+" ");return Ne[it]}function Oe(it){return it[it.length-1]}function dn(it,at){for(var ct=[],dt=0;dt<it.length;dt++)ct[dt]=at(it[dt],dt);return ct}function He(it,at,ct){for(var dt=0,gt=ct(at);dt<it.length&&ct(it[dt])<=gt;)dt++;it.splice(dt,0,at)}function jt(){}function Pt(it,at){var ct;return Object.create?ct=Object.create(it):(jt.prototype=it,ct=new jt),at&&Dn(at,ct),ct}var wt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ft(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||wt.test(it))}function Wt(it,at){return at?at.source.indexOf("\\w")>-1&&Ft(it)?!0:at.test(it):Ft(it)}function At(it){for(var at in it)if(it.hasOwnProperty(at)&&it[at])return!1;return!0}var Jt=/[\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 Xe(it){return it.charCodeAt(0)>=768&&Jt.test(it)}function zn(it,at,ct){for(;(ct<0?at>0:at<it.length)&&Xe(it.charAt(at));)at+=ct;return at}function En(it,at,ct){for(var dt=at>ct?-1:1;;){if(at==ct)return at;var gt=(at+ct)/2,Et=dt<0?Math.ceil(gt):Math.floor(gt);if(Et==at)return it(Et)?at:ct;it(Et)?ct=Et:at=Et+dt}}function Ve(it,at,ct,dt){if(!it)return dt(at,ct,"ltr",0);for(var gt=!1,Et=0;Et<it.length;++Et){var Bt=it[Et];(Bt.from<ct&&Bt.to>at||at==ct&&Bt.to==at)&&(dt(Math.max(Bt.from,at),Math.min(Bt.to,ct),Bt.level==1?"rtl":"ltr",Et),gt=!0)}gt||dt(at,ct,"ltr")}var wn=null;function De(it,at,ct){var dt;wn=null;for(var gt=0;gt<it.length;++gt){var Et=it[gt];if(Et.from<at&&Et.to>at)return gt;Et.to==at&&(Et.from!=Et.to&&ct=="before"?dt=gt:wn=gt),Et.from==at&&(Et.from!=Et.to&&ct!="before"?dt=gt:wn=gt)}return dt!=null?dt:wn}var An=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",at="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(oe){return oe<=247?it.charAt(oe):1424<=oe&&oe<=1524?"R":1536<=oe&&oe<=1785?at.charAt(oe-1536):1774<=oe&&oe<=2220?"r":8192<=oe&&oe<=8203?"w":oe==8204?"b":"L"}var dt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,gt=/[stwN]/,Et=/[LRr]/,Bt=/[Lb1n]/,Ut=/[1n]/;function Kt(oe,Be,fe){this.level=oe,this.from=Be,this.to=fe}return function(oe,Be){var fe=Be=="ltr"?"L":"R";if(oe.length==0||Be=="ltr"&&!dt.test(oe))return!1;for(var on=oe.length,tn=[],oi=0;oi<on;++oi)tn.push(ct(oe.charCodeAt(oi)));for(var ui=0,Ei=fe;ui<on;++ui){var Gi=tn[ui];Gi=="m"?tn[ui]=Ei:Ei=Gi}for(var wr=0,ir=fe;wr<on;++wr){var Rr=tn[wr];Rr=="1"&&ir=="r"?tn[wr]="n":Et.test(Rr)&&(ir=Rr,Rr=="r"&&(tn[wr]="R"))}for(var xo=1,nr=tn[0];xo<on-1;++xo){var qo=tn[xo];qo=="+"&&nr=="1"&&tn[xo+1]=="1"?tn[xo]="1":qo==","&&nr==tn[xo+1]&&(nr=="1"||nr=="n")&&(tn[xo]=nr),nr=qo}for(var Es=0;Es<on;++Es){var El=tn[Es];if(El==",")tn[Es]="N";else if(El=="%"){var Is=void 0;for(Is=Es+1;Is<on&&tn[Is]=="%";++Is);for(var Nu=Es&&tn[Es-1]=="!"||Is<on&&tn[Is]=="1"?"1":"N",iu=Es;iu<Is;++iu)tn[iu]=Nu;Es=Is-1}}for(var hl=0,Hu=fe;hl<on;++hl){var Yl=tn[hl];Hu=="L"&&Yl=="1"?tn[hl]="L":Et.test(Yl)&&(Hu=Yl)}for(var dl=0;dl<on;++dl)if(gt.test(tn[dl])){var Ia=void 0;for(Ia=dl+1;Ia<on&&gt.test(tn[Ia]);++Ia);for(var Ws=(dl?tn[dl-1]:fe)=="L",Tl=(Ia<on?tn[Ia]:fe)=="L",Xl=Ws==Tl?Ws?"L":"R":fe,Nh=dl;Nh<Ia;++Nh)tn[Nh]=Xl;dl=Ia-1}for(var Rs=[],gh,Zs=0;Zs<on;)if(Bt.test(tn[Zs])){var jf=Zs;for(++Zs;Zs<on&&Bt.test(tn[Zs]);++Zs);Rs.push(new Kt(0,jf,Zs))}else{var th=Zs,Gu=Rs.length,Du=Be=="rtl"?1:0;for(++Zs;Zs<on&&tn[Zs]!="L";++Zs);for(var us=th;us<Zs;)if(Ut.test(tn[us])){th<us&&(Rs.splice(Gu,0,new Kt(1,th,us)),Gu+=Du);var Bl=us;for(++us;us<Zs&&Ut.test(tn[us]);++us);Rs.splice(Gu,0,new Kt(2,Bl,us)),Gu+=Du,th=us}else++us;th<Zs&&Rs.splice(Gu,0,new Kt(1,th,Zs))}return Be=="ltr"&&(Rs[0].level==1&&(gh=oe.match(/^\s+/))&&(Rs[0].from=gh[0].length,Rs.unshift(new Kt(0,0,gh[0].length))),Oe(Rs).level==1&&(gh=oe.match(/\s+$/))&&(Oe(Rs).to-=gh[0].length,Rs.push(new Kt(0,on-gh[0].length,on)))),Be=="rtl"?Rs.reverse():Rs}}();function Hn(it,at){var ct=it.order;return ct==null&&(ct=it.order=An(it.text,at)),ct}var Si=[],Un=function(it,at,ct){if(it.addEventListener)it.addEventListener(at,ct,!1);else if(it.attachEvent)it.attachEvent("on"+at,ct);else{var dt=it._handlers||(it._handlers={});dt[at]=(dt[at]||Si).concat(ct)}};function Ui(it,at){return it._handlers&&it._handlers[at]||Si}function Yi(it,at,ct){if(it.removeEventListener)it.removeEventListener(at,ct,!1);else if(it.detachEvent)it.detachEvent("on"+at,ct);else{var dt=it._handlers,gt=dt&&dt[at];if(gt){var Et=Gt(gt,ct);Et>-1&&(dt[at]=gt.slice(0,Et).concat(gt.slice(Et+1)))}}}function di(it,at){var ct=Ui(it,at);if(ct.length)for(var dt=Array.prototype.slice.call(arguments,2),gt=0;gt<ct.length;++gt)ct[gt].apply(null,dt)}function vi(it,at,ct){return typeof at=="string"&&(at={type:at,preventDefault:function(){this.defaultPrevented=!0}}),di(it,ct||at.type,it,at),Li(at)||at.codemirrorIgnore}function br(it){var at=it._handlers&&it._handlers.cursorActivity;if(at)for(var ct=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),dt=0;dt<at.length;++dt)Gt(ct,at[dt])==-1&&ct.push(at[dt])}function ii(it,at){return Ui(it,at).length>0}function mi(it){it.prototype.on=function(at,ct){Un(this,at,ct)},it.prototype.off=function(at,ct){Yi(this,at,ct)}}function Br(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function Gr(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Li(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function jr(it){Br(it),Gr(it)}function Lo(it){return it.target||it.srcElement}function ta(it){var at=it.which;return at==null&&(it.button&1?at=1:it.button&2?at=3:it.button&4&&(at=2)),ht&&it.ctrlKey&&at==1&&(at=3),at}var _o=function(){if(Se&&Ot<9)return!1;var it=Qt("div");return"draggable"in it||"dragDrop"in it}(),Io;function ea(it){if(Io==null){var at=Qt("span","\u200B");re(it,Qt("span",[at,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Io=at.offsetWidth<=1&&at.offsetHeight>2&&!(Se&&Ot<8))}var ct=Io?Qt("span","\u200B"):Qt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var To;function mr(it){if(To!=null)return To;var at=re(it,document.createTextNode("A\u062EA")),ct=he(at,0,1).getBoundingClientRect(),dt=he(at,1,2).getBoundingClientRect();return ie(it),!ct||ct.left==ct.right?!1:To=dt.right-ct.right<3}var cn=`
b`.split(/\n/).length!=3?function(it){for(var at=0,ct=[],dt=it.length;at<=dt;){var gt=it.indexOf(`
`,at);gt==-1&&(gt=it.length);var Et=it.slice(at,it.charAt(gt-1)=="\r"?gt-1:gt),Bt=Et.indexOf("\r");Bt!=-1?(ct.push(Et.slice(0,Bt)),at+=Bt+1):(ct.push(Et),at=gt+1)}return ct}:function(it){return it.split(/\r\n?|\n/)},xt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(at){return!1}}:function(it){var at;try{at=it.ownerDocument.selection.createRange()}catch(ct){}return!at||at.parentElement()!=it?!1:at.compareEndPoints("StartToEnd",at)!=0},In=function(){var it=Qt("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),gn=null;function Fn(it){if(gn!=null)return gn;var at=re(it,Qt("span","x")),ct=at.getBoundingClientRect(),dt=he(at,0,1).getBoundingClientRect();return gn=Math.abs(ct.left-dt.left)>1}var Nn={},Rn={};function ri(it,at){arguments.length>2&&(at.dependencies=Array.prototype.slice.call(arguments,2)),Nn[it]=at}function Ii(it,at){Rn[it]=at}function Ie(it){if(typeof it=="string"&&Rn.hasOwnProperty(it))it=Rn[it];else if(it&&typeof it.name=="string"&&Rn.hasOwnProperty(it.name)){var at=Rn[it.name];typeof at=="string"&&(at={name:at}),it=Pt(at,it),it.name=at.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Ie("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Ie("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Re(it,at){at=Ie(at);var ct=Nn[at.name];if(!ct)return Re(it,"text/plain");var dt=ct(it,at);if(se.hasOwnProperty(at.name)){var gt=se[at.name];for(var Et in gt)gt.hasOwnProperty(Et)&&(dt.hasOwnProperty(Et)&&(dt["_"+Et]=dt[Et]),dt[Et]=gt[Et])}if(dt.name=at.name,at.helperType&&(dt.helperType=at.helperType),at.modeProps)for(var Bt in at.modeProps)dt[Bt]=at.modeProps[Bt];return dt}var se={};function je(it,at){var ct=se.hasOwnProperty(it)?se[it]:se[it]={};Dn(at,ct)}function ti(it,at){if(at===!0)return at;if(it.copyState)return it.copyState(at);var ct={};for(var dt in at){var gt=at[dt];gt instanceof Array&&(gt=gt.concat([])),ct[dt]=gt}return ct}function _n(it,at){for(var ct;it.innerMode&&(ct=it.innerMode(at),!(!ct||ct.mode==it));)at=ct.state,it=ct.mode;return ct||{mode:it,state:at}}function Zn(it,at,ct){return it.startState?it.startState(at,ct):!0}var Me=function(it,at,ct){this.pos=this.start=0,this.string=it,this.tabSize=at||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ct};Me.prototype.eol=function(){return this.pos>=this.string.length},Me.prototype.sol=function(){return this.pos==this.lineStart},Me.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Me.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Me.prototype.eat=function(it){var at=this.string.charAt(this.pos),ct;if(typeof it=="string"?ct=at==it:ct=at&&(it.test?it.test(at):it(at)),ct)return++this.pos,at},Me.prototype.eatWhile=function(it){for(var at=this.pos;this.eat(it););return this.pos>at},Me.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Me.prototype.skipToEnd=function(){this.pos=this.string.length},Me.prototype.skipTo=function(it){var at=this.string.indexOf(it,this.pos);if(at>-1)return this.pos=at,!0},Me.prototype.backUp=function(it){this.pos-=it},Me.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=$t(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?$t(this.string,this.lineStart,this.tabSize):0)},Me.prototype.indentation=function(){return $t(this.string,null,this.tabSize)-(this.lineStart?$t(this.string,this.lineStart,this.tabSize):0)},Me.prototype.match=function(it,at,ct){if(typeof it=="string"){var dt=function(Bt){return ct?Bt.toLowerCase():Bt},gt=this.string.substr(this.pos,it.length);if(dt(gt)==dt(it))return at!==!1&&(this.pos+=it.length),!0}else{var Et=this.string.slice(this.pos).match(it);return Et&&Et.index>0?null:(Et&&at!==!1&&(this.pos+=Et[0].length),Et)}},Me.prototype.current=function(){return this.string.slice(this.start,this.pos)},Me.prototype.hideFirstChars=function(it,at){this.lineStart+=it;try{return at()}finally{this.lineStart-=it}},Me.prototype.lookAhead=function(it){var at=this.lineOracle;return at&&at.lookAhead(it)},Me.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function un(it,at){if(at-=it.first,at<0||at>=it.size)throw new Error("There is no line "+(at+it.first)+" in the document.");for(var ct=it;!ct.lines;)for(var dt=0;;++dt){var gt=ct.children[dt],Et=gt.chunkSize();if(at<Et){ct=gt;break}at-=Et}return ct.lines[at]}function xi(it,at,ct){var dt=[],gt=at.line;return it.iter(at.line,ct.line+1,function(Et){var Bt=Et.text;gt==ct.line&&(Bt=Bt.slice(0,ct.ch)),gt==at.line&&(Bt=Bt.slice(at.ch)),dt.push(Bt),++gt}),dt}function Di(it,at,ct){var dt=[];return it.iter(at,ct,function(gt){dt.push(gt.text)}),dt}function Cn(it,at){var ct=at-it.height;if(ct)for(var dt=it;dt;dt=dt.parent)dt.height+=ct}function be(it){if(it.parent==null)return null;for(var at=it.parent,ct=Gt(at.lines,it),dt=at.parent;dt;at=dt,dt=dt.parent)for(var gt=0;dt.children[gt]!=at;++gt)ct+=dt.children[gt].chunkSize();return ct+at.first}function fi(it,at){var ct=it.first;t:do{for(var dt=0;dt<it.children.length;++dt){var gt=it.children[dt],Et=gt.height;if(at<Et){it=gt;continue t}at-=Et,ct+=gt.chunkSize()}return ct}while(!it.lines);for(var Bt=0;Bt<it.lines.length;++Bt){var Ut=it.lines[Bt],Kt=Ut.height;if(at<Kt)break;at-=Kt}return ct+Bt}function Wi(it,at){return at>=it.first&&at<it.first+it.size}function Er(it,at){return String(it.lineNumberFormatter(at+it.firstLineNumber))}function fn(it,at,ct){if(ct===void 0&&(ct=null),!(this instanceof fn))return new fn(it,at,ct);this.line=it,this.ch=at,this.sticky=ct}function bi(it,at){return it.line-at.line||it.ch-at.ch}function Mr(it,at){return it.sticky==at.sticky&&bi(it,at)==0}function na(it){return fn(it.line,it.ch)}function Ao(it,at){return bi(it,at)<0?at:it}function Fi(it,at){return bi(it,at)<0?it:at}function Ai(it,at){return Math.max(it.first,Math.min(at,it.first+it.size-1))}function zi(it,at){if(at.line<it.first)return fn(it.first,0);var ct=it.first+it.size-1;return at.line>ct?fn(ct,un(it,ct).text.length):Jr(at,un(it,at.line).text.length)}function Jr(it,at){var ct=it.ch;return ct==null||ct>at?fn(it.line,at):ct<0?fn(it.line,0):it}function bo(it,at){for(var ct=[],dt=0;dt<at.length;dt++)ct[dt]=zi(it,at[dt]);return ct}var Yn=function(it,at){this.state=it,this.lookAhead=at},tr=function(it,at,ct,dt){this.state=at,this.doc=it,this.line=ct,this.maxLookAhead=dt||0,this.baseTokens=null,this.baseTokenPos=1};tr.prototype.lookAhead=function(it){var at=this.doc.getLine(this.line+it);return at!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),at},tr.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var at=this.baseTokens[this.baseTokenPos+1];return{type:at&&at.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},tr.fromSaved=function(it,at,ct){return at instanceof Yn?new tr(it,ti(it.mode,at.state),ct,at.lookAhead):new tr(it,ti(it.mode,at),ct)},tr.prototype.save=function(it){var at=it!==!1?ti(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Yn(at,this.maxLookAhead):at};function qs(it,at,ct,dt){var gt=[it.state.modeGen],Et={};Co(it,at.text,it.doc.mode,ct,function(oe,Be){return gt.push(oe,Be)},Et,dt);for(var Bt=ct.state,Ut=function(oe){ct.baseTokens=gt;var Be=it.state.overlays[oe],fe=1,on=0;ct.state=!0,Co(it,at.text,Be.mode,ct,function(tn,oi){for(var ui=fe;on<tn;){var Ei=gt[fe];Ei>tn&&gt.splice(fe,1,tn,gt[fe+1],Ei),fe+=2,on=Math.min(tn,Ei)}if(oi)if(Be.opaque)gt.splice(ui,fe-ui,tn,"overlay "+oi),fe=ui+2;else for(;ui<fe;ui+=2){var Gi=gt[ui+1];gt[ui+1]=(Gi?Gi+" ":"")+"overlay "+oi}},Et),ct.state=Bt,ct.baseTokens=null,ct.baseTokenPos=1},Kt=0;Kt<it.state.overlays.length;++Kt)Ut(Kt);return{styles:gt,classes:Et.bgClass||Et.textClass?Et:null}}function ns(it,at,ct){if(!at.styles||at.styles[0]!=it.state.modeGen){var dt=Wa(it,be(at)),gt=at.text.length>it.options.maxHighlightLength&&ti(it.doc.mode,dt.state),Et=qs(it,at,dt);gt&&(dt.state=gt),at.stateAfter=dt.save(!gt),at.styles=Et.styles,Et.classes?at.styleClasses=Et.classes:at.styleClasses&&(at.styleClasses=null),ct===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return at.styles}function Wa(it,at,ct){var dt=it.doc,gt=it.display;if(!dt.mode.startState)return new tr(dt,!0,at);var Et=Qr(it,at,ct),Bt=Et>dt.first&&un(dt,Et-1).stateAfter,Ut=Bt?tr.fromSaved(dt,Bt,Et):new tr(dt,Zn(dt.mode),Et);return dt.iter(Et,at,function(Kt){Te(it,Kt.text,Ut);var oe=Ut.line;Kt.stateAfter=oe==at-1||oe%5==0||oe>=gt.viewFrom&&oe<gt.viewTo?Ut.save():null,Ut.nextLine()}),ct&&(dt.modeFrontier=Ut.line),Ut}function Te(it,at,ct,dt){var gt=it.doc.mode,Et=new Me(at,it.options.tabSize,ct);for(Et.start=Et.pos=dt||0,at==""&&cr(gt,ct.state);!Et.eol();)co(gt,Et,ct.state),Et.start=Et.pos}function cr(it,at){if(it.blankLine)return it.blankLine(at);if(it.innerMode){var ct=_n(it,at);if(ct.mode.blankLine)return ct.mode.blankLine(ct.state)}}function co(it,at,ct,dt){for(var gt=0;gt<10;gt++){dt&&(dt[0]=_n(it,ct).mode);var Et=it.token(at,ct);if(at.pos>at.start)return Et}throw new Error("Mode "+it.name+" failed to advance stream.")}var _i=function(it,at,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=at||null,this.state=ct};function fa(it,at,ct,dt){var gt=it.doc,Et=gt.mode,Bt;at=zi(gt,at);var Ut=un(gt,at.line),Kt=Wa(it,at.line,ct),oe=new Me(Ut.text,it.options.tabSize,Kt),Be;for(dt&&(Be=[]);(dt||oe.pos<at.ch)&&!oe.eol();)oe.start=oe.pos,Bt=co(Et,oe,Kt.state),dt&&Be.push(new _i(oe,Bt,ti(gt.mode,Kt.state)));return dt?Be:new _i(oe,Bt,Kt.state)}function fo(it,at){if(it)for(;;){var ct=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ct)break;it=it.slice(0,ct.index)+it.slice(ct.index+ct[0].length);var dt=ct[1]?"bgClass":"textClass";at[dt]==null?at[dt]=ct[2]:new RegExp("(?:^|\\s)"+ct[2]+"(?:$|\\s)").test(at[dt])||(at[dt]+=" "+ct[2])}return it}function Co(it,at,ct,dt,gt,Et,Bt){var Ut=ct.flattenSpans;Ut==null&&(Ut=it.options.flattenSpans);var Kt=0,oe=null,Be=new Me(at,it.options.tabSize,dt),fe,on=it.options.addModeClass&&[null];for(at==""&&fo(cr(ct,dt.state),Et);!Be.eol();){if(Be.pos>it.options.maxHighlightLength?(Ut=!1,Bt&&Te(it,at,dt,Be.pos),Be.pos=at.length,fe=null):fe=fo(co(ct,Be,dt.state,on),Et),on){var tn=on[0].name;tn&&(fe="m-"+(fe?tn+" "+fe:tn))}if(!Ut||oe!=fe){for(;Kt<Be.start;)Kt=Math.min(Be.start,Kt+5e3),gt(Kt,oe);oe=fe}Be.start=Be.pos}for(;Kt<Be.pos;){var oi=Math.min(Be.pos,Kt+5e3);gt(oi,oe),Kt=oi}}function Qr(it,at,ct){for(var dt,gt,Et=it.doc,Bt=ct?-1:at-(it.doc.mode.innerMode?1e3:100),Ut=at;Ut>Bt;--Ut){if(Ut<=Et.first)return Et.first;var Kt=un(Et,Ut-1),oe=Kt.stateAfter;if(oe&&(!ct||Ut+(oe instanceof Yn?oe.lookAhead:0)<=Et.modeFrontier))return Ut;var Be=$t(Kt.text,null,it.options.tabSize);(gt==null||dt>Be)&&(gt=Ut-1,dt=Be)}return gt}function io(it,at){if(it.modeFrontier=Math.min(it.modeFrontier,at),!(it.highlightFrontier<at-10)){for(var ct=it.first,dt=at-1;dt>ct;dt--){var gt=un(it,dt).stateAfter;if(gt&&(!(gt instanceof Yn)||dt+gt.lookAhead<at)){ct=dt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,ct)}}var Zo=!1,vn=!1;function ma(){Zo=!0}function sn(){vn=!0}function lo(it,at,ct){this.marker=it,this.from=at,this.to=ct}function bs(it,at){if(it)for(var ct=0;ct<it.length;++ct){var dt=it[ct];if(dt.marker==at)return dt}}function xa(it,at){for(var ct,dt=0;dt<it.length;++dt)it[dt]!=at&&(ct||(ct=[])).push(it[dt]);return ct}function fl(it,at){it.markedSpans=it.markedSpans?it.markedSpans.concat([at]):[at],at.marker.attachLine(it)}function va(it,at,ct){var dt;if(it)for(var gt=0;gt<it.length;++gt){var Et=it[gt],Bt=Et.marker,Ut=Et.from==null||(Bt.inclusiveLeft?Et.from<=at:Et.from<at);if(Ut||Et.from==at&&Bt.type=="bookmark"&&(!ct||!Et.marker.insertLeft)){var Kt=Et.to==null||(Bt.inclusiveRight?Et.to>=at:Et.to>at);(dt||(dt=[])).push(new lo(Bt,Et.from,Kt?null:Et.to))}}return dt}function yo(it,at,ct){var dt;if(it)for(var gt=0;gt<it.length;++gt){var Et=it[gt],Bt=Et.marker,Ut=Et.to==null||(Bt.inclusiveRight?Et.to>=at:Et.to>at);if(Ut||Et.from==at&&Bt.type=="bookmark"&&(!ct||Et.marker.insertLeft)){var Kt=Et.from==null||(Bt.inclusiveLeft?Et.from<=at:Et.from<at);(dt||(dt=[])).push(new lo(Bt,Kt?null:Et.from-at,Et.to==null?null:Et.to-at))}}return dt}function ya(it,at){if(at.full)return null;var ct=Wi(it,at.from.line)&&un(it,at.from.line).markedSpans,dt=Wi(it,at.to.line)&&un(it,at.to.line).markedSpans;if(!ct&&!dt)return null;var gt=at.from.ch,Et=at.to.ch,Bt=bi(at.from,at.to)==0,Ut=va(ct,gt,Bt),Kt=yo(dt,Et,Bt),oe=at.text.length==1,Be=Oe(at.text).length+(oe?gt:0);if(Ut)for(var fe=0;fe<Ut.length;++fe){var on=Ut[fe];if(on.to==null){var tn=bs(Kt,on.marker);tn?oe&&(on.to=tn.to==null?null:tn.to+Be):on.to=gt}}if(Kt)for(var oi=0;oi<Kt.length;++oi){var ui=Kt[oi];if(ui.to!=null&&(ui.to+=Be),ui.from==null){var Ei=bs(Ut,ui.marker);Ei||(ui.from=Be,oe&&(Ut||(Ut=[])).push(ui))}else ui.from+=Be,oe&&(Ut||(Ut=[])).push(ui)}Ut&&(Ut=Ys(Ut)),Kt&&Kt!=Ut&&(Kt=Ys(Kt));var Gi=[Ut];if(!oe){var wr=at.text.length-2,ir;if(wr>0&&Ut)for(var Rr=0;Rr<Ut.length;++Rr)Ut[Rr].to==null&&(ir||(ir=[])).push(new lo(Ut[Rr].marker,null,null));for(var xo=0;xo<wr;++xo)Gi.push(ir);Gi.push(Kt)}return Gi}function Ys(it){for(var at=0;at<it.length;++at){var ct=it[at];ct.from!=null&&ct.from==ct.to&&ct.marker.clearWhenEmpty!==!1&&it.splice(at--,1)}return it.length?it:null}function $o(it,at,ct){var dt=null;if(it.iter(at.line,ct.line+1,function(tn){if(tn.markedSpans)for(var oi=0;oi<tn.markedSpans.length;++oi){var ui=tn.markedSpans[oi].marker;ui.readOnly&&(!dt||Gt(dt,ui)==-1)&&(dt||(dt=[])).push(ui)}}),!dt)return null;for(var gt=[{from:at,to:ct}],Et=0;Et<dt.length;++Et)for(var Bt=dt[Et],Ut=Bt.find(0),Kt=0;Kt<gt.length;++Kt){var oe=gt[Kt];if(!(bi(oe.to,Ut.from)<0||bi(oe.from,Ut.to)>0)){var Be=[Kt,1],fe=bi(oe.from,Ut.from),on=bi(oe.to,Ut.to);(fe<0||!Bt.inclusiveLeft&&!fe)&&Be.push({from:oe.from,to:Ut.from}),(on>0||!Bt.inclusiveRight&&!on)&&Be.push({from:Ut.to,to:oe.to}),gt.splice.apply(gt,Be),Kt+=Be.length-3}}return gt}function ci(it){var at=it.markedSpans;if(at){for(var ct=0;ct<at.length;++ct)at[ct].marker.detachLine(it);it.markedSpans=null}}function Zt(it,at){if(at){for(var ct=0;ct<at.length;++ct)at[ct].marker.attachLine(it);it.markedSpans=at}}function ts(it){return it.inclusiveLeft?-1:0}function uu(it){return it.inclusiveRight?1:0}function hu(it,at){var ct=it.lines.length-at.lines.length;if(ct!=0)return ct;var dt=it.find(),gt=at.find(),Et=bi(dt.from,gt.from)||ts(it)-ts(at);if(Et)return-Et;var Bt=bi(dt.to,gt.to)||uu(it)-uu(at);return Bt||at.id-it.id}function Xs(it,at){var ct=vn&&it.markedSpans,dt;if(ct)for(var gt=void 0,Et=0;Et<ct.length;++Et)gt=ct[Et],gt.marker.collapsed&&(at?gt.from:gt.to)==null&&(!dt||hu(dt,gt.marker)<0)&&(dt=gt.marker);return dt}function xu(it){return Xs(it,!0)}function Vl(it){return Xs(it,!1)}function lh(it,at){var ct=vn&&it.markedSpans,dt;if(ct)for(var gt=0;gt<ct.length;++gt){var Et=ct[gt];Et.marker.collapsed&&(Et.from==null||Et.from<at)&&(Et.to==null||Et.to>at)&&(!dt||hu(dt,Et.marker)<0)&&(dt=Et.marker)}return dt}function wu(it,at,ct,dt,gt){var Et=un(it,at),Bt=vn&&Et.markedSpans;if(Bt)for(var Ut=0;Ut<Bt.length;++Ut){var Kt=Bt[Ut];if(Kt.marker.collapsed){var oe=Kt.marker.find(0),Be=bi(oe.from,ct)||ts(Kt.marker)-ts(gt),fe=bi(oe.to,dt)||uu(Kt.marker)-uu(gt);if(!(Be>=0&&fe<=0||Be<=0&&fe>=0)&&(Be<=0&&(Kt.marker.inclusiveRight&&gt.inclusiveLeft?bi(oe.to,ct)>=0:bi(oe.to,ct)>0)||Be>=0&&(Kt.marker.inclusiveRight&&gt.inclusiveLeft?bi(oe.from,dt)<=0:bi(oe.from,dt)<0)))return!0}}}function ga(it){for(var at;at=xu(it);)it=at.find(-1,!0).line;return it}function Ha(it){for(var at;at=Vl(it);)it=at.find(1,!0).line;return it}function or(it){for(var at,ct;at=Vl(it);)it=at.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function Xi(it,at){var ct=un(it,at),dt=ga(ct);return ct==dt?at:be(dt)}function zr(it,at){if(at>it.lastLine())return at;var ct=un(it,at),dt;if(!$e(it,ct))return at;for(;dt=Vl(ct);)ct=dt.find(1,!0).line;return be(ct)+1}function $e(it,at){var ct=vn&&at.markedSpans;if(ct){for(var dt=void 0,gt=0;gt<ct.length;++gt)if(dt=ct[gt],!!dt.marker.collapsed){if(dt.from==null)return!0;if(!dt.marker.widgetNode&&dt.from==0&&dt.marker.inclusiveLeft&&fr(it,at,dt))return!0}}}function fr(it,at,ct){if(ct.to==null){var dt=ct.marker.find(1,!0);return fr(it,dt.line,bs(dt.line.markedSpans,ct.marker))}if(ct.marker.inclusiveRight&&ct.to==at.text.length)return!0;for(var gt=void 0,Et=0;Et<at.markedSpans.length;++Et)if(gt=at.markedSpans[Et],gt.marker.collapsed&&!gt.marker.widgetNode&&gt.from==ct.to&&(gt.to==null||gt.to!=ct.from)&&(gt.marker.inclusiveLeft||ct.marker.inclusiveRight)&&fr(it,at,gt))return!0}function eo(it){it=ga(it);for(var at=0,ct=it.parent,dt=0;dt<ct.lines.length;++dt){var gt=ct.lines[dt];if(gt==it)break;at+=gt.height}for(var Et=ct.parent;Et;ct=Et,Et=ct.parent)for(var Bt=0;Bt<Et.children.length;++Bt){var Ut=Et.children[Bt];if(Ut==ct)break;at+=Ut.height}return at}function wa(it){if(it.height==0)return 0;for(var at=it.text.length,ct,dt=it;ct=xu(dt);){var gt=ct.find(0,!0);dt=gt.from.line,at+=gt.from.ch-gt.to.ch}for(dt=it;ct=Vl(dt);){var Et=ct.find(0,!0);at-=dt.text.length-Et.from.ch,dt=Et.to.line,at+=dt.text.length-Et.to.ch}return at}function ua(it){var at=it.display,ct=it.doc;at.maxLine=un(ct,ct.first),at.maxLineLength=wa(at.maxLine),at.maxLineChanged=!0,ct.iter(function(dt){var gt=wa(dt);gt>at.maxLineLength&&(at.maxLineLength=gt,at.maxLine=dt)})}var Ga=function(it,at,ct){this.text=it,Zt(this,at),this.height=ct?ct(this):1};Ga.prototype.lineNo=function(){return be(this)},mi(Ga);function Ds(it,at,ct,dt){it.text=at,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),ci(it),Zt(it,ct);var gt=dt?dt(it):1;gt!=it.height&&Cn(it,gt)}function _s(it){it.parent=null,ci(it)}var $s={},uh={};function Qu(it,at){if(!it||/^\s*$/.test(it))return null;var ct=at.addModeClass?uh:$s;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function We(it,at){var ct=xe("span",null,null,qt?"padding-right: .1px":null),dt={pre:xe("pre",[ct],"CodeMirror-line"),content:ct,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};at.measure={};for(var gt=0;gt<=(at.rest?at.rest.length:0);gt++){var Et=gt?at.rest[gt-1]:at.line,Bt=void 0;dt.pos=0,dt.addToken=du,mr(it.display.measure)&&(Bt=Hn(Et,it.doc.direction))&&(dt.addToken=is(dt.addToken,Bt)),dt.map=[];var Ut=at!=it.display.externalMeasured&&be(Et);ed(Et,dt,ns(it,Et,Ut)),Et.styleClasses&&(Et.styleClasses.bgClass&&(dt.bgClass=Gn(Et.styleClasses.bgClass,dt.bgClass||"")),Et.styleClasses.textClass&&(dt.textClass=Gn(Et.styleClasses.textClass,dt.textClass||""))),dt.map.length==0&&dt.map.push(0,0,dt.content.appendChild(ea(it.display.measure))),gt==0?(at.measure.map=dt.map,at.measure.cache={}):((at.measure.maps||(at.measure.maps=[])).push(dt.map),(at.measure.caches||(at.measure.caches=[])).push({}))}if(qt){var Kt=dt.content.lastChild;(/\bcm-tab\b/.test(Kt.className)||Kt.querySelector&&Kt.querySelector(".cm-tab"))&&(dt.content.className="cm-tab-wrap-hack")}return di(it,"renderLine",it,at.line,dt.pre),dt.pre.className&&(dt.textClass=Gn(dt.pre.className,dt.textClass||"")),dt}function gl(it){var at=Qt("span","\u2022","cm-invalidchar");return at.title="\\u"+it.charCodeAt(0).toString(16),at.setAttribute("aria-label",at.title),at}function du(it,at,ct,dt,gt,Et,Bt){if(at){var Ut=it.splitSpaces?qu(at,it.trailingSpace):at,Kt=it.cm.state.specialChars,oe=!1,Be;if(!Kt.test(at))it.col+=at.length,Be=document.createTextNode(Ut),it.map.push(it.pos,it.pos+at.length,Be),Se&&Ot<9&&(oe=!0),it.pos+=at.length;else{Be=document.createDocumentFragment();for(var fe=0;;){Kt.lastIndex=fe;var on=Kt.exec(at),tn=on?on.index-fe:at.length-fe;if(tn){var oi=document.createTextNode(Ut.slice(fe,fe+tn));Se&&Ot<9?Be.appendChild(Qt("span",[oi])):Be.appendChild(oi),it.map.push(it.pos,it.pos+tn,oi),it.col+=tn,it.pos+=tn}if(!on)break;fe+=tn+1;var ui=void 0;if(on[0]==" "){var Ei=it.cm.options.tabSize,Gi=Ei-it.col%Ei;ui=Be.appendChild(Qt("span",de(Gi),"cm-tab")),ui.setAttribute("role","presentation"),ui.setAttribute("cm-text"," "),it.col+=Gi}else on[0]=="\r"||on[0]==`
`?(ui=Be.appendChild(Qt("span",on[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ui.setAttribute("cm-text",on[0]),it.col+=1):(ui=it.cm.options.specialCharPlaceholder(on[0]),ui.setAttribute("cm-text",on[0]),Se&&Ot<9?Be.appendChild(Qt("span",[ui])):Be.appendChild(ui),it.col+=1);it.map.push(it.pos,it.pos+1,ui),it.pos++}}if(it.trailingSpace=Ut.charCodeAt(at.length-1)==32,ct||dt||gt||oe||Et||Bt){var wr=ct||"";dt&&(wr+=dt),gt&&(wr+=gt);var ir=Qt("span",[Be],wr,Et);if(Bt)for(var Rr in Bt)Bt.hasOwnProperty(Rr)&&Rr!="style"&&Rr!="class"&&ir.setAttribute(Rr,Bt[Rr]);return it.content.appendChild(ir)}it.content.appendChild(Be)}}function qu(it,at){if(it.length>1&&!/ /.test(it))return it;for(var ct=at,dt="",gt=0;gt<it.length;gt++){var Et=it.charAt(gt);Et==" "&&ct&&(gt==it.length-1||it.charCodeAt(gt+1)==32)&&(Et="\xA0"),dt+=Et,ct=Et==" "}return dt}function is(it,at){return function(ct,dt,gt,Et,Bt,Ut,Kt){gt=gt?gt+" cm-force-border":"cm-force-border";for(var oe=ct.pos,Be=oe+dt.length;;){for(var fe=void 0,on=0;on<at.length&&(fe=at[on],!(fe.to>oe&&fe.from<=oe));on++);if(fe.to>=Be)return it(ct,dt,gt,Et,Bt,Ut,Kt);it(ct,dt.slice(0,fe.to-oe),gt,Et,null,Ut,Kt),Et=null,dt=dt.slice(fe.to-oe),oe=fe.to}}}function _u(it,at,ct,dt){var gt=!dt&&ct.widgetNode;gt&&it.map.push(it.pos,it.pos+at,gt),!dt&&it.cm.display.input.needsContentAttribute&&(gt||(gt=it.content.appendChild(document.createElement("span"))),gt.setAttribute("cm-marker",ct.id)),gt&&(it.cm.display.input.setUneditable(gt),it.content.appendChild(gt)),it.pos+=at,it.trailingSpace=!1}function ed(it,at,ct){var dt=it.markedSpans,gt=it.text,Et=0;if(!dt){for(var Bt=1;Bt<ct.length;Bt+=2)at.addToken(at,gt.slice(Et,Et=ct[Bt]),Qu(ct[Bt+1],at.cm.options));return}for(var Ut=gt.length,Kt=0,oe=1,Be="",fe,on,tn=0,oi,ui,Ei,Gi,wr;;){if(tn==Kt){oi=ui=Ei=on="",wr=null,Gi=null,tn=1/0;for(var ir=[],Rr=void 0,xo=0;xo<dt.length;++xo){var nr=dt[xo],qo=nr.marker;if(qo.type=="bookmark"&&nr.from==Kt&&qo.widgetNode)ir.push(qo);else if(nr.from<=Kt&&(nr.to==null||nr.to>Kt||qo.collapsed&&nr.to==Kt&&nr.from==Kt)){if(nr.to!=null&&nr.to!=Kt&&tn>nr.to&&(tn=nr.to,ui=""),qo.className&&(oi+=" "+qo.className),qo.css&&(on=(on?on+";":"")+qo.css),qo.startStyle&&nr.from==Kt&&(Ei+=" "+qo.startStyle),qo.endStyle&&nr.to==tn&&(Rr||(Rr=[])).push(qo.endStyle,nr.to),qo.title&&((wr||(wr={})).title=qo.title),qo.attributes)for(var Es in qo.attributes)(wr||(wr={}))[Es]=qo.attributes[Es];qo.collapsed&&(!Gi||hu(Gi.marker,qo)<0)&&(Gi=nr)}else nr.from>Kt&&tn>nr.from&&(tn=nr.from)}if(Rr)for(var El=0;El<Rr.length;El+=2)Rr[El+1]==tn&&(ui+=" "+Rr[El]);if(!Gi||Gi.from==Kt)for(var Is=0;Is<ir.length;++Is)_u(at,0,ir[Is]);if(Gi&&(Gi.from||0)==Kt){if(_u(at,(Gi.to==null?Ut+1:Gi.to)-Kt,Gi.marker,Gi.from==null),Gi.to==null)return;Gi.to==Kt&&(Gi=!1)}}if(Kt>=Ut)break;for(var Nu=Math.min(Ut,tn);;){if(Be){var iu=Kt+Be.length;if(!Gi){var hl=iu>Nu?Be.slice(0,Nu-Kt):Be;at.addToken(at,hl,fe?fe+oi:oi,Ei,Kt+hl.length==tn?ui:"",on,wr)}if(iu>=Nu){Be=Be.slice(Nu-Kt),Kt=Nu;break}Kt=iu,Ei=""}Be=gt.slice(Et,Et=ct[oe++]),fe=Qu(ct[oe++],at.cm.options)}}}function Ch(it,at,ct){this.line=at,this.rest=or(at),this.size=this.rest?be(Oe(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=$e(it,at)}function Pa(it,at,ct){for(var dt=[],gt,Et=at;Et<ct;Et=gt){var Bt=new Ch(it.doc,un(it.doc,Et),Et);gt=Et+Bt.size,dt.push(Bt)}return dt}var cs=null;function qr(it){cs?cs.ops.push(it):it.ownsGroup=cs={ops:[it],delayedCallbacks:[]}}function wo(it){var at=it.delayedCallbacks,ct=0;do{for(;ct<at.length;ct++)at[ct].call(null);for(var dt=0;dt<it.ops.length;dt++){var gt=it.ops[dt];if(gt.cursorActivityHandlers)for(;gt.cursorActivityCalled<gt.cursorActivityHandlers.length;)gt.cursorActivityHandlers[gt.cursorActivityCalled++].call(null,gt.cm)}}while(ct<at.length)}function Ca(it,at){var ct=it.ownsGroup;if(ct)try{wo(ct)}finally{cs=null,at(ct)}}var rs=null;function Qi(it,at){var ct=Ui(it,at);if(ct.length){var dt=Array.prototype.slice.call(arguments,2),gt;cs?gt=cs.delayedCallbacks:rs?gt=rs:(gt=rs=[],setTimeout(xd,0));for(var Et=function(Ut){gt.push(function(){return ct[Ut].apply(null,dt)})},Bt=0;Bt<ct.length;++Bt)Et(Bt)}}function xd(){var it=rs;rs=null;for(var at=0;at<it.length;++at)it[at]()}function $u(it,at,ct,dt){for(var gt=0;gt<at.changes.length;gt++){var Et=at.changes[gt];Et=="text"?yi(it,at):Et=="gutter"?ms(it,at,ct,dt):Et=="class"?ps(it,at):Et=="widget"&&Ru(it,at,dt)}at.changes=null}function Ml(it){return it.node==it.text&&(it.node=Qt("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),Se&&Ot<8&&(it.node.style.zIndex=2)),it.node}function wd(it,at){var ct=at.bgClass?at.bgClass+" "+(at.line.bgClass||""):at.line.bgClass;if(ct&&(ct+=" CodeMirror-linebackground"),at.background)ct?at.background.className=ct:(at.background.parentNode.removeChild(at.background),at.background=null);else if(ct){var dt=Ml(at);at.background=dt.insertBefore(Qt("div",null,ct),dt.firstChild),it.display.input.setUneditable(at.background)}}function Eh(it,at){var ct=it.display.externalMeasured;return ct&&ct.line==at.line?(it.display.externalMeasured=null,at.measure=ct.measure,ct.built):We(it,at)}function yi(it,at){var ct=at.text.className,dt=Eh(it,at);at.text==at.node&&(at.node=dt.pre),at.text.parentNode.replaceChild(dt.pre,at.text),at.text=dt.pre,dt.bgClass!=at.bgClass||dt.textClass!=at.textClass?(at.bgClass=dt.bgClass,at.textClass=dt.textClass,ps(it,at)):ct&&(at.text.className=ct)}function ps(it,at){wd(it,at),at.line.wrapClass?Ml(at).className=at.line.wrapClass:at.node!=at.text&&(at.node.className="");var ct=at.textClass?at.textClass+" "+(at.line.textClass||""):at.line.textClass;at.text.className=ct||""}function ms(it,at,ct,dt){if(at.gutter&&(at.node.removeChild(at.gutter),at.gutter=null),at.gutterBackground&&(at.node.removeChild(at.gutterBackground),at.gutterBackground=null),at.line.gutterClass){var gt=Ml(at);at.gutterBackground=Qt("div",null,"CodeMirror-gutter-background "+at.line.gutterClass,"left: "+(it.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px; width: "+dt.gutterTotalWidth+"px"),it.display.input.setUneditable(at.gutterBackground),gt.insertBefore(at.gutterBackground,at.text)}var Et=at.line.gutterMarkers;if(it.options.lineNumbers||Et){var Bt=Ml(at),Ut=at.gutter=Qt("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Ut),Bt.insertBefore(Ut,at.text),at.line.gutterClass&&(Ut.className+=" "+at.line.gutterClass),it.options.lineNumbers&&(!Et||!Et["CodeMirror-linenumbers"])&&(at.lineNumber=Ut.appendChild(Qt("div",Er(it.options,ct),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+dt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Et)for(var Kt=0;Kt<it.display.gutterSpecs.length;++Kt){var oe=it.display.gutterSpecs[Kt].className,Be=Et.hasOwnProperty(oe)&&Et[oe];Be&&Ut.appendChild(Qt("div",[Be],"CodeMirror-gutter-elt","left: "+dt.gutterLeft[oe]+"px; width: "+dt.gutterWidth[oe]+"px"))}}}function Ru(it,at,ct){at.alignable&&(at.alignable=null);for(var dt=It("CodeMirror-linewidget"),gt=at.node.firstChild,Et=void 0;gt;gt=Et)Et=gt.nextSibling,dt.test(gt.className)&&at.node.removeChild(gt);nd(it,at,ct)}function Pd(it,at,ct,dt){var gt=Eh(it,at);return at.text=at.node=gt.pre,gt.bgClass&&(at.bgClass=gt.bgClass),gt.textClass&&(at.textClass=gt.textClass),ps(it,at),ms(it,at,ct,dt),nd(it,at,dt),at.node}function nd(it,at,ct){if($r(it,at.line,at,ct,!0),at.rest)for(var dt=0;dt<at.rest.length;dt++)$r(it,at.rest[dt],at,ct,!1)}function $r(it,at,ct,dt,gt){if(at.widgets)for(var Et=Ml(ct),Bt=0,Ut=at.widgets;Bt<Ut.length;++Bt){var Kt=Ut[Bt],oe=Qt("div",[Kt.node],"CodeMirror-linewidget"+(Kt.className?" "+Kt.className:""));Kt.handleMouseEvents||oe.setAttribute("cm-ignore-events","true"),id(Kt,oe,ct,dt),it.display.input.setUneditable(oe),gt&&Kt.above?Et.insertBefore(oe,ct.gutter||ct.text):Et.appendChild(oe),Qi(Kt,"redraw")}}function id(it,at,ct,dt){if(it.noHScroll){(ct.alignable||(ct.alignable=[])).push(at);var gt=dt.wrapperWidth;at.style.left=dt.fixedPos+"px",it.coverGutter||(gt-=dt.gutterTotalWidth,at.style.paddingLeft=dt.gutterTotalWidth+"px"),at.style.width=gt+"px"}it.coverGutter&&(at.style.zIndex=5,at.style.position="relative",it.noHScroll||(at.style.marginLeft=-dt.gutterTotalWidth+"px"))}function Pu(it){if(it.height!=null)return it.height;var at=it.doc.cm;if(!at)return 0;if(!Le(document.body,it.node)){var ct="position: relative;";it.coverGutter&&(ct+="margin-left: -"+at.display.gutters.offsetWidth+"px;"),it.noHScroll&&(ct+="width: "+at.display.wrapper.clientWidth+"px;"),re(at.display.measure,Qt("div",[it.node],null,ct))}return it.height=it.node.parentNode.offsetHeight}function kl(it,at){for(var ct=Lo(at);ct!=it.wrapper;ct=ct.parentNode)if(!ct||ct.nodeType==1&&ct.getAttribute("cm-ignore-events")=="true"||ct.parentNode==it.sizer&&ct!=it.mover)return!0}function Ul(it){return it.lineSpace.offsetTop}function Hh(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function Cd(it){if(it.cachedPaddingH)return it.cachedPaddingH;var at=re(it.measure,Qt("pre","x","CodeMirror-line-like")),ct=window.getComputedStyle?window.getComputedStyle(at):at.currentStyle,dt={left:parseInt(ct.paddingLeft),right:parseInt(ct.paddingRight)};return!isNaN(dt.left)&&!isNaN(dt.right)&&(it.cachedPaddingH=dt),dt}function pl(it){return _e-it.display.nativeBarWidth}function Cu(it){return it.display.scroller.clientWidth-pl(it)-it.display.barWidth}function Ed(it){return it.display.scroller.clientHeight-pl(it)-it.display.barHeight}function Mc(it,at,ct){var dt=it.options.lineWrapping,gt=dt&&Cu(it);if(!at.measure.heights||dt&&at.measure.width!=gt){var Et=at.measure.heights=[];if(dt){at.measure.width=gt;for(var Bt=at.text.firstChild.getClientRects(),Ut=0;Ut<Bt.length-1;Ut++){var Kt=Bt[Ut],oe=Bt[Ut+1];Math.abs(Kt.bottom-oe.bottom)>2&&Et.push((Kt.bottom+oe.top)/2-ct.top)}}Et.push(ct.bottom-ct.top)}}function Ld(it,at,ct){if(it.line==at)return{map:it.measure.map,cache:it.measure.cache};for(var dt=0;dt<it.rest.length;dt++)if(it.rest[dt]==at)return{map:it.measure.maps[dt],cache:it.measure.caches[dt]};for(var gt=0;gt<it.rest.length;gt++)if(be(it.rest[gt])>ct)return{map:it.measure.maps[gt],cache:it.measure.caches[gt],before:!0}}function rf(it,at){at=ga(at);var ct=be(at),dt=it.display.externalMeasured=new Ch(it.doc,at,ct);dt.lineN=ct;var gt=dt.built=We(it,dt);return dt.text=gt.pre,re(it.display.lineMeasure,gt.pre),dt}function Jd(it,at,ct,dt){return zu(it,Lh(it,at),ct,dt)}function Eu(it,at){if(at>=it.display.viewFrom&&at<it.display.viewTo)return it.display.view[nl(it,at)];var ct=it.display.externalMeasured;if(ct&&at>=ct.lineN&&at<ct.lineN+ct.size)return ct}function Lh(it,at){var ct=be(at),dt=Eu(it,ct);dt&&!dt.text?dt=null:dt&&dt.changes&&($u(it,dt,ct,Nd(it)),it.curOp.forceUpdate=!0),dt||(dt=rf(it,at));var gt=Ld(dt,at,ct);return{line:at,view:dt,rect:null,map:gt.map,cache:gt.cache,before:gt.before,hasHeights:!1}}function zu(it,at,ct,dt,gt){at.before&&(ct=-1);var Et=ct+(dt||""),Bt;return at.cache.hasOwnProperty(Et)?Bt=at.cache[Et]:(at.rect||(at.rect=at.view.text.getBoundingClientRect()),at.hasHeights||(Mc(it,at.view,at.rect),at.hasHeights=!0),Bt=vs(it,at,ct,dt),Bt.bogus||(at.cache[Et]=Bt)),{left:Bt.left,right:Bt.right,top:gt?Bt.rtop:Bt.top,bottom:gt?Bt.rbottom:Bt.bottom}}var rd={left:0,right:0,top:0,bottom:0};function Qd(it,at,ct){for(var dt,gt,Et,Bt,Ut,Kt,oe=0;oe<it.length;oe+=3)if(Ut=it[oe],Kt=it[oe+1],at<Ut?(gt=0,Et=1,Bt="left"):at<Kt?(gt=at-Ut,Et=gt+1):(oe==it.length-3||at==Kt&&it[oe+3]>at)&&(Et=Kt-Ut,gt=Et-1,at>=Kt&&(Bt="right")),gt!=null){if(dt=it[oe+2],Ut==Kt&&ct==(dt.insertLeft?"left":"right")&&(Bt=ct),ct=="left"&&gt==0)for(;oe&&it[oe-2]==it[oe-3]&&it[oe-1].insertLeft;)dt=it[(oe-=3)+2],Bt="left";if(ct=="right"&&gt==Kt-Ut)for(;oe<it.length-3&&it[oe+3]==it[oe+4]&&!it[oe+5].insertLeft;)dt=it[(oe+=3)+2],Bt="right";break}return{node:dt,start:gt,end:Et,collapse:Bt,coverStart:Ut,coverEnd:Kt}}function kc(it,at){var ct=rd;if(at=="left")for(var dt=0;dt<it.length&&(ct=it[dt]).left==ct.right;dt++);else for(var gt=it.length-1;gt>=0&&(ct=it[gt]).left==ct.right;gt--);return ct}function vs(it,at,ct,dt){var gt=Qd(at.map,ct,dt),Et=gt.node,Bt=gt.start,Ut=gt.end,Kt=gt.collapse,oe;if(Et.nodeType==3){for(var Be=0;Be<4;Be++){for(;Bt&&Xe(at.line.text.charAt(gt.coverStart+Bt));)--Bt;for(;gt.coverStart+Ut<gt.coverEnd&&Xe(at.line.text.charAt(gt.coverStart+Ut));)++Ut;if(Se&&Ot<9&&Bt==0&&Ut==gt.coverEnd-gt.coverStart?oe=Et.parentNode.getBoundingClientRect():oe=kc(he(Et,Bt,Ut).getClientRects(),dt),oe.left||oe.right||Bt==0)break;Ut=Bt,Bt=Bt-1,Kt="right"}Se&&Ot<11&&(oe=Tf(it.display.measure,oe))}else{Bt>0&&(Kt=dt="right");var fe;it.options.lineWrapping&&(fe=Et.getClientRects()).length>1?oe=fe[dt=="right"?fe.length-1:0]:oe=Et.getBoundingClientRect()}if(Se&&Ot<9&&!Bt&&(!oe||!oe.left&&!oe.right)){var on=Et.parentNode.getClientRects()[0];on?oe={left:on.left,right:on.left+Wu(it.display),top:on.top,bottom:on.bottom}:oe=rd}for(var tn=oe.top-at.rect.top,oi=oe.bottom-at.rect.top,ui=(tn+oi)/2,Ei=at.view.measure.heights,Gi=0;Gi<Ei.length-1&&!(ui<Ei[Gi]);Gi++);var wr=Gi?Ei[Gi-1]:0,ir=Ei[Gi],Rr={left:(Kt=="right"?oe.right:oe.left)-at.rect.left,right:(Kt=="left"?oe.left:oe.right)-at.rect.left,top:wr,bottom:ir};return!oe.left&&!oe.right&&(Rr.bogus=!0),it.options.singleCursorHeightPerLine||(Rr.rtop=tn,Rr.rbottom=oi),Rr}function Tf(it,at){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Fn(it))return at;var ct=screen.logicalXDPI/screen.deviceXDPI,dt=screen.logicalYDPI/screen.deviceYDPI;return{left:at.left*ct,right:at.right*ct,top:at.top*dt,bottom:at.bottom*dt}}function qd(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var at=0;at<it.rest.length;at++)it.measure.caches[at]={}}function Ad(it){it.display.externalMeasure=null,ie(it.display.lineMeasure);for(var at=0;at<it.display.view.length;at++)qd(it.display.view[at])}function Ah(it){Ad(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function ml(){return me&&nt?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function tl(){return me&&nt?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function xs(it){var at=0;if(it.widgets)for(var ct=0;ct<it.widgets.length;++ct)it.widgets[ct].above&&(at+=Pu(it.widgets[ct]));return at}function zs(it,at,ct,dt,gt){if(!gt){var Et=xs(at);ct.top+=Et,ct.bottom+=Et}if(dt=="line")return ct;dt||(dt="local");var Bt=eo(at);if(dt=="local"?Bt+=Ul(it.display):Bt-=it.display.viewOffset,dt=="page"||dt=="window"){var Ut=it.display.lineSpace.getBoundingClientRect();Bt+=Ut.top+(dt=="window"?0:tl());var Kt=Ut.left+(dt=="window"?0:ml());ct.left+=Kt,ct.right+=Kt}return ct.top+=Bt,ct.bottom+=Bt,ct}function bd(it,at,ct){if(ct=="div")return at;var dt=at.left,gt=at.top;if(ct=="page")dt-=ml(),gt-=tl();else if(ct=="local"||!ct){var Et=it.display.sizer.getBoundingClientRect();dt+=Et.left,gt+=Et.top}var Bt=it.display.lineSpace.getBoundingClientRect();return{left:dt-Bt.left,top:gt-Bt.top}}function el(it,at,ct,dt,gt){return dt||(dt=un(it.doc,at.line)),zs(it,dt,Jd(it,dt,at.ch,gt),ct)}function Ka(it,at,ct,dt,gt,Et){dt=dt||un(it.doc,at.line),gt||(gt=Lh(it,dt));function Bt(oi,ui){var Ei=zu(it,gt,oi,ui?"right":"left",Et);return ui?Ei.left=Ei.right:Ei.right=Ei.left,zs(it,dt,Ei,ct)}var Ut=Hn(dt,it.doc.direction),Kt=at.ch,oe=at.sticky;if(Kt>=dt.text.length?(Kt=dt.text.length,oe="before"):Kt<=0&&(Kt=0,oe="after"),!Ut)return Bt(oe=="before"?Kt-1:Kt,oe=="before");function Be(oi,ui,Ei){var Gi=Ut[ui],wr=Gi.level==1;return Bt(Ei?oi-1:oi,wr!=Ei)}var fe=De(Ut,Kt,oe),on=wn,tn=Be(Kt,fe,oe=="before");return on!=null&&(tn.other=Be(Kt,on,oe!="before")),tn}function Md(it,at){var ct=0;at=zi(it.doc,at),it.options.lineWrapping||(ct=Wu(it.display)*at.ch);var dt=un(it.doc,at.line),gt=eo(dt)+Ul(it.display);return{left:ct,right:ct,top:gt,bottom:gt+dt.height}}function kd(it,at,ct,dt,gt){var Et=fn(it,at,ct);return Et.xRel=gt,dt&&(Et.outside=dt),Et}function _d(it,at,ct){var dt=it.doc;if(ct+=it.display.viewOffset,ct<0)return kd(dt.first,0,null,-1,-1);var gt=fi(dt,ct),Et=dt.first+dt.size-1;if(gt>Et)return kd(dt.first+dt.size-1,un(dt,Et).text.length,null,1,1);at<0&&(at=0);for(var Bt=un(dt,gt);;){var Ut=yn(it,Bt,gt,at,ct),Kt=lh(Bt,Ut.ch+(Ut.xRel>0||Ut.outside>0?1:0));if(!Kt)return Ut;var oe=Kt.find(1);if(oe.line==gt)return oe;Bt=un(dt,gt=oe.line)}}function er(it,at,ct,dt){dt-=xs(at);var gt=at.text.length,Et=En(function(Bt){return zu(it,ct,Bt-1).bottom<=dt},gt,0);return gt=En(function(Bt){return zu(it,ct,Bt).top>dt},Et,gt),{begin:Et,end:gt}}function Fd(it,at,ct,dt){ct||(ct=Lh(it,at));var gt=zs(it,at,zu(it,ct,dt),"line").top;return er(it,at,ct,gt)}function pe(it,at,ct,dt){return it.bottom<=ct?!1:it.top>ct?!0:(dt?it.left:it.right)>at}function yn(it,at,ct,dt,gt){gt-=eo(at);var Et=Lh(it,at),Bt=xs(at),Ut=0,Kt=at.text.length,oe=!0,Be=Hn(at,it.doc.direction);if(Be){var fe=(it.options.lineWrapping?bh:Lu)(it,at,ct,Et,Be,dt,gt);oe=fe.level!=1,Ut=oe?fe.from:fe.to-1,Kt=oe?fe.to:fe.from-1}var on=null,tn=null,oi=En(function(xo){var nr=zu(it,Et,xo);return nr.top+=Bt,nr.bottom+=Bt,pe(nr,dt,gt,!1)?(nr.top<=gt&&nr.left<=dt&&(on=xo,tn=nr),!0):!1},Ut,Kt),ui,Ei,Gi=!1;if(tn){var wr=dt-tn.left<tn.right-dt,ir=wr==oe;oi=on+(ir?0:1),Ei=ir?"after":"before",ui=wr?tn.left:tn.right}else{!oe&&(oi==Kt||oi==Ut)&&oi++,Ei=oi==0?"after":oi==at.text.length?"before":zu(it,Et,oi-(oe?1:0)).bottom+Bt<=gt==oe?"after":"before";var Rr=Ka(it,fn(ct,oi,Ei),"line",at,Et);ui=Rr.left,Gi=gt<Rr.top?-1:gt>=Rr.bottom?1:0}return oi=zn(at.text,oi,1),kd(ct,oi,Ei,Gi,dt-ui)}function Lu(it,at,ct,dt,gt,Et,Bt){var Ut=En(function(fe){var on=gt[fe],tn=on.level!=1;return pe(Ka(it,fn(ct,tn?on.to:on.from,tn?"before":"after"),"line",at,dt),Et,Bt,!0)},0,gt.length-1),Kt=gt[Ut];if(Ut>0){var oe=Kt.level!=1,Be=Ka(it,fn(ct,oe?Kt.from:Kt.to,oe?"after":"before"),"line",at,dt);pe(Be,Et,Bt,!0)&&Be.top>Bt&&(Kt=gt[Ut-1])}return Kt}function bh(it,at,ct,dt,gt,Et,Bt){var Ut=er(it,at,dt,Bt),Kt=Ut.begin,oe=Ut.end;/\s/.test(at.text.charAt(oe-1))&&oe--;for(var Be=null,fe=null,on=0;on<gt.length;on++){var tn=gt[on];if(!(tn.from>=oe||tn.to<=Kt)){var oi=tn.level!=1,ui=zu(it,dt,oi?Math.min(oe,tn.to)-1:Math.max(Kt,tn.from)).right,Ei=ui<Et?Et-ui+1e9:ui-Et;(!Be||fe>Ei)&&(Be=tn,fe=Ei)}}return Be||(Be=gt[gt.length-1]),Be.from<Kt&&(Be={from:Kt,to:Be.to,level:Be.level}),Be.to>oe&&(Be={from:Be.from,to:oe,level:Be.level}),Be}var hh;function ju(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(hh==null){hh=Qt("pre",null,"CodeMirror-line-like");for(var at=0;at<49;++at)hh.appendChild(document.createTextNode("x")),hh.appendChild(Qt("br"));hh.appendChild(document.createTextNode("x"))}re(it.measure,hh);var ct=hh.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),ie(it.measure),ct||1}function Wu(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var at=Qt("span","xxxxxxxxxx"),ct=Qt("pre",[at],"CodeMirror-line-like");re(it.measure,ct);var dt=at.getBoundingClientRect(),gt=(dt.right-dt.left)/10;return gt>2&&(it.cachedCharWidth=gt),gt||10}function Nd(it){for(var at=it.display,ct={},dt={},gt=at.gutters.clientLeft,Et=at.gutters.firstChild,Bt=0;Et;Et=Et.nextSibling,++Bt){var Ut=it.display.gutterSpecs[Bt].className;ct[Ut]=Et.offsetLeft+Et.clientLeft+gt,dt[Ut]=Et.clientWidth}return{fixedPos:Mh(at),gutterTotalWidth:at.gutters.offsetWidth,gutterLeft:ct,gutterWidth:dt,wrapperWidth:at.wrapper.clientWidth}}function Mh(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function es(it){var at=ju(it.display),ct=it.options.lineWrapping,dt=ct&&Math.max(5,it.display.scroller.clientWidth/Wu(it.display)-3);return function(gt){if($e(it.doc,gt))return 0;var Et=0;if(gt.widgets)for(var Bt=0;Bt<gt.widgets.length;Bt++)gt.widgets[Bt].height&&(Et+=gt.widgets[Bt].height);return ct?Et+(Math.ceil(gt.text.length/dt)||1)*at:Et+at}}function kr(it){var at=it.doc,ct=es(it);at.iter(function(dt){var gt=ct(dt);gt!=dt.height&&Cn(dt,gt)})}function il(it,at,ct,dt){var gt=it.display;if(!ct&&Lo(at).getAttribute("cm-not-content")=="true")return null;var Et,Bt,Ut=gt.lineSpace.getBoundingClientRect();try{Et=at.clientX-Ut.left,Bt=at.clientY-Ut.top}catch(fe){return null}var Kt=_d(it,Et,Bt),oe;if(dt&&Kt.xRel>0&&(oe=un(it.doc,Kt.line).text).length==Kt.ch){var Be=$t(oe,oe.length,it.options.tabSize)-oe.length;Kt=fn(Kt.line,Math.max(0,Math.round((Et-Cd(it.display).left)/Wu(it.display))-Be))}return Kt}function nl(it,at){if(at>=it.display.viewTo||(at-=it.display.viewFrom,at<0))return null;for(var ct=it.display.view,dt=0;dt<ct.length;dt++)if(at-=ct[dt].size,at<0)return dt}function Ya(it,at,ct,dt){at==null&&(at=it.doc.first),ct==null&&(ct=it.doc.first+it.doc.size),dt||(dt=0);var gt=it.display;if(dt&&ct<gt.viewTo&&(gt.updateLineNumbers==null||gt.updateLineNumbers>at)&&(gt.updateLineNumbers=at),it.curOp.viewChanged=!0,at>=gt.viewTo)vn&&Xi(it.doc,at)<gt.viewTo&&ws(it);else if(ct<=gt.viewFrom)vn&&zr(it.doc,ct+dt)>gt.viewFrom?ws(it):(gt.viewFrom+=dt,gt.viewTo+=dt);else if(at<=gt.viewFrom&&ct>=gt.viewTo)ws(it);else if(at<=gt.viewFrom){var Et=Fl(it,ct,ct+dt,1);Et?(gt.view=gt.view.slice(Et.index),gt.viewFrom=Et.lineN,gt.viewTo+=dt):ws(it)}else if(ct>=gt.viewTo){var Bt=Fl(it,at,at,-1);Bt?(gt.view=gt.view.slice(0,Bt.index),gt.viewTo=Bt.lineN):ws(it)}else{var Ut=Fl(it,at,at,-1),Kt=Fl(it,ct,ct+dt,1);Ut&&Kt?(gt.view=gt.view.slice(0,Ut.index).concat(Pa(it,Ut.lineN,Kt.lineN)).concat(gt.view.slice(Kt.index)),gt.viewTo+=dt):ws(it)}var oe=gt.externalMeasured;oe&&(ct<oe.lineN?oe.lineN+=dt:at<oe.lineN+oe.size&&(gt.externalMeasured=null))}function Do(it,at,ct){it.curOp.viewChanged=!0;var dt=it.display,gt=it.display.externalMeasured;if(gt&&at>=gt.lineN&&at<gt.lineN+gt.size&&(dt.externalMeasured=null),!(at<dt.viewFrom||at>=dt.viewTo)){var Et=dt.view[nl(it,at)];if(Et.node!=null){var Bt=Et.changes||(Et.changes=[]);Gt(Bt,ct)==-1&&Bt.push(ct)}}}function ws(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function Fl(it,at,ct,dt){var gt=nl(it,at),Et,Bt=it.display.view;if(!vn||ct==it.doc.first+it.doc.size)return{index:gt,lineN:ct};for(var Ut=it.display.viewFrom,Kt=0;Kt<gt;Kt++)Ut+=Bt[Kt].size;if(Ut!=at){if(dt>0){if(gt==Bt.length-1)return null;Et=Ut+Bt[gt].size-at,gt++}else Et=Ut-at;at+=Et,ct+=Et}for(;Xi(it.doc,ct)!=ct;){if(gt==(dt<0?0:Bt.length-1))return null;ct+=dt*Bt[gt-(dt<0?1:0)].size,gt+=dt}return{index:gt,lineN:ct}}function Na(it,at,ct){var dt=it.display,gt=dt.view;gt.length==0||at>=dt.viewTo||ct<=dt.viewFrom?(dt.view=Pa(it,at,ct),dt.viewFrom=at):(dt.viewFrom>at?dt.view=Pa(it,at,dt.viewFrom).concat(dt.view):dt.viewFrom<at&&(dt.view=dt.view.slice(nl(it,at))),dt.viewFrom=at,dt.viewTo<ct?dt.view=dt.view.concat(Pa(it,dt.viewTo,ct)):dt.viewTo>ct&&(dt.view=dt.view.slice(0,nl(it,ct)))),dt.viewTo=ct}function vl(it){for(var at=it.display.view,ct=0,dt=0;dt<at.length;dt++){var gt=at[dt];!gt.hidden&&(!gt.node||gt.changes)&&++ct}return ct}function Ks(it){it.display.input.showSelection(it.display.input.prepareSelection())}function dh(it,at){at===void 0&&(at=!0);for(var ct=it.doc,dt={},gt=dt.cursors=document.createDocumentFragment(),Et=dt.selection=document.createDocumentFragment(),Bt=0;Bt<ct.sel.ranges.length;Bt++)if(!(!at&&Bt==ct.sel.primIndex)){var Ut=ct.sel.ranges[Bt];if(!(Ut.from().line>=it.display.viewTo||Ut.to().line<it.display.viewFrom)){var Kt=Ut.empty();(Kt||it.options.showCursorWhenSelecting)&&ia(it,Ut.head,gt),Kt||Yo(it,Ut,Et)}}return dt}function ia(it,at,ct){var dt=Ka(it,at,"div",null,null,!it.options.singleCursorHeightPerLine),gt=ct.appendChild(Qt("div","\xA0","CodeMirror-cursor"));if(gt.style.left=dt.left+"px",gt.style.top=dt.top+"px",gt.style.height=Math.max(0,dt.bottom-dt.top)*it.options.cursorHeight+"px",dt.other){var Et=ct.appendChild(Qt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Et.style.display="",Et.style.left=dt.other.left+"px",Et.style.top=dt.other.top+"px",Et.style.height=(dt.other.bottom-dt.other.top)*.85+"px"}}function yl(it,at){return it.top-at.top||it.left-at.left}function Yo(it,at,ct){var dt=it.display,gt=it.doc,Et=document.createDocumentFragment(),Bt=Cd(it.display),Ut=Bt.left,Kt=Math.max(dt.sizerWidth,Cu(it)-dt.sizer.offsetLeft)-Bt.right,oe=gt.direction=="ltr";function Be(ir,Rr,xo,nr){Rr<0&&(Rr=0),Rr=Math.round(Rr),nr=Math.round(nr),Et.appendChild(Qt("div",null,"CodeMirror-selected","position: absolute; left: "+ir+`px;
top: `+Rr+"px; width: "+(xo==null?Kt-ir:xo)+`px;
height: `+(nr-Rr)+"px"))}function fe(ir,Rr,xo){var nr=un(gt,ir),qo=nr.text.length,Es,El;function Is(hl,Hu){return el(it,fn(ir,hl),"div",nr,Hu)}function Nu(hl,Hu,Yl){var dl=Fd(it,nr,null,hl),Ia=Hu=="ltr"==(Yl=="after")?"left":"right",Ws=Yl=="after"?dl.begin:dl.end-(/\s/.test(nr.text.charAt(dl.end-1))?2:1);return Is(Ws,Ia)[Ia]}var iu=Hn(nr,gt.direction);return Ve(iu,Rr||0,xo==null?qo:xo,function(hl,Hu,Yl,dl){var Ia=Yl=="ltr",Ws=Is(hl,Ia?"left":"right"),Tl=Is(Hu-1,Ia?"right":"left"),Xl=Rr==null&&hl==0,Nh=xo==null&&Hu==qo,Rs=dl==0,gh=!iu||dl==iu.length-1;if(Tl.top-Ws.top<=3){var Zs=(oe?Xl:Nh)&&Rs,jf=(oe?Nh:Xl)&&gh,th=Zs?Ut:(Ia?Ws:Tl).left,Gu=jf?Kt:(Ia?Tl:Ws).right;Be(th,Ws.top,Gu-th,Ws.bottom)}else{var Du,us,Bl,ad;Ia?(Du=oe&&Xl&&Rs?Ut:Ws.left,us=oe?Kt:Nu(hl,Yl,"before"),Bl=oe?Ut:Nu(Hu,Yl,"after"),ad=oe&&Nh&&gh?Kt:Tl.right):(Du=oe?Nu(hl,Yl,"before"):Ut,us=!oe&&Xl&&Rs?Kt:Ws.right,Bl=!oe&&Nh&&gh?Ut:Tl.left,ad=oe?Nu(Hu,Yl,"after"):Kt),Be(Du,Ws.top,us-Du,Ws.bottom),Ws.bottom<Tl.top&&Be(Ut,Ws.bottom,null,Tl.top),Be(Bl,Tl.top,ad-Bl,Tl.bottom)}(!Es||yl(Ws,Es)<0)&&(Es=Ws),yl(Tl,Es)<0&&(Es=Tl),(!El||yl(Ws,El)<0)&&(El=Ws),yl(Tl,El)<0&&(El=Tl)}),{start:Es,end:El}}var on=at.from(),tn=at.to();if(on.line==tn.line)fe(on.line,on.ch,tn.ch);else{var oi=un(gt,on.line),ui=un(gt,tn.line),Ei=ga(oi)==ga(ui),Gi=fe(on.line,on.ch,Ei?oi.text.length+1:null).end,wr=fe(tn.line,Ei?0:null,tn.ch).start;Ei&&(Gi.top<wr.top-2?(Be(Gi.right,Gi.top,null,Gi.bottom),Be(Ut,wr.top,wr.left,wr.bottom)):Be(Gi.right,Gi.top,wr.left-Gi.right,Gi.bottom)),Gi.bottom<wr.top&&Be(Ut,Gi.bottom,null,wr.top)}ct.appendChild(Et)}function ba(it){if(it.state.focused){var at=it.display;clearInterval(at.blinker);var ct=!0;at.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?at.blinker=setInterval(function(){it.hasFocus()||Gh(it),at.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(at.cursorDiv.style.visibility="hidden")}}function Ra(it){it.state.focused||(it.display.input.focus(),ha(it))}function os(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Gh(it))},100)}function ha(it,at){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(di(it,"focus",it,at),it.state.focused=!0,Fe(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),qt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),ba(it))}function Gh(it,at){it.state.delayingBlurEvent||(it.state.focused&&(di(it,"blur",it,at),it.state.focused=!1,Yt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Lr(it){for(var at=it.display,ct=at.lineDiv.offsetTop,dt=0;dt<at.view.length;dt++){var gt=at.view[dt],Et=it.options.lineWrapping,Bt=void 0,Ut=0;if(!gt.hidden){if(Se&&Ot<8){var Kt=gt.node.offsetTop+gt.node.offsetHeight;Bt=Kt-ct,ct=Kt}else{var oe=gt.node.getBoundingClientRect();Bt=oe.bottom-oe.top,!Et&&gt.text.firstChild&&(Ut=gt.text.firstChild.getBoundingClientRect().right-oe.left-1)}var Be=gt.line.height-Bt;if((Be>.005||Be<-.005)&&(Cn(gt.line,Bt),Fc(gt.line),gt.rest))for(var fe=0;fe<gt.rest.length;fe++)Fc(gt.rest[fe]);if(Ut>it.display.sizerWidth){var on=Math.ceil(Ut/Wu(it.display));on>it.display.maxLineLength&&(it.display.maxLineLength=on,it.display.maxLine=gt.line,it.display.maxLineChanged=!0)}}}}function Fc(it){if(it.widgets)for(var at=0;at<it.widgets.length;++at){var ct=it.widgets[at],dt=ct.node.parentNode;dt&&(ct.height=dt.offsetHeight)}}function Ho(it,at,ct){var dt=ct&&ct.top!=null?Math.max(0,ct.top):it.scroller.scrollTop;dt=Math.floor(dt-Ul(it));var gt=ct&&ct.bottom!=null?ct.bottom:dt+it.wrapper.clientHeight,Et=fi(at,dt),Bt=fi(at,gt);if(ct&&ct.ensure){var Ut=ct.ensure.from.line,Kt=ct.ensure.to.line;Ut<Et?(Et=Ut,Bt=fi(at,eo(un(at,Ut))+it.wrapper.clientHeight)):Math.min(Kt,at.lastLine())>=Bt&&(Et=fi(at,eo(un(at,Kt))-it.wrapper.clientHeight),Bt=Kt)}return{from:Et,to:Math.max(Bt,Et+1)}}function of(it,at){if(!vi(it,"scrollCursorIntoView")){var ct=it.display,dt=ct.sizer.getBoundingClientRect(),gt=null;if(at.top+dt.top<0?gt=!0:at.bottom+dt.top>(window.innerHeight||document.documentElement.clientHeight)&&(gt=!1),gt!=null&&!nn){var Et=Qt("div","\u200B",null,`position: absolute;
top: `+(at.top-ct.viewOffset-Ul(it.display))+`px;
height: `+(at.bottom-at.top+pl(it)+ct.barHeight)+`px;
left: `+at.left+"px; width: "+Math.max(2,at.right-at.left)+"px;");it.display.lineSpace.appendChild(Et),Et.scrollIntoView(gt),it.display.lineSpace.removeChild(Et)}}}function od(it,at,ct,dt){dt==null&&(dt=0);var gt;!it.options.lineWrapping&&at==ct&&(at=at.ch?fn(at.line,at.sticky=="before"?at.ch-1:at.ch,"after"):at,ct=at.sticky=="before"?fn(at.line,at.ch+1,"before"):at);for(var Et=0;Et<5;Et++){var Bt=!1,Ut=Ka(it,at),Kt=!ct||ct==at?Ut:Ka(it,ct);gt={left:Math.min(Ut.left,Kt.left),top:Math.min(Ut.top,Kt.top)-dt,right:Math.max(Ut.left,Kt.left),bottom:Math.max(Ut.bottom,Kt.bottom)+dt};var oe=$d(it,gt),Be=it.doc.scrollTop,fe=it.doc.scrollLeft;if(oe.scrollTop!=null&&(ae(it,oe.scrollTop),Math.abs(it.doc.scrollTop-Be)>1&&(Bt=!0)),oe.scrollLeft!=null&&(ge(it,oe.scrollLeft),Math.abs(it.doc.scrollLeft-fe)>1&&(Bt=!0)),!Bt)break}return gt}function Dd(it,at){var ct=$d(it,at);ct.scrollTop!=null&&ae(it,ct.scrollTop),ct.scrollLeft!=null&&ge(it,ct.scrollLeft)}function $d(it,at){var ct=it.display,dt=ju(it.display);at.top<0&&(at.top=0);var gt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,Et=Ed(it),Bt={};at.bottom-at.top>Et&&(at.bottom=at.top+Et);var Ut=it.doc.height+Hh(ct),Kt=at.top<dt,oe=at.bottom>Ut-dt;if(at.top<gt)Bt.scrollTop=Kt?0:at.top;else if(at.bottom>gt+Et){var Be=Math.min(at.top,(oe?Ut:at.bottom)-Et);Be!=gt&&(Bt.scrollTop=Be)}var fe=it.options.fixedGutter?0:ct.gutters.offsetWidth,on=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-fe,tn=Cu(it)-ct.gutters.offsetWidth,oi=at.right-at.left>tn;return oi&&(at.right=at.left+tn),at.left<10?Bt.scrollLeft=0:at.left<on?Bt.scrollLeft=Math.max(0,at.left+fe-(oi?0:10)):at.right>tn+on-3&&(Bt.scrollLeft=at.right+(oi?0:10)-tn),Bt}function tc(it,at){at!=null&&(Sl(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+at)}function ch(it){Sl(it);var at=it.getCursor();it.curOp.scrollToPos={from:at,to:at,margin:it.options.cursorScrollMargin}}function kh(it,at,ct){(at!=null||ct!=null)&&Sl(it),at!=null&&(it.curOp.scrollLeft=at),ct!=null&&(it.curOp.scrollTop=ct)}function $i(it,at){Sl(it),it.curOp.scrollToPos=at}function Sl(it){var at=it.curOp.scrollToPos;if(at){it.curOp.scrollToPos=null;var ct=Md(it,at.from),dt=Md(it,at.to);Ht(it,ct,dt,at.margin)}}function Ht(it,at,ct,dt){var gt=$d(it,{left:Math.min(at.left,ct.left),top:Math.min(at.top,ct.top)-dt,right:Math.max(at.right,ct.right),bottom:Math.max(at.bottom,ct.bottom)+dt});kh(it,gt.scrollLeft,gt.scrollTop)}function ae(it,at){Math.abs(it.doc.scrollTop-at)<2||(kt||yr(it,{top:at}),ce(it,at,!0),kt&&yr(it),Mo(it,100))}function ce(it,at,ct){at=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,at)),!(it.display.scroller.scrollTop==at&&!ct)&&(it.doc.scrollTop=at,it.display.scrollbars.setScrollTop(at),it.display.scroller.scrollTop!=at&&(it.display.scroller.scrollTop=at))}function ge(it,at,ct,dt){at=Math.max(0,Math.min(at,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ct?at==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-at)<2)&&!dt)&&(it.doc.scrollLeft=at,Xt(it),it.display.scroller.scrollLeft!=at&&(it.display.scroller.scrollLeft=at),it.display.scrollbars.setScrollLeft(at))}function ke(it){var at=it.display,ct=at.gutters.offsetWidth,dt=Math.round(it.doc.height+Hh(it.display));return{clientHeight:at.scroller.clientHeight,viewHeight:at.wrapper.clientHeight,scrollWidth:at.scroller.scrollWidth,clientWidth:at.scroller.clientWidth,viewWidth:at.wrapper.clientWidth,barLeft:it.options.fixedGutter?ct:0,docHeight:dt,scrollHeight:dt+pl(it)+at.barHeight,nativeBarWidth:at.nativeBarWidth,gutterWidth:ct}}var Ge=function(it,at,ct){this.cm=ct;var dt=this.vert=Qt("div",[Qt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),gt=this.horiz=Qt("div",[Qt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");dt.tabIndex=gt.tabIndex=-1,it(dt),it(gt),Un(dt,"scroll",function(){dt.clientHeight&&at(dt.scrollTop,"vertical")}),Un(gt,"scroll",function(){gt.clientWidth&&at(gt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Se&&Ot<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ge.prototype.update=function(it){var at=it.scrollWidth>it.clientWidth+1,ct=it.scrollHeight>it.clientHeight+1,dt=it.nativeBarWidth;if(ct){this.vert.style.display="block",this.vert.style.bottom=at?dt+"px":"0";var gt=it.viewHeight-(at?dt: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(at){this.horiz.style.display="block",this.horiz.style.right=ct?dt+"px":"0",this.horiz.style.left=it.barLeft+"px";var Et=it.viewWidth-it.barLeft-(ct?dt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Et)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(dt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ct?dt:0,bottom:at?dt:0}},Ge.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ge.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ge.prototype.zeroWidthHack=function(){var it=ht&&!Ce?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new zt,this.disableVert=new zt},Ge.prototype.enableZeroWidthBar=function(it,at,ct){it.style.pointerEvents="auto";function dt(){var gt=it.getBoundingClientRect(),Et=ct=="vert"?document.elementFromPoint(gt.right-1,(gt.top+gt.bottom)/2):document.elementFromPoint((gt.right+gt.left)/2,gt.bottom-1);Et!=it?it.style.pointerEvents="none":at.set(1e3,dt)}at.set(1e3,dt)},Ge.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Je=function(){};Je.prototype.update=function(){return{bottom:0,right:0}},Je.prototype.setScrollLeft=function(){},Je.prototype.setScrollTop=function(){},Je.prototype.clear=function(){};function hn(it,at){at||(at=ke(it));var ct=it.display.barWidth,dt=it.display.barHeight;Tn(it,at);for(var gt=0;gt<4&&ct!=it.display.barWidth||dt!=it.display.barHeight;gt++)ct!=it.display.barWidth&&it.options.lineWrapping&&Lr(it),Tn(it,ke(it)),ct=it.display.barWidth,dt=it.display.barHeight}function Tn(it,at){var ct=it.display,dt=ct.scrollbars.update(at);ct.sizer.style.paddingRight=(ct.barWidth=dt.right)+"px",ct.sizer.style.paddingBottom=(ct.barHeight=dt.bottom)+"px",ct.heightForcer.style.borderBottom=dt.bottom+"px solid transparent",dt.right&&dt.bottom?(ct.scrollbarFiller.style.display="block",ct.scrollbarFiller.style.height=dt.bottom+"px",ct.scrollbarFiller.style.width=dt.right+"px"):ct.scrollbarFiller.style.display="",dt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ct.gutterFiller.style.display="block",ct.gutterFiller.style.height=dt.bottom+"px",ct.gutterFiller.style.width=at.gutterWidth+"px"):ct.gutterFiller.style.display=""}var Pn={native:Ge,null:Je};function si(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Yt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Pn[it.options.scrollbarStyle](function(at){it.display.wrapper.insertBefore(at,it.display.scrollbarFiller),Un(at,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),at.setAttribute("cm-not-content","true")},function(at,ct){ct=="horizontal"?ge(it,at):ae(it,at)},it),it.display.scrollbars.addClass&&Fe(it.display.wrapper,it.display.scrollbars.addClass)}var bn=0;function Qn(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:++bn},qr(it.curOp)}function jn(it){var at=it.curOp;at&&Ca(at,function(ct){for(var dt=0;dt<ct.ops.length;dt++)ct.ops[dt].cm.curOp=null;gi(ct)})}function gi(it){for(var at=it.ops,ct=0;ct<at.length;ct++)Ti(at[ct]);for(var dt=0;dt<at.length;dt++)Zi(at[dt]);for(var gt=0;gt<at.length;gt++)vr(at[gt]);for(var Et=0;Et<at.length;Et++)Ci(at[Et]);for(var Bt=0;Bt<at.length;Bt++)Ki(at[Bt])}function Ti(it){var at=it.cm,ct=at.display;ka(at),it.updateMaxLine&&ua(at),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<ct.viewFrom||it.scrollToPos.to.line>=ct.viewTo)||ct.maxLineChanged&&at.options.lineWrapping,it.update=it.mustUpdate&&new Bo(at,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function Zi(it){it.updatedDisplay=it.mustUpdate&&Zr(it.cm,it.update)}function vr(it){var at=it.cm,ct=at.display;it.updatedDisplay&&Lr(at),it.barMeasure=ke(at),ct.maxLineChanged&&!at.options.lineWrapping&&(it.adjustWidthTo=Jd(at,ct.maxLine,ct.maxLine.text.length).left+3,at.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ct.scroller.clientWidth,ct.sizer.offsetLeft+it.adjustWidthTo+pl(at)+at.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-Cu(at))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function Ci(it){var at=it.cm;it.adjustWidthTo!=null&&(at.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<at.doc.scrollLeft&&ge(at,Math.min(at.display.scroller.scrollLeft,it.maxScrollLeft),!0),at.display.maxLineChanged=!1);var ct=it.focus&&it.focus==Qe();it.preparedSelection&&at.display.input.showSelection(it.preparedSelection,ct),(it.updatedDisplay||it.startHeight!=at.doc.height)&&hn(at,it.barMeasure),it.updatedDisplay&&Nt(at,it.barMeasure),it.selectionChanged&&ba(at),at.state.focused&&it.updateInput&&at.display.input.reset(it.typing),ct&&Ra(it.cm)}function Ki(it){var at=it.cm,ct=at.display,dt=at.doc;if(it.updatedDisplay&&Mi(at,it.update),ct.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(ct.wheelStartX=ct.wheelStartY=null),it.scrollTop!=null&&ce(at,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&ge(at,it.scrollLeft,!0,!0),it.scrollToPos){var gt=od(at,zi(dt,it.scrollToPos.from),zi(dt,it.scrollToPos.to),it.scrollToPos.margin);of(at,gt)}var Et=it.maybeHiddenMarkers,Bt=it.maybeUnhiddenMarkers;if(Et)for(var Ut=0;Ut<Et.length;++Ut)Et[Ut].lines.length||di(Et[Ut],"hide");if(Bt)for(var Kt=0;Kt<Bt.length;++Kt)Bt[Kt].lines.length&&di(Bt[Kt],"unhide");ct.wrapper.offsetHeight&&(dt.scrollTop=at.display.scroller.scrollTop),it.changeObjs&&di(at,"changes",at,it.changeObjs),it.update&&it.update.finish()}function ki(it,at){if(it.curOp)return at();Qn(it);try{return at()}finally{jn(it)}}function gr(it,at){return function(){if(it.curOp)return at.apply(it,arguments);Qn(it);try{return at.apply(it,arguments)}finally{jn(it)}}}function Kr(it){return function(){if(this.curOp)return it.apply(this,arguments);Qn(this);try{return it.apply(this,arguments)}finally{jn(this)}}}function hr(it){return function(){var at=this.cm;if(!at||at.curOp)return it.apply(this,arguments);Qn(at);try{return it.apply(this,arguments)}finally{jn(at)}}}function Mo(it,at){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(at,Ke(Vr,it))}function Vr(it){var at=it.doc;if(!(at.highlightFrontier>=it.display.viewTo)){var ct=+new Date+it.options.workTime,dt=Wa(it,at.highlightFrontier),gt=[];at.iter(dt.line,Math.min(at.first+at.size,it.display.viewTo+500),function(Et){if(dt.line>=it.display.viewFrom){var Bt=Et.styles,Ut=Et.text.length>it.options.maxHighlightLength?ti(at.mode,dt.state):null,Kt=qs(it,Et,dt,!0);Ut&&(dt.state=Ut),Et.styles=Kt.styles;var oe=Et.styleClasses,Be=Kt.classes;Be?Et.styleClasses=Be:oe&&(Et.styleClasses=null);for(var fe=!Bt||Bt.length!=Et.styles.length||oe!=Be&&(!oe||!Be||oe.bgClass!=Be.bgClass||oe.textClass!=Be.textClass),on=0;!fe&&on<Bt.length;++on)fe=Bt[on]!=Et.styles[on];fe&&gt.push(dt.line),Et.stateAfter=dt.save(),dt.nextLine()}else Et.text.length<=it.options.maxHighlightLength&&Te(it,Et.text,dt),Et.stateAfter=dt.line%5==0?dt.save():null,dt.nextLine();if(+new Date>ct)return Mo(it,it.options.workDelay),!0}),at.highlightFrontier=dt.line,at.modeFrontier=Math.max(at.modeFrontier,dt.line),gt.length&&ki(it,function(){for(var Et=0;Et<gt.length;Et++)Do(it,gt[Et],"text")})}}var Bo=function(it,at,ct){var dt=it.display;this.viewport=at,this.visible=Ho(dt,it.doc,at),this.editorIsHidden=!dt.wrapper.offsetWidth,this.wrapperHeight=dt.wrapper.clientHeight,this.wrapperWidth=dt.wrapper.clientWidth,this.oldDisplayWidth=Cu(it),this.force=ct,this.dims=Nd(it),this.events=[]};Bo.prototype.signal=function(it,at){ii(it,at)&&this.events.push(arguments)},Bo.prototype.finish=function(){for(var it=0;it<this.events.length;it++)di.apply(null,this.events[it])};function ka(it){var at=it.display;!at.scrollbarsClipped&&at.scroller.offsetWidth&&(at.nativeBarWidth=at.scroller.offsetWidth-at.scroller.clientWidth,at.heightForcer.style.height=pl(it)+"px",at.sizer.style.marginBottom=-at.nativeBarWidth+"px",at.sizer.style.borderRightWidth=pl(it)+"px",at.scrollbarsClipped=!0)}function Go(it){if(it.hasFocus())return null;var at=Qe();if(!at||!Le(it.display.lineDiv,at))return null;var ct={activeElt:at};if(window.getSelection){var dt=window.getSelection();dt.anchorNode&&dt.extend&&Le(it.display.lineDiv,dt.anchorNode)&&(ct.anchorNode=dt.anchorNode,ct.anchorOffset=dt.anchorOffset,ct.focusNode=dt.focusNode,ct.focusOffset=dt.focusOffset)}return ct}function Ur(it){if(!(!it||!it.activeElt||it.activeElt==Qe())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&Le(document.body,it.anchorNode)&&Le(document.body,it.focusNode))){var at=window.getSelection(),ct=document.createRange();ct.setEnd(it.anchorNode,it.anchorOffset),ct.collapse(!1),at.removeAllRanges(),at.addRange(ct),at.extend(it.focusNode,it.focusOffset)}}function Zr(it,at){var ct=it.display,dt=it.doc;if(at.editorIsHidden)return ws(it),!1;if(!at.force&&at.visible.from>=ct.viewFrom&&at.visible.to<=ct.viewTo&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo)&&ct.renderedView==ct.view&&vl(it)==0)return!1;ee(it)&&(ws(it),at.dims=Nd(it));var gt=dt.first+dt.size,Et=Math.max(at.visible.from-it.options.viewportMargin,dt.first),Bt=Math.min(gt,at.visible.to+it.options.viewportMargin);ct.viewFrom<Et&&Et-ct.viewFrom<20&&(Et=Math.max(dt.first,ct.viewFrom)),ct.viewTo>Bt&&ct.viewTo-Bt<20&&(Bt=Math.min(gt,ct.viewTo)),vn&&(Et=Xi(it.doc,Et),Bt=zr(it.doc,Bt));var Ut=Et!=ct.viewFrom||Bt!=ct.viewTo||ct.lastWrapHeight!=at.wrapperHeight||ct.lastWrapWidth!=at.wrapperWidth;Na(it,Et,Bt),ct.viewOffset=eo(un(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var Kt=vl(it);if(!Ut&&Kt==0&&!at.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var oe=Go(it);return Kt>4&&(ct.lineDiv.style.display="none"),no(it,ct.updateLineNumbers,at.dims),Kt>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,Ur(oe),ie(ct.cursorDiv),ie(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,Ut&&(ct.lastWrapHeight=at.wrapperHeight,ct.lastWrapWidth=at.wrapperWidth,Mo(it,400)),ct.updateLineNumbers=null,!0}function Mi(it,at){for(var ct=at.viewport,dt=!0;;dt=!1){if(!dt||!it.options.lineWrapping||at.oldDisplayWidth==Cu(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+Hh(it.display)-Ed(it),ct.top)}),at.visible=Ho(it.display,it.doc,ct),at.visible.from>=it.display.viewFrom&&at.visible.to<=it.display.viewTo)break}else dt&&(at.visible=Ho(it.display,it.doc,ct));if(!Zr(it,at))break;Lr(it);var gt=ke(it);Ks(it),hn(it,gt),Nt(it,gt),at.force=!1}at.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(at.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function yr(it,at){var ct=new Bo(it,at);if(Zr(it,ct)){Lr(it),Mi(it,ct);var dt=ke(it);Ks(it),hn(it,dt),Nt(it,dt),ct.finish()}}function no(it,at,ct){var dt=it.display,gt=it.options.lineNumbers,Et=dt.lineDiv,Bt=Et.firstChild;function Ut(oi){var ui=oi.nextSibling;return qt&&ht&&it.display.currentWheelTarget==oi?oi.style.display="none":oi.parentNode.removeChild(oi),ui}for(var Kt=dt.view,oe=dt.viewFrom,Be=0;Be<Kt.length;Be++){var fe=Kt[Be];if(!fe.hidden)if(!fe.node||fe.node.parentNode!=Et){var on=Pd(it,fe,oe,ct);Et.insertBefore(on,Bt)}else{for(;Bt!=fe.node;)Bt=Ut(Bt);var tn=gt&&at!=null&&at<=oe&&fe.lineNumber;fe.changes&&(Gt(fe.changes,"gutter")>-1&&(tn=!1),$u(it,fe,oe,ct)),tn&&(ie(fe.lineNumber),fe.lineNumber.appendChild(document.createTextNode(Er(it.options,oe)))),Bt=fe.node.nextSibling}oe+=fe.size}for(;Bt;)Bt=Ut(Bt)}function bt(it){var at=it.gutters.offsetWidth;it.sizer.style.marginLeft=at+"px"}function Nt(it,at){it.display.sizer.style.minHeight=at.docHeight+"px",it.display.heightForcer.style.top=at.docHeight+"px",it.display.gutters.style.height=at.docHeight+it.display.barHeight+pl(it)+"px"}function Xt(it){var at=it.display,ct=at.view;if(!(!at.alignWidgets&&(!at.gutters.firstChild||!it.options.fixedGutter))){for(var dt=Mh(at)-at.scroller.scrollLeft+it.doc.scrollLeft,gt=at.gutters.offsetWidth,Et=dt+"px",Bt=0;Bt<ct.length;Bt++)if(!ct[Bt].hidden){it.options.fixedGutter&&(ct[Bt].gutter&&(ct[Bt].gutter.style.left=Et),ct[Bt].gutterBackground&&(ct[Bt].gutterBackground.style.left=Et));var Ut=ct[Bt].alignable;if(Ut)for(var Kt=0;Kt<Ut.length;Kt++)Ut[Kt].style.left=Et}it.options.fixedGutter&&(at.gutters.style.left=dt+gt+"px")}}function ee(it){if(!it.options.lineNumbers)return!1;var at=it.doc,ct=Er(it.options,at.first+at.size-1),dt=it.display;if(ct.length!=dt.lineNumChars){var gt=dt.measure.appendChild(Qt("div",[Qt("div",ct)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Et=gt.firstChild.offsetWidth,Bt=gt.offsetWidth-Et;return dt.lineGutter.style.width="",dt.lineNumInnerWidth=Math.max(Et,dt.lineGutter.offsetWidth-Bt)+1,dt.lineNumWidth=dt.lineNumInnerWidth+Bt,dt.lineNumChars=dt.lineNumInnerWidth?ct.length:-1,dt.lineGutter.style.width=dt.lineNumWidth+"px",bt(it.display),!0}return!1}function Ae(it,at){for(var ct=[],dt=!1,gt=0;gt<it.length;gt++){var Et=it[gt],Bt=null;if(typeof Et!="string"&&(Bt=Et.style,Et=Et.className),Et=="CodeMirror-linenumbers")if(at)dt=!0;else continue;ct.push({className:Et,style:Bt})}return at&&!dt&&ct.push({className:"CodeMirror-linenumbers",style:null}),ct}function Ue(it){var at=it.gutters,ct=it.gutterSpecs;ie(at),it.lineGutter=null;for(var dt=0;dt<ct.length;++dt){var gt=ct[dt],Et=gt.className,Bt=gt.style,Ut=at.appendChild(Qt("div",null,"CodeMirror-gutter "+Et));Bt&&(Ut.style.cssText=Bt),Et=="CodeMirror-linenumbers"&&(it.lineGutter=Ut,Ut.style.width=(it.lineNumWidth||1)+"px")}at.style.display=ct.length?"":"none",bt(it)}function en(it){Ue(it.display),Ya(it),Xt(it)}function kn(it,at,ct,dt){var gt=this;this.input=ct,gt.scrollbarFiller=Qt("div",null,"CodeMirror-scrollbar-filler"),gt.scrollbarFiller.setAttribute("cm-not-content","true"),gt.gutterFiller=Qt("div",null,"CodeMirror-gutter-filler"),gt.gutterFiller.setAttribute("cm-not-content","true"),gt.lineDiv=xe("div",null,"CodeMirror-code"),gt.selectionDiv=Qt("div",null,null,"position: relative; z-index: 1"),gt.cursorDiv=Qt("div",null,"CodeMirror-cursors"),gt.measure=Qt("div",null,"CodeMirror-measure"),gt.lineMeasure=Qt("div",null,"CodeMirror-measure"),gt.lineSpace=xe("div",[gt.measure,gt.lineMeasure,gt.selectionDiv,gt.cursorDiv,gt.lineDiv],null,"position: relative; outline: none");var Et=xe("div",[gt.lineSpace],"CodeMirror-lines");gt.mover=Qt("div",[Et],null,"position: relative"),gt.sizer=Qt("div",[gt.mover],"CodeMirror-sizer"),gt.sizerWidth=null,gt.heightForcer=Qt("div",null,null,"position: absolute; height: "+_e+"px; width: 1px;"),gt.gutters=Qt("div",null,"CodeMirror-gutters"),gt.lineGutter=null,gt.scroller=Qt("div",[gt.sizer,gt.heightForcer,gt.gutters],"CodeMirror-scroll"),gt.scroller.setAttribute("tabIndex","-1"),gt.wrapper=Qt("div",[gt.scrollbarFiller,gt.gutterFiller,gt.scroller],"CodeMirror"),Se&&Ot<8&&(gt.gutters.style.zIndex=-1,gt.scroller.style.paddingRight=0),!qt&&!(kt&&et)&&(gt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(gt.wrapper):it(gt.wrapper)),gt.viewFrom=gt.viewTo=at.first,gt.reportedViewFrom=gt.reportedViewTo=at.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=Ae(dt.gutters,dt.lineNumbers),Ue(gt),ct.init(gt)}var On=0,Ln=null;Se?Ln=-.53:kt?Ln=15:me?Ln=-.7:Ze&&(Ln=-1/3);function Xn(it){var at=it.wheelDeltaX,ct=it.wheelDeltaY;return at==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(at=it.detail),ct==null&&it.detail&&it.axis==it.VERTICAL_AXIS?ct=it.detail:ct==null&&(ct=it.wheelDelta),{x:at,y:ct}}function ni(it){var at=Xn(it);return at.x*=Ln,at.y*=Ln,at}function wi(it,at){var ct=Xn(at),dt=ct.x,gt=ct.y,Et=it.display,Bt=Et.scroller,Ut=Bt.scrollWidth>Bt.clientWidth,Kt=Bt.scrollHeight>Bt.clientHeight;if(dt&&Ut||gt&&Kt){if(gt&&ht&&qt){t:for(var oe=at.target,Be=Et.view;oe!=Bt;oe=oe.parentNode)for(var fe=0;fe<Be.length;fe++)if(Be[fe].node==oe){it.display.currentWheelTarget=oe;break t}}if(dt&&!kt&&!ve&&Ln!=null){gt&&Kt&&ae(it,Math.max(0,Bt.scrollTop+gt*Ln)),ge(it,Math.max(0,Bt.scrollLeft+dt*Ln)),(!gt||gt&&Kt)&&Br(at),Et.wheelStartX=null;return}if(gt&&Ln!=null){var on=gt*Ln,tn=it.doc.scrollTop,oi=tn+Et.wrapper.clientHeight;on<0?tn=Math.max(0,tn+on-50):oi=Math.min(it.doc.height,oi+on+50),yr(it,{top:tn,bottom:oi})}On<20&&(Et.wheelStartX==null?(Et.wheelStartX=Bt.scrollLeft,Et.wheelStartY=Bt.scrollTop,Et.wheelDX=dt,Et.wheelDY=gt,setTimeout(function(){if(Et.wheelStartX!=null){var ui=Bt.scrollLeft-Et.wheelStartX,Ei=Bt.scrollTop-Et.wheelStartY,Gi=Ei&&Et.wheelDY&&Ei/Et.wheelDY||ui&&Et.wheelDX&&ui/Et.wheelDX;Et.wheelStartX=Et.wheelStartY=null,Gi&&(Ln=(Ln*On+Gi)/(On+1),++On)}},200)):(Et.wheelDX+=dt,Et.wheelDY+=gt))}}var qn=function(it,at){this.ranges=it,this.primIndex=at};qn.prototype.primary=function(){return this.ranges[this.primIndex]},qn.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var at=0;at<this.ranges.length;at++){var ct=this.ranges[at],dt=it.ranges[at];if(!Mr(ct.anchor,dt.anchor)||!Mr(ct.head,dt.head))return!1}return!0},qn.prototype.deepCopy=function(){for(var it=[],at=0;at<this.ranges.length;at++)it[at]=new Vn(na(this.ranges[at].anchor),na(this.ranges[at].head));return new qn(it,this.primIndex)},qn.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},qn.prototype.contains=function(it,at){at||(at=it);for(var ct=0;ct<this.ranges.length;ct++){var dt=this.ranges[ct];if(bi(at,dt.from())>=0&&bi(it,dt.to())<=0)return ct}return-1};var Vn=function(it,at){this.anchor=it,this.head=at};Vn.prototype.from=function(){return Fi(this.anchor,this.head)},Vn.prototype.to=function(){return Ao(this.anchor,this.head)},Vn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function hi(it,at,ct){var dt=it&&it.options.selectionsMayTouch,gt=at[ct];at.sort(function(on,tn){return bi(on.from(),tn.from())}),ct=Gt(at,gt);for(var Et=1;Et<at.length;Et++){var Bt=at[Et],Ut=at[Et-1],Kt=bi(Ut.to(),Bt.from());if(dt&&!Bt.empty()?Kt>0:Kt>=0){var oe=Fi(Ut.from(),Bt.from()),Be=Ao(Ut.to(),Bt.to()),fe=Ut.empty()?Bt.from()==Bt.head:Ut.from()==Ut.head;Et<=ct&&--ct,at.splice(--Et,2,new Vn(fe?Be:oe,fe?oe:Be))}}return new qn(at,ct)}function Pi(it,at){return new qn([new Vn(it,at||it)],0)}function ar(it){return it.text?fn(it.from.line+it.text.length-1,Oe(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Pr(it,at){if(bi(it,at.from)<0)return it;if(bi(it,at.to)<=0)return ar(at);var ct=it.line+at.text.length-(at.to.line-at.from.line)-1,dt=it.ch;return it.line==at.to.line&&(dt+=ar(at).ch-at.to.ch),fn(ct,dt)}function qi(it,at){for(var ct=[],dt=0;dt<it.sel.ranges.length;dt++){var gt=it.sel.ranges[dt];ct.push(new Vn(Pr(gt.anchor,at),Pr(gt.head,at)))}return hi(it.cm,ct,it.sel.primIndex)}function sr(it,at,ct){return it.line==at.line?fn(ct.line,it.ch-at.ch+ct.ch):fn(ct.line+(it.line-at.line),it.ch)}function Yr(it,at,ct){for(var dt=[],gt=fn(it.first,0),Et=gt,Bt=0;Bt<at.length;Bt++){var Ut=at[Bt],Kt=sr(Ut.from,gt,Et),oe=sr(ar(Ut),gt,Et);if(gt=Ut.to,Et=oe,ct=="around"){var Be=it.sel.ranges[Bt],fe=bi(Be.head,Be.anchor)<0;dt[Bt]=new Vn(fe?oe:Kt,fe?Kt:oe)}else dt[Bt]=new Vn(Kt,Kt)}return new qn(dt,it.sel.primIndex)}function li(it){it.doc.mode=Re(it.options,it.doc.modeOption),dr(it)}function dr(it){it.doc.iter(function(at){at.stateAfter&&(at.stateAfter=null),at.styles&&(at.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,Mo(it,100),it.state.modeGen++,it.curOp&&Ya(it)}function Oi(it,at){return at.from.ch==0&&at.to.ch==0&&Oe(at.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function ur(it,at,ct,dt){function gt(wr){return ct?ct[wr]:null}function Et(wr,ir,Rr){Ds(wr,ir,Rr,dt),Qi(wr,"change",wr,at)}function Bt(wr,ir){for(var Rr=[],xo=wr;xo<ir;++xo)Rr.push(new Ga(oe[xo],gt(xo),dt));return Rr}var Ut=at.from,Kt=at.to,oe=at.text,Be=un(it,Ut.line),fe=un(it,Kt.line),on=Oe(oe),tn=gt(oe.length-1),oi=Kt.line-Ut.line;if(at.full)it.insert(0,Bt(0,oe.length)),it.remove(oe.length,it.size-oe.length);else if(Oi(it,at)){var ui=Bt(0,oe.length-1);Et(fe,fe.text,tn),oi&&it.remove(Ut.line,oi),ui.length&&it.insert(Ut.line,ui)}else if(Be==fe)if(oe.length==1)Et(Be,Be.text.slice(0,Ut.ch)+on+Be.text.slice(Kt.ch),tn);else{var Ei=Bt(1,oe.length-1);Ei.push(new Ga(on+Be.text.slice(Kt.ch),tn,dt)),Et(Be,Be.text.slice(0,Ut.ch)+oe[0],gt(0)),it.insert(Ut.line+1,Ei)}else if(oe.length==1)Et(Be,Be.text.slice(0,Ut.ch)+oe[0]+fe.text.slice(Kt.ch),gt(0)),it.remove(Ut.line+1,oi);else{Et(Be,Be.text.slice(0,Ut.ch)+oe[0],gt(0)),Et(fe,on+fe.text.slice(Kt.ch),tn);var Gi=Bt(1,oe.length-1);oi>1&&it.remove(Ut.line+1,oi-1),it.insert(Ut.line+1,Gi)}Qi(it,"change",it,at)}function Or(it,at,ct){function dt(gt,Et,Bt){if(gt.linked)for(var Ut=0;Ut<gt.linked.length;++Ut){var Kt=gt.linked[Ut];if(Kt.doc!=Et){var oe=Bt&&Kt.sharedHist;ct&&!oe||(at(Kt.doc,oe),dt(Kt.doc,gt,oe))}}}dt(it,null,!0)}function Bi(it,at){if(at.cm)throw new Error("This document is already in use.");it.doc=at,at.cm=it,kr(it),li(it),_r(it),it.options.lineWrapping||ua(it),it.options.mode=at.modeOption,Ya(it)}function _r(it){(it.doc.direction=="rtl"?Fe:Yt)(it.display.lineDiv,"CodeMirror-rtl")}function Fr(it){ki(it,function(){_r(it),Ya(it)})}function So(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 xr(it,at){var ct={from:na(at.from),to:ar(at),text:xi(it,at.from,at.to)};return Xo(it,ct,at.from.line,at.to.line+1),Or(it,function(dt){return Xo(dt,ct,at.from.line,at.to.line+1)},!0),ct}function oo(it){for(;it.length;){var at=Oe(it);if(at.ranges)it.pop();else break}}function ko(it,at){if(at)return oo(it.done),Oe(it.done);if(it.done.length&&!Oe(it.done).ranges)return Oe(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),Oe(it.done)}function Ko(it,at,ct,dt){var gt=it.history;gt.undone.length=0;var Et=+new Date,Bt,Ut;if((gt.lastOp==dt||gt.lastOrigin==at.origin&&at.origin&&(at.origin.charAt(0)=="+"&&gt.lastModTime>Et-(it.cm?it.cm.options.historyEventDelay:500)||at.origin.charAt(0)=="*"))&&(Bt=ko(gt,gt.lastOp==dt)))Ut=Oe(Bt.changes),bi(at.from,at.to)==0&&bi(at.from,Ut.to)==0?Ut.to=ar(at):Bt.changes.push(xr(it,at));else{var Kt=Oe(gt.done);for((!Kt||!Kt.ranges)&&Wr(it.sel,gt.done),Bt={changes:[xr(it,at)],generation:gt.generation},gt.done.push(Bt);gt.done.length>gt.undoDepth;)gt.done.shift(),gt.done[0].ranges||gt.done.shift()}gt.done.push(ct),gt.generation=++gt.maxGeneration,gt.lastModTime=gt.lastSelTime=Et,gt.lastOp=gt.lastSelOp=dt,gt.lastOrigin=gt.lastSelOrigin=at.origin,Ut||di(it,"historyAdded")}function Fo(it,at,ct,dt){var gt=at.charAt(0);return gt=="*"||gt=="+"&&ct.ranges.length==dt.ranges.length&&ct.somethingSelected()==dt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function rr(it,at,ct,dt){var gt=it.history,Et=dt&&dt.origin;ct==gt.lastSelOp||Et&&gt.lastSelOrigin==Et&&(gt.lastModTime==gt.lastSelTime&&gt.lastOrigin==Et||Fo(it,Et,Oe(gt.done),at))?gt.done[gt.done.length-1]=at:Wr(at,gt.done),gt.lastSelTime=+new Date,gt.lastSelOrigin=Et,gt.lastSelOp=ct,dt&&dt.clearRedo!==!1&&oo(gt.undone)}function Wr(it,at){var ct=Oe(at);ct&&ct.ranges&&ct.equals(it)||at.push(it)}function Xo(it,at,ct,dt){var gt=at["spans_"+it.id],Et=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,dt),function(Bt){Bt.markedSpans&&((gt||(gt=at["spans_"+it.id]={}))[Et]=Bt.markedSpans),++Et})}function No(it){if(!it)return null;for(var at,ct=0;ct<it.length;++ct)it[ct].marker.explicitlyCleared?at||(at=it.slice(0,ct)):at&&at.push(it[ct]);return at?at.length?at:null:it}function ra(it,at){var ct=at["spans_"+it.id];if(!ct)return null;for(var dt=[],gt=0;gt<at.text.length;++gt)dt.push(No(ct[gt]));return dt}function Jo(it,at){var ct=ra(it,at),dt=ya(it,at);if(!ct)return dt;if(!dt)return ct;for(var gt=0;gt<ct.length;++gt){var Et=ct[gt],Bt=dt[gt];if(Et&&Bt)t:for(var Ut=0;Ut<Bt.length;++Ut){for(var Kt=Bt[Ut],oe=0;oe<Et.length;++oe)if(Et[oe].marker==Kt.marker)continue t;Et.push(Kt)}else Bt&&(ct[gt]=Bt)}return ct}function pa(it,at,ct){for(var dt=[],gt=0;gt<it.length;++gt){var Et=it[gt];if(Et.ranges){dt.push(ct?qn.prototype.deepCopy.call(Et):Et);continue}var Bt=Et.changes,Ut=[];dt.push({changes:Ut});for(var Kt=0;Kt<Bt.length;++Kt){var oe=Bt[Kt],Be=void 0;if(Ut.push({from:oe.from,to:oe.to,text:oe.text}),at)for(var fe in oe)(Be=fe.match(/^spans_(\d+)$/))&&Gt(at,Number(Be[1]))>-1&&(Oe(Ut)[fe]=oe[fe],delete oe[fe])}}return dt}function oa(it,at,ct,dt){if(dt){var gt=it.anchor;if(ct){var Et=bi(at,gt)<0;Et!=bi(ct,gt)<0?(gt=at,at=ct):Et!=bi(at,ct)<0&&(at=ct)}return new Vn(gt,at)}else return new Vn(ct||at,at)}function La(it,at,ct,dt,gt){gt==null&&(gt=it.cm&&(it.cm.display.shift||it.extend)),Ri(it,new qn([oa(it.sel.primary(),at,ct,gt)],0),dt)}function ys(it,at,ct){for(var dt=[],gt=it.cm&&(it.cm.display.shift||it.extend),Et=0;Et<it.sel.ranges.length;Et++)dt[Et]=oa(it.sel.ranges[Et],at[Et],null,gt);var Bt=hi(it.cm,dt,it.sel.primIndex);Ri(it,Bt,ct)}function Da(it,at,ct,dt){var gt=it.sel.ranges.slice(0);gt[at]=ct,Ri(it,hi(it.cm,gt,it.sel.primIndex),dt)}function Ir(it,at,ct,dt){Ri(it,Pi(at,ct),dt)}function Tr(it,at,ct){var dt={ranges:at.ranges,update:function(gt){this.ranges=[];for(var Et=0;Et<gt.length;Et++)this.ranges[Et]=new Vn(zi(it,gt[Et].anchor),zi(it,gt[Et].head))},origin:ct&&ct.origin};return di(it,"beforeSelectionChange",it,dt),it.cm&&di(it.cm,"beforeSelectionChange",it.cm,dt),dt.ranges!=at.ranges?hi(it.cm,dt.ranges,dt.ranges.length-1):at}function Nr(it,at,ct){var dt=it.history.done,gt=Oe(dt);gt&&gt.ranges?(dt[dt.length-1]=at,Vi(it,at,ct)):Ri(it,at,ct)}function Ri(it,at,ct){Vi(it,at,ct),rr(it,it.sel,it.cm?it.cm.curOp.id:NaN,ct)}function Vi(it,at,ct){(ii(it,"beforeSelectionChange")||it.cm&&ii(it.cm,"beforeSelectionChange"))&&(at=Tr(it,at,ct));var dt=ct&&ct.bias||(bi(at.primary().head,it.sel.primary().head)<0?-1:1);Cr(it,Po(it,at,dt,!0)),!(ct&&ct.scroll===!1)&&it.cm&&ch(it.cm)}function Cr(it,at){at.equals(it.sel)||(it.sel=at,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,br(it.cm)),Qi(it,"cursorActivity",it))}function uo(it){Cr(it,Po(it,it.sel,null,!1))}function Po(it,at,ct,dt){for(var gt,Et=0;Et<at.ranges.length;Et++){var Bt=at.ranges[Et],Ut=at.ranges.length==it.sel.ranges.length&&it.sel.ranges[Et],Kt=Ta(it,Bt.anchor,Ut&&Ut.anchor,ct,dt),oe=Ta(it,Bt.head,Ut&&Ut.head,ct,dt);(gt||Kt!=Bt.anchor||oe!=Bt.head)&&(gt||(gt=at.ranges.slice(0,Et)),gt[Et]=new Vn(Kt,oe))}return gt?hi(it.cm,gt,at.primIndex):at}function ao(it,at,ct,dt,gt){var Et=un(it,at.line);if(Et.markedSpans)for(var Bt=0;Bt<Et.markedSpans.length;++Bt){var Ut=Et.markedSpans[Bt],Kt=Ut.marker,oe="selectLeft"in Kt?!Kt.selectLeft:Kt.inclusiveLeft,Be="selectRight"in Kt?!Kt.selectRight:Kt.inclusiveRight;if((Ut.from==null||(oe?Ut.from<=at.ch:Ut.from<at.ch))&&(Ut.to==null||(Be?Ut.to>=at.ch:Ut.to>at.ch))){if(gt&&(di(Kt,"beforeCursorEnter"),Kt.explicitlyCleared))if(Et.markedSpans){--Bt;continue}else break;if(!Kt.atomic)continue;if(ct){var fe=Kt.find(dt<0?1:-1),on=void 0;if((dt<0?Be:oe)&&(fe=as(it,fe,-dt,fe&&fe.line==at.line?Et:null)),fe&&fe.line==at.line&&(on=bi(fe,ct))&&(dt<0?on<0:on>0))return ao(it,fe,at,dt,gt)}var tn=Kt.find(dt<0?-1:1);return(dt<0?oe:Be)&&(tn=as(it,tn,dt,tn.line==at.line?Et:null)),tn?ao(it,tn,at,dt,gt):null}}return at}function Ta(it,at,ct,dt,gt){var Et=dt||1,Bt=ao(it,at,ct,Et,gt)||!gt&&ao(it,at,ct,Et,!0)||ao(it,at,ct,-Et,gt)||!gt&&ao(it,at,ct,-Et,!0);return Bt||(it.cantEdit=!0,fn(it.first,0))}function as(it,at,ct,dt){return ct<0&&at.ch==0?at.line>it.first?zi(it,fn(at.line-1)):null:ct>0&&at.ch==(dt||un(it,at.line)).text.length?at.line<it.first+it.size-1?fn(at.line+1,0):null:new fn(at.line,at.ch+ct)}function da(it){it.setSelection(fn(it.firstLine(),0),fn(it.lastLine()),we)}function Ps(it,at,ct){var dt={canceled:!1,from:at.from,to:at.to,text:at.text,origin:at.origin,cancel:function(){return dt.canceled=!0}};return ct&&(dt.update=function(gt,Et,Bt,Ut){gt&&(dt.from=zi(it,gt)),Et&&(dt.to=zi(it,Et)),Bt&&(dt.text=Bt),Ut!==void 0&&(dt.origin=Ut)}),di(it,"beforeChange",it,dt),it.cm&&di(it.cm,"beforeChange",it.cm,dt),dt.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:dt.from,to:dt.to,text:dt.text,origin:dt.origin}}function Ma(it,at,ct){if(it.cm){if(!it.cm.curOp)return gr(it.cm,Ma)(it,at,ct);if(it.cm.state.suppressEdits)return}if(!((ii(it,"beforeChange")||it.cm&&ii(it.cm,"beforeChange"))&&(at=Ps(it,at,!0),!at))){var dt=Zo&&!ct&&$o(it,at.from,at.to);if(dt)for(var gt=dt.length-1;gt>=0;--gt)za(it,{from:dt[gt].from,to:dt[gt].to,text:gt?[""]:at.text,origin:at.origin});else za(it,at)}}function za(it,at){if(!(at.text.length==1&&at.text[0]==""&&bi(at.from,at.to)==0)){var ct=qi(it,at);Ko(it,at,ct,it.cm?it.cm.curOp.id:NaN),Xa(it,at,ct,ya(it,at));var dt=[];Or(it,function(gt,Et){!Et&&Gt(dt,gt.history)==-1&&(Js(gt.history,at),dt.push(gt.history)),Xa(gt,at,null,ya(gt,at))})}}function Va(it,at,ct){var dt=it.cm&&it.cm.state.suppressEdits;if(!(dt&&!ct)){for(var gt=it.history,Et,Bt=it.sel,Ut=at=="undo"?gt.done:gt.undone,Kt=at=="undo"?gt.undone:gt.done,oe=0;oe<Ut.length&&(Et=Ut[oe],!(ct?Et.ranges&&!Et.equals(it.sel):!Et.ranges));oe++);if(oe!=Ut.length){for(gt.lastOrigin=gt.lastSelOrigin=null;;)if(Et=Ut.pop(),Et.ranges){if(Wr(Et,Kt),ct&&!Et.equals(it.sel)){Ri(it,Et,{clearRedo:!1});return}Bt=Et}else if(dt){Ut.push(Et);return}else break;var Be=[];Wr(Bt,Kt),Kt.push({changes:Be,generation:gt.generation}),gt.generation=Et.generation||++gt.maxGeneration;for(var fe=ii(it,"beforeChange")||it.cm&&ii(it.cm,"beforeChange"),on=function(ui){var Ei=Et.changes[ui];if(Ei.origin=at,fe&&!Ps(it,Ei,!1))return Ut.length=0,{};Be.push(xr(it,Ei));var Gi=ui?qi(it,Ei):Oe(Ut);Xa(it,Ei,Gi,Jo(it,Ei)),!ui&&it.cm&&it.cm.scrollIntoView({from:Ei.from,to:ar(Ei)});var wr=[];Or(it,function(ir,Rr){!Rr&&Gt(wr,ir.history)==-1&&(Js(ir.history,Ei),wr.push(ir.history)),Xa(ir,Ei,null,Jo(ir,Ei))})},tn=Et.changes.length-1;tn>=0;--tn){var oi=on(tn);if(oi)return oi.v}}}}function Ts(it,at){if(at!=0&&(it.first+=at,it.sel=new qn(dn(it.sel.ranges,function(gt){return new Vn(fn(gt.anchor.line+at,gt.anchor.ch),fn(gt.head.line+at,gt.head.ch))}),it.sel.primIndex),it.cm)){Ya(it.cm,it.first,it.first-at,at);for(var ct=it.cm.display,dt=ct.viewFrom;dt<ct.viewTo;dt++)Do(it.cm,dt,"gutter")}}function Xa(it,at,ct,dt){if(it.cm&&!it.cm.curOp)return gr(it.cm,Xa)(it,at,ct,dt);if(at.to.line<it.first){Ts(it,at.text.length-1-(at.to.line-at.from.line));return}if(!(at.from.line>it.lastLine())){if(at.from.line<it.first){var gt=at.text.length-1-(it.first-at.from.line);Ts(it,gt),at={from:fn(it.first,0),to:fn(at.to.line+gt,at.to.ch),text:[Oe(at.text)],origin:at.origin}}var Et=it.lastLine();at.to.line>Et&&(at={from:at.from,to:fn(Et,un(it,Et).text.length),text:[at.text[0]],origin:at.origin}),at.removed=xi(it,at.from,at.to),ct||(ct=qi(it,at)),it.cm?Ja(it.cm,at,dt):ur(it,at,dt),Vi(it,ct,we),it.cantEdit&&Ta(it,fn(it.firstLine(),0))&&(it.cantEdit=!1)}}function Ja(it,at,ct){var dt=it.doc,gt=it.display,Et=at.from,Bt=at.to,Ut=!1,Kt=Et.line;it.options.lineWrapping||(Kt=be(ga(un(dt,Et.line))),dt.iter(Kt,Bt.line+1,function(tn){if(tn==gt.maxLine)return Ut=!0,!0})),dt.sel.contains(at.from,at.to)>-1&&br(it),ur(dt,at,ct,es(it)),it.options.lineWrapping||(dt.iter(Kt,Et.line+at.text.length,function(tn){var oi=wa(tn);oi>gt.maxLineLength&&(gt.maxLine=tn,gt.maxLineLength=oi,gt.maxLineChanged=!0,Ut=!1)}),Ut&&(it.curOp.updateMaxLine=!0)),io(dt,Et.line),Mo(it,400);var oe=at.text.length-(Bt.line-Et.line)-1;at.full?Ya(it):Et.line==Bt.line&&at.text.length==1&&!Oi(it.doc,at)?Do(it,Et.line,"text"):Ya(it,Et.line,Bt.line+1,oe);var Be=ii(it,"changes"),fe=ii(it,"change");if(fe||Be){var on={from:Et,to:Bt,text:at.text,removed:at.removed,origin:at.origin};fe&&Qi(it,"change",it,on),Be&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(on)}it.display.selForContextMenu=null}function Aa(it,at,ct,dt,gt){var Et;dt||(dt=ct),bi(dt,ct)<0&&(Et=[dt,ct],ct=Et[0],dt=Et[1]),typeof at=="string"&&(at=it.splitLines(at)),Ma(it,{from:ct,to:dt,text:at,origin:gt})}function Ua(it,at,ct,dt){ct<it.line?it.line+=dt:at<it.line&&(it.line=at,it.ch=0)}function Vs(it,at,ct,dt){for(var gt=0;gt<it.length;++gt){var Et=it[gt],Bt=!0;if(Et.ranges){Et.copied||(Et=it[gt]=Et.deepCopy(),Et.copied=!0);for(var Ut=0;Ut<Et.ranges.length;Ut++)Ua(Et.ranges[Ut].anchor,at,ct,dt),Ua(Et.ranges[Ut].head,at,ct,dt);continue}for(var Kt=0;Kt<Et.changes.length;++Kt){var oe=Et.changes[Kt];if(ct<oe.from.line)oe.from=fn(oe.from.line+dt,oe.from.ch),oe.to=fn(oe.to.line+dt,oe.to.ch);else if(at<=oe.to.line){Bt=!1;break}}Bt||(it.splice(0,gt+1),gt=0)}}function Js(it,at){var ct=at.from.line,dt=at.to.line,gt=at.text.length-(dt-ct)-1;Vs(it.done,ct,dt,gt),Vs(it.undone,ct,dt,gt)}function Ar(it,at,ct,dt){var gt=at,Et=at;return typeof at=="number"?Et=un(it,Ai(it,at)):gt=be(at),gt==null?null:(dt(Et,gt)&&it.cm&&Do(it.cm,gt,ct),Et)}function lr(it){this.lines=it,this.parent=null;for(var at=0,ct=0;ct<it.length;++ct)it[ct].parent=this,at+=it[ct].height;this.height=at}lr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,at){for(var ct=it,dt=it+at;ct<dt;++ct){var gt=this.lines[ct];this.height-=gt.height,_s(gt),Qi(gt,"delete")}this.lines.splice(it,at)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,at,ct){this.height+=ct,this.lines=this.lines.slice(0,it).concat(at).concat(this.lines.slice(it));for(var dt=0;dt<at.length;++dt)at[dt].parent=this},iterN:function(it,at,ct){for(var dt=it+at;it<dt;++it)if(ct(this.lines[it]))return!0}};function Sr(it){this.children=it;for(var at=0,ct=0,dt=0;dt<it.length;++dt){var gt=it[dt];at+=gt.chunkSize(),ct+=gt.height,gt.parent=this}this.size=at,this.height=ct,this.parent=null}Sr.prototype={chunkSize:function(){return this.size},removeInner:function(it,at){this.size-=at;for(var ct=0;ct<this.children.length;++ct){var dt=this.children[ct],gt=dt.chunkSize();if(it<gt){var Et=Math.min(at,gt-it),Bt=dt.height;if(dt.removeInner(it,Et),this.height-=Bt-dt.height,gt==Et&&(this.children.splice(ct--,1),dt.parent=null),(at-=Et)==0)break;it=0}else it-=gt}if(this.size-at<25&&(this.children.length>1||!(this.children[0]instanceof lr))){var Ut=[];this.collapse(Ut),this.children=[new lr(Ut)],this.children[0].parent=this}},collapse:function(it){for(var at=0;at<this.children.length;++at)this.children[at].collapse(it)},insertInner:function(it,at,ct){this.size+=at.length,this.height+=ct;for(var dt=0;dt<this.children.length;++dt){var gt=this.children[dt],Et=gt.chunkSize();if(it<=Et){if(gt.insertInner(it,at,ct),gt.lines&&gt.lines.length>50){for(var Bt=gt.lines.length%25+25,Ut=Bt;Ut<gt.lines.length;){var Kt=new lr(gt.lines.slice(Ut,Ut+=25));gt.height-=Kt.height,this.children.splice(++dt,0,Kt),Kt.parent=this}gt.lines=gt.lines.slice(0,Bt),this.maybeSpill()}break}it-=Et}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var at=it.children.splice(it.children.length-5,5),ct=new Sr(at);if(it.parent){it.size-=ct.size,it.height-=ct.height;var gt=Gt(it.parent.children,it);it.parent.children.splice(gt+1,0,ct)}else{var dt=new Sr(it.children);dt.parent=it,it.children=[dt,ct],it=dt}ct.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,at,ct){for(var dt=0;dt<this.children.length;++dt){var gt=this.children[dt],Et=gt.chunkSize();if(it<Et){var Bt=Math.min(at,Et-it);if(gt.iterN(it,Bt,ct))return!0;if((at-=Bt)==0)break;it=0}else it-=Et}}};var Ro=function(it,at,ct){if(ct)for(var dt in ct)ct.hasOwnProperty(dt)&&(this[dt]=ct[dt]);this.doc=it,this.node=at};Ro.prototype.clear=function(){var it=this.doc.cm,at=this.line.widgets,ct=this.line,dt=be(ct);if(!(dt==null||!at)){for(var gt=0;gt<at.length;++gt)at[gt]==this&&at.splice(gt--,1);at.length||(ct.widgets=null);var Et=Pu(this);Cn(ct,Math.max(0,ct.height-Et)),it&&(ki(it,function(){Qa(it,ct,-Et),Do(it,dt,"widget")}),Qi(it,"lineWidgetCleared",it,this,dt))}},Ro.prototype.changed=function(){var it=this,at=this.height,ct=this.doc.cm,dt=this.line;this.height=null;var gt=Pu(this)-at;gt&&($e(this.doc,dt)||Cn(dt,dt.height+gt),ct&&ki(ct,function(){ct.curOp.forceUpdate=!0,Qa(ct,dt,gt),Qi(ct,"lineWidgetChanged",ct,it,be(dt))}))},mi(Ro);function Qa(it,at,ct){eo(at)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&tc(it,ct)}function Ss(it,at,ct,dt){var gt=new Ro(it,ct,dt),Et=it.cm;return Et&&gt.noHScroll&&(Et.display.alignWidgets=!0),Ar(it,at,"widget",function(Bt){var Ut=Bt.widgets||(Bt.widgets=[]);if(gt.insertAt==null?Ut.push(gt):Ut.splice(Math.min(Ut.length-1,Math.max(0,gt.insertAt)),0,gt),gt.line=Bt,Et&&!$e(it,Bt)){var Kt=eo(Bt)<it.scrollTop;Cn(Bt,Bt.height+Pu(gt)),Kt&&tc(Et,gt.height),Et.curOp.forceUpdate=!0}return!0}),Et&&Qi(Et,"lineWidgetAdded",Et,gt,typeof at=="number"?at:be(at)),gt}var rl=0,ye=function(it,at){this.lines=[],this.type=at,this.doc=it,this.id=++rl};ye.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,at=it&&!it.curOp;if(at&&Qn(it),ii(this,"clear")){var ct=this.find();ct&&Qi(this,"clear",ct.from,ct.to)}for(var dt=null,gt=null,Et=0;Et<this.lines.length;++Et){var Bt=this.lines[Et],Ut=bs(Bt.markedSpans,this);it&&!this.collapsed?Do(it,be(Bt),"text"):it&&(Ut.to!=null&&(gt=be(Bt)),Ut.from!=null&&(dt=be(Bt))),Bt.markedSpans=xa(Bt.markedSpans,Ut),Ut.from==null&&this.collapsed&&!$e(this.doc,Bt)&&it&&Cn(Bt,ju(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Kt=0;Kt<this.lines.length;++Kt){var oe=ga(this.lines[Kt]),Be=wa(oe);Be>it.display.maxLineLength&&(it.display.maxLine=oe,it.display.maxLineLength=Be,it.display.maxLineChanged=!0)}dt!=null&&it&&this.collapsed&&Ya(it,dt,gt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&uo(it.doc)),it&&Qi(it,"markerCleared",it,this,dt,gt),at&&jn(it),this.parent&&this.parent.clear()}},ye.prototype.find=function(it,at){it==null&&this.type=="bookmark"&&(it=1);for(var ct,dt,gt=0;gt<this.lines.length;++gt){var Et=this.lines[gt],Bt=bs(Et.markedSpans,this);if(Bt.from!=null&&(ct=fn(at?Et:be(Et),Bt.from),it==-1))return ct;if(Bt.to!=null&&(dt=fn(at?Et:be(Et),Bt.to),it==1))return dt}return ct&&{from:ct,to:dt}},ye.prototype.changed=function(){var it=this,at=this.find(-1,!0),ct=this,dt=this.doc.cm;!at||!dt||ki(dt,function(){var gt=at.line,Et=be(at.line),Bt=Eu(dt,Et);if(Bt&&(qd(Bt),dt.curOp.selectionChanged=dt.curOp.forceUpdate=!0),dt.curOp.updateMaxLine=!0,!$e(ct.doc,gt)&&ct.height!=null){var Ut=ct.height;ct.height=null;var Kt=Pu(ct)-Ut;Kt&&Cn(gt,gt.height+Kt)}Qi(dt,"markerChanged",dt,it)})},ye.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(!at.maybeHiddenMarkers||Gt(at.maybeHiddenMarkers,this)==-1)&&(at.maybeUnhiddenMarkers||(at.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},ye.prototype.detachLine=function(it){if(this.lines.splice(Gt(this.lines,it),1),!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(at.maybeHiddenMarkers||(at.maybeHiddenMarkers=[])).push(this)}},mi(ye);function xl(it,at,ct,dt,gt){if(dt&&dt.shared)return Nl(it,at,ct,dt,gt);if(it.cm&&!it.cm.curOp)return gr(it.cm,xl)(it,at,ct,dt,gt);var Et=new ye(it,gt),Bt=bi(at,ct);if(dt&&Dn(dt,Et,!1),Bt>0||Bt==0&&Et.clearWhenEmpty!==!1)return Et;if(Et.replacedWith&&(Et.collapsed=!0,Et.widgetNode=xe("span",[Et.replacedWith],"CodeMirror-widget"),dt.handleMouseEvents||Et.widgetNode.setAttribute("cm-ignore-events","true"),dt.insertLeft&&(Et.widgetNode.insertLeft=!0)),Et.collapsed){if(wu(it,at.line,at,ct,Et)||at.line!=ct.line&&wu(it,ct.line,at,ct,Et))throw new Error("Inserting collapsed marker partially overlapping an existing one");sn()}Et.addToHistory&&Ko(it,{from:at,to:ct,origin:"markText"},it.sel,NaN);var Ut=at.line,Kt=it.cm,oe;if(it.iter(Ut,ct.line+1,function(fe){Kt&&Et.collapsed&&!Kt.options.lineWrapping&&ga(fe)==Kt.display.maxLine&&(oe=!0),Et.collapsed&&Ut!=at.line&&Cn(fe,0),fl(fe,new lo(Et,Ut==at.line?at.ch:null,Ut==ct.line?ct.ch:null)),++Ut}),Et.collapsed&&it.iter(at.line,ct.line+1,function(fe){$e(it,fe)&&Cn(fe,0)}),Et.clearOnEnter&&Un(Et,"beforeCursorEnter",function(){return Et.clear()}),Et.readOnly&&(ma(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Et.collapsed&&(Et.id=++rl,Et.atomic=!0),Kt){if(oe&&(Kt.curOp.updateMaxLine=!0),Et.collapsed)Ya(Kt,at.line,ct.line+1);else if(Et.className||Et.startStyle||Et.endStyle||Et.css||Et.attributes||Et.title)for(var Be=at.line;Be<=ct.line;Be++)Do(Kt,Be,"text");Et.atomic&&uo(Kt.doc),Qi(Kt,"markerAdded",Kt,Et)}return Et}var Ms=function(it,at){this.markers=it,this.primary=at;for(var ct=0;ct<it.length;++ct)it[ct].parent=this};Ms.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Qi(this,"clear")}},Ms.prototype.find=function(it,at){return this.primary.find(it,at)},mi(Ms);function Nl(it,at,ct,dt,gt){dt=Dn(dt),dt.shared=!1;var Et=[xl(it,at,ct,dt,gt)],Bt=Et[0],Ut=dt.widgetNode;return Or(it,function(Kt){Ut&&(dt.widgetNode=Ut.cloneNode(!0)),Et.push(xl(Kt,zi(Kt,at),zi(Kt,ct),dt,gt));for(var oe=0;oe<Kt.linked.length;++oe)if(Kt.linked[oe].isParent)return;Bt=Oe(Et)}),new Ms(Et,Bt)}function Au(it){return it.findMarks(fn(it.first,0),it.clipPos(fn(it.lastLine())),function(at){return at.parent})}function Cs(it,at){for(var ct=0;ct<at.length;ct++){var dt=at[ct],gt=dt.find(),Et=it.clipPos(gt.from),Bt=it.clipPos(gt.to);if(bi(Et,Bt)){var Ut=xl(it,Et,Bt,dt.primary,dt.primary.type);dt.markers.push(Ut),Ut.parent=dt}}}function to(it){for(var at=function(dt){var gt=it[dt],Et=[gt.primary.doc];Or(gt.primary.doc,function(Kt){return Et.push(Kt)});for(var Bt=0;Bt<gt.markers.length;Bt++){var Ut=gt.markers[Bt];Gt(Et,Ut.doc)==-1&&(Ut.parent=null,gt.markers.splice(Bt--,1))}},ct=0;ct<it.length;ct++)at(ct)}var sa=0,ro=function(it,at,ct,dt,gt){if(!(this instanceof ro))return new ro(it,at,ct,dt,gt);ct==null&&(ct=0),Sr.call(this,[new lr([new Ga("",null)])]),this.first=ct,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ct;var Et=fn(ct,0);this.sel=Pi(Et),this.history=new So(null),this.id=++sa,this.modeOption=at,this.lineSep=dt,this.direction=gt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),ur(this,{from:Et,to:Et,text:it}),Ri(this,Pi(Et),we)};ro.prototype=Pt(Sr.prototype,{constructor:ro,iter:function(it,at,ct){ct?this.iterN(it-this.first,at-it,ct):this.iterN(this.first,this.first+this.size,it)},insert:function(it,at){for(var ct=0,dt=0;dt<at.length;++dt)ct+=at[dt].height;this.insertInner(it-this.first,at,ct)},remove:function(it,at){this.removeInner(it-this.first,at)},getValue:function(it){var at=Di(this,this.first,this.first+this.size);return it===!1?at:at.join(it||this.lineSeparator())},setValue:hr(function(it){var at=fn(this.first,0),ct=this.first+this.size-1;Ma(this,{from:at,to:fn(ct,un(this,ct).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&kh(this.cm,0,0),Ri(this,Pi(at),we)}),replaceRange:function(it,at,ct,dt){at=zi(this,at),ct=ct?zi(this,ct):at,Aa(this,it,at,ct,dt)},getRange:function(it,at,ct){var dt=xi(this,zi(this,it),zi(this,at));return ct===!1?dt:dt.join(ct||this.lineSeparator())},getLine:function(it){var at=this.getLineHandle(it);return at&&at.text},getLineHandle:function(it){if(Wi(this,it))return un(this,it)},getLineNumber:function(it){return be(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=un(this,it)),ga(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return zi(this,it)},getCursor:function(it){var at=this.sel.primary(),ct;return it==null||it=="head"?ct=at.head:it=="anchor"?ct=at.anchor:it=="end"||it=="to"||it===!1?ct=at.to():ct=at.from(),ct},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:hr(function(it,at,ct){Ir(this,zi(this,typeof it=="number"?fn(it,at||0):it),null,ct)}),setSelection:hr(function(it,at,ct){Ir(this,zi(this,it),zi(this,at||it),ct)}),extendSelection:hr(function(it,at,ct){La(this,zi(this,it),at&&zi(this,at),ct)}),extendSelections:hr(function(it,at){ys(this,bo(this,it),at)}),extendSelectionsBy:hr(function(it,at){var ct=dn(this.sel.ranges,it);ys(this,bo(this,ct),at)}),setSelections:hr(function(it,at,ct){if(it.length){for(var dt=[],gt=0;gt<it.length;gt++)dt[gt]=new Vn(zi(this,it[gt].anchor),zi(this,it[gt].head));at==null&&(at=Math.min(it.length-1,this.sel.primIndex)),Ri(this,hi(this.cm,dt,at),ct)}}),addSelection:hr(function(it,at,ct){var dt=this.sel.ranges.slice(0);dt.push(new Vn(zi(this,it),zi(this,at||it))),Ri(this,hi(this.cm,dt,dt.length-1),ct)}),getSelection:function(it){for(var at=this.sel.ranges,ct,dt=0;dt<at.length;dt++){var gt=xi(this,at[dt].from(),at[dt].to());ct=ct?ct.concat(gt):gt}return it===!1?ct:ct.join(it||this.lineSeparator())},getSelections:function(it){for(var at=[],ct=this.sel.ranges,dt=0;dt<ct.length;dt++){var gt=xi(this,ct[dt].from(),ct[dt].to());it!==!1&&(gt=gt.join(it||this.lineSeparator())),at[dt]=gt}return at},replaceSelection:function(it,at,ct){for(var dt=[],gt=0;gt<this.sel.ranges.length;gt++)dt[gt]=it;this.replaceSelections(dt,at,ct||"+input")},replaceSelections:hr(function(it,at,ct){for(var dt=[],gt=this.sel,Et=0;Et<gt.ranges.length;Et++){var Bt=gt.ranges[Et];dt[Et]={from:Bt.from(),to:Bt.to(),text:this.splitLines(it[Et]),origin:ct}}for(var Ut=at&&at!="end"&&Yr(this,dt,at),Kt=dt.length-1;Kt>=0;Kt--)Ma(this,dt[Kt]);Ut?Nr(this,Ut):this.cm&&ch(this.cm)}),undo:hr(function(){Va(this,"undo")}),redo:hr(function(){Va(this,"redo")}),undoSelection:hr(function(){Va(this,"undo",!0)}),redoSelection:hr(function(){Va(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,at=0,ct=0,dt=0;dt<it.done.length;dt++)it.done[dt].ranges||++at;for(var gt=0;gt<it.undone.length;gt++)it.undone[gt].ranges||++ct;return{undo:at,redo:ct}},clearHistory:function(){var it=this;this.history=new So(this.history.maxGeneration),Or(this,function(at){return at.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:pa(this.history.done),undone:pa(this.history.undone)}},setHistory:function(it){var at=this.history=new So(this.history.maxGeneration);at.done=pa(it.done.slice(0),null,!0),at.undone=pa(it.undone.slice(0),null,!0)},setGutterMarker:hr(function(it,at,ct){return Ar(this,it,"gutter",function(dt){var gt=dt.gutterMarkers||(dt.gutterMarkers={});return gt[at]=ct,!ct&&At(gt)&&(dt.gutterMarkers=null),!0})}),clearGutter:hr(function(it){var at=this;this.iter(function(ct){ct.gutterMarkers&&ct.gutterMarkers[it]&&Ar(at,ct,"gutter",function(){return ct.gutterMarkers[it]=null,At(ct.gutterMarkers)&&(ct.gutterMarkers=null),!0})})}),lineInfo:function(it){var at;if(typeof it=="number"){if(!Wi(this,it)||(at=it,it=un(this,it),!it))return null}else if(at=be(it),at==null)return null;return{line:at,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:hr(function(it,at,ct){return Ar(this,it,at=="gutter"?"gutter":"class",function(dt){var gt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass";if(!dt[gt])dt[gt]=ct;else{if(It(ct).test(dt[gt]))return!1;dt[gt]+=" "+ct}return!0})}),removeLineClass:hr(function(it,at,ct){return Ar(this,it,at=="gutter"?"gutter":"class",function(dt){var gt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass",Et=dt[gt];if(Et)if(ct==null)dt[gt]=null;else{var Bt=Et.match(It(ct));if(!Bt)return!1;var Ut=Bt.index+Bt[0].length;dt[gt]=Et.slice(0,Bt.index)+(!Bt.index||Ut==Et.length?"":" ")+Et.slice(Ut)||null}else return!1;return!0})}),addLineWidget:hr(function(it,at,ct){return Ss(this,it,at,ct)}),removeLineWidget:function(it){it.clear()},markText:function(it,at,ct){return xl(this,zi(this,it),zi(this,at),ct,ct&&ct.type||"range")},setBookmark:function(it,at){var ct={replacedWith:at&&(at.nodeType==null?at.widget:at),insertLeft:at&&at.insertLeft,clearWhenEmpty:!1,shared:at&&at.shared,handleMouseEvents:at&&at.handleMouseEvents};return it=zi(this,it),xl(this,it,it,ct,"bookmark")},findMarksAt:function(it){it=zi(this,it);var at=[],ct=un(this,it.line).markedSpans;if(ct)for(var dt=0;dt<ct.length;++dt){var gt=ct[dt];(gt.from==null||gt.from<=it.ch)&&(gt.to==null||gt.to>=it.ch)&&at.push(gt.marker.parent||gt.marker)}return at},findMarks:function(it,at,ct){it=zi(this,it),at=zi(this,at);var dt=[],gt=it.line;return this.iter(it.line,at.line+1,function(Et){var Bt=Et.markedSpans;if(Bt)for(var Ut=0;Ut<Bt.length;Ut++){var Kt=Bt[Ut];!(Kt.to!=null&&gt==it.line&&it.ch>=Kt.to||Kt.from==null&&gt!=it.line||Kt.from!=null&&gt==at.line&&Kt.from>=at.ch)&&(!ct||ct(Kt.marker))&&dt.push(Kt.marker.parent||Kt.marker)}++gt}),dt},getAllMarks:function(){var it=[];return this.iter(function(at){var ct=at.markedSpans;if(ct)for(var dt=0;dt<ct.length;++dt)ct[dt].from!=null&&it.push(ct[dt].marker)}),it},posFromIndex:function(it){var at,ct=this.first,dt=this.lineSeparator().length;return this.iter(function(gt){var Et=gt.text.length+dt;if(Et>it)return at=it,!0;it-=Et,++ct}),zi(this,fn(ct,at))},indexFromPos:function(it){it=zi(this,it);var at=it.ch;if(it.line<this.first||it.ch<0)return 0;var ct=this.lineSeparator().length;return this.iter(this.first,it.line,function(dt){at+=dt.text.length+ct}),at},copy:function(it){var at=new ro(Di(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return at.scrollTop=this.scrollTop,at.scrollLeft=this.scrollLeft,at.sel=this.sel,at.extend=!1,it&&(at.history.undoDepth=this.history.undoDepth,at.setHistory(this.getHistory())),at},linkedDoc:function(it){it||(it={});var at=this.first,ct=this.first+this.size;it.from!=null&&it.from>at&&(at=it.from),it.to!=null&&it.to<ct&&(ct=it.to);var dt=new ro(Di(this,at,ct),it.mode||this.modeOption,at,this.lineSep,this.direction);return it.sharedHist&&(dt.history=this.history),(this.linked||(this.linked=[])).push({doc:dt,sharedHist:it.sharedHist}),dt.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Cs(dt,Au(this)),dt},unlinkDoc:function(it){if(it instanceof Fa&&(it=it.doc),this.linked)for(var at=0;at<this.linked.length;++at){var ct=this.linked[at];if(ct.doc==it){this.linked.splice(at,1),it.unlinkDoc(this),to(Au(this));break}}if(it.history==this.history){var dt=[it.id];Or(it,function(gt){return dt.push(gt.id)},!0),it.history=new So(null),it.history.done=pa(this.history.done,dt),it.history.undone=pa(this.history.undone,dt)}},iterLinkedDocs:function(it){Or(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):cn(it)},lineSeparator:function(){return this.lineSep||`
`},setDirection:hr(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(at){return at.order=null}),this.cm&&Fr(this.cm))})}),ro.prototype.eachLine=ro.prototype.iter;var Bs=0;function wl(it){var at=this;if(Eo(at),!(vi(at,it)||kl(at.display,it))){Br(it),Se&&(Bs=+new Date);var ct=il(at,it,!0),dt=it.dataTransfer.files;if(!(!ct||at.isReadOnly()))if(dt&&dt.length&&window.FileReader&&window.File)for(var gt=dt.length,Et=Array(gt),Bt=0,Ut=function(){++Bt==gt&&gr(at,function(){ct=zi(at.doc,ct);var tn={from:ct,to:ct,text:at.doc.splitLines(Et.filter(function(oi){return oi!=null}).join(at.doc.lineSeparator())),origin:"paste"};Ma(at.doc,tn),Nr(at.doc,Pi(zi(at.doc,ct),zi(at.doc,ar(tn))))})()},Kt=function(tn,oi){if(at.options.allowDropFileTypes&&Gt(at.options.allowDropFileTypes,tn.type)==-1){Ut();return}var ui=new FileReader;ui.onerror=function(){return Ut()},ui.onload=function(){var Ei=ui.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ei)){Ut();return}Et[oi]=Ei,Ut()},ui.readAsText(tn)},oe=0;oe<dt.length;oe++)Kt(dt[oe],oe);else{if(at.state.draggingText&&at.doc.sel.contains(ct)>-1){at.state.draggingText(it),setTimeout(function(){return at.display.input.focus()},20);return}try{var Be=it.dataTransfer.getData("Text");if(Be){var fe;if(at.state.draggingText&&!at.state.draggingText.copy&&(fe=at.listSelections()),Vi(at.doc,Pi(ct,ct)),fe)for(var on=0;on<fe.length;++on)Aa(at.doc,"",fe[on].anchor,fe[on].head,"drag");at.replaceSelection(Be,"around","paste"),at.display.input.focus()}}catch(tn){}}}}function so(it,at){if(Se&&(!it.state.draggingText||+new Date-Bs<100)){jr(at);return}if(!(vi(it,at)||kl(it.display,at))&&(at.dataTransfer.setData("Text",it.getSelection()),at.dataTransfer.effectAllowed="copyMove",at.dataTransfer.setDragImage&&!Ze)){var ct=Qt("img",null,null,"position: fixed; left: 0; top: 0;");ct.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ve&&(ct.width=ct.height=1,it.display.wrapper.appendChild(ct),ct._top=ct.offsetTop),at.dataTransfer.setDragImage(ct,0,0),ve&&ct.parentNode.removeChild(ct)}}function Vo(it,at){var ct=il(it,at);if(ct){var dt=document.createDocumentFragment();ia(it,ct,dt),it.display.dragCursor||(it.display.dragCursor=Qt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),re(it.display.dragCursor,dt)}}function Eo(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function Oo(it){if(document.getElementsByClassName){for(var at=document.getElementsByClassName("CodeMirror"),ct=[],dt=0;dt<at.length;dt++){var gt=at[dt].CodeMirror;gt&&ct.push(gt)}ct.length&&ct[0].operation(function(){for(var Et=0;Et<ct.length;Et++)it(ct[Et])})}}var Ba=!1;function Sa(){Ba||(Zl(),Ba=!0)}function Zl(){var it;Un(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,Oo(bu)},100))}),Un(window,"blur",function(){return Oo(Gh)})}function bu(it){var at=it.display;at.cachedCharWidth=at.cachedTextHeight=at.cachedPaddingH=null,at.scrollbarsClipped=!1,it.setSize()}for(var ol={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"},Os=0;Os<10;Os++)ol[Os+48]=ol[Os+96]=String(Os);for(var Mu=65;Mu<=90;Mu++)ol[Mu]=String.fromCharCode(Mu);for(var cu=1;cu<=12;cu++)ol[cu+111]=ol[cu+63235]="F"+cu;var al={};al.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"},al.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"},al.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"},al.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"]},al.default=ht?al.macDefault:al.pcDefault;function ec(it){var at=it.split(/-(?!$)/);it=at[at.length-1];for(var ct,dt,gt,Et,Bt=0;Bt<at.length-1;Bt++){var Ut=at[Bt];if(/^(cmd|meta|m)$/i.test(Ut))Et=!0;else if(/^a(lt)?$/i.test(Ut))ct=!0;else if(/^(c|ctrl|control)$/i.test(Ut))dt=!0;else if(/^s(hift)?$/i.test(Ut))gt=!0;else throw new Error("Unrecognized modifier name: "+Ut)}return ct&&(it="Alt-"+it),dt&&(it="Ctrl-"+it),Et&&(it="Cmd-"+it),gt&&(it="Shift-"+it),it}function Qo(it){var at={};for(var ct in it)if(it.hasOwnProperty(ct)){var dt=it[ct];if(/^(name|fallthrough|(de|at)tach)$/.test(ct))continue;if(dt=="..."){delete it[ct];continue}for(var gt=dn(ct.split(" "),ec),Et=0;Et<gt.length;Et++){var Bt=void 0,Ut=void 0;Et==gt.length-1?(Ut=gt.join(" "),Bt=dt):(Ut=gt.slice(0,Et+1).join(" "),Bt="...");var Kt=at[Ut];if(!Kt)at[Ut]=Bt;else if(Kt!=Bt)throw new Error("Inconsistent bindings for "+Ut)}delete it[ct]}for(var oe in at)it[oe]=at[oe];return it}function po(it,at,ct,dt){at=Pl(at);var gt=at.call?at.call(it,dt):at[it];if(gt===!1)return"nothing";if(gt==="...")return"multi";if(gt!=null&&ct(gt))return"handled";if(at.fallthrough){if(Object.prototype.toString.call(at.fallthrough)!="[object Array]")return po(it,at.fallthrough,ct,dt);for(var Et=0;Et<at.fallthrough.length;Et++){var Bt=po(it,at.fallthrough[Et],ct,dt);if(Bt)return Bt}}}function ks(it){var at=typeof it=="string"?it:ol[it.keyCode];return at=="Ctrl"||at=="Alt"||at=="Shift"||at=="Mod"}function $l(it,at,ct){var dt=it;return at.altKey&&dt!="Alt"&&(it="Alt-"+it),(St?at.metaKey:at.ctrlKey)&&dt!="Ctrl"&&(it="Ctrl-"+it),(St?at.ctrlKey:at.metaKey)&&dt!="Mod"&&(it="Cmd-"+it),!ct&&at.shiftKey&&dt!="Shift"&&(it="Shift-"+it),it}function sl(it,at){if(ve&&it.keyCode==34&&it.char)return!1;var ct=ol[it.keyCode];return ct==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(ct=it.code),$l(ct,it,at))}function Pl(it){return typeof it=="string"?al[it]:it}function Us(it,at){for(var ct=it.doc.sel.ranges,dt=[],gt=0;gt<ct.length;gt++){for(var Et=at(ct[gt]);dt.length&&bi(Et.from,Oe(dt).to)<=0;){var Bt=dt.pop();if(bi(Bt.from,Et.from)<0){Et.from=Bt.from;break}}dt.push(Et)}ki(it,function(){for(var Ut=dt.length-1;Ut>=0;Ut--)Aa(it.doc,"",dt[Ut].from,dt[Ut].to,"+delete");ch(it)})}function fh(it,at,ct){var dt=zn(it.text,at+ct,ct);return dt<0||dt>it.text.length?null:dt}function ss(it,at,ct){var dt=fh(it,at.ch,ct);return dt==null?null:new fn(at.line,dt,ct<0?"after":"before")}function Kh(it,at,ct,dt,gt){if(it){at.doc.direction=="rtl"&&(gt=-gt);var Et=Hn(ct,at.doc.direction);if(Et){var Bt=gt<0?Oe(Et):Et[0],Ut=gt<0==(Bt.level==1),Kt=Ut?"after":"before",oe;if(Bt.level>0||at.doc.direction=="rtl"){var Be=Lh(at,ct);oe=gt<0?ct.text.length-1:0;var fe=zu(at,Be,oe).top;oe=En(function(on){return zu(at,Be,on).top==fe},gt<0==(Bt.level==1)?Bt.from:Bt.to-1,oe),Kt=="before"&&(oe=fh(ct,oe,1))}else oe=gt<0?Bt.to:Bt.from;return new fn(dt,oe,Kt)}}return new fn(dt,gt<0?ct.text.length:0,gt<0?"before":"after")}function af(it,at,ct,dt){var gt=Hn(at,it.doc.direction);if(!gt)return ss(at,ct,dt);ct.ch>=at.text.length?(ct.ch=at.text.length,ct.sticky="before"):ct.ch<=0&&(ct.ch=0,ct.sticky="after");var Et=De(gt,ct.ch,ct.sticky),Bt=gt[Et];if(it.doc.direction=="ltr"&&Bt.level%2==0&&(dt>0?Bt.to>ct.ch:Bt.from<ct.ch))return ss(at,ct,dt);var Ut=function(Gi,wr){return fh(at,Gi instanceof fn?Gi.ch:Gi,wr)},Kt,oe=function(Gi){return it.options.lineWrapping?(Kt=Kt||Lh(it,at),Fd(it,at,Kt,Gi)):{begin:0,end:at.text.length}},Be=oe(ct.sticky=="before"?Ut(ct,-1):ct.ch);if(it.doc.direction=="rtl"||Bt.level==1){var fe=Bt.level==1==dt<0,on=Ut(ct,fe?1:-1);if(on!=null&&(fe?on<=Bt.to&&on<=Be.end:on>=Bt.from&&on>=Be.begin)){var tn=fe?"before":"after";return new fn(ct.line,on,tn)}}var oi=function(Gi,wr,ir){for(var Rr=function(Es,El){return El?new fn(ct.line,Ut(Es,1),"before"):new fn(ct.line,Es,"after")};Gi>=0&&Gi<gt.length;Gi+=wr){var xo=gt[Gi],nr=wr>0==(xo.level!=1),qo=nr?ir.begin:Ut(ir.end,-1);if(xo.from<=qo&&qo<xo.to||(qo=nr?xo.from:Ut(xo.to,-1),ir.begin<=qo&&qo<ir.end))return Rr(qo,nr)}},ui=oi(Et+dt,dt,Be);if(ui)return ui;var Ei=dt>0?Be.end:Ut(Be.begin,-1);return Ei!=null&&!(dt>0&&Ei==at.text.length)&&(ui=oi(dt>0?0:gt.length-1,dt,oe(Ei)),ui)?ui:null}var Vh={selectAll:da,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),we)},killLine:function(it){return Us(it,function(at){if(at.empty()){var ct=un(it.doc,at.head.line).text.length;return at.head.ch==ct&&at.head.line<it.lastLine()?{from:at.head,to:fn(at.head.line+1,0)}:{from:at.head,to:fn(at.head.line,ct)}}else return{from:at.from(),to:at.to()}})},deleteLine:function(it){return Us(it,function(at){return{from:fn(at.from().line,0),to:zi(it.doc,fn(at.to().line+1,0))}})},delLineLeft:function(it){return Us(it,function(at){return{from:fn(at.from().line,0),to:at.from()}})},delWrappedLineLeft:function(it){return Us(it,function(at){var ct=it.charCoords(at.head,"div").top+5,dt=it.coordsChar({left:0,top:ct},"div");return{from:dt,to:at.from()}})},delWrappedLineRight:function(it){return Us(it,function(at){var ct=it.charCoords(at.head,"div").top+5,dt=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div");return{from:at.from(),to:dt}})},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(fn(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(fn(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(at){return nc(it,at.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(at){return sf(it,at.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(at){return Td(it,at.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div")},an)},goLineLeft:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:0,top:ct},"div")},an)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5,dt=it.coordsChar({left:0,top:ct},"div");return dt.ch<it.getLine(dt.line).search(/\S/)?sf(it,at.head):dt},an)},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 at=[],ct=it.listSelections(),dt=it.options.tabSize,gt=0;gt<ct.length;gt++){var Et=ct[gt].from(),Bt=$t(it.getLine(Et.line),Et.ch,dt);at.push(de(dt-Bt%dt))}it.replaceSelections(at)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return ki(it,function(){for(var at=it.listSelections(),ct=[],dt=0;dt<at.length;dt++)if(at[dt].empty()){var gt=at[dt].head,Et=un(it.doc,gt.line).text;if(Et){if(gt.ch==Et.length&&(gt=new fn(gt.line,gt.ch-1)),gt.ch>0)gt=new fn(gt.line,gt.ch+1),it.replaceRange(Et.charAt(gt.ch-1)+Et.charAt(gt.ch-2),fn(gt.line,gt.ch-2),gt,"+transpose");else if(gt.line>it.doc.first){var Bt=un(it.doc,gt.line-1).text;Bt&&(gt=new fn(gt.line,1),it.replaceRange(Et.charAt(0)+it.doc.lineSeparator()+Bt.charAt(Bt.length-1),fn(gt.line-1,Bt.length-1),gt,"+transpose"))}}ct.push(new Vn(gt,gt))}it.setSelections(ct)})},newlineAndIndent:function(it){return ki(it,function(){for(var at=it.listSelections(),ct=at.length-1;ct>=0;ct--)it.replaceRange(it.doc.lineSeparator(),at[ct].anchor,at[ct].head,"+input");at=it.listSelections();for(var dt=0;dt<at.length;dt++)it.indentLine(at[dt].from().line,null,!0);ch(it)})},openLine:function(it){return it.replaceSelection(`
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function nc(it,at){var ct=un(it.doc,at),dt=ga(ct);return dt!=ct&&(at=be(dt)),Kh(!0,it,dt,at,1)}function Td(it,at){var ct=un(it.doc,at),dt=Ha(ct);return dt!=ct&&(at=be(dt)),Kh(!0,it,ct,at,-1)}function sf(it,at){var ct=nc(it,at.line),dt=un(it.doc,ct.line),gt=Hn(dt,it.doc.direction);if(!gt||gt[0].level==0){var Et=Math.max(ct.ch,dt.text.search(/\S/)),Bt=at.line==ct.line&&at.ch<=Et&&at.ch;return fn(ct.line,Bt?0:Et,ct.sticky)}return ct}function ic(it,at,ct){if(typeof at=="string"&&(at=Vh[at],!at))return!1;it.display.input.ensurePolled();var dt=it.display.shift,gt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),ct&&(it.display.shift=!1),gt=at(it)!=Sn}finally{it.display.shift=dt,it.state.suppressEdits=!1}return gt}function lf(it,at,ct){for(var dt=0;dt<it.state.keyMaps.length;dt++){var gt=po(at,it.state.keyMaps[dt],ct,it);if(gt)return gt}return it.options.extraKeys&&po(at,it.options.extraKeys,ct,it)||po(at,it.options.keyMap,ct,it)}var Fh=new zt;function Bd(it,at,ct,dt){var gt=it.state.keySeq;if(gt){if(ks(at))return"handled";if(/\'$/.test(at)?it.state.keySeq=null:Fh.set(50,function(){it.state.keySeq==gt&&(it.state.keySeq=null,it.display.input.reset())}),uf(it,gt+" "+at,ct,dt))return!0}return uf(it,at,ct,dt)}function uf(it,at,ct,dt){var gt=lf(it,at,dt);return gt=="multi"&&(it.state.keySeq=at),gt=="handled"&&Qi(it,"keyHandled",it,at,ct),(gt=="handled"||gt=="multi")&&(Br(ct),ba(it)),!!gt}function hf(it,at){var ct=sl(at,!0);return ct?at.shiftKey&&!it.state.keySeq?Bd(it,"Shift-"+ct,at,function(dt){return ic(it,dt,!0)})||Bd(it,ct,at,function(dt){if(typeof dt=="string"?/^go[A-Z]/.test(dt):dt.motion)return ic(it,dt)}):Bd(it,ct,at,function(dt){return ic(it,dt)}):!1}function Nc(it,at,ct){return Bd(it,"'"+ct+"'",at,function(dt){return ic(it,dt,!0)})}var Uh=null;function Oa(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&(at.curOp.focus=Qe(),!vi(at,it))){Se&&Ot<11&&it.keyCode==27&&(it.returnValue=!1);var ct=it.keyCode;at.display.shift=ct==16||it.shiftKey;var dt=hf(at,it);ve&&(Uh=dt?ct:null,!dt&&ct==88&&!In&&(ht?it.metaKey:it.ctrlKey)&&at.replaceSelection("",null,"cut")),kt&&!ht&&!dt&&ct==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),ct==18&&!/\bCodeMirror-crosshair\b/.test(at.display.lineDiv.className)&&ca(at)}}function ca(it){var at=it.display.lineDiv;Fe(at,"CodeMirror-crosshair");function ct(dt){(dt.keyCode==18||!dt.altKey)&&(Yt(at,"CodeMirror-crosshair"),Yi(document,"keyup",ct),Yi(document,"mouseover",ct))}Un(document,"keyup",ct),Un(document,"mouseover",ct)}function tu(it){it.keyCode==16&&(this.doc.sel.shift=!1),vi(this,it)}function js(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&!(kl(at.display,it)||vi(at,it)||it.ctrlKey&&!it.altKey||ht&&it.metaKey)){var ct=it.keyCode,dt=it.charCode;if(ve&&ct==Uh){Uh=null,Br(it);return}if(!(ve&&(!it.which||it.which<10)&&hf(at,it))){var gt=String.fromCharCode(dt==null?ct:dt);gt!="\b"&&(Nc(at,it,gt)||at.display.input.onKeyPress(it))}}}var ll=400,Dl=function(it,at,ct){this.time=it,this.pos=at,this.button=ct};Dl.prototype.compare=function(it,at,ct){return this.time+ll>it&&bi(at,this.pos)==0&&ct==this.button};var ku,eu;function Zh(it,at){var ct=+new Date;return eu&&eu.compare(ct,it,at)?(ku=eu=null,"triple"):ku&&ku.compare(ct,it,at)?(eu=new Dl(ct,it,at),ku=null,"double"):(ku=new Dl(ct,it,at),eu=null,"single")}function nu(it){var at=this,ct=at.display;if(!(vi(at,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,kl(ct,it)){qt||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!ug(at,it)){var dt=il(at,it),gt=ta(it),Et=dt?Zh(dt,gt):"single";window.focus(),gt==1&&at.state.selectingText&&at.state.selectingText(it),!(dt&&Yh(at,gt,dt,Et,it))&&(gt==1?dt?Dc(at,dt,Et,it):Lo(it)==ct.scroller&&Br(it):gt==2?(dt&&La(at.doc,dt),setTimeout(function(){return ct.input.focus()},20)):gt==3&&(Lt?at.display.input.onContextMenu(it):os(at)))}}}function Yh(it,at,ct,dt,gt){var Et="Click";return dt=="double"?Et="Double"+Et:dt=="triple"&&(Et="Triple"+Et),Et=(at==1?"Left":at==2?"Middle":"Right")+Et,Bd(it,$l(Et,gt),gt,function(Bt){if(typeof Bt=="string"&&(Bt=Vh[Bt]),!Bt)return!1;var Ut=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Ut=Bt(it,ct)!=Sn}finally{it.state.suppressEdits=!1}return Ut})}function Od(it,at,ct){var dt=it.getOption("configureMouse"),gt=dt?dt(it,at,ct):{};if(gt.unit==null){var Et=lt?ct.shiftKey&&ct.metaKey:ct.altKey;gt.unit=Et?"rectangle":at=="single"?"char":at=="double"?"word":"line"}return(gt.extend==null||it.doc.extend)&&(gt.extend=it.doc.extend||ct.shiftKey),gt.addNew==null&&(gt.addNew=ht?ct.metaKey:ct.ctrlKey),gt.moveOnDrag==null&&(gt.moveOnDrag=!(ht?ct.altKey:ct.ctrlKey)),gt}function Dc(it,at,ct,dt){Se?setTimeout(Ke(Ra,it),0):it.curOp.focus=Qe();var gt=Od(it,ct,dt),Et=it.doc.sel,Bt;it.options.dragDrop&&_o&&!it.isReadOnly()&&ct=="single"&&(Bt=Et.contains(at))>-1&&(bi((Bt=Et.ranges[Bt]).from(),at)<0||at.xRel>0)&&(bi(Bt.to(),at)>0||at.xRel<0)?tp(it,dt,at,gt):ev(it,dt,at,gt)}function tp(it,at,ct,dt){var gt=it.display,Et=!1,Bt=gr(it,function(oe){qt&&(gt.scroller.draggable=!1),it.state.draggingText=!1,Yi(gt.wrapper.ownerDocument,"mouseup",Bt),Yi(gt.wrapper.ownerDocument,"mousemove",Ut),Yi(gt.scroller,"dragstart",Kt),Yi(gt.scroller,"drop",Bt),Et||(Br(oe),dt.addNew||La(it.doc,ct,null,null,dt.extend),qt&&!Ze||Se&&Ot==9?setTimeout(function(){gt.wrapper.ownerDocument.body.focus({preventScroll:!0}),gt.input.focus()},20):gt.input.focus())}),Ut=function(oe){Et=Et||Math.abs(at.clientX-oe.clientX)+Math.abs(at.clientY-oe.clientY)>=10},Kt=function(){return Et=!0};qt&&(gt.scroller.draggable=!0),it.state.draggingText=Bt,Bt.copy=!dt.moveOnDrag,gt.scroller.dragDrop&&gt.scroller.dragDrop(),Un(gt.wrapper.ownerDocument,"mouseup",Bt),Un(gt.wrapper.ownerDocument,"mousemove",Ut),Un(gt.scroller,"dragstart",Kt),Un(gt.scroller,"drop",Bt),os(it),setTimeout(function(){return gt.input.focus()},20)}function ep(it,at,ct){if(ct=="char")return new Vn(at,at);if(ct=="word")return it.findWordAt(at);if(ct=="line")return new Vn(fn(at.line,0),zi(it.doc,fn(at.line+1,0)));var dt=ct(it,at);return new Vn(dt.from,dt.to)}function ev(it,at,ct,dt){var gt=it.display,Et=it.doc;Br(at);var Bt,Ut,Kt=Et.sel,oe=Kt.ranges;if(dt.addNew&&!dt.extend?(Ut=Et.sel.contains(ct),Ut>-1?Bt=oe[Ut]:Bt=new Vn(ct,ct)):(Bt=Et.sel.primary(),Ut=Et.sel.primIndex),dt.unit=="rectangle")dt.addNew||(Bt=new Vn(ct,ct)),ct=il(it,at,!0,!0),Ut=-1;else{var Be=ep(it,ct,dt.unit);dt.extend?Bt=oa(Bt,Be.anchor,Be.head,dt.extend):Bt=Be}dt.addNew?Ut==-1?(Ut=oe.length,Ri(Et,hi(it,oe.concat([Bt]),Ut),{scroll:!1,origin:"*mouse"})):oe.length>1&&oe[Ut].empty()&&dt.unit=="char"&&!dt.extend?(Ri(Et,hi(it,oe.slice(0,Ut).concat(oe.slice(Ut+1)),0),{scroll:!1,origin:"*mouse"}),Kt=Et.sel):Da(Et,Ut,Bt,rn):(Ut=0,Ri(Et,new qn([Bt],0),rn),Kt=Et.sel);var fe=ct;function on(ir){if(bi(fe,ir)!=0)if(fe=ir,dt.unit=="rectangle"){for(var Rr=[],xo=it.options.tabSize,nr=$t(un(Et,ct.line).text,ct.ch,xo),qo=$t(un(Et,ir.line).text,ir.ch,xo),Es=Math.min(nr,qo),El=Math.max(nr,qo),Is=Math.min(ct.line,ir.line),Nu=Math.min(it.lastLine(),Math.max(ct.line,ir.line));Is<=Nu;Is++){var iu=un(Et,Is).text,hl=Wn(iu,Es,xo);Es==El?Rr.push(new Vn(fn(Is,hl),fn(Is,hl))):iu.length>hl&&Rr.push(new Vn(fn(Is,hl),fn(Is,Wn(iu,El,xo))))}Rr.length||Rr.push(new Vn(ct,ct)),Ri(Et,hi(it,Kt.ranges.slice(0,Ut).concat(Rr),Ut),{origin:"*mouse",scroll:!1}),it.scrollIntoView(ir)}else{var Hu=Bt,Yl=ep(it,ir,dt.unit),dl=Hu.anchor,Ia;bi(Yl.anchor,dl)>0?(Ia=Yl.head,dl=Fi(Hu.from(),Yl.anchor)):(Ia=Yl.anchor,dl=Ao(Hu.to(),Yl.head));var Ws=Kt.ranges.slice(0);Ws[Ut]=am(it,new Vn(zi(Et,dl),Ia)),Ri(Et,hi(it,Ws,Ut),rn)}}var tn=gt.wrapper.getBoundingClientRect(),oi=0;function ui(ir){var Rr=++oi,xo=il(it,ir,!0,dt.unit=="rectangle");if(xo)if(bi(xo,fe)!=0){it.curOp.focus=Qe(),on(xo);var nr=Ho(gt,Et);(xo.line>=nr.to||xo.line<nr.from)&&setTimeout(gr(it,function(){oi==Rr&&ui(ir)}),150)}else{var qo=ir.clientY<tn.top?-20:ir.clientY>tn.bottom?20:0;qo&&setTimeout(gr(it,function(){oi==Rr&&(gt.scroller.scrollTop+=qo,ui(ir))}),50)}}function Ei(ir){it.state.selectingText=!1,oi=1/0,ir&&(Br(ir),gt.input.focus()),Yi(gt.wrapper.ownerDocument,"mousemove",Gi),Yi(gt.wrapper.ownerDocument,"mouseup",wr),Et.history.lastSelOrigin=null}var Gi=gr(it,function(ir){ir.buttons===0||!ta(ir)?Ei(ir):ui(ir)}),wr=gr(it,Ei);it.state.selectingText=wr,Un(gt.wrapper.ownerDocument,"mousemove",Gi),Un(gt.wrapper.ownerDocument,"mouseup",wr)}function am(it,at){var ct=at.anchor,dt=at.head,gt=un(it.doc,ct.line);if(bi(ct,dt)==0&&ct.sticky==dt.sticky)return at;var Et=Hn(gt);if(!Et)return at;var Bt=De(Et,ct.ch,ct.sticky),Ut=Et[Bt];if(Ut.from!=ct.ch&&Ut.to!=ct.ch)return at;var Kt=Bt+(Ut.from==ct.ch==(Ut.level!=1)?0:1);if(Kt==0||Kt==Et.length)return at;var oe;if(dt.line!=ct.line)oe=(dt.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var Be=De(Et,dt.ch,dt.sticky),fe=Be-Bt||(dt.ch-ct.ch)*(Ut.level==1?-1:1);Be==Kt-1||Be==Kt?oe=fe<0:oe=fe>0}var on=Et[Kt+(oe?-1:0)],tn=oe==(on.level==1),oi=tn?on.from:on.to,ui=tn?"after":"before";return ct.ch==oi&&ct.sticky==ui?at:new Vn(new fn(ct.line,oi,ui),dt)}function lg(it,at,ct,dt){var gt,Et;if(at.touches)gt=at.touches[0].clientX,Et=at.touches[0].clientY;else try{gt=at.clientX,Et=at.clientY}catch(on){return!1}if(gt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;dt&&Br(at);var Bt=it.display,Ut=Bt.lineDiv.getBoundingClientRect();if(Et>Ut.bottom||!ii(it,ct))return Li(at);Et-=Ut.top-Bt.viewOffset;for(var Kt=0;Kt<it.display.gutterSpecs.length;++Kt){var oe=Bt.gutters.childNodes[Kt];if(oe&&oe.getBoundingClientRect().right>=gt){var Be=fi(it.doc,Et),fe=it.display.gutterSpecs[Kt];return di(it,ct,it,Be,fe.className,at),Li(at)}}}function ug(it,at){return lg(it,at,"gutterClick",!0)}function hg(it,at){kl(it.display,at)||sm(it,at)||vi(it,at,"contextmenu")||Lt||it.display.input.onContextMenu(at)}function sm(it,at){return ii(it,"gutterContextMenu")?lg(it,at,"gutterContextMenu",!1):!1}function dg(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ah(it)}var rc={toString:function(){return"CodeMirror.Init"}},np={},Bf={};function lm(it){var at=it.optionHandlers;function ct(dt,gt,Et,Bt){it.defaults[dt]=gt,Et&&(at[dt]=Bt?function(Ut,Kt,oe){oe!=rc&&Et(Ut,Kt,oe)}:Et)}it.defineOption=ct,it.Init=rc,ct("value","",function(dt,gt){return dt.setValue(gt)},!0),ct("mode",null,function(dt,gt){dt.doc.modeOption=gt,li(dt)},!0),ct("indentUnit",2,li,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(dt){dr(dt),Ah(dt),Ya(dt)},!0),ct("lineSeparator",null,function(dt,gt){if(dt.doc.lineSep=gt,!!gt){var Et=[],Bt=dt.doc.first;dt.doc.iter(function(Kt){for(var oe=0;;){var Be=Kt.text.indexOf(gt,oe);if(Be==-1)break;oe=Be+gt.length,Et.push(fn(Bt,Be))}Bt++});for(var Ut=Et.length-1;Ut>=0;Ut--)Aa(dt.doc,gt,Et[Ut],fn(Et[Ut].line,Et[Ut].ch+gt.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(dt,gt,Et){dt.state.specialChars=new RegExp(gt.source+(gt.test(" ")?"":"| "),"g"),Et!=rc&&dt.refresh()}),ct("specialCharPlaceholder",gl,function(dt){return dt.refresh()},!0),ct("electricChars",!0),ct("inputStyle",et?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ct("spellcheck",!1,function(dt,gt){return dt.getInputField().spellcheck=gt},!0),ct("autocorrect",!1,function(dt,gt){return dt.getInputField().autocorrect=gt},!0),ct("autocapitalize",!1,function(dt,gt){return dt.getInputField().autocapitalize=gt},!0),ct("rtlMoveVisually",!pt),ct("wholeLineUpdateBefore",!0),ct("theme","default",function(dt){dg(dt),en(dt)},!0),ct("keyMap","default",function(dt,gt,Et){var Bt=Pl(gt),Ut=Et!=rc&&Pl(Et);Ut&&Ut.detach&&Ut.detach(dt,Bt),Bt.attach&&Bt.attach(dt,Ut||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,um,!0),ct("gutters",[],function(dt,gt){dt.display.gutterSpecs=Ae(gt,dt.options.lineNumbers),en(dt)},!0),ct("fixedGutter",!0,function(dt,gt){dt.display.gutters.style.left=gt?Mh(dt.display)+"px":"0",dt.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(dt){return hn(dt)},!0),ct("scrollbarStyle","native",function(dt){si(dt),hn(dt),dt.display.scrollbars.setScrollTop(dt.doc.scrollTop),dt.display.scrollbars.setScrollLeft(dt.doc.scrollLeft)},!0),ct("lineNumbers",!1,function(dt,gt){dt.display.gutterSpecs=Ae(dt.options.gutters,gt),en(dt)},!0),ct("firstLineNumber",1,en,!0),ct("lineNumberFormatter",function(dt){return dt},en,!0),ct("showCursorWhenSelecting",!1,Ks,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(dt,gt){gt=="nocursor"&&(Gh(dt),dt.display.input.blur()),dt.display.input.readOnlyChanged(gt)}),ct("screenReaderLabel",null,function(dt,gt){gt=gt===""?null:gt,dt.display.input.screenReaderLabelChanged(gt)}),ct("disableInput",!1,function(dt,gt){gt||dt.display.input.reset()},!0),ct("dragDrop",!0,cg),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,Ks,!0),ct("singleCursorHeightPerLine",!0,Ks,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,dr,!0),ct("addModeClass",!1,dr,!0),ct("pollInterval",100),ct("undoDepth",200,function(dt,gt){return dt.doc.history.undoDepth=gt}),ct("historyEventDelay",1250),ct("viewportMargin",10,function(dt){return dt.refresh()},!0),ct("maxHighlightLength",1e4,dr,!0),ct("moveInputWithCursor",!0,function(dt,gt){gt||dt.display.input.resetPosition()}),ct("tabindex",null,function(dt,gt){return dt.display.input.getField().tabIndex=gt||""}),ct("autofocus",null),ct("direction","ltr",function(dt,gt){return dt.doc.setDirection(gt)},!0),ct("phrases",null)}function cg(it,at,ct){var dt=ct&&ct!=rc;if(!at!=!dt){var gt=it.display.dragFunctions,Et=at?Un:Yi;Et(it.display.scroller,"dragstart",gt.start),Et(it.display.scroller,"dragenter",gt.enter),Et(it.display.scroller,"dragover",gt.over),Et(it.display.scroller,"dragleave",gt.leave),Et(it.display.scroller,"drop",gt.drop)}}function um(it){it.options.lineWrapping?(Fe(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Yt(it.display.wrapper,"CodeMirror-wrap"),ua(it)),kr(it),Ya(it),Ah(it),setTimeout(function(){return hn(it)},100)}function Fa(it,at){var ct=this;if(!(this instanceof Fa))return new Fa(it,at);this.options=at=at?Dn(at):{},Dn(np,at,!1);var dt=at.value;typeof dt=="string"?dt=new ro(dt,at.mode,null,at.lineSeparator,at.direction):at.mode&&(dt.modeOption=at.mode),this.doc=dt;var gt=new Fa.inputStyles[at.inputStyle](this),Et=this.display=new kn(it,dt,gt,at);Et.wrapper.CodeMirror=this,dg(this),at.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),si(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 zt,keySeq:null,specialChars:null},at.autofocus&&!et&&Et.input.focus(),Se&&Ot<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),df(this),Sa(),Qn(this),this.curOp.forceUpdate=!0,Bi(this,dt),at.autofocus&&!et||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&ha(ct)},20):Gh(this);for(var Bt in Bf)Bf.hasOwnProperty(Bt)&&Bf[Bt](this,at[Bt],rc);ee(this),at.finishInit&&at.finishInit(this);for(var Ut=0;Ut<Tc.length;++Ut)Tc[Ut](this);jn(this),qt&&at.lineWrapping&&getComputedStyle(Et.lineDiv).textRendering=="optimizelegibility"&&(Et.lineDiv.style.textRendering="auto")}Fa.defaults=np,Fa.optionHandlers=Bf;function df(it){var at=it.display;Un(at.scroller,"mousedown",gr(it,nu)),Se&&Ot<11?Un(at.scroller,"dblclick",gr(it,function(Kt){if(!vi(it,Kt)){var oe=il(it,Kt);if(!(!oe||ug(it,Kt)||kl(it.display,Kt))){Br(Kt);var Be=it.findWordAt(oe);La(it.doc,Be.anchor,Be.head)}}})):Un(at.scroller,"dblclick",function(Kt){return vi(it,Kt)||Br(Kt)}),Un(at.scroller,"contextmenu",function(Kt){return hg(it,Kt)}),Un(at.input.getField(),"contextmenu",function(Kt){at.scroller.contains(Kt.target)||hg(it,Kt)});var ct,dt={end:0};function gt(){at.activeTouch&&(ct=setTimeout(function(){return at.activeTouch=null},1e3),dt=at.activeTouch,dt.end=+new Date)}function Et(Kt){if(Kt.touches.length!=1)return!1;var oe=Kt.touches[0];return oe.radiusX<=1&&oe.radiusY<=1}function Bt(Kt,oe){if(oe.left==null)return!0;var Be=oe.left-Kt.left,fe=oe.top-Kt.top;return Be*Be+fe*fe>20*20}Un(at.scroller,"touchstart",function(Kt){if(!vi(it,Kt)&&!Et(Kt)&&!ug(it,Kt)){at.input.ensurePolled(),clearTimeout(ct);var oe=+new Date;at.activeTouch={start:oe,moved:!1,prev:oe-dt.end<=300?dt:null},Kt.touches.length==1&&(at.activeTouch.left=Kt.touches[0].pageX,at.activeTouch.top=Kt.touches[0].pageY)}}),Un(at.scroller,"touchmove",function(){at.activeTouch&&(at.activeTouch.moved=!0)}),Un(at.scroller,"touchend",function(Kt){var oe=at.activeTouch;if(oe&&!kl(at,Kt)&&oe.left!=null&&!oe.moved&&new Date-oe.start<300){var Be=it.coordsChar(at.activeTouch,"page"),fe;!oe.prev||Bt(oe,oe.prev)?fe=new Vn(Be,Be):!oe.prev.prev||Bt(oe,oe.prev.prev)?fe=it.findWordAt(Be):fe=new Vn(fn(Be.line,0),zi(it.doc,fn(Be.line+1,0))),it.setSelection(fe.anchor,fe.head),it.focus(),Br(Kt)}gt()}),Un(at.scroller,"touchcancel",gt),Un(at.scroller,"scroll",function(){at.scroller.clientHeight&&(ae(it,at.scroller.scrollTop),ge(it,at.scroller.scrollLeft,!0),di(it,"scroll",it))}),Un(at.scroller,"mousewheel",function(Kt){return wi(it,Kt)}),Un(at.scroller,"DOMMouseScroll",function(Kt){return wi(it,Kt)}),Un(at.wrapper,"scroll",function(){return at.wrapper.scrollTop=at.wrapper.scrollLeft=0}),at.dragFunctions={enter:function(Kt){vi(it,Kt)||jr(Kt)},over:function(Kt){vi(it,Kt)||(Vo(it,Kt),jr(Kt))},start:function(Kt){return so(it,Kt)},drop:gr(it,wl),leave:function(Kt){vi(it,Kt)||Eo(it)}};var Ut=at.input.getField();Un(Ut,"keyup",function(Kt){return tu.call(it,Kt)}),Un(Ut,"keydown",gr(it,Oa)),Un(Ut,"keypress",gr(it,js)),Un(Ut,"focus",function(Kt){return ha(it,Kt)}),Un(Ut,"blur",function(Kt){return Gh(it,Kt)})}var Tc=[];Fa.defineInitHook=function(it){return Tc.push(it)};function Cl(it,at,ct,dt){var gt=it.doc,Et;ct==null&&(ct="add"),ct=="smart"&&(gt.mode.indent?Et=Wa(it,at).state:ct="prev");var Bt=it.options.tabSize,Ut=un(gt,at),Kt=$t(Ut.text,null,Bt);Ut.stateAfter&&(Ut.stateAfter=null);var oe=Ut.text.match(/^\s*/)[0],Be;if(!dt&&!/\S/.test(Ut.text))Be=0,ct="not";else if(ct=="smart"&&(Be=gt.mode.indent(Et,Ut.text.slice(oe.length),Ut.text),Be==Sn||Be>150)){if(!dt)return;ct="prev"}ct=="prev"?at>gt.first?Be=$t(un(gt,at-1).text,null,Bt):Be=0:ct=="add"?Be=Kt+it.options.indentUnit:ct=="subtract"?Be=Kt-it.options.indentUnit:typeof ct=="number"&&(Be=Kt+ct),Be=Math.max(0,Be);var fe="",on=0;if(it.options.indentWithTabs)for(var tn=Math.floor(Be/Bt);tn;--tn)on+=Bt,fe+=" ";if(on<Be&&(fe+=de(Be-on)),fe!=oe)return Aa(gt,fe,fn(at,0),fn(at,oe.length),"+input"),Ut.stateAfter=null,!0;for(var oi=0;oi<gt.sel.ranges.length;oi++){var ui=gt.sel.ranges[oi];if(ui.head.line==at&&ui.head.ch<oe.length){var Ei=fn(at,oe.length);Da(gt,oi,new Vn(Ei,Ei));break}}}var Fu=null;function Bc(it){Fu=it}function Of(it,at,ct,dt,gt){var Et=it.doc;it.display.shift=!1,dt||(dt=Et.sel);var Bt=+new Date-200,Ut=gt=="paste"||it.state.pasteIncoming>Bt,Kt=cn(at),oe=null;if(Ut&&dt.ranges.length>1)if(Fu&&Fu.text.join(`
`)==at){if(dt.ranges.length%Fu.text.length==0){oe=[];for(var Be=0;Be<Fu.text.length;Be++)oe.push(Et.splitLines(Fu.text[Be]))}}else Kt.length==dt.ranges.length&&it.options.pasteLinesPerSelection&&(oe=dn(Kt,function(Gi){return[Gi]}));for(var fe=it.curOp.updateInput,on=dt.ranges.length-1;on>=0;on--){var tn=dt.ranges[on],oi=tn.from(),ui=tn.to();tn.empty()&&(ct&&ct>0?oi=fn(oi.line,oi.ch-ct):it.state.overwrite&&!Ut?ui=fn(ui.line,Math.min(un(Et,ui.line).text.length,ui.ch+Oe(Kt).length)):Ut&&Fu&&Fu.lineWise&&Fu.text.join(`
`)==Kt.join(`
`)&&(oi=ui=fn(oi.line,0)));var Ei={from:oi,to:ui,text:oe?oe[on%oe.length]:Kt,origin:gt||(Ut?"paste":it.state.cutIncoming>Bt?"cut":"+input")};Ma(it.doc,Ei),Qi(it,"inputRead",it,Ei)}at&&!Ut&&rp(it,at),ch(it),it.curOp.updateInput<2&&(it.curOp.updateInput=fe),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function ip(it,at){var ct=it.clipboardData&&it.clipboardData.getData("Text");if(ct)return it.preventDefault(),!at.isReadOnly()&&!at.options.disableInput&&ki(at,function(){return Of(at,ct,0,null,"paste")}),!0}function rp(it,at){if(!(!it.options.electricChars||!it.options.smartIndent))for(var ct=it.doc.sel,dt=ct.ranges.length-1;dt>=0;dt--){var gt=ct.ranges[dt];if(!(gt.head.ch>100||dt&&ct.ranges[dt-1].head.line==gt.head.line)){var Et=it.getModeAt(gt.head),Bt=!1;if(Et.electricChars){for(var Ut=0;Ut<Et.electricChars.length;Ut++)if(at.indexOf(Et.electricChars.charAt(Ut))>-1){Bt=Cl(it,gt.head.line,"smart");break}}else Et.electricInput&&Et.electricInput.test(un(it.doc,gt.head.line).text.slice(0,gt.head.ch))&&(Bt=Cl(it,gt.head.line,"smart"));Bt&&Qi(it,"electricInput",it,gt.head.line)}}}function op(it){for(var at=[],ct=[],dt=0;dt<it.doc.sel.ranges.length;dt++){var gt=it.doc.sel.ranges[dt].head.line,Et={anchor:fn(gt,0),head:fn(gt+1,0)};ct.push(Et),at.push(it.getRange(Et.anchor,Et.head))}return{text:at,ranges:ct}}function ap(it,at,ct,dt){it.setAttribute("autocorrect",ct?"":"off"),it.setAttribute("autocapitalize",dt?"":"off"),it.setAttribute("spellcheck",!!at)}function sp(){var it=Qt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),at=Qt("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return qt?it.style.width="1000px":it.setAttribute("wrap","off"),Tt&&(it.style.border="1px solid black"),ap(it),at}function oc(it){var at=it.optionHandlers,ct=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(dt,gt){var Et=this.options,Bt=Et[dt];Et[dt]==gt&&dt!="mode"||(Et[dt]=gt,at.hasOwnProperty(dt)&&gr(this,at[dt])(this,gt,Bt),di(this,"optionChange",this,dt))},getOption:function(dt){return this.options[dt]},getDoc:function(){return this.doc},addKeyMap:function(dt,gt){this.state.keyMaps[gt?"push":"unshift"](Pl(dt))},removeKeyMap:function(dt){for(var gt=this.state.keyMaps,Et=0;Et<gt.length;++Et)if(gt[Et]==dt||gt[Et].name==dt)return gt.splice(Et,1),!0},addOverlay:Kr(function(dt,gt){var Et=dt.token?dt:it.getMode(this.options,dt);if(Et.startState)throw new Error("Overlays may not be stateful.");He(this.state.overlays,{mode:Et,modeSpec:dt,opaque:gt&&gt.opaque,priority:gt&&gt.priority||0},function(Bt){return Bt.priority}),this.state.modeGen++,Ya(this)}),removeOverlay:Kr(function(dt){for(var gt=this.state.overlays,Et=0;Et<gt.length;++Et){var Bt=gt[Et].modeSpec;if(Bt==dt||typeof dt=="string"&&Bt.name==dt){gt.splice(Et,1),this.state.modeGen++,Ya(this);return}}}),indentLine:Kr(function(dt,gt,Et){typeof gt!="string"&&typeof gt!="number"&&(gt==null?gt=this.options.smartIndent?"smart":"prev":gt=gt?"add":"subtract"),Wi(this.doc,dt)&&Cl(this,dt,gt,Et)}),indentSelection:Kr(function(dt){for(var gt=this.doc.sel.ranges,Et=-1,Bt=0;Bt<gt.length;Bt++){var Ut=gt[Bt];if(Ut.empty())Ut.head.line>Et&&(Cl(this,Ut.head.line,dt,!0),Et=Ut.head.line,Bt==this.doc.sel.primIndex&&ch(this));else{var Kt=Ut.from(),oe=Ut.to(),Be=Math.max(Et,Kt.line);Et=Math.min(this.lastLine(),oe.line-(oe.ch?0:1))+1;for(var fe=Be;fe<Et;++fe)Cl(this,fe,dt);var on=this.doc.sel.ranges;Kt.ch==0&&gt.length==on.length&&on[Bt].from().ch>0&&Da(this.doc,Bt,new Vn(Kt,on[Bt].to()),we)}}}),getTokenAt:function(dt,gt){return fa(this,dt,gt)},getLineTokens:function(dt,gt){return fa(this,fn(dt),gt,!0)},getTokenTypeAt:function(dt){dt=zi(this.doc,dt);var gt=ns(this,un(this.doc,dt.line)),Et=0,Bt=(gt.length-1)/2,Ut=dt.ch,Kt;if(Ut==0)Kt=gt[2];else for(;;){var oe=Et+Bt>>1;if((oe?gt[oe*2-1]:0)>=Ut)Bt=oe;else if(gt[oe*2+1]<Ut)Et=oe+1;else{Kt=gt[oe*2+2];break}}var Be=Kt?Kt.indexOf("overlay "):-1;return Be<0?Kt:Be==0?null:Kt.slice(0,Be-1)},getModeAt:function(dt){var gt=this.doc.mode;return gt.innerMode?it.innerMode(gt,this.getTokenAt(dt).state).mode:gt},getHelper:function(dt,gt){return this.getHelpers(dt,gt)[0]},getHelpers:function(dt,gt){var Et=[];if(!ct.hasOwnProperty(gt))return Et;var Bt=ct[gt],Ut=this.getModeAt(dt);if(typeof Ut[gt]=="string")Bt[Ut[gt]]&&Et.push(Bt[Ut[gt]]);else if(Ut[gt])for(var Kt=0;Kt<Ut[gt].length;Kt++){var oe=Bt[Ut[gt][Kt]];oe&&Et.push(oe)}else Ut.helperType&&Bt[Ut.helperType]?Et.push(Bt[Ut.helperType]):Bt[Ut.name]&&Et.push(Bt[Ut.name]);for(var Be=0;Be<Bt._global.length;Be++){var fe=Bt._global[Be];fe.pred(Ut,this)&&Gt(Et,fe.val)==-1&&Et.push(fe.val)}return Et},getStateAfter:function(dt,gt){var Et=this.doc;return dt=Ai(Et,dt==null?Et.first+Et.size-1:dt),Wa(this,dt+1,gt).state},cursorCoords:function(dt,gt){var Et,Bt=this.doc.sel.primary();return dt==null?Et=Bt.head:typeof dt=="object"?Et=zi(this.doc,dt):Et=dt?Bt.from():Bt.to(),Ka(this,Et,gt||"page")},charCoords:function(dt,gt){return el(this,zi(this.doc,dt),gt||"page")},coordsChar:function(dt,gt){return dt=bd(this,dt,gt||"page"),_d(this,dt.left,dt.top)},lineAtHeight:function(dt,gt){return dt=bd(this,{top:dt,left:0},gt||"page").top,fi(this.doc,dt+this.display.viewOffset)},heightAtLine:function(dt,gt,Et){var Bt=!1,Ut;if(typeof dt=="number"){var Kt=this.doc.first+this.doc.size-1;dt<this.doc.first?dt=this.doc.first:dt>Kt&&(dt=Kt,Bt=!0),Ut=un(this.doc,dt)}else Ut=dt;return zs(this,Ut,{top:0,left:0},gt||"page",Et||Bt).top+(Bt?this.doc.height-eo(Ut):0)},defaultTextHeight:function(){return ju(this.display)},defaultCharWidth:function(){return Wu(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(dt,gt,Et,Bt,Ut){var Kt=this.display;dt=Ka(this,zi(this.doc,dt));var oe=dt.bottom,Be=dt.left;if(gt.style.position="absolute",gt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(gt),Kt.sizer.appendChild(gt),Bt=="over")oe=dt.top;else if(Bt=="above"||Bt=="near"){var fe=Math.max(Kt.wrapper.clientHeight,this.doc.height),on=Math.max(Kt.sizer.clientWidth,Kt.lineSpace.clientWidth);(Bt=="above"||dt.bottom+gt.offsetHeight>fe)&&dt.top>gt.offsetHeight?oe=dt.top-gt.offsetHeight:dt.bottom+gt.offsetHeight<=fe&&(oe=dt.bottom),Be+gt.offsetWidth>on&&(Be=on-gt.offsetWidth)}gt.style.top=oe+"px",gt.style.left=gt.style.right="",Ut=="right"?(Be=Kt.sizer.clientWidth-gt.offsetWidth,gt.style.right="0px"):(Ut=="left"?Be=0:Ut=="middle"&&(Be=(Kt.sizer.clientWidth-gt.offsetWidth)/2),gt.style.left=Be+"px"),Et&&Dd(this,{left:Be,top:oe,right:Be+gt.offsetWidth,bottom:oe+gt.offsetHeight})},triggerOnKeyDown:Kr(Oa),triggerOnKeyPress:Kr(js),triggerOnKeyUp:tu,triggerOnMouseDown:Kr(nu),execCommand:function(dt){if(Vh.hasOwnProperty(dt))return Vh[dt].call(null,this)},triggerElectric:Kr(function(dt){rp(this,dt)}),findPosH:function(dt,gt,Et,Bt){var Ut=1;gt<0&&(Ut=-1,gt=-gt);for(var Kt=zi(this.doc,dt),oe=0;oe<gt&&(Kt=If(this.doc,Kt,Ut,Et,Bt),!Kt.hitSide);++oe);return Kt},moveH:Kr(function(dt,gt){var Et=this;this.extendSelectionsBy(function(Bt){return Et.display.shift||Et.doc.extend||Bt.empty()?If(Et.doc,Bt.head,dt,gt,Et.options.rtlMoveVisually):dt<0?Bt.from():Bt.to()},an)}),deleteH:Kr(function(dt,gt){var Et=this.doc.sel,Bt=this.doc;Et.somethingSelected()?Bt.replaceSelection("",null,"+delete"):Us(this,function(Ut){var Kt=If(Bt,Ut.head,dt,gt,!1);return dt<0?{from:Kt,to:Ut.head}:{from:Ut.head,to:Kt}})}),findPosV:function(dt,gt,Et,Bt){var Ut=1,Kt=Bt;gt<0&&(Ut=-1,gt=-gt);for(var oe=zi(this.doc,dt),Be=0;Be<gt;++Be){var fe=Ka(this,oe,"div");if(Kt==null?Kt=fe.left:fe.left=Kt,oe=ac(this,fe,Ut,Et),oe.hitSide)break}return oe},moveV:Kr(function(dt,gt){var Et=this,Bt=this.doc,Ut=[],Kt=!this.display.shift&&!Bt.extend&&Bt.sel.somethingSelected();if(Bt.extendSelectionsBy(function(Be){if(Kt)return dt<0?Be.from():Be.to();var fe=Ka(Et,Be.head,"div");Be.goalColumn!=null&&(fe.left=Be.goalColumn),Ut.push(fe.left);var on=ac(Et,fe,dt,gt);return gt=="page"&&Be==Bt.sel.primary()&&tc(Et,el(Et,on,"div").top-fe.top),on},an),Ut.length)for(var oe=0;oe<Bt.sel.ranges.length;oe++)Bt.sel.ranges[oe].goalColumn=Ut[oe]}),findWordAt:function(dt){var gt=this.doc,Et=un(gt,dt.line).text,Bt=dt.ch,Ut=dt.ch;if(Et){var Kt=this.getHelper(dt,"wordChars");(dt.sticky=="before"||Ut==Et.length)&&Bt?--Bt:++Ut;for(var oe=Et.charAt(Bt),Be=Wt(oe,Kt)?function(fe){return Wt(fe,Kt)}:/\s/.test(oe)?function(fe){return/\s/.test(fe)}:function(fe){return!/\s/.test(fe)&&!Wt(fe)};Bt>0&&Be(Et.charAt(Bt-1));)--Bt;for(;Ut<Et.length&&Be(Et.charAt(Ut));)++Ut}return new Vn(fn(dt.line,Bt),fn(dt.line,Ut))},toggleOverwrite:function(dt){dt!=null&&dt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Fe(this.display.cursorDiv,"CodeMirror-overwrite"):Yt(this.display.cursorDiv,"CodeMirror-overwrite"),di(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Qe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Kr(function(dt,gt){kh(this,dt,gt)}),getScrollInfo:function(){var dt=this.display.scroller;return{left:dt.scrollLeft,top:dt.scrollTop,height:dt.scrollHeight-pl(this)-this.display.barHeight,width:dt.scrollWidth-pl(this)-this.display.barWidth,clientHeight:Ed(this),clientWidth:Cu(this)}},scrollIntoView:Kr(function(dt,gt){dt==null?(dt={from:this.doc.sel.primary().head,to:null},gt==null&&(gt=this.options.cursorScrollMargin)):typeof dt=="number"?dt={from:fn(dt,0),to:null}:dt.from==null&&(dt={from:dt,to:null}),dt.to||(dt.to=dt.from),dt.margin=gt||0,dt.from.line!=null?$i(this,dt):Ht(this,dt.from,dt.to,dt.margin)}),setSize:Kr(function(dt,gt){var Et=this,Bt=function(Kt){return typeof Kt=="number"||/^\d+$/.test(String(Kt))?Kt+"px":Kt};dt!=null&&(this.display.wrapper.style.width=Bt(dt)),gt!=null&&(this.display.wrapper.style.height=Bt(gt)),this.options.lineWrapping&&Ad(this);var Ut=this.display.viewFrom;this.doc.iter(Ut,this.display.viewTo,function(Kt){if(Kt.widgets){for(var oe=0;oe<Kt.widgets.length;oe++)if(Kt.widgets[oe].noHScroll){Do(Et,Ut,"widget");break}}++Ut}),this.curOp.forceUpdate=!0,di(this,"refresh",this)}),operation:function(dt){return ki(this,dt)},startOperation:function(){return Qn(this)},endOperation:function(){return jn(this)},refresh:Kr(function(){var dt=this.display.cachedTextHeight;Ya(this),this.curOp.forceUpdate=!0,Ah(this),kh(this,this.doc.scrollLeft,this.doc.scrollTop),bt(this.display),(dt==null||Math.abs(dt-ju(this.display))>.5||this.options.lineWrapping)&&kr(this),di(this,"refresh",this)}),swapDoc:Kr(function(dt){var gt=this.doc;return gt.cm=null,this.state.selectingText&&this.state.selectingText(),Bi(this,dt),Ah(this),this.display.input.reset(),kh(this,dt.scrollLeft,dt.scrollTop),this.curOp.forceScroll=!0,Qi(this,"swapDoc",this,gt),gt}),phrase:function(dt){var gt=this.options.phrases;return gt&&Object.prototype.hasOwnProperty.call(gt,dt)?gt[dt]:dt},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}},mi(it),it.registerHelper=function(dt,gt,Et){ct.hasOwnProperty(dt)||(ct[dt]=it[dt]={_global:[]}),ct[dt][gt]=Et},it.registerGlobalHelper=function(dt,gt,Et,Bt){it.registerHelper(dt,gt,Bt),ct[dt]._global.push({pred:Et,val:Bt})}}function If(it,at,ct,dt,gt){var Et=at,Bt=ct,Ut=un(it,at.line),Kt=gt&&it.direction=="rtl"?-ct:ct;function oe(){var wr=at.line+Kt;return wr<it.first||wr>=it.first+it.size?!1:(at=new fn(wr,at.ch,at.sticky),Ut=un(it,wr))}function Be(wr){var ir;if(dt=="codepoint"){var Rr=Ut.text.charCodeAt(at.ch+(dt>0?0:-1));isNaN(Rr)?ir=null:ir=new fn(at.line,Math.max(0,Math.min(Ut.text.length,at.ch+ct*(Rr>=55296&&Rr<56320?2:1))),-ct)}else gt?ir=af(it.cm,Ut,at,ct):ir=ss(Ut,at,ct);if(ir==null)if(!wr&&oe())at=Kh(gt,it.cm,Ut,at.line,Kt);else return!1;else at=ir;return!0}if(dt=="char"||dt=="codepoint")Be();else if(dt=="column")Be(!0);else if(dt=="word"||dt=="group")for(var fe=null,on=dt=="group",tn=it.cm&&it.cm.getHelper(at,"wordChars"),oi=!0;!(ct<0&&!Be(!oi));oi=!1){var ui=Ut.text.charAt(at.ch)||`
`,Ei=Wt(ui,tn)?"w":on&&ui==`
`?"n":!on||/\s/.test(ui)?null:"p";if(on&&!oi&&!Ei&&(Ei="s"),fe&&fe!=Ei){ct<0&&(ct=1,Be(),at.sticky="after");break}if(Ei&&(fe=Ei),ct>0&&!Be(!oi))break}var Gi=Ta(it,at,Et,Bt,!0);return Mr(Et,Gi)&&(Gi.hitSide=!0),Gi}function ac(it,at,ct,dt){var gt=it.doc,Et=at.left,Bt;if(dt=="page"){var Ut=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Kt=Math.max(Ut-.5*ju(it.display),3);Bt=(ct>0?at.bottom:at.top)+ct*Kt}else dt=="line"&&(Bt=ct>0?at.bottom+3:at.top-3);for(var oe;oe=_d(it,Et,Bt),!!oe.outside;){if(ct<0?Bt<=0:Bt>=gt.height){oe.hitSide=!0;break}Bt+=ct*5}return oe}var ls=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new zt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ls.prototype.init=function(it){var at=this,ct=this,dt=ct.cm,gt=ct.div=it.lineDiv;ap(gt,dt.options.spellcheck,dt.options.autocorrect,dt.options.autocapitalize);function Et(Ut){for(var Kt=Ut.target;Kt;Kt=Kt.parentNode){if(Kt==gt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Kt.className))break}return!1}Un(gt,"paste",function(Ut){!Et(Ut)||vi(dt,Ut)||ip(Ut,dt)||Ot<=11&&setTimeout(gr(dt,function(){return at.updateFromDOM()}),20)}),Un(gt,"compositionstart",function(Ut){at.composing={data:Ut.data,done:!1}}),Un(gt,"compositionupdate",function(Ut){at.composing||(at.composing={data:Ut.data,done:!1})}),Un(gt,"compositionend",function(Ut){at.composing&&(Ut.data!=at.composing.data&&at.readFromDOMSoon(),at.composing.done=!0)}),Un(gt,"touchstart",function(){return ct.forceCompositionEnd()}),Un(gt,"input",function(){at.composing||at.readFromDOMSoon()});function Bt(Ut){if(!(!Et(Ut)||vi(dt,Ut))){if(dt.somethingSelected())Bc({lineWise:!1,text:dt.getSelections()}),Ut.type=="cut"&&dt.replaceSelection("",null,"cut");else if(dt.options.lineWiseCopyCut){var Kt=op(dt);Bc({lineWise:!0,text:Kt.text}),Ut.type=="cut"&&dt.operation(function(){dt.setSelections(Kt.ranges,0,we),dt.replaceSelection("",null,"cut")})}else return;if(Ut.clipboardData){Ut.clipboardData.clearData();var oe=Fu.text.join(`
`);if(Ut.clipboardData.setData("Text",oe),Ut.clipboardData.getData("Text")==oe){Ut.preventDefault();return}}var Be=sp(),fe=Be.firstChild;dt.display.lineSpace.insertBefore(Be,dt.display.lineSpace.firstChild),fe.value=Fu.text.join(`
`);var on=document.activeElement;Jn(fe),setTimeout(function(){dt.display.lineSpace.removeChild(Be),on.focus(),on==gt&&ct.showPrimarySelection()},50)}}Un(gt,"copy",Bt),Un(gt,"cut",Bt)},ls.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},ls.prototype.prepareSelection=function(){var it=dh(this.cm,!1);return it.focus=document.activeElement==this.div,it},ls.prototype.showSelection=function(it,at){!it||!this.cm.display.view.length||((it.focus||at)&&this.showPrimarySelection(),this.showMultipleSelections(it))},ls.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ls.prototype.showPrimarySelection=function(){var it=this.getSelection(),at=this.cm,ct=at.doc.sel.primary(),dt=ct.from(),gt=ct.to();if(at.display.viewTo==at.display.viewFrom||dt.line>=at.display.viewTo||gt.line<at.display.viewFrom){it.removeAllRanges();return}var Et=Rf(at,it.anchorNode,it.anchorOffset),Bt=Rf(at,it.focusNode,it.focusOffset);if(!(Et&&!Et.bad&&Bt&&!Bt.bad&&bi(Fi(Et,Bt),dt)==0&&bi(Ao(Et,Bt),gt)==0)){var Ut=at.display.view,Kt=dt.line>=at.display.viewFrom&&fg(at,dt)||{node:Ut[0].measure.map[2],offset:0},oe=gt.line<at.display.viewTo&&fg(at,gt);if(!oe){var Be=Ut[Ut.length-1].measure,fe=Be.maps?Be.maps[Be.maps.length-1]:Be.map;oe={node:fe[fe.length-1],offset:fe[fe.length-2]-fe[fe.length-3]}}if(!Kt||!oe){it.removeAllRanges();return}var on=it.rangeCount&&it.getRangeAt(0),tn;try{tn=he(Kt.node,Kt.offset,oe.offset,oe.node)}catch(oi){}tn&&(!kt&&at.state.focused?(it.collapse(Kt.node,Kt.offset),tn.collapsed||(it.removeAllRanges(),it.addRange(tn))):(it.removeAllRanges(),it.addRange(tn)),on&&it.anchorNode==null?it.addRange(on):kt&&this.startGracePeriod()),this.rememberSelection()}},ls.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)},ls.prototype.showMultipleSelections=function(it){re(this.cm.display.cursorDiv,it.cursors),re(this.cm.display.selectionDiv,it.selection)},ls.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},ls.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var at=it.getRangeAt(0).commonAncestorContainer;return Le(this.div,at)},ls.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ls.prototype.blur=function(){this.div.blur()},ls.prototype.getField=function(){return this.div},ls.prototype.supportsTouch=function(){return!0},ls.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():ki(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function at(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,at))}this.polling.set(this.cm.options.pollInterval,at)},ls.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},ls.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),at=this.cm;if(nt&&me&&this.cm.display.gutterSpecs.length&&lp(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ct=Rf(at,it.anchorNode,it.anchorOffset),dt=Rf(at,it.focusNode,it.focusOffset);ct&&dt&&ki(at,function(){Ri(at.doc,Pi(ct,dt),we),(ct.bad||dt.bad)&&(at.curOp.selectionChanged=!0)})}}},ls.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,at=it.display,ct=it.doc.sel.primary(),dt=ct.from(),gt=ct.to();if(dt.ch==0&&dt.line>it.firstLine()&&(dt=fn(dt.line-1,un(it.doc,dt.line-1).length)),gt.ch==un(it.doc,gt.line).text.length&&gt.line<it.lastLine()&&(gt=fn(gt.line+1,0)),dt.line<at.viewFrom||gt.line>at.viewTo-1)return!1;var Et,Bt,Ut;dt.line==at.viewFrom||(Et=nl(it,dt.line))==0?(Bt=be(at.view[0].line),Ut=at.view[0].node):(Bt=be(at.view[Et].line),Ut=at.view[Et-1].node.nextSibling);var Kt=nl(it,gt.line),oe,Be;if(Kt==at.view.length-1?(oe=at.viewTo-1,Be=at.lineDiv.lastChild):(oe=be(at.view[Kt+1].line)-1,Be=at.view[Kt+1].node.previousSibling),!Ut)return!1;for(var fe=it.doc.splitLines(ff(it,Ut,Be,Bt,oe)),on=xi(it.doc,fn(Bt,0),fn(oe,un(it.doc,oe).text.length));fe.length>1&&on.length>1;)if(Oe(fe)==Oe(on))fe.pop(),on.pop(),oe--;else if(fe[0]==on[0])fe.shift(),on.shift(),Bt++;else break;for(var tn=0,oi=0,ui=fe[0],Ei=on[0],Gi=Math.min(ui.length,Ei.length);tn<Gi&&ui.charCodeAt(tn)==Ei.charCodeAt(tn);)++tn;for(var wr=Oe(fe),ir=Oe(on),Rr=Math.min(wr.length-(fe.length==1?tn:0),ir.length-(on.length==1?tn:0));oi<Rr&&wr.charCodeAt(wr.length-oi-1)==ir.charCodeAt(ir.length-oi-1);)++oi;if(fe.length==1&&on.length==1&&Bt==dt.line)for(;tn&&tn>dt.ch&&wr.charCodeAt(wr.length-oi-1)==ir.charCodeAt(ir.length-oi-1);)tn--,oi++;fe[fe.length-1]=wr.slice(0,wr.length-oi).replace(/^\u200b+/,""),fe[0]=fe[0].slice(tn).replace(/\u200b+$/,"");var xo=fn(Bt,tn),nr=fn(oe,on.length?Oe(on).length-oi:0);if(fe.length>1||fe[0]||bi(xo,nr))return Aa(it.doc,fe,xo,nr,"+input"),!0},ls.prototype.ensurePolled=function(){this.forceCompositionEnd()},ls.prototype.reset=function(){this.forceCompositionEnd()},ls.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ls.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))},ls.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&ki(this.cm,function(){return Ya(it.cm)})},ls.prototype.setUneditable=function(it){it.contentEditable="false"},ls.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||gr(this.cm,Of)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},ls.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},ls.prototype.onContextMenu=function(){},ls.prototype.resetPosition=function(){},ls.prototype.needsContentAttribute=!0;function fg(it,at){var ct=Eu(it,at.line);if(!ct||ct.hidden)return null;var dt=un(it.doc,at.line),gt=Ld(ct,dt,at.line),Et=Hn(dt,it.doc.direction),Bt="left";if(Et){var Ut=De(Et,at.ch);Bt=Ut%2?"right":"left"}var Kt=Qd(gt.map,at.ch,Bt);return Kt.offset=Kt.collapse=="right"?Kt.end:Kt.start,Kt}function lp(it){for(var at=it;at;at=at.parentNode)if(/CodeMirror-gutter-wrapper/.test(at.className))return!0;return!1}function cf(it,at){return at&&(it.bad=!0),it}function ff(it,at,ct,dt,gt){var Et="",Bt=!1,Ut=it.doc.lineSeparator(),Kt=!1;function oe(tn){return function(oi){return oi.id==tn}}function Be(){Bt&&(Et+=Ut,Kt&&(Et+=Ut),Bt=Kt=!1)}function fe(tn){tn&&(Be(),Et+=tn)}function on(tn){if(tn.nodeType==1){var oi=tn.getAttribute("cm-text");if(oi){fe(oi);return}var ui=tn.getAttribute("cm-marker"),Ei;if(ui){var Gi=it.findMarks(fn(dt,0),fn(gt+1,0),oe(+ui));Gi.length&&(Ei=Gi[0].find(0))&&fe(xi(it.doc,Ei.from,Ei.to).join(Ut));return}if(tn.getAttribute("contenteditable")=="false")return;var wr=/^(pre|div|p|li|table|br)$/i.test(tn.nodeName);if(!/^br$/i.test(tn.nodeName)&&tn.textContent.length==0)return;wr&&Be();for(var ir=0;ir<tn.childNodes.length;ir++)on(tn.childNodes[ir]);/^(pre|p)$/i.test(tn.nodeName)&&(Kt=!0),wr&&(Bt=!0)}else tn.nodeType==3&&fe(tn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;on(at),at!=ct;)at=at.nextSibling,Kt=!1;return Et}function Rf(it,at,ct){var dt;if(at==it.display.lineDiv){if(dt=it.display.lineDiv.childNodes[ct],!dt)return cf(it.clipPos(fn(it.display.viewTo-1)),!0);at=null,ct=0}else for(dt=at;;dt=dt.parentNode){if(!dt||dt==it.display.lineDiv)return null;if(dt.parentNode&&dt.parentNode==it.display.lineDiv)break}for(var gt=0;gt<it.display.view.length;gt++){var Et=it.display.view[gt];if(Et.node==dt)return hm(Et,at,ct)}}function hm(it,at,ct){var dt=it.text.firstChild,gt=!1;if(!at||!Le(dt,at))return cf(fn(be(it.line),0),!0);if(at==dt&&(gt=!0,at=dt.childNodes[ct],ct=0,!at)){var Et=it.rest?Oe(it.rest):it.line;return cf(fn(be(Et),Et.text.length),gt)}var Bt=at.nodeType==3?at:null,Ut=at;for(!Bt&&at.childNodes.length==1&&at.firstChild.nodeType==3&&(Bt=at.firstChild,ct&&(ct=Bt.nodeValue.length));Ut.parentNode!=dt;)Ut=Ut.parentNode;var Kt=it.measure,oe=Kt.maps;function Be(Ei,Gi,wr){for(var ir=-1;ir<(oe?oe.length:0);ir++)for(var Rr=ir<0?Kt.map:oe[ir],xo=0;xo<Rr.length;xo+=3){var nr=Rr[xo+2];if(nr==Ei||nr==Gi){var qo=be(ir<0?it.line:it.rest[ir]),Es=Rr[xo]+wr;return(wr<0||nr!=Ei)&&(Es=Rr[xo+(wr?1:0)]),fn(qo,Es)}}}var fe=Be(Bt,Ut,ct);if(fe)return cf(fe,gt);for(var on=Ut.nextSibling,tn=Bt?Bt.nodeValue.length-ct:0;on;on=on.nextSibling){if(fe=Be(on,on.firstChild,0),fe)return cf(fn(fe.line,fe.ch-tn),gt);tn+=on.textContent.length}for(var oi=Ut.previousSibling,ui=ct;oi;oi=oi.previousSibling){if(fe=Be(oi,oi.firstChild,-1),fe)return cf(fn(fe.line,fe.ch+ui),gt);ui+=oi.textContent.length}}var ul=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new zt,this.hasSelection=!1,this.composing=null};ul.prototype.init=function(it){var at=this,ct=this,dt=this.cm;this.createField(it);var gt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),Tt&&(gt.style.width="0px"),Un(gt,"input",function(){Se&&Ot>=9&&at.hasSelection&&(at.hasSelection=null),ct.poll()}),Un(gt,"paste",function(Bt){vi(dt,Bt)||ip(Bt,dt)||(dt.state.pasteIncoming=+new Date,ct.fastPoll())});function Et(Bt){if(!vi(dt,Bt)){if(dt.somethingSelected())Bc({lineWise:!1,text:dt.getSelections()});else if(dt.options.lineWiseCopyCut){var Ut=op(dt);Bc({lineWise:!0,text:Ut.text}),Bt.type=="cut"?dt.setSelections(Ut.ranges,null,we):(ct.prevInput="",gt.value=Ut.text.join(`
`),Jn(gt))}else return;Bt.type=="cut"&&(dt.state.cutIncoming=+new Date)}}Un(gt,"cut",Et),Un(gt,"copy",Et),Un(it.scroller,"paste",function(Bt){if(!(kl(it,Bt)||vi(dt,Bt))){if(!gt.dispatchEvent){dt.state.pasteIncoming=+new Date,ct.focus();return}var Ut=new Event("paste");Ut.clipboardData=Bt.clipboardData,gt.dispatchEvent(Ut)}}),Un(it.lineSpace,"selectstart",function(Bt){kl(it,Bt)||Br(Bt)}),Un(gt,"compositionstart",function(){var Bt=dt.getCursor("from");ct.composing&&ct.composing.range.clear(),ct.composing={start:Bt,range:dt.markText(Bt,dt.getCursor("to"),{className:"CodeMirror-composing"})}}),Un(gt,"compositionend",function(){ct.composing&&(ct.poll(),ct.composing.range.clear(),ct.composing=null)})},ul.prototype.createField=function(it){this.wrapper=sp(),this.textarea=this.wrapper.firstChild},ul.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},ul.prototype.prepareSelection=function(){var it=this.cm,at=it.display,ct=it.doc,dt=dh(it);if(it.options.moveInputWithCursor){var gt=Ka(it,ct.sel.primary().head,"div"),Et=at.wrapper.getBoundingClientRect(),Bt=at.lineDiv.getBoundingClientRect();dt.teTop=Math.max(0,Math.min(at.wrapper.clientHeight-10,gt.top+Bt.top-Et.top)),dt.teLeft=Math.max(0,Math.min(at.wrapper.clientWidth-10,gt.left+Bt.left-Et.left))}return dt},ul.prototype.showSelection=function(it){var at=this.cm,ct=at.display;re(ct.cursorDiv,it.cursors),re(ct.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},ul.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var at=this.cm;if(at.somethingSelected()){this.prevInput="";var ct=at.getSelection();this.textarea.value=ct,at.state.focused&&Jn(this.textarea),Se&&Ot>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",Se&&Ot>=9&&(this.hasSelection=null))}},ul.prototype.getField=function(){return this.textarea},ul.prototype.supportsTouch=function(){return!1},ul.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!et||Qe()!=this.textarea))try{this.textarea.focus()}catch(it){}},ul.prototype.blur=function(){this.textarea.blur()},ul.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ul.prototype.receivedFocus=function(){this.slowPoll()},ul.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},ul.prototype.fastPoll=function(){var it=!1,at=this;at.pollingFast=!0;function ct(){var dt=at.poll();!dt&&!it?(it=!0,at.polling.set(60,ct)):(at.pollingFast=!1,at.slowPoll())}at.polling.set(20,ct)},ul.prototype.poll=function(){var it=this,at=this.cm,ct=this.textarea,dt=this.prevInput;if(this.contextMenuPending||!at.state.focused||xt(ct)&&!dt&&!this.composing||at.isReadOnly()||at.options.disableInput||at.state.keySeq)return!1;var gt=ct.value;if(gt==dt&&!at.somethingSelected())return!1;if(Se&&Ot>=9&&this.hasSelection===gt||ht&&/[\uf700-\uf7ff]/.test(gt))return at.display.input.reset(),!1;if(at.doc.sel==at.display.selForContextMenu){var Et=gt.charCodeAt(0);if(Et==8203&&!dt&&(dt="\u200B"),Et==8666)return this.reset(),this.cm.execCommand("undo")}for(var Bt=0,Ut=Math.min(dt.length,gt.length);Bt<Ut&&dt.charCodeAt(Bt)==gt.charCodeAt(Bt);)++Bt;return ki(at,function(){Of(at,gt.slice(Bt),dt.length-Bt,null,it.composing?"*compose":null),gt.length>1e3||gt.indexOf(`
`)>-1?ct.value=it.prevInput="":it.prevInput=gt,it.composing&&(it.composing.range.clear(),it.composing.range=at.markText(it.composing.start,at.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ul.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ul.prototype.onKeyPress=function(){Se&&Ot>=9&&(this.hasSelection=null),this.fastPoll()},ul.prototype.onContextMenu=function(it){var at=this,ct=at.cm,dt=ct.display,gt=at.textarea;at.contextMenuPending&&at.contextMenuPending();var Et=il(ct,it),Bt=dt.scroller.scrollTop;if(!Et||ve)return;var Ut=ct.options.resetSelectionOnContextMenu;Ut&&ct.doc.sel.contains(Et)==-1&&gr(ct,Ri)(ct.doc,Pi(Et),we);var Kt=gt.style.cssText,oe=at.wrapper.style.cssText,Be=at.wrapper.offsetParent.getBoundingClientRect();at.wrapper.style.cssText="position: static",gt.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(it.clientY-Be.top-5)+"px; left: "+(it.clientX-Be.left-5)+`px;
z-index: 1000; background: `+(Se?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var fe;qt&&(fe=window.scrollY),dt.input.focus(),qt&&window.scrollTo(null,fe),dt.input.reset(),ct.somethingSelected()||(gt.value=at.prevInput=" "),at.contextMenuPending=tn,dt.selForContextMenu=ct.doc.sel,clearTimeout(dt.detectingSelectAll);function on(){if(gt.selectionStart!=null){var ui=ct.somethingSelected(),Ei="\u200B"+(ui?gt.value:"");gt.value="\u21DA",gt.value=Ei,at.prevInput=ui?"":"\u200B",gt.selectionStart=1,gt.selectionEnd=Ei.length,dt.selForContextMenu=ct.doc.sel}}function tn(){if(at.contextMenuPending==tn&&(at.contextMenuPending=!1,at.wrapper.style.cssText=oe,gt.style.cssText=Kt,Se&&Ot<9&&dt.scrollbars.setScrollTop(dt.scroller.scrollTop=Bt),gt.selectionStart!=null)){(!Se||Se&&Ot<9)&&on();var ui=0,Ei=function(){dt.selForContextMenu==ct.doc.sel&&gt.selectionStart==0&&gt.selectionEnd>0&&at.prevInput=="\u200B"?gr(ct,da)(ct):ui++<10?dt.detectingSelectAll=setTimeout(Ei,500):(dt.selForContextMenu=null,dt.input.reset())};dt.detectingSelectAll=setTimeout(Ei,200)}}if(Se&&Ot>=9&&on(),Lt){jr(it);var oi=function(){Yi(window,"mouseup",oi),setTimeout(tn,20)};Un(window,"mouseup",oi)}else setTimeout(tn,50)},ul.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},ul.prototype.setUneditable=function(){},ul.prototype.needsContentAttribute=!1;function dm(it,at){if(at=at?Dn(at):{},at.value=it.value,!at.tabindex&&it.tabIndex&&(at.tabindex=it.tabIndex),!at.placeholder&&it.placeholder&&(at.placeholder=it.placeholder),at.autofocus==null){var ct=Qe();at.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function dt(){it.value=Ut.getValue()}var gt;if(it.form&&(Un(it.form,"submit",dt),!at.leaveSubmitMethodAlone)){var Et=it.form;gt=Et.submit;try{var Bt=Et.submit=function(){dt(),Et.submit=gt,Et.submit(),Et.submit=Bt}}catch(Kt){}}at.finishInit=function(Kt){Kt.save=dt,Kt.getTextArea=function(){return it},Kt.toTextArea=function(){Kt.toTextArea=isNaN,dt(),it.parentNode.removeChild(Kt.getWrapperElement()),it.style.display="",it.form&&(Yi(it.form,"submit",dt),!at.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=gt))}},it.style.display="none";var Ut=Fa(function(Kt){return it.parentNode.insertBefore(Kt,it.nextSibling)},at);return Ut}function gf(it){it.off=Yi,it.on=Un,it.wheelEventPixels=ni,it.Doc=ro,it.splitLines=cn,it.countColumn=$t,it.findColumn=Wn,it.isWordChar=Ft,it.Pass=Sn,it.signal=di,it.Line=Ga,it.changeEnd=ar,it.scrollbarModel=Pn,it.Pos=fn,it.cmpPos=bi,it.modes=Nn,it.mimeModes=Rn,it.resolveMode=Ie,it.getMode=Re,it.modeExtensions=se,it.extendMode=je,it.copyState=ti,it.startState=Zn,it.innerMode=_n,it.commands=Vh,it.keyMap=al,it.keyName=sl,it.isModifierKey=ks,it.lookupKey=po,it.normalizeKeyMap=Qo,it.StringStream=Me,it.SharedTextMarker=Ms,it.TextMarker=ye,it.LineWidget=Ro,it.e_preventDefault=Br,it.e_stopPropagation=Gr,it.e_stop=jr,it.addClass=Fe,it.contains=Le,it.rmClass=Yt,it.keyNames=ol}lm(Fa),oc(Fa);var Id="iter insert remove copy getEditor constructor".split(" ");for(var zf in ro.prototype)ro.prototype.hasOwnProperty(zf)&&Gt(Id,zf)<0&&(Fa.prototype[zf]=function(it){return function(){return it.apply(this.doc,arguments)}}(ro.prototype[zf]));return mi(ro),Fa.inputStyles={textarea:ul,contenteditable:ls},Fa.defineMode=function(it){!Fa.defaults.mode&&it!="null"&&(Fa.defaults.mode=it),ri.apply(this,arguments)},Fa.defineMIME=Ii,Fa.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Fa.defineMIME("text/plain","null"),Fa.defineExtension=function(it,at){Fa.prototype[it]=at},Fa.defineDocExtension=function(it,at){ro.prototype[it]=at},Fa.fromTextArea=dm,gf(Fa),Fa.version="5.58.2",Fa})},49047:function(xn,$n,Dt){(function(kt){kt(Dt(4631),Dt(29589),Dt(52539))})(function(kt){"use strict";kt.defineMode("markdown",function(le,ze){var Ye=kt.getMode(le,"text/html"),Se=Ye.name=="null";function Ot($t){if(kt.findModeByName){var zt=kt.findModeByName($t);zt&&($t=zt.mime||zt.mimes[0])}var Gt=kt.getMode(le,$t);return Gt.name=="null"?null:Gt}ze.highlightFormatting===void 0&&(ze.highlightFormatting=!1),ze.maxBlockquoteDepth===void 0&&(ze.maxBlockquoteDepth=0),ze.taskLists===void 0&&(ze.taskLists=!1),ze.strikethrough===void 0&&(ze.strikethrough=!1),ze.emoji===void 0&&(ze.emoji=!1),ze.fencedCodeBlockHighlighting===void 0&&(ze.fencedCodeBlockHighlighting=!0),ze.fencedCodeBlockDefaultMode===void 0&&(ze.fencedCodeBlockDefaultMode="text/plain"),ze.xml===void 0&&(ze.xml=!0),ze.tokenTypeOverrides===void 0&&(ze.tokenTypeOverrides={});var qt={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 Ee in qt)qt.hasOwnProperty(Ee)&&ze.tokenTypeOverrides[Ee]&&(qt[Ee]=ze.tokenTypeOverrides[Ee]);var me=/^([*\-_])(?:\s*\1){2,}\s*$/,ve=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ze=/^\[(x| )\](?=\s)/i,Ce=ze.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,nn=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Tt=/^[^#!\[\]*_\\<>` "'(~:]+/,nt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,et=/^\s*\[[^\]]+?\]:.*$/,ht=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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($t,zt,Gt){return zt.f=zt.inline=Gt,Gt($t,zt)}function vt($t,zt,Gt){return zt.f=zt.block=Gt,Gt($t,zt)}function St($t){return!$t||!/\S/.test($t.string)}function Lt($t){if($t.linkTitle=!1,$t.linkHref=!1,$t.linkText=!1,$t.em=!1,$t.strong=!1,$t.strikethrough=!1,$t.quote=0,$t.indentedCode=!1,$t.f==Yt){var zt=Se;if(!zt){var Gt=kt.innerMode(Ye,$t.htmlState);zt=Gt.mode.name=="xml"&&Gt.state.tagStart===null&&!Gt.state.context&&Gt.state.tokenize.isInText}zt&&($t.f=xe,$t.block=It,$t.htmlState=null)}return $t.trailingSpace=0,$t.trailingSpaceNewLine=!1,$t.prevLine=$t.thisLine,$t.thisLine={stream:null},null}function It($t,zt){var Gt=$t.column()===zt.indentation,_e=St(zt.prevLine.stream),Sn=zt.indentedCode,we=zt.prevLine.hr,rn=zt.list!==!1,an=(zt.listStack[zt.listStack.length-1]||0)+3;zt.indentedCode=!1;var Wn=zt.indentation;if(zt.indentationDiff===null&&(zt.indentationDiff=zt.indentation,rn)){for(zt.list=null;Wn<zt.listStack[zt.listStack.length-1];)zt.listStack.pop(),zt.listStack.length?zt.indentation=zt.listStack[zt.listStack.length-1]:zt.list=!1;zt.list!==!1&&(zt.indentationDiff=Wn-zt.listStack[zt.listStack.length-1])}var Ne=!_e&&!we&&!zt.prevLine.header&&(!rn||!Sn)&&!zt.prevLine.fencedCodeEnd,de=(zt.list===!1||we||_e)&&zt.indentation<=an&&$t.match(me),Oe=null;if(zt.indentationDiff>=4&&(Sn||zt.prevLine.fencedCodeEnd||zt.prevLine.header||_e))return $t.skipToEnd(),zt.indentedCode=!0,qt.code;if($t.eatSpace())return null;if(Gt&&zt.indentation<=an&&(Oe=$t.match(Ce))&&Oe[1].length<=6)return zt.quote=0,zt.header=Oe[1].length,zt.thisLine.header=!0,ze.highlightFormatting&&(zt.formatting="header"),zt.f=zt.inline,re(zt);if(zt.indentation<=an&&$t.eat(">"))return zt.quote=Gt?1:zt.quote+1,ze.highlightFormatting&&(zt.formatting="quote"),$t.eatSpace(),re(zt);if(!de&&!zt.setext&&Gt&&zt.indentation<=an&&(Oe=$t.match(ve))){var dn=Oe[1]?"ol":"ul";return zt.indentation=Wn+$t.current().length,zt.list=!0,zt.quote=0,zt.listStack.push(zt.indentation),zt.em=!1,zt.strong=!1,zt.code=!1,zt.strikethrough=!1,ze.taskLists&&$t.match(Ze,!1)&&(zt.taskList=!0),zt.f=zt.inline,ze.highlightFormatting&&(zt.formatting=["list","list-"+dn]),re(zt)}else{if(Gt&&zt.indentation<=an&&(Oe=$t.match(nt,!0)))return zt.quote=0,zt.fencedEndRE=new RegExp(Oe[1]+"+ *$"),zt.localMode=ze.fencedCodeBlockHighlighting&&Ot(Oe[2]||ze.fencedCodeBlockDefaultMode),zt.localMode&&(zt.localState=kt.startState(zt.localMode)),zt.f=zt.block=ie,ze.highlightFormatting&&(zt.formatting="code-block"),zt.code=-1,re(zt);if(zt.setext||(!Ne||!rn)&&!zt.quote&&zt.list===!1&&!zt.code&&!de&&!et.test($t.string)&&(Oe=$t.lookAhead(1))&&(Oe=Oe.match(nn)))return zt.setext?(zt.header=zt.setext,zt.setext=0,$t.skipToEnd(),ze.highlightFormatting&&(zt.formatting="header")):(zt.header=Oe[0].charAt(0)=="="?1:2,zt.setext=zt.header),zt.thisLine.header=!0,zt.f=zt.inline,re(zt);if(de)return $t.skipToEnd(),zt.hr=!0,zt.thisLine.hr=!0,qt.hr;if($t.peek()==="[")return pt($t,zt,Gn)}return pt($t,zt,zt.inline)}function Yt($t,zt){var Gt=Ye.token($t,zt.htmlState);if(!Se){var _e=kt.innerMode(Ye,zt.htmlState);(_e.mode.name=="xml"&&_e.state.tagStart===null&&!_e.state.context&&_e.state.tokenize.isInText||zt.md_inside&&$t.current().indexOf(">")>-1)&&(zt.f=xe,zt.block=It,zt.htmlState=null)}return Gt}function ie($t,zt){var Gt=zt.listStack[zt.listStack.length-1]||0,_e=zt.indentation<Gt,Sn=Gt+3;if(zt.fencedEndRE&&zt.indentation<=Sn&&(_e||$t.match(zt.fencedEndRE))){ze.highlightFormatting&&(zt.formatting="code-block");var we;return _e||(we=re(zt)),zt.localMode=zt.localState=null,zt.block=It,zt.f=xe,zt.fencedEndRE=null,zt.code=0,zt.thisLine.fencedCodeEnd=!0,_e?vt($t,zt,zt.block):we}else return zt.localMode?zt.localMode.token($t,zt.localState):($t.skipToEnd(),qt.code)}function re($t){var zt=[];if($t.formatting){zt.push(qt.formatting),typeof $t.formatting=="string"&&($t.formatting=[$t.formatting]);for(var Gt=0;Gt<$t.formatting.length;Gt++)zt.push(qt.formatting+"-"+$t.formatting[Gt]),$t.formatting[Gt]==="header"&&zt.push(qt.formatting+"-"+$t.formatting[Gt]+"-"+$t.header),$t.formatting[Gt]==="quote"&&(!ze.maxBlockquoteDepth||ze.maxBlockquoteDepth>=$t.quote?zt.push(qt.formatting+"-"+$t.formatting[Gt]+"-"+$t.quote):zt.push("error"))}if($t.taskOpen)return zt.push("meta"),zt.length?zt.join(" "):null;if($t.taskClosed)return zt.push("property"),zt.length?zt.join(" "):null;if($t.linkHref?zt.push(qt.linkHref,"url"):($t.strong&&zt.push(qt.strong),$t.em&&zt.push(qt.em),$t.strikethrough&&zt.push(qt.strikethrough),$t.emoji&&zt.push(qt.emoji),$t.linkText&&zt.push(qt.linkText),$t.code&&zt.push(qt.code),$t.image&&zt.push(qt.image),$t.imageAltText&&zt.push(qt.imageAltText,"link"),$t.imageMarker&&zt.push(qt.imageMarker)),$t.header&&zt.push(qt.header,qt.header+"-"+$t.header),$t.quote&&(zt.push(qt.quote),!ze.maxBlockquoteDepth||ze.maxBlockquoteDepth>=$t.quote?zt.push(qt.quote+"-"+$t.quote):zt.push(qt.quote+"-"+ze.maxBlockquoteDepth)),$t.list!==!1){var _e=($t.listStack.length-1)%3;_e?_e===1?zt.push(qt.list2):zt.push(qt.list3):zt.push(qt.list1)}return $t.trailingSpaceNewLine?zt.push("trailing-space-new-line"):$t.trailingSpace&&zt.push("trailing-space-"+($t.trailingSpace%2?"a":"b")),zt.length?zt.join(" "):null}function Qt($t,zt){if($t.match(Tt,!0))return re(zt)}function xe($t,zt){var Gt=zt.text($t,zt);if(typeof Gt!="undefined")return Gt;if(zt.list)return zt.list=null,re(zt);if(zt.taskList){var _e=$t.match(Ze,!0)[1]===" ";return _e?zt.taskOpen=!0:zt.taskClosed=!0,ze.highlightFormatting&&(zt.formatting="task"),zt.taskList=!1,re(zt)}if(zt.taskOpen=!1,zt.taskClosed=!1,zt.header&&$t.match(/^#+$/,!0))return ze.highlightFormatting&&(zt.formatting="header"),re(zt);var Sn=$t.next();if(zt.linkTitle){zt.linkTitle=!1;var we=Sn;Sn==="("&&(we=")"),we=(we+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var rn="^\\s*(?:[^"+we+"\\\\]+|\\\\\\\\|\\\\.)"+we;if($t.match(new RegExp(rn),!0))return qt.linkHref}if(Sn==="`"){var an=zt.formatting;ze.highlightFormatting&&(zt.formatting="code"),$t.eatWhile("`");var Wn=$t.current().length;if(zt.code==0&&(!zt.quote||Wn==1))return zt.code=Wn,re(zt);if(Wn==zt.code){var Ne=re(zt);return zt.code=0,Ne}else return zt.formatting=an,re(zt)}else if(zt.code)return re(zt);if(Sn==="\\"&&($t.next(),ze.highlightFormatting)){var de=re(zt),Oe=qt.formatting+"-escape";return de?de+" "+Oe:Oe}if(Sn==="!"&&$t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return zt.imageMarker=!0,zt.image=!0,ze.highlightFormatting&&(zt.formatting="image"),re(zt);if(Sn==="["&&zt.imageMarker&&$t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return zt.imageMarker=!1,zt.imageAltText=!0,ze.highlightFormatting&&(zt.formatting="image"),re(zt);if(Sn==="]"&&zt.imageAltText){ze.highlightFormatting&&(zt.formatting="image");var de=re(zt);return zt.imageAltText=!1,zt.image=!1,zt.inline=zt.f=Le,de}if(Sn==="["&&!zt.image)return zt.linkText&&$t.match(/^.*?\]/)||(zt.linkText=!0,ze.highlightFormatting&&(zt.formatting="link")),re(zt);if(Sn==="]"&&zt.linkText){ze.highlightFormatting&&(zt.formatting="link");var de=re(zt);return zt.linkText=!1,zt.inline=zt.f=$t.match(/\(.*?\)| ?\[.*?\]/,!1)?Le:xe,de}if(Sn==="<"&&$t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){zt.f=zt.inline=he,ze.highlightFormatting&&(zt.formatting="link");var de=re(zt);return de?de+=" ":de="",de+qt.linkInline}if(Sn==="<"&&$t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){zt.f=zt.inline=he,ze.highlightFormatting&&(zt.formatting="link");var de=re(zt);return de?de+=" ":de="",de+qt.linkEmail}if(ze.xml&&Sn==="<"&&$t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var dn=$t.string.indexOf(">",$t.pos);if(dn!=-1){var He=$t.string.substring($t.start,dn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(He)&&(zt.md_inside=!0)}return $t.backUp(1),zt.htmlState=kt.startState(Ye),vt($t,zt,Yt)}if(ze.xml&&Sn==="<"&&$t.match(/^\/\w*?>/))return zt.md_inside=!1,"tag";if(Sn==="*"||Sn==="_"){for(var jt=1,Pt=$t.pos==1?" ":$t.string.charAt($t.pos-2);jt<3&&$t.eat(Sn);)jt++;var wt=$t.peek()||" ",Ft=!/\s/.test(wt)&&(!ht.test(wt)||/\s/.test(Pt)||ht.test(Pt)),Wt=!/\s/.test(Pt)&&(!ht.test(Pt)||/\s/.test(wt)||ht.test(wt)),At=null,Jt=null;if(jt%2&&(!zt.em&&Ft&&(Sn==="*"||!Wt||ht.test(Pt))?At=!0:zt.em==Sn&&Wt&&(Sn==="*"||!Ft||ht.test(wt))&&(At=!1)),jt>1&&(!zt.strong&&Ft&&(Sn==="*"||!Wt||ht.test(Pt))?Jt=!0:zt.strong==Sn&&Wt&&(Sn==="*"||!Ft||ht.test(wt))&&(Jt=!1)),Jt!=null||At!=null){ze.highlightFormatting&&(zt.formatting=At==null?"strong":Jt==null?"em":"strong em"),At===!0&&(zt.em=Sn),Jt===!0&&(zt.strong=Sn);var Ne=re(zt);return At===!1&&(zt.em=!1),Jt===!1&&(zt.strong=!1),Ne}}else if(Sn===" "&&($t.eat("*")||$t.eat("_"))){if($t.peek()===" ")return re(zt);$t.backUp(1)}if(ze.strikethrough){if(Sn==="~"&&$t.eatWhile(Sn)){if(zt.strikethrough){ze.highlightFormatting&&(zt.formatting="strikethrough");var Ne=re(zt);return zt.strikethrough=!1,Ne}else if($t.match(/^[^\s]/,!1))return zt.strikethrough=!0,ze.highlightFormatting&&(zt.formatting="strikethrough"),re(zt)}else if(Sn===" "&&$t.match(/^~~/,!0)){if($t.peek()===" ")return re(zt);$t.backUp(2)}}if(ze.emoji&&Sn===":"&&$t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){zt.emoji=!0,ze.highlightFormatting&&(zt.formatting="emoji");var Xe=re(zt);return zt.emoji=!1,Xe}return Sn===" "&&($t.match(/^ +$/,!1)?zt.trailingSpace++:zt.trailingSpace&&(zt.trailingSpaceNewLine=!0)),re(zt)}function he($t,zt){var Gt=$t.next();if(Gt===">"){zt.f=zt.inline=xe,ze.highlightFormatting&&(zt.formatting="link");var _e=re(zt);return _e?_e+=" ":_e="",_e+qt.linkInline}return $t.match(/^[^>]+/,!0),qt.linkInline}function Le($t,zt){if($t.eatSpace())return null;var Gt=$t.next();return Gt==="("||Gt==="["?(zt.f=zt.inline=Fe(Gt==="("?")":"]"),ze.highlightFormatting&&(zt.formatting="link-string"),zt.linkHref=!0,re(zt)):"error"}var Qe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Fe($t){return function(zt,Gt){var _e=zt.next();if(_e===$t){Gt.f=Gt.inline=xe,ze.highlightFormatting&&(Gt.formatting="link-string");var Sn=re(Gt);return Gt.linkHref=!1,Sn}return zt.match(Qe[$t]),Gt.linkHref=!0,re(Gt)}}function Gn($t,zt){return $t.match(/^([^\]\\]|\\.)*\]:/,!1)?(zt.f=Jn,$t.next(),ze.highlightFormatting&&(zt.formatting="link"),zt.linkText=!0,re(zt)):pt($t,zt,xe)}function Jn($t,zt){if($t.match(/^\]:/,!0)){zt.f=zt.inline=Ke,ze.highlightFormatting&&(zt.formatting="link");var Gt=re(zt);return zt.linkText=!1,Gt}return $t.match(/^([^\]\\]|\\.)+/,!0),qt.linkText}function Ke($t,zt){return $t.eatSpace()?null:($t.match(/^[^\s]+/,!0),$t.peek()===void 0?zt.linkTitle=!0:$t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),zt.f=zt.inline=xe,qt.linkHref+" url")}var Dn={startState:function(){return{f:It,prevLine:{stream:null},thisLine:{stream:null},block:It,htmlState:null,indentation:0,inline:xe,text:Qt,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($t){return{f:$t.f,prevLine:$t.prevLine,thisLine:$t.thisLine,block:$t.block,htmlState:$t.htmlState&&kt.copyState(Ye,$t.htmlState),indentation:$t.indentation,localMode:$t.localMode,localState:$t.localMode?kt.copyState($t.localMode,$t.localState):null,inline:$t.inline,text:$t.text,formatting:!1,linkText:$t.linkText,linkTitle:$t.linkTitle,linkHref:$t.linkHref,code:$t.code,em:$t.em,strong:$t.strong,strikethrough:$t.strikethrough,emoji:$t.emoji,header:$t.header,setext:$t.setext,hr:$t.hr,taskList:$t.taskList,list:$t.list,listStack:$t.listStack.slice(0),quote:$t.quote,indentedCode:$t.indentedCode,trailingSpace:$t.trailingSpace,trailingSpaceNewLine:$t.trailingSpaceNewLine,md_inside:$t.md_inside,fencedEndRE:$t.fencedEndRE}},token:function($t,zt){if(zt.formatting=!1,$t!=zt.thisLine.stream){if(zt.header=0,zt.hr=!1,$t.match(/^\s*$/,!0))return Lt(zt),null;if(zt.prevLine=zt.thisLine,zt.thisLine={stream:$t},zt.taskList=!1,zt.trailingSpace=0,zt.trailingSpaceNewLine=!1,!zt.localState&&(zt.f=zt.block,zt.f!=Yt)){var Gt=$t.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(zt.indentation=Gt,zt.indentationDiff=null,Gt>0)return null}}return zt.f($t,zt)},innerMode:function($t){return $t.block==Yt?{state:$t.htmlState,mode:Ye}:$t.localState?{state:$t.localState,mode:$t.localMode}:{state:$t,mode:Dn}},indent:function($t,zt,Gt){return $t.block==Yt&&Ye.indent?Ye.indent($t.htmlState,zt,Gt):$t.localState&&$t.localMode.indent?$t.localMode.indent($t.localState,zt,Gt):kt.Pass},blankLine:Lt,getType:re,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Dn},"xml"),kt.defineMIME("text/markdown","markdown"),kt.defineMIME("text/x-markdown","markdown")})},52539:function(xn,$n,Dt){(function(kt){kt(Dt(4631))})(function(kt){"use strict";kt.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 le=0;le<kt.modeInfo.length;le++){var ze=kt.modeInfo[le];ze.mimes&&(ze.mime=ze.mimes[0])}kt.findModeByMIME=function(Ye){Ye=Ye.toLowerCase();for(var Se=0;Se<kt.modeInfo.length;Se++){var Ot=kt.modeInfo[Se];if(Ot.mime==Ye)return Ot;if(Ot.mimes){for(var qt=0;qt<Ot.mimes.length;qt++)if(Ot.mimes[qt]==Ye)return Ot}}if(/\+xml$/.test(Ye))return kt.findModeByMIME("application/xml");if(/\+json$/.test(Ye))return kt.findModeByMIME("application/json")},kt.findModeByExtension=function(Ye){Ye=Ye.toLowerCase();for(var Se=0;Se<kt.modeInfo.length;Se++){var Ot=kt.modeInfo[Se];if(Ot.ext){for(var qt=0;qt<Ot.ext.length;qt++)if(Ot.ext[qt]==Ye)return Ot}}},kt.findModeByFileName=function(Ye){for(var Se=0;Se<kt.modeInfo.length;Se++){var Ot=kt.modeInfo[Se];if(Ot.file&&Ot.file.test(Ye))return Ot}var qt=Ye.lastIndexOf("."),Ee=qt>-1&&Ye.substring(qt+1,Ye.length);if(Ee)return kt.findModeByExtension(Ee)},kt.findModeByName=function(Ye){Ye=Ye.toLowerCase();for(var Se=0;Se<kt.modeInfo.length;Se++){var Ot=kt.modeInfo[Se];if(Ot.name.toLowerCase()==Ye)return Ot;if(Ot.alias){for(var qt=0;qt<Ot.alias.length;qt++)if(Ot.alias[qt].toLowerCase()==Ye)return Ot}}}})},80785:function(xn,$n,Dt){(function(kt){kt(Dt(4631))})(function(kt){"use strict";kt.defineMode("stex",function(le,ze){"use strict";function Ye(Tt,nt){Tt.cmdState.push(nt)}function Se(Tt){return Tt.cmdState.length>0?Tt.cmdState[Tt.cmdState.length-1]:null}function Ot(Tt){var nt=Tt.cmdState.pop();nt&&nt.closeBracket()}function qt(Tt){for(var nt=Tt.cmdState,et=nt.length-1;et>=0;et--){var ht=nt[et];if(ht.name!="DEFAULT")return ht}return{styleIdentifier:function(){return null}}}function Ee(Tt,nt,et){return function(){this.name=Tt,this.bracketNo=0,this.style=nt,this.styles=et,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var me={};me.importmodule=Ee("importmodule","tag",["string","builtin"]),me.documentclass=Ee("documentclass","tag",["","atom"]),me.usepackage=Ee("usepackage","tag",["atom"]),me.begin=Ee("begin","tag",["atom"]),me.end=Ee("end","tag",["atom"]),me.label=Ee("label","tag",["atom"]),me.ref=Ee("ref","tag",["atom"]),me.eqref=Ee("eqref","tag",["atom"]),me.cite=Ee("cite","tag",["atom"]),me.bibitem=Ee("bibitem","tag",["atom"]),me.Bibitem=Ee("Bibitem","tag",["atom"]),me.RBibitem=Ee("RBibitem","tag",["atom"]),me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ve(Tt,nt){Tt.f=nt}function Ze(Tt,nt){var et;if(Tt.match(/^\\[a-zA-Z@]+/)){var ht=Tt.current().slice(1);return et=me.hasOwnProperty(ht)?me[ht]:me.DEFAULT,et=new et,Ye(nt,et),ve(nt,nn),et.style}if(Tt.match(/^\\[$&%#{}_]/)||Tt.match(/^\\[,;!\/\\]/))return"tag";if(Tt.match("\\["))return ve(nt,function(pt,vt){return Ce(pt,vt,"\\]")}),"keyword";if(Tt.match("\\("))return ve(nt,function(pt,vt){return Ce(pt,vt,"\\)")}),"keyword";if(Tt.match("$$"))return ve(nt,function(pt,vt){return Ce(pt,vt,"$$")}),"keyword";if(Tt.match("$"))return ve(nt,function(pt,vt){return Ce(pt,vt,"$")}),"keyword";var lt=Tt.next();if(lt=="%")return Tt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(et=Se(nt),et)et.closeBracket(lt),ve(nt,nn);else return"error";return"bracket"}else return lt=="{"||lt=="["?(et=me.DEFAULT,et=new et,Ye(nt,et),"bracket"):/\d/.test(lt)?(Tt.eatWhile(/[\w.%]/),"atom"):(Tt.eatWhile(/[\w\-_]/),et=qt(nt),et.name=="begin"&&(et.argument=Tt.current()),et.styleIdentifier())}function Ce(Tt,nt,et){if(Tt.eatSpace())return null;if(et&&Tt.match(et))return ve(nt,Ze),"keyword";if(Tt.match(/^\\[a-zA-Z@]+/))return"tag";if(Tt.match(/^[a-zA-Z]+/))return"variable-2";if(Tt.match(/^\\[$&%#{}_]/)||Tt.match(/^\\[,;!\/]/)||Tt.match(/^[\^_&]/))return"tag";if(Tt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Tt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ht=Tt.next();return ht=="{"||ht=="}"||ht=="["||ht=="]"||ht=="("||ht==")"?"bracket":ht=="%"?(Tt.skipToEnd(),"comment"):"error"}function nn(Tt,nt){var et=Tt.peek(),ht;return et=="{"||et=="["?(ht=Se(nt),ht.openBracket(et),Tt.eat(et),ve(nt,Ze),"bracket"):/[ \t\r]/.test(et)?(Tt.eat(et),null):(ve(nt,Ze),Ot(nt),Ze(Tt,nt))}return{startState:function(){var Tt=ze.inMathMode?function(nt,et){return Ce(nt,et)}:Ze;return{cmdState:[],f:Tt}},copyState:function(Tt){return{cmdState:Tt.cmdState.slice(),f:Tt.f}},token:function(Tt,nt){return nt.f(Tt,nt)},blankLine:function(Tt){Tt.f=Ze,Tt.cmdState.length=0},lineComment:"%"}}),kt.defineMIME("text/x-stex","stex"),kt.defineMIME("text/x-latex","stex")})},29589:function(xn,$n,Dt){(function(kt){kt(Dt(4631))})(function(kt){"use strict";var le={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},ze={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};kt.defineMode("xml",function(Ye,Se){var Ot=Ye.indentUnit,qt={},Ee=Se.htmlMode?le:ze;for(var me in Ee)qt[me]=Ee[me];for(var me in Se)qt[me]=Se[me];var ve,Ze;function Ce(he,Le){function Qe(Jn){return Le.tokenize=Jn,Jn(he,Le)}var Fe=he.next();if(Fe=="<")return he.eat("!")?he.eat("[")?he.match("CDATA[")?Qe(nt("atom","]]>")):null:he.match("--")?Qe(nt("comment","-->")):he.match("DOCTYPE",!0,!0)?(he.eatWhile(/[\w\._\-]/),Qe(et(1))):null:he.eat("?")?(he.eatWhile(/[\w\._\-]/),Le.tokenize=nt("meta","?>"),"meta"):(ve=he.eat("/")?"closeTag":"openTag",Le.tokenize=nn,"tag bracket");if(Fe=="&"){var Gn;return he.eat("#")?he.eat("x")?Gn=he.eatWhile(/[a-fA-F\d]/)&&he.eat(";"):Gn=he.eatWhile(/[\d]/)&&he.eat(";"):Gn=he.eatWhile(/[\w\.\-:]/)&&he.eat(";"),Gn?"atom":"error"}else return he.eatWhile(/[^&<]/),null}Ce.isInText=!0;function nn(he,Le){var Qe=he.next();if(Qe==">"||Qe=="/"&&he.eat(">"))return Le.tokenize=Ce,ve=Qe==">"?"endTag":"selfcloseTag","tag bracket";if(Qe=="=")return ve="equals",null;if(Qe=="<"){Le.tokenize=Ce,Le.state=vt,Le.tagName=Le.tagStart=null;var Fe=Le.tokenize(he,Le);return Fe?Fe+" tag error":"tag error"}else return/[\'\"]/.test(Qe)?(Le.tokenize=Tt(Qe),Le.stringStartCol=he.column(),Le.tokenize(he,Le)):(he.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Tt(he){var Le=function(Qe,Fe){for(;!Qe.eol();)if(Qe.next()==he){Fe.tokenize=nn;break}return"string"};return Le.isInAttribute=!0,Le}function nt(he,Le){return function(Qe,Fe){for(;!Qe.eol();){if(Qe.match(Le)){Fe.tokenize=Ce;break}Qe.next()}return he}}function et(he){return function(Le,Qe){for(var Fe;(Fe=Le.next())!=null;){if(Fe=="<")return Qe.tokenize=et(he+1),Qe.tokenize(Le,Qe);if(Fe==">")if(he==1){Qe.tokenize=Ce;break}else return Qe.tokenize=et(he-1),Qe.tokenize(Le,Qe)}return"meta"}}function ht(he,Le,Qe){this.prev=he.context,this.tagName=Le,this.indent=he.indented,this.startOfLine=Qe,(qt.doNotIndent.hasOwnProperty(Le)||he.context&&he.context.noIndent)&&(this.noIndent=!0)}function lt(he){he.context&&(he.context=he.context.prev)}function pt(he,Le){for(var Qe;;){if(!he.context||(Qe=he.context.tagName,!qt.contextGrabbers.hasOwnProperty(Qe)||!qt.contextGrabbers[Qe].hasOwnProperty(Le)))return;lt(he)}}function vt(he,Le,Qe){return he=="openTag"?(Qe.tagStart=Le.column(),St):he=="closeTag"?Lt:vt}function St(he,Le,Qe){return he=="word"?(Qe.tagName=Le.current(),Ze="tag",ie):qt.allowMissingTagName&&he=="endTag"?(Ze="tag bracket",ie(he,Le,Qe)):(Ze="error",St)}function Lt(he,Le,Qe){if(he=="word"){var Fe=Le.current();return Qe.context&&Qe.context.tagName!=Fe&&qt.implicitlyClosed.hasOwnProperty(Qe.context.tagName)&&lt(Qe),Qe.context&&Qe.context.tagName==Fe||qt.matchClosing===!1?(Ze="tag",It):(Ze="tag error",Yt)}else return qt.allowMissingTagName&&he=="endTag"?(Ze="tag bracket",It(he,Le,Qe)):(Ze="error",Yt)}function It(he,Le,Qe){return he!="endTag"?(Ze="error",It):(lt(Qe),vt)}function Yt(he,Le,Qe){return Ze="error",It(he,Le,Qe)}function ie(he,Le,Qe){if(he=="word")return Ze="attribute",re;if(he=="endTag"||he=="selfcloseTag"){var Fe=Qe.tagName,Gn=Qe.tagStart;return Qe.tagName=Qe.tagStart=null,he=="selfcloseTag"||qt.autoSelfClosers.hasOwnProperty(Fe)?pt(Qe,Fe):(pt(Qe,Fe),Qe.context=new ht(Qe,Fe,Gn==Qe.indented)),vt}return Ze="error",ie}function re(he,Le,Qe){return he=="equals"?Qt:(qt.allowMissing||(Ze="error"),ie(he,Le,Qe))}function Qt(he,Le,Qe){return he=="string"?xe:he=="word"&&qt.allowUnquoted?(Ze="string",ie):(Ze="error",ie(he,Le,Qe))}function xe(he,Le,Qe){return he=="string"?xe:ie(he,Le,Qe)}return{startState:function(he){var Le={tokenize:Ce,state:vt,indented:he||0,tagName:null,tagStart:null,context:null};return he!=null&&(Le.baseIndent=he),Le},token:function(he,Le){if(!Le.tagName&&he.sol()&&(Le.indented=he.indentation()),he.eatSpace())return null;ve=null;var Qe=Le.tokenize(he,Le);return(Qe||ve)&&Qe!="comment"&&(Ze=null,Le.state=Le.state(ve||Qe,he,Le),Ze&&(Qe=Ze=="error"?Qe+" error":Ze)),Qe},indent:function(he,Le,Qe){var Fe=he.context;if(he.tokenize.isInAttribute)return he.tagStart==he.indented?he.stringStartCol+1:he.indented+Ot;if(Fe&&Fe.noIndent)return kt.Pass;if(he.tokenize!=nn&&he.tokenize!=Ce)return Qe?Qe.match(/^(\s*)/)[0].length:0;if(he.tagName)return qt.multilineTagIndentPastTag!==!1?he.tagStart+he.tagName.length+2:he.tagStart+Ot*(qt.multilineTagIndentFactor||1);if(qt.alignCDATA&&/<!\[CDATA\[/.test(Le))return 0;var Gn=Le&&/^<(\/)?([\w_:\.-]*)/.exec(Le);if(Gn&&Gn[1])for(;Fe;)if(Fe.tagName==Gn[2]){Fe=Fe.prev;break}else if(qt.implicitlyClosed.hasOwnProperty(Fe.tagName))Fe=Fe.prev;else break;else if(Gn)for(;Fe;){var Jn=qt.contextGrabbers[Fe.tagName];if(Jn&&Jn.hasOwnProperty(Gn[2]))Fe=Fe.prev;else break}for(;Fe&&Fe.prev&&!Fe.startOfLine;)Fe=Fe.prev;return Fe?Fe.indent+Ot:he.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:qt.htmlMode?"html":"xml",helperType:qt.htmlMode?"html":"xml",skipAttribute:function(he){he.state==Qt&&(he.state=ie)},xmlCurrentTag:function(he){return he.tagName?{name:he.tagName,close:he.type=="closeTag"}:null},xmlCurrentContext:function(he){for(var Le=[],Qe=he.context;Qe;Qe=Qe.prev)Qe.tagName&&Le.push(Qe.tagName);return Le.reverse()}}}),kt.defineMIME("text/xml","xml"),kt.defineMIME("application/xml","xml"),kt.mimeModes.hasOwnProperty("text/html")||kt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},23495:function(xn,$n,Dt){"use strict";Dt.d($n,{$u:function(){return me},BD:function(){return jt},E9:function(){return Ee},FF:function(){return Io},FJ:function(){return vt},Hn:function(){return pt},KX:function(){return Lt},NB:function(){return Ve},S0:function(){return Oe},UL:function(){return ve},Vk:function(){return lt},Vm:function(){return De},YI:function(){return dn},ZA:function(){return ze},Zt:function(){return Ze},al:function(){return At},bn:function(){return Wt},bx:function(){return Pt},g2:function(){return He},h1:function(){return Qt},hD:function(){return mi},l4:function(){return Ot},rU:function(){return wn},s_:function(){return wt},uz:function(){return En},z6:function(){return Ce}}),xn=Dt.hmd(xn),function(){var xt;function In(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function gn(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:In(a)}}function Fn(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},Rn;if(typeof Object.setPrototypeOf=="function")Rn=Object.setPrototypeOf;else{var ri;t:{var Ii={a:!0},Ie={};try{Ie.__proto__=Ii,ri=Ie.a;break t}catch(a){}ri=!1}Rn=ri?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Re=Rn;function se(a,y){if(a.prototype=Nn(y.prototype),a.prototype.constructor=a,Re)Re(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 je=typeof Dt.g!="undefined"&&Dt.g!=null?Dt.g:self,ti=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},_n=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Zn(a,y){if(y){var x=je;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&&_n(x,a,{writable:!0,value:y})}}Zn("Object.assign",function(a){return a||ti}),Zn("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 Me=typeof globalThis=="object"&&globalThis||typeof Dt.g=="object"&&Dt.g.global===Dt.g&&Dt.g||typeof self=="object"&&self.self===self&&self||{};Me.requestAnimationFrame===void 0&&(Me.setImmediate===void 0?Me.requestAnimationFrame=function(a){Me.setTimeout(a,0)}:Me.requestAnimationFrame=Me.setImmediate);function un(){}function xi(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&Me.clearTimeout(x),x=Di(function(){x=-1,a.apply(E,b)},y)}}function Di(a,y){return Me.setTimeout(a,y)}function Cn(a){return Me.document.createElement(a)}function be(a){throw Error(a)}function fi(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),be(a)}function Wi(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),be(x+" is not in the range "+y+": "+a)}function Er(a){Me.console&&Me.console.log(a)}function fn(a){return typeof a=="object"&&a!==null}function bi(a){return Array.isArray(a)||Me.NodeList&&a instanceof Me.NodeList||Me.HTMLCollection&&a instanceof Me.HTMLCollection}function Mr(a){return Array.prototype.slice.call(a)}function na(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):be("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Ao(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):be("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Fi(){var a=Wa.pop();return a===void 0?[]:a}function Ai(a){a.length=0,Wa.push(a)}function zi(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(fn(a)&&a.constructor)return zi(a.constructor);return typeof a}function Jr(a){var y=a;return fn(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 bo(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 Yn(a,y,x){Object.defineProperty(Ho.prototype,a,{get:y,set:x})}function tr(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 qs=Me.navigator!==void 0&&0<Me.navigator.userAgent.indexOf("Trident/7"),ns=Me.navigator!==void 0&&Me.navigator.platform!==void 0&&Me.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Wa=[];Object.freeze([]),un.className="Util",un.Dx="32ab5ff3b26f42dc0ed90f21472913b5",un.adym="gojs.net",un.vfo="28e645fdb266",un.className="Util";function Te(a,y,x){lo(this),this.j=a,this.xa=y,this.o=x}Te.prototype.toString=function(){return"EnumValue."+this.xa};function cr(a,y){return y==null||y===""?null:a[y]}je.Object.defineProperties(Te.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Te.className="EnumValue";function co(){this.ew=[]}co.prototype.toString=function(){return this.ew.join("")},co.prototype.add=function(a){a!==""&&this.ew.push(a)},co.className="StringBuilder";function _i(){}_i.className="PropertyCollection";var fa={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Me.console&&Me.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 fo(){}fo.prototype.reset=function(){},fo.prototype.next=function(){return!1},fo.prototype.Ad=function(){return!1},fo.prototype.first=function(){return null},fo.prototype.any=function(){return!1},fo.prototype.all=function(){return!0},fo.prototype.each=function(){return this},fo.prototype.map=function(){return this},fo.prototype.filter=function(){return this},fo.prototype.de=function(){},fo.prototype.toString=function(){return"EmptyIterator"},je.Object.defineProperties(fo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),fo.prototype.first=fo.prototype.first,fo.prototype.hasNext=fo.prototype.Ad,fo.prototype.next=fo.prototype.next,fo.prototype.reset=fo.prototype.reset;var Co=null;fo.className="EmptyIterator",Co=new fo;function Qr(a){this.key=-1,this.value=a}Qr.prototype.reset=function(){this.key=-1},Qr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Qr.prototype.Ad=function(){return this.next()},Qr.prototype.first=function(){return this.key=0,this.value},Qr.prototype.any=function(a){return this.key=-1,a(this.value)},Qr.prototype.all=function(a){return this.key=-1,a(this.value)},Qr.prototype.each=function(a){return this.key=-1,a(this.value),this},Qr.prototype.map=function(a){return new Qr(a(this.value))},Qr.prototype.filter=function(a){return a(this.value)?new Qr(this.value):Co},Qr.prototype.de=function(){this.value=null},Qr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},je.Object.defineProperties(Qr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Qr.prototype.first=Qr.prototype.first,Qr.prototype.hasNext=Qr.prototype.Ad,Qr.prototype.next=Qr.prototype.next,Qr.prototype.reset=Qr.prototype.reset,Qr.className="SingletonIterator";function io(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}io.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},io.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},io.prototype.Ad=function(){return this.next()},io.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},io.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},io.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},io.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},io.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 vn,a.s=x,a.xb(),a.iterator},io.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 vn,a.s=x,a.xb(),a.iterator},io.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},io.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},je.Object.defineProperties(io.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}}}),io.prototype.first=io.prototype.first,io.prototype.hasNext=io.prototype.Ad,io.prototype.next=io.prototype.next,io.prototype.reset=io.prototype.reset,io.className="ListIterator";function Zo(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Zo.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Zo.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)},Zo.prototype.Ad=function(){return this.next()},Zo.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},Zo.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},Zo.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},Zo.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},Zo.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 vn,a.s=x,a.xb(),a.iterator},Zo.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 vn,a.s=x,a.xb(),a.iterator},Zo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Zo.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},je.Object.defineProperties(Zo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Zo.prototype.first=Zo.prototype.first,Zo.prototype.hasNext=Zo.prototype.Ad,Zo.prototype.next=Zo.prototype.next,Zo.prototype.reset=Zo.prototype.reset,Zo.className="ListIteratorBackwards";function vn(a){lo(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&be("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}xt=vn.prototype,xt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},xt.freeze=function(){return this._isFrozen=!0,this},xt.ka=function(){return this._isFrozen=!1,this},xt.toString=function(){return"List()#"+xa(this)},xt.add=function(a){return a===null?this:(this._isFrozen&&fi(this,a),this.s.push(a),this.xb(),this)},xt.push=function(a){this.add(a)},xt.addAll=function(a){if(a===null)return this;this._isFrozen&&fi(this);var y=this.s;if(bi(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},xt.clear=function(){this._isFrozen&&fi(this),this.s.length=0,this.xb()},xt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},xt.has=function(a){return this.contains(a)},xt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},xt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Wi(a,"0 <= i < length",vn,"elt:i"),y[a]},xt.get=function(a){return this.M(a)},xt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Wi(a,"0 <= i < length",vn,"setElt:i"),this._isFrozen&&fi(this,a),x[a]=y},xt.set=function(a,y){this.cd(a,y)},xt.first=function(){var a=this.s;return a.length===0?null:a[0]},xt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},xt.pop=function(){this._isFrozen&&fi(this);var a=this.s;return 0<a.length?a.pop():null},vn.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},vn.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},vn.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},vn.prototype.map=function(a){for(var y=new vn,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},vn.prototype.filter=function(a){for(var y=new vn,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},xt=vn.prototype,xt.Gb=function(a,y){0>a&&Wi(a,">= 0",vn,"insertAt:i"),this._isFrozen&&fi(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},xt.remove=function(a){if(a===null)return!1;this._isFrozen&&fi(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)},xt.delete=function(a){return this.remove(a)},xt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Wi(a,"0 <= i < length",vn,"removeAt:i"),this._isFrozen&&fi(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},xt.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&&fi(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},vn.prototype.copy=function(){var a=new vn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},xt=vn.prototype,xt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},xt.Iv=function(){for(var a=new sn,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},xt.sort=function(a){return this._isFrozen&&fi(this),this.s.sort(a),this.xb(),this},xt.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&fi(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&Wi(y,"0 <= from < length",vn,"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},xt.reverse=function(){return this._isFrozen&&fi(this),this.s.reverse(),this.xb(),this},je.Object.defineProperties(vn.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 Co;var a=this.Sa;return a!==null?(a.reset(),a):new io(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Co;var a=this.Hg;return a!==null?(a.reset(),a):new Zo(this)}}}),vn.prototype.reverse=vn.prototype.reverse,vn.prototype.sortRange=vn.prototype.zi,vn.prototype.sort=vn.prototype.sort,vn.prototype.toSet=vn.prototype.Iv,vn.prototype.toArray=vn.prototype.Fa,vn.prototype.removeRange=vn.prototype.removeRange,vn.prototype.removeAt=vn.prototype.mb,vn.prototype.delete=vn.prototype.delete,vn.prototype.remove=vn.prototype.remove,vn.prototype.insertAt=vn.prototype.Gb,vn.prototype.pop=vn.prototype.pop,vn.prototype.last=vn.prototype.jc,vn.prototype.first=vn.prototype.first,vn.prototype.set=vn.prototype.set,vn.prototype.setElt=vn.prototype.cd,vn.prototype.get=vn.prototype.get,vn.prototype.elt=vn.prototype.M,vn.prototype.indexOf=vn.prototype.indexOf,vn.prototype.has=vn.prototype.has,vn.prototype.contains=vn.prototype.contains,vn.prototype.clear=vn.prototype.clear,vn.prototype.addAll=vn.prototype.addAll,vn.prototype.push=vn.prototype.push,vn.prototype.add=vn.prototype.add,vn.prototype.thaw=vn.prototype.ka,vn.prototype.freeze=vn.prototype.freeze,vn.className="List";function ma(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ma.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},ma.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)},ma.prototype.Ad=function(){return this.next()},ma.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},ma.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},ma.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},ma.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},ma.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ma.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new vn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},ma.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},ma.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},je.Object.defineProperties(ma.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),ma.prototype.first=ma.prototype.first,ma.prototype.hasNext=ma.prototype.Ad,ma.prototype.next=ma.prototype.next,ma.prototype.reset=ma.prototype.reset,ma.className="SetIterator";function sn(a){lo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&be("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}xt=sn.prototype,xt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},xt.freeze=function(){return this._isFrozen=!0,this},xt.ka=function(){return this._isFrozen=!1,this},xt.toString=function(){return"Set()#"+xa(this)},xt.add=function(a){if(a===null)return this;this._isFrozen&&fi(this,a);var y=a;return fn(a)&&(y=bs(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Ys(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},xt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&fi(this),bi(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},xt.contains=function(a){if(a===null)return!1;var y=a;return fn(a)&&(y=xa(a),y===void 0)?!1:this.Tb[y]!==void 0},xt.has=function(a){return this.contains(a)},xt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},xt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},xt.first=function(){var a=this.ea;return a===null?null:a.value},sn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},sn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},sn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},sn.prototype.map=function(a){for(var y=new sn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},sn.prototype.filter=function(a){for(var y=new sn,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},xt=sn.prototype,xt.remove=function(a){if(a===null)return!1;this._isFrozen&&fi(this,a);var y=a;if(fn(a)&&(y=xa(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},xt.delete=function(a){return this.remove(a)},xt.hp=function(a){if(a===null)return this;if(this._isFrozen&&fi(this),bi(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},xt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&fi(this);var y=new sn;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},xt.clear=function(){this._isFrozen&&fi(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},sn.prototype.copy=function(){var a=new sn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},sn.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},sn.prototype.Hv=function(){var a=new vn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function lo(a){a.__gohashid=fl++}function bs(a){var y=a.__gohashid;return y===void 0&&(y=fl++,a.__gohashid=y),y}function xa(a){return a.__gohashid}je.Object.defineProperties(sn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Co;var a=this.Sa;return a!==null?(a.reset(),a):new ma(this)}}}),sn.prototype.toList=sn.prototype.Hv,sn.prototype.toArray=sn.prototype.Fa,sn.prototype.clear=sn.prototype.clear,sn.prototype.retainAll=sn.prototype.pA,sn.prototype.removeAll=sn.prototype.hp,sn.prototype.delete=sn.prototype.delete,sn.prototype.remove=sn.prototype.remove,sn.prototype.first=sn.prototype.first,sn.prototype.containsAny=sn.prototype.Ty,sn.prototype.containsAll=sn.prototype.Sy,sn.prototype.has=sn.prototype.has,sn.prototype.contains=sn.prototype.contains,sn.prototype.addAll=sn.prototype.addAll,sn.prototype.add=sn.prototype.add,sn.prototype.thaw=sn.prototype.ka,sn.prototype.freeze=sn.prototype.freeze;var fl=1;sn.className="Set",sn.uniqueHash=lo,sn.hashIdUnique=bs,sn.hashId=xa;function va(a){this.ma=a,this.qa=a.Ja,this.sa=null}va.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},va.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)},va.prototype.Ad=function(){return this.next()},va.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},va.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},va.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},va.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},va.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},va.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new vn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},va.prototype.de=function(){this.value=this.key=null,this.qa=-1},va.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},je.Object.defineProperties(va.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),va.prototype.first=va.prototype.first,va.prototype.hasNext=va.prototype.Ad,va.prototype.next=va.prototype.next,va.prototype.reset=va.prototype.reset,va.className="MapKeySetIterator";function yo(a){sn.call(this),lo(this),this._isFrozen=!0,this.ma=a}se(yo,sn),xt=yo.prototype,xt.freeze=function(){return this},xt.ka=function(){return this},xt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},xt.add=function(){be("This Set is read-only: "+this.toString())},xt.contains=function(a){return this.ma.contains(a)},xt.has=function(a){return this.contains(a)},xt.remove=function(){be("This Set is read-only: "+this.toString())},xt.delete=function(a){return this.remove(a)},xt.clear=function(){be("This Set is read-only: "+this.toString())},xt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},yo.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},yo.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},yo.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},yo.prototype.map=function(a){for(var y=new sn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},yo.prototype.filter=function(a){for(var y=new sn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},yo.prototype.copy=function(){return new yo(this.ma)},yo.prototype.Iv=function(){var a=new sn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},yo.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},yo.prototype.Hv=function(){var a=new vn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},je.Object.defineProperties(yo.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Co:new va(this.ma)}}}),yo.prototype.toList=yo.prototype.Hv,yo.prototype.toArray=yo.prototype.Fa,yo.prototype.toSet=yo.prototype.Iv,yo.prototype.first=yo.prototype.first,yo.prototype.clear=yo.prototype.clear,yo.prototype.delete=yo.prototype.delete,yo.prototype.remove=yo.prototype.remove,yo.prototype.has=yo.prototype.has,yo.prototype.contains=yo.prototype.contains,yo.prototype.add=yo.prototype.add,yo.prototype.thaw=yo.prototype.ka,yo.prototype.freeze=yo.prototype.freeze,yo.className="MapKeySet";function ya(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}ya.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},ya.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)},ya.prototype.Ad=function(){return this.next()},ya.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},ya.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},ya.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},ya.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},ya.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ya.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new vn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},ya.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},ya.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},je.Object.defineProperties(ya.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ya.prototype.first=ya.prototype.first,ya.prototype.hasNext=ya.prototype.Ad,ya.prototype.next=ya.prototype.next,ya.prototype.reset=ya.prototype.reset,ya.className="MapValueSetIterator";function Ys(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ys.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ys.className="KeyValuePair";function $o(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}$o.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},$o.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)},$o.prototype.Ad=function(){return this.next()},$o.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},$o.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},$o.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},$o.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},$o.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},$o.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new vn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},$o.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},$o.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},je.Object.defineProperties($o.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),$o.prototype.first=$o.prototype.first,$o.prototype.hasNext=$o.prototype.Ad,$o.prototype.next=$o.prototype.next,$o.prototype.reset=$o.prototype.reset,$o.className="MapIterator";function ci(a){lo(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"&&be("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}xt=ci.prototype,xt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},xt.freeze=function(){return this._isFrozen=!0,this},xt.ka=function(){return this._isFrozen=!1,this},xt.toString=function(){return"Map()#"+xa(this)},xt.add=function(a,y){this._isFrozen&&fi(this,a);var x=a;fn(a)&&(x=bs(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new Ys(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},xt.set=function(a,y){return this.add(a,y)},xt.addAll=function(a){if(a===null)return this;if(bi(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 ci)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},xt.first=function(){return this.ea},ci.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ci.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ci.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},ci.prototype.map=function(a){for(var y=new ci,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},ci.prototype.filter=function(a){for(var y=new ci,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},xt=ci.prototype,xt.contains=function(a){var y=a;return fn(a)&&(y=xa(a),y===void 0)?!1:this.Tb[y]!==void 0},xt.has=function(a){return this.contains(a)},xt.I=function(a){var y=a;return fn(a)&&(y=xa(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},xt.get=function(a){return this.I(a)},xt.remove=function(a){if(a===null)return!1;this._isFrozen&&fi(this,a);var y=a;if(fn(a)&&(y=xa(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},xt.delete=function(a){return this.remove(a)},xt.clear=function(){this._isFrozen&&fi(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()},ci.prototype.copy=function(){var a=new ci,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},ci.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 Ys(b.key,b.value),x++}return y},ci.prototype.Lf=function(){return new yo(this)},je.Object.defineProperties(ci.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Co;var a=this.Sa;return a!==null?(a.reset(),a):new $o(this)}},iteratorKeys:{get:function(){return 0>=this.count?Co:new va(this)}},iteratorValues:{get:function(){if(0>=this.count)return Co;var a=this.jf;return a!==null?(a.reset(),a):new ya(this)}}}),ci.prototype.toKeySet=ci.prototype.Lf,ci.prototype.toArray=ci.prototype.Fa,ci.prototype.clear=ci.prototype.clear,ci.prototype.delete=ci.prototype.delete,ci.prototype.remove=ci.prototype.remove,ci.prototype.get=ci.prototype.get,ci.prototype.getValue=ci.prototype.I,ci.prototype.has=ci.prototype.has,ci.prototype.contains=ci.prototype.contains,ci.prototype.first=ci.prototype.first,ci.prototype.addAll=ci.prototype.addAll,ci.prototype.set=ci.prototype.set,ci.prototype.add=ci.prototype.add,ci.prototype.thaw=ci.prototype.ka,ci.prototype.freeze=ci.prototype.freeze,ci.className="Map";function Zt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):be("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var ts,uu,hu,Xs,xu;Zt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Zt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Zt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Zt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Zt.prototype.copy=function(){var a=new Zt;return a.x=this.x,a.y=this.y,a},xt=Zt.prototype,xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},xt.freeze=function(){return this._isFrozen=!0,this},xt.ka=function(){return Object.isFrozen(this)&&be("cannot thaw constant: "+this),this._isFrozen=!1,this};function Vl(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 Zt(x,b)}return new Zt}function lh(a){return a.x.toString()+" "+a.y.toString()}xt.toString=function(){return"Point("+this.x+","+this.y+")"},xt.D=function(a){return a instanceof Zt?this.x===a.x&&this.y===a.y:!1},xt.hi=function(a,y){return this.x===a&&this.y===y},xt.Xa=function(a){return pe.B(this.x,a.x)&&pe.B(this.y,a.y)},xt.add=function(a){return this.x+=a.x,this.y+=a.y,this},xt.re=function(a){return this.x-=a.x,this.y-=a.y,this},xt.offset=function(a,y){return this.x+=a,this.y+=y,this},Zt.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},xt=Zt.prototype,xt.scale=function(a,y){return this.x*=a,this.y*=y,this},xt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},xt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},xt.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},xt.ab=function(a){return wu(a.x-this.x,a.y-this.y)},xt.direction=function(a,y){return wu(a-this.x,y-this.y)};function wu(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}xt.Ry=function(a,y){return pe.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},xt.fA=function(a,y,x,E){return pe.qh(a,y,x,E,this.x,this.y,this),this},xt.gA=function(a,y){return pe.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},xt.uA=function(a,y,x,E){return pe.No(this.x,this.y,a,y,x,E,this),this},xt.vA=function(a,y){return pe.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},xt.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},xt.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},xt.transform=function(a){return a.Ga(this),this};function ga(a,y){return y.Cd(a),a}function Ha(a,y,x,E,b,z){var tt=b-x,rt=z-E,ot=tt*tt+rt*rt;x-=a,E-=y;var st=-x*tt-E*rt;return 0>=st||st>=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 or(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Xi(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)}xt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Zt.alloc=function(){var a=zr.pop();return a===void 0?new Zt:a},Zt.allocAt=function(a,y){var x=zr.pop();return x===void 0?new Zt(a,y):(x.x=a,x.y=y,x)},Zt.free=function(a){zr.push(a)},Zt.prototype.isReal=Zt.prototype.w,Zt.prototype.setSpot=Zt.prototype.yi,Zt.prototype.setRectSpot=Zt.prototype.xi,Zt.prototype.snapToGridPoint=Zt.prototype.vA,Zt.prototype.snapToGrid=Zt.prototype.uA,Zt.prototype.projectOntoLineSegmentPoint=Zt.prototype.gA,Zt.prototype.projectOntoLineSegment=Zt.prototype.fA,Zt.intersectingLineSegments=function(a,y,x,E,b,z,tt,rt){return pe.Rl(a,y,x,E,b,z,tt,rt)},Zt.prototype.compareWithLineSegmentPoint=Zt.prototype.Ry,Zt.compareWithLineSegment=function(a,y,x,E,b,z){return pe.Fl(a,y,x,E,b,z)},Zt.prototype.direction=Zt.prototype.direction,Zt.prototype.directionPoint=Zt.prototype.ab,Zt.prototype.normalize=Zt.prototype.normalize,Zt.prototype.distanceSquared=Zt.prototype.zd,Zt.prototype.distanceSquaredPoint=Zt.prototype.Bf,Zt.prototype.scale=Zt.prototype.scale,Zt.prototype.rotate=Zt.prototype.rotate,Zt.prototype.offset=Zt.prototype.offset,Zt.prototype.subtract=Zt.prototype.re,Zt.prototype.add=Zt.prototype.add,Zt.prototype.equalsApprox=Zt.prototype.Xa,Zt.prototype.equalTo=Zt.prototype.hi,Zt.prototype.equals=Zt.prototype.D,Zt.prototype.set=Zt.prototype.set,Zt.prototype.setTo=Zt.prototype.sg;var zr=[];Zt.className="Point",Zt.parse=Vl,Zt.stringify=lh,Zt.distanceLineSegmentSquared=Ha,Zt.distanceSquared=or,Zt.direction=Xi,Zt.Origin=ts=new Zt(0,0).ja(),Zt.InfiniteTopLeft=uu=new Zt(-1/0,-1/0).ja(),Zt.InfiniteBottomRight=hu=new Zt(1/0,1/0).ja(),Zt.SixPoint=Xs=new Zt(6,6).ja(),Zt.NoPoint=xu=new Zt(NaN,NaN).ja(),Zt.parse=Vl,Zt.stringify=lh,Zt.distanceLineSegmentSquared=Ha,Zt.distanceSquared=or,Zt.direction=Xi;function $e(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):be("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var fr,eo,wa,ua,Ga,Ds,_s;$e.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},$e.prototype.h=function(a,y){return this.width=a,this.height=y,this},$e.prototype.sg=function(a,y){return this.width=a,this.height=y,this},$e.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},$e.prototype.copy=function(){var a=new $e;return a.width=this.width,a.height=this.height,a},xt=$e.prototype,xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},xt.freeze=function(){return this._isFrozen=!0,this},xt.ka=function(){return Object.isFrozen(this)&&be("cannot thaw constant: "+this),this._isFrozen=!1,this};function $s(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 $e(x,b)}return new $e}function uh(a){return a.width.toString()+" "+a.height.toString()}xt.toString=function(){return"Size("+this.width+","+this.height+")"},xt.D=function(a){return a instanceof $e?this.width===a.width&&this.height===a.height:!1},xt.hi=function(a,y){return this.width===a&&this.height===y},xt.Xa=function(a){return pe.B(this.width,a.width)&&pe.B(this.height,a.height)},xt.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},xt.w=function(){return isFinite(this.width)&&isFinite(this.height)},$e.alloc=function(){var a=Qu.pop();return a===void 0?new $e:a},$e.free=function(a){Qu.push(a)},$e.prototype.isReal=$e.prototype.w,$e.prototype.inflate=$e.prototype.Bc,$e.prototype.equalsApprox=$e.prototype.Xa,$e.prototype.equalTo=$e.prototype.hi,$e.prototype.equals=$e.prototype.D,$e.prototype.set=$e.prototype.set,$e.prototype.setTo=$e.prototype.sg;var Qu=[];$e.className="Size",$e.parse=$s,$e.stringify=uh,$e.ZeroSize=fr=new $e(0,0).ja(),$e.OneSize=eo=new $e(1,1).ja(),$e.SixSize=wa=new $e(6,6).ja(),$e.EightSize=ua=new $e(8,8).ja(),$e.TenSize=Ga=new $e(10,10).ja(),$e.InfiniteSize=Ds=new $e(1/0,1/0).ja(),$e.NoSize=_s=new $e(NaN,NaN).ja(),$e.parse=$s,$e.stringify=uh;function We(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 Zt?(x=a.x,a=a.y,y instanceof Zt?(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 $e?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):be("Incorrect second argument supplied to Rect constructor "+y)):be("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}xt=We.prototype,xt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},xt.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function gl(a,y,x){a.width=y,a.height=x}xt.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},xt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},xt.dd=function(a){return this.x=a.x,this.y=a.y,this},xt.tA=function(a){return this.width=a.width,this.height=a.height,this},We.prototype.copy=function(){var a=new We;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},xt=We.prototype,xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},xt.freeze=function(){return this._isFrozen=!0,this},xt.ka=function(){return Object.isFrozen(this)&&be("cannot thaw constant: "+this),this._isFrozen=!1,this};function du(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 We(x,b,z,tt)}return new We}function qu(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}xt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},xt.D=function(a){return a instanceof We?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},xt.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},xt.Xa=function(a){return pe.B(this.x,a.x)&&pe.B(this.y,a.y)&&pe.B(this.width,a.width)&&pe.B(this.height,a.height)};function is(a,y){return pe.$(a.x,y.x)&&pe.$(a.y,y.y)&&pe.$(a.width,y.width)&&pe.$(a.height,y.height)}xt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},xt.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},xt.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},xt.offset=function(a,y){return this.x+=a,this.y+=y,this},xt.Bc=function(a,y){return _u(this,y,a,y,a)},xt.Co=function(a){return _u(this,a.top,a.right,a.bottom,a.left)},xt.Fv=function(a){return _u(this,-a.top,-a.right,-a.bottom,-a.left)},xt.Hz=function(a,y,x,E){return _u(this,a,y,x,E)};function _u(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}xt.Ex=function(a){return ed(this,a.x,a.y,a.width,a.height)},xt.Uu=function(a,y,x,E){return ed(this,a,y,x,E)};function ed(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}xt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},xt.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 Ch(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))}xt.Ye=function(a){return Pa(this,a.x,a.y,0,0)},xt.ed=function(a){return Pa(this,a.x,a.y,a.width,a.height)},xt.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),Pa(this,a,y,x,E)};function Pa(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}xt.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 cs(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 qr(a,y,x,E,b,z,tt,rt){return a>tt+b||b>x+a?!1:!(y>rt+z||z>E+y)}xt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},xt.Mz=function(){return this.width===0&&this.height===0},We.alloc=function(){var a=rs.pop();return a===void 0?new We:a},We.allocAt=function(a,y,x,E){var b=rs.pop();return b===void 0?new We(a,y,x,E):b.h(a,y,x,E)},We.free=function(a){rs.push(a)},je.Object.defineProperties(We.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 Zt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new $e(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Zt(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}}}),We.prototype.isEmpty=We.prototype.Mz,We.prototype.isReal=We.prototype.w,We.intersectsLineSegment=function(a,y,x,E,b,z,tt,rt){return pe.Fx(a,y,x,E,b,z,tt,rt)},We.prototype.setSpot=We.prototype.yi,We.prototype.union=We.prototype.Kv,We.prototype.unionRect=We.prototype.ed,We.prototype.unionPoint=We.prototype.Ye,We.prototype.intersects=We.prototype.Vu,We.prototype.intersectsRect=We.prototype.Yc,We.prototype.intersect=We.prototype.Uu,We.prototype.intersectRect=We.prototype.Ex,We.prototype.grow=We.prototype.Hz,We.prototype.subtractMargin=We.prototype.Fv,We.prototype.addMargin=We.prototype.Co,We.prototype.inflate=We.prototype.Bc,We.prototype.offset=We.prototype.offset,We.prototype.contains=We.prototype.contains,We.prototype.containsRect=We.prototype.Re,We.prototype.containsPoint=We.prototype.ca,We.prototype.equalsApprox=We.prototype.Xa,We.prototype.equalTo=We.prototype.hi,We.prototype.equals=We.prototype.D,We.prototype.setSize=We.prototype.tA,We.prototype.setPoint=We.prototype.dd,We.prototype.set=We.prototype.set,We.prototype.setTo=We.prototype.sg;var wo=null,Ca=null,rs=[];We.className="Rect",We.parse=du,We.stringify=qu,We.contains=cs,We.intersects=qr,We.ZeroRect=wo=new We(0,0,0,0).ja(),We.NoRect=Ca=new We(NaN,NaN,NaN,NaN).ja(),We.parse=du,We.stringify=qu,We.contains=cs,We.intersects=qr;function Qi(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):be("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Qi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Qi.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Qi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Qi.prototype.copy=function(){var a=new Qi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},xt=Qi.prototype,xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},xt.freeze=function(){return this._isFrozen=!0,this},xt.ka=function(){return Object.isFrozen(this)&&be("cannot thaw constant: "+this),this._isFrozen=!1,this};function xd(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 Qi;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Qi(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Qi(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new Qi(x,b):new Qi(x,b,z,tt)}return new Qi}function $u(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}xt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},xt.D=function(a){return a instanceof Qi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},xt.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},xt.Xa=function(a){return pe.B(this.top,a.top)&&pe.B(this.right,a.right)&&pe.B(this.bottom,a.bottom)&&pe.B(this.left,a.left)},xt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Qi.alloc=function(){var a=Eh.pop();return a===void 0?new Qi:a},Qi.free=function(a){Eh.push(a)},Qi.prototype.isReal=Qi.prototype.w,Qi.prototype.equalsApprox=Qi.prototype.Xa,Qi.prototype.equalTo=Qi.prototype.hi,Qi.prototype.equals=Qi.prototype.D,Qi.prototype.set=Qi.prototype.set,Qi.prototype.setTo=Qi.prototype.sg;var Ml=null,wd=null,Eh=[];Qi.className="Margin",Qi.parse=xd,Qi.stringify=$u,Qi.ZeroMargin=Ml=new Qi(0,0,0,0).ja(),Qi.TwoMargin=wd=new Qi(2,2,2,2).ja(),Qi.parse=xd,Qi.stringify=$u;function yi(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 ps,ms,Ru,Pd,nd,$r,id,Pu,kl,Ul,Hh,Cd,pl,Cu,Ed,Mc,Ld,rf,Jd,Eu,Lh,zu,rd,Qd,kc,vs,Tf,qd,Ad,Ah,ml,tl,xs,zs,bd,el;yi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},yi.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},yi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},yi.prototype.copy=function(){var a=new yi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},xt=yi.prototype,xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},xt.freeze=function(){return this._isFrozen=!0,this},xt.ka=function(){return Object.isFrozen(this)&&be("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ka(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Md(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return ps;if(a==="TopLeft")return ms;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Ru;if(a==="TopRight")return Pd;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return nd;if(a==="Center")return $r;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return id;if(a==="BottomLeft")return Pu;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return kl;if(a==="BottomRight")return Ul;if(a==="TopSide")return Hh;if(a==="LeftSide")return Cd;if(a==="RightSide")return pl;if(a==="BottomSide")return Cu;if(a==="TopBottomSides")return Ed;if(a==="LeftRightSides")return Mc;if(a==="TopLeftSides")return Ld;if(a==="TopRightSides")return rf;if(a==="BottomLeftSides")return Jd;if(a==="BottomRightSides")return Eu;if(a==="NotTopSide")return Lh;if(a==="NotLeftSide")return zu;if(a==="NotRightSide")return rd;if(a==="NotBottomSide")return Qd;if(a==="AllSides")return kc;if(a==="Default")return vs;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 yi(x,b,z,tt)}return new yi}function kd(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}xt.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(ps)?"None":this.D(ms)?"TopLeft":this.D(Ru)?"Top":this.D(Pd)?"TopRight":this.D(nd)?"Left":this.D($r)?"Center":this.D(id)?"Right":this.D(Pu)?"BottomLeft":this.D(kl)?"Bottom":this.D(Ul)?"BottomRight":this.D(Hh)?"TopSide":this.D(Cd)?"LeftSide":this.D(pl)?"RightSide":this.D(Cu)?"BottomSide":this.D(Ed)?"TopBottomSides":this.D(Mc)?"LeftRightSides":this.D(Ld)?"TopLeftSides":this.D(rf)?"TopRightSides":this.D(Jd)?"BottomLeftSides":this.D(Eu)?"BottomRightSides":this.D(Lh)?"NotTopSide":this.D(zu)?"NotLeftSide":this.D(rd)?"NotRightSide":this.D(Qd)?"NotBottomSide":this.D(kc)?"AllSides":this.D(vs)?"Default":"None"},xt.D=function(a){return a instanceof yi?(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},xt.gv=function(){return new yi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},xt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Tf))a=Cd;else if(a.D(qd))a=pl;else if(a.D(Ad))a=Hh;else if(a.D(Ah))a=Cu;else return!1;return a=a.offsetY,(this.offsetY&a)===a},xt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},xt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},xt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},xt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},xt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},yi.alloc=function(){var a=_d.pop();return a===void 0?new yi:a},yi.free=function(a){_d.push(a)},yi.prototype.isDefault=yi.prototype.Xb,yi.prototype.isNone=yi.prototype.ys,yi.prototype.isSide=yi.prototype.$c,yi.prototype.isNoSpot=yi.prototype.Mc,yi.prototype.isSpot=yi.prototype.sb,yi.prototype.includesSide=yi.prototype.Hf,yi.prototype.opposite=yi.prototype.gv,yi.prototype.equals=yi.prototype.D,yi.prototype.set=yi.prototype.set,yi.prototype.setTo=yi.prototype.sg;var _d=[];yi.className="Spot",yi.parse=Md,yi.stringify=kd,yi.None=ps=Ka(new yi(0,0,0,0),0).ja(),yi.Default=vs=Ka(new yi(0,0,-1,0),-1).ja(),yi.TopLeft=ms=new yi(0,0,0,0).ja(),yi.TopCenter=Ru=new yi(.5,0,0,0).ja(),yi.TopRight=Pd=new yi(1,0,0,0).ja(),yi.LeftCenter=nd=new yi(0,.5,0,0).ja(),yi.Center=$r=new yi(.5,.5,0,0).ja(),yi.RightCenter=id=new yi(1,.5,0,0).ja(),yi.BottomLeft=Pu=new yi(0,1,0,0).ja(),yi.BottomCenter=kl=new yi(.5,1,0,0).ja(),yi.BottomRight=Ul=new yi(1,1,0,0).ja(),yi.MiddleTop=ml=Ru,yi.MiddleLeft=tl=nd,yi.MiddleRight=xs=id,yi.MiddleBottom=zs=kl,yi.Top=Ad=Ru,yi.Left=Tf=nd,yi.Right=qd=id,yi.Bottom=Ah=kl,yi.TopSide=Hh=Ka(new yi(0,0,1,1),1).ja(),yi.LeftSide=Cd=Ka(new yi(0,0,1,2),1).ja(),yi.RightSide=pl=Ka(new yi(0,0,1,4),1).ja(),yi.BottomSide=Cu=Ka(new yi(0,0,1,8),1).ja(),yi.TopBottomSides=Ed=Ka(new yi(0,0,1,9),1).ja(),yi.LeftRightSides=Mc=Ka(new yi(0,0,1,6),1).ja(),yi.TopLeftSides=Ld=Ka(new yi(0,0,1,3),1).ja(),yi.TopRightSides=rf=Ka(new yi(0,0,1,5),1).ja(),yi.BottomLeftSides=Jd=Ka(new yi(0,0,1,10),1).ja(),yi.BottomRightSides=Eu=Ka(new yi(0,0,1,12),1).ja(),yi.NotTopSide=Lh=Ka(new yi(0,0,1,14),1).ja(),yi.NotLeftSide=zu=Ka(new yi(0,0,1,13),1).ja(),yi.NotRightSide=rd=Ka(new yi(0,0,1,11),1).ja(),yi.NotBottomSide=Qd=Ka(new yi(0,0,1,7),1).ja(),yi.AllSides=kc=Ka(new yi(0,0,1,15),1).ja(),bd=new yi(.156,.156).ja(),el=new yi(.844,.844).ja(),yi.parse=Md,yi.stringify=kd;function er(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}er.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},er.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},er.prototype.copy=function(){var a=new er;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},er.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},er.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},er.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},er.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},er.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},er.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},er.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},er.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},xt=er.prototype,xt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},xt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},xt.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)},xt.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))},xt.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))},xt.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,st=this.dx,ut=this.dy,ft=y*z+x*rt+st,mt=y*tt+x*ot+ut,yt=E*z+x*rt+st,Ct=E*tt+x*ot+ut;return x=y*z+b*rt+st,y=y*tt+b*ot+ut,z=E*z+b*rt+st,E=E*tt+b*ot+ut,b=Math.min(ft,yt),ft=Math.max(ft,yt),yt=Math.min(mt,Ct),mt=Math.max(mt,Ct),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},er.alloc=function(){var a=Fd.pop();return a===void 0?new er:a},er.free=function(a){Fd.push(a)},er.prototype.transformRect=er.prototype.pp,er.prototype.transformPoint=er.prototype.Ga,er.prototype.scale=er.prototype.scale,er.prototype.translate=er.prototype.translate,er.prototype.rotate=er.prototype.rotate,er.prototype.invert=er.prototype.Vj,er.prototype.multiplyInverted=er.prototype.bv,er.prototype.multiply=er.prototype.multiply,er.prototype.reset=er.prototype.reset,er.prototype.isIdentity=er.prototype.ws,er.prototype.equals=er.prototype.D,er.prototype.setTransform=er.prototype.setTransform,er.prototype.set=er.prototype.set;var Fd=[];er.className="Transform",er.xF="54a702f3e53909c447824c6706603faf4c";var pe={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=pe.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);pe.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 st=y,ut=E;else st=E,ut=y;if(a===x)return st<=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,st-=b,st<=tt&&tt<=ut))if(ot-rt>ut-st)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,st,ut,ft){if(pe.Yb(a,y,tt,rt,ft,x,E)&&pe.Yb(a,y,tt,rt,ft,b,z))return pe.Yb(a,y,tt,rt,ft,st,ut);var mt=(a+x)/2,yt=(y+E)/2,Ct=(x+b)/2,Mt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(mt+Ct)/2,x=(yt+Mt)/2,Ct=(Ct+b)/2,Mt=(Mt+z)/2;var Vt=(E+Ct)/2,Rt=(x+Mt)/2;return pe.cs(a,y,mt,yt,E,x,Vt,Rt,ot,st,ut,ft)||pe.cs(Vt,Rt,Ct,Mt,b,z,tt,rt,ot,st,ut,ft)},ax:function(a,y,x,E,b,z,tt,rt,ot){var st=(x+b)/2,ut=(E+z)/2;return ot.h((((a+x)/2+st)/2+(st+(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,st=(E+z)/2;return Xi(((a+x)/2+ot)/2,((y+E)/2+st)/2,(ot+(b+tt)/2)/2,(st+(z+rt)/2)/2)},Dl:function(a,y,x,E,b,z,tt,rt,ot,st){if(pe.Yb(a,y,tt,rt,ot,x,E)&&pe.Yb(a,y,tt,rt,ot,b,z))Pa(st,a,y,0,0),Pa(st,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 Ct=(E+mt)/2,Mt=(x+yt)/2;pe.Dl(a,y,ut,ft,E,x,Ct,Mt,ot,st),pe.Dl(Ct,Mt,mt,yt,b,z,tt,rt,ot,st)}return st},Qe:function(a,y,x,E,b,z,tt,rt,ot,st){if(pe.Yb(a,y,tt,rt,ot,x,E)&&pe.Yb(a,y,tt,rt,ot,b,z))st.length===0&&(st.push(a),st.push(y)),st.push(tt),st.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 Ct=(E+mt)/2,Mt=(x+yt)/2;pe.Qe(a,y,ut,ft,E,x,Ct,Mt,ot,st),pe.Qe(Ct,Mt,mt,yt,b,z,tt,rt,ot,st)}return st},jv:function(a,y,x,E,b,z,tt,rt,ot,st){if(pe.Yb(a,y,b,z,st,x,E))return pe.Yb(a,y,b,z,st,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 pe.jv(a,y,ut,ft,mt,yt,tt,rt,ot,st)||pe.jv(mt,yt,x,E,b,z,tt,rt,ot,st)},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(pe.Yb(a,y,b,z,tt,x,E))Pa(rt,a,y,0,0),Pa(rt,b,z,0,0);else{var ot=(a+x)/2,st=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(ot+x)/2,ft=(st+E)/2;pe.iv(a,y,ot,st,ut,ft,tt,rt),pe.iv(ut,ft,x,E,b,z,tt,rt)}return rt},ep:function(a,y,x,E,b,z,tt,r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mt===0)return yt;var Ct=((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-st*ut))/mt,Mt=((a*rt-y*tt)*(st-ft)-(y-rt)*(ot*ft-st*ut))/mt;if(Ct>=ut)return yt;if((ot>ut?ot-ut:ut-ot)<(st>ft?st-ft:ft-st)){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,Ct<ot||Ct>a)return yt;0<mt?yt++:0>mt&&yt--}else{Ct=(a+x)/2,Mt=(y+E)/2;var Vt=(x+b)/2,Rt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(Ct+Vt)/2,x=(Mt+Rt)/2,Vt=(Vt+b)/2,Rt=(Rt+z)/2;var _t=(E+Vt)/2,te=(x+Rt)/2;yt+=pe.Fo(a,y,Ct,Mt,E,x,_t,te,ot,st,ut,ft,mt),yt+=pe.Fo(_t,te,Vt,Rt,b,z,tt,rt,ot,st,ut,ft,mt)}return yt},qh:function(a,y,x,E,b,z,tt){return pe.$(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)):pe.$(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 pe.B(a,x)&&pe.B(y,E)?(ot.h(a,y),!1):pe.$(b,tt)?pe.$(a,x)?(pe.qh(a,y,x,E,b,z,ot),!1):pe.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,ot):(rt=(rt-z)/(tt-b),pe.$(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),pe.$(rt,tt)?(pe.qh(a,y,x,E,b,z,ot),!1):(b=(tt*a-rt*b+z-y)/(tt-rt),pe.$(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)):pe.qh(a,y,x,E,b,tt*(b-a)+y,ot))))},MA:function(a,y,x,E,b){return pe.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,st){function ut(Vt,Rt){var _t=(Vt-a)*(Vt-a)+(Rt-y)*(Rt-y);_t<ft&&(ft=_t,ot.h(Vt,Rt))}var ft=1/0;ut(ot.x,ot.y);var mt=0,yt=0,Ct=0,Mt=0;if(b<tt?(mt=b,yt=tt):(mt=tt,yt=b),z<rt?(Ct=b,Mt=tt):(Ct=tt,Mt=b),mt=(yt-mt)/2+st,st=(Mt-Ct)/2+st,b=(b+tt)/2,z=(z+rt)/2,mt===0||st===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=-st*mt+z,ut(x,st*mt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(mt*mt)+x*x/(st*st),rt=2*x*(y-x*a)/(st*st)-2*x*z/(st*st)-2*b/(mt*mt),mt=rt*rt-4*E*(2*x*a*z/(st*st)-2*y*z/(st*st)+z*z/(st*st)+b*b/(mt*mt)-1+(y-x*a)*(y-x*a)/(st*st)),0>mt)return ot;mt=Math.sqrt(mt),st=(-rt+mt)/(2*E),ut(st,x*st-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 st=1e21,ut=a,ft=y;if(pe.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<st&&(st=mt,ut=ot.x,ft=ot.y)}return pe.Ve(x,y,x,E,b,z,tt,rt,ot)&&(mt=(ot.x-b)*(ot.x-b)+(ot.y-z)*(ot.y-z),mt<st&&(st=mt,ut=ot.x,ft=ot.y)),pe.Ve(a,y,x,y,b,z,tt,rt,ot)&&(y=(ot.x-b)*(ot.x-b)+(ot.y-z)*(ot.y-z),y<st&&(st=y,ut=ot.x,ft=ot.y)),pe.Ve(a,E,x,E,b,z,tt,rt,ot)&&(a=(ot.x-b)*(ot.x-b)+(ot.y-z)*(ot.y-z),a<st&&(st=a,ut=ot.x,ft=ot.y)),ot.h(ut,ft),1e21>st},us:function(a,y,x){return pe.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,st=y+E;return b===tt?(z<rt?(tt=z,z=rt):tt=rt,a<=b&&b<=ot&&tt<=st&&z>=y):z===rt?(b<tt?(rt=b,b=tt):rt=tt,y<=z&&z<=st&&rt<=ot&&b>=a):!!(cs(a,y,x,E,b,z)||cs(a,y,x,E,tt,rt)||pe.Rl(a,y,ot,y,b,z,tt,rt)||pe.Rl(ot,y,ot,st,b,z,tt,rt)||pe.Rl(ot,st,a,st,b,z,tt,rt)||pe.Rl(a,st,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>=pe.Fl(a,y,x,E,b,z)*pe.Fl(a,y,x,E,tt,rt)&&0>=pe.Fl(b,z,tt,rt,a,y)*pe.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,st=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return ot=st+rt*Math.min(E,ot),rt=a+x*Math.cos(st),st=y+x*Math.sin(st),a+=x*Math.cos(ot),y+=x*Math.sin(ot),x=(rt+a)/2,ot=(st+y)/2,z.push([rt,st,x,ot,x,ot,a,y]),z;for(;1e-5<E;)b=st+rt*Math.min(E,ot),z.push(pe.Vy(x,st,b,a,y)),E-=Math.abs(b-st),st=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,st=tt*tt+ot*ot,ut=st+tt*tt+ot*rt;return st=4/3*(Math.sqrt(2*st*ut)-ut)/(tt*rt-ot*tt),rt=tt-st*ot,tt=ot+st*tt,ot=-tt,st=z+y,z=Math.cos(st),st=Math.sin(st),[E+a*Math.cos(y),b+a*Math.sin(y),E+rt*z-tt*st,b+rt*st+tt*z,E+rt*z-ot*st,b+rt*st+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,st=tt===0?x:E;return(tt===0?b:z)&&(st=-st),tt=rt,x=tt===0?x:E,(tt===0?b:z)&&(x=-x),pe.az(ot,tt===0?a:y,st,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 st=0;9999999999>st&&(y=.5*(rt+ot),!(y===rt||y===ot));++st){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 _i,um:new _i,Mf:new _i,Nf:0,vm:100};pe.za=pe.AA;function yn(a){lo(this),this.l=2,a===void 0&&(a=yn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===yn.o?this.ee=new vn:(yn.V===null&&(yn.V=new vn().freeze()),this.ee=yn.V),this.aq=this.ee.Ja,this.Ip=new We().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ms,this.gg=Ul,this.Rk=this.Sk=NaN,this.Uf=on}yn.prototype.copy=function(){var a=new yn;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===yn.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},yn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},yn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==yn.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},yn.prototype.ka=function(){if(Object.isFrozen(this)&&be("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==yn.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},yn.prototype.Xa=function(a){if(!(a instanceof yn))return!1;if(this.type!==a.type)return this.type===yn.j&&a.type===yn.o?Lu(this,a):a.type===yn.j&&this.type===yn.o?Lu(a,this):!1;if(this.type===yn.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 pe.B(this.startX,a.startX)&&pe.B(this.startY,a.startY)&&pe.B(this.endX,a.endX)&&pe.B(this.endY,a.endY)};function Lu(a,y){return a.type!==yn.j||y.type!==yn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&pe.B(a.startX,y.startX)&&pe.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Do&&pe.B(a.endX,y.endX)&&pe.B(a.endY,y.endY))))}yn.ia=function(a){return a.toString()},yn.prototype.qb=function(a){a.classType===yn&&(this.type=a)},yn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case yn.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 yn.u:var y=new We(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 yn.F:if(y=new We(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 yn.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()}},yn.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},yn.parse=function(a,y){function x(){return Mt>=ne-1?!0:st[Mt+1].match(ue)!==null}function E(){return Mt++,st[Mt]}function b(ji){var Ni=parseFloat(E()),Xr=parseFloat(E());Vt===Vt.toLowerCase()&&(Ni=te.x+Ni,Xr=te.y+Xr),ji.h(Ni,Xr)}function z(){return b(te),te}function tt(){return b(_t),_t}function rt(){var ji=Rt.toLowerCase();return ji!=="c"&&ji!=="s"&&ji!=="q"&&ji!=="t"?te:new Zt(2*te.x-_t.x,2*te.y-_t.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 st=a.split(" ");for(a=0;a<st.length;a++){var ut=st[a];if(ut.match(/(\.[0-9]*)(\.)/gm)!==null){ot=Fi();for(var ft="",mt=!1,yt=0;yt<ut.length;yt++){var Ct=ut[yt];Ct!=="."||mt?Ct==="."?(ot.push(ft),ft="."):ft+=Ct:(mt=!0,ft+=Ct)}for(ot.push(ft),st.splice(a,1),ut=0;ut<ot.length;ut++)st.splice(a+ut,0,ot[ut]);a+=ot.length-1,Ai(ot)}}var Mt=-1,Vt="",Rt="";ot=new Zt(0,0);var _t=new Zt(0,0),te=new Zt(0,0),ne=st.length;a=FS(null),mt=ft=ut=!1,yt=!0,Ct=null;for(var ue=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Mt>=ne-1);)if(Rt=Vt,Vt=E(),Vt!=="")switch(Vt.toUpperCase()){case"X":yt=!0,ft=ut=!1;break;case"M":for(Ct=z(),a.mc===null||yt===!0?(bg(a,Ct.x,Ct.y,ut,!ft,mt),yt=!1):a.moveTo(Ct.x,Ct.y),ot.assign(te);!x();)Ct=z(),a.lineTo(Ct.x,Ct.y);break;case"L":for(;!x();)Ct=z(),a.lineTo(Ct.x,Ct.y);break;case"H":for(;!x();)te=new Zt((Vt===Vt.toLowerCase()?te.x:0)+parseFloat(E()),te.y),a.lineTo(te.x,te.y);break;case"V":for(;!x();)te=new Zt(te.x,(Vt===Vt.toLowerCase()?te.y:0)+parseFloat(E())),a.lineTo(te.x,te.y);break;case"C":for(;!x();){Ct=new Zt,b(Ct);var Pe=tt(),Mn=z();hc(a,Ct.x,Ct.y,Pe.x,Pe.y,Mn.x,Mn.y)}break;case"S":for(;!x();)Ct=rt(),Pe=tt(),Mn=z(),hc(a,Ct.x,Ct.y,Pe.x,Pe.y,Mn.x,Mn.y);break;case"Q":for(;!x();)Ct=tt(),Pe=z(),Hm(a,Ct.x,Ct.y,Pe.x,Pe.y);break;case"T":for(;!x();)_t=Ct=rt(),Pe=z(),Hm(a,Ct.x,Ct.y,Pe.x,Pe.y);break;case"B":for(;!x();){Ct=parseFloat(E()),Pe=parseFloat(E()),Mn=parseFloat(E());var ei=parseFloat(E()),Kn=parseFloat(E()),pn=Kn,qe=!1;x()||(pn=parseFloat(E()),x()||(qe=parseFloat(E())!==0)),Vt===Vt.toLowerCase()&&(Mn+=te.x,ei+=te.y),a.arcTo(Ct,Pe,Mn,ei,Kn,pn,qe)}break;case"A":for(;!x();)Ct=Math.abs(parseFloat(E())),Pe=Math.abs(parseFloat(E())),Mn=parseFloat(E()),Kn=ei=!1,qe=pn=0,pn=E(),pn.length===1?(ei=!!parseFloat(pn),Kn=!!parseFloat(E()),pn=parseFloat(E())):pn.length===2?(ei=!!parseFloat(pn[0]),Kn=!!parseFloat(pn[1]),pn=parseFloat(E())):(ei=!!parseFloat(pn[0]),Kn=!!parseFloat(pn[1]),pn=parseFloat(pn.slice(2))),qe=parseFloat(E()),Vt===Vt.toLowerCase()&&(pn=te.x+pn,qe=te.y+qe),te.h(pn,qe),Px(a,Ct,Pe,Mn,ei,Kn,pn,qe);break;case"Z":wx(a),te.assign(ot);break;case"F":for(Ct="",Pe=1;st[Mt+Pe];)if(st[Mt+Pe]==="0")mt=!0,Pe++;else if(st[Mt+Pe].match(/[Uu]/)!==null)Pe++;else if(st[Mt+Pe].match(ue)===null)Pe++;else{Ct=st[Mt+Pe];break}Ct.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Ct="",Pe=1;st[Mt+Pe];)if(st[Mt+Pe].match(/[Ff]/)!==null)Pe++;else if(st[Mt+Pe].match(ue)===null)Pe++;else{Ct=st[Mt+Pe];break}Ct.match(/[Mm]/)?ft=!0:a.mc.isShadowed=!1}if(ot=a.os,Gm=a,y)for(y=ot.figures.iterator;y.next();)y.value.isFilled=!0;return ot},yn.Ha=function(a,y){for(var x=a.length,E=Zt.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}Zt.free(E)},yn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===yn.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},yn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===yn.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),bh(this,a,!1),Pa(a,0,0,0,0),a.freeze()},yn.prototype.ix=function(){var a=new We;return bh(this,a,!0),a};function bh(a,y,x){switch(a.type){case yn.j:case yn.u:case yn.F:x?y.h(a.od,a.pd,0,0):Pa(y,a.od,a.pd,0,0),Pa(y,a.Dc,a.Ec,0,0);break;case yn.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):Pa(y,z.startX,z.startY,0,0);for(var tt=z.segments.s,rt=tt.length,ot=z.startX,st=z.startY,ut=0;ut<rt;ut++){var ft=tt[ut];switch(ft.type){case Do:case Ya:ot=ft.endX,st=ft.endY,Pa(y,ot,st,0,0);break;case ws:pe.Dl(ot,st,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.5,y),ot=ft.endX,st=ft.endY;break;case Fl:pe.iv(ot,st,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,y),ot=ft.endX,st=ft.endY;break;case Na:case vl:var mt=ft.type===Na?il(ft,z):nl(ft,z,ot,st),yt=mt.length;if(yt===0){ot=ft.type===Na?ft.centerX:ft.endX,st=ft.type===Na?ft.centerY:ft.endY,Pa(y,ot,st,0,0);break}ft=null;for(var Ct=0;Ct<yt;Ct++)ft=mt[Ct],pe.Dl(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,y);ft!==null&&(ot=ft[6],st=ft[7]);break;default:be("Unknown Segment type: "+ft.type)}}}break;default:be("Unknown Geometry type: "+a.type)}}yn.prototype.normalize=function(){this._isFrozen&&fi(this);var a=this.ix();return this.offset(-a.x,-a.y),new Zt(-a.x,-a.y)},yn.prototype.offset=function(a,y){return this._isFrozen&&fi(this),this.transform(1,0,0,1,a,y),this},yn.prototype.scale=function(a,y){return this._isFrozen&&fi(this),this.transform(a,0,0,y,0,0),this},yn.prototype.rotate=function(a,y,x){this._isFrozen&&fi(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=er.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),er.free(E),this},xt=yn.prototype,xt.transform=function(a,y,x,E,b,z){switch(this.type){case yn.j:case yn.u:case yn.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 yn.o:for(var ot=this.figures.s,st=ot.length,ut=0;ut<st;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 Ct=ft[yt];switch(Ct.type){case Do:case Ya:tt=Ct.endX,rt=Ct.endY,Ct.endX=tt*a+rt*x+b,Ct.endY=tt*y+rt*E+z;break;case ws:tt=Ct.point1X,rt=Ct.point1Y,Ct.point1X=tt*a+rt*x+b,Ct.point1Y=tt*y+rt*E+z,tt=Ct.point2X,rt=Ct.point2Y,Ct.point2X=tt*a+rt*x+b,Ct.point2Y=tt*y+rt*E+z,tt=Ct.endX,rt=Ct.endY,Ct.endX=tt*a+rt*x+b,Ct.endY=tt*y+rt*E+z;break;case Fl:tt=Ct.point1X,rt=Ct.point1Y,Ct.point1X=tt*a+rt*x+b,Ct.point1Y=tt*y+rt*E+z,tt=Ct.endX,rt=Ct.endY,Ct.endX=tt*a+rt*x+b,Ct.endY=tt*y+rt*E+z;break;case Na:tt=Ct.centerX,rt=Ct.centerY,Ct.centerX=tt*a+rt*x+b,Ct.centerY=tt*y+rt*E+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Ct.startAngle+=tt),0>a&&(Ct.startAngle=180-Ct.startAngle,Ct.sweepAngle=-Ct.sweepAngle),0>E&&(Ct.startAngle=-Ct.startAngle,Ct.sweepAngle=-Ct.sweepAngle),Ct.radiusX*=Math.sqrt(a*a+x*x),Ct.radiusY!==void 0&&(Ct.radiusY*=Math.sqrt(y*y+E*E));break;case vl:if(tt=Ct.endX,rt=Ct.endY,Ct.endX=tt*a+rt*x+b,Ct.endY=tt*y+rt*E+z,Ct.radiusX===0||Ct.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Ct.xAxisRotation+=tt),0>a&&(Ct.xAxisRotation=180-Ct.xAxisRotation,Ct.isClockwiseArc=!Ct.isClockwiseArc),0>E&&(Ct.xAxisRotation=-Ct.xAxisRotation,Ct.isClockwiseArc=!Ct.isClockwiseArc),Ct.radiusX*=Math.sqrt(a*a+x*x),Ct.radiusY*=Math.sqrt(y*y+E*E);break;default:be("Unknown Segment type: "+Ct.type)}}}}return this._isInvalidBounds=!0,this},xt.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 yn.j:return pe.Yb(x,E,b,z,y,a.x,a.y);case yn.u:var tt=We.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),We.free(tt),a;case yn.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 yn.o:return hh(this,a,y,!0,!1);default:return!1}};function hh(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,ot,st,ut,ft,mt=a.figures.s,yt=mt.length,Ct=0;Ct<yt;Ct++){var Mt=mt[Ct],Vt=!Mt.isEvenOdd;if(Mt.isFilled){if(E&&Mt.ca(z,y,x))return!0;var Rt=Mt.segments;ot=Mt.startX,st=Mt.startY;for(var _t=ot,te=st,ne=Rt.s,ue=0;ue<=Rt.length;ue++){var Pe=void 0;if(ue!==Rt.length){Pe=ne[ue];var Mn=Pe.type;a=Pe.endX,ft=Pe.endY}else Mn=Do,a=_t,ft=te;switch(Mn){case Ya:if(_t=ju(z,y,tt,y,ot,st,_t,te),isNaN(_t))return!0;rt+=_t,_t=a,te=ft;break;case Do:if(ot=ju(z,y,tt,y,ot,st,a,ft),isNaN(ot))return!0;rt+=ot;break;case ws:ut=pe.Fo(ot,st,Pe.point1X,Pe.point1Y,Pe.point2X,Pe.point2Y,a,ft,tt,y,z,y,.5),rt+=ut;break;case Fl:ut=pe.Fo(ot,st,(ot+2*Pe.point1X)/3,(st+2*Pe.point1Y)/3,(2*Pe.point1X+a)/3,(2*Pe.point1Y+ft)/3,a,ft,tt,y,z,y,.5),rt+=ut;break;case Na:case vl:Mn=Pe.type===Na?il(Pe,Mt):nl(Pe,Mt,ot,st);var ei=Mn.length;if(ei===0){if(ot=ju(z,y,tt,y,ot,st,Pe.type===Na?Pe.centerX:Pe.endX,Pe.type===Na?Pe.centerY:Pe.endY),isNaN(ot))return!0;rt+=ot;break}Pe=null;for(var Kn=0;Kn<ei;Kn++){if(Pe=Mn[Kn],Kn===0){if(ut=ju(z,y,tt,y,ot,st,Pe[0],Pe[1]),isNaN(ut))return!0;rt+=ut}ut=pe.Fo(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4],Pe[5],Pe[6],Pe[7],tt,y,z,y,.5),rt+=ut}Pe!==null&&(a=Pe[6],ft=Pe[7]);break;default:be("Unknown Segment type: "+Pe.type)}ot=a,st=ft}if(Vt){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 ju(a,y,x,E,b,z,tt,rt){if(pe.Yb(b,z,tt,rt,.05,a,y))return NaN;var ot=(a-x)*(z-rt);if(ot===0)return 0;var st=((a*E-y*x)*(b-tt)-(a-x)*(b*rt-z*tt))/ot;if(y=(a*E-y*x)*(z-rt)/ot,st>=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(st<b||st>tt)return 0}else if(st<tt||st>b)return 0;return 0<ot?1:-1}function Wu(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}xt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Zt),this.type===yn.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],st=ot.length;for(a=0;a<st;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},xt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===yn.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 st=rt[a];if(z+st>=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+=st}}return NaN},xt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===yn.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],st=ot.length;for(a=0;a<st;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},xt.xx=function(a){if(this.type===yn.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=Zt.alloc();return pe.qh(y,x,E,b,z,a,rt),a=rt.x,z=rt.y,Zt.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===yn.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 st=Math.min(tt,ot,rt,b);if(st===rt)return E/z;if(st===ot)return(y+a)/z;if(st===b)return(2*y+x-E)/z;if(st===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Zt.alloc(),b=1/0,rt=tt=0,ot=y.length;for(var ut=st=0,ft=0;ft<ot;ft++)for(var mt=y[ft],yt=x[ft],Ct=mt.length,Mt=0;Mt<Ct;Mt+=2){var Vt=mt[Mt],Rt=mt[Mt+1];if(Mt!==0){pe.qh(st,ut,Vt,Rt,a.x,a.y,E);var _t=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);_t<b&&(b=_t,tt=rt,tt+=Math.sqrt((E.x-st)*(E.x-st)+(E.y-ut)*(E.y-ut))),rt+=yt[(Mt-2)/2]}st=Vt,ut=Rt}return Zt.free(E),a=tt/z,0>a?0:1<a?1:a}return 0};function Nd(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===yn.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===yn.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===yn.F){var z=new es;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new kr(Na);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=il(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];pe.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(Mh(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 st=b.segments.s,ut=st.length,ft=0;ft<ut;ft++){var mt=st[ft];switch(mt.type){case Ya:4<=E.length&&(y.push(E),x.push(Mh(E))),E=[],E.push(mt.endX),E.push(mt.endY),tt=mt.endX,z=mt.endY,rt=tt,ot=z;break;case Do:E.push(mt.endX),E.push(mt.endY),tt=mt.endX,z=mt.endY;break;case ws:pe.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 Fl:pe.ep(tt,z,mt.point1X,mt.point1Y,mt.endX,mt.endY,.5,E),tt=mt.endX,z=mt.endY;break;case Na:var yt=il(mt,b),Ct=yt.length;if(Ct===0){E.push(mt.centerX),E.push(mt.centerY),tt=mt.centerX,z=mt.centerY;break}for(var Mt=0;Mt<Ct;Mt++){var Vt=yt[Mt];pe.Qe(tt,z,Vt[2],Vt[3],Vt[4],Vt[5],Vt[6],Vt[7],.5,E),tt=Vt[6],z=Vt[7]}break;case vl:if(yt=nl(mt,b,tt,z),Ct=yt.length,Mt=mt.endX,Vt=mt.endY,Ct===0){E.push(Mt),E.push(Vt),tt=Mt,z=Vt;break}for(Mt=0;Mt<Ct;Mt++)Vt=yt[Mt],pe.Qe(tt,z,Vt[2],Vt[3],Vt[4],Vt[5],Vt[6],Vt[7],.5,E),tt=Vt[6],z=Vt[7];break;default:be("Segment not of valid type: "+mt.type)}mt.isClosed&&(E.push(rt),E.push(ot))}4<=E.length&&(y.push(E),x.push(Mh(E)))}}}function Mh(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(or(x,E,tt,rt))),x=tt,E=rt}return y}xt.add=function(a){return this.ee.add(a),this},xt.pm=function(a,y,x,E,b,z,tt,rt){return this._isFrozen&&fi(this),this.fg=new yi(a,y,b,z).freeze(),this.gg=new yi(x,E,tt,rt).freeze(),this},je.Object.defineProperties(yn.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 Nd(this),this.tk}},flattenedLengths:{get:function(){return Nd(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===yn.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===yn.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&&fi(this,a),this.na=a,a===yn.o?this.ee=new vn:(yn.V===null&&(yn.V=new vn().freeze()),this.ee=yn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&fi(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&fi(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&fi(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&fi(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&fi(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&fi(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&fi(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&fi(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),yn.prototype.setSpots=yn.prototype.pm,yn.prototype.add=yn.prototype.add,yn.prototype.getFractionForPoint=yn.prototype.xx,yn.prototype.getPointAndAngleAlongPath=yn.prototype.Qu,yn.prototype.getAngleAlongPath=yn.prototype.wx,yn.prototype.getPointAlongPath=yn.prototype.Pu,yn.prototype.containsPoint=yn.prototype.ca,yn.prototype.transform=yn.prototype.transform,yn.prototype.rotate=yn.prototype.rotate,yn.prototype.scale=yn.prototype.scale,yn.prototype.offset=yn.prototype.offset,yn.prototype.normalize=yn.prototype.normalize,yn.prototype.computeBoundsWithoutOrigin=yn.prototype.ix,yn.prototype.equalsApprox=yn.prototype.Xa,yn.className="Geometry",yn.j=new Te(yn,"Line",0),yn.u=new Te(yn,"Rectangle",1),yn.F=new Te(yn,"Ellipse",2),yn.o=new Te(yn,"Path",3),yn.V=null,yn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",yn.className="Geometry",yn.stringify=yn.ia,yn.fillPath=yn.nb,yn.parse=yn.parse,yn.Line=yn.j,yn.Rectangle=yn.u,yn.Ellipse=yn.F,yn.Path=yn.o;function es(a,y,x,E,b){lo(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 vn,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},xt=es.prototype,xt.Xa=function(a){if(!(a instanceof es&&pe.B(this.startX,a.startX)&&pe.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},xt.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},xt.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},xt.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},xt.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},xt.add=function(a){return this.pl.add(a),this},xt.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,tt=b,rt=this.segments.s,ot=rt.length,st=0;st<ot;st++){var ut=rt[st];switch(ut.type){case Ya:z=ut.endX,tt=ut.endY,E=ut.endX,b=ut.endY;break;case Do:if(pe.Yb(E,b,ut.endX,ut.endY,x,a,y))return!0;E=ut.endX,b=ut.endY;break;case ws:if(pe.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 Fl:if(pe.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 Na:case vl:var ft=ut.type===Na?il(ut,this):nl(ut,this,E,b),mt=ft.length,yt=ut.type===Na?ut.centerX:ut.endX,Ct=ut.type===Na?ut.centerY:ut.endY;if(mt===0){if(pe.Yb(E,b,yt,Ct,x,a,y))return!0;E=yt,b=Ct;break}for(yt=null,Ct=0;Ct<mt;Ct++)if(yt=ft[Ct],Ct===0&&pe.Yb(E,b,yt[0],yt[1],x,a,y)||pe.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:be("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(E!==z||b!==tt)&&pe.Yb(E,b,z,tt,x,a,y))return!0}return!1},je.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&&fi(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&fi(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&fi(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&fi(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&fi(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&fi(this,a),this.pl=a,this._isInvalidBounds=!0}}}),es.prototype.add=es.prototype.add,es.prototype.equalsApprox=es.prototype.Xa,es.className="PathFigure";function kr(a,y,x,E,b,z,tt,rt){lo(this),a===void 0&&(a=Do),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===vl?(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===Na&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Na&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}kr.prototype.copy=function(){var a=new kr;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},xt=kr.prototype,xt.Xa=function(a){if(!(a instanceof kr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Ya:case Do:return pe.B(this.endX,a.endX)&&pe.B(this.endY,a.endY);case ws:return pe.B(this.endX,a.endX)&&pe.B(this.endY,a.endY)&&pe.B(this.point1X,a.point1X)&&pe.B(this.point1Y,a.point1Y)&&pe.B(this.point2X,a.point2X)&&pe.B(this.point2Y,a.point2Y);case Fl:return pe.B(this.endX,a.endX)&&pe.B(this.endY,a.endY)&&pe.B(this.point1X,a.point1X)&&pe.B(this.point1Y,a.point1Y);case Na:return pe.B(this.startAngle,a.startAngle)&&pe.B(this.sweepAngle,a.sweepAngle)&&pe.B(this.centerX,a.centerX)&&pe.B(this.centerY,a.centerY)&&pe.B(this.radiusX,a.radiusX)&&pe.B(this.radiusY,a.radiusY);case vl:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&pe.B(this.xAxisRotation,a.xAxisRotation)&&pe.B(this.endX,a.endX)&&pe.B(this.endY,a.endY)&&pe.B(this.radiusX,a.radiusX)&&pe.B(this.radiusY,a.radiusY);default:return!1}},xt.qb=function(a){a.classType===kr&&(this.type=a)},xt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Ya:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Do:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ws: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 Fl: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 Na: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 vl: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":"")},xt.freeze=function(){return this._isFrozen=!0,this},xt.ka=function(){return this._isFrozen=!1,this},xt.close=function(){return this.isClosed=!0,this};function il(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=pe.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var tt=er.alloc();tt.reset(),x<E?tt.scale(1,E/x):tt.scale(x/E,1),yn.Ha(z,tt),er.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 nl(a,y,x,E){function b(Mt,Vt,Rt,_t){return(Mt*_t<Vt*Rt?-1:1)*Math.acos((Mt*Rt+Vt*_t)/(Math.sqrt(Mt*Mt+Vt*Vt)*Math.sqrt(Rt*Rt+_t*_t)))}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,st=a.Dc,ut=a.Ec,ft=Math.cos(tt),mt=Math.sin(tt),yt=ft*(x-st)/2+mt*(E-ut)/2;tt=-mt*(x-st)/2+ft*(E-ut)/2;var Ct=yt*yt/(y*y)+tt*tt/(z*z);return 1<Ct&&(y*=Math.sqrt(Ct),z*=Math.sqrt(Ct)),Ct=(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(Ct)&&(Ct=0),rt=Ct*y*tt/z,Ct=Ct*-z*yt/y,isNaN(rt)&&(rt=0),isNaN(Ct)&&(Ct=0),x=(x+st)/2+ft*rt-mt*Ct,E=(E+ut)/2+mt*rt+ft*Ct,ut=b(1,0,(yt-rt)/y,(tt-Ct)/z),ft=(yt-rt)/y,st=(tt-Ct)/z,yt=(-yt-rt)/y,rt=(-tt-Ct)/z,tt=b(ft,st,yt,rt),yt=(ft*yt+st*rt)/(Math.sqrt(ft*ft+st*st)*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=pe.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=er.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(ot,yt),yn.Ha(y,z),er.free(z),a.ae=y,a.ae}je.Object.defineProperties(kr.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&&fi(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&fi(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&fi(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&fi(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&fi(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&fi(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&fi(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&fi(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&fi(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Wi(a,">= zero",kr,"radiusX"),this._isFrozen&&fi(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Wi(a,">= zero",kr,"radiusY"),this._isFrozen&&fi(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&fi(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&&fi(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&&fi(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&&fi(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&&fi(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),kr.prototype.equalsApprox=kr.prototype.Xa;var Ya=new Te(kr,"Move",0),Do=new Te(kr,"Line",1),ws=new Te(kr,"Bezier",2),Fl=new Te(kr,"QuadraticBezier",3),Na=new Te(kr,"Arc",4),vl=new Te(kr,"SvgArc",4);kr.className="PathSegment",kr.Move=Ya,kr.Line=Do,kr.Bezier=ws,kr.QuadraticBezier=Fl,kr.Arc=Na,kr.SvgArc=vl;function Ks(){this.H=null,this.xu=new Zt(0,0).freeze(),this.mt=new Zt(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}Ks.prototype.copy=function(){var a=new Ks;return this.clone(a)},Ks.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},Ks.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},Ks.prototype.So=function(a,y){var x=this.diagram;return x===null||$l(x,a,y),y},Ks.prototype.Bz=function(a,y){var x=this.diagram;return x===null||($l(x,a,y),y.assign(x.Ps(y))),y},je.Object.defineProperties(Ks.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}}}),Ks.prototype.getMultiTouchDocumentPoint=Ks.prototype.Bz,Ks.prototype.getMultiTouchViewPoint=Ks.prototype.So,Ks.className="InputEvent";function dh(){this.H=null,this.xa="",this.ar=this.Lr=null}dh.prototype.copy=function(){var a=new dh;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},dh.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},je.Object.defineProperties(dh.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}}}),dh.className="DiagramEvent";function ia(){this.Fm=Yo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}ia.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},ia.prototype.copy=function(){var a=new ia;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=fn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=fn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=fn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=fn(y)&&typeof y.J=="function"?y.J():y,a},ia.prototype.qb=function(a){a.classType===ia&&(this.change=a)},ia.prototype.toString=function(){var a="";return a=this.change===yl?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===yl?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Jr(this.object)),this.oldValue!==null&&(a+=" old: "+Jr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Jr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},ia.prototype.I=function(a){return a?this.oldValue:this.newValue},ia.prototype.Dz=function(a){return a?this.oldParam:this.newParam},ia.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},ia.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},ia.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},ia.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},je.Object.defineProperties(ia.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===yl&&(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}}}),ia.prototype.redo=ia.prototype.redo,ia.prototype.canRedo=ia.prototype.canRedo,ia.prototype.undo=ia.prototype.undo,ia.prototype.canUndo=ia.prototype.canUndo,ia.prototype.getParam=ia.prototype.Dz,ia.prototype.getValue=ia.prototype.I,ia.prototype.clear=ia.prototype.clear;var yl=new Te(ia,"Transaction",-1),Yo=new Te(ia,"Property",0),ba=new Te(ia,"Insert",1),Ra=new Te(ia,"Remove",2);ia.className="ChangedEvent",ia.Transaction=yl,ia.Property=Yo,ia.Insert=ba,ia.Remove=Ra;function os(){this.o=new vn().freeze(),this.xa="",this.j=!1}os.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},os.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()},os.prototype.canUndo=function(){return this.isComplete},os.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()}},os.prototype.canRedo=function(){return this.isComplete},os.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()}},os.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new ci,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 ci,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()}},je.Object.defineProperties(os.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}}}),os.prototype.optimize=os.prototype.ak,os.prototype.redo=os.prototype.redo,os.prototype.canRedo=os.prototype.canRedo,os.prototype.undo=os.prototype.undo,os.prototype.canUndo=os.prototype.canUndo,os.prototype.clear=os.prototype.clear,os.className="Transaction";function ha(){this.Pt=new sn,this.Jd=!1,this.u=new vn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new vn().freeze(),this.hl=new vn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}ha.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},ha.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},ha.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},xt=ha.prototype,xt.Xw=function(a){this.Pt.add(a)},xt.Rx=function(a){this.Pt.remove(a)},xt.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},xt.eb=function(a){return a===void 0&&(a=""),Gh(this,!0,a)},xt.Kf=function(){return Gh(this,!1,"")};function Gh(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Er("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}xt.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()}},ha.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},ha.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){Er("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},ha.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},ha.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){Er("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},ha.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new ia;for(E.change=yl,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},ha.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new os);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||Er("Change not within a transaction: "+x.toString()))}},ha.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},je.Object.defineProperties(ha.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}}}),ha.prototype.handleChanged=ha.prototype.Tu,ha.prototype.redo=ha.prototype.redo,ha.prototype.undo=ha.prototype.undo,ha.prototype.canUndo=ha.prototype.canUndo,ha.prototype.discardHistoryAfterIndex=ha.prototype.lx,ha.prototype.rollbackTransaction=ha.prototype.Kf,ha.prototype.commitTransaction=ha.prototype.eb,ha.prototype.startTransaction=ha.prototype.Ea,ha.prototype.removeModel=ha.prototype.Rx,ha.prototype.addModel=ha.prototype.Xw,ha.prototype.clear=ha.prototype.clear,ha.className="UndoManager";function Lr(){lo(this),this.H=Ms,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Ks,this.Zr=-1}Lr.prototype.toString=function(){return this.name!==""?this.name+" Tool":zi(this.constructor)},Lr.prototype.updateAdornments=function(){},Lr.prototype.canStart=function(){return this.isEnabled},Lr.prototype.doStart=function(){},Lr.prototype.doActivate=function(){this.isActive=!0},Lr.prototype.doDeactivate=function(){this.isActive=!1},Lr.prototype.doStop=function(){},Lr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Lr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Lr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Lr.prototype.doMouseMove=function(){},Lr.prototype.doMouseUp=function(){this.stopTool()},Lr.prototype.doMouseWheel=function(){},Lr.prototype.canStartMultiTouch=function(){return!0},Lr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Zt.allocAt(NaN,NaN)),E=y.So(1,Zt.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}Zt.free(x),Zt.free(E)},Lr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Zt.allocAt(NaN,NaN)),E=y.So(1,Zt.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 Zt((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}Zt.free(x),Zt.free(E)},Lr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Lr.prototype.doKeyUp=function(){},Lr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Lr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Lr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(ns?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||(ns?y.meta:y.control)||y.shift||a.clearSelection()}},Lr.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,Fc(a,E,x),E.handled};function Fc(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)}}}Lr.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}},Lr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Lr.prototype.doCurrentObjectChanged=function(){},Lr.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===Dd&&!y.shift||b===od&&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===Dd&&y.shift||b===od&&!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)}}},Lr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Lr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=Di(function(){x.doWaitAfter(E)},a)},Lr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Me.clearTimeout(this.Zr),this.Zr=-1},Lr.prototype.doWaitAfter=function(){},Lr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Hr);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Lr.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},je.Object.defineProperties(Lr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof ye&&(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}}}),Lr.prototype.startTransaction=Lr.prototype.Ea,Lr.className="Tool";function Ho(){Lr.call(this),this.name="ToolManager",this.hb=new vn,this.ob=new vn,this.Hb=new vn,this.F=this.V=850,this.o=new $e(2,2).ja(),this.Ha=5e3,this.ia=od,this.u=tc,this.Mp=this.j=null,this.zj=-1}se(Ho,Lr),Ho.prototype.initializeStandardTools=function(){},Ho.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Hr&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Ho.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===ch&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===kh){y.bubbles=!0;return}if(this.gestureBehavior===ch)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===od?this.mouseWheelBehavior=Dd:this.mouseWheelBehavior===Dd&&(this.mouseWheelBehavior=od)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Ho.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===kh){y.bubbles=!0;return}if(this.gestureBehavior===ch)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}}of(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function of(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Ho.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Hr&&(y===a||y.rg(a))||this.hideToolTip()},Ho.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()))},Ho.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)},Ho.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 Hr)||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()},Ho.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Hr){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 Xn&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Me.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Di(function(){b.hideToolTip()},a)}},Ho.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}},Ho.prototype.hideToolTip=function(){this.zj!==-1&&(Me.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Hr?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Xn&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Ho.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()},Ho.prototype.doMouseWheel=function(){this.standardMouseWheel()},Ho.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Ho.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Ho.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},Ho.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},Ho.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)},je.Object.defineProperties(Ho.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 Hr?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}}}),Ho.prototype.replaceStandardTool=Ho.prototype.gb;var od=new Te(Ho,"WheelScroll",0),Dd=new Te(Ho,"WheelZoom",1),$d=new Te(Ho,"WheelNone",2),tc=new Te(Ho,"GestureZoom",3),ch=new Te(Ho,"GestureCancel",4),kh=new Te(Ho,"GestureNone",5);Ho.className="ToolManager",Ho.WheelScroll=od,Ho.WheelZoom=Dd,Ho.WheelNone=$d,Ho.GestureZoom=tc,Ho.GestureCancel=ch,Ho.GestureNone=kh;function $i(){Lr.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 Zt(NaN,NaN),this.Fr=new Zt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new sn().freeze(),this.ia=new at,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Sl;se($i,Lr),$i.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},$i.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},$i.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,(ns?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},$i.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),Ci=null,this.isActive=!0,this.tl.set(a.position),Ht(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&&ro(a),Nc(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ci=this,Ki=this.diagram,this.doSimulatedDragOut()))};function Ht(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof mn?(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 Ur,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}$i.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},$i.prototype.Pd=function(a){return a===void 0?new Id(ts):this.isGridSnapEnabled?new Id(new Zt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Id(a.copy())},$i.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),ae(this),Uh(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Sl.count){for(var y=Sl,x=y.length,E=0;E<x;E++){var b=y.M(E);Ge(b),ke(b),ae(b),b.diagram.ug()}y.clear()}Ge(this),this.tl.h(NaN,NaN),Ki!==null&&(Ki.currentCursor=""),Ci=Ki=null,ke(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Bs(a,!0)},$i.prototype.stopTransaction=function(){var a=this.diagram,y=Lr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function ae(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Pn(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function ce(){var a=Ci;ke(a),hn(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}$i.prototype.doCancel=function(){ke(this),hn(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},$i.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},$i.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function ge(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")):hn(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 ci,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 mn&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,Ht(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,fc(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function ke(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 mn&&(x.value.point=new Zt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Ge(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 Je(a,y,x){var E=a.diagram,b=a.startPoint,z=Zt.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),Zt.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(ro(E),E.hk())}$i.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&Bd(E,a,y,this.dragOptions,x)};function hn(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 mn&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),fc(E,-b.x,-b.y)}y.bd()}}function Tn(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Qn(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=Pn(a,b,E),!a.isActive&&Ci===null)return;var rt=E!==null?E.part:null;if(rt===null||x.handlesDragDropForTopLevelParts&&rt.isTopLevel&&!(rt instanceof Hi)){var ot=x.mouseDragOver;ot!==null&&(ot(b),tt=!0)}if(!a.isActive&&Ci===null||(a.doDragOver(y,E),!a.isActive&&Ci===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)}$i.prototype.findDragOverObject=function(a){var y=this;return ol(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Hr||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},$i.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 Pn(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&&Ci===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=si(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 si(a){var y=a.panel;return y!==null?y:a instanceof pi&&!(a instanceof Hi)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function bn(a,y,x){var E=a.Oe;if(E===null)return null;var b=a.diagram.og(y,E.portGravity,function(st){return E.findValidLinkablePort(st,x)});a=Zt.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($r,a);ot=y.Bf(ot),ot<z&&(tt=rt,z=ot)}}return Zt.free(a),tt}function Qn(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=bn(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,ot=null;x.toNode===null&&(rt=bn(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)):Zr(b,tt,z,ot,rt):Zr(b,null,null,null,null)}}}}$i.prototype.doDragOver=function(){};function jn(a,y){var x=a.diagram;a.dragsLink&&Qn(a,!0),ae(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;gi(a,b,z),z=si(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Ci!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Bn&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Ci!==null){for(a=We.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Bn&&Ti(x,E,a);We.free(a)}}}function gi(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Hi||(x=a.mouseDrop,x!==null&&x(y))}function Ti(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 mn},!0,function(b){return b instanceof mn},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}$i.prototype.doDropOnto=function(){},$i.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()?(ge(this,!1),Nc(a,this.copiedParts),Je(this,this.copiedParts,!1),Uh(a,this.copiedParts)):this.mayMove()?(ke(this),Je(this,this.draggedParts,!0)):this.mayDragOut()?(ge(this,!1),Je(this,this.copiedParts,!1)):ke(this),Tn(this,a.lastInput.documentPoint))}},$i.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?(ke(this),ge(this,!0),Nc(a,this.copiedParts),Je(this,this.copiedParts,!1),Uh(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,ke(this),this.mayMove()&&(Je(this,this.draggedParts,!0),Tn(this,a.lastInput.documentPoint))),this.Ym=!0,jn(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Zi(this),a.Ya(),Uh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},$i.prototype.simulatedMouseMove=function(a,y,x){if(Ci===null)return!1;var E=Ci.diagram;x instanceof ye||(x=null);var b=Ki;return x!==b&&(b!==null&&b!==E&&(b.ug(),Ci.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Ki=x,x!==null&&x!==E&&(ce(),b=x.toolManager.findTool("Dragging"),b!==null&&(Sl.contains(b)||Sl.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)},$i.prototype.simulatedMouseUp=function(a,y,x){if(Ci===null)return!1;var E=Ki,b=Ci.diagram;if(x===null)return Ci.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),Ci.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Ki=x,E=x.toolManager.findTool("Dragging"),E!==null&&(ce(),Sl.contains(E)||Sl.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 Zt),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=Ci,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Zi(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Bn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}$i.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(ns?!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())},$i.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())},$i.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())},$i.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},$i.prototype.Az=function(){return Ci},$i.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ci;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},$i.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Us(a),a.animationManager.Cc(),a=Ci,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},$i.prototype.doSimulatedDragLeave=function(){var a=Ci;a!==null&&a.doSimulatedDragOut(),this.doCancel()},$i.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ci;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;vr(this,y.draggedParts.Lf(),!1,a.firstInput),Je(this,this.copiedParts,!1),Tn(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},$i.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ci;if(y!==null){var x=y.diagram;if(y.Ym=!0,ke(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),vr(this,y.draggedParts.Lf(),!0,a.lastInput),Je(this,this.copiedParts,!1);var E=new sn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),jn(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 vr(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=We.alloc();b=E=1/0;for(var tt=-1/0,rt=-1/0,ot=y.iterator;ot.next();){var st=ot.value;if(st.isVisible()){var ut=st.location;st=ut.x,ut=ut.y,isNaN(st)||isNaN(ut)||(st<E&&(E=st),ut<b&&(b=ut),st>tt&&(tt=st),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,We.free(z),z=a.Fr,tt=new ci,rt=Zt.alloc(),ot=y.iterator;ot.next();)st=ot.value,st instanceof mn&&st.canCopy()&&(ut=x.I(st),ut!==null&&(ut.points=st.points,fc(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)st=y.value,st.Zc()&&st.canCopy()&&(ot=x.I(st),ot!==null&&(st=st.location,rt.h(z.x-(E-st.x),z.y-(b-st.y)),ot.location=rt,ot.Va(),tt.add(ot,a.Pd(rt))));Zt.free(rt),a.copiedParts=tt,Ht(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,fc(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}$i.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},$i.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Zt},je.Object.defineProperties($i.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}}}),$i.prototype.getDraggingSource=$i.prototype.Az;var Ci=null,Ki=null;$i.className="DraggingTool",Sl=new vn,Yn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Ho.prototype.doCancel=function(){Ci!==null&&Ci.doCancel(),Lr.prototype.doCancel.call(this)};function ki(){Lr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new mn,y=new Ji;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Ji,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Bn,y=new Ji,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=eo,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Bn,y=new Ji,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=eo,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 ci,this.Of=this.gj=this.Pf=null}se(ki,Lr),ki.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},ki.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=$e.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,$e.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=$r,z=Zt.alloc(),x.location=y.ga($r,z),Zt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},ki.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=eo,y.fromSpot=ps,y.toSpot=ps),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},ki.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},ki.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Bn){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)}},ki.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Bn))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Bn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},ki.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 Bn){var ot=tt.ga($r,Zt.alloc()),st=x.x-ot.x,ut=x.y-ot.y;Zt.free(ot),ot=st*st+ut*ut,ot<E&&(st=this.validPortsCache.I(tt),st!==null?st&&(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 Bn&&(x.layer===null||x.layer.allowLink))?y:null},ki.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},ki.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},ki.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},ki.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Bn))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Bn))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},ki.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)},ki.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 sn;return E.add(a),gr(this,x,y,E)};function gr(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),gr(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),gr(a,y.labeledLink,x,E))))}ki.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!==Of){if(E===ap){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!Kr(this,a,y,x,!0)}if(E===sp){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!Kr(this,a,y,x,!0)}if(E===ip)return a===y?a=!0:(E=new sn,E.add(y),a=hr(this,E,a,y,x)),!a;if(E===rp)return!Kr(this,a,y,x,!1);if(E===op)return a===y?a=!0:(E=new sn,E.add(y),a=Mo(this,E,a,y,x)),!a}return!0};function Kr(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&&Kr(a,tt,x,E,b)))return!0}return!1}function hr(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&&hr(a,y,tt,E,b)))return!0}return!1}function Mo(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&&Mo(a,y,rt,E,b))return!0}}return!1}je.Object.defineProperties(ki.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}}}),ki.className="LinkingBaseTool";function Vr(){ki.call(this),this.name="Linking",this.V={},this.F=null,this.K=Bo,this.Xd=null}se(Vr,ki),Vr.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},Vr.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 Bn)))return null;var x=this.direction;if(x===Bo||x===ka){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===Bo||x===Go)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Vr.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 Bn&&(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 Bn&&(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)},Vr.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()},Vr.prototype.doStop=function(){ki.prototype.doStop.call(this),this.startObject=null},Vr.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 Bn&&(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)}}},Vr.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof mn)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)},Vr.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},Vr.prototype.doNoLink=function(){},je.Object.defineProperties(Vr.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 Bo=new Te(Vr,"Either",0),ka=new Te(Vr,"ForwardsOnly",0),Go=new Te(Vr,"BackwardsOnly",0);Vr.className="LinkingTool",Vr.Either=Bo,Vr.ForwardsOnly=ka,Vr.BackwardsOnly=Go;function Ur(){ki.call(this),this.name="Relinking";var a=new Ji;a.figure="Diamond",a.desiredSize=ua,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Ji,a.figure="Diamond",a.desiredSize=ua,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new We}se(Ur,ki),Ur.prototype.updateAdornments=function(a){if(a!==null&&a instanceof mn){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)}},Ur.prototype.makeAdornment=function(a,y){var x=new Hr;return x.type=ln.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Ur.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},Ur.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 Hr&&x.adornedPart instanceof mn))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=fr),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=fr),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},Ur.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Fg||x===gc)&&(x=Rl),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}},Ur.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()},Ur.prototype.doStop=function(){ki.prototype.doStop.call(this),this.handle=null},Ur.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 Bn&&(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()}}},Ur.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},Ur.prototype.doNoRelink=function(){};function Zr(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)}je.Object.defineProperties(Ur.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 Hr))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Ur.className="RelinkingTool",Yn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Yn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Mi(){Lr.call(this),this.name="LinkReshaping";var a=new Ji;a.figure="Rectangle",a.desiredSize=wa,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Ji,a.figure="Diamond",a.desiredSize=ua,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Zt,this.Yq=new vn}se(Mi,Lr),Mi.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:no},Mi.prototype.om=function(a,y){a.reshapingBehavior=y},Mi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof mn){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)}},Mi.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new Hr,b.type=ln.Link,x=y.firstPickIndex;var z=y.lastPickIndex,tt=E?1:0;if(y.resegmentable&&y.computeCurve()!==Bu)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 st=y.i(x+1);pe.B(ot.x,st.x)&&pe.B(ot.y,st.y)&&(st=y.i(x-1)),pe.B(ot.x,st.x)?(this.om(rt,Nt),rt.cursor="n-resize"):pe.B(ot.y,st.y)&&(this.om(rt,bt),rt.cursor="w-resize")}else tt===z-1&&E?(ot=y.i(z-1),st=y.i(z),pe.B(ot.x,st.x)&&pe.B(ot.y,st.y)&&(ot=y.i(z+1)),pe.B(ot.x,st.x)?(this.om(rt,Nt),rt.cursor="n-resize"):pe.B(ot.y,st.y)&&(this.om(rt,bt),rt.cursor="w-resize")):tt!==z&&(this.om(rt,Xt),rt.cursor="move");b.add(rt)}b.adornedObject=a}return b},Mi.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Mi.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Mi.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},Mi.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 mn){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}}},Mi.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Mi.prototype.stopTransaction=function(){var a=this.diagram,y=Lr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Mi.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Mi.prototype.getResegmentingPoint=function(){return this.handle.ga($r)},Mi.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Mi.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&&(yr(this,tt,E,b,z,!0)||yr(this,tt,E,b,z,!1))){var rt=y.points.copy();yr(this,tt,E,b,z,!0)?(rt.cd(x-2,new Zt(tt.x,(z.y+tt.y)/2)),rt.cd(x+1,new Zt(z.x,(z.y+tt.y)/2))):(rt.cd(x-2,new Zt((z.x+tt.x)/2,tt.y)),rt.cd(x+1,new Zt((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&&(yr(this,E,b,z,tt,!0)||yr(this,E,b,z,tt,!1))&&(rt=y.points.copy(),yr(this,E,b,z,tt,!0)?(rt.cd(x-1,new Zt(E.x,(E.y+tt.y)/2)),rt.cd(x+2,new Zt(tt.x,(E.y+tt.y)/2))):(rt.cd(x-1,new Zt((E.x+tt.x)/2,E.y)),rt.cd(x+2,new Zt((E.x+tt.x)/2,tt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else tt=Zt.alloc(),pe.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()),Zt.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function yr(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}Mi.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===Nt?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===bt&&(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===Nt?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===bt&&(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);pe.B(z.x,b.x)&&pe.B(b.y,tt.y)?(pe.B(z.x,y.i(E-2).x)&&!pe.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),pe.B(tt.y,y.i(E+2).y)&&!pe.B(tt.x,y.i(E+2).x)?y.m(E+1,tt.x,a.y):y.L(E+1,tt.x,a.y)):pe.B(z.y,b.y)&&pe.B(b.x,tt.x)?(pe.B(z.y,y.i(E-2).y)&&!pe.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),pe.B(tt.x,y.i(E+2).x)&&!pe.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):pe.B(z.x,b.x)&&pe.B(b.x,tt.x)?(pe.B(z.x,y.i(E-2).x)&&!pe.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),pe.B(tt.x,y.i(E+2).x)&&!pe.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):pe.B(z.y,b.y)&&pe.B(b.y,tt.y)&&(pe.B(z.y,y.i(E-2).y)&&!pe.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),pe.B(tt.y,y.i(E+2).y)&&!pe.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($r,Zt.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,Zt.alloc()),y.L(0,E.x,E.y),Zt.free(z),Zt.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($r,Zt.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,Zt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Zt.free(x),Zt.free(a));y.zf()},Mi.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Xt:return a;case Nt:return new Zt(y.i(x).x,a.y);case bt:return new Zt(a.x,y.i(x).y);default:case no:return y.i(x)}},je.Object.defineProperties(Mi.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 Hr))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}}}),Mi.prototype.setReshapingBehavior=Mi.prototype.om,Mi.prototype.getReshapingBehavior=Mi.prototype.Ru;var no=new Te(Mi,"None",0),bt=new Te(Mi,"Horizontal",1),Nt=new Te(Mi,"Vertical",2),Xt=new Te(Mi,"All",3);Mi.className="LinkReshapingTool",Mi.None=no,Mi.Horizontal=bt,Mi.Vertical=Nt,Mi.All=Xt,Yn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ee(){Lr.call(this),this.name="Resizing",this.o=new $e(1,1).freeze(),this.j=new $e(9999,9999).freeze(),this.yg=new $e(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Ji;a.alignmentFocus=$r,a.figure="Rectangle",a.desiredSize=wa,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Zt,this.Dw=new $e,this.Tn=new Zt,this.rt=new $e(0,0),this.qt=new $e(1/0,1/0),this.pt=new $e(1,1)}se(ee,Lr),ee.prototype.updateAdornments=function(a){if(!(a===null||a instanceof mn)){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(),Rc(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},ee.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Hr,y.type=ln.Spot,y.locationSpot=$r;var x=new Il;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,ms)),y.add(this.makeHandle(a,Pd)),y.add(this.makeHandle(a,Ul)),y.add(this.makeHandle(a,Pu)),y.add(this.makeHandle(a,ml)),y.add(this.makeHandle(a,xs)),y.add(this.makeHandle(a,zs)),y.add(this.makeHandle(a,tl))}else if(nh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ee.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ee.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=$r),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 ln)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ee.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},ee.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))},ee.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ee.prototype.stopTransaction=function(){var a=this.diagram,y=Lr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ee.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ee.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,Zt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Zt.free(b)}},ee.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,Zt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Zt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ee.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 Hi){var E=new vn;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new at;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()}},ee.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=$r);var tt=this.adornedObject.naturalBounds,rt=tt.x,ot=tt.y,st=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=Zt.alloc(),pe.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,st-E.width),a.x=Math.min(a.x,st-x.width),a.width=Math.max(st-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=st-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(mt.x,st-E.width),a.x=Math.min(a.x,st-x.width),a.width=Math.max(st-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=st-a.width)):(a.x=Math.max(mt.x,st-E.width),a.x=Math.min(a.x,st-x.width),a.width=st-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*(st-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*(st-rt-a.width))),Zt.free(mt),a},ee.prototype.computeReshape=function(){var a=tn;return this.adornedObject instanceof Ji&&(a=Ev(this.adornedObject)),!(a===oi||this.diagram.lastInput.shift)},ee.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},ee.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},ee.prototype.computeCellSize=function(){var a=new $e(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},je.Object.defineProperties(ee.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 Hr))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 Hr)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}}}),ee.className="ResizingTool",Yn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Ae(){Lr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Zt,this.ue=null;var a=new Ji;a.figure="Ellipse",a.desiredSize=ua,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Zt(NaN,NaN),this.u=0,this.F=50}se(Ae,Lr),Ae.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)}},Ae.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Hr,y.type=ln.Position,y.locationSpot=$r;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(nh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ae.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},Ae.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)},Ae.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($r)},Ae.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)},Ae.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Zt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ae.prototype.stopTransaction=function(){var a=this.diagram,y=Lr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ae.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ae.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Ae.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()},Ae.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()}},Ae.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},je.Object.defineProperties(Ae.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 Hr))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 Hr)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}}}),Ae.className="RotatingTool",Yn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Ue(){Lr.call(this),this.name="ClickSelecting"}se(Ue,Lr),Ue.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Ue.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Ue.className="ClickSelectingTool";function en(){Lr.call(this),this.name="Action",this.pk=null}se(en,Lr),en.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},en.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()},en.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))}},en.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()},en.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())},en.prototype.doStop=function(){this.pk=null},en.className="ActionTool";function kn(){Lr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Zt(0,0)}se(kn,Lr),kn.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)},kn.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},kn.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 pi)x.Zc()&&(nh(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);fn(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Zt.allocAt(a.x,a.y);this.isGridSnapEnabled&&hf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Zt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},je.Object.defineProperties(kn.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}}}),kn.className="ClickCreatingTool";function On(){Lr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new pi;a.layerName="Tool",a.selectable=!1;var y=new Ji;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}se(On,Lr),On.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))},On.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},On.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},On.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=$e.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),$e.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},On.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()},On.prototype.computeBoxBounds=function(){var a=this.diagram;return new We(a.firstInput.documentPoint,a.lastInput.documentPoint)},On.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),ns?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 vn,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)}},je.Object.defineProperties(On.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}}}),On.className="DragSelectingTool";function Ln(){Lr.call(this),this.name="Panning",this.Xt=new Zt,this.xy=new Zt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Me.document,"scroll",a.Kw,!1),a.stopTool()}}se(Ln,Lr),Ln.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())},Ln.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Me.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Ln.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Ln.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Ln.prototype.doMouseMove=function(){this.move()},Ln.prototype.doMouseUp=function(){this.move(),this.stopTool()},Ln.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)}},je.Object.defineProperties(Ln.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Ln.className="PanningTool",Yn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Yn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Yn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Yn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Yn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Xn(){this.F=this.u=this.j=this.o=null}je.Object.defineProperties(Xn.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}}}),Xn.className="HTMLInfo";function ni(a,y,x){this.text=a,this.hx=y,this.visible=x}ni.className="ContextMenuButtonInfo";function wi(){Lr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Zt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}se(wi,Lr);function qn(a){var y=new Xn;y.show=function(b,z,tt){tt.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},Pr=y,a.tu=function(){a.stopTool()},y=Cn("div");var x=Cn("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=Cn("style");Me.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",Vn,!1),E.addEventListener(y,"selectstart",Vn,!1),E.addEventListener(x,"contextmenu",Vn,!1)),y.className="goCXforeground",x.className="goCXbackground",Me.document.body&&(Me.document.body.appendChild(y),Me.document.body.appendChild(x)),Yr=y,sr=x,qi=!0}function Vn(a){return a.preventDefault(),!1}wi.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)},wi.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},wi.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},wi.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof ye||(a instanceof fe?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},wi.prototype.doActivate=function(){},wi.prototype.doMouseDown=function(){if(Lr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Hr){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&hi(this)},wi.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Hr){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}hi(this)};function hi(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof Xn||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Pi(a,!0),a.isActive||a.stopTool())}wi.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Pi(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=Pr,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof fe?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Hr&&!a.currentContextMenu.visible&&a.stopTool()}}wi.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},wi.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Hr){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 Xn&&a.show(y,x,this);this.currentContextMenu=a},wi.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}},wi.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Hr?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Xn&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function ar(a){var y=new vn;return y.add(new ni("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new ni("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new ni("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new ni("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new ni("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new ni("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new ni("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new ni("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new ni("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new ni("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new ni("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new ni("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new ni("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}wi.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=ar(this)),Yr.innerHTML="",sr.addEventListener("pointerdown",this.tu,!1);var y=this,x=Cn("ul");x.className="goCXul",Yr.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=Cn("li"),z.className="goCXli";var tt=Cn("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)}}Yr.style.display="block",sr.style.display="block"},wi.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Pr){Yr.style.display="none",sr.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(sr,"pointerdown",this.tu,!1),this.currentContextMenu=null}},je.Object.defineProperties(wi.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Hr?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return qi===!1&&Pr===null&&Fa&&qn(this),Pr},set:function(a){a===null&&(qi=!0),Pr=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Pr=null,qi=!1,sr=null,Yr=null;wi.className="ContextMenuTool",Yn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function li(){Lr.call(this),this.name="TextEditing",this.Zh=new jo,this.ia=null,this.V=So,this.vj=null,this.qa=oo,this.u=1,this.F=!0,this.o=null,this.j=new Xn,this.kt=null,dr(this,this.j)}se(li,Lr);function dr(a,y){if(Fa){var x=Cn("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(_r)):b==="Tab"?(a.acceptText(Bi),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==oo){var E=a.kt;a.qa===ko&&(a.qa=Ko),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==oo){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 jo&&z instanceof li)if(z.state===rr)x.style.border="3px solid red",x.focus();else{var tt=E.ga($r),rt=b.position,ot=b.scale,st=E.Df()*ot;st<z.minimumEditorScale&&(st=z.minimumEditorScale);var ut=E.naturalBounds.width*st+6,ft=E.naturalBounds.height*st+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*st,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*st+"%",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=st,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)}}}li.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Xo&&Xo!==this&&(Xo.acceptText(Or),Xo&&Xo!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof jo&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===So&&!y.isSelected||this.starting===xr&&2>a.lastInput.clickCount)):!1},li.prototype.doStart=function(){Xo=this,this.textBlock!==null&&this.doActivate()},li.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 jo&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=ko;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new We(this.textBlock.ga(ms),this.textBlock.ga(Ul));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},li.prototype.doCancel=function(){this.stopTool()},li.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},li.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Or)},li.prototype.acceptText=function(a){switch(a){case Or:this.qa===Wr?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===ko||this.qa===rr||this.qa===Ko)&&(this.qa=Fo,Oi(this));break;case ur:case _r:case Bi:(_r!==a||this.textBlock.isMultiline!==!0)&&(this.qa===ko||this.qa===rr||this.qa===Ko)&&(this.qa=Fo,Oi(this))}};function Oi(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=Wr,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=rr,a.doError(b,z))}}li.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)},li.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},li.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=oo,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},li.prototype.doStop=function(){Xo=null},li.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)))},li.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},je.Object.defineProperties(li.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)}}}),li.prototype.measureTemporaryTextBlock=li.prototype.Lx;var ur=new Te(li,"LostFocus",0),Or=new Te(li,"MouseDown",1),Bi=new Te(li,"Tab",2),_r=new Te(li,"Enter",3),Fr=new Te(li,"SingleClick",0),So=new Te(li,"SingleClickSelected",1),xr=new Te(li,"DoubleClick",2),oo=new Te(li,"StateNone",0),ko=new Te(li,"StateActive",1),Ko=new Te(li,"StateEditing",2),Fo=new Te(li,"StateValidating",3),rr=new Te(li,"StateInvalid",4),Wr=new Te(li,"StateValidated",5),Xo=null;li.className="TextEditingTool",li.LostFocus=ur,li.MouseDown=Or,li.Tab=Bi,li.Enter=_r,li.SingleClick=Fr,li.SingleClickSelected=So,li.DoubleClick=xr,li.StateNone=oo,li.StateActive=ko,li.StateEditing=Ko,li.StateValidating=Fo,li.StateInvalid=rr,li.StateValidated=Wr,Yn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function No(a){Po||(Cr(),Po=!0),this.H=Ms,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=ao,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new sn,this.ce=new da,this.ce.Yd=this,this.Ei=new sn,this.pu=new sn,this.Sr=new sn,this.pr=new sn,a&&Object.assign(this,a)}No.prototype.Xe=function(a){this.H=a},No.prototype.canStart=function(){return!0};function ra(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),ss(a.H),a.zb=!0)}function Jo(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===ao?(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===as&&y.vc.clear(),a.Qw=!!(a.Pk===Ta&&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(),Ps(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==Cl&&E!==null&&(delete E.start.scale,delete E.end.scale),Me.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&ro(x),wl(x),a.zb=!1,y.start(),y.bc&&(Da(a),x.Ya(),Ts(y,0),Us(x,!0),Ir(a),x.R("AnimationStarting",a)))}))}}function pa(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function oa(a,y,x,E){a.isTicking||pa(a)||y instanceof mn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}xt=No.prototype,xt.fv=function(a){return this.ce.fv(a)},xt.Xu=function(a){return this.ce.Xu(a)};function La(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 fe&&ot.diagram!==null||ot instanceof ye){rt=!0;break t}}rt=!1}rt?Va(tt,!1):tt.Xk=!0}}b.pu.clear(),b.bc!==!1&&(Da(b),Us(b.H),Ir(b)),Me.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),Me.requestAnimationFrame(function(){x()}))}function ys(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Da(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 Ir(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}xt.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(),Ps(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Ps(y,this.H)},xt.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))},xt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ri(this,a))},xt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Ma(this.ce,y,"position",y.position,y.position),Ri(this,a))};function Tr(a,y,x){!a.zb||y.D(x)||pa(a)||(a.H.pi||(y=x.copy()),Ma(a.ce,a.H,"position",y,x))}function Nr(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ri(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Vi(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],st=y[1],ut=y[2];return y=y[3],rt===0||rt===100?(z=ot,tt=st):(ut===0||ut===100)&&(ot=z,st=tt),180<Math.abs(ot-z)&&(ot>z?z+=360:ot+=360),z=b(x,z,ot-z,E)%360,tt=b(x,tt,st-tt,E),rt=b(x,rt,ut-rt,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function Cr(){function a(x,E,b,z,tt,rt){x.position=new Zt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}var y=new ci;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 Zt(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 Zt(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 Zt(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,st=b.actualBounds;b=st.x+st.width/2-ot.width/2,ot=st.y+st.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 Zt(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 We(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=Vi(E,b,tt,rt,z)}),y.add("stroke",function(x,E,b,z,tt,rt){x.stroke=Vi(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=Vi(E,b,tt,rt,z)}),y.add("areaBackground",function(x,E,b,z,tt,rt){x.areaBackground=Vi(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)}),uo=y}je.Object.defineProperties(No.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&&Wi(a,">= 1",No,"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}}}),No.prototype.stopAnimation=No.prototype.Cc;var uo=null,Po=!1,ao=new Te(No,"Default",1),Ta=new Te(No,"AnimateLocations",2),as=new Te(No,"None",3);No.className="AnimationManager",No.defineAnimationEffect=function(a,y){Po||(Cr(),Po=!0),uo.add(a,y)},No.Default=ao,No.AnimateLocations=Ta,No.None=as;function da(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=Xa,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ts,this.vc=new ci,this.Tt=new ci,this.yl=new sn,this.Ut=new sn,this.dw=oc,a&&Object.assign(this,a)}da.prototype.suspend=function(){this.Xk=!0},da.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Va(this,!0),Da(this.Yd),Us(this.H),Ir(this.Yd),this.H.redraw()};function Ps(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}xt=da.prototype,xt.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 ye?a=x:x instanceof fe&&(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===ao&&this===y.defaultAnimation&&(this.Lp=Ja,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=If),Da(y),this.yl.each(function(E){E.data=null,a.add(E)}),Ir(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,La(y,this),this)},xt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},xt.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof ye?this.H=a:a instanceof fe&&a.diagram!==null&&(this.H=a.diagram)),a instanceof pi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Ma(this,a,y,x,E,b),this};function Ma(a,y,x,E,b,z){var tt=a.vc;if(y instanceof ye&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(zd(E),av(),E=[Tu.j,Tu.u,Tu.o,Tu.F],zd(b),av(),b=[Tu.j,Tu.u,Tu.o,Tu.F]),tt.contains(y)){var rt=tt.I(y),ot=rt.start,st=rt.end;ot[x]===void 0&&(ot[x]=za(E)),st[x]=za(b)}else ot={},st={},ot[x]=za(E),st[x]=za(b),rt=ot.position,y instanceof fe&&rt instanceof Zt&&!rt.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&rt.assign(st.position),rt=new Aa(ot,st,z),tt.add(y,rt);tt=ot[x],tt instanceof Zt&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof pi?rt.Ku.location=za(y.location):z&&(rt.Ku[x]=za(E))}function za(a){return a instanceof Zt||a instanceof $e?a.copy():a}xt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},xt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Va(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),Da(x),Ts(a,b),Us(a.H,!0),Ir(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 Ts(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof fe&&z.diagram===null)){var tt=E.value,rt=b?tt.end:tt.start;tt=b?tt.start:tt.end;var ot=uo,st;for(st in tt)st==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||ot.get(st)===null||ot.get(st)(z,rt[st],tt[st],a.Lp,y,x,a)}}}xt.stop=function(){return this.bc?(this.Ml(!0),this):this},xt.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,Da(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=uo;E.next();){var tt=E.key,rt=E.value,ot=b?rt.end:rt.start,st=b?rt.start:rt.end,ut=rt.Ku,ft;for(ft in st)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]:st[ft],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&ut.location!==void 0&&tt instanceof pi&&(tt.location=ut.location),rt.nv&&tt instanceof pi&&tt.Zb(!1)}if(y.As.clear(),Bs(y,!1),y.Ya(),y.N(),Us(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()}Us(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Ir(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Ps(this,null),x.Ml(this),y.$b())}},xt.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Hi&&(E=y.placeholder),E!==null?(x=E.ga(ms),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Zt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Hi)for(a=a.memberParts;a.next();)E=a.value,E instanceof Bn&&this.Cj(E,y)},xt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Hi&&(x=y.placeholder),x!==null){var E=x.ga(ms);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 Hi)for(a=a.memberParts;a.next();)E=a.value,E instanceof Bn&&this.Aj(E,y)}},xt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},je.Object.defineProperties(da.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Wi(a,">= 1",da,"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:be("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}}}),da.prototype.getTemporaryState=da.prototype.Ez,da.prototype.stop=da.prototype.stop,da.prototype.add=da.prototype.add,da.prototype.addTemporaryPart=da.prototype.Iy;function Xa(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Ja(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}da.className="Animation",da.EaseLinear=function(a,y,x,E){return x*a/E+y},da.EaseInOutQuad=Xa,da.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},da.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},da.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},da.EaseOutExpo=Ja;function Aa(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Aa.className="AnimationState";function Ua(a,y,x){this.xd=null,this.rf=a,this.so=x||Js,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Ar))}Ua.prototype.copy=function(){var a=new Ua(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 Vs(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))}je.Object.defineProperties(Ua.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 Js=new Te(Ua,"Default",1),Ar=new Te(Ua,"Immediate",2),lr=new Te(Ua,"Bundled",3);Ua.className="AnimationTrigger",Ua.Default=Js,Ua.Immediate=Ar,Ua.Bundled=lr;function Sr(a){lo(this),this.H=null,this.Pa=new vn,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)}xt=Sr.prototype,xt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,dl(x)}a.clear(),this.Zq.length=0},xt.Xe=function(a){this.H=a},xt.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 Hi?b++:ot instanceof Bn?E++:ot instanceof mn?z++:ot instanceof Hr?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&&xa(E)&&(rt+=" #"+xa(E)),x instanceof Bn?rt+=" "+Jr(E):x instanceof mn&&(rt+=" "+Jr(x.fromNode)+" "+Jr(x.toNode));return y+" "+this.Pa.count+": "+rt},xt.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=Zt.alloc(),z=this.Pa.s,tt=z.length;tt--;){var rt=z[tt];if((E!==!0||Rc(rt)!==!1)&&rt.isVisible()&&(b.assign(a),ga(b,rt.oe),rt=rt.ic(b,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return Zt.free(b),rt}return Zt.free(b),null},xt.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof vn||E instanceof sn||(E=new sn),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=Zt.alloc(),tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((b!==!0||Rc(ot)!==!1)&&ot.isVisible()){z.assign(a),ga(z,ot.oe);var st=ot;ot.ji(z,y,x,E)&&(y!==null&&(st=y(st)),st===null||x!==null&&!x(st)||E.add(st))}}return Zt.free(z),E},xt.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 vn||b instanceof sn||(b=new sn),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||Rc(ot)!==!1)&&ot.isVisible()){var st=ot;ot.Cf(a,y,x,E,b)&&(y!==null&&(st=y(st)),st===null||x!==null&&!x(st)||b.add(st))}}return b},xt.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 st=rt[ot];if((tt!==!0||Rc(st)!==!1)&&z(st)&&st.isVisible()){var ut=st;st.Cf(a,y,x,E,b)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||b.add(ut))}}return b},xt.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 vn||b instanceof sn)&&(z=b),b=!0),z instanceof vn||z instanceof sn||(z=new sn),this.Uh===!1)return z;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var rt=Zt.alloc(),ot=Zt.alloc(),st=this.Pa.s,ut=st.length;ut--;){var ft=st[ut];if((tt!==!0||Rc(ft)!==!1)&&ft.isVisible()){rt.assign(a),ga(rt,ft.oe),ot.h(a.x+y,a.y),ga(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 Zt.free(rt),Zt.free(ot),z},xt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=Fi();for(var b=Fi(),z=0;z<E;z++){var tt=x[z];if(tt.vw=z,tt instanceof mn){if(tt.fd===!1)continue}else if(tt instanceof Hr&&tt.adornedPart!==null)continue;var rt=tt.actualBounds;tt.isVisible()&&Ch(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],Ov(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++)Ov(b[y]);Ai(a),Ai(b)}}};function Ro(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}xt.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=Ro(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,rt=We.alloc(),ot=0;ot<E;ot++)this.Oj(a,x[ot],y,z,tt,rt,!0);if(We.free(rt),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function Qa(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=Ro(a,y),rt=a.Zq;rt.length=0;for(var ot=x.scale,st=We.alloc(),ut=0;ut<z;ut++){var ft=b[ut];E.contains(ft)&&a.Oj(y,ft,x,rt,ot,st,!1)}We.free(st),y.globalAlpha=tt}}}xt.Oj=function(a,y,x,E,b,z,tt){if(tt&&!Rc(y))a.Hs(y);else{if(E!==null&&y instanceof mn&&(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 fu?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&&(Ia(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Ia(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),Ia(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))}},xt.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Yo,a,this,y,x,E,b)},xt.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&dl(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)),Ss(this,a,y),a},xt.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,dl(y),a};function Ss(a,y,x){if(y=rl(a,y,x),x instanceof Hi&&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&&Ss(a,-1,y)}x.svg!==null&&x.svg.remove()}function rl(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}je.Object.defineProperties(Sr.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===""&&be("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&be("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)&&Wi(a,"0 <= value <= 1",Sr,"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))}}}),Sr.prototype.findObjectsNear=Sr.prototype.og,Sr.prototype.findObjectsIn=Sr.prototype.Cf,Sr.prototype.findObjectsAt=Sr.prototype.ji,Sr.prototype.findObjectAt=Sr.prototype.ic,Sr.className="Layer";function ye(a,y){if(hm||(ul(),hm=!0),lo(this),Ms=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Fa){var x=this,E=function(){x.removeEventListener(Me.document,"DOMContentLoaded",E,!1),x.setRTL()};Me.document.body!==null?this.setRTL():x.addEventListener(Me.document,"DOMContentLoaded",E,!1)}this.ol=null,cg.add("Model",mo);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,Nl(this),this.model=hy(),this.Wg=!0,so(this),this.layout=new la,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 dm,a!==void 0&&(typeof a=="string"||Me.Element&&a instanceof Element?to(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var xl,Ms;function Nl(a){a.Yd=new No,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new vn,a.pj=new ci,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Zt(NaN,NaN).freeze(),a.du=new Zt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Zt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new er,a.zu=new Zt(NaN,NaN).freeze(),a.ut=new We(NaN,NaN,NaN,NaN).freeze(),a.rj=new Qi(0,0,0,0).freeze(),a.sj=oc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Cl,a.zk=vs,a.Fg=Cl,a.pq=vs,a.yt=ms,a.Bt=ms,a.Fc=!0,a.pn=!1,a.De=new sn,a.Eh=new ci,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Qi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Ks,a.bq.diagram=a,a.Qg=new Ks,a.Qg.diagram=a,a.cj=new Ks,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,ev(a),a.ai=new sn,a.Ht=!0,a.uu=ac,a.pw=!1,a.wu=Of,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 ci,a.Xn=new vn,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 Qi(5).freeze(),a.Hw=new sn().freeze(),a.Nt=999999999,a.nw=new sn().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 sn,a.ow=new sn,a.Xh=null,a.aw=new $e(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Zt,bounds:new We,Py:new $e,bA:new $e,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new We(NaN,NaN,NaN,NaN).freeze(),a.wo=new $e(NaN,NaN).freeze(),a.Sp=new We(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new ci;var y=new Bn,x=new jo;x.bind(new qa("text","",Jr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Bn,x=new jo,x.stroke="brown",x.bind(new qa("text","",Jr)),y.add(x),a.Lg.add("Comment",y),y=new Bn,y.selectable=!1,y.avoidable=!1,x=new Ji,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new $e(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new ci,y=new Hi,y.selectionObjectName="GROUPPANEL",y.type=ln.Vertical,x=new jo,x.font="bold 12pt sans-serif",x.bind(new qa("text","",Jr)),y.add(x),x=new ln(ln.Auto),x.name="GROUPPANEL";var E=new Ji;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new Il,E.padding=new Qi(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new ci,y=new mn,x=new Ji,x.isPanelMain=!0,y.add(x),x=new Ji,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new mn,x=new Ji,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Hr,y.type=ln.Auto,x=new Ji,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Il,x.margin=new Qi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Hr,y.type=ln.Link,x=new Ji,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 mo,a.toolManager=new Ho,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new at,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Cs(),a.eq=null,a.fq=xu,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 Zt,a.zy=500,a.wp=new Zt,a.wq=!1}ye.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),df=null,Tc="",Au(this,!1),this.Xn.clear(),Lg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Au(a,y){a.animationManager.Cc(!0),a.Hw=new sn().freeze(),a.nw=new sn().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(),Lg(),a.Og.clear(),Wa=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function Cs(){return null}ye.prototype.reset=function(){this.clear(),this.vb=!0,Nl(this),nu(this),this.Wg=!0,so(this),this.layout=new la,this.Wg=!1,this.model=hy(),this.model.undoManager=new ha,this.vb=this.rn=!1,this.N()},ye.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Me.document.body);var y=Cn("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},ye.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Me.document.body);var y=0;if(Fa){var x=um;y=xl,x===null&&(x=um=Cn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=xl=Cn("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||ns||(y=11)}this.Db=y,this.Gw=!0},ye.prototype.qb=function(a){a.classType===ye&&(this.autoScale=a)},ye.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 to(a,y){if(Fa){if(y!=null||be("Diagram setup requires an argument DIV."),a.Ka!==null&&be("Diagram has already completed setup."),typeof y=="string"?a.Ka=Me.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:be("No DIV or DIV id supplied: "+y),a.Ka===null&&be("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&be("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Me.ResizeObserver){var x=xi(function(){a.$b()},250);a.ol=new Me.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Me.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=Me.go;var b=new eh(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Me.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),sf(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new eh(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,Fa){b=Cn("div");var z=Cn("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=Eo,b.addEventListener("pointerdown",Oo),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(){wl(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=al(a,tt,!0);rt.bubbles=!0;var ot=0,st=0;rt.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(ot=0<tt.deltaX?1:-1),tt.deltaY!==0&&(st=0<tt.deltaY?1:-1),rt.delta=Math.abs(tt.deltaX)>Math.abs(tt.deltaY)?-ot:-st):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(ot=0<tt.wheelDeltaX?-1:1),tt.wheelDeltaY!==0&&(st=0<tt.wheelDeltaY?-1:1),rt.delta=Math.abs(tt.wheelDeltaX)>Math.abs(tt.wheelDeltaY)?-ot:-st):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(rt.delta=0<tt.wheelDelta?1:-1),a.doMouseWheel(),po(rt,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,al(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 st=ot;ot=Qo(a,tt,!0,!1,!0,st),ks(a,tt,ot),ot.targetDiagram=ec(tt,tt.target),ot.targetObject=null,st||ot.clone(a.bq),st=a.uw,rt=rt?25:10,tt.timeStamp-a.tw<a.zy&&!(Math.abs(st.x-tt.screenX)>rt||Math.abs(st.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():po(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=Qo(a,tt,!1,!1,!1,rt[1]!==null);var ot=Me.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 st=a,ut=tt;ot&&ot.H&&(ut=tt,st=ot.H),rt.targetDiagram=st,ks(a,ut,rt),rt.targetObject=null,a.doMouseMove(),po(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=Qo(a,tt,!1,!0,!0,!1);var st=Me.document.elementFromPoint(tt.clientX,tt.clientY)||null;st!==null&&st.shadowRoot!==void 0&&st.shadowRoot!==null&&(st=st.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),st!==null&&st.H instanceof ye&&st.H!==a&&ks(st.H,tt,ot),st===null&&(st=tt.target),ks(a,tt,ot),ot.clickCount=a.yq,ot.targetDiagram=ec(tt,st),ot.targetObject=null,a.doMouseUp(),po(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"+zf[1]+zf[2]+"wI"+ff.slice(1,5)]["b"+Dx.slice(1,y)](E.Z,Rf,y,y),E.Vc(!0),sa(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}ye.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},ye.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function sa(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(Me,"resize",a.Ov,!1)}function ro(a){30<a.Sq&&(a.Yh=1)}function Bs(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),fa&&fa.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}ye.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Me.devicePixelRatio||1},ye.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},ye.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},ye.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},ye.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},ye.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},ye.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},ye.prototype.doFocus=function(){this.focus()},ye.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Me.scrollX||Me.pageXOffset,y=Me.scrollY||Me.pageYOffset;this.ta.focus(),Me.scrollTo(a,y)}},ye.prototype.Oy=function(){this.H.R("GainedFocus")},ye.prototype.Ny=function(){this.H.R("LostFocus")};function wl(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===Cl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function so(a){var y=new Sr;y.name="Background",a.Al(y),y=new Sr,y.name="",a.Al(y),y=new Sr,y.name="Foreground",a.Al(y),y=new Sr,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Sr,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Sr,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Vo(a){var y=new ln(ln.Grid);y.name="GRID";var x=new Ji;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Ji,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Ji,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Ji,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Ji,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Ji,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new pi,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 Eo(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):ic(this.H)}function Oo(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):ic(this.H)}ye.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,st=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,Ct=b.right,Mt=b.bottom;b=this.scale;var Vt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Vt=Vt+a.scrollWidth-a.clientWidth;break;case"reverse":Vt=a.scrollWidth-Vt-a.clientWidth}var Rt=Vt;mt<ot||yt<st?(Vt=Zt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Rt&&(Vt.x=Rt/b+tt,this.ju=Rt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Vt.y=a.scrollTop/b+rt,this.lu=a.scrollTop),this.position=Vt,Zt.free(Vt),this.Ee=this.qr=!1):(Vt=Zt.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<ft&&(this.position=Vt.h(Rt+tt,this.position.y)),ut>Ct&&(this.position=Vt.h(-(y.scrollWidth-this.Aa)+Rt-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rt<E&&(this.position=Vt.h(this.position.x,a.scrollTop+rt)),z>Mt&&(this.position=Vt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Zt.free(Vt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,Ct=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<=Ct&&(x.style.width="1px"),yt>=st&&rt>=E&&z<=Mt&&(x.style.height="1px"))}},ye.prototype.computeBounds=function(a){return a===void 0&&(a=new We),ss(this),Ba(this,a)};function Ba(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 st=tt[ot];st.isInDocumentBounds&&st.isVisible()&&(st=st.actualBounds,st.w()&&(x?(x=!1,y.assign(st)):y.ed(st)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}ye.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(bi(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof mn||(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 mn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new We(NaN,NaN,0,0):x};function Sa(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=Zt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=We.allocAt(0,0,E.width,E.height);var b=Zt.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,We.free(E),Zt.free(b),Zt.free(x)}x=a.yh,y&&a.Fg!==Cl&&(x=a.Fg);var z=x!==Cl?Zl(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()?$r:ot),bu(a,a.documentBounds,b,tt,rt,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,pe.B(z.x,x)&&pe.B(z.y,E)&&pe.B(z.width,b)&&pe.B(z.height,tt)||a.onViewportBoundsChanged(new We(x,E,b,tt),z,y,!1)}}function Zl(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===Fu?(y=Math.min(ot,rt),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Bc?(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}ye.prototype.zoomToFit=function(){var a=this.sj;this.sj=oc,this.scale=Zl(this,Fu),a!==oc&&(Sa(this,!1),bu(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},xt=ye.prototype,xt.BA=function(a,y){y===void 0&&(y=Fu);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===Fu||y===Bc)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===Bc?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 Zt(a.x,a.y)}},xt.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Zt(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))},xt.zz=function(a){if(a instanceof fe){this.eq=a;var y=Zt.alloc();this.fq=this.op(a.ga(ms,y)),Zt.free(y)}else this.eq=null,this.fq=xu};function bu(a,y,x,E,b,z){var tt=Zt.allocAt(a.pa.x,a.pa.y),rt=tt.x,ot=tt.y;if(a.eq!==null){var st=Zt.alloc();st=a.eq.ga(ms,st),rt=st.x-a.fq.x/a.scale,ot=st.y-a.fq.y/a.scale,b=ps,Zt.free(st)}(z||a.scrollMode===oc)&&(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),Tr(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),nu(a),Zt.free(tt)}xt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=ol(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof pi)return a}else if(a=ol(this,a,function(x){return x.part}),a instanceof pi)return a;return null},xt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),ss(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 ol(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),ss(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}xt.lz=function(a,y,x){return y===void 0&&(y=!0),Os(this,a,function(E){return E.part},y?function(E){return E instanceof pi&&E.canSelect()}:null,x)};function Os(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof vn||b instanceof sn||(b=new sn),ss(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}xt.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof vn||E instanceof sn||(E=new sn),ss(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},xt.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),Mu(this,a,function(b){return b instanceof pi&&(!x||b.canSelect())},y,E)},xt.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof vn||b instanceof sn||(b=new sn),ss(this);for(var z=this.Wa.iteratorBackwards;z.next();){var tt=z.value;tt.visible&&tt.Cf(a,y,x,E,b)}return b},xt.Nu=function(a,y,x,E,b,z){var tt=new sn;ss(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 Mu(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 vn||b instanceof sn||(b=new sn),ss(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;tt.visible&&!tt.isTemporary&&tt.Cf(y,z,x,E,b)}return b}xt.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),cu(this,a,y,function(z){return z instanceof pi&&(!E||z.canSelect())},x,b)},xt.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 vn||b instanceof sn)&&(z=b),b=!0),z instanceof vn||z instanceof sn||(z=new sn),ss(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 cu(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 vn||b instanceof sn)&&(z=b),b=!0),z instanceof vn||z instanceof sn||(z=new sn),ss(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}ye.prototype.acceptEvent=function(a){return al(this,a,a instanceof MouseEvent)};function al(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?ks(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),ns&&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=ec(y,y.target),E.targetObject=null,E}function ec(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 Qo(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,ns&&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 po(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}ye.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=al(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(),po(x,a)},ye.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=al(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(),po(x,a)},ye.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=al(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),po(x,a)},ye.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=al(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),po(x,a)},ye.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Zt(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?ga(new Zt(y,a),this.Ab):new Zt(y,a)};function ks(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=Zt.allocAt(tt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),Zt.free(y)):x.documentPoint.h(tt,rt)}function $l(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))}}ye.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function sl(a){a.ld||ss(a),a.Va()}ye.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},xt=ye.prototype,xt.Pz=function(){return this.kg},xt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Us(this),this.hf=!1,this.du=new Zt(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&Di(function(){E.ld=!1,ra(y,"Model"),a(E)},1)},xt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Me.requestAnimationFrame(function(){y.kg&&y.bd()})}},xt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Us(this))};function Pl(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||ic(a)||(y&&ss(a),x&&Sa(a,!1))}function Us(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];us(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||wl(a),Pl(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(js(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),ss(a),z=!1,(!a.hf||a.xh)&&(a.hf?tp(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),tp(a,!1)),z=!0),a.Jk=!1,ss(a),a.ou||sl(a),Pl(a,!0,!1),tt=!1,z?(x=We.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,fh(a)),a.R("LayoutCompleted"),Pl(a,!0,!1),We.free(x)):x.Ok&&x.Qw&&(a.Fg!==Cl?a.scale=Zl(a,a.Fg):a.yh!==Cl?a.scale=Zl(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Sa(a,!0)),z&&tt&&a.eb("Initial Layout"),ss(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function fh(a){if(a.Fg!==Cl)a.scale=Zl(a,a.Fg);else if(a.yh!==Cl)a.scale=Zl(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Sa(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),js(a)}function ss(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 sn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Hi&&E.U&65536&&(E.U=E.U^65536)})}}xt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Hi||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Hi&&x.isVisible()&&Kh(this,x);for(a.reset();a.next();)x=a.value,x instanceof mn&&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 Hr&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Kh(a,y){for(var x=Fi(),E=Fi(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Hi?(Du(z)||Bl(z)||Ic(z))&&Kh(a,z):z instanceof mn?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(Ai(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();Ai(E)}xt.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},xt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&be("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Td(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,Xy(a,rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),this.pb!==1&&(a.globalAlpha=this.pb),Vh(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?gf(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(er.prototype.Cd=er.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Td(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,st=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(-st,-ut),a.setTransform(tt,0,0,tt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Vh(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?gf(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(er.prototype.Cd=er.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=fa&&fa.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 af(a,y,x,E,b,z,tt,rt,ot,st){if(a.Ka!==null){a.ta===null&&be("No canvas specified"),tt===void 0&&(tt=null),rt===void 0&&(rt=null),ot===void 0&&(ot=!1),st===void 0&&(st=!1),Td(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 We(z.x,z.y,E.width/b,E.height/b),Ct=yt.copy();Ct.Co(x),js(a,Ct),ss(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 Vt=er.alloc();Vt.reset(),Vt.translate(x.left,x.top),Vt.scale(b),z.x===0&&z.y===0||Vt.translate(-z.x,-z.y),y.setTransform(Vt.m11,Vt.m12,Vt.m21,Vt.m22,Vt.dx,Vt.dy),y.yc(),y instanceof fu&&Xy(y,Vt.m11,Vt.m12,Vt.m21,Vt.m22,Vt.dx,Vt.dy),er.free(Vt),Vh(a,y),y.globalAlpha=a.pb;var Rt=a.Qj("Grid");if(tt){var _t=new sn,te=tt.iterator;for(te.reset();te.next();){var ne=te.value;ne instanceof pi&&(st||ne.layer!==Rt)&&(ne.Gj(),_t.add(ne))}for(st=0;st<mt;st++)Qa(ft[st],y,a,_t,ot);_t.each(function(Pe){return Pe.Gj()})}else for(_t=0;_t<mt;_t++){var ue=ft[_t];ue===Rt?st&&ue.gc(y,a,!0):ue.gc(y,a,ot)}a.$i=!1,a.Yf&&gf(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(ft,mt,a,a.viewportBounds),js(a),a.ib instanceof fu&&(a.ib.Nj.PA(),a.redraw())}}}xt.Gf=function(a){return this.Rg[a]},xt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},xt.Tx=function(){this.Rg=new _i,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(ns||qs),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Vh(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}xt.Ql=function(a){return this.on[a]},xt.sA=function(a,y){this.on[a]=y},xt.Sx=function(){this.on=new _i,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},xt.set=function(a){return Object.assign(this,a),this},xt.Du=function(a){return this.nm(a)},xt.nm=function(a){return nc(this,a),this};function nc(a,y){var x=a instanceof ln,E=a instanceof ye,b;for(b in y){b===""&&be("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])),fn(z)?tt=b.substr(rt+1):be("Unable to find object named: "+ot+" in "+a.toString()+" when trying to set property: "+b)}}if(tt[0]!=="_"&&!bo(z,tt))if(E&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(E&&tt==="Changed"){a.Pe(y[tt]);continue}else if(E&&bo(a.toolManager,tt))z=a.toolManager;else if(E&&am(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof ai&&tt==="Changed"){a.Pe(y[tt]);continue}else be('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[b],tt[0]==="_"&&z instanceof fe&&z.Vw(tt)}}xt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new ci,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},xt.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")},ye.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!==If&&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=We.alloc(),Yh(this,this.computeBounds(E)),We.free(E)),E=this.ta,E===null||E instanceof Xh)))){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 st=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),gf(this.Yf,this)&&a.clearRect(0,0,ot,st),E=Fi(),a=Fi(),yt=Math.abs(z),mt=Math.abs(y);var Ct=ut===0?0:b-yt;ut=Zt.allocAt(Ct,0),yt=Zt.allocAt(yt+Ct,rt),a.push(new We(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),ga(ut,Mt),ga(yt,Mt),E.push(new We(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y))),Ct=ft===0?0:rt-mt,ut.h(0,Ct),yt.h(b,mt+Ct),a.push(new We(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y))),ga(ut,Mt),ga(yt,Mt),E.push(new We(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y))),gf(this.Yf,this)&&(b=0<z?0:-z,rt=0<y?0:-y,ut.h(b,rt),yt.h(ot+b,st+rt),a.push(new We(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y))),ga(ut,Mt),ga(yt,Mt),E.push(new We(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y)))),Zt.free(ut),Zt.free(yt),Pl(this,!1,!0),this.Ka===null&&be("No div specified"),this.ta===null&&be("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(Td(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,st=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,-st),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),Vh(this,b),b.globalAlpha=this.pb,rt=0;rt<z;rt++)if(tt=y[rt],ot=E,tt.visible&&tt.pb!==0){st=Ro(tt,b),ft=tt.Zq,ft.length=0,ut=this.scale,mt=We.alloc(),yt=tt.Pa.s,Mt=yt.length,Ct=ot.length;for(var Vt=0;Vt<Mt;Vt++){var Rt=yt[Vt],_t=wf(Rt,Rt.actualBounds);t:{for(var te=2/ut,ne=4/ut,ue=0;ue<Ct;ue++){var Pe=ot[ue];if(Pe.width!==0&&Pe.height!==0&&_t.Vu(Pe.x-te,Pe.y-te,Pe.width+ne,Pe.height+ne)){_t=!0;break t}}_t=!1}_t&&tt.Oj(b,Rt,this,ft,ut,mt,!0)}We.free(mt),b.globalAlpha=st}b.restore(),b.Vc(!0),this.Yf&&gf(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Ai(E),Ai(a),this.ld=!1}}else this.bd();x&&(ro(this),this.bd(),Bs(this,!0))}else x?(ro(this),this.bd(),Bs(this,!0)):this.bd()}};function Td(a){a.pn!==!1&&(a.pn=!1,sf(a,a.Aa,a.ya))}function sf(a,y,x){nu(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function ic(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,st=b.clientHeight||E+rt,ut=a.viewportBounds;b=ut.x;var ft=ut.y,mt=ut.width,yt=ut.height;if((ot!==x+tt||st!==E+rt)&&(a.gf=!1,a.Be=!1,rt=tt=0,a.Aa=ot,a.ya=st,z=a.pn=!0,nu(a)),!a.hf||!a.viewportBounds.w())return!0;var Ct=a.ku,Mt=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Vt=a.documentBounds,Rt=0,_t=0,te=0,ne=0,ue=ut.width,Pe=ut.height,Mn=a.rj;a.contentAlignment.sb()?(Vt.width>ue&&(Rt=Mn.left,_t=Mn.right),Vt.height>Pe&&(te=Mn.top,ne=Mn.bottom)):(Rt=Mn.left,_t=Mn.right,te=Mn.top,ne=Mn.bottom);var ei=Vt.width+Rt+_t,Kn=Vt.height+te+ne;Mn=a.scale;var pn=ei>ot/Mn,qe=Kn>st/Mn;if(!(z||a.gf||a.Be||pn||qe))return!0;Rt=Vt.x-Rt,ot=ut.x,_t=Vt.right+_t,st=ut.right+tt,te=Vt.y-te;var ji=ut.y;Vt=Vt.bottom+ne,ut=ut.bottom+rt;var Ni="1px";if(ne="1px",a.scrollMode===oc&&(pn||qe)&&(pn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(pn=1,Rt+1<ot&&(pn=Math.max((ot-Rt)*Mn+a.Aa,pn)),_t>st+1&&(pn=Math.max((_t-st)*Mn+a.Aa,pn)),ue+tt+1<ei&&(pn=Math.max((ei-ue)*Mn+a.Aa,pn)),Ni=pn.toString()+"px"),qe&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(pn=1,te+1<ji&&(pn=Math.max((ji-te)*Mn+a.ya,pn)),Vt>ut+1&&(pn=Math.max((Vt-ut)*Mn+a.ya,pn)),Pe+rt+1<Kn&&(pn=Math.max((Kn-Pe)*Mn+a.ya,pn)),ne=pn.toString()+"px")),pn=Ni!=="1px",qe=ne!=="1px",pn&&qe||!pn&&!qe||(qe&&(st-=a.Db),pn&&(ut-=a.Db),ei<ue+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,Rt+1<ot&&(tt=Math.max((ot-Rt)*Mn+a.Aa,tt)),_t>st+1&&(tt=Math.max((_t-st)*Mn+a.Aa,tt)),ue+1<ei&&(tt=Math.max((ei-ue)*Mn+a.Aa,tt)),Ni=tt.toString()+"px"),pn=Ni!=="1px",tt=a.ya,pn!==a.Be&&(tt=pn?a.ya-a.Db:a.ya+a.Db),Kn<Pe+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,te+1<ji&&(rt=Math.max((ji-te)*Mn+tt,rt)),Vt>ut+1&&(rt=Math.max((Vt-ut)*Mn+tt,rt)),Pe+1<Kn&&(rt=Math.max((Kn-Pe)*Mn+tt,rt)),ne=rt.toString()+"px"),qe=ne!=="1px"),a.qr&&pn===a.Be&&qe===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(pn!==a.Be&&(Ni==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=pn,Mt.style.width=Ni,qe!==a.gf&&(ne==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=Zt.alloc(),qe?(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)),Zt.free(rt))),z&&nu(a),a.gf=qe,Mt.style.height=ne,a.gu=!0,z&&(a.pn=!0),y=Ct.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(ue+1<ei?y=(a.position.x-Rt)*Mn:Rt+1<ot?y=Ct.scrollWidth-Ct.clientWidth:_t>st+1&&(y=a.position.x*Mn)),a.tn)switch(a.bu){case"negative":y=-(Ct.scrollWidth-y-Ct.clientWidth);break;case"reverse":y=Ct.scrollWidth-y-Ct.clientWidth}return Ct.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Pe+1<Kn?Ct.scrollTop=(a.position.y-te)*Mn:te+1<ji?Ct.scrollTop=Ct.scrollHeight-Ct.clientHeight:Vt>ut+1&&(Ct.scrollTop=a.position.y*Mn)),ot=a.Aa,st=a.ya,Ct.style.width=ot+(a.gf?a.Db:0)+"px",Ct.style.height=st+(a.Be?a.Db:0)+"px",x!==ot||E!==st||a.animationManager.zb?(x=We.allocAt(b,ft,mt,yt),a.onViewportBoundsChanged(x,a.viewportBounds,Mn,z),We.free(x),!1):!0}xt=ye.prototype,xt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&be("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&&be('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(ba,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},xt.oi=function(a){this.partManager.oi(a);var y=this;yf(a,function(x){ku(y,x)}),(a instanceof Hr||a instanceof Hi&&a.placeholder!==null)&&a.v(),a.data!==null&&yf(a,function(x){sy(y.partManager,x)}),Bl(a)!==!0&&Ic(a)!==!0||this.De.add(a),RS(a,!0,this),jS(a)?(a.actualBounds.w()&&this.N(wf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(wf(a,a.actualBounds)),this.$b()},xt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&yf(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),jS(a)?(a.actualBounds.w()&&this.N(wf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(wf(a,a.actualBounds)),this.$b()},xt.remove=function(a){lf(this,a,!0)};function lf(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(Ra,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}xt.Is=function(a,y){if(y===void 0&&(y=!1),bi(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 sn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},xt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},ye.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=uf(this)),this.toolManager!==null){var b=new ci;if(a!==null)if(bi(a))for(var z=0;z<a.length;z++)Fh(this,b,a[z],x,E);else for(a=a.iterator;a.next();)Fh(this,b,a.value,x,E);else{for(a=this.parts;a.next();)Fh(this,b,a.value,x,E);for(a=this.nodes;a.next();)Fh(this,b,a.value,x,E);for(a=this.links;a.next();)Fh(this,b,a.value,x,E)}Bd(this,b,y,E,x)}};function Fh(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=uf(a)),x instanceof Bn){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Hi&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)Fh(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)&&Fh(a,y,tt,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)Fh(a,y,x.value,E,b)}else if(x instanceof mn)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Fh(a,y,x.value,E,b);else x instanceof Hr||y.add(x,a.Pd(b,x,x.location))}function Bd(a,y,x,E,b){if(y!==null&&y.count!==0){var z=Zt.alloc(),tt=Zt.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||Nc(a,y);for(var rt=Fi(),ot=Fi(),st=y.iterator,ut=Zt.alloc();st.next();){var ft=st.key,mt=st.value;if(ft.Zc()){var yt=Oa(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 Zt),mt.shifted.assign(ut.re(yt)))}else st.key instanceof mn&&ot.push(st.sa)}for(Zt.free(ut),b=rt.length,st=0;st<b;st++)ft=rt[st],z.assign(ft.info.point),ft.Su.shifted===void 0&&(ft.Su.shifted=new Zt),ft.node.location=z.add(ft.Su.shifted);for(b=Zt.alloc(),st=Zt.alloc(),ft=ot.length,mt=0;mt<ft;mt++){var Ct=ot[mt];if(yt=Ct.key,yt instanceof mn)if(yt.suspendsRouting){yt.Tg=null,ut=yt.fromNode;var Mt=yt.toNode;if(a.draggedLink!==null&&E.dragsLink)if(Mt=Ct.value.point,yt.dragComputation===null)y.add(yt,a.Pd(E,yt,tt)),fc(yt,tt.x-Mt.x,tt.y-Mt.y);else{Ct=Zt.allocAt(0,0),(ut=yt.i(0))&&ut.w()&&Ct.assign(ut);var Vt=ut=Zt.alloc().assign(Ct).add(tt);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Vt=Zt.alloc(),hf(a,yt,ut,Vt,E)),ut.assign(yt.dragComputation(yt,ut,Vt)).re(Ct),y.add(yt,a.Pd(E,yt,ut)),fc(yt,ut.x-Mt.x,ut.y-Mt.y),Zt.free(Ct),Zt.free(ut),Vt!==ut&&Zt.free(Vt)}else ut!==null&&(b.assign(ut.location),Vt=y.I(ut),Vt!==null&&b.re(Vt.point)),Mt!==null&&(st.assign(Mt.location),Vt=y.I(Mt),Vt!==null&&st.re(Vt.point)),ut!==null&&Mt!==null?b.Xa(st)?(ut=Ct.value.point,Mt=z,Mt.assign(b),Mt.re(ut),y.add(yt,a.Pd(E,yt,b)),fc(yt,Mt.x,Mt.y)):(yt.suspendsRouting=!1,yt.bb()):(Ct=Ct.value.point,ut=ut!==null?b:Mt!==null?st:tt,y.add(yt,a.Pd(E,yt,ut)),fc(yt,ut.x-Ct.x,ut.y-Ct.y))}else(yt.fromNode===null||yt.toNode===null)&&(ut=Ct.value.point,y.add(yt,a.Pd(E,yt,tt)),fc(yt,tt.x-ut.x,tt.y-ut.y))}Zt.free(z),Zt.free(tt),Zt.free(b),Zt.free(st),Ai(rt),Ai(ot),x||(ss(a),Uh(a,y))}}ye.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new Zt),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=Zt.alloc(),hf(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,st=ot.x;return isNaN(st)&&(st=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,st)),Math.max(tt,Math.min(x.y,ot))),b!==y&&Zt.free(b),E};function uf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function hf(a,y,x,E,b){if(b===void 0&&(b=uf(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=Zt.allocAt(0,0),z.yi(0,0,a,y,b),pe.No(x.x,x.y,rt+z.x,tt+z.y,a,y,E),Zt.free(z)}}function Nc(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof mn&&(y.suspendsRouting=!0)}function Uh(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof mn&&(x.suspendsRouting=!1,Yv(x)&&x.bb())}a.Mr=!1}}function Oa(a,y,x){return y=y.containingGroup,y!==null&&(a=Oa(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}xt=ye.prototype,xt.Pd=function(a,y,x){if(x===void 0)return new Id(ts);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new Id(new Zt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Id(x.copy())};function ca(a,y,x){if(y.diagram!==null&&y.diagram!==a&&be("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&be("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&be("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&be("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&&be("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}xt.Al=function(a){ca(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(ba,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},xt.Ww=function(a,y){ca(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Ra,"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(ba,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},xt.Cy=function(a,y){ca(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Ra,"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(ba,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},xt.kA=function(a){if(a.diagram!==this&&be("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(Ra,"layers",this,a,null,x,null),this.N(),this.Ya()}}},xt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},xt.Yw=function(a){return this.pf===null&&(this.pf=new vn),this.pf.add(a),this.model.Pe(a),this},xt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},xt.Pe=function(a){return this.zg===null&&(this.zg=new vn),this.zg.add(a),this},xt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},xt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==yl&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},xt.cb=function(a,y,x,E,b,z,tt){z===void 0&&(z=null),tt===void 0&&(tt=null);var rt=new ia;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)},xt.g=function(a,y,x,E,b){this.cb(Yo,a,this,y,x,E,b)},ye.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(aa(b,a.propertyName,a.I(y)),b instanceof fe){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===ba){var tt=a.object,rt=a.newParam,ot=a.newValue;if(tt instanceof ln)if(typeof rt=="number"&&ot instanceof fe){y?tt.pc(rt):tt.Gb(rt,ot);var st=tt.part;st!==null&&st.Wb()}else typeof rt=="number"&&ot instanceof hs&&(ot.isRow?hS(tt,rt,y?void 0:ot):dS(tt,rt,y?void 0:ot));else if(tt instanceof Sr){var ut=a.oldParam===!0;typeof rt=="number"&&ot instanceof pi&&(y?(ot.isSelected=!1,ot.isHighlighted=!1,ot.Wb(),tt.pc(ut?rt:-1,ot,ut)):tt.oi(rt,ot,ut))}else tt instanceof ye?typeof rt=="number"&&ot instanceof Sr&&(y?this.Wa.mb(rt):(ot.Xe(this),this.Wa.Gb(rt,ot))):be("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===Ra){var ft=a.object,mt=a.oldParam,yt=a.oldValue;if(ft instanceof ln)typeof mt=="number"&&yt instanceof fe?y?ft.Gb(mt,yt):ft.pc(mt):typeof mt=="number"&&yt instanceof hs&&(yt.isRow?hS(ft,mt,y?yt:void 0):dS(ft,mt,y?yt:void 0));else if(ft instanceof Sr){var Ct=a.newParam===!0;typeof mt=="number"&&yt instanceof pi&&(y?0>ft.Pa.indexOf(yt)&&ft.oi(mt,yt,Ct):(yt.isSelected=!1,yt.isHighlighted=!1,yt.Wb(),ft.pc(Ct?mt:-1,yt,Ct)))}else ft instanceof ye?typeof mt=="number"&&yt instanceof Sr&&(y?(yt.Xe(this),this.Wa.Gb(mt,yt)):this.Wa.mb(mt)):be("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==yl&&be("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},ye.prototype.Ea=function(a){return this.undoManager.Ea(a)},ye.prototype.eb=function(a){return this.undoManager.eb(a)},ye.prototype.Kf=function(){return this.undoManager.Kf()},ye.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}},ye.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},ye.prototype.rp=function(){this.partManager.rp()};function tu(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,nu(a),a.N(),a.Ee=!0,E.zb&&(pa(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,nu(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,rt=a.zoomPoint.x,ot=a.zoomPoint.y,st=a.contentAlignment;isNaN(rt)&&(st.$c()?st.Hf(Cd)?rt=0:st.Hf(pl)&&(rt=z-1):rt=st.sb()?st.x*(z-1):z/2),isNaN(ot)&&(st.$c()?st.Hf(Hh)?ot=0:st.Hf(Cu)&&(ot=tt-1):ot=st.sb()?st.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=Zt.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+ot/y-ot/x),a.position=z,Zt.free(z),a.Ca=x,nu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Sa(a,!1),E.zb&&(pa(E)||E.ce.add(E.H,"scale",y,a.Ca))}}ye.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!==Cl||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Ho&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),of(b,this)),this.vb||this.invalidateViewport(a,y),js(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 js(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=$e.alloc(),b=1,z=1,tt=x.O.s,rt=tt.length,ot=0;ot<rt;ot++){var st=tt[ot],ut=Math.abs(st.interval);2>ut||(pv(st.figure)?z=z*ut/pe.vx(z,ut):b=b*ut/pe.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=We.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){We.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,We.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Zt.alloc(),pe.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),$e.free(E),x.part.location=y,Zt.free(y)}}ye.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)}},ye.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))},ye.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),bi(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof pi||be("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 pi||be("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},ye.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()}},xt=ye.prototype,xt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},xt.Jz=function(a){a=new sn().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 pi||be("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},xt.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=Zt.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)),Zt.free(z);return}be("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):be("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Zt.free(z)},xt.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)},xt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},xt.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)},xt.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,st=y.m22,ut=y.dx,ft=y.dy,mt=x*tt+E*ot+ut;y=x*rt+E*st+ft;var yt=b*tt+E*ot+ut;return a=b*rt+E*st+ft,E=x*tt+z*ot+ut,x=x*rt+z*st+ft,tt=b*tt+z*ot+ut,b=b*rt+z*st+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 We(z,yt,mt-z,y-yt)},xt.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),ga(a.copy(),this.Ab)};function ll(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Dl(a){return a=cg.get(a),a!==null?new a:new mo}ye.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===yl&&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===yl){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),ss(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Jo(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&&(ll(this),this.As.clear(),ys(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var rt=this;Di(function(){rt.currentTool.standardMouseOver(),rt.Rt=!1},10)}}}finally{this.aa=!0}}}};function ku(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)eu(a,y[E])}function eu(a,y){if(y instanceof Ql){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof sn&&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 Zh(a,y){if(y instanceof Ql){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 sn&&x.Bg.remove(a),Lg(E));break}}}}}ye.prototype.Wd=function(){this.partManager.Wd()},ye.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},ye.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},ye.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},ye.prototype.Vb=function(a){return this.partManager.Vb(a)},ye.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},xt=ye.prototype,xt.Lc=function(a){return this.partManager.Lc(a)},xt.ii=function(a){return this.partManager.ii(a)},xt.Kc=function(a){return this.partManager.Kc(a)},xt.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:Fn(gn(y)))},xt.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:Fn(gn(y)))};function nu(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 Yh(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Sa(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}xt.Va=function(){if(this.Zi){var a=We.alloc();Yh(this,this.computeBounds(a)),We.free(a)}},xt.rz=function(){for(var a=new sn,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},xt.qz=function(){return this.ai.iterator},xt.Uz=function(a){ss(this),a&&Od(this,!0),this.ld?tp(this,!1):(this.Jk=!0,Us(this))};function Od(a,y){for(var x=a.ai.iterator;x.next();)Dc(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function Dc(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)Dc(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function tp(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||ra(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)ep(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),ss(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||Jo(z),a.aa=x}}}function ep(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)ep(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),Kh(a,y),b.isValidLayout=!0):a.xh=!0)}}xt.yz=function(){for(var a=new vn,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 vn;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new ci,E=new ci;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 am(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function lg(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;be("Unknown DiagramEvent name: "+y)}xt.Bj=function(a,y){return a=lg(this,a),a!==null&&a.add(y),this},xt.am=function(a,y){a=lg(this,a),a!==null&&a.remove(y)},xt.R=function(a,y,x){var E=lg(this,a),b=new dh;if(b.diagram=this,a=am(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 ug(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}xt.Yj=function(a,y){return hg(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},ye.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Ba(this,a):a.assign(this.documentBounds)};function hg(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new Fp(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=sm(a,x)),x===null){y=We.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&&dg(a,tt,E,y)}We.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=We.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof Bn&&dg(a,tt,E,y);We.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&r1(b);return b}function sm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?sm(a,y.containingGroup):null}function dg(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(Ng(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(pc,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=pc}else if(y instanceof Hi)for(y=y.memberParts;y.next();)b=y.value,b instanceof Bn&&dg(a,b,x,E)}}function rc(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}ye.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():np(this)};function np(a){a.vk===-1&&(a.vk=Di(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=We.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Yh(a,y),We.free(y),a.Fc=!0,a.bd(),np(a))}},a.vp))}ye.prototype.ug=function(){this.vk!==-1&&(Me.clearTimeout(this.vk),this.vk=-1)},ye.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=We.allocAt(0,0,E.width*b,E.height*b);var z=Zt.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(ts)||(y=new Zt(y.x+z.x/b,y.y+z.y/b)),We.free(E),Zt.free(z),y},xt=ye.prototype,xt.Cs=function(){return null},xt.av=function(){return null},xt.bs=function(a,y){this.pj.add(a,y)},xt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Hi&&(y.$p=null)})};function Bf(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-st>ot?y(x,b,rt):Me.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,st=+new Date;return Me.requestAnimationFrame(function(){E()}),null}xt.Wz=function(a){return Fa?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},xt.Jx=function(a){return a===void 0&&(a={}),Bf(this,this.Xz,a)},xt.Xz=function(a,y,x){var E=lm(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 ff+"data":b=E.getImageData(0,0,x.width,x.height);break;case ff:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&be('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 lm(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&be("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 $e(1/0,1/0):new $e(2e3,2e3));var rt=y.position||null,ot=y.parts||null,st=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,Ct=y.showTemporary;Ct===void 0&&(Ct=!ft),y=y.showGrid,y===void 0&&(y=Ct),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof st=="number"?st=new Qi(st):st instanceof Qi||be("MakeImage padding must be a Margin or a number."),st.left=Math.max(st.left,0),st.right=Math.max(st.right,0),st.top=Math.max(st.top,0),st.bottom=Math.max(st.bottom,0),a.ib.Vc(!0),ft=new eh(null,mt,void 0,!0);var Mt=ft.context;if(!(b||z||ot||rt))return ft.width=a.Aa+Math.ceil(st.left+st.right),ft.height=a.ya+Math.ceil(st.top+st.bottom),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=mt,E.hs=yt,af(a,E.context,st,new $e(ft.width,ft.height),a.Ca,a.pa,ot,ut,Ct,y),E.context):(a.Xm=!1,af(a,Mt,st,new $e(ft.width,ft.height),a.Ca,a.pa,ot,ut,Ct,y),a.Xm=!0,ft.context);var Vt=a.Pp,Rt=a.documentBounds.copy();if(Rt.Fv(a.yb),Ct)for(var _t=a.Wa.s,te=_t.length,ne=0;ne<te;ne++){var ue=_t[ne];if(ue.visible&&ue.isTemporary){ue=ue.Pa.s;for(var Pe=ue.length,Mn=0;Mn<Pe;Mn++){var ei=ue[Mn];ei.isInDocumentBounds&&ei.isVisible()&&(ei=ei.actualBounds,ei.w()&&Rt.ed(ei))}}}if(_t=new Zt(Rt.x,Rt.y),ot!==null){for(te=new We(0,0,0,0),ne=!0,ue=ot.iterator,ue.reset();ue.next();)Pe=ue.value,Pe instanceof pi&&(Mn=Pe.layer,Mn!==null&&!Mn.visible||Mn!==null&&!Ct&&Mn.isTemporary||!Pe.isVisible()||(Pe=Pe.actualBounds,Pe.w()&&(ne?(ne=!1,te.assign(Pe)):te.ed(Pe))));Rt.width=te.width,Rt.height=te.height,_t.x=te.x,_t.y=te.y}return rt!==null&&rt.w()&&(_t=rt,z||(z=Vt)),te=rt=0,st!==null&&(rt=st.left+st.right,te=st.top+st.bottom),ne=ue=0,b!==null&&(ue=b.width,ne=b.height,isFinite(ue)&&(ue=Math.max(0,ue-rt)),isFinite(ne)&&(ne=Math.max(0,ne-te))),b!==null&&z!==null?(z==="NaN"&&(z=Vt),b.w()?(b=ue,Rt=ne):isNaN(ne)?(b=ue,Rt=Rt.height*z):(b=Rt.width*z,Rt=ne)):b!==null?b.w()?(z=Math.min(ue/Rt.width,ne/Rt.height),b=ue,Rt=ne):isNaN(ne)?(z=ue/Rt.width,b=ue,Rt=Rt.height*z):(z=ne/Rt.height,b=Rt.width*z,Rt=ne):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-rt)/Rt.width,(tt.height-te)/Rt.height),z>Vt?(z=Vt,b=Rt.width,Rt=Rt.height):(b=tt.width,Rt=tt.height)):(b=Rt.width*z,Rt=Rt.height*z):(z=Vt,b=Rt.width,Rt=Rt.height),st!==null?(b+=rt,Rt+=te):st=new Qi(0),tt!==null&&(Vt=tt.width,tt=tt.height,isNaN(Vt)&&(Vt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Vt)&&(b=Math.min(b,Vt)),isFinite(tt)&&(Rt=Math.min(Rt,tt))),ft.width=Math.ceil(b),ft.height=Math.ceil(Rt),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=mt,E.hs=yt,af(a,E.context,st,new $e(Math.ceil(b),Math.ceil(Rt)),z,_t,ot,ut,Ct,y),E.context):(a.Xm=!1,af(a,Mt,st,new $e(Math.ceil(b),Math.ceil(Rt)),z,_t,ot,ut,Ct,y),a.Xm=!0,ft.context)}je.Object.defineProperties(ye.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 Xh(this,Me.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 Xh(this,Me.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(Me,"resize",this.Ov,!1),this.removeEventListener(Me,"wheel",this.$j,!0),Ms===this&&(Ms=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),to(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)&&Wi(a,"0 <= value <= 1",ye,"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),Sa(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),Sa(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),Sa(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),Sa(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Wi(a,">= 0",ye,"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&&Wi(a,">= 0",ye,"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 Wi(a,">= 0",ye,"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||ll(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&&be("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Au(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,ra(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=Dl(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(Me,"pointermove",this.dk,!0),this.addEventListener(Me,"pointerdown",this.ui,!0),this.addEventListener(Me,"pointerup",this.fk,!0),this.addEventListener(Me,"pointerout",this.ek,!0),this.addEventListener(Me,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Me,"wheel",this.$j,!0),this.addEventListener(Me,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Me,"pointermove",this.dk,!0),this.removeEventListener(Me,"pointerdown",this.ui,!0),this.removeEventListener(Me,"pointerup",this.fk,!0),this.removeEventListener(Me,"pointerout",this.ek,!0),this.removeEventListener(Me,"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(Me,"wheel",this.$j,!0),this.removeEventListener(Me,"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=Zt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Tr(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?nu(this):(this.vb=!0,a=this.scale,bu(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)}Zt.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=Vo(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Vo(this)),a.type!==ln.Grid&&be("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),js(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),nu(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||be("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 Qi(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===oc&&Sa(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,Sa(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,tu(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&&tu(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!==Cl&&Sa(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()||be("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()||be("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)):Wi(a,"> 0",ye,"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)):Wi(a,"> 0",ye,"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),Sa(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 Qi(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&&be("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();)xp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==ac&&a!==ls&&a!==fg&&be("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 $e(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 Qi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),je.Object.defineProperties(ye,{licenseKey:{get:function(){return lp.jc()},set:function(a){lp.add(a.replace(/\s/g,""))}},version:{get:function(){return cf}}}),ye.prototype.makeImageData=ye.prototype.Jx,ye.prototype.makeImage=ye.prototype.Wz,ye.prototype.cacheGroupExternalLinks=ye.prototype.Fu,ye.prototype.addRenderer=ye.prototype.bs,ye.prototype.makeSVG=ye.prototype.av,ye.prototype.makeSvg=ye.prototype.Cs,ye.prototype.stopAutoScroll=ye.prototype.ug,ye.prototype.doAutoScroll=ye.prototype.gs,ye.prototype.isUnoccupied=ye.prototype.Yj,ye.prototype.raiseDiagramEvent=ye.prototype.R,ye.prototype.removeDiagramListener=ye.prototype.am,ye.prototype.addDiagramListener=ye.prototype.Bj,ye.prototype.findTreeRoots=ye.prototype.yz,ye.prototype.layoutDiagram=ye.prototype.Uz,ye.prototype.findTopLevelGroups=ye.prototype.qz,ye.prototype.findTopLevelNodesAndLinks=ye.prototype.rz,ye.prototype.ensureBounds=ye.prototype.Va,ye.prototype.findLinksByExample=ye.prototype.ls,ye.prototype.findNodesByExample=ye.prototype.ms,ye.prototype.findLinkForData=ye.prototype.Kc,ye.prototype.findNodeForData=ye.prototype.ii,ye.prototype.findPartForData=ye.prototype.Lc,ye.prototype.findLinkForKey=ye.prototype.findLinkForKey,ye.prototype.findNodeForKey=ye.prototype.Vb,ye.prototype.findPartForKey=ye.prototype.findPartForKey,ye.prototype.rebuildParts=ye.prototype.Wd,ye.prototype.transformViewToDoc=ye.prototype.Ps,ye.prototype.transformRectDocToView=ye.prototype.zA,ye.prototype.transformDocToView=ye.prototype.op,ye.prototype.centerRect=ye.prototype.es,ye.prototype.scrollToRect=ye.prototype.tv,ye.prototype.scroll=ye.prototype.scroll,ye.prototype.highlightCollection=ye.prototype.Jz,ye.prototype.highlight=ye.prototype.Iz,ye.prototype.selectCollection=ye.prototype.rA,ye.prototype.select=ye.prototype.select,ye.prototype.updateAllRelationshipsFromData=ye.prototype.rp,ye.prototype.updateAllTargetBindings=ye.prototype.updateAllTargetBindings,ye.prototype.commit=ye.prototype.commit,ye.prototype.rollbackTransaction=ye.prototype.Kf,ye.prototype.commitTransaction=ye.prototype.eb,ye.prototype.startTransaction=ye.prototype.Ea,ye.prototype.raiseChanged=ye.prototype.g,ye.prototype.raiseChangedEvent=ye.prototype.cb,ye.prototype.removeChangedListener=ye.prototype.ik,ye.prototype.addChangedListener=ye.prototype.Pe,ye.prototype.removeModelChangedListener=ye.prototype.mA,ye.prototype.addModelChangedListener=ye.prototype.Yw,ye.prototype.findLayer=ye.prototype.Qj,ye.prototype.removeLayer=ye.prototype.kA,ye.prototype.addLayerAfter=ye.prototype.Cy,ye.prototype.addLayerBefore=ye.prototype.Ww,ye.prototype.addLayer=ye.prototype.Al,ye.prototype.moveParts=ye.prototype.moveParts,ye.prototype.copyParts=ye.prototype.Kj,ye.prototype.removeParts=ye.prototype.Is,ye.prototype.remove=ye.prototype.remove,ye.prototype.add=ye.prototype.add,ye.prototype.clearDelayedGeometries=ye.prototype.bx,ye.prototype.setProperties=ye.prototype.nm,ye.prototype.attach=ye.prototype.Du,ye.prototype.set=ye.prototype.set,ye.prototype.resetInputOptions=ye.prototype.Sx,ye.prototype.setInputOption=ye.prototype.sA,ye.prototype.getInputOption=ye.prototype.Ql,ye.prototype.resetRenderingHints=ye.prototype.Tx,ye.prototype.setRenderingHint=ye.prototype.Xx,ye.prototype.getRenderingHint=ye.prototype.Gf,ye.prototype.maybeUpdate=ye.prototype.bd,ye.prototype.requestUpdate=ye.prototype.$b,ye.prototype.delayInitialization=ye.prototype.Xy,ye.prototype.isUpdateRequested=ye.prototype.Pz,ye.prototype.invalidateDocumentBounds=ye.prototype.Ya,ye.prototype.findObjectsNear=ye.prototype.og,ye.prototype.findPartsNear=ye.prototype.mz,ye.prototype.findObjectsIn=ye.prototype.Cf,ye.prototype.findPartsIn=ye.prototype.ux,ye.prototype.findObjectsAt=ye.prototype.ji,ye.prototype.findPartsAt=ye.prototype.lz,ye.prototype.findObjectAt=ye.prototype.ic,ye.prototype.findPartAt=ye.prototype.Ol,ye.prototype.focusObject=ye.prototype.zz,ye.prototype.alignDocument=ye.prototype.Jy,ye.prototype.zoomToRect=ye.prototype.BA,ye.prototype.zoomToFit=ye.prototype.zoomToFit,ye.prototype.diagramScroll=ye.prototype.kx,ye.prototype.focus=ye.prototype.focus;var cg=new ci,um=null,Fa=Me.document!==void 0,df=null,Tc="",Cl=new Te(ye,"None",0),Fu=new Te(ye,"Uniform",1),Bc=new Te(ye,"UniformToFill",2),Of=new Te(ye,"CycleAll",10),ip=new Te(ye,"CycleNotDirected",11),rp=new Te(ye,"CycleNotDirectedFast",12),op=new Te(ye,"CycleNotUndirected",13),ap=new Te(ye,"CycleDestinationTree",14),sp=new Te(ye,"CycleSourceTree",15),oc=new Te(ye,"DocumentScroll",1),If=new Te(ye,"InfiniteScroll",2),ac=new Te(ye,"TreeParentCollapsed",21),ls=new Te(ye,"AllParentsCollapsed",22),fg=new Te(ye,"AnyParentsCollapsed",23),lp=new vn,cf="2.3.10",ff="image",Rf=null,hm=!1;function ul(){if(Fa){var a=Me.document.createElement("canvas"),y=a.getContext("2d"),x=tr("7ca11abfd022028846");y[x]=tr("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",un.Dx+"4ae6247590da4bb21c324ba3a84e385776",er.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",pe.za],b=1;5>b;b++)y[tr("7ca11abfd7330390")](tr(E[b-1]),10,15*b);for(y[x]=tr("39f046ebb36e4b"),x=1;5>x;x++)y[tr("7ca11abfd7330390")](tr(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(er.prototype.Cd=er.prototype.Eu),Rf=a}}ye.className="Diagram",ye.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Me.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof ye?y.H:null},ye.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},ye.useDOM=function(a){Fa=a?Me.document!==void 0:!1},ye.isUsingDOM=function(){return Fa},ye.None=Cl,ye.Uniform=Fu,ye.UniformToFill=Bc,ye.CycleAll=Of,ye.CycleNotDirected=ip,ye.CycleNotDirectedFast=rp,ye.CycleNotUndirected=op,ye.CycleDestinationTree=ap,ye.CycleSourceTree=sp,ye.DocumentScroll=oc,ye.InfiniteScroll=If,ye.TreeParentCollapsed=ac,ye.AllParentsCollapsed=ls,ye.AnyParentsCollapsed=fg;function dm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function gf(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=Me[tr("76a715b2f73f148a")][tr("72ba13b5")]||"";if(a.Rc=!0,Fa){var E=ye[tr("76a115b6ed251eaf4692")];if(E)for(var b=lp.iterator;b.next()&&(E=b.value,E=tr(E).split(tr("39e9")),!(6>E.length));){var z=tr(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=tr(un[tr("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=Me[tr("74a900bae4370f8b51")][tr("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[tr("73a612b6fb191d")](tr("3aad1ab6e022098b4dc4")),z=tr(E[2]),-1<tt&&(rt=rt[tr("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<tt),!a.Rc))break;for(tt=x[tr("76ad18b4f73e")],rt=x[tr("73a612b6fb191d")](tr("35e7"))+2;rt<tt;rt++)y+=x[rt];if(tt=y[tr("73a612b6fb191d")](z),0>tt&&z!==tr("7da71ca0ad381e90")&&(tt=y[tr("73a612b6fb191d")](tr("76a715b2ef3e149757"))),0>tt&&(tt=y[tr("73a612b6fb191d")](tr("76a715b2ef3e149757"))),0>tt&&(tt=y[tr("73a612b6fb191d")](tr("2bfa41fdb3784bca12"))),0>tt&&(tt=x[tr("73a612b6fb191d")](tr("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[tr("73a612b6fb191d")](tr("35"))||y[tr("73a612b6fb191d")](tr("35"))===-1),!a.Rc||x[tr("73a612b6fb191d")](tr("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[tr("73a612b6fb191d")](z)),!a.Rc)||(tt=Me[tr("76a715b2f73f148a")][tr("69ad17a1e03e")],rt=tt[tr("73a612b6fb191d")](tr("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(tt[tr("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){tt=Me.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[tr("79a417a0f0181a8946")]=E,Me.document[tr("78a712aa")]){Me.document[tr("78a712aa")][tr("7bb806b6ed32388c4a875b")](tt),ot=Me.getComputedStyle(tt).getPropertyValue(tr("78a704b7e62456904c9b12701b6532a8"));var st=Me.getComputedStyle(tt).getPropertyValue(tr("75b817b0ea2202"));if(Me.document[tr("78a712aa")][tr("68ad1bbcf533388c4a875b")](tt),ot){if(tt=Me[tr("77a902b0eb1b1e804a8a")],st==="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(tr("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[tr("76ad18b4f73e")],b=x[tr("73a612b6fb191d")](tr("35e7"))+2;b<ut;b++)y+=x[b];x=y[tr("73a612b6fb191d")](tr("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[tr("73a612b6fb191d")](tr("35")))}}}return 0<a.Rc&&a!==a.wy}dm.className="DiagramHelper";function Id(a){this.j=a===void 0?new Zt:a,this.o=new Zt}je.Object.defineProperties(Id.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 zf="DraggingInfo";Id.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function at(){this.reset()}at.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new $e(NaN,NaN).freeze(),this.gridSnapCellSpot=ms,this.gridSnapOrigin=new Zt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},at.className="DraggingOptions";function ct(a,y){if(typeof a=="string"||Me.Element&&a instanceof Element)var x=ye.call(this,a)||this;else x=ye.call(this)||this,y=a;return dt(x),y&&x.nm(y),x}se(ct,ye);function dt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Ru,a.layout=new Hs}ct.prototype.reset=function(){ye.prototype.reset.call(this),dt(this)},ct.className="Palette";function gt(a,y){if(typeof a=="string"||Me.Element&&a instanceof Element)var x=ye.call(this,a)||this;else x=ye.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 pi;var b=new Ji;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 Qi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Ut,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var tt=z.viewportBounds,rt=E.lastInput.documentPoint;z.position=new Zt(rt.x-tt.width/2,rt.y-tt.height/2)}},x.Pf=function(){E.Ya(),Bt(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&&Bt(E)},x.autoScale=Fu,x.vb=!1,y&&Object.assign(x,y),x}se(gt,ye),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(Td(this),this.ql===null){var x=new eh(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),Et(this)}finally{this.ta=a,this.ib=y}}}ye.prototype.redraw.call(this)},gt.prototype.gc=function(){if(this.Ka===null&&be("No div specified"),this.ta===null&&be("No canvas specified"),!(this.ta instanceof Xh)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Td(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?Et(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 Et(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=We.alloc().assign(a.viewportBounds).ed(y.viewportBounds),js(y,b),We.free(b),ss(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 st=rt.diagram.grid.part;if(!x&&rt.isTemporary)E&&st.layer===rt&&(rt=Ro(rt,b),st.gc(b,ot),b.globalAlpha=rt);else{for(var ut=Ro(rt,b),ft=ot.scale,mt=We.alloc(),yt=rt.Pa.s,Ct=yt.length,Mt=0;Mt<Ct;Mt++){var Vt=yt[Mt];(E||Vt!==st)&&rt.Oj(b,Vt,ot,null,ft,mt,!1)}We.free(mt),b.globalAlpha=ut}}}}}function Bt(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=$e.alloc();b.h(x.width,x.height),E.desiredSize=b,$e.free(b),a=2/a.scale,E instanceof Ji&&(E.strokeWidth=a),y.location=new Zt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}gt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return wo;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(),Bt(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))},je.Object.defineProperties(gt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof gt&&be("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),Bt(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),Bt(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 Ut(){$i.call(this),this.j=null}se(Ut,$i),Ut.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 Zt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Zt(a.x-this.j.x,a.y-this.j.y)),!0)},Ut.prototype.doActivate=function(){this.j=null,$i.prototype.doActivate.call(this)},Ut.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Ut.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 Zt(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new Zt(a.x-this.j.x,a.y-this.j.y)}}},Ut.className="OverviewDraggingTool";function Kt(){lo(this),this.H=Ms,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=wo,this.hb=!0,this.cg=null,this.ob=200}Kt.prototype.toString=function(){return"CommandHandler"},Kt.prototype.Xe=function(a){this.H=a},Kt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=ns?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()},Kt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Kt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Ho&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Kt.prototype.canStopCommand=function(){return!0},Kt.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=""}},Kt.prototype.canSelectAll=function(){return this.diagram.allowSelect},Kt.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 sn,x=a.selection.iterator;x.next();)zc(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=""}},Kt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Kt.prototype.copySelection=function(){var a=this.diagram,y=new sn;for(a=a.selection.iterator;a.next();)zc(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Kt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Kt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Kt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Kt.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)df=null,Tc="";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 vn,x.addAll(z),df=x,Tc=y.model.dataFormat}}y.R("ClipboardChanged",x)},Kt.prototype.pasteFromClipboard=function(){var a=new sn,y=df;if(y===null)return a;var x=this.diagram;if(Tc!==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},Kt.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);Bd(y,z,new Zt(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=""}},Kt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||df===null||df.count===0||Tc!==a.model.dataFormat)},Kt.prototype.undo=function(){this.diagram.undoManager.undo()},Kt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Kt.prototype.redo=function(){this.diagram.undoManager.redo()},Kt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Kt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Cl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Kt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Cl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Kt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Cl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Kt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Cl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Kt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Kt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Kt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;ra(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=wo):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Jo(y)},Kt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Kt.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;ra(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=oe(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 Bn&&ot.isTreeExpanded&&(!(ot instanceof Hi)||ot.isSubGraphExpanded);)ot=b.pop();0<b.length?(ot instanceof pi&&y.tv(ot.actualBounds),ot instanceof Bn&&!ot.isTreeExpanded&&(ot.isTreeExpanded=!0),ot instanceof Hi&&!ot.isSubGraphExpanded&&(ot.isSubGraphExpanded=!0)):(ot instanceof pi&&y.es(ot.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){Di(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 oe(a,y,x){if(y.isVisible())return x;if(y instanceof Hr)oe(a,y.adornedPart,x);else if(y instanceof mn){var E=y.fromNode;E!==null&&oe(a,E,x),y=y.toNode,y!==null&&oe(a,y,x)}else y instanceof Bn&&(E=y.labeledLink,E!==null&&oe(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),oe(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),oe(a,y,x));return x}Kt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof pi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Kt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),ra(y.animationManager,"Collapse Tree");var x=new vn;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 Bn&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Kt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Bn&&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 Bn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Kt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),ra(y.animationManager,"Expand Tree");var x=new vn;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 Bn&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Kt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Bn)||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 Bn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Kt.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 vn,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&b.add(tt)}for(var rt=new vn,ot=b.iterator;ot.next();){var st=ot.value;z=!1;for(var ut=b.iterator;ut.next();)if(st.Td(ut.value)){z=!0;break}z||rt.add(st)}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 Hi)nh(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var yt=y.copyNodeData(x);fn(yt)&&(y.xf(yt),E=a.ii(yt))}if(E!==null){ft!==null&&this.isValidMember(ft,E)&&(E.containingGroup=ft);for(var Ct=rt.iterator;Ct.next();){var Mt=Ct.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=""}}}},Kt.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 Be(a){var y=Fi();for(a=a.iterator;a.next();){var x=a.value;x instanceof mn||y.push(x)}a=new sn,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 Ai(y),a}Kt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof mn)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},Kt.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 vn;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Hi&&z.canUngroup()&&E.add(z)}var tt=new vn;if(0<E.count){y.clearSelection(!0);for(var rt=E.iterator;rt.next();){var ot=rt.value;ot.expandSubGraph();var st=ot.containingGroup,ut=st!==null&&st.data!==null?x.wa(st.data):void 0;tt.addAll(ot.memberParts);for(var ft=tt.iterator;ft.next();){var mt=ft.value;if(mt.isSelected=!0,!(mt instanceof mn)){var yt=mt.data;yt!==null?x.mp(yt,ut):mt.containingGroup=st}}y.remove(ot)}}y.R("SelectionUngrouped",E,tt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Kt.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 Hi))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Hi&&y.canUngroup())return!0;return!1},Kt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Be(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},Kt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),ra(y.animationManager,"Collapse SubGraph");var x=new vn;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 Hi&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Kt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Hi&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Hi&&y.isSubGraphExpanded)return!0;return!1},Kt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),ra(y.animationManager,"Expand SubGraph");var x=new vn;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 Hi&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Kt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Hi&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Hi&&!y.isSubGraphExpanded)return!0;return!1},Kt.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 jo&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Kt.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 jo))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 jo&&x.editable}),a!==null))return!0;return!1},Kt.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 fe?b=a.ga($r):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new Zt(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,Pi(x,!1,a)}},Kt.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)},Kt.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 ci,a===null)return E;for(var z=a.iterator;z.next();)Fh(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 mn&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},je.Object.defineProperties(Kt.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||be("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}}}),Kt.className="CommandHandler",Cs=function(){return new Kt};function fe(){lo(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Zt(NaN,NaN).freeze(),this.jd=_s,this.Ab=new er,this.wh=new er,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Ml,this.uc=new We(NaN,NaN,NaN,NaN).freeze(),this.Ib=new We(NaN,NaN,NaN,NaN).freeze(),this.dc=new We(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=vs,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 on,tn,oi,ui,Ei,Gi,wr,ir,Rr,xo;fe.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=Mr(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},fe.prototype.Vw=function(a){var y=this.Dh;if(bi(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},fe.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},fe.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},fe.prototype.copy=function(){return this.clone()},xt=fe.prototype,xt.qb=function(a){a.classType===mn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:be("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===fe&&(this.stretch=a)},xt.toString=function(){return zi(this.constructor)+"#"+xa(this)},xt.th=function(){this.A!==null&&(this.A.nc=!0)};function nr(a){a.A===null?a.A=new Wf:a.A.nc&&(a.A=a.A.copy())}xt.Xc=function(){if(this.ba===null){var a=new up;a.Xi=ps,a.yj=ps,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},xt.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&&Zs(this)&&qo(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 ci),tt=z.undoManager.transactionLevel===0,a.startCondition===Ar?tt=!0:a.startCondition===lr&&(tt=!1),tt?(z=new da,Vs(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()):(ra(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof ln&&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 ln&&yf(rt,function(ot){ot.data!==null&&ot.l&16777216&&ot.La(y)})};function qo(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=A1(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))}}xt.ks=function(a){return this.bindingId===a?this:null},xt.g=function(a,y,x){this.cb(Yo,a,this,y,x)},xt.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 er);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function Es(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}xt.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?Ha(a.x,a.y,0,0,0,E.height)<=y||Ha(a.x,a.y,0,E.height,E.width,E.height)<=y||Ha(a.x,a.y,E.width,E.height,E.width,0)<=y||Ha(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},xt.se=function(){return!0},xt.ca=function(a){var y=Zt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Zt.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=cs(x.x-tt*ot,x.y-tt*ot,x.width+z*ot,x.height+z*ot,y.x,y.y),Zt.free(y),a}return b=!1,(this instanceof Hr||this instanceof Ji?cs(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)),Zt.free(y),b},xt.gh=function(a){var y=this.naturalBounds;return cs(0,0,y.width,y.height,a.x,a.y)},xt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=We.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=Zt.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)))),Zt.free(b),We.free(y),E},xt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=Zt.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)))),Zt.free(b),E},xt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=Zt.allocAt(0,0),b=Zt.allocAt(0,x.height),z=Zt.allocAt(x.width,x.height),tt=Zt.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=We.allocAt(0,0,x.width,x.height);var ot=Zt.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)))),Zt.free(ot),We.free(x),!rt&&(pe.us(a,E,b)||pe.us(a,b,z)||pe.us(a,z,tt)||pe.us(a,tt,E))&&(rt=!0)}return Zt.free(E),Zt.free(b),Zt.free(z),Zt.free(tt),rt},xt.ga=function(a,y){if(y===void 0&&(y=new Zt),a instanceof yi){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},xt.mi=function(a){a===void 0&&(a=new We);var y=this.naturalBounds,x=this.oe,E=Zt.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),Pa(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),Pa(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),Pa(a,E.x,E.y,0,0),Zt.free(E),a},xt.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},xt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},xt.qs=function(a,y){return y===void 0&&(y=new Zt),y.assign(a),this.oe.Cd(y),y},xt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},xt.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,st=-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,pe.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*rt+y*st+ft,a=a*ot+y*ut+mt,y=x*rt+E*st+ft,x=x*ot+E*ut+mt,b.h(0,0),E=this.naturalBounds,x=pe.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},fe.prototype.measure=function(a,y,x,E){if(Du(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 ln;switch(Xl(this,!0)){case tn:tt=b=0,rt&&(y=a=1/0);break;case on:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case ui:isFinite(a)&&a>x&&(b=a),tt=0,rt&&(y=1/0);break;case Ei: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()||be("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),us(this,!1)}},fe.prototype.Wl=function(){},fe.prototype.Dd=function(){return!1},fe.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=We.alloc();z.assign(this.Ib),this.Ib.ka(),Bl(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&&uc(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 jo&&(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()||be("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),ad(this,!1),We.free(z)},xt=fe.prototype,xt.eh=function(){};function El(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=Xl(a,!0),x===E&&z===b&&(y=tn),y){case tn:(x>E||z>b)&&(us(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case on:us(a,!0),a.measure(E,b,0,0);break;case ui:us(a,!0),a.measure(E,z,0,0);break;case Ei:us(a,!0),a.measure(x,b,0,0)}}}xt.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(),is(a,y)||(x.oh(),this.Pn(x)))},xt.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof Bn&&KS(a,this))},xt.gc=function(a,y){if(!Hu(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 ln&&uc(this),tt=this.Ib;if(z){var rt=this.Ib,ot=this.dc,st=this.areaBackground,ut=this.Ma;st===null&&ut===null||a.yc(),st!==null&&(Ia(this,a,st,!0,!0,ot,rt),st instanceof ho&&st.type===Vu?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(st)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),ut!==null&&(Ia(this,a,ut,!0,!1,ot,rt),ut instanceof ho&&ut.type===Vu?(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&&Ws(this),st=this.part,ot=!1;var ft=0;st&&y.Gf("drawShadows")&&(ot=st.isShadowed)&&(ut=st.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 Ct=mt.m11,Mt=mt.m21,Vt=mt.dx,Rt=mt.m12,_t=mt.m22,te=mt.dy,ne,ue=ne=0;mt=ne*Ct+ue*Mt+Vt;var Pe=ne*Rt+ue*_t+te;ne=yt.width+ft,ue=0;var Mn=ne*Ct+ue*Mt+Vt;ne=ne*Rt+ue*_t+te,ue=Math.min(mt,Mn);var ei=Math.min(Pe,ne),Kn=Math.max(mt+0,Mn)-ue,pn=Math.max(Pe+0,ne)-ei;mt=ue,Pe=ei,ne=yt.width+ft,ue=yt.height+ft,Mn=ne*Ct+ue*Mt+Vt,ne=ne*Rt+ue*_t+te,ue=Math.min(mt,Mn),ei=Math.min(Pe,ne),Kn=Math.max(mt+Kn,Mn)-ue,pn=Math.max(Pe+pn,ne)-ei,mt=ue,Pe=ei,ne=0,ue=yt.height+ft,Mn=ne*Ct+ue*Mt+Vt,ne=ne*Rt+ue*_t+te,ue=Math.min(mt,Mn),ei=Math.min(Pe,ne),Kn=Math.max(mt+Kn,Mn)-ue,pn=Math.max(Pe+pn,ne)-ei,mt=ue,Pe=ei,ft=y.viewportBounds,yt=ft.x,Ct=ft.y,mt=!(mt>ft.width+yt||yt>Kn+mt||Pe>ft.height+Ct||Ct>pn+Pe)}if(mt){if(mt=(this.l&256)!==0,a.clipInsteadOfFill&&(mt=!1),this instanceof jo&&(a.font=this.font),mt){if(Pe=rt.se()?rt.naturalBounds:rt.actualBounds,Kn=Math.max(tt.x,Pe.x),pn=Math.max(tt.y,Pe.y),ft=Math.min(tt.right,Pe.right)-Kn,yt=Math.min(tt.bottom,Pe.bottom)-pn,Ct=this.tb,Ct!==null&&(Kn=Ct.x,pn=Ct.y,ft=Ct.width,yt=Ct.height),Kn>tt.width+tt.x||tt.x>Pe.width+Pe.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Kn,pn,ft,yt),a.clip()}if(ut){if(!st.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}ot&&(Pe=st.shadowOffset,a.Ev(Pe.x*y.scale*this.scale*y.Mb,Pe.y*y.scale*this.scale*y.Mb,st.shadowBlur),Rd(a),a.shadowColor=st.shadowColor)}ot&&this.shadowVisible===!0?Rd(a):ot&&this.shadowVisible===!1&&sd(a),st=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Nu(this,a,st,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),ot&&Is(this,rt)&&this.shadowVisible===null&&sd(a),this.Ma!==null&&(a.yc(),iu(this,a,st,tt)),ot&&(this.Ma!==null||this.areaBackground!==null||Is(this,rt))?(gh(this,!0),this.shadowVisible===null&&sd(a)):gh(this,!1),this.hh(a,y),ot&&this.l&512&&Rd(a),ut&&ot&&sd(a),mt&&(a.restore(),a.Vc(this instanceof ln)),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 Is(a,y){return y===null?!1:(uc(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ln.Auto||y.type===ln.Spot)&&y.Pb()!==a)}xt.Dv=function(){};function Nu(a,y,x,E){Ia(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof ho&&a.areaBackground.type===Vu?(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 iu(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,rt=x.width+b,ot=x.height+b;Ia(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof ho&&a.Ma.type===Vu?(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 hl(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===ln.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 Hu(a,y,x){if(!(y instanceof fu))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&&hl(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),Rd(y),y.shadowColor=a.shadowColor}a instanceof jo&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof ln;var rt=a instanceof ln?uc(a):!1;a.l&4096&&Ws(a);var ot=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&rt?(hp(y,1,0,0,1,0,0),a.svg=y.ad):z?(hp(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),a.svg=y.ad):hp(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var st=tt.copy().Vj();y.rb.ha=[st.m11,st.m12,st.m21,st.m22,st.dx,st.dy],Nu(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]),iu(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],iu(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&&Rd(y),rt&&a.shadowVisible===!0?Rd(y):rt&&a.shadowVisible===!1&&sd(y),b=a.panel,rt&&Is(a,b)&&a.shadowVisible===null&&sd(y),y.Il&&(st=x.computePixelRatio(),st="drop-shadow("+y.shadowOffsetX/st+"px "+y.shadowOffsetY/st+"px "+y.shadowBlur/st/2+"px "+y.shadowColor+")",a.background!==null&&tt.Ma.setAttributeNS(null,"filter",st),a.areaBackground!==null&&tt.gd.setAttributeNS(null,"filter",st)),rt&&(a.Ma!==null||a.areaBackground!==null||Is(a,b))?(gh(a,!0),a.shadowVisible===null&&sd(y)):gh(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,st=a.svg,!z&&st!==null&&rt!==st&&st.parentNode===a.panel.svg?(a.svg.replaceWith(rt),a.svg=rt,rt!==null&&a.$o(y,E,ot,rt),Yl(y,st),!0):(a.svg=rt,tt!==null&&rt===null&&(fm(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&&Rd(y),a.Dd()&&sd(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&&hl(a,E,rt),tt!==null&&tt(a,rt)),!0)}xt.$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"+fl++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:tt,height:x}),this instanceof ln&&(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"),Yl(a,E)};function Yl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function dl(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=gn(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()}}xt.hh=function(){},xt.lv=function(){this.Uc=!0},xt.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 ln?uc(this):!1;if(!(this instanceof ln&&b))if(this instanceof Ql){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&Jy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Qy(a)):y.setAttributeNS(null,"transform",Qy(a))}else if(!x||this instanceof ln)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof Ji){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],Nu(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&&gm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(gm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof ln))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),iu(this,a,this.naturalBounds,this.actualBounds),y.Ma?(gm(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&&gm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},xt.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 Ia(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===lc)E?y.fillStyle=x.color:y.strokeStyle=x.color;else{var st=a.kq();if(rt=z.width,ot=z.height,b?(rt=tt.width,ot=tt.height):E||(rt+=st,ot+=st),(z=y instanceof vf)&&x.xe&&(x.type===xg||x.yk===rt&&x.ft===ot))var ut=x.xe;else{var ft=0,mt=0,yt=0,Ct=0,Mt=0,Vt=0;if(Vt=Mt=0,b?(Mt=tt.x,Vt=tt.y):E||(Mt-=st/2,Vt-=st/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,Ct=x.end.y*ot+x.end.offsetY,ft+=Mt,yt+=Mt,mt+=Vt,Ct+=Vt,x.type===jd)ut=y.createLinearGradient(ft,mt,yt,Ct);else if(x.type===Vu)Vt=isNaN(x.endRadius)?Math.max(rt,ot)/2:x.endRadius,isNaN(x.startRadius)?(Mt=0,Vt=Math.max(rt,ot)/2):Mt=x.startRadius,ut=y.createRadialGradient(ft,mt,Mt,yt,Ct,Vt);else if(x.type===xg)try{ut=y.createPattern(x.pattern,"repeat")}catch(_t){ut=null}if(x.type!==xg&&(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===xg&&x.yk!==-1)){x.yk=-1;var Rt=a.diagram;Rt!==null&&x.yk===-1&&Di(function(){Rt.redraw()},600)}}E?y.fillStyle=ut:y.strokeStyle=ut}}}xt.rg=function(a){if(a instanceof ln)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},xt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},xt.If=function(){for(var a=this instanceof ln?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Ws(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){th(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)}th(a,!1),Gu(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Gu(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,Gu(a,!1)))}xt.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Zt.alloc();z.yi(y,x,E,b,$r),a.rotate(this.Kb,z.x,z.y),Zt.free(z)}},xt.v=function(a){if(!Du(this)){a===void 0&&(a=!1),us(this,!0),ad(this,!0);var y=this.panel;y===null||a||y.v()}},xt.Uj=function(){Du(this)||(us(this,!0),ad(this,!0))};function Tl(a){if(!Bl(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Bn&&a.Bd(),y.$b())),ad(a,!0)}}xt.Uk=function(){!(this.l&2048)&&(th(this,!0),Gu(this,!0))},xt.Wu=function(){Gu(this,!0)},xt.N=function(){var a=this.part;a!==null&&a.N()};function Xl(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===ln.Table?Nh(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===ln.Auto&&E.Pb()===a?Rs(a,on,y):x===Gi?E!==null?E.type===ln.Spot&&E.Pb()===a?Rs(a,on,y):(x=E.defaultStretch,x===Gi?Rs(a,tn,y):Rs(a,x,y)):Rs(a,tn,y):Rs(a,x,y)}function Nh(a,y,x,E){var b=a.stretch;if(b!==Gi)return Rs(a,b,E);var z=b=null;switch(y.stretch){case Ei:z=!0;break;case on:z=!0}switch(x.stretch){case ui:b=!0;break;case on:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===ui||y===on),z===null&&(z=y===Ei||y===on),b===!0&&z===!0?Rs(a,on,E):b===!0?Rs(a,ui,E):z===!0?Rs(a,Ei,E):Rs(a,tn,E)}function Rs(a,y,x){if(x)return y;if(y===tn||(x=a.desiredSize,x.w()))return tn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===ui)return tn;if(y===on)return Ei}else{if(y===Ei)return tn;if(y===on)return ui}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Ei)return tn;if(y===on)return ui}else{if(y===ui)return tn;if(y===on)return Ei}return y}function gh(a,y){a.l=y?a.l|512:a.l&-513}function Zs(a){return(a.l&1024)!==0}function jf(a,y){a.l=y?a.l|1024:a.l&-1025}function th(a,y){a.l=y?a.l|2048:a.l&-2049}function Gu(a,y){a.l=y?a.l|4096:a.l&-4097}function Du(a){return(a.l&8192)!==0}function us(a,y){a.l=y?a.l|8192:a.l&-8193}function Bl(a){return(a.l&16384)!==0}function ad(a,y){a.l=y?a.l|16384:a.l&-16385}xt.Gj=function(){this.svg=null},xt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},xt.Av=function(){},xt.zv=function(a){return this.pa=a,Tl(this),!0},xt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},xt.kq=function(){return 0};function pf(a){var y=a.part;if(y instanceof Bn&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||KS(y,a)}}function Yy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof ln?a instanceof Bn?a.Bd():a.qm(a,function(x){pf(x)}):pf(a))}xt.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new qa(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&cS(a)&&be("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new vn),this.localBindings.add(b),this},xt.set=function(a){return Object.assign(this,a),this},xt.Du=function(a){return nv(this,a),this},xt.apply=function(a){return a(this),this},xt.nm=function(a){return nc(this,a),this},xt.pz=function(){return this.ih()},xt.ih=function(){for(var a=this instanceof ln?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},xt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new ci),this.animationTriggers.add(a.propertyName,a),this};function Ku(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=gg.I(a);typeof z=="function"?(x=Mr(arguments),E=z(x),fn(E)||be('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Me.go[a]}if(E===null&&(b!=null&&b.constructor||be("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 ye&&1<x.length){z=E;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(to(z,tt),b++)}for(;b<x.length;b++)z=x[b],z===void 0?be("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 jo)a.text=y;else if(a instanceof Ji)a.figure=y;else if(a instanceof Ql)a.source=y;else if(a instanceof ln)y=ph.I(y),y!==null&&(a.type=y);else if(a instanceof ho){var x=cr(ho,y);x!==null?a.type=x:be("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof yn?(y=cr(yn,y),y!==null&&(a.type=y)):a instanceof kr&&(y=cr(kr,y),y!==null&&(a.type=y));else if(y instanceof fe)a instanceof ln||be("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof hs){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 hs?Fm(E,y):be("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Te)typeof a.qb=="function"&&a.qb(y);else if(y instanceof fs)a.type=y;else if(y instanceof qa)a instanceof fe||a instanceof hs?a.bind(y):be("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Ua)a instanceof fe?a.Jv(y):be("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof es)a instanceof yn&&a.type===yn.o?a.figures.add(y):be("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof kr)a instanceof es?a.segments.add(y):be("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof la)a instanceof ye||a instanceof Hi?a.layout=y:be("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 ho){x=new _i;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);nc(a,x)}else if(a instanceof hs){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&be("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)&&be("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new _i;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);nc(a,b)}else nc(a,y);else be('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function sc(a,y){gg.add(a,y)}function cm(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}je.Object.defineProperties(fe.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Wf),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 Wf),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 Wf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(nr(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&&(nr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Rl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Oc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Rl&&(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 Oc),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 Oc),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:ts},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Oc),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Gi},set:function(a){var y=this.stretch;y!==a&&(nr(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&&(nr(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)&&Wi(a,"0 <= value <= 1",fe,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(wf(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(wf(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(),Yy(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&&Gf(a,"GraphObject.areaBackground"),a instanceof ho&&a.freeze(),nr(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&&Gf(a,"GraphObject.background"),a instanceof ho&&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 pi)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 Zt(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&&be("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,Yy(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 Ji&&this.qc(),this.g("desiredSize",E,a),Zs(this)&&(a=this.part,a!==null&&(qo(this,a,"width"),qo(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 $e(a,this.jd.height).freeze(),this.v(),this instanceof Ji&&this.qc(),this.g("desiredSize",y,a),Zs(this)&&(a=this.part,a!==null&&qo(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 $e(this.jd.width,a).freeze(),this.v(),this instanceof Ji&&this.qc(),this.g("desiredSize",y,a),Zs(this)&&(a=this.part,a!==null&&qo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:fr},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(),nr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ds},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(),nr(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 Qi(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&&Ws(this),this.Ab}},oe:{get:function(){return this.l&4096&&Ws(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(nr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:tn},set:function(a){this.reshapingBehavior!==a&&(nr(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()&&be("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Tl(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&&Wi(a,">= 0",fe,"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&&Wi(a,">= 1",fe,"columnSpan"),nr(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&&Wi(a,">= 0",fe,"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&&Wi(a,">= 1",fe,"rowSpan"),nr(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&&(nr(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 Bn||be("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Gv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,ZS(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:ps},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),pf(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Wi(a,">= 0",fe,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),pf(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),pf(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&&Wi(a,">= 0",fe,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ps},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),pf(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Wi(a,">= 0",fe,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),pf(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),pf(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&&Wi(a,">= 0",fe,"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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(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&&(nr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),fe.prototype.trigger=fe.prototype.Jv,fe.prototype.findBindingPanel=fe.prototype.ih,fe.prototype.findTemplateBinder=fe.prototype.pz,fe.prototype.setProperties=fe.prototype.nm,fe.prototype.apply=fe.prototype.apply,fe.prototype.attach=fe.prototype.Du,fe.prototype.set=fe.prototype.set,fe.prototype.isEnabledObject=fe.prototype.If,fe.prototype.isVisibleObject=fe.prototype.Ed,fe.prototype.isContainedBy=fe.prototype.rg,fe.prototype.getNearestIntersectionPoint=fe.prototype.rs,fe.prototype.getLocalPoint=fe.prototype.qs,fe.prototype.getDocumentScale=fe.prototype.Df,fe.prototype.getDocumentAngle=fe.prototype.li,fe.prototype.getDocumentBounds=fe.prototype.mi,fe.prototype.getDocumentPoint=fe.prototype.ga,fe.prototype.intersectsRect=fe.prototype.Yc,fe.prototype.containedInRect=fe.prototype.fh,fe.prototype.containsRect=fe.prototype.Re,fe.prototype.containsPoint=fe.prototype.ca,fe.prototype.raiseChanged=fe.prototype.g,fe.prototype.raiseChangedEvent=fe.prototype.cb,fe.prototype.addCopyProperty=fe.prototype.Vw;var gg=null;fe.className="GraphObject",gg=new ci,sc("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=Ku(ln,ln.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof ln){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"},Ku(Ji,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new yi(0,0,2.76142374915397,2.761423749153969),spot2:new yi(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 ln&&(x=E.fb("ButtonBorder"),x instanceof Ji)){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 ln&&(x=E.fb("ButtonBorder"),x instanceof Ji&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof ln&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Ji){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 ln&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Ji){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 ln&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Ji){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 ln&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Ji))){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}),sc("TreeExpanderButton",function(){var a=Ku("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Ku(Ji,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ua},new qa("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new qa("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Hr&&(x=x.adornedPart),x instanceof Bn){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}),sc("SubGraphExpanderButton",function(){var a=Ku("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Ku(Ji,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ua},new qa("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 Hr&&(x=x.adornedPart),x instanceof Hi){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}),sc("ToolTip",function(){return Ku(Hr,ln.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Zt(0,3),shadowBlur:5},Ku(Ji,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new yi(0,0,4,6),spot2:new yi(1,1,-4,-4)}))}),sc("ContextMenu",function(){return Ku(Hr,ln.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Zt(0,3),shadowBlur:5},new qa("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),sc("ContextMenuButton",function(){var a=Ku("Button");a.stretch=ui;var y=a.fb("ButtonBorder");return y instanceof Ji&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new yi(0,0,2,3),y.spot2=new yi(1,1,-2,-2)),a}),sc("PanelExpanderButton",function(a){var y=cm(a,"COLLAPSIBLE"),x=Ku("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},Ku(Ji,{name:"ButtonIcon",strokeWidth:2},new qa("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Ji&&(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}),sc("CheckBoxButton",function(a){var y=cm(a);return a=Ku("Button",{desiredSize:new $e(14,14)},Ku(Ji,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:on,geometryStretch:oi,visible:!1},y!==""?new qa("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof ln){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}),sc("CheckBox",function(a){a=cm(a),a=Ku("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Qi(0,1,0,0)});var y=Ku(ln,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Qi(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}),fe.None=tn=new Te(fe,"None",0),fe.Default=Gi=new Te(fe,"Default",0),fe.Vertical=Ei=new Te(fe,"Vertical",4),fe.Horizontal=ui=new Te(fe,"Horizontal",5),fe.Fill=on=new Te(fe,"Fill",3),fe.Uniform=oi=new Te(fe,"Uniform",1),fe.UniformToFill=wr=new Te(fe,"UniformToFill",2),fe.FlipVertical=ir=new Te(fe,"FlipVertical",1),fe.FlipHorizontal=Rr=new Te(fe,"FlipHorizontal",2),fe.FlipBoth=xo=new Te(fe,"FlipBoth",3),fe.make=Ku,fe.getBuilders=function(){var a=new ci,y;for(y in gg)if(y!==y.toLowerCase()){var x=gg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},fe.defineBuilder=sc,fe.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=gg.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof fe))return y&&E.set(y),E;be('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},fe.takeBuilderArgument=cm;function Wf(){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=fr,this.o=Ds,this.hg=Gi,this.ob=this.Bi=1,this.Pf=tn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Wf.prototype.copy=function(){var a=new Wf;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 Oc(){this.u=-1/0,this.o=0,this.F=ts,this.rr=Rl,this.j=this.V="None"}Oc.prototype.copy=function(){var a=new Oc;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},Oc.className="LinkElementSettings";function up(){this.yj=this.Xi=vs,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}up.prototype.copy=function(){var a=new up;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},up.className="LinkSettings";function mf(){this.ha=[1,0,0,1,0,0]}mf.prototype.copy=function(){var a=new mf;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},mf.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},mf.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},mf.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)}},mf.className="STransform";function Hf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Hf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Hf.className="SGradient";function Xh(a,y,x){this.ownerDocument=a=y===void 0?Me.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 fu(this,x)}Xh.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},Xh.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),fn(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},Xh.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Xh.prototype.focus=function(){this.Oa.focus()},Xh.prototype.mx=function(){this.ownerDocument=null},je.Object.defineProperties(Xh.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}}}),Xh.className="SVGSurface";function fu(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 mf,this.j=fm(this),this.Nj=fm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=fl++,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 Xy(a,y,x,E,b,z,tt){a.Nj===void 0?hp(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}xt=fu.prototype,xt.arc=function(a,y,x,E,b,z,tt,rt){var ot=2*Math.PI,st=ot-1e-6,ut=x*Math.cos(E),ft=x*Math.sin(E),mt=a+ut,yt=y+ft,Ct=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>st?(this.path.push(["A",x,x,0,1,Ct,a-ut,y-ft]),this.path.push(["A",x,x,0,1,Ct,mt,yt])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),Ct,a+x*Math.cos(b),y+x*Math.sin(b)])},xt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},xt.Se=function(a){this.addPath(this.path,this.rb,a||0)},xt.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},xt.clearRect=function(){},xt.clip=function(){this.Yl.clipPath=!0},xt.closePath=function(){this.path.push(["z"])},xt.createLinearGradient=function(a,y,x,E){var b=new Hf("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},xt.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"+fl++,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(ff,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},xt.createRadialGradient=function(a,y,x,E,b,z){var tt=new Hf("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Jy(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)}xt.drawImage=function(a,y,x,E,b,z,tt,rt,ot){var st="";a instanceof HTMLCanvasElement&&(st=a.toDataURL()),a instanceof HTMLImageElement&&(st=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,Jy(this,y,x,E,b,z||0,tt||0,rt,ot),z={x:0,y:0,width:ut||E,height:a||b,href:st},pe.$(E,rt)&&pe.$(b,ot)?st.toLowerCase().indexOf(".svg")===-1&&st.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')"),pg(this,ff,z,this.rb),this.addElement(ff,z)},xt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},xt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},xt.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},pg(this,"fill",a,this.rb),this.addElement("rect",a)},xt.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},pg(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},xt.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},pg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},xt.lineTo=function(a,y){this.path.push(["L",a,y])},xt.moveTo=function(a,y){this.path.push(["M",a,y])},xt.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},xt.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"])},xt.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},xt.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())},xt.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||hp(this,a,y,x,E,b,z)};function Qy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}xt.scale=function(a,y){this.rb.scale(a,y)},xt.translate=function(a,y){this.rb.translate(a,y)},xt.transform=function(){},xt.yc=function(){},xt.stroke=function(){_y(this,this.Yl)},xt.jk=function(){this.clipInsteadOfFill||this.stroke()},xt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},xt.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 pg(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 Hf?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 Hf?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 Hf)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"+fl++,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(st,ut){return st.offset>ut.offset?1:-1}),b=0;b<y;b++)x.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(x),"url(#"+E+")"}xt.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=Mr(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,pg(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 hp(a,y,x,E,b,z,tt){var rt=new mf;rt.ha=[y,x,E,b,z,tt],y={},pg(a,"g",y,rt),rt=a.addElement("g",y),a.nh.push(rt)}function fm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}xt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function sd(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Rd(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}xt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},xt.fs=function(){this.Ct=!1},xt.Vc=function(){},xt.Wx=function(){},fu.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},fu.prototype.getImageData=function(){return null},fu.prototype.measureText=function(){return null};function gm(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()))}fu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},fu.className="SVGContext",ye.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Xh(this,Me.document));var y=new Xh(this,Me.document,!0);a===void 0&&(a=new _i);var x=this;return Bf(this,function(E,b){return E=lm(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},ye.prototype.makeSvg=ye.prototype.Cs,ye.prototype.av=function(a){return this.Cs(a)},ye.prototype.makeSVG=ye.prototype.av;function eh(a,y,x,E){this.ownerDocument=y=y===void 0?Me.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new vf(y,x,E),y.H=a}eh.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},eh.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},eh.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},eh.prototype.focus=function(){this.Oa.focus()},eh.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},je.Object.defineProperties(eh.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}}}),eh.className="CanvasSurface";function vf(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&be("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 er,this.isTemporary=!!x}xt=vf.prototype,xt.Wx=function(a){this.Z.imageSmoothingEnabled=a},xt.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},xt.beginPath=function(){this.Z.beginPath()},xt.Se=function(){},xt.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},xt.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},xt.clip=function(){this.Z.clip()},xt.closePath=function(){this.Z.closePath()},xt.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},xt.createPattern=function(a,y){return this.Z.createPattern(a,y)},xt.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},xt.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)},xt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},xt.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},xt.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},xt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},xt.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},xt.lineTo=function(a,y){this.Z.lineTo(a,y)},xt.measureText=function(a){return this.Z.measureText(a)},xt.moveTo=function(a,y){this.Z.moveTo(a,y)},xt.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},xt.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},xt.restore=function(){this.Z.restore()},xt.save=function(){this.yc(),this.Z.save()},vf.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},xt=vf.prototype,xt.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},xt.scale=function(a,y){this.El.scale(a,y)},xt.translate=function(a,y){this.El.translate(a,y)},xt.stroke=function(){this.Z.stroke()},xt.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}},xt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},xt.ng=function(a,y){if(a instanceof ho&&a.type===Vu){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)},xt.jk=function(){this.Hm||this.stroke()},xt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},xt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},xt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},xt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},xt.Hs=function(){},je.Object.defineProperties(vf.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([]);vf.className="CanvasSurfaceContext";function dp(){this.F=this.o=this.u=this.j=0}dp.className="ColorNumbers";function ho(a,y){Sg||(hv(),Sg=!0),lo(this),this._isFrozen=!1,a===void 0?(this.na=lc,this.xk="black"):typeof a=="string"?(this.na=lc,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===jd?(this.Qd=Ru,this.Lk=kl):this.Lk=a===Vu?this.Qd=$r:this.Qd=ps,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}ho.prototype.copy=function(){var a=new ho;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},xt=ho.prototype,xt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},xt.ka=function(){return Object.isFrozen(this)&&be("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},xt.qb=function(a){a.classType===ho&&(this.type=a)},xt.toString=function(){var a="Brush(";if(this.type===lc)a+=this.color;else if(a=this.type===jd?a+"Linear ":this.type===Vu?a+"Radial ":this.type===xg?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+")"},xt.addColorStop=function(a,y){return this._isFrozen&&fi(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Wi(a,"0 <= loc <= 1",ho,"addColorStop:loc"),this.we===null&&(this.we=new ci),this.we.add(a,y),this.na===lc&&(this.type=jd),this.xe=null,this},xt.Vz=function(a,y){if(this._isFrozen&&fi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?wg:y,this.type===lc)zd(this.color),this.color=vg(a,y);else if((this.type===jd||this.type===Vu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)zd(x.value),this.addColorStop(x.key,vg(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?wg:x,zd(a),vg(y,x)}xt.Wy=function(a,y){if(this._isFrozen&&fi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?wg:y,this.type===lc)zd(this.color),this.color=vg(-a,y);else if((this.type===jd||this.type===Vu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)zd(x.value),this.addColorStop(x.key,vg(-a,y));return this};function tS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?wg:x,zd(a),vg(-y,x)}function ov(a,y,x){zd(a),a=Uo.j;var E=Uo.u,b=Uo.o,z=Uo.F;return zd(y),x===void 0&&(x=.5),"rgba("+Math.round((Uo.j-a)*x+a)+", "+Math.round((Uo.u-E)*x+E)+", "+Math.round((Uo.o-b)*x+b)+", "+Math.round((Uo.F-z)*x+z)+")"}xt.Gx=function(){if(this.type===lc)return mg(this.color);if((this.type===jd||this.type===Vu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Vu)return mg(a.first().value);if(a.get(.5)!==null)return mg(a.get(.5));if(a.count===2)return a=a.Fa(),mg(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,mg(ov(a.get(x),a.get(E),1-z/b))}return!1};function mg(a){return a?a instanceof ho?a.Gx():(zd(a),128>(299*Uo.j+587*Uo.u+114*Uo.o)/1e3):!1}function vg(a,y){switch(y){case wg:y=100*sv(Uo.j);var x=100*sv(Uo.u),E=100*sv(Uo.o);return Ol.j=.4124564*y+.3575761*x+.1804375*E,Ol.u=.2126729*y+.7151522*x+.072175*E,Ol.o=.0193339*y+.119192*x+.9503041*E,Ol.F=Uo.F,y=uv(Ol.j/yg[0]),x=uv(Ol.u/yg[1]),E=uv(Ol.o/yg[2]),ld.j=116*x-16,ld.u=500*(y-x),ld.o=200*(x-E),ld.F=Ol.F,ld.j=Math.min(100,Math.max(0,ld.j+100*a)),a=(ld.j+16)/116,y=a-ld.o/200,Ol.j=yg[0]*eS(ld.u/500+a),Ol.u=yg[1]*(ld.j>pm*dv?Math.pow(a,3):ld.j/pm),Ol.o=yg[2]*eS(y),Ol.F=ld.F,a=-.969266*Ol.j+1.8760108*Ol.u+.041556*Ol.o,y=.0556434*Ol.j+-.2040259*Ol.u+1.0572252*Ol.o,Uo.j=255*lv((3.2404542*Ol.j+-1.5371385*Ol.u+-.4985314*Ol.o)/100),Uo.u=255*lv(a/100),Uo.o=255*lv(y/100),Uo.F=Ol.F,Uo.j=Math.round(Uo.j),255<Uo.j?Uo.j=255:0>Uo.j&&(Uo.j=0),Uo.u=Math.round(Uo.u),255<Uo.u?Uo.u=255:0>Uo.u&&(Uo.u=0),Uo.o=Math.round(Uo.o),255<Uo.o?Uo.o=255:0>Uo.o&&(Uo.o=0),"rgba("+Uo.j+", "+Uo.u+", "+Uo.o+", "+Uo.F+")";case nS:return av(),Tu.o=Math.min(100,Math.max(0,Tu.o+100*a)),"hsla("+Tu.j+", "+Tu.u+"%, "+Tu.o+"%, "+Tu.F+")";default:be("Unknown color space: "+y)}}function zd(a){Sg||(hv(),Sg=!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,Uo.j=a[0],Uo.u=a[1],Uo.o=a[2],Uo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Uo.j=0,Uo.u=0,Uo.o=0,Uo.F=1)}}function av(){var a=Uo.j/255,y=Uo.u/255,x=Uo.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))}Tu.j=Math.round(tt),Tu.u=Math.round(100*a),Tu.o=Math.round(100*b),Tu.F=Uo.F}function sv(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):(pm*a+16)/116}function eS(a){var y=a*a*a;return y>dv?y:(116*a-16)/pm}function Gf(a,y){typeof a!="string"&&(a instanceof ho||be("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=Fa?new eh(null,void 0,{willReadFrequently:!0}).context:null}je.Object.defineProperties(ho.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&fi(this,a),this.na=a,this.start.Mc()&&(a===jd?this.start=Ru:a===Vu&&(this.start=$r)),this.end.Mc()&&(a===jd?this.end=kl:a===Vu&&(this.end=$r)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&fi(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&fi(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&fi(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&fi(this,a),0>a&&Wi(a,">= zero",ho,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&fi(this,a),0>a&&Wi(a,">= zero",ho,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&fi(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&fi(this,a),this.cr=a,this.xe=null}}}),ho.prototype.isDark=ho.prototype.Gx,ho.prototype.darkenBy=ho.prototype.Wy,ho.prototype.lightenBy=ho.prototype.Vz,ho.prototype.addColorStop=ho.prototype.addColorStop;var dv=216/24389,pm=24389/27,yg=[95.047,100,108.883],cv=null,Uo=new dp,Tu=new dp,Ol=new dp,ld=new dp,Sg=!1;ho.className="Brush";var lc;ho.Solid=lc=new Te(ho,"Solid",0);var jd;ho.Linear=jd=new Te(ho,"Linear",1);var Vu;ho.Radial=Vu=new Te(ho,"Radial",2);var xg;ho.Pattern=xg=new Te(ho,"Pattern",4);var wg;ho.Lab=wg=new Te(ho,"Lab",5);var nS;ho.HSL=nS=new Te(ho,"HSL",6),ho.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},ho.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Sg||(hv(),Sg=!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)},ho.lighten=function(a){return $y(a)},ho.lightenBy=$y,ho.darken=function(a){return tS(a)},ho.darkenBy=tS,ho.mix=ov,ho.isDark=mg;function fs(){this.xa="Base"}fs.prototype.measure=function(){},fs.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},fs.prototype.arrange=function(){},fs.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},fs.prototype.iA=function(a){a.Uj()},fs.prototype.gc=function(){},je.Object.defineProperties(fs.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ln}}}),fs.prototype.remeasureObject=fs.prototype.iA,fs.prototype.arrangeElement=fs.prototype.Ly,fs.prototype.measureElement=fs.prototype.Yz,fs.className="PanelLayout";function mm(){this.xa="Base"}se(mm,fs),mm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;a=Wd(a);for(var ot=0;ot<rt;ot++){var st=E[ot];if(st.visible||st===a){var ut=st.margin,ft=ut.right+ut.left;ut=ut.top+ut.bottom,st.measure(y,x,z,tt);var mt=st.measuredBounds;ft=Math.max(mt.width+ft,0),ut=Math.max(mt.height+ut,0),mt=st.position.x;var yt=st.position.y;isFinite(mt)||(mt=0),isFinite(yt)||(yt=0),st instanceof Ji&&st.isGeometryPositioned&&(st=st.strokeWidth/2,mt-=st,yt-=st),Pa(b,mt,yt,ft,ut)}}},mm.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,st=z.position.y;if(ot=isNaN(ot)?-a:ot-a,st=isNaN(st)?-x:st-x,z instanceof Ji&&z.isGeometryPositioned){var ut=z.strokeWidth/2;ot-=ut,st-=ut}z.visible&&z.arrange(ot+rt.left,st+rt.top,tt.width,tt.height)}};function vm(){this.xa="Base"}se(vm,fs),vm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;y=Fi(),z=Wd(a);for(var ot=0;ot<rt;ot++){var st=E[ot];if(st.visible||st===z){var ut=Xl(st,!1);if(ut!==tn&&ut!==ui)y.push(st);else{st.measure(1/0,x,0,tt),ut=st.margin,st=st.measuredBounds;var ft=Math.max(st.height+ut.top+ut.bottom,0);b.width+=Math.max(st.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));Ai(y)},vm.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 st=z,ut=y[ot];if(ut.visible){var ft=ut.measuredBounds,mt=ut.margin,yt=mt.top+mt.bottom,Ct=z+b.bottom,Mt=ft.height,Vt=Xl(ut,!1);(isNaN(ut.desiredSize.height)&&Vt===on||Vt===Ei)&&(Mt=Math.max(x.height-yt-Ct,0)),yt=Mt+yt+Ct,Ct=ut.alignment,Ct.Xb()&&(Ct=a.defaultAlignment),Ct.sb()||(Ct=$r),tt&&(rt-=ft.width+mt.left+mt.right),ut.arrange(rt+Ct.offsetX+mt.left,st+Ct.offsetY+mt.top+(x.height*Ct.y-yt*Ct.y),ft.width,Mt),tt||(rt+=ft.width+mt.left+mt.right)}}};function ym(){this.xa="Base"}se(ym,fs),ym.prototype.measure=function(a,y,x,E,b,z){var tt=E.length;x=Fi();for(var rt=Wd(a),ot=0;ot<tt;ot++){var st=E[ot];if(st.visible||st===rt){var ut=Xl(st,!1);if(ut!==tn&&ut!==Ei)x.push(st);else{var ft=st.margin;ut=ft.right+ft.left,ft=ft.top+ft.bottom,st.measure(y,1/0,z,0),st=st.measuredBounds,gl(b,Math.max(b.width,Math.max(st.width+ut,0)),b.height+Math.max(st.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)&&(st=ot.margin,tt=st.right+st.left,st=st.top+st.bottom,ot.measure(y,1/0,z,0),ot=ot.measuredBounds,st=Math.max(ot.height+st,0),b.width=Math.max(b.width,Math.max(ot.width+tt,0)),b.height+=st);Ai(x)}},ym.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 st=z,ut=y[ot];if(ut.visible){var ft=ut.measuredBounds,mt=ut.margin,yt=mt.left+mt.right,Ct=z+b.right,Mt=ft.width,Vt=Xl(ut,!1);(isNaN(ut.desiredSize.width)&&Vt===on||Vt===ui)&&(Mt=Math.max(x.width-yt-Ct,0)),yt=Mt+yt+Ct,Ct=ut.alignment,Ct.Xb()&&(Ct=a.defaultAlignment),Ct.sb()||(Ct=$r),tt&&(rt-=ft.height+mt.bottom+mt.top),ut.arrange(st+Ct.offsetX+mt.left+(x.width*Ct.x-yt*Ct.x),rt+Ct.offsetY+mt.top,Mt,ft.height),tt||(rt+=ft.height+mt.bottom+mt.top)}}};function Sm(){this.xa="Base"}se(Sm,fs),Sm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length,ot=a.Pb(),st=ot.margin,ut=st.right+st.left,ft=st.top+st.bottom;ot.measure(y,x,z,tt);var mt=ot.measuredBounds;z=mt.width,tt=mt.height;var yt=Math.max(z+ut,0),Ct=Math.max(tt+ft,0),Mt=a.isClipping,Vt=We.allocAt(-st.left,-st.top,yt,Ct),Rt=We.allocAt(0,0,z,tt);fv(ot,Rt,!0),z=Rt.width,tt=Rt.height;for(var _t=!0,te=Wd(a),ne=0;ne<rt;ne++){var ue=E[ne];mt=y;var Pe=x;if(ue!==ot&&(ue.visible||ue===te)){st=ue.margin;var Mn=st.left,ei=st.top;switch(yt=st.right+st.left,Ct=st.top+st.bottom,st=Xl(ue,!1),st){case on:mt=z,Pe=tt,ei=Mn=Ct=yt=0;break;case ui:mt=z,Mn=yt=0;break;case Ei:Pe=tt,ei=Ct=0}ue.measure(mt,Pe,0,0),mt=ue.measuredBounds,yt=Math.max(mt.width+yt,0),Ct=Math.max(mt.height+Ct,0),st=ue.alignment,st.Xb()&&(st=a.defaultAlignment),st.sb()||(st=$r);var Kn=ue.alignmentFocus;if(Kn.Xb()&&(Kn=$r),Pe=null,ue instanceof ln&&ue.$e!==""&&(Pe=ue.fb(ue.$e),Pe===ue&&(Pe=null)),Mn=Rt.x-Mn,ei=Rt.y-ei,Pe!==null){for(ue.arrange(0,0,mt.width,mt.height),mt=Pe.actualBounds,mt=Zt.allocAt(mt.x+(Kn.x*mt.width-Kn.offsetX),mt.y+(Kn.y*mt.height-Kn.offsetY)),Pe=Pe.panel;Pe!==ue;)Pe.transform.Ga(mt),Pe=Pe.panel;Mn+=st.x*z+st.offsetX-mt.x,ei+=st.y*tt+st.offsetY-mt.y,Zt.free(mt)}else Mn+=st.x*z+st.offsetX-(Kn.x*mt.width+Kn.offsetX),ei+=st.y*tt+st.offsetY-(Kn.y*mt.height+Kn.offsetY);_t?(_t=!1,b.h(Mn,ei,yt,Ct)):Pa(b,Mn,ei,yt,Ct)}}switch(_t?b.assign(Vt):Mt?b.Uu(Rt.x,Rt.y,Rt.width,Rt.height):Pa(b,Vt.x,Vt.y,Vt.width,Vt.height),We.free(Vt),We.free(Rt),st=ot.stretch,st===Gi&&(st=Xl(ot,!1)),st){case tn:return;case on:if(!isFinite(y)&&!isFinite(x))return;break;case ui:if(!isFinite(y))return;break;case Ei:if(!isFinite(x))return}for(mt=ot.measuredBounds,z=mt.width,tt=mt.height,yt=Math.max(z+ut,0),Ct=Math.max(tt+ft,0),st=ot.margin,Rt=We.allocAt(-st.left,-st.top,yt,Ct),fv(ot,Rt,!0),z=Rt.width,tt=Rt.height,y=0;y<rt;y++)x=E[y],x===ot||!x.visible&&x!==te||(st=x.margin,yt=st.right+st.left,Ct=st.top+st.bottom,mt=x.measuredBounds,yt=Math.max(mt.width+yt,0),Ct=Math.max(mt.height+Ct,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=$r),x=x.alignmentFocus,x.Xb()&&(x=$r),_t?(_t=!1,b.h(ut.x*z+ut.offsetX-(x.x*mt.width+x.offsetX)-st.left,ut.y*tt+ut.offsetY-(x.y*mt.height+x.offsetY)-st.top,yt,Ct)):Pa(b,ut.x*z+ut.offsetX-(x.x*mt.width+x.offsetX)-st.left,ut.y*tt+ut.offsetY-(x.y*mt.height+x.offsetY)-st.top,yt,Ct));_t?b.assign(Vt):Mt?b.Uu(Rt.x,Rt.y,Rt.width,Rt.height):Pa(b,Vt.x,Vt.y,Vt.width,Vt.height),We.free(Rt)},Sm.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 st=z-x.x,ut=ot-x.y;for(b.arrange(st,ut,tt,rt),tt=We.allocAt(0,0,tt,rt),fv(b,tt,!1),rt=0;rt<E;rt++){var ft=y[rt];if(ft!==b){st=ft.measuredBounds;var mt=st.width,yt=st.height;ut=ft.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=$r);var Ct=ft.alignmentFocus;if(Ct.Xb()&&(Ct=$r),st=null,ft instanceof ln&&ft.$e!==""&&(st=ft.fb(ft.$e),st===ft&&(st=null)),st!==null){var Mt=st.actualBounds;for(Ct=Zt.allocAt(Mt.x+(Ct.x*Mt.width-Ct.offsetX),Mt.y+(Ct.y*Mt.height-Ct.offsetY)),st=st.panel;st!==ft;)st.transform.Ga(Ct),st=st.panel;st=ut.x*tt.width+ut.offsetX-Ct.x,ut=ut.y*tt.height+ut.offsetY-Ct.y,Zt.free(Ct)}else st=ut.x*tt.width+ut.offsetX-(Ct.x*mt+Ct.offsetX),ut=ut.y*tt.height+ut.offsetY-(Ct.y*yt+Ct.offsetY);st+=tt.x-x.x,ut+=tt.y-x.y,ft.visible&&ft.arrange(z+st,ot+ut,mt,yt)}}We.free(tt)};function fv(a,y,x){var E=null;if(a instanceof ln&&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 xm(){this.xa="Base"}se(xm,fs),xm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length,ot=a.Pb(),st=ot.margin,ut=y,ft=x,mt=st.right+st.left,yt=st.top+st.bottom;ot.measure(y,x,z,tt),st=ot.measuredBounds;var Ct=0,Mt=null;ot instanceof Ji&&(Mt=ot,Ct=Mt.strokeWidth*Mt.scale);var Vt=Math.max(st.width+mt,0);st=Math.max(st.height+yt,0);var Rt=vv(ot),_t=Rt.x*Vt+Rt.offsetX;Rt=Rt.y*st+Rt.offsetY;var te=yv(ot),ne=te.x*Vt+te.offsetX;for(te=te.y*st+te.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(_t-ne)-Ct,0)),isFinite(x)&&(ft=Math.max(Math.abs(Rt-te)-Ct,0)),Ct=$e.alloc(),Ct.h(0,0),a=Wd(a),te=0;te<rt;te++)Rt=E[te],Rt===ot||!Rt.visible&&Rt!==a||(st=Rt.margin,Vt=st.right+st.left,_t=st.top+st.bottom,Rt.measure(ut,ft,0,0),st=Rt.measuredBounds,Vt=Math.max(st.width+Vt,0),st=Math.max(st.height+_t,0),Ct.h(Math.max(Vt,Ct.width),Math.max(st,Ct.height)));if(rt===1)b.width=Vt,b.height=st,$e.free(Ct);else{switch(Rt=vv(ot),te=yv(ot),rt=E=0,te.x!==Rt.x&&te.y!==Rt.y&&(E=Ct.width/Math.abs(te.x-Rt.x),rt=Ct.height/Math.abs(te.y-Rt.y)),$e.free(Ct),Ct=0,Mt!==null&&(Ct=Mt.strokeWidth*Mt.scale,Ev(Mt)===oi&&(E=rt=Math.max(E,rt))),E+=Math.abs(Rt.offsetX)+Math.abs(te.offsetX)+Ct,rt+=Math.abs(Rt.offsetY)+Math.abs(te.offsetY)+Ct,Mt=ot.stretch,Mt===Gi&&(Mt=Xl(ot,!1)),Mt){case tn:tt=z=0;break;case on:isFinite(y)&&(E=y),isFinite(x)&&(rt=x);break;case ui:isFinite(y)&&(E=y),tt=0;break;case Ei: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}},xm.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=We.alloc();z.h(0,0,1,1);var tt=E.margin,rt=tt.left;tt=tt.top;var ot=a.padding,st=ot.left;ot=ot.top,E.arrange(st+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,Pa(z,yt,ft,0,0),z.x+=rt+st,z.y+=tt+ot,b=0;b<x;b++)rt=y[b],rt!==E&&(st=rt.measuredBounds,tt=rt.margin,ot=Math.max(st.width+tt.right+tt.left,0),ut=Math.max(st.height+tt.top+tt.bottom,0),mt=rt.alignment,mt.Xb()&&(mt=a.defaultAlignment),mt.sb()||(mt=$r),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&&(cs(z.x,z.y,z.width,z.height,ot,tt,st.width,st.height)?rt.arrange(ot,tt,st.width,st.height):rt.arrange(ot,tt,st.width,st.height,new We(z.x,z.y,z.width,z.height))));We.free(z)};function wm(){this.xa="Base",this.name="Table"}se(wm,fs),wm.prototype.measure=function(a,y,x,E,b){for(var z=E.length,tt=Fi(),rt=Fi(),ot=0;ot<z;ot++){var st=E[ot],ut=st instanceof ln?st:null;if(ut!==null&&uc(ut)&&st.visible){rt.push(ut);for(var ft=ut.O.s,mt=ft.length,yt=0;yt<mt;yt++){var Ct=ft[yt];ut.type===ln.TableRow?Ct.row=st.row:ut.type===ln.TableColumn&&(Ct.column=st.column),tt.push(Ct)}}else tt.push(st)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var Mt=[],Vt=0;Vt<z;Vt++){var Rt=tt[Vt];Rt.visible&&(us(Rt,!0),ad(Rt,!0),Mt[Rt.row]||(Mt[Rt.row]=[]),Mt[Rt.row][Rt.column]||(Mt[Rt.row][Rt.column]=[]),Mt[Rt.row][Rt.column].push(Rt))}Ai(tt);var _t=Fi(),te=Fi(),ne=Fi(),ue={count:0},Pe={count:0},Mn=y,ei=x,Kn=a.rowDefs,pn=a.colDefs,qe=null;z=Kn.length;for(var ji=0;ji<z;ji++)qe=Kn[ji],qe!==void 0&&(qe.actual=0);z=pn.length;for(var Ni=0;Ni<z;Ni++)qe=pn[Ni],qe!==void 0&&(qe.actual=0);for(var Xr=Mt.length,zo=0,Ls=0;Ls<Xr;Ls++)Mt[Ls]&&(zo=Math.max(zo,Mt[Ls].length));var Ns=Math.min(a.topIndex,Xr-1),Ll=Math.min(a.leftIndex,zo-1),As=0;Xr=Mt.length;for(var Sc=Wd(a),_a=0;_a<Xr;_a++)if(Mt[_a]){zo=Mt[_a].length;var Ih=a.Fb(_a);Ih.actual=0;for(var Al=Ih.oc=0;Al<zo;Al++)if(Mt[_a][Al]){var xc=a.Eb(Al);_t[Al]===void 0&&(xc.actual=0,xc.oc=0,_t[Al]=!0);for(var Iu=Mt[_a][Al],oh=Iu.length,mu=0;mu<oh;mu++){var ou=Iu[mu];if(ou.visible||ou===Sc){var Jc=1<ou.rowSpan||1<ou.columnSpan;Jc&&(_a<Ns||Al<Ll||te.push(ou));var Rh=ou.margin,Vg=Rh.right+Rh.left,vu=Rh.top+Rh.bottom,bl=Nh(ou,Ih,xc,!1),_p=ou.desiredSize,tg=!isNaN(_p.height),qh=!isNaN(_p.width)&&tg;if(Jc||bl===tn||qh||_a<Ns||Al<Ll||(ue[Al]!==void 0||bl!==on&&bl!==ui||(ue[Al]=-1,ue.count++),Pe[_a]!==void 0||bl!==on&&bl!==Ei||(Pe[_a]=-1,Pe.count++),ne.push(ou)),ou.measure(1/0,1/0,0,0),!(_a<Ns||Al<Ll)){var au=ou.measuredBounds,Af=Math.max(au.width+Vg,0),yu=Math.max(au.height+vu,0);if(ou.rowSpan===1&&(bl===tn||bl===ui)){qe=a.Fb(_a);var Qc=qe.Wc();As=Math.max(yu-qe.actual,0),As+Qc>ei&&(As=Math.max(ei-Qc,0));var V0=qe.oa===0;qe.oc=qe.oc+As,qe.actual=qe.oa+As,ei=Math.max(ei-(As+(V0?Qc:0)),0)}if(ou.columnSpan===1&&(bl===tn||bl===Ei)){qe=a.Eb(Al);var $p=qe.Wc();As=Math.max(Af-qe.actual,0),As+$p>Mn&&(As=Math.max(Mn-$p,0));var Wy=qe.oa===0;qe.oc=qe.oc+As,qe.actual=qe.oa+As,Mn=Math.max(Mn-(As+(Wy?$p:0)),0)}Jc&&ou.Uj()}}}}}Ai(_t);var vd=0,Kd=0;z=a.columnCount;for(var eg=0;eg<z;eg++){var qc=pn[eg];qc!==void 0&&(vd+=isNaN(qc.Hc)?qc.oc:qc.Hc,qc.oc!==0&&(vd+=qc.Wc()))}z=a.rowCount;for(var Ug=0;Ug<z;Ug++){var _c=Kn[Ug];_c!==void 0&&(Kd+=isNaN(_c.Hc)?_c.oc:_c.Hc,_c.oc!==0&&(Kd+=_c.Wc()))}Mn=Math.max(y-vd,0);var yd=ei=Math.max(x-Kd,0),wc=Mn;z=ne.length;for(var su=0;su<z;su++){var _h=ne[su],U0=a.Fb(_h.row),Vd=a.Eb(_h.column),Zg=_h.measuredBounds,zh=_h.margin,bf=zh.right+zh.left,$h=zh.top+zh.bottom;ue[_h.column]=Vd.oc===0&&ue[_h.column]!==void 0?Math.max(Zg.width+bf,ue[_h.column]):null,Pe[_h.row]=U0.oc===0&&Pe[_h.row]!==void 0?Math.max(Zg.height+$h,Pe[_h.row]):null}var ng=0,Yg=0,wh;for(wh in Pe)wh!=="count"&&(ng+=Pe[wh]);for(wh in ue)wh!=="count"&&(Yg+=ue[wh]);for(var Gs=$e.alloc(),tm=0;tm<z;tm++){var Gl=ne[tm];if(Gl.visible||Gl===Sc){var $a=a.Fb(Gl.row),Kl=a.Eb(Gl.column),Ud=0;isFinite(Kl.width)?Ud=Kl.width:(isFinite(Mn)&&ue[Gl.column]!==null?Yg===0?Ud=Kl.actual+Mn:Ud=ue[Gl.column]/Yg*wc:ue[Gl.column]!==null?Ud=Mn:Ud=Kl.actual||Mn,Ud=Math.max(0,Ud-Kl.Wc()));var Pc=0;switch(isFinite($a.height)?Pc=$a.height:(isFinite(ei)&&Pe[Gl.row]!==null?ng===0?Pc=$a.actual+ei:Pc=Pe[Gl.row]/ng*yd:Pe[Gl.row]!==null?Pc=ei:Pc=$a.actual||ei,Pc=Math.max(0,Pc-$a.Wc())),Gs.h(Math.max(Kl.minimum,Math.min(Ud,Kl.maximum)),Math.max($a.minimum,Math.min(Pc,$a.maximum))),bl=Nh(Gl,$a,Kl,!1),bl){case ui:Gs.height=Math.max(Gs.height,$a.actual+ei);break;case Ei:Gs.width=Math.max(Gs.width,Kl.actual+Mn)}var Mf=Gl.margin,Hy=Mf.right+Mf.left,Z0=Mf.top+Mf.bottom;Gl.Uj(),Gl.measure(Gs.width,Gs.height,Kl.minimum,$a.minimum);var Xg=Gl.measuredBounds,kf=Math.max(Xg.width+Hy,0),ig=Math.max(Xg.height+Z0,0);isFinite(Mn)&&(kf=Math.min(kf,Gs.width)),isFinite(ei)&&(ig=Math.min(ig,Gs.height));var lu=0;lu=$a.actual,$a.actual=Math.max($a.actual,ig),$a.oc=Math.max($a.oc,ig),As=$a.actual-lu,ei=Math.max(ei-As,0),Pe[Gl.row]===null&&(yd=Math.max(yd-As,0)),lu=Kl.actual,Kl.actual=Math.max(Kl.actual,kf),Kl.oc=Math.max(Kl.oc,kf),As=Kl.actual-lu,Mn=Math.max(Mn-As,0),ue[Gl.column]===null&&(wc=Math.max(wc-As,0))}}Ai(ne);var Zd=$e.alloc(),jh=Fi(),Ju=Fi();if(z=te.length,z!==0){for(var $c=0;$c<Xr;$c++)if(Mt[$c]){zo=Mt[$c].length;var Jg=a.Fb($c);jh[$c]=Jg.actual;for(var tf=0;tf<zo;tf++)if(Mt[$c][tf]){var Y0=a.Eb(tf);Ju[tf]=Y0.actual}}}for(var Qg=0;Qg<z;Qg++){var ja=te[Qg];if(ja.visible||ja===Sc){var Ph=a.Fb(ja.row),ah=a.Eb(ja.column);switch(Gs.h(Math.max(ah.minimum,Math.min(y,ah.maximum)),Math.max(Ph.minimum,Math.min(x,Ph.maximum))),bl=Nh(ja,Ph,ah,!1),bl){case on:Ju[ah.index]!==0&&(Gs.width=Math.min(Gs.width,Ju[ah.index])),jh[Ph.index]!==0&&(Gs.height=Math.min(Gs.height,jh[Ph.index]));break;case ui:Ju[ah.index]!==0&&(Gs.width=Math.min(Gs.width,Ju[ah.index]));break;case Ei:jh[Ph.index]!==0&&(Gs.height=Math.min(Gs.height,jh[Ph.index]))}isFinite(ah.width)&&(Gs.width=ah.width),isFinite(Ph.height)&&(Gs.height=Ph.height),Zd.h(0,0);for(var X0=ah.minimum,Su=Ph.minimum,Cc=1;Cc<ja.rowSpan&&!(ja.row+Cc>=a.rowCount);Cc++)qe=a.Fb(ja.row+Cc),As=0,As=bl===on||bl===Ei?Math.max(qe.minimum,jh[ja.row+Cc]===0?qe.maximum:Math.min(jh[ja.row+Cc],qe.maximum)):Math.max(qe.minimum,isNaN(qe.Hc)?qe.maximum:Math.min(qe.Hc,qe.maximum)),Zd.height+=As,Su+=qe.minimum;for(var sh=1;sh<ja.columnSpan&&!(ja.column+sh>=a.columnCount);sh++)qe=a.Eb(ja.column+sh),As=0,As=bl===on||bl===ui?Math.max(qe.minimum,Ju[ja.column+sh]===0?qe.maximum:Math.min(Ju[ja.column+sh],qe.maximum)):Math.max(qe.minimum,isNaN(qe.Hc)?qe.maximum:Math.min(qe.Hc,qe.maximum)),Zd.width+=As,X0+=qe.minimum;Gs.width+=Zd.width,Gs.height+=Zd.height;var qg=ja.margin,ef=qg.right+qg.left,em=qg.top+qg.bottom;ja.measure(Gs.width,Gs.height,X0,Su);for(var _g=ja.measuredBounds,td=Math.max(_g.width+ef,0),Ff=Math.max(_g.height+em,0),nf=0,$g=0;$g<ja.rowSpan&&!(ja.row+$g>=a.rowCount);$g++)qe=a.Fb(ja.row+$g),nf+=qe.total||0;if(nf<Ff){var Ec=Ff-nf,Sd=Ff-nf;if(ja.spanAllocation!==null)for(var Lc=ja.spanAllocation,Yd=0;Yd<ja.rowSpan&&!(0>=Ec)&&!(ja.row+Yd>=a.rowCount);Yd++){qe=a.Fb(ja.row+Yd);var Ac=qe.oa||0,Nf=Lc(ja,qe,Sd);qe.actual=Math.min(qe.maximum,Ac+Nf),qe.oa!==Ac&&(Ec-=qe.oa-Ac)}for(;0<Ec;){var Wh=qe.oa||0;if(isNaN(qe.height)&&qe.maximum>Wh&&(qe.actual=Math.min(qe.maximum,Wh+Ec),qe.oa!==Wh&&(Ec-=qe.oa-Wh)),qe.index===0)break;qe=a.Fb(qe.index-1)}}for(var rg=0,bc=0;bc<ja.columnSpan&&!(ja.column+bc>=a.columnCount);bc++)qe=a.Eb(ja.column+bc),rg+=qe.total||0;if(rg<td){var og=td-rg,Gy=td-rg;if(ja.spanAllocation!==null)for(var Xd=ja.spanAllocation,Df=0;Df<ja.columnSpan&&!(0>=og)&&!(ja.column+Df>=a.columnCount);Df++){qe=a.Eb(ja.column+Df);var nm=qe.oa||0,Ky=Xd(ja,qe,Gy);qe.actual=Math.min(qe.maximum,nm+Ky),qe.oa!==nm&&(og-=qe.oa-nm)}for(;0<og;){var J0=qe.oa||0;if(isNaN(qe.width)&&qe.maximum>J0&&(qe.actual=Math.min(qe.maximum,J0+og),qe.oa!==J0&&(og-=qe.oa-J0)),qe.index===0)break;qe=a.Eb(qe.index-1)}}}}Ai(te),$e.free(Zd),$e.free(Gs),jh!==void 0&&Ai(jh),Ju!==void 0&&Ai(Ju);var ag=0,sg=0,Q0=a.desiredSize,gx=a.maxSize;bl=Xl(a,!0);var im=Kd=vd=0,rm=0;z=a.columnCount;for(var q0=0;q0<z;q0++)pn[q0]!==void 0&&(qe=a.Eb(q0),isFinite(qe.width)?(im+=qe.width,im+=qe.Wc()):Nm(qe)===pp?(im+=qe.oa,im+=qe.Wc()):qe.oa!==0&&(vd+=qe.oa,vd+=qe.Wc()));isFinite(Q0.width)?ag=Math.min(Q0.width,gx.width):ag=bl!==tn&&isFinite(y)?y:vd,ag=Math.max(ag,a.minSize.width),ag=Math.max(ag-im,0);for(var qx=vd===0?1:Math.max(ag/vd,1),_0=0;_0<z;_0++)pn[_0]!==void 0&&(qe=a.Eb(_0),isFinite(qe.width)||Nm(qe)===pp||(qe.actual=qe.oa*qx),qe.position=b.width,qe.oa!==0&&(b.width+=qe.oa,b.width+=qe.Wc()));z=a.rowCount;for(var $0=0;$0<z;$0++)Kn[$0]!==void 0&&(qe=a.Fb($0),isFinite(qe.height)?(rm+=qe.height,rm+=qe.Wc()):Nm(qe)===pp?(rm+=qe.oa,rm+=qe.Wc()):qe.oa!==0&&(Kd+=qe.oa,Kd+=qe.Wc()));isFinite(Q0.height)?sg=Math.min(Q0.height,gx.height):sg=bl!==tn&&isFinite(x)?x:Kd,sg=Math.max(sg,a.minSize.height),sg=Math.max(sg-rm,0);for(var _x=Kd===0?1:Math.max(sg/Kd,1),tv=0;tv<z;tv++)Kn[tv]!==void 0&&(qe=a.Fb(tv),isFinite(qe.height)||Nm(qe)===pp||(qe.actual=qe.oa*_x),qe.position=b.height,qe.oa!==0&&(b.height+=qe.oa,b.height+=qe.Wc()));z=rt.length;for(var Vy=0;Vy<z;Vy++){var om=rt[Vy],Uy=0,Zy=0;om.type===ln.TableRow?(Uy=b.width,qe=a.Fb(om.row),Zy=qe.actual):(qe=a.Eb(om.column),Uy=qe.actual,Zy=b.height),om.measuredBounds.h(0,0,Uy,Zy),us(om,!1)}Ai(rt),a.inRowsCols=Mt},wm.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,st=tt.length,ut=0,ft=0;ft<st;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,st-1);if(0<ot.length){for(;yt!==st&&(ot[yt]===void 0||ot[yt].oa===0);)yt++;yt=Math.max(Math.min(yt,st-1),0),ft=-ot[yt].position}var Ct=Math.min(a.leftIndex,ut-1);if(0<rt.length){for(;Ct!==ut&&(rt[Ct]===void 0||rt[Ct].oa===0);)Ct++;Ct=Math.max(Math.min(Ct,ut-1),0),mt=-rt[Ct].position}for(var Mt=0,Vt=0;Mt!==st&&ot[Mt]===void 0;)Mt++;for(;Vt!==st&&rt[Vt]===void 0;)Vt++;ut=a.part,a.Fb(Mt),a.Eb(Vt);for(var Rt=0;Rt<y.length;Rt++){var _t=y[Rt];if(_t instanceof ln&&_t.visible&&uc(_t)){if(_t.type===ln.TableRow){rt=a.Fb(_t.row);var te=a.Eb(Vt)}else rt=a.Fb(Mt),te=a.Eb(_t.column);ot=rt.position+ft+b,rt.oa!==0&&(ot+=rt.Io(Math.max(Mt,yt))),rt=te.position+mt+z,te.oa!==0&&(rt+=te.Io(Math.max(Vt,Ct))),te=_t.measuredBounds,_t.Uk(),_t.actualBounds.ka();var ne=_t.actualBounds,ue=We.allocAt(ne.x,ne.y,ne.width,ne.height);ne.x=_t.type===ln.TableRow?z:rt,ne.y=_t.type===ln.TableColumn?b:ot,ne.width=te.width,ne.height=te.height,_t.actualBounds.freeze(),ad(_t,!1),is(ue,ne)||ut===null||(ut.oh(),_t.Pn(ut)),We.free(ue)}}for(Rt=$e.alloc(),_t=0;_t<st;_t++)if(tt[_t]){for(ut=tt[_t].length,te=a.Fb(_t),ot=te.position+ft+b,te.oa!==0&&(ot+=te.Io(Math.max(Mt,yt))),ne=0;ne<ut;ne++)if(tt[_t][ne]){ue=a.Eb(ne),rt=ue.position+mt+z,ue.oa!==0&&(rt+=ue.Io(Math.max(Vt,Ct)));for(var Pe=tt[_t][ne],Mn=Pe.length,ei=0;ei<Mn;ei++){var Kn=Pe[ei],pn=Kn.measuredBounds;Rt.h(0,0);for(var qe=1;qe<Kn.rowSpan&&!(_t+qe>=a.rowCount);qe++){var ji=a.Fb(_t+qe);ji.oa!==0&&(Rt.height+=ji.total)}for(qe=1;qe<Kn.columnSpan&&!(ne+qe>=a.columnCount);qe++)ji=a.Eb(ne+qe),ji.oa!==0&&(Rt.width+=ji.total);var Ni=ue.oa+Rt.width,Xr=te.oa+Rt.height;qe=rt,ji=ot;var zo=Ni,Ls=Xr,Ns=rt,Ll=ot,As=Ni,Sc=Xr;rt+Ni>x.width&&(As=Math.max(x.width-rt,0)),ot+Xr>x.height&&(Sc=Math.max(x.height-ot,0));var _a=Kn.alignment;if(_a.Xb()){_a=a.defaultAlignment,_a.sb()||(_a=$r);var Ih=_a.x,Al=_a.y,xc=_a.offsetX;_a=_a.offsetY;var Iu=ue.alignment,oh=te.alignment;Iu.sb()&&(Ih=Iu.x,xc=Iu.offsetX),oh.sb()&&(Al=oh.y,_a=oh.offsetY)}else Ih=_a.x,Al=_a.y,xc=_a.offsetX,_a=_a.offsetY;(isNaN(Ih)||isNaN(Al))&&(Al=Ih=.5,_a=xc=0),Iu=pn.width,oh=pn.height;var mu=Kn.margin,ou=mu.left+mu.right,Jc=mu.top+mu.bottom,Rh=Nh(Kn,te,ue,!1);!isNaN(Kn.desiredSize.width)||Rh!==on&&Rh!==ui||(Iu=Math.max(Ni-ou,0)),!isNaN(Kn.desiredSize.height)||Rh!==on&&Rh!==Ei||(oh=Math.max(Xr-Jc,0)),Ni=Kn.maxSize,Xr=Kn.minSize,Iu=Math.min(Ni.width,Iu),oh=Math.min(Ni.height,oh),Iu=Math.max(Xr.width,Iu),oh=Math.max(Xr.height,oh),Ni=oh+Jc,qe+=zo*Ih-(Iu+ou)*Ih+xc+mu.left,ji+=Ls*Al-Ni*Al+_a+mu.top,Kn.visible&&(cs(Ns,Ll,As,Sc,qe,ji,pn.width,pn.height)?Kn.arrange(qe,ji,Iu,oh):Kn.arrange(qe,ji,Iu,oh,new We(Ns,Ll,As,Sc)))}}}for($e.free(Rt),a=0;a<E;a++)x=y[a],z=x instanceof ln?x:null,z!==null&&uc(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Pm(){this.xa="Base"}se(Pm,fs),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function Cm(){this.xa="Base"}se(Cm,fs),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Em(){this.xa="Base"}se(Em,fs),Em.prototype.measure=function(a,y,x,E,b,z,tt){1<E.length&&be("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,st=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-st,0),yt=Math.max(x-ot,0),Ct=1;a.viewboxStretch===oi?ft!==0&&rt!==0&&(Ct=Math.min(mt/ft,yt/rt)):ft!==0&&rt!==0&&(Ct=Math.max(mt/ft,yt/rt)),Ct===0&&(Ct=1e-4),E.Ca*=Ct,ut!==E.scale&&(us(E,!0),E.measure(1/0,1/0,z,tt))}rt=E.measuredBounds,b.width=isFinite(y)?y:Math.max(rt.width+st,0),b.height=isFinite(x)?x:Math.max(rt.height+ot,0)},Em.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=$r),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 cp(){this.xa="Base"}se(cp,fs),cp.prototype.measure=function(){},cp.prototype.arrange=function(){},cp.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,st=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=[],Ct=a.O.s,Mt=Ct.length,Vt=0;Vt<Mt;Vt++){var Rt=Ct[Vt],_t=[];if(yt.push(_t),Rt.visible){var te=Rt.interval;if(!(0>te)){Rt=pv(Rt.figure);for(var ne=0;ne<Mt;ne++)if(ne!==Vt){var ue=Ct[ne];ue.visible&&pv(ue.figure)===Rt&&(ue=ue.interval,ue>te&&_t.push(ue))}}}}for(Ct=a.O.s,Mt=Ct.length,Vt=0;Vt<Mt;Vt++){var Pe=Ct[Vt];if(Pe.visible&&(_t=Pe.interval||1,Rt=Math.abs(_t),!(2>b*Rt*x))){if(te=Pe.segmentIndex,(!isFinite(te)||isNaN(te))&&(te=0),0>te&&(te=Rt-Math.min(-te,Rt)),te=Math.round(te%Rt),Rt=Pe.opacity,ne=1,Rt!==1){if(Rt===0)continue;ne=y.globalAlpha,y.globalAlpha=ne*Rt}ue=yt[Vt];var Mn=!1,ei=Pe.strokeDashArray;if(ei!==null&&(Mn=!0,y.js(ei,Pe.strokeDashOffset)),Pe.figure==="LineV"&&Pe.stroke!==null&&0<Pe.strokeWidth){for(y.lineWidth=Pe.strokeWidth,Ia(a,y,Pe.stroke,!1,!1,z,tt),y.beginPath(),ei=Pe=Math.floor((mt-b)/b);ei<=Pe+st;ei++){var Kn=ei*b+mt;0<=Kn&&Kn<=rt&&Lm(ei,_t,te,ue)&&(y.moveTo(Kn,0),y.lineTo(Kn,ot))}y.stroke(),y.Se()}else if(Pe.figure==="LineH"&&Pe.stroke!==null&&0<Pe.strokeWidth){for(y.lineWidth=Pe.strokeWidth,Ia(a,y,Pe.stroke,!1,!1,z,tt),y.beginPath(),ei=Pe=Math.floor((ft-E)/E);ei<=Pe+ut;ei++)Kn=ei*E+ft,0<=Kn&&Kn<=ot&&Lm(ei,_t,te,ue)&&(y.moveTo(0,Kn),y.lineTo(rt,Kn));y.stroke(),y.Se()}else if(Pe.figure==="BarV"&&Pe.fill!==null)for(Ia(a,y,Pe.fill,!0,!1,z,tt),Pe=Pe.width,isNaN(Pe)&&(Pe=b),Kn=ei=Math.floor((mt-b)/b);Kn<=ei+st;Kn++){var pn=Kn*b+mt;0<=pn+Pe&&pn<=rt&&Lm(Kn,_t,te,ue)&&y.fillRect(pn,0,Pe,ot)}else if(Pe.figure==="BarH"&&Pe.fill!==null)for(Ia(a,y,Pe.fill,!0,!1,z,tt),Pe=Pe.height,isNaN(Pe)&&(Pe=E),Kn=ei=Math.floor((ft-E)/E);Kn<=ei+ut;Kn++)pn=Kn*E+ft,0<=pn+Pe&&pn<=ot&&Lm(Kn,_t,te,ue)&&y.fillRect(0,pn,rt,Pe);Mn&&y.fs(),Rt!==1&&(y.globalAlpha=ne)}}y.restore(),y.Vc(!1)};function Lm(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"}se(Am,fs),Am.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof Hr||a instanceof mn){var tt=null,rt=null;if(a instanceof mn&&(tt=a),a instanceof Hr&&(rt=a,tt=rt.adornedPart,a.j===null&&(a.j=[])),tt instanceof mn){var ot=tt;if(z===0)gl(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var st=a instanceof Hr?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,st!==null){iS(a,rt,mt,st);var Ct=st.measuredBounds;x.ed(Ct),yt.push(Ct)}Ct=er.alloc();for(var Mt=Zt.alloc(),Vt=Zt.alloc(),Rt=0;Rt<z;Rt++){var _t=E[Rt];if(_t!==st)if(_t.isPanelMain&&_t instanceof Ji){iS(a,rt,mt,_t);var te=_t.measuredBounds;x.ed(te),yt.push(te)}else if(2>ft)_t.measure(1/0,1/0,0,0),te=_t.measuredBounds,x.ed(te),yt.push(te);else{var ne=_t.segmentIndex,ue=_t.segmentFraction,Pe=_t.alignmentFocus;Pe.Mc()&&(Pe=$r);var Mn=_t.segmentOrientation,ei=_t.segmentOffset;if(isNaN(ne)){var Kn=ot.ua;te=Fi(),Kn.Qu(ue,te);var pn=Zt.allocAt(te[0],te[1]);if(pn.add(ot.i(0)),Kn.type===yn.j?pn.offset(-Kn.startX,-Kn.startY):(Kn=Kn.figures.first(),Kn!==null&&pn.offset(-Kn.startX,-Kn.startY)),Kn=te[2],Mn!==Rl){var qe=ot.computeAngle(_t,Mn,Kn);_t.Kb=qe}qe=pn.x-y.x;var ji=pn.y-y.y;Zt.free(pn),Ai(te)}else if(ne<-ft||ne>=ft)te=Zt.alloc(),ot.vg(),ot.computeMidPoint(te),Kn=ot.midAngle,Mn!==Rl&&(qe=ot.computeAngle(_t,Mn,Kn),_t.Kb=qe),qe=te.x-y.x,ji=te.y-y.y,Zt.free(te);else{if(qe=0,0<=ne?(ji=ut.M(ne),te=ne<ft-1?ut.M(ne+1):ji):(qe=ft+ne,ji=ut.M(qe),te=0<qe?ut.M(qe-1):ji),ji.Xa(te)){0<=ne?(Kn=0<ne?ut.M(ne-1):ji,qe=ne<ft-2?ut.M(ne+2):te):(Kn=qe<ft-1?ut.M(qe+1):ji,qe=1<qe?ut.M(qe-2):te),pn=Kn.Bf(ji);var Ni=te.Bf(qe);Kn=pn>Ni+10?0<=ne?Kn.ab(ji):ji.ab(Kn):Ni>pn+10?0<=ne?te.ab(qe):qe.ab(te):0<=ne?Kn.ab(qe):qe.ab(Kn)}else Kn=0<=ne?ji.ab(te):te.ab(ji);Mn!==Rl&&(qe=ot.computeAngle(_t,Mn,Kn),_t.Kb=qe),qe=ji.x+(te.x-ji.x)*ue-y.x,ji=ji.y+(te.y-ji.y)*ue-y.y}_t.measure(1/0,1/0,0,0),te=_t.measuredBounds,pn=_t.naturalBounds;var Xr=0;_t instanceof Ji&&(Xr=_t.strokeWidth),Ni=pn.width+Xr;var zo=pn.height+Xr;Ct.reset(),Ct.translate(-te.x,-te.y),Ct.scale(_t.scale,_t.scale),Ct.rotate(Mn===Rl?_t.angle:Kn,Ni/2,zo/2),Mn!==Lp&&Mn!==bp||Ct.rotate(90,Ni/2,zo/2),Mn!==Ap&&Mn!==Mp||Ct.rotate(-90,Ni/2,zo/2),Mn===n0&&(45<Kn&&135>Kn||225<Kn&&315>Kn)&&Ct.rotate(-Kn,Ni/2,zo/2),pn=new We(0,0,Ni,zo),Mt.xi(pn,Pe),Ct.Ga(Mt),Pe=-Mt.x+Xr/2*_t.scale,_t=-Mt.y+Xr/2*_t.scale,Vt.assign(ei),Xr=isNaN(ei.x);var Ls=isNaN(ei.y);if(Xr||Ls){Ni=Ni/2+3,zo=zo/2+3;var Ns=45<=Kn&&135>=Kn,Ll=225<=Kn&&315>=Kn;Mn===Rl&&(Ns||Ll)?(Vt.x=Ls?Ni:ei.y,Vt.y=Xr?zo:ei.x,Ns?0<=ne||isNaN(ne)&&.5>ue||!Xr||(Vt.y=-zo):Ll&&((0<=ne||isNaN(ne)&&.5>ue)&&Xr&&(Vt.y=-zo),Ls&&(Vt.x=-Ni))):(Xr&&(Vt.x=0<=ne||isNaN(ne)&&.5>ue?Ni:-Ni),Ls&&(Vt.y=-zo),Vt.rotate(Kn))}else Vt.rotate(Kn);qe+=Vt.x,ji+=Vt.y,pn.set(te),pn.h(qe+Pe,ji+_t,te.width,te.height),yt.push(pn),x.ed(pn)}}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),gl(b,x.width||0,x.height||0),er.free(Ct),Zt.free(Mt),Zt.free(Vt)}}}},Am.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Hr||a instanceof mn){var E=a,b=null;a instanceof Hr&&(b=a,E=b.adornedPart);var z=a instanceof Hr?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 st=y[ot];if(st!==z&&rt<tt.length){var ut=tt[rt];rt++,st.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 mn)for(z=a.labelNodes;z.next();){var ft=a;tt=z.value,rt=tt.segmentIndex,ot=tt.segmentFraction;var mt=tt.alignmentFocus;if(st=tt.segmentOrientation,ut=tt.segmentOffset,isNaN(rt)){var yt=ft.ua,Ct=Fi();yt.Qu(ot,Ct);var Mt=Zt.allocAt(Ct[0],Ct[1]);Mt.add(ft.i(0)),yt.type===yn.j||(yt=yt.figures.first()),Mt.offset(-yt.startX,-yt.startY),yt=Ct[2],st!==Rl&&(ft=ft.computeAngle(tt,st,yt),tt.angle=ft),ft=Mt.x;var Vt=Mt.y;Zt.free(Mt),Ai(Ct)}else if(rt<-x||rt>=x)Ct=Zt.alloc(),yt=ft,Vt=Ct,yt.vg(),yt.computeMidPoint(Vt),yt=ft.midAngle,st!==Rl&&(ft=ft.computeAngle(tt,st,yt),tt.angle=ft),ft=Ct.x,Vt=Ct.y,Zt.free(Ct);else{if(Mt=0,0<=rt?(Ct=y.s[rt],Vt=rt<x-1?y.s[rt+1]:Ct):(Mt=x+rt,Ct=y.s[Mt],Vt=0<Mt?y.s[Mt-1]:Ct),Ct.Xa(Vt)){0<=rt?(yt=0<rt?y.s[rt-1]:Ct,Mt=rt<x-2?y.s[rt+2]:Vt):(yt=Mt<x-1?y.s[Mt+1]:Ct,Mt=1<Mt?y.s[Mt-2]:Vt);var Rt=yt.Bf(Ct),_t=Vt.Bf(Mt);yt=Rt>_t+10?0<=rt?yt.ab(Ct):Ct.ab(yt):_t>Rt+10?0<=rt?Vt.ab(Mt):Mt.ab(Vt):0<=rt?yt.ab(Mt):Mt.ab(yt)}else yt=0<=rt?Ct.ab(Vt):Vt.ab(Ct);st!==Rl&&(ft=ft.computeAngle(tt,st,yt),tt.angle=ft),ft=Ct.x+(Vt.x-Ct.x)*ot,Vt=Ct.y+(Vt.y-Ct.y)*ot}if(mt.ys())tt.location=new Zt(ft,Vt);else{mt.Mc()&&(mt=$r),Ct=er.alloc(),Ct.reset(),Ct.scale(tt.scale,tt.scale),Ct.rotate(tt.angle,0,0);var te=tt.naturalBounds;Mt=We.allocAt(0,0,te.width,te.height),Rt=Zt.alloc(),Rt.xi(Mt,mt),Ct.Ga(Rt),mt=-Rt.x,_t=-Rt.y;var ne=te.width,ue=te.height;te=Zt.alloc(),te.assign(ut);var Pe=isNaN(ut.x),Mn=isNaN(ut.y);if(Pe||Mn){ne=ne/2+3,ue=ue/2+3;var ei=45<=yt&&135>=yt,Kn=225<=yt&&315>=yt;st===Rl&&(ei||Kn)?(te.x=Mn?ne:ut.y,te.y=Pe?ue:ut.x,ei?0<=rt||isNaN(rt)&&.5>ot||!Pe||(te.y=-ue):Kn&&((0<=rt||isNaN(rt)&&.5>ot)&&Pe&&(te.y=-ue),Mn&&(te.x=-ne))):(Pe&&(te.x=0<=rt||isNaN(rt)&&.5>ot?ne:-ne),Mn&&(te.y=-ue),te.rotate(yt))}else te.rotate(yt);ft+=te.x,Vt+=te.y,Ct.pp(Mt),mt+=Mt.x,_t+=Mt.y,rt=Zt.allocAt(ft+mt,Vt+_t),tt.move(rt),Zt.free(rt),Zt.free(te),Zt.free(Rt),We.free(Mt),er.free(Ct)}}b!==null?b.Ul(!1):E.Ul(!1),E=DS(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Zt.free(E)}};function iS(a,y,x,E){if(Du(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Hr&&a.type===ln.Link&&a.adornedObject instanceof Ji&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof mn&&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 Hr&&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),us(E,!1)}}function fp(){this.xa="Base"}se(fp,fs),fp.prototype.measure=function(a,y,x,E,b,z,tt){var rt=a.Pb();a.graduatedBounds=[];var ot=rt.margin,st=ot.right+ot.left,ut=ot.top+ot.bottom;rt.measure(y,x,z,tt);var ft=rt.measuredBounds,mt=new We(-ot.left,-ot.top,Math.max(ft.width+st,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(mt),b.assign(mt);for(var yt=rt.geometry,Ct=rt.strokeWidth,Mt=yt.flattenedSegments,Vt=yt.flattenedLengths,Rt=yt.flattenedTotalLength,_t=Mt.length,te=0,ne=0,ue=Fi(),Pe=0;Pe<_t;Pe++){var Mn=Mt[Pe],ei=[];ne=te=0;for(var Kn=Mn.length,pn=0;pn<Kn;pn+=2){var qe=Mn[pn],ji=Mn[pn+1];if(pn!==0){var Ni=180*Math.atan2(ji-ne,qe-te)/Math.PI;0>Ni&&(Ni+=360),ei.push(Ni)}te=qe,ne=ji}ue.push(ei)}if(a.graduatedIntervals===null){for(var Xr=[],zo=a.O.s,Ls=zo.length,Ns=0;Ns<Ls;Ns++){var Ll=zo[Ns],As=[];if(Xr.push(As),Ll.visible){var Sc=Ll.interval;if(!(0>Sc)){for(var _a=0;_a<Ls;_a++)if(_a!==Ns){var Ih=zo[_a];if(Ih.visible&&Ll.constructor===Ih.constructor){var Al=Ih.interval;Al>Sc&&As.push(Al)}}}}}a.graduatedIntervals=Xr}var xc=a.graduatedIntervals,Iu=a.O.s,oh=Iu.length,mu=0,ou=0,Jc=Rt;a.graduatedMarks=[];for(var Rh,Vg=0;Vg<oh;Vg++){var vu=Iu[Vg];if(Rh=[],vu.visible&&vu!==rt){var bl=Math.abs(vu.interval),_p=a.graduatedTickUnit;if(!(2>_p*bl*Rt/a.graduatedRange&&vu.graduatedSkip===null)){var tg=Vt[0][0],qh=0,au=0;ou=Rt*vu.graduatedStart-1e-4,Jc=Rt*vu.graduatedEnd+1e-4;var Af=_p*bl,yu=a.graduatedTickBase;if(yu<a.graduatedMin){var Qc=(a.graduatedMin-yu)/Af;Qc=Qc%1===0?Qc:Math.floor(Qc+1),yu+=Qc*Af}else yu>a.graduatedMin+Af&&(yu-=Math.floor((yu-a.graduatedMin)/Af)*Af);for(var V0=xc[Vg],$p=yu,Wy=1e-6*a.graduatedMax,vd=1;yu<=a.graduatedMax+Wy;vd++){t:{for(var Kd=V0.length,eg=0;eg<Kd;eg++){var qc=(yu-a.graduatedTickBase)%(V0[eg]*a.graduatedTickUnit),Ug=1e-6*a.graduatedTickUnit;if(qc<Ug&&qc>-Ug){var _c=!1;break t}}_c=!0}if(_c&&(yu>a.graduatedMax&&(yu=a.graduatedMax),vu.graduatedSkip===null||vu instanceof jo&&!vu.graduatedSkip(yu,vu)||vu instanceof Ji&&!vu.graduatedSkip(yu,vu))&&(mu=(yu-a.graduatedMin)*Rt/a.graduatedRange,mu>Rt&&(mu=Rt),ou<=mu&&mu<=Jc)){for(var yd=ue[qh][au],wc=Vt[qh][au];qh<Vt.length;){for(;mu>tg&&au<Vt[qh].length-1;)au++,yd=ue[qh][au],wc=Vt[qh][au],tg+=wc;if(mu<=tg)break;qh++,au=0,yd=ue[qh][au],wc=Vt[qh][au],tg+=wc}var su=Mt[qh],_h=su[2*au],U0=su[2*au+1],Vd=(mu-(tg-wc))/wc,Zg=new Zt(_h+(su[2*au+2]-_h)*Vd+Ct/2-yt.bounds.x,U0+(su[2*au+3]-U0)*Vd+Ct/2-yt.bounds.y);Zg.scale(rt.scale,rt.scale);t:{var zh=yd,bf=ue[qh];if(!(.5005>Vd&&.4995<Vd)){var $h=zh;if(.5>Vd?0<au?$h=bf[au-1]:pe.$(su[0],su[su.length-2])&&pe.$(su[1],su[su.length-1])&&($h=bf[bf.length-1]):.5<Vd&&(au+1<bf.length?$h=bf[au+1]:pe.$(su[0],su[su.length-2])&&pe.$(su[1],su[su.length-1])&&($h=bf[0])),zh!==$h){var ng=Math.abs(zh-$h);if(180<ng&&(zh<$h?zh+=360:$h+=360,ng=Math.abs(zh-$h)),5e-4>Vd||.9995<Vd){yd=(zh+$h)/2%360;break t}if(10>ng){var Yg=1-Math.abs(.5-Vd);yd=(zh*Yg+$h*(1-Yg))%360;break t}}}yd=zh}if(vu instanceof jo){var wh="";vu.graduatedFunction!==null?(wh=vu.graduatedFunction(yu,vu),wh=wh!=null?wh.toString():""):wh=(+yu.toFixed(2)).toString(),wh!==""&&Rh.push({$l:Zg,angle:yd,text:wh})}else Rh.push({$l:Zg,angle:yd})}yu=$p+vd*Af}}}a.graduatedMarks.push(Rh)}Ai(ue);var Gs=a.graduatedMarks;if(Gs!==null)for(var tm=E.length,Gl=0;Gl<tm;Gl++){var $a=E[Gl],Kl=Gs[Gl];if($a.visible&&$a!==rt&&Kl.length!==0){if($a instanceof Ji){var Ud=a,Pc=b,Mf=$a.alignmentFocus;Mf.Mc()&&(Mf=Ru);var Hy=$a.angle;$a.Kb=0,$a.measure(1/0,1/0,0,0),$a.Kb=Hy;var Z0=$a.measuredBounds,Xg=Z0.width,kf=Z0.height,ig=We.allocAt(0,0,Xg,kf),lu=Zt.alloc();lu.xi(ig,Mf),We.free(ig);for(var Zd=-lu.x,jh=-lu.y,Ju=new We,$c=Kl.length,Jg=0;Jg<$c;Jg++)for(var tf=Kl[Jg],Y0=tf.$l.x,Qg=tf.$l.y,ja=tf.angle,Ph=0;4>Ph;Ph++){switch(Ph){case 0:lu.h(Zd,jh);break;case 1:lu.h(Zd+Xg,jh);break;case 2:lu.h(Zd,jh+kf);break;case 3:lu.h(Zd+Xg,jh+kf)}lu.rotate(ja+$a.angle),lu.offset(Y0,Qg),Jg===0&&Ph===0?Ju.h(lu.x,lu.y,0,0):Ju.Ye(lu),lu.offset(-Y0,-Qg),lu.rotate(-ja-$a.angle)}Zt.free(lu),Ud.graduatedBounds!==null&&Ud.graduatedBounds.push(Ju),Pa(Pc,Ju.x,Ju.y,Ju.width,Ju.height)}else if($a instanceof jo){var ah=a,X0=b;ah.temporaryTextBlock===null&&(ah.temporaryTextBlock=new jo);var Su=ah.temporaryTextBlock;yS(Su,$a);var Cc=$a.alignmentFocus;Cc.Mc()&&(Cc=Ru);for(var sh=$a.segmentOrientation,qg=$a.segmentOffset,ef=new We,em=0,_g=0,td=0,Ff=0,nf=0,$g=Kl.length,Ec=0;Ec<$g;Ec++){var Sd=Kl[Ec];em=Sd.$l.x,_g=Sd.$l.y,td=Sd.angle,nf=Ff=$a.angle,sh!==Rl&&(nf=sh===Ep||sh===e0?td+$a.angle:td,Ff=mn.computeAngle(sh,nf)),Su.Kb=Ff,Su.text=Sd.text||"",Su.measure(1/0,1/0,0,0);var Lc=Su.measuredBounds,Yd=Su.naturalBounds,Ac=Yd.width,Nf=Yd.height,Wh=er.alloc();Wh.reset(),Wh.translate(-Lc.x,-Lc.y),Wh.scale(Su.scale,Su.scale),Wh.rotate(nf,Ac/2,Nf/2),sh!==Lp&&sh!==bp||Wh.rotate(90,Ac/2,Nf/2),sh!==Ap&&sh!==Mp||Wh.rotate(-90,Ac/2,Nf/2),sh===n0&&(45<td&&135>td||225<td&&315>td)&&Wh.rotate(-td,Ac/2,Nf/2);var rg=We.allocAt(0,0,Ac,Nf),bc=Zt.alloc();bc.xi(rg,Cc),Wh.Ga(bc);var og=-bc.x,Gy=-bc.y,Xd=Zt.alloc();Xd.assign(qg),isNaN(Xd.x)&&(Xd.x=Ac/2+3),isNaN(Xd.y)&&(Xd.y=-(Nf/2+3)),Xd.rotate(td),em+=Xd.x+og,_g+=Xd.y+Gy;var Df=new We(em,_g,Lc.width,Lc.height),nm=new We(Lc.x,Lc.y,Lc.width,Lc.height),Ky=new We(Yd.x,Yd.y,Yd.width,Yd.height);Sd.Sz=Ff,Sd.lineCount=Su.lineCount,Sd.lines=[Su.Cb,Su.Ih,Su.df,Su.Le,Su.Qc,Su.Qb,Su.ze],Sd.actualBounds=Df,Sd.measuredBounds=nm,Sd.naturalBounds=Ky,Ec===0?ef.assign(Df):ef.ed(Df),Zt.free(Xd),Zt.free(bc),We.free(rg),er.free(Wh)}ah.graduatedBounds!==null&&ah.graduatedBounds.push(ef),Pa(X0,ef.x,ef.y,ef.width,ef.height)}us($a,!1)}}},fp.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,st=0;st<ot;st++){var ut=y[st];rt=b[st],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}}},fp.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 fu,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,st=a.graduatedMarks,ut=ot.length,ft=0;ft<ut;ft++){var mt=ot[ft],yt=st[ft],Ct=yt.length;if(mt.visible&&mt!==z&&yt.length!==0){if(mt instanceof Ji){if(!(2>a.graduatedTickUnit*mt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&mt.graduatedSkip===null)){var Mt=mt.measuredBounds,Vt=mt.strokeWidth*mt.scale,Rt=mt.alignmentFocus;Rt.Mc()&&(Rt=Ru);for(var _t=0;_t<Ct;_t++){var te=yt[_t].$l,ne=yt[_t].angle,ue=Rt,Pe=mt.Ab;Pe.reset(),Pe.translate(te.x+rt.x,te.y+rt.y),Pe.rotate(ne+mt.angle,0,0),Pe.translate(-Mt.width*ue.x+ue.offsetX+Vt/2,-Mt.height*ue.y+ue.offsetY+Vt/2),Pe.scale(mt.scale,mt.scale),th(mt,!1),mt.wh.set(mt.Ab),mt.Kk=mt.scale,Gu(mt,!1),mt.gc(y,x),b&&(a.svg.appendChild(mt.svg),mt.svg=null),mt.Ab.reset()}}}else if(mt instanceof jo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new jo),Mt=a.temporaryTextBlock,yS(Mt,mt),Vt=0;Vt<Ct;Vt++)Rt=yt[Vt],Rt.actualBounds&&Rt.measuredBounds&&Rt.naturalBounds&&(Mt.ec=Rt.text||"",Mt.Kb=Rt.Sz||0,Mt.Gc=Rt.lineCount||0,_t=Rt.lines,_t!==void 0&&(Mt.Cb=_t[0],Mt.Ih=_t[1],Mt.df=_t[2],Mt.Le=_t[3],Mt.Qc=_t[4],Mt.Qb=_t[5],Mt.ze=_t[6]),Rt.naturalBounds&&(Mt.dc=Rt.naturalBounds),Rt.actualBounds&&(_t=Rt.actualBounds,Mt.arrange(_t.x,_t.y,_t.width,_t.height)),_t=Rt.actualBounds,Mt.arrange(_t.x,_t.y,_t.width,_t.height),te=Rt.measuredBounds,Rt=Rt.naturalBounds,ne=Mt.Ab,ne.reset(),ne.translate(_t.x+rt.x,_t.y+rt.y),ne.translate(-te.x,-te.y),Mt.no(ne,Rt.x,Rt.y,Rt.width,Rt.height),th(Mt,!1),Mt.wh.set(Mt.Ab),Mt.Kk=Mt.scale,Gu(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 ln(a,y){if(fe.call(this),this.na=null,a===void 0)this.na=ln.Position;else if(typeof a=="string"){var x=ph.I(a);x!==null&&(this.na=x)}else a instanceof fs?this.na=a:a&&(this.na=ln.Position,y=a);this.na===null&&be("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ln.Grid?1048576:0),this.O=new vn,this.yb=Ml,this.Tm=vs,this.Uf=Gi,this.$g=null,this.$e="",this.jg=new We(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=oi,this.jn=Ga,this.kn=ts,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}se(ln,fe),ln.prototype.cloneProtected=function(a){fe.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},ln.prototype.Af=function(a){fe.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},ln.prototype.copy=function(){var a=fe.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 Bn&&(z.Te=!0);var rt=a.diagram;rt!==null&&rt.undoManager.isUndoingRedoing||z.cb(ba,"elements",a,null,b,null,tt)}}return a}return null},xt=ln.prototype,xt.toString=function(){return"Panel("+this.type.name+")#"+xa(this)},xt.Pn=function(a){fe.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},xt.hh=function(a,y){if(this.na===ln.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ln.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ln.Table)if(a.yc(),a instanceof fu){var x=a.yd;a.yd=fm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===ln.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&&bm(a,y,!0,x,!0),E!==null&&bm(a,y,!1,E,!0),x!==null&&rS(a,y,!0,x),E!==null&&rS(a,y,!1,E),x!==null&&bm(a,y,!0,x,!1),E!==null&&bm(a,y,!1,E,!1)}function rS(a,y,x,E){for(var b=E.length,z=a.actualBounds,tt=a.naturalBounds,rt=!0,ot=0;ot<b;ot++){var st=E[ot];if(st!==void 0&&st.actual!==0)if(rt)rt=!1;else{if(x){if(st.position>tt.height)continue}else if(st.position>tt.width)continue;var ut=st.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=st.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ft!==null){Ia(a,y,ft,!1,!1,tt,z),ft=!1;var mt=st.separatorDashArray;mt===null&&(mt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),mt!==null&&(ft=!0,y.js(mt,0)),y.beginPath(),mt=st.position+ut,x?mt>tt.height&&(ut-=mt-tt.height):mt>tt.width&&(ut-=mt-tt.width),st=st.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(st+=ut.top,mt=tt.width-ut.right,y.moveTo(ut.left,st),y.lineTo(mt,st)):(st+=ut.left,mt=tt.height-ut.bottom,y.moveTo(st,ut.top),y.lineTo(st,mt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function bm(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,rt=a.naturalBounds,ot=oS(a,!0),st=oS(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(),Ct=ft.separatorStrokeWidth;isNaN(Ct)&&(Ct=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Mt=ft.separatorStroke;Mt===null&&(Mt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Mt===null||ft.index===(x?ot:st))&&(Ct=0),yt-=Ct,Ct=ft.position+Ct,yt+=ft.actual,Ct+yt>mt&&(yt=mt-Ct),0>=yt||(mt=a.yb,Ia(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(mt.left,Ct+mt.top,tt.width-(mt.left+mt.right),yt):y.fillRect(Ct+mt.left,mt.top,yt,tt.height-(mt.top+mt.bottom)))}}}}function oS(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"}xt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},xt.kk=function(a,y,x){if(!fe.prototype.kk.call(this,a,y,x))return!1;if(this.type===ln.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===ln.Grid||this.na===ln.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},xt.nk=function(){return!0},xt.$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 fe.prototype.$o.call(this,a,y,x,E)},xt.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,st=-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,pe.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*st+y*ft+yt,a=x*ot+E*ut+mt,ot=x*st+E*ft+yt,b.h(0,0),x=this.naturalBounds,z=pe.Ff(0,0,x.width,x.height,z,rt,a,ot,b),b.transform(tt),z;z||(ot=1,ut=st=0,ft=1,yt=mt=0),rt=a*ot+y*ut+mt,a=a*st+y*ft+yt,ot=x*ot+E*ut+mt,x=x*st+E*ft+yt,b.h(ot,x),E=(ot-rt)*(ot-rt)+(x-a)*(x-a),st=!1,ft=this.O.s,yt=ft.length,ut=Zt.alloc(),mt=null,y=1/0;var Ct=null,Mt=this.isClipping&&this.na===ln.Spot;Mt&&(Ct=Zt.alloc(),mt=this.Pb(),(st=mt.Sj(rt,a,ot,x,Ct))&&(y=(rt-Ct.x)*(rt-Ct.x)+(a-Ct.y)*(a-Ct.y)));for(var Vt=0;Vt<yt;Vt++){var Rt=ft[Vt];Rt.visible&&Rt!==mt&&Rt.Sj(rt,a,ot,x,ut)&&(st=!0,Rt=(rt-ut.x)*(rt-ut.x)+(a-ut.y)*(a-ut.y),Rt<E&&(E=Rt,b.set(ut)))}return Mt&&(y>E&&b.set(Ct),Zt.free(Ct)),Zt.free(ut),z&&b.transform(tt),st},xt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();fe.prototype.Gj.call(this)},xt.v=function(a){if(!Du(this)){fe.prototype.v.call(this,a),a=null,(this.na===ln.Auto||this.na===ln.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=Xl(b,!1);(b instanceof Il||b instanceof ln||b instanceof jo||z!==tn)&&b.v(!0)}}}},xt.Uj=function(){if(!Du(this)){us(this,!0),ad(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},xt.Uk=function(){if(!(this.l&2048)){th(this,!0),Gu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},xt.Wu=function(){Gu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},xt.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 st=this.O.s;st.length!==0&&this.na.measure(this,a,y,st,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),gl(b,a,ot),gl(this.naturalBounds,a,ot),this.Ge(0,0,a,ot)},xt.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 Wd(a){return a.part!==null?a.part.locationObject:null}xt.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=Xl(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=tn),a){case tn:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case on:this.v(!0),this.measure(x+rt,E+tt,0,0);break;case ui:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case Ei:this.v(!0),this.measure(y+rt,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},xt.gh=function(a){var y=this.naturalBounds,x=Wd(this);if(cs(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Zt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(ga(b.set(a),z.transform),z.ca(b)))return Zt.free(b),!0}return Zt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},xt.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},xt.qm=function(a,y){if(y(this,a),a instanceof ln){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function yf(a,y){aS(a,a,y)}function aS(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 ln&&aS(a,z,x)}}function vx(a,y){sS(a,a,y)}function sS(a,y,x){if(x(y),y instanceof ln){y=y.O.s;for(var E=y.length,b=0;b<E;b++)sS(a,y[b],x)}}xt.Nl=function(a){return lS(this,this,a)};function lS(a,y,x){if(x(y))return y;if(y instanceof ln){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=lS(a,y[b],x);if(z!==null)return z}}return null}xt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=gp(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof ln){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function uS(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof ln?x=Math.max(x,uS(b)):b instanceof Ji&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}xt.se=function(){return!(this.type===ln.TableRow||this.type===ln.TableColumn)};function uc(a){return a.type===ln.TableRow||a.type===ln.TableColumn}xt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Bl(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),tt=z?a:ga(Zt.allocAt(a.x,a.y),this.transform),rt=this.diagram,ot=10,st=5;if(rt!==null&&(ot=rt.Ql("extraTouchArea"),st=ot/2),cs(-(st*b),-(st*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=Zt.alloc(),st=(ot=this.isClipping&&this.na===ln.Spot)?this.Pb():null,ot&&(st.se()?ga(rt.set(a),st.transform):rt.set(a),!st.ca(rt)))return Zt.free(rt),z||Zt.free(tt),null;for(var ft=Wd(this);ut--;){var mt=b[ut];if((mt.visible||mt===ft)&&(mt.se()?ga(rt.set(a),mt.transform):rt.set(a),!ot||mt!==st)){var yt=null;if(mt instanceof ln?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 Zt.free(rt),z||Zt.free(tt),yt}}Zt.free(rt)}return this.background===null&&this.areaBackground===null?(z||Zt.free(tt),null):(a=cs(0,0,E.width,E.height,tt.x,tt.y)?this:null,z||Zt.free(tt),a)}return z||Zt.free(tt),null},xt.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:ga(Zt.allocAt(a.x,a.y),this.transform);if(b=cs(0,0,b.width,b.height,tt.x,tt.y),uc(this)||b){if(!this.isAtomic){for(var rt=this.O.s,ot=rt.length,st=Zt.alloc(),ut=Wd(this);ot--;){var ft=rt[ot];if(ft.visible||ft===ut){ft.se()?ga(st.set(a),ft.transform):st.set(a);var mt=ft;ft=ft instanceof ln?ft:null,(ft!==null?ft.ji(st,y,x,E):mt.ca(st))&&mt.pickable!==!1&&(y!==null&&(mt=y(mt)),mt===null||x!==null&&!x(mt)||E.add(mt))}}Zt.free(st)}return z||Zt.free(tt),b&&(this.background!==null||this.areaBackground!==null)}return z||Zt.free(tt),!1},xt.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=er.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,b),z===void 0&&er.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var rt=Wd(this),ot=this.O.s,st=ot.length;st--;){var ut=ot[st];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 ln?ut:null,mt=er.alloc(),mt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,mt):Es(ft,a,E,mt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||b.add(ft)),er.free(mt))}}return z===void 0&&er.free(tt),E}return z===void 0&&er.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 ln&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}xt.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:ga(Zt.allocAt(a.x,a.y),this.transform),st=rt?y:ga(Zt.allocAt(y.x,y.y),this.transform),ut=ot.Bf(st),ft=0<ot.x&&ot.x<tt.width&&0<ot.y&&ot.y<tt.height||Ha(ot.x,ot.y,0,0,0,tt.height)<=ut||Ha(ot.x,ot.y,0,tt.height,tt.width,tt.height)<=ut||Ha(ot.x,ot.y,tt.width,tt.height,tt.width,0)<=ut||Ha(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||(Zt.free(ot),Zt.free(st)),ft){if(!this.isAtomic){ot=Zt.alloc(),st=Zt.alloc(),ut=Wd(this);for(var mt=this.O.s,yt=mt.length;yt--;){var Ct=mt[yt];if(Ct.visible||Ct===ut){var Mt=Ct.actualBounds,Vt=this.naturalBounds;(!rt||!(Mt.x>Vt.width||Mt.y>Vt.height||0>Mt.x+Mt.width||0>Mt.y+Mt.height))&&(Ct.se()?(Mt=Ct.transform,ga(ot.set(a),Mt),ga(st.set(y),Mt)):(ot.set(a),st.set(y)),Mt=Ct,Ct=Ct instanceof ln?Ct:null,(Ct!==null?Ct.og(ot,st,x,E,b,z):Mt.tx(ot,st,b))&&(x!==null&&(Mt=x(Mt)),Mt===null||E!==null&&!E(Mt)||z.add(Mt)))}}Zt.free(ot),Zt.free(st)}return b?ft:tt}return!1};function vv(a){var y=null;return a instanceof Ji&&(y=a.spot1,y===vs&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=ms),y}function yv(a){var y=null;return a instanceof Ji&&(y=a.spot2,y===vs&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Ul),y}xt.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},xt.M=function(a){return this.O.M(a)},xt.Gb=function(a,y){y instanceof pi&&be("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&be("Cannot make a Panel contain itself: "+this.toString()),be("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&be("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!==ln.Grid||y instanceof Ji||be("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ln.Graduated||y instanceof Ji||y instanceof jo||be("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 ci),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 be("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),Du(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ln&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||km(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Bn&&(x.Te=!0),x.Te&&x instanceof Bn&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(Ra,"elements",this,y,null,E,null),x.cb(ba,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}xt.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)},xt.mb=function(a){0<=a&&this.pc(a,!0)},xt.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),us(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 Bn&&(E instanceof ln?E.qm(E,function(tt,rt){Gv(z,rt,y)}):Gv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Ra,"elements",this,E,null,a,null))},xt.Fb=function(a){0>a&&Wi(a,">= 0",ln,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new hs;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(ba,"rowdefs",this,null,x,null,a)}return y[a]},xt.oA=function(a){if(0>a&&Wi(a,">= 0",ln,"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(Ra,"rowdefs",this,x,null,a,null),this.v()}}};function hS(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof hs?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}xt.Eb=function(a){0>a&&Wi(a,">= 0",ln,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new hs;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(ba,"coldefs",this,null,x,null,a)}return y[a]},xt.jA=function(a){if(0>a&&Wi(a,">= 0",ln,"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(Ra,"coldefs",this,x,null,a,null),this.v()}}};function dS(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof hs?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}xt.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},xt.Hy=function(a,y){return(a=this.Fb(a))&&Fm(a,new hs(y)),this},xt.By=function(a,y){return(a=this.Eb(a))&&Fm(a,new hs(y)),this},xt.nz=function(a){if(0>a||this.type!==ln.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},xt.fz=function(a){if(0>a||this.type!==ln.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},xt.Fz=function(a,y){if(y===void 0&&(y=new Zt(NaN,NaN)),this.type!==ln.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)},xt.Gz=function(a){if(this.type!==ln.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function cS(a){return a=a.allBindings,a!==null&&a._isFrozen}function nh(a){var y=a.allBindings;if(y===null)a.data!==null&&be("Template cannot have .data be non-null: "+a),a.allBindings=y=new vn;else if(y._isFrozen)return;var x=new vn;Sv(a,!1),a.qm(a,function(st,ut){ut.th();var ft=ut.localBindings;if(ft!==null)for(jf(ut,!1),ft=ft.iterator;ft.next();){var mt=ft.value;mt.mode===Ip&&jf(ut,!0);var yt=mt.sourceName;yt!==null&&(yt==="/"&&Sv(st,!0),yt=A1(mt,st,ut),yt!==null&&(x.add(yt),yt.srcBindings===null&&(yt.srcBindings=new vn),yt.srcBindings.add(mt))),y.add(mt)}if(ut instanceof ln&&ut.type===ln.Table){if(0<ut.rowCount){for(st=ut.rowDefs,ft=st.length,mt=0;mt<ft;mt++)if(yt=st[mt],yt!==void 0&&yt.be!==null)for(var Ct=yt.be.iterator;Ct.next();){var Mt=Ct.value;Mt.xd=yt,Mt.to=2,Mt.wl=yt.index,y.add(Mt)}}if(0<ut.columnCount){for(ut=ut.colDefs,st=ut.length,ft=0;ft<st;ft++)if(mt=ut[ft],mt!==void 0&&mt.be!==null)for(yt=mt.be.iterator;yt.next();)Ct=yt.value,Ct.xd=mt,Ct.to=1,Ct.wl=mt.index,y.add(Ct)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){jf(b,!0);for(var z=b.srcBindings.iterator;z.next();){var tt=z.value;b.localBindings===null&&(b.localBindings=new vn),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 ln&&(tt=rt.substring(0,ot),rt=rt.substr(ot+1),ot=z.fb(tt),ot!==null?(z=ot,b.targetProperty=rt):Er('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+b.toString())),z instanceof hs?(tt=xa(z.panel),b.Ai=tt===void 0?-1:tt,z.panel.bindingId=b.Ai):z instanceof fe?(tt=xa(z),b.Ai=tt===void 0?-1:tt,z.bindingId=b.Ai):be("Unknown type of binding target: "+z)}y.freeze(),a instanceof pi&&a.Zc()&&a.Va()}xt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof ln&&(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&&nh(y),y},xt.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 ln))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},xt.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 ln&&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 ln)||z.data!==y[tt])return!0;b++,tt++}return!1}function gp(a){if(a.type===ln.Spot||a.type===ln.Auto)return Math.min(a.O.length,1);if(a.type===ln.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof Ji&&E.isPanelMain))break}return x}return a.type===ln.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ln&&uc(a))?1:0}xt.mv=function(){for(var a=gp(this);this.O.length>a;)this.pc(this.O.length-1,!1);fS(this,this.itemArray)};function fS(a,y){var x=gp(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++)Mm(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 ln){if(tt.data!==z){var rt=wv(a,tt.data),ot=wv(a,z),st=ot!==rt;st||(rt=Pv(a,rt),st=Pv(a,ot)!==rt),st?(a.pc(E,!1),Mm(a,z,b,!1)):tt.data=z}}else Mm(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,xv(a,x,0),Du(a)||a.v(),a.graduatedIntervals=null,a.If()||km(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Bn&&(y.Te=!0),y.Te&&y instanceof Bn&&(y.wc=null))}}function Mm(a,y,x,E){if(!(y==null||0>x)){var b=wv(a,y);if(b=Pv(a,b),b!==null){if(nh(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 ci),a.ge.add(y,b)),z=x+gp(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 ln){var b=y,z=x;E.type===ln.TableRow?E.row=b:E.type===ln.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=Za(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;be("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&&(gS||(gS=!0,Er('No item template Panel found for category "'+y+'" on '+a),Er(" Using default item template."),a=new ln,y=new jo,y.bind(new qa("text","",Jr)),a.add(y),pS=a),E=pS)),E}function km(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof ln){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof ln&&!z.isEnabled||km(a,z,x)}}}function Jh(a,y){y.name=a,ph.add(a,y)}je.Object.defineProperties(ln.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ln.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&&Wi(a,">= 0",ln,"padding"),a=new Qi(a)):(0>a.left&&Wi(a.left,">= 0",ln,"padding:value.left"),0>a.right&&Wi(a.right,">= 0",ln,"padding:value.right"),0>a.top&&Wi(a.top,">= 0",ln,"padding:value.top"),0>a.bottom&&Wi(a.bottom,">= 0",ln,"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:Ml},set:function(a){typeof a=="number"&&(a=new Qi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Uu),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 ho)&&(a instanceof ho&&a.freeze(),this.T===null&&(this.T=new Uu),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 Uu),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)||be("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 Uu),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 ho)&&(a instanceof ho&&a.freeze(),this.T===null&&(this.T=new Uu),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 Uu),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)||be("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 Uu),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 Uu),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||be("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&js(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()||be("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&js(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 Hd),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Zs(this)&&(a=this.part,a!==null&&qo(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 Hd),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Zs(this)&&(a=this.part,a!==null&&qo(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 Hd),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 Hd),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 Hd,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 Hd,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 Hd,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 Hd,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 Uu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Uu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Dm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Uu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Dm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Uu),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)&&be("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Uu),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)&&be("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Uu),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 pi&&!(this instanceof Hr);nh(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof mn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof pi&&(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 Wf),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&&sy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||fS(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 ci}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof pi||a.isPanelMain)&&be("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(););nr(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&&(nr(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 Hi&&(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&&km(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))}}}),je.Object.defineProperties(ln,{Position:{get:function(){return ph.I("Position")}},Horizontal:{get:function(){return ph.I("Horizontal")}},Vertical:{get:function(){return ph.I("Vertical")}},Spot:{get:function(){return ph.I("Spot")}},Auto:{get:function(){return ph.I("Auto")}},Table:{get:function(){return ph.I("Table")}},Viewbox:{get:function(){return ph.I("Viewbox")}},TableRow:{get:function(){return ph.I("TableRow")}},TableColumn:{get:function(){return ph.I("TableColumn")}},Link:{get:function(){return ph.I("Link")}},Grid:{get:function(){return ph.I("Grid")}},Graduated:{get:function(){return ph.I("Graduated")}}}),ln.prototype.rebuildItemElements=ln.prototype.mv,ln.prototype.findItemPanelForData=ln.prototype.sx,ln.prototype.updateTargetBindings=ln.prototype.La,ln.prototype.copyTemplate=ln.prototype.Uy,ln.prototype.graduatedValueForPoint=ln.prototype.Gz,ln.prototype.graduatedPointForValue=ln.prototype.Fz,ln.prototype.findColumnForLocalX=ln.prototype.fz,ln.prototype.findRowForLocalY=ln.prototype.nz,ln.prototype.addColumnDefinition=ln.prototype.By,ln.prototype.addRowDefinition=ln.prototype.Hy,ln.prototype.addRowColumnDefinition=ln.prototype.Gy,ln.prototype.removeColumnDefinition=ln.prototype.jA,ln.prototype.getColumnDefinition=ln.prototype.Eb,ln.prototype.removeRowDefinition=ln.prototype.oA,ln.prototype.getRowDefinition=ln.prototype.Fb,ln.prototype.removeAt=ln.prototype.mb,ln.prototype.remove=ln.prototype.remove,ln.prototype.insertAt=ln.prototype.Gb,ln.prototype.elt=ln.prototype.M,ln.prototype.add=ln.prototype.add,ln.prototype.findObject=ln.prototype.fb,ln.prototype.findInVisualTree=ln.prototype.Nl,ln.prototype.walkVisualTreeFrom=ln.prototype.qm,ln.prototype.findMainElement=ln.prototype.Pb;var gS=!1,pS=null,ph=new ci;ln.className="Panel",ln.definePanelLayout=Jh,Jh("Position",new mm),Jh("Vertical",new ym),Jh("Auto",new xm),Jh("Link",new Am);function Hd(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Hd.prototype.copy=function(){var a=new Hd;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},Hd.className="GradPanelSettings";function Uu(){this.Pc=[],this.Oc=[],this.j=this.ob=Dm,this.hb=this.Hb=0,this.Qp=Ml,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Uu.prototype.copy=function(a){for(var y=new Uu,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},Uu.className="TablePanelSettings";function hs(a){lo(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=vs,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=Gi,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))}hs.prototype.copy=function(){var a=new hs;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=Mr(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=Mr(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}xt=hs.prototype,xt.qb=function(a){a.classType===hs&&(this.sizing=a)},xt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+xa(this)},xt.wi=function(a){this.Me=a},xt.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)},xt.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===ln.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)},xt.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 Nm(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}xt.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new qa(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&cS(y)&&be("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new vn),this.be.add(b),this},je.Object.defineProperties(hs.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&&Wi(a,">= 0",hs,"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&&Wi(a,">= 0",hs,"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))&&Wi(a,">= 0",hs,"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&&Wi(a,">= 0",hs,"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 Qi(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&&Gf(a,"RowColumnDefinition.separatorStroke"),a instanceof ho&&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)||be("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&&Gf(a,"RowColumnDefinition.background"),a instanceof ho&&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}}}),hs.prototype.computeEffectiveSpacing=hs.prototype.Wc,hs.prototype.computeEffectiveSpacingTop=hs.prototype.Io;var Cv=new Te(hs,"Default",0),pp=new Te(hs,"None",1),Dm=new Te(hs,"ProportionalExtra",2);hs.className="RowColumnDefinition",hs.Default=Cv,hs.None=pp,hs.ProportionalExtra=Dm;function Ji(a,y){fe.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)}se(Ji,fe),Ji.prototype.cloneProtected=function(a){fe.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=Mr(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 Sf(a){a.Na===null?a.Na=new Av:a.Na.nc&&(a.Na=a.Na.copy())}xt=Ji.prototype,xt.th=function(){fe.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},xt.qb=function(a){a===tn||a===oi||a===wr||a===Gi?this.geometryStretch=a:fe.prototype.qb.call(this,a)},xt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+xa(this)};function Pg(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],st,ut,ft,mt,yt,Ct,Mt=0,Vt=Fi(),Rt=2;Rt<b;Rt+=2)st=x[Rt],ut=x[Rt+1],ft=st-rt,rt=ut-ot,ft===0&&(ft=.001),mt=rt/ft,yt=Math.atan2(rt,ft),Ct=Math.sqrt(ft*ft+rt*rt),Vt.push([ft,yt,mt,Ct]),Mt+=Ct,rt=st,ot=ut;rt=x[0],ot=x[1],ft=E.measuredBounds.width,E instanceof Ji&&(ft-=E.strokeWidth),1>ft&&(ft=1),b=x=ft,st=tt/2,ut=st!==0,Rt=0,Ct=Vt[Rt],ft=Ct[0],yt=Ct[1],mt=Ct[2],Ct=Ct[3];for(var _t=0;.1<=Mt;){if(_t===0&&(ut?(b=x,b-=st,Mt-=st,ut=!1):b=x,b===0&&(b=1)),b>Mt){Ai(Vt);return}b>Ct?(_t=b-Ct,b=Ct):_t=0;var te=Math.sqrt(b*b/(1+mt*mt));if(0>ft&&(te=-te),rt+=te,ot+=mt*te,a.translate(rt,ot),a.rotate(yt),a.translate(-(tt/2),-(z/2)),_t===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-yt),a.translate(-rt,-ot),Mt-=b,Ct-=b,_t!==0){if(Rt++,Rt===Vt.length){Ai(Vt);return}Ct=Vt[Rt],ft=Ct[0],yt=Ct[1],mt=Ct[2],Ct=Ct[3],b=_t}}Ai(Vt)}}xt.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&&Ia(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===ln.Link&&rt instanceof Hr&&rt.category==="Selection"&&rt.adornedObject instanceof Ji&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),ot===0&&(x=null),x!==null&&ot!==0&&(Ia(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===yn.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===yn.u){var st=b.startX;ot=b.startY;var ut=b.endX,ft=b.endY;b=Math.min(st,ut);var mt=Math.min(ot,ft);st=Math.abs(ut-st),ot=Math.abs(ft-ot),a.beginPath(),a.rect(b,mt,st,ot),E!==null&&a.ng(E),x!==null&&(rt&&z&&sd(a),a.jk(),rt&&z&&Rd(a)),a.Se()}else if(b.type===yn.F)st=b.startX,ot=b.startY,ut=b.endX,ft=b.endY,b=Math.abs(ut-st)/2,mt=Math.abs(ft-ot)/2,st=Math.min(st,ut)+b,ot=Math.min(ot,ft)+mt,a.beginPath(),a.moveTo(st,ot-mt),a.bezierCurveTo(st+pe.wg*b,ot-mt,st+b,ot-pe.wg*mt,st+b,ot),a.bezierCurveTo(st+b,ot+pe.wg*mt,st+pe.wg*b,ot+mt,st,ot+mt),a.bezierCurveTo(st-pe.wg*b,ot+mt,st-b,ot+pe.wg*mt,st-b,ot),a.bezierCurveTo(st-b,ot-pe.wg*mt,st-pe.wg*b,ot-mt,st,ot-mt),a.closePath(),E!==null&&a.ng(E),x!==null&&(rt&&z&&sd(a),a.jk(),rt&&z&&Rd(a)),a.Se();else if(b.type===yn.o)for(b=b.figures,ot=b.length,mt=0;mt<ot;mt++){st=b.s[mt],a.beginPath(),a.moveTo(st.startX,st.startY),ut=st.segments.s,ft=ut.length;for(var yt=null,Ct=0;Ct<ft;Ct++){var Mt=ut[Ct];switch(Mt.type){case Ya:a.moveTo(Mt.endX,Mt.endY);break;case Do:a.lineTo(Mt.endX,Mt.endY);break;case ws:a.bezierCurveTo(Mt.point1X,Mt.point1Y,Mt.point2X,Mt.point2Y,Mt.endX,Mt.endY);break;case Fl:a.quadraticCurveTo(Mt.point1X,Mt.point1Y,Mt.endX,Mt.endY);break;case Na:if(Mt.radiusX===Mt.radiusY){var Vt=Math.PI/180;a.arc(Mt.point1X,Mt.point1Y,Mt.radiusX,Mt.startAngle*Vt,(Mt.startAngle+Mt.sweepAngle)*Vt,0>Mt.sweepAngle,yt!==null?yt.endX:st.startX,yt!==null?yt.endY:st.startY)}else if(yt=il(Mt,st),Vt=yt.length,Vt===0)a.lineTo(Mt.centerX,Mt.centerY);else for(var Rt=0;Rt<Vt;Rt++){var _t=yt[Rt];Rt===0&&a.lineTo(_t[0],_t[1]),a.bezierCurveTo(_t[2],_t[3],_t[4],_t[5],_t[6],_t[7])}break;case vl:if(Rt=Vt=0,yt!==null&&yt.type===Na){if(yt=il(yt,st),_t=yt.length,_t===0){a.lineTo(Mt.endX,Mt.endY);break}yt=yt[_t-1]||null,yt!==null&&(Vt=yt[6],Rt=yt[7])}else Vt=yt!==null?yt.endX:st.startX,Rt=yt!==null?yt.endY:st.startY;if(yt=nl(Mt,st,Vt,Rt),Vt=yt.length,Vt===0){a.lineTo(Mt.endX,Mt.endY);break}for(Rt=0;Rt<Vt;Rt++)_t=yt[Rt],a.bezierCurveTo(_t[2],_t[3],_t[4],_t[5],_t[6],_t[7]);break;default:be("Segment not of valid type: "+Mt.type)}Mt.isClosed&&a.closePath(),yt=Mt}ut=st.isFilled,z?st.isShadowed?(ut===!0&&E!=="transparent"&&E!==null&&a.ng(E,st.isEvenOdd),x!==null&&(ut&&rt&&sd(a),a.jk(),ut&&rt&&Rd(a))):(sd(a),ut&&E!=="transparent"&&E!==null&&a.ng(E,st.isEvenOdd),x!==null&&a.jk(),Rd(a)):(ut&&E!==null&&a.ng(E,st.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=Fi(),z.type===yn.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),Pg(a,y,E,x);else if(z.type===yn.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,st=rt.segments.s,ut=st.length,ft=0;ft<ut;ft++){switch(Ct=st[ft],Ct.type){case Ya:Pg(a,y,E,x),E.length=0,E.push(Ct.endX),E.push(Ct.endY),tt=Ct.endX,b=Ct.endY,ot=tt,mt=b;break;case Do:E.push(Ct.endX),E.push(Ct.endY),tt=Ct.endX,b=Ct.endY;break;case ws:pe.Qe(tt,b,Ct.point1X,Ct.point1Y,Ct.point2X,Ct.point2Y,Ct.endX,Ct.endY,.5,E),tt=Ct.endX,b=Ct.endY;break;case Fl:pe.ep(tt,b,Ct.point1X,Ct.point1Y,Ct.endX,Ct.endY,.5,E),tt=Ct.endX,b=Ct.endY;break;case Na:if(Mt=il(Ct,rt),yt=Mt.length,yt===0){E.push(Ct.centerX),E.push(Ct.centerY),tt=Ct.centerX,b=Ct.centerY;break}for(Vt=0;Vt<yt;Vt++)Rt=Mt[Vt],pe.Qe(tt,b,Rt[2],Rt[3],Rt[4],Rt[5],Rt[6],Rt[7],.5,E),tt=Rt[6],b=Rt[7];break;case vl:if(Mt=nl(Ct,rt,tt,b),yt=Mt.length,yt===0){E.push(Ct.endX),E.push(Ct.endY),tt=Ct.endX,b=Ct.endY;break}for(Vt=0;Vt<yt;Vt++)Rt=Mt[Vt],pe.Qe(tt,b,Rt[2],Rt[3],Rt[4],Rt[5],Rt[6],Rt[7],.5,E),tt=Rt[6],b=Rt[7];break;default:be("Segment not of valid type: "+Ct.type)}Ct.isClosed&&(E.push(ot),E.push(mt),Pg(a,y,E,x))}Pg(a,y,E,x)}else if(z.type===yn.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),Pg(a,y,E,x);else if(z.type===yn.F){if(b=new es,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,tt=new kr(Na),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=il(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],pe.Qe(tt,b,mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],.5,E),tt=mt[6],b=mt[7];Pg(a,y,E,x)}Ai(E),a.restore(),a.Vc(!1)}}}},xt.kk=function(a,y,x){return!fe.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)},xt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:fe.prototype.nk.call(this,a)},xt.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)}},xt.ga=function(a,y){if(y===void 0&&(y=new Zt),a instanceof yi){a.Mc()&&be("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},xt.mi=function(a){a===void 0&&(a=new We);var y=this.naturalBounds,x=this.oe;y=We.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=Zt.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),Pa(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),Pa(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),Pa(a,E.x,E.y,0,0),We.free(y),Zt.free(E),a},xt.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!==yn.j||y||(b+=2);var z=We.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return We.free(z),!1;if(E=b+1e-4,x.type===yn.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:(We.free(z),pe.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===yn.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 We.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),We.free(z),a}if(x.type===yn.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 We.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),We.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===yn.o)return We.free(z),this.fill===null?Wu(x,a.x,a.y,b):hh(x,a,b,1<this.strokeWidth,y);be("Unknown Geometry type: "+x.type)},xt.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 st=pe.Ze[rt];typeof st=="string"&&(st=pe.Ze[st]),typeof st=="function"?(ot=st(null,100,100),Lv[rt]=ot):be("Unsupported Figure: "+rt)}tt=ot.bounds}rt=tt.width,ot=tt.height,st=tt.width;var ut=tt.height;switch(Xl(this,!0)){case tn:E=x=0;break;case on:st=Math.max(a-z,0),ut=Math.max(y-z,0);break;case ui:st=Math.max(a-z,0),E=0;break;case Ei:x=0,ut=Math.max(y-z,0)}isFinite(b.width)&&(st=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),st=Math.min(ft.width,st),ut=Math.min(ft.height,ut),st=isFinite(st)?Math.max(x,st):Math.max(rt,x),ut=isFinite(ut)?Math.max(E,ut):Math.max(ot,E),x=Ev(this),x){case tn:break;case on:rt=st,ot=ut;break;case oi:x=Math.min(st/rt,ut/ot),isFinite(x)||(x=1),rt*=x,ot*=x;break;default:be(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&&pe.$(this.ua.Sk,a-z)&&pe.$(this.ua.Rk,y-z)||(this.ua=Ji.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),st+z,ut+z),b.w()?(st=b.width,ut=b.height,st=Math.min(ft.width,st),ut=Math.min(ft.height,ut),st=Math.max(mt.width,st),ut=Math.max(mt.height,ut),this.dc.h(0,0,st,ut)):this.dc.assign(tt)};function Ev(a){var y=a.geometryStretch;return a.Rd!==null?y===Gi?on:y:y===Gi?Lv[a.figure].defaultStretch:y}xt.eh=function(a,y,x,E){El(this,a,y,x,E)},xt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},xt.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,st=-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*st+ft,tt=a*ot+y*ut+mt,rt=x*rt+E*st+ft,ot=x*ot+E*ut+mt,ft=this.ig/2,st=this.ua,st===null&&(this.measure(1/0,1/0),st=this.ua);var yt=st.bounds;if(ut=!1,st.type===yn.j)if(1.5>=this.strokeWidth)ut=pe.Ve(st.startX,st.startY,st.endX,st.endY,z,tt,rt,ot,b);else{if(st.startX===st.endX?(E=ft,ut=0):(y=(st.endY-st.startY)/(st.endX-st.startX),ut=ft/Math.sqrt(1+y*y),E=ut*y),y=Fi(),a=new Zt,pe.Ve(st.startX+E,st.startY+ut,st.endX+E,st.endY+ut,z,tt,rt,ot,a)&&y.push(a),a=new Zt,pe.Ve(st.startX-E,st.startY-ut,st.endX-E,st.endY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Zt,pe.Ve(st.startX+E,st.startY+ut,st.startX-E,st.startY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Zt,pe.Ve(st.endX+E,st.endY+ut,st.endX-E,st.endY-ut,z,tt,rt,ot,a)&&y.push(a),rt=y.length,rt===0)return Ai(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);Ai(y)}else if(st.type===yn.u)ut=pe.Ff(yt.x-ft,yt.y-ft,yt.x+yt.width+ft,yt.y+yt.height+ft,z,tt,rt,ot,b);else if(st.type===yn.F){y=We.allocAt(yt.x,yt.y,yt.width,yt.height).Bc(ft,ft);t:if(y.width===0)ut=pe.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,rt,ot,b);else if(y.height===0)ut=pe.Ve(y.x,y.y,y.x+y.width,y.y,z,tt,rt,ot,b);else{if(a=y.width/2,st=y.height/2,E=y.x+a,ut=y.y+st,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+st*st-ot*ot){b.x=NaN,b.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+st*st-ot*ot),rt=(-(a*a*x*ot)+a*st*ft)/(st*st+a*a*x*x)+E,a=(-(a*a*x*ot)-a*st*ft)/(st*st+a*a*x*x)+E,st=x*(rt-E)+ot+ut,ot=x*(a-E)+ot+ut,Math.abs((z-rt)*(z-rt))+Math.abs((tt-st)*(tt-st))<Math.abs((z-a)*(z-a))+Math.abs((tt-ot)*(tt-ot))?(b.x=rt,b.y=st):(b.x=a,b.y=ot)}else{if(rt=st*st,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}We.free(y)}else if(st.type===yn.o){mt=Zt.alloc();var Ct=rt-z,Mt=ot-tt,Vt=Ct*Ct+Mt*Mt,Rt=z,_t=tt;if(0<Vt&&yt.contains(Rt,_t)&&(mt.x=Rt,mt.y=_t,this.ca(mt)))for(Ct!==0&&.5>Math.abs(Ct)?(Mt*=.5/Ct,Ct=.5):Mt!==0&&.5>Math.abs(Mt)&&(Ct*=.5/Mt,Mt=.5),Rt-=Ct,_t-=Mt;yt.contains(Rt,_t);)Rt-=Ct,_t-=Mt;for(b.x=rt,b.y=ot,Mt=0;Mt<st.figures.count;Mt++){var te=st.figures.s[Mt],ne=te.isFilled?Rt:z,ue=te.isFilled?_t:tt,Pe=te.segments;yt=te.startX,Ct=te.startY;for(var Mn=yt,ei=Ct,Kn=0;Kn<Pe.count;Kn++){var pn=Pe.s[Kn],qe=pn.type,ji=pn.endX,Ni=pn.endY,Xr=!1;switch(qe){case Ya:Mn=ji,ei=Ni;break;case Do:Xr=Bm(yt,Ct,ji,Ni,ne,ue,rt,ot,mt);break;case ws:Xr=pe.Eo(yt,Ct,pn.point1X,pn.point1Y,pn.point2X,pn.point2Y,ji,Ni,ne,ue,rt,ot,.6,mt);break;case Fl:Xr=pe.Eo(yt,Ct,yt+2/3*(pn.point1X-yt),Ct+2/3*(pn.point1Y-Ct),ji+2/3*(pn.point1X-ji),Ni+2/3*(pn.point1Y-Ni),ji,Ni,ne,ue,rt,ot,.6,mt);break;case Na:case vl:qe=pn.type===Na?il(pn,te):nl(pn,te,yt,Ct);var zo=qe.length;if(zo===0){Xr=Bm(yt,Ct,pn.type===Na?pn.centerX:pn.endX,pn.type===Na?pn.centerY:pn.endY,ne,ue,rt,ot,mt);break}for(Ni=null,ji=0;ji<zo;ji++){if(Ni=qe[ji],ji===0&&Bm(yt,Ct,Ni[0],Ni[1],ne,ue,rt,ot,mt)){var Ls=Tm(ne,ue,mt,Vt,b);Ls<Vt&&(Vt=Ls,ut=!0)}pe.Eo(Ni[0],Ni[1],Ni[2],Ni[3],Ni[4],Ni[5],Ni[6],Ni[7],ne,ue,rt,ot,.6,mt)&&(Ls=Tm(ne,ue,mt,Vt,b),Ls<Vt&&(Vt=Ls,ut=!0))}ji=Ni[6],Ni=Ni[7];break;default:be("Unknown Segment type: "+qe)}yt=ji,Ct=Ni,Xr&&(Xr=Tm(ne,ue,mt,Vt,b),Xr<Vt&&(Vt=Xr,ut=!0)),pn.isClosed&&(ji=Mn,Ni=ei,Bm(yt,Ct,ji,Ni,ne,ue,rt,ot,mt)&&(pn=Tm(ne,ue,mt,Vt,b),pn<Vt&&(Vt=pn,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,Zt.free(mt)}else be("Unknown Geometry type: "+st.type);return ut?(this.transform.Ga(b),!0):!1};function Tm(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 Bm(a,y,x,E,b,z,tt,rt,ot){if(pe.$(a,x)&&pe.$(y,E)||pe.$(b,tt)&&pe.$(z,rt))return!1;var st=!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||pe.$(ot.y,a))&&(ot.y<y||pe.$(ot.y,y))&&(st=!0)):(y=a<x?a:x,a=a<x?x:a,(ot.x>y||pe.$(ot.x,y))&&(ot.x<a||pe.$(ot.x,a))&&(st=!0)),st)}xt.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=Zt.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)))),Zt.free(z),b},xt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=er.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var tt=Zt.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 Zt.free(tt),!0;var rt=Zt.alloc(),ot=Zt.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,xf(this,tt,rt,ot)?y=!0:(tt.x=b,tt.y=a,tt.transform(x),xf(this,tt,rt,ot)?y=!0:(rt.x=E,rt.y=a,rt.transform(x),xf(this,tt,rt,ot)?y=!0:(tt.x=E,tt.y=z,tt.transform(x),xf(this,tt,rt,ot)&&(y=!0)))),Zt.free(tt),er.free(x),Zt.free(rt),Zt.free(ot),y};function xf(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)}xt.tx=function(a,y,x){function E(Vt,Rt){for(var _t=Vt.length,te=0;te<_t;te+=2)if(Rt.zd(Vt[te],Vt[te+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,st=tt.x+tt.width;if(tt=tt.y+tt.height,or(a.x,a.y,rt,ot)<=b&&or(a.x,a.y,st,ot)<=b&&or(a.x,a.y,rt,tt)<=b&&or(a.x,a.y,st,tt)<=b)return!0}if(rt=y.startX,ot=y.startY,st=y.endX,tt=y.endY,y.type===yn.j){if(x=(rt-st)*(a.x-st)+(ot-tt)*(a.y-tt),Ha(a.x,a.y,rt,ot,st,tt)<=(0<=(st-rt)*(a.x-rt)+(tt-ot)*(a.y-ot)&&0<=x?b:z))return!0}else{if(y.type===yn.u)return y=!1,x&&(y=Ha(a.x,a.y,rt,ot,rt,tt)<=b||Ha(a.x,a.y,rt,ot,st,ot)<=b||Ha(a.x,a.y,st,ot,st,tt)<=b||Ha(a.x,a.y,rt,tt,st,tt)<=b),y;if(y.type===yn.F){y=a.x-(rt+st)/2,z=a.y-(ot+tt)/2;var ut=Math.abs(st-rt)/2,ft=Math.abs(tt-ot)/2;if(ut===0||ft===0)return Ha(a.x,a.y,rt,ot,st,tt)<=b;if(x){if(a=pe.$y(ut,ft,y,z),a*a<=b)return!0}else return!(or(y,z,-ut,0)>=b||or(y,z,0,-ft)>=b||or(y,z,0,ft)>=b||or(y,z,ut,0)>=b)}else if(y.type===yn.o){if(st=y.bounds,z=st.x,rt=st.y,ot=st.x+st.width,st=st.y+st.height,a.x>ot&&a.x<z&&a.y>st&&a.y<rt&&Ha(a.x,a.y,z,rt,z,st)>b&&Ha(a.x,a.y,z,rt,ot,rt)>b&&Ha(a.x,a.y,ot,st,z,st)>b&&Ha(a.x,a.y,ot,st,ot,rt)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Wu(y,a.x,a.y,z):hh(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,st=0;st<ot;st++)switch(ft=rt[st],ft.type){case Ya:case Do:if(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b)return!1;break;case ws:var mt=Fi();if(pe.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,mt),tt=E(mt,a),Ai(mt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case Fl:if(mt=Fi(),pe.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,mt),tt=E(mt,a),Ai(mt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case Na:case vl:mt=ft.type===Na?il(ft,z):nl(ft,z,tt,ut);var yt=mt.length;if(yt===0){if(tt=ft.type===Na?ft.centerX:ft.endX,ut=ft.type===Na?ft.centerY:ft.endY,a.zd(tt,ut)>b)return!1;break}ft=null;for(var Ct=Fi(),Mt=0;Mt<yt;Mt++)if(ft=mt[Mt],Ct.length=0,pe.Qe(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.8,Ct),E(Ct,a))return Ai(Ct),!1;Ai(Ct),ft!==null&&(tt=ft[6],ut=ft[7]);break;default:be("Unknown Segment type: "+ft.type)}}return!0}}}return!1},xt.qc=function(){this.ua=null},xt.kq=function(){return this.ig};function mS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Ep,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=xs):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new yi(1-xs.x,xs.y)))}Ji.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=ud[a.toArrow];else a.fromArrow!=="None"?E=ud[a.fromArrow]:(E=pe.Ze[a.figure],typeof E=="string"&&(E=pe.Ze[E]),E===void 0&&be("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=pe.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function vS(a){var y=ud[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=ud[x],y===void 0){var E=null,b;for(b in pe.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=yn.parse(pe.um[E],!1),ud[E]=a,x!==E&&(ud[x]=E),E}}return typeof y=="string"?y:y instanceof yn?a:null}je.Object.defineProperties(Ji.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),Zs(this)&&(a=this.part,a!==null&&qo(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=yn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Zt.allocAt(-y.x,-y.y),Zt.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&&Gf(a,"Shape.fill"),a instanceof ho&&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&&Gf(a,"Shape.stroke"),a instanceof ho&&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 Wi(a,"value >= 0",Ji,"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"?Wi(a,'"butt", "round", or "square"',Ji,"strokeCap"):(Sf(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"?Wi(a,'"miter", "bevel", or "round"',Ji,"strokeJoin"):(Sf(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){Sf(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)||be("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&&(Sf(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=pe.Ze[a];typeof x=="function"?x=a:(x=pe.Ze[a.toLowerCase()])||be("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=vS(a);x===null?be("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Oc),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),mS(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=vS(a);x===null?be("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Oc),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),mS(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:vs},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Sf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:vs},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Sf(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&&(Sf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Gi},set:function(a){var y=this.geometryStretch;y!==a&&(Sf(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 hd),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&js(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 hd),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 hd),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 hd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Ji.prototype.intersectsRect=Ji.prototype.Yc,Ji.prototype.containedInRect=Ji.prototype.fh,Ji.prototype.getNearestIntersectionPoint=Ji.prototype.rs,Ji.prototype.getDocumentBounds=Ji.prototype.mi,Ji.prototype.getDocumentPoint=Ji.prototype.ga;var ud=new _i,Lv=new _i;Ji.className="Shape",Ji.getFigureGenerators=function(){var a=new ci,y;for(y in pe.Ze)y!==y.toLowerCase()&&a.add(y,pe.Ze[y]);return a.freeze(),a},Ji.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=pe.Ze;E[a]=y,E[x]=a},Ji.getArrowheadGeometries=function(){var a=new ci;for(E in pe.um)if(ud[E]===void 0){var y=yn.parse(pe.um[E],!1);ud[E]=y,y=E.toLowerCase(),y!==E&&(ud[y]=E)}for(var x in ud)if(x!==x.toLowerCase()){var E=ud[x];E instanceof yn&&a.add(x,E)}return a.freeze(),a},Ji.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=yn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||be("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=ud;E[a]=x,E[y]=a};function Av(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Gi,this.gg=this.fg=vs}Av.prototype.copy=function(){var a=new Av;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 jo(a,y){return fe.call(this),jm||(Jl=Fa?new eh(null).context:null,jm=!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}se(jo,fe),jo.prototype.cloneProtected=function(a){fe.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 Qh(a){a.da===null?a.da=new Tv:a.da.nc&&(a.da=a.da.copy())}xt=jo.prototype,xt.th=function(){fe.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function yS(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}xt.qb=function(a){a.classType===jo?this.wrap=a:fe.prototype.qb.call(this,a)},xt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},xt.v=function(){fe.prototype.v.call(this)},xt.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=vp(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 st=this.isStrikethrough;Ia(this,a,this.xc,!0,!1,x,E),(ot||st)&&Ia(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 fu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case Rr:a.translate(b,0),a.scale(-1,1);break;case ir:a.translate(0,z),a.scale(1,-1);break;case xo: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,st);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,st),E+=tt+ft}switch(this.flip){case Rr:a.scale(-1,1),a.translate(-b,0);break;case ir:a.scale(1,-1),a.translate(0,-z);break;case xo:a.scale(-1,-1),a.translate(-b,-z)}}},xt.Oj=function(a,y,x,E,b,z,tt,rt,ot,st,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=Om!==null?Om(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),st){rt=Im!==null?Im(this,z):.8*z,ot=x+ft,st=E+rt,b=x+ft+tt,rt=E+rt;var mt=a;y.beginPath(),y.lineWidth=mt,y.moveTo(ot,st),y.lineTo(b,rt),y.stroke(),y.Se(),y instanceof fu&&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 fu&&y.ad.classList.add("gojs-td"))}},xt.kk=function(a,y,x){if(!fe.prototype.kk.call(this,a,y,x))return!1;if(Ia(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},xt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:fe.prototype.nk.call(this,a)},xt.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)}},xt.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Jl!==null&&LS!==z&&(LS=Jl.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 st=z.indexOf(`
`,rt);st===-1&&(st=z.length,ot=!0),rt=z.substr(rt,st-rt),this.formatting===yp&&(rt=rt.trim()),tt=Math.max(tt,mh(rt)),rt=st+1}z=tt}else tt=z.indexOf(`
`,0),0<=tt&&(z=z.substr(0,tt)),z=mh(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=xS(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===Rm&&(y=this.Ae,y=this.overflow===Rm?SS(y):0,st=this.spacingAbove+this.spacingBelow,st=Math.max(0,vp(this)+st),ot=Math.min(this.maxLines-1,Math.max(Math.floor(ot/st+.01)-1,0)),!(ot+1>=this.Qb.length))){for(this.l|=16777216,st=this.Qb[ot],y=Math.max(1,a-y);mh(st)>y&&1<st.length;)st=st.substr(0,st.length-1);st+=Sp,y=mh(st),this.Qb[ot]=st,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===wS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),tt=Math.max(E,tt),gl(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},xt.eh=function(a,y,x,E){El(this,a,y,x,E)};function mp(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 bv(a,y,x,E){var b=a.formatting===yp;b&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,vp(a)+rt);var ot=a.overflow===Rm?SS(tt):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,rt);else if(tt=y,a.wrap===Mv){a.Le=1;var st=mh(y);if(ot===0||st<=x)a.Cb=Math.max(a.Cb,st),mp(a,y,a.Cb),E!==null&&E.h(st,rt);else{for(z=Cg(a,tt),tt=tt.substr(z.length),y=Cg(a,tt),st=mh(z+y);0<y.length&&st<=x;)z+=y,tt=tt.substr(y.length),y=Cg(a,tt),st=z+y,b&&(st=st.trim()),st=mh(st);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-ot);mh(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Sp;var ut=mh(z);a.Cb=ut,mp(a,z,ut),E!==null&&E.h(ut,rt)}}else{for(ot=0,tt.length===0&&(ot=1,mp(a,tt,0));0<tt.length;){for(y=Cg(a,tt),tt=tt.substr(y.length);mh(y)>x;){var ft=1;for(st=mh(y.substr(0,ft)),ut=0;st<=x;)ft++,ut=st,st=mh(y.substr(0,ft));if(ft===1){var mt=st;z=Math.max(z,st)}else mt=ut,z=Math.max(z,ut);if(ft--,1>ft&&(ft=1),mp(a,y.substr(0,ft),mt),ot++,y=y.substr(ft),a.Gc+ot>a.maxLines)break}for(ut=Cg(a,tt),st=mh(y+ut);0<ut.length&&st<=x;)y+=ut,tt=tt.substr(ut.length),ut=Cg(a,tt),st=y+ut,b&&(st=st.trim()),st=mh(st);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ut.length===0?(ft=st,z=Math.max(z,st)):(ft=ut=mh(y),z=Math.max(z,ut)),mp(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 Cg(a,y){if(a.wrap===PS)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===CS&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function mh(a){return Jl===null?8*a.length:Jl.measureText(a).width}function vp(a){if(a.df!==null)return a.df;var y=a.Ae;if(Jl===null){var x=16;return a.df=x}return Nv[y]!==void 0&&5e3>ES?x=Nv[y]:(x=1.3*Jl.measureText("M").width,Nv[y]=x,ES++),a.df=x}function SS(a){if(Jl===null)return 6;if(zm[a]!==void 0&&5e3>Dv)var y=zm[a];else y=Jl.measureText(Sp).width,zm[a]=y,Dv++;return y}function xS(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,vp(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!==Mv){a.Le=0;var ot=$e.alloc();bv(a,z,y,ot),b+=ot.height,$e.free(ot),a.Gc+=a.Le}else bv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=tt+1}return a.Lq=b}je.Object.defineProperties(jo.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"||(Qh(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:tn},set:function(a){var y=this.flip;y!==a&&(Qh(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Ad},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Qh(this),this.da.Yr=a,Tl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=$e.alloc();bv(this,this.ec,999999,a);var y=a.width;$e.free(a),a=xS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),gl(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&&(Qh(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Fv},set:function(a){var y=this.overflow;y!==a&&(Qh(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&&Gf(a,"TextBlock.stroke"),a instanceof ho&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return vp(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&&(Qh(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&&(Qh(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 hd),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 hd),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 hd),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 hd),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 hd),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&&(Qh(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&&(Qh(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&&(Qh(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&&(Qh(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:yp},set:function(a){var y=this.formatting;y!==a&&(Qh(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&&Wi(a,"> 0",jo,"maxLines"),Qh(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 Om=null,Im=null,Mv=new Te(jo,"None",0),wS=new Te(jo,"WrapFit",1),kv=new Te(jo,"WrapDesiredSize",2),PS=new Te(jo,"WrapBreakAll",3),Fv=new Te(jo,"OverflowClip",0),Rm=new Te(jo,"OverflowEllipsis",1),yp=new Te(jo,"FormatTrim",0),CS=new Te(jo,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Nv=new _i,ES=0,zm=new _i,Dv=0,Sp="...",LS="",Jl=null,jm=!1;jo.className="TextBlock";function Tv(){this.nc=!1,this.Hd=null,this.Xf=tn,this.gq=yp,this.Jq=1/0,this.$q=Fv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Ad,this.$r=kv}Tv.prototype.copy=function(){var a=new Tv;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},jo.getEllipsis=function(){return Sp},jo.setEllipsis=function(a){Sp=a,zm=new _i,Dv=0},jo.getBaseline=function(){return Om},jo.setBaseline=function(a){Om=a},jo.getUnderline=function(){return Im},jo.setUnderline=function(a){Im=a},jo.isValidFont=function(a){if(jm||(Jl=Fa?new eh(null).context:null,jm=!0),Jl===null)return!0;var y=Jl.font;if(a===y||a==="10px sans-serif")return!0;Jl.font="10px sans-serif",Jl.font=a;var x=Jl.font;if(x!=="10px sans-serif")return Jl.font=y,!0;Jl.font="19px serif";var E=Jl.font;return Jl.font=a,x=Jl.font,Jl.font=y,x!==E},jo.FormatNone=CS,jo.FormatTrim=yp,jo.None=Mv,jo.OverflowClip=Fv,jo.OverflowEllipsis=Rm,jo.WrapBreakAll=PS,jo.WrapDesiredSize=kv,jo.WrapFit=wS;function hd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}hd.prototype.copy=function(){var a=new hd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},hd.className="GradElementSettings";function Ql(a,y){fe.call(this),this.Eg=null,this.qo="",this.Xg=Ca,this.Nk=on,this.Zg=this.Hd=null,this.Mk=$r,this.Xf=tn,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 Eg;se(Ql,fe),Ql.prototype.cloneProtected=function(a){fe.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},Ql.prototype.qb=function(a){a===tn||a===oi||a===wr?this.imageStretch=a:fe.prototype.qb.call(this,a)},Ql.prototype.toString=function(){return"Picture("+this.source+")#"+xa(this)};function Lg(a){a===void 0&&(a=""),a!==""?Eg[a]&&(delete Eg[a],Wm--):(Eg=new _i,Wm=0)}function AS(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()||(us(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=Fi();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);Ai(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Ql.prototype.hA=function(){if(this.source!==""){Lg(this.source);var a=this.source;this.source="",this.source=a}},Ql.prototype.redraw=function(){this.N(),this.Uc=!0},Ql.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 vf)){var b=a instanceof fu;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 st=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,Ct=this.Mk;switch(yt){case tn:if(this.sourceRect.w())break;ft>=E.width&&(z=z+Ct.offsetX+(ft*Ct.x-E.width*Ct.x)),mt>=E.height&&(tt=tt+Ct.offsetY+(mt*Ct.y-E.height*Ct.y)),ot=Math.min(E.width,ft),rt=Math.min(E.height,mt);break;case on:ft=E.width,mt=E.height;break;case oi:case wr:yt===oi?(yt=Math.min(E.height/mt,E.width/ft),ft*=yt,mt*=yt):yt===wr&&(yt=Math.max(E.height/mt,E.width/ft),ft*=yt,mt*=yt,ft>=E.width&&(z=(z+Ct.offsetX+(ft*Ct.x-E.width*Ct.x)/ft)*ot),mt>=E.height&&(tt=(tt+Ct.offsetY+(mt*Ct.y-E.height*Ct.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,Vt=ot*rt/Mt,Rt=x.__goCache;yt=null;var _t=xx;if(!b){if(x.sq&&Rt!==void 0&&4<Mt&&Vt>_t*_t)for(Rt.gi===null&&(MS(Rt,4,st,ut,x),MS(Rt,16,st,ut,x)),b=Rt.gi,st=b.length,ut=0;ut<st&&b[ut].ratio*b[ut].ratio<Vt;ut++)yt=b[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new eh(null).context;try{b.drawImage(this.Eg,0,0)}catch(te){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(te){this.vl=!0}}if(this.vl)return}}switch(b=ft<E.width?Ct.offsetX+(E.width*Ct.x-ft*Ct.x):0,Ct=mt<E.height?Ct.offsetY+(E.height*Ct.y-mt*Ct.y):0,this.flip){case Rr:a.translate(Math.min(E.width,ft),0),a.scale(-1,1);break;case ir:a.translate(0,Math.min(E.height,mt)),a.scale(1,-1);break;case xo:a.translate(Math.min(E.width,ft),Math.min(E.height,mt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Rt!==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,Ct,Math.min(E.width,ft),Math.min(E.height,mt)),a instanceof fu&&(this.bt=[z/y,tt/y,Math.min(yt.source.width,ot/y),Math.min(yt.source.height,rt/y),b,Ct,Math.min(E.width,ft),Math.min(E.height,mt)])}catch(te){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,ot,rt,b,Ct,Math.min(E.width,ft),Math.min(E.height,mt)),a instanceof fu&&(this.bt=[z,tt,ot,rt,b,Ct,Math.min(E.width,ft),Math.min(E.height,mt)])}catch(te){this.en=!1}switch(this.flip){case Rr:a.scale(-1,1),a.translate(-Math.min(E.width,ft),0);break;case ir:a.scale(1,-1),a.translate(0,-Math.min(E.height,mt));break;case xo:a.scale(-1,-1),a.translate(-Math.min(E.width,ft),-Math.min(E.height,mt))}}}}},Ql.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=Xl(this,!0),tt=this.Eg,rt=this.qn,ot=0,st=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,st=rt?+tt.height:tt.naturalHeight),isFinite(b.width)||z===on||z===ui?(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===on||z===Ei?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:tt!==null&&(y=st)),E=0):tt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:st),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)),gl(this.dc,a,y),this.Ge(0,0,a,y)},Ql.prototype.eh=function(a,y,x,E){El(this,a,y,x,E)},je.Object.defineProperties(Ql.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||be("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&Zh(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new sn),E!==null&&x&&eu(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()||(us(this,!1),this.v())):x&&AS(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=Eg;if(Fa){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<Wm&&(Lg(),x=Eg),E=Cn("img"),E.hn=!0,AS(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,Wm++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new bS),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}}}),Ql.prototype.redraw=Ql.prototype.redraw,Ql.prototype.reloadSource=Ql.prototype.hA;var Wm=0,xx=4;Ql.className="Picture",Eg=new _i,Ql.clearCache=Lg;function bS(){this.gi=null}function MS(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new eh(null),tt=z.context,rt=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new kS(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))}bS.className="PictureCacheArray";function kS(a,y){this.source=a,this.ratio=y}kS.className="PictureCacheInstance";function Ag(){this.os=new yn,this.mc=null}Ag.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new yn,this.mc=null};function bg(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()}Ag.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new kr(Ya);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},Ag.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new kr(Do);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function hc(a,y,x,E,b,z,tt){var rt;rt===void 0&&(rt=!1);var ot=new kr(ws);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 Hm(a,y,x,E,b){var z;z===void 0&&(z=!1);var tt=new kr(Fl);tt.point1X=y,tt.point1Y=x,tt.endX=E,tt.endY=b,z&&tt.close(),a.mc.segments.add(tt)}Ag.prototype.arcTo=function(a,y,x,E,b,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var rt=new kr(Na);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 kr(vl,tt,rt,y,x,E,b,z),ot&&y.close(),a.mc.segments.add(y)}function FS(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new Ag,y.reset(a),y)}var Gm=null;Ag.className="StreamGeometryContext";function cl(a,y){var x=a.toLowerCase(),E=pe.Ze;E[a]=y,E[x]=a}cl("Rectangle",function(a,y,x){a="r"+y+","+x;var E=pe.Mf[a];return E!==void 0||(E=new yn(yn.u),E.endX=y,E.endY=x,pe.Nf<pe.vm&&(pe.Mf[a]=E,pe.Nf++)),E}),cl("Square",function(a,y,x){a="s"+y+","+x;var E=pe.Mf[a];return E!==void 0||(E=new yn(yn.u),E.endX=y,E.endY=x,E.defaultStretch=oi,pe.Nf<pe.vm&&(pe.Mf[a]=E,pe.Nf++)),E}),cl("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=pe.Mf[E];if(b!==void 0)return b;var z=a*pe.wg;return b=new yn().add(new es(a,0,!0).add(new kr(Do,y-a,0)).add(new kr(ws,y,a,y-z,0,y,z)).add(new kr(Do,y,x-a)).add(new kr(ws,y-a,x,y,x-z,y-z,x)).add(new kr(Do,a,x)).add(new kr(ws,0,x-a,z,x,0,x-z)).add(new kr(Do,0,a)).add(new kr(ws,a,0,0,z,z,0).close())),1<z&&(b.spot1=new yi(0,0,z,z),b.spot2=new yi(1,1,-z,-z)),pe.Nf<pe.vm&&(pe.Mf[E]=b,pe.Nf++),b}),cl("Border","RoundedRectangle"),cl("Ellipse",function(a,y,x){a="e"+y+","+x;var E=pe.Mf[a];return E!==void 0||(E=new yn(yn.F),E.endX=y,E.endY=x,E.spot1=bd,E.spot2=el,pe.Nf<pe.vm&&(pe.Mf[a]=E,pe.Nf++)),E}),cl("Circle",function(a,y,x){a="c"+y+","+x;var E=pe.Mf[a];return E!==void 0||(E=new yn(yn.F),E.endX=y,E.endY=x,E.spot1=bd,E.spot2=el,E.defaultStretch=oi,pe.Nf<pe.vm&&(pe.Mf[a]=E,pe.Nf++)),E}),cl("TriangleRight",function(a,y,x){return new yn().add(new es(0,0).add(new kr(Do,y,.5*x)).add(new kr(Do,0,x).close())).pm(0,.25,.5,.75)}),cl("TriangleDown",function(a,y,x){return new yn().add(new es(0,0).add(new kr(Do,y,0)).add(new kr(Do,.5*y,x).close())).pm(.25,0,.75,.5)}),cl("TriangleLeft",function(a,y,x){return new yn().add(new es(y,x).add(new kr(Do,0,.5*x)).add(new kr(Do,y,0).close())).pm(.5,.25,1,.75)}),cl("TriangleUp",function(a,y,x){return new yn().add(new es(y,x).add(new kr(Do,0,x)).add(new kr(Do,.5*y,0).close())).pm(.25,.5,.75,1)}),cl("Triangle","TriangleUp"),cl("Diamond",function(a,y,x){return new yn().add(new es(.5*y,0).add(new kr(Do,0,.5*x)).add(new kr(Do,.5*y,x)).add(new kr(Do,y,.5*x).close())).pm(.25,.25,.75,.75)}),cl("LineH",function(a,y,x){return a=new yn(yn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),cl("LineV",function(a,y,x){return a=new yn(yn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),cl("None","Rectangle"),cl("BarH","Rectangle"),cl("BarV","Rectangle"),cl("MinusLine","LineH"),cl("PlusLine",function(a,y,x){return new yn().add(new es(0,x/2,!1).add(new kr(Do,y,x/2)).add(new kr(Ya,y/2,0)).add(new kr(Do,y/2,x)))}),cl("XLine",function(a,y,x){return new yn().add(new es(0,x,!1).add(new kr(Do,y,0)).add(new kr(Ya,0,0)).add(new kr(Do,y,x)))}),cl("LineRight",function(a,y,x){return new yn().add(new es(.25*y,0,!1).add(new kr(Do,.75*y,.5*x)).add(new kr(Do,.25*y,x)))}),cl("LineDown",function(a,y,x){return new yn().add(new es(0,.25*x,!1).add(new kr(Do,.5*y,.75*x)).add(new kr(Do,y,.25*x)))}),cl("LineLeft",function(a,y,x){return new yn().add(new es(.75*y,0,!1).add(new kr(Do,.25*y,.5*x)).add(new kr(Do,.75*y,x)))}),cl("LineUp",function(a,y,x){return new yn().add(new es(0,.75*x,!1).add(new kr(Do,.5*y,.25*x)).add(new kr(Do,y,.75*x)))}),pe.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 Bv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=_s,this.ir=null,this.jr="",this.lr=vs,this.Gq="",this.Hq=ms,this.Pq=uu,this.Kq=hu,this.Up=null,this.Cq=127,this.zr=Xs,this.yr="gray",this.Vg=4}Bv.prototype.copy=function(){var a=new Bv;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 pi(a,y){a===void 0||a instanceof fs||typeof a=="string"?ln.call(this,a):(ln.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 Zt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new We,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}se(pi,ln),pi.prototype.cloneProtected=function(a){ln.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},xt=pi.prototype,xt.Af=function(a){ln.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},xt.toString=function(){var a=zi(this.constructor)+"#"+xa(this);return this.data!==null&&(a+="("+Jr(this.data)+")"),a};function ql(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}xt.th=function(){ln.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},xt.gk=function(a,y,x,E,b,z,tt){var rt=this.diagram;rt!==null&&(a===ba&&y==="elements"?b instanceof ln?yf(b,function(ot){sy(rt.partManager,ot),ku(rt,ot)}):eu(rt,b):a===Ra&&y==="elements"&&(b instanceof ln?yf(b,function(ot){ly(rt.partManager,ot,rt)}):Zh(rt,b)),rt.cb(a,y,x,E,b,z,tt))},xt.La=function(a){if(ln.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 ln&&yf(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},pi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},pi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},pi.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 ci),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)))}}},pi.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)}},pi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Fi();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Ai(y)}},pi.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 Hi?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Hr))break t;nh(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=ln.Link),x.adornedObject=y)}if(x!==null){x.type===ln.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},pi.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Ov(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 Km(a){if(Ic(a)===!1){Rv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function NS(a){if(a.G|=2097152,Ic(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||BS(a,y,x),x=a.Ib;var E=We.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),We.free(E),Rv(a,!1)}}pi.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new er);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},pi.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=$r;this.locationSpot.sb()&&(z=this.locationSpot);var tt=Zt.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),Zt.free(tt)}},pi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},pi.prototype.moveTo=function(a,y,x){a=Zt.allocAt(a,y),this.move(a,x),Zt.free(a)},pi.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())},pi.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())},pi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new ci),y.I(a)!==null)return y.I(a);var x=ln.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function dc(a,y,x,E){E===void 0&&(E=new Zt),x=x.Mc()?$r: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}pi.prototype.mi=function(a){return a===void 0&&(a=new We),a.assign(this.actualBounds)},pi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function DS(a){var y=Zt.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof Ji?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 wf(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=uS(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}pi.prototype.arrange=function(){if(Bl(this)===!1)NS(this);else{ad(this,!1);var a=this.Ib,y=We.alloc();y.assign(a);var x=Rc(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;BS(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()||pe.B(y.width,a.width)&&pe.B(y.height,a.height)||0<=this.vw&&this.C(16),We.free(y),Rv(this,!1)}},xt=pi.prototype,xt.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=We.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),We.free(b)}!(this.G&65536)&&a.D(y)||RS(this,E,x),x.N(),!a.w()&&!y.w()||is(a,y)||(this instanceof Bn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},xt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&TS(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 Zt(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),Ic(this)===!1&&Bl(this)===!1&&(Km(this),NS(this)),!0};function TS(a,y,x,E,b){y===null||a instanceof Hr||(y=y.animationManager,y.zb&&oa(y,a,new Zt(E,b),x))}xt.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;Ic(this)||Bl(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)}Km(this)},xt.Av=function(){this.G&=-2097153,Km(this)};function BS(a,y,x){var E=DS(a),b=a.diagram,z=x.w(),tt=y.w();z&&tt?a.G&2097152?OS(a,y,x,b,E):IS(a,y,x,b,E):z?OS(a,y,x,b,E):tt&&IS(a,y,x,b,E),a.G|=2097152,Zt.free(E),a.Uk()}function OS(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 Hr||oa(x,a,new Zt(z,tt),y),E||y.x===z&&y.y===tt||a.g("position",new Zt(z,tt),y.copy()))}function IS(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 RS(a,y,x){zv(a,!1),a instanceof Bn&&rc(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?Rc(a)?(Ch(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}xt.si=function(){return!0},xt.Zc=function(){return!0},xt.ph=function(){return!1},xt.Dd=function(){return!0};function Iv(a,y,x,E){y.constructor===a.constructor||WS||(WS=!0,Er('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),Er(" Old class: "+zi(a.constructor)+", new class: "+zi(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,st=!1;a instanceof Bn&&(rt=a.isTreeLeaf,ot=a.isTreeExpanded,st=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 Bn&&(a.U=rt?a.U|4:a.U&-5,a.U=ot?a.U|1:a.U&-2,a.U=st?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)}pi.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},pi.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},pi.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},pi.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},pi.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},pi.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},pi.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},pi.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},pi.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 Ic(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 Rc(a){return(a.G&131072)!==0}xt=pi.prototype,xt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Vm(a,y){a.G=y?a.G|1048576:a.G&-1048577}xt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},xt.N=function(){var a=this.diagram;a!==null&&!Bl(this)&&!Ic(this)&&this.isVisible()&&this.Ib.w()&&a.N(wf(this,this.Ib))},xt.v=function(){ln.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Bn&&this.labeledLink!==null&&Tl(this.labeledLink),a.$b(!0))},xt.Vo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},xt.Wo=function(a){a||(a=this.Ah,a!==null&&Uv(a,this))},xt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},xt.oz=function(){return jv(this,this)};function jv(a,y){var x=y.containingGroup;return x!==null?1+jv(a,x):y instanceof Bn&&(y=y.labeledLink,y!==null)?jv(a,y):0}xt.sz=function(){return zS(this,this)};function zS(a,y){var x=y.containingGroup;return x!==null||y instanceof Bn&&(x=y.labeledLink,x!==null)?zS(a,x):y}xt.Td=function(a){return a instanceof Hi?Wv(this,this,a):!1};function Wv(a,y,x){if(y===x||x===null)return!1;var E=y.containingGroup;return E===null||E!==x&&!Wv(a,E,x)?y instanceof Bn&&(y=y.labeledLink,y!==null)?Wv(a,y,x):!1:!0}xt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Hi&&Vm(y,!0),y instanceof Bn){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 Bn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Hi&&Vm(y,!1),y instanceof Bn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},pi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Bn&&this.isLinkLabel)},pi.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 Bn&&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 jS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function zc(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Hr)){if(a.add(y),y instanceof Bn){if(x&&y instanceof Hi)for(var tt=y.memberParts;tt.next();)zc(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,st=rt.toNode;ot=ot===null||a.contains(ot),st=st===null||a.contains(st),(b?ot&&st:ot||st)&&zc(a,rt,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)zc(a,y.value,x,E-1,b,z)}else if(y instanceof mn)for(y=y.labelNodes;y.next();)zc(a,y.value,x,E,b,z)}}je.Object.defineProperties(pi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Co: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(Ra,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(ba,"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&&(ql(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&&Ss(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 Hr?this.type!==ln.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:uu},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),ql(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:hu},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),ql(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&&(ql(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:ms},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),ql(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,Bl(this)===!1&&(Km(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)),TS(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 Hr)){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 Hr?this instanceof Hr&&(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&&(nh(x),x=x.copy(),x!==null&&Iv(this,x,y,a))):(z!==null&&z.jm(E,a),x=d1(x.partManager,E,a),x!==null&&(nh(x),x=x.copy(),x===null||x instanceof mn||(E=this.location.copy(),Iv(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){Iv(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&&(ql(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&&(ql(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&&(ql(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 mn?(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&&(ql(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&&(ql(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&&(ql(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:_s},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ql(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&&(ql(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&&(ql(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:vs},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ql(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&&be("Cannot make a Group a member of itself: "+this.toString()),be("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Uv(y,this):this instanceof Hi&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Vv(a,this):this instanceof Hi&&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 Hi){for(x=new sn,zc(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Bn)for(E=E.linksConnected;E.next();)Mg(E.value)}if(this instanceof Bn){for(x=this.linksConnected;x.next();)Mg(x.value);x=this.labeledLink,x!==null&&Mg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Ss(y,-1,a))}}else be("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&&(ql(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Bn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ql(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&&(ql(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Xs},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ql(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&&(ql(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&&(ql(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),pi.prototype.invalidateLayout=pi.prototype.C,pi.prototype.findCommonContainingGroup=pi.prototype.px,pi.prototype.isMemberOf=pi.prototype.Td,pi.prototype.findTopLevelPart=pi.prototype.sz,pi.prototype.findSubGraphLevel=pi.prototype.oz,pi.prototype.ensureBounds=pi.prototype.Va,pi.prototype.getDocumentBounds=pi.prototype.mi,pi.prototype.findObject=pi.prototype.fb,pi.prototype.moveTo=pi.prototype.moveTo,pi.prototype.invalidateAdornments=pi.prototype.Wb,pi.prototype.clearAdornments=pi.prototype.Ej,pi.prototype.removeAdornment=pi.prototype.Jf,pi.prototype.addAdornment=pi.prototype.bh,pi.prototype.findAdornment=pi.prototype.Pj,pi.prototype.updateTargetBindings=pi.prototype.La;var WS=!1;pi.className="Part",pi.LayoutNone=0,pi.LayoutAdded=1,pi.LayoutRemoved=2,pi.LayoutShown=4,pi.LayoutHidden=8,pi.LayoutNodeSized=16,pi.LayoutGroupLayout=32,pi.LayoutNodeReplaced=64,pi.LayoutStandard=127,pi.LayoutAll=16777215;function Hr(a,y){a===void 0||a instanceof fs||typeof a=="string"?pi.call(this,a):(pi.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)}se(Hr,pi),Hr.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Hr.prototype.updateRelationshipsFromData=function(){},Hr.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof mn&&y instanceof Ji){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 Ji&&(b.ua=a)}}},Hr.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Bl(a))},Hr.prototype.Zc=function(){return!1},Hr.prototype.gk=function(a,y,x,E,b,z,tt){if(a===ba&&y==="elements"){if(b instanceof Il)this.$a===null&&(this.$a=b);else if(b instanceof ln){var rt=b.Nl(function(ot){return ot instanceof Il});rt instanceof Il&&this.$a===null&&(this.$a=rt)}}else a===Ra&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ln&&this.$a.rg(E)&&(this.$a=null));pi.prototype.gk.call(this,a,y,x,E,b,z,tt)},Hr.prototype.updateAdornments=function(){},Hr.prototype.Lj=function(){},je.Object.defineProperties(Hr.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}}}),Hr.className="Adornment";function Hv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=wd,this.er=Ym,this.Kr=this.ij=this.Nq=this.Mq=null}Hv.prototype.copy=function(){var a=new Hv;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 Bn(a,y){a===void 0||a instanceof fs||typeof a=="string"?pi.call(this,a):(pi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new vn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}se(Bn,pi),Bn.prototype.cloneProtected=function(a){pi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},xt=Bn.prototype,xt.Af=function(a){pi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function cc(a){a.Ba===null?a.Ba=new Hv:a.Ba.nc&&(a.Ba=a.Ba.copy())}xt.th=function(){pi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function HS(a,y){y!==null&&(a.af===null&&(a.af=new sn),a.af.add(y))}function GS(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}xt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=GS(this,a,y,x),a!==null&&a.Sl()},xt.gk=function(a,y,x,E,b,z,tt){a===ba&&y==="elements"?this.wc=null:a===Ra&&y==="elements"&&(this.wc=null),pi.prototype.gk.call(this,a,y,x,E,b,z,tt)},xt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(gu(x.fromPort),gu(x.toPort),x.bb())}};function KS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(gu(x.fromPort),gu(x.toPort),x.bb())}}function gu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||gu(y.port)}}xt.si=function(){return!0},Bn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Bn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Bn.prototype.isVisible=function(){if(!pi.prototype.isVisible.call(this))return!1;var a=!0,y=ac,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===ac){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===ls){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===fg&&(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},Bn.prototype.Zb=function(a){pi.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)}},Bn.prototype.qx=function(){var a=new sn,y=new sn;return VS(this,this,a,y),y.iterator};function VS(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)&&VS(a,b?tt.toNode:tt.fromNode,x,E):E.add(tt)})}}Bn.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new io(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},xt=Bn.prototype,xt.Mo=function(a){a===void 0&&(a=null);var y=new io(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},xt.Sd=function(a){a===void 0&&(a=null);var y=new io(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},xt.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 sn,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 sn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Qr(x):Co},xt.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 sn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Qr(x):Co},xt.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 sn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Qr(x):Co},xt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new io(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},xt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new io(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 Um(a,y,x){gu(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 Zm(a,y,x){gu(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)):xp(y)))}function xp(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}}}Bn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},xt=Bn.prototype,xt.Vo=function(a){pi.prototype.Vo.call(this,a),a||(xp(this),a=this.Yk,a!==null&&$S(a,this))},xt.Wo=function(a){pi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},xt.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,pi.prototype.Lj.call(this)},xt.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;US(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function US(a){a.wc===null?a.wc=new ci:a.wc.clear(),a.qm(a,function(y,x){ZS(y,x)}),a.wc.count===0&&a.wc.add("",a)}function ZS(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Gv(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=Fi()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Ai(x)}}}xt.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},xt.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}},xt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Vm(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;)Vm(y,!1),y=y.pg();return x},xt.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},xt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Bn)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},xt.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 sn;return a(this,y),y},xt.uz=function(){return YS(this,this)};function YS(a,y){return y=y.pg(),y===null?0:1+YS(a,y)}xt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new io(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},xt.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 vn,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 vn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Qr(x):Co},xt.wz=function(a){a===void 0&&(a=1/0);var y=new sn;return zc(y,this,!1,a,!0),y},Bn.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 sn;x.add(this),XS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===ac),y.Ue=!1}};function XS(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),XS(ot,y,x,E-1,b,z,tt)))}else JS(a,y,x,b,z,tt)}function JS(a,y,x,E,b,z){for(var tt=b===a?!0:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),ot={};rt.next();){var st=rt.value;if(st.isTreeLink&&(st=st.To(a),st!==null&&st!==a)){var ut=y.contains(st);if(ut||y.add(st),tt){var ft=x?st.Oo():st.Po();ot.uv=a,ft.all(function(mt){return function(yt){return yt===mt.uv||!yt.isTreeExpanded}}(ot))&&E.Aj(st,b),st.oh(),st.Zb(!1)}st.isTreeExpanded&&(st.wasTreeExpanded=st.isTreeExpanded,ut||JS(st,y,x,E,b,z))}ot={uv:ot.uv}}a.isTreeExpanded=!1}Bn.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 sn;x.add(this),QS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===ac),y.Ue=!1}};function QS(a,y,x,E,b,z,tt){for(var rt=z===a?!1:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),st={};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();st.vv=a,ft.all(function(mt){return function(yt){return yt===mt.vv||!yt.isTreeExpanded}}(st))&&b.Cj(ut,z)}(2<E||ut.wasTreeExpanded)&&(ut.wasTreeExpanded=!1,QS(ut,y,x,E-1,b,z,tt))}st={vv:st.vv}}a.isTreeExpanded=!0}je.Object.defineProperties(Bn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Ym},set:function(a){var y=this.portSpreading;y!==a&&(cc(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&&rc(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:wd},set:function(a){typeof a=="number"&&(a=new Qi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),cc(this),this.Ba.yp=a;var x=this.diagram;x!==null&&rc(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&&(cc(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&&(cc(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&&(cc(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&&($S(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),Tl(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&US(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&&(cc(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))}}}),Bn.prototype.expandTree=Bn.prototype.expandTree,Bn.prototype.collapseTree=Bn.prototype.collapseTree,Bn.prototype.findTreeParts=Bn.prototype.wz,Bn.prototype.findTreeChildrenNodes=Bn.prototype.Ou,Bn.prototype.findTreeChildrenLinks=Bn.prototype.Qo,Bn.prototype.findTreeLevel=Bn.prototype.uz,Bn.prototype.findTreeParentChain=Bn.prototype.vz,Bn.prototype.findTreeParentNode=Bn.prototype.pg,Bn.prototype.findTreeParentLink=Bn.prototype.kh,Bn.prototype.findCommonTreeParent=Bn.prototype.gz,Bn.prototype.findTreeRoot=Bn.prototype.xz,Bn.prototype.isInTreeOf=Bn.prototype.Nz,Bn.prototype.findPort=Bn.prototype.ns,Bn.prototype.findLinksTo=Bn.prototype.kz,Bn.prototype.findLinksBetween=Bn.prototype.jz,Bn.prototype.findNodesInto=Bn.prototype.Oo,Bn.prototype.findNodesOutOf=Bn.prototype.Po,Bn.prototype.findNodesConnected=Bn.prototype.Mu,Bn.prototype.findLinksInto=Bn.prototype.Sd,Bn.prototype.findLinksOutOf=Bn.prototype.Mo,Bn.prototype.findExternalTreeLinksConnected=Bn.prototype.qx,Bn.prototype.invalidateConnectedLinks=Bn.prototype.Bd,Bn.prototype.invalidateLinkBundle=Bn.prototype.Lz;var Ex=new Te(Bn,"SpreadingNone",10),Ym=new Te(Bn,"SpreadingEvenly",11),Kv=new Te(Bn,"SpreadingPacked",12);Bn.className="Node",Bn.SpreadingNone=Ex,Bn.SpreadingEvenly=Ym,Bn.SpreadingPacked=Kv;function Hi(a,y){a===void 0||a instanceof fs||typeof a=="string"?Bn.call(this,a):(Bn.call(this),a&&(y=a)),this.U|=4608,this.Gn=new sn,this.$a=null,this.Sc=new la,this.Sc.group=this,this.gl=new sn,this.tb=this.$p=null,y&&Object.assign(this,y)}se(Hi,Bn),Hi.prototype.cloneProtected=function(a){Bn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Il});y instanceof Il?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())},xt=Hi.prototype,xt.Af=function(a){Bn.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 Bn)x.Bd(y);else if(x instanceof mn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},xt.gk=function(a,y,x,E,b,z,tt){if(a===ba&&y==="elements"){if(b instanceof Il)this.$a===null?this.$a=b:this.$a!==b&&be("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof ln){var rt=b.Nl(function(ot){return ot instanceof Il});rt instanceof Il&&(this.$a===null?this.$a=rt:this.$a!==rt&&be("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Ra&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ln&&this.$a.rg(E)&&(this.$a=null));Bn.prototype.gk.call(this,a,y,x,E,b,z,tt)},xt.Xl=function(a,y){Bn.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ln.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ln&&(a=a.Pb()),this.tb===null&&(this.tb=new We),a.mi(this.tb),a instanceof Ji&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},xt.eh=function(a,y,x,E){this.nf=this.$a,Bn.prototype.eh.call(this,a,y,x,E)},xt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof mn||y.Va()}),Bn.prototype.Va.call(this)},xt.si=function(){if(!Bn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Bn){if(y.isVisible()&&Bl(y))return!1}else if(y instanceof mn&&y.isVisible()&&Bl(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Vv(a,y){if(a.Gn.add(y)){y instanceof Hi&&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 mn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Uv(a,y){if(a.Gn.remove(y)){y instanceof Hi&&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 mn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}xt.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)}Bn.prototype.Lj.call(this)},Hi.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Be(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Hi.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=Be(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Hi.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))},xt=Hi.prototype,xt.Bd=function(a){var y=(this.U&65536)!==0;if(Bn.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()?(gu(x.fromPort),gu(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(gu(x.fromPort),gu(x.toPort),x.bb()))}}},xt.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 sn,E=y.iterator;E.next();){var b=E.value;if(b instanceof Bn)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},xt.iz=function(){var a=this.Rj();a.add(this);for(var y=new sn,x=a.iterator;x.next();){var E=x.value;if(E instanceof Bn)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},xt.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new sn;return a(this,y),y},xt.Rj=function(){var a=new sn;return zc(a,this,!0,0,!0),a.remove(this),a},xt.Zb=function(a){Bn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Hi.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();qS(this,y,a,this),a.Ue=!1}};function qS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof Hi&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,qS(z,y,x,E)),z instanceof Bn)z.Bd(y),x.Aj(z,E);else if(z instanceof mn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Hi.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();_S(this,y,a,this),a.Ue=!1}};function _S(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof Hi&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,_S(z,y,x,E)),z instanceof Bn)z.Bd(y),x.Cj(z,E);else if(z instanceof mn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Hi.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=Zt.alloc(),Bn.prototype.move.call(this,a,y),a=new sn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof mn&&(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 Bn&&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 mn&&(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(),Yv(b)&&b.bb());Zt.free(z)}},je.Object.defineProperties(Hi.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&&be("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&&(cc(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&&(cc(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&&(cc(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&&(cc(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)}}}),Hi.prototype.expandSubGraph=Hi.prototype.expandSubGraph,Hi.prototype.collapseSubGraph=Hi.prototype.collapseSubGraph,Hi.prototype.findSubGraphParts=Hi.prototype.Rj,Hi.prototype.findContainingGroupChain=Hi.prototype.hz,Hi.prototype.findExternalNodesConnected=Hi.prototype.iz,Hi.prototype.findExternalLinksConnected=Hi.prototype.Lu,Hi.prototype.ensureBounds=Hi.prototype.Va,Hi.className="Group";function Il(a){fe.call(this),this.yb=Ml,this.ko=new We(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}se(Il,fe),Il.prototype.cloneProtected=function(a){fe.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Il.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return cs(0,0,y.width,y.height,a.x,a.y)},Il.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Hi||a instanceof Hr)||be("Placeholder is not inside a Group or Adornment."),a instanceof Hi){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(gl(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=Zt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Zt.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 Ji&&(tt=z.strokeWidth);var rt=z.Df(),ot=z.naturalBounds,st=(ot.width+tt)*rt;tt=(ot.height+tt)*rt,a.type!==ln.Link&&(rt=z.ga(a.category==="Selection"?ms:a.locationSpot,Zt.alloc()),a.location=rt,Zt.free(rt)),isNaN(st)||isNaN(tt)?(a=z.ga(ms,Zt.alloc()),st=We.allocAt(a.x,a.y,0,0),st.Ye(z.ga(Ul,a)),st.Ye(z.ga(Pd,a)),st.Ye(z.ga(Pu,a)),gl(y,st.width+E||0,st.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),Zt.free(a),We.free(st)):(gl(y,st+E||0,tt+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Il.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},Il.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Hi&&!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=We.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Hi&&!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)),We.free(x),E&&y instanceof Hi&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Il.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Hi))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 mn&&(!y.computesBoundsIncludingLinks||Du(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},je.Object.defineProperties(Il.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Qi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Il.className="Placeholder";function mn(a){pi.call(this,ln.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Rl,this.Om=0,this.Qm=Rl,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new vn().freeze(),this.Tg=this.Mg=null,this.ml=new We,this.ua=new yn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Zt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}se(mn,pi),mn.prototype.cloneProtected=function(a){pi.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())},xt=mn.prototype,xt.Af=function(a){pi.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&&gu(y),a=a.toPort,a!==null&&gu(a)},xt.qb=function(a){a.classType===mn?(a.value&2)===2?this.routing=a:a===Bu||a===gc||a===Fg?this.curve=a:a===Cp||a===$m||a===t0?this.adjusting=a:a!==Qv&&a!==Rl&&be("Unknown Link enum value for a Link property: "+a):pi.prototype.qb.call(this,a)},xt.Xc=function(){this.ba===null&&(this.ba=new up)},xt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Bl(a)||Ic(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Bl(a)||Ic(a)))},xt.zv=function(){return!1},xt.Av=function(){},xt.Zc=function(){return!1},mn.prototype.computeAngle=function(a,y,x){return mn.computeAngle(y,x)},mn.computeAngle=function(a,y){switch(a){default:case Rl:a=0;break;case Ep:a=y;break;case Lp:a=y+90;break;case Ap:a=y-90;break;case qv:a=y+180;break;case e0:a=pe.bp(y),90<a&&270>a&&(a-=180);break;case bp:a=pe.bp(y+90),90<a&&270>a&&(a-=180);break;case Mp:a=pe.bp(y-90),90<a&&270>a&&(a-=180);break;case n0:if(a=pe.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return pe.bp(a)};function Mg(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&&Uv(x,a),a.Ah=y,y!==null&&Vv(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}xt=mn.prototype,xt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&pi.prototype.oh.call(this)},xt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},xt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $S(a,y){a.wd===null&&(a.wd=new sn),a.wd.add(y),a.v()}xt.Vo=function(a){if(pi.prototype.Vo.call(this,a),Pf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Um(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Um(x,this,E)}wp(this)}},xt.Wo=function(a){if(pi.prototype.Wo.call(this,a),Pf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Zm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Zm(x,this,E)}Pp(this)}},xt.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))},mn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},mn.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?pi.prototype.move.call(this,a,!1):(a=Zt.allocAt(x.x+E,x.y+b),pi.prototype.move.call(this,a,!1),Zt.free(a)),fc(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},mn.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},mn.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},mn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(xu),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()===Bu))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()===Bu){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return pe.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),pe.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},mn.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()===Bu))return this.ua.wx(.5);if(this.computeCurve()===Bu&&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),pe.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)},xt=mn.prototype,xt.i=function(a){return this.Nb.s[a]},xt.dd=function(a,y){this.Nb.cd(a,y)},xt.L=function(a,y,x){this.Nb.cd(a,new Zt(y,x))},xt.Kz=function(a,y){this.Nb.Gb(a,y)},xt.m=function(a,y,x){this.Nb.Gb(a,new Zt(y,x))},xt.ne=function(a){this.Nb.add(a)},xt.yf=function(a,y){this.Nb.add(new Zt(a,y))},xt.pv=function(a){this.Nb.mb(a)},xt.Fj=function(){this.Nb.clear()};function fc(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 vn,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Zt(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),Tl(a)),E?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&Nr(tt.animationManager,a,b),a.g("points",z,b)}}xt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},xt.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,st=ot.length,ut=0;ut<st;ut++){var ft=ot[ut];tt=Math.min(ft.x,tt),rt=Math.min(ft.y,rt),ft.freeze()}if(y.freeze(),st===z){for(z=0;z<st;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&&Nr(x.animationManager,this,y),Xm(this),this.g("points",a,y)}},xt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Xm(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),_m(a,!1))}xt.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())}},xt.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()}}},mn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Uf||(Uf=new Bn,Uf.desiredSize=fr,Uf.Va()),this.defaultFromPoint&&(Uf.location=this.defaultFromPoint,Uf.Va(),y=a=Uf)):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?(Zf||(Zf=new Bn,Zf.desiredSize=fr,Zf.Va()),this.defaultToPoint&&(Zf.location=this.defaultToPoint,Zf.Va(),b=E=Zf)):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=kg(tt),ot=kg(x),st=y===b&&y!==null,ut=this.isOrthogonal,ft=this.curve===Bu;this.Wf=st&&!ut?ft=!0:!1;var mt=this.computeAdjusting()===Rl||st;if(!ut&&!st&&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,st=this.computeCurviness(),ft=ut=0;var yt=z.x+rt/3,Ct=z.y+ot/3,Mt=yt,Vt=Ct;pe.B(ot,0)?Vt=0<rt?Vt-st:Vt+st:(ut=-rt/ot,ft=Math.sqrt(st*st/(ut*ut+1)),0>st&&(ft=-ft),Mt=(0>ot?-1:1)*ft+yt,Vt=ut*(Mt-yt)+Ct),yt=z.x+2*rt/3,Ct=z.y+2*ot/3;var Rt=yt,_t=Ct;pe.B(ot,0)?_t=0<rt?_t-st:_t+st:(Rt=(0>ot?-1:1)*ft+yt,_t=ut*(Rt-yt)+Ct),this.Fj(),this.ne(z),this.yf(Mt,Vt),this.yf(Rt,_t),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,pe.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=We.alloc(),y.mi(rt),ot=rt.ca(b),mt.mi(rt),st=rt.ca(E),(ot||st)&&(tt=y.ga(Qm(tt),new Zt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=mt.ga(Qm(x),new Zt),this.dd(1,this.getLinkPointFromPoint(z,mt,x,E,!1,x))),We.free(rt))}else{ft=this.isAvoiding,mt&&(ut&&ft||st)&&this.Fj();var te=st?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,E,b),yt=Mt=Ct=0,(ut||!rt||st)&&(Vt=this.computeEndSegmentLength(a,y,tt,!0),yt=this.getLinkDirection(a,y,ft,tt,!0,ut,E,b),st&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(yt-=ut?90:30,0>te&&(yt-=180)),0>yt?yt+=360:360<=yt&&(yt-=360),st&&(Vt+=Math.abs(te)*(ut?1:2)),yt===0?Ct=Vt:yt===90?Mt=Vt:yt===180?Ct=-Vt:yt===270?Mt=-Vt:(Ct=Vt*Math.cos(yt*Math.PI/180),Mt=Vt*Math.sin(yt*Math.PI/180)),tt.Mc()&&st&&(Vt=y.ga($r,Zt.alloc()),Rt=Zt.allocAt(Vt.x+1e3*Ct,Vt.y+1e3*Mt),this.getLinkPointFromPoint(a,y,Vt,Rt,!0,ft),Zt.free(Vt),Zt.free(Rt))),Vt=this.getLinkPoint(E,b,x,!1,ut,a,y);var ne=_t=Rt=0;if(ut||!ot||st){var ue=this.computeEndSegmentLength(E,b,x,!1);ne=this.getLinkDirection(E,b,Vt,x,!1,ut,a,y),st&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(ne+=ut?0:30,0>te&&(ne+=180)),0>ne?ne+=360:360<=ne&&(ne-=360),st&&(ue+=Math.abs(te)*(ut?1:2)),ne===0?Rt=ue:ne===90?_t=ue:ne===180?Rt=-ue:ne===270?_t=-ue:(Rt=ue*Math.cos(ne*Math.PI/180),_t=ue*Math.sin(ne*Math.PI/180)),x.Mc()&&st&&(x=b.ga($r,Zt.alloc()),tt=Zt.allocAt(x.x+1e3*Rt,x.y+1e3*_t),this.getLinkPointFromPoint(E,b,x,tt,!1,Vt),Zt.free(x),Zt.free(tt))}x=ft,(ut||!rt||st)&&(x=new Zt(ft.x+Ct,ft.y+Mt)),tt=Vt,(ut||!ot||st)&&(tt=new Zt(Vt.x+Rt,Vt.y+_t)),!mt&&!ut&&rt&&3<z&&this.adjustPoints(0,ft,z-2,tt)?this.dd(z-1,Vt):!mt&&!ut&&ot&&3<z&&this.adjustPoints(1,x,z-1,Vt)?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,Vt)):(this.Fj(),this.ne(ft),(ut||!rt||st)&&this.ne(x),ut&&this.addOrthoPoints(x,yt,tt,ne,a,E),(ut||!ot||st)&&this.ne(tt),this.ne(Vt))}return!0};function Zv(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}mn.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Zt),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,st=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*st+ft,tt=x.x*tt+x.y*ot+ut,x=x.x*rt+x.y*st+ft}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function Jm(a,y){var x=y.Zn;return x===null&&(x=new Yf,x.port=y,x.node=y.part,y.Zn=x),s1(x,a)}mn.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,rt){if(rt===void 0&&(rt=new Zt),x.sb()&&!kg(x))return y.ga(x,rt),rt;if(x.$c()){var ot=Jm(this,y);if(ot!==null){if(rt.assign(ot.Zo),b&&this.routing===e1){var st=Jm(this,tt);if(st!==null&&ot.Gl<st.Gl){ot=Zt.alloc(),st=Zt.alloc();var ut=new We(y.ga(ms,ot),y.ga(Ul,st)),ft=this.computeSpot(!E,tt);a=this.getLinkPoint(z,tt,ft,!E,b,a,y,st),(x.Hf(Cd)||x.Hf(pl))&&a.y>=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(Hh)||x.Hf(Cu))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),Zt.free(ot),Zt.free(st)}}return rt}}return x=y.ga(Qm(x),Zt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Zv(x,tt.copy()))):(ot=this.computeSpot(!E,tt),z=Zt.alloc(),tt=tt.ga(Qm(ot),z),b&&(tt=Zv(x,tt)),Zt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,rt),Zt.free(x),rt},mn.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=Jm(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($r,Zt.alloc()),this.pointsCount>(z?6:2)?(rt=b?this.i(1):this.i(this.pointsCount-2),rt=z?Zv(ot,rt.copy()):x):(x=Zt.alloc(),rt=rt.ga($r,x),Zt.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,Zt.free(ot),ot=x}return E.Mc()&&tt.Td(a)&&(ot+=180,360<=ot&&(ot-=360)),kg(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},mn.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Jm(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)},mn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=$r:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===vs?ps:y)):(a=y||this.toPort,a===null?a=$r:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===vs?ps:y)),a};function kg(a){return a===ps||a.x===.5&&a.y===.5}function Qm(a){return a.x===.5&&a.y===.5?a:$r}mn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Rl&&4<this.pointsCount?this.computeMidPoint(new Zt):(a=y.Zn,a=a!==null?s1(a,this):null,a!==null?a.Zo:y.ga($r))},mn.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},mn.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=er.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,b),z===void 0&&er.free(tt),!0;if(this.Yc(a,tt)){var rt=!1;if(!this.isAtomic)for(var ot=this.O.s,st=ot.length;st--;){var ut=ot[st];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=er.alloc(),ft.set(tt),ut instanceof ln)rt=ut.Cf(a,y,x,E,b,ft);else if(this.path===ut){if(ut instanceof Ji)if(rt=a,mt=E,ut.pickable===!1)rt=!1;else if(ft.multiply(ut.transform),mt)t:{var yt=rt,Ct=ft;if(ut.fh(yt,Ct))rt=!0;else{if(Ct===void 0&&(Ct=ut.transform,yt.Re(ut.actualBounds))){rt=!0;break t}rt=yt.left,mt=yt.right;var Mt=yt.top;yt=yt.bottom;var Vt=Zt.alloc(),Rt=Zt.alloc(),_t=Zt.alloc(),te=er.alloc();te.set(Ct),te.bv(ut.transform),te.Vj(),Rt.x=mt,Rt.y=Mt,Rt.transform(te),Vt.x=rt,Vt.y=Mt,Vt.transform(te),Ct=!1,xf(ut,Vt,Rt,_t)?Ct=!0:(Vt.x=mt,Vt.y=yt,Vt.transform(te),xf(ut,Vt,Rt,_t)?Ct=!0:(Rt.x=rt,Rt.y=yt,Rt.transform(te),xf(ut,Vt,Rt,_t)?Ct=!0:(Vt.x=rt,Vt.y=Mt,Vt.transform(te),xf(ut,Vt,Rt,_t)&&(Ct=!0)))),er.free(te),Zt.free(Vt),Zt.free(Rt),Zt.free(_t),rt=Ct}}else rt=ut.fh(rt,ft)}else rt=Es(ut,a,E,ft);rt&&(mt=ut,y!==null&&(mt=y(ut)),mt&&(x===null||x(mt))&&b.add(mt)),er.free(ft)}}}return z===void 0&&er.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&er.free(tt),!1},mn.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?Bu:this.curve},mn.prototype.computeCorner=function(){if(this.curve===Bu)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},mn.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},mn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=i1;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===Ep||E===e0||E===qv?a=Math.max(a,b):E===Ap||E===Mp||E===Lp||E===bp?a=Math.max(a,tt):(y=y.ga($r).ab(x.ga($r))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*tt)+Math.abs(Math.cos(y)*b)+1)),this.curve===Bu&&(a*=1.333)}}return a},mn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Rl&&x.bb()}},mn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=n1;var y=this.Sf;if(y!==null){for(var x=Fi(),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),Ai(x)}}return a},mn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},mn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},mn.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===$m)return!1;b===t0&&(b=Cp)}switch(b){case $m: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,st=Math.sqrt(rt*rt+ot*ot);if(!pe.$(st,0)){if(pe.$(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),pe.$(rt,0)?mt=0>mt?-Math.PI/2:Math.PI/2:(mt=Math.atan(mt/Math.abs(rt)),0>rt&&(mt=Math.PI-mt)),st=ot/st,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),pe.$(y,0)||(pe.$(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*=st,this.L(a,tt+y*Math.cos(rt),ft+y*Math.sin(rt)));this.dd(x,E)}}return!0;case t0: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,st=(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 Ct=(mt-ut)/(ot-rt);yt=Math.sqrt(1+1/(Ct*Ct))}else Ct=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Mt=y.x,Vt=y.y,Rt=.5;st!==0&&(Rt=((b-Mt)*(b-tt)+(z-Vt)*(z-ft))/st);var _t=b+Rt*(tt-b),te=z+Rt*(ft-z);y=Math.sqrt((Mt-_t)*(Mt-_t)+(Vt-te)*(Vt-te)),Vt<Ct*(Mt-_t)+te&&(y=-y),0<Ct&&(y=-y),Mt=rt+Rt*(ot-rt),Rt=ut+Rt*(mt-ut),Ct!==0?(y=Mt+y/yt,this.L(a,y,Rt-(y-Mt)/Ct)):this.L(a,Mt,Rt+y)}this.dd(x,E)}return!0;case Cp: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,st=ut,pe.B(b.y,z.y)?pe.B(z.x,tt.x)?ut=y.y:pe.B(z.y,tt.y)&&(rt=y.x):pe.B(b.x,z.x)&&(pe.B(z.y,tt.y)?rt=y.x:pe.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,pe.B(b.y,z.y)?pe.B(z.x,tt.x)?ut=E.y:pe.B(z.y,tt.y)&&(rt=E.x):pe.B(b.x,z.x)&&(pe.B(z.y,tt.y)?rt=E.x:pe.B(z.x,tt.x)&&(ut=E.y)),this.L(x-1,rt,ut),Yv(this))){this.L(a+1,ft,st),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}},mn.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(kp,kp),ot.Bc(kp,kp),rt.Ye(a),ot.Ye(x);var st=Zt.alloc(),ut=Zt.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?(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=st.x,ut.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(st.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=st.x,ut.y=x.y):E===0&&a.x<ot.left&&a.y>ot.top&&a.y<ot.bottom&&(st.x=a.x,st.y=a.y<x.y?Math.min(x.y,ot.top):Math.max(x.y,ot.bottom),ut.y=st.y)):(st.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))?st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===180||E===90)?st.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,ot.bottom),!0):x.y>a.y&&(E===180||E===270)&&(st.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=st.y),st.y>rt.top&&st.y<rt.bottom&&(x.x>=rt.left&&x.x<=a.x||a.x<=ot.right&&a.x>=x.x?(E===90||E===270)&&(st.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(st.x,x.y)):(st.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=st.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?(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===0?(st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=st.x,ut.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(st.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=st.x,ut.y=x.y):E===180&&a.x>ot.right&&a.y>ot.top&&a.y<ot.bottom&&(st.x=a.x,st.y=a.y<x.y?Math.min(x.y,ot.top):Math.max(x.y,ot.bottom),ut.y=st.y)):(st.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))?st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===0||E===90)?st.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,ot.bottom),!0):x.y>a.y&&(E===0||E===270)&&(st.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=st.y),st.y>rt.top&&st.y<rt.bottom&&(x.x<=rt.right&&x.x>=a.x||a.x>=ot.left&&a.x<=x.x?(E===90||E===270)&&(st.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(st.x,x.y)):(st.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=st.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?(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=st.y):E===180&&x.x<a.x||E===0&&x.x>a.x?(st.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=st.y):E===90&&a.y<ot.top&&a.x>ot.left&&a.x<ot.right&&(st.x=a.x<x.x?Math.min(x.x,ot.left):Math.max(x.x,ot.right),st.y=a.y,ut.x=st.x)):(st.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))?st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===270||E===0)?st.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,ot.right),x.y,!1):x.x>a.x&&(E===270||E===180)&&(st.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=st.x,ut.y=x.y),st.x>rt.left&&st.x<rt.right&&(x.y>=rt.top&&x.y<=a.y||a.y<=ot.bottom&&a.y>=x.y?(E===0||E===180)&&(st.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,st.y)):(st.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=st.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?(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===90?(st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=st.y):E===180&&x.x<a.x||E===0&&x.x>=a.x?(st.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=st.y):E===270&&a.y>ot.bottom&&a.x>ot.left&&a.x<ot.right&&(st.x=a.x<x.x?Math.min(x.x,ot.left):Math.max(x.x,ot.right),st.y=a.y,ut.x=st.x)):(st.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))?st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===90||E===0)?st.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,ot.right),x.y,!1):x.x>a.x&&(E===90||E===180)&&(st.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=st.x,ut.y=x.y),st.x>rt.left&&st.x<rt.right&&(x.y<=rt.bottom&&x.y>=a.y||a.y>=ot.top&&a.y<=x.y?(E===0||E===180)&&(st.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,st.y)):(st.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=st.x,ut.y=x.y)));var ft=x;if(this.isAvoiding){var mt=this.diagram;if(mt===null||b===z||this.layer.isTemporary||!ug(mt)||rt.ca(ft)&&!z.Td(b)||ot.ca(a)&&!b.Td(z))y=!1;else{var yt=hg(mt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&yt.Yj(Math.min(a.x,st.x),Math.min(a.y,st.y),Math.abs(a.x-st.x),Math.abs(a.y-st.y))&&yt.Yj(Math.min(st.x,ut.x),Math.min(st.y,ut.y),Math.abs(st.x-ut.x),Math.abs(st.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 Ct=x=null;if(mt.isVirtualized){mt=yt.bounds.copy(),mt.Bc(-yt.Ho,-yt.Go);var Mt=Zt.alloc();Ng(yt,a.x,a.y)||(pe.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,a.x,a.y,st.x,st.y,Mt)?(x=a=Mt.copy(),y=Mt.ab(st)):pe.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,st.x,st.y,ut.x,ut.y,Mt)?(x=a=Mt.copy(),y=Mt.ab(ut)):pe.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))),Ng(yt,ft.x,ft.y)||(pe.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,ft.x,ft.y,ut.x,ut.y,Mt)?(Ct=ft=Mt.copy(),E=ut.ab(Mt)):pe.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,ut.x,ut.y,st.x,st.y,Mt)?(Ct=ft=Mt.copy(),E=st.ab(Mt)):pe.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,st.x,st.y,a.x,a.y,Mt)&&(Ct=ft=Mt.copy(),E=a.ab(Mt))),Zt.free(Mt)}rt=rt.copy().ed(ot),rt.Bc(yt.Ho*yt.Os,yt.Go*yt.Os),o1(yt,a,y,ft,E,rt,!0),ot=dd(yt,ft.x,ft.y),!yt.abort&&ot>=Dg&&(r1(yt),rt.Bc(yt.Ho*yt.Hx,yt.Go*yt.Ix),o1(yt,a,y,ft,E,rt,!1),ot=dd(yt,ft.x,ft.y)),!yt.abort&&ot<Dg&&dd(yt,ft.x,ft.y)!==pc?(Xv(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?pe.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)):pe.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)&&(pe.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)):pe.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)),Ct!==null&&(E===0||E===180?this.yf(z.x,Ct.y):this.yf(Ct.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(st.copy()),this.ne(ut.copy())),Zt.free(st),Zt.free(ut)}},mn.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 Yv(a){if(a.diagram===null||!a.isAvoiding||!ug(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=hg(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 Xv(a,y,x,E,b,z,tt){var rt=y.Ho,ot=y.Go,st=dd(y,x,E),ut=x,ft=E;for(b===0?ut+=rt:b===90?ft+=ot:b===180?ut-=rt:ft-=ot,b!==tt&&st>Cf&&dd(y,ut,ft)!==st-1&&(dd(y,x-rt,E)===st-1?(b=180,ut=x-rt,ft=E):dd(y,x+rt,E)===st-1?(b=0,ut=x+rt,ft=E):dd(y,x,E-ot)===st-1?(b=270,ut=x,ft=E-ot):dd(y,x,E+ot)===st-1&&(b=90,ut=x,ft=E+ot));st>Cf&&dd(y,ut,ft)===st-1;)x=ut,E=ft,b===0?ut+=rt:b===90?ft+=ot:b===180?ut-=rt:ft-=ot,--st;z?st>Cf&&(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),st>Cf&&(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),dd(y,tt,ut)===st-1?Xv(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),dd(y,tt,ut)===st-1&&Xv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}mn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=Ha(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=Ha(y,a,E.x,E.y,x.x,x.y);E=x,rt<b&&(z=tt,b=rt)}return z},mn.prototype.qc=function(){this.lk=!1,this.v()},mn.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 Ji&&(b.ua=this.ua)}}},mn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&Pf(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===Bu&&3<=y&&!pe.$(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||Pf(this)){if(a.type=yn.o,rt=FS(a),this.computeShortLength(!0)!==0&&(b=Kf(this,b,!0,z)),bg(rt,b.x,b.y,!1),tt===Bu&&3<=y&&!pe.$(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=Kf(this,b,!1,z)),hc(rt,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=Zt.allocAt(E,ot),x=Zt.alloc(),x.assign(this.i(1)),z=Zt.allocAt(E,ot),b=Zt.allocAt(E,ot),tt=this.i(0);for(var st,ut=this.smoothness/3,ft=1;ft<this.pointsCount-1;ft++){st=this.i(ft);var mt=tt,yt=st,Ct=this.i(Jv(this,st,ft,!1));if((!pe.$(mt.x,yt.x)||!pe.$(yt.x,Ct.x))&&(!pe.$(mt.y,yt.y)||!pe.$(yt.y,Ct.y))){var Mt=ut;isNaN(Mt)&&(Mt=this.smoothness/3);var Vt=mt.x;mt=mt.y;var Rt=yt.x;yt=yt.y;var _t=Ct.x;Ct=Ct.y;var te=Mt*qm(Vt,mt,Rt,yt);Mt*=qm(Rt,yt,_t,Ct),pe.$(mt,yt)&&pe.$(Rt,_t)&&(Rt>Vt?Ct>yt?(z.x=Rt-te,z.y=yt-te,b.x=Rt+Mt,b.y=yt+Mt):(z.x=Rt-te,z.y=yt+te,b.x=Rt+Mt,b.y=yt-Mt):Ct>yt?(z.x=Rt+te,z.y=yt-te,b.x=Rt-Mt,b.y=yt+Mt):(z.x=Rt+te,z.y=yt+te,b.x=Rt-Mt,b.y=yt-Mt)),pe.$(Vt,Rt)&&pe.$(yt,Ct)&&(yt>mt?(_t>Rt?(z.x=Rt-te,z.y=yt-te,b.x=Rt+Mt):(z.x=Rt+te,z.y=yt-te,b.x=Rt-Mt),b.y=yt+Mt):(_t>Rt?(z.x=Rt-te,z.y=yt+te,b.x=Rt+Mt):(z.x=Rt+te,z.y=yt+te,b.x=Rt-Mt),b.y=yt-Mt)),(pe.$(Vt,Rt)&&pe.$(Rt,_t)||pe.$(mt,yt)&&pe.$(yt,Ct))&&(Vt=.5*(Vt+_t),mt=.5*(mt+Ct),z.x=Vt,z.y=mt,b.x=Vt,b.y=mt),(ft===1||ft===2&&pe.$(tt.x,this.i(0).x)&&pe.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+st.x),x.y=.5*(tt.y+st.y)),hc(rt,x.x-E,x.y-ot,z.x-E,z.y-ot,st.x-E,st.y-ot),y.set(z),x.set(b),tt=st}}st=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=Kf(this,ut.copy(),!1,ts)),st=.5*(st+ut.x),tt=.5*(tt+ut.y),hc(rt,b.x-E,b.y-ot,st-E,tt-ot,ut.x-E,ut.y-ot),Zt.free(y),Zt.free(x),Zt.free(z),Zt.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=Kf(this,tt.copy(),!1,ts)),hc(rt,z.x-E,z.y-ot,b.x-E,b.y-ot,tt.x-E,tt.y-ot);else{for(z=Zt.alloc(),z.assign(this.i(0)),b=Zt.alloc(),b.assign(z),tt=this.computeCorner(),ft=1,st=0;ft<y;){if(ft=Jv(this,z,ft,1<ft),ut=this.i(ft),ft>=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=Kf(this,ut.copy(),!1,ts)),Vf(this,rt,-E,-ot,z,ut,x);else if(st===0)for(ft=1;ft<y;)b.assign(z),ut=this.i(ft++),Vf(this,rt,-E,-ot,z,ut,x),z.assign(ut);break}if(st=Jv(this,ut,ft+1,ft<y-3),ft=-E,Vt=-ot,mt=ut,Rt=this.i(st),Mt=x,pe.B(z.y,mt.y)&&pe.B(mt.x,Rt.x))if(Ct=Math.min(tt,Math.abs(mt.x-b.x)/2),Ct=te=Math.min(Ct,Math.abs(Rt.y-mt.y)/2),pe.B(Ct,0))Vf(this,rt,ft,Vt,z,mt,Mt),z.assign(mt);else{var ne=mt.x,ue=mt.y;yt=ne,_t=ue,mt.x>z.x?ne=mt.x-Ct:ne=mt.x+Ct,Rt.y>mt.y?_t=mt.y+te:_t=mt.y-te,Rt=Zt.allocAt(ne,ue),Vf(this,rt,ft,Vt,z,Rt,Mt),Zt.free(Rt),Hm(rt,mt.x+ft,mt.y+Vt,yt+ft,_t+Vt),z.h(yt,_t)}else pe.B(z.x,mt.x)&&pe.B(mt.y,Rt.y)?(Ct=Math.min(tt,Math.abs(mt.y-b.y)/2),Ct=te=Math.min(Ct,Math.abs(Rt.x-mt.x)/2),pe.B(te,0)?(Vf(this,rt,ft,Vt,z,mt,Mt),z.assign(mt)):(ne=mt.x,ue=mt.y,yt=ne,_t=ue,mt.y>z.y?ue=mt.y-Ct:ue=mt.y+Ct,Rt.x>mt.x?yt=mt.x+te:yt=mt.x-te,Rt=Zt.allocAt(ne,ue),Vf(this,rt,ft,Vt,z,Rt,Mt),Zt.free(Rt),Hm(rt,mt.x+ft,mt.y+Vt,yt+ft,_t+Vt),z.h(yt,_t))):(Vf(this,rt,ft,Vt,z,mt,Mt),z.assign(mt));b.assign(ut),ft=st}Zt.free(z)}Gm=rt}else rt=this.i(1).copy(),rt.x-=E,rt.y-=ot,this.computeShortLength(!0)!==0&&(b=Kf(this,b,!0,z)),this.computeShortLength(!1)!==0&&(rt=Kf(this,rt,!1,z)),a.type=yn.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),pe.$(a,0)?y:pe.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Kf(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 Jv(a,y,x,E){for(var b=a.pointsCount,z=y;pe.$(y.x,z.x)&&pe.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!pe.$(y.x,z.x)&&!pe.$(y.y,z.y))return x-1;for(var tt=z;pe.$(y.x,z.x)&&pe.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||pe.$(y.y,z.y)&&pe.$(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}mn.prototype.computeJumpLength=function(){return 10};function Vf(a,y,x,E,b,z,tt){if(!tt&&Pf(a)){tt=a.computeJumpLength();var rt=tt/2,ot=[],st=0;if(a.isVisible()&&(st=Lx(a,b,z,ot)),0<st){if(pe.B(b.y,z.y))if(b.x<z.x)for(var ut=0;ut<st;){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<st&&(ft=ot[ut],ft<yt+tt);)ut++,yt=Math.min(ft+rt,z.x);ft=z.y-tt+E,yt+=x;var Ct=z.y+E;a.curve===gc?bg(y,yt,Ct,!1):hc(y,mt,ft,yt,ft,yt,Ct)}else for(--st;0<=st;){for(ut=Math.min(b.x,Math.max(ot[st--]+rt,z.x+tt)),y.lineTo(ut+x,z.y+E),mt=ut+x,ft=Math.max(ut-tt,z.x);0<=st&&(ut=ot[st],ut>ft-tt);)st--,ft=Math.max(ut-rt,z.x);ut=z.y-tt+E,ft+=x,yt=z.y+E,a.curve===gc?bg(y,ft,yt,!1):hc(y,mt,ut,ft,ut,ft,yt)}else if(pe.B(b.x,z.x))if(b.y<z.y)for(ut=0;ut<st;){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<st&&(yt=ot[ut],yt<ft+tt);)ut++,ft=Math.min(yt+rt,z.y);yt=z.x-tt+x,Ct=z.x+x,ft+=E,a.curve===gc?bg(y,Ct,ft,!1):hc(y,yt,mt,yt,ft,Ct,ft)}else for(--st;0<=st;){for(ut=Math.min(b.y,Math.max(ot[st--]+rt,z.y+tt)),y.lineTo(z.x+x,ut+E),mt=ut+E,ut=Math.max(ut-tt,z.y);0<=st&&(ft=ot[st],ft>ut-tt);)st--,ut=Math.max(ft-rt,z.y);ft=z.x-tt+x,yt=z.x+x,ut+=E,a.curve===gc?bg(y,yt,ut,!1):hc(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 mn){if(ot===a)return 0<E.length&&E.sort(function(ut,ft){return ut-ft}),E.length;if(ot.isVisible()&&Pf(ot)){var st=ot.routeBounds;st.w()&&a.routeBounds.Yc(st)&&!a.usesSamePort(ot)&&(st=ot.path,st!==null&&st.Ed()&&Ax(y,x,E,ot))}}}}}return 0<E.length&&E.sort(function(ut,ft){return ut-ft}),E.length}function Ax(a,y,x,E){for(var b=pe.B(a.y,y.y),z=E.pointsCount,tt=E.i(0),rt=Zt.alloc(),ot=1;ot<z;ot++){var st=E.i(ot);if(ot<z-1){var ut=E.i(ot+1);if(tt.y===st.y&&st.y===ut.y){if(st.x>tt.x&&ut.x>=st.x||st.x<tt.x&&ut.x<=st.x)continue}else if(tt.x===st.x&&st.x===ut.x&&(st.y>tt.y&&ut.y>=st.y||st.y<tt.y&&ut.y<=st.y))continue}t:{ut=a.x;var ft=a.y,mt=y.x,yt=y.y,Ct=tt.x;tt=tt.y;var Mt=st.x,Vt=st.y;if(pe.B(ut,mt)){if(!pe.B(ft,yt)&&pe.B(tt,Vt)&&Math.min(ft,yt)<tt&&Math.max(ft,yt)>tt&&Math.min(Ct,Mt)<ut&&Math.max(Ct,Mt)>ut&&!pe.B(Ct,Mt)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(pe.B(ft,yt)&&pe.B(Ct,Mt)&&Math.min(ut,mt)<Ct&&Math.max(ut,mt)>Ct&&Math.min(tt,Vt)<ft&&Math.max(tt,Vt)>ft&&!pe.B(tt,Vt)){rt.x=Ct,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=st}Zt.free(rt)}function Pf(a){return a=a.curve,a===Fg||a===gc}function _m(a,y){(y||Pf(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()))}mn.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 mn&&(ot===this?z=!0:z&&t1(this,ot,a))}}else if(E)for(z=b.Pa.s,b=z.length,tt=0;tt<b;tt++)rt=z[tt],rt instanceof mn&&t1(this,rt,a)}}}}};function t1(a,y,x){if(y!==null&&y.lk&&y.fd&&Pf(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}mn.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},mn.prototype.isVisible=function(){if(!pi.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},mn.prototype.Zb=function(a){if(pi.prototype.Zb.call(this,a),a&&_m(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},mn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Cp:this.qk};function wp(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 st=tt[ot];(st.ef===y&&st.ff===E&&st.uf===x&&st.vf===b||st.ef===x&&st.ff===b&&st.uf===y&&st.vf===E)&&(z===null?z=st:(a===null&&(a=[],a.push(z)),a.push(st)))}if(a!==null){for(z=GS(y,x,E,b),z===null&&(z=new i0(y,E,x,b),HS(y,z),HS(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Pp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Ao(y.links,a),y.Sl()))}mn.prototype.ph=function(){return!0},je.Object.defineProperties(mn.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&&Zm(y,this,x),Pp(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&&Um(a,this,b),wp(this),this.C(1)),this.g("fromNode",y,a),Mg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&gu(x),Pp(this),this.ff=a;var E=this.fromPort;E!==null&&gu(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))),wp(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&&Zm(y,this,x),Pp(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&&Um(a,this,b),wp(this),this.C(1)),this.g("toNode",y,a),Mg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&gu(x),Pp(this),this.vf=a;var E=this.toPort;E!==null&&gu(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))),wp(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:vs},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&&gu(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&&Wi(a,">= 0",mn,"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:vs},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&&gu(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&&Wi(a,">= 0",mn,"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?Co: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&&xp(this.fromNode),this.toNode!==null&&xp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Ji?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()===Bu&&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),pe.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);pe.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 Zt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Xm(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);pe.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):pe.$(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 vn,E=0;E<a.length/2;E++)b=new Zt(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(!fn(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new vn,E=0;E<a.length;E++)b=a[E],x.add(new Zt(b.x,b.y).freeze())}}else if(a instanceof vn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else be("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Xm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Nr(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||!kg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!kg(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(),_m(this,y===gc||y===Fg||a===gc||a===Fg),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(),_m(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)}}}),mn.prototype.invalidateOtherJumpOvers=mn.prototype.Xo,mn.prototype.findClosestSegment=mn.prototype.ez,mn.prototype.updateRoute=mn.prototype.vg,mn.prototype.invalidateRoute=mn.prototype.bb,mn.prototype.rollbackRoute=mn.prototype.rv,mn.prototype.commitRoute=mn.prototype.zf,mn.prototype.startRoute=mn.prototype.uh,mn.prototype.clearPoints=mn.prototype.Fj,mn.prototype.removePoint=mn.prototype.pv,mn.prototype.addPointAt=mn.prototype.yf,mn.prototype.addPoint=mn.prototype.ne,mn.prototype.insertPointAt=mn.prototype.m,mn.prototype.insertPoint=mn.prototype.Kz,mn.prototype.setPointAt=mn.prototype.L,mn.prototype.setPoint=mn.prototype.dd,mn.prototype.getPoint=mn.prototype.i,mn.prototype.getOtherPort=mn.prototype.Cz,mn.prototype.getOtherNode=mn.prototype.To;var Uf=null,Zf=null,Qv=new Te(mn,"Normal",1),bx=new Te(mn,"Orthogonal",2),Mx=new Te(mn,"AvoidsNodes",6),e1=new Te(mn,"AvoidsNodesStraight",7),Rl=new Te(mn,"None",0),Bu=new Te(mn,"Bezier",9),gc=new Te(mn,"JumpGap",10),Fg=new Te(mn,"JumpOver",11),Cp=new Te(mn,"End",17),$m=new Te(mn,"Scale",18),t0=new Te(mn,"Stretch",19),Ep=new Te(mn,"OrientAlong",21),Lp=new Te(mn,"OrientPlus90",22),Ap=new Te(mn,"OrientMinus90",23),qv=new Te(mn,"OrientOpposite",24),e0=new Te(mn,"OrientUpright",25),bp=new Te(mn,"OrientPlus90Upright",26),Mp=new Te(mn,"OrientMinus90Upright",27),n0=new Te(mn,"OrientUpright45",28),n1=16,i1=14,kp=8;mn.className="Link",mn.Normal=Qv,mn.Orthogonal=bx,mn.AvoidsNodes=Mx,mn.AvoidsNodesStraight=e1,mn.None=Rl,mn.Bezier=Bu,mn.JumpGap=gc,mn.JumpOver=Fg,mn.End=Cp,mn.Scale=$m,mn.Stretch=t0,mn.OrientAlong=Ep,mn.OrientPlus90=Lp,mn.OrientMinus90=Ap,mn.OrientOpposite=qv,mn.OrientUpright=e0,mn.OrientPlus90Upright=bp,mn.OrientMinus90Upright=Mp,mn.OrientUpright45=n0,mn.EndSegmentStep=8,mn.CurvinessStart=n1,mn.SpacingMin=i1,mn.OrthoShortCut=kp;function i0(a,y,x,E){lo(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}i0.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},i0.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))}},i0.className="LinkBundle";function Fp(a){lo(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}Fp.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 Ng(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function dd(a,y,x){return Ng(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):_v}function r1(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]>=Cf&&(x[E]=_v)}Fp.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]===pc)return!1}return!0};function cd(a,y,x,E,b,z,tt,rt,ot){if(!(y<z||y>tt||x<rt||x>ot)){var st=y|0,ut=x|0,ft=a.ac[st][ut];if(ft>=Cf&&ft<Dg)for(b?ut+=E:st+=E,ft+=1;z<=st&&st<=tt&&rt<=ut&&ut<=ot&&!(ft>=a.ac[st][ut]);)a.ac[st][ut]=ft,ft+=1,b?ut+=E:st+=E;if(st=b?ut:st,b)if(0<E)for(x+=E;x<st;x+=E)cd(a,y,x,1,!b,z,tt,rt,ot),cd(a,y,x,-1,!b,z,tt,rt,ot);else for(x+=E;x>st;x+=E)cd(a,y,x,1,!b,z,tt,rt,ot),cd(a,y,x,-1,!b,z,tt,rt,ot);else if(0<E)for(y+=E;y<st;y+=E)cd(a,y,x,1,!b,z,tt,rt,ot),cd(a,y,x,-1,!b,z,tt,rt,ot);else for(y+=E;y>st;y+=E)cd(a,y,x,1,!b,z,tt,rt,ot),cd(a,y,x,-1,!b,z,tt,rt,ot)}}function r0(a,y,x,E,b,z,tt,rt,ot){y|=0,x|=0;var st=pc,ut=Cf;for(a.ac[y][x]=ut;st===pc&&y>z&&y<tt&&x>rt&&x<ot;)ut+=1,a.ac[y][x]=ut,b?x+=E:y+=E,st=a.ac[y][x]}function o0(a,y,x,E,b,z,tt,rt,ot){y|=0,x|=0;var st=pc,ut=Dg;for(a.ac[y][x]=ut;st===pc&&y>z&&y<tt&&x>rt&&x<ot;)a.ac[y][x]=ut,b?x+=E:y+=E,st=a.ac[y][x]}function o1(a,y,x,E,b,z,tt){if(a.ac!==null){a.abort=!1;var rt=y.x,ot=y.y;if(Ng(a,rt,ot)){rt-=a.Nd,rt/=a.rc,ot-=a.Od,ot/=a.sc;var st=E.x,ut=E.y;if(Ng(a,st,ut))if(st-=a.Nd,st/=a.rc,ut-=a.Od,ut/=a.sc,1>=Math.abs(rt-st)&&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,st|=0,ut|=0;var yt=x===0||x===90?1:-1;if(x=x===90||x===270,E[rt][ot]===pc?(r0(a,rt,ot,yt,x,z,y,ft,mt),r0(a,rt,ot,1,!x,z,y,ft,mt),r0(a,rt,ot,-1,!x,z,y,ft,mt)):r0(a,rt,ot,yt,x,rt,ot,rt,ot),E[st][ut]===pc?(o0(a,st,ut,b===0||b===90?1:-1,b===90||b===270,z,y,ft,mt),o0(a,st,ut,1,!(b===90||b===270),z,y,ft,mt),o0(a,st,ut,-1,!(b===90||b===270),z,y,ft,mt)):o0(a,st,ut,yt,x,st,ut,st,ut),x=Fi(),tt&&a1(a,st,ut,b,rt,ot,x))for((x[0]!==st||x[1]!==ut)&&(x.unshift(ut),x.unshift(st)),(x[x.length-2]!==rt||x[x.length-1]!==ot)&&(x.push(rt),x.push(ot)),a=Cf,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],st=x[z+1];y>b?b++:y<b?b--:st>tt?tt++:st<tt&&tt--,E[b][tt]=a++,b!==y||tt!==st;);else cd(a,rt,ot,1,!1,z,y,ft,mt),cd(a,rt,ot,-1,!1,z,y,ft,mt),cd(a,rt,ot,1,!0,z,y,ft,mt),cd(a,rt,ot,-1,!0,z,y,ft,mt);Ai(x)}}}}function a1(a,y,x,E,b,z,tt){for(var rt=a.ac,ot=y,st=x;;){if(ot===b&&st===z)return!0;var ut=ot,ft=st;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,st=ft}for(;;){if(ut=E,ft=ot,mt=st,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(st),a1(a,ot,st,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(rt[ot][st]=$v,E===0){if(ot===y)return!1;ot--}else if(E===90){if(st===x)return!1;st--}else if(E===180){if(ot===y)return!1;ot++}else{if(st===x)return!1;st++}}}je.Object.defineProperties(Fp.prototype,{bounds:{get:function(){return new We(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 pc=0,Cf=1,Dg=999999,_v=Dg+1,$v=Dg+2;Fp.className="PositionArray";function Yf(){lo(this),this.port=this.node=null,this.pe=[],this.ap=!1}Yf.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}Yf.prototype.Sl=function(){this.pe.length=0};function s1(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 Hi?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(ms,Zt.alloc()),ot=a.port.ga(Ul,Zt.alloc());for(b=We.allocAt(rt.x,rt.y,0,0),b.Ye(ot),Zt.free(rt),Zt.free(ot),rt=Zt.allocAt(b.x+b.width/2,b.y+b.height/2),ot=a.port.li(),tt=tt.iterator;tt.next();){var st=tt.value;if(st.isVisible()&&st.fromPort!==st.toPort){var ut=st.fromPort===a.port||st.fromNode!==null&&st.fromNode.Td(E),ft=st.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?st.toPort:st.fromPort,ut!==null)){var mt=ut.part;if(mt!==null){var yt=mt.findVisibleNode();yt!==null&&yt!==mt&&(mt=yt,ut=mt.port),ut=st.computeOtherPoint(mt,ut),mt=rt.ab(ut),mt-=ot,0>mt?mt+=360:360<=mt&&(mt-=360),ft=kx(b,ft,mt,st.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(st,mt,ft),a.pe[z]=yt):(yt.link=st,yt.angle=mt,yt.Nc=ft),yt.hv.set(ut),z++}}}}for(Zt.free(rt),a.pe.sort(Yf.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=Zt.alloc(),ot=Zt.alloc(),tt=Zt.alloc(),st=Zt.alloc(),ft.ga(ms,rt),ft.ga(Pd,ot),ft.ga(Ul,tt),ft.ga(Pu,st),yt=mt=ut=ft=0,E===Kv)for(var Ct=0;Ct<z.length;Ct++){var Mt=z[Ct];if(Mt!==null){var Vt=Mt.link.computeThickness();switch(Mt.Nc){case 8:mt+=Vt;break;case 2:yt+=Vt;break;case 1:ft+=Vt;break;default:case 4:ut+=Vt}}}var Rt=Ct=0,_t=1,te=Mt=0;for(Vt=0;Vt<z.length;Vt++){var ne=z[Vt];if(ne!==null){if(Ct!==ne.Nc){switch(Ct=ne.Nc,Ct){case 8:var ue=tt;Rt=st;break;case 2:ue=st,Rt=rt;break;case 1:ue=rt,Rt=ot;break;default:case 4:ue=ot,Rt=tt}switch(Mt=Rt.x-ue.x,te=Rt.y-ue.y,Ct){case 8:mt>Math.abs(Mt)?(_t=Math.abs(Mt)/mt,mt=Math.abs(Mt)):_t=1;break;case 2:yt>Math.abs(te)?(_t=Math.abs(te)/yt,yt=Math.abs(te)):_t=1;break;case 1:ft>Math.abs(Mt)?(_t=Math.abs(Mt)/ft,ft=Math.abs(Mt)):_t=1;break;default:case 4:ut>Math.abs(te)?(_t=Math.abs(te)/ut,ut=Math.abs(te)):_t=1}Rt=0}var Pe=ne.Zo;if(E===Kv){switch(ne=ne.link.computeThickness(),ne*=_t,Pe.set(ue),Ct){case 8:Pe.x=ue.x+Mt/2+mt/2-Rt-ne/2;break;case 2:Pe.y=ue.y+te/2+yt/2-Rt-ne/2;break;case 1:Pe.x=ue.x+Mt/2-ft/2+Rt+ne/2;break;default:case 4:Pe.y=ue.y+te/2-ut/2+Rt+ne/2}Rt+=ne}else{var Mn=.5;E===Ym&&(Mn=(ne.Uo+1)/(ne.Gl+1)),Pe.x=ue.x+Mt*Mn,Pe.y=ue.y+te*Mn}}}for(Zt.free(rt),Zt.free(ot),Zt.free(tt),Zt.free(st),ue=a.pe,z=0;z<ue.length;z++)E=ue[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,We.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}Yf.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},Yf.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,ps,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)},Yf.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Zt,this.Gl=this.Uo=0,this.Zo=new Zt,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 la(a){lo(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Zt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}la.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},la.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},la.prototype.qb=function(){},la.prototype.toString=function(){var a=zi(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},la.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())}}},la.prototype.createNetwork=function(){return new Wo(this)},la.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof ye?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Hi?y.lg(a.memberParts):y.lg(a.iterator),y},la.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")}},la.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()}},la.prototype.doLayout=function(a){var y=new sn;a instanceof ye?(jc(this,y,a.nodes,!0,this.rh,!0,!1,!0),jc(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Hi?jc(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},la.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;Np(rt);var ot=rt.measuredBounds,st=ot.width;ot=ot.height,rt.moveTo(E,b),rt instanceof Hi&&(rt.rh=!1),E+=Math.max(st,50)+20,tt=Math.max(tt,Math.max(ot,50)),z>=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},la.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 mn)&&(Np(rt),this.rh(rt))){var ot=rt.measuredBounds,st=ot.width;ot=ot.height,rt.moveTo(x,E),rt instanceof Hi&&(rt.rh=!1),x+=Math.max(st,50)+20,z=Math.max(z,Math.max(ot,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},la.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Hi&&a.rh)};function jc(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 Bn?ot.isLinkLabel||(ot instanceof Hi&&ot.layout===null?jc(a,y,ot.memberParts,!1,b,z,tt,rt):(Np(ot),y.add(ot))):tt&&ot instanceof mn?y.add(ot):!rt||!ot.Zc()||ot instanceof Bn||(Np(ot),y.add(ot)))}}function Np(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}la.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new We),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},la.prototype.ex=function(a){var y=new sn;return a instanceof ye?(jc(this,y,a.nodes,!0,null,!0,!0,!0),jc(this,y,a.links,!0,null,!0,!0,!0),jc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Hi?jc(this,y,a.memberParts,!1,null,!0,!0,!0):jc(this,y,a.iterator,!1,null,!0,!0,!0),y},la.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(ms),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},je.Object.defineProperties(la.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())}}}),la.prototype.collectParts=la.prototype.ex,la.prototype.getLayoutBounds=la.prototype.ni,la.prototype.invalidateLayout=la.prototype.C,la.className="Layout";function Wo(a){lo(this),this.Sc=a,this.wf=new sn,this.ye=new sn,this.Es=new ci,this.zs=new ci}Wo.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 sn,this.ye=new sn,this.Es=new ci,this.zs=new ci},Wo.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},Wo.prototype.createVertex=function(){return new gs(this)},Wo.prototype.createEdge=function(){return new pu(this)},Wo.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 Bn)return!tt.isLinkLabel;if(tt instanceof mn){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 Bn&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Hi&&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 mn&&(!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))}}},Wo.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},xt=Wo.prototype,xt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},xt.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},xt.Iu=function(a){if(a!==null&&l1(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 l1(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}xt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},xt.ki=function(a){return a===null?null:this.Es.I(a)},xt.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}}xt.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},xt.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))}xt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},xt.Lo=function(a){return a===null?null:this.zs.I(a)},xt.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},xt.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))}},xt.Ko=function(){for(var a=Fi(),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]);Ai(a)},Wo.prototype.deleteArtificialVertexes=function(){for(var a=Fi(),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=Fi(),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]);Ai(a),Ai(y)};function Fx(a){for(var y=Fi(),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]);Ai(y)}Wo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Fx(this),this.Ko()),a=new vn;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){l1(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))}}Wo.prototype.dz=function(){for(var a=new sn,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},je.Object.defineProperties(Wo.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}}}),Wo.prototype.findAllParts=Wo.prototype.dz,Wo.prototype.splitIntoSubNetworks=Wo.prototype.Zx,Wo.prototype.deleteSelfEdges=Wo.prototype.Ko,Wo.prototype.reverseEdge=Wo.prototype.gm,Wo.prototype.linkVertexes=Wo.prototype.Zj,Wo.prototype.findEdge=Wo.prototype.Lo,Wo.prototype.deleteLink=Wo.prototype.Yy,Wo.prototype.deleteEdge=Wo.prototype.Mj,Wo.prototype.addLink=Wo.prototype.Dy,Wo.prototype.addEdge=Wo.prototype.Bo,Wo.prototype.findVertex=Wo.prototype.ki,Wo.prototype.deleteNode=Wo.prototype.Zy,Wo.prototype.deleteVertex=Wo.prototype.Iu,Wo.prototype.addNode=Wo.prototype.Bl,Wo.prototype.addVertex=Wo.prototype.dh,Wo.prototype.addParts=Wo.prototype.lg,Wo.className="LayoutNetwork";function gs(a){lo(this),this.ob=a,this.j=new We(0,0,10,10).freeze(),this.o=new Zt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new vn,this.mg=new vn}gs.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new vn,this.mg=new vn},gs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+xa(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},gs.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;fn(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 Hi)){x=We.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga($r);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),We.free(x);return}We.free(x)}a.moveTo(y.x,y.y)}},gs.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},gs.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},gs.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},gs.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}je.Object.defineProperties(gs.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=We.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),We.free(x),!(a instanceof Hi)&&(a=a.locationObject.ga($r),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 sn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new sn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new sn,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 vn,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}}}),gs.prototype.deleteDestinationEdge=gs.prototype.Jl,gs.prototype.addDestinationEdge=gs.prototype.zl,gs.prototype.deleteSourceEdge=gs.prototype.Kl,gs.prototype.addSourceEdge=gs.prototype.Cl,gs.className="LayoutVertex",gs.standardComparer=ry,gs.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 pu(a){lo(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}pu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},pu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+xa(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},pu.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},pu.prototype.commit=function(){},pu.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},je.Object.defineProperties(pu.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)}}}),pu.prototype.getOtherVertex=pu.prototype.Ax,pu.className="LayoutEdge";function Hs(a){la.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new $e(NaN,NaN).freeze(),this.tf=new $e(10,10).freeze(),this.Jb=Dp,this.Rb=s0,this.nd=Tp,this.hd=u1,a&&Object.assign(this,a)}se(Hs,la),Hs.prototype.cloneProtected=function(a){la.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},Hs.prototype.qb=function(a){a.classType===Hs?a===Tp||a===u0||a===oy||a===l0?this.sorting=a:a===s0||a===Dh?this.arrangement=a:a===Dp||a===a0?this.alignment=a:be("Unknown enum value: "+a):la.prototype.qb.call(this,a)},Hs.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 Hi)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 l0:b.reverse();break;case Tp:b.sort(this.comparer);break;case u0: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 a0:var rt=y,ot=x,st=We.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],st);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],st);ft=Math.max(ft,yt.height)}ft=Math.max(ft+ot,1),mt=this.arrangement;for(var Ct=yt=this.arrangementOrigin.x,Mt=this.arrangementOrigin.y,Vt=0,Rt=0,_t=0;_t<b.length;_t++){var te=b[_t],ne=this.ni(te,st),ue=Math.ceil((ne.width+rt)/ut)*ut,Pe=Math.ceil((ne.height+ot)/ft)*ft;switch(mt){case Dh:var Mn=Math.abs(Ct-ne.width);break;default:Mn=Ct+ne.width}switch((0<z&&Vt>z-1||0<tt&&0<Vt&&Mn-yt>tt)&&(E.push(new We(0,Mt,tt+rt,Rt)),Vt=0,Ct=yt,Mt+=Rt,Rt=0),Rt=Math.max(Rt,Pe),mt){case Dh:ne=-ne.width;break;default:ne=0}switch(te.moveTo(Ct+ne,Mt),mt){case Dh:Ct-=ue;break;default:Ct+=ue}Vt++}E.push(new We(0,Mt,tt+rt,Rt)),We.free(st);break;case Dp:for(ot=tt,ut=z,ft=y,mt=x,tt=We.alloc(),yt=Math.max(this.cellSize.width,1),z=Mt=st=0,rt=Zt.alloc(),Ct=0;Ct<b.length;Ct++)Rt=b[Ct],Vt=this.ni(Rt,tt),Rt=dc(Rt,Rt.locationObject,Rt.locationSpot,rt),st=Math.max(st,Rt.x),Mt=Math.max(Mt,Vt.width-Rt.x),z=Math.max(z,Rt.y);switch(Ct=this.arrangement,Ct){case Dh:st+=ft;break;default:Mt+=ft}yt=isFinite(yt)?Math.max(yt+ft,1):Math.max(st+Mt,1);var ei=Rt=this.arrangementOrigin.x;for(_t=this.arrangementOrigin.y,Mt=0,ot>=st&&(ot-=st),st=te=0,ue=Math.max(this.cellSize.height,1),ne=z=0,Pe=!0,Vt=Zt.alloc(),Mn=0;Mn<b.length;Mn++){var Kn=b[Mn],pn=this.ni(Kn,tt),qe=dc(Kn,Kn.locationObject,Kn.locationSpot,rt);if(0<Mt)switch(Ct){case Dh:ei=(ei-Rt-(pn.width-qe.x))/yt,ei=pe.$(Math.round(ei),ei)?Math.round(ei):Math.floor(ei),ei=ei*yt+Rt;break;default:ei=(ei-Rt+qe.x)/yt,ei=pe.$(Math.round(ei),ei)?Math.round(ei):Math.ceil(ei),ei=ei*yt+Rt}else switch(Ct){case Dh:te=ei+qe.x+pn.width;break;default:te=ei-qe.x}switch(Ct){case Dh:var ji=-(ei+qe.x)+te;break;default:ji=ei+pn.width-qe.x-te}if(0<ut&&Mt>ut-1||0<ot&&0<Mt&&ji>ot){for(E.push(new We(0,Pe?_t-z:_t,ot+ft,ne+z+mt)),ei=0;ei<Mt&&Mn!==Mt;ei++){ji=b[Mn-Mt+ei];var Ni=dc(ji,ji.locationObject,ji.locationSpot,Vt);ji.moveTo(ji.position.x,ji.position.y+z-Ni.y)}ne+=mt,_t=Pe?_t+ne:_t+(ne+z),Mt=ne=z=0,ei=Rt,Pe=!1}switch(ei===Rt&&(st=Ct===Dh?Math.max(st,pn.width-qe.x):Math.min(st,-qe.x)),z=Math.max(z,qe.y),ne=Math.max(ne,pn.height-qe.y),isFinite(ue)&&(ne=Math.max(ne,Math.max(pn.height,ue)-qe.y)),Pe?Kn.moveTo(ei-qe.x,_t-qe.y):Kn.moveTo(ei-qe.x,_t),Ct){case Dh:ei-=qe.x+ft;break;default:ei+=pn.width-qe.x+ft}Mt++}if(E.push(new We(0,_t,ot+ft,(Pe?ne:ne+z)+mt)),b.length!==Mt)for(ot=0;ot<Mt;ot++)ut=b[b.length-Mt+ot],ft=dc(ut,ut.locationObject,ut.locationSpot,rt),ut.moveTo(ut.position.x,ut.position.y+z-ft.y);if(Zt.free(rt),Zt.free(Vt),Ct===Dh)for(b=0;b<E.length;b++)z=E[b],z.width+=st,z.x-=st;else for(b=0;b<E.length;b++)z=E[b],z.x>st&&(z.width+=z.x-st,z.x=st);We.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===Dh?this.commitLayers(E,new Zt(b+y/2-(z+b),tt-x/2)):this.commitLayers(E,new Zt(b-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Hs.prototype.commitLayers=function(){};function u1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}je.Object.defineProperties(Hs.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!==Dp&&a!==a0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==s0&&a!==Dh||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==oy&&a!==l0&&a!==Tp&&a!==u0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var a0=new Te(Hs,"Position",0),Dp=new Te(Hs,"Location",1),s0=new Te(Hs,"LeftToRight",2),Dh=new Te(Hs,"RightToLeft",3),oy=new Te(Hs,"Forward",4),l0=new Te(Hs,"Reverse",5),Tp=new Te(Hs,"Ascending",6),u0=new Te(Hs,"Descending",7);Hs.className="GridLayout",Hs.standardComparer=u1,Hs.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},Hs.Position=a0,Hs.Location=Dp,Hs.LeftToRight=s0,Hs.RightToLeft=Dh,Hs.Forward=oy,Hs.Reverse=l0,Hs.Ascending=Tp,Hs.Descending=u0;function mo(){this.On=new sn,this.Dn=new sn,this.Pa=new sn,this.cf=new ci,this.bf=new ci,this.aj=new ci,this.H=null,this.tp=!1}xt=mo.prototype,xt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},xt.Xe=function(a){this.H=a},xt.oi=function(a){if(a instanceof Bn){if(this.On.add(a),a instanceof Hi){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 mn?this.Dn.add(a):a instanceof Hr||this.Pa.add(a);y=a.data,y===null||a instanceof Hr||(a instanceof mn?this.bf.add(y,a):this.cf.add(y,a))},xt.pc=function(a){if(a.Ej(),a instanceof Bn){if(this.On.remove(a),a instanceof Hi){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 mn?this.Dn.remove(a):a instanceof Hr||this.Pa.remove(a);y=a.data,y===null||a instanceof Hr||(a instanceof mn?this.bf.remove(y):this.cf.remove(y))},xt.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 Hi)&&be('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 Hi||be('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 mn||be('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Fi(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=Fi(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=Fi(),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]);Ai(y),Ai(x),Ai(a)}},mo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},mo.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&h1(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&Od(this.diagram,!1)};function h1(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=d1(a,y,E);if(b!==null&&(nh(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)}}mo.prototype.insertLink=function(){return null},mo.prototype.resolveReferencesForData=function(){},mo.prototype.Ro=function(a){return this.H.model.Ro(a)};function d1(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&&(g1||(g1=!0,Er('No Group template found for category "'+x+'"'),Er(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(f1||(f1=!0,Er('No Node template found for category "'+x+'"'),Er(" Using default node template")),y=a.ny))),y}mo.prototype.getLinkCategoryForData=function(){return""},mo.prototype.setLinkCategoryForData=function(){},mo.prototype.setFromNodeForLink=function(){},mo.prototype.setToNodeForLink=function(){},mo.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(p1||(p1=!0,Er('No Link template found for category "'+a+'"'),Er(" Using default link template")),x=y.my)),x},mo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},mo.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},mo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(lf(this.diagram,a,!1),this.unresolveReferencesForPart(a))},mo.prototype.unresolveReferencesForPart=function(){},mo.prototype.removeDataForLink=function(){},mo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},mo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Bn?a:null)},mo.prototype.findLinkForKey=function(){return null},xt=mo.prototype,xt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},xt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Bn?a:null)},xt.Kc=function(a){return a===null?null:this.bf.I(a)},xt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new sn;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(fn(tt)&&ay(this,b,tt)){y.add(E);break}}}return y.iterator},xt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new sn;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(fn(tt)&&ay(this,b,tt)){y.add(E);break}}}return y.iterator};function ay(a,y,x){for(var E in x){var b=y[E],z=x[E];if(bi(z)){if(!bi(b)||b.length<z.length)return!1;for(var tt=0;tt<b.length;tt++){var rt=z[tt];if(rt!==void 0&&!c1(a,b[tt],rt))return!1}}else if(!c1(a,b,z))return!1}return!0}function c1(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(fn(y)&&fn(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}mo.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===ba){var tt=a.newValue;E==="nodeDataArray"&&fn(tt)&&h1(this,tt),y.isModified=!0}else if(x===Ra){var rt=a.oldValue;E==="nodeDataArray"&&fn(rt)&&this.ip(rt),y.isModified=!0}else x===yl&&(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,st=a.object;st===y.model?(ot==="nodeKeyProperty"||ot==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(st,ot),y.isModified=!0}else if(x===ba||x===Ra){var ut=a.change===ba,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 Ct=yt[a];if(ut)Mm(Ct,mt,ft,!0);else if(!(0>ft)){var Mt=ft+gp(Ct);Ct.pc(Mt,!0),xv(Ct,Mt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},mo.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)},mo.prototype.rp=function(){for(var a=this.H.model,y=new sn,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){E1(a,tt,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&C1(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()},mo.prototype.refreshDataBoundLinks=function(){},mo.prototype.updateRelationshipsFromData=function(){},mo.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=Fi()),x.push(tt))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);Ai(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function sy(a,y){var x=y.Hh;if(bi(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){yf(y,function(tt){tt=tt.O.s;for(var rt=tt.length,ot=0;ot<rt;ot++)Zh(x,tt[ot])});var E=y.Hh;if(bi(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}}}}mo.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new ci;if(bi(a))for(var b=0;b<a.length;b++)h0(this,a[b],y,E,x);else for(a=a.iterator;a.next();)h0(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 sn;for(var z=new ci,tt=E.iterator;tt.next();){var rt=tt.value;if(rt instanceof mn)a||rt.fromNode!==null&&rt.toNode!==null||b.add(rt);else if(rt instanceof Bn&&rt.data!==null&&x.Tl()){var ot=rt;rt=tt.key;var st=rt.pg();st!==null&&(st=E.I(st),st!==null?(x.qe(ot.data,x.wa(st.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 ci;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 h0(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 pi))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof Bn){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 Hi&&z instanceof Hi)for(y=y.memberParts;y.next();)tt=h0(a,y.value,x,E,b),tt instanceof mn||tt===null||(tt.containingGroup=z)}else if(y instanceof mn&&z instanceof mn)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=h0(a,y.value,x,E,b),tt!==null&&tt instanceof Bn&&(tt.labeledLink=z);return z}mo.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof mn||(E=b.copyNodeData(E),fn(E)&&(b.xf(E),x=y.Lc(E)))}else nh(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 mn||(b=y.copyNodeData(E)),fn(b)&&(x.data=b)));return x},je.Object.defineProperties(mo.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}}}),mo.prototype.updateAllRelationshipsFromData=mo.prototype.rp,mo.prototype.findLinksByExample=mo.prototype.ls,mo.prototype.findNodesByExample=mo.prototype.ms,mo.prototype.findLinkForData=mo.prototype.Kc,mo.prototype.findNodeForData=mo.prototype.ii,mo.prototype.findPartForData=mo.prototype.Lc,mo.prototype.findNodeForKey=mo.prototype.Vb,mo.prototype.removeModeledPart=mo.prototype.ip,mo.prototype.removeModeledParts=mo.prototype.Gs,mo.prototype.rebuildParts=mo.prototype.Wd;var f1=!1,g1=!1,p1=!1;mo.className="PartManager";function Fs(a){mo.apply(this,arguments)}se(Fs,mo),Fs.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),m1(this,a.linkDataArray)},Fs.prototype.addModeledParts=function(a){for(mo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Mg(a.value);Od(this.diagram,!1)};function m1(a,y){y.forEach(function(x){v1(a,x)}),Od(a.diagram,!1)}function v1(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){nh(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=g0(x,y,!0);z!==""&&(b.fromPortId=z),z=Ou(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Bn&&(b.fromNode=z)),z=g0(x,y,!1),z!==""&&(b.toPortId=z),z=Ou(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Bn&&(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;y1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function y1(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=mo.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(mo.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 st=this.Kc(a.object);if(st!==null){var ut=a.newValue;typeof ut=="string"&&(st.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 Ct=a.newValue;if(Ct!==void 0){var Mt=this.Vb(Ct);Mt instanceof Hi?yt.containingGroup=Mt:yt.containingGroup=null}else yt.containingGroup=null}}else if(b==="linkLabelKeys"){var Vt=this.Kc(a.object);if(Vt!==null){var Rt=a.oldValue,_t=a.newValue;Array.isArray(Rt)&&Rt.forEach(function(qe){0<=_t.indexOf(qe)||(qe=y.Vb(qe),qe!==null&&(qe.labeledLink=null))}),Array.isArray(_t)&&_t.forEach(function(qe){qe=y.Vb(qe),qe!==null&&(qe.labeledLink=Vt)})}}else if(b==="linkCategory"){var te=this.Kc(a.object),ne=a.newValue;te!==null&&typeof ne=="string"&&(te.category=ne)}else b==="linkDataArray"&&(y1(this,a.oldValue),m1(this,a.newValue));x.isModified=!0}else if(E===ba){var ue=a.newValue;if(b==="linkDataArray"&&typeof ue=="object"&&ue!==null)v1(this,ue);else if(b==="linkLabelKeys"&&Hc(ue)){var Pe=this.Kc(a.object),Mn=this.Vb(ue);Pe!==null&&Mn!==null&&(Mn.labeledLink=Pe)}x.isModified=!0}else if(E===Ra){var ei=a.oldValue;if(b==="linkDataArray"&&typeof ei=="object"&&ei!==null)this.ip(ei);else if(b==="linkLabelKeys"&&Hc(ei)){var Kn=this.Vb(ei);Kn!==null&&(Kn.labeledLink=null)}x.isModified=!0}}else if(E===Yo){var pn=a.propertyName;a.object!==x.model||pn!=="linkFromKeyProperty"&&pn!=="linkToKeyProperty"&&pn!=="linkFromPortIdProperty"&&pn!=="linkToPortIdProperty"&&pn!=="linkLabelKeysProperty"&&pn!=="nodeIsGroupProperty"&&pn!=="nodeGroupKeyProperty"&&pn!=="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 sn,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){F1(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&k1(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 mn){var b=Ou(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=Ou(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 sn().addAll(y);var tt=new sn;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 Hr)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Hi)&&(a.containingGroup=y)}}},Fs.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=Bp(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 Hi&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=b)):(z.link=this.Kc(tt),z.link!==null&&b instanceof Bn&&(Ou(y,tt,!0)===x&&(z.link.fromNode=b),Ou(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}}Bh(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Hi&&(b.containingGroup=a))}},Fs.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Bn){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)Th(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&Th(y,x,E.data)),a instanceof Hi)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&Th(y,x,E)}}},Fs.prototype.copyPartData=function(a,y){var x=mo.prototype.copyPartData.call(this,a,y);if(a instanceof mn)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 mn){if(nh(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 Bn&&(nh(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&&Bg(z,E,z.wa(a.data),!0),Og(z,E,rt,!0),x!==null&&Bg(z,E,z.wa(x.data),!1),Og(z,E,y,!1),z.fi(E),a=tt.archetypeLabelNodeData,a===null||a instanceof Bn||(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 Zu(){mo.apply(this,arguments),this.Sg=null}se(Zu,mo);function d0(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||!Kr(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(nh(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}}}Zu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Zu.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Zu.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}},Zu.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))},Zu.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Zu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Zu.prototype.doModelChanged=function(a){if(mo.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:d0(this,z,tt)}}else if(E==="parentLinkCategory"){var ot=this.ii(a.object),st=a.newValue;if(ot!==null&&typeof st=="string"){var ut=ot.kh();ut!==null&&(ut.category=st)}}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}}}}},Zu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof Bn&&(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:d0(this,y,a):E!==null&&lf(x,E,!1)))}}},Zu.prototype.updateDataBindings=function(a,y){mo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Zu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=Bp(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 Bn&&y.mh(z)===x&&d0(this,b,this.ii(z))}Bh(y,x)}a=y.mh(a),a!==void 0&&b instanceof Bn&&(a=this.Vb(a),d0(this,a,b))}},Zu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Bn){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(Ra,"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)&&Th(y,x,b)}},Zu.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},Zu.prototype.findLinkForKey=Zu.prototype.findLinkForKey,Zu.className="TreePartManager";function ai(a,y){this.kl=new sn,this.il=new sn,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,lo(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new ci,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 ci,this.Lt=new vn,this.Wg=!1,this.o=null,this.undoManager=new ha,a!==void 0&&(bi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}ai.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},ai.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ai.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},ai.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)+":"+Jr(b)}}return y},ai.prototype.xA=function(a){a.change!==yl&&be("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof os?(x1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},ai.prototype.Qv=function(a,y){var x=this,E=!1,b=new sn,z=new sn,tt=new sn,rt=this.vh;a.changes.each(function(ft){ft.model===x&&(ft.modelChange==="nodeDataArray"?ft.change===ba?b.add(ft.newValue):ft.change===Ra&&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 ai||x.ri()&&x.Jc(ft.object)||w1(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 st=this.kl;st.clear(),tt.each(function(ft){st.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<st.count&&(ut===null&&(ut={}),y?ut.insertedNodeKeys=st.Fa():ut.removedNodeKeys=st.Fa()),st.clear(),ot.clear(),ut},ai.prototype.cloneDeep=function(a){return Tg(this,a,!0)};function Tg(a,y,x,E,b,z){function tt(ft,mt){rt?(ft.__gohashid===void 0&&z.push(ft),E.set(ft,mt)):(ft=fl++,E.set(ft,mt),b.set(ft,y))}if(!fn(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(E||(E=new ci),rt){var ot=E.get(y);if(ot)return ot}else for(b||(b=new ci),ot=b.iterator;ot.next();){var st=ot.key;if(ot.value===y&&(st=E.get(st)))return st}if(Array.isArray(y)){ot=[],tt(y,ot);for(var ut=0;ut<y.length;ut++)ot.push(Tg(a,y[ut],!1,E,b,z))}else if(y instanceof Zt||y instanceof $e||y instanceof We||y instanceof Qi||y instanceof yi)ot=y.copy(),tt(y,ot);else{if(y instanceof ho||y instanceof yn||y instanceof Te)return y;if(y instanceof vn)ot=new vn().addAll(Tg(a,y.Fa(),!1,E,b,z)),tt(y,ot);else if(y instanceof sn)ot=new sn().addAll(Tg(a,y.Fa(),!1,E,b,z)),tt(y,ot);else if(y instanceof ci)ot=new ci().addAll(Tg(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]=Tg(a,y[ut],!1,E,b,z))}return x&&z.forEach(function(ft){delete ft.__gohashid}),ot}xt=ai.prototype,xt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},xt.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},xt.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 S1(a,y){y=y.modelData,fn(y)&&(a.dm(y),a.modelData=y)}xt.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!P1(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+uy(this,this.modelData)),a+`,
"nodeDataArray": `+Wc(this,this.nodeDataArray,!0)},xt.kv=function(a){S1(this,a),a=a.nodeDataArray,bi(a)&&(this.dm(a),this.nodeDataArray=a)};function x1(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var tt=E.get(b);tt===null?(tt=new sn,tt.add(z),E.add(b,tt)):tt.add(z)}}var E=a.vh;E===null&&(E=new ci,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===ba||z===Ra)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function w1(a,y){for(var x=new sn,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];c0(a,y,b,b,x)}return x}function c0(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(c0(a,y,tt,E,b))return!0}else if(fn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(tt=x[z],tt===y)return b.add(E),!0;if(c0(a,y,tt,E,b))return!0}return!1}xt.Pv=function(a,y){var x=this,E=!1,b=new sn,z=new sn,tt=new sn,rt=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===ba?b.add(ut.newValue):ut.change===Ra&&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 ai||x.ri()&&x.Jc(ut.object)||w1(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 st=this.kl;return st.clear(),tt.each(function(ut){st.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)+Wc(this,ot.Fa(),!0)),0<z.count&&(a+=this.jy+Wc(this,z.Fa(),!0)),0<st.count&&(a+=(y?this.Wv:this.Yv)+Wc(this,st.Fa(),!0)),st.clear(),ot.clear(),a},xt.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)&&be("applyIncrementalJson cannot change Model properties"),S1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new ci;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)},xt.$x=function(a,y){a.change!==yl&&be("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof os?(y===void 0&&(y=Op(this,this)),x1(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 }'},xt.yA=function(a,y){return this.$x(a,y)},xt.np=function(a){return a===void 0&&(a=Op(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},xt.toJSON=function(a){return this.np(a)},xt.Zw=function(a){var y=null;if(typeof a=="string")try{y=Me.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:be("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&be("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},xt.Ky=function(a){return this.Zw(a)},ai.constructGraphLinksModel=function(){return new ai},xt=ai.prototype,xt.dm=function(a){if(bi(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(fn(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:be("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(fn(a)){for(y in a)if(x=a[y],fn(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 vn,E=0;E<x.length/2;E++)b.add(new Zt(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return Nx(a)}return a},xt.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()):bi(a)?Wc(this,a):fn(a)?uy(this,a):typeof a=="function"?"null":a.toString()};function Wc(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new co;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 P1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function zl(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof Zt)y={class:"go.Point",x:zl(x.x),y:zl(x.y)};else if(x instanceof $e)y={class:"go.Size",width:zl(x.width),height:zl(x.height)};else if(x instanceof We)y={class:"go.Rect",x:zl(x.x),y:zl(x.y),width:zl(x.width),height:zl(x.height)};else if(x instanceof Qi)y={class:"go.Margin",top:zl(x.top),right:zl(x.right),bottom:zl(x.bottom),left:zl(x.left)};else if(x instanceof yi)x.sb()?y={class:"go.Spot",x:zl(x.x),y:zl(x.y),offsetX:zl(x.offsetX),offsetY:zl(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof ho){if(y={class:"go.Brush",type:x.type.name},x.type===lc?y.color=x.color:(x.type===jd||x.type===Vu)&&(y.start=x.start,y.end=x.end,x.type===Vu&&(x.startRadius!==0&&(y.startRadius=zl(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=zl(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 yn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=zl(x.startX)),x.startY!==0&&(y.startY=zl(x.startY)),x.endX!==0&&(y.endX=zl(x.endX)),x.endY!==0&&(y.endY=zl(x.endY)),x.spot1.D(ms)||(y.spot1=x.spot1),x.spot2.D(Ul)||(y.spot2=x.spot2),x.type===yn.o&&(y.path=yn.ia(x))):x instanceof Te&&(y={class:"go.EnumValue",classType:Op(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=Za(y,b);if(!P1(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof vn){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 jl(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Nx(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 Zt(jl(a.x),jl(a.y));else if(y==="Size")x=new $e(jl(a.width),jl(a.height));else if(y==="Rect")x=new We(jl(a.x),jl(a.y),jl(a.width),jl(a.height));else if(y==="Margin")x=new Qi(jl(a.top),jl(a.right),jl(a.bottom),jl(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Md(a.enum):x=new yi(jl(a.x),jl(a.y),jl(a.offsetX),jl(a.offsetY));else if(y==="Brush"){if(x=new ho,x.type=cr(ho,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof yi&&(x.start=a.start),a.end instanceof yi&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=jl(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=jl(a.endRadius)),a=a.colorStops,fn(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=yn.parse(a.path):x=new yn,x.type=cr(yn,a.type),typeof a.startX=="number"&&(x.startX=jl(a.startX)),typeof a.startY=="number"&&(x.startY=jl(a.startY)),typeof a.endX=="number"&&(x.endX=jl(a.endX)),typeof a.endY=="number"&&(x.endY=jl(a.endY)),a.spot1 instanceof yi&&(x.spot1=a.spot1),a.spot2 instanceof yi&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=dy(E),typeof E=="function"&&(x=cr(E,a.name)));return x}xt.Pe=function(a){return this.Lt.add(a),this},xt.ik=function(a){this.Lt.remove(a)},xt.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)},xt.cb=function(a,y,x,E,b,z,tt){ds(this,"",a,y,x,E,b,z,tt)},xt.g=function(a,y,x,E,b){ds(this,"",Yo,a,this,y,x,E,b)},xt.Fs=function(a,y,x,E,b,z){ds(this,"",Yo,y,a,x,E,b,z)};function ds(a,y,x,E,b,z,tt,rt,ot){rt===void 0&&(rt=null),ot===void 0&&(ot=null);var st=new ia;st.model=a,st.change=x,st.modelChange=y,st.propertyName=E,st.object=b,st.oldValue=z,st.oldParam=rt,st.newValue=tt,st.newParam=ot,a.ds(st)}ai.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)),aa(x,E,b)}else a.change===ba?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,fn(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&Ao(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&na(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!bi(E)&&a.propertyName&&(E=Za(a.object,a.propertyName)),bi(E)&&typeof x=="number"&&(a=a.newValue,y?Ao(E,x):na(E,x,a))):be("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Ra?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,fn(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&na(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&Ao(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!bi(E)&&a.propertyName&&(E=Za(a.object,a.propertyName)),bi(E)&&typeof x=="number"&&(a=a.oldValue,y?na(E,x,a):Ao(E,x))):be("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==yl&&be("unknown ChangedEvent: "+a.toString())},ai.prototype.Ea=function(a){return this.undoManager.Ea(a)},ai.prototype.eb=function(a){return this.undoManager.eb(a)},ai.prototype.Kf=function(){return this.undoManager.Kf()},ai.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}},xt=ai.prototype,xt.La=function(a,y){y===void 0&&(y=""),ds(this,"SourceChanged",yl,y,a,null,null)},xt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Za(a,y),y!==void 0)){if(Hc(y))return y;be("Key value for node data "+a+" is not a number or a string: "+y)}}},xt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=Za(a,x);E!==y&&this.hc(y)===null&&(aa(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),ds(this,"nodeKey",Yo,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else aa(a,x,y)}};function Hc(a){return typeof a=="number"||typeof a=="string"}xt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},xt.hc=function(a){return a===null&&be("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Hc(a)?this.kb.I(a):null},xt.$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))){aa(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;aa(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;aa(a,y,x)}}}}},xt.xf=function(a){a!==null&&(bs(a),this.lb(a)||C1(this,a,!0))};function C1(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&&be("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,na(a.Tc,E,y)),ds(a,"nodeDataArray",ba,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}xt.Fy=function(a){if(bi(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)},xt.cm=function(a){a!==null&&E1(this,a,!0)};function E1(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;Ao(a.Tc,E)}ds(a,"nodeDataArray",Ra,"nodeDataArray",a,y,null,E,null),a.qp(y)}xt.nA=function(a){if(bi(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)},xt.$z=function(a){if(a!==this.nodeDataArray&&bi(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()}},xt.jp=function(a,y){y!==void 0&&(a=Bp(this,a),a instanceof sn&&this.Vf.add(y,a))},xt.Lv=function(){},xt.fm=function(){},xt.em=function(){},xt.qp=function(){};function Th(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new sn,a.Vf.add(y,E)),E.add(x)}}function Bh(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof sn&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function Bp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof sn?a:null)}xt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},ai.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):f0(this,a,!0),fn(a)&&lo(a),a};function f0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=f0(a,y[x],a.copiesArrayObjects);E.push(b)}return lo(E),E}if(x&&fn(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=Za(y,E),tt=Op(a,z);tt==="GraphObject"||tt==="Diagram"||tt==="Layer"||tt==="RowColumnDefinition"||tt==="AnimationManager"||tt==="Tool"||tt==="CommandHandler"||tt==="Layout"||tt==="InputEvent"||tt==="DiagramEvent"||z instanceof ai||z instanceof ha||z instanceof os||z instanceof ia||(z=f0(a,z,!1)),aa(x,E,z)}return lo(x),x}return y instanceof Zt||y instanceof $e||y instanceof We||y instanceof yi||y instanceof Qi?y.copy():y}ai.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!L1&&a instanceof fe&&(L1=!0,Er('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Er(" Is that really your intent?"));var E=Za(a,y);E!==x&&(aa(a,y,x),this.Fs(a,y,E,x))},xt=ai.prototype,xt.set=function(a,y,x){this.setDataProperty(a,y,x)},xt.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])}},xt.Ay=function(a,y){this.ts(a,-1,y)},xt.ts=function(a,y,x){0>y&&(y=a.length),na(a,y,x),ds(this,"",ba,"",a,null,x,null,y)},xt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&be("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Ao(a,y),ds(this,"",Ra,"",a,x,null,y,null)},xt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Za(a,y),y===void 0))return"";if(typeof y=="string")return y;be("getCategoryForNodeData found a non-string category for "+a+": "+y)},xt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Za(a,x);E===void 0&&(E=""),E!==y&&(aa(a,x,y),ds(this,"nodeCategory",Yo,x,a,E,y))}else aa(a,x,y)}},xt.lm=function(a,y){this.jm(y,this.Ro(a))},xt.Tl=function(){return!1},xt.Wj=function(){return!1},xt.ri=function(){return!1},xt.xs=function(){return!1},xt.Xj=function(){return!1};function hy(){return new ai}function Op(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 Op(a,y.constructor);return typeof y}function dy(a){return vh[a]?vh[a]:Me.go!==void 0&&Me.go[a]?Me.go[a]:null}function Za(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 aa(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){}}je.Object.defineProperties(ai.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===""&&be("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&be("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];fn(b)||be("Model.nodeDataArray must only contain Objects, not: "+b),bs(b)}for(this.Tc=a,E=new vn,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(ds(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"}}}),ai.prototype.setCategoryForNodeData=ai.prototype.jm,ai.prototype.getCategoryForNodeData=ai.prototype.Ro,ai.prototype.removeArrayItem=ai.prototype.ov,ai.prototype.insertArrayItem=ai.prototype.ts,ai.prototype.addArrayItem=ai.prototype.Ay,ai.prototype.assignAllDataProperties=ai.prototype.Do,ai.prototype.set=ai.prototype.set,ai.prototype.clearUnresolvedReferences=ai.prototype.Qy,ai.prototype.mergeNodeDataArray=ai.prototype.$z,ai.prototype.removeNodeDataCollection=ai.prototype.nA,ai.prototype.removeNodeData=ai.prototype.cm,ai.prototype.addNodeDataCollection=ai.prototype.Fy,ai.prototype.addNodeData=ai.prototype.xf,ai.prototype.makeNodeDataKeyUnique=ai.prototype.$u,ai.prototype.findNodeDataForKey=ai.prototype.hc,ai.prototype.containsNodeData=ai.prototype.lb,ai.prototype.setKeyForNodeData=ai.prototype.km,ai.prototype.getKeyForNodeData=ai.prototype.wa,ai.prototype.updateTargetBindings=ai.prototype.La,ai.prototype.commit=ai.prototype.commit,ai.prototype.rollbackTransaction=ai.prototype.Kf,ai.prototype.commitTransaction=ai.prototype.eb,ai.prototype.startTransaction=ai.prototype.Ea,ai.prototype.raiseDataChanged=ai.prototype.Fs,ai.prototype.raiseChanged=ai.prototype.g,ai.prototype.raiseChangedEvent=ai.prototype.cb,ai.prototype.removeChangedListener=ai.prototype.ik,ai.prototype.addChangedListener=ai.prototype.Pe,ai.prototype.writeJsonValue=ai.prototype.sm,ai.prototype.replaceJsonObjects=ai.prototype.dm,ai.prototype.applyIncrementalJSON=ai.prototype.Ky,ai.prototype.applyIncrementalJson=ai.prototype.Zw,ai.prototype.toJSON=ai.prototype.toJSON,ai.prototype.toJson=ai.prototype.np,ai.prototype.toIncrementalJSON=ai.prototype.yA,ai.prototype.toIncrementalJson=ai.prototype.$x,ai.prototype.toIncrementalData=ai.prototype.xA,ai.prototype.clear=ai.prototype.clear;var L1=!1,vh={};ai.className="Model",ai.fromJSON=ai.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Me.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:be("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=Me[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof ai?y=a:be("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=ai.constructGraphLinksModel()),y.gp(x),y.kv(x),y},ai.safePropertyValue=Za,ai.safePropertySet=aa,vh.Brush=ho,vh.ChangedEvent=ia,vh.Geometry=yn,vh.Margin=Qi,vh.Panel=ln,vh.Point=Zt,vh.Rect=We,vh.Size=$e,vh.Spot=yi,vh.Transaction=os,vh.UndoManager=ha;function qa(a,y,x,E){lo(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=b1,this.wk=null):(this.el=Ip,this.wk=E),this.st=new sn}qa.prototype.copy=function(){var a=new qa;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},xt=qa.prototype,xt.qb=function(a){a.classType===qa&&(this.mode=a)},xt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},xt.freeze=function(){return this._isFrozen=!0,this},xt.ka=function(){return this._isFrozen=!1,this},xt.Kx=function(a){return a===void 0&&(a=null),this.mode=Ip,this.backConverter=a,this},xt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},xt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function A1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}xt.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==="")Er("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=Za(y,E)),z!==void 0)if(b===null)x!==""&&aa(a,x,z);else try{if(x!==""){var tt=b(z,a);aa(a,x,tt)}else b(z,a)}catch(rt){}}}},xt.sp=function(a,y,x,E){if(this.el===Ip){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,tt=a;if(b!==""&&(tt=Za(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):aa(y,x,tt);else if(ot!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var st=E.itemIndex,ut=E.panel.itemArray;ot.ov(ut,st),ot.ts(ut,st,tt)}}else try{if(x!==""){var ft=z(tt,y,ot);ot!==null?ot.setDataProperty(y,x,ft):aa(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,Ct=E.panel.itemArray;ot.ov(Ct,yt),ot.ts(Ct,yt,mt)}}}catch(Mt){}}finally{this.st.remove(a)}}}},je.Object.defineProperties(qa.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&fi(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&fi(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&fi(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&fi(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&fi(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&fi(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&fi(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&fi(this),this.el=a}}}),qa.prototype.updateSource=qa.prototype.sp,qa.prototype.updateTarget=qa.prototype.Mv,qa.prototype.ofModel=qa.prototype.dA,qa.prototype.ofObject=qa.prototype.cp,qa.prototype.makeTwoWay=qa.prototype.Kx;var Dx="Binding",b1=new Te(qa,"OneWay",1),Ip=new Te(qa,"TwoWay",2);qa.className="Binding",qa.parseEnum=function(a,y){return function(x){return x=cr(a,x),x===null?y:x}},qa.toString=Jr,qa.OneWay=b1,qa.TwoWay=Ip;function Dr(a,y,x){ai.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new sn,this.wb=new ci,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&&(bi(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}se(Dr,ai),Dr.constructGraphLinksModel=ai.constructGraphLinksModel,Dr.prototype.cloneProtected=function(a){ai.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},xt=Dr.prototype,xt.clear=function(){ai.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},xt.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)+":"+Jr(b)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+Ou(this,b,!0)+"-->"+Ou(this,b,!1)}return y},xt.Qv=function(a,y){this.linkKeyProperty===""&&be("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=ai.prototype.Qv.call(this,a,y),E=this,b=new sn,z=new sn,tt=new sn,rt=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===ba?b.add(ut.newValue):ut.change===Ra&&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 ai||E.lb(ut.object)||M1(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 st=this.kl;return st.clear(),tt.each(function(ut){st.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<st.count&&(x===null&&(x={}),y?x.insertedLinkKeys=st.Fa():x.removedLinkKeys=st.Fa()),st.clear(),ot.clear(),x},xt.rm=function(){var a=ai.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},xt.gp=function(a){ai.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)},xt.Rv=function(){var a=ai.prototype.Rv.call(this),y=`,
"linkDataArray": `+Wc(this,this.linkDataArray,!0);return a+y},xt.kv=function(a){ai.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function M1(a,y){for(var x=new sn,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];c0(a,y,b,b,x)}return x}xt.Pv=function(a,y){this.linkKeyProperty===""&&be("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=ai.prototype.Pv.call(this,a,y),E=this,b=new sn,z=new sn,tt=new sn,rt=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===ba?b.add(ut.newValue):ut.change===Ra&&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 ai||E.lb(ut.object)||M1(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 st=this.kl;return st.clear(),tt.each(function(ut){st.add(E.Ac(ut)),y&&z.add(ut)}),a=x,0<ot.count&&(a+=(y?this.Xv:this.Vv)+Wc(this,ot.Fa(),!0)),0<z.count&&(a+=this.iy+Wc(this,z.Fa(),!0)),0<st.count&&(a+=(y?this.Vv:this.Xv)+Wc(this,st.Fa(),!0)),st.clear(),ot.clear(),a},xt.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)&&be("applyIncrementalJson cannot change Model properties"),ai.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]);N1(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)},Dr.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),aa(x,E,b);return}}else if(a.change===ba){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,fn(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===Ra){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,fn(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}}ai.prototype.changeState.call(this,a,y)}},xt=Dr.prototype,xt.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),aa(x,this.nodeKeyProperty,a),this.xf(x))}return a}},xt.yx=function(a){return Ou(this,a,!0)},xt.wv=function(a,y){Bg(this,a,y,!0)},xt.Bx=function(a){return Ou(this,a,!1)},xt.Bv=function(a,y){Bg(this,a,y,!1)};function Ou(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Za(y,a),a!==void 0))){if(Hc(a))return a;be((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Bg(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=Za(y,b);z!==x&&(Bh(a,z,y),aa(y,b,x),a.hc(x)===null&&Th(a,x,y),ds(a,E?"linkFromKey":"linkToKey",Yo,b,y,z,x),typeof b=="string"&&a.La(y,b))}else aa(y,b,x)}}xt.zx=function(a){return g0(this,a,!0)},xt.xv=function(a,y){Og(this,a,y,!0)},xt.Cx=function(a){return g0(this,a,!1)},xt.Cv=function(a,y){Og(this,a,y,!1)};function g0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Za(y,a),y===void 0?"":y)}function Og(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=Za(y,b);z===void 0&&(z=""),z!==x&&(aa(y,b,x),ds(a,E?"linkFromPortId":"linkToPortId",Yo,b,y,z,x),typeof b=="string"&&a.La(y,b))}else aa(y,b,x)}}xt.Ef=function(a){if(a===null)return p0;var y=this.je;return y===""?p0:(a=Za(a,y),a===void 0?p0:a)},xt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=Za(a,x);if(E===void 0&&(E=p0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)Bh(this,E[z],a);for(aa(a,x,y),b=y.length,z=0;z<b;z++){var tt=y[z];this.hc(tt)===null&&Th(this,tt,a)}ds(this,"linkLabelKeys",Yo,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else aa(a,x,y)}},xt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Za(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&&Th(this,y,a),ds(this,"linkLabelKeys",ba,x,a,null,y,null,b)))}else be(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},xt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Za(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(Bh(this,y,a),ds(this,"linkLabelKeys",Ra,x,a,y,null,b,null)))}else E!==void 0&&be(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},xt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Za(a,y),y!==void 0)){if(Hc(y))return y;be("Key value for link data "+a+" is not a number or a string: "+y)}}},xt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=Za(a,x);E!==y&&this.jh(y)===null&&(aa(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),ds(this,"linkKey",Yo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else aa(a,x,y)}},xt.jh=function(a){return a===null&&be("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Hc(a)?this.wb.I(a):null},xt.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))){aa(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;aa(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;aa(a,y,x)}}}}},xt.Jc=function(a){return a===null?!1:this.$f.contains(a)},xt.fi=function(a){a!==null&&(bs(a),this.Jc(a)||k1(this,a,!0))};function k1(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&&be("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)),ds(a,"linkDataArray",ba,"linkDataArray",a,null,y,null,E),cy(a,y)}xt.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)},xt.bm=function(a){a!==null&&F1(this,a,!0)};function F1(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(ds(a,"linkDataArray",Ra,"linkDataArray",a,y,null,E,null),x=Ou(a,y,!0),Bh(a,x,y),x=Ou(a,y,!1),Bh(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],Bh(a,x,y)}xt.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)},xt.Zz=function(a){if(this.linkKeyProperty===""&&be("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&bi(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),N1(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=Ou(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Th(a,x,y),x=Ou(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Th(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&&Th(a,x,y)}xt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):f0(this,a,!0),fn(a)&&(lo(a),this.lf!==""&&aa(a,this.lf,void 0),this.mf!==""&&aa(a,this.mf,void 0),this.je!==""&&aa(a,this.je,[])),a},xt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Za(a,y)},xt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Za(a,y),y!==void 0)){if(Hc(y))return y;be("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},xt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=Za(a,x);E!==y&&(Bh(this,E,a),aa(a,x,y),this.hc(y)===null&&Th(this,y,a),ds(this,"nodeGroupKey",Yo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else aa(a,x,y)}},Dr.prototype.copyNodeData=function(a){return a===null?null:(a=ai.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Za(a,this.Je)===void 0||aa(a,this.Je,void 0),a)},Dr.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){Bg(this,a,x,!0);return}if(y===this.linkToKeyProperty){Bg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Og(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Og(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=Za(a,y);E!==x&&(aa(a,y,x),this.Fs(a,y,E,x))},xt=Dr.prototype,xt.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&&Za(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},xt.jp=function(a,y){ai.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(Ou(this,E,!0)===b){var tt=this.lf;aa(E,tt,z),ds(this,"linkFromKey",Yo,tt,E,b,z),typeof tt=="string"&&this.La(E,tt)}if(Ou(this,E,!1)===b&&(tt=this.mf,aa(E,tt,z),ds(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,st=0;st<rt;st++)tt[st]===b&&(tt[st]=z,ds(this,"linkLabelKeys",ba,ot,E,b,z,st,st))}},xt.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;aa(a,E,x),ds(this,"nodeGroupKey",Yo,E,a,y,x),typeof E=="string"&&this.La(a,E)}},xt.Lv=function(){ai.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)cy(this,a[x])},xt.fm=function(a){ai.prototype.fm.call(this,a),a=this.wa(a);var y=Bp(this,a);if(y!==null){var x=Fi();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;ds(this,"nodeGroupKey",Yo,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(Ou(this,E,!0)===a&&(b=this.lf,ds(this,"linkFromKey",Yo,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),Ou(this,E,!1)===a&&(b=this.mf,ds(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&&(ds(this,"linkLabelKeys",ba,tt,E,a,a,rt,rt),x.push(E))}for(y=0;y<x.length;y++)Bh(this,a,x[y]);Ai(x)}},xt.em=function(a){ai.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Th(this,y,a)},xt.qp=function(a){ai.prototype.qp.call(this,a);var y=this.lh(a);Bh(this,y,a)},xt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Za(a,y),y===void 0))return"";if(typeof y=="string")return y;be("getCategoryForLinkData found a non-string category for "+a+": "+y)},Dr.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Dr.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=Za(a,x);E===void 0&&(E=""),E!==y&&(aa(a,x,y),ds(this,"linkCategory",Yo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else aa(a,x,y)}},Dr.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},xt=Dr.prototype,xt.lm=function(a,y){ai.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function N1(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))}xt.Wj=function(){return!0},xt.ri=function(){return!0},xt.xs=function(){return!0},xt.Xj=function(){return!0},je.Object.defineProperties(Dr.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];fn(b)||be("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),bs(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new vn,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 sn,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,ds(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"}}}),Dr.prototype.setCategoryForLinkData=Dr.prototype.lp,Dr.prototype.getCategoryForLinkData=Dr.prototype.ps,Dr.prototype.assignAllDataProperties=Dr.prototype.Do,Dr.prototype.setGroupKeyForNodeData=Dr.prototype.mp,Dr.prototype.getGroupKeyForNodeData=Dr.prototype.lh,Dr.prototype.isGroupForNodeData=Dr.prototype.Yu,Dr.prototype.copyLinkData=Dr.prototype.Jo,Dr.prototype.mergeLinkDataArray=Dr.prototype.Zz,Dr.prototype.removeLinkDataCollection=Dr.prototype.lA,Dr.prototype.removeLinkData=Dr.prototype.bm,Dr.prototype.addLinkDataCollection=Dr.prototype.Ey,Dr.prototype.addLinkData=Dr.prototype.fi,Dr.prototype.containsLinkData=Dr.prototype.Jc,Dr.prototype.makeLinkDataKeyUnique=Dr.prototype.Bs,Dr.prototype.findLinkDataForKey=Dr.prototype.jh,Dr.prototype.setKeyForLinkData=Dr.prototype.Ks,Dr.prototype.getKeyForLinkData=Dr.prototype.Ac,Dr.prototype.removeLabelKeyForLinkData=Dr.prototype.Qx,Dr.prototype.addLabelKeyForLinkData=Dr.prototype.Bu,Dr.prototype.setLabelKeysForLinkData=Dr.prototype.Ls,Dr.prototype.getLabelKeysForLinkData=Dr.prototype.Ef,Dr.prototype.setToPortIdForLinkData=Dr.prototype.Cv,Dr.prototype.getToPortIdForLinkData=Dr.prototype.Cx,Dr.prototype.setFromPortIdForLinkData=Dr.prototype.xv,Dr.prototype.getFromPortIdForLinkData=Dr.prototype.zx,Dr.prototype.setToKeyForLinkData=Dr.prototype.Bv,Dr.prototype.getToKeyForLinkData=Dr.prototype.Bx,Dr.prototype.setFromKeyForLinkData=Dr.prototype.wv,Dr.prototype.getFromKeyForLinkData=Dr.prototype.yx,Dr.prototype.clear=Dr.prototype.clear;var p0=Object.freeze([]);Dr.className="GraphLinksModel",vh.GraphLinksModel=Dr,ai.constructGraphLinksModel=ai.constructGraphLinksModel=function(){return new Dr},ai.initDiagramModel=hy=function(){return new Dr};function Wl(a,y){ai.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(bi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}se(Wl,ai),Wl.constructGraphLinksModel=ai.constructGraphLinksModel,Wl.prototype.cloneProtected=function(a){ai.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},xt=Wl.prototype,xt.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)+":"+Jr(b)}}return y},xt.rm=function(){var a=ai.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},xt.gp=function(a){ai.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},xt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&be("applyIncrementalJson cannot change Model properties"),ai.prototype.fp.call(this,a)},xt.Vl=function(a){return a},xt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Za(a,y),y!==void 0)){if(Hc(y))return y;be("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},xt.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=Za(a,x);E!==y&&(Bh(this,E,a),aa(a,x,y),this.hc(y)===null&&Th(this,y,a),ds(this,"nodeParentKey",Yo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else aa(a,x,y)}},xt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Za(a,y),y===void 0)?"":typeof y=="string"?y:(be("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Wl.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Wl.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=Za(a,x);E===void 0&&(E=""),E!==y&&(aa(a,x,y),ds(this,"parentLinkCategory",Yo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else aa(a,x,y)}},Wl.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Wl.prototype.copyNodeData=function(a){return a===null?null:(a=ai.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Za(a,this.Ke)===void 0||aa(a,this.Ke,void 0),a)},Wl.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=Za(a,y);E!==x&&(aa(a,y,x),this.Fs(a,y,E,x))},xt=Wl.prototype,xt.jp=function(a,y){ai.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},xt.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;aa(a,E,x),ds(this,"nodeParentKey",Yo,E,a,y,x),typeof E=="string"&&this.La(a,E)}},xt.fm=function(a){ai.prototype.fm.call(this,a),a=this.wa(a);var y=Bp(this,a);if(y!==null){var x=Fi();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;ds(this,"nodeParentKey",Yo,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)Bh(this,a,x[y]);Ai(x)}},xt.em=function(a){ai.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Th(this,y,a)},xt.qp=function(a){ai.prototype.qp.call(this,a);var y=this.mh(a);Bh(this,y,a)},xt.lm=function(a,y){ai.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},xt.Tl=function(){return!0},xt.xs=function(){return!0},je.Object.defineProperties(Wl.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"}}}),Wl.prototype.setParentLinkCategoryForNodeData=Wl.prototype.Ms,Wl.prototype.getParentLinkCategoryForNodeData=Wl.prototype.ss,Wl.prototype.setParentKeyForNodeData=Wl.prototype.qe,Wl.prototype.getParentKeyForNodeData=Wl.prototype.mh,Wl.className="TreeModel",vh.TreeModel=Wl;function Ea(a){la.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=yh,this.Ti=0,this.Zv=new Zt,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=yh,this.K=Hl,this.nd=Rg,this.hd=ry,this.tf=6,this.Nn=P0,a&&Object.assign(this,a)}se(Ea,la),Ea.prototype.cloneProtected=function(a){la.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},Ea.prototype.qb=function(a){a.classType===Ea?a===x0||a===w0||a===y0||a===S0||a===Rg?this.sorting=a:a===Ef||a===Ig||a===Hl||a===Kc?this.direction=a:a===mc||a===Gc||a===yh||a===Sh?this.arrangement=a:(a===Xf||a===P0)&&(this.nodeDiameterFormula=a):la.prototype.qb.call(this,a)},Ea.prototype.createNetwork=function(){return new zg(this)},Ea.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 vn;y.addAll(a.iterator),a=new vn;var x=new vn,E=this.sort(y),b,z,tt=this.Jp,rt=this.arrangement,ot=this.nodeDiameterFormula,st=this.radius;(!isFinite(st)||0>=st)&&(st=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===Sh&&ot===Xf?rt=yh:rt===Sh&&ot!==Xf&&(rt=this.arrangement),(this.direction===Ef||this.direction===Ig)&&this.sorting!==Rg){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===Ef?(this.arrangement===Sh&&a.reverse(),E=new vn,E.addAll(a),E.addAll(x)):(this.arrangement===Sh&&x.reverse(),E=new vn,E.addAll(x),E.addAll(a))}ot=E.length;for(var yt=z=b=0;yt<E.length;yt++){var Ct=ft+mt*z*(this.direction===Hl?1:-1)/ot,Mt=E.M(yt).diameter;isNaN(Mt)&&(Mt=Vc(E.M(yt),Ct)),360>mt&&(yt===0||yt===E.length-1)&&(Mt/=2),b+=Mt,z++}if(isNaN(st)||rt===Sh){if(isNaN(y)&&(y=6),rt!==yh&&rt!==Sh){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)&&Vc(yt,0),isNaN(b.diameter)&&Vc(b,0),z=Math.max(z,(yt.diameter+b.diameter)/2);tt=z+y,rt===mc?st=(z+y)/(2*Math.PI/ot):st=m0(this,tt*(360<=mt?ot:ot-1),ut,ft*Math.PI/180,mt*Math.PI/180)}else st=m0(this,b+(360<=mt?ot:ot-1)*(rt!==Sh?y:1.6*y),ut,ft*Math.PI/180,mt*Math.PI/180);z=st*ut}else if(z=st*ut,yt=fy(this,st,z,ft*Math.PI/180,mt*Math.PI/180),isNaN(y))(rt===yh||rt===Sh)&&(y=(yt-b)/(360<=mt?ot:ot-1));else if(rt===yh||rt===Sh)yt=(yt-b)/(360<=mt?ot:ot-1),yt<y?(st=m0(this,b+y*(360<=mt?ot:ot-1),ut,ft*Math.PI/180,mt*Math.PI/180),z=st*ut):y=yt;else{for(tt=-1/0,b=0;b<ot;b++)Ct=E.M(b),Mt=E.M(b===ot-1?0:b+1),isNaN(Ct.diameter)&&Vc(Ct,0),isNaN(Mt.diameter)&&Vc(Mt,0),tt=Math.max(tt,(Ct.diameter+Mt.diameter)/2);tt+=y,b=m0(this,tt*(360<=mt?ot:ot-1),ut,ft*Math.PI/180,mt*Math.PI/180),b>st?(st=b,z=st*ut):tt=yt/(360<=mt?ot:ot-1)}if(this.kw=rt,this.lc=st,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,st=this.lw,ut=this.Wp,ft=this.Ti,mt=this.me,ot=this.Jp,this.direction!==Ef&&this.direction!==Ig||E!==Sh)if(this.direction===Ef||this.direction===Ig){switch(tt=0,E){case Gc:tt=180*v0(this,rt,mt,st,ot)/Math.PI;break;case yh:ot=y=0,tt=a.first(),tt!==null&&(y=Vc(tt,Math.PI/2)),tt=x.first(),tt!==null&&(ot=Vc(tt,Math.PI/2)),tt=180*v0(this,rt,mt,st,ft+(y+ot)/2)/Math.PI;break;case mc:tt=ut/y.length}if(this.direction===Ef){switch(E){case Gc:jp(this,a,st,Kc);break;case yh:zp(this,a,st,Kc);break;case mc:Rp(this,a,ut/2,st,Kc)}switch(E){case Gc:jp(this,x,st+tt,Hl);break;case yh:zp(this,x,st+tt,Hl);break;case mc:Rp(this,x,ut/2,st+tt,Hl)}}else{switch(E){case Gc:jp(this,x,st,Kc);break;case yh:zp(this,x,st,Kc);break;case mc:Rp(this,x,ut/2,st,Kc)}switch(E){case Gc:jp(this,a,st+tt,Hl);break;case yh:zp(this,a,st+tt,Hl);break;case mc:Rp(this,a,ut/2,st+tt,Hl)}}}else switch(E){case Gc:jp(this,y,st,this.direction);break;case yh:zp(this,y,st,this.direction);break;case mc:Rp(this,y,ut,st,this.direction);break;case Sh:D1(this,y,ut,st,this.direction)}else D1(this,y,ut,st-ut/2,Hl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Rp(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 st=E+(b===Hl?ot*x/(360<=z?rt:rt-1):-(ot*x)/rt),ut=y.M(ot),ft=tt*Math.tan(st)/a;ft=Math.sqrt((tt*tt+a*a*ft*ft)/(1+ft*ft)),ut.centerX=ft*Math.cos(st),ut.centerY=ft*Math.sin(st),ut.actualAngle=180*st/Math.PI}}function zp(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 st=y.M(ot),ut=y.M(ot===rt-1?0:ot+1),ft=z*Math.sin(x);st.centerX=b*Math.cos(x),st.centerY=ft,st.actualAngle=180*x/Math.PI,isNaN(st.diameter)&&Vc(st,0),isNaN(ut.diameter)&&Vc(ut,0),st=v0(a,b,z,E===Hl?x:-x,(st.diameter+ut.diameter)/2+tt),x+=E===Hl?st:-st}}function jp(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 st=y.M(ot);st.centerX=b*Math.cos(x),st.centerY=z*Math.sin(x),st.actualAngle=180*x/Math.PI,st=v0(a,b,z,E===Hl?x:-x,tt),x+=E===Hl?st:-st}}function D1(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new Wp,360>x){for(z=E+(b===Hl?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,B1(a,y,x,E,b)}else T1(a,y,x,E,b);a.Xr.commit(y)}function T1(a,y,x,E,b){var z=a.lc,tt=a.Ti,rt=a.Zm,ot=z*Math.cos(E*Math.PI/180),st=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=Zt.alloc();for(var ft=0;ft<ut.length&&(ut[ft].centerX=ot,ut[ft].centerY=st,!(ft>=ut.length-1));ft++)O1(a,ot,st,ut,ft,b,z)||I1(a,ot,st,ut,ft,b,z),ot=z.x,st=z.y;if(Zt.free(z),a.mj++,!(23<a.mj)){ot=ut[0].centerX,st=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(st-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!=st>ft:0<ft!=ot<z,(ot=b===Hl?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,T1(a,y,x,E,b))}}}function B1(a,y,x,E,b){for(var z=a.lc,tt=a.me,rt=a.Zm,ot=z*Math.cos(E*Math.PI/180),st=tt*Math.sin(E*Math.PI/180),ut=Zt.alloc(),ft=y.Fa(),mt=0;mt<ft.length&&(ft[mt].centerX=ot,ft[mt].centerY=st,!(mt>=ft.length-1));mt++)O1(a,ot,st,ft,mt,b,ut)||I1(a,ot,st,ft,mt,b,ut),ot=ut.x,st=ut.y;if(Zt.free(ut),a.mj++,!(23<a.mj)){if(ot=Math.atan2(st,ot),ot=b===Hl?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,B1(a,y,x,E,b))}}function O1(a,y,x,E,b,z,tt){var rt=a.lc,ot=a.me,st=0;a=(E[b].width+E[b+1].width)/2+a.Ti;var ut=!1;if(0<=x!=(z===Hl)){if(z=y+a,z>rt){if(z=y-a,z<-rt)return tt.x=z,tt.y=st,!1;ut=!0}}else if(z=y-a,z<-rt){if(z=y+a,z>rt)return tt.x=z,tt.y=st,!1;ut=!0}return st=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>x!==ut&&(st=-st),Math.abs(x-st)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=st,!1):(tt.x=z,tt.y=st,!0)}function I1(a,y,x,E,b,z,tt){var rt=a.lc,ot=a.me,st=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Hl)){if(z=x-a,z<-ot){if(z=x+a,z>ot){tt.x=st,tt.y=z;return}E=!0}}else if(z=x+a,z>ot){if(z=x-a,z<-ot){tt.x=st,tt.y=z;return}E=!0}st=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>y!==E&&(st=-st),tt.x=st,tt.y=z}Ea.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Ea.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 Zt(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))},Ea.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,st=0;st<=z;st++){E!==void 0&&b!==void 0?ot=E+st*b/z:ot=st*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 m0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?fy(a,1,x,E,b):fy(a,1,x))}function v0(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}}Ea.prototype.sort=function(a){switch(this.sorting){case y0:break;case S0:a.reverse();break;case x0:a.sort(this.comparer);break;case w0:a.sort(this.comparer),a.reverse();break;case Rg:return this.ak(Tx(a));default:be("Invalid sorting type.")}return a};function Tx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new vn;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}Ea.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 vn;for(var ot=0,st=0;st<y.length;st++){var ut=y[st].length;if(ut===1)E.push(st);else if(ut===0)b.add(a.M(st));else{if(ot===0)x.push(st);else{for(var ft=ut=1/0,mt=-1,yt=[],Ct=0;Ct<x.length;Ct++)0>y[x[Ct]].indexOf(x[Ct===x.length-1?0:Ct+1])&&yt.push(Ct===x.length-1?0:Ct+1);if(yt.length===0)for(Ct=0;Ct<x.length;Ct++)yt.push(Ct);for(Ct=0;Ct<yt.length;Ct++){for(var Mt=yt[Ct],Vt=y[st],Rt=0,_t=0;_t<tt.length;_t++){var te=z[tt[_t]],ne=z[rt[_t]];if(te<ne){var ue=te;te=ne}else ue=ne;if(ue<Mt&&Mt<=te)for(ne=0;ne<Vt.length;ne++){var Pe=Vt[ne];0>x.indexOf(Pe)||ue<z[Pe]&&z[Pe]<te||ue===z[Pe]||te===z[Pe]||Rt++}else for(ne=0;ne<Vt.length;ne++)Pe=Vt[ne],0>x.indexOf(Pe)||ue<z[Pe]&&z[Pe]<te&&ue!==z[Pe]&&te!==z[Pe]&&Rt++}for(Vt=Rt,_t=Rt=0;_t<y[st].length;_t++)ue=x.indexOf(y[st][_t]),0<=ue&&(ue=Math.abs(Mt-(ue>=Mt?ue+1:ue)),Rt+=ue<x.length+1-ue?ue:x.length+1-ue);for(_t=0;_t<tt.length;_t++)ue=z[tt[_t]],te=z[rt[_t]],ue>=Mt&&ue++,te>=Mt&&te++,ue>te&&(ne=te,te=ue,ue=ne),te-ue<(x.length+2)/2==(ue<Mt&&Mt<=te)&&Rt++;(Vt<ut||Vt===ut&&Rt<ft)&&(ut=Vt,ft=Rt,mt=Mt)}for(x.splice(mt,0,st),ut=0;ut<x.length;ut++)z[x[ut]]=ut;for(ut=0;ut<y[st].length;ut++)ft=y[st][ut],0<=x.indexOf(ft)&&(tt.push(st),rt.push(ft))}ot++}}for(tt=x.length;;){for(z=!0,rt=0;rt<E.length;rt++)if(ot=E[rt],st=y[ot][0],ut=x.indexOf(st),0<=ut){for(mt=ft=0;mt<y[st].length;mt++)yt=x.indexOf(y[st][mt]),0>yt||yt===ut||(Ct=yt>ut?yt-ut:ut-yt,ft+=yt<ut!=Ct>tt-Ct?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},je.Object.defineProperties(Ea.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!==Sh&&a!==yh&&a!==Gc&&a!==mc||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Hl&&a!==Kc&&a!==Ef&&a!==Ig||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==y0&&a!==S0&&a!==x0&&!w0&&a!==Rg||(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!==P0&&a!==Xf||(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 yh=new Te(Ea,"ConstantSpacing",0),Gc=new Te(Ea,"ConstantDistance",1),mc=new Te(Ea,"ConstantAngle",2),Sh=new Te(Ea,"Packed",3),Hl=new Te(Ea,"Clockwise",4),Kc=new Te(Ea,"Counterclockwise",5),Ef=new Te(Ea,"BidirectionalLeft",6),Ig=new Te(Ea,"BidirectionalRight",7),y0=new Te(Ea,"Forwards",8),S0=new Te(Ea,"Reverse",9),x0=new Te(Ea,"Ascending",10),w0=new Te(Ea,"Descending",11),Rg=new Te(Ea,"Optimized",12),P0=new Te(Ea,"Pythagorean",13),Xf=new Te(Ea,"Circular",14);Ea.className="CircularLayout",Ea.ConstantSpacing=yh,Ea.ConstantDistance=Gc,Ea.ConstantAngle=mc,Ea.Packed=Sh,Ea.Clockwise=Hl,Ea.Counterclockwise=Kc,Ea.BidirectionalLeft=Ef,Ea.BidirectionalRight=Ig,Ea.Forwards=y0,Ea.Reverse=S0,Ea.Ascending=x0,Ea.Descending=w0,Ea.Optimized=Rg,Ea.Pythagorean=P0,Ea.Circular=Xf;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 zg(a){Wo.call(this,a)}se(zg,Wo),zg.prototype.createVertex=function(){return new Hp(this)},zg.prototype.createEdge=function(){return new C0(this)},zg.className="CircularNetwork";function Hp(a){gs.call(this,a),this.u=this.Si=NaN}se(Hp,gs);function Vc(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Sh)if(x.nodeDiameterFormula===Xf)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===Xf?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}je.Object.defineProperties(Hp.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)}}}),Hp.className="CircularVertex";function C0(a){pu.call(this,a)}se(C0,pu),C0.className="CircularEdge";function Qs(a){la.call(this),this.ah=null,this.An=0,this.$d=new $e(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)}se(Qs,la),Qs.prototype.cloneProtected=function(a){la.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 Jf(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}R1(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 st=Fi(),ut=0;ut<rt+y.vertexes.count+2;ut++)st[ut]=null;rt=0,tt.reset();for(var ft=We.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,st[0]=new Zt(ft.x+ft.width+E.width,ft.y),st[1]=new Zt(ft.x,ft.y+ft.height+E.height),rt=2;else{var mt=z1(st,rt,b,z,ft.width,ft.height,E),yt=st[mt],Ct=new Zt(yt.x+ft.width+E.width,yt.y),Mt=new Zt(yt.x,yt.y+ft.height+E.height);for(mt+1<rt&&st.splice(mt+1,0,null),st[mt]=Ct,st[mt+1]=Mt,rt++,mt=yt.x-ft.x,yt=yt.y-ft.y,ut=ut.vertexes.iterator;ut.next();)Ct=ut.value,Ct.centerX+=mt,Ct.centerY+=yt}for(We.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,st[0]=new Zt(mt.x+mt.width+E.width,mt.y),st[1]=new Zt(mt.x,mt.y+mt.height+E.height),rt=2):(ot=z1(st,rt,b,z,mt.width,mt.height,E),ft=st[ot],yt=new Zt(ft.x+mt.width+E.width,ft.y),mt=new Zt(ft.x,ft.y+mt.height+E.height),ot+1<rt&&st.splice(ot+1,0,null),st[ot]=yt,st[ot+1]=mt,rt++,tt.centerX=ft.x+tt.width/2,tt.centerY=ft.y+tt.height/2);for(Ai(st),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)}}W1(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 R1(a,y,x){if(Bx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Ox(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,R1(a,y+1,x),W1(a,z),Ix(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 Bx(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 Ox(a,y){for(var x=a.network,E=new Jf(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var tt=new H1;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 vn),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 vn,b.Hj=rt),rt.add(tt),b.Vd--,b.sh+=tt.sh):tt.network===E&&(rt=tt.Hj,rt===null&&(rt=new vn,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,pe.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 st=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&&(st+=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=pe.sqrt((rt+yt+st*st*4/(tt*tt))/yt),tt=(rt-1)*ut/2,rt=(rt-1)*ft/2,b.bounds=new We(z-mt.x-tt,ot-mt.y-rt,ut+2*tt,ft+2*rt),b.focus=new Zt(mt.x+tt,mt.y+rt)}}return a.network=E,x}function Ix(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 We(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Zt(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=pe.sqrt(z*z+tt*tt)/2;for(var rt=!1,ot=tt=0,st=0,ut=y.vertexes.iterator;ut.next();){var ft=ut.value;1>=ft.Vd?ot++:(rt=!0,st++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(ot!==0){for(0<st&&(tt/=st),st=y=0,y=rt?2*Math.PI/(ot+1):2*Math.PI/ot,ot%2===0&&(st=y/2),1<x.count&&x.sort(function(yt,Ct){return yt===null||Ct===null||yt===Ct?0:Ct.width*Ct.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=pe.sqrt(ft*ft+mt*mt)/2,ut=z+ut.length+ft,ft=tt+(y*(rt/2>>1)+st)*(rt%2===0?1:-1),ot.centerX=E+ut*Math.cos(ft),ot.centerY=b+ut*Math.sin(ft),rt++}}}}function z1(a,y,x,E,b,z,tt){var rt=9e19,ot=-1,st=0;t:for(;st<y;st++){var ut=a[st],ft=ut.x-x,mt=ut.y-E;if(ft=ft*ft+mt*mt,ft<rt){for(mt=st-1;0<=mt;mt--)if(a[mt].y>ut.y&&a[mt].x-ut.x<b+tt.width)continue t;for(mt=st+1;mt<y;mt++)if(a[mt].x>ut.x&&a[mt].y-ut.y<z+tt.height)continue t;ot=st,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 j1(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,pe.sqrt(x*x+a*a)):a+x<y?(E=E+b-tt,a=a+x-y,pe.sqrt(E*E+a*a)):tt-(E+b):E>tt+rt?a>y+z?(x=E-tt-rt,a=a-y-z,pe.sqrt(x*x+a*a)):a+x<y?(E=E-tt-rt,a=a+x-y,pe.sqrt(E*E+a*a)):E-(tt+rt):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function W1(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,Vt){return Mt===null||Vt===null||Mt===Vt?0:Mt.centerX-Vt.centerX}):y.sort(function(Mt,Vt){return Mt===null||Vt===null||Mt===Vt?0:Mt.centerY-Vt.centerY}),x=a.Zf;var st=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),st=tt.charge*a.electricalFieldY(ot,ut),E+=tt.mass*a.gravitationalFieldX(ot,ut),st+=tt.mass*a.gravitationalFieldY(ot,ut),tt.forceX+=E,tt.forceY+=st;for(var ft=z+1;ft<y.length;ft++){var mt=y[ft];if(mt!==tt){E=mt.bounds,rt=mt.focus,st=E.x+rt.x;var yt=E.y+rt.y;if(ot-st>x||st-ot>x){if(b)break}else if(ut-yt>x||yt-ut>x){if(!b)break}else{var Ct=j1(tt,mt);1>Ct?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new E0),Ct=E.random(),rt=E.random(),ot>st?(E=Math.abs(mt.bounds.right-tt.bounds.x),E=(1+E)*Ct):ot<st?(E=Math.abs(mt.bounds.x-tt.bounds.right),E=-(1+E)*Ct):(E=Math.max(mt.width,tt.width),E=(1+E)*Ct-E/2),ut>yt?(st=Math.abs(mt.bounds.bottom-tt.bounds.y),st=(1+st)*rt):ot<st?(st=Math.abs(mt.bounds.y-tt.bounds.bottom),st=-(1+st)*rt):(st=Math.max(mt.height,tt.height),st=(1+st)*rt-st/2)):(rt=-(tt.charge*mt.charge)/(Ct*Ct),E=(st-ot)/Ct*rt,st=(yt-ut)/Ct*rt),tt.forceX+=E,tt.forceY+=st,mt.forceX-=E,mt.forceY-=st}}}}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=j1(x,z),1>ft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new E0),rt=ft.random(),ft=ft.random(),E=(E>ot?1:-1)*(1+(z.width>x.width?z.width:x.width))*rt,st=(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,st=(ut-tt)/ft*rt),x.forceX+=E,x.forceY+=st,z.forceX-=E,z.forceY-=st;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=vs,y.toSpot=vs)}},Qs.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=We.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,We.free(x)}x=We.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()}We.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},je.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"&&be('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 H1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}H1.className="ForceDirectedSubnet";function Jf(a){Wo.call(this,a)}se(Jf,Wo),Jf.prototype.createVertex=function(){return new Gp(this)},Jf.prototype.createEdge=function(){return new Kp(this)},Jf.className="ForceDirectedNetwork";function Gp(a){gs.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}se(Gp,gs),je.Object.defineProperties(Gp.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)}}}),Gp.className="ForceDirectedVertex";function Kp(a){pu.call(this,a),this.j=this.o=NaN}se(Kp,pu),je.Object.defineProperties(Kp.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)}}}),Kp.className="ForceDirectedEdge";function E0(){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()}E0.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},E0.className="RandomNumberGenerator";function vo(a){la.call(this),this.kc=this.ie=25,this.K=0,this.Dk=k0,this.Zk=F0,this.Qk=N0,this.bj=4,this.rk=D0,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 Zt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}se(vo,la),vo.prototype.cloneProtected=function(a){la.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},vo.prototype.qb=function(a){a.classType===vo?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:be("Unknown enum value: "+a):la.prototype.qb.call(this,a)},vo.prototype.createNetwork=function(){return new Wg(this)},vo.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!==Up&&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===Up&&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,st=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){st=ft;var yt=mt;ft=ot,mt=rt,ot=st,rt=yt}var Ct=b.focus;st=z.focus;var Mt=E.rev?z.bounds:b.bounds;yt=Zt.alloc(),ut!==ft?Mt.w()&&ft.isVisible()?ft.actualBounds.w()?(dc(ft,mt,$r,yt),yt.x+=ft.actualBounds.x-Mt.x,yt.y+=ft.actualBounds.y-Mt.y):(dc(ft,mt,$r,yt),yt.w()||yt.assign(Ct)):yt.assign(Ct):Mt.w()?(dc(ft,mt,$r,yt),yt.w()||yt.assign(Ct)):yt.assign(Ct),ft=E.rev?b.bounds:z.bounds,ut=Zt.alloc(),tt!==ot?ft.w()&&ot.isVisible()?ot.actualBounds.w()?(dc(ot,rt,$r,ut),ut.x+=ot.actualBounds.x-ft.x,ut.y+=ot.actualBounds.y-ft.y):(dc(ot,rt,$r,ut),ut.w()||ut.assign(st)):ut.assign(st):ft.w()?(dc(ot,rt,$r,ut),ut.w()||ut.assign(st)):ut.assign(st),this.K===90||this.K===270?(tt=Math.round((yt.x-Ct.x)/this.kc),ot=yt.x,rt=Math.round((ut.x-st.x)/this.kc),st=ut.x):(tt=Math.round((yt.y-Ct.y)/this.kc),ot=yt.y,rt=Math.round((ut.y-st.y)/this.kc),st=ut.y),Zt.free(yt),Zt.free(ut),E.portFromColOffset=tt,E.portFromPos=ot,E.portToColOffset=rt,E.portToPos=st}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 Vt=Mt.fromPort,Rt=Mt.toPort;if(Vt!==null&&Rt!==null){var _t=Mt.fromNode;if(mt=Mt.toNode,_t!==null&&mt!==null){var te=M0(this,!0),ne=M0(this,!1),ue=this.setsPortSpots?te:Mt.computeSpot(!0,Vt);Ct=this.setsPortSpots?ne:Mt.computeSpot(!1,Rt);var Pe=Mt.isOrthogonal;ue.$c()&&ue.Hf(ne)&&Ct.$c()&&Ct.Hf(te)?ft=0:(te=Mt.getLinkPoint(_t,Vt,ue,!0,Pe,mt,Rt,Zt.alloc()),ne=Mt.getLinkDirection(_t,Vt,te,ue,!0,Pe,mt,Rt),Zt.free(te),ue.ys()||ne!==Q1(this,E,!0)?this.setsPortSpots&&_t!==null&&_t.ports.count===1&&E.rev&&(ft+=1):ft+=1,ue=Mt.getLinkPoint(mt,Rt,Ct,!1,Pe,_t,Vt,Zt.alloc()),Mt=Mt.getLinkDirection(mt,Rt,ue,Ct,!1,Pe,_t,Vt),Zt.free(ue),Ct.ys()||Mt!==Q1(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)&&(Ct=a.createVertex(),Ct.node=null,Ct.Dj=1,Ct.layer=yt,Ct.near=b,a.dh(Ct),b=a.Zj(b,Ct,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=tt,b.portToColOffset=0,b.portFromPos=ot,b.portToPos=0,b=Ct),Mt=1,ft&&Mt--,yt-ut>Mt&&0<yt){for(E.valid=!1,Ct=a.createVertex(),Ct.node=null,Ct.Dj=2,Ct.layer=yt-1,a.dh(Ct),b=a.Zj(b,Ct,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=Ct,yt--;yt-ut>Mt&&0<yt;)Ct=a.createVertex(),Ct.node=null,Ct.Dj=3,Ct.layer=yt-1,a.dh(Ct),b=a.Zj(b,Ct,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=Ct,yt--;b=a.Zj(Ct,z,E.link),b.valid=!ft,ft&&(Ct.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=rt,b.portFromPos=0,b.portToPos=st}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=Uc(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),Zc(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},vo.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}vo.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},vo.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 _l(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 Yu(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 G1(a,y,x){var E=Uc(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],st=ot.near;if(st!==null&&st.layer===ot.layer)if(ot=st.index,ot>tt)for(var ut=tt+1;ut<ot;ut++){var ft=E[ut];ft.near===st&&ft.Dj===st.Dj||rt++}else for(ut=tt-1;ut>ot;ut--)ft=E[ut],ft.near===st&&ft.Dj===st.Dj||rt++;var mt;if(0<=x)for(ot=E[tt].sourceEdgesArrayAccess,st=0;st<ot.length;st++){var yt=ot[st];if(yt.valid&&yt.fromVertex.layer!==y)for(ft=yt.fromVertex.index,ut=yt.portToPos,yt=yt.portFromPos,mt=st+1;mt<ot.length;mt++){var Ct=ot[mt];if(Ct.valid&&Ct.fromVertex.layer!==y){var Mt=Ct.fromVertex.index,Vt=Ct.portToPos;Ct=Ct.portFromPos,ut<Vt&&(ft>Mt||ft===Mt&&yt>Ct)&&rt++,Vt<ut&&(Mt>ft||Mt===ft&&Ct>yt)&&rt++}}}if(0>=x){for(ot=E[tt].destinationEdgesArrayAccess,st=0;st<ot.length;st++)if(yt=ot[st],yt.valid&&yt.toVertex.layer!==y)for(ft=yt.toVertex.index,ut=yt.portToPos,yt=yt.portFromPos,mt=st+1;mt<ot.length;mt++)Ct=ot[mt],Ct.valid&&Ct.toVertex.layer!==y&&(Mt=Ct.toVertex.index,Vt=Ct.portToPos,Ct=Ct.portFromPos,yt<Ct&&(ft>Mt||ft===Mt&&ut>Vt)&&rt++,Ct<yt&&(Mt>ft||Mt===ft&&Vt>ut)&&rt++)}for(z[tt*b+tt]=rt,ot=tt+1;ot<b;ot++){var Rt=0,_t=0;if(0<=x){rt=E[tt].sourceEdgesArrayAccess;var te=E[ot].sourceEdgesArrayAccess;for(st=0;st<rt.length;st++)if(yt=rt[st],yt.valid&&yt.fromVertex.layer!==y)for(ft=yt.fromVertex.index,yt=yt.portFromPos,mt=0;mt<te.length;mt++)Ct=te[mt],Ct.valid&&Ct.fromVertex.layer!==y&&(Mt=Ct.fromVertex.index,Ct=Ct.portFromPos,(ft<Mt||ft===Mt&&yt<Ct)&&_t++,(Mt<ft||Mt===ft&&Ct<yt)&&Rt++)}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,te=E[ot].destinationEdgesArrayAccess,st=0;st<rt.length;st++)if(yt=rt[st],yt.valid&&yt.toVertex.layer!==y)for(ft=yt.toVertex.index,ut=yt.portToPos,mt=0;mt<te.length;mt++)Ct=te[mt],Ct.valid&&Ct.toVertex.layer!==y&&(Mt=Ct.toVertex.index,Vt=Ct.portToPos,(ft<Mt||ft===Mt&&ut<Vt)&&_t++,(Mt<ft||Mt===ft&&Vt<ut)&&Rt++)}z[tt*b+ot]=Rt,z[ot*b+tt]=_t}}return Zc(a,y,E),z}vo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=G1(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 L0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=Uc(E,b),tt=E.tc[b],rt=0,ot=0;ot<tt;ot++){var st=z[ot].destinationEdgesArrayAccess;if(st!==null)for(var ut=0;ut<st.length;ut++){var ft=st[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)}}}Zc(E,b,z),y+=rt}return y}vo.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=Uc(a,y),b=a.tc[y],z=[],tt=0;tt<b;tt++){var rt=E[tt],ot=null;0>=x&&(ot=rt.sourceEdgesArrayAccess);var st=null;0<=x&&(st=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(st!==null)for(ot=0;ot<st.length;ot++)rt=st[ot],mt=rt.toVertex,rt.valid&&!rt.rev&&mt.layer!==y&&(ut+=mt.column,ft++);z[tt]=ft===0?-1:ut/ft}return Zc(a,y,E),z}function K1(a,y,x){for(var E=Uc(a,y),b=a.tc[y],z=[],tt=0;tt<b;tt++){var rt=E[tt],ot=null;0>=x&&(ot=rt.sourceEdgesArrayAccess);var st=null;0<=x&&(st=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(st!==null)for(ot=0;ot<st.length;ot++)rt=st[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(Ct,Mt){return Ct-Mt}),st=ut>>1,z[tt]=ut&1?ft[st]:ft[st-1]+ft[st]>>1)}return Zc(a,y,E),z}function Vp(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,st=y.layer-ot.layer;rt=a.linkMinLength(rt),st===rt&&Vp(a,ot,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)rt=tt.value,ot=rt.fromVertex,st=ot.layer-y.layer,rt=a.linkMinLength(rt),st===rt&&Vp(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)}}vo.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=V1(a);b!==null;)E[x]=b,x--,b.valid=!1,b=V1(a);for(b=U1(a);b!==null;)E[y]=b,y++,b.valid=!1,b=U1(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,st=rt.destinationEdges;st.next();)st.value.toVertex.valid&&ot++;st=0;for(var ut=rt.sourceEdges;ut.next();)ut.value.fromVertex.valid&&st++;(b===null||z<ot-st)&&(b=rt,z=ot-st)}}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 k0: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 Up: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 V1(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 U1(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++}vo.prototype.assignLayers=function(){switch(this.Zk){case xy:Z1(this);break;case wy:for(var a,y=this.network.vertexes.iterator;y.next();)a=X1(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(Z1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&J1(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 Z1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=Y1(a,y.value);a.Ia=Math.max(x,a.Ia)}}function Y1(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,Y1(a,z)+b)}y.layer=x}else x=y.layer;return x}function X1(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,X1(a,z)+b)}y.layer=x}else x=y.layer;return x}function J1(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)J1(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&&Vp(a,rt,0,-1,!0,!1)}for(Vp(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 st=tt.value;if(st.component===1){var ut=0,ft=!1,mt=st.sourceEdgesArrayAccess;b=mt.length;for(var yt=0;yt<b;yt++){var Ct=mt[yt],Mt=Ct.fromVertex;ut+=1,Mt.component!==1&&(z+=1,Mt=Mt.layer-st.layer,Ct=a.linkMinLength(Ct),E=Math.min(E,Mt-Ct))}for(mt=st.destinationEdgesArrayAccess,b=mt.length,yt=0;yt<b;yt++)Ct=mt[yt].toVertex,--ut,Ct.component!==1?--z:ft=!0;(ot===null||ut<rt)&&!ft&&(ot=st,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(Vp(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(st=0,ut=!1,mt=tt.sourceEdgesArrayAccess,ft=mt.length,yt=0;yt<ft;yt++)Ct=mt[yt].fromVertex,st+=1,Ct.component!==1?E+=1:ut=!0;for(mt=tt.destinationEdgesArrayAccess,ft=mt.length,yt=0;yt<ft;yt++)Ct=mt[yt],Mt=Ct.toVertex,--st,Mt.component!==1&&(--E,Mt=tt.layer-Mt.layer,Ct=a.linkMinLength(Ct),b=Math.min(b,Mt-Ct));(rt===null||st>z)&&!ut&&(rt=tt,z=st)}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 Q1(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}vo.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 N0: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&&q1(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&&_1(this,x)}};function q1(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&&q1(a,E))}function _1(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&&_1(a,E))}vo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=_l(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)A0(this,E,1),ih(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=_l(this)),E=this.Ia;0<=E;E--)A0(this,E,-1),ih(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=_l(this))}for(Yu(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)A0(this,E,0),ih(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=_l(this)),E=this.Ia;0<=E;E--)A0(this,E,0),ih(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=_l(this))}Yu(this,y);var z,tt,rt;switch(this.rk){case Ey: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=ih(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Yu(this,y):(a=b,y=_l(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=ih(this,E,1)||z;for(b=this.countCrossings(),b>=a?Yu(this,y):(a=b,y=_l(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=ih(this,E,1)||z;for(b>=a?Yu(this,y):(a=b,y=_l(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=ih(this,E,-1)||z;for(b>=a?Yu(this,y):(a=b,y=_l(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=ih(this,E,0)||z;for(b>=a?Yu(this,y):(a=b,y=_l(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=ih(this,E,0)||z;b>=a?Yu(this,y):(a=b,y=_l(this))}break;default:case D0: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=ih(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Yu(this,y):(a=b,y=_l(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=ih(this,E,1)||z;for(b=this.countCrossings(),b>=a?Yu(this,y):(a=b,y=_l(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=ih(this,E,1)||z;for(b>=a?Yu(this,y):(a=b,y=_l(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=ih(this,E,-1)||z;for(b>=a?Yu(this,y):(a=b,y=_l(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=ih(this,E,0)||z;for(b>=a?Yu(this,y):(a=b,y=_l(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=ih(this,E,0)||z;b>=a?Yu(this,y):(a=b,y=_l(this))}}Yu(this,y)};function A0(a,y,x){var E=Uc(a,y),b=a.tc[y],z=K1(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);Zc(a,y,E)}function ih(a,y,x){var E=Uc(a,y),b=a.tc[y];x=G1(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,st=!0;st;)for(st=!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,Ct=E[z].column,Mt=E[z+1].column,Vt=a.nodeMinColumnSpace(E[z],!0),Rt=a.nodeMinColumnSpace(E[z],!1),_t=a.nodeMinColumnSpace(E[z+1],!0),te=a.nodeMinColumnSpace(E[z+1],!1);Vt=Ct-Vt+_t,Rt=Mt-Rt+te;var ne=E[z].sourceEdges.iterator;for(ne.reset();ne.next();)if(_t=ne.value,te=_t.fromVertex,_t.valid&&te.layer===y){for(_t=0;E[_t]!==te;)_t++;_t<z&&(mt+=2*(z-_t),yt+=2*(z+1-_t)),_t===z+1&&(mt+=1),_t>z+1&&(mt+=4*(_t-z),yt+=4*(_t-(z+1)))}for(ne=E[z].destinationEdges.iterator,ne.reset();ne.next();)if(_t=ne.value,te=_t.toVertex,_t.valid&&te.layer===y){for(_t=0;E[_t]!==te;)_t++;_t===z+1&&(yt+=1)}for(ne=E[z+1].sourceEdges.iterator,ne.reset();ne.next();)if(_t=ne.value,te=_t.fromVertex,_t.valid&&te.layer===y){for(_t=0;E[_t]!==te;)_t++;_t<z&&(mt+=2*(z+1-_t),yt+=2*(z-_t)),_t===z&&(yt+=1),_t>z+1&&(mt+=4*(_t-(z+1)),yt+=4*(_t-z))}for(ne=E[z+1].destinationEdges.iterator,ne.reset();ne.next();)if(_t=ne.value,te=_t.toVertex,_t.valid&&te.layer===y){for(_t=0;E[_t]!==te;)_t++;_t===z&&(mt+=1)}_t=te=0,ne=tt[E[z].index];var ue=rt[E[z].index],Pe=tt[E[z+1].index],Mn=rt[E[z+1].index];ne!==-1&&(te+=Math.abs(ne-Ct),_t+=Math.abs(ne-Rt)),ue!==-1&&(te+=Math.abs(ue-Ct),_t+=Math.abs(ue-Rt)),Pe!==-1&&(te+=Math.abs(Pe-Mt),_t+=Math.abs(Pe-Vt)),Mn!==-1&&(te+=Math.abs(Mn-Mt),_t+=Math.abs(Mn-Vt)),(yt<mt-.5||yt===mt&&ft<ut-.5||yt===mt&&ft===ut&&_t<te-.5)&&(st=ot=!0,E[z].column=Rt,E[z+1].column=Vt,ut=E[z],E[z]=E[z+1],E[z+1]=ut)}for(z=0;z<b;z++)E[z].index=z;return Zc(a,y,E),ot}vo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Yx)!==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=jg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=jg(this,y,-1)||x;x=jg(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&&($1(this,-1),$1(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=jg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=jg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=jg(this,y,0)||x}}else Kx(this)};function jg(a,y,x){for(var E=!1;Wx(a,y,x);)E=!0;return E}function Wx(a,y,x){var E,b=Uc(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,st=!0;st;)for(st=!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 Ct=mt=0,Mt=0;if(0>=x)for(var Vt=b[E].sourceEdges.iterator;Vt.next();){var Rt=Vt.value,_t=Rt.fromVertex;if(Rt.valid&&_t.layer!==y){var te=gy(Rt),ne=Rt.portFromColOffset;Rt=Rt.portToColOffset,_t=_t.column,mt+=(Math.abs(ut+Rt-(_t+ne))+1)*te,Ct+=(Math.abs(yt+Rt-(_t+ne))+1)*te,Mt+=(Math.abs(ft+Rt-(_t+ne))+1)*te}}if(0<=x)for(Vt=b[E].destinationEdges.iterator;Vt.next();)Rt=Vt.value,_t=Rt.toVertex,Rt.valid&&_t.layer!==y&&(te=gy(Rt),ne=Rt.portFromColOffset,Rt=Rt.portToColOffset,_t=_t.column,mt+=(Math.abs(ut+ne-(_t+Rt))+1)*te,Ct+=(Math.abs(yt+ne-(_t+Rt))+1)*te,Mt+=(Math.abs(ft+ne-(_t+Rt))+1)*te);Rt=ne=te=0,Vt=tt[b[E].index],_t=rt[b[E].index],Vt!==-1&&(te+=Math.abs(Vt-ut),ne+=Math.abs(Vt-yt),Rt+=Math.abs(Vt-ft)),_t!==-1&&(te+=Math.abs(_t-ut),ne+=Math.abs(_t-yt),Rt+=Math.abs(_t-ft)),Ct<mt||Ct===mt&&ne<te?(st=ot=!0,b[E].column=yt):(Mt<mt||Mt===mt&&Rt<te)&&(st=ot=!0,b[E].column=ft)}return Zc(a,y,b),a.normalize(),ot}function yy(a,y,x){var E=Uc(a,y),b=a.tc[y],z=K1(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),st=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===st+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,st=ft-a.nodeMinColumnSpace(E[x+1],!0)-st-1,ut=(ot+st)/2|0);else x===0&&x===b-1?ut=tt[x]:x===0?(ft=E[x+1].column,st=ft-a.nodeMinColumnSpace(E[x+1],!0)-st-1,ut=Math.min(tt[x],st)):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,st=ft-a.nodeMinColumnSpace(E[x+1],!0)-st-1,ot<tt[x]&&tt[x]<st?ut=tt[x]:ot>=tt[x]?ut=ot:st<=tt[x]&&(ut=st));ut!==rt&&(z=!0,E[x].column=ut)}Zc(a,y,E),a.normalize()}function Hx(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 Gx(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 $1(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Gx(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=_l(a),z=L0(a);for(E=z+1;z<E;){E=z,tx(a,x,1);var tt=L0(a);tt>z?Yu(a,b):tt<z&&(z=tt,b=_l(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=_l(a),z=L0(a),E=z+1;z<E;)E=z,tx(a,x,-1),tt=L0(a),tt>z?Yu(a,b):tt<z&&(z=tt,b=_l(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 Kx(a){for(var y=Fi(),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 sn,Vx(y,x);var z=null,tt=null,rt=null,ot=null,st=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,mt=(a.ve&8)!==0;for(st&&(a.verticalAlignment(y,x,!0),z=b0(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=b0(a,y,!1,!1)),E=gn(y),b=E.next();!b.done;b=E.next())b.value.reverse();mt&&(a.verticalAlignment(y,x,!1),ot=b0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=b0(a,y,!0,!0)),Ai(y),a.u(z,tt,rt,ot),a.network.vertexes.each(function(yt){var Ct=Fi();st&&Ct.push(z.get(yt)),ut&&Ct.push(tt.get(yt)),ft&&Ct.push(rt.get(yt)),mt&&Ct.push(ot.get(yt)),Ct.sort(function(Vt,Rt){return Vt-Rt});var Mt=Ct.length;Mt=(Ct[Math.floor((Mt-1)/2)]+Ct[Math.ceil((Mt-1)/2)])/2,Ai(Ct),yt.zc=Mt})}function Vx(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 st=rt[ot];t:{if(st.node===null){var ut=Ay(st);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=Ay(st)[0].index);z<=ot;){if(st=rt[z],!st.bo){ft=[];for(var mt=gn(st.sourceEdgesArrayAccess),yt=mt.next();!yt.done;yt=mt.next())yt=yt.value,yt.valid&&ft.push(yt);st.bo=ft}for(st=gn(st.bo),ft=st.next();!ft.done;ft=st.next())ft=ft.value,mt=ft.fromVertex.index,(mt<b||mt>ut)&&y.add(ft);z++}b=ut}}}vo.prototype.verticalAlignment=function(a,y,x){Ux(a),a=gn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=gn(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?Ay(z):Xx(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 st=tt[rt],ut=void 0;ut=x?T0(st,z):T0(z,st),!y.contains(ut)&&b<st.vi&&(st.align=z,z.root=st.root,z.align=st.root,b=st.vi)}}}}};function Ux(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 b0(a,y,x,E){for(var b=a.K===90||a.K===270,z=gn(y),tt=z.next();!tt.done;tt=z.next()){var rt=gn(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=gn(y),rt=z.next();!rt.done;rt=z.next()){rt=gn(rt.value);for(var ot=rt.next();!ot.done;ot=rt.next())if(ot=ot.value,ot.root===ot){for(var st=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 Ct=T0(ut,ft),Mt=Ct.portFromPos,Vt=Ct.portToPos;Ct.link!==null&&(ut.node&&ut.node!==Ct.link.fromNode&&(Mt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Ct.link.toNode&&(Vt=tt?ft.focusX:ft.focusY))}else Ct=T0(ft,ut),Mt=Ct.portToPos,Vt=Ct.portFromPos,Ct.link!==null&&(ut.node&&ut.node!==Ct.link.toNode&&(Mt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Ct.link.fromNode&&(Vt=tt?ft.focusX:ft.focusY));mt=E?ut.qg+(mt-Mt)-(yt-Vt):ut.qg+Mt-Vt,ft.qg=mt,st=Math.min(st,mt),ut=ut.align}ut=ot;do ut.qg=ut.qg-st,ut=ut.align;while(ut!==ot)}}for(x=gn(y),tt=x.next();!tt.done;tt=x.next())for(z=gn(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 ci,y=gn(y),tt=y.next();!tt.done;tt=y.next())for(x=gn(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&&be("Could not determine previous vertex in layer"),y[x][a-1]}vo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=Fi(),b=Fi(),z=1/0,tt=0;4>tt;tt++)if(y[tt]){var rt=Zx(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(st){st.value+=ot.delta}}(z)));Ai(E),Ai(b)};function Zx(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}vo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=M0(this,!0),y=M0(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 M0(a,y){return a.K===270?y?ml:zs:a.K===90?y?zs:ml:a.K===180?y?tl:xs:y?xs:tl}vo.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,st=ot.layer,ut=ot.column|0;E?(tt=y.x+this.kc*ut,st=this.Kd[st]):(tt=this.Kd[st],st=y.y+this.kc*ut),ot.centerX=tt,ot.centerY=st,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 Zt(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},vo.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 We(0,0,x,Math.abs(this.Ta[0]))):y.push(new We(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new We(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new We(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new We(0,0,Math.abs(this.Ta[0]),x)):y.push(new We(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new We(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new We(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},vo.prototype.commitLayers=function(){},vo.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 st=y.computeSpot(!0,tt);ot=y.computeSpot(!1,rt);var ut=x.fromVertex,ft=x.toVertex;if(x.valid)y.curve===Bu&&y.pointsCount===4&&(ut.column===ft.column&&this.alignOption===0?(x=y.getLinkPoint(b,tt,st,!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&&st===ps&&(E=!0),rt!==null&&ot===ps&&(x=!0),(E||x)&&(ot=null,E&&(ot=y.getLinkPointFromPoint(b,tt,tt.ga($r),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($r),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,Ct=this.ie,Mt=y.firstPickIndex+1;if(y.isOrthogonal){yt=!0;var Vt=y.pointsCount;4<Vt&&y.points.removeRange(2,Vt-3)}else if(y.curve===Bu)mt=!0,Vt=y.pointsCount,4<Vt&&y.points.removeRange(2,Vt-3),Vt===4&&(Mt=2);else{Vt=y.pointsCount;var Rt=st===ps,_t=ot===ps;2<Vt&&Rt&&_t?y.points.removeRange(1,Vt-2):3<Vt&&Rt&&!_t?y.points.removeRange(1,Vt-3):3<Vt&&!Rt&&_t?y.points.removeRange(2,Vt-2):4<Vt&&!Rt&&!_t&&y.points.removeRange(2,Vt-3)}if(x.rev){for(;ft!==null&&ut!==ft;){var te=Vt=null;for(Rt=ft.sourceEdges.iterator;Rt.next()&&(_t=Rt.value,_t.link!==x.link||(Vt=_t.fromVertex,te=_t.toVertex,Vt.node!==null)););if(Vt===null)break;if(Vt!==ut){Rt=y.i(Mt-1).x,_t=y.i(Mt-1).y;var ne=Vt.centerX,ue=Vt.centerY;if(yt)this.K===180||this.K===0?Mt===y.firstPickIndex+1?(y.m(Mt++,Rt,_t),y.m(Mt++,Rt,ue)):(te!==null?te.centerY:_t)!==ue&&(te=this.Ta[Vt.layer-1]+this.Rf.x,y.m(Mt++,te,_t),y.m(Mt++,te,ue)):Mt===y.firstPickIndex+1?(y.m(Mt++,Rt,_t),y.m(Mt++,ne,_t)):(te!==null?te.centerX:Rt)!==ne&&(te=this.Ta[Vt.layer-1]+this.Rf.y,y.m(Mt++,Rt,te),y.m(Mt++,ne,te));else if(Mt===y.firstPickIndex+1){te=Math.max(10,this.he[ft.layer]);var Pe=Math.max(10,this.Ld[ft.layer]);if(mt)this.K===180?ne<=ft.bounds.x?(ft=ft.bounds.x,y.m(Mt++,ft-te,ue),y.m(Mt++,ft,ue),y.m(Mt++,ft+Pe,ue)):(y.m(Mt++,ne-te,ue),y.m(Mt++,ne,ue),y.m(Mt++,ne+Pe,ue)):this.K===90?ue>=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Mt++,ne,ft+Pe),y.m(Mt++,ne,ft),y.m(Mt++,ne,ft-te)):(y.m(Mt++,ne,ue+Pe),y.m(Mt++,ne,ue),y.m(Mt++,ne,ue-te)):this.K===270?ue<=ft.bounds.y?(ft=ft.bounds.y,y.m(Mt++,ne,ft-te),y.m(Mt++,ne,ft),y.m(Mt++,ne,ft+Pe)):(y.m(Mt++,ne,ue-te),y.m(Mt++,ne,ue),y.m(Mt++,ne,ue+Pe)):this.K===0&&(ne>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Mt++,ft+Pe,ue),y.m(Mt++,ft,ue),y.m(Mt++,ft-te,ue)):(y.m(Mt++,ne+Pe,ue),y.m(Mt++,ne,ue),y.m(Mt++,ne-te,ue)));else{y.m(Mt++,Rt,_t);var Mn=0;this.K===180||this.K===0?((this.K===180?ne>=ft.bounds.right:ne<=ft.bounds.x)&&(Mn=(this.K===0?-te:Pe)/2),y.m(Mt++,Rt+Mn,ue)):((this.K===270?ue>=ft.bounds.bottom:ue<=ft.bounds.y)&&(Mn=(this.K===90?-te:Pe)/2),y.m(Mt++,ne,_t+Mn)),y.m(Mt++,ne,ue)}}else te=Math.max(10,this.he[Vt.layer]),Pe=Math.max(10,this.Ld[Vt.layer]),mt?this.K===180?(y.m(Mt++,ne-te-Ct,ue),y.m(Mt++,Math.min(ne-te+Ct/2,ne),ue),y.m(Mt++,ne,ue),y.m(Mt++,ne,ue),y.m(Mt++,Math.max(ne+Pe-Ct/2,ne),ue),y.m(Mt++,ne+Pe+Ct,ue)):this.K===90?(y.m(Mt++,ne,ue+Pe+Ct),y.m(Mt++,ne,Math.max(ue+Pe-Ct/2,ue)),y.m(Mt++,ne,ue),y.m(Mt++,ne,ue),y.m(Mt++,ne,Math.min(ue-te+Ct/2,ue)),y.m(Mt++,ne,ue-te-Ct)):this.K===270?(y.m(Mt++,ne,ue-te-Ct),y.m(Mt++,ne,Math.min(ue-te+Ct/2,ue)),y.m(Mt++,ne,ue),y.m(Mt++,ne,ue),y.m(Mt++,ne,Math.max(ue+Pe-Ct/2,ue)),y.m(Mt++,ne,ue+Pe+Ct)):(y.m(Mt++,ne+Pe+Ct,ue),y.m(Mt++,Math.max(ne+Pe-Ct/2,ne),ue),y.m(Mt++,ne,ue),y.m(Mt++,ne,ue),y.m(Mt++,Math.min(ne-te+Ct/2,ne),ue),y.m(Mt++,ne-te-Ct,ue)):y.m(Mt++,ne,ue)}ft=Vt}(rt===null||st!==ps||yt)&&(Rt=y.i(Mt-1).x,_t=y.i(Mt-1).y,ne=y.i(Mt).x,ue=y.i(Mt).y,yt?(Ct=this.Ld[ut.layer],this.K===180||this.K===0?(yt=_t,yt>=ut.bounds.y&&yt<=ut.bounds.bottom&&(this.K===180?ne>=ut.bounds.x:ne<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-Ct:Ct),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,_t),y.m(Mt++,ft,yt)),y.m(Mt++,ne,yt)):(yt=Rt,yt>=ut.bounds.x&&yt<=ut.bounds.right&&(this.K===270?ue>=ut.bounds.y:ue<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-Ct:Ct),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++,Rt,ft),y.m(Mt++,yt,ft)),y.m(Mt++,yt,ue)),y.m(Mt++,ne,ue)):mt?(te=Math.max(10,this.he[ut.layer]),Pe=Math.max(10,this.Ld[ut.layer]),this.K===180&&ne>=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Mt-2,ft,_t),y.L(Mt-1,ft+Pe,_t)):this.K===90&&ue<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Mt-2,Rt,ft),y.L(Mt-1,Rt,ft-te)):this.K===270&&ue>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Mt-2,Rt,ft),y.L(Mt-1,Rt,ft+Pe)):this.K===0&&ne<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Mt-2,ft,_t),y.L(Mt-1,ft-te,_t))):(te=Math.max(10,this.he[ut.layer]),Pe=Math.max(10,this.Ld[ut.layer]),yt=0,this.K===180||this.K===0?((this.K===180?ne<=ut.bounds.x:ne>=ut.bounds.right)&&(yt=(this.K===0?Pe:-te)/2),y.m(Mt++,ne+yt,_t)):((this.K===270?ue<=ut.bounds.y:ue>=ut.bounds.bottom)&&(yt=(this.K===90?Pe:-te)/2),y.m(Mt++,Rt,ue+yt)),y.m(Mt++,ne,ue)))}else{for(;ut!==null&&ut!==ft;){for(te=Vt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Rt=ut.value,Rt.link!==x.link||(Vt=Rt.toVertex,te=Rt.fromVertex,te.node!==null&&(te=null),Vt.node!==null)););if(Vt===null)break;Vt!==ft&&(Rt=y.i(Mt-1).x,_t=y.i(Mt-1).y,ne=Vt.centerX,ue=Vt.centerY,yt?this.K===180||this.K===0?(te!==null?te.centerY:_t)!==ue&&(te=this.Ta[Vt.layer]+this.Rf.x,Mt===y.firstPickIndex+1&&(te=this.K===0?Math.max(te,Rt):Math.min(te,Rt)),y.m(Mt++,te,_t),y.m(Mt++,te,ue)):(te!==null?te.centerX:Rt)!==ne&&(te=this.Ta[Vt.layer]+this.Rf.y,Mt===y.firstPickIndex+1&&(te=this.K===90?Math.max(te,_t):Math.min(te,_t)),y.m(Mt++,Rt,te),y.m(Mt++,ne,te)):(te=Math.max(10,this.he[Vt.layer]),Pe=Math.max(10,this.Ld[Vt.layer]),mt?this.K===180?(y.m(Mt++,ne+Pe+Ct,ue),y.m(Mt++,Math.max(ne+Pe-Ct/2,ne),ue),y.m(Mt++,ne,ue),y.m(Mt++,ne,ue),y.m(Mt++,Math.min(ne-te+Ct/2,ne),ue),y.m(Mt++,ne-te-Ct,ue)):this.K===90?(y.m(Mt++,ne,ue-te-Ct),y.m(Mt++,ne,Math.min(ue-te+Ct/2,ue)),y.m(Mt++,ne,ue),y.m(Mt++,ne,ue),y.m(Mt++,ne,Math.max(ue+Pe-Ct/2,ue)),y.m(Mt++,ne,ue+Pe+Ct)):this.K===270?(y.m(Mt++,ne,ue+Pe+Ct),y.m(Mt++,ne,Math.max(ue+Pe-Ct/2,ue)),y.m(Mt++,ne,ue),y.m(Mt++,ne,ue),y.m(Mt++,ne,Math.min(ue-te+Ct/2,ue)),y.m(Mt++,ne,ue-te-Ct)):(y.m(Mt++,ne-te-Ct,ue),y.m(Mt++,Math.min(ne-te+Ct/2,ne),ue),y.m(Mt++,ne,ue),y.m(Mt++,ne,ue),y.m(Mt++,Math.max(ne+Pe-Ct/2,ne),ue),y.m(Mt++,ne+Pe+Ct,ue)):this.K===180?(y.m(Mt++,ne+Pe,ue),y.m(Mt++,ne-te,ue)):this.K===90?(y.m(Mt++,ne,ue-te),y.m(Mt++,ne,ue+Pe)):this.K===270?(y.m(Mt++,ne,ue+Pe),y.m(Mt++,ne,ue-te)):(y.m(Mt++,ne-te,ue),y.m(Mt++,ne+Pe,ue)))),ut=Vt}yt&&(Rt=y.i(Mt-1).x,_t=y.i(Mt-1).y,ne=y.i(Mt).x,ue=y.i(Mt).y,this.K===180||this.K===0?_t!==ue&&(te=this.K===0?Math.min(Math.max((ne+Rt)/2,this.Ta[ft.layer]+this.Rf.x),ne):Math.max(Math.min((ne+Rt)/2,this.Ta[ft.layer]+this.Rf.x),ne),y.m(Mt++,te,_t),y.m(Mt++,te,ue)):Rt!==ne&&(te=this.K===90?Math.min(Math.max((ue+_t)/2,this.Ta[ft.layer]+this.Rf.y),ue):Math.max(Math.min((ue+_t)/2,this.Ta[ft.layer]+this.Rf.y),ue),y.m(Mt++,Rt,te),y.m(Mt++,ne,te)))}E!==null&&mt&&4<=y.pointsCount&&(tt!==null&&(tt=st===ps?y.getLinkPointFromPoint(b,tt,tt.ga($r),y.i(3),!0):y.i(0),st===ps&&(st=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+st.x)/2,st.y),y.L(2,E.x,(st.y+E.y)/2)):(y.L(1,st.x,(tt.y+st.y)/2),y.L(2,(st.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(b=ot===ps?y.getLinkPointFromPoint(z,rt,rt.ga($r),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ot===ps&&(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()},vo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new vn,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 Yc;rt.layer=Math.floor(z.y/2);var ot=E.i(0),st=E.i(E.pointsCount-1);if(rt.first=ot.x*ot.x+ot.y,rt.jc=st.x*st.x+st.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),st=E.i(b+2);var ut=0;ot.y<z.y?ut=st.y<z.y?3:z.x<tt.x?2:1:ot.y>z.y&&(ut=st.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++)st=x[ot],st.jc!==rt&&(ut++,rt=st.jc);this.zi(x,this.Ux,z,z+tt);var ft=1;for(rt=x[z].first,ot=z;ot<b;ot++)st=x[ot],st.first!==rt&&(ft++,rt=st.first);for(ot=!0,st=ft,ut<ft?(ot=!1,st=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 Ct=this.linkSpacing*(ut-(st-1)/2);y++,yt.uh(),yt.L(mt.index,z.x,z.y+Ct),yt.L(mt.index+1,tt.x,tt.y+Ct),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 Yc,rt.layer=Math.floor(z.x/2),ot=E.i(0),st=E.i(E.pointsCount-1),rt.first=ot.x+ot.y*ot.y,rt.jc=st.x+st.y*st.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),st=E.i(b+2),ut=0,ot.x<z.x?ut=st.x<z.x?3:z.y<tt.y?2:1:ot.x>z.x&&(ut=st.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++)st=x[ot],st.jc!==rt&&(ut++,rt=st.jc);for(this.zi(x,this.Ux,z,z+tt),ft=1,rt=x[z].first,ot=z;ot<b;ot++)st=x[ot],st.first!==rt&&(ft++,rt=st.first);for(ot=!0,st=ft,ut<ft?(ot=!1,st=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),Ct=this.linkSpacing*(ut-(st-1)/2),y++,yt.uh(),yt.L(mt.index,z.x+Ct,z.y),yt.L(mt.index+1,tt.x+Ct,tt.y),yt.zf()}z=b}a=E}}}},xt=vo.prototype,xt.Vx=function(a,y){return a instanceof Yc&&y instanceof Yc&&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},xt.Ux=function(a,y){return a instanceof Yc&&y instanceof Yc&&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},xt.Js=function(a,y){return a instanceof Yc&&y instanceof Yc&&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},xt.B=function(a,y){return a-=y,-1<a&&1>a},xt.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&be("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 Uc(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 Zc(a,y,x){a.He[a.tc[y]]=x}je.Object.defineProperties(vo.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()):be("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Sy&&a!==k0&&a!==Up||(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!==N0&&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!==Ey&&a!==D0&&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 k0=new Te(vo,"CycleDepthFirst",0),Sy=new Te(vo,"CycleGreedy",1),Up=new Te(vo,"CycleFromLayers",2),F0=new Te(vo,"LayerOptimalLinkLength",0),xy=new Te(vo,"LayerLongestPathSink",1),wy=new Te(vo,"LayerLongestPathSource",2),N0=new Te(vo,"InitDepthFirstOut",0),Py=new Te(vo,"InitDepthFirstIn",1),Cy=new Te(vo,"InitNaive",2),Ey=new Te(vo,"AggressiveNone",0),D0=new Te(vo,"AggressiveLess",1),Ly=new Te(vo,"AggressiveMore",2),Yx=8;vo.className="LayeredDigraphLayout",vo.CycleDepthFirst=k0,vo.CycleGreedy=Sy,vo.CycleFromLayers=Up,vo.LayerOptimalLinkLength=F0,vo.LayerLongestPathSink=xy,vo.LayerLongestPathSource=wy,vo.InitDepthFirstOut=N0,vo.InitDepthFirstIn=Py,vo.InitNaive=Cy,vo.AggressiveNone=Ey,vo.AggressiveLess=D0,vo.AggressiveMore=Ly,vo.PackNone=0,vo.PackExpand=1,vo.PackStraighten=2,vo.PackMedian=4,vo.PackAll=15,vo.AlignNone=0,vo.AlignUpperLeft=1,vo.AlignUpperRight=2,vo.AlignLowerLeft=4,vo.AlignLowerRight=8,vo.AlignAll=15;function Yc(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Yc.className="SegInfo";function Wg(a){Wo.call(this,a)}se(Wg,Wo),Wg.prototype.createVertex=function(){return new Xu(this)},Wg.prototype.createEdge=function(){return new Zp(this)},Wg.className="LayeredDigraphNetwork";function Xu(a){gs.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}se(Xu,gs);function ix(a,y){return a.index-y.index}function T0(a,y){if(!a.$n){for(var x=[],E=gn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=gn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;be("Unable to find destination edge to given vertex")}function Ay(a){if(!a.co){for(var y=[],x=gn(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 Xx(a){if(!a.ao){for(var y=[],x=gn(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}Xu.prototype.Cl=function(a){gs.prototype.Cl.call(this,a),this.bo=this.co=null},Xu.prototype.Kl=function(a){gs.prototype.Kl.call(this,a),this.bo=this.co=null},Xu.prototype.zl=function(a){gs.prototype.zl.call(this,a),this.$n=this.ao=null},Xu.prototype.Jl=function(a){gs.prototype.Jl.call(this,a),this.$n=this.ao=null},je.Object.defineProperties(Xu.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)}}}),Xu.prototype.deleteDestinationEdge=Xu.prototype.Jl,Xu.prototype.addDestinationEdge=Xu.prototype.zl,Xu.prototype.deleteSourceEdge=Xu.prototype.Kl,Xu.prototype.addSourceEdge=Xu.prototype.Cl,Xu.className="LayeredDigraphVertex";function Zp(a){pu.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}se(Zp,pu),je.Object.defineProperties(Zp.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)}}}),Zp.className="LayeredDigraphEdge";function pr(a){la.call(this),this.Ub=new sn,this.Wn=R0,this.ud=fd,this.vo=j0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=W0,this.$d=new $e(10,10).freeze();var y=new $f(this);this.W=new rh(y),this.Y=new rh(y),this.ru=[],a&&Object.assign(this,a)}se(pr,la),pr.prototype.cloneProtected=function(a){la.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)},pr.prototype.qb=function(a){a.classType===pr?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:be("Unknown enum value: "+a):la.prototype.qb.call(this,a)},pr.prototype.createNetwork=function(){return new $f(this)},pr.prototype.makeNetwork=function(a){function y(E){if(E instanceof Bn)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof mn){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 ye?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Hi?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},pr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==H0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof ye&&(y=a),this.path===R0&&y!==null?this.ud=y.isTreePathToChildren?fd:qf:this.ud=this.path===R0?fd: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 sn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Bn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof rh&&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,by(this,y));for(y=this.network.vertexes,a=null;a=Jx(y),0<a.count;)y=rx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,by(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof rh&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof rh&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof rh&&lx(this,y);if(this.Cu(),this.layerStyle===G0){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 rh&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new sn,this.isValidLayout=!0};function Jx(a){var y=new sn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}pr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case fd:x.sourceEdges.count===0&&this.Ub.add(x);break;case qf:x.destinationEdges.count===0&&this.Ub.add(x);break;default:be("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 fd:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case qf:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:be("Unhandled path value "+a.ud.toString())}}return E}function by(a,y){if(y!==null){switch(a.ud){case fd:if(0<y.destinationEdges.count){for(var x=new vn,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 qf:if(0<y.sourceEdges.count){for(x=new vn,E=y.sourceVertexes;E.next();)b=E.value,ox(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:be("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++)by(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}pr.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 ax(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===md&&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];ax(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 Qx(a,y){switch(a.vo){default:case j0:return y.parent!==null?y.parent:a.W;case Oy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case By:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Ty: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}}pr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Qx(this,a)),a.parent!==null&&a.parent.alignment===md){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 sx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,E=0;E<x;E++)sx(a,y[E])}}pr.prototype.assignTreeVertexValues=function(){};function lx(a,y){if(y!==null){y.alignment!==md&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)lx(a,y[E])}}pr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Hg:break;case Xp:a.children.reverse();break;case Jp:a.children.sort(a.comparer);break;case Qp:a.children.sort(a.comparer),a.children.reverse();break;default:be("Unhandled sorting value "+a.sorting.toString())}},pr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},pr.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=Xc(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 st=a.node.Mu();st.next();){var ut=st.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=We.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=b,We.free(b))};function Xc(a){return a===vc||a===md||a===yc||a===Gd}function Yp(a){return a===vc||a===md}function My(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Xc(x)){if(Yp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===yc)return!0}}return!1}pr.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=Xc(z)),E=E===90||E===270,x=b===90||b===270;for(var tt=a.childrenCount===0,rt=My(a),ot=0,st=a.comments,ut=st.length,ft=Zt.alloc(),mt=0;mt<ut;mt++){var yt=st[mt],Ct=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-Ct.width,a.bounds.y+ot),yt.move(ft),yt=yt.Sd();yt.next();){var Mt=yt.value;Mt.fromSpot=tl,Mt.toSpot=xs}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=xs,Mt.toSpot=tl;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=xs,Mt.toSpot=tl;else for(ft.h(a.bounds.x+a.commentMargin-Ct.width,a.bounds.y+ot),yt.move(ft),yt=yt.Sd();yt.next();)Mt=yt.value,Mt.fromSpot=tl,Mt.toSpot=xs;ot=0<=a.commentSpacing?ot+(Ct.height+a.commentSpacing):ot+(a.commentSpacing-Ct.height)}else{if(135<b&&!z||!x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x+ot,a.bounds.y-a.commentMargin-Ct.height),yt.move(ft),yt=yt.Sd();yt.next();)Mt=yt.value,Mt.fromSpot=ml,Mt.toSpot=zs;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=zs,Mt.toSpot=ml;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=zs,Mt.toSpot=ml;else for(ft.h(a.bounds.x+ot,a.bounds.y+a.commentMargin-Ct.height),yt.move(ft),yt=yt.Sd();yt.next();)Mt=yt.value,Mt.fromSpot=ml,Mt.toSpot=zs;ot=0<=a.commentSpacing?ot+(Ct.width+a.commentSpacing):ot+(a.commentSpacing-Ct.width)}}if(Zt.free(ft),y=ot-a.commentSpacing-(E?y.height:y.width),this.ud===fd)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)}},pr.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 z0:ux(this,a);break;case qp:if(a.alignment===md)ux(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=Xc(x)),E=My(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=xh(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===gd;var st=ot===pd,ut=Xc(ot),ft=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var mt=a.nodeSpacing,yt=this.computeNodeIndent(a),Ct=a.rowSpacing,Mt=0;(E||st||a.hm||a.im&&a.maxGenerationCount===1)&&(Mt=Math.max(0,a.rowIndent)),E=a.width;var Vt=a.height,Rt=0,_t=0,te=0,ne=null,ue=null,Pe=0,Mn=0,ei=0,Kn=0,pn=0,qe=0,ji=0,Ni=0;if(ut&&!Yp(ot)&&135<b&&tt.reverse(),Yp(ot))if(1<rt)for(var Xr=0;Xr<rt;Xr++)Xr%2===0&&Xr!==rt-1&&(Ni=Math.max(Ni,y?tt[Xr].Da.width:tt[Xr].Da.height));else rt===1&&(Ni=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(ot){case vc:_t=135>b?hx(this,a,tt,Ni,Rt,_t):dx(this,a,tt,Ni,Rt,_t),Ni=_t.x,Rt=_t.width,_t=_t.height;break;case yc:for(ne=0;ne<rt;ne++)ue=tt[ne],ft=ue.Da,te=qe===0?0:Ct,y?(ue.S.h(z-ft.width,Kn+te),Rt=Math.max(Rt,ft.width),_t=Math.max(_t,Kn+te+ft.height),Kn+=te+ft.height):(ue.S.h(ei+te,z-ft.height),Rt=Math.max(Rt,ei+te+ft.width),_t=Math.max(_t,ft.height),ei+=te+ft.width),qe++;break;case Gd:for(ne=0;ne<rt;ne++)ue=tt[ne],z=ue.Da,ft=qe===0?0:Ct,y?(ue.S.h(mt/2+a.focus.x,Kn+ft),Rt=Math.max(Rt,z.width),_t=Math.max(_t,Kn+ft+z.height),Kn+=ft+z.height):(ue.S.h(ei+ft,mt/2+a.focus.y),Rt=Math.max(Rt,ei+ft+z.width),_t=Math.max(_t,z.height),ei+=ft+z.width),qe++}ne=ru(this,2),ue=ru(this,2),y?(ne[0].h(0,0),ne[1].h(0,_t),ue[0].h(Rt,0)):(ne[0].h(0,0),ne[1].h(Rt,0),ue[0].h(0,_t)),ue[1].h(Rt,_t)}else for(Xr=0;Xr<rt;Xr++){var zo=tt[Xr],Ls=zo.Da;if(y){0<ft&&0<qe&&ei+mt+Ls.width>ft&&(ei<z&&Lf(a,ot,z-ei,0,ji,Xr-1),pn++,qe=0,ji=Xr,te=_t,ei=0,Kn=135<b?-_t-Ct:_t+Ct),O0(this,zo,0,Kn);var Ns=0;if(qe===0)ne=zo.Yo,ue=zo.kp,Pe=Ls.width,Mn=Ls.height,(ne===null||ue===null||b!==xh(zo))&&(ne=ru(this,2),ue=ru(this,2),ne[0].h(0,0),ne[1].h(0,Mn),ue[0].h(Pe,0),ue[1].h(Pe,Mn));else{var Ll=Fi();Mn=cx(this,a,zo,ne,ue,Pe,Mn,Ll),Ns=Mn.x,ne=Ll[0],ue=Ll[1],Pe=Mn.width,Mn=Mn.height,Ai(Ll),ei<Ls.width&&0>Ns&&(Qf(a,-Ns,0,ji,Xr-1),I0(ne,-Ns,0),I0(ue,-Ns,0),Ns=0)}zo.S.h(Ns,Kn),Rt=Math.max(Rt,Pe),_t=Math.max(_t,te+(pn===0?0:Ct)+Ls.height),ei=Pe}else 0<ft&&0<qe&&Kn+mt+Ls.height>ft&&(Kn<z&&Lf(a,ot,0,z-Kn,ji,Xr-1),pn++,qe=0,ji=Xr,te=Rt,Kn=0,ei=135<b?-Rt-Ct:Rt+Ct),O0(this,zo,ei,0),Ns=0,qe===0?(ne=zo.Yo,ue=zo.kp,Pe=Ls.width,Mn=Ls.height,(ne===null||ue===null||b!==xh(zo))&&(ne=ru(this,2),ue=ru(this,2),ne[0].h(0,0),ne[1].h(Pe,0),ue[0].h(0,Mn),ue[1].h(Pe,Mn))):(Ll=Fi(),Mn=cx(this,a,zo,ne,ue,Pe,Mn,Ll),Ns=Mn.x,ne=Ll[0],ue=Ll[1],Pe=Mn.width,Mn=Mn.height,Ai(Ll),Kn<Ls.height&&0>Ns&&(Qf(a,0,-Ns,ji,Xr-1),I0(ne,0,-Ns),I0(ue,0,-Ns),Ns=0)),zo.S.h(ei,Ns),_t=Math.max(_t,Mn),Rt=Math.max(Rt,te+(pn===0?0:Ct)+Ls.width),Kn=Mn;qe++}switch(0<pn&&(y?(_t+=Math.max(0,x),ei<Rt&&Lf(a,ot,Rt-ei,0,ji,rt-1),0<Mt&&(st||Qf(a,Mt,0,0,rt-1),Rt+=Mt)):(Rt+=Math.max(0,x),Kn<_t&&Lf(a,ot,0,_t-Kn,ji,rt-1),0<Mt&&(st||Qf(a,0,Mt,0,rt-1),_t+=Mt))),Mt=st=0,ot){case Gg:y?st+=Rt/2-a.focus.x-yt/2:Mt+=_t/2-a.focus.y-yt/2;break;case _f:0<pn?y?st+=Rt/2-a.focus.x-yt/2:Mt+=_t/2-a.focus.y-yt/2:y?(Ni=tt[0].S.x+tt[0].la.x,st+=Ni+(tt[rt-1].S.x+tt[rt-1].la.x+2*tt[rt-1].focus.x-Ni)/2-a.focus.x-yt/2):(Ni=tt[0].S.y+tt[0].la.y,Mt+=Ni+(tt[rt-1].S.y+tt[rt-1].la.y+2*tt[rt-1].focus.y-Ni)/2-a.focus.y-yt/2);break;case gd:y?(st-=yt,Rt+=yt):(Mt-=yt,_t+=yt);break;case pd:y?(st+=Rt-a.width+yt,Rt+=yt):(Mt+=_t-a.height+yt,_t+=yt);break;case vc:y?1<rt?st+=Ni+mt/2-a.focus.x:st+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<rt?Mt+=Ni+mt/2-a.focus.y:Mt+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case yc:y?st+=Rt+mt/2-a.focus.x:Mt+=_t+mt/2-a.focus.y;break;case Gd:break;default:_t=this.customAlignment(a,st,Mt,Rt,_t),st=_t[0],Mt=_t[1],Rt=_t[2],_t=_t[3]}for(yt=0;yt<rt;yt++)Ni=tt[yt],y?Ni.S.h(Ni.S.x+Ni.la.x-st,Ni.S.y+(135<b?(ut?-_t:-Ni.Da.height)+Ni.la.y-x:Vt+x+Ni.la.y)):Ni.S.h(Ni.S.x+(135<b?(ut?-Rt:-Ni.Da.width)+Ni.la.x-x:E+x+Ni.la.x),Ni.S.y+Ni.la.y-Mt);if(rt=tt=0,ut?y?(Rt=ky(a,Rt,st),0>st&&(st=0),135<b&&(Mt+=_t+x),_t+=Vt+x,ot===Gd&&(tt+=mt/2+a.focus.x),rt+=Vt+x):(135<b&&(st+=Rt+x),Rt+=E+x,_t=Fy(a,_t,Mt),0>Mt&&(Mt=0),ot===Gd&&(rt+=mt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>Rt&&(Rt=Ny(ot,E-Rt,0),tt=Rt.x,rt=Rt.y,Rt=E,st=0):Rt=ky(a,Rt,st),0>st&&(tt-=st,st=0),135<b&&(Mt+=_t+x),_t=Math.max(Math.max(_t,Vt),_t+Vt+x),rt+=Vt+x):(135<b&&(st+=Rt+x),Rt=Math.max(Math.max(Rt,E),Rt+E+x),a.comments===null?Vt>_t&&(_t=Ny(ot,0,Vt-_t),tt=_t.x,rt=_t.y,_t=Vt,Mt=0):_t=Fy(a,_t,Mt),0>Mt&&(rt-=Mt,Mt=0),tt+=E+x),0<pn)b=ru(this,4),pn=ru(this,4),y?(b[2].h(0,Vt+x),b[3].h(b[2].x,_t),pn[2].h(Rt,b[2].y),pn[3].h(pn[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(Rt,b[2].y),pn[2].h(b[2].x,_t),pn[3].h(b[3].x,pn[2].y));else{for(b=ru(this,ne.length+2),pn=ru(this,ue.length+2),ot=0;ot<ne.length;ot++)ut=ne[ot],b[ot+2].h(ut.x+tt,ut.y+rt);for(ot=0;ot<ue.length;ot++)ut=ue[ot],pn[ot+2].h(ut.x+tt,ut.y+rt)}y?(b[0].h(st,0),b[1].h(b[0].x,Vt),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])),pn[0].h(st+E,0),pn[1].h(pn[0].x,Vt),pn[2].y<pn[1].y&&(pn[2].x<pn[0].x?pn[2].assign(pn[1]):pn[1].assign(pn[2])),pn[3].y<pn[2].y&&(pn[3].x<pn[0].x?pn[3].assign(pn[2]):pn[2].assign(pn[3])),b[2].y-=x/2,pn[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])),pn[0].h(0,Mt+Vt),pn[1].h(E,pn[0].y),pn[2].x<pn[1].x&&(pn[2].y<pn[0].y?pn[2].assign(pn[1]):pn[1].assign(pn[2])),pn[3].x<pn[2].x&&(pn[3].y<pn[0].y?pn[3].assign(pn[2]):pn[2].assign(pn[3])),b[2].x-=x/2,pn[2].x-=x/2),Oh(this,ne),Oh(this,ue),a.Yo=b,a.kp=pn,a.la.h(st,Mt),a.Da.h(Rt,_t)}break;default:be("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=Xc(x));var b=My(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=xh(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 st=y.alignment,ut=st===gd,ft=st===pd;rt=Xc(st);var mt=Math.max(0,y.breadthLimit);ot=a.computeLayerSpacing(y);var yt=y.nodeSpacing,Ct=a.computeNodeIndent(y),Mt=ut||ft?0:Ct/2,Vt=y.rowSpacing,Rt=0;(ut||ft||y.hm||y.im&&y.maxGenerationCount===1)&&(Rt=Math.max(0,y.rowIndent)),ut=y.width;var _t=y.height,te=0,ne=0,ue=0,Pe=0,Mn=0,ei=0,Kn=0,pn=0,qe=0,ji=0;if(rt&&!Yp(st)&&135<E&&b.reverse(),Yp(st))if(1<tt)for(var Ni=0;Ni<tt;Ni++){var Xr=b[Ni],zo=Xr.Da;Ni%2===0&&Ni!==tt-1?qe=Math.max(qe,(x?zo.width:zo.height)+a.computeBusNodeSpacing(Xr)-yt):Ni%2!==0&&(ji=Math.max(ji,(x?zo.width:zo.height)+a.computeBusNodeSpacing(Xr)-yt))}else tt===1&&(qe=x?b[0].Da.width:b[0].Da.height);if(rt)switch(st){case vc:case md:ne=135>E?hx(a,y,b,qe,te,ne):dx(a,y,b,qe,te,ne),qe=ne.x,te=ne.width,ne=ne.height;break;case yc:for(mt=0;mt<tt;mt++)Mt=b[mt],ue=Mt.Da,ji=Kn===0?0:Vt,x?(Mt.S.h(z-ue.width,Mn+ji),te=Math.max(te,ue.width),ne=Math.max(ne,Mn+ji+ue.height),Mn+=ji+ue.height):(Mt.S.h(Pe+ji,z-ue.height),te=Math.max(te,Pe+ji+ue.width),ne=Math.max(ne,ue.height),Pe+=ji+ue.width),Kn++;break;case Gd:for(z=0;z<tt;z++)mt=b[z],Mt=mt.Da,ue=Kn===0?0:Vt,x?(mt.S.h(yt/2+y.focus.x,Mn+ue),te=Math.max(te,Mt.width),ne=Math.max(ne,Mn+ue+Mt.height),Mn+=ue+Mt.height):(mt.S.h(Pe+ue,yt/2+y.focus.y),te=Math.max(te,Pe+ue+Mt.width),ne=Math.max(ne,Mt.height),Pe+=ue+Mt.width),Kn++}else for(ji=0;ji<tt;ji++)Ni=b[ji],Xr=Ni.Da,x?(0<mt&&0<Kn&&Pe+yt+Xr.width>mt&&(Pe<z&&Lf(y,st,z-Pe,0,pn,ji-1),ei++,Kn=0,pn=ji,ue=ne,Pe=0,Mn=135<E?-ne-Vt:ne+Vt),zo=Kn===0?Mt:yt,O0(a,Ni,0,Mn),Ni.S.h(Pe+zo,Mn),te=Math.max(te,Pe+zo+Xr.width),ne=Math.max(ne,ue+(ei===0?0:Vt)+Xr.height),Pe+=zo+Xr.width):(0<mt&&0<Kn&&Mn+yt+Xr.height>mt&&(Mn<z&&Lf(y,st,0,z-Mn,pn,ji-1),ei++,Kn=0,pn=ji,ue=te,Mn=0,Pe=135<E?-te-Vt:te+Vt),zo=Kn===0?Mt:yt,O0(a,Ni,Pe,0),Ni.S.h(Pe,Mn+zo),ne=Math.max(ne,Mn+zo+Xr.height),te=Math.max(te,ue+(ei===0?0:Vt)+Xr.width),Mn+=zo+Xr.height),Kn++;switch(0<ei&&(x?(ne+=Math.max(0,ot),Pe<te&&Lf(y,st,te-Pe,0,pn,tt-1),0<Rt&&(ft||Qf(y,Rt,0,0,tt-1),te+=Rt)):(te+=Math.max(0,ot),Mn<ne&&Lf(y,st,0,ne-Mn,pn,tt-1),0<Rt&&(ft||Qf(y,0,Rt,0,tt-1),ne+=Rt))),Rt=ft=0,st){case Gg:x?ft+=te/2-y.focus.x-Ct/2:Rt+=ne/2-y.focus.y-Ct/2;break;case _f:0<ei?x?ft+=te/2-y.focus.x-Ct/2:Rt+=ne/2-y.focus.y-Ct/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-Ct/2):(a=b[0].S.y+b[0].la.y,Rt+=a+(b[tt-1].S.y+b[tt-1].la.y+2*b[tt-1].focus.y-a)/2-y.focus.y-Ct/2);break;case gd:x?(ft-=Ct,te+=Ct):(Rt-=Ct,ne+=Ct);break;case pd:x?(ft+=te-y.width+Ct,te+=Ct):(Rt+=ne-y.height+Ct,ne+=Ct);break;case vc:case md:x?1<tt?ft+=qe+yt/2-y.focus.x:ft+=b[0].focus.x-y.focus.x+b[0].la.x:1<tt?Rt+=qe+yt/2-y.focus.y:Rt+=b[0].focus.y-y.focus.y+b[0].la.y;break;case yc:x?ft+=te+yt/2-y.focus.x:Rt+=ne+yt/2-y.focus.y;break;case Gd:break;default:a=a.customAlignment(y,ft,Rt,te,ne),ft=a[0],Rt=a[1],te=a[2],ne=a[3]}for(a=0;a<tt;a++)Ct=b[a],x?Ct.S.h(Ct.S.x+Ct.la.x-ft,Ct.S.y+(135<E?(rt?-ne:-Ct.Da.height)+Ct.la.y-ot:_t+ot+Ct.la.y)):Ct.S.h(Ct.S.x+(135<E?(rt?-te:-Ct.Da.width)+Ct.la.x-ot:ut+ot+Ct.la.x),Ct.S.y+Ct.la.y-Rt);x?(te=ky(y,te,ft),0>ft&&(ft=0),135<E&&(Rt+=ne+ot),ne=Math.max(Math.max(ne,_t),ne+_t+ot)):(135<E&&(ft+=te+ot),te=Math.max(Math.max(te,ut),te+ut+ot),ne=Fy(y,ne,Rt),0>Rt&&(Rt=0)),y.la.h(ft,Rt),y.Da.h(te,ne)}}pr.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 We(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new We(E,0,b,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,st=xh(y)===90,ut=0,ft=0,mt=0,yt=0;yt<tt;yt++)if(!(yt%2!==0||1<tt&&yt===tt-1)){var Ct=x[yt],Mt=Ct.Da,Vt=ut===0?0:ot;if(st){var Rt=a.computeBusNodeSpacing(Ct)-rt;Ct.S.h(E-(Mt.width+Rt),mt+Vt),b=Math.max(b,Mt.width+Rt),z=Math.max(z,mt+Vt+Mt.height),mt+=Vt+Mt.height}else Rt=a.computeBusNodeSpacing(Ct)-rt,Ct.S.h(ft+Vt,E-(Mt.height+Rt)),z=Math.max(z,Mt.height+Rt),b=Math.max(b,ft+Vt+Mt.width),ft+=Vt+Mt.width;ut++}for(ut=0,Ct=ft,yt=mt,st?(ft=E+rt,mt=0):(ft=0,mt=E+rt),Mt=0;Mt<tt;Mt++)if(Mt%2!==0){Vt=x[Mt],Rt=Vt.Da;var _t=ut===0?0:ot;if(st){var te=a.computeBusNodeSpacing(Vt)-rt;Vt.S.h(ft+te,mt+_t),b=Math.max(b,ft+Rt.width+te),z=Math.max(z,mt+_t+Rt.height),mt+=_t+Rt.height}else te=a.computeBusNodeSpacing(Vt)-rt,Vt.S.h(ft+_t,mt+te),b=Math.max(b,ft+_t+Rt.width),z=Math.max(z,mt+Rt.height+te),ft+=_t+Rt.width;ut++}return 1<tt&&tt%2===1&&(x=x[tt-1],tt=x.Da,a=a.computeBusLastRowSpacing(x,st?Math.max(Math.abs(yt),Math.abs(mt)):Math.max(Math.abs(Ct),Math.abs(ft))),st?(x.S.h(E+rt/2-x.focus.x-x.la.x,z+a),st=E+rt/2-x.focus.x-x.la.x,b=Math.max(b,st+tt.width),0>st&&(b-=st),z=Math.max(z,Math.max(yt,mt)+a+tt.height),0>x.S.x&&(E=B0(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(Ct,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=B0(y,x.S.y,!0,E,rt)))),new We(E,0,b,z)}function dx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new We(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new We(E,0,b,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,st=xh(y)===270,ut=0,ft=0,mt=0,yt=0;yt<tt;yt++)if(!(yt%2!==0||1<tt&&yt===tt-1)){var Ct=x[yt],Mt=Ct.Da,Vt=ut===0?0:ot;if(st){var Rt=a.computeBusNodeSpacing(Ct)-rt;mt-=Vt+Mt.height,Ct.S.h(E-(Mt.width+Rt),mt),b=Math.max(b,Mt.width+Rt),z=Math.max(z,Math.abs(mt))}else Rt=a.computeBusNodeSpacing(Ct)-rt,ft-=Vt+Mt.width,Ct.S.h(ft,E-(Mt.height+Rt)),z=Math.max(z,Mt.height+Rt),b=Math.max(b,Math.abs(ft));ut++}for(ut=0,Ct=ft,yt=mt,st?(ft=E+rt,mt=0):(ft=0,mt=E+rt),Mt=0;Mt<tt;Mt++)if(Mt%2!==0){Vt=x[Mt],Rt=Vt.Da;var _t=ut===0?0:ot;if(st){var te=a.computeBusNodeSpacing(Vt)-rt;mt-=_t+Rt.height,Vt.S.h(ft+te,mt),b=Math.max(b,ft+Rt.width+te),z=Math.max(z,Math.abs(mt))}else te=a.computeBusNodeSpacing(Vt)-rt,ft-=_t+Rt.width,Vt.S.h(ft,mt+te),z=Math.max(z,mt+Rt.height+te),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,st?Math.max(Math.abs(yt),Math.abs(mt)):Math.max(Math.abs(Ct),Math.abs(ft))),st?(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=B0(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(Ct,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=B0(y,ot.S.y,!0,E,rt)))),y=0;y<tt;y++)rt=x[y],st?rt.S.h(rt.S.x,rt.S.y+z):rt.S.h(rt.S.x+b,rt.S.y);return new We(E,0,b,z)}pr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},pr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function B0(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 _f:case Gg:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case gd:return a.width>y?a.width:y;case pd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case vc:case md:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case yc:return a.width-a.focus.x+a.nodeSpacing/2+y;case Gd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a.alignment){case _f:case Gg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case gd:return a.height>y?a.height:y;case pd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case vc:case md:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case yc:return a.height-a.focus.y+a.nodeSpacing/2+y;case Gd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a){case Gg:y/=2,x/=2;break;case _f:y/=2,x/=2;break;case gd:x=y=0;break;case pd:break;default:be("Unhandled alignment value "+a.toString())}return new Zt(y,x)}function Lf(a,y,x,E,b,z){y=Ny(y,x,E),Qf(a,y.x,y.y,b,z)}function Qf(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 O0(a,y,x,E){var b=y.parent;switch(a.ud){case fd:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case qf:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:be("Unhandled path value "+a.ud.toString())}}function I0(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=xh(y),st=ot===90||ot===270,ut=y.nodeSpacing;y=E;var ft=b;E=z;var mt=tt,yt=x.Yo,Ct=x.kp;tt=x.Da;var Mt=st?Math.max(mt,tt.height):Math.max(E,tt.width);if((yt===null||ot!==xh(x))&&(yt=ru(a,2),Ct=ru(a,2),st?(yt[0].h(0,0),yt[1].h(0,tt.height),Ct[0].h(tt.width,0),Ct[1].h(Ct[0].x,yt[1].y)):(yt[0].h(0,0),yt[1].h(tt.width,0),Ct[0].h(0,tt.height),Ct[1].h(yt[1].x,Ct[0].y))),st){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 Vt=yt[b];ot=Vt.x,st=Vt.y,ot+=E;var Rt=z;x+1<ft.length&&(Rt=ft[x+1]);var _t=Vt;Vt=_t.x,_t=_t.y,b+1<yt.length&&(_t=yt[b+1],Vt=_t.x,_t=_t.y,Vt+=E);var te=mt;z.y===st?te=ot-z.x:z.y>st&&z.y<_t?te=ot+(z.y-st)/(_t-st)*(Vt-ot)-z.x:st>z.y&&st<Rt.y&&(te=ot-(z.x+(st-z.y)/(Rt.y-z.y)*(Rt.x-z.x))),te<mt&&(mt=te),Rt.y<=z.y?x++:_t<=st?b++:(Rt.y<=_t&&x++,_t<=Rt.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=ru(a,y.length+x.length),E=z=ot=0;z<x.length&&x[z].y<y[0].y;)st=x[z++],ut[E++].h(st.x+b,st.y);for(;ot<y.length;)st=y[ot++],ut[E++].h(st.x,st.y);for(ot=y[y.length-1].y;z<x.length&&x[z].y<=ot;)z++;for(;z<x.length&&x[z].y>ot;)st=x[z++],ut[E++].h(st.x+b,st.y);for(x=ru(a,E),ot=0;ot<E;ot++)x[ot].assign(ut[ot]);Oh(a,ut),E=x}if(z=Ct,ot=mt,ft===null||2>ft.length||z===null||2>z.length)b=null;else{for(ut=ru(a,ft.length+z.length),b=st=x=0;x<ft.length&&ft[x].y<z[0].y;)Rt=ft[x++],ut[b++].h(Rt.x,Rt.y);for(;st<z.length;)Rt=z[st++],ut[b++].h(Rt.x+ot,Rt.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=ru(a,b),x=0;x<b;x++)z[x].assign(ut[x]);Oh(a,ut),b=z}return z=Math.max(0,mt)+tt.width,tt=Mt,Oh(a,y),Oh(a,yt),Oh(a,ft),Oh(a,Ct),rt[0]=E,rt[1]=b,new We(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],Vt=yt[b],ot=Vt.x,st=Vt.y,st+=mt,Rt=z,x+1<ft.length&&(Rt=ft[x+1]),_t=Vt,Vt=_t.x,_t=_t.y,b+1<yt.length&&(_t=yt[b+1],Vt=_t.x,_t=_t.y,_t+=mt),te=E,z.x===ot?te=st-z.y:z.x>ot&&z.x<Vt?te=st+(z.x-ot)/(Vt-ot)*(_t-st)-z.y:ot>z.x&&ot<Rt.x&&(te=st-(z.y+(ot-z.x)/(Rt.x-z.x)*(Rt.y-z.y))),te<E&&(E=te),Rt.x<=z.x?x++:Vt<=ot?b++:(Rt.x<=Vt&&x++,Vt<=Rt.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=ru(a,y.length+x.length),E=z=ot=0;z<x.length&&x[z].x<y[0].x;)st=x[z++],ut[E++].h(st.x,st.y+b);for(;ot<y.length;)st=y[ot++],ut[E++].h(st.x,st.y);for(ot=y[y.length-1].x;z<x.length&&x[z].x<=ot;)z++;for(;z<x.length&&x[z].x>ot;)st=x[z++],ut[E++].h(st.x,st.y+b);for(x=ru(a,E),ot=0;ot<E;ot++)x[ot].assign(ut[ot]);Oh(a,ut),E=x}if(z=Ct,ot=mt,ft===null||2>ft.length||z===null||2>z.length)b=null;else{for(ut=ru(a,ft.length+z.length),b=st=x=0;x<ft.length&&ft[x].x<z[0].x;)Rt=ft[x++],ut[b++].h(Rt.x,Rt.y);for(;st<z.length;)Rt=z[st++],ut[b++].h(Rt.x,Rt.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=ru(a,b),x=0;x<b;x++)z[x].assign(ut[x]);Oh(a,ut),b=z}return z=Mt,tt=Math.max(0,mt)+tt.height,Oh(a,y),Oh(a,yt),Oh(a,ft),Oh(a,Ct),rt[0]=E,rt[1]=b,new We(mt,0,z,tt)}function ru(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 Zt;return a}function Oh(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}pr.prototype.arrangeTrees=function(){if(this.Rb===H0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof rh){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 rh&&a.push(x);switch(this.sorting){case Hg:break;case Xp:a.reverse();break;case Jp:a.sort(this.comparer);break;case Qp:a.sort(this.comparer),a.reverse();break;default:be("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 W0:x+=b.Da.height+this.$d.height;break;case Iy:y+=b.Da.width+this.$d.width;break;default:be("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)}}}pr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},pr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},pr.prototype.Gu=function(){if(this.layerStyle===G0){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 Zt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new Zt(-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 We(0,z,x,rt))):this.angle===90?(b.push(new We(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,b.push(new We(z,0,rt,x))):(b.push(new We(z,0,rt,x)),z+=rt)}this.commitLayers(b,E)}},pr.prototype.commitLayers=function(){},pr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},pr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof rh&&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])}}pr.prototype.setPortSpots=function(a){var y=a.alignment;if(Xc(y)){var x=this.ud===fd,E=xh(a);switch(E){case 0:var b=xs;break;case 90:b=zs;break;case 180:b=tl;break;default:b=ml}var z=a.children,tt=z.length;switch(y){case vc:case md: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?tl:ml;if(tt===1||y===tt-1&&tt%2===1)switch(E){case 0:ot=tl;break;case 90:ot=ml;break;case 180:ot=xs;break;default:ot=zs}else y%2===0&&(ot=E===90||E===270?xs:zs);x?(a.setsPortSpot&&(rt.fromSpot=b),a.setsChildPortSpot&&(rt.toSpot=ot)):(a.setsPortSpot&&(rt.fromSpot=ot),a.setsChildPortSpot&&(rt.toSpot=b))}}break;case yc:for(E=E===90||E===270?xs:zs,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 Gd:for(E=E===90||E===270?tl:ml,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=xh(a),this.ud===fd){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=xs;break;case 90:E.fromSpot=zs;break;case 180:E.fromSpot=tl;break;default:E.fromSpot=ml}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=tl;break;case 90:E.toSpot=ml;break;case 180:E.toSpot=xs;break;default:E.toSpot=zs}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=xs;break;case 90:E.toSpot=zs;break;case 180:E.toSpot=tl;break;default:E.toSpot=ml}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=tl;break;case 90:E.fromSpot=ml;break;case 180:E.fromSpot=xs;break;default:E.fromSpot=zs}else E.fromSpot=a.childPortSpot}};function xh(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}pr.prototype.computeLayerSpacing=function(a){var y=xh(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},pr.prototype.computeNodeIndent=function(a){var y=xh(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)},je.Object.defineProperties(pr.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!==j0&&a!==By&&a!==Ty&&a!==Oy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==zy&&a!==G0||(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!==W0&&a!==Iy&&a!==H0||(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!==Hg&&a!==Xp&&a!==Jp&&!Qp||(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()):be("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!==z0&&a!==qp||(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!==Hg&&a!==Xp&&a!==Jp&&!Qp||(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!==z0&&a!==qp||(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 R0=new Te(pr,"PathDefault",-1),fd=new Te(pr,"PathDestination",0),qf=new Te(pr,"PathSource",1),Hg=new Te(pr,"SortingForwards",10),Xp=new Te(pr,"SortingReverse",11),Jp=new Te(pr,"SortingAscending",12),Qp=new Te(pr,"SortingDescending",13),Gg=new Te(pr,"AlignmentCenterSubtrees",20),_f=new Te(pr,"AlignmentCenterChildren",21),gd=new Te(pr,"AlignmentStart",22),pd=new Te(pr,"AlignmentEnd",23),vc=new Te(pr,"AlignmentBus",24),md=new Te(pr,"AlignmentBusBranching",25),yc=new Te(pr,"AlignmentTopLeftBus",26),Gd=new Te(pr,"AlignmentBottomRightBus",27),z0=new Te(pr,"CompactionNone",30),qp=new Te(pr,"CompactionBlock",31),j0=new Te(pr,"StyleLayered",40),Ty=new Te(pr,"StyleLastParents",41),By=new Te(pr,"StyleAlternating",42),Oy=new Te(pr,"StyleRootOnly",43),W0=new Te(pr,"ArrangementVertical",50),Iy=new Te(pr,"ArrangementHorizontal",51),H0=new Te(pr,"ArrangementFixedRoots",52),Ry=new Te(pr,"LayerIndividual",60),zy=new Te(pr,"LayerSiblings",61),G0=new Te(pr,"LayerUniform",62);pr.className="TreeLayout",pr.PathDefault=R0,pr.PathDestination=fd,pr.PathSource=qf,pr.SortingForwards=Hg,pr.SortingReverse=Xp,pr.SortingAscending=Jp,pr.SortingDescending=Qp,pr.AlignmentCenterSubtrees=Gg,pr.AlignmentCenterChildren=_f,pr.AlignmentStart=gd,pr.AlignmentEnd=pd,pr.AlignmentBus=vc,pr.AlignmentBusBranching=md,pr.AlignmentTopLeftBus=yc,pr.AlignmentBottomRightBus=Gd,pr.CompactionNone=z0,pr.CompactionBlock=qp,pr.StyleLayered=j0,pr.StyleLastParents=Ty,pr.StyleAlternating=By,pr.StyleRootOnly=Oy,pr.ArrangementVertical=W0,pr.ArrangementHorizontal=Iy,pr.ArrangementFixedRoots=H0,pr.LayerIndividual=Ry,pr.LayerSiblings=zy,pr.LayerUniform=G0;function $f(a){Wo.call(this,a)}se($f,Wo),$f.prototype.createVertex=function(){return new rh(this)},$f.prototype.createEdge=function(){return new Kg(this)},$f.className="TreeNetwork";function rh(a){gs.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 Zt(0,0),this.Da=new $e(0,0),this.la=new Zt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Hg,this.hd=ry,this.Kb=0,this.Jb=_f,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=qp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=vs,this.wr=!0,this.Dp=vs}se(rh,gs),rh.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)},je.Object.defineProperties(rh.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)}}}),rh.className="TreeVertex";function Kg(a){pu.call(this,a),this.$t=new Zt(0,0)}se(Kg,pu),Kg.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 fd:x=this.fromVertex,E=this.toVertex;break;case qf:x=this.toVertex,E=this.fromVertex;break;default:be("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=xh(x),tt=y.computeLayerSpacing(x),rt=x.rowSpacing;a.vg();var ot=a.curve===Bu,st=a.isOrthogonal,ut;if(a.uh(),st||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===pd?(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===gd?(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)):(st&&(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-(st?rt/2:rt),z),ut++,st&&a.m(ut,a.i(ut-1).x,mt.y))):z===90?(x.alignment===pd?(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===gd?(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)):(st&&(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-(st?rt/2:rt)),ut++,st&&a.m(ut,mt.x,a.i(ut-1).y))):z===180?(x.alignment===pd?(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===gd?(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)):(st&&(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+(st?rt/2:rt),z),ut++,st&&a.m(ut,a.i(ut-1).x,mt.y))):z===270?(x.alignment===pd?(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===gd?(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)):(st&&(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+(st?rt/2:rt)),ut++,st&&a.m(ut,mt.x,a.i(ut-1).y))):be("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=xh(x),y!==xh(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===Bu,b=a.isOrthogonal,E=Xc(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()))}}},je.Object.defineProperties(Kg.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)}}}),Kg.className="TreeEdge",Ho.prototype.initializeStandardTools=function(){this.gb("Action",new en,this.mouseDownTools),this.gb("Relinking",new Ur,this.mouseDownTools),this.gb("LinkReshaping",new Mi,this.mouseDownTools),this.gb("Rotating",new Ae,this.mouseDownTools),this.gb("Resizing",new ee,this.mouseDownTools),this.gb("Linking",new Vr,this.mouseMoveTools),this.gb("Dragging",new $i,this.mouseMoveTools),this.gb("DragSelecting",new On,this.mouseMoveTools),this.gb("Panning",new Ln,this.mouseMoveTools),this.gb("ContextMenu",new wi,this.mouseUpTools),this.gb("TextEditing",new li,this.mouseUpTools),this.gb("ClickCreating",new kn,this.mouseUpTools),this.gb("ClickSelecting",new Ue,this.mouseUpTools)},Jh("Horizontal",new vm),Jh("Spot",new Sm),Jh("Table",new wm),Jh("Viewbox",new Em),Jh("TableRow",new Pm),Jh("TableColumn",new Cm),Jh("Graduated",new fp),Jh("Grid",new cp),cg.add("GraphLinksModel",Fs),cg.add("TreeModel",Zu);var K0=Me.go,jy={get licenseKey(){return ye.licenseKey},set licenseKey(a){ye.licenseKey=a},get version(){return ye.version},Group:Hi,EnumValue:Te,List:vn,Set:sn,Map:ci,Point:Zt,Size:$e,Rect:We,Margin:Qi,Spot:yi,Geometry:yn,PathFigure:es,PathSegment:kr,InputEvent:Ks,DiagramEvent:dh,ChangedEvent:ia,Model:ai,GraphLinksModel:Dr,TreeModel:Wl,Binding:qa,Transaction:os,UndoManager:ha,CommandHandler:Kt,Tool:Lr,DraggingTool:$i,DraggingInfo:Id,DraggingOptions:at,LinkingBaseTool:ki,LinkingTool:Vr,RelinkingTool:Ur,LinkReshapingTool:Mi,ResizingTool:ee,RotatingTool:Ae,ClickSelectingTool:Ue,ActionTool:en,ClickCreatingTool:kn,HTMLInfo:Xn,ContextMenuTool:wi,DragSelectingTool:On,PanningTool:Ln,TextEditingTool:li,ToolManager:Ho,Animation:da,AnimationManager:No,AnimationTrigger:Ua,Layer:Sr,Diagram:ye,Palette:ct,Overview:gt,Brush:ho,GraphObject:fe,Panel:ln,RowColumnDefinition:hs,Shape:Ji,TextBlock:jo,Picture:Ql,Part:pi,Adornment:Hr,Node:Bn,Link:mn,Placeholder:Il,Layout:la,LayoutNetwork:Wo,LayoutVertex:gs,LayoutEdge:pu,GridLayout:Hs,PanelLayout:fs,CircularLayout:Ea,CircularNetwork:zg,CircularVertex:Hp,CircularEdge:C0,ForceDirectedLayout:Qs,ForceDirectedNetwork:Jf,ForceDirectedVertex:Gp,ForceDirectedEdge:Kp,LayeredDigraphLayout:vo,LayeredDigraphNetwork:Wg,LayeredDigraphVertex:Xu,LayeredDigraphEdge:Zp,TreeLayout:pr,TreeNetwork:$f,TreeVertex:rh,TreeEdge:Kg};typeof K0=="object"&&K0.version&&Er("WARNING: a `go` object on the root object is already defined. "+("Debug"in K0?"debug ":"")+"version: "+K0.version+", replaced with version: "+jy.version),ye.prototype.go=jy,Me.go=jy,typeof xn.exports=="object"&&(xn.exports=typeof Dt.g!="undefined"?Dt.g.go:self.go)}();var kt=typeof Dt.g!="undefined"?Dt.g.go:self.go;const le=typeof Dt.g!="undefined"?Dt.g.go:self.go,ze=le.Group,Ye=le.EnumValue,Se=le.List,Ot=le.Set,qt=le.Map,Ee=le.Point,me=le.Size,ve=le.Rect,Ze=le.Margin,Ce=le.Spot,nn=le.Geometry,Tt=le.PathFigure,nt=le.PathSegment,et=le.InputEvent,ht=le.DiagramEvent,lt=le.ChangedEvent,pt=le.Model,vt=le.GraphLinksModel,St=le.TreeModel,Lt=le.Binding,It=le.Transaction,Yt=le.UndoManager,ie=le.CommandHandler,re=le.Tool,Qt=le.DraggingTool,xe=le.DraggingInfo,he=le.LinkingBaseTool,Le=le.LinkingTool,Qe=le.RelinkingTool,Fe=le.LinkReshapingTool,Gn=le.ResizingTool,Jn=le.RotatingTool,Ke=le.ClickSelectingTool,Dn=le.ActionTool,$t=le.ClickCreatingTool,zt=le.HTMLInfo,Gt=le.ContextMenuTool,_e=le.DragSelectingTool,Sn=le.PanningTool,we=le.TextEditingTool,rn=le.ToolManager,an=le.Animation,Wn=le.AnimationManager,Ne=le.AnimationTrigger,de=le.Layer,Oe=le.Diagram,dn=le.Palette,He=le.Overview,jt=le.Brush,Pt=le.GraphObject,wt=le.Panel,Ft=le.RowColumnDefinition,Wt=le.Shape,At=le.TextBlock,Jt=le.TextBlockMetrics,Xe=le.Picture,zn=le.Part,En=le.Adornment,Ve=le.Node,wn=le.Link,De=le.Placeholder,An=le.Layout,Hn=le.LayoutNetwork,Si=le.LayoutVertex,Un=le.LayoutEdge,Ui=le.GridLayout,Yi=le.PanelLayout,di=le.CircularLayout,vi=le.CircularNetwork,br=le.CircularVertex,ii=le.CircularEdge,mi=le.ForceDirectedLayout,Br=le.ForceDirectedNetwork,Gr=le.ForceDirectedVertex,Li=le.ForceDirectedEdge,jr=le.LayeredDigraphLayout,Lo=le.LayeredDigraphNetwork,ta=le.LayeredDigraphVertex,_o=le.LayeredDigraphEdge,Io=le.TreeLayout,ea=le.TreeNetwork,To=le.TreeVertex,mr=le.TreeEdge,cn=le.version},15979:function(xn,$n,Dt){"use strict";Dt.d($n,{hP:function(){return He}});var kt=function(jt,Pt){return(kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(wt,Ft){wt.__proto__=Ft}||function(wt,Ft){for(var Wt in Ft)Object.prototype.hasOwnProperty.call(Ft,Wt)&&(wt[Wt]=Ft[Wt])})(jt,Pt)};function le(jt,Pt){function wt(){this.constructor=jt}kt(jt,Pt),jt.prototype=Pt===null?Object.create(Pt):(wt.prototype=Pt.prototype,new wt)}function ze(jt,Pt,wt,Ft){return new(wt||(wt=Promise))(function(Wt,At){function Jt(En){try{zn(Ft.next(En))}catch(Ve){At(Ve)}}function Xe(En){try{zn(Ft.throw(En))}catch(Ve){At(Ve)}}function zn(En){var Ve;En.done?Wt(En.value):(Ve=En.value,Ve instanceof wt?Ve:new wt(function(wn){wn(Ve)})).then(Jt,Xe)}zn((Ft=Ft.apply(jt,Pt||[])).next())})}function Ye(jt,Pt){var wt,Ft,Wt,At,Jt={label:0,sent:function(){if(1&Wt[0])throw Wt[1];return Wt[1]},trys:[],ops:[]};return At={next:Xe(0),throw:Xe(1),return:Xe(2)},typeof Symbol=="function"&&(At[Symbol.iterator]=function(){return this}),At;function Xe(zn){return function(En){return function(Ve){if(wt)throw new TypeError("Generator is already executing.");for(;Jt;)try{if(wt=1,Ft&&(Wt=2&Ve[0]?Ft.return:Ve[0]?Ft.throw||((Wt=Ft.return)&&Wt.call(Ft),0):Ft.next)&&!(Wt=Wt.call(Ft,Ve[1])).done)return Wt;switch(Ft=0,Wt&&(Ve=[2&Ve[0],Wt.value]),Ve[0]){case 0:case 1:Wt=Ve;break;case 4:return Jt.label++,{value:Ve[1],done:!1};case 5:Jt.label++,Ft=Ve[1],Ve=[0];continue;case 7:Ve=Jt.ops.pop(),Jt.trys.pop();continue;default:if(Wt=Jt.trys,!((Wt=Wt.length>0&&Wt[Wt.length-1])||Ve[0]!==6&&Ve[0]!==2)){Jt=0;continue}if(Ve[0]===3&&(!Wt||Ve[1]>Wt[0]&&Ve[1]<Wt[3])){Jt.label=Ve[1];break}if(Ve[0]===6&&Jt.label<Wt[1]){Jt.label=Wt[1],Wt=Ve;break}if(Wt&&Jt.label<Wt[2]){Jt.label=Wt[2],Jt.ops.push(Ve);break}Wt[2]&&Jt.ops.pop(),Jt.trys.pop();continue}Ve=Pt.call(jt,Jt)}catch(wn){Ve=[6,wn],Ft=0}finally{wt=Wt=0}if(5&Ve[0])throw Ve[1];return{value:Ve[0]?Ve[1]:void 0,done:!0}}([zn,En])}}}function Se(){for(var jt=0,Pt=0,wt=arguments.length;Pt<wt;Pt++)jt+=arguments[Pt].length;var Ft=Array(jt),Wt=0;for(Pt=0;Pt<wt;Pt++)for(var At=arguments[Pt],Jt=0,Xe=At.length;Jt<Xe;Jt++,Wt++)Ft[Wt]=At[Jt];return Ft}var Ot=function(){function jt(){}return jt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},jt.setAttributes=function(Pt,wt){for(var Ft=0,Wt=wt;Ft<Wt.length;Ft++){var At=Wt[Ft],Jt=At[0],Xe=At[1];Pt.setAttribute(Jt,Xe)}},jt.createRect=function(Pt,wt,Ft){var Wt=document.createElementNS("http://www.w3.org/2000/svg","rect");return Wt.setAttribute("width",Pt.toString()),Wt.setAttribute("height",wt.toString()),Ft&&jt.setAttributes(Wt,Ft),Wt},jt.createLine=function(Pt,wt,Ft,Wt,At){var Jt=document.createElementNS("http://www.w3.org/2000/svg","line");return Jt.setAttribute("x1",Pt.toString()),Jt.setAttribute("y1",wt.toString()),Jt.setAttribute("x2",Ft.toString()),Jt.setAttribute("y2",Wt.toString()),At&&jt.setAttributes(Jt,At),Jt},jt.createPolygon=function(Pt,wt){var Ft=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ft.setAttribute("points",Pt),wt&&jt.setAttributes(Ft,wt),Ft},jt.createCircle=function(Pt,wt){var Ft=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ft.setAttribute("cx",(Pt/2).toString()),Ft.setAttribute("cy",(Pt/2).toString()),Ft.setAttribute("r",Pt.toString()),wt&&jt.setAttributes(Ft,wt),Ft},jt.createEllipse=function(Pt,wt,Ft){var Wt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Wt.setAttribute("cx",(Pt/2).toString()),Wt.setAttribute("cy",(wt/2).toString()),Wt.setAttribute("rx",(Pt/2).toString()),Wt.setAttribute("ry",(wt/2).toString()),Ft&&jt.setAttributes(Wt,Ft),Wt},jt.createGroup=function(Pt){var wt=document.createElementNS("http://www.w3.org/2000/svg","g");return Pt&&jt.setAttributes(wt,Pt),wt},jt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},jt.createMarker=function(Pt,wt,Ft,Wt,At,Jt,Xe){var zn=document.createElementNS("http://www.w3.org/2000/svg","marker");return jt.setAttributes(zn,[["id",Pt],["orient",wt],["markerWidth",Ft.toString()],["markerHeight",Wt.toString()],["refX",At.toString()],["refY",Jt.toString()]]),zn.appendChild(Xe),zn},jt.createText=function(Pt){var wt=document.createElementNS("http://www.w3.org/2000/svg","text");return wt.setAttribute("x","0"),wt.setAttribute("y","0"),Pt&&jt.setAttributes(wt,Pt),wt},jt.createTSpan=function(Pt,wt){var Ft=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ft.textContent=Pt,wt&&jt.setAttributes(Ft,wt),Ft},jt.createImage=function(Pt){var wt=document.createElementNS("http://www.w3.org/2000/svg","image");return Pt&&jt.setAttributes(wt,Pt),wt},jt.createPoint=function(Pt,wt){var Ft=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ft.x=Pt,Ft.y=wt,Ft},jt.createPath=function(Pt,wt){var Ft=document.createElementNS("http://www.w3.org/2000/svg","path");return Ft.setAttribute("d",Pt),wt&&jt.setAttributes(Ft,wt),Ft},jt}(),qt=function(){function jt(){}return jt.addKey=function(Pt){jt.key=Pt},Object.defineProperty(jt,"isLicensed",{get:function(){return!!jt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(jt.key)},enumerable:!1,configurable:!0}),jt}(),Ee=function(){function jt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return jt.prototype.rasterize=function(Pt,wt,Ft){var Wt=this;return new Promise(function(At){var Jt=Ft!==void 0?Ft:document.createElement("canvas");Pt===null&&(Wt.markersOnly=!0,Wt.naturalSize=!1);var Xe=document.createElementNS("http://www.w3.org/2000/svg","svg");Xe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Xe.setAttribute("width",wt.width.baseVal.valueAsString),Xe.setAttribute("height",wt.height.baseVal.valueAsString),Xe.setAttribute("viewBox","0 0 "+wt.viewBox.baseVal.width.toString()+" "+wt.viewBox.baseVal.height.toString()),Xe.innerHTML=wt.innerHTML,Wt.naturalSize===!0?(Xe.width.baseVal.value=Pt.naturalWidth,Xe.height.baseVal.value=Pt.naturalHeight):Wt.width!==void 0&&Wt.height!==void 0&&(Xe.width.baseVal.value=Wt.width,Xe.height.baseVal.value=Wt.height),Jt.width=Xe.width.baseVal.value,Jt.height=Xe.height.baseVal.value;var zn=Xe.outerHTML,En=Jt.getContext("2d");Wt.markersOnly!==!0&&En.drawImage(Pt,0,0,Jt.width,Jt.height);var Ve=window.URL,wn=new Image(Jt.width,Jt.height);wn.setAttribute("crossOrigin","anonymous");var De=new Blob([zn],{type:"image/svg+xml"}),An=Ve.createObjectURL(De);wn.onload=function(){En.drawImage(wn,0,0),Ve.revokeObjectURL(An);var Hn=Jt.toDataURL(Wt.imageType,Wt.imageQuality);At(Hn)},wn.src=An})},jt}(),me=function(){},ve=function(){function jt(Pt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Pt+"_"}return Object.defineProperty(jt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(jt.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(jt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),jt.prototype.addClass=function(Pt){return this.styleSheet===void 0&&this.addStyleSheet(),Pt.name=""+this.classNamePrefix+Pt.localName,this.classes.push(Pt),this.styleSheet.sheet.insertRule("."+Pt.name+" {"+Pt.style+"}",this.styleSheet.sheet.cssRules.length),Pt},jt.prototype.addRule=function(Pt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Pt),this.styleSheet.sheet.insertRule(Pt.selector+" {"+Pt.style+"}",this.styleSheet.sheet.cssRules.length)},jt.prototype.addStyleSheet=function(){var Pt;this.styleSheet=document.createElement("style"),((Pt=this.styleSheetRoot)!==null&&Pt!==void 0?Pt:document.head).appendChild(this.styleSheet),this.addRule(new Ze("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ze("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Ze("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Ce("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Ce("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},jt.prototype.removeStyleSheet=function(){var Pt;this.styleSheet&&(((Pt=this.styleSheetRoot)!==null&&Pt!==void 0?Pt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},jt}(),Ze=function(jt,Pt){this.selector=jt,this.style=Pt},Ce=function(jt,Pt){this.localName=jt,this.style=Pt},nn=function(){function jt(Pt,wt,Ft,Wt,At){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Pt,this.displayMode=wt,this.markerItems=Ft,this.uiStyleSettings=Wt,this.styles=At,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return jt.prototype.show=function(Pt){var wt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Pt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ft=document.createElement("div");Ft.className=this.toolbarBlockStyleClass.name,Ft.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ft),this.addActionButton(Ft,'<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(Ft,'<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(Ft,'<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(Ft,'<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(Ft,'<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(Ft,'<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(Ft,'<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(Ft,'<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(At){var Jt=document.createElement("div");Jt.className=""+wt.toolbarButtonStyleClass.name,Jt.setAttribute("data-type-name",At.typeName),Jt.innerHTML=At.icon,Jt.addEventListener("click",function(){wt.markerToolbarButtonClicked(Jt,At)}),wt.buttons.push(Jt),wt.markerButtons.push(Jt)}),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 Wt=document.createElement("div");Wt.className=this.toolbarBlockStyleClass.name,Wt.style.whiteSpace="nowrap",Wt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Wt),this.addActionButton(Wt,'<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(Wt,'<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()},jt.prototype.addButtonClickListener=function(Pt){this.buttonClickListeners.push(Pt)},jt.prototype.removeButtonClickListener=function(Pt){this.buttonClickListeners.indexOf(Pt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Pt),1)},jt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},jt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Pt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var wt=0;wt<this.markerButtons.length;wt++)wt<Pt||wt===Pt&&this.markerButtons.length-1===Pt?this.markerButtonBlock.appendChild(this.markerButtons[wt]):(wt===Pt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[wt]))}},jt.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")},jt.prototype.resetButtonStyles=function(){var Pt=this;this.buttons.forEach(function(wt){wt.className=wt.className.replace(Pt.uiStyleSettings.toolbarButtonStyleColorsClassName?Pt.uiStyleSettings.toolbarButtonStyleColorsClassName:Pt.toolbarButtonStyleColorsClass.name,"").trim(),wt.className=wt.className.replace(Pt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Pt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Pt.toolbarActiveButtonStyleColorsClass.name,"").trim(),wt.className+=" "+(Pt.uiStyleSettings.toolbarButtonStyleColorsClassName?Pt.uiStyleSettings.toolbarButtonStyleColorsClassName:Pt.toolbarButtonStyleColorsClass.name)})},jt.prototype.addActionButton=function(Pt,wt,Ft){var Wt=this,At=document.createElement("div");switch(At.className=""+this.toolbarButtonStyleClass.name,At.innerHTML=wt,At.setAttribute("data-action",Ft),At.addEventListener("click",function(){Wt.actionToolbarButtonClicked(At,Ft)}),Ft){case"select":At.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":At.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":At.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":At.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":At.style.fill=this.uiStyleSettings.closeButtonColor}Pt.appendChild(At),this.buttons.push(At)},jt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ce("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 Ce("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ce("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ce("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 Ce("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Pt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ce("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Pt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Pt)+`px;
padding: `+Pt+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ce("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ce("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ze("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Ze("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},jt.prototype.markerToolbarButtonClicked=function(Pt,wt){this.setActiveButton(Pt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ft){return Ft("marker",wt)}),this.markerButtonOverflowBlock.style.display="none"},jt.prototype.actionToolbarButtonClicked=function(Pt,wt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ft){return Ft("action",wt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},jt.prototype.setActiveButton=function(Pt){this.resetButtonStyles(),Pt.className=Pt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Pt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},jt.prototype.setActiveMarkerButton=function(Pt){var wt=this.markerButtons.find(function(Ft){return Ft.getAttribute("data-type-name")===Pt});wt&&this.setActiveButton(wt)},jt.prototype.setCurrentMarker=function(Pt){var wt=this;this.currentMarker=Pt,this.buttons.filter(function(Ft){return/delete|notes/.test(Ft.getAttribute("data-action"))}).forEach(function(Ft){wt.currentMarker===void 0?(Ft.style.fillOpacity="0.4",Ft.style.pointerEvents="none"):(Ft.style.fillOpacity="1",Ft.style.pointerEvents="all")})},jt}(),Tt=function(){function jt(Pt,wt,Ft,Wt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Pt,this.displayMode=wt,this.uiStyleSettings=Ft,this.styles=Wt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return jt.prototype.addStyles=function(){var Pt;this.toolboxStyleClass=this.styles.addClass(new Ce("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 Ce("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var wt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ce("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ce("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ce("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 Ce("toolbox-panel-row_colors",`
background-color: `+((Pt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Pt!==void 0?Pt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ce("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*wt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*wt)+`px;
padding: `+wt+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ce("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ce("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Ze("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ze("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},jt.prototype.show=function(Pt){var wt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Pt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((wt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&wt!==void 0?wt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},jt.prototype.setPanelButtons=function(Pt){var wt,Ft,Wt=this;this.panels=Pt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((wt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&wt!==void 0?wt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ft=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ft!==void 0?Ft:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(At){var Jt;At.uiStyleSettings=Wt.uiStyleSettings;var Xe=document.createElement("div");Xe.className=Wt.toolboxButtonStyleClass.name+" "+((Jt=Wt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Jt!==void 0?Jt:Wt.toolboxButtonStyleColorsClass.name),Xe.innerHTML=At.icon,Xe.title=At.title,Xe.addEventListener("click",function(){Wt.panelButtonClick(At)}),Wt.panelButtons.push(Xe),Wt.buttonRow.appendChild(Xe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},jt.prototype.panelButtonClick=function(Pt){var wt=this,Ft=-1;if(Pt!==this.activePanel){Ft=this.panels.indexOf(Pt),this.panelRow.innerHTML="";var Wt=Pt.getUi();Wt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Wt),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=Pt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){wt.displayMode==="inline"?wt.panelRow.style.display="none":wt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(At,Jt){var Xe,zn;At.className=wt.toolboxButtonStyleClass.name+" "+(Jt===Ft?""+((Xe=wt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Xe!==void 0?Xe:wt.toolboxActiveButtonStyleColorsClass.name):""+((zn=wt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&zn!==void 0?zn:wt.toolboxButtonStyleColorsClass.name))})},jt}(),nt=function(jt,Pt){this.title=jt,this.icon=Pt},et=function(jt){function Pt(wt,Ft,Wt,At){var Jt=jt.call(this,wt,At||'<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 Jt.colors=[],Jt.addTransparent=!1,Jt.colorBoxes=[],Jt.colors=Ft,Jt.currentColor=Wt,Jt.setCurrentColor=Jt.setCurrentColor.bind(Jt),Jt.getColorBox=Jt.getColorBox.bind(Jt),Jt}return le(Pt,jt),Pt.prototype.getUi=function(){var wt=this,Ft=document.createElement("div");return Ft.style.overflow="hidden",Ft.style.whiteSpace="nowrap",this.colors.forEach(function(Wt){var At=wt.getColorBox(Wt);Ft.appendChild(At),wt.colorBoxes.push(At)}),Ft},Pt.prototype.getColorBox=function(wt){var Ft=this,Wt=this.uiStyleSettings.toolbarHeight/4,At=this.uiStyleSettings.toolbarHeight-Wt,Jt=document.createElement("div");Jt.style.display="inline-block",Jt.style.boxSizing="content-box",Jt.style.width=At-2+"px",Jt.style.height=At-2+"px",Jt.style.padding="1px",Jt.style.marginRight="2px",Jt.style.marginBottom="2px",Jt.style.borderWidth="2px",Jt.style.borderStyle="solid",Jt.style.borderRadius=(At+2)/2+"px",Jt.style.borderColor=wt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Jt.addEventListener("click",function(){Ft.setCurrentColor(wt,Jt)});var Xe=document.createElement("div");return Xe.style.display="inline-block",Xe.style.width=At-2+"px",Xe.style.height=At-2+"px",Xe.style.backgroundColor=wt,Xe.style.borderRadius=At/2+"px",wt==="transparent"&&(Xe.style.fill=this.uiStyleSettings.toolboxAccentColor,Xe.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>`),Jt.appendChild(Xe),Jt},Pt.prototype.setCurrentColor=function(wt,Ft){var Wt=this;this.currentColor=wt,this.colorBoxes.forEach(function(At){At.style.borderColor=At===Ft?Wt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(wt)},Pt}(nt),ht=function(){function jt(Pt,wt,Ft){this._state="new",this._isSelected=!1,this._container=Pt,this._overlayContainer=wt,this.globalSettings=Ft,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(jt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),jt.prototype.ownsTarget=function(Pt){return!1},Object.defineProperty(jt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),jt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},jt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},jt.prototype.pointerDown=function(Pt,wt){},jt.prototype.dblClick=function(Pt,wt){},jt.prototype.manipulate=function(Pt){},jt.prototype.pointerUp=function(Pt){this.stateChanged()},jt.prototype.dispose=function(){},jt.prototype.addMarkerVisualToContainer=function(Pt){this.container.childNodes.length>0?this.container.insertBefore(Pt,this.container.childNodes[0]):this.container.appendChild(Pt)},jt.prototype.getState=function(){return{typeName:jt.typeName,state:this.state,notes:this.notes}},jt.prototype.restoreState=function(Pt){this._state=Pt.state,this.notes=Pt.notes},jt.prototype.scale=function(Pt,wt){},jt.prototype.colorChanged=function(Pt){this.onColorChanged&&this.onColorChanged(Pt),this.stateChanged()},jt.prototype.fillColorChanged=function(Pt){this.onFillColorChanged&&this.onFillColorChanged(Pt),this.stateChanged()},jt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Pt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Pt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Pt)&&this.onStateChanged(this)}},jt.typeName="MarkerBase",jt}(),lt=function(){function jt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return jt.prototype.findGripByVisual=function(Pt){return this.topLeft.ownsTarget(Pt)?this.topLeft:this.topCenter.ownsTarget(Pt)?this.topCenter:this.topRight.ownsTarget(Pt)?this.topRight:this.centerLeft.ownsTarget(Pt)?this.centerLeft:this.centerRight.ownsTarget(Pt)?this.centerRight:this.bottomLeft.ownsTarget(Pt)?this.bottomLeft:this.bottomCenter.ownsTarget(Pt)?this.bottomCenter:this.bottomRight.ownsTarget(Pt)?this.bottomRight:void 0},jt}(),pt=function(){function jt(){this.GRIP_SIZE=10,this.visual=Ot.createGroup(),this.visual.appendChild(Ot.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ot.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return jt.prototype.ownsTarget=function(Pt){return Pt===this.visual||Pt===this.visual.childNodes[0]||Pt===this.visual.childNodes[1]},jt}(),vt=function(){function jt(){}return jt.toITransformMatrix=function(Pt){return{a:Pt.a,b:Pt.b,c:Pt.c,d:Pt.d,e:Pt.e,f:Pt.f}},jt.toSVGMatrix=function(Pt,wt){return Pt.a=wt.a,Pt.b=wt.b,Pt.c=wt.c,Pt.d=wt.d,Pt.e=wt.e,Pt.f=wt.f,Pt},jt}(),St=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.left=0,At.top=0,At.width=0,At.height=0,At.defaultSize={x:50,y:20},At.offsetX=0,At.offsetY=0,At.rotationAngle=0,At.CB_DISTANCE=10,At._suppressMarkerCreateEvent=!1,At.container.transform.baseVal.appendItem(Ot.createTransform()),At.setupControlBox(),At}return le(Pt,jt),Object.defineProperty(Pt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"visual",{get:function(){return this._visual},set:function(wt){this._visual=wt;var Ft=Ot.createTransform();this._visual.transform.baseVal.appendItem(Ft)},enumerable:!1,configurable:!0}),Pt.prototype.ownsTarget=function(wt){return!!jt.prototype.ownsTarget.call(this,wt)||!!(this.controlGrips.findGripByVisual(wt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(wt))},Pt.prototype.pointerDown=function(wt,Ft){jt.prototype.pointerDown.call(this,wt,Ft),this.state==="new"&&(this.left=wt.x,this.top=wt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Wt=this.unrotatePoint(wt);if(this.manipulationStartX=Wt.x,this.manipulationStartY=Wt.y,this.offsetX=Wt.x-this.left,this.offsetY=Wt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ft),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ft)){this.activeGrip=this.rotatorGrip;var At=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=At.x-this.width/2,this.top=At.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Jt=this.container.transform.baseVal.getItem(0);Jt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Jt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Pt.prototype.pointerUp=function(wt){var Ft=this.state;jt.prototype.pointerUp.call(this,wt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(wt),this._state="select",Ft==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Pt.prototype.moveVisual=function(wt){this.visual.style.transform="translate("+wt.x+"px, "+wt.y+"px)"},Pt.prototype.manipulate=function(wt){var Ft=this.unrotatePoint(wt);this.state==="creating"?this.resize(wt):this.state==="move"?(this.left=this.manipulationStartLeft+(Ft.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ft.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ft):this.state==="rotate"&&this.rotate(wt)},Pt.prototype.resize=function(wt){var Ft=this.manipulationStartLeft,Wt=this.manipulationStartWidth,At=this.manipulationStartTop,Jt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ft=this.manipulationStartLeft+wt.x-this.manipulationStartX,Wt=this.manipulationStartWidth+this.manipulationStartLeft-Ft;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Wt=this.manipulationStartWidth+wt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:At=this.manipulationStartTop+wt.y-this.manipulationStartY,Jt=this.manipulationStartHeight+this.manipulationStartTop-At;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Jt=this.manipulationStartHeight+wt.y-this.manipulationStartY}Wt>=0?(this.left=Ft,this.width=Wt):(this.left=Ft+Wt,this.width=-Wt),Jt>=0?(this.top=At,this.height=Jt):(this.top=At+Jt,this.height=-Jt),this.setSize()},Pt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Pt.prototype.rotate=function(wt){if(Math.abs(wt.x-this.centerX)>.1){var Ft=Math.sign(wt.x-this.centerX);this.rotationAngle=180*Math.atan((wt.y-this.centerY)/(wt.x-this.centerX))/Math.PI+90*Ft,this.applyRotation()}},Pt.prototype.applyRotation=function(){var wt=this.container.transform.baseVal.getItem(0);wt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(wt,0)},Pt.prototype.rotatePoint=function(wt){if(this.rotationAngle===0)return wt;var Ft=this.container.getCTM(),Wt=Ot.createPoint(wt.x,wt.y);return{x:(Wt=Wt.matrixTransform(Ft)).x,y:Wt.y}},Pt.prototype.unrotatePoint=function(wt){if(this.rotationAngle===0)return wt;var Ft=this.container.getCTM();Ft=Ft.inverse();var Wt=Ot.createPoint(wt.x,wt.y);return{x:(Wt=Wt.matrixTransform(Ft)).x,y:Wt.y}},Pt.prototype.select=function(){jt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Pt.prototype.deselect=function(){jt.prototype.deselect.call(this),this.controlBox.style.display="none"},Pt.prototype.setupControlBox=function(){this.controlBox=Ot.createGroup();var wt=Ot.createTransform();wt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(wt),this.container.appendChild(this.controlBox),this.controlRect=Ot.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=Ot.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"},Pt.prototype.adjustControlBox=function(){var wt=this.controlBox.transform.baseVal.getItem(0);wt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(wt,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()},Pt.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()},Pt.prototype.createGrip=function(){var wt=new pt;return wt.visual.transform.baseVal.appendItem(Ot.createTransform()),this.controlBox.appendChild(wt.visual),wt},Pt.prototype.positionGrips=function(){var wt=this.controlGrips.topLeft.GRIP_SIZE,Ft=-wt/2,Wt=Ft,At=(this.width+this.CB_DISTANCE)/2-wt/2,Jt=(this.height+this.CB_DISTANCE)/2-wt/2,Xe=this.height+this.CB_DISTANCE-wt/2,zn=this.width+this.CB_DISTANCE-wt/2;this.positionGrip(this.controlGrips.topLeft.visual,Ft,Wt),this.positionGrip(this.controlGrips.topCenter.visual,At,Wt),this.positionGrip(this.controlGrips.topRight.visual,zn,Wt),this.positionGrip(this.controlGrips.centerLeft.visual,Ft,Jt),this.positionGrip(this.controlGrips.centerRight.visual,zn,Jt),this.positionGrip(this.controlGrips.bottomLeft.visual,Ft,Xe),this.positionGrip(this.controlGrips.bottomCenter.visual,At,Xe),this.positionGrip(this.controlGrips.bottomRight.visual,zn,Xe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,At,Wt-3*this.CB_DISTANCE)},Pt.prototype.positionGrip=function(wt,Ft,Wt){var At=wt.transform.baseVal.getItem(0);At.setTranslate(Ft,Wt),wt.transform.baseVal.replaceItem(At,0)},Pt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Pt.prototype.showControlBox=function(){this.controlBox.style.display=""},Pt.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)},jt.prototype.getState.call(this))},Pt.prototype.restoreState=function(wt){jt.prototype.restoreState.call(this,wt);var Ft=wt;this.left=Ft.left,this.top=Ft.top,this.width=Ft.width,this.height=Ft.height,this.rotationAngle=Ft.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(vt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ft.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(vt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ft.containerTransformMatrix))},Pt.prototype.scale=function(wt,Ft){jt.prototype.scale.call(this,wt,Ft);var Wt=this.rotatePoint({x:this.left,y:this.top}),At=this.unrotatePoint({x:Wt.x*wt,y:Wt.y*Ft});this.left=At.x,this.top=At.y,this.width=this.width*wt,this.height=this.height*Ft,this.adjustControlBox()},Pt}(ht),Lt=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.opacity=1,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.createVisual=At.createVisual.bind(At),At}return le(Pt,jt),Pt.prototype.ownsTarget=function(wt){return!(!jt.prototype.ownsTarget.call(this,wt)&&wt!==this.visual)},Pt.prototype.createVisual=function(){this.visual=Ot.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)},Pt.prototype.pointerDown=function(wt,Ft){jt.prototype.pointerDown.call(this,wt,Ft),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},Pt.prototype.manipulate=function(wt){jt.prototype.manipulate.call(this,wt)},Pt.prototype.resize=function(wt){jt.prototype.resize.call(this,wt),this.setSize()},Pt.prototype.setSize=function(){jt.prototype.setSize.call(this),Ot.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Pt.prototype.pointerUp=function(wt){jt.prototype.pointerUp.call(this,wt),this.setSize()},Pt.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.visual&&Ot.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(wt),this.stateChanged()},Pt.prototype.setFillColor=function(wt){this.fillColor=wt,this.visual&&Ot.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Pt.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.visual&&Ot.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pt.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.visual&&Ot.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Pt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},jt.prototype.getState.call(this))},Pt.prototype.restoreState=function(wt){var Ft=wt;this.fillColor=Ft.fillColor,this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.opacity=Ft.opacity,this.createVisual(),jt.prototype.restoreState.call(this,wt),this.setSize()},Pt.prototype.scale=function(wt,Ft){jt.prototype.scale.call(this,wt,Ft),this.setSize()},Pt.title="Rectangle marker",Pt}(St),It=function(jt){function Pt(wt,Ft,Wt,At){var Jt=jt.call(this,wt,At||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Jt.widths=[],Jt.widthBoxes=[],Jt.widths=Ft,Jt.currentWidth=Wt,Jt.setCurrentWidth=Jt.setCurrentWidth.bind(Jt),Jt}return le(Pt,jt),Pt.prototype.getUi=function(){var wt=this,Ft=document.createElement("div");return Ft.style.display="flex",Ft.style.overflow="hidden",Ft.style.flexGrow="2",this.widths.forEach(function(Wt){var At=document.createElement("div");At.style.display="flex",At.style.flexGrow="2",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderColor=Wt===wt.currentWidth?wt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){wt.setCurrentWidth(Wt,At)}),Ft.appendChild(At);var Jt=document.createElement("div");Jt.innerText=Wt.toString(),Jt.style.marginRight="5px",At.appendChild(Jt);var Xe=document.createElement("div");Xe.style.minHeight="20px",Xe.style.flexGrow="2",Xe.style.display="flex",Xe.style.alignItems="center";var zn=document.createElement("hr");zn.style.minWidth="20px",zn.style.border="0px",zn.style.borderTop=Wt+"px solid "+wt.uiStyleSettings.toolboxColor,zn.style.flexGrow="2",Xe.appendChild(zn),At.appendChild(Xe),wt.widthBoxes.push(At)}),Ft},Pt.prototype.setCurrentWidth=function(wt,Ft){var Wt=this;this.currentWidth=wt,this.widthBoxes.forEach(function(At){At.style.borderColor=At===Ft?Wt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Pt}(nt),Yt=function(jt){function Pt(wt,Ft,Wt,At){var Jt=jt.call(this,wt,At||'<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 Jt.styles=[],Jt.styleBoxes=[],Jt.styles=Ft,Jt.currentStyle=Wt,Jt.setCurrentStyle=Jt.setCurrentStyle.bind(Jt),Jt}return le(Pt,jt),Pt.prototype.getUi=function(){var wt=this,Ft=document.createElement("div");return Ft.style.display="flex",Ft.style.overflow="hidden",Ft.style.flexGrow="2",this.styles.forEach(function(Wt){var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.overflow="hidden",At.style.maxWidth=100/wt.styles.length-5+"%",At.style.borderColor=Wt===wt.currentStyle?wt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){wt.setCurrentStyle(Wt,At)}),Ft.appendChild(At);var Jt=document.createElement("div");Jt.style.minHeight="20px",Jt.style.flexGrow="2",Jt.style.overflow="hidden";var Xe=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+wt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Wt!==""?'stroke-dasharray="'+Wt+'"':"")+` />
</svg>`;Jt.innerHTML=Xe,At.appendChild(Jt),wt.styleBoxes.push(At)}),Ft},Pt.prototype.setCurrentStyle=function(wt,Ft){var Wt=this;this.currentStyle=wt,this.styleBoxes.forEach(function(At){At.style.borderColor=At===Ft?Wt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Pt}(nt),ie=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.strokeColor=Wt.defaultColor,At.strokeWidth=Wt.defaultStrokeWidth,At.strokeDasharray=Wt.defaultStrokeDasharray,At.strokePanel=new et("Line color",Wt.defaultColorSet,Wt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new It("Line width",Wt.defaultStrokeWidths,Wt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Yt("Line style",Wt.defaultStrokeDasharrays,Wt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return le(Pt,jt),Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var wt=jt.prototype.getState.call(this);return wt.typeName=Pt.typeName,wt},Pt.typeName="FrameMarker",Pt.title="Frame marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Pt}(Lt),re=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"},Qt=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.x1=0,At.y1=0,At.x2=0,At.y2=0,At.defaultLength=50,At.manipulationStartX=0,At.manipulationStartY=0,At.manipulationStartX1=0,At.manipulationStartY1=0,At.manipulationStartX2=0,At.manipulationStartY2=0,At.setupControlBox(),At}return le(Pt,jt),Pt.prototype.ownsTarget=function(wt){return!!jt.prototype.ownsTarget.call(this,wt)||!(!this.grip1.ownsTarget(wt)&&!this.grip2.ownsTarget(wt))},Pt.prototype.pointerDown=function(wt,Ft){jt.prototype.pointerDown.call(this,wt,Ft),this.manipulationStartX=wt.x,this.manipulationStartY=wt.y,this.state==="new"&&(this.x1=wt.x,this.y1=wt.y,this.x2=wt.x,this.y2=wt.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(Ft)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ft)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Pt.prototype.pointerUp=function(wt){var Ft=this.state;jt.prototype.pointerUp.call(this,wt),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(wt),this._state="select",Ft==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Pt.prototype.adjustVisual=function(){},Pt.prototype.manipulate=function(wt){this.state==="creating"?this.resize(wt):this.state==="move"?(this.x1=this.manipulationStartX1+wt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+wt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+wt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+wt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(wt)},Pt.prototype.resize=function(wt){switch(this.activeGrip){case this.grip1:this.x1=wt.x,this.y1=wt.y;break;case this.grip2:case void 0:this.x2=wt.x,this.y2=wt.y}this.adjustVisual(),this.adjustControlBox()},Pt.prototype.select=function(){jt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Pt.prototype.deselect=function(){jt.prototype.deselect.call(this),this.controlBox.style.display="none"},Pt.prototype.setupControlBox=function(){this.controlBox=Ot.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Pt.prototype.adjustControlBox=function(){this.positionGrips()},Pt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Pt.prototype.createGrip=function(){var wt=new pt;return wt.visual.transform.baseVal.appendItem(Ot.createTransform()),this.controlBox.appendChild(wt.visual),wt},Pt.prototype.positionGrips=function(){var wt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-wt/2,this.y1-wt/2),this.positionGrip(this.grip2.visual,this.x2-wt/2,this.y2-wt/2)},Pt.prototype.positionGrip=function(wt,Ft,Wt){var At=wt.transform.baseVal.getItem(0);At.setTranslate(Ft,Wt),wt.transform.baseVal.replaceItem(At,0)},Pt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},jt.prototype.getState.call(this))},Pt.prototype.restoreState=function(wt){jt.prototype.restoreState.call(this,wt);var Ft=wt;this.x1=Ft.x1,this.y1=Ft.y1,this.x2=Ft.x2,this.y2=Ft.y2},Pt.prototype.scale=function(wt,Ft){jt.prototype.scale.call(this,wt,Ft),this.x1=this.x1*wt,this.y1=this.y1*Ft,this.x2=this.x2*wt,this.y2=this.y2*Ft,this.adjustVisual(),this.adjustControlBox()},Pt}(ht),xe=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.setStrokeColor=At.setStrokeColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.strokeColor=Wt.defaultColor,At.strokeWidth=Wt.defaultStrokeWidth,At.strokeDasharray=Wt.defaultStrokeDasharray,At.strokePanel=new et("Line color",Wt.defaultColorSet,Wt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new It("Line width",Wt.defaultStrokeWidths,Wt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Yt("Line style",Wt.defaultStrokeDasharrays,Wt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return le(Pt,jt),Pt.prototype.ownsTarget=function(wt){return!(!jt.prototype.ownsTarget.call(this,wt)&&wt!==this.visual&&wt!==this.selectorLine&&wt!==this.visibleLine)},Pt.prototype.createVisual=function(){this.visual=Ot.createGroup(),this.selectorLine=Ot.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ot.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)},Pt.prototype.pointerDown=function(wt,Ft){jt.prototype.pointerDown.call(this,wt,Ft),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Pt.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()),Ot.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ot.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ot.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Pt.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.adjustVisual(),this.colorChanged(wt)},Pt.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.adjustVisual()},Pt.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var wt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},jt.prototype.getState.call(this));return wt.typeName=Pt.typeName,wt},Pt.prototype.restoreState=function(wt){jt.prototype.restoreState.call(this,wt);var Ft=wt;this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.createVisual(),this.adjustVisual()},Pt.typeName="LineMarker",Pt.title="Line marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Pt}(Qt),he=function(jt){function Pt(wt,Ft,Wt,At){var Jt=jt.call(this,wt,At||'<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 Jt.fonts=[],Jt.fontBoxes=[],Jt.fonts=Ft,Jt.currentFont=Wt,Jt.setCurrentFont=Jt.setCurrentFont.bind(Jt),Jt}return le(Pt,jt),Pt.prototype.getUi=function(){var wt=this,Ft=document.createElement("div");return Ft.style.overflow="hidden",Ft.style.flexGrow="2",this.fonts.forEach(function(Wt){var At=document.createElement("div");At.style.display="inline-block",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.overflow="hidden",At.style.maxWidth=100/wt.fonts.length-5+"%",At.style.borderColor=Wt===wt.currentFont?wt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){wt.setCurrentFont(Wt,At)}),Ft.appendChild(At);var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.minHeight="20px",Jt.style.flexGrow="2",Jt.style.fontFamily=Wt,Jt.style.overflow="hidden";var Xe=document.createElement("div");Xe.style.whiteSpace="nowrap",Xe.style.overflow="hidden",Xe.style.textOverflow="ellipsis",Xe.innerHTML="The quick brown fox jumps over the lazy dog",Jt.appendChild(Xe),At.appendChild(Jt),wt.fontBoxes.push(At)}),Ft},Pt.prototype.setCurrentFont=function(wt,Ft){var Wt=this;this.currentFont=wt,this.fontBoxes.forEach(function(At){At.style.borderColor=At===Ft?Wt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Pt}(nt),Le=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.color="transparent",At.padding=5,At.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",At.text=At.DEFAULT_TEXT,At.isMoved=!1,At.color=Wt.defaultColor,At.fontFamily=Wt.defaultFontFamily,At.defaultSize={x:100,y:30},At.setColor=At.setColor.bind(At),At.setFont=At.setFont.bind(At),At.renderText=At.renderText.bind(At),At.sizeText=At.sizeText.bind(At),At.textEditDivClicked=At.textEditDivClicked.bind(At),At.showTextEditor=At.showTextEditor.bind(At),At.setSize=At.setSize.bind(At),At.positionTextEditor=At.positionTextEditor.bind(At),At.colorPanel=new et("Color",Wt.defaultColorSet,Wt.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.fontFamilyPanel=new he("Font",Wt.defaultFontFamilies,Wt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At}return le(Pt,jt),Pt.prototype.ownsTarget=function(wt){if(jt.prototype.ownsTarget.call(this,wt)||wt===this.visual||wt===this.textElement||wt===this.bgRectangle)return!0;var Ft=!1;return this.textElement.childNodes.forEach(function(Wt){Wt===wt&&(Ft=!0)}),Ft},Pt.prototype.createVisual=function(){this.visual=Ot.createGroup(),this.bgRectangle=Ot.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ot.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ot.createTransform()),this.textElement.transform.baseVal.appendItem(Ot.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Pt.prototype.pointerDown=function(wt,Ft){jt.prototype.pointerDown.call(this,wt,Ft),this.isMoved=!1,this.pointerDownPoint=wt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},Pt.prototype.renderText=function(){var wt=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(Ft){wt.textElement.appendChild(Ot.createTSpan(Ft.trim()===""?" ":Ft.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Pt.prototype.getTextScale=function(){var wt=this.textElement.getBBox(),Ft=1;if(wt.width>0&&wt.height>0){var Wt=(1*this.width-this.width*this.padding*2/100)/wt.width,At=(1*this.height-this.height*this.padding*2/100)/wt.height;Ft=Math.min(Wt,At)}return Ft},Pt.prototype.getTextPosition=function(wt){var Ft=this.textElement.getBBox(),Wt=0,At=0;return Ft.width>0&&Ft.height>0&&(Wt=(this.width-Ft.width*wt)/2,At=this.height/2-Ft.height*wt/2),{x:Wt,y:At}},Pt.prototype.sizeText=function(){var wt=this.textElement.getBBox(),Ft=this.getTextScale(),Wt=this.getTextPosition(Ft);Wt.y-=wt.y*Ft,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Wt.x+"px, "+Wt.y+"px) scale("+Ft+", "+Ft+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Wt.x,Wt.y),this.textElement.transform.baseVal.getItem(1).setScale(Ft,Ft))},Pt.prototype.manipulate=function(wt){jt.prototype.manipulate.call(this,wt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(wt.x-this.pointerDownPoint.x)>5||Math.abs(wt.y-this.pointerDownPoint.y)>5)},Pt.prototype.resize=function(wt){jt.prototype.resize.call(this,wt),this.isMoved=!0,this.setSize(),this.sizeText()},Pt.prototype.setSize=function(){jt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ot.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ot.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Pt.prototype.pointerUp=function(wt){var Ft=this.state;Ft==="creating"&&(this._suppressMarkerCreateEvent=!0),jt.prototype.pointerUp.call(this,wt),this.setSize(),(Ft==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Pt.prototype.showTextEditor=function(){var wt=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(Ft){Ft.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ft=Number.parseFloat(wt.textEditor.style.fontSize);wt.textEditor.clientWidth>=Number.parseInt(wt.textEditor.style.maxWidth)&&Ft>.9;)Ft-=.1,wt.textEditor.style.fontSize=Math.max(Ft,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ft){Ft.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ft){if(Ft.clipboardData){var Wt=Ft.clipboardData.getData("text"),At=window.getSelection();if(!At.rangeCount)return!1;At.deleteFromDocument(),At.getRangeAt(0).insertNode(document.createTextNode(Wt)),Ft.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){wt.textEditDivClicked(wt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Pt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var wt=this.getTextScale(),Ft=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Wt=this.textElement.getBBox(),At={x:Wt.width*wt,y:Wt.height*wt};Ft.x-=At.x/2,Ft.y-=At.y/2,this.textEditor.style.top=Ft.y+"px",this.textEditor.style.left=Ft.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ft.x+"px",this.textEditor.style.fontSize=Math.max(16*wt,12)+"px",this.textElement.style.display="none"}},Pt.prototype.textEditDivClicked=function(wt){this.text=wt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Pt.prototype.select=function(){jt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Pt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),jt.prototype.deselect.call(this)},Pt.prototype.dblClick=function(wt,Ft){jt.prototype.dblClick.call(this,wt,Ft),this.showTextEditor()},Pt.prototype.setColor=function(wt){this.textElement&&Ot.setAttributes(this.textElement,[["fill",wt]]),this.color=wt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(wt)},Pt.prototype.setFont=function(wt){this.textElement&&Ot.setAttributes(this.textElement,[["font-family",wt]]),this.fontFamily=wt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Pt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Pt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var wt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},jt.prototype.getState.call(this));return wt.typeName=Pt.typeName,wt},Pt.prototype.restoreState=function(wt){var Ft=wt;this.color=Ft.color,this.fontFamily=Ft.fontFamily,this.padding=Ft.padding,this.text=Ft.text,this.createVisual(),jt.prototype.restoreState.call(this,wt),this.setSize()},Pt.prototype.scale=function(wt,Ft){jt.prototype.scale.call(this,wt,Ft),this.setSize(),this.sizeText(),this.positionTextEditor()},Pt.typeName="TextMarker",Pt.title="Text marker",Pt.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>',Pt}(St),Qe=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.color="transparent",At.lineWidth=3,At.drawing=!1,At.pixelRatio=1,At.color=Wt.defaultColor,At.lineWidth=Wt.defaultStrokeWidth,At.pixelRatio=Wt.freehandPixelRatio,At.setColor=At.setColor.bind(At),At.addCanvas=At.addCanvas.bind(At),At.finishCreation=At.finishCreation.bind(At),At.setLineWidth=At.setLineWidth.bind(At),At.colorPanel=new et("Color",Wt.defaultColorSet,Wt.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.lineWidthPanel=new It("Line width",Wt.defaultStrokeWidths,Wt.defaultStrokeWidth),At.lineWidthPanel.onWidthChanged=At.setLineWidth,At}return le(Pt,jt),Pt.prototype.ownsTarget=function(wt){return!(!jt.prototype.ownsTarget.call(this,wt)&&wt!==this.visual&&wt!==this.drawingImage)},Pt.prototype.createVisual=function(){this.visual=Ot.createGroup(),this.drawingImage=Ot.createImage(),this.visual.appendChild(this.drawingImage);var wt=Ot.createTransform();this.visual.transform.baseVal.appendItem(wt),this.addMarkerVisualToContainer(this.visual)},Pt.prototype.pointerDown=function(wt,Ft){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(wt.x,wt.y),this.drawing=!0):jt.prototype.pointerDown.call(this,wt,Ft)},Pt.prototype.manipulate=function(wt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(wt.x,wt.y),this.canvasContext.stroke()):jt.prototype.manipulate.call(this,wt)},Pt.prototype.resize=function(wt){jt.prototype.resize.call(this,wt),Ot.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ot.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Pt.prototype.pointerUp=function(wt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):jt.prototype.pointerUp.call(this,wt)},Pt.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)},Pt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),jt.prototype.select.call(this)},Pt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),jt.prototype.deselect.call(this)},Pt.prototype.finishCreation=function(){for(var wt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ft=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Wt=Ft[0],At=Ft[1],Jt=Ft[2],Xe=Ft[3],zn=!1,En=0;En<this.canvasElement.height;En++)for(var Ve=0;Ve<this.canvasElement.width;Ve++)wt.data[En*this.canvasElement.width*4+4*Ve+3]>0&&(zn=!0,En<At&&(At=En),Ve<Wt&&(Wt=Ve),En>Xe&&(Xe=En),Ve>Jt&&(Jt=Ve));if(zn){this.left=Wt/this.pixelRatio,this.top=At/this.pixelRatio,this.width=(Jt-Wt)/this.pixelRatio,this.height=(Xe-At)/this.pixelRatio;var wn=document.createElement("canvas");wn.width=Jt-Wt,wn.height=Xe-At,wn.getContext("2d").putImageData(this.canvasContext.getImageData(Wt,At,Jt-Wt,Xe-At),0,0),this.drawingImgUrl=wn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Pt.prototype.setDrawingImage=function(){Ot.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ot.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Pt.prototype.setColor=function(wt){this.color=wt,this.colorChanged(wt)},Pt.prototype.setLineWidth=function(wt){this.lineWidth=wt},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var wt=Object.assign({drawingImgUrl:this.drawingImgUrl},jt.prototype.getState.call(this));return wt.typeName=Pt.typeName,wt},Pt.prototype.restoreState=function(wt){this.createVisual(),jt.prototype.restoreState.call(this,wt),this.drawingImgUrl=wt.drawingImgUrl,this.setDrawingImage()},Pt.prototype.scale=function(wt,Ft){jt.prototype.scale.call(this,wt,Ft),this.setDrawingImage()},Pt.typeName="FreehandMarker",Pt.title="Freehand marker",Pt.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>',Pt}(St),Fe=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Wt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return At.typeBoxes=[],At.currentType=Ft,At.setCurrentType=At.setCurrentType.bind(At),At}return le(Pt,jt),Pt.prototype.getUi=function(){var wt=this,Ft=document.createElement("div");Ft.style.display="flex",Ft.style.overflow="hidden",Ft.style.flexGrow="2";for(var Wt=function(Xe){var zn="both";switch(Xe){case 0:zn="both";break;case 1:zn="start";break;case 2:zn="end";break;case 3:zn="none"}var En=document.createElement("div");if(En.style.display="flex",En.style.flexGrow="2",En.style.alignItems="center",En.style.justifyContent="space-between",En.style.padding="5px",En.style.borderWidth="2px",En.style.borderStyle="solid",En.style.borderColor=zn===At.currentType?At.uiStyleSettings.toolboxAccentColor:"transparent",En.addEventListener("click",function(){wt.setCurrentType(zn,En)}),Ft.appendChild(En),zn==="both"||zn==="start"){var Ve=document.createElement("div");Ve.style.display="flex",Ve.style.alignItems="center",Ve.style.minHeight="20px",Ve.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="`+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ve.style.marginLeft="5px",En.appendChild(Ve)}var wn=document.createElement("div");wn.style.display="flex",wn.style.alignItems="center",wn.style.minHeight="20px",wn.style.flexGrow="2";var De=document.createElement("hr");if(De.style.minWidth="20px",De.style.border="0px",De.style.borderTop="3px solid "+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee"),De.style.flexGrow="2",wn.appendChild(De),En.appendChild(wn),zn==="both"||zn==="end"){var An=document.createElement("div");An.style.display="flex",An.style.alignItems="center",An.style.minHeight="20px",An.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="`+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,An.style.marginRight="5px",En.appendChild(An)}At.typeBoxes.push(En)},At=this,Jt=0;Jt<4;Jt++)Wt(Jt);return Ft},Pt.prototype.setCurrentType=function(wt,Ft){var Wt=this;this.currentType=wt,this.typeBoxes.forEach(function(At){At.style.borderColor=At===Ft?Wt.uiStyleSettings!==void 0?Wt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Pt}(nt),Gn=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.arrowType="end",At.arrowBaseHeight=10,At.arrowBaseWidth=10,At.getArrowPoints=At.getArrowPoints.bind(At),At.setArrowType=At.setArrowType.bind(At),At.arrowTypePanel=new Fe("Arrow type","end"),At.arrowTypePanel.onArrowTypeChanged=At.setArrowType,At}return le(Pt,jt),Pt.prototype.ownsTarget=function(wt){return!(!jt.prototype.ownsTarget.call(this,wt)&&wt!==this.arrow1&&wt!==this.arrow2)},Pt.prototype.getArrowPoints=function(wt,Ft){var Wt=this.arrowBaseWidth+2*this.strokeWidth,At=this.arrowBaseHeight+2*this.strokeWidth;return wt-Wt/2+","+(Ft+At/2)+" "+wt+","+(Ft-At/2)+" "+(wt+Wt/2)+","+(Ft+At/2)},Pt.prototype.createTips=function(){this.arrow1=Ot.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ot.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ot.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ot.createTransform()),this.visual.appendChild(this.arrow2)},Pt.prototype.pointerDown=function(wt,Ft){jt.prototype.pointerDown.call(this,wt,Ft),this.state==="creating"&&this.createTips()},Pt.prototype.adjustVisual=function(){if(jt.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",Ot.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ot.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var wt=0;Math.abs(this.x1-this.x2)>.1&&(wt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ft=this.arrow1.transform.baseVal.getItem(0);Ft.setRotate(wt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ft,0);var Wt=this.arrow2.transform.baseVal.getItem(0);Wt.setRotate(wt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Wt,0)}},Pt.prototype.setArrowType=function(wt){this.arrowType=wt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var wt=Object.assign({arrowType:this.arrowType},jt.prototype.getState.call(this));return wt.typeName=Pt.typeName,wt},Pt.prototype.restoreState=function(wt){jt.prototype.restoreState.call(this,wt);var Ft=wt;this.arrowType=Ft.arrowType,this.createTips(),this.adjustVisual()},Pt.typeName="ArrowMarker",Pt.title="Arrow marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Pt}(xe),Jn=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.fillColor=Wt.defaultFillColor,At.strokeWidth=0,At.fillPanel=new et("Color",Wt.defaultColorSet,Wt.defaultFillColor),At.fillPanel.onColorChanged=At.setFillColor,At}return le(Pt,jt),Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var wt=jt.prototype.getState.call(this);return wt.typeName=Pt.typeName,wt},Pt.typeName="CoverMarker",Pt.title="Cover marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Pt}(Lt),Ke=function(jt){function Pt(wt,Ft,Wt,At){var Jt=jt.call(this,wt,At||'<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 Jt.opacities=[],Jt.opacityBoxes=[],Jt.opacities=Ft,Jt.currentOpacity=Wt,Jt.setCurrentOpacity=Jt.setCurrentOpacity.bind(Jt),Jt}return le(Pt,jt),Pt.prototype.getUi=function(){var wt=this,Ft=document.createElement("div");return Ft.style.display="flex",Ft.style.overflow="hidden",Ft.style.flexGrow="2",Ft.style.justifyContent="space-between",this.opacities.forEach(function(Wt){var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.justifyContent="center",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderColor=Wt===wt.currentOpacity?wt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){wt.setCurrentOpacity(Wt,At)}),Ft.appendChild(At);var Jt=document.createElement("div");Jt.innerText=100*Wt+"%",At.appendChild(Jt),wt.opacityBoxes.push(At)}),Ft},Pt.prototype.setCurrentOpacity=function(wt,Ft){var Wt=this;this.currentOpacity=wt,this.opacityBoxes.forEach(function(At){At.style.borderColor=At===Ft?Wt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Pt}(nt),Dn=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.setOpacity=At.setOpacity.bind(At),At.fillColor=Wt.defaultHighlightColor,At.strokeWidth=0,At.opacity=Wt.defaultHighlightOpacity,At.fillPanel=new et("Color",Wt.defaultColorSet,At.fillColor),At.fillPanel.onColorChanged=At.setFillColor,At.opacityPanel=new Ke("Opacity",Wt.defaultOpacitySteps,At.opacity),At.opacityPanel.onOpacityChanged=At.setOpacity,At}return le(Pt,jt),Pt.prototype.setOpacity=function(wt){this.opacity=wt,this.visual&&Ot.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var wt=jt.prototype.getState.call(this);return wt.typeName=Pt.typeName,wt},Pt.typeName="HighlightMarker",Pt.title="Highlight marker",Pt.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>',Pt}(Jn),$t='<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>',zt='<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>',Gt=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.bgColor="transparent",At.tipPosition={x:0,y:0},At.tipBase1Position={x:0,y:0},At.tipBase2Position={x:0,y:0},At.tipMoving=!1,At.color=Wt.defaultStrokeColor,At.bgColor=Wt.defaultFillColor,At.fontFamily=Wt.defaultFontFamily,At.defaultSize={x:100,y:30},At.setBgColor=At.setBgColor.bind(At),At.getTipPoints=At.getTipPoints.bind(At),At.positionTip=At.positionTip.bind(At),At.setTipPoints=At.setTipPoints.bind(At),At.colorPanel=new et("Text color",Wt.defaultColorSet,At.color,$t),At.colorPanel.onColorChanged=At.setColor,At.bgColorPanel=new et("Fill color",Wt.defaultColorSet,At.bgColor,zt),At.bgColorPanel.onColorChanged=At.setBgColor,At.fontFamilyPanel=new he("Font",Wt.defaultFontFamilies,Wt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.tipGrip=new pt,At.tipGrip.visual.transform.baseVal.appendItem(Ot.createTransform()),At.controlBox.appendChild(At.tipGrip.visual),At}return le(Pt,jt),Pt.prototype.ownsTarget=function(wt){return jt.prototype.ownsTarget.call(this,wt)||this.tipGrip.ownsTarget(wt)||this.tip===wt},Pt.prototype.createTip=function(){Ot.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ot.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Pt.prototype.pointerDown=function(wt,Ft){this.state==="new"&&jt.prototype.pointerDown.call(this,wt,Ft),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ft)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):jt.prototype.pointerDown.call(this,wt,Ft)},Pt.prototype.pointerUp=function(wt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,jt.prototype.pointerUp.call(this,wt);else{var Ft=this.state==="creating";jt.prototype.pointerUp.call(this,wt),this.setTipPoints(Ft),this.positionTip()}},Pt.prototype.manipulate=function(wt){if(this.tipMoving){var Ft=this.unrotatePoint(wt);this.tipPosition={x:Ft.x-this.manipulationStartLeft,y:Ft.y-this.manipulationStartTop},this.positionTip()}else jt.prototype.manipulate.call(this,wt)},Pt.prototype.setBgColor=function(wt){this.bgRectangle&&this.tip&&(Ot.setAttributes(this.bgRectangle,[["fill",wt]]),Ot.setAttributes(this.tip,[["fill",wt]])),this.bgColor=wt,this.fillColorChanged(wt)},Pt.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},Pt.prototype.setTipPoints=function(wt){wt===void 0&&(wt=!1);var Ft=Math.min(this.height/2,15),Wt=this.height/5;wt&&(this.tipPosition={x:Ft+Wt/2,y:this.height+20});var At=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?At<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Wt=this.width/5,Ft=Math.min(this.width/2,15),this.tipBase1Position={x:Ft,y:0},this.tipBase2Position={x:Ft+Wt,y:0}):(this.tipBase1Position={x:0,y:Ft},this.tipBase2Position={x:0,y:Ft+Wt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?At<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Wt=this.width/5,Ft=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ft-Wt,y:0},this.tipBase2Position={x:this.width-Ft,y:0}):(this.tipBase1Position={x:this.width,y:Ft},this.tipBase2Position={x:this.width,y:Ft+Wt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?At<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Wt=this.width/5,Ft=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ft-Wt,y:this.height},this.tipBase2Position={x:this.width-Ft,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ft-Wt},this.tipBase2Position={x:this.width,y:this.height-Ft}):At<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Wt=this.width/5,Ft=Math.min(this.width/2,15),this.tipBase1Position={x:Ft,y:this.height},this.tipBase2Position={x:Ft+Wt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ft},this.tipBase2Position={x:0,y:this.height-Ft-Wt})},Pt.prototype.resize=function(wt){jt.prototype.resize.call(this,wt),this.positionTip()},Pt.prototype.positionTip=function(){Ot.setAttributes(this.tip,[["points",this.getTipPoints()]]);var wt=this.tipGrip.visual.transform.baseVal.getItem(0);wt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(wt,0)},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Pt.prototype.select=function(){this.positionTip(),jt.prototype.select.call(this)},Pt.prototype.getState=function(){var wt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},jt.prototype.getState.call(this));return wt.typeName=Pt.typeName,wt},Pt.prototype.restoreState=function(wt){var Ft=wt;this.bgColor=Ft.bgColor,this.tipPosition=Ft.tipPosition,jt.prototype.restoreState.call(this,wt),this.createTip(),this.setTipPoints()},Pt.prototype.scale=function(wt,Ft){jt.prototype.scale.call(this,wt,Ft),this.tipPosition={x:this.tipPosition.x*wt,y:this.tipPosition.y*Ft},this.positionTip()},Pt.typeName="CalloutMarker",Pt.title="Callout marker",Pt.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>',Pt}(Le),_e=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.opacity=1,At.strokeColor=Wt.defaultColor,At.strokeWidth=Wt.defaultStrokeWidth,At.strokeDasharray=Wt.defaultStrokeDasharray,At.fillColor=Wt.defaultFillColor,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.setOpacity=At.setOpacity.bind(At),At.createVisual=At.createVisual.bind(At),At.strokePanel=new et("Line color",Se(Wt.defaultColorSet,["transparent"]),Wt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new et("Fill color",Se(Wt.defaultColorSet,["transparent"]),At.fillColor,zt),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new It("Line width",Wt.defaultStrokeWidths,Wt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Yt("Line style",Wt.defaultStrokeDasharrays,Wt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.opacityPanel=new Ke("Opacity",Wt.defaultOpacitySteps,At.opacity),At.opacityPanel.onOpacityChanged=At.setOpacity,At}return le(Pt,jt),Pt.prototype.ownsTarget=function(wt){return!(!jt.prototype.ownsTarget.call(this,wt)&&wt!==this.visual)},Pt.prototype.createVisual=function(){this.visual=Ot.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)},Pt.prototype.pointerDown=function(wt,Ft){jt.prototype.pointerDown.call(this,wt,Ft),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},Pt.prototype.manipulate=function(wt){jt.prototype.manipulate.call(this,wt)},Pt.prototype.resize=function(wt){jt.prototype.resize.call(this,wt),this.setSize()},Pt.prototype.setSize=function(){jt.prototype.setSize.call(this),Ot.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Pt.prototype.pointerUp=function(wt){jt.prototype.pointerUp.call(this,wt),this.setSize()},Pt.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.visual&&Ot.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(wt),this.stateChanged()},Pt.prototype.setFillColor=function(wt){this.fillColor=wt,this.visual&&Ot.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(wt),this.stateChanged()},Pt.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.visual&&Ot.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pt.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.visual&&Ot.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Pt.prototype.setOpacity=function(wt){this.opacity=wt,this.visual&&Ot.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var wt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},jt.prototype.getState.call(this));return wt.typeName=Pt.typeName,wt},Pt.prototype.restoreState=function(wt){var Ft=wt;this.fillColor=Ft.fillColor,this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.opacity=Ft.opacity,this.createVisual(),jt.prototype.restoreState.call(this,wt),this.setSize()},Pt.prototype.scale=function(wt,Ft){jt.prototype.scale.call(this,wt,Ft),this.setSize()},Pt.typeName="EllipseMarker",Pt.title="Ellipse marker",Pt.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>',Pt}(St),Sn=function(jt){function Pt(wt,Ft,Wt){return jt.call(this,wt,Ft,Wt)||this}return le(Pt,jt),Object.defineProperty(Pt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Pt.prototype.ownsTarget=function(wt){return!(!jt.prototype.ownsTarget.call(this,wt)&&wt!==this.tip1&&wt!==this.tip2)},Pt.prototype.createTips=function(){this.tip1=Ot.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(Ot.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ot.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(Ot.createTransform()),this.visual.appendChild(this.tip2)},Pt.prototype.pointerDown=function(wt,Ft){jt.prototype.pointerDown.call(this,wt,Ft),this.state==="creating"&&this.createTips()},Pt.prototype.adjustVisual=function(){if(jt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ot.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()]]),Ot.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 wt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ft=this.tip1.transform.baseVal.getItem(0);Ft.setRotate(wt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ft,0);var Wt=this.tip2.transform.baseVal.getItem(0);Wt.setRotate(wt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Wt,0)}},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var wt=jt.prototype.getState.call(this);return wt.typeName=Pt.typeName,wt},Pt.prototype.restoreState=function(wt){jt.prototype.restoreState.call(this,wt),this.createTips(),this.adjustVisual()},Pt.typeName="MeasurementMarker",Pt.title="Measurement marker",Pt.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>',Pt}(xe),we=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.strokePanel.colors=Wt.defaultColorSet,At.fillColor="transparent",At}return le(Pt,jt),Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var wt=jt.prototype.getState.call(this);return wt.typeName=Pt.typeName,wt},Pt.typeName="EllipseFrameMarker",Pt.title="Ellipse frame marker",Pt.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>',Pt}(_e),rn=function(){function jt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(jt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),jt.prototype.addUndoStep=function(Pt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Pt)||(this.undoStack.push(Pt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Pt)&&this.redoStack.splice(0,this.redoStack.length))},jt.prototype.replaceLastUndoStep=function(Pt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Pt)},jt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},jt.prototype.undo=function(){if(this.undoStack.length>1){var Pt=this.undoStack.pop();return Pt!==void 0&&this.redoStack.push(Pt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},jt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},jt}(),an=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.curveX=0,At.curveY=0,At.manipulationStartCurveX=0,At.manipulationStartCurveY=0,At.setStrokeColor=At.setStrokeColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.positionGrips=At.positionGrips.bind(At),At.addControlGrips=At.addControlGrips.bind(At),At.adjustVisual=At.adjustVisual.bind(At),At.setupControlBox=At.setupControlBox.bind(At),At.resize=At.resize.bind(At),At.strokeColor=Wt.defaultColor,At.strokeWidth=Wt.defaultStrokeWidth,At.strokeDasharray=Wt.defaultStrokeDasharray,At.strokePanel=new et("Line color",Wt.defaultColorSet,Wt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new It("Line width",Wt.defaultStrokeWidths,Wt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Yt("Line style",Wt.defaultStrokeDasharrays,Wt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return le(Pt,jt),Pt.prototype.ownsTarget=function(wt){return!(!jt.prototype.ownsTarget.call(this,wt)&&wt!==this.visual&&wt!==this.selectorCurve&&wt!==this.visibleCurve&&!this.curveGrip.ownsTarget(wt))},Pt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Pt.prototype.createVisual=function(){this.visual=Ot.createGroup(),this.selectorCurve=Ot.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ot.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)},Pt.prototype.pointerDown=function(wt,Ft){jt.prototype.pointerDown.call(this,wt,Ft),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=wt.x,this.curveY=wt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ft)&&(this.activeGrip=this.curveGrip,this._state="resize")},Pt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ot.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ot.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ot.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Pt.prototype.setupControlBox=function(){jt.prototype.setupControlBox.call(this),this.curveControlLine1=Ot.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ot.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)},Pt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,jt.prototype.addControlGrips.call(this)},Pt.prototype.positionGrips=function(){jt.prototype.positionGrips.call(this);var wt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-wt/2,this.curveY-wt/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()))},Pt.prototype.manipulate=function(wt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+wt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+wt.y-this.manipulationStartY),jt.prototype.manipulate.call(this,wt)},Pt.prototype.resize=function(wt){this.activeGrip===this.curveGrip&&(this.curveX=wt.x,this.curveY=wt.y),jt.prototype.resize.call(this,wt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Pt.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.adjustVisual(),this.colorChanged(wt)},Pt.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.adjustVisual()},Pt.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.adjustVisual()},Pt.prototype.scale=function(wt,Ft){this.curveX=this.curveX*wt,this.curveY=this.curveY*Ft,jt.prototype.scale.call(this,wt,Ft)},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var wt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},jt.prototype.getState.call(this));return wt.typeName=Pt.typeName,wt},Pt.prototype.restoreState=function(wt){jt.prototype.restoreState.call(this,wt);var Ft=wt;this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.curveX=Ft.curveX,this.curveY=Ft.curveY,this.createVisual(),this.adjustVisual()},Pt.typeName="CurveMarker",Pt.title="Curve marker",Pt.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>',Pt}(Qt),Wn=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,Ft,Wt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.textColor="transparent",At.fontSize="1rem",At.isMoved=!1,At.captionText="Caption",At.PADDING=5,At.captionBoxWidth=0,At.captionBoxHeight=0,At.strokeColor=Wt.defaultColor,At.strokeWidth=Wt.defaultStrokeWidth,At.strokeDasharray=Wt.defaultStrokeDasharray,At.fillColor=Wt.defaultFillColor,At.textColor=Wt.defaultStrokeColor,At.fontFamily=Wt.defaultFontFamily,At.fontSize=Wt.defaultCaptionFontSize,At.captionText=Wt.defaultCaptionText,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.createVisual=At.createVisual.bind(At),At.sizeCaption=At.sizeCaption.bind(At),At.setCaptionText=At.setCaptionText.bind(At),At.showTextEditor=At.showTextEditor.bind(At),At.positionTextEditor=At.positionTextEditor.bind(At),At.finishTextEditing=At.finishTextEditing.bind(At),At.setFont=At.setFont.bind(At),At.setTextColor=At.setTextColor.bind(At),At.strokePanel=new et("Line color",Se(Wt.defaultColorSet,["transparent"]),At.strokeColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new et("Fill color",Se(Wt.defaultColorSet,["transparent"]),At.fillColor,zt),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new It("Line width",Wt.defaultStrokeWidths,Wt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Yt("Line style",Wt.defaultStrokeDasharrays,Wt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.fontFamilyPanel=new he("Font",Wt.defaultFontFamilies,Wt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.textColorPanel=new et("Text color",Wt.defaultColorSet,At.textColor,$t),At.textColorPanel.onColorChanged=At.setTextColor,At}return le(Pt,jt),Pt.prototype.ownsTarget=function(wt){return!(!jt.prototype.ownsTarget.call(this,wt)&&wt!==this.visual&&wt!==this.frame&&wt!==this.captionBg&&wt!==this.captionElement)},Pt.prototype.createVisual=function(){this.visual=Ot.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ot.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ot.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=Ot.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()},Pt.prototype.setCaptionText=function(wt){this.captionText=wt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Pt.prototype.pointerDown=function(wt,Ft){jt.prototype.pointerDown.call(this,wt,Ft),this.isMoved=!1,this.pointerDownPoint=wt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},Pt.prototype.manipulate=function(wt){jt.prototype.manipulate.call(this,wt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(wt.x-this.pointerDownPoint.x)>5||Math.abs(wt.y-this.pointerDownPoint.y)>5)},Pt.prototype.resize=function(wt){jt.prototype.resize.call(this,wt),this.setSize()},Pt.prototype.sizeCaption=function(){var wt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=wt.width+2*this.PADDING,this.captionBoxHeight=wt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ot.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')"]]),Ot.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')"]])},Pt.prototype.showTextEditor=function(){var wt=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(Ft){Ft.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ft){Ft.key==="Enter"&&wt.finishTextEditing(wt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ft){Ft.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){wt.finishTextEditing(wt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){wt.finishTextEditing(wt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Pt.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"))},Pt.prototype.finishTextEditing=function(wt){this.setCaptionText(wt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Pt.prototype.setFont=function(wt){this.captionElement&&Ot.setAttributes(this.captionElement,[["font-family",wt]]),this.fontFamily=wt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Pt.prototype.setTextColor=function(wt){this.captionElement&&Ot.setAttributes(this.captionElement,[["fill",wt]]),this.textColor=wt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Pt.prototype.setSize=function(){jt.prototype.setSize.call(this),Ot.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Pt.prototype.pointerUp=function(wt){jt.prototype.pointerUp.call(this,wt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Pt.prototype.dblClick=function(wt,Ft){jt.prototype.dblClick.call(this,wt,Ft),this.showTextEditor()},Pt.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.frame&&Ot.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(wt),this.stateChanged()},Pt.prototype.setFillColor=function(wt){this.fillColor=wt,this.captionBg&&Ot.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(wt),this.stateChanged()},Pt.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.frame&&Ot.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pt.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.frame&&Ot.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var wt=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},jt.prototype.getState.call(this));return wt.typeName=this.typeName,wt},Pt.prototype.restoreState=function(wt){var Ft=wt;this.fillColor=Ft.fillColor,this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.textColor=Ft.textColor,this.fontFamily=Ft.fontFamily,this.captionText=Ft.captionText,this.fontSize=Ft.fontSize,this.createVisual(),jt.prototype.restoreState.call(this,wt),this.setSize()},Pt.prototype.scale=function(wt,Ft){jt.prototype.scale.call(this,wt,Ft),this.setSize()},Pt.typeName="CaptionFrameMarker",Pt.title="Caption frame marker",Pt.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>',Pt}(St),Ne=function(){function jt(Pt,wt){wt===void 0&&(wt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Pt,this.cancelable=wt}return Object.defineProperty(jt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),jt.prototype.preventDefault=function(){this._defaultPrevented=!0},jt}(),de=function(jt){function Pt(wt,Ft,Wt){var At=jt.call(this,wt,!1)||this;return At.dataUrl=Ft,At.state=Wt,At}return le(Pt,jt),Pt}(Ne),Oe=function(jt){function Pt(wt,Ft,Wt){Wt===void 0&&(Wt=!1);var At=jt.call(this,wt,Wt)||this;return At.marker=Ft,At}return le(Pt,jt),Pt}(Ne),dn=function(){function jt(){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 jt.prototype.addEventListener=function(Pt,wt){this[Pt].push(wt)},jt.prototype.removeEventListener=function(Pt,wt){var Ft=this[Pt].indexOf(wt);Ft>-1&&this[Pt].splice(Ft,1)},jt}(),He=function(){function jt(Pt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new re,this._isOpen=!1,this.undoRedoManager=new rn,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 dn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=jt.instanceCounter++,this.styles=new ve(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Pt,this.targetRoot=document.body,this.width=Pt.clientWidth,this.height=Pt.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(jt.prototype,"ALL_MARKER_TYPES",{get:function(){return[ie,Qe,Gn,Le,we,_e,Dn,Gt,Sn,Jn,xe,an,Wn]},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ie,Qe,Gn,Le,_e,Dn,Gt]},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ie,Qe,Gn,Le,Dn]},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Pt){var wt=this;this._availableMarkerTypes.splice(0),Pt.forEach(function(Ft){if(typeof Ft=="string"){var Wt=wt.ALL_MARKER_TYPES.find(function(At){return At.typeName===Ft});Wt!==void 0&&wt._availableMarkerTypes.push(Wt)}else wt._availableMarkerTypes.push(Ft)})},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Pt){this._zoomLevel=Pt,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(jt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),jt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),qt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},jt.prototype.show=function(){var Pt=this;this.styles.styleSheetRoot===void 0&&me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(wt){return wt(new Ne(Pt))})},jt.prototype.render=function(){return ze(this,void 0,void 0,function(){var Pt;return Ye(this,function(wt){switch(wt.label){case 0:return this.setCurrentMarker(),(Pt=new Ee).naturalSize=this.renderAtNaturalSize,Pt.imageType=this.renderImageType,Pt.imageQuality=this.renderImageQuality,Pt.markersOnly=this.renderMarkersOnly,Pt.width=this.renderWidth,Pt.height=this.renderHeight,[4,Pt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return wt.sent(),[4,Pt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,wt.sent()]}})})},jt.prototype.close=function(Pt){var wt=this;if(Pt===void 0&&(Pt=!1),this.isOpen){var Ft=!1;Pt||this.eventListeners.beforeclose.forEach(function(Wt){var At=new Ne(wt,!0);Wt(At),At.defaultPrevented&&(Ft=!0)}),Ft||(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(Wt){return Wt(new Ne(wt))}),this.detachEvents(),this._isOpen=!1)}},jt.prototype.addMarkersToToolbar=function(){for(var Pt,wt=[],Ft=0;Ft<arguments.length;Ft++)wt[Ft]=arguments[Ft];(Pt=this._availableMarkerTypes).push.apply(Pt,wt)},jt.prototype.addRenderEventListener=function(Pt){this.addEventListener("render",function(wt){Pt(wt.dataUrl,wt.state)})},jt.prototype.removeRenderEventListener=function(Pt){},jt.prototype.addCloseEventListener=function(Pt){this.addEventListener("close",function(){Pt()})},jt.prototype.removeCloseEventListener=function(Pt){},jt.prototype.setupResizeObserver=function(){var Pt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Pt.resize(Pt.target.clientWidth,Pt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Pt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},jt.prototype.onPopupTargetResize=function(){var Pt=1*this.target.clientWidth/this.target.clientHeight,wt=this.editorCanvas.clientWidth/Pt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Pt:this.editorCanvas.clientWidth,Ft=wt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Pt;this.resize(wt,Ft)},jt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},jt.prototype.resize=function(Pt,wt){this._isResizing=!0;var Ft=Pt/this.imageWidth,Wt=wt/this.imageHeight;this.imageWidth=Math.round(Pt),this.imageHeight=Math.round(wt),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(Ft,Wt),this._isResizing=!1},jt.prototype.scaleMarkers=function(Pt,wt){var Ft,Wt=this;this._currentMarker&&this._currentMarker instanceof Le?this._currentMarker.scale(Pt,wt):(Ft=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(At){At!==Wt._currentMarker&&At.scale(Pt,wt)}),Ft!==void 0&&this.setCurrentMarker(Ft)},jt.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"},jt.prototype.setTopLeft=function(){var Pt=this.editingTarget.getBoundingClientRect(),wt=this.editorCanvas.getBoundingClientRect();this.left=Pt.left-wt.left,this.top=Pt.top-wt.top},jt.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)},jt.prototype.addDefs=function(){for(var Pt,wt=[],Ft=0;Ft<arguments.length;Ft++)wt[Ft]=arguments[Ft];this.defs=Ot.createDefs(),this.addDefsToImage(),(Pt=this.defs).append.apply(Pt,wt)},jt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},jt.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)},jt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},jt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},jt.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)},jt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},jt.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)},jt.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 Pt=document.createElement("a");Pt.href="https://markerjs.com/",Pt.target="_blank",Pt.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>',Pt.title="Powered by marker.js",Pt.style.display="grid",Pt.style.alignItems="center",Pt.style.justifyItems="center",Pt.style.padding="3px",Pt.style.width="20px",Pt.style.height="20px",this.logoUI.appendChild(Pt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},jt.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")},jt.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"},jt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},jt.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 Pt=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=Pt+"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 nn(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 Tt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},jt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},jt.prototype.removeMarker=function(Pt){this.markerImage.removeChild(Pt.container),this.markers.indexOf(Pt)>-1&&this.markers.splice(this.markers.indexOf(Pt),1),Pt.dispose()},jt.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())},jt.prototype.toolbarButtonClicked=function(Pt,wt){if(Pt==="marker"&&wt!==void 0)this.createNewMarker(wt);else if(Pt==="action")switch(wt){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()}},jt.prototype.deleteSelectedMarker=function(){var Pt=this;if(this._currentMarker!==void 0){var wt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Wt){var At=new Oe(Pt,Pt._currentMarker,!0);Wt(At),At.defaultPrevented&&(wt=!0)}),!wt){var Ft=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(Wt){return Wt(new Oe(Pt,Ft))})}}},jt.prototype.clear=function(){var Pt=this,wt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Jt){var Xe=new Oe(Pt,void 0,!0);Jt(Xe),Xe.defaultPrevented&&(wt=!0)}),!wt)){this.setCurrentMarker();for(var Ft=function(Jt){var Xe=Wt.markers[Jt];Wt.setCurrentMarker(Wt.markers[Jt]),Wt._currentMarker.dispose(),Wt.markerImage.removeChild(Wt._currentMarker.container),Wt.markers.splice(Wt.markers.indexOf(Wt._currentMarker),1),Wt.eventListeners.markerdelete.forEach(function(zn){return zn(new Oe(Pt,Xe))})},Wt=this,At=this.markers.length-1;At>=0;At--)Ft(At);this.addUndoStep()}},Object.defineProperty(jt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),jt.prototype.showNotesEditor=function(){var Pt;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=(Pt=this._currentMarker.notes)!==null&&Pt!==void 0?Pt:"",this.overlayContainer.appendChild(this.notesArea))},jt.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)},jt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},jt.prototype.addUndoStep=function(){var Pt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var wt=this.getState(),Ft=this.undoRedoManager.getLastUndoStep();if(!Ft||Ft.width===wt.width&&Ft.height===wt.height){var Wt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(wt),Wt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(At){return At(new Ne(Pt))})}else this.undoRedoManager.replaceLastUndoStep(wt),this.eventListeners.statechange.forEach(function(At){return At(new Ne(Pt))})}},jt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},jt.prototype.undoStep=function(){var Pt=this,wt=this.undoRedoManager.undo();wt!==void 0&&(this.restoreState(wt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ft){return Ft(new Ne(Pt))}))},jt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},jt.prototype.redoStep=function(){var Pt=this,wt=this.undoRedoManager.redo();wt!==void 0&&(this.restoreState(wt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ft){return Ft(new Ne(Pt))}))},jt.prototype.stepZoom=function(){var Pt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Pt<this.zoomSteps.length-1?this.zoomSteps[Pt+1]:this.zoomSteps[0]},jt.prototype.panTo=function(Pt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Pt.x,top:this.prevPanPoint.y-Pt.y}),this.prevPanPoint=Pt},jt.prototype.startRenderAndClose=function(){return ze(this,void 0,void 0,function(){var Pt,wt,Ft=this;return Ye(this,function(Wt){switch(Wt.label){case 0:return[4,this.render()];case 1:return Pt=Wt.sent(),wt=this.getState(),this.eventListeners.render.forEach(function(At){return At(new de(Ft,Pt,wt))}),this.close(!0),[2]}})})},jt.prototype.getState=function(Pt){Pt===!0&&this.setCurrentMarker();var wt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ft){return wt.markers.push(Ft.getState())}),wt},jt.prototype.restoreState=function(Pt){var wt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Pt.markers.forEach(function(Ft){var Wt=wt._availableMarkerTypes.find(function(Jt){return Jt.typeName===Ft.typeName});if(Wt!==void 0){var At=wt.addNewMarker(Wt);At.restoreState(Ft),wt.markers.push(At)}}),Pt.width&&Pt.height&&(Pt.width!==this.imageWidth||Pt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Pt.width,this.imageHeight/Pt.height),this.eventListeners.restorestate.forEach(function(Ft){return Ft(new Ne(wt))})},jt.prototype.addNewMarker=function(Pt){var wt=Ot.createGroup();return this.markerImage.appendChild(wt),new Pt(wt,this.overlayContainer,this.settings)},jt.prototype.createNewMarker=function(Pt){var wt,Ft=this;(wt=typeof Pt=="string"?this._availableMarkerTypes.find(function(Wt){return Wt.typeName===Pt}):Pt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(wt),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(wt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Wt){return Wt(new Oe(Ft,Ft._currentMarker))}))},jt.prototype.markerCreated=function(Pt){var wt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Pt),this.setCurrentMarker(Pt),Pt instanceof Qe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Qe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ft){return Ft(new Oe(wt,wt._currentMarker))})},jt.prototype.colorChanged=function(Pt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Pt,this.settings.defaultStrokeColor=Pt)},jt.prototype.fillColorChanged=function(Pt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Pt)},jt.prototype.markerStateChanged=function(Pt){var wt=this;this.eventListeners.markerchange.forEach(function(Ft){return Ft(new Oe(wt,Pt))})},jt.prototype.setCurrentMarker=function(Pt){var wt=this;this._currentMarker!==Pt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ft){return Ft(new Oe(wt,wt._currentMarker))})),this._currentMarker=Pt,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(Ft){return Ft(new Oe(wt,wt._currentMarker))}))},jt.prototype.onPointerDown=function(Pt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Pt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var wt=this.markers.find(function(Ft){return Ft.ownsTarget(Pt.target)});wt!==void 0?(this.setCurrentMarker(wt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Pt.clientX,Pt.clientY),Pt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Pt.clientX,y:Pt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Pt.clientX,Pt.clientY))},jt.prototype.onDblClick=function(Pt){if(this._isFocused||this.focus(),this.mode==="select"){var wt=this.markers.find(function(Ft){return Ft.ownsTarget(Pt.target)});wt!==void 0&&wt!==this._currentMarker&&this.setCurrentMarker(wt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Pt.clientX,Pt.clientY),Pt.target):this.setCurrentMarker()}},jt.prototype.onPointerMove=function(Pt){this.touchPoints!==1&&Pt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Pt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Pt.clientX,Pt.clientY)):this.zoomLevel>1&&this.panTo({x:Pt.clientX,y:Pt.clientY}))},jt.prototype.onPointerUp=function(Pt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Pt.clientX,Pt.clientY)),this.isDragging=!1,this.addUndoStep()},jt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},jt.prototype.onKeyUp=function(Pt){this._currentMarker===void 0||this.notesArea!==void 0||Pt.key!=="Delete"&&Pt.key!=="Backspace"||this.deleteSelectedMarker()},jt.prototype.clientToLocalCoordinates=function(Pt,wt){var Ft=this.markerImage.getBoundingClientRect();return{x:(Pt-Ft.left)/this.zoomLevel,y:(wt-Ft.top)/this.zoomLevel}},jt.prototype.onWindowResize=function(){this.positionUI()},jt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Pt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Pt+"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()},jt.prototype.addLicenseKey=function(Pt){qt.addKey(Pt)},jt.prototype.addEventListener=function(Pt,wt){this.eventListeners.addEventListener(Pt,wt)},jt.prototype.removeEventListener=function(Pt,wt){this.eventListeners.removeEventListener(Pt,wt)},jt.prototype.renderState=function(Pt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Pt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(jt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),jt.prototype.focus=function(){var Pt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(wt){return wt(new Ne(Pt))}))},jt.prototype.blur=function(){var Pt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(wt){return wt(new Ne(Pt))}))},jt.instanceCounter=0,jt}()},13272:function(xn,$n,Dt){"use strict";Dt.d($n,{s:function(){return Bo},default:function(){return no}});function kt(){return kt=Object.assign?Object.assign.bind():function(bt){for(var Nt=1;Nt<arguments.length;Nt++){var Xt=arguments[Nt];for(var ee in Xt)({}).hasOwnProperty.call(Xt,ee)&&(bt[ee]=Xt[ee])}return bt},kt.apply(null,arguments)}function le(bt){"@babel/helpers - typeof";return le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Nt){return typeof Nt}:function(Nt){return Nt&&typeof Symbol=="function"&&Nt.constructor===Symbol&&Nt!==Symbol.prototype?"symbol":typeof Nt},le(bt)}function ze(bt,Nt){if(le(bt)!="object"||!bt)return bt;var Xt=bt[Symbol.toPrimitive];if(Xt!==void 0){var ee=Xt.call(bt,Nt||"default");if(le(ee)!="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Nt==="string"?String:Number)(bt)}function Ye(bt){var Nt=ze(bt,"string");return le(Nt)=="symbol"?Nt:Nt+""}function Se(bt,Nt,Xt){return(Nt=Ye(Nt))in bt?Object.defineProperty(bt,Nt,{value:Xt,enumerable:!0,configurable:!0,writable:!0}):bt[Nt]=Xt,bt}function Ot(bt,Nt){var Xt=Object.keys(bt);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(bt);Nt&&(ee=ee.filter(function(Ae){return Object.getOwnPropertyDescriptor(bt,Ae).enumerable})),Xt.push.apply(Xt,ee)}return Xt}function qt(bt){for(var Nt=1;Nt<arguments.length;Nt++){var Xt=arguments[Nt]!=null?arguments[Nt]:{};Nt%2?Ot(Object(Xt),!0).forEach(function(ee){Se(bt,ee,Xt[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(bt,Object.getOwnPropertyDescriptors(Xt)):Ot(Object(Xt)).forEach(function(ee){Object.defineProperty(bt,ee,Object.getOwnPropertyDescriptor(Xt,ee))})}return bt}function Ee(bt,Nt){(Nt==null||Nt>bt.length)&&(Nt=bt.length);for(var Xt=0,ee=Array(Nt);Xt<Nt;Xt++)ee[Xt]=bt[Xt];return ee}function me(bt){if(Array.isArray(bt))return Ee(bt)}function ve(bt){if(typeof Symbol!="undefined"&&bt[Symbol.iterator]!=null||bt["@@iterator"]!=null)return Array.from(bt)}function Ze(bt,Nt){if(bt){if(typeof bt=="string")return Ee(bt,Nt);var Xt={}.toString.call(bt).slice(8,-1);return Xt==="Object"&&bt.constructor&&(Xt=bt.constructor.name),Xt==="Map"||Xt==="Set"?Array.from(bt):Xt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xt)?Ee(bt,Nt):void 0}}function Ce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nn(bt){return me(bt)||ve(bt)||Ze(bt)||Ce()}function Tt(bt){if(Array.isArray(bt))return bt}function nt(bt,Nt){var Xt=bt==null?null:typeof Symbol!="undefined"&&bt[Symbol.iterator]||bt["@@iterator"];if(Xt!=null){var ee,Ae,Ue,en,kn=[],On=!0,Ln=!1;try{if(Ue=(Xt=Xt.call(bt)).next,Nt===0){if(Object(Xt)!==Xt)return;On=!1}else for(;!(On=(ee=Ue.call(Xt)).done)&&(kn.push(ee.value),kn.length!==Nt);On=!0);}catch(Xn){Ln=!0,Ae=Xn}finally{try{if(!On&&Xt.return!=null&&(en=Xt.return(),Object(en)!==en))return}finally{if(Ln)throw Ae}}return kn}}function et(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ht(bt,Nt){return Tt(bt)||nt(bt,Nt)||Ze(bt,Nt)||et()}function lt(bt,Nt){if(bt==null)return{};var Xt={};for(var ee in bt)if({}.hasOwnProperty.call(bt,ee)){if(Nt.indexOf(ee)!==-1)continue;Xt[ee]=bt[ee]}return Xt}function pt(bt,Nt){if(bt==null)return{};var Xt,ee,Ae=lt(bt,Nt);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(bt);for(ee=0;ee<Ue.length;ee++)Xt=Ue[ee],Nt.indexOf(Xt)===-1&&{}.propertyIsEnumerable.call(bt,Xt)&&(Ae[Xt]=bt[Xt])}return Ae}function vt(){return vt=Object.assign?Object.assign.bind():function(bt){for(var Nt=1;Nt<arguments.length;Nt++){var Xt=arguments[Nt];for(var ee in Xt)Object.prototype.hasOwnProperty.call(Xt,ee)&&(bt[ee]=Xt[ee])}return bt},vt.apply(this,arguments)}function St(bt,Nt){(Nt==null||Nt>bt.length)&&(Nt=bt.length);for(var Xt=0,ee=new Array(Nt);Xt<Nt;Xt++)ee[Xt]=bt[Xt];return ee}function Lt(bt){if(Array.isArray(bt))return St(bt)}function It(bt){if(typeof Symbol!="undefined"&&bt[Symbol.iterator]!=null||bt["@@iterator"]!=null)return Array.from(bt)}function Yt(bt,Nt){if(bt){if(typeof bt=="string")return St(bt,Nt);var Xt=Object.prototype.toString.call(bt).slice(8,-1);if(Xt==="Object"&&bt.constructor&&(Xt=bt.constructor.name),Xt==="Map"||Xt==="Set")return Array.from(bt);if(Xt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xt))return St(bt,Nt)}}function ie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(bt){return Lt(bt)||It(bt)||Yt(bt)||ie()}function Qt(bt){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Nt){return typeof Nt}:function(Nt){return Nt&&typeof Symbol=="function"&&Nt.constructor===Symbol&&Nt!==Symbol.prototype?"symbol":typeof Nt},Qt(bt)}function xe(bt,Nt){if(Qt(bt)!=="object"||bt===null)return bt;var Xt=bt[Symbol.toPrimitive];if(Xt!==void 0){var ee=Xt.call(bt,Nt||"default");if(Qt(ee)!=="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Nt==="string"?String:Number)(bt)}function he(bt){var Nt=xe(bt,"string");return Qt(Nt)==="symbol"?Nt:String(Nt)}function Le(bt,Nt,Xt){return Nt=he(Nt),Nt in bt?Object.defineProperty(bt,Nt,{value:Xt,enumerable:!0,configurable:!0,writable:!0}):bt[Nt]=Xt,bt}function Qe(bt,Nt){var Xt=Object.keys(bt);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(bt);Nt&&(ee=ee.filter(function(Ae){return Object.getOwnPropertyDescriptor(bt,Ae).enumerable})),Xt.push.apply(Xt,ee)}return Xt}function Fe(bt){for(var Nt=1;Nt<arguments.length;Nt++){var Xt=arguments[Nt]!=null?arguments[Nt]:{};Nt%2?Qe(Object(Xt),!0).forEach(function(ee){Le(bt,ee,Xt[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(bt,Object.getOwnPropertyDescriptors(Xt)):Qe(Object(Xt)).forEach(function(ee){Object.defineProperty(bt,ee,Object.getOwnPropertyDescriptor(Xt,ee))})}return bt}function Gn(bt){if(Array.isArray(bt))return bt}function Jn(bt,Nt){var Xt=bt==null?null:typeof Symbol!="undefined"&&bt[Symbol.iterator]||bt["@@iterator"];if(Xt!=null){var ee,Ae,Ue,en,kn=[],On=!0,Ln=!1;try{if(Ue=(Xt=Xt.call(bt)).next,Nt===0){if(Object(Xt)!==Xt)return;On=!1}else for(;!(On=(ee=Ue.call(Xt)).done)&&(kn.push(ee.value),kn.length!==Nt);On=!0);}catch(Xn){Ln=!0,Ae=Xn}finally{try{if(!On&&Xt.return!=null&&(en=Xt.return(),Object(en)!==en))return}finally{if(Ln)throw Ae}}return kn}}function Ke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dn(bt,Nt){return Gn(bt)||Jn(bt,Nt)||Yt(bt,Nt)||Ke()}function $t(bt,Nt){if(bt==null)return{};var Xt={},ee=Object.keys(bt),Ae,Ue;for(Ue=0;Ue<ee.length;Ue++)Ae=ee[Ue],!(Nt.indexOf(Ae)>=0)&&(Xt[Ae]=bt[Ae]);return Xt}function zt(bt,Nt){if(bt==null)return{};var Xt=$t(bt,Nt),ee,Ae;if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(bt);for(Ae=0;Ae<Ue.length;Ae++)ee=Ue[Ae],!(Nt.indexOf(ee)>=0)&&Object.prototype.propertyIsEnumerable.call(bt,ee)&&(Xt[ee]=bt[ee])}return Xt}var Gt=Dt(67294);function _e(bt){var Nt=Gt.useRef();Nt.current=bt;var Xt=Gt.useCallback(function(){for(var ee,Ae=arguments.length,Ue=new Array(Ae),en=0;en<Ae;en++)Ue[en]=arguments[en];return(ee=Nt.current)===null||ee===void 0?void 0:ee.call.apply(ee,[Nt].concat(Ue))},[]);return Xt}function Sn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var we=Sn()?Gt.useLayoutEffect:Gt.useEffect,rn=we,an=function(Nt,Xt){var ee=Gt.useRef(!0);we(function(){if(!ee.current)return Nt()},Xt),we(function(){return ee.current=!1,function(){ee.current=!0}},[])};function Wn(bt){var Nt=Gt.useRef(!1),Xt=Gt.useState(bt),ee=Dn(Xt,2),Ae=ee[0],Ue=ee[1];Gt.useEffect(function(){return Nt.current=!1,function(){Nt.current=!0}},[]);function en(kn,On){On&&Nt.current||Ue(kn)}return[Ae,en]}function Ne(bt){return bt!==void 0}function de(bt,Nt){var Xt=Nt||{},ee=Xt.defaultValue,Ae=Xt.value,Ue=Xt.onChange,en=Xt.postState,kn=Wn(function(){return Ne(Ae)?Ae:Ne(ee)?typeof ee=="function"?ee():ee:typeof bt=="function"?bt():bt}),On=Dn(kn,2),Ln=On[0],Xn=On[1],ni=Ae!==void 0?Ae:Ln,wi=en?en(ni):ni,qn=_e(Ue),Vn=Wn([ni]),hi=Dn(Vn,2),Pi=hi[0],ar=hi[1];an(function(){var qi=Pi[0];Ln!==qi&&qn(Ln,qi)},[Pi]),an(function(){Ne(Ae)||Xn(Ae)},[Ae]);var Pr=_e(function(qi,sr){Xn(qi,sr),ar([ni],sr)});return[wi,Pr]}var Oe={};function dn(bt,Nt){}function He(bt,Nt){}function jt(){Oe={}}function Pt(bt,Nt,Xt){!Nt&&!Oe[Xt]&&(bt(!1,Xt),Oe[Xt]=!0)}function wt(bt,Nt){Pt(dn,bt,Nt)}function Ft(bt,Nt){Pt(He,bt,Nt)}var Wt=wt,At=Dt(94184),Jt=Dt.n(At),Xe=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var bt=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(bt)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(bt==null?void 0:bt.substr(0,4))},zn=Dt(16357);function En(bt,Nt,Xt){var ee=Gt.useRef({});return(!("value"in ee.current)||Xt(ee.current.condition,Nt))&&(ee.current.value=bt(),ee.current.condition=Nt),ee.current.value}function Ve(bt,Nt){typeof bt=="function"?bt(Nt):Qt(bt)==="object"&&bt&&"current"in bt&&(bt.current=Nt)}function wn(){for(var bt=arguments.length,Nt=new Array(bt),Xt=0;Xt<bt;Xt++)Nt[Xt]=arguments[Xt];var ee=Nt.filter(function(Ae){return Ae});return ee.length<=1?ee[0]:function(Ae){Nt.forEach(function(Ue){Ve(Ue,Ae)})}}function De(){for(var bt=arguments.length,Nt=new Array(bt),Xt=0;Xt<bt;Xt++)Nt[Xt]=arguments[Xt];return En(function(){return wn.apply(void 0,Nt)},Nt,function(ee,Ae){return ee.length===Ae.length&&ee.every(function(Ue,en){return Ue===Ae[en]})})}function An(bt){var Nt,Xt,ee=isMemo(bt)?bt.type.type:bt.type;return!(typeof ee=="function"&&!((Nt=ee.prototype)!==null&&Nt!==void 0&&Nt.render)||typeof bt=="function"&&!((Xt=bt.prototype)!==null&&Xt!==void 0&&Xt.render))}var Hn=function(Nt){var Xt=Nt.className,ee=Nt.customizeIcon,Ae=Nt.customizeIconProps,Ue=Nt.children,en=Nt.onMouseDown,kn=Nt.onClick,On=typeof ee=="function"?ee(Ae):ee;return Gt.createElement("span",{className:Xt,onMouseDown:function(Xn){Xn.preventDefault(),en==null||en(Xn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:kn,"aria-hidden":!0},On!==void 0?On:Gt.createElement("span",{className:Jt()(Xt.split(/\s+/).map(function(Ln){return"".concat(Ln,"-icon")}))},Ue))},Si=Hn,Un=function(Nt,Xt,ee,Ae,Ue){var en=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,kn=arguments.length>6?arguments[6]:void 0,On=arguments.length>7?arguments[7]:void 0,Ln=Gt.useMemo(function(){if(Qt(Ae)==="object")return Ae.clearIcon;if(Ue)return Ue},[Ae,Ue]),Xn=Gt.useMemo(function(){return!!(!en&&Ae&&(ee.length||kn)&&!(On==="combobox"&&kn===""))},[Ae,en,ee.length,kn,On]);return{allowClear:Xn,clearIcon:Gt.createElement(Si,{className:"".concat(Nt,"-clear"),onMouseDown:Xt,customizeIcon:Ln},"\xD7")}},Ui=Gt.createContext(null);function Yi(){return Gt.useContext(Ui)}function di(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Nt=Gt.useState(!1),Xt=Dn(Nt,2),ee=Xt[0],Ae=Xt[1],Ue=Gt.useRef(null),en=function(){window.clearTimeout(Ue.current)};Gt.useEffect(function(){return en},[]);var kn=function(Ln,Xn){en(),Ue.current=window.setTimeout(function(){Ae(Ln),Xn&&Xn()},bt)};return[ee,kn,en]}function vi(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Nt=Gt.useRef(null),Xt=Gt.useRef(null);Gt.useEffect(function(){return function(){window.clearTimeout(Xt.current)}},[]);function ee(Ae){(Ae||Nt.current===null)&&(Nt.current=Ae),window.clearTimeout(Xt.current),Xt.current=window.setTimeout(function(){Nt.current=null},bt)}return[function(){return Nt.current},ee]}function br(bt,Nt,Xt,ee){var Ae=Gt.useRef(null);Ae.current={open:Nt,triggerOpen:Xt,customizedTrigger:ee},Gt.useEffect(function(){function Ue(en){var kn;if(!((kn=Ae.current)!==null&&kn!==void 0&&kn.customizedTrigger)){var On=en.target;On.shadowRoot&&en.composed&&(On=en.composedPath()[0]||On),Ae.current.open&&bt().filter(function(Ln){return Ln}).every(function(Ln){return!Ln.contains(On)&&Ln!==On})&&Ae.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ue),function(){return window.removeEventListener("mousedown",Ue)}},[])}var ii={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Nt){var Xt=Nt.keyCode;if(Nt.altKey&&!Nt.ctrlKey||Nt.metaKey||Xt>=ii.F1&&Xt<=ii.F12)return!1;switch(Xt){case ii.ALT:case ii.CAPS_LOCK:case ii.CONTEXT_MENU:case ii.CTRL:case ii.DOWN:case ii.END:case ii.ESC:case ii.HOME:case ii.INSERT:case ii.LEFT:case ii.MAC_FF_META:case ii.META:case ii.NUMLOCK:case ii.NUM_CENTER:case ii.PAGE_DOWN:case ii.PAGE_UP:case ii.PAUSE:case ii.PRINT_SCREEN:case ii.RIGHT:case ii.SHIFT:case ii.UP:case ii.WIN_KEY:case ii.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Nt){if(Nt>=ii.ZERO&&Nt<=ii.NINE||Nt>=ii.NUM_ZERO&&Nt<=ii.NUM_MULTIPLY||Nt>=ii.A&&Nt<=ii.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Nt===0)return!0;switch(Nt){case ii.SPACE:case ii.QUESTION_MARK:case ii.NUM_PLUS:case ii.NUM_MINUS:case ii.NUM_PERIOD:case ii.NUM_DIVISION:case ii.SEMICOLON:case ii.DASH:case ii.EQUALS:case ii.COMMA:case ii.PERIOD:case ii.SLASH:case ii.APOSTROPHE:case ii.SINGLE_QUOTE:case ii.OPEN_SQUARE_BRACKET:case ii.BACKSLASH:case ii.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},mi=ii;function Br(bt){return bt&&![mi.ESC,mi.SHIFT,mi.BACKSPACE,mi.TAB,mi.WIN_KEY,mi.ALT,mi.META,mi.WIN_KEY_RIGHT,mi.CTRL,mi.SEMICOLON,mi.EQUALS,mi.CAPS_LOCK,mi.CONTEXT_MENU,mi.F1,mi.F2,mi.F3,mi.F4,mi.F5,mi.F6,mi.F7,mi.F8,mi.F9,mi.F10,mi.F11,mi.F12].includes(bt)}var Gr=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Li=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,jr="".concat(Gr," ").concat(Li).split(/[\s\n]+/),Lo="aria-",ta="data-";function _o(bt,Nt){return bt.indexOf(Nt)===0}function Io(bt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xt;Nt===!1?Xt={aria:!0,data:!0,attr:!0}:Nt===!0?Xt={aria:!0}:Xt=Fe({},Nt);var ee={};return Object.keys(bt).forEach(function(Ae){(Xt.aria&&(Ae==="role"||_o(Ae,Lo))||Xt.data&&_o(Ae,ta)||Xt.attr&&jr.includes(Ae))&&(ee[Ae]=bt[Ae])}),ee}function ea(){return ea=Object.assign?Object.assign.bind():function(bt){for(var Nt=1;Nt<arguments.length;Nt++){var Xt=arguments[Nt];for(var ee in Xt)Object.prototype.hasOwnProperty.call(Xt,ee)&&(bt[ee]=Xt[ee])}return bt},ea.apply(this,arguments)}function To(bt){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Nt){return typeof Nt}:function(Nt){return Nt&&typeof Symbol=="function"&&Nt.constructor===Symbol&&Nt!==Symbol.prototype?"symbol":typeof Nt},To(bt)}function mr(bt,Nt){if(To(bt)!=="object"||bt===null)return bt;var Xt=bt[Symbol.toPrimitive];if(Xt!==void 0){var ee=Xt.call(bt,Nt||"default");if(To(ee)!=="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Nt==="string"?String:Number)(bt)}function cn(bt){var Nt=mr(bt,"string");return To(Nt)==="symbol"?Nt:String(Nt)}function xt(bt,Nt,Xt){return Nt=cn(Nt),Nt in bt?Object.defineProperty(bt,Nt,{value:Xt,enumerable:!0,configurable:!0,writable:!0}):bt[Nt]=Xt,bt}function In(bt,Nt){var Xt=Object.keys(bt);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(bt);Nt&&(ee=ee.filter(function(Ae){return Object.getOwnPropertyDescriptor(bt,Ae).enumerable})),Xt.push.apply(Xt,ee)}return Xt}function gn(bt){for(var Nt=1;Nt<arguments.length;Nt++){var Xt=arguments[Nt]!=null?arguments[Nt]:{};Nt%2?In(Object(Xt),!0).forEach(function(ee){xt(bt,ee,Xt[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(bt,Object.getOwnPropertyDescriptors(Xt)):In(Object(Xt)).forEach(function(ee){Object.defineProperty(bt,ee,Object.getOwnPropertyDescriptor(Xt,ee))})}return bt}function Fn(bt){if(Array.isArray(bt))return bt}function Nn(bt,Nt){var Xt=bt==null?null:typeof Symbol!="undefined"&&bt[Symbol.iterator]||bt["@@iterator"];if(Xt!=null){var ee,Ae,Ue,en,kn=[],On=!0,Ln=!1;try{if(Ue=(Xt=Xt.call(bt)).next,Nt===0){if(Object(Xt)!==Xt)return;On=!1}else for(;!(On=(ee=Ue.call(Xt)).done)&&(kn.push(ee.value),kn.length!==Nt);On=!0);}catch(Xn){Ln=!0,Ae=Xn}finally{try{if(!On&&Xt.return!=null&&(en=Xt.return(),Object(en)!==en))return}finally{if(Ln)throw Ae}}return kn}}function Rn(bt,Nt){(Nt==null||Nt>bt.length)&&(Nt=bt.length);for(var Xt=0,ee=new Array(Nt);Xt<Nt;Xt++)ee[Xt]=bt[Xt];return ee}function ri(bt,Nt){if(bt){if(typeof bt=="string")return Rn(bt,Nt);var Xt=Object.prototype.toString.call(bt).slice(8,-1);if(Xt==="Object"&&bt.constructor&&(Xt=bt.constructor.name),Xt==="Map"||Xt==="Set")return Array.from(bt);if(Xt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xt))return Rn(bt,Nt)}}function Ii(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ie(bt,Nt){return Fn(bt)||Nn(bt,Nt)||ri(bt,Nt)||Ii()}function Re(bt,Nt){if(bt==null)return{};var Xt={},ee=Object.keys(bt),Ae,Ue;for(Ue=0;Ue<ee.length;Ue++)Ae=ee[Ue],!(Nt.indexOf(Ae)>=0)&&(Xt[Ae]=bt[Ae]);return Xt}function se(bt,Nt){if(bt==null)return{};var Xt=Re(bt,Nt),ee,Ae;if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(bt);for(Ae=0;Ae<Ue.length;Ae++)ee=Ue[Ae],!(Nt.indexOf(ee)>=0)&&Object.prototype.propertyIsEnumerable.call(bt,ee)&&(Xt[ee]=bt[ee])}return Xt}var je=Dt(48555);function ti(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var _n=ti()?Gt.useLayoutEffect:Gt.useEffect,Zn=function(Nt,Xt){var ee=Gt.useRef(!0);_n(function(){return Nt(ee.current)},Xt),_n(function(){return ee.current=!1,function(){ee.current=!0}},[])},Me=function(Nt,Xt){Zn(function(ee){if(!ee)return Nt()},Xt)},un=Zn,xi=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Di=void 0;function Cn(bt,Nt){var Xt=bt.prefixCls,ee=bt.invalidate,Ae=bt.item,Ue=bt.renderItem,en=bt.responsive,kn=bt.responsiveDisabled,On=bt.registerSize,Ln=bt.itemKey,Xn=bt.className,ni=bt.style,wi=bt.children,qn=bt.display,Vn=bt.order,hi=bt.component,Pi=hi===void 0?"div":hi,ar=se(bt,xi),Pr=en&&!qn;function qi(Oi){On(Ln,Oi)}Gt.useEffect(function(){return function(){qi(null)}},[]);var sr=Ue&&Ae!==Di?Ue(Ae):wi,Yr;ee||(Yr={opacity:Pr?0:1,height:Pr?0:Di,overflowY:Pr?"hidden":Di,order:en?Vn:Di,pointerEvents:Pr?"none":Di,position:Pr?"absolute":Di});var li={};Pr&&(li["aria-hidden"]=!0);var dr=Gt.createElement(Pi,ea({className:Jt()(!ee&&Xt,Xn),style:gn(gn({},Yr),ni)},li,ar,{ref:Nt}),sr);return en&&(dr=Gt.createElement(je.Z,{onResize:function(ur){var Or=ur.offsetWidth;qi(Or)},disabled:kn},dr)),dr}var be=Gt.forwardRef(Cn);be.displayName="Item";var fi=be;function Wi(bt){var Nt=Gt.useRef();Nt.current=bt;var Xt=Gt.useCallback(function(){for(var ee,Ae=arguments.length,Ue=new Array(Ae),en=0;en<Ae;en++)Ue[en]=arguments[en];return(ee=Nt.current)===null||ee===void 0?void 0:ee.call.apply(ee,[Nt].concat(Ue))},[]);return Xt}var Er=Dt(73935),fn=function(Nt){return+setTimeout(Nt,16)},bi=function(Nt){return clearTimeout(Nt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(fn=function(Nt){return window.requestAnimationFrame(Nt)},bi=function(Nt){return window.cancelAnimationFrame(Nt)});var Mr=0,na=new Map;function Ao(bt){na.delete(bt)}var Fi=function(Nt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Mr+=1;var ee=Mr;function Ae(Ue){if(Ue===0)Ao(ee),Nt();else{var en=fn(function(){Ae(Ue-1)});na.set(ee,en)}}return Ae(Xt),ee};Fi.cancel=function(bt){var Nt=na.get(bt);return Ao(Nt),bi(Nt)};var Ai=Fi;function zi(bt){if(typeof MessageChannel=="undefined")Ai(bt);else{var Nt=new MessageChannel;Nt.port1.onmessage=function(){return bt()},Nt.port2.postMessage(void 0)}}function Jr(){var bt=Gt.useRef(null),Nt=function(ee){bt.current||(bt.current=[],zi(function(){(0,Er.unstable_batchedUpdates)(function(){bt.current.forEach(function(Ae){Ae()}),bt.current=null})})),bt.current.push(ee)};return Nt}function bo(bt,Nt){var Xt=Gt.useState(Nt),ee=Ie(Xt,2),Ae=ee[0],Ue=ee[1],en=Wi(function(kn){bt(function(){Ue(kn)})});return[Ae,en]}var Yn=Gt.createContext(null),tr=["component"],qs=["className"],ns=["className"],Wa=function(Nt,Xt){var ee=Gt.useContext(Yn);if(!ee){var Ae=Nt.component,Ue=Ae===void 0?"div":Ae,en=se(Nt,tr);return Gt.createElement(Ue,ea({},en,{ref:Xt}))}var kn=ee.className,On=se(ee,qs),Ln=Nt.className,Xn=se(Nt,ns);return Gt.createElement(Yn.Provider,{value:null},Gt.createElement(fi,ea({ref:Xt,className:Jt()(kn,Ln)},On,Xn)))},Te=Gt.forwardRef(Wa);Te.displayName="RawItem";var cr=Te,co=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],_i="responsive",fa="invalidate";function fo(bt){return"+ ".concat(bt.length," ...")}function Co(bt,Nt){var Xt=bt.prefixCls,ee=Xt===void 0?"rc-overflow":Xt,Ae=bt.data,Ue=Ae===void 0?[]:Ae,en=bt.renderItem,kn=bt.renderRawItem,On=bt.itemKey,Ln=bt.itemWidth,Xn=Ln===void 0?10:Ln,ni=bt.ssr,wi=bt.style,qn=bt.className,Vn=bt.maxCount,hi=bt.renderRest,Pi=bt.renderRawRest,ar=bt.suffix,Pr=bt.component,qi=Pr===void 0?"div":Pr,sr=bt.itemComponent,Yr=bt.onVisibleChange,li=se(bt,co),dr=ni==="full",Oi=Jr(),ur=bo(Oi,null),Or=Ie(ur,2),Bi=Or[0],_r=Or[1],Fr=Bi||0,So=bo(Oi,new Map),xr=Ie(So,2),oo=xr[0],ko=xr[1],Ko=bo(Oi,0),Fo=Ie(Ko,2),rr=Fo[0],Wr=Fo[1],Xo=bo(Oi,0),No=Ie(Xo,2),ra=No[0],Jo=No[1],pa=bo(Oi,0),oa=Ie(pa,2),La=oa[0],ys=oa[1],Da=(0,Gt.useState)(null),Ir=Ie(Da,2),Tr=Ir[0],Nr=Ir[1],Ri=(0,Gt.useState)(null),Vi=Ie(Ri,2),Cr=Vi[0],uo=Vi[1],Po=Gt.useMemo(function(){return Cr===null&&dr?Number.MAX_SAFE_INTEGER:Cr||0},[Cr,Bi]),ao=(0,Gt.useState)(!1),Ta=Ie(ao,2),as=Ta[0],da=Ta[1],Ps="".concat(ee,"-item"),Ma=Math.max(rr,ra),za=Vn===_i,Va=Ue.length&&za,Ts=Vn===fa,Xa=Va||typeof Vn=="number"&&Ue.length>Vn,Ja=(0,Gt.useMemo)(function(){var to=Ue;return Va?Bi===null&&dr?to=Ue:to=Ue.slice(0,Math.min(Ue.length,Fr/Xn)):typeof Vn=="number"&&(to=Ue.slice(0,Vn)),to},[Ue,Xn,Bi,Vn,Va]),Aa=(0,Gt.useMemo)(function(){return Va?Ue.slice(Po+1):Ue.slice(Ja.length)},[Ue,Ja,Va,Po]),Ua=(0,Gt.useCallback)(function(to,sa){var ro;return typeof On=="function"?On(to):(ro=On&&(to==null?void 0:to[On]))!==null&&ro!==void 0?ro:sa},[On]),Vs=(0,Gt.useCallback)(en||function(to){return to},[en]);function Js(to,sa,ro){Cr===to&&(sa===void 0||sa===Tr)||(uo(to),ro||(da(to<Ue.length-1),Yr==null||Yr(to)),sa!==void 0&&Nr(sa))}function Ar(to,sa){_r(sa.clientWidth)}function lr(to,sa){ko(function(ro){var Bs=new Map(ro);return sa===null?Bs.delete(to):Bs.set(to,sa),Bs})}function Sr(to,sa){Jo(sa),Wr(ra)}function Ro(to,sa){ys(sa)}function Qa(to){return oo.get(Ua(Ja[to],to))}un(function(){if(Fr&&typeof Ma=="number"&&Ja){var to=La,sa=Ja.length,ro=sa-1;if(!sa){Js(0,null);return}for(var Bs=0;Bs<sa;Bs+=1){var wl=Qa(Bs);if(dr&&(wl=wl||0),wl===void 0){Js(Bs-1,void 0,!0);break}if(to+=wl,ro===0&&to<=Fr||Bs===ro-1&&to+Qa(ro)<=Fr){Js(ro,null);break}else if(to+Ma>Fr){Js(Bs-1,to-wl-La+ra);break}}ar&&Qa(0)+La>Fr&&Nr(null)}},[Fr,oo,ra,La,Ua,Ja]);var Ss=as&&!!Aa.length,rl={};Tr!==null&&Va&&(rl={position:"absolute",left:Tr,top:0});var ye={prefixCls:Ps,responsive:Va,component:sr,invalidate:Ts},xl=kn?function(to,sa){var ro=Ua(to,sa);return Gt.createElement(Yn.Provider,{key:ro,value:gn(gn({},ye),{},{order:sa,item:to,itemKey:ro,registerSize:lr,display:sa<=Po})},kn(to,sa))}:function(to,sa){var ro=Ua(to,sa);return Gt.createElement(fi,ea({},ye,{order:sa,key:ro,item:to,renderItem:Vs,itemKey:ro,registerSize:lr,display:sa<=Po}))},Ms,Nl={order:Ss?Po:Number.MAX_SAFE_INTEGER,className:"".concat(Ps,"-rest"),registerSize:Sr,display:Ss};if(Pi)Pi&&(Ms=Gt.createElement(Yn.Provider,{value:gn(gn({},ye),Nl)},Pi(Aa)));else{var Au=hi||fo;Ms=Gt.createElement(fi,ea({},ye,Nl),typeof Au=="function"?Au(Aa):Au)}var Cs=Gt.createElement(qi,ea({className:Jt()(!Ts&&ee,qn),style:wi,ref:Nt},li),Ja.map(xl),Xa?Ms:null,ar&&Gt.createElement(fi,ea({},ye,{responsive:za,responsiveDisabled:!Va,order:Po,className:"".concat(Ps,"-suffix"),registerSize:Ro,display:!0,style:rl}),ar));return za&&(Cs=Gt.createElement(je.Z,{onResize:Ar,disabled:!Va},Cs)),Cs}var Qr=Gt.forwardRef(Co);Qr.displayName="Overflow",Qr.Item=cr,Qr.RESPONSIVE=_i,Qr.INVALIDATE=fa;var io=Qr,Zo=io,vn=function(Nt,Xt){var ee,Ae=Nt.prefixCls,Ue=Nt.id,en=Nt.inputElement,kn=Nt.disabled,On=Nt.tabIndex,Ln=Nt.autoFocus,Xn=Nt.autoComplete,ni=Nt.editable,wi=Nt.activeDescendantId,qn=Nt.value,Vn=Nt.maxLength,hi=Nt.onKeyDown,Pi=Nt.onMouseDown,ar=Nt.onChange,Pr=Nt.onPaste,qi=Nt.onCompositionStart,sr=Nt.onCompositionEnd,Yr=Nt.onBlur,li=Nt.open,dr=Nt.attrs,Oi=en||Gt.createElement("input",null),ur=Oi,Or=ur.ref,Bi=ur.props,_r=Bi.onKeyDown,Fr=Bi.onChange,So=Bi.onMouseDown,xr=Bi.onCompositionStart,oo=Bi.onCompositionEnd,ko=Bi.onBlur,Ko=Bi.style;return"maxLength"in Oi.props,Oi=Gt.cloneElement(Oi,Fe(Fe(Fe({type:"search"},Bi),{},{id:Ue,ref:wn(Xt,Or),disabled:kn,tabIndex:On,autoComplete:Xn||"off",autoFocus:Ln,className:Jt()("".concat(Ae,"-selection-search-input"),(ee=Oi)===null||ee===void 0||(ee=ee.props)===null||ee===void 0?void 0:ee.className),role:"combobox","aria-expanded":li||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ue,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ue,"_list"),"aria-activedescendant":li?wi:void 0},dr),{},{value:ni?qn:"",maxLength:Vn,readOnly:!ni,unselectable:ni?null:"on",style:Fe(Fe({},Ko),{},{opacity:ni?null:0}),onKeyDown:function(rr){hi(rr),_r&&_r(rr)},onMouseDown:function(rr){Pi(rr),So&&So(rr)},onChange:function(rr){ar(rr),Fr&&Fr(rr)},onCompositionStart:function(rr){qi(rr),xr&&xr(rr)},onCompositionEnd:function(rr){sr(rr),oo&&oo(rr)},onPaste:Pr,onBlur:function(rr){Yr(rr),ko&&ko(rr)}})),Oi},ma=Gt.forwardRef(vn),sn=ma;function lo(bt){return Array.isArray(bt)?bt:bt!==void 0?[bt]:[]}var bs=typeof window!="undefined"&&window.document&&window.document.documentElement,xa=bs;function fl(bt){return bt!=null}function va(bt){return!bt&&bt!==0}function yo(bt){return["string","number"].includes(Qt(bt))}function ya(bt){var Nt=void 0;return bt&&(yo(bt.title)?Nt=bt.title.toString():yo(bt.label)&&(Nt=bt.label.toString())),Nt}function Ys(bt,Nt){xa?Gt.useLayoutEffect(bt,Nt):Gt.useEffect(bt,Nt)}function $o(bt){var Nt;return(Nt=bt.key)!==null&&Nt!==void 0?Nt:bt.value}var ci=function(Nt){Nt.preventDefault(),Nt.stopPropagation()},Zt=function(Nt){var Xt=Nt.id,ee=Nt.prefixCls,Ae=Nt.values,Ue=Nt.open,en=Nt.searchValue,kn=Nt.autoClearSearchValue,On=Nt.inputRef,Ln=Nt.placeholder,Xn=Nt.disabled,ni=Nt.mode,wi=Nt.showSearch,qn=Nt.autoFocus,Vn=Nt.autoComplete,hi=Nt.activeDescendantId,Pi=Nt.tabIndex,ar=Nt.removeIcon,Pr=Nt.maxTagCount,qi=Nt.maxTagTextLength,sr=Nt.maxTagPlaceholder,Yr=sr===void 0?function(Ri){return"+ ".concat(Ri.length," ...")}:sr,li=Nt.tagRender,dr=Nt.onToggleOpen,Oi=Nt.onRemove,ur=Nt.onInputChange,Or=Nt.onInputPaste,Bi=Nt.onInputKeyDown,_r=Nt.onInputMouseDown,Fr=Nt.onInputCompositionStart,So=Nt.onInputCompositionEnd,xr=Nt.onInputBlur,oo=Gt.useRef(null),ko=(0,Gt.useState)(0),Ko=Dn(ko,2),Fo=Ko[0],rr=Ko[1],Wr=(0,Gt.useState)(!1),Xo=Dn(Wr,2),No=Xo[0],ra=Xo[1],Jo="".concat(ee,"-selection"),pa=Ue||ni==="multiple"&&kn===!1||ni==="tags"?en:"",oa=ni==="tags"||ni==="multiple"&&kn===!1||wi&&(Ue||No);Ys(function(){rr(oo.current.scrollWidth)},[pa]);var La=function(Vi,Cr,uo,Po,ao){return Gt.createElement("span",{title:ya(Vi),className:Jt()("".concat(Jo,"-item"),Le({},"".concat(Jo,"-item-disabled"),uo))},Gt.createElement("span",{className:"".concat(Jo,"-item-content")},Cr),Po&&Gt.createElement(Si,{className:"".concat(Jo,"-item-remove"),onMouseDown:ci,onClick:ao,customizeIcon:ar},"\xD7"))},ys=function(Vi,Cr,uo,Po,ao,Ta){var as=function(Ps){ci(Ps),dr(!Ue)};return Gt.createElement("span",{onMouseDown:as},li({label:Cr,value:Vi,disabled:uo,closable:Po,onClose:ao,isMaxTag:!!Ta}))},Da=function(Vi){var Cr=Vi.disabled,uo=Vi.label,Po=Vi.value,ao=!Xn&&!Cr,Ta=uo;if(typeof qi=="number"&&(typeof uo=="string"||typeof uo=="number")){var as=String(Ta);as.length>qi&&(Ta="".concat(as.slice(0,qi),"..."))}var da=function(Ma){Ma&&Ma.stopPropagation(),Oi(Vi)};return typeof li=="function"?ys(Po,Ta,Cr,ao,da):La(Vi,Ta,Cr,ao,da)},Ir=function(Vi){if(!Ae.length)return null;var Cr=typeof Yr=="function"?Yr(Vi):Yr;return typeof li=="function"?ys(void 0,Cr,!1,!1,void 0,!0):La({title:Cr},Cr,!1)},Tr=Gt.createElement("div",{className:"".concat(Jo,"-search"),style:{width:Fo},onFocus:function(){ra(!0)},onBlur:function(){ra(!1)}},Gt.createElement(sn,{ref:On,open:Ue,prefixCls:ee,id:Xt,inputElement:null,disabled:Xn,autoFocus:qn,autoComplete:Vn,editable:oa,activeDescendantId:hi,value:pa,onKeyDown:Bi,onMouseDown:_r,onChange:ur,onPaste:Or,onCompositionStart:Fr,onCompositionEnd:So,onBlur:xr,tabIndex:Pi,attrs:Io(Nt,!0)}),Gt.createElement("span",{ref:oo,className:"".concat(Jo,"-search-mirror"),"aria-hidden":!0},pa,"\xA0")),Nr=Gt.createElement(Zo,{prefixCls:"".concat(Jo,"-overflow"),data:Ae,renderItem:Da,renderRest:Ir,suffix:Tr,itemKey:$o,maxCount:Pr});return Gt.createElement("span",{className:"".concat(Jo,"-wrap")},Nr,!Ae.length&&!pa&&Gt.createElement("span",{className:"".concat(Jo,"-placeholder")},Ln))},ts=Zt,uu=function(Nt){var Xt=Nt.inputElement,ee=Nt.prefixCls,Ae=Nt.id,Ue=Nt.inputRef,en=Nt.disabled,kn=Nt.autoFocus,On=Nt.autoComplete,Ln=Nt.activeDescendantId,Xn=Nt.mode,ni=Nt.open,wi=Nt.values,qn=Nt.placeholder,Vn=Nt.tabIndex,hi=Nt.showSearch,Pi=Nt.searchValue,ar=Nt.activeValue,Pr=Nt.maxLength,qi=Nt.onInputKeyDown,sr=Nt.onInputMouseDown,Yr=Nt.onInputChange,li=Nt.onInputPaste,dr=Nt.onInputCompositionStart,Oi=Nt.onInputCompositionEnd,ur=Nt.onInputBlur,Or=Nt.title,Bi=Gt.useState(!1),_r=Dn(Bi,2),Fr=_r[0],So=_r[1],xr=Xn==="combobox",oo=xr||hi,ko=wi[0],Ko=Pi||"";xr&&ar&&!Fr&&(Ko=ar),Gt.useEffect(function(){xr&&So(!1)},[xr,ar]);var Fo=Xn!=="combobox"&&!ni&&!hi?!1:!!Ko,rr=Or===void 0?ya(ko):Or,Wr=Gt.useMemo(function(){return ko?null:Gt.createElement("span",{className:"".concat(ee,"-selection-placeholder"),style:Fo?{visibility:"hidden"}:void 0},qn)},[ko,Fo,qn,ee]);return Gt.createElement("span",{className:"".concat(ee,"-selection-wrap")},Gt.createElement("span",{className:"".concat(ee,"-selection-search")},Gt.createElement(sn,{ref:Ue,prefixCls:ee,id:Ae,open:ni,inputElement:Xt,disabled:en,autoFocus:kn,autoComplete:On,editable:oo,activeDescendantId:Ln,value:Ko,onKeyDown:qi,onMouseDown:sr,onChange:function(No){So(!0),Yr(No)},onPaste:li,onCompositionStart:dr,onCompositionEnd:Oi,onBlur:ur,tabIndex:Vn,attrs:Io(Nt,!0),maxLength:xr?Pr:void 0})),!xr&&ko?Gt.createElement("span",{className:"".concat(ee,"-selection-item"),title:rr,style:Fo?{visibility:"hidden"}:void 0},ko.label):null,Wr)},hu=uu,Xs=function(Nt,Xt){var ee=(0,Gt.useRef)(null),Ae=(0,Gt.useRef)(!1),Ue=Nt.prefixCls,en=Nt.open,kn=Nt.mode,On=Nt.showSearch,Ln=Nt.tokenWithEnter,Xn=Nt.disabled,ni=Nt.prefix,wi=Nt.autoClearSearchValue,qn=Nt.onSearch,Vn=Nt.onSearchSubmit,hi=Nt.onToggleOpen,Pi=Nt.onInputKeyDown,ar=Nt.onInputBlur,Pr=Nt.domRef;Gt.useImperativeHandle(Xt,function(){return{focus:function(rr){ee.current.focus(rr)},blur:function(){ee.current.blur()}}});var qi=vi(0),sr=Dn(qi,2),Yr=sr[0],li=sr[1],dr=function(rr){var Wr=rr.which,Xo=ee.current instanceof HTMLTextAreaElement;!Xo&&en&&(Wr===mi.UP||Wr===mi.DOWN)&&rr.preventDefault(),Pi&&Pi(rr),Wr===mi.ENTER&&kn==="tags"&&!Ae.current&&!en&&(Vn==null||Vn(rr.target.value)),!(Xo&&!en&&~[mi.UP,mi.DOWN,mi.LEFT,mi.RIGHT].indexOf(Wr))&&Br(Wr)&&hi(!0)},Oi=function(){li(!0)},ur=(0,Gt.useRef)(null),Or=function(rr){qn(rr,!0,Ae.current)!==!1&&hi(!0)},Bi=function(){Ae.current=!0},_r=function(rr){Ae.current=!1,kn!=="combobox"&&Or(rr.target.value)},Fr=function(rr){var Wr=rr.target.value;if(Ln&&ur.current&&/[\r\n]/.test(ur.current)){var Xo=ur.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Wr=Wr.replace(Xo,ur.current)}ur.current=null,Or(Wr)},So=function(rr){var Wr=rr.clipboardData,Xo=Wr==null?void 0:Wr.getData("text");ur.current=Xo||""},xr=function(rr){var Wr=rr.target;if(Wr!==ee.current){var Xo=document.body.style.msTouchAction!==void 0;Xo?setTimeout(function(){ee.current.focus()}):ee.current.focus()}},oo=function(rr){var Wr=Yr();rr.target!==ee.current&&!Wr&&!(kn==="combobox"&&Xn)&&rr.preventDefault(),(kn!=="combobox"&&(!On||!Wr)||!en)&&(en&&wi!==!1&&qn("",!0,!1),hi())},ko={inputRef:ee,onInputKeyDown:dr,onInputMouseDown:Oi,onInputChange:Fr,onInputPaste:So,onInputCompositionStart:Bi,onInputCompositionEnd:_r,onInputBlur:ar},Ko=kn==="multiple"||kn==="tags"?Gt.createElement(ts,vt({},Nt,ko)):Gt.createElement(hu,vt({},Nt,ko));return Gt.createElement("div",{ref:Pr,className:"".concat(Ue,"-selector"),onClick:xr,onMouseDown:oo},ni&&Gt.createElement("div",{className:"".concat(Ue,"-prefix")},ni),Ko)},xu=Gt.forwardRef(Xs),Vl=xu,lh=Dt(98280),wu=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ga=function(Nt){var Xt=Nt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Xt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Xt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Xt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Xt,adjustY:1},htmlRegion:"scroll"}}},Ha=function(Nt,Xt){var ee=Nt.prefixCls,Ae=Nt.disabled,Ue=Nt.visible,en=Nt.children,kn=Nt.popupElement,On=Nt.animation,Ln=Nt.transitionName,Xn=Nt.dropdownStyle,ni=Nt.dropdownClassName,wi=Nt.direction,qn=wi===void 0?"ltr":wi,Vn=Nt.placement,hi=Nt.builtinPlacements,Pi=Nt.dropdownMatchSelectWidth,ar=Nt.dropdownRender,Pr=Nt.dropdownAlign,qi=Nt.getPopupContainer,sr=Nt.empty,Yr=Nt.getTriggerDOMNode,li=Nt.onPopupVisibleChange,dr=Nt.onPopupMouseEnter,Oi=zt(Nt,wu),ur="".concat(ee,"-dropdown"),Or=kn;ar&&(Or=ar(kn));var Bi=Gt.useMemo(function(){return hi||ga(Pi)},[hi,Pi]),_r=On?"".concat(ur,"-").concat(On):Ln,Fr=typeof Pi=="number",So=Gt.useMemo(function(){return Fr?null:Pi===!1?"minWidth":"width"},[Pi,Fr]),xr=Xn;Fr&&(xr=Fe(Fe({},xr),{},{width:Pi}));var oo=Gt.useRef(null);return Gt.useImperativeHandle(Xt,function(){return{getPopupElement:function(){var Ko;return(Ko=oo.current)===null||Ko===void 0?void 0:Ko.popupElement}}}),Gt.createElement(lh.Z,vt({},Oi,{showAction:li?["click"]:[],hideAction:li?["click"]:[],popupPlacement:Vn||(qn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Bi,prefixCls:ur,popupTransitionName:_r,popup:Gt.createElement("div",{onMouseEnter:dr},Or),ref:oo,stretch:So,popupAlign:Pr,popupVisible:Ue,getPopupContainer:qi,popupClassName:Jt()(ni,Le({},"".concat(ur,"-empty"),sr)),popupStyle:xr,getTriggerDOMNode:Yr,onPopupVisibleChange:li}),en)},or=Gt.forwardRef(Ha),Xi=or;function zr(bt){return Gn(bt)||It(bt)||Yt(bt)||Ke()}function $e(bt,Nt){var Xt=bt.key,ee;return"value"in bt&&(ee=bt.value),Xt!=null?Xt:ee!==void 0?ee:"rc-index-key-".concat(Nt)}function fr(bt){return typeof bt!="undefined"&&!Number.isNaN(bt)}function eo(bt,Nt){var Xt=bt||{},ee=Xt.label,Ae=Xt.value,Ue=Xt.options,en=Xt.groupLabel,kn=ee||(Nt?"children":"label");return{label:kn,value:Ae||"value",options:Ue||"options",groupLabel:en||kn}}function wa(bt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Xt=Nt.fieldNames,ee=Nt.childrenAsData,Ae=[],Ue=eo(Xt,!1),en=Ue.label,kn=Ue.value,On=Ue.options,Ln=Ue.groupLabel;function Xn(ni,wi){Array.isArray(ni)&&ni.forEach(function(qn){if(wi||!(On in qn)){var Vn=qn[kn];Ae.push({key:$e(qn,Ae.length),groupOption:wi,data:qn,label:qn[en],value:Vn})}else{var hi=qn[Ln];hi===void 0&&ee&&(hi=qn.label),Ae.push({key:$e(qn,Ae.length),group:!0,data:qn,label:hi}),Xn(qn[On],!0)}})}return Xn(bt,!1),Ae}function ua(bt){var Nt=Fe({},bt);return"props"in Nt||Object.defineProperty(Nt,"props",{get:function(){return Wt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Nt}}),Nt}var Ga=function(Nt,Xt,ee){if(!Xt||!Xt.length)return null;var Ae=!1,Ue=function kn(On,Ln){var Xn=zr(Ln),ni=Xn[0],wi=Xn.slice(1);if(!ni)return[On];var qn=On.split(ni);return Ae=Ae||qn.length>1,qn.reduce(function(Vn,hi){return[].concat(re(Vn),re(kn(hi,wi)))},[]).filter(Boolean)},en=Ue(Nt,Xt);return Ae?typeof ee!="undefined"?en.slice(0,ee):en:null},Ds=Gt.createContext(null),_s=Ds;function $s(bt){var Nt=bt.visible,Xt=bt.values;if(!Nt)return null;var ee=50;return Gt.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Xt.slice(0,ee).map(function(Ae){var Ue=Ae.label,en=Ae.value;return["number","string"].includes(Qt(Ue))?Ue:en}).join(", ")),Xt.length>ee?", ...":null)}var uh=["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"],Qu=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],We=function(Nt){return Nt==="tags"||Nt==="multiple"},gl=Gt.forwardRef(function(bt,Nt){var Xt,ee=bt.id,Ae=bt.prefixCls,Ue=bt.className,en=bt.showSearch,kn=bt.tagRender,On=bt.direction,Ln=bt.omitDomProps,Xn=bt.displayValues,ni=bt.onDisplayValuesChange,wi=bt.emptyOptions,qn=bt.notFoundContent,Vn=qn===void 0?"Not Found":qn,hi=bt.onClear,Pi=bt.mode,ar=bt.disabled,Pr=bt.loading,qi=bt.getInputElement,sr=bt.getRawInputElement,Yr=bt.open,li=bt.defaultOpen,dr=bt.onDropdownVisibleChange,Oi=bt.activeValue,ur=bt.onActiveValueChange,Or=bt.activeDescendantId,Bi=bt.searchValue,_r=bt.autoClearSearchValue,Fr=bt.onSearch,So=bt.onSearchSplit,xr=bt.tokenSeparators,oo=bt.allowClear,ko=bt.prefix,Ko=bt.suffixIcon,Fo=bt.clearIcon,rr=bt.OptionList,Wr=bt.animation,Xo=bt.transitionName,No=bt.dropdownStyle,ra=bt.dropdownClassName,Jo=bt.dropdownMatchSelectWidth,pa=bt.dropdownRender,oa=bt.dropdownAlign,La=bt.placement,ys=bt.builtinPlacements,Da=bt.getPopupContainer,Ir=bt.showAction,Tr=Ir===void 0?[]:Ir,Nr=bt.onFocus,Ri=bt.onBlur,Vi=bt.onKeyUp,Cr=bt.onKeyDown,uo=bt.onMouseDown,Po=zt(bt,uh),ao=We(Pi),Ta=(en!==void 0?en:ao)||Pi==="combobox",as=Fe({},Po);Qu.forEach(function(Oa){delete as[Oa]}),Ln==null||Ln.forEach(function(Oa){delete as[Oa]});var da=Gt.useState(!1),Ps=Dn(da,2),Ma=Ps[0],za=Ps[1];Gt.useEffect(function(){za(Xe())},[]);var Va=Gt.useRef(null),Ts=Gt.useRef(null),Xa=Gt.useRef(null),Ja=Gt.useRef(null),Aa=Gt.useRef(null),Ua=Gt.useRef(!1),Vs=di(),Js=Dn(Vs,3),Ar=Js[0],lr=Js[1],Sr=Js[2];Gt.useImperativeHandle(Nt,function(){var Oa,ca;return{focus:(Oa=Ja.current)===null||Oa===void 0?void 0:Oa.focus,blur:(ca=Ja.current)===null||ca===void 0?void 0:ca.blur,scrollTo:function(js){var ll;return(ll=Aa.current)===null||ll===void 0?void 0:ll.scrollTo(js)},nativeElement:Va.current||Ts.current}});var Ro=Gt.useMemo(function(){var Oa;if(Pi!=="combobox")return Bi;var ca=(Oa=Xn[0])===null||Oa===void 0?void 0:Oa.value;return typeof ca=="string"||typeof ca=="number"?String(ca):""},[Bi,Pi,Xn]),Qa=Pi==="combobox"&&typeof qi=="function"&&qi()||null,Ss=typeof sr=="function"&&sr(),rl=De(Ts,Ss==null||(Xt=Ss.props)===null||Xt===void 0?void 0:Xt.ref),ye=Gt.useState(!1),xl=Dn(ye,2),Ms=xl[0],Nl=xl[1];rn(function(){Nl(!0)},[]);var Au=de(!1,{defaultValue:li,value:Yr}),Cs=Dn(Au,2),to=Cs[0],sa=Cs[1],ro=Ms?to:!1,Bs=!Vn&&wi;(ar||Bs&&ro&&Pi==="combobox")&&(ro=!1);var wl=Bs?!1:ro,so=Gt.useCallback(function(Oa){var ca=Oa!==void 0?Oa:!ro;ar||(sa(ca),ro!==ca&&(dr==null||dr(ca)))},[ar,ro,sa,dr]),Vo=Gt.useMemo(function(){return(xr||[]).some(function(Oa){return[`
`,`\r
`].includes(Oa)})},[xr]),Eo=Gt.useContext(_s)||{},Oo=Eo.maxCount,Ba=Eo.rawValues,Sa=function(ca,tu,js){if(!(ao&&fr(Oo)&&(Ba==null?void 0:Ba.size)>=Oo)){var ll=!0,Dl=ca;ur==null||ur(null);var ku=Ga(ca,xr,fr(Oo)?Oo-Ba.size:void 0),eu=js?null:ku;return Pi!=="combobox"&&eu&&(Dl="",So==null||So(eu),so(!1),ll=!1),Fr&&Ro!==Dl&&Fr(Dl,{source:tu?"typing":"effect"}),ll}},Zl=function(ca){!ca||!ca.trim()||Fr(ca,{source:"submit"})};Gt.useEffect(function(){!ro&&!ao&&Pi!=="combobox"&&Sa("",!1,!1)},[ro]),Gt.useEffect(function(){to&&ar&&sa(!1),ar&&!Ua.current&&lr(!1)},[ar]);var bu=vi(),ol=Dn(bu,2),Os=ol[0],Mu=ol[1],cu=Gt.useRef(!1),al=function(ca){var tu=Os(),js=ca.key,ll=js==="Enter";if(ll&&(Pi!=="combobox"&&ca.preventDefault(),ro||so(!0)),Mu(!!Ro),js==="Backspace"&&!tu&&ao&&!Ro&&Xn.length){for(var Dl=re(Xn),ku=null,eu=Dl.length-1;eu>=0;eu-=1){var Zh=Dl[eu];if(!Zh.disabled){Dl.splice(eu,1),ku=Zh;break}}ku&&ni(Dl,{type:"remove",values:[ku]})}for(var nu=arguments.length,Yh=new Array(nu>1?nu-1:0),Od=1;Od<nu;Od++)Yh[Od-1]=arguments[Od];if(ro&&(!ll||!cu.current)){var Dc;ll&&(cu.current=!0),(Dc=Aa.current)===null||Dc===void 0||Dc.onKeyDown.apply(Dc,[ca].concat(Yh))}Cr==null||Cr.apply(void 0,[ca].concat(Yh))},ec=function(ca){for(var tu=arguments.length,js=new Array(tu>1?tu-1:0),ll=1;ll<tu;ll++)js[ll-1]=arguments[ll];if(ro){var Dl;(Dl=Aa.current)===null||Dl===void 0||Dl.onKeyUp.apply(Dl,[ca].concat(js))}ca.key==="Enter"&&(cu.current=!1),Vi==null||Vi.apply(void 0,[ca].concat(js))},Qo=function(ca){var tu=Xn.filter(function(js){return js!==ca});ni(tu,{type:"remove",values:[ca]})},po=function(){cu.current=!1},ks=Gt.useRef(!1),$l=function(){lr(!0),ar||(Nr&&!ks.current&&Nr.apply(void 0,arguments),Tr.includes("focus")&&so(!0)),ks.current=!0},sl=function(){Ua.current=!0,lr(!1,function(){ks.current=!1,Ua.current=!1,so(!1)}),!ar&&(Ro&&(Pi==="tags"?Fr(Ro,{source:"submit"}):Pi==="multiple"&&Fr("",{source:"blur"})),Ri&&Ri.apply(void 0,arguments))},Pl=[];Gt.useEffect(function(){return function(){Pl.forEach(function(Oa){return clearTimeout(Oa)}),Pl.splice(0,Pl.length)}},[]);var Us=function(ca){var tu,js=ca.target,ll=(tu=Xa.current)===null||tu===void 0?void 0:tu.getPopupElement();if(ll&&ll.contains(js)){var Dl=setTimeout(function(){var nu=Pl.indexOf(Dl);if(nu!==-1&&Pl.splice(nu,1),Sr(),!Ma&&!ll.contains(document.activeElement)){var Yh;(Yh=Ja.current)===null||Yh===void 0||Yh.focus()}});Pl.push(Dl)}for(var ku=arguments.length,eu=new Array(ku>1?ku-1:0),Zh=1;Zh<ku;Zh++)eu[Zh-1]=arguments[Zh];uo==null||uo.apply(void 0,[ca].concat(eu))},fh=Gt.useState({}),ss=Dn(fh,2),Kh=ss[1];function af(){Kh({})}var Vh;Ss&&(Vh=function(ca){so(ca)}),br(function(){var Oa;return[Va.current,(Oa=Xa.current)===null||Oa===void 0?void 0:Oa.getPopupElement()]},wl,so,!!Ss);var nc=Gt.useMemo(function(){return Fe(Fe({},bt),{},{notFoundContent:Vn,open:ro,triggerOpen:wl,id:ee,showSearch:Ta,multiple:ao,toggleOpen:so})},[bt,Vn,wl,ro,ee,Ta,ao,so]),Td=!!Ko||Pr,sf;Td&&(sf=Gt.createElement(Si,{className:Jt()("".concat(Ae,"-arrow"),Le({},"".concat(Ae,"-arrow-loading"),Pr)),customizeIcon:Ko,customizeIconProps:{loading:Pr,searchValue:Ro,open:ro,focused:Ar,showSearch:Ta}}));var ic=function(){var ca;hi==null||hi(),(ca=Ja.current)===null||ca===void 0||ca.focus(),ni([],{type:"clear",values:Xn}),Sa("",!1,!1)},lf=Un(Ae,ic,Xn,oo,Fo,ar,Ro,Pi),Fh=lf.allowClear,Bd=lf.clearIcon,uf=Gt.createElement(rr,{ref:Aa}),hf=Jt()(Ae,Ue,Le(Le(Le(Le(Le(Le(Le(Le(Le(Le({},"".concat(Ae,"-focused"),Ar),"".concat(Ae,"-multiple"),ao),"".concat(Ae,"-single"),!ao),"".concat(Ae,"-allow-clear"),oo),"".concat(Ae,"-show-arrow"),Td),"".concat(Ae,"-disabled"),ar),"".concat(Ae,"-loading"),Pr),"".concat(Ae,"-open"),ro),"".concat(Ae,"-customize-input"),Qa),"".concat(Ae,"-show-search"),Ta)),Nc=Gt.createElement(Xi,{ref:Xa,disabled:ar,prefixCls:Ae,visible:wl,popupElement:uf,animation:Wr,transitionName:Xo,dropdownStyle:No,dropdownClassName:ra,direction:On,dropdownMatchSelectWidth:Jo,dropdownRender:pa,dropdownAlign:oa,placement:La,builtinPlacements:ys,getPopupContainer:Da,empty:wi,getTriggerDOMNode:function(ca){return Ts.current||ca},onPopupVisibleChange:Vh,onPopupMouseEnter:af},Ss?Gt.cloneElement(Ss,{ref:rl}):Gt.createElement(Vl,vt({},bt,{domRef:Ts,prefixCls:Ae,inputElement:Qa,ref:Ja,id:ee,prefix:ko,showSearch:Ta,autoClearSearchValue:_r,mode:Pi,activeDescendantId:Or,tagRender:kn,values:Xn,open:ro,onToggleOpen:so,activeValue:Oi,searchValue:Ro,onSearch:Sa,onSearchSubmit:Zl,onRemove:Qo,tokenWithEnter:Vo,onInputBlur:po}))),Uh;return Ss?Uh=Nc:Uh=Gt.createElement("div",vt({className:hf},as,{ref:Va,onMouseDown:Us,onKeyDown:al,onKeyUp:ec,onFocus:$l,onBlur:sl}),Gt.createElement($s,{visible:Ar&&!ro,values:Xn}),Nc,sf,Fh&&Bd),Gt.createElement(Ui.Provider,{value:nc},Uh)}),du=gl,qu=function(){return null};qu.isSelectOptGroup=!0;var is=qu,_u=function(){return null};_u.isSelectOption=!0;var ed=_u;function Ch(bt,Nt){var Xt=Fe({},bt);return Array.isArray(Nt)&&Nt.forEach(function(ee){delete Xt[ee]}),Xt}var Pa=Dt(73299);function cs(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var qr=["disabled","title","children","style","className"];function wo(bt){return typeof bt=="string"||typeof bt=="number"}var Ca=function(Nt,Xt){var ee=Yi(),Ae=ee.prefixCls,Ue=ee.id,en=ee.open,kn=ee.multiple,On=ee.mode,Ln=ee.searchValue,Xn=ee.toggleOpen,ni=ee.notFoundContent,wi=ee.onPopupScroll,qn=Gt.useContext(_s),Vn=qn.maxCount,hi=qn.flattenOptions,Pi=qn.onActiveValue,ar=qn.defaultActiveFirstOption,Pr=qn.onSelect,qi=qn.menuItemSelectedIcon,sr=qn.rawValues,Yr=qn.fieldNames,li=qn.virtual,dr=qn.direction,Oi=qn.listHeight,ur=qn.listItemHeight,Or=qn.optionRender,Bi="".concat(Ae,"-item"),_r=En(function(){return hi},[en,hi],function(Ir,Tr){return Tr[0]&&Ir[1]!==Tr[1]}),Fr=Gt.useRef(null),So=Gt.useMemo(function(){return kn&&fr(Vn)&&(sr==null?void 0:sr.size)>=Vn},[kn,Vn,sr==null?void 0:sr.size]),xr=function(Tr){Tr.preventDefault()},oo=function(Tr){var Nr;(Nr=Fr.current)===null||Nr===void 0||Nr.scrollTo(typeof Tr=="number"?{index:Tr}:Tr)},ko=Gt.useCallback(function(Ir){return On==="combobox"?!1:sr.has(Ir)},[On,re(sr).toString(),sr.size]),Ko=function(Tr){for(var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ri=_r.length,Vi=0;Vi<Ri;Vi+=1){var Cr=(Tr+Vi*Nr+Ri)%Ri,uo=_r[Cr]||{},Po=uo.group,ao=uo.data;if(!Po&&!(ao!=null&&ao.disabled)&&(ko(ao.value)||!So))return Cr}return-1},Fo=Gt.useState(function(){return Ko(0)}),rr=Dn(Fo,2),Wr=rr[0],Xo=rr[1],No=function(Tr){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Xo(Tr);var Ri={source:Nr?"keyboard":"mouse"},Vi=_r[Tr];if(!Vi){Pi(null,-1,Ri);return}Pi(Vi.value,Tr,Ri)};(0,Gt.useEffect)(function(){No(ar!==!1?Ko(0):-1)},[_r.length,Ln]);var ra=Gt.useCallback(function(Ir){return On==="combobox"?String(Ir).toLowerCase()===Ln.toLowerCase():sr.has(Ir)},[On,Ln,re(sr).toString(),sr.size]);(0,Gt.useEffect)(function(){var Ir=setTimeout(function(){if(!kn&&en&&sr.size===1){var Nr=Array.from(sr)[0],Ri=_r.findIndex(function(Vi){var Cr=Vi.data;return Cr.value===Nr});Ri!==-1&&(No(Ri),oo(Ri))}});if(en){var Tr;(Tr=Fr.current)===null||Tr===void 0||Tr.scrollTo(void 0)}return function(){return clearTimeout(Ir)}},[en,Ln]);var Jo=function(Tr){Tr!==void 0&&Pr(Tr,{selected:!sr.has(Tr)}),kn||Xn(!1)};if(Gt.useImperativeHandle(Xt,function(){return{onKeyDown:function(Tr){var Nr=Tr.which,Ri=Tr.ctrlKey;switch(Nr){case mi.N:case mi.P:case mi.UP:case mi.DOWN:{var Vi=0;if(Nr===mi.UP?Vi=-1:Nr===mi.DOWN?Vi=1:cs()&&Ri&&(Nr===mi.N?Vi=1:Nr===mi.P&&(Vi=-1)),Vi!==0){var Cr=Ko(Wr+Vi,Vi);oo(Cr),No(Cr,!0)}break}case mi.TAB:case mi.ENTER:{var uo,Po=_r[Wr];Po&&!(Po!=null&&(uo=Po.data)!==null&&uo!==void 0&&uo.disabled)&&!So?Jo(Po.value):Jo(void 0),en&&Tr.preventDefault();break}case mi.ESC:Xn(!1),en&&Tr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Tr){oo(Tr)}}}),_r.length===0)return Gt.createElement("div",{role:"listbox",id:"".concat(Ue,"_list"),className:"".concat(Bi,"-empty"),onMouseDown:xr},ni);var pa=Object.keys(Yr).map(function(Ir){return Yr[Ir]}),oa=function(Tr){return Tr.label};function La(Ir,Tr){var Nr=Ir.group;return{role:Nr?"presentation":"option",id:"".concat(Ue,"_list_").concat(Tr)}}var ys=function(Tr){var Nr=_r[Tr];if(!Nr)return null;var Ri=Nr.data||{},Vi=Ri.value,Cr=Nr.group,uo=Io(Ri,!0),Po=oa(Nr);return Nr?Gt.createElement("div",vt({"aria-label":typeof Po=="string"&&!Cr?Po:null},uo,{key:Tr},La(Nr,Tr),{"aria-selected":ra(Vi)}),Vi):null},Da={role:"listbox",id:"".concat(Ue,"_list")};return Gt.createElement(Gt.Fragment,null,li&&Gt.createElement("div",vt({},Da,{style:{height:0,width:0,overflow:"hidden"}}),ys(Wr-1),ys(Wr),ys(Wr+1)),Gt.createElement(Pa.Z,{itemKey:"key",ref:Fr,data:_r,height:Oi,itemHeight:ur,fullHeight:!1,onMouseDown:xr,onScroll:wi,virtual:li,direction:dr,innerProps:li?null:Da},function(Ir,Tr){var Nr=Ir.group,Ri=Ir.groupOption,Vi=Ir.data,Cr=Ir.label,uo=Ir.value,Po=Vi.key;if(Nr){var ao,Ta=(ao=Vi.title)!==null&&ao!==void 0?ao:wo(Cr)?Cr.toString():void 0;return Gt.createElement("div",{className:Jt()(Bi,"".concat(Bi,"-group"),Vi.className),title:Ta},Cr!==void 0?Cr:Po)}var as=Vi.disabled,da=Vi.title,Ps=Vi.children,Ma=Vi.style,za=Vi.className,Va=zt(Vi,qr),Ts=Ch(Va,pa),Xa=ko(uo),Ja=as||!Xa&&So,Aa="".concat(Bi,"-option"),Ua=Jt()(Bi,Aa,za,Le(Le(Le(Le({},"".concat(Aa,"-grouped"),Ri),"".concat(Aa,"-active"),Wr===Tr&&!Ja),"".concat(Aa,"-disabled"),Ja),"".concat(Aa,"-selected"),Xa)),Vs=oa(Ir),Js=!qi||typeof qi=="function"||Xa,Ar=typeof Vs=="number"?Vs:Vs||uo,lr=wo(Ar)?Ar.toString():void 0;return da!==void 0&&(lr=da),Gt.createElement("div",vt({},Io(Ts),li?{}:La(Ir,Tr),{"aria-selected":ra(uo),className:Ua,title:lr,onMouseMove:function(){Wr===Tr||Ja||No(Tr)},onClick:function(){Ja||Jo(uo)},style:Ma}),Gt.createElement("div",{className:"".concat(Aa,"-content")},typeof Or=="function"?Or(Ir,{index:Tr}):Ar),Gt.isValidElement(qi)||Xa,Js&&Gt.createElement(Si,{className:"".concat(Bi,"-option-state"),customizeIcon:qi,customizeIconProps:{value:uo,disabled:Ja,isSelected:Xa}},Xa?"\u2713":null))}))},rs=Gt.forwardRef(Ca),Qi=rs,xd=function(bt,Nt){var Xt=Gt.useRef({values:new Map,options:new Map}),ee=Gt.useMemo(function(){var Ue=Xt.current,en=Ue.values,kn=Ue.options,On=bt.map(function(ni){if(ni.label===void 0){var wi;return Fe(Fe({},ni),{},{label:(wi=en.get(ni.value))===null||wi===void 0?void 0:wi.label})}return ni}),Ln=new Map,Xn=new Map;return On.forEach(function(ni){Ln.set(ni.value,ni),Xn.set(ni.value,Nt.get(ni.value)||kn.get(ni.value))}),Xt.current.values=Ln,Xt.current.options=Xn,On},[bt,Nt]),Ae=Gt.useCallback(function(Ue){return Nt.get(Ue)||Xt.current.options.get(Ue)},[Nt]);return[ee,Ae]};function $u(bt,Nt){return lo(bt).join("").toUpperCase().includes(Nt)}var Ml=function(bt,Nt,Xt,ee,Ae){return Gt.useMemo(function(){if(!Xt||ee===!1)return bt;var Ue=Nt.options,en=Nt.label,kn=Nt.value,On=[],Ln=typeof ee=="function",Xn=Xt.toUpperCase(),ni=Ln?ee:function(qn,Vn){return Ae?$u(Vn[Ae],Xn):Vn[Ue]?$u(Vn[en!=="children"?en:"label"],Xn):$u(Vn[kn],Xn)},wi=Ln?function(qn){return ua(qn)}:function(qn){return qn};return bt.forEach(function(qn){if(qn[Ue]){var Vn=ni(Xt,wi(qn));if(Vn)On.push(qn);else{var hi=qn[Ue].filter(function(Pi){return ni(Xt,wi(Pi))});hi.length&&On.push(Fe(Fe({},qn),{},Le({},Ue,hi)))}return}ni(Xt,wi(qn))&&On.push(qn)}),On},[bt,ee,Ae,Xt,Nt])},wd=0,Eh=Sn();function yi(){var bt;return Eh?(bt=wd,wd+=1):bt="TEST_OR_SSR",bt}function ps(bt){var Nt=Gt.useState(),Xt=Dn(Nt,2),ee=Xt[0],Ae=Xt[1];return Gt.useEffect(function(){Ae("rc_select_".concat(yi()))},[]),bt||ee}function ms(bt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Xt=[];return Gt.Children.forEach(bt,function(ee){ee==null&&!Nt.keepEmpty||(Array.isArray(ee)?Xt=Xt.concat(ms(ee)):(0,zn.isFragment)(ee)&&ee.props?Xt=Xt.concat(ms(ee.props.children,Nt)):Xt.push(ee))}),Xt}var Ru=["children","value"],Pd=["children"];function nd(bt){var Nt=bt,Xt=Nt.key,ee=Nt.props,Ae=ee.children,Ue=ee.value,en=zt(ee,Ru);return Fe({key:Xt,value:Ue!==void 0?Ue:Xt,children:Ae},en)}function $r(bt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ms(bt).map(function(Xt,ee){if(!Gt.isValidElement(Xt)||!Xt.type)return null;var Ae=Xt,Ue=Ae.type.isSelectOptGroup,en=Ae.key,kn=Ae.props,On=kn.children,Ln=zt(kn,Pd);return Nt||!Ue?nd(Xt):Fe(Fe({key:"__RC_SELECT_GRP__".concat(en===null?ee:en,"__"),label:en},Ln),{},{options:$r(On)})}).filter(function(Xt){return Xt})}var id=function(Nt,Xt,ee,Ae,Ue){return Gt.useMemo(function(){var en=Nt,kn=!Nt;kn&&(en=$r(Xt));var On=new Map,Ln=new Map,Xn=function(qn,Vn,hi){hi&&typeof hi=="string"&&qn.set(Vn[hi],Vn)},ni=function wi(qn){for(var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hi=0;hi<qn.length;hi+=1){var Pi=qn[hi];!Pi[ee.options]||Vn?(On.set(Pi[ee.value],Pi),Xn(Ln,Pi,ee.label),Xn(Ln,Pi,Ae),Xn(Ln,Pi,Ue)):wi(Pi[ee.options],!0)}};return ni(en),{options:en,valueOptions:On,labelOptions:Ln}},[Nt,Xt,ee,Ae,Ue])},Pu=id;function kl(bt){var Nt=Gt.useRef();Nt.current=bt;var Xt=Gt.useCallback(function(){return Nt.current.apply(Nt,arguments)},[]);return Xt}function Ul(bt){var Nt=bt.mode,Xt=bt.options,ee=bt.children,Ae=bt.backfill,Ue=bt.allowClear,en=bt.placeholder,kn=bt.getInputElement,On=bt.showSearch,Ln=bt.onSearch,Xn=bt.defaultOpen,ni=bt.autoFocus,wi=bt.labelInValue,qn=bt.value,Vn=bt.inputValue,hi=bt.optionLabelProp,Pi=isMultiple(Nt),ar=On!==void 0?On:Pi||Nt==="combobox",Pr=Xt||convertChildrenToData(ee);if(warning(Nt!=="tags"||Pr.every(function(li){return!li.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Nt==="tags"||Nt==="combobox"){var qi=Pr.some(function(li){return li.options?li.options.some(function(dr){return typeof("value"in dr?dr.value:dr.key)=="number"}):typeof("value"in li?li.value:li.key)=="number"});warning(!qi,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Nt!=="combobox"||!hi,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Nt==="combobox"||!Ae,"`backfill` only works with `combobox` mode."),warning(Nt==="combobox"||!kn,"`getInputElement` only work with `combobox` mode."),noteOnce(Nt!=="combobox"||!kn||!Ue||!en,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ln&&!ar&&Nt!=="combobox"&&Nt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Xn||ni,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),qn!=null){var sr=toArray(qn);warning(!wi||sr.every(function(li){return _typeof(li)==="object"&&("key"in li||"value"in li)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Pi||Array.isArray(qn),"`value` should be array when `mode` is `multiple` or `tags`")}if(ee){var Yr=null;toNodeArray(ee).some(function(li){if(!React.isValidElement(li)||!li.type)return!1;var dr=li,Oi=dr.type;if(Oi.isSelectOption)return!1;if(Oi.isSelectOptGroup){var ur=toNodeArray(li.props.children).every(function(Or){return!React.isValidElement(Or)||!li.type||Or.type.isSelectOption?!0:(Yr=Or.type,!1)});return!ur}return Yr=Oi,!0}),Yr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Yr.displayName||Yr.name||Yr,"`.")),warning(Vn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Hh(bt,Nt){if(bt){var Xt=function ee(Ae){for(var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,en=0;en<Ae.length;en++){var kn=Ae[en];if(kn[Nt==null?void 0:Nt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ue&&Array.isArray(kn[Nt==null?void 0:Nt.options])&&ee(kn[Nt==null?void 0:Nt.options],!0))break}};Xt(bt)}}var Cd=null,pl=["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"],Cu=["inputValue"];function Ed(bt){return!bt||Qt(bt)!=="object"}var Mc=Gt.forwardRef(function(bt,Nt){var Xt=bt.id,ee=bt.mode,Ae=bt.prefixCls,Ue=Ae===void 0?"rc-select":Ae,en=bt.backfill,kn=bt.fieldNames,On=bt.inputValue,Ln=bt.searchValue,Xn=bt.onSearch,ni=bt.autoClearSearchValue,wi=ni===void 0?!0:ni,qn=bt.onSelect,Vn=bt.onDeselect,hi=bt.dropdownMatchSelectWidth,Pi=hi===void 0?!0:hi,ar=bt.filterOption,Pr=bt.filterSort,qi=bt.optionFilterProp,sr=bt.optionLabelProp,Yr=bt.options,li=bt.optionRender,dr=bt.children,Oi=bt.defaultActiveFirstOption,ur=bt.menuItemSelectedIcon,Or=bt.virtual,Bi=bt.direction,_r=bt.listHeight,Fr=_r===void 0?200:_r,So=bt.listItemHeight,xr=So===void 0?20:So,oo=bt.labelRender,ko=bt.value,Ko=bt.defaultValue,Fo=bt.labelInValue,rr=bt.onChange,Wr=bt.maxCount,Xo=zt(bt,pl),No=ps(Xt),ra=We(ee),Jo=!!(!Yr&&dr),pa=Gt.useMemo(function(){return ar===void 0&&ee==="combobox"?!1:ar},[ar,ee]),oa=Gt.useMemo(function(){return eo(kn,Jo)},[JSON.stringify(kn),Jo]),La=de("",{value:Ln!==void 0?Ln:On,postState:function(Vo){return Vo||""}}),ys=Dn(La,2),Da=ys[0],Ir=ys[1],Tr=Pu(Yr,dr,oa,qi,sr),Nr=Tr.valueOptions,Ri=Tr.labelOptions,Vi=Tr.options,Cr=Gt.useCallback(function(so){var Vo=lo(so);return Vo.map(function(Eo){var Oo,Ba,Sa,Zl,bu;if(Ed(Eo))Oo=Eo;else{var ol;Sa=Eo.key,Ba=Eo.label,Oo=(ol=Eo.value)!==null&&ol!==void 0?ol:Sa}var Os=Nr.get(Oo);if(Os){var Mu;if(Ba===void 0&&(Ba=Os==null?void 0:Os[sr||oa.label]),Sa===void 0&&(Sa=(Mu=Os==null?void 0:Os.key)!==null&&Mu!==void 0?Mu:Oo),Zl=Os==null?void 0:Os.disabled,bu=Os==null?void 0:Os.title,0)var cu}return{label:Ba,value:Oo,key:Sa,disabled:Zl,title:bu}})},[oa,sr,Nr]),uo=de(Ko,{value:ko}),Po=Dn(uo,2),ao=Po[0],Ta=Po[1],as=Gt.useMemo(function(){var so,Vo=ra&&ao===null?[]:ao,Eo=Cr(Vo);return ee==="combobox"&&va((so=Eo[0])===null||so===void 0?void 0:so.value)?[]:Eo},[ao,Cr,ee,ra]),da=xd(as,Nr),Ps=Dn(da,2),Ma=Ps[0],za=Ps[1],Va=Gt.useMemo(function(){if(!ee&&Ma.length===1){var so=Ma[0];if(so.value===null&&(so.label===null||so.label===void 0))return[]}return Ma.map(function(Vo){var Eo;return Fe(Fe({},Vo),{},{label:(Eo=typeof oo=="function"?oo(Vo):Vo.label)!==null&&Eo!==void 0?Eo:Vo.value})})},[ee,Ma,oo]),Ts=Gt.useMemo(function(){return new Set(Ma.map(function(so){return so.value}))},[Ma]);Gt.useEffect(function(){if(ee==="combobox"){var so,Vo=(so=Ma[0])===null||so===void 0?void 0:so.value;Ir(fl(Vo)?String(Vo):"")}},[Ma]);var Xa=kl(function(so,Vo){var Eo=Vo!=null?Vo:so;return Le(Le({},oa.value,so),oa.label,Eo)}),Ja=Gt.useMemo(function(){if(ee!=="tags")return Vi;var so=re(Vi),Vo=function(Oo){return Nr.has(Oo)};return re(Ma).sort(function(Eo,Oo){return Eo.value<Oo.value?-1:1}).forEach(function(Eo){var Oo=Eo.value;Vo(Oo)||so.push(Xa(Oo,Eo.label))}),so},[Xa,Vi,Nr,Ma,ee]),Aa=Ml(Ja,oa,Da,pa,qi),Ua=Gt.useMemo(function(){return ee!=="tags"||!Da||Aa.some(function(so){return so[qi||"value"]===Da})||Aa.some(function(so){return so[oa.value]===Da})?Aa:[Xa(Da)].concat(re(Aa))},[Xa,qi,ee,Aa,Da,oa]),Vs=function so(Vo){var Eo=re(Vo).sort(function(Oo,Ba){return Pr(Oo,Ba,{searchValue:Da})});return Eo.map(function(Oo){return Array.isArray(Oo.options)?Fe(Fe({},Oo),{},{options:Oo.options.length>0?so(Oo.options):Oo.options}):Oo})},Js=Gt.useMemo(function(){return Pr?Vs(Ua):Ua},[Ua,Pr,Da]),Ar=Gt.useMemo(function(){return wa(Js,{fieldNames:oa,childrenAsData:Jo})},[Js,oa,Jo]),lr=function(Vo){var Eo=Cr(Vo);if(Ta(Eo),rr&&(Eo.length!==Ma.length||Eo.some(function(Sa,Zl){var bu;return((bu=Ma[Zl])===null||bu===void 0?void 0:bu.value)!==(Sa==null?void 0:Sa.value)}))){var Oo=Fo?Eo:Eo.map(function(Sa){return Sa.value}),Ba=Eo.map(function(Sa){return ua(za(Sa.value))});rr(ra?Oo:Oo[0],ra?Ba:Ba[0])}},Sr=Gt.useState(null),Ro=Dn(Sr,2),Qa=Ro[0],Ss=Ro[1],rl=Gt.useState(0),ye=Dn(rl,2),xl=ye[0],Ms=ye[1],Nl=Oi!==void 0?Oi:ee!=="combobox",Au=Gt.useCallback(function(so,Vo){var Eo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Oo=Eo.source,Ba=Oo===void 0?"keyboard":Oo;Ms(Vo),en&&ee==="combobox"&&so!==null&&Ba==="keyboard"&&Ss(String(so))},[en,ee]),Cs=function(Vo,Eo,Oo){var Ba=function(){var Qo,po=za(Vo);return[Fo?{label:po==null?void 0:po[oa.label],value:Vo,key:(Qo=po==null?void 0:po.key)!==null&&Qo!==void 0?Qo:Vo}:Vo,ua(po)]};if(Eo&&qn){var Sa=Ba(),Zl=Dn(Sa,2),bu=Zl[0],ol=Zl[1];qn(bu,ol)}else if(!Eo&&Vn&&Oo!=="clear"){var Os=Ba(),Mu=Dn(Os,2),cu=Mu[0],al=Mu[1];Vn(cu,al)}},to=kl(function(so,Vo){var Eo,Oo=ra?Vo.selected:!0;Oo?Eo=ra?[].concat(re(Ma),[so]):[so]:Eo=Ma.filter(function(Ba){return Ba.value!==so}),lr(Eo),Cs(so,Oo),ee==="combobox"?Ss(""):(!We||wi)&&(Ir(""),Ss(""))}),sa=function(Vo,Eo){lr(Vo);var Oo=Eo.type,Ba=Eo.values;(Oo==="remove"||Oo==="clear")&&Ba.forEach(function(Sa){Cs(Sa.value,!1,Oo)})},ro=function(Vo,Eo){if(Ir(Vo),Ss(null),Eo.source==="submit"){var Oo=(Vo||"").trim();if(Oo){var Ba=Array.from(new Set([].concat(re(Ts),[Oo])));lr(Ba),Cs(Oo,!0),Ir("")}return}Eo.source!=="blur"&&(ee==="combobox"&&lr(Vo),Xn==null||Xn(Vo))},Bs=function(Vo){var Eo=Vo;ee!=="tags"&&(Eo=Vo.map(function(Ba){var Sa=Ri.get(Ba);return Sa==null?void 0:Sa.value}).filter(function(Ba){return Ba!==void 0}));var Oo=Array.from(new Set([].concat(re(Ts),re(Eo))));lr(Oo),Oo.forEach(function(Ba){Cs(Ba,!0)})},wl=Gt.useMemo(function(){var so=Or!==!1&&Pi!==!1;return Fe(Fe({},Tr),{},{flattenOptions:Ar,onActiveValue:Au,defaultActiveFirstOption:Nl,onSelect:to,menuItemSelectedIcon:ur,rawValues:Ts,fieldNames:oa,virtual:so,direction:Bi,listHeight:Fr,listItemHeight:xr,childrenAsData:Jo,maxCount:Wr,optionRender:li})},[Wr,Tr,Ar,Au,Nl,to,ur,Ts,oa,Or,Pi,Bi,Fr,xr,Jo,li]);return Gt.createElement(_s.Provider,{value:wl},Gt.createElement(du,vt({},Xo,{id:No,prefixCls:Ue,ref:Nt,omitDomProps:Cu,mode:ee,displayValues:Va,onDisplayValuesChange:sa,direction:Bi,searchValue:Da,onSearch:ro,autoClearSearchValue:wi,onSearchSplit:Bs,dropdownMatchSelectWidth:Pi,OptionList:Qi,emptyOptions:!Ar.length,activeValue:Qa,activeDescendantId:"".concat(No,"_list_").concat(xl)})))}),Ld=Mc;Ld.Option=ed,Ld.OptGroup=is;var rf=null,Jd=null;function Eu(bt){var Nt=Gt.useRef();Nt.current=bt;var Xt=Gt.useCallback(function(){for(var ee,Ae=arguments.length,Ue=new Array(Ae),en=0;en<Ae;en++)Ue[en]=arguments[en];return(ee=Nt.current)===null||ee===void 0?void 0:ee.call.apply(ee,[Nt].concat(Ue))},[]);return Xt}function Lh(bt){if(Array.isArray(bt))return bt}function zu(bt,Nt){var Xt=bt==null?null:typeof Symbol!="undefined"&&bt[Symbol.iterator]||bt["@@iterator"];if(Xt!=null){var ee,Ae,Ue,en,kn=[],On=!0,Ln=!1;try{if(Ue=(Xt=Xt.call(bt)).next,Nt===0){if(Object(Xt)!==Xt)return;On=!1}else for(;!(On=(ee=Ue.call(Xt)).done)&&(kn.push(ee.value),kn.length!==Nt);On=!0);}catch(Xn){Ln=!0,Ae=Xn}finally{try{if(!On&&Xt.return!=null&&(en=Xt.return(),Object(en)!==en))return}finally{if(Ln)throw Ae}}return kn}}function rd(bt,Nt){(Nt==null||Nt>bt.length)&&(Nt=bt.length);for(var Xt=0,ee=new Array(Nt);Xt<Nt;Xt++)ee[Xt]=bt[Xt];return ee}function Qd(bt,Nt){if(bt){if(typeof bt=="string")return rd(bt,Nt);var Xt=Object.prototype.toString.call(bt).slice(8,-1);if(Xt==="Object"&&bt.constructor&&(Xt=bt.constructor.name),Xt==="Map"||Xt==="Set")return Array.from(bt);if(Xt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xt))return rd(bt,Nt)}}function kc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vs(bt,Nt){return Lh(bt)||zu(bt,Nt)||Qd(bt,Nt)||kc()}function Tf(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var qd=Tf()?Gt.useLayoutEffect:Gt.useEffect,Ad=function(Nt,Xt){var ee=Gt.useRef(!0);qd(function(){return Nt(ee.current)},Xt),qd(function(){return ee.current=!1,function(){ee.current=!0}},[])},Ah=function(Nt,Xt){Ad(function(ee){if(!ee)return Nt()},Xt)},ml=null;function tl(bt){var Nt=Gt.useRef(!1),Xt=Gt.useState(bt),ee=vs(Xt,2),Ae=ee[0],Ue=ee[1];Gt.useEffect(function(){return Nt.current=!1,function(){Nt.current=!0}},[]);function en(kn,On){On&&Nt.current||Ue(kn)}return[Ae,en]}function xs(bt){return bt!==void 0}function zs(bt,Nt){var Xt=Nt||{},ee=Xt.defaultValue,Ae=Xt.value,Ue=Xt.onChange,en=Xt.postState,kn=tl(function(){return xs(Ae)?Ae:xs(ee)?typeof ee=="function"?ee():ee:typeof bt=="function"?bt():bt}),On=vs(kn,2),Ln=On[0],Xn=On[1],ni=Ae!==void 0?Ae:Ln,wi=en?en(ni):ni,qn=Eu(Ue),Vn=tl([ni]),hi=vs(Vn,2),Pi=hi[0],ar=hi[1];Ah(function(){var qi=Pi[0];Ln!==qi&&qn(Ln,qi)},[Pi]),Ah(function(){xs(Ae)||Xn(Ae)},[Ae]);var Pr=Eu(function(qi,sr){Xn(qi,sr),ar([ni],sr)});return[wi,Pr]}var bd=Gt.createContext({}),el=bd,Ka="__rc_cascader_search_mark__",Md=function(Nt,Xt,ee){var Ae=ee.label,Ue=Ae===void 0?"":Ae;return Xt.some(function(en){return String(en[Ue]).toLowerCase().includes(Nt.toLowerCase())})},kd=function(Nt,Xt,ee,Ae){return Xt.map(function(Ue){return Ue[Ae.label]}).join(" / ")},_d=function(Nt,Xt,ee,Ae,Ue,en){var kn=Ue.filter,On=kn===void 0?Md:kn,Ln=Ue.render,Xn=Ln===void 0?kd:Ln,ni=Ue.limit,wi=ni===void 0?50:ni,qn=Ue.sort;return Gt.useMemo(function(){var Vn=[];if(!Nt)return[];function hi(Pi,ar){var Pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Pi.forEach(function(qi){if(!(!qn&&wi!==!1&&wi>0&&Vn.length>=wi)){var sr=[].concat(nn(ar),[qi]),Yr=qi[ee.children],li=Pr||qi.disabled;if((!Yr||Yr.length===0||en)&&On(Nt,sr,{label:ee.label})){var dr;Vn.push(qt(qt({},qi),{},(dr={disabled:li},Se(dr,ee.label,Xn(Nt,sr,Ae,ee)),Se(dr,Ka,sr),Se(dr,ee.children,void 0),dr)))}Yr&&hi(qi[ee.children],sr,li)}})}return hi(Xt,[]),qn&&Vn.sort(function(Pi,ar){return qn(Pi[Ka],ar[Ka],Nt,ee)}),wi!==!1&&wi>0?Vn.slice(0,wi):Vn},[Nt,Xt,ee,Ae,Xn,en,On,qn,wi])},er=_d,Fd="__RC_CASCADER_SPLIT__",pe="SHOW_PARENT",yn="SHOW_CHILD";function Lu(bt){return bt.join(Fd)}function bh(bt){return bt.map(Lu)}function hh(bt){return bt.split(Fd)}function ju(bt){var Nt=bt||{},Xt=Nt.label,ee=Nt.value,Ae=Nt.children,Ue=ee||"value";return{label:Xt||"label",value:Ue,key:Ue,children:Ae||"children"}}function Wu(bt,Nt){var Xt,ee;return(Xt=bt.isLeaf)!==null&&Xt!==void 0?Xt:!((ee=bt[Nt.children])!==null&&ee!==void 0&&ee.length)}function Nd(bt){var Nt=bt.parentElement;if(Nt){var Xt=bt.offsetTop-Nt.offsetTop;Xt-Nt.scrollTop<0?Nt.scrollTo({top:Xt}):Xt+bt.offsetHeight-Nt.scrollTop>Nt.offsetHeight&&Nt.scrollTo({top:Xt+bt.offsetHeight-Nt.offsetHeight})}}function Mh(bt,Nt){return bt.map(function(Xt){var ee;return(ee=Xt[Ka])===null||ee===void 0?void 0:ee.map(function(Ae){return Ae[Nt.value]})})}function es(bt){return Array.isArray(bt)&&Array.isArray(bt[0])}function kr(bt){return bt?es(bt)?bt:(bt.length===0?[]:[bt]).map(function(Nt){return Array.isArray(Nt)?Nt:[Nt]}):[]}function il(bt,Nt,Xt){var ee=new Set(bt),Ae=Nt();return bt.filter(function(Ue){var en=Ae[Ue],kn=en?en.parent:null,On=en?en.children:null;return en&&en.node.disabled?!0:Xt===yn?!(On&&On.some(function(Ln){return Ln.key&&ee.has(Ln.key)})):!(kn&&!kn.node.disabled&&ee.has(kn.key))})}function nl(bt,Nt,Xt){for(var ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Ae=Nt,Ue=[],en=function(){var Ln,Xn,ni,wi=bt[kn],qn=(Ln=Ae)===null||Ln===void 0?void 0:Ln.findIndex(function(hi){var Pi=hi[Xt.value];return ee?String(Pi)===String(wi):Pi===wi}),Vn=qn!==-1?(Xn=Ae)===null||Xn===void 0?void 0:Xn[qn]:null;Ue.push({value:(ni=Vn==null?void 0:Vn[Xt.value])!==null&&ni!==void 0?ni:wi,index:qn,option:Vn}),Ae=Vn==null?void 0:Vn[Xt.children]},kn=0;kn<bt.length;kn+=1)en();return Ue}var Ya=function(bt,Nt,Xt,ee,Ae){return Gt.useMemo(function(){var Ue=Ae||function(en){var kn=ee?en.slice(-1):en,On=" / ";return kn.every(function(Ln){return["string","number"].includes(le(Ln))})?kn.join(On):kn.reduce(function(Ln,Xn,ni){var wi=Gt.isValidElement(Xn)?Gt.cloneElement(Xn,{key:ni}):Xn;return ni===0?[wi]:[].concat(nn(Ln),[On,wi])},[])};return bt.map(function(en){var kn,On=nl(en,Nt,Xt),Ln=Ue(On.map(function(ni){var wi,qn=ni.option,Vn=ni.value;return(wi=qn==null?void 0:qn[Xt.label])!==null&&wi!==void 0?wi:Vn}),On.map(function(ni){var wi=ni.option;return wi})),Xn=Lu(en);return{label:Ln,value:Xn,key:Xn,valueCells:en,disabled:(kn=On[On.length-1])===null||kn===void 0||(kn=kn.option)===null||kn===void 0?void 0:kn.disabled}})},[bt,Nt,Xt,Ae,ee])};function Do(bt,Nt){return Gt.useCallback(function(Xt){var ee=[],Ae=[];return Xt.forEach(function(Ue){var en=nl(Ue,bt,Nt);en.every(function(kn){return kn.option})?Ae.push(Ue):ee.push(Ue)}),[Ae,ee]},[bt,Nt])}var ws=Dt(1089),Fl=function(bt,Nt){var Xt=Gt.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),ee=Gt.useCallback(function(){return Xt.current.options!==bt&&(Xt.current.options=bt,Xt.current.info=(0,ws.I8)(bt,{fieldNames:Nt,initWrapper:function(Ue){return qt(qt({},Ue),{},{pathKeyEntities:{}})},processEntity:function(Ue,en){var kn=Ue.nodes.map(function(On){return On[Nt.value]}).join(Fd);en.pathKeyEntities[kn]=Ue,Ue.key=kn}})),Xt.current.info.pathKeyEntities},[Nt,bt]);return ee};function Na(bt,Nt){var Xt=Gt.useMemo(function(){return Nt||[]},[Nt]),ee=Fl(Xt,bt),Ae=Gt.useCallback(function(Ue){var en=ee();return Ue.map(function(kn){var On=en[kn].nodes;return On.map(function(Ln){return Ln[bt.value]})})},[ee,bt]);return[Xt,ee,Ae]}var vl={},Ks=[],dh=function(Nt){Ks.push(Nt)};function ia(bt,Nt){if(0)var Xt}function yl(bt,Nt){if(0)var Xt}function Yo(){vl={}}function ba(bt,Nt,Xt){!Nt&&!vl[Xt]&&(bt(!1,Xt),vl[Xt]=!0)}function Ra(bt,Nt){ba(ia,bt,Nt)}function os(bt,Nt){ba(yl,bt,Nt)}Ra.preMessage=dh,Ra.resetWarned=Yo,Ra.noteOnce=os;var ha=null;function Gh(bt){return Gt.useMemo(function(){if(!bt)return[!1,{}];var Nt={matchInputWidth:!0,limit:50};return bt&&le(bt)==="object"&&(Nt=qt(qt({},Nt),bt)),Nt.limit<=0&&(Nt.limit=!1),[!0,Nt]},[bt])}var Lr=Dt(17341);function Fc(bt,Nt,Xt,ee,Ae,Ue,en,kn){return function(On){if(!bt)Nt(On);else{var Ln=Lu(On),Xn=bh(Xt),ni=bh(ee),wi=Xn.includes(Ln),qn=Ae.some(function(li){return Lu(li)===Ln}),Vn=Xt,hi=Ae;if(qn&&!wi)hi=Ae.filter(function(li){return Lu(li)!==Ln});else{var Pi=wi?Xn.filter(function(li){return li!==Ln}):[].concat(nn(Xn),[Ln]),ar=Ue(),Pr;if(wi){var qi=(0,Lr.S)(Pi,{checked:!1,halfCheckedKeys:ni},ar);Pr=qi.checkedKeys}else{var sr=(0,Lr.S)(Pi,!0,ar);Pr=sr.checkedKeys}var Yr=il(Pr,Ue,kn);Vn=en(Yr)}Nt([].concat(nn(hi),nn(Vn)))}}}function Ho(bt,Nt,Xt,ee,Ae){return Gt.useMemo(function(){var Ue=Ae(Nt),en=ht(Ue,2),kn=en[0],On=en[1];if(!bt||!Nt.length)return[kn,[],On];var Ln=bh(kn),Xn=Xt(),ni=(0,Lr.S)(Ln,!0,Xn),wi=ni.checkedKeys,qn=ni.halfCheckedKeys;return[ee(wi),ee(qn),On]},[bt,Nt,Xt,ee,Ae])}var of=Gt.memo(function(bt){var Nt=bt.children;return Nt},function(bt,Nt){return!Nt.open}),od=of;function Dd(bt){var Nt,Xt=bt.prefixCls,ee=bt.checked,Ae=bt.halfChecked,Ue=bt.disabled,en=bt.onClick,kn=bt.disableCheckbox,On=Gt.useContext(el),Ln=On.checkable,Xn=typeof Ln!="boolean"?Ln:null;return Gt.createElement("span",{className:Jt()("".concat(Xt),(Nt={},Se(Nt,"".concat(Xt,"-checked"),ee),Se(Nt,"".concat(Xt,"-indeterminate"),!ee&&Ae),Se(Nt,"".concat(Xt,"-disabled"),Ue||kn),Nt)),onClick:en},Xn)}var $d="__cascader_fix_label__";function tc(bt){var Nt=bt.prefixCls,Xt=bt.multiple,ee=bt.options,Ae=bt.activeValue,Ue=bt.prevValuePath,en=bt.onToggleOpen,kn=bt.onSelect,On=bt.onActive,Ln=bt.checkedSet,Xn=bt.halfCheckedSet,ni=bt.loadingKeys,wi=bt.isSelectable,qn=bt.disabled,Vn="".concat(Nt,"-menu"),hi="".concat(Nt,"-menu-item"),Pi=Gt.useContext(el),ar=Pi.fieldNames,Pr=Pi.changeOnSelect,qi=Pi.expandTrigger,sr=Pi.expandIcon,Yr=Pi.loadingIcon,li=Pi.dropdownMenuColumnStyle,dr=Pi.optionRender,Oi=qi==="hover",ur=function(_r){return qn||_r},Or=Gt.useMemo(function(){return ee.map(function(Bi){var _r,Fr=Bi.disabled,So=Bi.disableCheckbox,xr=Bi[Ka],oo=(_r=Bi[$d])!==null&&_r!==void 0?_r:Bi[ar.label],ko=Bi[ar.value],Ko=Wu(Bi,ar),Fo=xr?xr.map(function(ra){return ra[ar.value]}):[].concat(nn(Ue),[ko]),rr=Lu(Fo),Wr=ni.includes(rr),Xo=Ln.has(rr),No=Xn.has(rr);return{disabled:Fr,label:oo,value:ko,isLeaf:Ko,isLoading:Wr,checked:Xo,halfChecked:No,option:Bi,disableCheckbox:So,fullPath:Fo,fullPathKey:rr}})},[ee,Ln,ar,Xn,ni,Ue]);return Gt.createElement("ul",{className:Vn,role:"menu"},Or.map(function(Bi){var _r,Fr=Bi.disabled,So=Bi.label,xr=Bi.value,oo=Bi.isLeaf,ko=Bi.isLoading,Ko=Bi.checked,Fo=Bi.halfChecked,rr=Bi.option,Wr=Bi.fullPath,Xo=Bi.fullPathKey,No=Bi.disableCheckbox,ra=function(){if(!ur(Fr)){var La=nn(Wr);Oi&&oo&&La.pop(),On(La)}},Jo=function(){wi(rr)&&!ur(Fr)&&kn(Wr,oo)},pa;return typeof rr.title=="string"?pa=rr.title:typeof So=="string"&&(pa=So),Gt.createElement("li",{key:Xo,className:Jt()(hi,(_r={},Se(_r,"".concat(hi,"-expand"),!oo),Se(_r,"".concat(hi,"-active"),Ae===xr||Ae===Xo),Se(_r,"".concat(hi,"-disabled"),ur(Fr)),Se(_r,"".concat(hi,"-loading"),ko),_r)),style:li,role:"menuitemcheckbox",title:pa,"aria-checked":Ko,"data-path-key":Xo,onClick:function(){ra(),!No&&(!Xt||oo)&&Jo()},onDoubleClick:function(){Pr&&en(!1)},onMouseEnter:function(){Oi&&ra()},onMouseDown:function(La){La.preventDefault()}},Xt&&Gt.createElement(Dd,{prefixCls:"".concat(Nt,"-checkbox"),checked:Ko,halfChecked:Fo,disabled:ur(Fr)||No,disableCheckbox:No,onClick:function(La){No||(La.stopPropagation(),Jo())}}),Gt.createElement("div",{className:"".concat(hi,"-content")},dr?dr(rr):So),!ko&&sr&&!oo&&Gt.createElement("div",{className:"".concat(hi,"-expand-icon")},sr),ko&&Yr&&Gt.createElement("div",{className:"".concat(hi,"-loading-icon")},Yr))}))}var ch=function(Nt,Xt){var ee=Gt.useContext(el),Ae=ee.values,Ue=Ae[0],en=Gt.useState([]),kn=ht(en,2),On=kn[0],Ln=kn[1];return Gt.useEffect(function(){Nt||Ln(Ue||[])},[Xt,Ue]),[On,Ln]},kh=ch,$i={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Nt){var Xt=Nt.keyCode;if(Nt.altKey&&!Nt.ctrlKey||Nt.metaKey||Xt>=$i.F1&&Xt<=$i.F12)return!1;switch(Xt){case $i.ALT:case $i.CAPS_LOCK:case $i.CONTEXT_MENU:case $i.CTRL:case $i.DOWN:case $i.END:case $i.ESC:case $i.HOME:case $i.INSERT:case $i.LEFT:case $i.MAC_FF_META:case $i.META:case $i.NUMLOCK:case $i.NUM_CENTER:case $i.PAGE_DOWN:case $i.PAGE_UP:case $i.PAUSE:case $i.PRINT_SCREEN:case $i.RIGHT:case $i.SHIFT:case $i.UP:case $i.WIN_KEY:case $i.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Nt){if(Nt>=$i.ZERO&&Nt<=$i.NINE||Nt>=$i.NUM_ZERO&&Nt<=$i.NUM_MULTIPLY||Nt>=$i.A&&Nt<=$i.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Nt===0)return!0;switch(Nt){case $i.SPACE:case $i.QUESTION_MARK:case $i.NUM_PLUS:case $i.NUM_MINUS:case $i.NUM_PERIOD:case $i.NUM_DIVISION:case $i.SEMICOLON:case $i.DASH:case $i.EQUALS:case $i.COMMA:case $i.PERIOD:case $i.SLASH:case $i.APOSTROPHE:case $i.SINGLE_QUOTE:case $i.OPEN_SQUARE_BRACKET:case $i.BACKSLASH:case $i.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Sl=$i,Ht=function(bt,Nt,Xt,ee,Ae,Ue,en){var kn=en.direction,On=en.searchValue,Ln=en.toggleOpen,Xn=en.open,ni=kn==="rtl",wi=Gt.useMemo(function(){for(var li=-1,dr=Nt,Oi=[],ur=[],Or=ee.length,Bi=Mh(Nt,Xt),_r=function(ko){var Ko=dr.findIndex(function(Fo,rr){return(Bi[rr]?Lu(Bi[rr]):Fo[Xt.value])===ee[ko]});if(Ko===-1)return 1;li=Ko,Oi.push(li),ur.push(ee[ko]),dr=dr[li][Xt.children]},Fr=0;Fr<Or&&dr&&!_r(Fr);Fr+=1);for(var So=Nt,xr=0;xr<Oi.length-1;xr+=1)So=So[Oi[xr]][Xt.children];return[ur,li,So,Bi]},[ee,Xt,Nt]),qn=ht(wi,4),Vn=qn[0],hi=qn[1],Pi=qn[2],ar=qn[3],Pr=function(dr){Ae(dr)},qi=function(dr){var Oi=Pi.length,ur=hi;ur===-1&&dr<0&&(ur=Oi);for(var Or=0;Or<Oi;Or+=1){ur=(ur+dr+Oi)%Oi;var Bi=Pi[ur];if(Bi&&!Bi.disabled){var _r=Vn.slice(0,-1).concat(ar[ur]?Lu(ar[ur]):Bi[Xt.value]);Pr(_r);return}}},sr=function(){if(Vn.length>1){var dr=Vn.slice(0,-1);Pr(dr)}else Ln(!1)},Yr=function(){var dr,Oi=((dr=Pi[hi])===null||dr===void 0?void 0:dr[Xt.children])||[],ur=Oi.find(function(Bi){return!Bi.disabled});if(ur){var Or=[].concat(nn(Vn),[ur[Xt.value]]);Pr(Or)}};Gt.useImperativeHandle(bt,function(){return{onKeyDown:function(dr){var Oi=dr.which;switch(Oi){case Sl.UP:case Sl.DOWN:{var ur=0;Oi===Sl.UP?ur=-1:Oi===Sl.DOWN&&(ur=1),ur!==0&&qi(ur);break}case Sl.LEFT:{if(On)break;ni?Yr():sr();break}case Sl.RIGHT:{if(On)break;ni?sr():Yr();break}case Sl.BACKSPACE:{On||sr();break}case Sl.ENTER:{if(Vn.length){var Or=Pi[hi],Bi=(Or==null?void 0:Or[Ka])||[];Bi.length?Ue(Bi.map(function(_r){return _r[Xt.value]}),Bi[Bi.length-1]):Ue(Vn,Pi[hi])}break}case Sl.ESC:Ln(!1),Xn&&dr.stopPropagation()}},onKeyUp:function(){}}})},ae=Gt.forwardRef(function(bt,Nt){var Xt,ee,Ae,Ue=bt.prefixCls,en=bt.multiple,kn=bt.searchValue,On=bt.toggleOpen,Ln=bt.notFoundContent,Xn=bt.direction,ni=bt.open,wi=bt.disabled,qn=Gt.useRef(null),Vn=Xn==="rtl",hi=Gt.useContext(el),Pi=hi.options,ar=hi.values,Pr=hi.halfValues,qi=hi.fieldNames,sr=hi.changeOnSelect,Yr=hi.onSelect,li=hi.searchOptions,dr=hi.dropdownPrefixCls,Oi=hi.loadData,ur=hi.expandTrigger,Or=dr||Ue,Bi=Gt.useState([]),_r=ht(Bi,2),Fr=_r[0],So=_r[1],xr=function(Ri){if(!(!Oi||kn)){var Vi=nl(Ri,Pi,qi),Cr=Vi.map(function(ao){var Ta=ao.option;return Ta}),uo=Cr[Cr.length-1];if(uo&&!Wu(uo,qi)){var Po=Lu(Ri);So(function(ao){return[].concat(nn(ao),[Po])}),Oi(Cr)}}};Gt.useEffect(function(){Fr.length&&Fr.forEach(function(Nr){var Ri=hh(Nr),Vi=nl(Ri,Pi,qi,!0).map(function(uo){var Po=uo.option;return Po}),Cr=Vi[Vi.length-1];(!Cr||Cr[qi.children]||Wu(Cr,qi))&&So(function(uo){return uo.filter(function(Po){return Po!==Nr})})})},[Pi,Fr,qi]);var oo=Gt.useMemo(function(){return new Set(bh(ar))},[ar]),ko=Gt.useMemo(function(){return new Set(bh(Pr))},[Pr]),Ko=kh(en,ni),Fo=ht(Ko,2),rr=Fo[0],Wr=Fo[1],Xo=function(Ri){Wr(Ri),xr(Ri)},No=function(Ri){if(wi)return!1;var Vi=Ri.disabled,Cr=Wu(Ri,qi);return!Vi&&(Cr||sr||en)},ra=function(Ri,Vi){var Cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Yr(Ri),!en&&(Vi||sr&&(ur==="hover"||Cr))&&On(!1)},Jo=Gt.useMemo(function(){return kn?li:Pi},[kn,li,Pi]),pa=Gt.useMemo(function(){for(var Nr=[{options:Jo}],Ri=Jo,Vi=Mh(Ri,qi),Cr=function(){var ao=rr[uo],Ta=Ri.find(function(da,Ps){return(Vi[Ps]?Lu(Vi[Ps]):da[qi.value])===ao}),as=Ta==null?void 0:Ta[qi.children];if(!(as!=null&&as.length))return 1;Ri=as,Nr.push({options:as})},uo=0;uo<rr.length&&!Cr();uo+=1);return Nr},[Jo,rr,qi]),oa=function(Ri,Vi){No(Vi)&&ra(Ri,Wu(Vi,qi),!0)};Ht(Nt,Jo,qi,rr,Xo,oa,{direction:Xn,searchValue:kn,toggleOpen:On,open:ni}),Gt.useEffect(function(){if(!kn)for(var Nr=0;Nr<rr.length;Nr+=1){var Ri,Vi=rr.slice(0,Nr+1),Cr=Lu(Vi),uo=(Ri=qn.current)===null||Ri===void 0?void 0:Ri.querySelector('li[data-path-key="'.concat(Cr.replace(/\\{0,2}"/g,'\\"'),'"]'));uo&&Nd(uo)}},[rr,kn]);var La=!((Xt=pa[0])!==null&&Xt!==void 0&&(Xt=Xt.options)!==null&&Xt!==void 0&&Xt.length),ys=[(ee={},Se(ee,qi.value,"__EMPTY__"),Se(ee,$d,Ln),Se(ee,"disabled",!0),ee)],Da=qt(qt({},bt),{},{multiple:!La&&en,onSelect:ra,onActive:Xo,onToggleOpen:On,checkedSet:oo,halfCheckedSet:ko,loadingKeys:Fr,isSelectable:No}),Ir=La?[{options:ys}]:pa,Tr=Ir.map(function(Nr,Ri){var Vi=rr.slice(0,Ri),Cr=rr[Ri];return Gt.createElement(tc,kt({key:Ri},Da,{prefixCls:Or,options:Nr.options,prevValuePath:Vi,activeValue:Cr}))});return Gt.createElement(od,{open:ni},Gt.createElement("div",{className:Jt()("".concat(Or,"-menus"),(Ae={},Se(Ae,"".concat(Or,"-menu-empty"),La),Se(Ae,"".concat(Or,"-rtl"),Vn),Ae)),ref:qn},Tr))}),ce=ae,ge=Gt.forwardRef(function(bt,Nt){var Xt=Yi();return Gt.createElement(ce,kt({},bt,Xt,{ref:Nt}))}),ke=ge,Ge=Dt(80705);function Je(bt,Nt,Xt){var ee=React.useRef({});return(!("value"in ee.current)||Xt(ee.current.condition,Nt))&&(ee.current.value=bt(),ee.current.condition=Nt),ee.current.value}var hn=Symbol.for("react.element"),Tn=Symbol.for("react.transitional.element"),Pn=Symbol.for("react.fragment");function si(bt){return bt&&_typeof(bt)==="object"&&(bt.$$typeof===hn||bt.$$typeof===Tn)&&bt.type===Pn}var bn=Number(Gt.version.split(".")[0]),Qn=function(Nt,Xt){typeof Nt=="function"?Nt(Xt):_typeof(Nt)==="object"&&Nt&&"current"in Nt&&(Nt.current=Xt)},jn=function(){for(var Nt=arguments.length,Xt=new Array(Nt),ee=0;ee<Nt;ee++)Xt[ee]=arguments[ee];var Ae=Xt.filter(Boolean);return Ae.length<=1?Ae[0]:function(Ue){Xt.forEach(function(en){Qn(en,Ue)})}},gi=function(){for(var Nt=arguments.length,Xt=new Array(Nt),ee=0;ee<Nt;ee++)Xt[ee]=arguments[ee];return useMemo(function(){return jn.apply(void 0,Xt)},Xt,function(Ae,Ue){return Ae.length!==Ue.length||Ae.every(function(en,kn){return en!==Ue[kn]})})},Ti=function(Nt){var Xt,ee;if(!Nt)return!1;if(Zi(Nt)&&bn>=19)return!0;var Ae=isMemo(Nt)?Nt.type.type:Nt.type;return!(typeof Ae=="function"&&!((Xt=Ae.prototype)!==null&&Xt!==void 0&&Xt.render)&&Ae.$$typeof!==ForwardRef||typeof Nt=="function"&&!((ee=Nt.prototype)!==null&&ee!==void 0&&ee.render)&&Nt.$$typeof!==ForwardRef)};function Zi(bt){return isValidElement(bt)&&!isFragment(bt)}var vr=function(Nt){return Zi(Nt)&&Ti(Nt)},Ci=function(Nt){if(Nt&&Zi(Nt)){var Xt=Nt;return Xt.props.propertyIsEnumerable("ref")?Xt.props.ref:Xt.ref}return null};function Ki(bt,Nt,Xt,ee){if(!Nt.length)return Xt;var Ae=_toArray(Nt),Ue=Ae[0],en=Ae.slice(1),kn;return!bt&&typeof Ue=="number"?kn=[]:Array.isArray(bt)?kn=_toConsumableArray(bt):kn=_objectSpread({},bt),ee&&Xt===void 0&&en.length===1?delete kn[Ue][en[0]]:kn[Ue]=Ki(kn[Ue],en,Xt,ee),kn}function ki(bt,Nt,Xt){var ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Nt.length&&ee&&Xt===void 0&&!get(bt,Nt.slice(0,-1))?bt:Ki(bt,Nt,Xt,ee)}function gr(bt){return _typeof(bt)==="object"&&bt!==null&&Object.getPrototypeOf(bt)===Object.prototype}function Kr(bt){return Array.isArray(bt)?[]:{}}var hr=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Mo(){for(var bt=arguments.length,Nt=new Array(bt),Xt=0;Xt<bt;Xt++)Nt[Xt]=arguments[Xt];var ee=Kr(Nt[0]);return Nt.forEach(function(Ae){function Ue(en,kn){var On=new Set(kn),Ln=get(Ae,en),Xn=Array.isArray(Ln);if(Xn||gr(Ln)){if(!On.has(Ln)){On.add(Ln);var ni=get(ee,en);Xn?ee=ki(ee,en,[]):(!ni||_typeof(ni)!=="object")&&(ee=ki(ee,en,Kr(Ln))),hr(Ln).forEach(function(wi){Ue([].concat(_toConsumableArray(en),[wi]),On)})}}else ee=ki(ee,en,Ln)}Ue([])}),ee}function Vr(){}function Bo(bt){var Nt,Xt=bt,ee=Xt.prefixCls,Ae=ee===void 0?"rc-cascader":ee,Ue=Xt.style,en=Xt.className,kn=Xt.options,On=Xt.checkable,Ln=Xt.defaultValue,Xn=Xt.value,ni=Xt.fieldNames,wi=Xt.changeOnSelect,qn=Xt.onChange,Vn=Xt.showCheckedStrategy,hi=Xt.loadData,Pi=Xt.expandTrigger,ar=Xt.expandIcon,Pr=ar===void 0?">":ar,qi=Xt.loadingIcon,sr=Xt.direction,Yr=Xt.notFoundContent,li=Yr===void 0?"Not Found":Yr,dr=Xt.disabled,Oi=!!On,ur=zs(Ln,{value:Xn,postState:kr}),Or=ht(ur,2),Bi=Or[0],_r=Or[1],Fr=Gt.useMemo(function(){return ju(ni)},[JSON.stringify(ni)]),So=Na(Fr,kn),xr=ht(So,3),oo=xr[0],ko=xr[1],Ko=xr[2],Fo=Do(oo,Fr),rr=Ho(Oi,Bi,ko,Ko,Fo),Wr=ht(rr,3),Xo=Wr[0],No=Wr[1],ra=Wr[2],Jo=Eu(function(Ir){if(_r(Ir),qn){var Tr=kr(Ir),Nr=Tr.map(function(Cr){return nl(Cr,oo,Fr).map(function(uo){return uo.option})}),Ri=Oi?Tr:Tr[0],Vi=Oi?Nr:Nr[0];qn(Ri,Vi)}}),pa=Fc(Oi,Jo,Xo,No,ra,ko,Ko,Vn),oa=Eu(function(Ir){pa(Ir)}),La=Gt.useMemo(function(){return{options:oo,fieldNames:Fr,values:Xo,halfValues:No,changeOnSelect:wi,onSelect:oa,checkable:On,searchOptions:[],dropdownPrefixCls:void 0,loadData:hi,expandTrigger:Pi,expandIcon:Pr,loadingIcon:qi,dropdownMenuColumnStyle:void 0}},[oo,Fr,Xo,No,wi,oa,On,hi,Pi,Pr,qi]),ys="".concat(Ae,"-panel"),Da=!oo.length;return Gt.createElement(el.Provider,{value:La},Gt.createElement("div",{className:Jt()(ys,(Nt={},Se(Nt,"".concat(ys,"-rtl"),sr==="rtl"),Se(Nt,"".concat(ys,"-empty"),Da),Nt),en),style:Ue},Da?li:Gt.createElement(ce,{prefixCls:Ae,searchValue:"",multiple:Oi,toggleOpen:Vr,open:!0,direction:sr,disabled:dr})))}function ka(bt){var Nt=bt.onPopupVisibleChange,Xt=bt.popupVisible,ee=bt.popupClassName,Ae=bt.popupPlacement;warning(!Nt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Xt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(ee===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Ae===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Go(bt,Nt){if(bt){var Xt=function ee(Ae){for(var Ue=0;Ue<Ae.length;Ue++){var en=Ae[Ue];if(en[Nt==null?void 0:Nt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(en[Nt==null?void 0:Nt.children])&&ee(en[Nt==null?void 0:Nt.children]))return!0}};Xt(bt)}}var Ur=null,Zr=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Mi=Gt.forwardRef(function(bt,Nt){var Xt=bt.id,ee=bt.prefixCls,Ae=ee===void 0?"rc-cascader":ee,Ue=bt.fieldNames,en=bt.defaultValue,kn=bt.value,On=bt.changeOnSelect,Ln=bt.onChange,Xn=bt.displayRender,ni=bt.checkable,wi=bt.autoClearSearchValue,qn=wi===void 0?!0:wi,Vn=bt.searchValue,hi=bt.onSearch,Pi=bt.showSearch,ar=bt.expandTrigger,Pr=bt.options,qi=bt.dropdownPrefixCls,sr=bt.loadData,Yr=bt.popupVisible,li=bt.open,dr=bt.popupClassName,Oi=bt.dropdownClassName,ur=bt.dropdownMenuColumnStyle,Or=bt.dropdownStyle,Bi=bt.popupPlacement,_r=bt.placement,Fr=bt.onDropdownVisibleChange,So=bt.onPopupVisibleChange,xr=bt.expandIcon,oo=xr===void 0?">":xr,ko=bt.loadingIcon,Ko=bt.children,Fo=bt.dropdownMatchSelectWidth,rr=Fo===void 0?!1:Fo,Wr=bt.showCheckedStrategy,Xo=Wr===void 0?pe:Wr,No=bt.optionRender,ra=pt(bt,Zr),Jo=ps(Xt),pa=!!ni,oa=zs(en,{value:kn,postState:kr}),La=ht(oa,2),ys=La[0],Da=La[1],Ir=Gt.useMemo(function(){return ju(Ue)},[JSON.stringify(Ue)]),Tr=Na(Ir,Pr),Nr=ht(Tr,3),Ri=Nr[0],Vi=Nr[1],Cr=Nr[2],uo=zs("",{value:Vn,postState:function(to){return to||""}}),Po=ht(uo,2),ao=Po[0],Ta=Po[1],as=function(to,sa){Ta(to),sa.source!=="blur"&&hi&&hi(to)},da=Gh(Pi),Ps=ht(da,2),Ma=Ps[0],za=Ps[1],Va=er(ao,Ri,Ir,qi||Ae,za,On||pa),Ts=Do(Ri,Ir),Xa=Ho(pa,ys,Vi,Cr,Ts),Ja=ht(Xa,3),Aa=Ja[0],Ua=Ja[1],Vs=Ja[2],Js=Gt.useMemo(function(){var Cs=bh(Aa),to=il(Cs,Vi,Xo);return[].concat(nn(Vs),nn(Cr(to)))},[Aa,Vi,Cr,Vs,Xo]),Ar=Ya(Js,Ri,Ir,pa,Xn),lr=Eu(function(Cs){if(Da(Cs),Ln){var to=kr(Cs),sa=to.map(function(wl){return nl(wl,Ri,Ir).map(function(so){return so.option})}),ro=pa?to:to[0],Bs=pa?sa:sa[0];Ln(ro,Bs)}}),Sr=Fc(pa,lr,Aa,Ua,Vs,Vi,Cr,Xo),Ro=Eu(function(Cs){(!pa||qn)&&Ta(""),Sr(Cs)}),Qa=function(to,sa){if(sa.type==="clear"){lr([]);return}var ro=sa.values[0],Bs=ro.valueCells;Ro(Bs)},Ss=li!==void 0?li:Yr,rl=Oi||dr,ye=_r||Bi,xl=function(to){Fr==null||Fr(to),So==null||So(to)},Ms=Gt.useMemo(function(){return{options:Ri,fieldNames:Ir,values:Aa,halfValues:Ua,changeOnSelect:On,onSelect:Ro,checkable:ni,searchOptions:Va,dropdownPrefixCls:qi,loadData:sr,expandTrigger:ar,expandIcon:oo,loadingIcon:ko,dropdownMenuColumnStyle:ur,optionRender:No}},[Ri,Ir,Aa,Ua,On,Ro,ni,Va,qi,sr,ar,oo,ko,ur,No]),Nl=!(ao?Va:Ri).length,Au=ao&&za.matchInputWidth||Nl?{}:{minWidth:"auto"};return Gt.createElement(el.Provider,{value:Ms},Gt.createElement(du,kt({},ra,{ref:Nt,id:Jo,prefixCls:Ae,autoClearSearchValue:qn,dropdownMatchSelectWidth:rr,dropdownStyle:qt(qt({},Au),Or),displayValues:Ar,onDisplayValuesChange:Qa,mode:pa?"multiple":void 0,searchValue:ao,onSearch:as,showSearch:Ma,OptionList:ke,emptyOptions:Nl,open:Ss,dropdownClassName:rl,placement:ye,onDropdownVisibleChange:xl,getRawInputElement:function(){return Ko}})))});Mi.SHOW_PARENT=pe,Mi.SHOW_CHILD=yn,Mi.Panel=Bo;var yr=Mi,no=yr},42767:function(xn,$n){"use strict";var Dt;var kt=typeof Symbol=="function"&&Symbol.for,le=kt?Symbol.for("react.element"):60103,ze=kt?Symbol.for("react.portal"):60106,Ye=kt?Symbol.for("react.fragment"):60107,Se=kt?Symbol.for("react.strict_mode"):60108,Ot=kt?Symbol.for("react.profiler"):60114,qt=kt?Symbol.for("react.provider"):60109,Ee=kt?Symbol.for("react.context"):60110,me=kt?Symbol.for("react.async_mode"):60111,ve=kt?Symbol.for("react.concurrent_mode"):60111,Ze=kt?Symbol.for("react.forward_ref"):60112,Ce=kt?Symbol.for("react.suspense"):60113,nn=kt?Symbol.for("react.suspense_list"):60120,Tt=kt?Symbol.for("react.memo"):60115,nt=kt?Symbol.for("react.lazy"):60116,et=kt?Symbol.for("react.block"):60121,ht=kt?Symbol.for("react.fundamental"):60117,lt=kt?Symbol.for("react.responder"):60118,pt=kt?Symbol.for("react.scope"):60119;function vt(Lt){if(typeof Lt=="object"&&Lt!==null){var It=Lt.$$typeof;switch(It){case le:switch(Lt=Lt.type,Lt){case me:case ve:case Ye:case Ot:case Se:case Ce:return Lt;default:switch(Lt=Lt&&Lt.$$typeof,Lt){case Ee:case Ze:case nt:case Tt:case qt:return Lt;default:return It}}case ze:return It}}}function St(Lt){return vt(Lt)===ve}Dt=me,Dt=ve,Dt=Ee,Dt=qt,Dt=le,Dt=Ze,Dt=Ye,Dt=nt,Dt=Tt,Dt=ze,Dt=Ot,Dt=Se,Dt=Ce,Dt=function(Lt){return St(Lt)||vt(Lt)===me},Dt=St,Dt=function(Lt){return vt(Lt)===Ee},Dt=function(Lt){return vt(Lt)===qt},Dt=function(Lt){return typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===le},Dt=function(Lt){return vt(Lt)===Ze},$n.isFragment=function(Lt){return vt(Lt)===Ye},Dt=function(Lt){return vt(Lt)===nt},Dt=function(Lt){return vt(Lt)===Tt},Dt=function(Lt){return vt(Lt)===ze},Dt=function(Lt){return vt(Lt)===Ot},Dt=function(Lt){return vt(Lt)===Se},Dt=function(Lt){return vt(Lt)===Ce},Dt=function(Lt){return typeof Lt=="string"||typeof Lt=="function"||Lt===Ye||Lt===ve||Lt===Ot||Lt===Se||Lt===Ce||Lt===nn||typeof Lt=="object"&&Lt!==null&&(Lt.$$typeof===nt||Lt.$$typeof===Tt||Lt.$$typeof===qt||Lt.$$typeof===Ee||Lt.$$typeof===Ze||Lt.$$typeof===ht||Lt.$$typeof===lt||Lt.$$typeof===pt||Lt.$$typeof===et)},Dt=vt},16357:function(xn,$n,Dt){"use strict";xn.exports=Dt(42767)},16404:function(xn,$n){"use strict";var Dt;var kt=Symbol.for("react.element"),le=Symbol.for("react.portal"),ze=Symbol.for("react.fragment"),Ye=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Ot=Symbol.for("react.provider"),qt=Symbol.for("react.context"),Ee=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),ve=Symbol.for("react.suspense"),Ze=Symbol.for("react.suspense_list"),Ce=Symbol.for("react.memo"),nn=Symbol.for("react.lazy"),Tt=Symbol.for("react.offscreen"),nt;nt=Symbol.for("react.module.reference");function et(ht){if(typeof ht=="object"&&ht!==null){var lt=ht.$$typeof;switch(lt){case kt:switch(ht=ht.type,ht){case ze:case Se:case Ye:case ve:case Ze:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case Ee:case qt:case me:case nn:case Ce:case Ot:return ht;default:return lt}}case le:return lt}}}Dt=qt,Dt=Ot,Dt=kt,Dt=me,Dt=ze,Dt=nn,Dt=Ce,Dt=le,Dt=Se,Dt=Ye,Dt=ve,Dt=Ze,Dt=function(){return!1},Dt=function(){return!1},Dt=function(ht){return et(ht)===qt},Dt=function(ht){return et(ht)===Ot},Dt=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===kt},Dt=function(ht){return et(ht)===me},Dt=function(ht){return et(ht)===ze},Dt=function(ht){return et(ht)===nn},Dt=function(ht){return et(ht)===Ce},Dt=function(ht){return et(ht)===le},Dt=function(ht){return et(ht)===Se},Dt=function(ht){return et(ht)===Ye},Dt=function(ht){return et(ht)===ve},Dt=function(ht){return et(ht)===Ze},Dt=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===ze||ht===Se||ht===Ye||ht===ve||ht===Ze||ht===Tt||typeof ht=="object"&&ht!==null&&(ht.$$typeof===nn||ht.$$typeof===Ce||ht.$$typeof===Ot||ht.$$typeof===qt||ht.$$typeof===me||ht.$$typeof===nt||ht.getModuleId!==void 0)},Dt=et},80705:function(xn,$n,Dt){"use strict";Dt(16404)},31457:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return Oe}});var kt=Dt(4942),le=Dt(87462),ze=Dt(71002),Ye=Dt(1413),Se=Dt(97685),Ot=Dt(94184),qt=Dt.n(Ot),Ee=Dt(67294);function me(dn){var He=Ee.useRef();He.current=dn;var jt=Ee.useCallback(function(){for(var Pt,wt=arguments.length,Ft=new Array(wt),Wt=0;Wt<wt;Wt++)Ft[Wt]=arguments[Wt];return(Pt=He.current)===null||Pt===void 0?void 0:Pt.call.apply(Pt,[He].concat(Ft))},[]);return jt}function ve(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ze=ve()?Ee.useLayoutEffect:Ee.useEffect,Ce=function(He,jt){var Pt=Ee.useRef(!0);Ze(function(){return He(Pt.current)},jt),Ze(function(){return Pt.current=!1,function(){Pt.current=!0}},[])},nn=function(He,jt){Ce(function(Pt){if(!Pt)return He()},jt)},Tt=null;function nt(dn){var He=Ee.useRef(!1),jt=Ee.useState(dn),Pt=(0,Se.Z)(jt,2),wt=Pt[0],Ft=Pt[1];Ee.useEffect(function(){return He.current=!1,function(){He.current=!0}},[]);function Wt(At,Jt){Jt&&He.current||Ft(At)}return[wt,Wt]}function et(dn){return dn!==void 0}function ht(dn,He){var jt=He||{},Pt=jt.defaultValue,wt=jt.value,Ft=jt.onChange,Wt=jt.postState,At=nt(function(){return et(wt)?wt:et(Pt)?typeof Pt=="function"?Pt():Pt:typeof dn=="function"?dn():dn}),Jt=(0,Se.Z)(At,2),Xe=Jt[0],zn=Jt[1],En=wt!==void 0?wt:Xe,Ve=Wt?Wt(En):En,wn=me(Ft),De=nt([En]),An=(0,Se.Z)(De,2),Hn=An[0],Si=An[1];nn(function(){var Ui=Hn[0];Xe!==Ui&&wn(Xe,Ui)},[Hn]),nn(function(){et(wt)||zn(wt)},[wt]);var Un=me(function(Ui,Yi){zn(Ui,Yi),Si([En],Yi)});return[Ve,Un]}var lt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(He){var jt=He.keyCode;if(He.altKey&&!He.ctrlKey||He.metaKey||jt>=lt.F1&&jt<=lt.F12)return!1;switch(jt){case lt.ALT:case lt.CAPS_LOCK:case lt.CONTEXT_MENU:case lt.CTRL:case lt.DOWN:case lt.END:case lt.ESC:case lt.HOME:case lt.INSERT:case lt.LEFT:case lt.MAC_FF_META:case lt.META:case lt.NUMLOCK:case lt.NUM_CENTER:case lt.PAGE_DOWN:case lt.PAGE_UP:case lt.PAUSE:case lt.PRINT_SCREEN:case lt.RIGHT:case lt.SHIFT:case lt.UP:case lt.WIN_KEY:case lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(He){if(He>=lt.ZERO&&He<=lt.NINE||He>=lt.NUM_ZERO&&He<=lt.NUM_MULTIPLY||He>=lt.A&&He<=lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&He===0)return!0;switch(He){case lt.SPACE:case lt.QUESTION_MARK:case lt.NUM_PLUS:case lt.NUM_MINUS:case lt.NUM_PERIOD:case lt.NUM_DIVISION:case lt.SEMICOLON:case lt.DASH:case lt.EQUALS:case lt.COMMA:case lt.PERIOD:case lt.SLASH:case lt.APOSTROPHE:case lt.SINGLE_QUOTE:case lt.OPEN_SQUARE_BRACKET:case lt.BACKSLASH:case lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},pt=lt,vt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,St=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Lt="".concat(vt," ").concat(St).split(/[\s\n]+/),It="aria-",Yt="data-";function ie(dn,He){return dn.indexOf(He)===0}function re(dn){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,jt;He===!1?jt={aria:!0,data:!0,attr:!0}:He===!0?jt={aria:!0}:jt=(0,Ye.Z)({},He);var Pt={};return Object.keys(dn).forEach(function(wt){(jt.aria&&(wt==="role"||ie(wt,It))||jt.data&&ie(wt,Yt)||jt.attr&&Lt.includes(wt))&&(Pt[wt]=dn[wt])}),Pt}var Qt={},xe=[],he=function(He){xe.push(He)};function Le(dn,He){if(0)var jt}function Qe(dn,He){if(0)var jt}function Fe(){Qt={}}function Gn(dn,He,jt){!He&&!Qt[jt]&&(dn(!1,jt),Qt[jt]=!0)}function Jn(dn,He){Gn(Le,dn,He)}function Ke(dn,He){Gn(Qe,dn,He)}Jn.preMessage=he,Jn.resetWarned=Fe,Jn.noteOnce=Ke;var Dn=null,$t=Dt(81626),zt=[10,20,50,100],Gt=function(He){var jt=He.pageSizeOptions,Pt=jt===void 0?zt:jt,wt=He.locale,Ft=He.changeSize,Wt=He.pageSize,At=He.goButton,Jt=He.quickGo,Xe=He.rootPrefixCls,zn=He.disabled,En=He.buildOptionText,Ve=He.showSizeChanger,wn=He.sizeChangerRender,De=Ee.useState(""),An=(0,Se.Z)(De,2),Hn=An[0],Si=An[1],Un=function(){return!Hn||Number.isNaN(Hn)?void 0:Number(Hn)},Ui=typeof En=="function"?En:function(Li){return"".concat(Li," ").concat(wt.items_per_page)},Yi=function(jr){Si(jr.target.value)},di=function(jr){At||Hn===""||(Si(""),!(jr.relatedTarget&&(jr.relatedTarget.className.indexOf("".concat(Xe,"-item-link"))>=0||jr.relatedTarget.className.indexOf("".concat(Xe,"-item"))>=0))&&(Jt==null||Jt(Un())))},vi=function(jr){Hn!==""&&(jr.keyCode===pt.ENTER||jr.type==="click")&&(Si(""),Jt==null||Jt(Un()))},br=function(){return Pt.some(function(jr){return jr.toString()===Wt.toString()})?Pt:Pt.concat([Wt]).sort(function(jr,Lo){var ta=Number.isNaN(Number(jr))?0:Number(jr),_o=Number.isNaN(Number(Lo))?0:Number(Lo);return ta-_o})},ii="".concat(Xe,"-options");if(!Ve&&!Jt)return null;var mi=null,Br=null,Gr=null;return Ve&&wn&&(mi=wn({disabled:zn,size:Wt,onSizeChange:function(jr){Ft==null||Ft(Number(jr))},"aria-label":wt.page_size,className:"".concat(ii,"-size-changer"),options:br().map(function(Li){return{label:Ui(Li),value:Li}})})),Jt&&(At&&(Gr=typeof At=="boolean"?Ee.createElement("button",{type:"button",onClick:vi,onKeyUp:vi,disabled:zn,className:"".concat(ii,"-quick-jumper-button")},wt.jump_to_confirm):Ee.createElement("span",{onClick:vi,onKeyUp:vi},At)),Br=Ee.createElement("div",{className:"".concat(ii,"-quick-jumper")},wt.jump_to,Ee.createElement("input",{disabled:zn,type:"text",value:Hn,onChange:Yi,onKeyUp:vi,onBlur:di,"aria-label":wt.page}),wt.page,Gr)),Ee.createElement("li",{className:ii},mi,Br)},_e=Gt,Sn=function(He){var jt=He.rootPrefixCls,Pt=He.page,wt=He.active,Ft=He.className,Wt=He.showTitle,At=He.onClick,Jt=He.onKeyPress,Xe=He.itemRender,zn="".concat(jt,"-item"),En=qt()(zn,"".concat(zn,"-").concat(Pt),(0,kt.Z)((0,kt.Z)({},"".concat(zn,"-active"),wt),"".concat(zn,"-disabled"),!Pt),Ft),Ve=function(){At(Pt)},wn=function(Hn){Jt(Hn,At,Pt)},De=Xe(Pt,"page",Ee.createElement("a",{rel:"nofollow"},Pt));return De?Ee.createElement("li",{title:Wt?String(Pt):null,className:En,onClick:Ve,onKeyDown:wn,tabIndex:0},De):null},we=Sn,rn=function(He,jt,Pt){return Pt};function an(){}function Wn(dn){var He=Number(dn);return typeof He=="number"&&!Number.isNaN(He)&&isFinite(He)&&Math.floor(He)===He}function Ne(dn,He,jt){var Pt=typeof dn=="undefined"?He:dn;return Math.floor((jt-1)/Pt)+1}var de=function(He){var jt=He.prefixCls,Pt=jt===void 0?"rc-pagination":jt,wt=He.selectPrefixCls,Ft=wt===void 0?"rc-select":wt,Wt=He.className,At=He.current,Jt=He.defaultCurrent,Xe=Jt===void 0?1:Jt,zn=He.total,En=zn===void 0?0:zn,Ve=He.pageSize,wn=He.defaultPageSize,De=wn===void 0?10:wn,An=He.onChange,Hn=An===void 0?an:An,Si=He.hideOnSinglePage,Un=He.align,Ui=He.showPrevNextJumpers,Yi=Ui===void 0?!0:Ui,di=He.showQuickJumper,vi=He.showLessItems,br=He.showTitle,ii=br===void 0?!0:br,mi=He.onShowSizeChange,Br=mi===void 0?an:mi,Gr=He.locale,Li=Gr===void 0?$t.Z:Gr,jr=He.style,Lo=He.totalBoundaryShowSizeChanger,ta=Lo===void 0?50:Lo,_o=He.disabled,Io=He.simple,ea=He.showTotal,To=He.showSizeChanger,mr=To===void 0?En>ta:To,cn=He.sizeChangerRender,xt=He.pageSizeOptions,In=He.itemRender,gn=In===void 0?rn:In,Fn=He.jumpPrevIcon,Nn=He.jumpNextIcon,Rn=He.prevIcon,ri=He.nextIcon,Ii=Ee.useRef(null),Ie=ht(10,{value:Ve,defaultValue:De}),Re=(0,Se.Z)(Ie,2),se=Re[0],je=Re[1],ti=ht(1,{value:At,defaultValue:Xe,postState:function(fr){return Math.max(1,Math.min(fr,Ne(void 0,se,En)))}}),_n=(0,Se.Z)(ti,2),Zn=_n[0],Me=_n[1],un=Ee.useState(Zn),xi=(0,Se.Z)(un,2),Di=xi[0],Cn=xi[1];(0,Ee.useEffect)(function(){Cn(Zn)},[Zn]);var be=Hn!==an,fi="current"in He,Wi=Math.max(1,Zn-(vi?3:5)),Er=Math.min(Ne(void 0,se,En),Zn+(vi?3:5));function fn($e,fr){var eo=$e||Ee.createElement("button",{type:"button","aria-label":fr,className:"".concat(Pt,"-item-link")});return typeof $e=="function"&&(eo=Ee.createElement($e,(0,Ye.Z)({},He))),eo}function bi($e){var fr=$e.target.value,eo=Ne(void 0,se,En),wa;return fr===""?wa=fr:Number.isNaN(Number(fr))?wa=Di:fr>=eo?wa=eo:wa=Number(fr),wa}function Mr($e){return Wn($e)&&$e!==Zn&&Wn(En)&&En>0}var na=En>se?di:!1;function Ao($e){($e.keyCode===pt.UP||$e.keyCode===pt.DOWN)&&$e.preventDefault()}function Fi($e){var fr=bi($e);switch(fr!==Di&&Cn(fr),$e.keyCode){case pt.ENTER:Jr(fr);break;case pt.UP:Jr(fr-1);break;case pt.DOWN:Jr(fr+1);break;default:break}}function Ai($e){Jr(bi($e))}function zi($e){var fr=Ne($e,se,En),eo=Zn>fr&&fr!==0?fr:Zn;je($e),Cn(eo),Br==null||Br(Zn,$e),Me(eo),Hn==null||Hn(eo,$e)}function Jr($e){if(Mr($e)&&!_o){var fr=Ne(void 0,se,En),eo=$e;return $e>fr?eo=fr:$e<1&&(eo=1),eo!==Di&&Cn(eo),Me(eo),Hn==null||Hn(eo,se),eo}return Zn}var bo=Zn>1,Yn=Zn<Ne(void 0,se,En);function tr(){bo&&Jr(Zn-1)}function qs(){Yn&&Jr(Zn+1)}function ns(){Jr(Wi)}function Wa(){Jr(Er)}function Te($e,fr){if($e.key==="Enter"||$e.charCode===pt.ENTER||$e.keyCode===pt.ENTER){for(var eo=arguments.length,wa=new Array(eo>2?eo-2:0),ua=2;ua<eo;ua++)wa[ua-2]=arguments[ua];fr.apply(void 0,wa)}}function cr($e){Te($e,tr)}function co($e){Te($e,qs)}function _i($e){Te($e,ns)}function fa($e){Te($e,Wa)}function fo($e){var fr=gn($e,"prev",fn(Rn,"prev page"));return Ee.isValidElement(fr)?Ee.cloneElement(fr,{disabled:!bo}):fr}function Co($e){var fr=gn($e,"next",fn(ri,"next page"));return Ee.isValidElement(fr)?Ee.cloneElement(fr,{disabled:!Yn}):fr}function Qr($e){($e.type==="click"||$e.keyCode===pt.ENTER)&&Jr(Di)}var io=null,Zo=re(He,{aria:!0,data:!0}),vn=ea&&Ee.createElement("li",{className:"".concat(Pt,"-total-text")},ea(En,[En===0?0:(Zn-1)*se+1,Zn*se>En?En:Zn*se])),ma=null,sn=Ne(void 0,se,En);if(Si&&En<=se)return null;var lo=[],bs={rootPrefixCls:Pt,onClick:Jr,onKeyPress:Te,showTitle:ii,itemRender:gn,page:-1},xa=Zn-1>0?Zn-1:0,fl=Zn+1<sn?Zn+1:sn,va=di&&di.goButton,yo=(0,ze.Z)(Io)==="object"?Io.readOnly:!Io,ya=va,Ys=null;Io&&(va&&(typeof va=="boolean"?ya=Ee.createElement("button",{type:"button",onClick:Qr,onKeyUp:Qr},Li.jump_to_confirm):ya=Ee.createElement("span",{onClick:Qr,onKeyUp:Qr},va),ya=Ee.createElement("li",{title:ii?"".concat(Li.jump_to).concat(Zn,"/").concat(sn):null,className:"".concat(Pt,"-simple-pager")},ya)),Ys=Ee.createElement("li",{title:ii?"".concat(Zn,"/").concat(sn):null,className:"".concat(Pt,"-simple-pager")},yo?Di:Ee.createElement("input",{type:"text","aria-label":Li.jump_to,value:Di,disabled:_o,onKeyDown:Ao,onKeyUp:Fi,onChange:Fi,onBlur:Ai,size:3}),Ee.createElement("span",{className:"".concat(Pt,"-slash")},"/"),sn));var $o=vi?1:2;if(sn<=3+$o*2){sn||lo.push(Ee.createElement(we,(0,le.Z)({},bs,{key:"noPager",page:1,className:"".concat(Pt,"-item-disabled")})));for(var ci=1;ci<=sn;ci+=1)lo.push(Ee.createElement(we,(0,le.Z)({},bs,{key:ci,page:ci,active:Zn===ci})))}else{var Zt=vi?Li.prev_3:Li.prev_5,ts=vi?Li.next_3:Li.next_5,uu=gn(Wi,"jump-prev",fn(Fn,"prev page")),hu=gn(Er,"jump-next",fn(Nn,"next page"));Yi&&(io=uu?Ee.createElement("li",{title:ii?Zt:null,key:"prev",onClick:ns,tabIndex:0,onKeyDown:_i,className:qt()("".concat(Pt,"-jump-prev"),(0,kt.Z)({},"".concat(Pt,"-jump-prev-custom-icon"),!!Fn))},uu):null,ma=hu?Ee.createElement("li",{title:ii?ts:null,key:"next",onClick:Wa,tabIndex:0,onKeyDown:fa,className:qt()("".concat(Pt,"-jump-next"),(0,kt.Z)({},"".concat(Pt,"-jump-next-custom-icon"),!!Nn))},hu):null);var Xs=Math.max(1,Zn-$o),xu=Math.min(Zn+$o,sn);Zn-1<=$o&&(xu=1+$o*2),sn-Zn<=$o&&(Xs=sn-$o*2);for(var Vl=Xs;Vl<=xu;Vl+=1)lo.push(Ee.createElement(we,(0,le.Z)({},bs,{key:Vl,page:Vl,active:Zn===Vl})));if(Zn-1>=$o*2&&Zn!==3&&(lo[0]=Ee.cloneElement(lo[0],{className:qt()("".concat(Pt,"-item-after-jump-prev"),lo[0].props.className)}),lo.unshift(io)),sn-Zn>=$o*2&&Zn!==sn-2){var lh=lo[lo.length-1];lo[lo.length-1]=Ee.cloneElement(lh,{className:qt()("".concat(Pt,"-item-before-jump-next"),lh.props.className)}),lo.push(ma)}Xs!==1&&lo.unshift(Ee.createElement(we,(0,le.Z)({},bs,{key:1,page:1}))),xu!==sn&&lo.push(Ee.createElement(we,(0,le.Z)({},bs,{key:sn,page:sn})))}var wu=fo(xa);if(wu){var ga=!bo||!sn;wu=Ee.createElement("li",{title:ii?Li.prev_page:null,onClick:tr,tabIndex:ga?null:0,onKeyDown:cr,className:qt()("".concat(Pt,"-prev"),(0,kt.Z)({},"".concat(Pt,"-disabled"),ga)),"aria-disabled":ga},wu)}var Ha=Co(fl);if(Ha){var or,Xi;Io?(or=!Yn,Xi=bo?0:null):(or=!Yn||!sn,Xi=or?null:0),Ha=Ee.createElement("li",{title:ii?Li.next_page:null,onClick:qs,tabIndex:Xi,onKeyDown:co,className:qt()("".concat(Pt,"-next"),(0,kt.Z)({},"".concat(Pt,"-disabled"),or)),"aria-disabled":or},Ha)}var zr=qt()(Pt,Wt,(0,kt.Z)((0,kt.Z)((0,kt.Z)((0,kt.Z)((0,kt.Z)({},"".concat(Pt,"-start"),Un==="start"),"".concat(Pt,"-center"),Un==="center"),"".concat(Pt,"-end"),Un==="end"),"".concat(Pt,"-simple"),Io),"".concat(Pt,"-disabled"),_o));return Ee.createElement("ul",(0,le.Z)({className:zr,style:jr,ref:Ii},Zo),vn,wu,Io?Ys:lo,Ha,Ee.createElement(_e,{locale:Li,rootPrefixCls:Pt,disabled:_o,selectPrefixCls:Ft,changeSize:zi,pageSize:se,pageSizeOptions:xt,quickGo:na?Jr:null,goButton:ya,showSizeChanger:mr,sizeChangerRender:cn}))},Oe=de},43579:function(xn,$n,Dt){"use strict";Dt.d($n,{Cd:function(){return xe}});var kt=Dt(87462),le=Dt(1413),ze=Dt(45987),Ye=Dt(67294),Se=Dt(94184),Ot=Dt.n(Se),qt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ee=function(){var Qe=(0,Ye.useRef)([]),Fe=(0,Ye.useRef)(null);return(0,Ye.useEffect)(function(){var Gn=Date.now(),Jn=!1;Qe.current.forEach(function(Ke){if(Ke){Jn=!0;var Dn=Ke.style;Dn.transitionDuration=".3s, .3s, .3s, .06s",Fe.current&&Gn-Fe.current<100&&(Dn.transitionDuration="0s, 0s")}}),Jn&&(Fe.current=Date.now())}),Qe.current},me=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ve=function(Qe){var Fe=(0,le.Z)((0,le.Z)({},qt),Qe),Gn=Fe.className,Jn=Fe.percent,Ke=Fe.prefixCls,Dn=Fe.strokeColor,$t=Fe.strokeLinecap,zt=Fe.strokeWidth,Gt=Fe.style,_e=Fe.trailColor,Sn=Fe.trailWidth,we=Fe.transition,rn=(0,ze.Z)(Fe,me);delete rn.gapPosition;var an=Array.isArray(Jn)?Jn:[Jn],Wn=Array.isArray(Dn)?Dn:[Dn],Ne=Ee(),de=zt/2,Oe=100-zt/2,dn="M ".concat($t==="round"?de:0,",").concat(de,`
L `).concat($t==="round"?Oe:100,",").concat(de),He="0 0 100 ".concat(zt),jt=0;return Ye.createElement("svg",(0,kt.Z)({className:Ot()("".concat(Ke,"-line"),Gn),viewBox:He,preserveAspectRatio:"none",style:Gt},rn),Ye.createElement("path",{className:"".concat(Ke,"-line-trail"),d:dn,strokeLinecap:$t,stroke:_e,strokeWidth:Sn||zt,fillOpacity:"0"}),an.map(function(Pt,wt){var Ft=1;switch($t){case"round":Ft=1-zt/100;break;case"square":Ft=1-zt/2/100;break;default:Ft=1;break}var Wt={strokeDasharray:"".concat(Pt*Ft,"px, 100px"),strokeDashoffset:"-".concat(jt,"px"),transition:we||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},At=Wn[wt]||Wn[Wn.length-1];return jt+=Pt,Ye.createElement("path",{key:wt,className:"".concat(Ke,"-line-path"),d:dn,strokeLinecap:$t,stroke:At,strokeWidth:zt,fillOpacity:"0",ref:function(Xe){Ne[wt]=Xe},style:Wt})}))},Ze=ve,Ce=Dt(71002),nn=Dt(97685),Tt=Dt(98924),nt=0,et=(0,Tt.Z)();function ht(){var Le;return et?(Le=nt,nt+=1):Le="TEST_OR_SSR",Le}var lt=function(Le){var Qe=Ye.useState(),Fe=(0,nn.Z)(Qe,2),Gn=Fe[0],Jn=Fe[1];return Ye.useEffect(function(){Jn("rc_progress_".concat(ht()))},[]),Le||Gn},pt=function(Qe){var Fe=Qe.bg,Gn=Qe.children;return Ye.createElement("div",{style:{width:"100%",height:"100%",background:Fe}},Gn)};function vt(Le,Qe){return Object.keys(Le).map(function(Fe){var Gn=parseFloat(Fe),Jn="".concat(Math.floor(Gn*Qe),"%");return"".concat(Le[Fe]," ").concat(Jn)})}var St=Ye.forwardRef(function(Le,Qe){var Fe=Le.prefixCls,Gn=Le.color,Jn=Le.gradientId,Ke=Le.radius,Dn=Le.style,$t=Le.ptg,zt=Le.strokeLinecap,Gt=Le.strokeWidth,_e=Le.size,Sn=Le.gapDegree,we=Gn&&(0,Ce.Z)(Gn)==="object",rn=we?"#FFF":void 0,an=_e/2,Wn=Ye.createElement("circle",{className:"".concat(Fe,"-circle-path"),r:Ke,cx:an,cy:an,stroke:rn,strokeLinecap:zt,strokeWidth:Gt,opacity:$t===0?0:1,style:Dn,ref:Qe});if(!we)return Wn;var Ne="".concat(Jn,"-conic"),de=Sn?"".concat(180+Sn/2,"deg"):"0deg",Oe=vt(Gn,(360-Sn)/360),dn=vt(Gn,1),He="conic-gradient(from ".concat(de,", ").concat(Oe.join(", "),")"),jt="linear-gradient(to ".concat(Sn?"bottom":"top",", ").concat(dn.join(", "),")");return Ye.createElement(Ye.Fragment,null,Ye.createElement("mask",{id:Ne},Wn),Ye.createElement("foreignObject",{x:0,y:0,width:_e,height:_e,mask:"url(#".concat(Ne,")")},Ye.createElement(pt,{bg:jt},Ye.createElement(pt,{bg:He}))))}),Lt=St,It=100,Yt=function(Qe,Fe,Gn,Jn,Ke,Dn,$t,zt,Gt,_e){var Sn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,we=Gn/100*360*((360-Dn)/360),rn=Dn===0?0:{bottom:0,top:180,left:90,right:-90}[$t],an=(100-Jn)/100*Fe;Gt==="round"&&Jn!==100&&(an+=_e/2,an>=Fe&&(an=Fe-.01));var Wn=It/2;return{stroke:typeof zt=="string"?zt:void 0,strokeDasharray:"".concat(Fe,"px ").concat(Qe),strokeDashoffset:an+Sn,transform:"rotate(".concat(Ke+we+rn,"deg)"),transformOrigin:"".concat(Wn,"px ").concat(Wn,"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}},ie=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function re(Le){var Qe=Le!=null?Le:[];return Array.isArray(Qe)?Qe:[Qe]}var Qt=function(Qe){var Fe=(0,le.Z)((0,le.Z)({},qt),Qe),Gn=Fe.id,Jn=Fe.prefixCls,Ke=Fe.steps,Dn=Fe.strokeWidth,$t=Fe.trailWidth,zt=Fe.gapDegree,Gt=zt===void 0?0:zt,_e=Fe.gapPosition,Sn=Fe.trailColor,we=Fe.strokeLinecap,rn=Fe.style,an=Fe.className,Wn=Fe.strokeColor,Ne=Fe.percent,de=(0,ze.Z)(Fe,ie),Oe=It/2,dn=lt(Gn),He="".concat(dn,"-gradient"),jt=Oe-Dn/2,Pt=Math.PI*2*jt,wt=Gt>0?90+Gt/2:-90,Ft=Pt*((360-Gt)/360),Wt=(0,Ce.Z)(Ke)==="object"?Ke:{count:Ke,gap:2},At=Wt.count,Jt=Wt.gap,Xe=re(Ne),zn=re(Wn),En=zn.find(function(Un){return Un&&(0,Ce.Z)(Un)==="object"}),Ve=En&&(0,Ce.Z)(En)==="object",wn=Ve?"butt":we,De=Yt(Pt,Ft,0,100,wt,Gt,_e,Sn,wn,Dn),An=Ee(),Hn=function(){var Ui=0;return Xe.map(function(Yi,di){var vi=zn[di]||zn[zn.length-1],br=Yt(Pt,Ft,Ui,Yi,wt,Gt,_e,vi,wn,Dn);return Ui+=Yi,Ye.createElement(Lt,{key:di,color:vi,ptg:Yi,radius:jt,prefixCls:Jn,gradientId:He,style:br,strokeLinecap:wn,strokeWidth:Dn,gapDegree:Gt,ref:function(mi){An[di]=mi},size:It})}).reverse()},Si=function(){var Ui=Math.round(At*(Xe[0]/100)),Yi=100/At,di=0;return new Array(At).fill(null).map(function(vi,br){var ii=br<=Ui-1?zn[0]:Sn,mi=ii&&(0,Ce.Z)(ii)==="object"?"url(#".concat(He,")"):void 0,Br=Yt(Pt,Ft,di,Yi,wt,Gt,_e,ii,"butt",Dn,Jt);return di+=(Ft-Br.strokeDashoffset+Jt)*100/Ft,Ye.createElement("circle",{key:br,className:"".concat(Jn,"-circle-path"),r:jt,cx:Oe,cy:Oe,stroke:mi,strokeWidth:Dn,opacity:1,style:Br,ref:function(Li){An[br]=Li}})})};return Ye.createElement("svg",(0,kt.Z)({className:Ot()("".concat(Jn,"-circle"),an),viewBox:"0 0 ".concat(It," ").concat(It),style:rn,id:Gn,role:"presentation"},de),!At&&Ye.createElement("circle",{className:"".concat(Jn,"-circle-trail"),r:jt,cx:Oe,cy:Oe,stroke:Sn,strokeLinecap:wn,strokeWidth:$t||Dn,style:De}),At?Si():Hn())},xe=Qt,he={Line:Ze,Circle:xe}},71032:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return vt}});var kt=Dt(87462),le=Dt(4942),ze=Dt(97685),Ye=Dt(45987),Se=Dt(94184),Ot=Dt.n(Se),qt=Dt(21770),Ee=Dt(15105),me=Dt(64217),ve=Dt(67294);function Ze(St,Lt){var It=St.disabled,Yt=St.prefixCls,ie=St.character,re=St.characterRender,Qt=St.index,xe=St.count,he=St.value,Le=St.allowHalf,Qe=St.focused,Fe=St.onHover,Gn=St.onClick,Jn=function(we){Fe(we,Qt)},Ke=function(we){Gn(we,Qt)},Dn=function(we){we.keyCode===Ee.Z.ENTER&&Gn(we,Qt)},$t=Qt+1,zt=new Set([Yt]);he===0&&Qt===0&&Qe?zt.add("".concat(Yt,"-focused")):Le&&he+.5>=$t&&he<$t?(zt.add("".concat(Yt,"-half")),zt.add("".concat(Yt,"-active")),Qe&&zt.add("".concat(Yt,"-focused"))):($t<=he?zt.add("".concat(Yt,"-full")):zt.add("".concat(Yt,"-zero")),$t===he&&Qe&&zt.add("".concat(Yt,"-focused")));var Gt=typeof ie=="function"?ie(St):ie,_e=ve.createElement("li",{className:Ot()(Array.from(zt)),ref:Lt},ve.createElement("div",{onClick:It?null:Ke,onKeyDown:It?null:Dn,onMouseMove:It?null:Jn,role:"radio","aria-checked":he>Qt?"true":"false","aria-posinset":Qt+1,"aria-setsize":xe,tabIndex:It?-1:0},ve.createElement("div",{className:"".concat(Yt,"-first")},Gt),ve.createElement("div",{className:"".concat(Yt,"-second")},Gt)));return re&&(_e=re(_e,St)),_e}var Ce=ve.forwardRef(Ze);function nn(){var St=ve.useRef({});function Lt(Yt){return St.current[Yt]}function It(Yt){return function(ie){St.current[Yt]=ie}}return[Lt,It]}function Tt(St){var Lt=St.pageXOffset,It="scrollLeft";if(typeof Lt!="number"){var Yt=St.document;Lt=Yt.documentElement[It],typeof Lt!="number"&&(Lt=Yt.body[It])}return Lt}function nt(St){var Lt,It,Yt=St.ownerDocument,ie=Yt.body,re=Yt&&Yt.documentElement,Qt=St.getBoundingClientRect();return Lt=Qt.left,It=Qt.top,Lt-=re.clientLeft||ie.clientLeft||0,It-=re.clientTop||ie.clientTop||0,{left:Lt,top:It}}function et(St){var Lt=nt(St),It=St.ownerDocument,Yt=It.defaultView||It.parentWindow;return Lt.left+=Tt(Yt),Lt.left}var ht=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function lt(St,Lt){var It=St.prefixCls,Yt=It===void 0?"rc-rate":It,ie=St.className,re=St.defaultValue,Qt=St.value,xe=St.count,he=xe===void 0?5:xe,Le=St.allowHalf,Qe=Le===void 0?!1:Le,Fe=St.allowClear,Gn=Fe===void 0?!0:Fe,Jn=St.keyboard,Ke=Jn===void 0?!0:Jn,Dn=St.character,$t=Dn===void 0?"\u2605":Dn,zt=St.characterRender,Gt=St.disabled,_e=St.direction,Sn=_e===void 0?"ltr":_e,we=St.tabIndex,rn=we===void 0?0:we,an=St.autoFocus,Wn=St.onHoverChange,Ne=St.onChange,de=St.onFocus,Oe=St.onBlur,dn=St.onKeyDown,He=St.onMouseLeave,jt=(0,Ye.Z)(St,ht),Pt=nn(),wt=(0,ze.Z)(Pt,2),Ft=wt[0],Wt=wt[1],At=ve.useRef(null),Jt=function(){if(!Gt){var mr;(mr=At.current)===null||mr===void 0||mr.focus()}};ve.useImperativeHandle(Lt,function(){return{focus:Jt,blur:function(){if(!Gt){var mr;(mr=At.current)===null||mr===void 0||mr.blur()}}}});var Xe=(0,qt.Z)(re||0,{value:Qt}),zn=(0,ze.Z)(Xe,2),En=zn[0],Ve=zn[1],wn=(0,qt.Z)(null),De=(0,ze.Z)(wn,2),An=De[0],Hn=De[1],Si=function(mr,cn){var xt=Sn==="rtl",In=mr+1;if(Qe){var gn=Ft(mr),Fn=et(gn),Nn=gn.clientWidth;(xt&&cn-Fn>Nn/2||!xt&&cn-Fn<Nn/2)&&(In-=.5)}return In},Un=function(mr){Ve(mr),Ne==null||Ne(mr)},Ui=ve.useState(!1),Yi=(0,ze.Z)(Ui,2),di=Yi[0],vi=Yi[1],br=function(){vi(!0),de==null||de()},ii=function(){vi(!1),Oe==null||Oe()},mi=ve.useState(null),Br=(0,ze.Z)(mi,2),Gr=Br[0],Li=Br[1],jr=function(mr,cn){var xt=Si(cn,mr.pageX);xt!==An&&(Li(xt),Hn(null)),Wn==null||Wn(xt)},Lo=function(mr){Gt||(Li(null),Hn(null),Wn==null||Wn(void 0)),mr&&(He==null||He(mr))},ta=function(mr,cn){var xt=Si(cn,mr.pageX),In=!1;Gn&&(In=xt===En),Lo(),Un(In?0:xt),Hn(In?xt:null)},_o=function(mr){var cn=mr.keyCode,xt=Sn==="rtl",In=Qe?.5:1;Ke&&(cn===Ee.Z.RIGHT&&En<he&&!xt?(Un(En+In),mr.preventDefault()):cn===Ee.Z.LEFT&&En>0&&!xt||cn===Ee.Z.RIGHT&&En>0&&xt?(Un(En-In),mr.preventDefault()):cn===Ee.Z.LEFT&&En<he&&xt&&(Un(En+In),mr.preventDefault())),dn==null||dn(mr)};ve.useEffect(function(){an&&!Gt&&Jt()},[]);var Io=new Array(he).fill(0).map(function(To,mr){return ve.createElement(Ce,{ref:Wt(mr),index:mr,count:he,disabled:Gt,prefixCls:"".concat(Yt,"-star"),allowHalf:Qe,value:Gr===null?En:Gr,onClick:ta,onHover:jr,key:To||mr,character:$t,characterRender:zt,focused:di})}),ea=Ot()(Yt,ie,(0,le.Z)((0,le.Z)({},"".concat(Yt,"-disabled"),Gt),"".concat(Yt,"-rtl"),Sn==="rtl"));return ve.createElement("ul",(0,kt.Z)({className:ea,onMouseLeave:Lo,tabIndex:Gt?-1:rn,onFocus:Gt?null:br,onBlur:Gt?null:ii,onKeyDown:Gt?null:_o,ref:At},(0,me.Z)(jt,{aria:!0,data:!0,attr:!0})),Io)}var pt=ve.forwardRef(lt),vt=pt},58212:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return Dn}});function kt(){return kt=Object.assign?Object.assign.bind():function($t){for(var zt=1;zt<arguments.length;zt++){var Gt=arguments[zt];for(var _e in Gt)Object.prototype.hasOwnProperty.call(Gt,_e)&&($t[_e]=Gt[_e])}return $t},kt.apply(this,arguments)}function le($t){"@babel/helpers - typeof";return le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(zt){return typeof zt}:function(zt){return zt&&typeof Symbol=="function"&&zt.constructor===Symbol&&zt!==Symbol.prototype?"symbol":typeof zt},le($t)}function ze($t,zt){if(le($t)!=="object"||$t===null)return $t;var Gt=$t[Symbol.toPrimitive];if(Gt!==void 0){var _e=Gt.call($t,zt||"default");if(le(_e)!=="object")return _e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(zt==="string"?String:Number)($t)}function Ye($t){var zt=ze($t,"string");return le(zt)==="symbol"?zt:String(zt)}function Se($t,zt,Gt){return zt=Ye(zt),zt in $t?Object.defineProperty($t,zt,{value:Gt,enumerable:!0,configurable:!0,writable:!0}):$t[zt]=Gt,$t}function Ot($t){if(Array.isArray($t))return $t}function qt($t,zt){var Gt=$t==null?null:typeof Symbol!="undefined"&&$t[Symbol.iterator]||$t["@@iterator"];if(Gt!=null){var _e,Sn,we,rn,an=[],Wn=!0,Ne=!1;try{if(we=(Gt=Gt.call($t)).next,zt===0){if(Object(Gt)!==Gt)return;Wn=!1}else for(;!(Wn=(_e=we.call(Gt)).done)&&(an.push(_e.value),an.length!==zt);Wn=!0);}catch(de){Ne=!0,Sn=de}finally{try{if(!Wn&&Gt.return!=null&&(rn=Gt.return(),Object(rn)!==rn))return}finally{if(Ne)throw Sn}}return an}}function Ee($t,zt){(zt==null||zt>$t.length)&&(zt=$t.length);for(var Gt=0,_e=new Array(zt);Gt<zt;Gt++)_e[Gt]=$t[Gt];return _e}function me($t,zt){if($t){if(typeof $t=="string")return Ee($t,zt);var Gt=Object.prototype.toString.call($t).slice(8,-1);if(Gt==="Object"&&$t.constructor&&(Gt=$t.constructor.name),Gt==="Map"||Gt==="Set")return Array.from($t);if(Gt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Gt))return Ee($t,zt)}}function ve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ze($t,zt){return Ot($t)||qt($t,zt)||me($t,zt)||ve()}function Ce($t,zt){if($t==null)return{};var Gt={},_e=Object.keys($t),Sn,we;for(we=0;we<_e.length;we++)Sn=_e[we],!(zt.indexOf(Sn)>=0)&&(Gt[Sn]=$t[Sn]);return Gt}function nn($t,zt){if($t==null)return{};var Gt=Ce($t,zt),_e,Sn;if(Object.getOwnPropertySymbols){var we=Object.getOwnPropertySymbols($t);for(Sn=0;Sn<we.length;Sn++)_e=we[Sn],!(zt.indexOf(_e)>=0)&&Object.prototype.propertyIsEnumerable.call($t,_e)&&(Gt[_e]=$t[_e])}return Gt}var Tt=Dt(67294),nt=Dt(94184),et=Dt.n(nt);function ht($t){if(Array.isArray($t))return $t}function lt($t,zt){var Gt=$t==null?null:typeof Symbol!="undefined"&&$t[Symbol.iterator]||$t["@@iterator"];if(Gt!=null){var _e,Sn,we,rn,an=[],Wn=!0,Ne=!1;try{if(we=(Gt=Gt.call($t)).next,zt===0){if(Object(Gt)!==Gt)return;Wn=!1}else for(;!(Wn=(_e=we.call(Gt)).done)&&(an.push(_e.value),an.length!==zt);Wn=!0);}catch(de){Ne=!0,Sn=de}finally{try{if(!Wn&&Gt.return!=null&&(rn=Gt.return(),Object(rn)!==rn))return}finally{if(Ne)throw Sn}}return an}}function pt($t,zt){(zt==null||zt>$t.length)&&(zt=$t.length);for(var Gt=0,_e=new Array(zt);Gt<zt;Gt++)_e[Gt]=$t[Gt];return _e}function vt($t,zt){if($t){if(typeof $t=="string")return pt($t,zt);var Gt=Object.prototype.toString.call($t).slice(8,-1);if(Gt==="Object"&&$t.constructor&&(Gt=$t.constructor.name),Gt==="Map"||Gt==="Set")return Array.from($t);if(Gt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Gt))return pt($t,zt)}}function St(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lt($t,zt){return ht($t)||lt($t,zt)||vt($t,zt)||St()}function It($t){var zt=Tt.useRef();zt.current=$t;var Gt=Tt.useCallback(function(){for(var _e,Sn=arguments.length,we=new Array(Sn),rn=0;rn<Sn;rn++)we[rn]=arguments[rn];return(_e=zt.current)===null||_e===void 0?void 0:_e.call.apply(_e,[zt].concat(we))},[]);return Gt}function Yt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ie=Yt()?Tt.useLayoutEffect:Tt.useEffect,re=function(zt,Gt){var _e=Tt.useRef(!0);ie(function(){return zt(_e.current)},Gt),ie(function(){return _e.current=!1,function(){_e.current=!0}},[])},Qt=function(zt,Gt){re(function(_e){if(!_e)return zt()},Gt)},xe=null;function he($t){var zt=Tt.useRef(!1),Gt=Tt.useState($t),_e=Lt(Gt,2),Sn=_e[0],we=_e[1];Tt.useEffect(function(){return zt.current=!1,function(){zt.current=!0}},[]);function rn(an,Wn){Wn&&zt.current||we(an)}return[Sn,rn]}function Le($t){return $t!==void 0}function Qe($t,zt){var Gt=zt||{},_e=Gt.defaultValue,Sn=Gt.value,we=Gt.onChange,rn=Gt.postState,an=he(function(){return Le(Sn)?Sn:Le(_e)?typeof _e=="function"?_e():_e:typeof $t=="function"?$t():$t}),Wn=Lt(an,2),Ne=Wn[0],de=Wn[1],Oe=Sn!==void 0?Sn:Ne,dn=rn?rn(Oe):Oe,He=It(we),jt=he([Oe]),Pt=Lt(jt,2),wt=Pt[0],Ft=Pt[1];Qt(function(){var At=wt[0];Ne!==At&&He(Ne,At)},[wt]),Qt(function(){Le(Sn)||de(Sn)},[Sn]);var Wt=It(function(At,Jt){de(At,Jt),Ft([Oe],Jt)});return[dn,Wt]}var Fe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(zt){var Gt=zt.keyCode;if(zt.altKey&&!zt.ctrlKey||zt.metaKey||Gt>=Fe.F1&&Gt<=Fe.F12)return!1;switch(Gt){case Fe.ALT:case Fe.CAPS_LOCK:case Fe.CONTEXT_MENU:case Fe.CTRL:case Fe.DOWN:case Fe.END:case Fe.ESC:case Fe.HOME:case Fe.INSERT:case Fe.LEFT:case Fe.MAC_FF_META:case Fe.META:case Fe.NUMLOCK:case Fe.NUM_CENTER:case Fe.PAGE_DOWN:case Fe.PAGE_UP:case Fe.PAUSE:case Fe.PRINT_SCREEN:case Fe.RIGHT:case Fe.SHIFT:case Fe.UP:case Fe.WIN_KEY:case Fe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(zt){if(zt>=Fe.ZERO&&zt<=Fe.NINE||zt>=Fe.NUM_ZERO&&zt<=Fe.NUM_MULTIPLY||zt>=Fe.A&&zt<=Fe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&zt===0)return!0;switch(zt){case Fe.SPACE:case Fe.QUESTION_MARK:case Fe.NUM_PLUS:case Fe.NUM_MINUS:case Fe.NUM_PERIOD:case Fe.NUM_DIVISION:case Fe.SEMICOLON:case Fe.DASH:case Fe.EQUALS:case Fe.COMMA:case Fe.PERIOD:case Fe.SLASH:case Fe.APOSTROPHE:case Fe.SINGLE_QUOTE:case Fe.OPEN_SQUARE_BRACKET:case Fe.BACKSLASH:case Fe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Gn=Fe,Jn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ke=Tt.forwardRef(function($t,zt){var Gt,_e=$t.prefixCls,Sn=_e===void 0?"rc-switch":_e,we=$t.className,rn=$t.checked,an=$t.defaultChecked,Wn=$t.disabled,Ne=$t.loadingIcon,de=$t.checkedChildren,Oe=$t.unCheckedChildren,dn=$t.onClick,He=$t.onChange,jt=$t.onKeyDown,Pt=nn($t,Jn),wt=Qe(!1,{value:rn,defaultValue:an}),Ft=Ze(wt,2),Wt=Ft[0],At=Ft[1];function Jt(Ve,wn){var De=Wt;return Wn||(De=Ve,At(De),He==null||He(De,wn)),De}function Xe(Ve){Ve.which===Gn.LEFT?Jt(!1,Ve):Ve.which===Gn.RIGHT&&Jt(!0,Ve),jt==null||jt(Ve)}function zn(Ve){var wn=Jt(!Wt,Ve);dn==null||dn(wn,Ve)}var En=et()(Sn,we,(Gt={},Se(Gt,"".concat(Sn,"-checked"),Wt),Se(Gt,"".concat(Sn,"-disabled"),Wn),Gt));return Tt.createElement("button",kt({},Pt,{type:"button",role:"switch","aria-checked":Wt,disabled:Wn,className:En,ref:zt,onKeyDown:Xe,onClick:zn}),Ne,Tt.createElement("span",{className:"".concat(Sn,"-inner")},Tt.createElement("span",{className:"".concat(Sn,"-inner-checked")},de),Tt.createElement("span",{className:"".concat(Sn,"-inner-unchecked")},Oe)))});Ke.displayName="Switch";var Dn=Ke},45233:function(xn,$n,Dt){"use strict";Dt.d($n,{R:function(){return le},w:function(){return kt}});var kt={},le="rc-table-internal-hook"},54768:function(xn,$n,Dt){"use strict";Dt.d($n,{L:function(){return ht},Z:function(){return Lt}});var kt=Dt(97685),le=Dt(4942),ze=Dt(74902),Ye=Dt(71002),Se=Dt(1413),Ot=Dt(45987),qt=Dt(63295),Ee=Dt(67294);function me(It){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=[];return Ee.Children.forEach(It,function(re){re==null&&!Yt.keepEmpty||(Array.isArray(re)?ie=ie.concat(me(re)):(0,qt.Z)(re)&&re.props?ie=ie.concat(me(re.props.children,Yt)):ie.push(re))}),ie}var ve=Dt(40830),Ze=Dt(45233),Ce=Dt(62978);function nn(It){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Yt=="number"?Yt:Yt.endsWith("%")?It*parseFloat(Yt)/100:null}function Tt(It,Yt,ie){return Ee.useMemo(function(){if(Yt&&Yt>0){var re=0,Qt=0;It.forEach(function(Ke){var Dn=nn(Yt,Ke.width);Dn?re+=Dn:Qt+=1});var xe=Math.max(Yt,ie),he=Math.max(xe-re,Qt),Le=Qt,Qe=he/Qt,Fe=0,Gn=It.map(function(Ke){var Dn=(0,Se.Z)({},Ke),$t=nn(Yt,Dn.width);if($t)Dn.width=$t;else{var zt=Math.floor(Qe);Dn.width=Le===1?he:zt,he-=zt,Le-=1}return Fe+=Dn.width,Dn});if(Fe<xe){var Jn=xe/Fe;he=xe,Gn.forEach(function(Ke,Dn){var $t=Math.floor(Ke.width*Jn);Ke.width=Dn===Gn.length-1?he:$t,he-=$t})}return[Gn,Math.max(Fe,xe)]}return[It,Yt]},[It,Yt,ie])}var nt=["children"],et=["fixed"];function ht(It){return me(It).filter(function(Yt){return Ee.isValidElement(Yt)}).map(function(Yt){var ie=Yt.key,re=Yt.props,Qt=re.children,xe=(0,Ot.Z)(re,nt),he=(0,Se.Z)({key:ie},xe);return Qt&&(he.children=ht(Qt)),he})}function lt(It){return It.filter(function(Yt){return Yt&&(0,Ye.Z)(Yt)==="object"&&!Yt.hidden}).map(function(Yt){var ie=Yt.children;return ie&&ie.length>0?(0,Se.Z)((0,Se.Z)({},Yt),{},{children:lt(ie)}):Yt})}function pt(It){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return It.filter(function(ie){return ie&&(0,Ye.Z)(ie)==="object"}).reduce(function(ie,re,Qt){var xe=re.fixed,he=xe===!0?"left":xe,Le="".concat(Yt,"-").concat(Qt),Qe=re.children;return Qe&&Qe.length>0?[].concat((0,ze.Z)(ie),(0,ze.Z)(pt(Qe,Le).map(function(Fe){return(0,Se.Z)({fixed:he},Fe)}))):[].concat((0,ze.Z)(ie),[(0,Se.Z)((0,Se.Z)({key:Le},re),{},{fixed:he})])},[])}function vt(It){return It.map(function(Yt){var ie=Yt.fixed,re=(0,Ot.Z)(Yt,et),Qt=ie;return ie==="left"?Qt="right":ie==="right"&&(Qt="left"),(0,Se.Z)({fixed:Qt},re)})}function St(It,Yt){var ie=It.prefixCls,re=It.columns,Qt=It.children,xe=It.expandable,he=It.expandedKeys,Le=It.columnTitle,Qe=It.getRowKey,Fe=It.onTriggerExpand,Gn=It.expandIcon,Jn=It.rowExpandable,Ke=It.expandIconColumnIndex,Dn=It.direction,$t=It.expandRowByClick,zt=It.columnWidth,Gt=It.fixed,_e=It.scrollWidth,Sn=It.clientWidth,we=Ee.useMemo(function(){var jt=re||ht(Qt)||[];return lt(jt.slice())},[re,Qt]),rn=Ee.useMemo(function(){if(xe){var jt=we.slice();if(!jt.includes(Ze.w)){var Pt=Ke||0;Pt>=0&&(Pt||Gt==="left"||!Gt)&&jt.splice(Pt,0,Ze.w),Gt==="right"&&jt.splice(we.length,0,Ze.w)}var wt=jt.indexOf(Ze.w);jt=jt.filter(function(Jt,Xe){return Jt!==Ze.w||Xe===wt});var Ft=we[wt],Wt;Gt?Wt=Gt:Wt=Ft?Ft.fixed:null;var At=(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({},Ce.v,{className:"".concat(ie,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Le),"fixed",Wt),"className","".concat(ie,"-row-expand-icon-cell")),"width",zt),"render",function(Xe,zn,En){var Ve=Qe(zn,En),wn=he.has(Ve),De=Jn?Jn(zn):!0,An=Gn({prefixCls:ie,expanded:wn,expandable:De,record:zn,onExpand:Fe});return $t?Ee.createElement("span",{onClick:function(Si){return Si.stopPropagation()}},An):An});return jt.map(function(Jt){return Jt===Ze.w?At:Jt})}return we.filter(function(Jt){return Jt!==Ze.w})},[xe,we,Qe,he,Gn,Dn]),an=Ee.useMemo(function(){var jt=rn;return Yt&&(jt=Yt(jt)),jt.length||(jt=[{render:function(){return null}}]),jt},[Yt,rn,Dn]),Wn=Ee.useMemo(function(){return Dn==="rtl"?vt(pt(an)):pt(an)},[an,Dn,_e]),Ne=Ee.useMemo(function(){for(var jt=-1,Pt=Wn.length-1;Pt>=0;Pt-=1){var wt=Wn[Pt].fixed;if(wt==="left"||wt===!0){jt=Pt;break}}if(jt>=0)for(var Ft=0;Ft<=jt;Ft+=1){var Wt=Wn[Ft].fixed;if(Wt!=="left"&&Wt!==!0)return!0}var At=Wn.findIndex(function(zn){var En=zn.fixed;return En==="right"});if(At>=0)for(var Jt=At;Jt<Wn.length;Jt+=1){var Xe=Wn[Jt].fixed;if(Xe!=="right")return!0}return!1},[Wn]),de=Tt(Wn,_e,Sn),Oe=(0,kt.Z)(de,2),dn=Oe[0],He=Oe[1];return[an,dn,He,Ne]}var Lt=St},29104:function(xn,$n,Dt){"use strict";Dt.d($n,{w2:function(){return kt.w},vP:function(){return Qr.v},RQ:function(){return kt.R},ER:function(){return cn},Q$:function(){return cs},TN:function(){return kh}});var kt=Dt(45233),le=Dt(97685),ze=Dt(66680),Ye=Dt(8410),Se=Dt(91881),Ot=Dt(67294),qt=Dt(73935);function Ee(Ht){var ae=Ot.createContext(void 0),ce=function(ke){var Ge=ke.value,Je=ke.children,hn=Ot.useRef(Ge);hn.current=Ge;var Tn=Ot.useState(function(){return{getValue:function(){return hn.current},listeners:new Set}}),Pn=(0,le.Z)(Tn,1),si=Pn[0];return(0,Ye.Z)(function(){(0,qt.unstable_batchedUpdates)(function(){si.listeners.forEach(function(bn){bn(Ge)})})},[Ge]),Ot.createElement(ae.Provider,{value:si},Je)};return{Context:ae,Provider:ce,defaultValue:Ht}}function me(Ht,ae){var ce=(0,ze.Z)(typeof ae=="function"?ae:function(bn){if(ae===void 0)return bn;if(!Array.isArray(ae))return bn[ae];var Qn={};return ae.forEach(function(jn){Qn[jn]=bn[jn]}),Qn}),ge=Ot.useContext(Ht==null?void 0:Ht.Context),ke=ge||{},Ge=ke.listeners,Je=ke.getValue,hn=Ot.useRef();hn.current=ce(ge?Je():Ht==null?void 0:Ht.defaultValue);var Tn=Ot.useState({}),Pn=(0,le.Z)(Tn,2),si=Pn[1];return(0,Ye.Z)(function(){if(!ge)return;function bn(Qn){var jn=ce(Qn);(0,Se.Z)(hn.current,jn,!0)||si({})}return Ge.add(bn),function(){Ge.delete(bn)}},[ge]),hn.current}var ve=Dt(87462),Ze=Dt(42550);function Ce(){var Ht=Ot.createContext(null);function ae(){return Ot.useContext(Ht)}function ce(ke,Ge){var Je=(0,Ze.Yr)(ke),hn=function(Pn,si){var bn=Je?{ref:si}:{},Qn=Ot.useRef(0),jn=Ot.useRef(Pn),gi=ae();return gi!==null?Ot.createElement(ke,(0,ve.Z)({},Pn,bn)):((!Ge||Ge(jn.current,Pn))&&(Qn.current+=1),jn.current=Pn,Ot.createElement(Ht.Provider,{value:Qn.current},Ot.createElement(ke,(0,ve.Z)({},Pn,bn))))};return Je?Ot.forwardRef(hn):hn}function ge(ke,Ge){var Je=(0,Ze.Yr)(ke),hn=function(Pn,si){var bn=Je?{ref:si}:{};return ae(),Ot.createElement(ke,(0,ve.Z)({},Pn,bn))};return Je?Ot.memo(Ot.forwardRef(hn),Ge):Ot.memo(hn,Ge)}return{makeImmutable:ce,responseImmutable:ge,useImmutableMark:ae}}var nn=Ce(),Tt=nn.makeImmutable,nt=nn.responseImmutable,et=nn.useImmutableMark,ht=Ce(),lt=ht.makeImmutable,pt=ht.responseImmutable,vt=ht.useImmutableMark,St=Ee(),Lt=St;function It(Ht,ae){var ce=React.useRef(0);ce.current+=1;var ge=React.useRef(Ht),ke=[];Object.keys(Ht||{}).map(function(Je){var hn;(Ht==null?void 0:Ht[Je])!==((hn=ge.current)===null||hn===void 0?void 0:hn[Je])&&ke.push(Je)}),ge.current=Ht;var Ge=React.useRef([]);return ke.length&&(Ge.current=ke),React.useDebugValue(ce.current),React.useDebugValue(Ge.current.join(", ")),ae&&console.log("".concat(ae,":"),ce.current,Ge.current),ce.current}var Yt=null,ie=null,re=Dt(71002),Qt=Dt(1413),xe=Dt(4942),he=Dt(94184),Le=Dt.n(he);function Qe(Ht,ae,ce){var ge=Ot.useRef({});return(!("value"in ge.current)||ce(ge.current.condition,ae))&&(ge.current.value=Ht(),ge.current.condition=ae),ge.current.value}var Fe=Dt(40830);function Gn(Ht,ae){var ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ge=new Set;function ke(Ge,Je){var hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Tn=ge.has(Ge);if((0,Fe.ZP)(!Tn,"Warning: There may be circular references"),Tn)return!1;if(Ge===Je)return!0;if(ce&&hn>1)return!1;ge.add(Ge);var Pn=hn+1;if(Array.isArray(Ge)){if(!Array.isArray(Je)||Ge.length!==Je.length)return!1;for(var si=0;si<Ge.length;si++)if(!ke(Ge[si],Je[si],Pn))return!1;return!0}if(Ge&&Je&&(0,re.Z)(Ge)==="object"&&(0,re.Z)(Je)==="object"){var bn=Object.keys(Ge);return bn.length!==Object.keys(Je).length?!1:bn.every(function(Qn){return ke(Ge[Qn],Je[Qn],Pn)})}return!1}return ke(Ht,ae)}var Jn=Gn;function Ke(Ht,ae){for(var ce=Ht,ge=0;ge<ae.length;ge+=1){if(ce==null)return;ce=ce[ae[ge]]}return ce}var Dn=Ot.createContext({renderWithProps:!1}),$t=Dn,zt="RC_TABLE_KEY";function Gt(Ht){return Ht==null?[]:Array.isArray(Ht)?Ht:[Ht]}function _e(Ht){var ae=[],ce={};return Ht.forEach(function(ge){for(var ke=ge||{},Ge=ke.key,Je=ke.dataIndex,hn=Ge||Gt(Je).join("-")||zt;ce[hn];)hn="".concat(hn,"_next");ce[hn]=!0,ae.push(hn)}),ae}function Sn(Ht){return Ht!=null}function we(Ht){return typeof Ht=="number"&&!Number.isNaN(Ht)}function rn(Ht){return Ht&&(0,re.Z)(Ht)==="object"&&!Array.isArray(Ht)&&!Ot.isValidElement(Ht)}function an(Ht,ae,ce,ge,ke,Ge){var Je=Ot.useContext($t),hn=vt(),Tn=Qe(function(){if(Sn(ge))return[ge];var Pn=ae==null||ae===""?[]:Array.isArray(ae)?ae:[ae],si=Ke(Ht,Pn),bn=si,Qn=void 0;if(ke){var jn=ke(si,Ht,ce);rn(jn)?(bn=jn.children,Qn=jn.props,Je.renderWithProps=!0):bn=jn}return[bn,Qn]},[hn,Ht,ge,ae,ke,ce],function(Pn,si){if(Ge){var bn=(0,le.Z)(Pn,2),Qn=bn[1],jn=(0,le.Z)(si,2),gi=jn[1];return Ge(gi,Qn)}return Je.renderWithProps?!0:!Jn(Pn,si,!0)});return Tn}function Wn(Ht,ae,ce,ge){var ke=Ht+ae-1;return Ht<=ge&&ke>=ce}function Ne(Ht,ae){return me(Lt,function(ce){var ge=Wn(Ht,ae||1,ce.hoverStartRow,ce.hoverEndRow);return[ge,ce.onHover]})}function de(Ht){var ae=Ot.useRef();ae.current=Ht;var ce=Ot.useCallback(function(){for(var ge,ke=arguments.length,Ge=new Array(ke),Je=0;Je<ke;Je++)Ge[Je]=arguments[Je];return(ge=ae.current)===null||ge===void 0?void 0:ge.call.apply(ge,[ae].concat(Ge))},[]);return ce}function Oe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var dn=Oe()?Ot.useLayoutEffect:Ot.useEffect,He=function(ae,ce){var ge=React.useRef(!0);dn(function(){return ae(ge.current)},ce),dn(function(){return ge.current=!1,function(){ge.current=!0}},[])},jt=function(ae,ce){He(function(ge){if(!ge)return ae()},ce)},Pt=null;function wt(Ht){var ae=React.useRef(!1),ce=React.useState(Ht),ge=_slicedToArray(ce,2),ke=ge[0],Ge=ge[1];React.useEffect(function(){return ae.current=!1,function(){ae.current=!0}},[]);function Je(hn,Tn){Tn&&ae.current||Ge(hn)}return[ke,Je]}function Ft(Ht){return Ht!==void 0}function Wt(Ht,ae){var ce=ae||{},ge=ce.defaultValue,ke=ce.value,Ge=ce.onChange,Je=ce.postState,hn=useState(function(){return Ft(ke)?ke:Ft(ge)?typeof ge=="function"?ge():ge:typeof Ht=="function"?Ht():Ht}),Tn=_slicedToArray(hn,2),Pn=Tn[0],si=Tn[1],bn=ke!==void 0?ke:Pn,Qn=Je?Je(bn):bn,jn=useEvent(Ge),gi=useState([bn]),Ti=_slicedToArray(gi,2),Zi=Ti[0],vr=Ti[1];useLayoutUpdateEffect(function(){var Ki=Zi[0];Pn!==Ki&&jn(Pn,Ki)},[Zi]),useLayoutUpdateEffect(function(){Ft(ke)||si(ke)},[ke]);var Ci=useEvent(function(Ki,ki){si(Ki,ki),vr([bn],ki)});return[Qn,Ci]}var At=Dt(35110),Jt=Dt(63295),Xe=Number(Ot.version.split(".")[0]),zn=function(ae,ce){typeof ae=="function"?ae(ce):(0,re.Z)(ae)==="object"&&ae&&"current"in ae&&(ae.current=ce)},En=function(){for(var ae=arguments.length,ce=new Array(ae),ge=0;ge<ae;ge++)ce[ge]=arguments[ge];var ke=ce.filter(Boolean);return ke.length<=1?ke[0]:function(Ge){ce.forEach(function(Je){zn(Je,Ge)})}},Ve=function(){for(var ae=arguments.length,ce=new Array(ae),ge=0;ge<ae;ge++)ce[ge]=arguments[ge];return useMemo(function(){return En.apply(void 0,ce)},ce,function(ke,Ge){return ke.length!==Ge.length||ke.every(function(Je,hn){return Je!==Ge[hn]})})},wn=function(ae){var ce,ge;if(!ae)return!1;if(De(ae)&&Xe>=19)return!0;var ke=isMemo(ae)?ae.type.type:ae.type;return!(typeof ke=="function"&&!((ce=ke.prototype)!==null&&ce!==void 0&&ce.render)&&ke.$$typeof!==ForwardRef||typeof ae=="function"&&!((ge=ae.prototype)!==null&&ge!==void 0&&ge.render)&&ae.$$typeof!==ForwardRef)};function De(Ht){return isValidElement(Ht)&&!isFragment(Ht)}var An=function(ae){return De(ae)&&wn(ae)},Hn=function(ae){if(ae&&De(ae)){var ce=ae;return ce.props.propertyIsEnumerable("ref")?ce.props.ref:ce.ref}return null};function Si(Ht,ae,ce,ge){if(!ae.length)return ce;var ke=_toArray(ae),Ge=ke[0],Je=ke.slice(1),hn;return!Ht&&typeof Ge=="number"?hn=[]:Array.isArray(Ht)?hn=_toConsumableArray(Ht):hn=_objectSpread({},Ht),ge&&ce===void 0&&Je.length===1?delete hn[Ge][Je[0]]:hn[Ge]=Si(hn[Ge],Je,ce,ge),hn}function Un(Ht,ae,ce){var ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ae.length&&ge&&ce===void 0&&!get(Ht,ae.slice(0,-1))?Ht:Si(Ht,ae,ce,ge)}function Ui(Ht){return _typeof(Ht)==="object"&&Ht!==null&&Object.getPrototypeOf(Ht)===Object.prototype}function Yi(Ht){return Array.isArray(Ht)?[]:{}}var di=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function vi(){for(var Ht=arguments.length,ae=new Array(Ht),ce=0;ce<Ht;ce++)ae[ce]=arguments[ce];var ge=Yi(ae[0]);return ae.forEach(function(ke){function Ge(Je,hn){var Tn=new Set(hn),Pn=get(ke,Je),si=Array.isArray(Pn);if(si||Ui(Pn)){if(!Tn.has(Pn)){Tn.add(Pn);var bn=get(ge,Je);si?ge=Un(ge,Je,[]):(!bn||_typeof(bn)!=="object")&&(ge=Un(ge,Je,Yi(Pn))),di(Pn).forEach(function(Qn){Ge([].concat(_toConsumableArray(Je),[Qn]),Tn)})}}else ge=Un(ge,Je,Pn)}Ge([])}),ge}var br=function(ae){var ce=ae.ellipsis,ge=ae.rowType,ke=ae.children,Ge,Je=ce===!0?{showTitle:!0}:ce;return Je&&(Je.showTitle||ge==="header")&&(typeof ke=="string"||typeof ke=="number"?Ge=ke.toString():Ot.isValidElement(ke)&&typeof ke.props.children=="string"&&(Ge=ke.props.children)),Ge};function ii(Ht){var ae,ce,ge,ke,Ge,Je,hn,Tn,Pn=Ht.component,si=Ht.children,bn=Ht.ellipsis,Qn=Ht.scope,jn=Ht.prefixCls,gi=Ht.className,Ti=Ht.align,Zi=Ht.record,vr=Ht.render,Ci=Ht.dataIndex,Ki=Ht.renderIndex,ki=Ht.shouldCellUpdate,gr=Ht.index,Kr=Ht.rowType,hr=Ht.colSpan,Mo=Ht.rowSpan,Vr=Ht.fixLeft,Bo=Ht.fixRight,ka=Ht.firstFixLeft,Go=Ht.lastFixLeft,Ur=Ht.firstFixRight,Zr=Ht.lastFixRight,Mi=Ht.appendNode,yr=Ht.additionalProps,no=yr===void 0?{}:yr,bt=Ht.isSticky,Nt="".concat(jn,"-cell"),Xt=me(Lt,["supportSticky","allColumnsFixedLeft","rowHoverable"]),ee=Xt.supportSticky,Ae=Xt.allColumnsFixedLeft,Ue=Xt.rowHoverable,en=an(Zi,Ci,Ki,si,vr,ki),kn=(0,le.Z)(en,2),On=kn[0],Ln=kn[1],Xn={},ni=typeof Vr=="number"&&ee,wi=typeof Bo=="number"&&ee;ni&&(Xn.position="sticky",Xn.left=Vr),wi&&(Xn.position="sticky",Xn.right=Bo);var qn=(ae=(ce=(ge=Ln==null?void 0:Ln.colSpan)!==null&&ge!==void 0?ge:no.colSpan)!==null&&ce!==void 0?ce:hr)!==null&&ae!==void 0?ae:1,Vn=(ke=(Ge=(Je=Ln==null?void 0:Ln.rowSpan)!==null&&Je!==void 0?Je:no.rowSpan)!==null&&Ge!==void 0?Ge:Mo)!==null&&ke!==void 0?ke:1,hi=Ne(gr,Vn),Pi=(0,le.Z)(hi,2),ar=Pi[0],Pr=Pi[1],qi=de(function(Or){var Bi;Zi&&Pr(gr,gr+Vn-1),no==null||(Bi=no.onMouseEnter)===null||Bi===void 0||Bi.call(no,Or)}),sr=de(function(Or){var Bi;Zi&&Pr(-1,-1),no==null||(Bi=no.onMouseLeave)===null||Bi===void 0||Bi.call(no,Or)});if(qn===0||Vn===0)return null;var Yr=(hn=no.title)!==null&&hn!==void 0?hn:br({rowType:Kr,ellipsis:bn,children:On}),li=Le()(Nt,gi,(Tn={},(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)(Tn,"".concat(Nt,"-fix-left"),ni&&ee),"".concat(Nt,"-fix-left-first"),ka&&ee),"".concat(Nt,"-fix-left-last"),Go&&ee),"".concat(Nt,"-fix-left-all"),Go&&Ae&&ee),"".concat(Nt,"-fix-right"),wi&&ee),"".concat(Nt,"-fix-right-first"),Ur&&ee),"".concat(Nt,"-fix-right-last"),Zr&&ee),"".concat(Nt,"-ellipsis"),bn),"".concat(Nt,"-with-append"),Mi),"".concat(Nt,"-fix-sticky"),(ni||wi)&&bt&&ee),(0,xe.Z)(Tn,"".concat(Nt,"-row-hover"),!Ln&&ar)),no.className,Ln==null?void 0:Ln.className),dr={};Ti&&(dr.textAlign=Ti);var Oi=(0,Qt.Z)((0,Qt.Z)((0,Qt.Z)((0,Qt.Z)({},Ln==null?void 0:Ln.style),Xn),dr),no.style),ur=On;return(0,re.Z)(ur)==="object"&&!Array.isArray(ur)&&!Ot.isValidElement(ur)&&(ur=null),bn&&(Go||Ur)&&(ur=Ot.createElement("span",{className:"".concat(Nt,"-content")},ur)),Ot.createElement(Pn,(0,ve.Z)({},Ln,no,{className:li,style:Oi,title:Yr,scope:Qn,onMouseEnter:Ue?qi:void 0,onMouseLeave:Ue?sr:void 0,colSpan:qn!==1?qn:null,rowSpan:Vn!==1?Vn:null}),Mi,ur)}var mi=Ot.memo(ii);function Br(Ht,ae,ce,ge,ke){var Ge=ce[Ht]||{},Je=ce[ae]||{},hn,Tn;Ge.fixed==="left"?hn=ge.left[ke==="rtl"?ae:Ht]:Je.fixed==="right"&&(Tn=ge.right[ke==="rtl"?Ht:ae]);var Pn=!1,si=!1,bn=!1,Qn=!1,jn=ce[ae+1],gi=ce[Ht-1],Ti=jn&&!jn.fixed||gi&&!gi.fixed||ce.every(function(ki){return ki.fixed==="left"});if(ke==="rtl"){if(hn!==void 0){var Zi=gi&&gi.fixed==="left";Qn=!Zi&&Ti}else if(Tn!==void 0){var vr=jn&&jn.fixed==="right";bn=!vr&&Ti}}else if(hn!==void 0){var Ci=jn&&jn.fixed==="left";Pn=!Ci&&Ti}else if(Tn!==void 0){var Ki=gi&&gi.fixed==="right";si=!Ki&&Ti}return{fixLeft:hn,fixRight:Tn,lastFixLeft:Pn,firstFixRight:si,lastFixRight:bn,firstFixLeft:Qn,isSticky:ge.isSticky}}var Gr=Ot.createContext({}),Li=Gr;function jr(Ht){var ae=Ht.className,ce=Ht.index,ge=Ht.children,ke=Ht.colSpan,Ge=ke===void 0?1:ke,Je=Ht.rowSpan,hn=Ht.align,Tn=me(Lt,["prefixCls","direction"]),Pn=Tn.prefixCls,si=Tn.direction,bn=Ot.useContext(Li),Qn=bn.scrollColumnIndex,jn=bn.stickyOffsets,gi=bn.flattenColumns,Ti=ce+Ge-1,Zi=Ti+1===Qn?Ge+1:Ge,vr=Br(ce,ce+Zi-1,gi,jn,si);return Ot.createElement(mi,(0,ve.Z)({className:ae,index:ce,component:"td",prefixCls:Pn,record:null,dataIndex:null,align:hn,colSpan:Zi,rowSpan:Je,render:function(){return ge}},vr))}var Lo=Dt(45987),ta=["children"];function _o(Ht){var ae=Ht.children,ce=(0,Lo.Z)(Ht,ta);return Ot.createElement("tr",ce,ae)}function Io(Ht){var ae=Ht.children;return ae}Io.Row=_o,Io.Cell=jr;var ea=Io;function To(Ht){var ae=Ht.children,ce=Ht.stickyOffsets,ge=Ht.flattenColumns,ke=me(Lt,"prefixCls"),Ge=ge.length-1,Je=ge[Ge],hn=Ot.useMemo(function(){return{stickyOffsets:ce,flattenColumns:ge,scrollColumnIndex:Je!=null&&Je.scrollbar?Ge:null}},[Je,ge,Ge,ce]);return Ot.createElement(Li.Provider,{value:hn},Ot.createElement("tfoot",{className:"".concat(ke,"-summary")},ae))}var mr=pt(To),cn=ea,xt=Dt(48555),In=function(Ht){if(!Ht)return!1;if(Ht instanceof Element){if(Ht.offsetParent)return!0;if(Ht.getBBox){var ae=Ht.getBBox(),ce=ae.width,ge=ae.height;if(ce||ge)return!0}if(Ht.getBoundingClientRect){var ke=Ht.getBoundingClientRect(),Ge=ke.width,Je=ke.height;if(Ge||Je)return!0}}return!1},gn=function(ae){if(Oe()&&window.document.documentElement){var ce=Array.isArray(ae)?ae:[ae],ge=window.document.documentElement;return ce.some(function(ke){return ke in ge.style})}return!1},Fn=function(ae,ce){if(!gn(ae))return!1;var ge=document.createElement("div"),ke=ge.style[ae];return ge.style[ae]=ce,ge.style[ae]!==ke};function Nn(Ht,ae){return!Array.isArray(Ht)&&ae!==void 0?Fn(Ht,ae):gn(Ht)}function Rn(Ht,ae){if(!Ht)return!1;if(Ht.contains)return Ht.contains(ae);for(var ce=ae;ce;){if(ce===Ht)return!0;ce=ce.parentNode}return!1}var ri="data-rc-order",Ii="data-rc-priority",Ie="rc-util-key",Re=new Map;function se(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=Ht.mark;return ae?ae.startsWith("data-")?ae:"data-".concat(ae):Ie}function je(Ht){if(Ht.attachTo)return Ht.attachTo;var ae=document.querySelector("head");return ae||document.body}function ti(Ht){return Ht==="queue"?"prependQueue":Ht?"prepend":"append"}function _n(Ht){return Array.from((Re.get(Ht)||Ht).children).filter(function(ae){return ae.tagName==="STYLE"})}function Zn(Ht){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Oe())return null;var ce=ae.csp,ge=ae.prepend,ke=ae.priority,Ge=ke===void 0?0:ke,Je=ti(ge),hn=Je==="prependQueue",Tn=document.createElement("style");Tn.setAttribute(ri,Je),hn&&Ge&&Tn.setAttribute(Ii,"".concat(Ge)),ce!=null&&ce.nonce&&(Tn.nonce=ce==null?void 0:ce.nonce),Tn.innerHTML=Ht;var Pn=je(ae),si=Pn.firstChild;if(ge){if(hn){var bn=(ae.styles||_n(Pn)).filter(function(Qn){if(!["prepend","prependQueue"].includes(Qn.getAttribute(ri)))return!1;var jn=Number(Qn.getAttribute(Ii)||0);return Ge>=jn});if(bn.length)return Pn.insertBefore(Tn,bn[bn.length-1].nextSibling),Tn}Pn.insertBefore(Tn,si)}else Pn.appendChild(Tn);return Tn}function Me(Ht){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=je(ae);return(ae.styles||_n(ce)).find(function(ge){return ge.getAttribute(se(ae))===Ht})}function un(Ht){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=Me(Ht,ae);if(ce){var ge=je(ae);ge.removeChild(ce)}}function xi(Ht,ae){var ce=Re.get(Ht);if(!ce||!Rn(document,ce)){var ge=Zn("",ae),ke=ge.parentNode;Re.set(Ht,ke),Ht.removeChild(ge)}}function Di(){Re.clear()}function Cn(Ht,ae){var ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ge=je(ce),ke=_n(ge),Ge=(0,Qt.Z)((0,Qt.Z)({},ce),{},{styles:ke});xi(ge,Ge);var Je=Me(ae,Ge);if(Je){var hn,Tn;if((hn=Ge.csp)!==null&&hn!==void 0&&hn.nonce&&Je.nonce!==((Tn=Ge.csp)===null||Tn===void 0?void 0:Tn.nonce)){var Pn;Je.nonce=(Pn=Ge.csp)===null||Pn===void 0?void 0:Pn.nonce}return Je.innerHTML!==Ht&&(Je.innerHTML=Ht),Je}var si=Zn(Ht,Ge);return si.setAttribute(se(Ge),ae),si}var be;function fi(Ht){var ae="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),ce=document.createElement("div");ce.id=ae;var ge=ce.style;ge.position="absolute",ge.left="0",ge.top="0",ge.width="100px",ge.height="100px",ge.overflow="scroll";var ke,Ge;if(Ht){var Je=getComputedStyle(Ht);ge.scrollbarColor=Je.scrollbarColor,ge.scrollbarWidth=Je.scrollbarWidth;var hn=getComputedStyle(Ht,"::-webkit-scrollbar"),Tn=parseInt(hn.width,10),Pn=parseInt(hn.height,10);try{var si=Tn?"width: ".concat(hn.width,";"):"",bn=Pn?"height: ".concat(hn.height,";"):"";Cn(`
#`.concat(ae,`::-webkit-scrollbar {
`).concat(si,`
`).concat(bn,`
}`),ae)}catch(gi){console.error(gi),ke=Tn,Ge=Pn}}document.body.appendChild(ce);var Qn=Ht&&ke&&!isNaN(ke)?ke:ce.offsetWidth-ce.clientWidth,jn=Ht&&Ge&&!isNaN(Ge)?Ge:ce.offsetHeight-ce.clientHeight;return document.body.removeChild(ce),un(ae),{width:Qn,height:jn}}function Wi(Ht){return typeof document=="undefined"?0:((Ht||be===void 0)&&(be=fi()),be.width)}function Er(Ht){return typeof document=="undefined"||!Ht||!(Ht instanceof Element)?{width:0,height:0}:fi(Ht)}var fn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,bi=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Mr="".concat(fn," ").concat(bi).split(/[\s\n]+/),na="aria-",Ao="data-";function Fi(Ht,ae){return Ht.indexOf(ae)===0}function Ai(Ht){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ce;ae===!1?ce={aria:!0,data:!0,attr:!0}:ae===!0?ce={aria:!0}:ce=(0,Qt.Z)({},ae);var ge={};return Object.keys(Ht).forEach(function(ke){(ce.aria&&(ke==="role"||Fi(ke,na))||ce.data&&Fi(ke,Ao)||ce.attr&&Mr.includes(ke))&&(ge[ke]=Ht[ke])}),ge}function zi(Ht,ae,ce,ge,ke,Ge,Je){Ht.push({record:ae,indent:ce,index:Je});var hn=Ge(ae),Tn=ke==null?void 0:ke.has(hn);if(ae&&Array.isArray(ae[ge])&&Tn)for(var Pn=0;Pn<ae[ge].length;Pn+=1)zi(Ht,ae[ge][Pn],ce+1,ge,ke,Ge,Pn)}function Jr(Ht,ae,ce,ge){var ke=Ot.useMemo(function(){if(ce!=null&&ce.size){for(var Ge=[],Je=0;Je<(Ht==null?void 0:Ht.length);Je+=1){var hn=Ht[Je];zi(Ge,hn,0,ae,ce,ge,Je)}return Ge}return Ht==null?void 0:Ht.map(function(Tn,Pn){return{record:Tn,indent:0,index:Pn}})},[Ht,ae,ce,ge]);return ke}function bo(Ht,ae,ce,ge){var ke=me(Lt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ge=ke.flattenColumns,Je=ke.expandableType,hn=ke.expandedKeys,Tn=ke.childrenColumnName,Pn=ke.onTriggerExpand,si=ke.rowExpandable,bn=ke.onRow,Qn=ke.expandRowByClick,jn=ke.rowClassName,gi=Je==="nest",Ti=Je==="row"&&(!si||si(Ht)),Zi=Ti||gi,vr=hn&&hn.has(ae),Ci=Tn&&Ht&&Ht[Tn],Ki=de(Pn),ki=bn==null?void 0:bn(Ht,ce),gr=ki==null?void 0:ki.onClick,Kr=function(Bo){Qn&&Zi&&Pn(Ht,Bo);for(var ka=arguments.length,Go=new Array(ka>1?ka-1:0),Ur=1;Ur<ka;Ur++)Go[Ur-1]=arguments[Ur];gr==null||gr.apply(void 0,[Bo].concat(Go))},hr;typeof jn=="string"?hr=jn:typeof jn=="function"&&(hr=jn(Ht,ce,ge));var Mo=_e(Ge);return(0,Qt.Z)((0,Qt.Z)({},ke),{},{columnsKey:Mo,nestExpandable:gi,expanded:vr,hasNestChildren:Ci,record:Ht,onTriggerExpand:Ki,rowSupportExpand:Ti,expandable:Zi,rowProps:(0,Qt.Z)((0,Qt.Z)({},ki),{},{className:Le()(hr,ki==null?void 0:ki.className),onClick:Kr})})}function Yn(Ht){var ae=Ht.prefixCls,ce=Ht.children,ge=Ht.component,ke=Ht.cellComponent,Ge=Ht.className,Je=Ht.expanded,hn=Ht.colSpan,Tn=Ht.isEmpty,Pn=me(Lt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),si=Pn.scrollbarSize,bn=Pn.fixHeader,Qn=Pn.fixColumn,jn=Pn.componentWidth,gi=Pn.horizonScroll,Ti=ce;return(Tn?gi&&jn:Qn)&&(Ti=Ot.createElement("div",{style:{width:jn-(bn&&!Tn?si:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ae,"-expanded-row-fixed")},Ti)),Ot.createElement(ge,{className:Ge,style:{display:Je?null:"none"}},Ot.createElement(mi,{component:ke,prefixCls:ae,colSpan:hn},Ti))}var tr=Yn;function qs(Ht){var ae=Ht.prefixCls,ce=Ht.record,ge=Ht.onExpand,ke=Ht.expanded,Ge=Ht.expandable,Je="".concat(ae,"-row-expand-icon");if(!Ge)return Ot.createElement("span",{className:Le()(Je,"".concat(ae,"-row-spaced"))});var hn=function(Pn){ge(ce,Pn),Pn.stopPropagation()};return Ot.createElement("span",{className:Le()(Je,(0,xe.Z)((0,xe.Z)({},"".concat(ae,"-row-expanded"),ke),"".concat(ae,"-row-collapsed"),!ke)),onClick:hn})}function ns(Ht,ae,ce){var ge=[];function ke(Ge){(Ge||[]).forEach(function(Je,hn){ge.push(ae(Je,hn)),ke(Je[ce])})}return ke(Ht),ge}function Wa(Ht,ae,ce,ge){return typeof Ht=="string"?Ht:typeof Ht=="function"?Ht(ae,ce,ge):""}function Te(Ht,ae,ce,ge,ke){var Ge=Ht.record,Je=Ht.prefixCls,hn=Ht.columnsKey,Tn=Ht.fixedInfoList,Pn=Ht.expandIconColumnIndex,si=Ht.nestExpandable,bn=Ht.indentSize,Qn=Ht.expandIcon,jn=Ht.expanded,gi=Ht.hasNestChildren,Ti=Ht.onTriggerExpand,Zi=hn[ce],vr=Tn[ce],Ci;ce===(Pn||0)&&si&&(Ci=Ot.createElement(Ot.Fragment,null,Ot.createElement("span",{style:{paddingLeft:"".concat(bn*ge,"px")},className:"".concat(Je,"-row-indent indent-level-").concat(ge)}),Qn({prefixCls:Je,expanded:jn,expandable:gi,record:Ge,onExpand:Ti})));var Ki;return ae.onCell&&(Ki=ae.onCell(Ge,ke)),{key:Zi,fixedInfo:vr,appendCellNode:Ci,additionalCellProps:Ki||{}}}function cr(Ht){var ae=Ht.className,ce=Ht.style,ge=Ht.record,ke=Ht.index,Ge=Ht.renderIndex,Je=Ht.rowKey,hn=Ht.indent,Tn=hn===void 0?0:hn,Pn=Ht.rowComponent,si=Ht.cellComponent,bn=Ht.scopeCellComponent,Qn=bo(ge,Je,ke,Tn),jn=Qn.prefixCls,gi=Qn.flattenColumns,Ti=Qn.expandedRowClassName,Zi=Qn.expandedRowRender,vr=Qn.rowProps,Ci=Qn.expanded,Ki=Qn.rowSupportExpand,ki=Ot.useRef(!1);ki.current||(ki.current=Ci);var gr=Wa(Ti,ge,ke,Tn),Kr=Ot.createElement(Pn,(0,ve.Z)({},vr,{"data-row-key":Je,className:Le()(ae,"".concat(jn,"-row"),"".concat(jn,"-row-level-").concat(Tn),vr==null?void 0:vr.className,(0,xe.Z)({},gr,Tn>=1)),style:(0,Qt.Z)((0,Qt.Z)({},ce),vr==null?void 0:vr.style)}),gi.map(function(Vr,Bo){var ka=Vr.render,Go=Vr.dataIndex,Ur=Vr.className,Zr=Te(Qn,Vr,Bo,Tn,ke),Mi=Zr.key,yr=Zr.fixedInfo,no=Zr.appendCellNode,bt=Zr.additionalCellProps;return Ot.createElement(mi,(0,ve.Z)({className:Ur,ellipsis:Vr.ellipsis,align:Vr.align,scope:Vr.rowScope,component:Vr.rowScope?bn:si,prefixCls:jn,key:Mi,record:ge,index:ke,renderIndex:Ge,dataIndex:Go,render:ka,shouldCellUpdate:Vr.shouldCellUpdate},yr,{appendNode:no,additionalProps:bt}))})),hr;if(Ki&&(ki.current||Ci)){var Mo=Zi(ge,ke,Tn+1,Ci);hr=Ot.createElement(tr,{expanded:Ci,className:Le()("".concat(jn,"-expanded-row"),"".concat(jn,"-expanded-row-level-").concat(Tn+1),gr),prefixCls:jn,component:Pn,cellComponent:si,colSpan:gi.length,isEmpty:!1},Mo)}return Ot.createElement(Ot.Fragment,null,Kr,hr)}var co=pt(cr);function _i(Ht){var ae=Ht.columnKey,ce=Ht.onColumnResize,ge=Ot.useRef();return Ot.useEffect(function(){ge.current&&ce(ae,ge.current.offsetWidth)},[]),Ot.createElement(xt.Z,{data:ae},Ot.createElement("td",{ref:ge,style:{padding:0,border:0,height:0}},Ot.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function fa(Ht){var ae=Ht.prefixCls,ce=Ht.columnsKey,ge=Ht.onColumnResize;return Ot.createElement("tr",{"aria-hidden":"true",className:"".concat(ae,"-measure-row"),style:{height:0,fontSize:0}},Ot.createElement(xt.Z.Collection,{onBatchResize:function(Ge){Ge.forEach(function(Je){var hn=Je.data,Tn=Je.size;ge(hn,Tn.offsetWidth)})}},ce.map(function(ke){return Ot.createElement(_i,{key:ke,columnKey:ke,onColumnResize:ge})})))}function fo(Ht){var ae=Ht.data,ce=Ht.measureColumnWidth,ge=me(Lt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),ke=ge.prefixCls,Ge=ge.getComponent,Je=ge.onColumnResize,hn=ge.flattenColumns,Tn=ge.getRowKey,Pn=ge.expandedKeys,si=ge.childrenColumnName,bn=ge.emptyNode,Qn=Jr(ae,si,Pn,Tn),jn=Ot.useRef({renderWithProps:!1}),gi=Ge(["body","wrapper"],"tbody"),Ti=Ge(["body","row"],"tr"),Zi=Ge(["body","cell"],"td"),vr=Ge(["body","cell"],"th"),Ci;ae.length?Ci=Qn.map(function(ki,gr){var Kr=ki.record,hr=ki.indent,Mo=ki.index,Vr=Tn(Kr,gr);return Ot.createElement(co,{key:Vr,rowKey:Vr,record:Kr,index:gr,renderIndex:Mo,rowComponent:Ti,cellComponent:Zi,scopeCellComponent:vr,indent:hr})}):Ci=Ot.createElement(tr,{expanded:!0,className:"".concat(ke,"-placeholder"),prefixCls:ke,component:Ti,cellComponent:Zi,colSpan:hn.length,isEmpty:!0},bn);var Ki=_e(hn);return Ot.createElement($t.Provider,{value:jn.current},Ot.createElement(gi,{className:"".concat(ke,"-tbody")},ce&&Ot.createElement(fa,{prefixCls:ke,columnsKey:Ki,onColumnResize:Je}),Ci))}var Co=pt(fo),Qr=Dt(62978),io=["columnType"];function Zo(Ht){for(var ae=Ht.colWidths,ce=Ht.columns,ge=Ht.columCount,ke=me(Lt,["tableLayout"]),Ge=ke.tableLayout,Je=[],hn=ge||ce.length,Tn=!1,Pn=hn-1;Pn>=0;Pn-=1){var si=ae[Pn],bn=ce&&ce[Pn],Qn=void 0,jn=void 0;if(bn&&(Qn=bn[Qr.v],Ge==="auto"&&(jn=bn.minWidth)),si||jn||Qn||Tn){var gi=Qn||{},Ti=gi.columnType,Zi=(0,Lo.Z)(gi,io);Je.unshift(Ot.createElement("col",(0,ve.Z)({key:Pn,style:{width:si,minWidth:jn}},Zi))),Tn=!0}}return Ot.createElement("colgroup",null,Je)}var vn=Zo,ma=Dt(74902),sn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function lo(Ht,ae){return(0,Ot.useMemo)(function(){for(var ce=[],ge=0;ge<ae;ge+=1){var ke=Ht[ge];if(ke!==void 0)ce[ge]=ke;else return null}return ce},[Ht.join("_"),ae])}var bs=Ot.forwardRef(function(Ht,ae){var ce=Ht.className,ge=Ht.noData,ke=Ht.columns,Ge=Ht.flattenColumns,Je=Ht.colWidths,hn=Ht.columCount,Tn=Ht.stickyOffsets,Pn=Ht.direction,si=Ht.fixHeader,bn=Ht.stickyTopOffset,Qn=Ht.stickyBottomOffset,jn=Ht.stickyClassName,gi=Ht.onScroll,Ti=Ht.maxContentScroll,Zi=Ht.children,vr=(0,Lo.Z)(Ht,sn),Ci=me(Lt,["prefixCls","scrollbarSize","isSticky","getComponent"]),Ki=Ci.prefixCls,ki=Ci.scrollbarSize,gr=Ci.isSticky,Kr=Ci.getComponent,hr=Kr(["header","table"],"table"),Mo=gr&&!si?0:ki,Vr=Ot.useRef(null),Bo=Ot.useCallback(function(bt){zn(ae,bt),zn(Vr,bt)},[]);Ot.useEffect(function(){var bt;function Nt(Xt){var ee=Xt,Ae=ee.currentTarget,Ue=ee.deltaX;Ue&&(gi({currentTarget:Ae,scrollLeft:Ae.scrollLeft+Ue}),Xt.preventDefault())}return(bt=Vr.current)===null||bt===void 0||bt.addEventListener("wheel",Nt,{passive:!1}),function(){var Xt;(Xt=Vr.current)===null||Xt===void 0||Xt.removeEventListener("wheel",Nt)}},[]);var ka=Ot.useMemo(function(){return Ge.every(function(bt){return bt.width})},[Ge]),Go=Ge[Ge.length-1],Ur={fixed:Go?Go.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ki,"-cell-scrollbar")}}},Zr=(0,Ot.useMemo)(function(){return Mo?[].concat((0,ma.Z)(ke),[Ur]):ke},[Mo,ke]),Mi=(0,Ot.useMemo)(function(){return Mo?[].concat((0,ma.Z)(Ge),[Ur]):Ge},[Mo,Ge]),yr=(0,Ot.useMemo)(function(){var bt=Tn.right,Nt=Tn.left;return(0,Qt.Z)((0,Qt.Z)({},Tn),{},{left:Pn==="rtl"?[].concat((0,ma.Z)(Nt.map(function(Xt){return Xt+Mo})),[0]):Nt,right:Pn==="rtl"?bt:[].concat((0,ma.Z)(bt.map(function(Xt){return Xt+Mo})),[0]),isSticky:gr})},[Mo,Tn,gr]),no=lo(Je,hn);return Ot.createElement("div",{style:(0,Qt.Z)({overflow:"hidden"},gr?{top:bn,bottom:Qn}:{}),ref:Bo,className:Le()(ce,(0,xe.Z)({},jn,!!jn))},Ot.createElement(hr,{style:{tableLayout:"fixed",visibility:ge||no?null:"hidden"}},(!ge||!Ti||ka)&&Ot.createElement(vn,{colWidths:no?[].concat((0,ma.Z)(no),[Mo]):[],columCount:hn+1,columns:Mi}),Zi((0,Qt.Z)((0,Qt.Z)({},vr),{},{stickyOffsets:yr,columns:Zr,flattenColumns:Mi}))))}),xa=Ot.memo(bs),fl=function(ae){var ce=ae.cells,ge=ae.stickyOffsets,ke=ae.flattenColumns,Ge=ae.rowComponent,Je=ae.cellComponent,hn=ae.onHeaderRow,Tn=ae.index,Pn=me(Lt,["prefixCls","direction"]),si=Pn.prefixCls,bn=Pn.direction,Qn;hn&&(Qn=hn(ce.map(function(gi){return gi.column}),Tn));var jn=_e(ce.map(function(gi){return gi.column}));return Ot.createElement(Ge,Qn,ce.map(function(gi,Ti){var Zi=gi.column,vr=Br(gi.colStart,gi.colEnd,ke,ge,bn),Ci;return Zi&&Zi.onHeaderCell&&(Ci=gi.column.onHeaderCell(Zi)),Ot.createElement(mi,(0,ve.Z)({},gi,{scope:Zi.title?gi.colSpan>1?"colgroup":"col":null,ellipsis:Zi.ellipsis,align:Zi.align,component:Je,prefixCls:si,key:jn[Ti]},vr,{additionalProps:Ci,rowType:"header"}))}))},va=fl;function yo(Ht){var ae=[];function ce(Je,hn){var Tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ae[Tn]=ae[Tn]||[];var Pn=hn,si=Je.filter(Boolean).map(function(bn){var Qn={key:bn.key,className:bn.className||"",children:bn.title,column:bn,colStart:Pn},jn=1,gi=bn.children;return gi&&gi.length>0&&(jn=ce(gi,Pn,Tn+1).reduce(function(Ti,Zi){return Ti+Zi},0),Qn.hasSubColumns=!0),"colSpan"in bn&&(jn=bn.colSpan),"rowSpan"in bn&&(Qn.rowSpan=bn.rowSpan),Qn.colSpan=jn,Qn.colEnd=Qn.colStart+jn-1,ae[Tn].push(Qn),Pn+=jn,jn});return si}ce(Ht,0);for(var ge=ae.length,ke=function(hn){ae[hn].forEach(function(Tn){!("rowSpan"in Tn)&&!Tn.hasSubColumns&&(Tn.rowSpan=ge-hn)})},Ge=0;Ge<ge;Ge+=1)ke(Ge);return ae}var ya=function(ae){var ce=ae.stickyOffsets,ge=ae.columns,ke=ae.flattenColumns,Ge=ae.onHeaderRow,Je=me(Lt,["prefixCls","getComponent"]),hn=Je.prefixCls,Tn=Je.getComponent,Pn=Ot.useMemo(function(){return yo(ge)},[ge]),si=Tn(["header","wrapper"],"thead"),bn=Tn(["header","row"],"tr"),Qn=Tn(["header","cell"],"th");return Ot.createElement(si,{className:"".concat(hn,"-thead")},Pn.map(function(jn,gi){var Ti=Ot.createElement(va,{key:gi,flattenColumns:ke,cells:jn,stickyOffsets:ce,rowComponent:bn,cellComponent:Qn,onHeaderRow:Ge,index:gi});return Ti}))},Ys=pt(ya),$o=Dt(54768);function ci(Ht,ae,ce){var ge=(0,Qr.g)(Ht),ke=ge.expandIcon,Ge=ge.expandedRowKeys,Je=ge.defaultExpandedRowKeys,hn=ge.defaultExpandAllRows,Tn=ge.expandedRowRender,Pn=ge.onExpand,si=ge.onExpandedRowsChange,bn=ge.childrenColumnName,Qn=ke||qs,jn=bn||"children",gi=Ot.useMemo(function(){return Tn?"row":Ht.expandable&&Ht.internalHooks===kt.R&&Ht.expandable.__PARENT_RENDER_ICON__||ae.some(function(gr){return gr&&(0,re.Z)(gr)==="object"&&gr[jn]})?"nest":!1},[!!Tn,ae]),Ti=Ot.useState(function(){return Je||(hn?ns(ae,ce,jn):[])}),Zi=(0,le.Z)(Ti,2),vr=Zi[0],Ci=Zi[1],Ki=Ot.useMemo(function(){return new Set(Ge||vr||[])},[Ge,vr]),ki=Ot.useCallback(function(gr){var Kr=ce(gr,ae.indexOf(gr)),hr,Mo=Ki.has(Kr);Mo?(Ki.delete(Kr),hr=(0,ma.Z)(Ki)):hr=[].concat((0,ma.Z)(Ki),[Kr]),Ci(hr),Pn&&Pn(!Mo,gr),si&&si(hr)},[ce,Ki,ae,Pn,si]);return[ge,gi,Ki,Qn,jn,ki]}function Zt(Ht,ae,ce){var ge=Ht.map(function(ke,Ge){return Br(Ge,Ge,Ht,ae,ce)});return Qe(function(){return ge},[ge],function(ke,Ge){return!Jn(ke,Ge)})}function ts(Ht){var ae=(0,Ot.useRef)(Ht),ce=(0,Ot.useState)({}),ge=(0,le.Z)(ce,2),ke=ge[1],Ge=(0,Ot.useRef)(null),Je=(0,Ot.useRef)([]);function hn(Tn){Je.current.push(Tn);var Pn=Promise.resolve();Ge.current=Pn,Pn.then(function(){if(Ge.current===Pn){var si=Je.current,bn=ae.current;Je.current=[],si.forEach(function(Qn){ae.current=Qn(ae.current)}),Ge.current=null,bn!==ae.current&&ke({})}})}return(0,Ot.useEffect)(function(){return function(){Ge.current=null}},[]),[ae.current,hn]}function uu(Ht){var ae=(0,Ot.useRef)(Ht||null),ce=(0,Ot.useRef)();function ge(){window.clearTimeout(ce.current)}function ke(Je){ae.current=Je,ge(),ce.current=window.setTimeout(function(){ae.current=null,ce.current=void 0},100)}function Ge(){return ae.current}return(0,Ot.useEffect)(function(){return ge},[]),[ke,Ge]}function hu(){var Ht=Ot.useState(-1),ae=(0,le.Z)(Ht,2),ce=ae[0],ge=ae[1],ke=Ot.useState(-1),Ge=(0,le.Z)(ke,2),Je=Ge[0],hn=Ge[1],Tn=Ot.useCallback(function(Pn,si){ge(Pn),hn(si)},[]);return[ce,Je,Tn]}var Xs=Oe()?window:null;function xu(Ht,ae){var ce=(0,re.Z)(Ht)==="object"?Ht:{},ge=ce.offsetHeader,ke=ge===void 0?0:ge,Ge=ce.offsetSummary,Je=Ge===void 0?0:Ge,hn=ce.offsetScroll,Tn=hn===void 0?0:hn,Pn=ce.getContainer,si=Pn===void 0?function(){return Xs}:Pn,bn=si()||Xs,Qn=!!Ht;return Ot.useMemo(function(){return{isSticky:Qn,stickyClassName:Qn?"".concat(ae,"-sticky-holder"):"",offsetHeader:ke,offsetSummary:Je,offsetScroll:Tn,container:bn}},[Qn,Tn,ke,Je,ae,bn])}function Vl(Ht,ae,ce){var ge=(0,Ot.useMemo)(function(){var ke=ae.length,Ge=function(Pn,si,bn){for(var Qn=[],jn=0,gi=Pn;gi!==si;gi+=bn)Qn.push(jn),ae[gi].fixed&&(jn+=Ht[gi]||0);return Qn},Je=Ge(0,ke,1),hn=Ge(ke-1,-1,-1).reverse();return ce==="rtl"?{left:hn,right:Je}:{left:Je,right:hn}},[Ht,ae,ce]);return ge}var lh=Vl;function wu(Ht){var ae=Ht.className,ce=Ht.children;return Ot.createElement("div",{className:ae},ce)}var ga=wu;function Ha(Ht,ae,ce,ge){var ke=qt.unstable_batchedUpdates?function(Je){qt.unstable_batchedUpdates(ce,Je)}:ce;return Ht!=null&&Ht.addEventListener&&Ht.addEventListener(ae,ke,ge),{remove:function(){Ht!=null&&Ht.removeEventListener&&Ht.removeEventListener(ae,ke,ge)}}}var or=function(ae){return+setTimeout(ae,16)},Xi=function(ae){return clearTimeout(ae)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(or=function(ae){return window.requestAnimationFrame(ae)},Xi=function(ae){return window.cancelAnimationFrame(ae)});var zr=0,$e=new Map;function fr(Ht){$e.delete(Ht)}var eo=function(ae){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;zr+=1;var ge=zr;function ke(Ge){if(Ge===0)fr(ge),ae();else{var Je=or(function(){ke(Ge-1)});$e.set(ge,Je)}}return ke(ce),ge};eo.cancel=function(Ht){var ae=$e.get(Ht);return fr(Ht),Xi(ae)};var wa=eo;function ua(Ht){return Ht instanceof HTMLElement||Ht instanceof SVGElement}function Ga(Ht){return Ht&&(0,re.Z)(Ht)==="object"&&ua(Ht.nativeElement)?Ht.nativeElement:ua(Ht)?Ht:null}function Ds(Ht){var ae=Ga(Ht);if(ae)return ae;if(Ht instanceof React.Component){var ce;return(ce=ReactDOM.findDOMNode)===null||ce===void 0?void 0:ce.call(ReactDOM,Ht)}return null}function _s(Ht){var ae=Ga(Ht),ce=ae.getBoundingClientRect(),ge=document.documentElement;return{left:ce.left+(window.pageXOffset||ge.scrollLeft)-(ge.clientLeft||document.body.clientLeft||0),top:ce.top+(window.pageYOffset||ge.scrollTop)-(ge.clientTop||document.body.clientTop||0)}}var $s=function(ae,ce){var ge,ke,Ge=ae.scrollBodyRef,Je=ae.onScroll,hn=ae.offsetScroll,Tn=ae.container,Pn=ae.direction,si=me(Lt,"prefixCls"),bn=((ge=Ge.current)===null||ge===void 0?void 0:ge.scrollWidth)||0,Qn=((ke=Ge.current)===null||ke===void 0?void 0:ke.clientWidth)||0,jn=bn&&Qn*(Qn/bn),gi=Ot.useRef(),Ti=ts({scrollLeft:0,isHiddenScrollBar:!0}),Zi=(0,le.Z)(Ti,2),vr=Zi[0],Ci=Zi[1],Ki=Ot.useRef({delta:0,x:0}),ki=Ot.useState(!1),gr=(0,le.Z)(ki,2),Kr=gr[0],hr=gr[1],Mo=Ot.useRef(null);Ot.useEffect(function(){return function(){wa.cancel(Mo.current)}},[]);var Vr=function(){hr(!1)},Bo=function(Mi){Mi.persist(),Ki.current.delta=Mi.pageX-vr.scrollLeft,Ki.current.x=0,hr(!0),Mi.preventDefault()},ka=function(Mi){var yr,no=Mi||((yr=window)===null||yr===void 0?void 0:yr.event),bt=no.buttons;if(!Kr||bt===0){Kr&&hr(!1);return}var Nt=Ki.current.x+Mi.pageX-Ki.current.x-Ki.current.delta,Xt=Pn==="rtl";Nt=Math.max(Xt?jn-Qn:0,Math.min(Xt?0:Qn-jn,Nt));var ee=!Xt||Math.abs(Nt)+Math.abs(jn)<Qn;ee&&(Je({scrollLeft:Nt/Qn*(bn+2)}),Ki.current.x=Mi.pageX)},Go=function(){wa.cancel(Mo.current),Mo.current=wa(function(){if(Ge.current){var Mi=_s(Ge.current).top,yr=Mi+Ge.current.offsetHeight,no=Tn===window?document.documentElement.scrollTop+window.innerHeight:_s(Tn).top+Tn.clientHeight;yr-Wi()<=no||Mi>=no-hn?Ci(function(bt){return(0,Qt.Z)((0,Qt.Z)({},bt),{},{isHiddenScrollBar:!0})}):Ci(function(bt){return(0,Qt.Z)((0,Qt.Z)({},bt),{},{isHiddenScrollBar:!1})})}})},Ur=function(Mi){Ci(function(yr){return(0,Qt.Z)((0,Qt.Z)({},yr),{},{scrollLeft:Mi/bn*Qn||0})})};return Ot.useImperativeHandle(ce,function(){return{setScrollLeft:Ur,checkScrollBarVisible:Go}}),Ot.useEffect(function(){var Zr=Ha(document.body,"mouseup",Vr,!1),Mi=Ha(document.body,"mousemove",ka,!1);return Go(),function(){Zr.remove(),Mi.remove()}},[jn,Kr]),Ot.useEffect(function(){if(Ge.current){for(var Zr=[],Mi=Ga(Ge.current);Mi;)Zr.push(Mi),Mi=Mi.parentElement;return Zr.forEach(function(yr){return yr.addEventListener("scroll",Go,!1)}),window.addEventListener("resize",Go,!1),window.addEventListener("scroll",Go,!1),Tn.addEventListener("scroll",Go,!1),function(){Zr.forEach(function(yr){return yr.removeEventListener("scroll",Go)}),window.removeEventListener("resize",Go),window.removeEventListener("scroll",Go),Tn.removeEventListener("scroll",Go)}}},[Tn]),Ot.useEffect(function(){vr.isHiddenScrollBar||Ci(function(Zr){var Mi=Ge.current;return Mi?(0,Qt.Z)((0,Qt.Z)({},Zr),{},{scrollLeft:Mi.scrollLeft/Mi.scrollWidth*Mi.clientWidth}):Zr})},[vr.isHiddenScrollBar]),bn<=Qn||!jn||vr.isHiddenScrollBar?null:Ot.createElement("div",{style:{height:Wi(),width:Qn,bottom:hn},className:"".concat(si,"-sticky-scroll")},Ot.createElement("div",{onMouseDown:Bo,ref:gi,className:Le()("".concat(si,"-sticky-scroll-bar"),(0,xe.Z)({},"".concat(si,"-sticky-scroll-bar-active"),Kr)),style:{width:"".concat(jn,"px"),transform:"translate3d(".concat(vr.scrollLeft,"px, 0, 0)")}}))},uh=Ot.forwardRef($s);function Qu(Ht){return null}var We=Qu;function gl(Ht){return null}var du=gl,qu="rc-table",is=[],_u={};function ed(){return"No Data"}function Ch(Ht,ae){var ce=(0,Qt.Z)({rowKey:"key",prefixCls:qu,emptyText:ed},Ht),ge=ce.prefixCls,ke=ce.className,Ge=ce.rowClassName,Je=ce.style,hn=ce.data,Tn=ce.rowKey,Pn=ce.scroll,si=ce.tableLayout,bn=ce.direction,Qn=ce.title,jn=ce.footer,gi=ce.summary,Ti=ce.caption,Zi=ce.id,vr=ce.showHeader,Ci=ce.components,Ki=ce.emptyText,ki=ce.onRow,gr=ce.onHeaderRow,Kr=ce.onScroll,hr=ce.internalHooks,Mo=ce.transformColumns,Vr=ce.internalRefs,Bo=ce.tailor,ka=ce.getContainerWidth,Go=ce.sticky,Ur=ce.rowHoverable,Zr=Ur===void 0?!0:Ur,Mi=hn||is,yr=!!Mi.length,no=hr===kt.R,bt=Ot.useCallback(function(Qo,po){return Ke(Ci,Qo)||po},[Ci]),Nt=Ot.useMemo(function(){return typeof Tn=="function"?Tn:function(Qo){var po=Qo&&Qo[Tn];return po}},[Tn]),Xt=bt(["body"]),ee=hu(),Ae=(0,le.Z)(ee,3),Ue=Ae[0],en=Ae[1],kn=Ae[2],On=ci(ce,Mi,Nt),Ln=(0,le.Z)(On,6),Xn=Ln[0],ni=Ln[1],wi=Ln[2],qn=Ln[3],Vn=Ln[4],hi=Ln[5],Pi=Pn==null?void 0:Pn.x,ar=Ot.useState(0),Pr=(0,le.Z)(ar,2),qi=Pr[0],sr=Pr[1],Yr=(0,$o.Z)((0,Qt.Z)((0,Qt.Z)((0,Qt.Z)({},ce),Xn),{},{expandable:!!Xn.expandedRowRender,columnTitle:Xn.columnTitle,expandedKeys:wi,getRowKey:Nt,onTriggerExpand:hi,expandIcon:qn,expandIconColumnIndex:Xn.expandIconColumnIndex,direction:bn,scrollWidth:no&&Bo&&typeof Pi=="number"?Pi:null,clientWidth:qi}),no?Mo:null),li=(0,le.Z)(Yr,4),dr=li[0],Oi=li[1],ur=li[2],Or=li[3],Bi=ur!=null?ur:Pi,_r=Ot.useMemo(function(){return{columns:dr,flattenColumns:Oi}},[dr,Oi]),Fr=Ot.useRef(),So=Ot.useRef(),xr=Ot.useRef(),oo=Ot.useRef();Ot.useImperativeHandle(ae,function(){return{nativeElement:Fr.current,scrollTo:function(po){var ks;if(xr.current instanceof HTMLElement){var $l=po.index,sl=po.top,Pl=po.key;if(we(sl)){var Us;(Us=xr.current)===null||Us===void 0||Us.scrollTo({top:sl})}else{var fh,ss=Pl!=null?Pl:Nt(Mi[$l]);(fh=xr.current.querySelector('[data-row-key="'.concat(ss,'"]')))===null||fh===void 0||fh.scrollIntoView()}}else(ks=xr.current)!==null&&ks!==void 0&&ks.scrollTo&&xr.current.scrollTo(po)}}});var ko=Ot.useRef(),Ko=Ot.useState(!1),Fo=(0,le.Z)(Ko,2),rr=Fo[0],Wr=Fo[1],Xo=Ot.useState(!1),No=(0,le.Z)(Xo,2),ra=No[0],Jo=No[1],pa=ts(new Map),oa=(0,le.Z)(pa,2),La=oa[0],ys=oa[1],Da=_e(Oi),Ir=Da.map(function(Qo){return La.get(Qo)}),Tr=Ot.useMemo(function(){return Ir},[Ir.join("_")]),Nr=lh(Tr,Oi,bn),Ri=Pn&&Sn(Pn.y),Vi=Pn&&Sn(Bi)||!!Xn.fixed,Cr=Vi&&Oi.some(function(Qo){var po=Qo.fixed;return po}),uo=Ot.useRef(),Po=xu(Go,ge),ao=Po.isSticky,Ta=Po.offsetHeader,as=Po.offsetSummary,da=Po.offsetScroll,Ps=Po.stickyClassName,Ma=Po.container,za=Ot.useMemo(function(){return gi==null?void 0:gi(Mi)},[gi,Mi]),Va=(Ri||ao)&&Ot.isValidElement(za)&&za.type===ea&&za.props.fixed,Ts,Xa,Ja;Ri&&(Xa={overflowY:yr?"scroll":"auto",maxHeight:Pn.y}),Vi&&(Ts={overflowX:"auto"},Ri||(Xa={overflowY:"hidden"}),Ja={width:Bi===!0?"auto":Bi,minWidth:"100%"});var Aa=Ot.useCallback(function(Qo,po){In(Fr.current)&&ys(function(ks){if(ks.get(Qo)!==po){var $l=new Map(ks);return $l.set(Qo,po),$l}return ks})},[]),Ua=uu(null),Vs=(0,le.Z)(Ua,2),Js=Vs[0],Ar=Vs[1];function lr(Qo,po){po&&(typeof po=="function"?po(Qo):po.scrollLeft!==Qo&&(po.scrollLeft=Qo,po.scrollLeft!==Qo&&setTimeout(function(){po.scrollLeft=Qo},0)))}var Sr=de(function(Qo){var po=Qo.currentTarget,ks=Qo.scrollLeft,$l=bn==="rtl",sl=typeof ks=="number"?ks:po.scrollLeft,Pl=po||_u;if(!Ar()||Ar()===Pl){var Us;Js(Pl),lr(sl,So.current),lr(sl,xr.current),lr(sl,ko.current),lr(sl,(Us=uo.current)===null||Us===void 0?void 0:Us.setScrollLeft)}var fh=po||So.current;if(fh){var ss=no&&Bo&&typeof Bi=="number"?Bi:fh.scrollWidth,Kh=fh.clientWidth;if(ss===Kh){Wr(!1),Jo(!1);return}$l?(Wr(-sl<ss-Kh),Jo(-sl>0)):(Wr(sl>0),Jo(sl<ss-Kh))}}),Ro=de(function(Qo){Sr(Qo),Kr==null||Kr(Qo)}),Qa=function(){if(Vi&&xr.current){var po;Sr({currentTarget:Ga(xr.current),scrollLeft:(po=xr.current)===null||po===void 0?void 0:po.scrollLeft})}else Wr(!1),Jo(!1)},Ss=function(po){var ks,$l=po.width;(ks=uo.current)===null||ks===void 0||ks.checkScrollBarVisible();var sl=Fr.current?Fr.current.offsetWidth:$l;no&&ka&&Fr.current&&(sl=ka(Fr.current,sl)||sl),sl!==qi&&(Qa(),sr(sl))},rl=Ot.useRef(!1);Ot.useEffect(function(){rl.current&&Qa()},[Vi,hn,dr.length]),Ot.useEffect(function(){rl.current=!0},[]);var ye=Ot.useState(0),xl=(0,le.Z)(ye,2),Ms=xl[0],Nl=xl[1],Au=Ot.useState(!0),Cs=(0,le.Z)(Au,2),to=Cs[0],sa=Cs[1];Ot.useEffect(function(){(!Bo||!no)&&(xr.current instanceof Element?Nl(Er(xr.current).width):Nl(Er(oo.current).width)),sa(Nn("position","sticky"))},[]),Ot.useEffect(function(){no&&Vr&&(Vr.body.current=xr.current)});var ro=Ot.useCallback(function(Qo){return Ot.createElement(Ot.Fragment,null,Ot.createElement(Ys,Qo),Va==="top"&&Ot.createElement(mr,Qo,za))},[Va,za]),Bs=Ot.useCallback(function(Qo){return Ot.createElement(mr,Qo,za)},[za]),wl=bt(["table"],"table"),so=Ot.useMemo(function(){return si||(Cr?Bi==="max-content"?"auto":"fixed":Ri||ao||Oi.some(function(Qo){var po=Qo.ellipsis;return po})?"fixed":"auto")},[Ri,Cr,Oi,si,ao]),Vo,Eo={colWidths:Tr,columCount:Oi.length,stickyOffsets:Nr,onHeaderRow:gr,fixHeader:Ri,scroll:Pn},Oo=Ot.useMemo(function(){return yr?null:typeof Ki=="function"?Ki():Ki},[yr,Ki]),Ba=Ot.createElement(Co,{data:Mi,measureColumnWidth:Ri||Vi||ao}),Sa=Ot.createElement(vn,{colWidths:Oi.map(function(Qo){var po=Qo.width;return po}),columns:Oi}),Zl=Ti!=null?Ot.createElement("caption",{className:"".concat(ge,"-caption")},Ti):void 0,bu=Ai(ce,{data:!0}),ol=Ai(ce,{aria:!0});if(Ri||ao){var Os;typeof Xt=="function"?(Os=Xt(Mi,{scrollbarSize:Ms,ref:xr,onScroll:Sr}),Eo.colWidths=Oi.map(function(Qo,po){var ks=Qo.width,$l=po===Oi.length-1?ks-Ms:ks;return typeof $l=="number"&&!Number.isNaN($l)?$l:0})):Os=Ot.createElement("div",{style:(0,Qt.Z)((0,Qt.Z)({},Ts),Xa),onScroll:Ro,ref:xr,className:Le()("".concat(ge,"-body"))},Ot.createElement(wl,(0,ve.Z)({style:(0,Qt.Z)((0,Qt.Z)({},Ja),{},{tableLayout:so})},ol),Zl,Sa,Ba,!Va&&za&&Ot.createElement(mr,{stickyOffsets:Nr,flattenColumns:Oi},za)));var Mu=(0,Qt.Z)((0,Qt.Z)((0,Qt.Z)({noData:!Mi.length,maxContentScroll:Vi&&Bi==="max-content"},Eo),_r),{},{direction:bn,stickyClassName:Ps,onScroll:Sr});Vo=Ot.createElement(Ot.Fragment,null,vr!==!1&&Ot.createElement(xa,(0,ve.Z)({},Mu,{stickyTopOffset:Ta,className:"".concat(ge,"-header"),ref:So}),ro),Os,Va&&Va!=="top"&&Ot.createElement(xa,(0,ve.Z)({},Mu,{stickyBottomOffset:as,className:"".concat(ge,"-summary"),ref:ko}),Bs),ao&&xr.current&&xr.current instanceof Element&&Ot.createElement(uh,{ref:uo,offsetScroll:da,scrollBodyRef:xr,onScroll:Sr,container:Ma,direction:bn}))}else Vo=Ot.createElement("div",{style:(0,Qt.Z)((0,Qt.Z)({},Ts),Xa),className:Le()("".concat(ge,"-content")),onScroll:Sr,ref:xr},Ot.createElement(wl,(0,ve.Z)({style:(0,Qt.Z)((0,Qt.Z)({},Ja),{},{tableLayout:so})},ol),Zl,Sa,vr!==!1&&Ot.createElement(Ys,(0,ve.Z)({},Eo,_r)),Ba,za&&Ot.createElement(mr,{stickyOffsets:Nr,flattenColumns:Oi},za)));var cu=Ot.createElement("div",(0,ve.Z)({className:Le()(ge,ke,(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({},"".concat(ge,"-rtl"),bn==="rtl"),"".concat(ge,"-ping-left"),rr),"".concat(ge,"-ping-right"),ra),"".concat(ge,"-layout-fixed"),si==="fixed"),"".concat(ge,"-fixed-header"),Ri),"".concat(ge,"-fixed-column"),Cr),"".concat(ge,"-fixed-column-gapped"),Cr&&Or),"".concat(ge,"-scroll-horizontal"),Vi),"".concat(ge,"-has-fix-left"),Oi[0]&&Oi[0].fixed),"".concat(ge,"-has-fix-right"),Oi[Oi.length-1]&&Oi[Oi.length-1].fixed==="right")),style:Je,id:Zi,ref:Fr},bu),Qn&&Ot.createElement(ga,{className:"".concat(ge,"-title")},Qn(Mi)),Ot.createElement("div",{ref:oo,className:"".concat(ge,"-container")},Vo),jn&&Ot.createElement(ga,{className:"".concat(ge,"-footer")},jn(Mi)));Vi&&(cu=Ot.createElement(xt.Z,{onResize:Ss},cu));var al=Zt(Oi,Nr,bn),ec=Ot.useMemo(function(){return{scrollX:Bi,prefixCls:ge,getComponent:bt,scrollbarSize:Ms,direction:bn,fixedInfoList:al,isSticky:ao,supportSticky:to,componentWidth:qi,fixHeader:Ri,fixColumn:Cr,horizonScroll:Vi,tableLayout:so,rowClassName:Ge,expandedRowClassName:Xn.expandedRowClassName,expandIcon:qn,expandableType:ni,expandRowByClick:Xn.expandRowByClick,expandedRowRender:Xn.expandedRowRender,onTriggerExpand:hi,expandIconColumnIndex:Xn.expandIconColumnIndex,indentSize:Xn.indentSize,allColumnsFixedLeft:Oi.every(function(Qo){return Qo.fixed==="left"}),emptyNode:Oo,columns:dr,flattenColumns:Oi,onColumnResize:Aa,hoverStartRow:Ue,hoverEndRow:en,onHover:kn,rowExpandable:Xn.rowExpandable,onRow:ki,getRowKey:Nt,expandedKeys:wi,childrenColumnName:Vn,rowHoverable:Zr}},[Bi,ge,bt,Ms,bn,al,ao,to,qi,Ri,Cr,Vi,so,Ge,Xn.expandedRowClassName,qn,ni,Xn.expandRowByClick,Xn.expandedRowRender,hi,Xn.expandIconColumnIndex,Xn.indentSize,Oo,dr,Oi,Aa,Ue,en,kn,Xn.rowExpandable,ki,Nt,wi,Vn,Zr]);return Ot.createElement(Lt.Provider,{value:ec},cu)}var Pa=Ot.forwardRef(Ch);function cs(Ht){return lt(Pa,Ht)}var qr=cs();qr.EXPAND_COLUMN=kt.w,qr.INTERNAL_HOOKS=kt.R,qr.Column=We,qr.ColumnGroup=du,qr.Summary=cn;var wo=qr;function Ca(Ht){var ae=Ot.useRef();ae.current=Ht;var ce=Ot.useCallback(function(){for(var ge,ke=arguments.length,Ge=new Array(ke),Je=0;Je<ke;Je++)Ge[Je]=arguments[Je];return(ge=ae.current)===null||ge===void 0?void 0:ge.call.apply(ge,[ae].concat(Ge))},[]);return ce}function rs(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Qi=rs()?Ot.useLayoutEffect:Ot.useEffect,xd=function(ae,ce){var ge=Ot.useRef(!0);Qi(function(){return ae(ge.current)},ce),Qi(function(){return ge.current=!1,function(){ge.current=!0}},[])},$u=function(ae,ce){xd(function(ge){if(!ge)return ae()},ce)},Ml=xd;function wd(Ht){var ae=React.useRef(!1),ce=React.useState(Ht),ge=_slicedToArray(ce,2),ke=ge[0],Ge=ge[1];React.useEffect(function(){return ae.current=!1,function(){ae.current=!0}},[]);function Je(hn,Tn){Tn&&ae.current||Ge(hn)}return[ke,Je]}function Eh(Ht){return Ht!==void 0}function yi(Ht,ae){var ce=ae||{},ge=ce.defaultValue,ke=ce.value,Ge=ce.onChange,Je=ce.postState,hn=useState(function(){return Eh(ke)?ke:Eh(ge)?typeof ge=="function"?ge():ge:typeof Ht=="function"?Ht():Ht}),Tn=_slicedToArray(hn,2),Pn=Tn[0],si=Tn[1],bn=ke!==void 0?ke:Pn,Qn=Je?Je(bn):bn,jn=useEvent(Ge),gi=useState([bn]),Ti=_slicedToArray(gi,2),Zi=Ti[0],vr=Ti[1];useLayoutUpdateEffect(function(){var Ki=Zi[0];Pn!==Ki&&jn(Pn,Ki)},[Zi]),useLayoutUpdateEffect(function(){Eh(ke)||si(ke)},[ke]);var Ci=useEvent(function(Ki,ki){si(Ki,ki),vr([bn],ki)});return[Qn,Ci]}function ps(Ht,ae,ce){var ge=React.useRef({});return(!("value"in ge.current)||ce(ge.current.condition,ae))&&(ge.current.value=Ht(),ge.current.condition=ae),ge.current.value}function ms(Ht,ae){typeof Ht=="function"?Ht(ae):_typeof(Ht)==="object"&&Ht&&"current"in Ht&&(Ht.current=ae)}function Ru(){for(var Ht=arguments.length,ae=new Array(Ht),ce=0;ce<Ht;ce++)ae[ce]=arguments[ce];var ge=ae.filter(function(ke){return ke});return ge.length<=1?ge[0]:function(ke){ae.forEach(function(Ge){ms(Ge,ke)})}}function Pd(){for(var Ht=arguments.length,ae=new Array(Ht),ce=0;ce<Ht;ce++)ae[ce]=arguments[ce];return useMemo(function(){return Ru.apply(void 0,ae)},ae,function(ge,ke){return ge.length!==ke.length||ge.every(function(Ge,Je){return Ge!==ke[Je]})})}function nd(Ht){var ae,ce,ge=isMemo(Ht)?Ht.type.type:Ht.type;return!(typeof ge=="function"&&!((ae=ge.prototype)!==null&&ae!==void 0&&ae.render)||typeof Ht=="function"&&!((ce=Ht.prototype)!==null&&ce!==void 0&&ce.render))}function $r(Ht){return!isValidElement(Ht)||isFragment(Ht)?!1:nd(Ht)}function id(Ht,ae,ce,ge){if(!ae.length)return ce;var ke=_toArray(ae),Ge=ke[0],Je=ke.slice(1),hn;return!Ht&&typeof Ge=="number"?hn=[]:Array.isArray(Ht)?hn=_toConsumableArray(Ht):hn=_objectSpread({},Ht),ge&&ce===void 0&&Je.length===1?delete hn[Ge][Je[0]]:hn[Ge]=id(hn[Ge],Je,ce,ge),hn}function Pu(Ht,ae,ce){var ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ae.length&&ge&&ce===void 0&&!get(Ht,ae.slice(0,-1))?Ht:id(Ht,ae,ce,ge)}function kl(Ht){return _typeof(Ht)==="object"&&Ht!==null&&Object.getPrototypeOf(Ht)===Object.prototype}function Ul(Ht){return Array.isArray(Ht)?[]:{}}var Hh=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Cd(){for(var Ht=arguments.length,ae=new Array(Ht),ce=0;ce<Ht;ce++)ae[ce]=arguments[ce];var ge=Ul(ae[0]);return ae.forEach(function(ke){function Ge(Je,hn){var Tn=new Set(hn),Pn=get(ke,Je),si=Array.isArray(Pn);if(si||kl(Pn)){if(!Tn.has(Pn)){Tn.add(Pn);var bn=get(ge,Je);si?ge=Pu(ge,Je,[]):(!bn||_typeof(bn)!=="object")&&(ge=Pu(ge,Je,Ul(Pn))),Hh(Pn).forEach(function(Qn){Ge([].concat(_toConsumableArray(Je),[Qn]),Tn)})}}else ge=Pu(ge,Je,Pn)}Ge([])}),ge}var pl={},Cu=[],Ed=function(ae){Cu.push(ae)};function Mc(Ht,ae){if(0)var ce}function Ld(Ht,ae){if(0)var ce}function rf(){pl={}}function Jd(Ht,ae,ce){!ae&&!pl[ce]&&(Ht(!1,ce),pl[ce]=!0)}function Eu(Ht,ae){Jd(Mc,Ht,ae)}function Lh(Ht,ae){Jd(Ld,Ht,ae)}Eu.preMessage=Ed,Eu.resetWarned=rf,Eu.noteOnce=Lh;var zu=null,rd=Ot.forwardRef(function(Ht,ae){var ce=Ht.height,ge=Ht.offsetY,ke=Ht.offsetX,Ge=Ht.children,Je=Ht.prefixCls,hn=Ht.onInnerResize,Tn=Ht.innerProps,Pn=Ht.rtl,si=Ht.extra,bn={},Qn={display:"flex",flexDirection:"column"};return ge!==void 0&&(bn={height:ce,position:"relative",overflow:"hidden"},Qn=(0,Qt.Z)((0,Qt.Z)({},Qn),{},(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({transform:"translateY(".concat(ge,"px)")},Pn?"marginRight":"marginLeft",-ke),"position","absolute"),"left",0),"right",0),"top",0))),Ot.createElement("div",{style:bn},Ot.createElement(xt.Z,{onResize:function(gi){var Ti=gi.offsetHeight;Ti&&hn&&hn()}},Ot.createElement("div",(0,ve.Z)({style:Qn,className:Le()((0,xe.Z)({},"".concat(Je,"-holder-inner"),Je)),ref:ae},Tn),Ge,si)))});rd.displayName="Filler";var Qd=rd;function kc(Ht){var ae=Ht.children,ce=Ht.setRef,ge=Ot.useCallback(function(ke){ce(ke)},[]);return Ot.cloneElement(ae,{ref:ge})}function vs(Ht,ae,ce,ge,ke,Ge,Je,hn){var Tn=hn.getKey;return Ht.slice(ae,ce+1).map(function(Pn,si){var bn=ae+si,Qn=Je(Pn,bn,{style:{width:ge},offsetX:ke}),jn=Tn(Pn);return Ot.createElement(kc,{key:jn,setRef:function(Ti){return Ge(Pn,Ti)}},Qn)})}function Tf(Ht,ae,ce,ge){var ke=ce-Ht,Ge=ae-ce,Je=Math.min(ke,Ge)*2;if(ge<=Je){var hn=Math.floor(ge/2);return ge%2?ce+hn+1:ce-hn}return ke>Ge?ce-(ge-Ge):ce+(ge-ke)}function qd(Ht,ae,ce){var ge=Ht.length,ke=ae.length,Ge,Je;if(ge===0&&ke===0)return null;ge<ke?(Ge=Ht,Je=ae):(Ge=ae,Je=Ht);var hn={__EMPTY_ITEM__:!0};function Tn(gi){return gi!==void 0?ce(gi):hn}for(var Pn=null,si=Math.abs(ge-ke)!==1,bn=0;bn<Je.length;bn+=1){var Qn=Tn(Ge[bn]),jn=Tn(Je[bn]);if(Qn!==jn){Pn=bn,si=si||Qn!==Tn(Je[bn+1]);break}}return Pn===null?null:{index:Pn,multiple:si}}function Ad(Ht,ae,ce){var ge=Ot.useState(Ht),ke=(0,le.Z)(ge,2),Ge=ke[0],Je=ke[1],hn=Ot.useState(null),Tn=(0,le.Z)(hn,2),Pn=Tn[0],si=Tn[1];return Ot.useEffect(function(){var bn=qd(Ge||[],Ht||[],ae);(bn==null?void 0:bn.index)!==void 0&&(ce==null||ce(bn.index),si(Ht[bn.index])),Je(Ht)},[Ht]),[Pn]}var Ah=function(ae){return+setTimeout(ae,16)},ml=function(ae){return clearTimeout(ae)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ah=function(ae){return window.requestAnimationFrame(ae)},ml=function(ae){return window.cancelAnimationFrame(ae)});var tl=0,xs=new Map;function zs(Ht){xs.delete(Ht)}var bd=function(ae){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;tl+=1;var ge=tl;function ke(Ge){if(Ge===0)zs(ge),ae();else{var Je=Ah(function(){ke(Ge-1)});xs.set(ge,Je)}}return ke(ce),ge};bd.cancel=function(Ht){var ae=xs.get(Ht);return zs(ae),ml(ae)};var el=bd,Ka=(typeof navigator=="undefined"?"undefined":(0,re.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Md=Ka,kd=function(Ht,ae,ce,ge){var ke=(0,Ot.useRef)(!1),Ge=(0,Ot.useRef)(null);function Je(){clearTimeout(Ge.current),ke.current=!0,Ge.current=setTimeout(function(){ke.current=!1},50)}var hn=(0,Ot.useRef)({top:Ht,bottom:ae,left:ce,right:ge});return hn.current.top=Ht,hn.current.bottom=ae,hn.current.left=ce,hn.current.right=ge,function(Tn,Pn){var si=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,bn=Tn?Pn<0&&hn.current.left||Pn>0&&hn.current.right:Pn<0&&hn.current.top||Pn>0&&hn.current.bottom;return si&&bn?(clearTimeout(Ge.current),ke.current=!1):(!bn||ke.current)&&Je(),!ke.current&&bn}};function _d(Ht,ae,ce,ge,ke,Ge,Je){var hn=(0,Ot.useRef)(0),Tn=(0,Ot.useRef)(null),Pn=(0,Ot.useRef)(null),si=(0,Ot.useRef)(!1),bn=kd(ae,ce,ge,ke);function Qn(Ci,Ki){if(el.cancel(Tn.current),!bn(!1,Ki)){var ki=Ci;if(!ki._virtualHandled)ki._virtualHandled=!0;else return;hn.current+=Ki,Pn.current=Ki,Md||ki.preventDefault(),Tn.current=el(function(){var gr=si.current?10:1;Je(hn.current*gr,!1),hn.current=0})}}function jn(Ci,Ki){Je(Ki,!0),Md||Ci.preventDefault()}var gi=(0,Ot.useRef)(null),Ti=(0,Ot.useRef)(null);function Zi(Ci){if(Ht){el.cancel(Ti.current),Ti.current=el(function(){gi.current=null},2);var Ki=Ci.deltaX,ki=Ci.deltaY,gr=Ci.shiftKey,Kr=Ki,hr=ki;(gi.current==="sx"||!gi.current&&gr&&ki&&!Ki)&&(Kr=ki,hr=0,gi.current="sx");var Mo=Math.abs(Kr),Vr=Math.abs(hr);gi.current===null&&(gi.current=Ge&&Mo>Vr?"x":"y"),gi.current==="y"?Qn(Ci,hr):jn(Ci,Kr)}}function vr(Ci){Ht&&(si.current=Ci.detail===Pn.current)}return[Zi,vr]}function er(Ht,ae,ce,ge){var ke=Ot.useMemo(function(){return[new Map,[]]},[Ht,ce.id,ge]),Ge=(0,le.Z)(ke,2),Je=Ge[0],hn=Ge[1],Tn=function(si){var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:si,Qn=Je.get(si),jn=Je.get(bn);if(Qn===void 0||jn===void 0)for(var gi=Ht.length,Ti=hn.length;Ti<gi;Ti+=1){var Zi,vr=Ht[Ti],Ci=ae(vr);Je.set(Ci,Ti);var Ki=(Zi=ce.get(Ci))!==null&&Zi!==void 0?Zi:ge;if(hn[Ti]=(hn[Ti-1]||0)+Ki,Ci===si&&(Qn=Ti),Ci===bn&&(jn=Ti),Qn!==void 0&&jn!==void 0)break}return{top:hn[Qn-1]||0,bottom:hn[jn]}};return Tn}var Fd=Dt(15671),pe=Dt(43144),yn=function(){function Ht(){(0,Fd.Z)(this,Ht),(0,xe.Z)(this,"maps",void 0),(0,xe.Z)(this,"id",0),(0,xe.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,pe.Z)(Ht,[{key:"set",value:function(ce,ge){this.maps[ce]=ge,this.id+=1,this.diffKeys.add(ce)}},{key:"get",value:function(ce){return this.maps[ce]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Ht}(),Lu=yn;function bh(Ht){var ae=parseFloat(Ht);return isNaN(ae)?0:ae}function hh(Ht,ae,ce){var ge=Ot.useState(0),ke=(0,le.Z)(ge,2),Ge=ke[0],Je=ke[1],hn=(0,Ot.useRef)(new Map),Tn=(0,Ot.useRef)(new Lu),Pn=(0,Ot.useRef)(0);function si(){Pn.current+=1}function bn(){var jn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;si();var gi=function(){var vr=!1;hn.current.forEach(function(Ci,Ki){if(Ci&&Ci.offsetParent){var ki=Ci.offsetHeight,gr=getComputedStyle(Ci),Kr=gr.marginTop,hr=gr.marginBottom,Mo=bh(Kr),Vr=bh(hr),Bo=ki+Mo+Vr;Tn.current.get(Ki)!==Bo&&(Tn.current.set(Ki,Bo),vr=!0)}}),vr&&Je(function(Ci){return Ci+1})};if(jn)gi();else{Pn.current+=1;var Ti=Pn.current;Promise.resolve().then(function(){Ti===Pn.current&&gi()})}}function Qn(jn,gi){var Ti=Ht(jn),Zi=hn.current.get(Ti);gi?(hn.current.set(Ti,gi),bn()):hn.current.delete(Ti),!Zi!=!gi&&(gi?ae==null||ae(jn):ce==null||ce(jn))}return(0,Ot.useEffect)(function(){return si},[]),[Qn,bn,Tn.current,Ge]}var ju=14/15;function Wu(Ht,ae,ce){var ge=(0,Ot.useRef)(!1),ke=(0,Ot.useRef)(0),Ge=(0,Ot.useRef)(0),Je=(0,Ot.useRef)(null),hn=(0,Ot.useRef)(null),Tn,Pn=function(jn){if(ge.current){var gi=Math.ceil(jn.touches[0].pageX),Ti=Math.ceil(jn.touches[0].pageY),Zi=ke.current-gi,vr=Ge.current-Ti,Ci=Math.abs(Zi)>Math.abs(vr);Ci?ke.current=gi:Ge.current=Ti;var Ki=ce(Ci,Ci?Zi:vr,!1,jn);Ki&&jn.preventDefault(),clearInterval(hn.current),Ki&&(hn.current=setInterval(function(){Ci?Zi*=ju:vr*=ju;var ki=Math.floor(Ci?Zi:vr);(!ce(Ci,ki,!0)||Math.abs(ki)<=.1)&&clearInterval(hn.current)},16))}},si=function(){ge.current=!1,Tn()},bn=function(jn){Tn(),jn.touches.length===1&&!ge.current&&(ge.current=!0,ke.current=Math.ceil(jn.touches[0].pageX),Ge.current=Math.ceil(jn.touches[0].pageY),Je.current=jn.target,Je.current.addEventListener("touchmove",Pn,{passive:!1}),Je.current.addEventListener("touchend",si,{passive:!0}))};Tn=function(){Je.current&&(Je.current.removeEventListener("touchmove",Pn),Je.current.removeEventListener("touchend",si))},Ml(function(){return Ht&&ae.current.addEventListener("touchstart",bn,{passive:!0}),function(){var Qn;(Qn=ae.current)===null||Qn===void 0||Qn.removeEventListener("touchstart",bn),Tn(),clearInterval(hn.current)}},[Ht])}function Nd(Ht){return Math.floor(Math.pow(Ht,.5))}function Mh(Ht,ae){var ce="touches"in Ht?Ht.touches[0]:Ht;return ce[ae?"pageX":"pageY"]-window[ae?"scrollX":"scrollY"]}function es(Ht,ae,ce){Ot.useEffect(function(){var ge=ae.current;if(Ht&&ge){var ke=!1,Ge,Je,hn=function(){el.cancel(Ge)},Tn=function Qn(){hn(),Ge=el(function(){ce(Je),Qn()})},Pn=function(jn){if(!(jn.target.draggable||jn.button!==0)){var gi=jn;gi._virtualHandled||(gi._virtualHandled=!0,ke=!0)}},si=function(){ke=!1,hn()},bn=function(jn){if(ke){var gi=Mh(jn,!1),Ti=ge.getBoundingClientRect(),Zi=Ti.top,vr=Ti.bottom;if(gi<=Zi){var Ci=Zi-gi;Je=-Nd(Ci),Tn()}else if(gi>=vr){var Ki=gi-vr;Je=Nd(Ki),Tn()}else hn()}};return ge.addEventListener("mousedown",Pn),ge.ownerDocument.addEventListener("mouseup",si),ge.ownerDocument.addEventListener("mousemove",bn),function(){ge.removeEventListener("mousedown",Pn),ge.ownerDocument.removeEventListener("mouseup",si),ge.ownerDocument.removeEventListener("mousemove",bn),hn()}}},[Ht])}var kr=10;function il(Ht,ae,ce,ge,ke,Ge,Je,hn){var Tn=Ot.useRef(),Pn=Ot.useState(null),si=(0,le.Z)(Pn,2),bn=si[0],Qn=si[1];return Ml(function(){if(bn&&bn.times<kr){if(!Ht.current){Qn(function(Nt){return(0,Qt.Z)({},Nt)});return}Ge();var jn=bn.targetAlign,gi=bn.originAlign,Ti=bn.index,Zi=bn.offset,vr=Ht.current.clientHeight,Ci=!1,Ki=jn,ki=null;if(vr){for(var gr=jn||gi,Kr=0,hr=0,Mo=0,Vr=Math.min(ae.length-1,Ti),Bo=0;Bo<=Vr;Bo+=1){var ka=ke(ae[Bo]);hr=Kr;var Go=ce.get(ka);Mo=hr+(Go===void 0?ge:Go),Kr=Mo}for(var Ur=gr==="top"?Zi:vr-Zi,Zr=Vr;Zr>=0;Zr-=1){var Mi=ke(ae[Zr]),yr=ce.get(Mi);if(yr===void 0){Ci=!0;break}if(Ur-=yr,Ur<=0)break}switch(gr){case"top":ki=hr-Zi;break;case"bottom":ki=Mo-vr+Zi;break;default:{var no=Ht.current.scrollTop,bt=no+vr;hr<no?Ki="top":Mo>bt&&(Ki="bottom")}}ki!==null&&Je(ki),ki!==bn.lastTop&&(Ci=!0)}Ci&&Qn((0,Qt.Z)((0,Qt.Z)({},bn),{},{times:bn.times+1,targetAlign:Ki,lastTop:ki}))}},[bn,Ht.current]),function(jn){if(jn==null){hn();return}if(el.cancel(Tn.current),typeof jn=="number")Je(jn);else if(jn&&(0,re.Z)(jn)==="object"){var gi,Ti=jn.align;"index"in jn?gi=jn.index:gi=ae.findIndex(function(Ci){return ke(Ci)===jn.key});var Zi=jn.offset,vr=Zi===void 0?0:Zi;Qn({times:0,index:gi,offset:vr,originAlign:Ti})}}}var nl=Ot.forwardRef(function(Ht,ae){var ce=Ht.prefixCls,ge=Ht.rtl,ke=Ht.scrollOffset,Ge=Ht.scrollRange,Je=Ht.onStartMove,hn=Ht.onStopMove,Tn=Ht.onScroll,Pn=Ht.horizontal,si=Ht.spinSize,bn=Ht.containerSize,Qn=Ht.style,jn=Ht.thumbStyle,gi=Ht.showScrollBar,Ti=Ot.useState(!1),Zi=(0,le.Z)(Ti,2),vr=Zi[0],Ci=Zi[1],Ki=Ot.useState(null),ki=(0,le.Z)(Ki,2),gr=ki[0],Kr=ki[1],hr=Ot.useState(null),Mo=(0,le.Z)(hr,2),Vr=Mo[0],Bo=Mo[1],ka=!ge,Go=Ot.useRef(),Ur=Ot.useRef(),Zr=Ot.useState(gi),Mi=(0,le.Z)(Zr,2),yr=Mi[0],no=Mi[1],bt=Ot.useRef(),Nt=function(){gi===!0||gi===!1||(clearTimeout(bt.current),no(!0),bt.current=setTimeout(function(){no(!1)},3e3))},Xt=Ge-bn||0,ee=bn-si||0,Ae=Ot.useMemo(function(){if(ke===0||Xt===0)return 0;var qn=ke/Xt;return qn*ee},[ke,Xt,ee]),Ue=function(Vn){Vn.stopPropagation(),Vn.preventDefault()},en=Ot.useRef({top:Ae,dragging:vr,pageY:gr,startTop:Vr});en.current={top:Ae,dragging:vr,pageY:gr,startTop:Vr};var kn=function(Vn){Ci(!0),Kr(Mh(Vn,Pn)),Bo(en.current.top),Je(),Vn.stopPropagation(),Vn.preventDefault()};Ot.useEffect(function(){var qn=function(ar){ar.preventDefault()},Vn=Go.current,hi=Ur.current;return Vn.addEventListener("touchstart",qn,{passive:!1}),hi.addEventListener("touchstart",kn,{passive:!1}),function(){Vn.removeEventListener("touchstart",qn),hi.removeEventListener("touchstart",kn)}},[]);var On=Ot.useRef();On.current=Xt;var Ln=Ot.useRef();Ln.current=ee,Ot.useEffect(function(){if(vr){var qn,Vn=function(ar){var Pr=en.current,qi=Pr.dragging,sr=Pr.pageY,Yr=Pr.startTop;el.cancel(qn);var li=Go.current.getBoundingClientRect(),dr=bn/(Pn?li.width:li.height);if(qi){var Oi=(Mh(ar,Pn)-sr)*dr,ur=Yr;!ka&&Pn?ur-=Oi:ur+=Oi;var Or=On.current,Bi=Ln.current,_r=Bi?ur/Bi:0,Fr=Math.ceil(_r*Or);Fr=Math.max(Fr,0),Fr=Math.min(Fr,Or),qn=el(function(){Tn(Fr,Pn)})}},hi=function(){Ci(!1),hn()};return window.addEventListener("mousemove",Vn,{passive:!0}),window.addEventListener("touchmove",Vn,{passive:!0}),window.addEventListener("mouseup",hi,{passive:!0}),window.addEventListener("touchend",hi,{passive:!0}),function(){window.removeEventListener("mousemove",Vn),window.removeEventListener("touchmove",Vn),window.removeEventListener("mouseup",hi),window.removeEventListener("touchend",hi),el.cancel(qn)}}},[vr]),Ot.useEffect(function(){return Nt(),function(){clearTimeout(bt.current)}},[ke]),Ot.useImperativeHandle(ae,function(){return{delayHidden:Nt}});var Xn="".concat(ce,"-scrollbar"),ni={position:"absolute",visibility:yr?null:"hidden"},wi={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Pn?(ni.height=8,ni.left=0,ni.right=0,ni.bottom=0,wi.height="100%",wi.width=si,ka?wi.left=Ae:wi.right=Ae):(ni.width=8,ni.top=0,ni.bottom=0,ka?ni.right=0:ni.left=0,wi.width="100%",wi.height=si,wi.top=Ae),Ot.createElement("div",{ref:Go,className:Le()(Xn,(0,xe.Z)((0,xe.Z)((0,xe.Z)({},"".concat(Xn,"-horizontal"),Pn),"".concat(Xn,"-vertical"),!Pn),"".concat(Xn,"-visible"),yr)),style:(0,Qt.Z)((0,Qt.Z)({},ni),Qn),onMouseDown:Ue,onMouseMove:Nt},Ot.createElement("div",{ref:Ur,className:Le()("".concat(Xn,"-thumb"),(0,xe.Z)({},"".concat(Xn,"-thumb-moving"),vr)),style:(0,Qt.Z)((0,Qt.Z)({},wi),jn),onMouseDown:kn}))}),Ya=nl,Do=20;function ws(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ce=Ht/ae*Ht;return isNaN(ce)&&(ce=0),ce=Math.max(ce,Do),Math.floor(ce)}var Fl=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Na=[],vl={overflowY:"auto",overflowAnchor:"none"};function Ks(Ht,ae){var ce=Ht.prefixCls,ge=ce===void 0?"rc-virtual-list":ce,ke=Ht.className,Ge=Ht.height,Je=Ht.itemHeight,hn=Ht.fullHeight,Tn=hn===void 0?!0:hn,Pn=Ht.style,si=Ht.data,bn=Ht.children,Qn=Ht.itemKey,jn=Ht.virtual,gi=Ht.direction,Ti=Ht.scrollWidth,Zi=Ht.component,vr=Zi===void 0?"div":Zi,Ci=Ht.onScroll,Ki=Ht.onVirtualScroll,ki=Ht.onVisibleChange,gr=Ht.innerProps,Kr=Ht.extraRender,hr=Ht.styles,Mo=Ht.showScrollBar,Vr=Mo===void 0?"optional":Mo,Bo=(0,Lo.Z)(Ht,Fl),ka=Ot.useCallback(function(Ar){return typeof Qn=="function"?Qn(Ar):Ar==null?void 0:Ar[Qn]},[Qn]),Go=hh(ka,null,null),Ur=(0,le.Z)(Go,4),Zr=Ur[0],Mi=Ur[1],yr=Ur[2],no=Ur[3],bt=!!(jn!==!1&&Ge&&Je),Nt=Ot.useMemo(function(){return Object.values(yr.maps).reduce(function(Ar,lr){return Ar+lr},0)},[yr.id,yr.maps]),Xt=bt&&si&&(Math.max(Je*si.length,Nt)>Ge||!!Ti),ee=gi==="rtl",Ae=Le()(ge,(0,xe.Z)({},"".concat(ge,"-rtl"),ee),ke),Ue=si||Na,en=(0,Ot.useRef)(),kn=(0,Ot.useRef)(),On=(0,Ot.useRef)(),Ln=(0,Ot.useState)(0),Xn=(0,le.Z)(Ln,2),ni=Xn[0],wi=Xn[1],qn=(0,Ot.useState)(0),Vn=(0,le.Z)(qn,2),hi=Vn[0],Pi=Vn[1],ar=(0,Ot.useState)(!1),Pr=(0,le.Z)(ar,2),qi=Pr[0],sr=Pr[1],Yr=function(){sr(!0)},li=function(){sr(!1)},dr={getKey:ka};function Oi(Ar){wi(function(lr){var Sr;typeof Ar=="function"?Sr=Ar(lr):Sr=Ar;var Ro=Da(Sr);return en.current.scrollTop=Ro,Ro})}var ur=(0,Ot.useRef)({start:0,end:Ue.length}),Or=(0,Ot.useRef)(),Bi=Ad(Ue,ka),_r=(0,le.Z)(Bi,1),Fr=_r[0];Or.current=Fr;var So=Ot.useMemo(function(){if(!bt)return{scrollHeight:void 0,start:0,end:Ue.length-1,offset:void 0};if(!Xt){var Ar;return{scrollHeight:((Ar=kn.current)===null||Ar===void 0?void 0:Ar.offsetHeight)||0,start:0,end:Ue.length-1,offset:void 0}}for(var lr=0,Sr,Ro,Qa,Ss=Ue.length,rl=0;rl<Ss;rl+=1){var ye=Ue[rl],xl=ka(ye),Ms=yr.get(xl),Nl=lr+(Ms===void 0?Je:Ms);Nl>=ni&&Sr===void 0&&(Sr=rl,Ro=lr),Nl>ni+Ge&&Qa===void 0&&(Qa=rl),lr=Nl}return Sr===void 0&&(Sr=0,Ro=0,Qa=Math.ceil(Ge/Je)),Qa===void 0&&(Qa=Ue.length-1),Qa=Math.min(Qa+1,Ue.length-1),{scrollHeight:lr,start:Sr,end:Qa,offset:Ro}},[Xt,bt,ni,Ue,no,Ge]),xr=So.scrollHeight,oo=So.start,ko=So.end,Ko=So.offset;ur.current.start=oo,ur.current.end=ko,Ot.useLayoutEffect(function(){var Ar=yr.getRecord();if(Ar.size===1){var lr=Array.from(Ar)[0],Sr=Ue[oo];if(Sr){var Ro=ka(Sr);if(Ro===lr){var Qa=yr.get(lr),Ss=Qa-Je;Oi(function(rl){return rl+Ss})}}}yr.resetRecord()},[xr]);var Fo=Ot.useState({width:0,height:Ge}),rr=(0,le.Z)(Fo,2),Wr=rr[0],Xo=rr[1],No=function(lr){Xo({width:lr.offsetWidth,height:lr.offsetHeight})},ra=(0,Ot.useRef)(),Jo=(0,Ot.useRef)(),pa=Ot.useMemo(function(){return ws(Wr.width,Ti)},[Wr.width,Ti]),oa=Ot.useMemo(function(){return ws(Wr.height,xr)},[Wr.height,xr]),La=xr-Ge,ys=(0,Ot.useRef)(La);ys.current=La;function Da(Ar){var lr=Ar;return Number.isNaN(ys.current)||(lr=Math.min(lr,ys.current)),lr=Math.max(lr,0),lr}var Ir=ni<=0,Tr=ni>=La,Nr=hi<=0,Ri=hi>=Ti,Vi=kd(Ir,Tr,Nr,Ri),Cr=function(){return{x:ee?-hi:hi,y:ni}},uo=(0,Ot.useRef)(Cr()),Po=Ca(function(Ar){if(Ki){var lr=(0,Qt.Z)((0,Qt.Z)({},Cr()),Ar);(uo.current.x!==lr.x||uo.current.y!==lr.y)&&(Ki(lr),uo.current=lr)}});function ao(Ar,lr){var Sr=Ar;lr?((0,qt.flushSync)(function(){Pi(Sr)}),Po()):Oi(Sr)}function Ta(Ar){var lr=Ar.currentTarget.scrollTop;lr!==ni&&Oi(lr),Ci==null||Ci(Ar),Po()}var as=function(lr){var Sr=lr,Ro=Ti?Ti-Wr.width:0;return Sr=Math.max(Sr,0),Sr=Math.min(Sr,Ro),Sr},da=Ca(function(Ar,lr){lr?((0,qt.flushSync)(function(){Pi(function(Sr){var Ro=Sr+(ee?-Ar:Ar);return as(Ro)})}),Po()):Oi(function(Sr){var Ro=Sr+Ar;return Ro})}),Ps=_d(bt,Ir,Tr,Nr,Ri,!!Ti,da),Ma=(0,le.Z)(Ps,2),za=Ma[0],Va=Ma[1];Wu(bt,en,function(Ar,lr,Sr,Ro){var Qa=Ro;return Vi(Ar,lr,Sr)?!1:!Qa||!Qa._virtualHandled?(Qa&&(Qa._virtualHandled=!0),za({preventDefault:function(){},deltaX:Ar?lr:0,deltaY:Ar?0:lr}),!0):!1}),es(Xt,en,function(Ar){Oi(function(lr){return lr+Ar})}),Ml(function(){function Ar(Sr){var Ro=Ir&&Sr.detail<0,Qa=Tr&&Sr.detail>0;bt&&!Ro&&!Qa&&Sr.preventDefault()}var lr=en.current;return lr.addEventListener("wheel",za,{passive:!1}),lr.addEventListener("DOMMouseScroll",Va,{passive:!0}),lr.addEventListener("MozMousePixelScroll",Ar,{passive:!1}),function(){lr.removeEventListener("wheel",za),lr.removeEventListener("DOMMouseScroll",Va),lr.removeEventListener("MozMousePixelScroll",Ar)}},[bt,Ir,Tr]),Ml(function(){if(Ti){var Ar=as(hi);Pi(Ar),Po({x:Ar})}},[Wr.width,Ti]);var Ts=function(){var lr,Sr;(lr=ra.current)===null||lr===void 0||lr.delayHidden(),(Sr=Jo.current)===null||Sr===void 0||Sr.delayHidden()},Xa=il(en,Ue,yr,Je,ka,function(){return Mi(!0)},Oi,Ts);Ot.useImperativeHandle(ae,function(){return{nativeElement:On.current,getScrollInfo:Cr,scrollTo:function(lr){function Sr(Ro){return Ro&&(0,re.Z)(Ro)==="object"&&("left"in Ro||"top"in Ro)}Sr(lr)?(lr.left!==void 0&&Pi(as(lr.left)),Xa(lr.top)):Xa(lr)}}}),Ml(function(){if(ki){var Ar=Ue.slice(oo,ko+1);ki(Ar,Ue)}},[oo,ko,Ue]);var Ja=er(Ue,ka,yr,Je),Aa=Kr==null?void 0:Kr({start:oo,end:ko,virtual:Xt,offsetX:hi,offsetY:Ko,rtl:ee,getSize:Ja}),Ua=vs(Ue,oo,ko,Ti,hi,Zr,bn,dr),Vs=null;Ge&&(Vs=(0,Qt.Z)((0,xe.Z)({},Tn?"height":"maxHeight",Ge),vl),bt&&(Vs.overflowY="hidden",Ti&&(Vs.overflowX="hidden"),qi&&(Vs.pointerEvents="none")));var Js={};return ee&&(Js.dir="rtl"),Ot.createElement("div",(0,ve.Z)({ref:On,style:(0,Qt.Z)((0,Qt.Z)({},Pn),{},{position:"relative"}),className:Ae},Js,Bo),Ot.createElement(xt.Z,{onResize:No},Ot.createElement(vr,{className:"".concat(ge,"-holder"),style:Vs,ref:en,onScroll:Ta,onMouseEnter:Ts},Ot.createElement(Qd,{prefixCls:ge,height:xr,offsetX:hi,offsetY:Ko,scrollWidth:Ti,onInnerResize:Mi,ref:kn,innerProps:gr,rtl:ee,extra:Aa},Ua))),Xt&&xr>Ge&&Ot.createElement(Ya,{ref:ra,prefixCls:ge,scrollOffset:ni,scrollRange:xr,rtl:ee,onScroll:ao,onStartMove:Yr,onStopMove:li,spinSize:oa,containerSize:Wr.height,style:hr==null?void 0:hr.verticalScrollBar,thumbStyle:hr==null?void 0:hr.verticalScrollBarThumb,showScrollBar:Vr}),Xt&&Ti>Wr.width&&Ot.createElement(Ya,{ref:Jo,prefixCls:ge,scrollOffset:hi,scrollRange:Ti,rtl:ee,onScroll:ao,onStartMove:Yr,onStopMove:li,spinSize:pa,containerSize:Wr.width,horizontal:!0,style:hr==null?void 0:hr.horizontalScrollBar,thumbStyle:hr==null?void 0:hr.horizontalScrollBarThumb,showScrollBar:Vr}))}var dh=Ot.forwardRef(Ks);dh.displayName="List";var ia=dh,yl=ia,Yo=Ee(null),ba=Ee(null);function Ra(Ht,ae,ce){var ge=ae||1;return ce[Ht+ge]-(ce[Ht]||0)}function os(Ht){var ae=Ht.rowInfo,ce=Ht.column,ge=Ht.colIndex,ke=Ht.indent,Ge=Ht.index,Je=Ht.component,hn=Ht.renderIndex,Tn=Ht.record,Pn=Ht.style,si=Ht.className,bn=Ht.inverse,Qn=Ht.getHeight,jn=ce.render,gi=ce.dataIndex,Ti=ce.className,Zi=ce.width,vr=me(ba,["columnsOffset"]),Ci=vr.columnsOffset,Ki=Te(ae,ce,ge,ke,Ge),ki=Ki.key,gr=Ki.fixedInfo,Kr=Ki.appendCellNode,hr=Ki.additionalCellProps,Mo=hr.style,Vr=hr.colSpan,Bo=Vr===void 0?1:Vr,ka=hr.rowSpan,Go=ka===void 0?1:ka,Ur=ge-1,Zr=Ra(Ur,Bo,Ci),Mi=Bo>1?Zi-Zr:0,yr=(0,Qt.Z)((0,Qt.Z)((0,Qt.Z)({},Mo),Pn),{},{flex:"0 0 ".concat(Zr,"px"),width:"".concat(Zr,"px"),marginRight:Mi,pointerEvents:"auto"}),no=Ot.useMemo(function(){return bn?Go<=1:Bo===0||Go===0||Go>1},[Go,Bo,bn]);no?yr.visibility="hidden":bn&&(yr.height=Qn==null?void 0:Qn(Go));var bt=no?function(){return null}:jn,Nt={};return(Go===0||Bo===0)&&(Nt.rowSpan=1,Nt.colSpan=1),Ot.createElement(mi,(0,ve.Z)({className:Le()(Ti,si),ellipsis:ce.ellipsis,align:ce.align,scope:ce.rowScope,component:Je,prefixCls:ae.prefixCls,key:ki,record:Tn,index:Ge,renderIndex:hn,dataIndex:gi,render:bt,shouldCellUpdate:ce.shouldCellUpdate},gr,{appendNode:Kr,additionalProps:(0,Qt.Z)((0,Qt.Z)({},hr),{},{style:yr},Nt)}))}var ha=os,Gh=["data","index","className","rowKey","style","extra","getHeight"],Lr=Ot.forwardRef(function(Ht,ae){var ce=Ht.data,ge=Ht.index,ke=Ht.className,Ge=Ht.rowKey,Je=Ht.style,hn=Ht.extra,Tn=Ht.getHeight,Pn=(0,Lo.Z)(Ht,Gh),si=ce.record,bn=ce.indent,Qn=ce.index,jn=me(Lt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),gi=jn.scrollX,Ti=jn.flattenColumns,Zi=jn.prefixCls,vr=jn.fixColumn,Ci=jn.componentWidth,Ki=me(Yo,["getComponent"]),ki=Ki.getComponent,gr=bo(si,Ge,ge,bn),Kr=ki(["body","row"],"div"),hr=ki(["body","cell"],"div"),Mo=gr.rowSupportExpand,Vr=gr.expanded,Bo=gr.rowProps,ka=gr.expandedRowRender,Go=gr.expandedRowClassName,Ur;if(Mo&&Vr){var Zr=ka(si,ge,bn+1,Vr),Mi=Wa(Go,si,ge,bn),yr={};vr&&(yr={style:(0,xe.Z)({},"--virtual-width","".concat(Ci,"px"))});var no="".concat(Zi,"-expanded-row-cell");Ur=Ot.createElement(Kr,{className:Le()("".concat(Zi,"-expanded-row"),"".concat(Zi,"-expanded-row-level-").concat(bn+1),Mi)},Ot.createElement(mi,{component:hr,prefixCls:Zi,className:Le()(no,(0,xe.Z)({},"".concat(no,"-fixed"),vr)),additionalProps:yr},Zr))}var bt=(0,Qt.Z)((0,Qt.Z)({},Je),{},{width:gi});hn&&(bt.position="absolute",bt.pointerEvents="none");var Nt=Ot.createElement(Kr,(0,ve.Z)({},Bo,Pn,{"data-row-key":Ge,ref:Mo?null:ae,className:Le()(ke,"".concat(Zi,"-row"),Bo==null?void 0:Bo.className,(0,xe.Z)({},"".concat(Zi,"-row-extra"),hn)),style:(0,Qt.Z)((0,Qt.Z)({},bt),Bo==null?void 0:Bo.style)}),Ti.map(function(Xt,ee){return Ot.createElement(ha,{key:ee,component:hr,rowInfo:gr,column:Xt,colIndex:ee,indent:bn,index:ge,renderIndex:Qn,record:si,inverse:hn,getHeight:Tn})}));return Mo?Ot.createElement("div",{ref:ae},Nt,Ur):Nt}),Fc=pt(Lr),Ho=Fc,of=Ot.forwardRef(function(Ht,ae){var ce=Ht.data,ge=Ht.onScroll,ke=me(Lt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Ge=ke.flattenColumns,Je=ke.onColumnResize,hn=ke.getRowKey,Tn=ke.expandedKeys,Pn=ke.prefixCls,si=ke.childrenColumnName,bn=ke.scrollX,Qn=ke.direction,jn=me(Yo),gi=jn.sticky,Ti=jn.scrollY,Zi=jn.listItemHeight,vr=jn.getComponent,Ci=jn.onScroll,Ki=Ot.useRef(),ki=Jr(ce,si,Tn,hn),gr=Ot.useMemo(function(){var Ur=0;return Ge.map(function(Zr){var Mi=Zr.width,yr=Zr.key;return Ur+=Mi,[yr,Mi,Ur]})},[Ge]),Kr=Ot.useMemo(function(){return gr.map(function(Ur){return Ur[2]})},[gr]);Ot.useEffect(function(){gr.forEach(function(Ur){var Zr=(0,le.Z)(Ur,2),Mi=Zr[0],yr=Zr[1];Je(Mi,yr)})},[gr]),Ot.useImperativeHandle(ae,function(){var Ur,Zr={scrollTo:function(yr){var no;(no=Ki.current)===null||no===void 0||no.scrollTo(yr)},nativeElement:(Ur=Ki.current)===null||Ur===void 0?void 0:Ur.nativeElement};return Object.defineProperty(Zr,"scrollLeft",{get:function(){var yr;return((yr=Ki.current)===null||yr===void 0?void 0:yr.getScrollInfo().x)||0},set:function(yr){var no;(no=Ki.current)===null||no===void 0||no.scrollTo({left:yr})}}),Zr});var hr=function(Zr,Mi){var yr,no=(yr=ki[Mi])===null||yr===void 0?void 0:yr.record,bt=Zr.onCell;if(bt){var Nt,Xt=bt(no,Mi);return(Nt=Xt==null?void 0:Xt.rowSpan)!==null&&Nt!==void 0?Nt:1}return 1},Mo=function(Zr){var Mi=Zr.start,yr=Zr.end,no=Zr.getSize,bt=Zr.offsetY;if(yr<0)return null;for(var Nt=Ge.filter(function(qn){return hr(qn,Mi)===0}),Xt=Mi,ee=function(Vn){if(Nt=Nt.filter(function(hi){return hr(hi,Vn)===0}),!Nt.length)return Xt=Vn,1},Ae=Mi;Ae>=0&&!ee(Ae);Ae-=1);for(var Ue=Ge.filter(function(qn){return hr(qn,yr)!==1}),en=yr,kn=function(Vn){if(Ue=Ue.filter(function(hi){return hr(hi,Vn)!==1}),!Ue.length)return en=Math.max(Vn-1,yr),1},On=yr;On<ki.length&&!kn(On);On+=1);for(var Ln=[],Xn=function(Vn){var hi=ki[Vn];if(!hi)return 1;Ge.some(function(Pi){return hr(Pi,Vn)>1})&&Ln.push(Vn)},ni=Xt;ni<=en;ni+=1)Xn(ni);var wi=Ln.map(function(qn){var Vn=ki[qn],hi=hn(Vn.record,qn),Pi=function(qi){var sr=qn+qi-1,Yr=hn(ki[sr].record,sr),li=no(hi,Yr);return li.bottom-li.top},ar=no(hi);return Ot.createElement(Ho,{key:qn,data:Vn,rowKey:hi,index:qn,style:{top:-bt+ar.top},extra:!0,getHeight:Pi})});return wi},Vr=Ot.useMemo(function(){return{columnsOffset:Kr}},[Kr]),Bo="".concat(Pn,"-tbody"),ka=vr(["body","wrapper"]),Go={};return gi&&(Go.position="sticky",Go.bottom=0,(0,re.Z)(gi)==="object"&&gi.offsetScroll&&(Go.bottom=gi.offsetScroll)),Ot.createElement(ba.Provider,{value:Vr},Ot.createElement(yl,{fullHeight:!1,ref:Ki,prefixCls:"".concat(Bo,"-virtual"),styles:{horizontalScrollBar:Go},className:Bo,height:Ti,itemHeight:Zi||24,data:ki,itemKey:function(Zr){return hn(Zr.record)},component:ka,scrollWidth:bn,direction:Qn,onVirtualScroll:function(Zr){var Mi,yr=Zr.x;ge({currentTarget:(Mi=Ki.current)===null||Mi===void 0?void 0:Mi.nativeElement,scrollLeft:yr})},onScroll:Ci,extraRender:Mo},function(Ur,Zr,Mi){var yr=hn(Ur.record,Zr);return Ot.createElement(Ho,{data:Ur,rowKey:yr,index:Zr,style:Mi.style})}))}),od=pt(of),Dd=od,$d=function(ae,ce){var ge=ce.ref,ke=ce.onScroll;return Ot.createElement(Dd,{ref:ge,data:ae,onScroll:ke})};function tc(Ht,ae){var ce=Ht.data,ge=Ht.columns,ke=Ht.scroll,Ge=Ht.sticky,Je=Ht.prefixCls,hn=Je===void 0?qu:Je,Tn=Ht.className,Pn=Ht.listItemHeight,si=Ht.components,bn=Ht.onScroll,Qn=ke||{},jn=Qn.x,gi=Qn.y;typeof jn!="number"&&(jn=1),typeof gi!="number"&&(gi=500);var Ti=de(function(Ci,Ki){return Ke(si,Ci)||Ki}),Zi=de(bn),vr=Ot.useMemo(function(){return{sticky:Ge,scrollY:gi,listItemHeight:Pn,getComponent:Ti,onScroll:Zi}},[Ge,gi,Pn,Ti,Zi]);return Ot.createElement(Yo.Provider,{value:vr},Ot.createElement(wo,(0,ve.Z)({},Ht,{className:Le()(Tn,"".concat(hn,"-virtual")),scroll:(0,Qt.Z)((0,Qt.Z)({},ke),{},{x:jn}),components:(0,Qt.Z)((0,Qt.Z)({},si),{},{body:ce!=null&&ce.length?$d:void 0}),columns:ge,internalHooks:kt.R,tailor:!0,ref:ae})))}var ch=Ot.forwardRef(tc);function kh(Ht){return lt(ch,Ht)}var $i=kh(),Sl=null},62978:function(xn,$n,Dt){"use strict";Dt.d($n,{g:function(){return Ot},v:function(){return Se}});var kt=Dt(1413),le=Dt(45987),ze=Dt(40830),Ye=["expandable"],Se="RC_TABLE_INTERNAL_COL_DEFINE";function Ot(qt){var Ee=qt.expandable,me=(0,le.Z)(qt,Ye),ve;return"expandable"in qt?ve=(0,kt.Z)((0,kt.Z)({},me),Ee):ve=me,ve.showExpandColumn===!1&&(ve.expandIconColumnIndex=-1),ve}},63295:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return Se}});var kt=Dt(71002),le=Symbol.for("react.element"),ze=Symbol.for("react.transitional.element"),Ye=Symbol.for("react.fragment");function Se(Ot){return Ot&&(0,kt.Z)(Ot)==="object"&&(Ot.$$typeof===le||Ot.$$typeof===ze)&&Ot.type===Ye}},40830:function(xn,$n,Dt){"use strict";var kt={},le=[],ze=function(Ze){le.push(Ze)};function Ye(ve,Ze){if(0)var Ce}function Se(ve,Ze){if(0)var Ce}function Ot(){kt={}}function qt(ve,Ze,Ce){!Ze&&!kt[Ce]&&(ve(!1,Ce),kt[Ce]=!0)}function Ee(ve,Ze){qt(Ye,ve,Ze)}function me(ve,Ze){qt(Se,ve,Ze)}Ee.preMessage=ze,Ee.resetWarned=Ot,Ee.noteOnce=me,$n.ZP=Ee},46762:function(xn,$n){"use strict";var Dt;var kt=Symbol.for("react.element"),le=Symbol.for("react.portal"),ze=Symbol.for("react.fragment"),Ye=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Ot=Symbol.for("react.provider"),qt=Symbol.for("react.context"),Ee=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),ve=Symbol.for("react.suspense"),Ze=Symbol.for("react.suspense_list"),Ce=Symbol.for("react.memo"),nn=Symbol.for("react.lazy"),Tt=Symbol.for("react.offscreen"),nt;nt=Symbol.for("react.module.reference");function et(ht){if(typeof ht=="object"&&ht!==null){var lt=ht.$$typeof;switch(lt){case kt:switch(ht=ht.type,ht){case ze:case Se:case Ye:case ve:case Ze:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case Ee:case qt:case me:case nn:case Ce:case Ot:return ht;default:return lt}}case le:return lt}}}Dt=qt,Dt=Ot,Dt=kt,Dt=me,Dt=ze,Dt=nn,Dt=Ce,Dt=le,Dt=Se,Dt=Ye,Dt=ve,Dt=Ze,Dt=function(){return!1},Dt=function(){return!1},Dt=function(ht){return et(ht)===qt},Dt=function(ht){return et(ht)===Ot},Dt=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===kt},Dt=function(ht){return et(ht)===me},Dt=function(ht){return et(ht)===ze},Dt=function(ht){return et(ht)===nn},Dt=function(ht){return et(ht)===Ce},Dt=function(ht){return et(ht)===le},Dt=function(ht){return et(ht)===Se},Dt=function(ht){return et(ht)===Ye},Dt=function(ht){return et(ht)===ve},Dt=function(ht){return et(ht)===Ze},Dt=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===ze||ht===Se||ht===Ye||ht===ve||ht===Ze||ht===Tt||typeof ht=="object"&&ht!==null&&(ht.$$typeof===nn||ht.$$typeof===Ce||ht.$$typeof===Ot||ht.$$typeof===qt||ht.$$typeof===me||ht.$$typeof===nt||ht.getModuleId!==void 0)},Dt=et},35110:function(xn,$n,Dt){"use strict";Dt(46762)},86128:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return vt}});var kt=Dt(87462),le=Dt(4942),ze=Dt(1413),Ye=Dt(97685),Se=Dt(45987),Ot=Dt(67294),qt=Dt(94184),Ee=Dt.n(qt),me=Dt(64217),ve=Dt(27822),Ze=function(Lt){for(var It=Lt.prefixCls,Yt=Lt.level,ie=Lt.isStart,re=Lt.isEnd,Qt="".concat(It,"-indent-unit"),xe=[],he=0;he<Yt;he+=1)xe.push(Ot.createElement("span",{key:he,className:Ee()(Qt,(0,le.Z)((0,le.Z)({},"".concat(Qt,"-start"),ie[he]),"".concat(Qt,"-end"),re[he]))}));return Ot.createElement("span",{"aria-hidden":"true",className:"".concat(It,"-indent")},xe)},Ce=Ot.memo(Ze),nn=Dt(35381),Tt=Dt(1089),nt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],et="open",ht="close",lt="---",pt=function(Lt){var It,Yt,ie,re=Lt.eventKey,Qt=Lt.className,xe=Lt.style,he=Lt.dragOver,Le=Lt.dragOverGapTop,Qe=Lt.dragOverGapBottom,Fe=Lt.isLeaf,Gn=Lt.isStart,Jn=Lt.isEnd,Ke=Lt.expanded,Dn=Lt.selected,$t=Lt.checked,zt=Lt.halfChecked,Gt=Lt.loading,_e=Lt.domRef,Sn=Lt.active,we=Lt.data,rn=Lt.onMouseMove,an=Lt.selectable,Wn=(0,Se.Z)(Lt,nt),Ne=Ot.useContext(ve.k),de=Ot.useContext(ve.y),Oe=Ot.useRef(null),dn=Ot.useState(!1),He=(0,Ye.Z)(dn,2),jt=He[0],Pt=He[1],wt=!!(Ne.disabled||Lt.disabled||(It=de.nodeDisabled)!==null&&It!==void 0&&It.call(de,we)),Ft=Ot.useMemo(function(){return!Ne.checkable||Lt.checkable===!1?!1:Ne.checkable},[Ne.checkable,Lt.checkable]),Wt=function(gn){wt||Ne.onNodeSelect(gn,(0,Tt.F)(Lt))},At=function(gn){wt||!Ft||Lt.disableCheckbox||Ne.onNodeCheck(gn,(0,Tt.F)(Lt),!$t)},Jt=Ot.useMemo(function(){return typeof an=="boolean"?an:Ne.selectable},[an,Ne.selectable]),Xe=function(gn){Ne.onNodeClick(gn,(0,Tt.F)(Lt)),Jt?Wt(gn):At(gn)},zn=function(gn){Ne.onNodeDoubleClick(gn,(0,Tt.F)(Lt))},En=function(gn){Ne.onNodeMouseEnter(gn,(0,Tt.F)(Lt))},Ve=function(gn){Ne.onNodeMouseLeave(gn,(0,Tt.F)(Lt))},wn=function(gn){Ne.onNodeContextMenu(gn,(0,Tt.F)(Lt))},De=Ot.useMemo(function(){return!!(Ne.draggable&&(!Ne.draggable.nodeDraggable||Ne.draggable.nodeDraggable(we)))},[Ne.draggable,we]),An=function(gn){gn.stopPropagation(),Pt(!0),Ne.onNodeDragStart(gn,Lt);try{gn.dataTransfer.setData("text/plain","")}catch(Fn){}},Hn=function(gn){gn.preventDefault(),gn.stopPropagation(),Ne.onNodeDragEnter(gn,Lt)},Si=function(gn){gn.preventDefault(),gn.stopPropagation(),Ne.onNodeDragOver(gn,Lt)},Un=function(gn){gn.stopPropagation(),Ne.onNodeDragLeave(gn,Lt)},Ui=function(gn){gn.stopPropagation(),Pt(!1),Ne.onNodeDragEnd(gn,Lt)},Yi=function(gn){gn.preventDefault(),gn.stopPropagation(),Pt(!1),Ne.onNodeDrop(gn,Lt)},di=function(gn){Gt||Ne.onNodeExpand(gn,(0,Tt.F)(Lt))},vi=Ot.useMemo(function(){var In=(0,nn.Z)(Ne.keyEntities,re)||{},gn=In.children;return!!(gn||[]).length},[Ne.keyEntities,re]),br=Ot.useMemo(function(){return Fe===!1?!1:Fe||!Ne.loadData&&!vi||Ne.loadData&&Lt.loaded&&!vi},[Fe,Ne.loadData,vi,Lt.loaded]);Ot.useEffect(function(){Gt||typeof Ne.loadData=="function"&&Ke&&!br&&!Lt.loaded&&Ne.onNodeLoad((0,Tt.F)(Lt))},[Gt,Ne.loadData,Ne.onNodeLoad,Ke,br,Lt]);var ii=Ot.useMemo(function(){var In;return(In=Ne.draggable)!==null&&In!==void 0&&In.icon?Ot.createElement("span",{className:"".concat(Ne.prefixCls,"-draggable-icon")},Ne.draggable.icon):null},[Ne.draggable]),mi=function(gn){var Fn=Lt.switcherIcon||Ne.switcherIcon;return typeof Fn=="function"?Fn((0,ze.Z)((0,ze.Z)({},Lt),{},{isLeaf:gn})):Fn},Br=function(){if(br){var gn=mi(!0);return gn!==!1?Ot.createElement("span",{className:Ee()("".concat(Ne.prefixCls,"-switcher"),"".concat(Ne.prefixCls,"-switcher-noop"))},gn):null}var Fn=mi(!1);return Fn!==!1?Ot.createElement("span",{onClick:di,className:Ee()("".concat(Ne.prefixCls,"-switcher"),"".concat(Ne.prefixCls,"-switcher_").concat(Ke?et:ht))},Fn):null},Gr=Ot.useMemo(function(){if(!Ft)return null;var In=typeof Ft!="boolean"?Ft:null;return Ot.createElement("span",{className:Ee()("".concat(Ne.prefixCls,"-checkbox"),(0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(Ne.prefixCls,"-checkbox-checked"),$t),"".concat(Ne.prefixCls,"-checkbox-indeterminate"),!$t&&zt),"".concat(Ne.prefixCls,"-checkbox-disabled"),wt||Lt.disableCheckbox)),onClick:At,role:"checkbox","aria-checked":zt?"mixed":$t,"aria-disabled":wt||Lt.disableCheckbox,"aria-label":"Select ".concat(typeof Lt.title=="string"?Lt.title:"tree node")},In)},[Ft,$t,zt,wt,Lt.disableCheckbox,Lt.title]),Li=Ot.useMemo(function(){return br?null:Ke?et:ht},[br,Ke]),jr=Ot.useMemo(function(){return Ot.createElement("span",{className:Ee()("".concat(Ne.prefixCls,"-iconEle"),"".concat(Ne.prefixCls,"-icon__").concat(Li||"docu"),(0,le.Z)({},"".concat(Ne.prefixCls,"-icon_loading"),Gt))})},[Ne.prefixCls,Li,Gt]),Lo=Ot.useMemo(function(){var In=!!Ne.draggable,gn=!Lt.disabled&&In&&Ne.dragOverNodeKey===re;return gn?Ne.dropIndicatorRender({dropPosition:Ne.dropPosition,dropLevelOffset:Ne.dropLevelOffset,indent:Ne.indent,prefixCls:Ne.prefixCls,direction:Ne.direction}):null},[Ne.dropPosition,Ne.dropLevelOffset,Ne.indent,Ne.prefixCls,Ne.direction,Ne.draggable,Ne.dragOverNodeKey,Ne.dropIndicatorRender]),ta=Ot.useMemo(function(){var In=Lt.title,gn=In===void 0?lt:In,Fn="".concat(Ne.prefixCls,"-node-content-wrapper"),Nn;if(Ne.showIcon){var Rn=Lt.icon||Ne.icon;Nn=Rn?Ot.createElement("span",{className:Ee()("".concat(Ne.prefixCls,"-iconEle"),"".concat(Ne.prefixCls,"-icon__customize"))},typeof Rn=="function"?Rn(Lt):Rn):jr}else Ne.loadData&&Gt&&(Nn=jr);var ri;return typeof gn=="function"?ri=gn(we):Ne.titleRender?ri=Ne.titleRender(we):ri=gn,Ot.createElement("span",{ref:Oe,title:typeof gn=="string"?gn:"",className:Ee()(Fn,"".concat(Fn,"-").concat(Li||"normal"),(0,le.Z)({},"".concat(Ne.prefixCls,"-node-selected"),!wt&&(Dn||jt))),onMouseEnter:En,onMouseLeave:Ve,onContextMenu:wn,onClick:Xe,onDoubleClick:zn},Nn,Ot.createElement("span",{className:"".concat(Ne.prefixCls,"-title")},ri),Lo)},[Ne.prefixCls,Ne.showIcon,Lt,Ne.icon,jr,Ne.titleRender,we,Li,En,Ve,wn,Xe,zn]),_o=(0,me.Z)(Wn,{aria:!0,data:!0}),Io=(0,nn.Z)(Ne.keyEntities,re)||{},ea=Io.level,To=Jn[Jn.length-1],mr=!wt&&De,cn=Ne.draggingNodeKey===re,xt=an!==void 0?{"aria-selected":!!an}:void 0;return Ot.createElement("div",(0,kt.Z)({ref:_e,role:"treeitem","aria-expanded":Fe?void 0:Ke,className:Ee()(Qt,"".concat(Ne.prefixCls,"-treenode"),(ie={},(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)(ie,"".concat(Ne.prefixCls,"-treenode-disabled"),wt),"".concat(Ne.prefixCls,"-treenode-switcher-").concat(Ke?"open":"close"),!Fe),"".concat(Ne.prefixCls,"-treenode-checkbox-checked"),$t),"".concat(Ne.prefixCls,"-treenode-checkbox-indeterminate"),zt),"".concat(Ne.prefixCls,"-treenode-selected"),Dn),"".concat(Ne.prefixCls,"-treenode-loading"),Gt),"".concat(Ne.prefixCls,"-treenode-active"),Sn),"".concat(Ne.prefixCls,"-treenode-leaf-last"),To),"".concat(Ne.prefixCls,"-treenode-draggable"),De),"dragging",cn),(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)(ie,"drop-target",Ne.dropTargetKey===re),"drop-container",Ne.dropContainerKey===re),"drag-over",!wt&&he),"drag-over-gap-top",!wt&&Le),"drag-over-gap-bottom",!wt&&Qe),"filter-node",(Yt=Ne.filterTreeNode)===null||Yt===void 0?void 0:Yt.call(Ne,(0,Tt.F)(Lt))),"".concat(Ne.prefixCls,"-treenode-leaf"),br))),style:xe,draggable:mr,onDragStart:mr?An:void 0,onDragEnter:De?Hn:void 0,onDragOver:De?Si:void 0,onDragLeave:De?Un:void 0,onDrop:De?Yi:void 0,onDragEnd:De?Ui:void 0,onMouseMove:rn},xt,_o),Ot.createElement(Ce,{prefixCls:Ne.prefixCls,level:ea,isStart:Gn,isEnd:Jn}),ii,Br(),Gr,ta)};pt.isTreeNode=1;var vt=pt},27822:function(xn,$n,Dt){"use strict";Dt.d($n,{k:function(){return le},y:function(){return ze}});var kt=Dt(67294),le=kt.createContext(null),ze=kt.createContext({})},70593:function(xn,$n,Dt){"use strict";Dt.d($n,{OF:function(){return re.Z},y6:function(){return ht.y},ZP:function(){return wt}});var kt=Dt(87462),le=Dt(71002),ze=Dt(1413),Ye=Dt(74902),Se=Dt(15671),Ot=Dt(43144),qt=Dt(97326),Ee=Dt(60136),me=Dt(29388),ve=Dt(4942),Ze=Dt(94184),Ce=Dt.n(Ze),nn=Dt(15105),Tt=Dt(64217),nt=Dt(80334),et=Dt(67294),ht=Dt(27822),lt=function(Wt){var At=Wt.dropPosition,Jt=Wt.dropLevelOffset,Xe=Wt.indent,zn={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(At){case-1:zn.top=0,zn.left=-Jt*Xe;break;case 1:zn.bottom=0,zn.left=-Jt*Xe;break;case 0:zn.bottom=0,zn.left=Xe;break}return et.createElement("div",{style:zn})},pt=lt;function vt(Ft){if(Ft==null)throw new TypeError("Cannot destructure "+Ft)}var St=Dt(97685),Lt=Dt(45987),It=Dt(8410),Yt=Dt(73299),ie=Dt(62874),re=Dt(86128);function Qt(Ft,Wt){var At=et.useState(!1),Jt=(0,St.Z)(At,2),Xe=Jt[0],zn=Jt[1];(0,It.Z)(function(){if(Xe)return Ft(),function(){Wt()}},[Xe]),(0,It.Z)(function(){return zn(!0),function(){zn(!1)}},[])}var xe=Qt,he=Dt(1089),Le=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Qe=et.forwardRef(function(Ft,Wt){var At=Ft.className,Jt=Ft.style,Xe=Ft.motion,zn=Ft.motionNodes,En=Ft.motionType,Ve=Ft.onMotionStart,wn=Ft.onMotionEnd,De=Ft.active,An=Ft.treeNodeRequiredProps,Hn=(0,Lt.Z)(Ft,Le),Si=et.useState(!0),Un=(0,St.Z)(Si,2),Ui=Un[0],Yi=Un[1],di=et.useContext(ht.k),vi=di.prefixCls,br=zn&&En!=="hide";(0,It.Z)(function(){zn&&br!==Ui&&Yi(br)},[zn]);var ii=function(){zn&&Ve()},mi=et.useRef(!1),Br=function(){zn&&!mi.current&&(mi.current=!0,wn())};xe(ii,Br);var Gr=function(jr){br===jr&&Br()};return zn?et.createElement(ie.Z,(0,kt.Z)({ref:Wt,visible:Ui},Xe,{motionAppear:En==="show",onVisibleChanged:Gr}),function(Li,jr){var Lo=Li.className,ta=Li.style;return et.createElement("div",{ref:jr,className:Ce()("".concat(vi,"-treenode-motion"),Lo),style:ta},zn.map(function(_o){var Io=Object.assign({},(vt(_o.data),_o.data)),ea=_o.title,To=_o.key,mr=_o.isStart,cn=_o.isEnd;delete Io.children;var xt=(0,he.H8)(To,An);return et.createElement(re.Z,(0,kt.Z)({},Io,xt,{title:ea,active:De,data:_o.data,key:To,isStart:mr,isEnd:cn}))}))}):et.createElement(re.Z,(0,kt.Z)({domRef:Wt,className:At,style:Jt},Hn,{active:De}))}),Fe=Qe;function Gn(){var Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],At=Ft.length,Jt=Wt.length;if(Math.abs(At-Jt)!==1)return{add:!1,key:null};function Xe(zn,En){var Ve=new Map;zn.forEach(function(De){Ve.set(De,!0)});var wn=En.filter(function(De){return!Ve.has(De)});return wn.length===1?wn[0]:null}return At<Jt?{add:!0,key:Xe(Ft,Wt)}:{add:!1,key:Xe(Wt,Ft)}}function Jn(Ft,Wt,At){var Jt=Ft.findIndex(function(Ve){return Ve.key===At}),Xe=Ft[Jt+1],zn=Wt.findIndex(function(Ve){return Ve.key===At});if(Xe){var En=Wt.findIndex(function(Ve){return Ve.key===Xe.key});return Wt.slice(zn+1,En)}return Wt.slice(zn+1)}var Ke=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Dn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},$t=function(){},zt="RC_TREE_MOTION_".concat(Math.random()),Gt={key:zt},_e={key:zt,level:0,index:0,pos:"0",node:Gt,nodes:[Gt]},Sn={parent:null,children:[],pos:_e.pos,data:Gt,title:null,key:zt,isStart:[],isEnd:[]};function we(Ft,Wt,At,Jt){return Wt===!1||!At?Ft:Ft.slice(0,Math.ceil(At/Jt)+1)}function rn(Ft){var Wt=Ft.key,At=Ft.pos;return(0,he.km)(Wt,At)}function an(Ft){for(var Wt=String(Ft.data.key),At=Ft;At.parent;)At=At.parent,Wt="".concat(At.data.key," > ").concat(Wt);return Wt}var Wn=et.forwardRef(function(Ft,Wt){var At=Ft.prefixCls,Jt=Ft.data,Xe=Ft.selectable,zn=Ft.checkable,En=Ft.expandedKeys,Ve=Ft.selectedKeys,wn=Ft.checkedKeys,De=Ft.loadedKeys,An=Ft.loadingKeys,Hn=Ft.halfCheckedKeys,Si=Ft.keyEntities,Un=Ft.disabled,Ui=Ft.dragging,Yi=Ft.dragOverNodeKey,di=Ft.dropPosition,vi=Ft.motion,br=Ft.height,ii=Ft.itemHeight,mi=Ft.virtual,Br=Ft.scrollWidth,Gr=Ft.focusable,Li=Ft.activeItem,jr=Ft.focused,Lo=Ft.tabIndex,ta=Ft.onKeyDown,_o=Ft.onFocus,Io=Ft.onBlur,ea=Ft.onActiveChange,To=Ft.onListChangeStart,mr=Ft.onListChangeEnd,cn=(0,Lt.Z)(Ft,Ke),xt=et.useRef(null),In=et.useRef(null);et.useImperativeHandle(Wt,function(){return{scrollTo:function(na){xt.current.scrollTo(na)},getIndentWidth:function(){return In.current.offsetWidth}}});var gn=et.useState(En),Fn=(0,St.Z)(gn,2),Nn=Fn[0],Rn=Fn[1],ri=et.useState(Jt),Ii=(0,St.Z)(ri,2),Ie=Ii[0],Re=Ii[1],se=et.useState(Jt),je=(0,St.Z)(se,2),ti=je[0],_n=je[1],Zn=et.useState([]),Me=(0,St.Z)(Zn,2),un=Me[0],xi=Me[1],Di=et.useState(null),Cn=(0,St.Z)(Di,2),be=Cn[0],fi=Cn[1],Wi=et.useRef(Jt);Wi.current=Jt;function Er(){var Mr=Wi.current;Re(Mr),_n(Mr),xi([]),fi(null),mr()}(0,It.Z)(function(){Rn(En);var Mr=Gn(Nn,En);if(Mr.key!==null)if(Mr.add){var na=Ie.findIndex(function(bo){var Yn=bo.key;return Yn===Mr.key}),Ao=we(Jn(Ie,Jt,Mr.key),mi,br,ii),Fi=Ie.slice();Fi.splice(na+1,0,Sn),_n(Fi),xi(Ao),fi("show")}else{var Ai=Jt.findIndex(function(bo){var Yn=bo.key;return Yn===Mr.key}),zi=we(Jn(Jt,Ie,Mr.key),mi,br,ii),Jr=Jt.slice();Jr.splice(Ai+1,0,Sn),_n(Jr),xi(zi),fi("hide")}else Ie!==Jt&&(Re(Jt),_n(Jt))},[En,Jt]),et.useEffect(function(){Ui||Er()},[Ui]);var fn=vi?ti:Jt,bi={expandedKeys:En,selectedKeys:Ve,loadedKeys:De,loadingKeys:An,checkedKeys:wn,halfCheckedKeys:Hn,dragOverNodeKey:Yi,dropPosition:di,keyEntities:Si};return et.createElement(et.Fragment,null,jr&&Li&&et.createElement("span",{style:Dn,"aria-live":"assertive"},an(Li)),et.createElement("div",null,et.createElement("input",{style:Dn,disabled:Gr===!1||Un,tabIndex:Gr!==!1?Lo:null,onKeyDown:ta,onFocus:_o,onBlur:Io,value:"",onChange:$t,"aria-label":"for screen reader"})),et.createElement("div",{className:"".concat(At,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},et.createElement("div",{className:"".concat(At,"-indent")},et.createElement("div",{ref:In,className:"".concat(At,"-indent-unit")}))),et.createElement(Yt.Z,(0,kt.Z)({},cn,{data:fn,itemKey:rn,height:br,fullHeight:!1,virtual:mi,itemHeight:ii,scrollWidth:Br,prefixCls:"".concat(At,"-list"),ref:xt,role:"tree",onVisibleChange:function(na){na.every(function(Ao){return rn(Ao)!==zt})&&Er()}}),function(Mr){var na=Mr.pos,Ao=Object.assign({},(vt(Mr.data),Mr.data)),Fi=Mr.title,Ai=Mr.key,zi=Mr.isStart,Jr=Mr.isEnd,bo=(0,he.km)(Ai,na);delete Ao.key,delete Ao.children;var Yn=(0,he.H8)(bo,bi);return et.createElement(Fe,(0,kt.Z)({},Ao,Yn,{title:Fi,active:!!Li&&Ai===Li.key,pos:na,data:Mr.data,isStart:zi,isEnd:Jr,motion:vi,motionNodes:Ai===zt?un:null,motionType:be,onMotionStart:To,onMotionEnd:Er,treeNodeRequiredProps:bi,onMouseMove:function(){ea(null)}}))}))}),Ne=Wn,de=Dt(10225),Oe=Dt(17341),dn=Dt(35381),He=10,jt=function(Ft){(0,Ee.Z)(At,Ft);var Wt=(0,me.Z)(At);function At(){var Jt;(0,Se.Z)(this,At);for(var Xe=arguments.length,zn=new Array(Xe),En=0;En<Xe;En++)zn[En]=arguments[En];return Jt=Wt.call.apply(Wt,[this].concat(zn)),(0,ve.Z)((0,qt.Z)(Jt),"destroyed",!1),(0,ve.Z)((0,qt.Z)(Jt),"delayedDragEnterLogic",void 0),(0,ve.Z)((0,qt.Z)(Jt),"loadingRetryTimes",{}),(0,ve.Z)((0,qt.Z)(Jt),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,he.w$)()}),(0,ve.Z)((0,qt.Z)(Jt),"dragStartMousePosition",null),(0,ve.Z)((0,qt.Z)(Jt),"dragNodeProps",null),(0,ve.Z)((0,qt.Z)(Jt),"currentMouseOverDroppableNodeKey",null),(0,ve.Z)((0,qt.Z)(Jt),"listRef",et.createRef()),(0,ve.Z)((0,qt.Z)(Jt),"onNodeDragStart",function(Ve,wn){var De=Jt.state,An=De.expandedKeys,Hn=De.keyEntities,Si=Jt.props.onDragStart,Un=wn.eventKey;Jt.dragNodeProps=wn,Jt.dragStartMousePosition={x:Ve.clientX,y:Ve.clientY};var Ui=(0,de._5)(An,Un);Jt.setState({draggingNodeKey:Un,dragChildrenKeys:(0,de.wA)(Un,Hn),indent:Jt.listRef.current.getIndentWidth()}),Jt.setExpandedKeys(Ui),window.addEventListener("dragend",Jt.onWindowDragEnd),Si==null||Si({event:Ve,node:(0,he.F)(wn)})}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeDragEnter",function(Ve,wn){var De=Jt.state,An=De.expandedKeys,Hn=De.keyEntities,Si=De.dragChildrenKeys,Un=De.flattenNodes,Ui=De.indent,Yi=Jt.props,di=Yi.onDragEnter,vi=Yi.onExpand,br=Yi.allowDrop,ii=Yi.direction,mi=wn.pos,Br=wn.eventKey;if(Jt.currentMouseOverDroppableNodeKey!==Br&&(Jt.currentMouseOverDroppableNodeKey=Br),!Jt.dragNodeProps){Jt.resetDragState();return}var Gr=(0,de.OM)(Ve,Jt.dragNodeProps,wn,Ui,Jt.dragStartMousePosition,br,Un,Hn,An,ii),Li=Gr.dropPosition,jr=Gr.dropLevelOffset,Lo=Gr.dropTargetKey,ta=Gr.dropContainerKey,_o=Gr.dropTargetPos,Io=Gr.dropAllowed,ea=Gr.dragOverNodeKey;if(Si.includes(Lo)||!Io){Jt.resetDragState();return}if(Jt.delayedDragEnterLogic||(Jt.delayedDragEnterLogic={}),Object.keys(Jt.delayedDragEnterLogic).forEach(function(To){clearTimeout(Jt.delayedDragEnterLogic[To])}),Jt.dragNodeProps.eventKey!==wn.eventKey&&(Ve.persist(),Jt.delayedDragEnterLogic[mi]=window.setTimeout(function(){if(Jt.state.draggingNodeKey!==null){var To=(0,Ye.Z)(An),mr=(0,dn.Z)(Hn,wn.eventKey);mr&&(mr.children||[]).length&&(To=(0,de.L0)(An,wn.eventKey)),Jt.props.hasOwnProperty("expandedKeys")||Jt.setExpandedKeys(To),vi==null||vi(To,{node:(0,he.F)(wn),expanded:!0,nativeEvent:Ve.nativeEvent})}},800)),Jt.dragNodeProps.eventKey===Lo&&jr===0){Jt.resetDragState();return}Jt.setState({dragOverNodeKey:ea,dropPosition:Li,dropLevelOffset:jr,dropTargetKey:Lo,dropContainerKey:ta,dropTargetPos:_o,dropAllowed:Io}),di==null||di({event:Ve,node:(0,he.F)(wn),expandedKeys:An})}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeDragOver",function(Ve,wn){var De=Jt.state,An=De.dragChildrenKeys,Hn=De.flattenNodes,Si=De.keyEntities,Un=De.expandedKeys,Ui=De.indent,Yi=Jt.props,di=Yi.onDragOver,vi=Yi.allowDrop,br=Yi.direction;if(Jt.dragNodeProps){var ii=(0,de.OM)(Ve,Jt.dragNodeProps,wn,Ui,Jt.dragStartMousePosition,vi,Hn,Si,Un,br),mi=ii.dropPosition,Br=ii.dropLevelOffset,Gr=ii.dropTargetKey,Li=ii.dropContainerKey,jr=ii.dropTargetPos,Lo=ii.dropAllowed,ta=ii.dragOverNodeKey;An.includes(Gr)||!Lo||(Jt.dragNodeProps.eventKey===Gr&&Br===0?Jt.state.dropPosition===null&&Jt.state.dropLevelOffset===null&&Jt.state.dropTargetKey===null&&Jt.state.dropContainerKey===null&&Jt.state.dropTargetPos===null&&Jt.state.dropAllowed===!1&&Jt.state.dragOverNodeKey===null||Jt.resetDragState():mi===Jt.state.dropPosition&&Br===Jt.state.dropLevelOffset&&Gr===Jt.state.dropTargetKey&&Li===Jt.state.dropContainerKey&&jr===Jt.state.dropTargetPos&&Lo===Jt.state.dropAllowed&&ta===Jt.state.dragOverNodeKey||Jt.setState({dropPosition:mi,dropLevelOffset:Br,dropTargetKey:Gr,dropContainerKey:Li,dropTargetPos:jr,dropAllowed:Lo,dragOverNodeKey:ta}),di==null||di({event:Ve,node:(0,he.F)(wn)}))}}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeDragLeave",function(Ve,wn){Jt.currentMouseOverDroppableNodeKey===wn.eventKey&&!Ve.currentTarget.contains(Ve.relatedTarget)&&(Jt.resetDragState(),Jt.currentMouseOverDroppableNodeKey=null);var De=Jt.props.onDragLeave;De==null||De({event:Ve,node:(0,he.F)(wn)})}),(0,ve.Z)((0,qt.Z)(Jt),"onWindowDragEnd",function(Ve){Jt.onNodeDragEnd(Ve,null,!0),window.removeEventListener("dragend",Jt.onWindowDragEnd)}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeDragEnd",function(Ve,wn){var De=Jt.props.onDragEnd;Jt.setState({dragOverNodeKey:null}),Jt.cleanDragState(),De==null||De({event:Ve,node:(0,he.F)(wn)}),Jt.dragNodeProps=null,window.removeEventListener("dragend",Jt.onWindowDragEnd)}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeDrop",function(Ve,wn){var De,An=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Hn=Jt.state,Si=Hn.dragChildrenKeys,Un=Hn.dropPosition,Ui=Hn.dropTargetKey,Yi=Hn.dropTargetPos,di=Hn.dropAllowed;if(di){var vi=Jt.props.onDrop;if(Jt.setState({dragOverNodeKey:null}),Jt.cleanDragState(),Ui!==null){var br=(0,ze.Z)((0,ze.Z)({},(0,he.H8)(Ui,Jt.getTreeNodeRequiredProps())),{},{active:((De=Jt.getActiveItem())===null||De===void 0?void 0:De.key)===Ui,data:(0,dn.Z)(Jt.state.keyEntities,Ui).node}),ii=Si.includes(Ui);(0,nt.ZP)(!ii,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var mi=(0,de.yx)(Yi),Br={event:Ve,node:(0,he.F)(br),dragNode:Jt.dragNodeProps?(0,he.F)(Jt.dragNodeProps):null,dragNodesKeys:[Jt.dragNodeProps.eventKey].concat(Si),dropToGap:Un!==0,dropPosition:Un+Number(mi[mi.length-1])};An||vi==null||vi(Br),Jt.dragNodeProps=null}}}),(0,ve.Z)((0,qt.Z)(Jt),"cleanDragState",function(){var Ve=Jt.state.draggingNodeKey;Ve!==null&&Jt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Jt.dragStartMousePosition=null,Jt.currentMouseOverDroppableNodeKey=null}),(0,ve.Z)((0,qt.Z)(Jt),"triggerExpandActionExpand",function(Ve,wn){var De=Jt.state,An=De.expandedKeys,Hn=De.flattenNodes,Si=wn.expanded,Un=wn.key,Ui=wn.isLeaf;if(!(Ui||Ve.shiftKey||Ve.metaKey||Ve.ctrlKey)){var Yi=Hn.filter(function(vi){return vi.key===Un})[0],di=(0,he.F)((0,ze.Z)((0,ze.Z)({},(0,he.H8)(Un,Jt.getTreeNodeRequiredProps())),{},{data:Yi.data}));Jt.setExpandedKeys(Si?(0,de._5)(An,Un):(0,de.L0)(An,Un)),Jt.onNodeExpand(Ve,di)}}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeClick",function(Ve,wn){var De=Jt.props,An=De.onClick,Hn=De.expandAction;Hn==="click"&&Jt.triggerExpandActionExpand(Ve,wn),An==null||An(Ve,wn)}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeDoubleClick",function(Ve,wn){var De=Jt.props,An=De.onDoubleClick,Hn=De.expandAction;Hn==="doubleClick"&&Jt.triggerExpandActionExpand(Ve,wn),An==null||An(Ve,wn)}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeSelect",function(Ve,wn){var De=Jt.state.selectedKeys,An=Jt.state,Hn=An.keyEntities,Si=An.fieldNames,Un=Jt.props,Ui=Un.onSelect,Yi=Un.multiple,di=wn.selected,vi=wn[Si.key],br=!di;br?Yi?De=(0,de.L0)(De,vi):De=[vi]:De=(0,de._5)(De,vi);var ii=De.map(function(mi){var Br=(0,dn.Z)(Hn,mi);return Br?Br.node:null}).filter(Boolean);Jt.setUncontrolledState({selectedKeys:De}),Ui==null||Ui(De,{event:"select",selected:br,node:wn,selectedNodes:ii,nativeEvent:Ve.nativeEvent})}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeCheck",function(Ve,wn,De){var An=Jt.state,Hn=An.keyEntities,Si=An.checkedKeys,Un=An.halfCheckedKeys,Ui=Jt.props,Yi=Ui.checkStrictly,di=Ui.onCheck,vi=wn.key,br,ii={event:"check",node:wn,checked:De,nativeEvent:Ve.nativeEvent};if(Yi){var mi=De?(0,de.L0)(Si,vi):(0,de._5)(Si,vi),Br=(0,de._5)(Un,vi);br={checked:mi,halfChecked:Br},ii.checkedNodes=mi.map(function(_o){return(0,dn.Z)(Hn,_o)}).filter(Boolean).map(function(_o){return _o.node}),Jt.setUncontrolledState({checkedKeys:mi})}else{var Gr=(0,Oe.S)([].concat((0,Ye.Z)(Si),[vi]),!0,Hn),Li=Gr.checkedKeys,jr=Gr.halfCheckedKeys;if(!De){var Lo=new Set(Li);Lo.delete(vi);var ta=(0,Oe.S)(Array.from(Lo),{checked:!1,halfCheckedKeys:jr},Hn);Li=ta.checkedKeys,jr=ta.halfCheckedKeys}br=Li,ii.checkedNodes=[],ii.checkedNodesPositions=[],ii.halfCheckedKeys=jr,Li.forEach(function(_o){var Io=(0,dn.Z)(Hn,_o);if(Io){var ea=Io.node,To=Io.pos;ii.checkedNodes.push(ea),ii.checkedNodesPositions.push({node:ea,pos:To})}}),Jt.setUncontrolledState({checkedKeys:Li},!1,{halfCheckedKeys:jr})}di==null||di(br,ii)}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeLoad",function(Ve){var wn,De=Ve.key,An=Jt.state.keyEntities,Hn=(0,dn.Z)(An,De);if(!(Hn!=null&&(wn=Hn.children)!==null&&wn!==void 0&&wn.length)){var Si=new Promise(function(Un,Ui){Jt.setState(function(Yi){var di=Yi.loadedKeys,vi=di===void 0?[]:di,br=Yi.loadingKeys,ii=br===void 0?[]:br,mi=Jt.props,Br=mi.loadData,Gr=mi.onLoad;if(!Br||vi.includes(De)||ii.includes(De))return null;var Li=Br(Ve);return Li.then(function(){var jr=Jt.state.loadedKeys,Lo=(0,de.L0)(jr,De);Gr==null||Gr(Lo,{event:"load",node:Ve}),Jt.setUncontrolledState({loadedKeys:Lo}),Jt.setState(function(ta){return{loadingKeys:(0,de._5)(ta.loadingKeys,De)}}),Un()}).catch(function(jr){if(Jt.setState(function(ta){return{loadingKeys:(0,de._5)(ta.loadingKeys,De)}}),Jt.loadingRetryTimes[De]=(Jt.loadingRetryTimes[De]||0)+1,Jt.loadingRetryTimes[De]>=He){var Lo=Jt.state.loadedKeys;(0,nt.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Jt.setUncontrolledState({loadedKeys:(0,de.L0)(Lo,De)}),Un()}Ui(jr)}),{loadingKeys:(0,de.L0)(ii,De)}})});return Si.catch(function(){}),Si}}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeMouseEnter",function(Ve,wn){var De=Jt.props.onMouseEnter;De==null||De({event:Ve,node:wn})}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeMouseLeave",function(Ve,wn){var De=Jt.props.onMouseLeave;De==null||De({event:Ve,node:wn})}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeContextMenu",function(Ve,wn){var De=Jt.props.onRightClick;De&&(Ve.preventDefault(),De({event:Ve,node:wn}))}),(0,ve.Z)((0,qt.Z)(Jt),"onFocus",function(){var Ve=Jt.props.onFocus;Jt.setState({focused:!0});for(var wn=arguments.length,De=new Array(wn),An=0;An<wn;An++)De[An]=arguments[An];Ve==null||Ve.apply(void 0,De)}),(0,ve.Z)((0,qt.Z)(Jt),"onBlur",function(){var Ve=Jt.props.onBlur;Jt.setState({focused:!1}),Jt.onActiveChange(null);for(var wn=arguments.length,De=new Array(wn),An=0;An<wn;An++)De[An]=arguments[An];Ve==null||Ve.apply(void 0,De)}),(0,ve.Z)((0,qt.Z)(Jt),"getTreeNodeRequiredProps",function(){var Ve=Jt.state,wn=Ve.expandedKeys,De=Ve.selectedKeys,An=Ve.loadedKeys,Hn=Ve.loadingKeys,Si=Ve.checkedKeys,Un=Ve.halfCheckedKeys,Ui=Ve.dragOverNodeKey,Yi=Ve.dropPosition,di=Ve.keyEntities;return{expandedKeys:wn||[],selectedKeys:De||[],loadedKeys:An||[],loadingKeys:Hn||[],checkedKeys:Si||[],halfCheckedKeys:Un||[],dragOverNodeKey:Ui,dropPosition:Yi,keyEntities:di}}),(0,ve.Z)((0,qt.Z)(Jt),"setExpandedKeys",function(Ve){var wn=Jt.state,De=wn.treeData,An=wn.fieldNames,Hn=(0,he.oH)(De,Ve,An);Jt.setUncontrolledState({expandedKeys:Ve,flattenNodes:Hn},!0)}),(0,ve.Z)((0,qt.Z)(Jt),"onNodeExpand",function(Ve,wn){var De=Jt.state.expandedKeys,An=Jt.state,Hn=An.listChanging,Si=An.fieldNames,Un=Jt.props,Ui=Un.onExpand,Yi=Un.loadData,di=wn.expanded,vi=wn[Si.key];if(!Hn){var br=De.includes(vi),ii=!di;if((0,nt.ZP)(di&&br||!di&&!br,"Expand state not sync with index check"),De=ii?(0,de.L0)(De,vi):(0,de._5)(De,vi),Jt.setExpandedKeys(De),Ui==null||Ui(De,{node:wn,expanded:ii,nativeEvent:Ve.nativeEvent}),ii&&Yi){var mi=Jt.onNodeLoad(wn);mi&&mi.then(function(){var Br=(0,he.oH)(Jt.state.treeData,De,Si);Jt.setUncontrolledState({flattenNodes:Br})}).catch(function(){var Br=Jt.state.expandedKeys,Gr=(0,de._5)(Br,vi);Jt.setExpandedKeys(Gr)})}}}),(0,ve.Z)((0,qt.Z)(Jt),"onListChangeStart",function(){Jt.setUncontrolledState({listChanging:!0})}),(0,ve.Z)((0,qt.Z)(Jt),"onListChangeEnd",function(){setTimeout(function(){Jt.setUncontrolledState({listChanging:!1})})}),(0,ve.Z)((0,qt.Z)(Jt),"onActiveChange",function(Ve){var wn=Jt.state.activeKey,De=Jt.props,An=De.onActiveChange,Hn=De.itemScrollOffset,Si=Hn===void 0?0:Hn;wn!==Ve&&(Jt.setState({activeKey:Ve}),Ve!==null&&Jt.scrollTo({key:Ve,offset:Si}),An==null||An(Ve))}),(0,ve.Z)((0,qt.Z)(Jt),"getActiveItem",function(){var Ve=Jt.state,wn=Ve.activeKey,De=Ve.flattenNodes;return wn===null?null:De.find(function(An){var Hn=An.key;return Hn===wn})||null}),(0,ve.Z)((0,qt.Z)(Jt),"offsetActiveKey",function(Ve){var wn=Jt.state,De=wn.flattenNodes,An=wn.activeKey,Hn=De.findIndex(function(Ui){var Yi=Ui.key;return Yi===An});Hn===-1&&Ve<0&&(Hn=De.length),Hn=(Hn+Ve+De.length)%De.length;var Si=De[Hn];if(Si){var Un=Si.key;Jt.onActiveChange(Un)}else Jt.onActiveChange(null)}),(0,ve.Z)((0,qt.Z)(Jt),"onKeyDown",function(Ve){var wn=Jt.state,De=wn.activeKey,An=wn.expandedKeys,Hn=wn.checkedKeys,Si=wn.fieldNames,Un=Jt.props,Ui=Un.onKeyDown,Yi=Un.checkable,di=Un.selectable;switch(Ve.which){case nn.Z.UP:{Jt.offsetActiveKey(-1),Ve.preventDefault();break}case nn.Z.DOWN:{Jt.offsetActiveKey(1),Ve.preventDefault();break}}var vi=Jt.getActiveItem();if(vi&&vi.data){var br=Jt.getTreeNodeRequiredProps(),ii=vi.data.isLeaf===!1||!!(vi.data[Si.children]||[]).length,mi=(0,he.F)((0,ze.Z)((0,ze.Z)({},(0,he.H8)(De,br)),{},{data:vi.data,active:!0}));switch(Ve.which){case nn.Z.LEFT:{ii&&An.includes(De)?Jt.onNodeExpand({},mi):vi.parent&&Jt.onActiveChange(vi.parent.key),Ve.preventDefault();break}case nn.Z.RIGHT:{ii&&!An.includes(De)?Jt.onNodeExpand({},mi):vi.children&&vi.children.length&&Jt.onActiveChange(vi.children[0].key),Ve.preventDefault();break}case nn.Z.ENTER:case nn.Z.SPACE:{Yi&&!mi.disabled&&mi.checkable!==!1&&!mi.disableCheckbox?Jt.onNodeCheck({},mi,!Hn.includes(De)):!Yi&&di&&!mi.disabled&&mi.selectable!==!1&&Jt.onNodeSelect({},mi);break}}}Ui==null||Ui(Ve)}),(0,ve.Z)((0,qt.Z)(Jt),"setUncontrolledState",function(Ve){var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Jt.destroyed){var An=!1,Hn=!0,Si={};Object.keys(Ve).forEach(function(Un){if(Jt.props.hasOwnProperty(Un)){Hn=!1;return}An=!0,Si[Un]=Ve[Un]}),An&&(!wn||Hn)&&Jt.setState((0,ze.Z)((0,ze.Z)({},Si),De))}}),(0,ve.Z)((0,qt.Z)(Jt),"scrollTo",function(Ve){Jt.listRef.current.scrollTo(Ve)}),Jt}return(0,Ot.Z)(At,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Xe=this.props,zn=Xe.activeKey,En=Xe.itemScrollOffset,Ve=En===void 0?0:En;zn!==void 0&&zn!==this.state.activeKey&&(this.setState({activeKey:zn}),zn!==null&&this.scrollTo({key:zn,offset:Ve}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Xe=this.state,zn=Xe.focused,En=Xe.flattenNodes,Ve=Xe.keyEntities,wn=Xe.draggingNodeKey,De=Xe.activeKey,An=Xe.dropLevelOffset,Hn=Xe.dropContainerKey,Si=Xe.dropTargetKey,Un=Xe.dropPosition,Ui=Xe.dragOverNodeKey,Yi=Xe.indent,di=this.props,vi=di.prefixCls,br=di.className,ii=di.style,mi=di.showLine,Br=di.focusable,Gr=di.tabIndex,Li=Gr===void 0?0:Gr,jr=di.selectable,Lo=di.showIcon,ta=di.icon,_o=di.switcherIcon,Io=di.draggable,ea=di.checkable,To=di.checkStrictly,mr=di.disabled,cn=di.motion,xt=di.loadData,In=di.filterTreeNode,gn=di.height,Fn=di.itemHeight,Nn=di.scrollWidth,Rn=di.virtual,ri=di.titleRender,Ii=di.dropIndicatorRender,Ie=di.onContextMenu,Re=di.onScroll,se=di.direction,je=di.rootClassName,ti=di.rootStyle,_n=(0,Tt.Z)(this.props,{aria:!0,data:!0}),Zn;Io&&((0,le.Z)(Io)==="object"?Zn=Io:typeof Io=="function"?Zn={nodeDraggable:Io}:Zn={});var Me={prefixCls:vi,selectable:jr,showIcon:Lo,icon:ta,switcherIcon:_o,draggable:Zn,draggingNodeKey:wn,checkable:ea,checkStrictly:To,disabled:mr,keyEntities:Ve,dropLevelOffset:An,dropContainerKey:Hn,dropTargetKey:Si,dropPosition:Un,dragOverNodeKey:Ui,indent:Yi,direction:se,dropIndicatorRender:Ii,loadData:xt,filterTreeNode:In,titleRender:ri,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return et.createElement(ht.k.Provider,{value:Me},et.createElement("div",{className:Ce()(vi,br,je,(0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(vi,"-show-line"),mi),"".concat(vi,"-focused"),zn),"".concat(vi,"-active-focused"),De!==null)),style:ti},et.createElement(Ne,(0,kt.Z)({ref:this.listRef,prefixCls:vi,style:ii,data:En,disabled:mr,selectable:jr,checkable:!!ea,motion:cn,dragging:wn!==null,height:gn,itemHeight:Fn,virtual:Rn,focusable:Br,focused:zn,tabIndex:Li,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ie,onScroll:Re,scrollWidth:Nn},this.getTreeNodeRequiredProps(),_n))))}}],[{key:"getDerivedStateFromProps",value:function(Xe,zn){var En=zn.prevProps,Ve={prevProps:Xe};function wn(Li){return!En&&Xe.hasOwnProperty(Li)||En&&En[Li]!==Xe[Li]}var De,An=zn.fieldNames;if(wn("fieldNames")&&(An=(0,he.w$)(Xe.fieldNames),Ve.fieldNames=An),wn("treeData")?De=Xe.treeData:wn("children")&&((0,nt.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),De=(0,he.zn)(Xe.children)),De){Ve.treeData=De;var Hn=(0,he.I8)(De,{fieldNames:An});Ve.keyEntities=(0,ze.Z)((0,ve.Z)({},zt,_e),Hn.keyEntities)}var Si=Ve.keyEntities||zn.keyEntities;if(wn("expandedKeys")||En&&wn("autoExpandParent"))Ve.expandedKeys=Xe.autoExpandParent||!En&&Xe.defaultExpandParent?(0,de.r7)(Xe.expandedKeys,Si):Xe.expandedKeys;else if(!En&&Xe.defaultExpandAll){var Un=(0,ze.Z)({},Si);delete Un[zt];var Ui=[];Object.keys(Un).forEach(function(Li){var jr=Un[Li];jr.children&&jr.children.length&&Ui.push(jr.key)}),Ve.expandedKeys=Ui}else!En&&Xe.defaultExpandedKeys&&(Ve.expandedKeys=Xe.autoExpandParent||Xe.defaultExpandParent?(0,de.r7)(Xe.defaultExpandedKeys,Si):Xe.defaultExpandedKeys);if(Ve.expandedKeys||delete Ve.expandedKeys,De||Ve.expandedKeys){var Yi=(0,he.oH)(De||zn.treeData,Ve.expandedKeys||zn.expandedKeys,An);Ve.flattenNodes=Yi}if(Xe.selectable&&(wn("selectedKeys")?Ve.selectedKeys=(0,de.BT)(Xe.selectedKeys,Xe):!En&&Xe.defaultSelectedKeys&&(Ve.selectedKeys=(0,de.BT)(Xe.defaultSelectedKeys,Xe))),Xe.checkable){var di;if(wn("checkedKeys")?di=(0,de.E6)(Xe.checkedKeys)||{}:!En&&Xe.defaultCheckedKeys?di=(0,de.E6)(Xe.defaultCheckedKeys)||{}:De&&(di=(0,de.E6)(Xe.checkedKeys)||{checkedKeys:zn.checkedKeys,halfCheckedKeys:zn.halfCheckedKeys}),di){var vi=di,br=vi.checkedKeys,ii=br===void 0?[]:br,mi=vi.halfCheckedKeys,Br=mi===void 0?[]:mi;if(!Xe.checkStrictly){var Gr=(0,Oe.S)(ii,!0,Si);ii=Gr.checkedKeys,Br=Gr.halfCheckedKeys}Ve.checkedKeys=ii,Ve.halfCheckedKeys=Br}}return wn("loadedKeys")&&(Ve.loadedKeys=Xe.loadedKeys),Ve}}]),At}(et.Component);(0,ve.Z)(jt,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:pt,allowDrop:function(){return!0},expandAction:!1}),(0,ve.Z)(jt,"TreeNode",re.Z);var Pt=jt,wt=Pt},10225:function(xn,$n,Dt){"use strict";Dt.d($n,{BT:function(){return et},E6:function(){return pt},L0:function(){return ve},OM:function(){return nt},_5:function(){return me},r7:function(){return vt},wA:function(){return Ce},yx:function(){return Ze}});var kt=Dt(74902),le=Dt(71002),ze=Dt(80334),Ye=Dt(67294),Se=Dt(86128),Ot=Dt(35381),qt=Dt(1089),Ee=null;function me(St,Lt){if(!St)return[];var It=St.slice(),Yt=It.indexOf(Lt);return Yt>=0&&It.splice(Yt,1),It}function ve(St,Lt){var It=(St||[]).slice();return It.indexOf(Lt)===-1&&It.push(Lt),It}function Ze(St){return St.split("-")}function Ce(St,Lt){var It=[],Yt=(0,Ot.Z)(Lt,St);function ie(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];re.forEach(function(Qt){var xe=Qt.key,he=Qt.children;It.push(xe),ie(he)})}return ie(Yt.children),It}function nn(St){if(St.parent){var Lt=Ze(St.pos);return Number(Lt[Lt.length-1])===St.parent.children.length-1}return!1}function Tt(St){var Lt=Ze(St.pos);return Number(Lt[Lt.length-1])===0}function nt(St,Lt,It,Yt,ie,re,Qt,xe,he,Le){var Qe,Fe=St.clientX,Gn=St.clientY,Jn=St.target.getBoundingClientRect(),Ke=Jn.top,Dn=Jn.height,$t=(Le==="rtl"?-1:1)*(((ie==null?void 0:ie.x)||0)-Fe),zt=($t-12)/Yt,Gt=he.filter(function(wt){var Ft;return(Ft=xe[wt])===null||Ft===void 0||(Ft=Ft.children)===null||Ft===void 0?void 0:Ft.length}),_e=(0,Ot.Z)(xe,It.eventKey);if(Gn<Ke+Dn/2){var Sn=Qt.findIndex(function(wt){return wt.key===_e.key}),we=Sn<=0?0:Sn-1,rn=Qt[we].key;_e=(0,Ot.Z)(xe,rn)}var an=_e.key,Wn=_e,Ne=_e.key,de=0,Oe=0;if(!Gt.includes(an))for(var dn=0;dn<zt&&nn(_e);dn+=1)_e=_e.parent,Oe+=1;var He=Lt.data,jt=_e.node,Pt=!0;return Tt(_e)&&_e.level===0&&Gn<Ke+Dn/2&&re({dragNode:He,dropNode:jt,dropPosition:-1})&&_e.key===It.eventKey?de=-1:(Wn.children||[]).length&&Gt.includes(Ne)?re({dragNode:He,dropNode:jt,dropPosition:0})?de=0:Pt=!1:Oe===0?zt>-1.5?re({dragNode:He,dropNode:jt,dropPosition:1})?de=1:Pt=!1:re({dragNode:He,dropNode:jt,dropPosition:0})?de=0:re({dragNode:He,dropNode:jt,dropPosition:1})?de=1:Pt=!1:re({dragNode:He,dropNode:jt,dropPosition:1})?de=1:Pt=!1,{dropPosition:de,dropLevelOffset:Oe,dropTargetKey:_e.key,dropTargetPos:_e.pos,dragOverNodeKey:Ne,dropContainerKey:de===0?null:((Qe=_e.parent)===null||Qe===void 0?void 0:Qe.key)||null,dropAllowed:Pt}}function et(St,Lt){if(St){var It=Lt.multiple;return It?St.slice():St.length?[St[0]]:St}}var ht=function(Lt){return Lt};function lt(St,Lt){if(!St)return[];var It=Lt||{},Yt=It.processProps,ie=Yt===void 0?ht:Yt,re=Array.isArray(St)?St:[St];return re.map(function(Qt){var xe=Qt.children,he=_objectWithoutProperties(Qt,Ee),Le=lt(xe,Lt);return React.createElement(TreeNode,_extends({key:he.key},ie(he)),Le)})}function pt(St){if(!St)return null;var Lt;if(Array.isArray(St))Lt={checkedKeys:St,halfCheckedKeys:void 0};else if((0,le.Z)(St)==="object")Lt={checkedKeys:St.checked||void 0,halfCheckedKeys:St.halfChecked||void 0};else return(0,ze.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Lt}function vt(St,Lt){var It=new Set;function Yt(ie){if(!It.has(ie)){var re=(0,Ot.Z)(Lt,ie);if(re){It.add(ie);var Qt=re.parent,xe=re.node;xe.disabled||Qt&&Yt(Qt.key)}}}return(St||[]).forEach(function(ie){Yt(ie)}),(0,kt.Z)(It)}},17341:function(xn,$n,Dt){"use strict";Dt.d($n,{S:function(){return qt}});var kt=Dt(80334),le=Dt(35381);function ze(Ee,me){var ve=new Set;return Ee.forEach(function(Ze){me.has(Ze)||ve.add(Ze)}),ve}function Ye(Ee){var me=Ee||{},ve=me.disabled,Ze=me.disableCheckbox,Ce=me.checkable;return!!(ve||Ze)||Ce===!1}function Se(Ee,me,ve,Ze){for(var Ce=new Set(Ee),nn=new Set,Tt=0;Tt<=ve;Tt+=1){var nt=me.get(Tt)||new Set;nt.forEach(function(pt){var vt=pt.key,St=pt.node,Lt=pt.children,It=Lt===void 0?[]:Lt;Ce.has(vt)&&!Ze(St)&&It.filter(function(Yt){return!Ze(Yt.node)}).forEach(function(Yt){Ce.add(Yt.key)})})}for(var et=new Set,ht=ve;ht>=0;ht-=1){var lt=me.get(ht)||new Set;lt.forEach(function(pt){var vt=pt.parent,St=pt.node;if(!(Ze(St)||!pt.parent||et.has(pt.parent.key))){if(Ze(pt.parent.node)){et.add(vt.key);return}var Lt=!0,It=!1;(vt.children||[]).filter(function(Yt){return!Ze(Yt.node)}).forEach(function(Yt){var ie=Yt.key,re=Ce.has(ie);Lt&&!re&&(Lt=!1),!It&&(re||nn.has(ie))&&(It=!0)}),Lt&&Ce.add(vt.key),It&&nn.add(vt.key),et.add(vt.key)}})}return{checkedKeys:Array.from(Ce),halfCheckedKeys:Array.from(ze(nn,Ce))}}function Ot(Ee,me,ve,Ze,Ce){for(var nn=new Set(Ee),Tt=new Set(me),nt=0;nt<=Ze;nt+=1){var et=ve.get(nt)||new Set;et.forEach(function(vt){var St=vt.key,Lt=vt.node,It=vt.children,Yt=It===void 0?[]:It;!nn.has(St)&&!Tt.has(St)&&!Ce(Lt)&&Yt.filter(function(ie){return!Ce(ie.node)}).forEach(function(ie){nn.delete(ie.key)})})}Tt=new Set;for(var ht=new Set,lt=Ze;lt>=0;lt-=1){var pt=ve.get(lt)||new Set;pt.forEach(function(vt){var St=vt.parent,Lt=vt.node;if(!(Ce(Lt)||!vt.parent||ht.has(vt.parent.key))){if(Ce(vt.parent.node)){ht.add(St.key);return}var It=!0,Yt=!1;(St.children||[]).filter(function(ie){return!Ce(ie.node)}).forEach(function(ie){var re=ie.key,Qt=nn.has(re);It&&!Qt&&(It=!1),!Yt&&(Qt||Tt.has(re))&&(Yt=!0)}),It||nn.delete(St.key),Yt&&Tt.add(St.key),ht.add(St.key)}})}return{checkedKeys:Array.from(nn),halfCheckedKeys:Array.from(ze(Tt,nn))}}function qt(Ee,me,ve,Ze){var Ce=[],nn;Ze?nn=Ze:nn=Ye;var Tt=new Set(Ee.filter(function(lt){var pt=!!(0,le.Z)(ve,lt);return pt||Ce.push(lt),pt})),nt=new Map,et=0;Object.keys(ve).forEach(function(lt){var pt=ve[lt],vt=pt.level,St=nt.get(vt);St||(St=new Set,nt.set(vt,St)),St.add(pt),et=Math.max(et,vt)}),(0,kt.ZP)(!Ce.length,"Tree missing follow keys: ".concat(Ce.slice(0,100).map(function(lt){return"'".concat(lt,"'")}).join(", ")));var ht;return me===!0?ht=Se(Tt,nt,et,nn):ht=Ot(Tt,me.halfCheckedKeys,nt,et,nn),ht}},35381:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return kt}});function kt(le,ze){return le[ze]}},1089:function(xn,$n,Dt){"use strict";Dt.d($n,{F:function(){return vt},H8:function(){return pt},I8:function(){return lt},km:function(){return Ce},oH:function(){return et},w$:function(){return nn},zn:function(){return nt}});var kt=Dt(71002),le=Dt(74902),ze=Dt(1413),Ye=Dt(45987),Se=Dt(50344),Ot=Dt(98423),qt=Dt(80334),Ee=Dt(35381),me=["children"];function ve(St,Lt){return"".concat(St,"-").concat(Lt)}function Ze(St){return St&&St.type&&St.type.isTreeNode}function Ce(St,Lt){return St!=null?St:Lt}function nn(St){var Lt=St||{},It=Lt.title,Yt=Lt._title,ie=Lt.key,re=Lt.children,Qt=It||"title";return{title:Qt,_title:Yt||[Qt],key:ie||"key",children:re||"children"}}function Tt(St,Lt){var It=new Map;function Yt(ie){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ie||[]).forEach(function(Qt){var xe=Qt[Lt.key],he=Qt[Lt.children];warning(xe!=null,"Tree node must have a certain key: [".concat(re).concat(xe,"]"));var Le=String(xe);warning(!It.has(Le)||xe===null||xe===void 0,"Same 'key' exist in the Tree: ".concat(Le)),It.set(Le,!0),Yt(he,"".concat(re).concat(Le," > "))})}Yt(St)}function nt(St){function Lt(It){var Yt=(0,Se.Z)(It);return Yt.map(function(ie){if(!Ze(ie))return(0,qt.ZP)(!ie,"Tree/TreeNode can only accept TreeNode as children."),null;var re=ie.key,Qt=ie.props,xe=Qt.children,he=(0,Ye.Z)(Qt,me),Le=(0,ze.Z)({key:re},he),Qe=Lt(xe);return Qe.length&&(Le.children=Qe),Le}).filter(function(ie){return ie})}return Lt(St)}function et(St,Lt,It){var Yt=nn(It),ie=Yt._title,re=Yt.key,Qt=Yt.children,xe=new Set(Lt===!0?[]:Lt),he=[];function Le(Qe){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Qe.map(function(Gn,Jn){for(var Ke=ve(Fe?Fe.pos:"0",Jn),Dn=Ce(Gn[re],Ke),$t,zt=0;zt<ie.length;zt+=1){var Gt=ie[zt];if(Gn[Gt]!==void 0){$t=Gn[Gt];break}}var _e=Object.assign((0,Ot.Z)(Gn,[].concat((0,le.Z)(ie),[re,Qt])),{title:$t,key:Dn,parent:Fe,pos:Ke,children:null,data:Gn,isStart:[].concat((0,le.Z)(Fe?Fe.isStart:[]),[Jn===0]),isEnd:[].concat((0,le.Z)(Fe?Fe.isEnd:[]),[Jn===Qe.length-1])});return he.push(_e),Lt===!0||xe.has(Dn)?_e.children=Le(Gn[Qt]||[],_e):_e.children=[],_e})}return Le(St),he}function ht(St,Lt,It){var Yt={};(0,kt.Z)(It)==="object"?Yt=It:Yt={externalGetKey:It},Yt=Yt||{};var ie=Yt,re=ie.childrenPropName,Qt=ie.externalGetKey,xe=ie.fieldNames,he=nn(xe),Le=he.key,Qe=he.children,Fe=re||Qe,Gn;Qt?typeof Qt=="string"?Gn=function(Dn){return Dn[Qt]}:typeof Qt=="function"&&(Gn=function(Dn){return Qt(Dn)}):Gn=function(Dn,$t){return Ce(Dn[Le],$t)};function Jn(Ke,Dn,$t,zt){var Gt=Ke?Ke[Fe]:St,_e=Ke?ve($t.pos,Dn):"0",Sn=Ke?[].concat((0,le.Z)(zt),[Ke]):[];if(Ke){var we=Gn(Ke,_e),rn={node:Ke,index:Dn,pos:_e,key:we,parentPos:$t.node?$t.pos:null,level:$t.level+1,nodes:Sn};Lt(rn)}Gt&&Gt.forEach(function(an,Wn){Jn(an,Wn,{node:Ke,pos:_e,level:$t?$t.level+1:-1},Sn)})}Jn(null)}function lt(St){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=Lt.initWrapper,Yt=Lt.processEntity,ie=Lt.onProcessFinished,re=Lt.externalGetKey,Qt=Lt.childrenPropName,xe=Lt.fieldNames,he=arguments.length>2?arguments[2]:void 0,Le=re||he,Qe={},Fe={},Gn={posEntities:Qe,keyEntities:Fe};return It&&(Gn=It(Gn)||Gn),ht(St,function(Jn){var Ke=Jn.node,Dn=Jn.index,$t=Jn.pos,zt=Jn.key,Gt=Jn.parentPos,_e=Jn.level,Sn=Jn.nodes,we={node:Ke,nodes:Sn,index:Dn,key:zt,pos:$t,level:_e},rn=Ce(zt,$t);Qe[$t]=we,Fe[rn]=we,we.parent=Qe[Gt],we.parent&&(we.parent.children=we.parent.children||[],we.parent.children.push(we)),Yt&&Yt(we,Gn)},{externalGetKey:Le,childrenPropName:Qt,fieldNames:xe}),ie&&ie(Gn),Gn}function pt(St,Lt){var It=Lt.expandedKeys,Yt=Lt.selectedKeys,ie=Lt.loadedKeys,re=Lt.loadingKeys,Qt=Lt.checkedKeys,xe=Lt.halfCheckedKeys,he=Lt.dragOverNodeKey,Le=Lt.dropPosition,Qe=Lt.keyEntities,Fe=(0,Ee.Z)(Qe,St),Gn={eventKey:St,expanded:It.indexOf(St)!==-1,selected:Yt.indexOf(St)!==-1,loaded:ie.indexOf(St)!==-1,loading:re.indexOf(St)!==-1,checked:Qt.indexOf(St)!==-1,halfChecked:xe.indexOf(St)!==-1,pos:String(Fe?Fe.pos:""),dragOver:he===St&&Le===0,dragOverGapTop:he===St&&Le===-1,dragOverGapBottom:he===St&&Le===1};return Gn}function vt(St){var Lt=St.data,It=St.expanded,Yt=St.selected,ie=St.checked,re=St.loaded,Qt=St.loading,xe=St.halfChecked,he=St.dragOver,Le=St.dragOverGapTop,Qe=St.dragOverGapBottom,Fe=St.pos,Gn=St.active,Jn=St.eventKey,Ke=(0,ze.Z)((0,ze.Z)({},Lt),{},{expanded:It,selected:Yt,checked:ie,loaded:re,loading:Qt,halfChecked:xe,dragOver:he,dragOverGapTop:Le,dragOverGapBottom:Qe,pos:Fe,active:Gn,key:Jn});return"props"in Ke||Object.defineProperty(Ke,"props",{get:function(){return(0,qt.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),St}}),Ke}},36356:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return Jn}});var kt=Dt(87462),le=Dt(15671),ze=Dt(43144),Ye=Dt(97326),Se=Dt(60136),Ot=Dt(29388),qt=Dt(4942),Ee=Dt(67294),me=Dt(1413),ve=Dt(45987),Ze=Dt(71002),Ce=Dt(74165),nn=Dt(15861),Tt=Dt(74902),nt=Dt(94184),et=Dt.n(nt),ht=Dt(64217),lt=Dt(80334),pt=function(Ke,Dn){if(Ke&&Dn){var $t=Array.isArray(Dn)?Dn:Dn.split(","),zt=Ke.name||"",Gt=Ke.type||"",_e=Gt.replace(/\/.*$/,"");return $t.some(function(Sn){var we=Sn.trim();if(/^\*(\/\*)?$/.test(Sn))return!0;if(we.charAt(0)==="."){var rn=zt.toLowerCase(),an=we.toLowerCase(),Wn=[an];return(an===".jpg"||an===".jpeg")&&(Wn=[".jpg",".jpeg"]),Wn.some(function(Ne){return rn.endsWith(Ne)})}return/\/\*$/.test(we)?_e===we.replace(/\/.*$/,""):Gt===we?!0:/^\w+$/.test(we)?((0,lt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(we,"'.Skip for check.")),!0):!1})}return!0};function vt(Ke,Dn){var $t="cannot ".concat(Ke.method," ").concat(Ke.action," ").concat(Dn.status,"'"),zt=new Error($t);return zt.status=Dn.status,zt.method=Ke.method,zt.url=Ke.action,zt}function St(Ke){var Dn=Ke.responseText||Ke.response;if(!Dn)return Dn;try{return JSON.parse(Dn)}catch($t){return Dn}}function Lt(Ke){var Dn=new XMLHttpRequest;Ke.onProgress&&Dn.upload&&(Dn.upload.onprogress=function(_e){_e.total>0&&(_e.percent=_e.loaded/_e.total*100),Ke.onProgress(_e)});var $t=new FormData;Ke.data&&Object.keys(Ke.data).forEach(function(Gt){var _e=Ke.data[Gt];if(Array.isArray(_e)){_e.forEach(function(Sn){$t.append("".concat(Gt,"[]"),Sn)});return}$t.append(Gt,_e)}),Ke.file instanceof Blob?$t.append(Ke.filename,Ke.file,Ke.file.name):$t.append(Ke.filename,Ke.file),Dn.onerror=function(_e){Ke.onError(_e)},Dn.onload=function(){return Dn.status<200||Dn.status>=300?Ke.onError(vt(Ke,Dn),St(Dn)):Ke.onSuccess(St(Dn),Dn)},Dn.open(Ke.method,Ke.action,!0),Ke.withCredentials&&"withCredentials"in Dn&&(Dn.withCredentials=!0);var zt=Ke.headers||{};return zt["X-Requested-With"]!==null&&Dn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(zt).forEach(function(Gt){zt[Gt]!==null&&Dn.setRequestHeader(Gt,zt[Gt])}),Dn.send($t),{abort:function(){Dn.abort()}}}var It=function(){var Ke=(0,nn.Z)((0,Ce.Z)().mark(function Dn($t,zt){var Gt,_e,Sn,we,rn,an,Wn,Ne;return(0,Ce.Z)().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:an=function(){return an=(0,nn.Z)((0,Ce.Z)().mark(function He(jt){return(0,Ce.Z)().wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.abrupt("return",new Promise(function(Ft){jt.file(function(Wt){zt(Wt)?(jt.fullPath&&!Wt.webkitRelativePath&&(Object.defineProperties(Wt,{webkitRelativePath:{writable:!0}}),Wt.webkitRelativePath=jt.fullPath.replace(/^\//,""),Object.defineProperties(Wt,{webkitRelativePath:{writable:!1}})),Ft(Wt)):Ft(null)})}));case 1:case"end":return wt.stop()}},He)})),an.apply(this,arguments)},rn=function(He){return an.apply(this,arguments)},we=function(){return we=(0,nn.Z)((0,Ce.Z)().mark(function He(jt){var Pt,wt,Ft,Wt,At;return(0,Ce.Z)().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:Pt=jt.createReader(),wt=[];case 2:return Xe.next=5,new Promise(function(zn){Pt.readEntries(zn,function(){return zn([])})});case 5:if(Ft=Xe.sent,Wt=Ft.length,Wt){Xe.next=9;break}return Xe.abrupt("break",12);case 9:for(At=0;At<Wt;At++)wt.push(Ft[At]);Xe.next=2;break;case 12:return Xe.abrupt("return",wt);case 13:case"end":return Xe.stop()}},He)})),we.apply(this,arguments)},Sn=function(He){return we.apply(this,arguments)},Gt=[],_e=[],$t.forEach(function(dn){return _e.push(dn.webkitGetAsEntry())}),Wn=function(){var dn=(0,nn.Z)((0,Ce.Z)().mark(function He(jt,Pt){var wt,Ft;return(0,Ce.Z)().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(jt){At.next=2;break}return At.abrupt("return");case 2:if(jt.path=Pt||"",!jt.isFile){At.next=10;break}return At.next=6,rn(jt);case 6:wt=At.sent,wt&&Gt.push(wt),At.next=15;break;case 10:if(!jt.isDirectory){At.next=15;break}return At.next=13,Sn(jt);case 13:Ft=At.sent,_e.push.apply(_e,(0,Tt.Z)(Ft));case 15:case"end":return At.stop()}},He)}));return function(jt,Pt){return dn.apply(this,arguments)}}(),Ne=0;case 9:if(!(Ne<_e.length)){Oe.next=15;break}return Oe.next=12,Wn(_e[Ne]);case 12:Ne++,Oe.next=9;break;case 15:return Oe.abrupt("return",Gt);case 16:case"end":return Oe.stop()}},Dn)}));return function($t,zt){return Ke.apply(this,arguments)}}(),Yt=It,ie=+new Date,re=0;function Qt(){return"rc-upload-".concat(ie,"-").concat(++re)}var xe=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],he=function(Ke){(0,Se.Z)($t,Ke);var Dn=(0,Ot.Z)($t);function $t(){var zt;(0,le.Z)(this,$t);for(var Gt=arguments.length,_e=new Array(Gt),Sn=0;Sn<Gt;Sn++)_e[Sn]=arguments[Sn];return zt=Dn.call.apply(Dn,[this].concat(_e)),(0,qt.Z)((0,Ye.Z)(zt),"state",{uid:Qt()}),(0,qt.Z)((0,Ye.Z)(zt),"reqs",{}),(0,qt.Z)((0,Ye.Z)(zt),"fileInput",void 0),(0,qt.Z)((0,Ye.Z)(zt),"_isMounted",void 0),(0,qt.Z)((0,Ye.Z)(zt),"onChange",function(we){var rn=zt.props,an=rn.accept,Wn=rn.directory,Ne=we.target.files,de=(0,Tt.Z)(Ne).filter(function(Oe){return!Wn||pt(Oe,an)});zt.uploadFiles(de),zt.reset()}),(0,qt.Z)((0,Ye.Z)(zt),"onClick",function(we){var rn=zt.fileInput;if(rn){var an=we.target,Wn=zt.props.onClick;if(an&&an.tagName==="BUTTON"){var Ne=rn.parentNode;Ne.focus(),an.blur()}rn.click(),Wn&&Wn(we)}}),(0,qt.Z)((0,Ye.Z)(zt),"onKeyDown",function(we){we.key==="Enter"&&zt.onClick(we)}),(0,qt.Z)((0,Ye.Z)(zt),"onFileDrop",function(){var we=(0,nn.Z)((0,Ce.Z)().mark(function rn(an){var Wn,Ne,de;return(0,Ce.Z)().wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:if(Wn=zt.props.multiple,an.preventDefault(),an.type!=="dragover"){dn.next=4;break}return dn.abrupt("return");case 4:if(!zt.props.directory){dn.next=11;break}return dn.next=7,Yt(Array.prototype.slice.call(an.dataTransfer.items),function(He){return pt(He,zt.props.accept)});case 7:Ne=dn.sent,zt.uploadFiles(Ne),dn.next=14;break;case 11:de=(0,Tt.Z)(an.dataTransfer.files).filter(function(He){return pt(He,zt.props.accept)}),Wn===!1&&(de=de.slice(0,1)),zt.uploadFiles(de);case 14:case"end":return dn.stop()}},rn)}));return function(rn){return we.apply(this,arguments)}}()),(0,qt.Z)((0,Ye.Z)(zt),"uploadFiles",function(we){var rn=(0,Tt.Z)(we),an=rn.map(function(Wn){return Wn.uid=Qt(),zt.processFile(Wn,rn)});Promise.all(an).then(function(Wn){var Ne=zt.props.onBatchStart;Ne==null||Ne(Wn.map(function(de){var Oe=de.origin,dn=de.parsedFile;return{file:Oe,parsedFile:dn}})),Wn.filter(function(de){return de.parsedFile!==null}).forEach(function(de){zt.post(de)})})}),(0,qt.Z)((0,Ye.Z)(zt),"processFile",function(){var we=(0,nn.Z)((0,Ce.Z)().mark(function rn(an,Wn){var Ne,de,Oe,dn,He,jt,Pt,wt,Ft;return(0,Ce.Z)().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(Ne=zt.props.beforeUpload,de=an,!Ne){At.next=14;break}return At.prev=3,At.next=6,Ne(an,Wn);case 6:de=At.sent,At.next=12;break;case 9:At.prev=9,At.t0=At.catch(3),de=!1;case 12:if(de!==!1){At.next=14;break}return At.abrupt("return",{origin:an,parsedFile:null,action:null,data:null});case 14:if(Oe=zt.props.action,typeof Oe!="function"){At.next=21;break}return At.next=18,Oe(an);case 18:dn=At.sent,At.next=22;break;case 21:dn=Oe;case 22:if(He=zt.props.data,typeof He!="function"){At.next=29;break}return At.next=26,He(an);case 26:jt=At.sent,At.next=30;break;case 29:jt=He;case 30:return Pt=((0,Ze.Z)(de)==="object"||typeof de=="string")&&de?de:an,Pt instanceof File?wt=Pt:wt=new File([Pt],an.name,{type:an.type}),Ft=wt,Ft.uid=an.uid,At.abrupt("return",{origin:an,data:jt,parsedFile:Ft,action:dn});case 35:case"end":return At.stop()}},rn,null,[[3,9]])}));return function(rn,an){return we.apply(this,arguments)}}()),(0,qt.Z)((0,Ye.Z)(zt),"saveFileInput",function(we){zt.fileInput=we}),zt}return(0,ze.Z)($t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Gt){var _e=this,Sn=Gt.data,we=Gt.origin,rn=Gt.action,an=Gt.parsedFile;if(this._isMounted){var Wn=this.props,Ne=Wn.onStart,de=Wn.customRequest,Oe=Wn.name,dn=Wn.headers,He=Wn.withCredentials,jt=Wn.method,Pt=we.uid,wt=de||Lt,Ft={action:rn,filename:Oe,data:Sn,file:an,headers:dn,withCredentials:He,method:jt||"post",onProgress:function(At){var Jt=_e.props.onProgress;Jt==null||Jt(At,an)},onSuccess:function(At,Jt){var Xe=_e.props.onSuccess;Xe==null||Xe(At,an,Jt),delete _e.reqs[Pt]},onError:function(At,Jt){var Xe=_e.props.onError;Xe==null||Xe(At,Jt,an),delete _e.reqs[Pt]}};Ne(we),this.reqs[Pt]=wt(Ft)}}},{key:"reset",value:function(){this.setState({uid:Qt()})}},{key:"abort",value:function(Gt){var _e=this.reqs;if(Gt){var Sn=Gt.uid?Gt.uid:Gt;_e[Sn]&&_e[Sn].abort&&_e[Sn].abort(),delete _e[Sn]}else Object.keys(_e).forEach(function(we){_e[we]&&_e[we].abort&&_e[we].abort(),delete _e[we]})}},{key:"render",value:function(){var Gt=this.props,_e=Gt.component,Sn=Gt.prefixCls,we=Gt.className,rn=Gt.classNames,an=rn===void 0?{}:rn,Wn=Gt.disabled,Ne=Gt.id,de=Gt.name,Oe=Gt.style,dn=Gt.styles,He=dn===void 0?{}:dn,jt=Gt.multiple,Pt=Gt.accept,wt=Gt.capture,Ft=Gt.children,Wt=Gt.directory,At=Gt.openFileDialogOnClick,Jt=Gt.onMouseEnter,Xe=Gt.onMouseLeave,zn=Gt.hasControlInside,En=(0,ve.Z)(Gt,xe),Ve=et()((0,qt.Z)((0,qt.Z)((0,qt.Z)({},Sn,!0),"".concat(Sn,"-disabled"),Wn),we,we)),wn=Wt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},De=Wn?{}:{onClick:At?this.onClick:function(){},onKeyDown:At?this.onKeyDown:function(){},onMouseEnter:Jt,onMouseLeave:Xe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:zn?void 0:"0"};return Ee.createElement(_e,(0,kt.Z)({},De,{className:Ve,role:zn?void 0:"button",style:Oe}),Ee.createElement("input",(0,kt.Z)({},(0,ht.Z)(En,{aria:!0,data:!0}),{id:Ne,name:de,disabled:Wn,type:"file",ref:this.saveFileInput,onClick:function(Hn){return Hn.stopPropagation()},key:this.state.uid,style:(0,me.Z)({display:"none"},He.input),className:an.input,accept:Pt},wn,{multiple:jt,onChange:this.onChange},wt!=null?{capture:wt}:{})),Ft)}}]),$t}(Ee.Component),Le=he;function Qe(){}var Fe=function(Ke){(0,Se.Z)($t,Ke);var Dn=(0,Ot.Z)($t);function $t(){var zt;(0,le.Z)(this,$t);for(var Gt=arguments.length,_e=new Array(Gt),Sn=0;Sn<Gt;Sn++)_e[Sn]=arguments[Sn];return zt=Dn.call.apply(Dn,[this].concat(_e)),(0,qt.Z)((0,Ye.Z)(zt),"uploader",void 0),(0,qt.Z)((0,Ye.Z)(zt),"saveUploader",function(we){zt.uploader=we}),zt}return(0,ze.Z)($t,[{key:"abort",value:function(Gt){this.uploader.abort(Gt)}},{key:"render",value:function(){return Ee.createElement(Le,(0,kt.Z)({},this.props,{ref:this.saveUploader}))}}]),$t}(Ee.Component);(0,qt.Z)(Fe,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Qe,onError:Qe,onSuccess:Qe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Gn=Fe,Jn=Gn},73299:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return mr}});var kt=Dt(87462),le=Dt(1413),ze=Dt(71002),Ye=Dt(97685),Se=Dt(4942),Ot=Dt(45987),qt=Dt(67294),Ee=Dt(73935),me=Dt(94184),ve=Dt.n(me),Ze=Dt(48555),Ce=qt.forwardRef(function(cn,xt){var In=cn.height,gn=cn.offsetY,Fn=cn.offsetX,Nn=cn.children,Rn=cn.prefixCls,ri=cn.onInnerResize,Ii=cn.innerProps,Ie=cn.rtl,Re=cn.extra,se={},je={display:"flex",flexDirection:"column"};if(gn!==void 0){var ti;se={height:In,position:"relative",overflow:"hidden"},je=(0,le.Z)((0,le.Z)({},je),{},(ti={transform:"translateY(".concat(gn,"px)")},(0,Se.Z)(ti,Ie?"marginRight":"marginLeft",-Fn),(0,Se.Z)(ti,"position","absolute"),(0,Se.Z)(ti,"left",0),(0,Se.Z)(ti,"right",0),(0,Se.Z)(ti,"top",0),ti))}return qt.createElement("div",{style:se},qt.createElement(Ze.Z,{onResize:function(Zn){var Me=Zn.offsetHeight;Me&&ri&&ri()}},qt.createElement("div",(0,kt.Z)({style:je,className:ve()((0,Se.Z)({},"".concat(Rn,"-holder-inner"),Rn)),ref:xt},Ii),Nn,Re)))});Ce.displayName="Filler";var nn=Ce,Tt=function(xt){return+setTimeout(xt,16)},nt=function(xt){return clearTimeout(xt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Tt=function(xt){return window.requestAnimationFrame(xt)},nt=function(xt){return window.cancelAnimationFrame(xt)});var et=0,ht=new Map;function lt(cn){ht.delete(cn)}var pt=function(xt){var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;et+=1;var gn=et;function Fn(Nn){if(Nn===0)lt(gn),xt();else{var Rn=Tt(function(){Fn(Nn-1)});ht.set(gn,Rn)}}return Fn(In),gn};pt.cancel=function(cn){var xt=ht.get(cn);return lt(xt),nt(xt)};var vt=pt;function St(cn,xt){var In="touches"in cn?cn.touches[0]:cn;return In[xt?"pageX":"pageY"]}var Lt=qt.forwardRef(function(cn,xt){var In,gn=cn.prefixCls,Fn=cn.rtl,Nn=cn.scrollOffset,Rn=cn.scrollRange,ri=cn.onStartMove,Ii=cn.onStopMove,Ie=cn.onScroll,Re=cn.horizontal,se=cn.spinSize,je=cn.containerSize,ti=cn.style,_n=cn.thumbStyle,Zn=qt.useState(!1),Me=(0,Ye.Z)(Zn,2),un=Me[0],xi=Me[1],Di=qt.useState(null),Cn=(0,Ye.Z)(Di,2),be=Cn[0],fi=Cn[1],Wi=qt.useState(null),Er=(0,Ye.Z)(Wi,2),fn=Er[0],bi=Er[1],Mr=!Fn,na=qt.useRef(),Ao=qt.useRef(),Fi=qt.useState(!1),Ai=(0,Ye.Z)(Fi,2),zi=Ai[0],Jr=Ai[1],bo=qt.useRef(),Yn=function(){clearTimeout(bo.current),Jr(!0),bo.current=setTimeout(function(){Jr(!1)},3e3)},tr=Rn-je||0,qs=je-se||0,ns=tr>0,Wa=qt.useMemo(function(){if(Nn===0||tr===0)return 0;var io=Nn/tr;return io*qs},[Nn,tr,qs]),Te=function(Zo){Zo.stopPropagation(),Zo.preventDefault()},cr=qt.useRef({top:Wa,dragging:un,pageY:be,startTop:fn});cr.current={top:Wa,dragging:un,pageY:be,startTop:fn};var co=function(Zo){xi(!0),fi(St(Zo,Re)),bi(cr.current.top),ri(),Zo.stopPropagation(),Zo.preventDefault()};qt.useEffect(function(){var io=function(sn){sn.preventDefault()},Zo=na.current,vn=Ao.current;return Zo.addEventListener("touchstart",io),vn.addEventListener("touchstart",co),function(){Zo.removeEventListener("touchstart",io),vn.removeEventListener("touchstart",co)}},[]);var _i=qt.useRef();_i.current=tr;var fa=qt.useRef();fa.current=qs,qt.useEffect(function(){if(un){var io,Zo=function(sn){var lo=cr.current,bs=lo.dragging,xa=lo.pageY,fl=lo.startTop;if(vt.cancel(io),bs){var va=St(sn,Re)-xa,yo=fl;!Mr&&Re?yo-=va:yo+=va;var ya=_i.current,Ys=fa.current,$o=Ys?yo/Ys:0,ci=Math.ceil($o*ya);ci=Math.max(ci,0),ci=Math.min(ci,ya),io=vt(function(){Ie(ci,Re)})}},vn=function(){xi(!1),Ii()};return window.addEventListener("mousemove",Zo),window.addEventListener("touchmove",Zo),window.addEventListener("mouseup",vn),window.addEventListener("touchend",vn),function(){window.removeEventListener("mousemove",Zo),window.removeEventListener("touchmove",Zo),window.removeEventListener("mouseup",vn),window.removeEventListener("touchend",vn),vt.cancel(io)}}},[un]),qt.useEffect(function(){Yn()},[Nn]),qt.useImperativeHandle(xt,function(){return{delayHidden:Yn}});var fo="".concat(gn,"-scrollbar"),Co={position:"absolute",visibility:zi&&ns?null:"hidden"},Qr={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Re?(Co.height=8,Co.left=0,Co.right=0,Co.bottom=0,Qr.height="100%",Qr.width=se,Mr?Qr.left=Wa:Qr.right=Wa):(Co.width=8,Co.top=0,Co.bottom=0,Mr?Co.right=0:Co.left=0,Qr.width="100%",Qr.height=se,Qr.top=Wa),qt.createElement("div",{ref:na,className:ve()(fo,(In={},(0,Se.Z)(In,"".concat(fo,"-horizontal"),Re),(0,Se.Z)(In,"".concat(fo,"-vertical"),!Re),(0,Se.Z)(In,"".concat(fo,"-visible"),zi),In)),style:(0,le.Z)((0,le.Z)({},Co),ti),onMouseDown:Te,onMouseMove:Yn},qt.createElement("div",{ref:Ao,className:ve()("".concat(fo,"-thumb"),(0,Se.Z)({},"".concat(fo,"-thumb-moving"),un)),style:(0,le.Z)((0,le.Z)({},Qr),_n),onMouseDown:co}))}),It=Lt;function Yt(cn){var xt=cn.children,In=cn.setRef,gn=qt.useCallback(function(Fn){In(Fn)},[]);return qt.cloneElement(xt,{ref:gn})}function ie(cn,xt,In,gn,Fn,Nn,Rn){var ri=Rn.getKey;return cn.slice(xt,In+1).map(function(Ii,Ie){var Re=xt+Ie,se=Nn(Ii,Re,{style:{width:gn}}),je=ri(Ii);return qt.createElement(Yt,{key:je,setRef:function(_n){return Fn(Ii,_n)}},se)})}function re(cn){return cn instanceof HTMLElement||cn instanceof SVGElement}function Qt(cn){return re(cn)?cn:cn instanceof qt.Component?Ee.findDOMNode(cn):null}var xe=Dt(15671),he=Dt(43144),Le=function(){function cn(){(0,xe.Z)(this,cn),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,he.Z)(cn,[{key:"set",value:function(In,gn){this.maps[In]=gn,this.id+=1}},{key:"get",value:function(In){return this.maps[In]}}]),cn}(),Qe=Le;function Fe(cn,xt,In){var gn=qt.useState(0),Fn=(0,Ye.Z)(gn,2),Nn=Fn[0],Rn=Fn[1],ri=(0,qt.useRef)(new Map),Ii=(0,qt.useRef)(new Qe),Ie=(0,qt.useRef)();function Re(){vt.cancel(Ie.current)}function se(){var ti=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Re();var _n=function(){ri.current.forEach(function(Me,un){if(Me&&Me.offsetParent){var xi=Qt(Me),Di=xi.offsetHeight;Ii.current.get(un)!==Di&&Ii.current.set(un,xi.offsetHeight)}}),Rn(function(Me){return Me+1})};ti?_n():Ie.current=vt(_n)}function je(ti,_n){var Zn=cn(ti),Me=ri.current.get(Zn);_n?(ri.current.set(Zn,_n),se()):ri.current.delete(Zn),!Me!=!_n&&(_n?xt==null||xt(ti):In==null||In(ti))}return(0,qt.useEffect)(function(){return Re},[]),[je,se,Ii.current,Nn]}function Gn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Jn=Gn()?qt.useLayoutEffect:qt.useEffect,Ke=function(xt,In){var gn=qt.useRef(!0);Jn(function(){return xt(gn.current)},In),Jn(function(){return gn.current=!1,function(){gn.current=!0}},[])},Dn=function(xt,In){Ke(function(gn){if(!gn)return xt()},In)},$t=Ke;function zt(cn){var xt=qt.useRef();xt.current=cn;var In=qt.useCallback(function(){for(var gn,Fn=arguments.length,Nn=new Array(Fn),Rn=0;Rn<Fn;Rn++)Nn[Rn]=arguments[Rn];return(gn=xt.current)===null||gn===void 0?void 0:gn.call.apply(gn,[xt].concat(Nn))},[]);return In}function Gt(cn){var xt=React.useRef(!1),In=React.useState(cn),gn=_slicedToArray(In,2),Fn=gn[0],Nn=gn[1];React.useEffect(function(){return xt.current=!1,function(){xt.current=!0}},[]);function Rn(ri,Ii){Ii&&xt.current||Nn(ri)}return[Fn,Rn]}function _e(cn){return cn!==void 0}function Sn(cn,xt){var In=xt||{},gn=In.defaultValue,Fn=In.value,Nn=In.onChange,Rn=In.postState,ri=useState(function(){return _e(Fn)?Fn:_e(gn)?typeof gn=="function"?gn():gn:typeof cn=="function"?cn():cn}),Ii=_slicedToArray(ri,2),Ie=Ii[0],Re=Ii[1],se=Fn!==void 0?Fn:Ie,je=Rn?Rn(se):se,ti=useEvent(Nn),_n=useState([se]),Zn=_slicedToArray(_n,2),Me=Zn[0],un=Zn[1];useLayoutUpdateEffect(function(){var Di=Me[0];Ie!==Di&&ti(Ie,Di)},[Me]),useLayoutUpdateEffect(function(){_e(Fn)||Re(Fn)},[Fn]);var xi=useEvent(function(Di,Cn){Re(Di,Cn),un([se],Cn)});return[je,xi]}var we=Dt(31461);function rn(cn,xt,In){var gn=React.useRef({});return(!("value"in gn.current)||In(gn.current.condition,xt))&&(gn.current.value=cn(),gn.current.condition=xt),gn.current.value}function an(cn,xt){typeof cn=="function"?cn(xt):_typeof(cn)==="object"&&cn&&"current"in cn&&(cn.current=xt)}function Wn(){for(var cn=arguments.length,xt=new Array(cn),In=0;In<cn;In++)xt[In]=arguments[In];var gn=xt.filter(function(Fn){return Fn});return gn.length<=1?gn[0]:function(Fn){xt.forEach(function(Nn){an(Nn,Fn)})}}function Ne(){for(var cn=arguments.length,xt=new Array(cn),In=0;In<cn;In++)xt[In]=arguments[In];return useMemo(function(){return Wn.apply(void 0,xt)},xt,function(gn,Fn){return gn.length!==Fn.length||gn.every(function(Nn,Rn){return Nn!==Fn[Rn]})})}function de(cn){var xt,In,gn=isMemo(cn)?cn.type.type:cn.type;return!(typeof gn=="function"&&!((xt=gn.prototype)!==null&&xt!==void 0&&xt.render)||typeof cn=="function"&&!((In=cn.prototype)!==null&&In!==void 0&&In.render))}function Oe(cn){return!isValidElement(cn)||isFragment(cn)?!1:de(cn)}function dn(cn,xt,In,gn){if(!xt.length)return In;var Fn=_toArray(xt),Nn=Fn[0],Rn=Fn.slice(1),ri;return!cn&&typeof Nn=="number"?ri=[]:Array.isArray(cn)?ri=_toConsumableArray(cn):ri=_objectSpread({},cn),gn&&In===void 0&&Rn.length===1?delete ri[Nn][Rn[0]]:ri[Nn]=dn(ri[Nn],Rn,In,gn),ri}function He(cn,xt,In){var gn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return xt.length&&gn&&In===void 0&&!get(cn,xt.slice(0,-1))?cn:dn(cn,xt,In,gn)}function jt(cn){return _typeof(cn)==="object"&&cn!==null&&Object.getPrototypeOf(cn)===Object.prototype}function Pt(cn){return Array.isArray(cn)?[]:{}}var wt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Ft(){for(var cn=arguments.length,xt=new Array(cn),In=0;In<cn;In++)xt[In]=arguments[In];var gn=Pt(xt[0]);return xt.forEach(function(Fn){function Nn(Rn,ri){var Ii=new Set(ri),Ie=get(Fn,Rn),Re=Array.isArray(Ie);if(Re||jt(Ie)){if(!Ii.has(Ie)){Ii.add(Ie);var se=get(gn,Rn);Re?gn=He(gn,Rn,[]):(!se||_typeof(se)!=="object")&&(gn=He(gn,Rn,Pt(Ie))),wt(Ie).forEach(function(je){Nn([].concat(_toConsumableArray(Rn),[je]),Ii)})}}else gn=He(gn,Rn,Ie)}Nn([])}),gn}var Wt={},At=[],Jt=function(xt){At.push(xt)};function Xe(cn,xt){if(0)var In}function zn(cn,xt){if(0)var In}function En(){Wt={}}function Ve(cn,xt,In){!xt&&!Wt[In]&&(cn(!1,In),Wt[In]=!0)}function wn(cn,xt){Ve(Xe,cn,xt)}function De(cn,xt){Ve(zn,cn,xt)}wn.preMessage=Jt,wn.resetWarned=En,wn.noteOnce=De;var An=null,Hn=10;function Si(cn,xt,In,gn,Fn,Nn,Rn,ri){var Ii=qt.useRef(),Ie=qt.useState(null),Re=(0,Ye.Z)(Ie,2),se=Re[0],je=Re[1];return $t(function(){if(se&&se.times<Hn){if(!cn.current){je(function(Yn){return(0,le.Z)({},Yn)});return}Nn();var ti=se.targetAlign,_n=se.originAlign,Zn=se.index,Me=se.offset,un=cn.current.clientHeight,xi=!1,Di=ti,Cn=null;if(un){for(var be=ti||_n,fi=0,Wi=0,Er=0,fn=Math.min(xt.length-1,Zn),bi=0;bi<=fn;bi+=1){var Mr=Fn(xt[bi]);Wi=fi;var na=In.get(Mr);Er=Wi+(na===void 0?gn:na),fi=Er}for(var Ao=be==="top"?Me:un-Me,Fi=fn;Fi>=0;Fi-=1){var Ai=Fn(xt[Fi]),zi=In.get(Ai);if(zi===void 0){xi=!0;break}if(Ao-=zi,Ao<=0)break}switch(be){case"top":Cn=Wi-Me;break;case"bottom":Cn=Er-un+Me;break;default:{var Jr=cn.current.scrollTop,bo=Jr+un;Wi<Jr?Di="top":Er>bo&&(Di="bottom")}}Cn!==null&&Rn(Cn),Cn!==se.lastTop&&(xi=!0)}xi&&je(function(Yn){return(0,le.Z)((0,le.Z)({},Yn),{},{times:Yn.times+1,targetAlign:Di,lastTop:Cn})})}},[se,cn.current]),function(ti){if(ti==null){ri();return}if(vt.cancel(Ii.current),typeof ti=="number")Rn(ti);else if(ti&&(0,ze.Z)(ti)==="object"){var _n,Zn=ti.align;"index"in ti?_n=ti.index:_n=xt.findIndex(function(xi){return Fn(xi)===ti.key});var Me=ti.offset,un=Me===void 0?0:Me;je({times:0,index:_n,offset:un,originAlign:Zn})}}}function Un(cn,xt,In,gn){var Fn=In-cn,Nn=xt-In,Rn=Math.min(Fn,Nn)*2;if(gn<=Rn){var ri=Math.floor(gn/2);return gn%2?In+ri+1:In-ri}return Fn>Nn?In-(gn-Nn):In+(gn-Fn)}function Ui(cn,xt,In){var gn=cn.length,Fn=xt.length,Nn,Rn;if(gn===0&&Fn===0)return null;gn<Fn?(Nn=cn,Rn=xt):(Nn=xt,Rn=cn);var ri={__EMPTY_ITEM__:!0};function Ii(_n){return _n!==void 0?In(_n):ri}for(var Ie=null,Re=Math.abs(gn-Fn)!==1,se=0;se<Rn.length;se+=1){var je=Ii(Nn[se]),ti=Ii(Rn[se]);if(je!==ti){Ie=se,Re=Re||je!==Ii(Rn[se+1]);break}}return Ie===null?null:{index:Ie,multiple:Re}}function Yi(cn,xt,In){var gn=qt.useState(cn),Fn=(0,Ye.Z)(gn,2),Nn=Fn[0],Rn=Fn[1],ri=qt.useState(null),Ii=(0,Ye.Z)(ri,2),Ie=Ii[0],Re=Ii[1];return qt.useEffect(function(){var se=Ui(Nn||[],cn||[],xt);(se==null?void 0:se.index)!==void 0&&(In==null||In(se.index),Re(cn[se.index])),Rn(cn)},[cn]),[Ie]}var di=(typeof navigator=="undefined"?"undefined":(0,ze.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),vi=di,br=function(cn,xt){var In=(0,qt.useRef)(!1),gn=(0,qt.useRef)(null);function Fn(){clearTimeout(gn.current),In.current=!0,gn.current=setTimeout(function(){In.current=!1},50)}var Nn=(0,qt.useRef)({top:cn,bottom:xt});return Nn.current.top=cn,Nn.current.bottom=xt,function(Rn){var ri=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ii=Rn<0&&Nn.current.top||Rn>0&&Nn.current.bottom;return ri&&Ii?(clearTimeout(gn.current),In.current=!1):(!Ii||In.current)&&Fn(),!In.current&&Ii}};function ii(cn,xt,In,gn,Fn){var Nn=(0,qt.useRef)(0),Rn=(0,qt.useRef)(null),ri=(0,qt.useRef)(null),Ii=(0,qt.useRef)(!1),Ie=br(xt,In);function Re(Me,un){vt.cancel(Rn.current),Nn.current+=un,ri.current=un,!Ie(un)&&(vi||Me.preventDefault(),Rn.current=vt(function(){var xi=Ii.current?10:1;Fn(Nn.current*xi),Nn.current=0}))}function se(Me,un){Fn(un,!0),vi||Me.preventDefault()}var je=(0,qt.useRef)(null),ti=(0,qt.useRef)(null);function _n(Me){if(cn){vt.cancel(ti.current),ti.current=vt(function(){je.current=null},2);var un=Me.deltaX,xi=Me.deltaY,Di=Me.shiftKey,Cn=un,be=xi;(je.current==="sx"||!je.current&&Di&&xi&&!un)&&(Cn=xi,be=0,je.current="sx");var fi=Math.abs(Cn),Wi=Math.abs(be);je.current===null&&(je.current=gn&&fi>Wi?"x":"y"),je.current==="y"?Re(Me,be):se(Me,Cn)}}function Zn(Me){cn&&(Ii.current=Me.detail===ri.current)}return[_n,Zn]}var mi=14/15;function Br(cn,xt,In){var gn=(0,qt.useRef)(!1),Fn=(0,qt.useRef)(0),Nn=(0,qt.useRef)(null),Rn=(0,qt.useRef)(null),ri,Ii=function(je){if(gn.current){var ti=Math.ceil(je.touches[0].pageY),_n=Fn.current-ti;Fn.current=ti,In(_n)&&je.preventDefault(),clearInterval(Rn.current),Rn.current=setInterval(function(){_n*=mi,(!In(_n,!0)||Math.abs(_n)<=.1)&&clearInterval(Rn.current)},16)}},Ie=function(){gn.current=!1,ri()},Re=function(je){ri(),je.touches.length===1&&!gn.current&&(gn.current=!0,Fn.current=Math.ceil(je.touches[0].pageY),Nn.current=je.target,Nn.current.addEventListener("touchmove",Ii),Nn.current.addEventListener("touchend",Ie))};ri=function(){Nn.current&&(Nn.current.removeEventListener("touchmove",Ii),Nn.current.removeEventListener("touchend",Ie))},$t(function(){return cn&&xt.current.addEventListener("touchstart",Re),function(){var se;(se=xt.current)===null||se===void 0||se.removeEventListener("touchstart",Re),ri(),clearInterval(Rn.current)}},[cn])}var Gr=20;function Li(){var cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,In=cn/xt*100;return isNaN(In)&&(In=0),In=Math.max(In,Gr),In=Math.min(In,cn/2),Math.floor(In)}function jr(cn,xt,In,gn){var Fn=qt.useMemo(function(){return[new Map,[]]},[cn,In.id,gn]),Nn=(0,Ye.Z)(Fn,2),Rn=Nn[0],ri=Nn[1],Ii=function(Re){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Re,je=Rn.get(Re),ti=Rn.get(se);if(je===void 0||ti===void 0)for(var _n=cn.length,Zn=ri.length;Zn<_n;Zn+=1){var Me,un=cn[Zn],xi=xt(un);Rn.set(xi,Zn);var Di=(Me=In.get(xi))!==null&&Me!==void 0?Me:gn;if(ri[Zn]=(ri[Zn-1]||0)+Di,xi===Re&&(je=Zn),xi===se&&(ti=Zn),je!==void 0&&ti!==void 0)break}return{top:ri[je-1]||0,bottom:ri[ti]}};return Ii}var Lo=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],ta=[],_o={overflowY:"auto",overflowAnchor:"none"};function Io(cn,xt){var In=cn.prefixCls,gn=In===void 0?"rc-virtual-list":In,Fn=cn.className,Nn=cn.height,Rn=cn.itemHeight,ri=cn.fullHeight,Ii=ri===void 0?!0:ri,Ie=cn.style,Re=cn.data,se=cn.children,je=cn.itemKey,ti=cn.virtual,_n=cn.direction,Zn=cn.scrollWidth,Me=cn.component,un=Me===void 0?"div":Me,xi=cn.onScroll,Di=cn.onVirtualScroll,Cn=cn.onVisibleChange,be=cn.innerProps,fi=cn.extraRender,Wi=cn.styles,Er=(0,Ot.Z)(cn,Lo),fn=!!(ti!==!1&&Nn&&Rn),bi=fn&&Re&&(Rn*Re.length>Nn||!!Zn),Mr=_n==="rtl",na=ve()(gn,(0,Se.Z)({},"".concat(gn,"-rtl"),Mr),Fn),Ao=Re||ta,Fi=(0,qt.useRef)(),Ai=(0,qt.useRef)(),zi=(0,qt.useState)(0),Jr=(0,Ye.Z)(zi,2),bo=Jr[0],Yn=Jr[1],tr=(0,qt.useState)(0),qs=(0,Ye.Z)(tr,2),ns=qs[0],Wa=qs[1],Te=(0,qt.useState)(!1),cr=(0,Ye.Z)(Te,2),co=cr[0],_i=cr[1],fa=function(){_i(!0)},fo=function(){_i(!1)},Co=qt.useCallback(function(qr){return typeof je=="function"?je(qr):qr==null?void 0:qr[je]},[je]),Qr={getKey:Co};function io(qr){Yn(function(wo){var Ca;typeof qr=="function"?Ca=qr(wo):Ca=qr;var rs=zr(Ca);return Fi.current.scrollTop=rs,rs})}var Zo=(0,qt.useRef)({start:0,end:Ao.length}),vn=(0,qt.useRef)(),ma=Yi(Ao,Co),sn=(0,Ye.Z)(ma,1),lo=sn[0];vn.current=lo;var bs=Fe(Co,null,null),xa=(0,Ye.Z)(bs,4),fl=xa[0],va=xa[1],yo=xa[2],ya=xa[3],Ys=qt.useMemo(function(){if(!fn)return{scrollHeight:void 0,start:0,end:Ao.length-1,offset:void 0};if(!bi){var qr;return{scrollHeight:((qr=Ai.current)===null||qr===void 0?void 0:qr.offsetHeight)||0,start:0,end:Ao.length-1,offset:void 0}}for(var wo=0,Ca,rs,Qi,xd=Ao.length,$u=0;$u<xd;$u+=1){var Ml=Ao[$u],wd=Co(Ml),Eh=yo.get(wd),yi=wo+(Eh===void 0?Rn:Eh);yi>=bo&&Ca===void 0&&(Ca=$u,rs=wo),yi>bo+Nn&&Qi===void 0&&(Qi=$u),wo=yi}return Ca===void 0&&(Ca=0,rs=0,Qi=Math.ceil(Nn/Rn)),Qi===void 0&&(Qi=Ao.length-1),Qi=Math.min(Qi+1,Ao.length-1),{scrollHeight:wo,start:Ca,end:Qi,offset:rs}},[bi,fn,bo,Ao,ya,Nn]),$o=Ys.scrollHeight,ci=Ys.start,Zt=Ys.end,ts=Ys.offset;Zo.current.start=ci,Zo.current.end=Zt;var uu=qt.useState({width:0,height:Nn}),hu=(0,Ye.Z)(uu,2),Xs=hu[0],xu=hu[1],Vl=function(wo){xu({width:wo.width||wo.offsetWidth,height:wo.height||wo.offsetHeight})},lh=(0,qt.useRef)(),wu=(0,qt.useRef)(),ga=qt.useMemo(function(){return Li(Xs.width,Zn)},[Xs.width,Zn]),Ha=qt.useMemo(function(){return Li(Xs.height,$o)},[Xs.height,$o]),or=$o-Nn,Xi=(0,qt.useRef)(or);Xi.current=or;function zr(qr){var wo=qr;return Number.isNaN(Xi.current)||(wo=Math.min(wo,Xi.current)),wo=Math.max(wo,0),wo}var $e=bo<=0,fr=bo>=or,eo=br($e,fr),wa=function(){return{x:Mr?-ns:ns,y:bo}},ua=(0,qt.useRef)(wa()),Ga=zt(function(){if(Di){var qr=wa();(ua.current.x!==qr.x||ua.current.y!==qr.y)&&(Di(qr),ua.current=qr)}});function Ds(qr,wo){var Ca=qr;wo?((0,Ee.flushSync)(function(){Wa(Ca)}),Ga()):io(Ca)}function _s(qr){var wo=qr.currentTarget.scrollTop;wo!==bo&&io(wo),xi==null||xi(qr),Ga()}var $s=function(wo){var Ca=wo,rs=Zn-Xs.width;return Ca=Math.max(Ca,0),Ca=Math.min(Ca,rs),Ca},uh=zt(function(qr,wo){wo?((0,Ee.flushSync)(function(){Wa(function(Ca){var rs=Ca+(Mr?-qr:qr);return $s(rs)})}),Ga()):io(function(Ca){var rs=Ca+qr;return rs})}),Qu=ii(fn,$e,fr,!!Zn,uh),We=(0,Ye.Z)(Qu,2),gl=We[0],du=We[1];Br(fn,Fi,function(qr,wo){return eo(qr,wo)?!1:(gl({preventDefault:function(){},deltaY:qr}),!0)}),$t(function(){function qr(Ca){fn&&Ca.preventDefault()}var wo=Fi.current;return wo.addEventListener("wheel",gl),wo.addEventListener("DOMMouseScroll",du),wo.addEventListener("MozMousePixelScroll",qr),function(){wo.removeEventListener("wheel",gl),wo.removeEventListener("DOMMouseScroll",du),wo.removeEventListener("MozMousePixelScroll",qr)}},[fn]),$t(function(){Zn&&Wa(function(qr){return $s(qr)})},[Xs.width,Zn]);var qu=function(){var wo,Ca;(wo=lh.current)===null||wo===void 0||wo.delayHidden(),(Ca=wu.current)===null||Ca===void 0||Ca.delayHidden()},is=Si(Fi,Ao,yo,Rn,Co,function(){return va(!0)},io,qu);qt.useImperativeHandle(xt,function(){return{getScrollInfo:wa,scrollTo:function(wo){function Ca(rs){return rs&&(0,ze.Z)(rs)==="object"&&("left"in rs||"top"in rs)}Ca(wo)?(wo.left!==void 0&&Wa($s(wo.left)),is(wo.top)):is(wo)}}}),$t(function(){if(Cn){var qr=Ao.slice(ci,Zt+1);Cn(qr,Ao)}},[ci,Zt,Ao]);var _u=jr(Ao,Co,yo,Rn),ed=fi==null?void 0:fi({start:ci,end:Zt,virtual:bi,offsetX:ns,offsetY:ts,rtl:Mr,getSize:_u}),Ch=ie(Ao,ci,Zt,Zn,fl,se,Qr),Pa=null;Nn&&(Pa=(0,le.Z)((0,Se.Z)({},Ii?"height":"maxHeight",Nn),_o),fn&&(Pa.overflowY="hidden",Zn&&(Pa.overflowX="hidden"),co&&(Pa.pointerEvents="none")));var cs={};return Mr&&(cs.dir="rtl"),qt.createElement("div",(0,kt.Z)({style:(0,le.Z)((0,le.Z)({},Ie),{},{position:"relative"}),className:na},cs,Er),qt.createElement(Ze.Z,{onResize:Vl},qt.createElement(un,{className:"".concat(gn,"-holder"),style:Pa,ref:Fi,onScroll:_s,onMouseEnter:qu},qt.createElement(nn,{prefixCls:gn,height:$o,offsetX:ns,offsetY:ts,scrollWidth:Zn,onInnerResize:va,ref:Ai,innerProps:be,rtl:Mr,extra:ed},Ch))),bi&&$o>Nn&&qt.createElement(It,{ref:lh,prefixCls:gn,scrollOffset:bo,scrollRange:$o,rtl:Mr,onScroll:Ds,onStartMove:fa,onStopMove:fo,spinSize:Ha,containerSize:Xs.height,style:Wi==null?void 0:Wi.verticalScrollBar,thumbStyle:Wi==null?void 0:Wi.verticalScrollBarThumb}),bi&&Zn&&qt.createElement(It,{ref:wu,prefixCls:gn,scrollOffset:ns,scrollRange:Zn,rtl:Mr,onScroll:Ds,onStartMove:fa,onStopMove:fo,spinSize:ga,containerSize:Xs.width,horizontal:!0,style:Wi==null?void 0:Wi.horizontalScrollBar,thumbStyle:Wi==null?void 0:Wi.horizontalScrollBarThumb}))}var ea=qt.forwardRef(Io);ea.displayName="List";var To=ea,mr=To},66392:function(xn,$n){"use strict";var Dt;var kt=Symbol.for("react.element"),le=Symbol.for("react.portal"),ze=Symbol.for("react.fragment"),Ye=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Ot=Symbol.for("react.provider"),qt=Symbol.for("react.context"),Ee=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),ve=Symbol.for("react.suspense"),Ze=Symbol.for("react.suspense_list"),Ce=Symbol.for("react.memo"),nn=Symbol.for("react.lazy"),Tt=Symbol.for("react.offscreen"),nt;nt=Symbol.for("react.module.reference");function et(ht){if(typeof ht=="object"&&ht!==null){var lt=ht.$$typeof;switch(lt){case kt:switch(ht=ht.type,ht){case ze:case Se:case Ye:case ve:case Ze:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case Ee:case qt:case me:case nn:case Ce:case Ot:return ht;default:return lt}}case le:return lt}}}Dt=qt,Dt=Ot,Dt=kt,Dt=me,Dt=ze,Dt=nn,Dt=Ce,Dt=le,Dt=Se,Dt=Ye,Dt=ve,Dt=Ze,Dt=function(){return!1},Dt=function(){return!1},Dt=function(ht){return et(ht)===qt},Dt=function(ht){return et(ht)===Ot},Dt=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===kt},Dt=function(ht){return et(ht)===me},Dt=function(ht){return et(ht)===ze},Dt=function(ht){return et(ht)===nn},Dt=function(ht){return et(ht)===Ce},Dt=function(ht){return et(ht)===le},Dt=function(ht){return et(ht)===Se},Dt=function(ht){return et(ht)===Ye},Dt=function(ht){return et(ht)===ve},Dt=function(ht){return et(ht)===Ze},Dt=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===ze||ht===Se||ht===Ye||ht===ve||ht===Ze||ht===Tt||typeof ht=="object"&&ht!==null&&(ht.$$typeof===nn||ht.$$typeof===Ce||ht.$$typeof===Ot||ht.$$typeof===qt||ht.$$typeof===me||ht.$$typeof===nt||ht.getModuleId!==void 0)},Dt=et},31461:function(xn,$n,Dt){"use strict";Dt(66392)},25510:function(xn){"use strict";xn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUC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ijj4Wg2lN/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+YVtsvkVwd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jIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(xn,$n,Dt){"use strict";xn.exports=Dt.p+"static/AssistantCode3.a8740efb.jpeg"},51941:function(xn){"use strict";xn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJUAAABtCAYAAACoYyM7AAAgAElEQVR4Xmy9aY+dZ5Ildu5+35s7k0tmcifFRRtLovYqlbYqVVVX9/R0owEb408GZgD/AP8EfzI8gA1/M+AP88GAYbQNT89MV6lLJVWV9l2iSIrimjuXZO6Zd9+McyLizSvBrCJEMu99l+eJJ5YTJyIyLz977NR/+2//3W//7h/+q/9m377JJ3qdbr7b6yKTyaCfyaLf7yGDLjL9DPrZLIA+MugD4J8zAHpAv49+n3/uA9ksMvoZ/9qzj/Ab/b4+l8ny2/bzDL+rz2XBr+u6/Z7uYPfP6DvodoFsBplszu7T4zP19B0+R9afq9/r68l03V6f/7f78bvps3aRzeTQz+SAflfPleF76ud9XVsPnc37u/L9uqjt1tFutZHP5ZDL5XTdfCGPTD6nz+t/vBcfgNfJ2JPYb7sP/5jpZwHe25/HPsYfxBrZOtga2Xf0Ulowrgefx9ctm/M7+0e0hhn7CN8ow33xNdKNtFv+Ky4aT8m7akHtOflZ7RnX2vaI381m7b103X4H2Sw/nN24c+f2//t//If//X/7H/7H/3Al87/8+//+3//X/+a/e/PQ1NHzvVa92O93/eXtgSRgvFy2C24aX4ybqEXSbSgA3KCsvVmGQpXRulEQ9SL9Hnpdex1+l9fk9/K5LDrdLnq9HrLZnD+gLQrXj4IkQaSs5nhBoNVqA90+cvkcuv0uup0uSqWyrt3ptJHNcHO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4yBehx8aXVKoT6WsQkRkkI3QF086zEdRhhtNYU6cnS4zNd1cU0TgYknOcU154TqrCKJ7f9DIPLmRyEhTwD3Aw4YmwrgbFG3o0ETkQnkG3V4qihS9VDaQeRB73baoNPzsoD/Qw6wONuEOeQjxfuTRaKanGxrmfS6DnJpRz7mx44co5dwrBwDGTUdHby8/ef7p754///XP374d/u3/O9Am/GhLO4oAAAAASUVORK5CYII="},4977: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/VxwjOHiJ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7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/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="},17423:function(xn,$n,Dt){"use strict";Dt.d($n,{Z:function(){return Ee}});const kt=me=>typeof me=="object"&&me!=null&&me.nodeType===1,le=(me,ve)=>(!ve||me!=="hidden")&&me!=="visible"&&me!=="clip",ze=(me,ve)=>{if(me.clientHeight<me.scrollHeight||me.clientWidth<me.scrollWidth){const Ze=getComputedStyle(me,null);return le(Ze.overflowY,ve)||le(Ze.overflowX,ve)||(Ce=>{const nn=(Tt=>{if(!Tt.ownerDocument||!Tt.ownerDocument.defaultView)return null;try{return Tt.ownerDocument.defaultView.frameElement}catch(nt){return null}})(Ce);return!!nn&&(nn.clientHeight<Ce.scrollHeight||nn.clientWidth<Ce.scrollWidth)})(me)}return!1},Ye=(me,ve,Ze,Ce,nn,Tt,nt,et)=>Tt<me&&nt>ve||Tt>me&&nt<ve?0:Tt<=me&&et<=Ze||nt>=ve&&et>=Ze?Tt-me-Ce:nt>ve&&et<Ze||Tt<me&&et>Ze?nt-ve+nn:0,Se=me=>{const ve=me.parentElement;return ve==null?me.getRootNode().host||null:ve},Ot=(me,ve)=>{var Ze,Ce,nn,Tt;if(typeof document=="undefined")return[];const{scrollMode:nt,block:et,inline:ht,boundary:lt,skipOverflowHiddenElements:pt}=ve,vt=typeof lt=="function"?lt:Sn=>Sn!==lt;if(!kt(me))throw new TypeError("Invalid target");const St=document.scrollingElement||document.documentElement,Lt=[];let It=me;for(;kt(It)&&vt(It);){if(It=Se(It),It===St){Lt.push(It);break}It!=null&&It===document.body&&ze(It)&&!ze(document.documentElement)||It!=null&&ze(It,pt)&&Lt.push(It)}const Yt=(Ce=(Ze=window.visualViewport)==null?void 0:Ze.width)!=null?Ce:innerWidth,ie=(Tt=(nn=window.visualViewport)==null?void 0:nn.height)!=null?Tt:innerHeight,{scrollX:re,scrollY:Qt}=window,{height:xe,width:he,top:Le,right:Qe,bottom:Fe,left:Gn}=me.getBoundingClientRect(),{top:Jn,right:Ke,bottom:Dn,left:$t}=(Sn=>{const we=window.getComputedStyle(Sn);return{top:parseFloat(we.scrollMarginTop)||0,right:parseFloat(we.scrollMarginRight)||0,bottom:parseFloat(we.scrollMarginBottom)||0,left:parseFloat(we.scrollMarginLeft)||0}})(me);let zt=et==="start"||et==="nearest"?Le-Jn:et==="end"?Fe+Dn:Le+xe/2-Jn+Dn,Gt=ht==="center"?Gn+he/2-$t+Ke:ht==="end"?Qe+Ke:Gn-$t;const _e=[];for(let Sn=0;Sn<Lt.length;Sn++){const we=Lt[Sn],{height:rn,width:an,top:Wn,right:Ne,bottom:de,left:Oe}=we.getBoundingClientRect();if(nt==="if-needed"&&Le>=0&&Gn>=0&&Fe<=ie&&Qe<=Yt&&Le>=Wn&&Fe<=de&&Gn>=Oe&&Qe<=Ne)return _e;const dn=getComputedStyle(we),He=parseInt(dn.borderLeftWidth,10),jt=parseInt(dn.borderTopWidth,10),Pt=parseInt(dn.borderRightWidth,10),wt=parseInt(dn.borderBottomWidth,10);let Ft=0,Wt=0;const At="offsetWidth"in we?we.offsetWidth-we.clientWidth-He-Pt:0,Jt="offsetHeight"in we?we.offsetHeight-we.clientHeight-jt-wt:0,Xe="offsetWidth"in we?we.offsetWidth===0?0:an/we.offsetWidth:0,zn="offsetHeight"in we?we.offsetHeight===0?0:rn/we.offsetHeight:0;if(St===we)Ft=et==="start"?zt:et==="end"?zt-ie:et==="nearest"?Ye(Qt,Qt+ie,ie,jt,wt,Qt+zt,Qt+zt+xe,xe):zt-ie/2,Wt=ht==="start"?Gt:ht==="center"?Gt-Yt/2:ht==="end"?Gt-Yt:Ye(re,re+Yt,Yt,He,Pt,re+Gt,re+Gt+he,he),Ft=Math.max(0,Ft+Qt),Wt=Math.max(0,Wt+re);else{Ft=et==="start"?zt-Wn-jt:et==="end"?zt-de+wt+Jt:et==="nearest"?Ye(Wn,de,rn,jt,wt+Jt,zt,zt+xe,xe):zt-(Wn+rn/2)+Jt/2,Wt=ht==="start"?Gt-Oe-He:ht==="center"?Gt-(Oe+an/2)+At/2:ht==="end"?Gt-Ne+Pt+At:Ye(Oe,Ne,an,He,Pt+At,Gt,Gt+he,he);const{scrollLeft:En,scrollTop:Ve}=we;Ft=zn===0?0:Math.max(0,Math.min(Ve+Ft/zn,we.scrollHeight-rn/zn+Jt)),Wt=Xe===0?0:Math.max(0,Math.min(En+Wt/Xe,we.scrollWidth-an/Xe+At)),zt+=Ve-Ft,Gt+=En-Wt}_e.push({el:we,top:Ft,left:Wt})}return _e},qt=me=>me===!1?{block:"end",inline:"nearest"}:(ve=>ve===Object(ve)&&Object.keys(ve).length!==0)(me)?me:{block:"start",inline:"nearest"};function Ee(me,ve){if(!me.isConnected||!(nn=>{let Tt=nn;for(;Tt&&Tt.parentNode;){if(Tt.parentNode===document)return!0;Tt=Tt.parentNode instanceof ShadowRoot?Tt.parentNode.host:Tt.parentNode}return!1})(me))return;const Ze=(nn=>{const Tt=window.getComputedStyle(nn);return{top:parseFloat(Tt.scrollMarginTop)||0,right:parseFloat(Tt.scrollMarginRight)||0,bottom:parseFloat(Tt.scrollMarginBottom)||0,left:parseFloat(Tt.scrollMarginLeft)||0}})(me);if((nn=>typeof nn=="object"&&typeof nn.behavior=="function")(ve))return ve.behavior(Ot(me,ve));const Ce=typeof ve=="boolean"||ve==null?void 0:ve.behavior;for(const{el:nn,top:Tt,left:nt}of Ot(me,qt(ve))){const et=Tt-Ze.top+Ze.bottom,ht=nt-Ze.left+Ze.right;nn.scroll({top:et,left:ht,behavior:Ce})}}}}]);